/**
 * Perfex Studio — professional dashboard layout (sidebar + glass cards).
 * body.theme-perfex-studio
 */

body.theme-perfex-studio,
body.theme-perfex-studio.customers {
  --studio-surface: rgba(255, 255, 255, 0.92);
  --studio-surface-solid: #ffffff;
  --studio-border: rgba(148, 163, 184, 0.35);
  --studio-accent: #3b82f6;
  --studio-accent-hover: #2563eb;
  --studio-accent-soft: rgba(59, 130, 246, 0.12);
  --studio-text: #1e3a5f;
  --studio-muted: #64748b;
  --studio-radius: 18px;
  --studio-radius-sm: 12px;
  --studio-shadow: 0 8px 32px rgba(30, 58, 95, 0.08);
  --studio-shadow-soft: 0 4px 20px rgba(30, 58, 95, 0.06);
  --studio-sidebar-w: 280px;
  --studio-blur: blur(16px);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--studio-text);
  background: linear-gradient(165deg, #e0f0ff 0%, #f0f7ff 42%, #e8f4fc 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body.theme-perfex-studio > * {
  font-size: 15px;
}

body.theme-perfex-studio h1,
body.theme-perfex-studio h2,
body.theme-perfex-studio h3,
body.theme-perfex-studio h4,
body.theme-perfex-studio .studio-section-title {
  font-family: "Syne", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

/* ========== App shell (sidebar + main) ========== */
body.theme-perfex-studio .studio-shell {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  flex: 1 1 auto;
  min-width: 0;
}

/* Колонка справа от сайдбара: контент + футер (иначе footer становится 3‑м flex‑элементом в ряд и жмёт main) */
body.theme-perfex-studio .studio-main-column {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

body.theme-perfex-studio .studio-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1008;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.theme-perfex-studio .studio-sidebar-backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* Sidebar */
body.theme-perfex-studio .studio-sidebar {
  width: var(--studio-sidebar-w);
  flex: 0 0 var(--studio-sidebar-w);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.9) 100%);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border-right: 1px solid var(--studio-border);
  box-shadow: 4px 0 40px rgba(30, 58, 95, 0.06);
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 1009;
}

body.theme-perfex-studio .studio-sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.25rem 1rem 1.5rem;
}

body.theme-perfex-studio .studio-sidebar__brand {
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--studio-border);
  margin-bottom: 1rem;
}

body.theme-perfex-studio .studio-sidebar__brand-link {
  display: block;
}

body.theme-perfex-studio .studio-sidebar__brand img,
body.theme-perfex-studio .studio-sidebar-logo img {
  max-width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

body.theme-perfex-studio .studio-glass-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius-sm);
  box-shadow: var(--studio-shadow-soft);
}

body.theme-perfex-studio .studio-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

body.theme-perfex-studio .studio-sidebar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
}

body.theme-perfex-studio .studio-sidebar__user-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

body.theme-perfex-studio .studio-sidebar__user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--studio-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-perfex-studio .studio-sidebar__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--studio-accent-soft), rgba(59, 130, 246, 0.18));
  color: var(--studio-accent-hover);
}

/* Приветствие: отступы как у пунктов меню (padding по горизонтали 1rem) */
body.theme-perfex-studio .studio-sidebar-greet {
  margin: 0 0 2px;
  padding: 0.55rem 1rem 0.85rem;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--studio-border);
}

body.theme-perfex-studio .studio-sidebar-greet__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #5f6f85;
  line-height: 1.35;
}

body.theme-perfex-studio .studio-sidebar-greet__title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--studio-text);
  line-height: 1.38;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.theme-perfex-studio .studio-sidebar-greet__lead {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--studio-muted);
  line-height: 1.42;
}

body.theme-perfex-studio .studio-sidebar-manager {
  margin-top: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
  display: block;
  box-sizing: border-box;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.9));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  text-align: left;
}

body.theme-perfex-studio .studio-sidebar-manager__label {
  margin: 0 0 0.2rem;
  font-size: 0.64rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--studio-muted);
  font-weight: 700;
  text-align: left;
}

body.theme-perfex-studio .studio-sidebar-manager__value {
  margin: 0;
  font-size: 0.8rem;
  color: var(--studio-text);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

body.theme-perfex-studio .studio-sidebar-manager__phone {
  margin: 0.32rem 0 0;
  font-size: 0.74rem;
  color: #1e3a8a;
  font-weight: 600;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
}

body.theme-perfex-studio .studio-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

body.theme-perfex-studio .studio-sidebar-menu__item {
  margin-bottom: 4px;
}

body.theme-perfex-studio .studio-sidebar-menu__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  border-radius: var(--studio-radius-sm);
  color: var(--studio-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.theme-perfex-studio .studio-sidebar-menu__link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--studio-text);
}

body.theme-perfex-studio .studio-sidebar-menu__item.is-active .studio-sidebar-menu__link {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.08));
  color: var(--studio-accent-hover);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

body.theme-perfex-studio .studio-sidebar-menu__icon {
  width: 1.35rem;
  text-align: center;
  opacity: 0.9;
}

body.theme-perfex-studio .studio-sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--studio-border);
}

body.theme-perfex-studio .studio-sidebar__footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--studio-muted);
  margin: 0 0 0.6rem 0.5rem;
}

body.theme-perfex-studio .studio-sidebar-footmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

body.theme-perfex-studio .studio-sidebar-footmenu > li > a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--studio-muted);
  border-radius: 8px;
  text-decoration: none !important;
}

body.theme-perfex-studio .studio-sidebar-footmenu > li > a:hover {
  background: rgba(59, 130, 246, 0.06);
  color: var(--studio-text);
}

body.theme-perfex-studio .studio-sidebar-footmenu__badge {
  margin-left: 6px;
  background: var(--studio-accent);
}

body.theme-perfex-studio .studio-sidebar-footmenu__nested {
  margin: 0.35rem 0 0.5rem;
  padding-left: 0.25rem;
}

body.theme-perfex-studio .studio-sidebar-footmenu__nested-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--studio-muted);
  padding: 0.35rem 0.65rem;
}

body.theme-perfex-studio .studio-sidebar-footmenu__nested ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
}

body.theme-perfex-studio .studio-sidebar-footmenu__nested ul li.active a {
  color: var(--studio-accent-hover);
  font-weight: 700;
}

body.theme-perfex-studio .studio-sidebar-footmenu__logout {
  color: #dc2626 !important;
}

body.theme-perfex-studio .studio-sidebar-footmenu__logout:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* Область под топбаром: растягивается на всю ширину правой колонки */
body.theme-perfex-studio .studio-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

body.theme-perfex-studio .studio-mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--studio-surface);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border-bottom: 1px solid var(--studio-border);
  position: sticky;
  top: 0;
  z-index: 1007;
}

body.theme-perfex-studio .studio-sidenav-toggle {
  border: none;
  background: rgba(59, 130, 246, 0.12);
  color: var(--studio-accent-hover);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
}

body.theme-perfex-studio .studio-mobile-header__title {
  font-weight: 800;
  font-family: "Syne", sans-serif;
  color: var(--studio-text);
  text-decoration: none !important;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-perfex-studio .studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px clamp(16px, 3vw, 28px) 12px;
}

body.theme-perfex-studio .studio-topbar__date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--studio-muted);
}

body.theme-perfex-studio .studio-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.theme-perfex-studio .studio-btn-pill.btn-sm {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

body.theme-perfex-studio .studio-btn-pill--outline {
  background: transparent;
  border: 2px solid var(--studio-border);
  color: var(--studio-text);
}

body.theme-perfex-studio .studio-btn-pill--outline:hover {
  border-color: var(--studio-accent);
  color: var(--studio-accent-hover);
  background: var(--studio-accent-soft);
}

body.theme-perfex-studio .studio-btn-pill--solid {
  background: linear-gradient(135deg, var(--studio-accent), var(--studio-accent-hover));
  border: none;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

body.theme-perfex-studio .studio-btn-pill--solid:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

body.theme-perfex-studio #wrapper.studio-wrapper-flex {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.theme-perfex-studio #content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 1.5rem;
}

body.theme-perfex-studio .studio-page-container {
  padding-left: clamp(12px, 2.5vw, 28px);
  padding-right: clamp(12px, 2.5vw, 28px);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

/* Одна колонка на всю ширину контента: submenu + view должны быть внутри .col-* у .row */
body.theme-perfex-studio .studio-main-col {
  width: 100%;
}

body.theme-perfex-studio .section-client-dashboard.studio-dashboard {
  width: 100%;
  max-width: 100%;
}

body.theme-perfex-studio .studio-dashboard-outer {
  margin-left: 0;
  margin-right: 0;
}

/* Quick links row */
body.theme-perfex-studio ul.submenu.customer-top-submenu.studio-quick-links {
  list-style: none;
  padding: 0 0 16px;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: none;
}

body.theme-perfex-studio ul.studio-quick-links li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--studio-surface);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: var(--studio-shadow-soft);
}

body.theme-perfex-studio ul.studio-quick-links li a:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--studio-shadow);
}

/* Footer */
body.theme-perfex-studio footer.footer {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border-top: 1px solid var(--studio-border);
  padding: 1rem 1.25rem;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  color: var(--studio-muted);
  font-size: 13px;
}

/* Hero & dashboard */
body.theme-perfex-studio .studio-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--studio-surface);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  box-shadow: var(--studio-shadow);
}

body.theme-perfex-studio .studio-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--studio-muted);
}

body.theme-perfex-studio .studio-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: var(--studio-text);
  line-height: 1.12;
  max-width: 100%;
}

body.theme-perfex-studio .studio-hero__lead {
  font-size: 1.05rem;
  color: var(--studio-muted);
  max-width: min(42rem, 100%);
  line-height: 1.6;
}

body.theme-perfex-studio .studio-dashboard-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.15rem, 3vw, 1.75rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--studio-surface);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  box-shadow: var(--studio-shadow);
}

body.theme-perfex-studio .studio-dashboard-contact__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
  flex-shrink: 0;
}

body.theme-perfex-studio .studio-dashboard-contact__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

body.theme-perfex-studio .studio-dashboard-contact__name {
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--studio-text);
}

body.theme-perfex-studio .studio-dashboard-contact__badge {
  margin-top: 0.05rem;
}

body.theme-perfex-studio .studio-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--studio-text);
}

body.theme-perfex-studio .studio-section-title--sm {
  font-size: 1.15rem;
}

/* Files portal rows */
body.theme-perfex-studio .studio-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.theme-perfex-studio .studio-files-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 78px;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.theme-perfex-studio .studio-files-row:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.09);
}

body.theme-perfex-studio .studio-files-row__project {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

body.theme-perfex-studio .studio-files-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #2563eb;
  background: rgba(59, 130, 246, 0.12);
  font-size: 1rem;
  flex-shrink: 0;
}

body.theme-perfex-studio .studio-files-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

body.theme-perfex-studio .studio-files-row__label {
  font-size: 0.72rem;
  color: var(--studio-muted);
}

body.theme-perfex-studio .studio-files-row__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--studio-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-perfex-studio .studio-files-row__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

body.theme-perfex-studio .studio-files-row__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

body.theme-perfex-studio .studio-files-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--studio-accent), var(--studio-accent-hover));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  body.theme-perfex-studio .studio-files-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  body.theme-perfex-studio .studio-files-row__status {
    order: 3;
  }
}

/* Project grid */
body.theme-perfex-studio .studio-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
}

body.theme-perfex-studio .studio-project-card--folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 152px;
}

body.theme-perfex-studio .studio-files-nc__icon {
  margin: 0 0 0.45rem 0.35rem;
  font-size: 1.45rem;
  line-height: 1;
  color: #b08912;
  opacity: 0.95;
}

body.theme-perfex-studio .studio-files-nc__cta {
  margin-top: auto;
  padding: 0.95rem 0 0 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--studio-accent-hover);
  letter-spacing: 0.01em;
}

body.theme-perfex-studio .studio-project-card--folder:hover .studio-files-nc__cta {
  text-decoration: underline;
}

body.theme-perfex-studio .studio-project-card {
  position: relative;
  display: block;
  padding: 1.35rem 1.35rem 1.35rem 1.45rem;
  background: var(--studio-surface);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius-sm);
  box-shadow: var(--studio-shadow-soft);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

body.theme-perfex-studio .studio-project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--studio-shadow);
}

body.theme-perfex-studio .studio-project-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: var(--studio-radius-sm) 0 0 var(--studio-radius-sm);
}

body.theme-perfex-studio .studio-project-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  padding-left: 0.35rem;
  color: var(--studio-text);
  line-height: 1.35;
}

body.theme-perfex-studio .studio-project-card__status {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 12px;
  font-weight: 700;
}

body.theme-perfex-studio .studio-project-card__meta {
  margin: 0.75rem 0 0;
  padding-left: 0.35rem;
  font-size: 13px;
  color: var(--studio-muted);
}

body.theme-perfex-studio .studio-card--empty {
  border: 2px dashed rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--studio-radius);
}

body.theme-perfex-studio .studio-btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--studio-border);
  font-weight: 700;
  padding: 9px 20px;
  background: var(--studio-surface);
}

body.theme-perfex-studio .studio-link-arrow {
  font-weight: 700;
  color: var(--studio-accent-hover);
}

body.theme-perfex-studio .studio-status-section dl.tw-grid {
  gap: 0.85rem !important;
}

body.theme-perfex-studio .studio-status-section dl.tw-grid > a {
  border-radius: var(--studio-radius-sm) !important;
  border: 1px solid var(--studio-border) !important;
  background: var(--studio-surface) !important;
  -webkit-backdrop-filter: var(--studio-blur) !important;
  backdrop-filter: var(--studio-blur) !important;
  box-shadow: var(--studio-shadow-soft) !important;
}

body.theme-perfex-studio .studio-status-section dl.tw-grid > a:hover {
  box-shadow: var(--studio-shadow) !important;
}

/* Panels */
body.theme-perfex-studio .panel_s {
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  box-shadow: var(--studio-shadow-soft);
  margin-bottom: 1.25rem;
}

body.theme-perfex-studio .panel_s .panel-body {
  padding: 1.35rem 1.5rem;
}

body.theme-perfex-studio .studio-hr {
  border-color: var(--studio-border);
  margin: 1.25rem 0;
}

body.theme-perfex-studio .studio-chart-wrap {
  max-height: 400px;
  margin-top: 0.5rem;
}

/* Tables */
body.theme-perfex-studio .table > thead > tr > th {
  border-bottom-width: 2px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--studio-muted);
}

body.theme-perfex-studio .table-hover > tbody > tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

/* Mobile tables: keep full columns accessible via horizontal scroll */
@media (max-width: 991px) {
  body.theme-perfex-studio .table-responsive,
  body.theme-perfex-studio .dataTables_wrapper,
  body.theme-perfex-studio .dataTables_wrapper .table-responsive,
  body.theme-perfex-studio .studio-project-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.theme-perfex-studio .dataTables_wrapper table,
  body.theme-perfex-studio .table-responsive > .table,
  body.theme-perfex-studio .studio-project-table-wrap > .table {
    min-width: 100%;
    width: max-content;
  }
}

/* Forms & buttons */
body.theme-perfex-studio .form-control {
  border-radius: var(--studio-radius-sm);
  border-color: rgba(148, 163, 184, 0.5);
  min-height: 44px;
}

body.theme-perfex-studio .form-control:focus {
  border-color: var(--studio-accent);
  box-shadow: 0 0 0 4px var(--studio-accent-soft);
}

body.theme-perfex-studio .btn {
  border-radius: var(--studio-radius-sm);
  font-weight: 700;
}

body.theme-perfex-studio .btn-primary {
  background: var(--studio-accent);
  border-color: var(--studio-accent);
}

body.theme-perfex-studio .btn-primary:hover,
body.theme-perfex-studio .btn-primary:focus {
  background: var(--studio-accent-hover);
  border-color: var(--studio-accent-hover);
}

body.theme-perfex-studio h4.section-heading,
body.theme-perfex-studio .section-heading-project,
body.theme-perfex-studio .tickets-summary-heading {
  font-family: "Syne", sans-serif;
  font-weight: 800 !important;
  color: var(--studio-text) !important;
}

body.theme-perfex-studio .form-group > label {
  font-weight: 600;
  color: var(--studio-muted);
}

body.theme-perfex-studio .alert {
  border-radius: var(--studio-radius-sm);
  border: none;
}

/* Tabs, progress, etc. */
body.theme-perfex-studio .nav-tabs-horizontal {
  border-bottom-color: var(--studio-border);
}

body.theme-perfex-studio .nav-tabs-horizontal > li.active > a {
  color: var(--studio-accent-hover) !important;
}

/* ========== Project shell (full width) ========== */
body.theme-perfex-studio .studio-project-shell {
  width: 100%;
  max-width: 100%;
}

body.theme-perfex-studio .studio-project-shell__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

body.theme-perfex-studio .studio-project-shell__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

body.theme-perfex-studio .studio-project-shell__status {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.33rem 0.7rem;
}

body.theme-perfex-studio .studio-project-shell__frame {
  border-radius: 24px;
  border: 1px solid var(--studio-border);
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--studio-shadow-soft);
  overflow: visible;
}

body.theme-perfex-studio .studio-project-shell__body {
  padding: 1.2rem 1.25rem 1.35rem;
}

body.theme-perfex-studio .studio-project-shell__group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.theme-perfex-studio .studio-project-tabs {
  margin: -0.2rem -0.25rem 1rem;
  padding: 0 0.25rem;
}

body.theme-perfex-studio .studio-project-tabs .horizontal-tabs {
  padding-bottom: 0.1rem;
}

body.theme-perfex-studio .studio-project-tabs__list > li > a {
  border-radius: 11px 11px 0 0;
  font-weight: 600;
}

body.theme-perfex-studio .studio-project-tabs__list > li.active > a {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--studio-border) var(--studio-border) transparent !important;
}

body.theme-perfex-studio .studio-project-tasks__head,
body.theme-perfex-studio .studio-project-files__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.theme-perfex-studio .studio-project-files__toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.theme-perfex-studio .studio-project-overview .project-progress-bars > div {
  border-color: var(--studio-border) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

body.theme-perfex-studio .studio-project-shell__group > hr {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  margin: 1rem 0;
}

body.theme-perfex-studio .studio-project-overview__meta,
body.theme-perfex-studio .studio-project-overview__stats,
body.theme-perfex-studio .studio-project-overview__description {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--studio-border);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
}

body.theme-perfex-studio .studio-project-overview__meta h4,
body.theme-perfex-studio .studio-project-overview__description h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

body.theme-perfex-studio .studio-project-overview__meta > .tw-flex,
body.theme-perfex-studio .studio-project-overview__meta > .project-billing-type,
body.theme-perfex-studio .studio-project-overview__meta > .project-cost,
body.theme-perfex-studio .studio-project-overview__meta > .project-total-logged-hours {
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  padding: 0.4rem 0;
  margin: 0;
}

body.theme-perfex-studio .studio-project-overview__meta > .tw-flex:last-child,
body.theme-perfex-studio .studio-project-overview__meta > .project-total-logged-hours:last-child {
  border-bottom: 0;
}

body.theme-perfex-studio .studio-project-table-wrap {
  border: 1px solid var(--studio-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

body.theme-perfex-studio .studio-project-shell__group .table.dt-table {
  margin-bottom: 0;
}

body.theme-perfex-studio .studio-project-shell__group .table.dt-table > thead > tr > th {
  background: rgba(241, 245, 249, 0.9);
  color: #52627b;
  border-bottom: 1px solid var(--studio-border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

body.theme-perfex-studio .studio-project-shell__group .table.dt-table > tbody > tr > td {
  border-color: rgba(226, 232, 240, 0.9);
  vertical-align: middle;
}

body.theme-perfex-studio .studio-project-shell__group .table > tbody > tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

body.theme-perfex-studio .studio-project-discussions__head {
  display: flex;
  justify-content: flex-start;
}

body.theme-perfex-studio .studio-project-tasks .tasks-phases .kan-ban-col {
  border: 1px solid var(--studio-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--studio-shadow-soft);
}

body.theme-perfex-studio .studio-project-tasks .tasks-phases .kan-ban-col .panel-heading {
  border-bottom: 1px solid var(--studio-border);
}

body.theme-perfex-studio .studio-project-tasks .tasks-phases ._task_wrapper {
  padding: 0.52rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

body.theme-perfex-studio .studio-project-tasks .tasks-phases ._task_wrapper:last-child {
  border-bottom: 0;
}

/* Task details should never collapse to a narrow strip */
body.theme-perfex-studio #task,
body.theme-perfex-studio #task > .row,
body.theme-perfex-studio #task > .row > .col-md-12 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.theme-perfex-studio #task {
  clear: both;
  display: block;
  overflow-x: hidden;
}

body.theme-perfex-studio .studio-project-task .task-info {
  float: none !important;
  display: inline-flex;
  margin-right: 1rem;
  margin-bottom: 0.55rem;
  padding-left: 0;
}

body.theme-perfex-studio .studio-project-task .task-comment .media-body,
body.theme-perfex-studio .studio-project-task .task-attachment-col,
body.theme-perfex-studio .studio-project-task .tc-content {
  min-width: 0;
}

/* Some tasks contain long HTML/text in description/comments that can stretch page width */
body.theme-perfex-studio #task .tc-content,
body.theme-perfex-studio #task #task-comments .comment-content,
body.theme-perfex-studio #task .task-attachment-no-preview {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.theme-perfex-studio #task #task-comments,
body.theme-perfex-studio #task .task-comment,
body.theme-perfex-studio #task .media-body {
  min-width: 0;
  max-width: 100%;
}

/* Contain oversized task content locally instead of shifting whole layout */
body.theme-perfex-studio .studio-main,
body.theme-perfex-studio #content,
body.theme-perfex-studio .studio-page-container {
  overflow-x: hidden;
}

body.theme-perfex-studio #task .tc-content,
body.theme-perfex-studio #task #task-comments .comment-content {
  max-width: 100%;
  overflow-x: auto;
}

body.theme-perfex-studio #task .tc-content table,
body.theme-perfex-studio #task #task-comments .comment-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

body.theme-perfex-studio #task .tc-content pre,
body.theme-perfex-studio #task #task-comments .comment-content pre,
body.theme-perfex-studio #task .tc-content code,
body.theme-perfex-studio #task #task-comments .comment-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

body.theme-perfex-studio #task .tc-content img,
body.theme-perfex-studio #task .comment-content img,
body.theme-perfex-studio #task .tc-content video,
body.theme-perfex-studio #task .comment-content video,
body.theme-perfex-studio #task .tc-content iframe,
body.theme-perfex-studio #task .comment-content iframe,
body.theme-perfex-studio #task .tc-content table,
body.theme-perfex-studio #task .comment-content table,
body.theme-perfex-studio #task .tc-content pre,
body.theme-perfex-studio #task .comment-content pre {
  max-width: 100%;
}

body.theme-perfex-studio #task .tc-content a,
body.theme-perfex-studio #task .comment-content a {
  overflow-wrap: anywhere;
}

body.theme-perfex-studio .studio-nextcloud-project-files {
  border-radius: 16px;
  border-color: var(--studio-border) !important;
  box-shadow: var(--studio-shadow-soft);
}

body.theme-perfex-studio .studio-nextcloud-project-files__body {
  padding: 1rem 1.1rem !important;
}

/* Nextcloud project files (клиент): те же приёмы, что у .table.dt-table в этой теме.
   Класс dt-table не ставим — иначе initDataTableInline() навесит DataTables на динамический tbody. */
body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-intro {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--studio-muted);
  max-width: 52rem;
  margin-bottom: 1rem;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius-sm);
  margin-bottom: 1rem;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-toolbar .btn {
  border-radius: 10px;
  font-weight: 600;
  min-height: 2.5rem;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-files-wrap.studio-project-table-wrap {
  margin-bottom: 0;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-files-table {
  margin-bottom: 0;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-files-table > thead > tr > th {
  background: rgba(241, 245, 249, 0.9);
  color: #52627b;
  border-bottom: 1px solid var(--studio-border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  padding-left: 1rem;
  padding-right: 1rem;
  vertical-align: middle;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-files-table > tbody > tr > td {
  border-color: rgba(226, 232, 240, 0.9);
  vertical-align: middle;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-files-table > tbody > tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius-sm);
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-pagination-bar .nc-pagination-meta {
  flex: 1 1 auto;
  text-align: center;
  min-width: 12rem;
}

body.theme-perfex-studio .studio-project-shell__group .studio-nextcloud-project-files .nc-pagination-bar .btn {
  min-width: 7.5rem;
  font-weight: 600;
  border-radius: 10px;
}

body.theme-perfex-studio .invoices-stats .progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}

body.theme-perfex-studio .invoices-stats .progress-bar {
  border-radius: 999px;
}

body.theme-perfex-studio .modal-content {
  border-radius: var(--studio-radius);
  border: 1px solid var(--studio-border);
  box-shadow: var(--studio-shadow);
}

body.theme-perfex-studio .dataTables_wrapper .dataTables_filter input,
body.theme-perfex-studio .dataTables_wrapper .dataTables_length select {
  border-radius: var(--studio-radius-sm);
}

body.theme-perfex-studio .pagination > li > a {
  border-radius: 10px !important;
}

body.theme-perfex-studio .login-heading {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--studio-text);
}

body.theme-perfex-studio .well {
  border-radius: var(--studio-radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--studio-border);
}

/* Login / register: full-width content, hide sidebar */
body.theme-perfex-studio.customers_login .studio-sidebar,
body.theme-perfex-studio.register .studio-sidebar {
  display: none;
}

body.theme-perfex-studio.customers_login .studio-sidebar-backdrop,
body.theme-perfex-studio.register .studio-sidebar-backdrop {
  display: none !important;
}

body.theme-perfex-studio.customers_login .studio-shell,
body.theme-perfex-studio.register .studio-shell {
  display: block;
}

body.theme-perfex-studio.customers_login .studio-main,
body.theme-perfex-studio.register .studio-main {
  width: 100%;
  max-width: 100%;
}

body.theme-perfex-studio.customers_login .studio-mobile-header,
body.theme-perfex-studio.register .studio-mobile-header {
  display: none;
}

body.theme-perfex-studio.customers_login .studio-topbar,
body.theme-perfex-studio.register .studio-topbar {
  display: none;
}

body.theme-perfex-studio.customers_login .studio-page-container,
body.theme-perfex-studio.register .studio-page-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: 70vh;
}

/* Иначе .row как flex-элемент сжимается до min-content и колонки login/register становятся «ниточкой» */
body.theme-perfex-studio.customers_login .studio-page-container > .studio-main-row,
body.theme-perfex-studio.register .studio-page-container > .studio-main-row {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.theme-perfex-studio.customers_login .login-form .panel_s,
body.theme-perfex-studio.register #register-form .panel_s {
  box-shadow: var(--studio-shadow);
}

/* Responsive */
@media (max-width: 991px) {
  body.theme-perfex-studio .studio-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.12);
  }

  body.theme-perfex-studio .studio-sidebar.is-open {
    transform: translateX(0);
  }

  [dir="rtl"] body.theme-perfex-studio .studio-sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  [dir="rtl"] body.theme-perfex-studio .studio-sidebar.is-open {
    transform: translateX(0);
  }

  body.theme-perfex-studio .studio-mobile-header {
    display: flex;
  }

  body.theme-perfex-studio .studio-topbar {
    padding-top: 8px;
  }

  body.theme-perfex-studio .studio-project-shell__body {
    padding: 0.95rem 0.85rem 1rem;
  }
}

[dir="rtl"] body.theme-perfex-studio .studio-sidebar {
  border-right: none;
  border-left: 1px solid var(--studio-border);
}

[dir="rtl"] body.theme-perfex-studio .studio-project-card__accent {
  left: auto;
  right: 0;
  border-radius: 0 var(--studio-radius-sm) var(--studio-radius-sm) 0;
}

/* ========== Client home — bento dashboard ========== */
body.theme-perfex-studio .studio-dash-root {
  width: 100%;
  max-width: 100%;
}

body.theme-perfex-studio .studio-dash-bento {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

body.theme-perfex-studio .studio-dash-spotlight {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.35rem 1.6rem;
  border-radius: 22px;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 45%, #2563eb 100%);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.theme-perfex-studio .studio-dash-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.42);
  color: #fff !important;
}

body.theme-perfex-studio .studio-dash-spotlight__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.92;
}

body.theme-perfex-studio .studio-dash-spotlight__value {
  font-family: "Syne", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

body.theme-perfex-studio .studio-dash-spotlight__hint {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.95;
}

body.theme-perfex-studio .studio-dash-panel {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: min(100%, 300px);
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--studio-blur);
  backdrop-filter: var(--studio-blur);
  border: 1px solid var(--studio-border);
  box-shadow: var(--studio-shadow-soft);
}

body.theme-perfex-studio .studio-dash-panel--projects {
  flex: 1 1 100%;
  min-width: 100%;
}

@media (min-width: 1200px) {
  body.theme-perfex-studio .studio-dash-panel--projects {
    flex: 1 1 calc(62% - 0.75rem);
    min-width: 360px;
  }

  body.theme-perfex-studio .studio-dash-panel--invoices {
    flex: 1 1 calc(38% - 0.75rem);
    min-width: 280px;
  }

  body.theme-perfex-studio .studio-dash-panel--proposals,
  body.theme-perfex-studio .studio-dash-panel--estimates {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 300px;
  }
}

body.theme-perfex-studio .studio-dash-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
}

body.theme-perfex-studio .studio-dash-panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--studio-text);
  letter-spacing: -0.02em;
}

body.theme-perfex-studio .studio-dash-panel__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--studio-accent-hover);
  text-decoration: none !important;
  white-space: nowrap;
}

body.theme-perfex-studio .studio-dash-panel__link:hover {
  text-decoration: underline !important;
}

body.theme-perfex-studio .studio-dash-panel__empty {
  margin: 0 0 1rem;
  color: var(--studio-muted);
  font-size: 0.95rem;
}

body.theme-perfex-studio .studio-dash-panel__cta {
  border-radius: 12px;
}

body.theme-perfex-studio .studio-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-perfex-studio .studio-dash-list__item {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

body.theme-perfex-studio .studio-dash-list__item:first-of-type {
  border-top: none;
}

body.theme-perfex-studio .studio-dash-list__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.95rem 0.15rem;
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 14px;
  margin: 0 -0.15rem;
  transition: background 0.15s ease;
}

body.theme-perfex-studio .studio-dash-list__link:hover {
  background: rgba(59, 130, 246, 0.06);
}

body.theme-perfex-studio .studio-dash-list__main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1 1 160px;
  min-width: 0;
}

body.theme-perfex-studio .studio-dash-list__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

body.theme-perfex-studio .studio-dash-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.theme-perfex-studio .studio-dash-list__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--studio-text);
  line-height: 1.3;
  word-break: break-word;
}

body.theme-perfex-studio .studio-dash-list__meta {
  font-size: 0.78rem;
  color: var(--studio-muted);
  line-height: 1.35;
}

body.theme-perfex-studio .studio-dash-list__amount {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--studio-text);
  white-space: nowrap;
}

body.theme-perfex-studio .studio-dash-list__chev {
  color: var(--studio-muted);
  font-size: 0.75rem;
  opacity: 0.65;
  flex-shrink: 0;
  margin-inline-start: auto;
}

body.theme-perfex-studio .studio-dash-list--compact .studio-dash-list__link {
  flex-wrap: nowrap;
}

body.theme-perfex-studio .studio-dash-list--compact .studio-dash-list__main {
  flex: 1 1 auto;
}

body.theme-perfex-studio .studio-dash-pill-progress {
  --dash-p: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

body.theme-perfex-studio .studio-dash-pill-progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--dash-p) * 1%);
  max-width: 100%;
  background: linear-gradient(90deg, var(--studio-accent), #60a5fa);
  opacity: 0.45;
  border-radius: 999px;
}

body.theme-perfex-studio .studio-dash-pill-progress__label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--studio-text);
}

body.theme-perfex-studio .studio-dash-chip {
  flex-shrink: 0;
  max-width: 140px;
}

body.theme-perfex-studio .studio-dash-chip .label {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 0.28rem 0.55rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.theme-perfex-studio .studio-dash-chip--muted .label {
  background: rgba(148, 163, 184, 0.2) !important;
  color: var(--studio-text) !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

body.theme-perfex-studio .studio-dash-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--studio-radius);
}

body.theme-perfex-studio .studio-dash-empty__text {
  margin: 0;
  color: var(--studio-muted);
  font-size: 1rem;
}

[dir="rtl"] body.theme-perfex-studio .studio-dash-list__chev .fa-chevron-right::before {
  content: "\f053";
}

[dir="rtl"] body.theme-perfex-studio .studio-dash-pill-progress__bar {
  left: auto;
  right: 0;
}
