/* =====================================================================
   Shree KP Kumar SEO & GMB Suite — UI system
   Roboto · Material elevation · brand: #1eb2ef / #f89a2c / #56b955
   ===================================================================== */
:root {
  --brand: #1eb2ef; --brand-2: #f89a2c; --brand-3: #56b955;
  --brand-ink: #0a7fb2;
  --good: #34a853; --good-bg: #e7f6ec; --good-ink: #1e7b34;
  --warn: #f29900; --warn-bg: #fff4e0; --warn-ink: #9a5b00;
  --bad: #e5483b;  --bad-bg: #fdecea;  --bad-ink: #b3261e;
  --info: #1eb2ef; --info-bg: #e5f6fd; --info-ink: #0a6d99;
  --orange-bg: #fff1e3; --orange-ink: #a85a00;
  --ink: #1f2933; --ink-2: #4a5866; --muted: #7b8794; --line: #e4e8ee; --line-2: #eef1f5;
  --bg: #f4f6f9; --surface: #fff; --sidebar: #0f1c2b; --sidebar-ink: #c4cfdb;
  --radius: 12px; --radius-sm: 8px;
  --e1: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --e2: 0 4px 12px rgba(16,24,40,.08), 0 2px 4px rgba(16,24,40,.05);
  --e3: 0 12px 32px rgba(16,24,40,.14);
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
.h3 { font-size: 15px; margin: 18px 0 8px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.num, .table td.num, .kpi-card strong { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .strong { font-weight: 500; }
.center { text-align: center; } .nowrap { white-space: nowrap; } .mt { margin-top: 12px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.print-only, .print-header { display: none; }

/* Material Symbols */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
      display: inline-block; vertical-align: middle; letter-spacing: normal; text-transform: none; white-space: nowrap;
      -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.ms.sm { font-size: 16px; }

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex-shrink: 0; background: var(--sidebar); color: var(--sidebar-ink); display: flex; flex-direction: column;
           position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-logo { max-height: 34px; width: auto; }
.brand-text strong { display: block; color: #fff; font-weight: 500; font-size: 15px; }
.brand-text small { color: #8ea0b3; font-size: 11px; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; padding: 4px; border-radius: 8px; background: rgba(255,255,255,.06); }
.brand-mark span { width: 6px; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 10px; background: var(--brand-3); }
.brand-mark span:nth-child(2) { height: 16px; background: var(--brand-2); }
.brand-mark span:nth-child(3) { height: 22px; background: var(--brand); }
.brand-mark.lg { height: 48px; padding: 8px; gap: 5px; background: var(--info-bg); }
.brand-mark.lg span { width: 10px; } .brand-mark.lg span:nth-child(1){height:14px} .brand-mark.lg span:nth-child(2){height:22px} .brand-mark.lg span:nth-child(3){height:32px}
.nav { padding: 8px 10px 16px; flex: 1; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f8296; padding: 16px 10px 6px; }
.nav-section-admin { color: var(--brand-2); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--sidebar-ink); font-size: 13.5px; margin-bottom: 2px; }
.nav-link:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav-link.active { background: color-mix(in srgb, var(--brand) 20%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav-link.active .ms { color: var(--brand); }
.nav-link.disabled { opacity: .5; cursor: not-allowed; }
.nav-badge { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 10px; background: rgba(255,255,255,.08); color: #9fb0c2; }
.sidebar-foot { padding: 12px 18px; font-size: 11px; color: #5d6f82; }
.sidebar-scrim { display: none; }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 24px;
          background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: 0; color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.content { padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; width: 100%; }
.app-footer { margin-top: auto; padding: 14px 24px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
       font: 500 13.5px var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .ms { font-size: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--e1); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); box-shadow: var(--e2); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: var(--bad-ink); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); text-decoration: none; }
.icon-btn .ms { font-size: 19px; }
form.inline { display: inline; }
.only-mobile { display: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 20px; text-decoration: none !important; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-good { background: var(--good-bg); color: var(--good-ink); }

/* user menu */
.user-menu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: 500 13px var(--font); color: var(--ink-2); padding: 4px 6px; border-radius: 20px; }
.avatar-btn:hover { background: var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; display: grid; place-items: center; font-weight: 500; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border-radius: 10px; box-shadow: var(--e3); padding: 6px; display: none; }
.menu.open { display: block; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head small { display: block; color: var(--muted); }
.menu-item { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: 14px var(--font); color: var(--ink); }
.menu-item:hover { background: var(--line-2); }

/* ---------------- Cards & grids ---------------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--e1); padding: 18px 20px; border: 1px solid var(--line-2); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 16px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.card-head + .card-head { margin-top: 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3-1 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--e1);
            border: 1px solid var(--line-2); border-top: 3px solid var(--k, var(--brand)); transition: box-shadow .2s, transform .2s; }
.kpi-card:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.kpi-card > div:last-child { min-width: 0; flex: 1; }
.kpi-card small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card strong { display: block; font-size: 26px; font-weight: 500; line-height: 1.25; margin: 2px 0; }
.kpi-card strong em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 400; }
.kpi-card .muted { font-size: 12.5px; display: block; }
.kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--k, var(--brand)) 14%, #fff); color: var(--k, var(--brand)); }
.accent-brand { --k: var(--brand); } .accent-orange { --k: var(--brand-2); } .accent-green { --k: var(--brand-3); }
.accent-good { --k: var(--good); } .accent-warn { --k: var(--warn); } .accent-bad { --k: var(--bad); } .accent-muted { --k: #9aa5b1; }

/* Admin strip */
.admin-strip { background: linear-gradient(90deg, #13263a, #1b3550); color: #dfe8f1; border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--e2); }
.admin-strip-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.admin-strip-label .ms { font-size: 15px; }
.admin-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(160px, 1.4fr) auto; gap: 16px; align-items: center; }
.mini-kpi small { display: block; color: #93a7bc; font-size: 11.5px; }
.mini-kpi strong { display: block; font-size: 20px; font-weight: 500; color: #fff; }
.mini-kpi .muted { color: #93a7bc; }
.mini-kpi a { color: var(--brand); }
.admin-strip .progress { background: rgba(255,255,255,.12); margin: 4px 0; }
.mini-chart { height: 60px; }
.admin-strip .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.admin-banner { display: flex; gap: 8px; align-items: flex-start; background: #13263a; color: #dfe8f1; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.admin-banner .ms { color: var(--brand-2); font-size: 18px; }

/* Tone utilities */
.tone-good { color: var(--good-ink) !important; } .tone-warn { color: var(--warn-ink) !important; } .tone-bad { color: var(--bad-ink) !important; }
.tone-muted { color: var(--muted) !important; } .tone-brand { color: var(--brand-ink) !important; }
.bg-good { background: var(--good) !important; } .bg-warn { background: var(--warn) !important; } .bg-bad { background: var(--bad) !important; }
.bg-info, .bg-brand { background: var(--brand) !important; } .bg-muted { background: #b5bec8 !important; }

/* Badges / chips */
.badge { display: inline-block; font-size: 11.5px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 20px; white-space: nowrap; vertical-align: middle; }
.badge-good { background: var(--good-bg); color: var(--good-ink); } .badge-warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge-bad { background: var(--bad-bg); color: var(--bad-ink); } .badge-info, .badge-brand { background: var(--info-bg); color: var(--info-ink); }
.badge-muted { background: var(--line-2); color: var(--ink-2); } .badge-orange { background: var(--orange-bg); color: var(--orange-ink); }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12.5px; background: var(--line-2); color: var(--ink-2); }
.chip .ms { font-size: 15px; } .chip strong { font-weight: 500; }
.chip-good { background: var(--good-bg); color: var(--good-ink); } .chip-info { background: var(--info-bg); color: var(--info-ink); }
.chip-bad { background: var(--bad-bg); color: var(--bad-ink); } .chip-muted { background: var(--line-2); }

/* Progress */
.progress { height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.progress.sm { height: 6px; margin-top: 4px; }
.progress > span { display: block; height: 100%; border-radius: 8px; background: var(--brand); transition: width .6s ease; }
.score-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.score-cell .progress { flex: 1; margin: 0; }
.score-pill { color: #fff; font-weight: 500; font-size: 12px; min-width: 32px; text-align: center; padding: 3px 6px; border-radius: 6px; }
.score-ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; border: 4px solid currentColor; flex-shrink: 0; }

/* Charts */
.chart-box { position: relative; width: 100%; }
.h-220 { height: 220px; } .h-280 { height: 280px; }
.chart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; color: var(--muted);
               background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f4f6f8 10px, #f4f6f8 20px); border-radius: var(--radius-sm); text-align: center; padding: 16px; }
.chart-empty .ms { font-size: 32px; color: #b5bec8; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-brand { background: var(--brand); } .sw-green { background: var(--brand-3); }
.gauge-wrap { position: relative; height: 170px; margin: 4px auto 8px; max-width: 280px; }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gauge-label strong { font-size: 38px; font-weight: 700; display: block; line-height: 1; }
.gauge-label small { color: var(--muted); }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.issue-list li strong { margin-left: auto; font-weight: 500; }
.issue-list .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #b5bec8; }

/* Heatmap */
.heatmap { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 12.5px; }
.heatmap th { font-weight: 500; color: var(--ink-2); text-align: center; padding: 4px; white-space: nowrap; }
.heatmap tbody th, .heatmap tfoot th { text-align: left; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.heatmap td { text-align: center; padding: 0; }
.heat { display: block; padding: 7px 4px; border-radius: 6px; font-weight: 500; font-variant-numeric: tabular-nums; transition: transform .15s; }
.heat:hover { transform: scale(1.08); }
.heat-good { background: var(--good-bg); color: var(--good-ink); box-shadow: inset 0 0 0 1px #bfe5c9; }
.heat-warn { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px #ffdca3; }
.heat-bad { background: var(--bad-bg); color: var(--bad-ink); box-shadow: inset 0 0 0 1px #f7c3bf; }
.heatmap tfoot td { padding-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: #f8fbfd; }
.table-dense td { padding: 7px 10px; }
.table th.num, .table td.num { text-align: right; }
.sortable th[data-sort] { cursor: pointer; user-select: none; }
.sortable th[data-sort]::after { content: ' ↕'; opacity: .35; }
.sortable th.asc::after { content: ' ▴'; opacity: 1; } .sortable th.desc::after { content: ' ▾'; opacity: 1; }
.th-sort { color: inherit; } .th-sort:hover { color: var(--brand-ink); text-decoration: none; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; min-width: 0; }
.field > span:first-child { color: var(--ink-2); font-weight: 500; font-size: 12.5px; }
.field input, .field select, .field textarea, .input-sm {
  font: 14px var(--font); color: var(--ink); background: #fff; border: 1px solid #d5dbe3; border-radius: 8px; padding: 8px 10px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input-sm:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input-sm { padding: 5px 8px; font-size: 13px; }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.field .error { color: var(--bad-ink); }
.field.inline { flex-direction: row; align-items: center; gap: 6px; background: #fff; border: 1px solid #d5dbe3; border-radius: 8px; padding: 0 0 0 10px; }
.field.inline input, .field.inline select { border: 0; box-shadow: none; }
.field.inline .ms { color: var(--muted); }
.grow { flex: 1; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.span-2 { grid-column: span 2; } .span-4 { grid-column: 1 / -1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .field.inline select { min-width: 220px; padding-right: 10px; }
.quick-ranges { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.quick-ranges a { font-size: 12.5px; padding: 4px 10px; border-radius: 20px; background: var(--line-2); color: var(--ink-2); }
.quick-ranges a:hover { background: var(--info-bg); color: var(--info-ink); text-decoration: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.inline-form .field { min-width: 140px; }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin: 8px 0; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.check-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.check-pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; font-size: 12.5px; cursor: pointer; background: #fff; }
.check-pill:has(input:checked) { background: var(--info-bg); border-color: var(--brand); color: var(--info-ink); }
.check-pill.on { opacity: .65; }
.color-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.color-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.color-field input { width: 38px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; }
.color-field small { display: block; color: var(--muted); }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row small { display: block; color: var(--muted); }
.switch { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: #c9d1da; position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--e1); transition: transform .2s; }
.switch:checked { background: var(--brand-2); } .switch:checked::after { transform: translateX(18px); }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 16px 0 4px; }
.settings-form { display: flex; flex-direction: column; gap: 18px; }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; }
.alert .ms { font-size: 19px; }
.alert-success { background: var(--good-bg); color: var(--good-ink); } .alert-error { background: var(--bad-bg); color: var(--bad-ink); }
.alert-info { background: var(--info-bg); color: var(--info-ink); } .alert-warn { background: var(--warn-bg); color: var(--warn-ink); }

/* Empty state, tags, misc */
.empty-state { text-align: center; padding: 44px 20px; }
.empty-state h2 { font-size: 20px; margin: 10px 0 6px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 12px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--info-bg); }
.empty-icon .ms { font-size: 34px; }
.tag-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { display: inline-flex; align-items: center; gap: 4px; background: var(--line-2); border-radius: 20px; padding: 3px 4px 3px 10px; font-size: 12.5px; }
.tag-x { border: 0; background: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; color: var(--muted); font-size: 16px; line-height: 1; }
.tag-x:hover { background: var(--bad-bg); color: var(--bad-ink); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card-top { display: flex; justify-content: space-between; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.detail-grid dt { color: var(--muted); font-size: 12px; } .detail-grid dd { margin: 2px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 3px var(--info-bg); }
details summary { cursor: pointer; color: var(--brand-ink); font-size: 13px; margin-bottom: 8px; }
.filter-card .btn-row { margin-top: 14px; }

/* Dialog */
.dialog { border: 0; border-radius: 14px; padding: 22px; max-width: 420px; width: calc(100% - 32px); box-shadow: var(--e3); }
.dialog::backdrop { background: rgba(15, 28, 43, .45); }
.dialog h2 { font-size: 18px; margin-bottom: 6px; }
.dialog p { color: var(--ink-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Auth / installer */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
              radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: var(--e3); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-brand { text-align: center; }
.auth-brand h1 { font-size: 20px; margin-top: 12px; }
.auth-brand p { color: var(--muted); margin: 4px 0 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 13px; }
.check-list .ok { color: var(--good-ink); } .check-list .fail { color: var(--bad-ink); font-weight: 500; } .check-list .warn { color: var(--warn-ink); }
.steps { padding-left: 20px; line-height: 1.8; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
  .admin-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-chart { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .grid-3-1, .grid-3 { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--e3); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .only-mobile { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { padding: 10px 14px; }
  .content { padding: 14px; }
  .hide-sm { display: none; }
  .admin-strip-grid { grid-template-columns: 1fr 1fr; }
  .quick-ranges { margin-left: 0; }
}
@media (max-width: 520px) {
  .filter-grid, .two-col, .check-list { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .kpi-card strong { font-size: 22px; }
  .filter-bar .field.inline select { min-width: 0; width: 100%; }
  .filter-bar .field.inline { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.table .mono { word-break: break-all; }
@media (max-width: 520px) {
  .topbar-title p, .topbar .pill { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-card { flex-direction: column; gap: 8px; padding: 12px; }
  .kpi-icon { width: 32px; height: 32px; }
}

/* ---------------- Phase 2 components ---------------- */
.link-card { color: inherit; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.link-card:hover { box-shadow: var(--e2); transform: translateY(-2px); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.progress.lg { height: 12px; }
.progress-meta { display: flex; gap: 10px; align-items: baseline; margin: 8px 0 4px; }
.progress-meta strong { font-size: 20px; font-weight: 500; }
.audit-progress, .run-progress { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.run-log { list-style: none; margin: 6px 0 0; padding: 0; max-height: 220px; overflow: auto; font-size: 13px; }
.run-log li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line-2); }
.run-log .heat { display: inline-block; min-width: 38px; padding: 3px 6px; text-align: center; }
.small-strong { font-size: 18px !important; }
fieldset.pick { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
fieldset.pick legend { font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 0 6px; }
.link-btn { background: none; border: 0; color: var(--brand-ink); font: 12px var(--font); cursor: pointer; margin-left: 6px; }
.heat-none { background: var(--line-2); color: var(--muted); }
.comp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.comp-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.comp-top strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-badge { border: 0; cursor: pointer; font-family: var(--font); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 12px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--e1); }

/* Audit report */
.report-hero { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; }
.report-hero h2 { font-size: 18px; word-break: break-all; }
.report-hero .gauge-wrap { margin: 0; }
.kpi-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.mini-stat { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 18px; border-radius: 10px; background: var(--line-2); text-decoration: none !important; min-width: 110px; }
.mini-stat strong { font-size: 26px; font-weight: 500; line-height: 1.1; }
.mini-stat span { font-size: 12px; color: var(--ink-2); }
.mini-stat:hover { box-shadow: var(--e1); }
.site-checks .kpi-card strong.check-val { font-size: 14px; font-weight: 500; }
.issue-groups { display: flex; flex-direction: column; gap: 8px; }
.issue-group { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; background: #fff; }
.issue-group.sev-bad { border-left-color: var(--bad); } .issue-group.sev-warn { border-left-color: var(--warn); } .issue-group.sev-info { border-left-color: var(--brand); }
.issue-group summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; color: var(--ink); list-style: none; margin: 0; font-size: 14px; }
.issue-group summary::-webkit-details-marker { display: none; }
.issue-group summary::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; margin-left: 8px; color: var(--muted); transition: transform .2s; }
.issue-group[open] summary::after { transform: rotate(180deg); }
.issue-group summary strong { font-weight: 500; flex: 1; }
.issue-count { background: var(--line-2); border-radius: 20px; padding: 2px 10px; font-weight: 500; font-size: 13px; }
.issue-body { padding: 0 14px 14px; }
.fix { display: flex; gap: 8px; background: var(--good-bg); color: var(--good-ink); padding: 10px 12px; border-radius: 8px; margin: 0 0 10px; font-size: 13.5px; }
.fix .ms { font-size: 18px; }
.url-list { margin: 0; padding-left: 18px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.url-list a { word-break: break-all; }
.url-cell { max-width: 360px; }

/* Location search / geocode */
.loc-search { position: relative; }
.ac-list, .geo-results { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--e2); max-height: 280px; overflow: auto; z-index: 20; }
.ac-list { position: absolute; left: 0; right: 0; top: 62px; }
.ac-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font: 13px var(--font); cursor: pointer; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.ac-item:hover, .ac-item:focus { background: var(--info-bg); }
.ac-item small { color: var(--muted); }
.ac-empty { padding: 8px 12px; font-size: 12.5px; color: var(--muted); }

/* Grid map */
.grid-map { height: 460px; border-radius: 10px; overflow: hidden; background: #eef2f5; z-index: 0; }
.grid-map:not(.ready) { display: none; }
.grid-map.ready + .mini-grid { display: none; }
.mini-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 46px)); gap: 4px; justify-content: center; padding: 10px 0; }
.mini-grid .heat { text-align: center; }
.grid-pin { background: none; border: 0; }
.pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font: 700 12px var(--font); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin-good { background: var(--good); } .pin-warn { background: var(--warn); } .pin-bad { background: var(--bad); } .pin-none { background: #9aa5b1; }
@media (max-width: 860px) { .report-hero { grid-template-columns: 1fr; } .grid-map { height: 340px; } }
.run-progress[hidden], .audit-progress[hidden], .geo-results[hidden], .ac-list[hidden] { display: none !important; }

/* ---------------- Phase 3 components ---------------- */
.nap-list { margin: 0; display: flex; flex-direction: column; }
.nap-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); align-items: start; }
.nap-row dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.nap-row dd { margin: 0; display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; font-size: 14px; word-break: break-word; }
.copy-btn { flex-shrink: 0; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 32px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.copy-btn:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--info-bg); }
.copy-btn.done { background: var(--good); color: #fff; border-color: var(--good); }
.copy-btn .ms { font-size: 17px; }
.cit-table td { vertical-align: top; }
.cit-table .input-sm { min-width: 120px; }
.cit-table tr.st-live { box-shadow: inset 3px 0 0 var(--good); }
.cit-table tr.st-needs_fix { box-shadow: inset 3px 0 0 var(--bad); background: #fffafa; }
.cit-table tr.st-submitted { box-shadow: inset 3px 0 0 var(--brand); }
.cit-table tr.st-skipped { opacity: .55; }
.cit-table tr.saving { opacity: .6; }
.status-select { font-weight: 500; }
.prio { color: var(--brand-2); font-size: 11px; letter-spacing: -1px; margin-left: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #13263a; color: #fff; padding: 10px 18px; border-radius: 10px; box-shadow: var(--e3); z-index: 100; font-size: 13.5px; transition: all .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-bad { background: var(--bad-ink); }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; margin-right: 6px; }
.btn-ghost .spinner { border-color: rgba(0,0,0,.15); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.target-tabs { margin-bottom: -4px; }
.run-row form { display: inline; }
.newlost { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.newlost .chip { margin: 2px; }
.row-me { background: var(--info-bg) !important; }
@media (max-width: 520px) { .nap-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------- Phase 4 components ---------------- */
.kd { display: inline-grid; place-items: center; min-width: 32px; height: 24px; border-radius: 12px; font-weight: 500; font-size: 12px; padding: 0 6px; }
.kd-good { background: var(--good-bg); color: var(--good-ink); } .kd-warn { background: var(--warn-bg); color: var(--warn-ink); } .kd-bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge.intent { min-width: 22px; text-align: center; }
.spark { display: block; }
.ms.feat { font-size: 17px; color: var(--ink-2); margin-right: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .chip { text-decoration: none; }
.kw { font-weight: 500; }
.heat.pos { display: inline-block; min-width: 32px; text-align: center; padding: 3px 6px; }
.big-ico { font-size: 30px; color: var(--brand); }
.gap-kpis .kpi-card { text-decoration: none !important; color: inherit; }
.gap-kpis .kpi-card.is-active { outline: 2px solid var(--k); outline-offset: -2px; }
.serp-grid { display: flex; flex-direction: column; gap: 8px; }
.serp-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.serp-card summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.serp-card summary::-webkit-details-marker { display: none; }
.serp-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.serp-body { padding: 0 14px 14px; }
.serp-body h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; }
.ad-card { border: 1px solid #ffe0b2; background: #fffaf3; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.ad-title { color: #1a0dab; font-size: 15px; margin: 2px 0; }
.org-list { margin: 0; padding-left: 22px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.org-list li.me { background: var(--info-bg); border-radius: 4px; font-weight: 500; }
.paa { margin: 0; padding-left: 18px; font-size: 13px; }

/* ---------------- Phase 4.1 ---------------- */
.pin-lbl { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; }
.heat .pack { font-size: 12px; vertical-align: -2px; margin-left: 2px; opacity: .7; }
.type-pick .check-pill { font-size: 13px; padding: 7px 12px; }

/* ---------------- Phase 4B ---------------- */
.star-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.star-bars li { display: grid; grid-template-columns: 36px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; }
.star-bars strong { text-align: right; font-weight: 500; }
.review-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.review { padding: 12px 0; border-top: 1px solid var(--line-2); }
.review p { margin: 6px 0 0; font-size: 13.5px; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.stars { color: #fbbc04; letter-spacing: 1px; } .stars .off { color: #dadce0; }
.owner-reply { margin-top: 8px; background: var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.reply-draft { margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.review.r1, .review.r2 { box-shadow: inset 3px 0 0 var(--bad); padding-left: 10px; }
.word-cloud { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; line-height: 1.6; }
.wc { color: var(--brand-ink); } .wc.neg { color: var(--bad-ink); }
.lh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 14px; }
.lh-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.lh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lh-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.lh-score small { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.lh-ring { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 4px solid currentColor; font-weight: 700; font-size: 16px; }
.cwv { list-style: none; margin: 12px 0 0; padding: 0; }
.cwv li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.lh-sub { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; }
.opp-list { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.prompt-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.prompt-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--line-2); border-radius: 8px; padding: 6px 6px 6px 10px; font-size: 13px; }
.ai-matrix td { vertical-align: middle; }
.ai-cell { border: 0; border-radius: 8px; padding: 6px 12px; font: 500 13px var(--font); cursor: pointer; min-width: 64px; }
.ai-cell.yes { background: var(--good-bg); color: var(--good-ink); } .ai-cell.no { background: var(--bad-bg); color: var(--bad-ink); }
.ai-cell .ms { font-size: 14px; margin-left: 3px; vertical-align: -2px; }
.dialog-wide { max-width: 760px; }
.ai-answer { max-height: 52vh; overflow: auto; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
@media print { .ai-cell { border: 1px solid #ddd; } }

/* ===== Phase 5 — Content Helper ===== */
.btn-accent { background: var(--brand-3); color: #fff; box-shadow: var(--e1); }
.btn-accent:hover { background: color-mix(in srgb, var(--brand-3) 85%, #000); }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.type-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card .ms { color: var(--brand-ink); }
.type-card:hover { background: var(--line-2); }
.type-card:has(input:checked) { border-color: var(--brand); background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--brand); }
.type-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
.check-col { display: grid; gap: 6px; }
.gen-out { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.gen-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.gen-head .btn-row { margin-top: 0; }
.md-body { font-size: 14.5px; line-height: 1.7; max-width: 76ch; }
.md-body h2 { font-size: 21px; margin: 20px 0 8px; } .md-body h3 { font-size: 17px; margin: 18px 0 6px; } .md-body h4, .md-body h5 { font-size: 15px; margin: 14px 0 4px; }
.md-body p { margin: 0 0 10px; } .md-body ul, .md-body ol { margin: 0 0 12px; padding-left: 22px; }
.md-body .kv .k { display: inline-block; min-width: 26px; font-weight: 500; color: var(--brand-ink); font-size: 12px; letter-spacing: .03em; }
mark.add { background: var(--warn-bg); color: var(--warn-ink); padding: 0 3px; border-radius: 4px; }
.gen-list { list-style: none; margin: 0; padding: 0; }
.gen-list li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line-2); }
.gen-list li.on { background: var(--info-bg); border-radius: 8px; }
.gen-list a { flex: 1; display: flex; gap: 10px; padding: 9px 6px; color: var(--ink); text-decoration: none; min-width: 0; }
.gen-list a .ms { color: var(--brand-ink); font-size: 20px; }
.gen-list a strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-list small { display: block; font-size: 12px; }
.q-list { list-style: none; margin: 0; padding: 0; columns: 2 340px; column-gap: 24px; }
.q-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.q-list label { display: flex; gap: 8px; cursor: pointer; }
pre.code { background: #0f1c2b; color: #d7e3ee; padding: 14px 16px; border-radius: 10px; overflow: auto; max-height: 520px; font: 12.5px/1.55 var(--mono); white-space: pre; }

/* ===== Module 9 — Review widgets ===== */
.grid-1-2 { display: grid; gap: 20px; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .grid-1-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; min-width: 0; }
.rw-edit .type-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rw-stage { position: relative; padding: 28px 22px; border-radius: 12px; background: #fff; border: 1px dashed var(--line); min-height: 160px; transition: background .2s; overflow: hidden; }
.rw-stage.dark-bg { color: #e8edf2; }
.rw-help { margin-top: 12px; } .rw-help summary { cursor: pointer; font-weight: 500; color: var(--brand-ink); }
.rw-help ol { padding-left: 20px; line-height: 1.7; } .rw-help code { font: 12px var(--mono); background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.rw-help pre.code { margin: 6px 0; white-space: pre-wrap; word-break: break-all; }
tr.row-muted td { opacity: .5; }
.rw-edit input[type=color] { height: 40px; padding: 3px 4px; cursor: pointer; }
.rw-edit [data-rw-only][hidden] { display: none !important; }
