/* Visual system from the approved Sites admin, adapted to the production DOM. */
:root {
  --ink: #202c40;
  --muted: #637189;
  --quiet-value: #475467;
  --line: #e5eaf2;
  --surface: #fff;
  --canvas: #f5f7fb;
  --brand: #315edf;
  --brand-dark: #254fc9;
  --brand-soft: #edf2ff;
  --success: #16705b;
  --warning: #945b09;
  --danger: #b43e48;
  --radius: 14px;
  --sidebar-width: 260px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
button, a { touch-action: manipulation; }
.workspace { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); padding: 25px 13px 18px; }
.sidebar .brand { gap: 11px; padding: 0 8px 24px; }
.sidebar .brand > div:nth-child(2) { min-width: 0; }
.sidebar .brand strong { display: block; max-width: 150px; font-size: 13px; line-height: 1.3; font-weight: 730; }
.sidebar .brand-mark { width: 38px; height: 40px; flex-shrink: 0; border-radius: 11px; font-size: 15px; letter-spacing: -.5px; }
.brand-subtitle { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 5px; }
.sidebar-close { color: var(--muted); border-color: var(--line); }
.sidebar nav { gap: 12px; }
.nav-search { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; color: var(--muted); }
.nav-search > svg { flex-shrink: 0; }
.nav-search input { width: 100%; min-width: 0; height: 35px; border: 0; padding: 7px 24px 7px 0; background: transparent; font-size: 11px; box-shadow: none; }
.nav-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nav-search input:focus { outline: 0; }
.nav-search:focus-within { outline: 3px solid #dbe5ff; border-color: var(--brand); }
.nav-search-clear { position: absolute; right: 5px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.nav-search-clear:hover { background: var(--brand-soft); color: var(--brand); }
.nav-sections { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 12px; scrollbar-gutter: stable; }
/* Keep complete rows in one scroll area, clear of overlay scrollbars. */
.nav-favorites, .nav-secondary { flex: 0 0 auto; max-height: none; overflow: visible; }
.nav-secondary { padding-right: 0; }
.nav-search-results { flex: 0 0 auto; display: grid; align-content: start; gap: 4px; overflow: visible; }
.nav-empty { color: var(--muted); padding: 12px 10px; font-size: 12px; }
.nav-section-title, .nav-group-label { color: var(--muted); text-transform: uppercase; letter-spacing: 1.1px; font-size: 10px; font-weight: 700; }
.nav-section-title { padding: 7px 12px; }
.nav-group-label { min-height: 38px; padding: 9px 12px; }
.nav-group-label:hover { color: var(--ink); }
.nav-button { width: 100%; min-height: 39px; padding: 9px 12px; gap: 11px; font-size: 12px; font-weight: 570; line-height: 1.45; color: var(--muted); }
.nav-button:hover { background: var(--canvas); color: var(--ink); }
.nav-button.active { background: var(--brand-soft); color: var(--brand); box-shadow: none; font-weight: 670; }
.nav-icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: inherit; }
.nav-button.active .nav-icon { color: inherit; }
.nav-icon svg { display: block; width: 19px; height: 19px; }
.nav-favorite { color: #8491a7; }
.nav-favorite:hover, .nav-favorite[aria-pressed="true"] { color: #8c690e; background: #fff5dd; }
.account { border-color: var(--line); background: var(--surface); color: var(--muted); margin-top: 14px; padding: 15px 8px 0; }
.account strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.account span, .account small { font-size: 10px; }
.account-avatar { width: 35px; height: 35px; background: #e8efff; color: #5272bd; font-size: 12px; font-weight: 650; }
.account button { min-height: 34px; margin-top: 4px; }
.topbar { height: 74px; gap: 18px; padding: 12px 30px; background: #ffffffed; }
.workspace-context { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.global-search { width: min(340px, 38vw); flex: 0 1 340px; min-width: 120px; }
.global-search input { height: 38px; padding: 8px 52px 8px 34px; border-color: var(--line); background: #fafbfd; font-size: 12px; }
.search-icon { display: inline-flex; align-items: center; left: 10px; top: 11px; font-size: inherit; }
.global-search kbd { top: 9px; right: 9px; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.environment-chip { border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 650; }
.icon-button { width: 36px; height: 36px; border-radius: 9px; color: var(--muted); }
.notification-button { display: grid; place-items: center; padding: 0; }
.bell-icon { display: inline-flex; align-items: center; }
.notification-count { right: -4px; top: -4px; min-width: 18px; height: 18px; font-size: 9px; }
.main { max-width: 1680px; padding: 29px 30px 48px; }
h1 { font-size: 29px; font-weight: 720; letter-spacing: -.9px; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 680; letter-spacing: -.2px; }
h3 { font-size: 14px; font-weight: 650; }
.page-header { gap: 18px; margin-bottom: 25px; }
.page-header p { margin-top: 9px; font-size: 12px; line-height: 1.6; }
.panel { box-shadow: none; padding: 21px; margin-bottom: 20px; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { font-size: 16px; }
.section-heading p { font-size: 12px; }
.btn { min-height: 37px; padding: 8px 13px; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.5; border-color: var(--brand); box-shadow: 0 3px 7px #315edf14; }
.btn.secondary { border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: #c8d3e7; background: #fbfcff; }
.btn.small { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.btn.danger { background: #fff0f1; color: var(--danger); border-color: #f3d5d8; box-shadow: none; }
.btn.danger:hover { background: #fce3e6; }
.btn:disabled { opacity: .55; }
.text-button { font-size: 12px; font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { border-color: var(--line); border-radius: 8px; font-size: 13px; }
textarea { line-height: 1.6; }
.field label { font-size: 12px; font-weight: 600; }
.field-hint { font-size: 11px; line-height: 1.5; }
.field-error { font-size: 12px; }
.table-wrap { border-radius: 8px; }
th, td { padding: 13px 14px; border-color: #eef1f6; font-size: 13px; }
th { background: #fafbfd; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.clickable-row:hover { background: #f8faff; }
.status { border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 600; line-height: 1.5; }
.subnav { gap: 5px; padding-bottom: 12px; margin-bottom: 24px; }
.subnav-button { border-radius: 7px; border-color: transparent; padding: 8px 12px; font-size: 12px; font-weight: 550; background: transparent; }
.subnav-button:hover { background: var(--canvas); border-color: var(--line); color: var(--ink); }
.subnav-button.active { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); font-weight: 650; }
.overview-metrics { gap: 0; padding: 18px 0; margin-bottom: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.overview-card { min-height: 83px; padding: 0 18px; gap: 9px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; }
.overview-card:last-child { border-right: 0; }
.overview-card.zero { background: #fff; }
.overview-card:hover { background: #f8faff; }
.overview-card.attention { border-color: var(--line); background: #fff; }
.overview-card.attention .overview-value { color: var(--danger); }
.overview-value { font-size: 29px; font-weight: 680; letter-spacing: -.8px; }
.overview-label { font-size: 11px; font-weight: 550; line-height: 1.5; }
.dashboard-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
.dashboard-grid .panel { margin-bottom: 0; }
.work-item { font-size: 12px; }
.work-item-copy small, .work-item-meta, .schedule-item small { font-size: 11px; }
.work-item-meta { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; white-space: normal; }
.dashboard-integrations { margin-block: 20px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; }
.dialog-overlay { background: #18283d66; backdrop-filter: blur(2px); }
.dialog-card { border-radius: 16px; padding: 25px; box-shadow: 0 20px 80px #13223b30; }
.dialog-heading h2 { font-size: 18px; }
.dialog-description { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-close { border: 1px solid var(--line); background: #fff; }
.dialog-actions { padding-top: 18px; border-color: var(--line); }
.workflow-comparison { gap: 20px; }
.workflow-comparison > div { padding: 16px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; }
.message.ADMIN { background: #edf2ff; }
.messages { background: #fafbfd; }
.chat-conversation { border-color: var(--line); box-shadow: none; }
.content-live-preview, .push-device-preview { box-shadow: none; }
.login-page { background: var(--canvas); }
.login-card { border-radius: 18px; box-shadow: 0 12px 42px #24344d0c; }
@media (min-width: 1600px) { .main { padding: 35px 42px 50px; } .topbar { padding-inline: 42px; } .dashboard-grid { grid-template-columns: minmax(0, 1fr) 325px; } }
@media (min-width: 901px) and (max-width: 1200px) { :root { --sidebar-width: 235px; } .workspace-context { display: none; } .global-search { margin-right: auto; flex-basis: 380px; } .main { padding-inline: 24px; } .topbar { padding-inline: 24px; } }
@media (min-width: 901px) and (max-width: 1400px) { .overview-card { border-right: 1px solid var(--line); padding: 11px 18px; } .overview-card:nth-child(3n) { border-right: 0; } .overview-card:nth-child(n+4) { border-top: 1px solid var(--line); } .overview-metrics { padding-block: 0; } }
@media (max-width: 1120px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: min(300px, calc(100vw - 52px)); padding-top: 20px; }
  .sidebar .brand { padding-bottom: 18px; }
  .nav-search input { min-height: 42px; font-size: 12px; }
  .nav-search-clear { width: 36px; height: 36px; }
  .nav-button, .nav-favorite { min-height: 42px; }
  .topbar { height: 68px; padding: 12px 16px; gap: 10px; }
  .workspace-context { display: none; }
  .global-search { min-width: 0; flex: 1; width: auto; }
  .global-search input { height: 42px; padding-right: 10px; font-size: 12px; }
  .global-search kbd { display: none; }
  .search-icon { top: 13px; }
  .environment-chip { display: none; }
  .icon-button { width: 40px; height: 40px; }
  .main { padding: 23px 18px 36px; }
  h1 { font-size: 25px; letter-spacing: -.7px; }
  .btn:not(.small), .subnav-button { min-height: 42px; }
  .overview-card { padding: 13px 15px; border-right: 1px solid var(--line); }
  .overview-card:nth-child(3n) { border-right: 0; }
  .overview-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .overview-metrics { padding-block: 0; }
  .panel { padding: 18px; }
}
@media (max-width: 560px) {
  .main { padding: 22px 16px 32px; }
  .page-header { gap: 12px; }
  .page-header p { font-size: 11px; }
  .overview-card { min-height: 90px; border-right: 1px solid var(--line); }
  .overview-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .overview-card:nth-child(2n) { border-right: 0; }
  .overview-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .overview-value { font-size: 27px; }
  .dialog-overlay { padding: 16px; }
  .dialog-card { padding: 20px; max-height: calc(100dvh - 32px); }
  .dialog-actions .btn { flex: 1 1 auto; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; }
  .subnav-button { white-space: nowrap; flex-shrink: 0; }
}
