@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fg: #111318;
  --fg-secondary: #3a3f4b;
  --muted: #5b6270;
  --bg: #ffffff;
  --canvas: #f6f7fb;
  --line: #eceef4;
  --line-strong: #d5d9e3;
  --acc: #4f46e5;
  --acc-hover: #4338ca;
  --acc-text: #3730a3;
  --acc-soft: #eef2ff;
  --err: #b42318;
  --err-soft: #fef3f2;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --warn: #854d0e;
  --warn-soft: #fff6d8;
  --warn-line: #e3c374;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 12px 36px rgba(16, 24, 40, 0.08);
  --shadow-acc: 0 1px 2px rgba(79, 70, 229, 0.25), 0 10px 20px rgba(79, 70, 229, 0.22);
  --r: 10px;
  --r-lg: 16px;
  --focus: #4f46e5;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --rail: 272px;
  --rail-top: #0f0b2e;
  --rail-bot: #1e1b4b;
  --rail-fg: #f4f3ff;
  --rail-muted: #c4c1de;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font: 16px/1.5 var(--font);
  color: var(--fg);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; background: var(--bg); min-height: 100%; }
body.app, body.plain, body.auth-body { background: var(--canvas); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: 1.875rem; font-weight: 650; margin: 0 0 8px; }
h2 { font-size: 1.125rem; font-weight: 650; margin: 0; }
h3 { font-size: 1rem; font-weight: 650; }

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 80;
  background: #fff; color: var(--fg);
  padding: 10px 14px; border-radius: var(--r);
  box-shadow: var(--shadow-2); font-weight: 600;
}

a { color: var(--acc-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.side a, .btn, .bar nav a, .qa a, .crumbs a, .topbar a, .nav-toggle, .rail a, .pages a, .media a,
.hero a, .qa-tile, .wizard-panel a, .auth-panel a {
  text-decoration: none;
}
.side a:hover, .btn:hover, .bar nav a:hover, .qa a:hover, .topbar a:hover, .nav-toggle:hover,
.pages a:hover, .qa-tile:hover, .hero a:hover {
  text-decoration: none;
}

.inline { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.brand { font-weight: 700; letter-spacing: -0.03em; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.rt-editable:focus-visible, .nav-toggle:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

input, select, button, textarea { font: inherit; color: inherit; }
button, a.btn {
  min-height: 44px; min-width: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--acc-soft);
  color: var(--acc-text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
button:hover, a.btn:hover { background: #e0e7ff; color: var(--acc-text); }
button:disabled { opacity: 0.45; cursor: default; box-shadow: none; transform: none; }
button.primary, a.btn.primary {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-acc);
}
button.primary:hover, a.btn.primary:hover {
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
}
button.ghost, a.btn.ghost { background: transparent; box-shadow: none; color: var(--fg-secondary); border-color: var(--line-strong); }
button.ghost:hover, a.btn.ghost:hover { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); }
button.danger, a.btn.danger {
  background: var(--bg); color: var(--err); border-color: #fda29b; box-shadow: none;
}
button.danger:hover, a.btn.danger:hover { background: var(--err-soft); }
button.handle, button[data-move] { box-shadow: none; }

input[type="text"], input[type="email"], input:not([type]), input[inputmode],
input[type="tel"], input[type="url"], input[type="time"], input[type="date"], input[type="number"], input[type="password"],
textarea, select {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  width: 100%;
  min-height: 44px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:hover, input[type="email"]:hover, input:not([type]):hover, input[inputmode]:hover,
input[type="tel"]:hover, input[type="url"]:hover, input[type="time"]:hover, input[type="date"]:hover,
input[type="number"]:hover, input[type="password"]:hover, textarea:hover, select:hover {
  border-color: #b8becb;
}
input[type="text"]:focus, input[type="email"]:focus, input:not([type]):focus, input[inputmode]:focus,
input[type="tel"]:focus, input[type="url"]:focus, input[type="time"]:focus, input[type="date"]:focus,
input[type="number"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}
textarea { min-height: 6em; resize: vertical; }
select { min-width: 0; max-width: 100%; }
.inline select { width: auto; }
input[type="time"], input[type="date"], input[type="number"] { width: auto; }
[aria-invalid="true"] {
  border-color: var(--err) !important; border-width: 2px !important; background: #fffafa;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12) !important;
}
.field { display: grid; gap: 6px; }
.label, .field label, .stack label, .row label { font-weight: 600; }
.hint { color: var(--muted); margin: 0; font-size: 0.875rem; }
.ferr {
  color: var(--err); margin: 0; font-weight: 600;
  background: var(--err-soft); border-radius: 10px; padding: 10px 12px;
}
.ferr::before { content: "⚠ "; }
.err, .alert { color: var(--err); }
.status { min-height: 1.5em; color: var(--muted); }
.status:not(:empty), #autosave:not(:empty), #pub-result:not(:empty), #publish-result:not(:empty),
.save-status:not(:empty) {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600;
}
#autosave:empty, #pub-result:empty, #publish-result:empty, .save-status:empty { display: none; }
#autosave .toast-ok, .status:not(:empty) { color: var(--ok); }
#autosave .toast-err, #autosave.is-err, .save-status.is-err,
#pub-result .err, #publish-result .err, #pub-result.is-err, #publish-result.is-err {
  color: var(--err);
}
#autosave:has(.toast-err), #autosave.is-err, .save-status.is-err {
  background: var(--err-soft); color: var(--err);
}
.ok { color: var(--ok); background: var(--ok-soft); padding: 0.65rem 0.9rem; border-radius: var(--r-lg); }
.sr-only, .sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 650;
  padding: 3px 9px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line);
  vertical-align: middle;
}
.chip {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc-text); font-size: 0.75rem; font-weight: 650;
}
.banner {
  padding: 14px 18px; border: 0; border-left: 4px solid var(--acc);
  border-radius: var(--r-lg); background: var(--acc-soft); margin: 0 0 20px; color: var(--fg);
  box-shadow: var(--shadow-1);
}
.banner.ok { border-left-color: var(--ok); background: var(--ok-soft); color: var(--fg); }
.banner a { font-weight: 650; }

.bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: var(--bg); position: sticky; top: 0; z-index: 20;
  box-shadow: var(--shadow-1);
}
.bar nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bar nav a {
  color: var(--fg); padding: 10px 12px; border-radius: 10px;
  min-height: 44px; display: inline-flex; align-items: center; font-weight: 600;
}
.bar nav a:hover { background: var(--canvas); }
.plain main, .auth-body main { padding: 24px 20px 48px; max-width: 1400px; margin: 0 auto; }

.auth-body .bar { display: none; }
.auth-body main {
  max-width: none; padding: 0; min-height: 100vh;
}
.auth-split {
  display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 520px);
  min-height: 100vh;
}
.auth-panel {
  background: linear-gradient(165deg, #0f0b2e 0%, #1e1b4b 52%, #4a1d6a 100%);
  color: #f4f3ff;
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  position: relative; overflow: hidden;
}
.auth-panel::after {
  content: ""; position: absolute; inset: auto -80px -80px auto;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 70%);
  pointer-events: none;
}
.auth-panel .auth-brand, .auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-panel .brand { color: #fff; font-size: 1.125rem; }
.auth-panel-title { margin: 12px 0 0; font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; color: #fff; max-width: 16ch; }
.auth-panel-lede { margin: 0; color: #ddd9ff; max-width: 34ch; font-size: 1.05rem; }
.auth-art { width: min(360px, 100%); height: auto; margin-top: 20px; opacity: 0.95; }
.auth-main {
  display: grid; place-items: center;
  padding: 40px 24px;
  background: var(--canvas);
}
.auth { width: min(420px, 100%); display: grid; gap: 20px; }
.auth h1 { margin: 0 0 4px; }
.auth .card, body.auth-body .card {
  max-width: none; display: grid; gap: 12px;
  border: 0; border-radius: 20px;
  padding: 32px; background: var(--bg); box-shadow: var(--shadow-2);
}
.auth .card button[type="submit"], .auth-body form.card button[type="submit"] { width: 100%; }
@media (max-width: 799px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { min-height: auto; padding: 32px 24px 28px; }
  .auth-panel-title { font-size: 1.5rem; }
  .auth-art { width: min(280px, 100%); }
}

input[type="checkbox"].nav-check, .nav-check {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; appearance: none;
  background: transparent; box-shadow: none; pointer-events: none;
}
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(15, 11, 46, 0.55); z-index: 35;
}
.nav-toggle, .nav-close {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); color: var(--fg); font-weight: 650; cursor: pointer;
  box-shadow: var(--shadow-1);
}
.nav-toggle .ico, .nav-close .ico { width: 20px; height: 20px; }
.nav-toggle:focus-visible, .nav-close:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.nav-close {
  margin-left: 0; flex: 1 0 100%; width: 100%; box-sizing: border-box;
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border-color: rgba(255, 255, 255, 0.2); box-shadow: none;
}
.nav-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.app-frame { display: flex; min-height: 100vh; align-items: stretch; }
.rail {
  width: var(--rail); flex: 0 0 var(--rail);
  background: linear-gradient(180deg, var(--rail-top) 0%, var(--rail-bot) 100%);
  color: var(--rail-fg);
  display: flex; flex-direction: column;
  min-height: 100vh; align-self: stretch; position: relative;
}
.rail-inner {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; min-height: 100vh;
}
.rail-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 20px 20px;
}
.mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-weight: 750; letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}
.rail-brand-text { display: grid; gap: 2px; min-width: 0; }
.rail-brand .brand { font-size: 1rem; color: #fff; }
.rail-site {
  font-size: 0.8125rem; color: var(--rail-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side { flex: 1; overflow: auto; padding: 4px 0 16px; }
.side .nav-group { margin: 0; }
.rail-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rail-muted); padding: 18px 20px 6px; margin: 0;
}
.side ul { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 4px; }
.side a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--rail-muted); min-height: 44px; font-weight: 550;
}
.side a .ico { flex: 0 0 20px; color: #a5a3c9; }
.side a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.side a:hover .ico { color: #fff; }
.side a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.42), rgba(192, 132, 252, 0.18));
  color: #fff; font-weight: 650;
  box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.4), 0 8px 22px rgba(49, 46, 129, 0.35);
}
.side a[aria-current="page"] .ico { color: #fff; }
.side .setup-link { color: #c7d2fe; font-weight: 650; }
.rail-user {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto; min-width: 0;
  background: rgba(0, 0, 0, 0.12);
}
.rail-user .avatar { flex: 0 0 40px; width: 40px; height: 40px; background: #4f46e5; color: #fff; }
.rail-user-meta { min-width: 0; flex: 1; display: grid; gap: 4px; justify-items: start; }
.rail-user-email {
  font-size: 0.75rem; color: var(--rail-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.rail-user button {
  min-height: 36px; padding: 6px 10px; font-size: 0.8125rem;
  background: transparent; color: var(--rail-fg); border: 1px solid rgba(255, 255, 255, 0.2);
}
.rail-user button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: transparent; }

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; background:
  radial-gradient(1200px 400px at 10% -10%, rgba(99, 102, 241, 0.08), transparent 55%),
  radial-gradient(900px 360px at 100% 0%, rgba(236, 72, 153, 0.06), transparent 50%),
  var(--canvas);
}
.topbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 12px 28px; background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 238, 0.8);
  position: sticky; top: 0; z-index: 15;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 600; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--acc-text); }
.crumbs-sep { color: var(--line-strong); }
.crumbs [aria-current="page"] { color: var(--fg); font-weight: 650; }
.topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }

.app main {
  max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 28px 28px 64px; min-width: 0;
}

@media (min-width: 900px) {
  .nav-check, .nav-toggle, .nav-backdrop, .nav-close { display: none; }
}
@media (max-width: 899px) {
  .nav-toggle, .nav-close { display: inline-flex; }
  .app-frame:has(#nav-open:checked) .nav-backdrop { display: block; }
  .rail {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    transform: translateX(-100%); visibility: hidden;
    box-shadow: var(--shadow-2);
    transition: transform 0.2s ease, visibility 0.2s ease;
    height: 100%; min-height: 100%;
  }
  .rail-inner { height: 100%; min-height: 100%; }
  .app-frame:has(#nav-open:checked) .rail {
    transform: none; visibility: visible;
  }
  .rail-brand { flex-wrap: wrap; }
  .topbar { padding: 10px 16px; }
  .app main { padding: 16px 16px 48px; }
}

.pagehead {
  display: flex; flex-wrap: wrap; gap: 16px 20px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.pagehead-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.page-ico {
  width: 48px; height: 48px; border-radius: 14px; flex: 0 0 48px;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc-text);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}
.page-ico .ico { width: 22px; height: 22px; }
.pagehead h1 { margin: 0; font-size: 1.875rem; }
.lede { margin: 6px 0 0; color: var(--muted); }
.pagehead-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.hero {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  align-items: flex-end; justify-content: space-between;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #312e81 0%, #5b21b6 52%, #9d174d 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(49, 46, 129, 0.28);
  margin: 0 0 22px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-copy, .hero-actions { position: relative; z-index: 1; }
.hero-kicker {
  margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #e9d5ff;
}
.hero h1 { margin: 0; color: #fff; font-size: 2rem; }
.hero .lede { color: #f3e8ff; margin-top: 8px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 650; font-size: 0.875rem;
}
.pill.live { background: rgba(16, 185, 129, 0.22); color: #d1fae5; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}
.hero-url { color: #ede9fe; font-weight: 600; word-break: break-all; }
.hero-url:hover { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .primary {
  background: #fff; color: #312e81; box-shadow: 0 8px 20px rgba(15, 11, 46, 0.18);
}
.hero .primary:hover { background: #f5f3ff; color: #1e1b4b; }
.hero .btn {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45);
}
.hero .btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero .btn.ghost { border-color: rgba(255, 255, 255, 0.3); color: #f5f3ff; }
.hero-status { width: 100%; position: relative; z-index: 1; }
.hero-status .ok, .hero-status .err { display: inline-block; }

.stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 22px;
}
@media (min-width: 1180px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  background: var(--bg); border: 0; border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-1); min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.stat-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
}
.stat-ico .ico { width: 20px; height: 20px; }
.stat-ico.indigo { background: #e0e7ff; color: #3730a3; }
.stat-ico.pink { background: #fce7f3; color: #9d174d; }
.stat-ico.sky { background: #e0f2fe; color: #075985; }
.stat-ico.amber { background: #fef3c7; color: #92400e; }
.stat-label { margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.stat-value {
  margin: 0; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-suffix { font-size: 1.125rem; font-weight: 650; color: var(--muted); margin-left: 2px; }
.stat-note { margin: 6px 0 0; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

.ring { transform: rotate(-90deg); }
.ring-track { stroke: var(--line); }
.ring-val { stroke: var(--acc); }
.ring-wrap { position: relative; width: 52px; height: 52px; flex: 0 0 52px; }
.ring-wrap .ring { width: 52px; height: 52px; }
.ring-wrap .ring-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: var(--acc-text);
  transform: none; font-variant-numeric: tabular-nums;
}
.card-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }

.card { display: grid; gap: 8px; max-width: 360px; }
.app .card, .wizard .card, .plain .card {
  max-width: none;
  border: 0; border-radius: var(--r-lg);
  padding: 24px; background: var(--bg);
  align-content: start; box-shadow: var(--shadow-1);
}
.app .card h2 { margin: 0; font-size: 1.125rem; }
.app .card h3 { margin: 8px 0 0; font-size: 1rem; }
.app section.card + section.card { margin-top: 16px; }
.grid > section.card + section.card { margin-top: 0; }
.app .card form, .wizard .card form, .wcard form { display: grid; gap: 14px; }
.app .card form > button, .wizard .wcard form > button[type="submit"] { justify-self: start; width: auto; }
.auth .card button[type="submit"] { width: 100%; justify-self: stretch; }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .welcome { grid-column: span 1; }
}
.grid .wide { grid-column: 1 / -1; }
@media (min-width: 1200px) { .grid .wide { grid-column: span 1; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: flex-start; gap: 8px; }
.checklist a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; }
.checklist a:hover { color: var(--acc-text); }
.checklist .done a { color: var(--fg-secondary); text-decoration: line-through; text-decoration-thickness: 1px; }
.checklist .done span:first-child { color: var(--ok); font-weight: 700; }
.check-mark {
  width: 22px; height: 22px; border-radius: 999px; flex: 0 0 22px; margin-top: 11px;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  background: var(--canvas); color: var(--muted);
}
.checklist .done .check-mark { background: var(--ok-soft); color: var(--ok); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; font-weight: 600; }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qa-tile-form { display: contents; }
.qa-tile, .qa .qa-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 108px; min-width: 0; width: 100%;
  padding: 16px; border-radius: 14px; border: 0;
  background: var(--canvas); color: var(--fg); font-weight: 650;
  box-shadow: none; text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.qa-tile:hover, .qa .qa-tile:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-2); background: #fff;
  color: var(--fg);
}

.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.feed li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed li:first-child { padding-top: 0; }
.person { display: flex; gap: 12px; align-items: flex-start; min-width: 0; max-width: 100%; }
.person-body { min-width: 0; overflow-wrap: anywhere; }
.person-body p { margin: 2px 0 0; }
.avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px; flex: 0 0 36px;
  background: var(--acc-soft); color: var(--acc-text);
  font-size: 0.75rem; font-weight: 700;
}
.av-0 { background: #e0e7ff; color: #3730a3; }
.av-1 { background: #fce7f3; color: #9d174d; }
.av-2 { background: #d1fae5; color: #065f46; }
.av-3 { background: #ffedd5; color: #9a3412; }
.av-4 { background: #e0f2fe; color: #075985; }
.av-5 { background: #ede9fe; color: #5b21b6; }

.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.agenda > li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px;
  padding: 12px 0; position: relative;
}
.agenda > li:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: 60px; bottom: 0; width: 2px; background: var(--line);
}
.dateblk {
  width: 52px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-text);
  display: grid; place-items: center; padding: 8px 4px; line-height: 1.05;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}
.dateblk-day { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dateblk-mon { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

progress {
  width: 100%; height: 8px; border: 0; border-radius: 999px;
  background: var(--line); accent-color: var(--acc); overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #4f46e5, #c084fc); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #4f46e5, #c084fc); }
.limits { margin: 0; padding-left: 1.2em; }

.tblwrap { overflow-x: auto; max-width: 100%; border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700;
  background: #fafbfe; position: sticky; top: 0; z-index: 1;
}
.tbl tbody tr { transition: background 0.15s ease; }
.tbl tbody tr:hover { background: #f7f8fc; }
.tbl td { font-variant-numeric: tabular-nums; }

.msgs { list-style: none; padding: 0; display: grid; gap: 12px; }
.msgs h2 { font-size: 1rem; }

.media { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.media li { display: grid; gap: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); background: var(--bg); }
.media img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border: 0; border-radius: 0; background: var(--canvas);
}
.media-meta, .media .hint {
  padding: 10px 12px; color: var(--muted);
}
.media li:hover img { filter: brightness(0.92); }
.media li::after {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 11, 46, 0.45));
  opacity: 0; transition: opacity 0.18s ease; pointer-events: none;
}
.media li:hover::after { opacity: 1; }

.pages { padding-left: 1.2em; }
ul.pages.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.pages.list li {
  display: flex; align-items: center; gap: 8px;
  border: 0; border-radius: var(--r-lg);
  background: var(--bg); padding-right: 14px;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
ul.pages.list a {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 16px 18px; min-height: 44px; color: var(--fg); font-weight: 600; flex: 1; min-width: 0;
}
ul.pages.list li:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
ul.pages.list code { font-weight: 500; color: var(--muted); font-size: 0.875rem; }

.empty { display: grid; justify-items: start; gap: 10px; padding: 20px 4px; color: var(--muted); }
.empty-art { width: 120px; height: auto; color: #818cf8; }
.ico { width: 20px; height: 20px; flex: 0 0 20px; }

.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.blocks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.block { border: 0; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-1); min-width: 0; max-width: 100%; }
.block-head {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: #f7f8fc;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  min-width: 0;
}
.block-name { flex: 1 1 8rem; margin: 0; font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.plain main, .plain .cols { min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
  .plain main { padding: 16px 12px 48px; }
  .bar { padding: 10px 12px; }
}
.pos { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.handle { cursor: grab; touch-action: none; }
.block-body { padding: 16px; display: grid; gap: 8px; min-width: 0; max-width: 100%; }
fieldset.img { border: 1px dashed var(--line); display: grid; gap: 6px; border-radius: var(--r); }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.rt-bar [aria-pressed="true"] { background: var(--acc-soft); }
.rt-editable { min-height: 6em; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px; background: var(--bg); }
.preview iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.sortable-ghost { opacity: 0.4; }

body.wizard-body .bar { display: none; }
body.wizard-body main { max-width: none; padding: 20px; }
.wizard {
  display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  max-width: 1080px; margin: 0 auto; min-height: calc(100vh - 40px);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-2);
  background: var(--bg);
}
.wizard > *, .wizard nav { min-width: 0; }
.wizard-panel {
  background: linear-gradient(180deg, #0f0b2e 0%, #1e1b4b 100%);
  color: #f4f3ff;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.wizard-panel .brand { color: #fff; }
.wizard-panel .eyebrow { color: #c4c1de; }
.wizard-panel .prog span { color: #ddd9ff; }
.wizard-progress { display: flex; align-items: center; gap: 12px; }
.wizard-progress .prog { flex: 1; }
.wizard-panel .ring-track { stroke: rgba(255, 255, 255, 0.18); }
.wizard-panel .ring-val { stroke: #c4b5fd; }
.wizard-panel .ring-pct { color: #fff; }
.wizard-user {
  margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wizard-user .avatar { background: #4f46e5; color: #fff; }
.wizard-user button.ghost {
  color: #fff; border-color: rgba(255, 255, 255, 0.25);
}
.wizard-user button.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wizard-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.wizard-main .wcard, .wizard .wcard {
  border: 0; box-shadow: none; padding: 32px 32px 16px; flex: 1;
}
.wizard-foot {
  position: sticky; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center;
  padding: 16px 32px 20px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.wizard-main > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.eyebrow { margin: 0; color: var(--muted); font-weight: 650; }
.prog { display: flex; gap: 10px; align-items: center; }
.prog span { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wizard-panel .steps a {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px; border: 0; border-radius: 12px;
  text-decoration: none; color: var(--rail-muted); white-space: nowrap; min-height: 44px;
  background: transparent; font-weight: 550;
}
.wizard-panel .steps a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.steps .n {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 0.8rem; font-weight: 700;
}
.steps .st-done .n { background: #059669; color: #fff; }
.steps .st-skipped a { opacity: 0.85; }
.wizard-panel .steps a[aria-current="step"] {
  background: rgba(129, 140, 248, 0.28); font-weight: 650; color: #fff;
  box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.35);
}
.wcard h1 { margin: 0; font-size: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.exit { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.35em; padding: 4px 32px 24px; }
.exit a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; font-weight: 650; }
@media (max-width: 799px) {
  .wizard { grid-template-columns: 1fr; min-height: 0; border-radius: 0; }
  body.wizard-body main { padding: 0; }
  .wizard-panel { border-radius: 0; padding: 20px 16px; }
  .wizard-panel .steps { display: flex; flex-wrap: wrap; gap: 6px; }
  .wizard-user { display: none; }
  .wizard-main .wcard, .wizard .wcard { padding: 20px 16px 12px; }
  .wizard-foot { padding: 12px 16px 16px; }
  .exit { padding: 4px 16px 24px; }
}

fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin: 0; display: grid; gap: 10px; min-width: 0; background: #fcfcfe; }
legend { font-weight: 650; padding: 0 4px; }
.week { min-width: 0; }
.week .day { display: grid; grid-template-columns: 24px 7em minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; min-width: 0; }
.week .day .ferr { grid-column: 1 / -1; }
.week .day input[type="time"] { min-width: 0; width: 100%; }
@media (max-width: 1100px) {
  .week .day { grid-template-columns: 24px minmax(0, 1fr); }
  .week .day input[type="time"] { grid-column: 2; max-width: 16rem; }
  .week .day > span { display: none; }
}
input[type="file"] {
  padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--canvas); min-height: 44px; width: 100%;
}
input[type="checkbox"]:not(.nav-check), input[type="radio"] { width: 22px; height: 22px; accent-color: var(--acc); }
.check { display: grid; grid-template-columns: 48px 1fr; gap: 2px 10px; align-items: center; }
.check input[type="checkbox"] {
  appearance: none; width: 44px; height: 26px; border-radius: 999px;
  background: #d5d9e3; position: relative; border: 0; cursor: pointer;
}
.check input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  transition: transform 0.15s ease;
}
.check input[type="checkbox"]:checked { background: var(--acc); }
.check input[type="checkbox"]:checked::after { transform: translateX(18px); }
.check .hint { grid-column: 2; }
.presets { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.preset {
  display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; background: var(--bg); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.preset:hover { border-color: #c7cde0; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.preset:has(input:checked) { border: 2px solid var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); }
.preset-tag {
  display: inline-flex; align-items: center; min-height: 24px; width: fit-content;
  padding: 0 8px; border-radius: 999px; background: #eef0f8; color: #4338ca; font-size: 11px; font-weight: 700;
}
.thumb {
  display: grid; grid-template-rows: 10px 34px 28px; gap: 4px; height: 84px; padding: 6px;
  border-radius: 10px; border: 1px solid rgba(16, 24, 40, 0.08); overflow: hidden;
}
.thumb-bar, .thumb-hero, .thumb-body { display: block; border-radius: 4px; }
.thumb-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.thumb-body i { display: block; border-radius: 3px; background: rgba(16, 24, 40, 0.08); }
.thumb-fresh { background: #eef6f8; } .thumb-fresh .thumb-bar { background: #0b6e85; } .thumb-fresh .thumb-hero { background: #b7dbe3; }
.thumb-warm { background: #fffaf3; } .thumb-warm .thumb-bar { background: #8a3b12; border-radius: 999px; } .thumb-warm .thumb-hero { background: #f6e9d7; border-radius: 10px; }
.thumb-celestial { background: #0b1030; } .thumb-celestial .thumb-bar { background: #151b47; } .thumb-celestial .thumb-hero { background: linear-gradient(90deg, #232b63, #d8b46c); }
.thumb-ocean { background: #eef3fb; } .thumb-ocean .thumb-bar { background: #1d4ed8; } .thumb-ocean .thumb-hero { background: #bfdbfe; }
.thumb-folio { background: #f6f1e8; } .thumb-folio .thumb-bar { background: transparent; border-bottom: 1px solid #1c1916; border-radius: 0; } .thumb-folio .thumb-hero { background: #efe8db; clip-path: polygon(0 0, 70% 0, 58% 100%, 0 100%); }
.thumb-pulse { background: #0b0a12; } .thumb-pulse .thumb-bar { background: #161425; border-radius: 999px; margin: 0 8px; } .thumb-pulse .thumb-hero { background: linear-gradient(135deg, #7c3aed, #22d3ee); }
.thumb-pulse .thumb-body { grid-template-columns: 2fr 1fr 1fr; }
.thumb-care { background: #f3f6f4; grid-template-columns: 22px 1fr; grid-template-rows: 10px 56px; }
.thumb-care .thumb-bar { grid-column: 1 / -1; background: #e7eee9; }
.thumb-care .thumb-hero { grid-row: 2; background: #0f4c3a; }
.thumb-care .thumb-body { grid-row: 2; }
.thumb-bloom { background: #fff6ee; } .thumb-bloom .thumb-bar { background: #ffd1e4; border-radius: 999px; } .thumb-bloom .thumb-hero { background: #ffd36a; border-radius: 20px; }
.thumb-bloom .thumb-body i { border-radius: 999px; }
.thumb-bloom .thumb-body i:nth-child(1) { background: #fff0f6; } .thumb-bloom .thumb-body i:nth-child(2) { background: #fff4d2; } .thumb-bloom .thumb-body i:nth-child(3) { background: #e9fff4; }
.thumb-atelier { background: #f7f4ef; } .thumb-atelier .thumb-bar { background: transparent; border-bottom: 1px solid #1a1916; border-radius: 0; } .thumb-atelier .thumb-hero { background: #efeae2; }
.thumb-storefront { background: #fffdf8; } .thumb-storefront .thumb-bar { background: #1c1917; } .thumb-storefront .thumb-hero { background: #c2410c; height: 8px; }
.thumb-storefront .thumb-body { grid-template-columns: 1fr; }
.swatches { display: flex; gap: 6px; }
.swatches i { display: block; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.svcs, .svcs .svc, .field, .form-split, .form-intro { min-width: 0; max-width: 100%; }
.svcs .svc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.svcs .svc input, .svcs .svc select { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
  .svcs .svc { grid-template-columns: minmax(0, 1fr); }
}
.review { margin: 0; display: grid; gap: 12px; }
.review div { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.review dt { font-weight: 650; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.logo-prev img { max-width: 128px; height: auto; border: 1px solid var(--line); border-radius: var(--r); }
.app main, .app .card { min-width: 0; }

.form-split { display: grid; gap: 16px 40px; grid-template-columns: minmax(0, 1fr); }
.form-split ul { list-style: none; padding: 0; margin: 0; min-width: 0; }
.form-intro, .form-split > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 800px) {
  .form-split { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: start; }
  .form-intro h2 { margin-top: 4px; }
}
.form-intro p { margin: 8px 0 0; }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack label, .row label { display: flex; flex-direction: column; gap: 0.35rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.row label { min-width: 8rem; flex: 1; }
.review a, .sum a, a.tap-link, .foot-link a, .auth-alt a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.15rem 0.25rem; font-weight: 650;
}
.foot-link { margin: 8px 0 0; }
.foot-link a, a.tap-link { overflow-wrap: anywhere; max-width: 100%; }
.auth-aux { margin: 12px 0 0; display: grid; gap: 8px; }
.auth-aux .ghost, .auth-alt a { width: 100%; justify-content: center; }
.auth-alt { margin: 4px 0 0; }
.app .card > ul:not(.limits):not(.checklist):not(.feed):not(.pages):not(.agenda) { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.app .card > ul:not(.limits):not(.checklist):not(.feed):not(.pages):not(.agenda) a { display: inline-flex; align-items: center; min-height: 44px; }

.item-lists { display: grid; gap: 12px; margin-top: 8px; }
.item-edit { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; background: #fcfcfe; }
.item-edit legend { font-weight: 650; padding: 0 6px; }
#logo-status.ferr { color: var(--err); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .stat:hover, .qa-tile:hover, .preset:hover, ul.pages.list li:hover { transform: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eceef2;
    --fg-secondary: #c7cbd4;
    --muted: #b0b6c2;
    --bg: #171322;
    --canvas: #0c0a16;
    --line: #2a2640;
    --line-strong: #3d3758;
    --acc: #818cf8;
    --acc-hover: #a5b4fc;
    --acc-text: #c7d2fe;
    --acc-soft: #22264a;
    --err: #fda29b;
    --err-soft: #3b1511;
    --ok: #75e0a7;
    --ok-soft: #123123;
    --warn: #fde68a;
    --warn-soft: #3a2d10;
    --warn-line: #854d0e;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 12px 36px rgba(0, 0, 0, 0.4);
  }
  body.app, body.plain, body.auth-body { background: var(--canvas); color: var(--fg); }
  .workspace {
    background:
      radial-gradient(1000px 380px at 10% -10%, rgba(99, 102, 241, 0.16), transparent 55%),
      var(--canvas);
  }
  .topbar { background: rgba(23, 19, 34, 0.82); border-bottom-color: var(--line); }
  .tbl tbody tr:hover, ul.pages.list li:hover { background: #1d182c; }
  .tbl thead th { background: #1a1628; }
  .block-head, fieldset, .item-edit { background: #1b1829; }
  button:hover, a.btn:hover { background: #222046; }
  [aria-invalid="true"] { background: #2a1515; }
  .qa-tile, .qa .qa-tile { background: #1b1829; color: var(--fg); }
  .qa-tile:hover, .qa .qa-tile:hover { background: #221e36; }
  .wizard { background: var(--bg); }
  .wizard-foot { background: rgba(23, 19, 34, 0.92); }
  .auth-main { background: var(--canvas); }
  .stat-ico.indigo { background: #22264a; color: #c7d2fe; }
  .stat-ico.pink { background: #3b1528; color: #f9a8d4; }
  .stat-ico.sky { background: #0c2a3a; color: #7dd3fc; }
  .stat-ico.amber { background: #3a2d10; color: #fde68a; }
}

/* ---------- Platform owner (client sites) ---------- */
.owner .table-wrap { overflow-x: auto; }
.owner-sites td { vertical-align: top; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; }
.owner-actions form.inline { display: inline; margin: 0; }
.owner .muted { color: var(--muted, #6b7280); font-size: 0.875rem; }
.badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-ok { background: rgba(16, 185, 129, 0.14); color: #047857; }
.badge-warn { background: rgba(245, 158, 11, 0.16); color: #92400e; }
.danger-link { color: var(--err, #b91c1c); }
button.danger { background: var(--err, #b91c1c); color: #fff; border: 0; border-radius: var(--r-lg, 10px); padding: 0.6rem 1rem; font-weight: 600; cursor: pointer; }
.owner-presets { display: grid; gap: 0.75rem; }
ul.audit { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.imp-banner { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; background: #fef3c7; color: #78350f; border-bottom: 1px solid #f59e0b; font-size: 0.9rem; }
.imp-banner form { margin: 0; }
.imp-banner button { background: #78350f; color: #fff; border: 0; border-radius: 8px; padding: 0.35rem 0.8rem; cursor: pointer; }
