/* MostCited customer portal – "Marginalia" brand (see citera-site/BRAND.md).
   Portal-only stylesheet: the internal app (index.html) keeps using styles.css. */

:root {
  --ink: #111216;
  --ink-2: #2c2e36;
  --mute: #62656f;
  --faint: #9da0a9;
  --line: #e9e8e3;
  --mist: #f3f2ee;
  --paper: #faf8f3;
  --white: #fff;
  --cite: #2b3bff;
  --cite-deep: #1a24c9;
  --cite-tint: #eef0ff;
  --cite-on-ink: #9ea7ff;
  --marker: #ffe14d;
  --marker-soft: #fff3a6;
  --good: #12a150;
  --good-soft: #e5f5eb;
  --bad: #e5484d;
  --bad-text: #c8353a;
  --bad-soft: #fdeced;
  --amber: #c98a00;

  /* aliases used by inline styles in portal.js */
  --accent: var(--cite);
  --border: var(--line);
  --muted: var(--mute);
  --text: var(--ink);
  --surface: var(--white);
  --surface-2: var(--mist);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-hand: "Caveat", "Bradley Hand", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ring: 0 0 0 1px rgb(17 18 22 / 0.06);
  --shadow-soft: 0 1px 2px rgb(17 18 22 / 0.04), 0 8px 24px -10px rgb(17 18 22 / 0.1);
  --shadow-paper: 0 1px 0 rgb(17 18 22 / 0.03), 0 1px 3px rgb(17 18 22 / 0.05), 0 22px 44px -28px rgb(17 18 22 / 0.2);
  --shadow-float: 0 2px 4px rgb(17 18 22 / 0.04), 0 28px 60px -24px rgb(17 18 22 / 0.26);
  --r-blk: 20px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image: radial-gradient(rgb(17 18 22 / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cite); outline-offset: 3px; border-radius: 8px; }
a { color: var(--cite); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
h1, h2.display, .display {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 { font-size: 40px; line-height: 1.06; font-weight: 500; letter-spacing: -0.028em; text-wrap: balance; }
h1 em, .display em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
h2 { font-size: 18px; letter-spacing: -0.01em; }
ul, ol { margin: 0; }
s { text-decoration-thickness: 1.5px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-size: 12px; }
.ok-text { color: var(--good); font-weight: 600; }
.bad-text { color: var(--bad-text); }
.error { color: var(--bad-text); }
.center { text-align: center; }
.label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hint { font-size: 12px; color: var(--mute); font-weight: 400; }
.hand { font-family: var(--f-hand); color: var(--cite); font-weight: 600; }

/* yellow marker highlight = "this is you" */
.hl {
  background-image: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 88%, transparent 88%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.14em;
  margin: 0 -0.04em;
  border-radius: 0.12em;
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.view-in .hl, .just-built .hl, .publish-box.done .hl { animation: sweep 0.8s 0.25s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* [01] reference label */
.ref {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font: 500 11.5px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute);
}
.ref-n { color: var(--cite); font-family: var(--f-mono); }
.ref .hint { text-transform: none; letter-spacing: 0; font-family: var(--f-sans); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: flex-start; color: var(--ink); text-decoration: none !important; }
.logo-word { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -0.035em; }
/* the yellow highlighter behind the last word (same stroke as the website's logo) */
.logo-hl {
  padding: 0.1em 0.06em 0.06em; margin: -0.1em 0 -0.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C14 6.4 26 8.6 38 6.9S62 5.8 74 7.4 92 5.6 98.2 7.8c.9 4.6-.6 9.3.5 14 .9 4.4-.3 8.8.6 12.4-10.8 1.9-22 .4-33.4 1.6S43 34.6 31.6 36.1 9.8 34.4 2.2 35.7C.9 30.9 2.6 26.4 1.5 21.6.6 17.3 2.3 13.6 3 9.5Z' fill='%23FFE14D'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.logo .mark { width: 15px; height: 15px; margin: -5px 0 0 2px; flex: none; transition: transform 0.5s var(--ease); }
.logo:hover .mark { transform: rotate(-12deg) scale(1.12); }

/* ---------- shell ---------- */
.portal .shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.portal.no-side .shell { grid-template-columns: minmax(0, 1fr); }
.portal.no-side .side, .portal.no-side .mobile-bar { display: none; }
.mobile-bar, .scrim { display: none; }

.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 16px 18px; background: var(--white); border-right: 1px solid var(--line);
}
.side-logo { padding: 2px 10px 6px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.side-brand:empty { display: none; }
.side-brand-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; font: 600 17px/1 var(--f-display); }
.side-brand-text { display: flex; flex-direction: column; min-width: 0; }
.side-brand-name { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-brand-domain { font: 11.5px/1.3 var(--f-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--ink-2); font-weight: 550; font-size: 14.5px; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.side-nav a:hover { background: var(--mist); transform: translateX(2px); }
.side-nav a.active { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgb(17 18 22 / 0.7); }
.nav-ic { width: 18px; height: 18px; flex: none; color: var(--faint); transition: color 0.2s; }
.side-nav a:hover .nav-ic { color: var(--ink); }
.side-nav a.active .nav-ic { color: var(--marker); }
.nav-label { flex: 1; }
.nav-n { font: 10.5px var(--f-mono); color: var(--faint); }
.side-nav a.active .nav-n { color: rgb(255 255 255 / 0.45); }
.side-nav .count { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--cite); color: #fff; font: 600 11.5px/1.6 var(--f-mono); text-align: center; }
.side-nav a.active .count { background: var(--marker); color: var(--ink); }

.side-promo-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 13px; border-radius: 16px; overflow: hidden;
  background: var(--cite); color: #fff; text-decoration: none !important;
  background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgb(255 255 255 / 0.09) 23px 24px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.side-promo-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgb(43 59 255 / 0.8); }
.side-promo-k { font: 500 10.5px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.75); }
.side-promo-t { font-size: 13.5px; line-height: 1.4; }
.side-promo-t strong { font: 600 20px/1 var(--f-display); margin-right: 2px; }
.side-promo-cta { font-weight: 600; font-size: 13px; }
.side-account { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 4px 0 10px; border-top: 1px solid var(--line); }
.side-email { font: 11.5px var(--f-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.portal .main { width: 100%; max-width: 1280px; padding: 34px 40px 90px; }

/* view entrance */
.main.view-in > * { animation: rise 0.55s var(--ease) both; }
.main.view-in > *:nth-child(2) { animation-delay: 0.04s; }
.main.view-in > *:nth-child(3) { animation-delay: 0.08s; }
.main.view-in > *:nth-child(4) { animation-delay: 0.12s; }
.main.view-in > *:nth-child(n + 5) { animation-delay: 0.16s; }
.view-in .bento > *, .view-in .action-list > *, .view-in .q-list > *, .view-in .comp-grid > *, .view-in .strip > *, .view-in .kpi-stack > * { animation: rise 0.6s var(--ease) both; }
.view-in .bento > *:nth-child(1), .view-in .action-list > *:nth-child(1), .view-in .q-list > *:nth-child(1), .view-in .comp-grid > *:nth-child(1), .view-in .strip > *:nth-child(1), .view-in .kpi-stack > *:nth-child(1) { animation-delay: 0.06s; }
.view-in .bento > *:nth-child(2), .view-in .action-list > *:nth-child(2), .view-in .q-list > *:nth-child(2), .view-in .comp-grid > *:nth-child(2), .view-in .strip > *:nth-child(2), .view-in .kpi-stack > *:nth-child(2) { animation-delay: 0.12s; }
.view-in .bento > *:nth-child(3), .view-in .action-list > *:nth-child(3), .view-in .q-list > *:nth-child(3), .view-in .comp-grid > *:nth-child(3), .view-in .strip > *:nth-child(3), .view-in .kpi-stack > *:nth-child(3) { animation-delay: 0.18s; }
.view-in .bento > *:nth-child(4), .view-in .action-list > *:nth-child(4), .view-in .q-list > *:nth-child(4) { animation-delay: 0.24s; }
.view-in .bento > *:nth-child(5), .view-in .action-list > *:nth-child(5), .view-in .q-list > *:nth-child(5) { animation-delay: 0.3s; }
.view-in .bento > *:nth-child(n + 6), .view-in .action-list > *:nth-child(n + 6), .view-in .q-list > *:nth-child(n + 6) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .ref { margin-bottom: 12px; }
.page-head .sub { margin-top: 10px; font-size: 14.5px; max-width: 70ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 12px 5px 10px; border-radius: 99px;
  font: 500 12px var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute);
  background: var(--white); box-shadow: var(--ring); transition: color 0.2s, transform 0.25s var(--ease);
}
.crumb:hover { color: var(--cite); text-decoration: none; transform: translateX(-3px); }

/* ---------- blocks ---------- */
.blk, .card {
  position: relative; background: var(--white); border-radius: var(--r-blk); padding: 22px 24px;
  box-shadow: var(--ring), var(--shadow-paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.blk + .blk, .card + .card, .blk + .card, .card + .blk, .strip + .blk, .comp-grid + .blk, #publishing + .blk, .blk + #publishing, #publishing:not(:empty) { margin-top: 16px; }
.blk-head, .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.blk-head .ref, .card-head .ref { margin: 0; }
.card-head h2 { font: 500 22px/1.2 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.015em; }

.blk.ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-float); }
.blk.blue { background: var(--cite); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 26px 50px -28px rgb(43 59 255 / 0.75); }
.blk.marker { background: var(--marker); color: var(--ink); }
.blk.tint { background: var(--cite-tint); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.1); }
.blk.paper { background: var(--paper); }
.blk.ink::before, .blk.blue::before, .blk.ruled::before, .blk.dotted::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.blk.ink::before { background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%); mask-image: linear-gradient(200deg, #000 10%, transparent 70%); }
.blk.blue::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.08) 31px 32px), linear-gradient(to right, transparent 0 34px, rgb(255 255 255 / 0.16) 34px 35px, transparent 35px); }
.blk.ruled::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(43 59 255 / 0.07) 31px 32px); }
.blk.dotted::before { background-image: radial-gradient(rgb(17 18 22 / 0.09) 1px, transparent 1px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent); mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent); }
.blk > * { position: relative; }
.blk.ink .ref, .blk.blue .ref { color: rgb(255 255 255 / 0.72); }
.blk.blue .ref-n { color: #fff; }
.blk.ink .ref-n { color: var(--cite-on-ink); }
.blk.marker .ref { color: rgb(17 18 22 / 0.62); }
.blk.marker .ref-n { color: var(--ink); }
.blk.ink .muted, .blk.blue .muted { color: rgb(255 255 255 / 0.7); }

/* hover lift on interactive / summary blocks */
.bento > .blk:hover, .kpi-blk:hover, .comp-card:hover, .question-card:hover, .strip-item:hover, .trend-blk:hover {
  transform: translateY(-3px);
  box-shadow: var(--ring), var(--shadow-float);
}
.blk.ink:hover, .blk.blue:hover { box-shadow: 0 34px 60px -30px rgb(17 18 22 / 0.5); }
.blk.blue:hover { box-shadow: 0 34px 60px -26px rgb(43 59 255 / 0.85); }

.empty-blk { padding: 48px 24px; }
.empty-blk h2 { font: 500 26px/1.2 var(--f-display); }
.empty-mark .mark { width: 44px; height: 44px; margin-bottom: 14px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-6deg); } }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  font: 600 14px/1 var(--f-sans); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; text-decoration: none !important;
  border: 0; border-radius: 999px; background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(17 18 22 / 0.13), 0 1px 2px rgb(17 18 22 / 0.05);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease);
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--ink), 0 6px 16px -10px rgb(17 18 22 / 0.5); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.big { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.15) inset, 0 10px 26px -14px rgb(17 18 22 / 0.7); }
.btn.primary:hover { background: var(--cite); }
.btn.cite { background: var(--cite); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 10px 24px -12px rgb(43 59 255 / 0.7); }
.btn.cite:hover { background: var(--cite-deep); }
.btn.cite-soft { background: var(--cite-tint); color: var(--cite); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.18); }
.btn.cite-soft:hover { background: var(--cite); color: #fff; }
.btn.white { background: #fff; color: var(--cite); box-shadow: 0 12px 30px -14px rgb(0 0 0 / 0.45); }
.btn.white:hover { background: var(--marker); color: var(--ink); }
.btn.marker { background: var(--marker); color: var(--ink); box-shadow: 0 12px 30px -14px rgb(0 0 0 / 0.45); }
.btn.marker:hover { background: #ffd91a; }
.btn.ghost { background: transparent; color: var(--mute); box-shadow: none; }
.btn.ghost:hover { background: var(--mist); color: var(--ink); }
.btn.on-blue { background: rgb(255 255 255 / 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
.btn.on-blue:hover { background: rgb(255 255 255 / 0.22); }
.btn.danger { color: var(--bad-text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
/* shine sweep on primary + magic buttons */
.btn.primary::after, .btn.magic::after, .btn.marker::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn.primary::after { background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.2) 50%, transparent 70%); }
.btn.primary:hover::after, .btn.magic:hover::after, .btn.marker:hover::after { transform: translateX(120%); }
.btn.magic::after { animation: shine 4.2s 1.2s var(--ease) infinite; background: linear-gradient(105deg, transparent 35%, rgb(43 59 255 / 0.16) 50%, transparent 65%); }
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.btn.white.magic { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.5), 0 14px 34px -14px rgb(0 0 0 / 0.55); animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgb(255 255 255 / 0.13), 0 14px 34px -14px rgb(0 0 0 / 0.55); } }
.btn.loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.btn.loading { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--cite-tint); border-top-color: var(--cite); animation: spin 0.8s linear infinite; margin-bottom: 12px; }

/* ---------- pills, badges, chips ---------- */
.badge, .prio, .pill-type, .pill-effort {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; height: 22px; padding: 0 9px; border-radius: 99px;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--mist); color: var(--ink-2);
}
.badge.live { background: var(--good-soft); color: #0b7a3b; }
.badge.err { background: var(--bad-soft); color: var(--bad-text); }
.badge.demo { background: var(--marker-soft); color: var(--ink); }
.prio.high { background: var(--bad-soft); color: var(--bad-text); }
.prio.medium { background: var(--marker-soft); color: var(--ink); }
.prio.low { background: var(--mist); color: var(--mute); }
.pill-type { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.pill-type.ready-pill { background: var(--marker); box-shadow: none; }
.pill-type.status { background: var(--cite-tint); color: var(--cite); box-shadow: none; }
.pill-effort { text-transform: none; letter-spacing: 0; }
.pill-effort.quick { background: var(--good-soft); color: #0b7a3b; }
.blk.blue .pill-type, .blk.blue .pill-effort, .blk.ink .pill-type, .blk.ink .pill-effort { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: none; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.chip.hit { background: var(--cite-tint); color: var(--cite); font-weight: 600; }
.chip.miss { background: var(--bad-soft); color: var(--bad-text); font-weight: 600; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.chips-k { font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.type { font: 500 10.5px var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.type.you { background: var(--cite-tint); color: var(--cite); }
.type.competitor { background: var(--bad-soft); color: var(--bad-text); }
.type.third-party { background: var(--mist); color: var(--mute); }
.gap { color: var(--bad-text); font-weight: 700; }

.delta { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 99px; font: 500 11.5px var(--f-mono); background: var(--mist); color: var(--mute); white-space: nowrap; }
.delta.up { background: var(--good-soft); color: #0b7a3b; }
.delta.down { background: var(--bad-soft); color: var(--bad-text); }
.blk.ink .delta { background: rgb(255 255 255 / 0.1); color: rgb(255 255 255 / 0.75); }
.blk.ink .delta.up { background: rgb(18 161 80 / 0.25); color: #7be3a6; }
.blk.ink .delta.down { background: rgb(229 72 77 / 0.25); color: #ff9da0; }
.blk.marker .delta { background: rgb(255 255 255 / 0.55); }

/* meters (fill in on view) */
.meter { display: block; flex: 1; min-width: 40px; height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--faint); animation: fill 1.2s 0.2s var(--ease) both; }
.meter.cite > span { background: var(--cite); }
.meter.ink > span { background: var(--ink-2); }
.meter.bad > span { background: var(--bad); }
.meter.marker > span { background: var(--marker); }
.meter.big { height: 12px; }
.blk.ink .meter, .blk.blue .meter { background: rgb(255 255 255 / 0.13); }
@keyframes fill { from { width: 0; } }

/* ---------- banners, toast, progress ---------- */
.banner { background: var(--marker-soft); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; box-shadow: inset 4px 0 0 var(--marker); }
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-float); transform: translateX(-50%); animation: toast 0.45s var(--ease) both;
}
.toast::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--marker); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); } }
.running-card { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.running-card h2 { font: 500 20px var(--f-display); }
.pulse-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--cite); box-shadow: 0 0 0 0 rgb(43 59 255 / 0.4); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 14px rgb(43 59 255 / 0); } }
.progress { height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.progress > div { height: 100%; border-radius: inherit; background: var(--cite) repeating-linear-gradient(-45deg, transparent 0 8px, rgb(255 255 255 / 0.2) 8px 16px); background-size: 22px 22px; animation: stripes 0.8s linear infinite; transition: width 0.5s var(--ease); }
@keyframes stripes { to { background-position: 22px 0; } }

/* ---------- overview bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: 1 / -1; }
.bento > .blk + .blk { margin-top: 0; }
.bento .trend-blk { height: 100%; }

.score-blk { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px; }
.score-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.score-num { font: 500 112px/0.82 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.score-of { font: 400 24px var(--f-display); color: rgb(255 255 255 / 0.45); }
.score-line { font-size: 14.5px; color: rgb(255 255 255 / 0.8); margin-top: 4px; }
.score-line strong { color: #fff; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.dots span.on { background: var(--marker); box-shadow: 0 0 0 3px rgb(255 225 77 / 0.18); animation: pop 0.5s calc(0.5s + var(--i) * 0.06s) var(--ease) both; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.25); } }

.donow { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; min-height: 290px; }
.donow > *:not(.page-art):not(.sticker) { max-width: calc(100% - 170px); z-index: 1; }
.donow .blk-head { max-width: none !important; margin-bottom: 4px; }
.donow-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.donow-title { font: 500 30px/1.12 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; text-wrap: balance; }
.donow-why { color: rgb(255 255 255 / 0.82); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.donow-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.donow-note { font: 12px var(--f-mono); color: rgb(255 255 255 / 0.7); }
.sticker {
  position: absolute !important; top: -13px; right: 26px; z-index: 3;
  padding: 7px 13px; border-radius: 10px; background: var(--marker); color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-paper); transform: rotate(4deg); transition: transform 0.4s var(--ease);
}
.blk:hover .sticker { transform: rotate(-2deg) scale(1.06); }

/* the little page being built */
.page-art { position: absolute !important; right: 0; bottom: 0; width: 210px; height: 200px; overflow: hidden; border-bottom-right-radius: var(--r-blk); pointer-events: none; z-index: 0; }
.pa-sheet {
  position: absolute; right: 26px; bottom: -36px; width: 140px; height: 180px; border-radius: 10px; background: #fff; padding: 18px 14px;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.45); transform: rotate(6deg); transition: transform 0.6s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.pa-sheet.back { right: 48px; bottom: -52px; transform: rotate(-7deg); background: rgb(255 255 255 / 0.35); box-shadow: none; }
.blk:hover .pa-sheet:not(.back) { transform: rotate(2deg) translateY(-12px); }
.blk:hover .pa-sheet.back { transform: rotate(-10deg) translateY(-4px); }
.pa-h, .pa-l { display: block; height: 8px; border-radius: 4px; background: var(--line); transform-origin: left; animation: write 0.7s var(--ease) both; }
.pa-h { height: 12px; width: 75%; background: var(--ink); animation-delay: 0.3s; }
.pa-l { animation-delay: 0.5s; }
.pa-l.hlx { background: var(--marker); width: 85%; animation-delay: 0.45s; }
.pa-l.short { width: 60%; animation-delay: 0.6s; }
.pa-l:last-of-type { animation-delay: 0.7s; }
.pa-cite { position: absolute; top: 14px; right: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--cite); color: #fff; font: 600 10px/1 var(--f-display); }
@keyframes write { from { transform: scaleX(0); } }

.this-week { padding: 24px 26px; }
.tw-summary { font: 400 23px/1.38 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.012em; max-width: 34em; text-wrap: pretty; }
.tw-summary strong { font-weight: 600; }
.event-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.event-list .ev { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; font-size: 14px; background: var(--white); box-shadow: var(--ring); animation: rise 0.5s calc(0.3s + var(--i) * 0.07s) var(--ease) both; }
.ev-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--mist); font-size: 12px; font-weight: 700; color: var(--mute); }
.ev.high { background: #fff7f7; box-shadow: inset 0 0 0 1px rgb(229 72 77 / 0.2); }
.ev.high .ev-icon { background: var(--bad); color: #fff; }
.ev.good { background: #f5fcf8; box-shadow: inset 0 0 0 1px rgb(18 161 80 / 0.2); }
.ev.good .ev-icon { background: var(--good); color: #fff; }
.calm { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 12.5px var(--f-mono); color: var(--mute); }
.calm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }

.kpi-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kpi-stack > .blk + .blk { margin-top: 0; }
.kpi-blk { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; min-width: 0; }
.kpi-blk .ref { margin-bottom: 4px; }
.kpi-blk.wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; }
.kpi-blk.wide .ref { width: 100%; }
.kpi-big { font: 500 50px/0.95 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi-big small { font-size: 22px; color: inherit; opacity: 0.55; margin-left: 2px; }
.kpi-name { font: 500 22px/1.15 var(--f-display); letter-spacing: -0.015em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpi-sub { font-size: 13px; color: var(--mute); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.blk.marker .kpi-sub { color: rgb(17 18 22 / 0.72); }
.link-blk { color: var(--ink); text-decoration: none !important; }
.link-blk .kpi-sub::after { content: "→"; color: var(--cite); font-weight: 700; transition: transform 0.3s var(--ease); }
.link-blk:hover .kpi-sub::after { transform: translateX(4px); }

.perception .perc-summary { margin: 4px 0 0; padding: 2px 0 2px 18px; font: 400 18px/1.5 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--ink-2); position: relative; }
.perception .perc-summary::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--marker); }
.fact-errors { margin-top: 16px; display: grid; gap: 8px; }
.fact-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: #fff7f7; box-shadow: inset 0 0 0 1px rgb(229 72 77 / 0.18); border-radius: 14px; padding: 11px 14px; font-size: 14px; }
.fact-body { display: grid; gap: 4px; min-width: 0; }
.fact-k { display: inline-block; min-width: 92px; font: 500 10.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.fact-wrong s { color: var(--bad-text); }
.fact-right::after { content: " ✓"; color: var(--good); font-weight: 700; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.perc-col .label { margin-bottom: 6px; }
.perc-col.good .label { color: #0b7a3b; }
.plain-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.plain-list li { position: relative; padding-left: 18px; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.perc-col.good li::before { content: "✓"; width: auto; height: auto; background: none; top: 0; left: 0; color: var(--good); font-weight: 700; font-size: 12px; }
.perc-col.miss li::before { background: var(--marker); box-shadow: 0 0 0 1px rgb(17 18 22 / 0.15); }
.answers-toggle { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.answers-toggle > summary { cursor: pointer; color: var(--cite); font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.answers-toggle > summary::-webkit-details-marker { display: none; }
.answers-toggle > summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cite-tint); font-family: var(--f-mono); transition: transform 0.3s var(--ease); }
.answers-toggle[open] > summary::before { transform: rotate(45deg); }
.answers-toggle[open] > summary { margin-bottom: 8px; }
.answer-text { font-size: 14px; line-height: 1.65; padding: 4px 0 0; color: var(--ink-2); }

.qw-list { display: flex; flex-direction: column; gap: 8px; }
.qw-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: var(--paper); color: var(--ink); text-decoration: none !important; box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease);
}
.qw-row:hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.25), var(--shadow-soft); transform: translateX(3px); }
.qw-n { font: 500 11.5px var(--f-mono); color: var(--cite); align-self: start; padding-top: 2px; }
.qw-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qw-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qw-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.qw-cta { font-weight: 600; font-size: 13px; color: var(--cite); white-space: nowrap; }
.qw-cta.magic { padding: 7px 12px; border-radius: 99px; background: var(--cite); color: #fff; box-shadow: 0 8px 18px -10px rgb(43 59 255 / 0.8); transition: background-color 0.25s; }
.qw-row:hover .qw-cta.magic { background: var(--cite-deep); }
.link-more { font-weight: 600; font-size: 13.5px; }

.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 26px minmax(0, 1.25fr) minmax(50px, 1fr) 40px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.board li:last-child { border-bottom: 0; }
.board .rank { font: 500 11.5px var(--f-mono); color: var(--faint); }
.board li.you .rank { color: var(--cite); font-weight: 600; }
.b-name { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board li.you .b-name { font-weight: 700; overflow: visible; }
.b-note { font-size: 19px; line-height: 1; transform: rotate(-4deg); flex: none; }
.b-v { text-align: right; font: 500 12.5px var(--f-mono); font-variant-numeric: tabular-nums; }
.board li.you .b-v { color: var(--cite); }

.trend { width: 100%; height: auto; display: block; overflow: visible; }
.trend .axis { font: 10.5px var(--f-mono); fill: var(--faint); }
.trend .line-you { stroke-dasharray: 1400; stroke-dashoffset: 0; animation: draw 1.6s 0.3s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1400; } }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.legend-item.you { font-weight: 600; }
.swatch { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.spark { display: block; flex: none; }

/* ---------- actions ---------- */
.usp-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 28px; padding: 30px 32px 30px 56px; margin-bottom: 22px; overflow: hidden; }
.usp-title { font: 500 36px/1.08 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.025em; text-wrap: balance; }
.usp-title em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); background-image: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 90%, transparent 90%); background-repeat: no-repeat; padding: 0 0.12em; border-radius: 0.1em; animation: sweep 0.9s 0.45s cubic-bezier(0.65, 0, 0.35, 1) both; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.usp-sub { margin-top: 12px; color: rgb(255 255 255 / 0.85); font-size: 15px; max-width: 56ch; }
.usp-steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.usp-steps li { display: flex; align-items: center; gap: 8px; }
.usp-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--cite); font: 600 12px var(--f-mono); }
.usp-steps li + li::before { content: "→"; color: rgb(255 255 255 / 0.5); margin-right: 4px; }
.usp-stats { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgb(255 255 255 / 0.2); padding-left: 26px; }
.usp-stat { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgb(255 255 255 / 0.22); }
.usp-stat:last-child { border-bottom: 0; }
.usp-num { font: 500 42px/1 var(--f-display); letter-spacing: -0.04em; min-width: 1.3em; font-variant-numeric: tabular-nums; }
.usp-k { font-size: 13.5px; color: rgb(255 255 255 / 0.82); }

.tabs { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 6px; border-radius: 99px; background: var(--white); box-shadow: var(--ring), var(--shadow-soft); flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: transparent; color: var(--mute); font: 600 14px var(--f-sans); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.tab:hover { color: var(--ink); background: var(--mist); }
.tab.active { background: var(--ink); color: #fff; }
.tab-n { font: 500 11.5px var(--f-mono); opacity: 0.6; }
.list-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; font-size: 15px; }
.list-head .ref { margin: 0; color: var(--ink); font-size: 12.5px; }

.action-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.list-head + .action-list { margin-top: 0; }
.action-list > .blk, .action-list > p { grid-column: 1 / -1; }
.action-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px 24px; border-radius: 18px; overflow: hidden;
  background: var(--white); color: var(--ink); text-decoration: none !important; box-shadow: var(--ring), var(--shadow-paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.action-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.action-card.prio-high::before { background: var(--bad); }
.action-card.prio-medium::before { background: var(--marker); }
.action-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.3), var(--shadow-float); }
.action-card.status-done, .action-card.status-dismissed { opacity: 0.82; }
.action-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.action-title { font: 500 19px/1.25 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.012em; margin-top: 4px; }
.action-why { font-size: 13.5px; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.action-detail { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.action-card .action-detail { padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.action-card .action-detail .kv { overflow: hidden; }
.action-card .action-detail .kv > :last-child, .action-card .action-detail .kv { overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.kv > span:first-child { font: 500 10.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.kv ul { margin: 0; padding-left: 18px; }
.action-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: flex-end; }
.card-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: transform 0.3s var(--ease), background-color 0.25s; }
.card-cta.magic { height: 36px; padding: 0 16px; border-radius: 99px; background: var(--cite); color: #fff; box-shadow: 0 10px 22px -12px rgb(43 59 255 / 0.9); position: relative; overflow: hidden; }
.card-cta.magic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.9s var(--ease); }
.action-card:hover .card-cta.magic { background: var(--cite-deep); }
.action-card:hover .card-cta.magic::after { transform: translateX(120%); }
.card-cta.ready { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--marker-soft); color: var(--ink); }
.ready-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgb(18 161 80 / 0.5); animation: ping-g 1.8s ease-out infinite; }
@keyframes ping-g { to { box-shadow: 0 0 0 8px rgb(18 161 80 / 0); } }
.card-cta.quiet { color: var(--cite); }
.action-card:hover .card-cta.quiet { transform: translateX(4px); }

/* ---------- action detail ---------- */
.detail-head h1 { margin-top: 12px; font-size: 36px; max-width: 24em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.detail-grid > .blk + .blk { margin-top: 0; }
.detail-main { padding: 26px 28px; }
.detail-main > .ref:not(:first-child) { margin-top: 22px; }
.q-quote { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 12px; font: italic 400 21px/1.35 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
.q-quote .ref-n { font: 500 11.5px var(--f-mono); font-style: normal; }
.detail-why { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.detail-impact { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--marker-soft); font-size: 14px; }
.action-detail.spec { gap: 0; }
.action-detail.spec .kv { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.action-detail.spec .kv:last-child { border-bottom: 0; }
.action-detail.spec .kv a { overflow-wrap: anywhere; }
.build-panel { position: sticky; top: 24px; padding: 24px 24px 20px 50px; display: flex; flex-direction: column; gap: 12px; }
.build-panel.ink { padding-left: 24px; }
.build-panel .ref { margin: 0; }
.build-title { font: 500 25px/1.15 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.018em; }
.build-sub { font-size: 14px; color: rgb(255 255 255 / 0.78); }
.build-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; font-size: 14px; color: rgb(255 255 255 / 0.9); }
.build-list li { display: flex; gap: 10px; align-items: flex-start; }
.build-list li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgb(255 255 255 / 0.16); font-size: 11px; font-weight: 700; margin-top: 1px; }
.build-msg { font-size: 13px; color: rgb(255 255 255 / 0.85); min-height: 0; }
.build-msg:empty { display: none; }
.done-note { font-weight: 600; color: #7be3a6; }
.build-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.18); }
.status-field { display: flex; flex-direction: column; gap: 5px; }
.status-field .label { color: rgb(255 255 255 / 0.7); font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.build-panel select { width: auto; height: 34px; padding: 0 30px 0 12px; border-radius: 99px; border: 0; background-color: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"); }
.build-panel select option { color: var(--ink); background: #fff; }

#draft-area:not(:empty) { margin-top: 18px; scroll-margin-top: 20px; }
.draft-card { padding: 26px 28px; }
.draft-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.draft-head .ref { margin-bottom: 8px; }
.draft-title { font: 500 28px/1.15 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ready-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--marker); color: var(--ink); font: 600 13px var(--f-sans); letter-spacing: 0; transform: rotate(-3deg); }
.just-built { animation: built 0.7s var(--ease) both; }
.just-built .ready-badge { animation: stamp 0.6s 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes built { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } to { opacity: 1; transform: rotate(-3deg); } }
.draft-steps { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--mute); }
.draft-steps li { display: flex; align-items: center; gap: 7px; }
.draft-steps li + li::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--line); margin-right: 2px; }
.st-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); color: var(--mute); font: 600 11.5px var(--f-mono); }
.draft-steps li.done { color: var(--ink); }
.draft-steps li.done .st-n { background: var(--good); color: #fff; }
.draft-steps li.now { color: var(--cite); }
.draft-steps li.now .st-n { background: var(--cite); color: #fff; animation: ping 1.8s ease-out infinite; }

.publish-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; margin: 0 0 18px; border-radius: 18px; flex-wrap: wrap; }
.pub-body { flex: 1 1 320px; min-width: 0; }
.pub-body .ref { margin-bottom: 8px; }
.pub-title { font: 500 22px/1.2 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.015em; }
.pub-sub { margin-top: 6px; font-size: 14px; }
.pub-site { text-transform: none; letter-spacing: 0; opacity: 0.8; }
.publish-box.ready { background: var(--ink); color: #fff; box-shadow: var(--shadow-float); }
.publish-box.ready::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(240deg, #000, transparent 60%); mask-image: linear-gradient(240deg, #000, transparent 60%); }
.publish-box.ready .ref { color: rgb(255 255 255 / 0.7); }
.publish-box.ready .ref-n { color: var(--cite-on-ink); }
.publish-box.ready .pub-sub { color: rgb(255 255 255 / 0.75); }
.publish-box.ready .error { color: #ff9da0; margin-top: 8px; }
.publish-box.connect { background: var(--cite-tint); box-shadow: inset 0 0 0 1.5px rgb(43 59 255 / 0.25); background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(43 59 255 / 0.06) 31px 32px); }
.publish-box.connect .pub-sub { color: var(--ink-2); }
.publish-box.sending::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--marker), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: slide 1.1s linear infinite; }
@keyframes slide { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.publish-box.done { justify-content: flex-start; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(18 161 80 / 0.3); background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(43 59 255 / 0.06) 31px 32px); }
.pub-stamp { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--good); color: #fff; font-size: 30px; font-weight: 700; box-shadow: 0 0 0 6px var(--good-soft); animation: stamp-c 0.7s 0.1s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes stamp-c { from { opacity: 0; transform: scale(2) rotate(-25deg); } }
.pub-big { font: 500 36px/1.1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.025em; margin-bottom: 6px; }
.pub-check { color: var(--good); }
.check-label.on-ink { color: rgb(255 255 255 / 0.9); }

.fill-in { background: var(--marker-soft); color: var(--ink); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; box-shadow: inset 4px 0 0 var(--marker); }
.fill-in ul { margin: 6px 0; padding-left: 20px; font-size: 14px; }
.fill-in .muted { color: rgb(17 18 22 / 0.65); }

.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.preview-frame { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--ring), var(--shadow-float); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.bb-dots { display: flex; gap: 6px; }
.bb-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(17 18 22 / 0.14); }
.bb-url { flex: 1; min-width: 0; max-width: 520px; height: 26px; line-height: 26px; padding: 0 12px; border-radius: 8px; background: #fff; font: 12px/26px var(--f-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: var(--ring); }
.preview { width: 100%; height: 640px; border: 0; display: block; background: #fff; transition: height 0.5s var(--ease); }
.preview.big { height: 1100px; }
.bb-exit { display: none; margin-left: auto; }
.preview-frame:fullscreen, .preview-frame.fs { position: fixed; inset: 0; z-index: 1000; border-radius: 0; display: flex; flex-direction: column; background: #fff; }
.preview-frame:fullscreen .bb-exit, .preview-frame.fs .bb-exit { display: inline-flex; }
.preview-frame:fullscreen .preview, .preview-frame.fs .preview { flex: 1; height: auto; }
.preview-frame:fullscreen .bb-url, .preview-frame.fs .bb-url { max-width: 60vw; }
body.fs-lock { overflow: hidden; }
/* an animated ancestor (transform/filter) would trap position:fixed inside it */
body.fs-lock :has(> .preview-frame.fs), body.fs-lock :has(.preview-frame.fs) { transform: none !important; filter: none !important; animation: none !important; contain: none !important; }
.preview-loading { position: absolute; inset: 40px 0 0; display: grid; place-content: center; justify-items: center; background: var(--white); color: var(--mute); font-size: 14px; }

.copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.copy-row .label { font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.copy-row .label .muted { text-transform: none; letter-spacing: 0; }
.copy-val { margin-top: 4px; word-break: break-word; font-size: 14.5px; }
.copy-val.pre { white-space: pre-wrap; }
.copy-grid:has(.pre) { grid-template-columns: 1fr; }
.copy-actions { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.new-val { background: var(--cite-tint); color: var(--ink); border-radius: 6px; padding: 1px 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.howto { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.howto summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.howto-body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.steps-list { padding-left: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 8px; list-style: none; counter-reset: s; font-size: 14.5px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 34px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cite-tint); color: var(--cite); font: 600 11.5px var(--f-mono); }

/* building state */
.building { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; background: var(--cite-tint); box-shadow: inset 0 0 0 1.5px rgb(43 59 255 / 0.2); animation: built 0.5s var(--ease) both; }
.building .draft-title { margin-bottom: 8px; }
.build-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--faint); }
.build-steps li { display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.bs-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 700; transition: background-color 0.3s; }
.build-steps li.now { color: var(--ink); font-weight: 600; }
.build-steps li.now .bs-dot { background: var(--cite); box-shadow: none; animation: ping 1.4s ease-out infinite; }
.build-steps li.done { color: var(--ink-2); }
.build-steps li.done .bs-dot { background: var(--good); box-shadow: none; }
.build-steps li.done .bs-dot::after { content: "✓"; }
.skeleton-page { border-radius: 14px; background: #fff; box-shadow: var(--ring), var(--shadow-float); overflow: hidden; transform: rotate(1.2deg); }
.sk-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--mist); }
.sk-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(17 18 22 / 0.14); }
.sk-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; }
.sk { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--mist) 0 40%, var(--line) 50%, var(--mist) 60% 100%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite, write 0.8s var(--ease) both; transform-origin: left; }
.sk.h1 { height: 20px; width: 70%; background: linear-gradient(90deg, var(--ink-2) 0 40%, #555864 50%, var(--ink-2) 60% 100%); background-size: 300% 100%; }
.sk.h2 { height: 14px; width: 45%; margin-top: 8px; }
.sk.short { width: 55%; }
.sk.hl-line { width: 82%; background: linear-gradient(90deg, var(--marker-soft) 0 40%, var(--marker) 50%, var(--marker-soft) 60% 100%); background-size: 300% 100%; }
.sk:nth-child(2) { animation-delay: 0s, 0.2s; }
.sk:nth-child(3) { animation-delay: 0s, 0.4s; }
.sk:nth-child(4) { animation-delay: 0s, 0.6s; }
.sk:nth-child(5) { animation-delay: 0s, 0.8s; }
.sk:nth-child(n + 6) { animation-delay: 0s, 1s; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* why-box */
.why-box { margin-top: 16px; border-radius: 14px; background: var(--paper); padding: 14px 16px; box-shadow: inset 3px 0 0 var(--cite), inset 0 0 0 1px var(--line); font-size: 14px; }
.why-head { line-height: 1.45; }
.why-head .ref-n { font: 500 11px var(--f-mono); margin-right: 4px; }
.why-score { display: inline-flex; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--bad-soft); color: var(--bad-text); font: 500 11px/1.7 var(--f-mono); white-space: nowrap; }
.why-fix { margin-top: 10px; }
.why-fix-k { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--marker); font: 600 10.5px/1.8 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- questions ---------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--white); box-shadow: var(--ring), var(--shadow-paper); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.strip-item.ink { background: var(--ink); color: #fff; }
.strip-item.tint { background: var(--cite-tint); }
.strip-item.marker { background: var(--marker); }
.strip-num { font: 500 40px/1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.strip-num small { font-size: 18px; opacity: 0.55; margin-left: 2px; }
.strip-k { font-size: 13px; color: var(--mute); }
.strip-item.ink .strip-k { color: rgb(255 255 255 / 0.7); }
.strip-item.marker .strip-k { color: rgb(17 18 22 / 0.7); }

.q-list { display: flex; flex-direction: column; gap: 14px; }
.q-list > .blk + .blk { margin-top: 0; }
.question-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 24px; }
.q-side { display: flex; flex-direction: column; gap: 8px; padding-right: 22px; border-right: 1px dashed var(--line); }
.q-n { font: 500 11.5px var(--f-mono); color: var(--cite); }
.q-big { font: 500 50px/0.9 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.q-big small { font-size: 20px; color: var(--faint); letter-spacing: 0; }
.q-hit .q-big span { color: var(--cite); }
.q-miss .q-big span { color: var(--bad-text); }
.q-k { font: 500 10.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }
.q-side .meter { flex: none; width: 100%; }
.q-title { font: 500 21px/1.3 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.012em; text-wrap: pretty; }

/* AI answers */
.answer { border-radius: 14px; margin-bottom: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s; }
.answer:hover { box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.3); }
.answer[open] { box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.3), var(--shadow-soft); }
.answer summary { cursor: pointer; padding: 11px 14px; display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.answer summary::-webkit-details-marker { display: none; }
.answer-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: rgb(229 72 77 / 0.55); }
.answer.is-hit .answer-dot { background: var(--cite); box-shadow: 0 0 0 3px var(--cite-tint); }
.answer .q { font-weight: 600; font-size: 14px; flex: 1 1 240px; }
.answer-caret { width: 8px; height: 8px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); margin: -3px 4px 0 2px; transition: transform 0.3s var(--ease); }
.answer[open] .answer-caret { transform: rotate(225deg); margin-top: 3px; }
.answer .body { padding: 0 14px 14px; font-size: 14px; }
.answer .text {
  border-radius: 12px; padding: 14px 18px; line-height: 32px; font-size: 14.5px; color: var(--ink-2); background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(43 59 255 / 0.08) 31px 32px); background-position: 0 14px;
}
.answer mark { background: none; color: var(--ink); font-weight: 600; border-bottom: 2px dotted rgb(17 18 22 / 0.35); padding: 0 1px; }
.answer mark.you {
  border: 0; font-weight: 700; padding: 0 0.14em; border-radius: 0.12em;
  background-image: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 88%, transparent 88%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.answer mark.you::after { content: "1"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 3px; border-radius: 50%; background: var(--cite); color: #fff; font: 600 9px/1 var(--f-display); vertical-align: super; }
.src-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.src-list a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--mist); color: var(--ink-2); font: 12px var(--f-mono); text-decoration: none; transition: background-color 0.2s; }
.src-list a:hover { background: var(--line); }
.src-n { color: var(--faint); font-family: var(--f-mono); }
.src-list li.you a { background: var(--cite-tint); color: var(--cite); font-weight: 600; box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.25); }
.src-list li.you .src-n { color: var(--cite); }

/* ---------- competitors ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.comp-grid .blk + .blk { margin-top: 0; }
.comp-card { overflow: hidden; }
.comp-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--good); }
.comp-card.ahead::after { background: var(--bad); }
.comp-card .blk-head { align-items: flex-start; }
.comp-card .blk-head .ref { margin-bottom: 6px; }
.comp-name { font: 500 26px/1.1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; }
.h2h { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--paper); }
.h2h-row { display: grid; grid-template-columns: minmax(60px, 110px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.h2h-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.h2h-v { text-align: right; font: 500 12.5px var(--f-mono); }
.h2h-row.you .h2h-v { color: var(--cite); }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mini-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.mk-k { font: 500 10.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.mk-v { font: 500 24px/1.1 var(--f-display); letter-spacing: -0.02em; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 11px 10px; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: middle; }
table.data th { font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr { transition: background-color 0.2s; }
table.data tbody tr:hover { background: var(--paper); }
table.data tr:last-child td { border-bottom: 0; }
.src-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.src-cell .src-n { font-size: 12px; min-width: 28px; }
.src-dom { font-weight: 500; }
tr.you-row { background: var(--cite-tint); }
tr.you-row:hover { background: var(--cite-tint) !important; }
tr.you-row .src-dom { color: var(--cite); font-weight: 700; }
tr.you-row .src-n { color: var(--cite); }
.count-cell { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.count-cell .meter { flex: none; width: 80px; height: 6px; }

/* ---------- website ---------- */
.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.design-item { background: var(--paper); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.design-item .label { font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.design-color { display: flex; align-items: center; gap: 10px; }
.swatch-lg { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgb(17 18 22 / 0.1); }
.design-color input[type="color"] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.design-item select { width: auto; }
.design-logo { max-height: 40px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.checks-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.check-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.check-row .check-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; background: var(--faint); }
.check-row.pass .check-icon { background: var(--good); }
.check-row.warn .check-icon { background: var(--amber); }
.check-row.fail .check-icon { background: var(--bad); }
.check-row.fail { background: #fff7f7; box-shadow: inset 0 0 0 1px rgb(229 72 77 / 0.2); }
.check-title { font-weight: 600; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; height: 44px; padding: 0 14px; font: 14.5px var(--f-sans); color: var(--ink); background: var(--white);
  border: 1px solid #dddbd4; border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { height: auto; min-height: 170px; padding: 10px 14px; resize: vertical; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23111216' stroke-width='1.5'/%3E%3C/svg%3E"); }
input:hover, select:hover, textarea:hover { border-color: #c9c6bd; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cite); box-shadow: 0 0 0 4px rgb(43 59 255 / 0.14); }
input::placeholder { color: var(--faint); }
.check-label { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-weight: 500; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cite); width: 16px; height: 16px; }
.section-title { margin: 2px 0 14px; }
.section-title .ref { margin: 0; color: var(--ink); font-size: 12px; }
.divider { height: 1px; margin: 26px 0; background-image: linear-gradient(to right, var(--line) 50%, transparent 50%); background-size: 8px 1px; }
.prompt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; animation: rise 0.35s var(--ease) both; }
.comp-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; animation: rise 0.35s var(--ease) both; }
.comp-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.prompt-row .btn.ghost, .comp-row .btn.ghost { height: 44px; width: 44px; padding: 0; }
.summary-note { padding: 14px 16px; border-radius: 14px; background: var(--cite-tint); color: var(--ink-2); font-size: 14px; box-shadow: inset 3px 0 0 var(--cite); }
.radio-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0 -4px 6px; border-radius: 14px; font-weight: 400; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.2s, box-shadow 0.2s; }
.radio-row:hover { background: var(--paper); }
.radio-row:has(input:checked) { background: var(--cite-tint); box-shadow: inset 0 0 0 1.5px rgb(43 59 255 / 0.4); }
.radio-row > span { display: grid; gap: 2px; }
.radio-row input { margin-top: 3px; }
.setup-pitch { font: 400 20px/1.35 var(--f-display); font-variation-settings: "SOFT" 100; margin-bottom: 8px; }
.publish-setup .steps-list { margin-top: 14px; }
.dev-link { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--marker-soft); color: var(--ink); }
.dev-link a { font-weight: 700; }

/* ---------- login ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; max-width: 1000px; margin: 7vh auto 40px; align-items: stretch; }
.auth-side {
  position: relative; overflow: hidden; border-radius: 26px; padding: 40px 40px 40px 64px; color: #fff; background: var(--cite);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.08) 31px 32px), linear-gradient(to right, transparent 0 40px, rgb(255 255 255 / 0.18) 40px 41px, transparent 41px);
  box-shadow: 0 30px 60px -30px rgb(43 59 255 / 0.8); animation: rise 0.6s var(--ease) both;
}
.auth-side .ref { color: rgb(255 255 255 / 0.72); }
.auth-side .ref-n { color: #fff; }
.auth-quote { font: 500 44px/1.05 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.03em; margin: 6px 0 30px; }
.auth-quote em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.auth-answer { position: relative; background: #fff; color: var(--ink-2); border-radius: 16px; padding: 18px 20px 20px; font-size: 14.5px; line-height: 1.6; box-shadow: var(--shadow-float); transform: rotate(-1.5deg); }
.auth-answer-q { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.auth-answer .hl { font-weight: 700; animation: sweep 0.9s 0.6s cubic-bezier(0.65, 0, 0.35, 1) both; }
.cite-n { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%; background: var(--cite); color: #fff; font: 600 10px/1 var(--f-display); }
.auth-src { margin-top: 10px; font: 12px var(--f-mono); color: var(--cite); font-weight: 600; }
.auth-src span { margin-right: 6px; }
.auth-note { position: absolute; right: 18px; bottom: 10px; font-size: 24px; transform: rotate(-6deg); }
.auth-card { padding: 40px; border-radius: 26px; animation: rise 0.6s 0.08s var(--ease) both; display: flex; flex-direction: column; justify-content: center; }
.auth-card.solo { max-width: 440px; margin: 10vh auto 0; align-items: center; }
.auth-logo { display: inline-flex; margin-bottom: 28px; text-decoration: none !important; }
.auth-card h1 { font-size: 36px; }
.auth-card label { display: block; margin-bottom: 6px; }

/* ---------- mobile + responsive ---------- */
@media (max-width: 1180px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .usp-hero { grid-template-columns: 1fr; }
  .usp-stats { flex-direction: row; flex-wrap: wrap; border-left: 0; padding-left: 0; border-top: 1px solid rgb(255 255 255 / 0.2); padding-top: 12px; gap: 0 26px; }
  .usp-stat { border-bottom: 0; flex: 1 1 160px; flex-direction: column; gap: 2px; }
}
@media (max-width: 1080px) {
  .span-5, .span-7 { grid-column: span 6; }
  .donow > *:not(.page-art):not(.sticker) { max-width: none; }
  .donow .page-art { opacity: 0.25; }
  .detail-grid { grid-template-columns: 1fr; }
  .build-panel { position: relative; top: 0; }
  .copy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .portal .shell { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar {
    display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px;
    background: rgb(250 248 243 / 0.86); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: grid; align-content: center; gap: 4px; width: 42px; height: 42px; padding: 0 11px; border: 0; border-radius: 12px; background: var(--white); box-shadow: var(--ring), var(--shadow-soft); cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: min(290px, 86vw); height: auto; transform: translateX(-105%); transition: transform 0.4s var(--ease); box-shadow: var(--shadow-float); }
  .menu-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgb(17 18 22 / 0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
  .portal .main { padding: 22px 16px 70px; }
  h1 { font-size: 31px; }
  .detail-head h1 { font-size: 28px; }
  .span-5, .span-7 { grid-column: 1 / -1; }
  .auth-wrap { grid-template-columns: 1fr; margin-top: 24px; }
  .auth-side { display: none; }
  .auth-card { padding: 28px 22px; }
}
@media (max-width: 720px) {
  .bento { gap: 12px; }
  .score-num { font-size: 92px; }
  .donow-title { font-size: 25px; }
  .donow { min-height: 0; }
  .donow .page-art { display: none; }
  .tw-summary { font-size: 19px; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .strip, .strip.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .strip > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .strip-num { font-size: 32px; }
  .question-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .q-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-right: 0; padding-right: 0; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
  .q-side .meter { flex: 1 1 100%; order: 5; }
  .q-big { font-size: 38px; }
  .q-title { font-size: 18px; }
  .action-list { grid-template-columns: 1fr; }
  .usp-hero { padding: 24px 20px 24px 46px; }
  .usp-title { font-size: 28px; }
  .blk, .card { padding: 18px; }
  .draft-card, .detail-main { padding: 20px 18px; }
  .build-panel { padding: 20px 20px 18px 44px; }
  .building { grid-template-columns: 1fr; padding: 20px; }
  .skeleton-page { display: none; }
  .draft-title { font-size: 23px; }
  .pub-big { font-size: 28px; }
  .publish-box { padding: 18px; }
  .publish-box .btn.big { width: 100%; }
  .preview { height: 480px; }
  .fact-row { flex-direction: column; align-items: stretch; }
  .fact-k { min-width: 0; display: block; }
  .comp-row, .comp-row.two { grid-template-columns: 1fr auto; }
  .comp-row.two input[data-c="aliases"] { grid-column: 1; grid-row: 2; }
  .comp-row.two .btn { grid-row: 1; grid-column: 2; }
  .comp-grid { grid-template-columns: 1fr; }
  .checks-list { grid-template-columns: 1fr; }
  .page-head { margin-bottom: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kpi-big { font-size: 42px; }
}
@media (max-width: 420px) {
  .b-note { display: none; }
  .board li { grid-template-columns: 22px minmax(0, 1.2fr) minmax(40px, 1fr) 36px; gap: 8px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 0 10px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
}

@media print {
  .side, .mobile-bar, .scrim, .no-print, .actions, .filters, .tabs { display: none !important; }
  .portal .shell { display: block; }
  body { background: #fff; }
  .blk, .card { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  .main { padding: 0; max-width: none; }
  .answer:not([open]) { display: none; }
}

/* ---- refinements ---- */
.this-week { display: flex; flex-direction: column; }
.tw-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.tw-meta span { display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--white); box-shadow: var(--ring); font: 12px var(--f-mono); color: var(--ink-2); }
.tw-meta b { color: var(--cite); font-weight: 500; }
.donow .sticker { top: auto; bottom: 150px; right: 30px; }
.action-card .action-detail { max-height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.answer .text { line-height: 28px; background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgb(43 59 255 / 0.07) 27px 28px); }
.build-steps { color: var(--mute); }
.btn.loading:disabled { opacity: 0.9; }
.comp-card.level::after { background: var(--marker); }
.score-blk > .meter, .q-side > .meter { flex: none; }
@media (max-width: 900px) {
  .side { box-shadow: none; visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s 0.4s; }
  .menu-open .side { box-shadow: var(--shadow-float); visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
}
/* notebook margin line only where content clears it */
.blk.blue::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.08) 31px 32px); }
.usp-hero.blk.blue::before, .build-panel.blk.blue::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.08) 31px 32px), linear-gradient(to right, transparent 0 34px, rgb(255 255 255 / 0.18) 34px 35px, transparent 35px); }
@media (max-width: 720px) {
  .perception .perc-summary { font-size: 16px; }
  .kpi-stack { gap: 12px; }
  .kpi-blk { padding: 16px; }
  .kpi-name { font-size: 19px; }
}
@media (max-width: 720px) {
  .blk.usp-hero { padding: 22px 18px 22px 48px; gap: 18px; }
  .usp-steps { display: grid; gap: 8px; }
  .usp-steps li + li::before { display: none; }
  .usp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .usp-stat { padding: 6px 0; }
  .usp-num { font-size: 32px; }
  .usp-k { font-size: 12px; line-height: 1.3; }
  .blk.build-panel.blue { padding-left: 48px; }
}
@media (max-width: 1080px) {
  .detail-grid .build-panel { order: -1; }
}
@media (max-width: 720px) {
  .draft-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .draft-steps li { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; line-height: 1.25; padding: 10px; border-radius: 12px; background: var(--paper); }
  .draft-steps li + li::before { display: none; }
  .draft-steps li.now { background: var(--cite-tint); }
}
@media (max-width: 720px) {
  .q-side { flex-wrap: nowrap; }
  .q-side .meter { display: none; }
  .q-side .spark { margin-left: auto; width: 64px; height: auto; }
}
.portal .main { margin: 0 auto; }
@media (max-width: 1080px) {
  .donow .page-art { display: none; }
  .donow .sticker { top: -13px; bottom: auto; right: 20px; }
  .kpi-stack { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kpi-stack { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Plans, brands, clients, bulk fix, upgrade prompts, white-label
   ===================================================================== */
.spinner.sm { width: 14px; height: 14px; border-width: 2px; margin: 0; vertical-align: -2px; }
.pulse-dot.sm { width: 8px; height: 8px; }

/* brand switcher */
.side-brand { position: relative; padding: 0; background: none; box-shadow: none; display: block; }
.brand-static, .brand-switch {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 14px; text-align: left;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: inherit;
}
.brand-switch { border: 0; cursor: pointer; transition: box-shadow 0.2s, background-color 0.2s; }
.brand-switch:hover, .brand-switch[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.35), var(--shadow-soft); }
.brand-switch .side-brand-text { flex: 1; }
.bs-caret { width: 18px; height: 18px; flex: none; border-radius: 6px; background: var(--mist); position: relative; }
.bs-caret::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 5px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.brand-switch[aria-expanded="true"] .bs-caret::after { transform: translateY(3px) rotate(225deg); }
.brand-pop {
  position: absolute; z-index: 30; left: 0; right: -60px; top: calc(100% + 8px); padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: var(--ring), var(--shadow-float); animation: pop-in 0.25s var(--ease) both; max-height: 70vh; overflow: auto;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.bp-head { display: flex; justify-content: space-between; padding: 6px 8px 8px; font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.bp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background-color 0.2s; }
.bp-item:hover { background: var(--mist); }
.bp-item.current { background: var(--cite-tint); }
.bp-av, .cc-av { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--ink); color: #fff; font: 600 14px/1 var(--f-display); }
.bp-item.current .bp-av { background: var(--cite); }
.bp-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bp-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-dom { font: 11px var(--f-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-score { font: 600 16px var(--f-display); font-variant-numeric: tabular-nums; }
.bp-score.new { font: 500 10px var(--f-mono); text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--marker-soft); }
.bp-check { color: var(--cite); font-weight: 700; font-size: 13px; }
.bp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 6px 2px; border-top: 1px dashed var(--line); }
.bp-add { border: 0; background: var(--cite); color: #fff; font: 600 12.5px var(--f-sans); padding: 7px 12px; border-radius: 99px; cursor: pointer; transition: background-color 0.2s; }
.bp-add:hover { background: var(--cite-deep); }
.bp-all { font-size: 12.5px; font-weight: 600; }
.bp-loading { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 13px; color: var(--mute); }

/* sidebar plan meter */
.side-plan-card { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none !important; transition: box-shadow 0.2s, transform 0.3s var(--ease); }
.side-plan-card:hover { box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.35); transform: translateY(-1px); }
.side-plan-card .meter { flex: none; height: 6px; }
.side-plan-card.ended { background: #fff7f7; box-shadow: inset 0 0 0 1px rgb(229 72 77 / 0.3); }
.sp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-name { font: 600 15px var(--f-display); }
.sp-meta { font: 500 10.5px var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.side-plan-card.ended .sp-meta { color: var(--bad-text); }
.sp-k { font-size: 12px; color: var(--mute); }
.sp-k b { color: var(--ink); }
.side-promo + .side-plan { margin-top: -4px; }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgb(17 18 22 / 0.45); animation: fade 0.25s both; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-float); animation: built 0.4s var(--ease) both; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; font-size: 13px; color: var(--ink-2); }
.modal-x:hover { background: var(--line); }
.modal-title { font: 500 26px/1.15 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; margin: 2px 0 8px; }
.modal .muted { font-size: 14px; }
.modal-form { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.modal-form label:not(:first-child) { margin-top: 8px; }
.modal-form .btn { margin-top: 14px; }
.modal-form #ab-msg:not(:empty) { margin-top: 10px; }
.modal-fine { text-align: center; font: 11.5px var(--f-mono); color: var(--faint); margin-top: 6px; }
.modal .upgrade { margin-top: 14px; }

/* upgrade prompt */
.upgrade {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 16px; border-radius: 16px;
  background: var(--marker-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(17 18 22 / 0.08); animation: built 0.45s var(--ease) both;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgb(17 18 22 / 0.05) 27px 28px);
}
.upgrade-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ink); color: var(--marker); font-size: 18px; }
.upgrade-body { flex: 1 1 220px; min-width: 0; }
.upgrade-title { font: 500 18px/1.2 var(--f-display); letter-spacing: -0.01em; }
.upgrade-msg { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.blk.blue .upgrade, .bulk .upgrade { margin: 0; }

/* trial ended banner */
.trial-ended { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; padding: 22px 26px; }
.te-title { font: 500 26px/1.15 var(--f-display); letter-spacing: -0.02em; }
.te-sub { color: rgb(255 255 255 / 0.75); margin-top: 4px; font-size: 14.5px; }
.trial-ended .ref { margin-bottom: 8px; }

/* builds left line */
.usp-builds { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 14px 7px 10px; border-radius: 99px; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 13px; text-decoration: none !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); transition: background-color 0.2s; }
.usp-builds:hover { background: rgb(255 255 255 / 0.2); }
.usp-builds .meter { flex: none; width: 64px; height: 6px; }
.usp-builds.none { background: var(--marker); color: var(--ink); box-shadow: none; }
.usp-builds.none .meter { background: rgb(17 18 22 / 0.12); }
.build-panel .usp-builds { margin-top: 0; align-self: flex-start; font-size: 12.5px; }
.blk.ink .usp-builds { background: rgb(255 255 255 / 0.1); }

/* clients view */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.client-grid > .blk + .blk { margin-top: 0; }
.client-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.client-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.25), var(--shadow-float); }
.client-card.is-current { box-shadow: inset 0 0 0 2px var(--cite), var(--shadow-paper); }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-av { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
.client-card.is-current .cc-av { background: var(--cite); }
.cc-av.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.cc-id { flex: 1; min-width: 0; }
.cc-name { font: 500 21px/1.15 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dom { font: 12px var(--f-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-score { display: flex; align-items: baseline; gap: 6px; }
.cc-num { font: 500 52px/0.9 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cc-of { font: 400 17px var(--f-display); color: var(--faint); margin-right: 6px; }
.client-card > .meter { flex: none; }
.cc-setup { padding: 12px 14px; border-radius: 12px; background: var(--marker-soft); }
.cc-setup .hand { font-size: 22px; display: block; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0; }
.cc-stats div { padding: 9px 10px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.cc-stats div.has { background: var(--marker-soft); box-shadow: none; }
.cc-stats dt { font: 500 9.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.cc-stats dd { margin: 2px 0 0; font: 500 17px/1.2 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-stats div:last-child dd { font: 500 12.5px/1.6 var(--f-sans); }
.cc-live { display: inline-flex; align-items: center; gap: 6px; color: var(--cite); }
.cc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.client-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px; padding: 24px; border-radius: var(--r-blk);
  border: 2px dashed rgb(43 59 255 / 0.3); background: rgb(238 240 255 / 0.5); color: var(--cite); font: inherit; cursor: pointer; text-align: center; text-decoration: none !important;
  transition: background-color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.client-add:hover { background: var(--cite-tint); border-color: var(--cite); transform: translateY(-3px); }
.client-add.full { border-color: rgb(17 18 22 / 0.15); background: var(--paper); color: var(--ink); }
.ca-plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cite); color: #fff; font: 400 30px/1 var(--f-display); box-shadow: 0 12px 26px -12px rgb(43 59 255 / 0.8); transition: transform 0.4s var(--ease); }
.client-add:hover .ca-plus { transform: rotate(90deg); }
.client-add.full .ca-plus { background: var(--ink); color: var(--marker); font-size: 22px; }
.client-add.full:hover .ca-plus { transform: rotate(-12deg); }
.ca-t { font: 500 20px var(--f-display); margin-top: 6px; }
.ca-k { font: 12px var(--f-mono); color: var(--mute); }
.bulk-teaser { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.bt-title { font: 500 20px/1.25 var(--f-display); letter-spacing: -0.01em; margin-bottom: 4px; }

/* bulk fix panel */
.bulk { padding: 28px 30px 26px 56px; margin-bottom: 24px; }
.bulk.blk.blue::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.08) 31px 32px), linear-gradient(to right, transparent 0 34px, rgb(255 255 255 / 0.18) 34px 35px, transparent 35px); }
.bulk-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: end; }
.bulk-title { font: 500 34px/1.08 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.025em; }
.bulk-title em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); background-image: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 90%, transparent 90%); background-repeat: no-repeat; padding: 0 0.12em; border-radius: 0.1em; animation: sweep 0.9s 0.45s cubic-bezier(0.65, 0, 0.35, 1) both; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bulk-sub { margin-top: 10px; color: rgb(255 255 255 / 0.85); font-size: 15px; max-width: 58ch; }
.bulk-meter { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.bm-num { font: 500 48px/0.95 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bm-k { font-size: 13.5px; color: rgb(255 255 255 / 0.85); }
.bulk-meter .meter { flex: none; height: 8px; margin-top: 4px; }
.bm-fine { font: 11px var(--f-mono); color: rgb(255 255 255 / 0.65); }
.bulk-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 24px; }
.bulk-group { margin: 0; padding: 12px; border: 0; border-radius: 16px; background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); min-width: 0; }
.bulk-group legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 600; font-size: 14px; }
.bulk-group legend + * { clear: both; }
.bulk-group .cc-av.sm { background: #fff; color: var(--cite); }
.bg-n { margin-left: auto; font: 500 11px var(--f-mono); color: rgb(255 255 255 / 0.65); }
.bulk-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 4px; border-radius: 11px; background: #fff; color: var(--ink); font-weight: 500; font-size: 13.5px; line-height: 1.3; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.2s, opacity 0.2s; }
.bulk-item:hover { transform: translateX(3px); }
.bulk-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bi-box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #c9c6bd; transition: background-color 0.2s, box-shadow 0.2s; }
.bulk-item input:checked + .bi-box { background: var(--cite); box-shadow: none; }
.bulk-item input:checked + .bi-box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; animation: pop 0.3s var(--ease) both; }
.bulk-item:has(input:checked) { box-shadow: 0 0 0 2px var(--marker); }
.bulk-item:has(input:disabled:not(:checked)) { opacity: 0.55; cursor: not-allowed; }
.bulk-item input:focus-visible + .bi-box { outline: 2px solid var(--marker); outline-offset: 2px; }
.bi-title { flex: 1; min-width: 0; }
.bulk-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.bulk-foot > .upgrade { flex: 1; }
.bulk-count { font-size: 14px; color: rgb(255 255 255 / 0.85); }
.bulk-count b { font: 600 18px var(--f-display); color: #fff; }
.bulk-empty { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / 0.1); font-size: 14px; }
.bulk-err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--bad-text); }
#bulk-out:not(:empty) { margin-top: 20px; }
.bulk-results { padding: 18px 20px; border-radius: 16px; background: #fff; color: var(--ink); animation: built 0.5s var(--ease) both; }
.br-head { font: 500 20px/1.3 var(--f-display); margin-bottom: 10px; }
.br-fine { display: block; font: 12px var(--f-mono); color: var(--mute); margin-top: 2px; }
.br-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.br-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); animation: rise 0.4s calc(var(--i, 0) * 0.06s) var(--ease) both; }
.br-list li.ok { background: #f5fcf8; box-shadow: inset 0 0 0 1px rgb(18 161 80 / 0.2); }
.br-list li.fail { background: #fff7f7; box-shadow: inset 0 0 0 1px rgb(229 72 77 / 0.2); }
.br-ic { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--mist); font-size: 12px; font-weight: 700; }
.br-list li.ok .br-ic { background: var(--good); color: #fff; animation: pop 0.4s var(--ease) both; }
.br-list li.fail .br-ic { background: var(--bad); color: #fff; }
.br-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-title { font-weight: 600; font-size: 14px; }
.br-brand { font-size: 12.5px; color: var(--mute); }
.br-list .btn.white { box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.3); }
.bulk-results .upgrade { margin-top: 12px; }

/* plan & usage */
#plan-card { margin-bottom: 16px; scroll-margin-top: 20px; }
.loading-blk { display: grid; place-items: center; min-height: 160px; }
.plan-blk { padding: 26px 28px; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.plan-name { font: 500 38px/1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.03em; }
.plan-meta { margin-top: 8px; color: var(--mute); font-size: 14px; }
.usage-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.usage { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.usage.hero { background: var(--ink); color: #fff; box-shadow: none; }
.usage .meter { flex: none; }
.usage.hero .meter { background: rgb(255 255 255 / 0.14); }
.u-k { font: 500 10.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.usage.hero .u-k { color: rgb(255 255 255 / 0.65); }
.u-v b { font: 500 30px/1 var(--f-display); letter-spacing: -0.03em; }
.u-v span { margin-left: 4px; color: var(--mute); font-size: 14px; }
.usage.hero .u-v span { color: rgb(255 255 255 / 0.6); }
.plan-change { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pc-title { font: 500 22px var(--f-display); letter-spacing: -0.015em; }
.bill-toggle { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: var(--mist); }
.bill-toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: 99px; background: transparent; color: var(--mute); font: 600 13.5px var(--f-sans); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.bill-toggle button.on { background: var(--ink); color: #fff; }
.save-tag { margin-left: 6px; padding: 4px 10px; border-radius: 99px; background: var(--marker); font-size: 12px; font-weight: 600; }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.plan-opt:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.3), var(--shadow-float); }
.plan-opt.pop { background: var(--cite); color: #fff; box-shadow: 0 24px 44px -26px rgb(43 59 255 / 0.9); }
.plan-opt.current { box-shadow: inset 0 0 0 2px var(--ink); }
.plan-opt.pop.current { box-shadow: 0 0 0 3px var(--marker), 0 24px 44px -26px rgb(43 59 255 / 0.9); }
.po-flag { position: absolute; top: -12px; left: 18px; padding: 4px 11px; border-radius: 99px; background: var(--marker); color: var(--ink); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-soft); }
.po-flag.cur { background: var(--ink); color: #fff; }
.po-name { font: 500 24px var(--f-display); letter-spacing: -0.015em; }
.po-price { display: flex; align-items: flex-end; gap: 8px; }
.po-num { font: 500 46px/0.85 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.po-per { font-size: 12.5px; line-height: 1.3; color: var(--mute); padding-bottom: 2px; }
.plan-opt.pop .po-per { color: rgb(255 255 255 / 0.7); }
.po-per s { opacity: 0.7; }
.po-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 13.5px; }
.po-list li { position: relative; padding-left: 20px; }
.po-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cite); font-weight: 700; font-size: 12px; }
.plan-opt.pop .po-list li::before { color: var(--marker); }
.plan-opt .btn.block { margin-top: auto; }
.plan-opt.pop .btn.cite { background: #fff; color: var(--cite); }
.plan-opt.pop .btn.cite:hover { background: var(--marker); color: var(--ink); }
.plan-opt.pop .btn:disabled { background: rgb(255 255 255 / 0.2); color: #fff; box-shadow: none; opacity: 1; }
.plan-opt .btn:disabled { opacity: 0.6; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.st-k { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; }
.st-k small { font-weight: 400; color: var(--mute); font-size: 11.5px; }
.st-ctrl { display: inline-flex; align-items: center; gap: 4px; }
.st-ctrl button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 16px var(--f-sans); cursor: pointer; transition: background-color 0.2s; }
.st-ctrl button:hover:not(:disabled) { background: var(--cite); color: #fff; }
.st-ctrl button:disabled { opacity: 0.4; cursor: not-allowed; }
.st-ctrl output { min-width: 28px; text-align: center; font: 600 18px var(--f-display); }
.po-total { font: 12px var(--f-mono); color: var(--ink-2); }
.plan-note { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--cite-tint); font-size: 14px; box-shadow: inset 3px 0 0 var(--cite); }
#plan-msg:not(:empty) { margin-top: 12px; }

/* white-label + report masthead */
.wl-row { display: flex; gap: 10px; margin-top: 12px; max-width: 520px; }
.wl-row input { flex: 1; }
.wl-preview { margin-top: 14px; font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report-mast { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: var(--ring); width: fit-content; max-width: 100%; }
.report-mast.mini { margin: 0; padding: 6px 12px; }
.report-mast .logo-word { font-size: 19px; }
.report-mast .mark { width: 13px; height: 13px; }
.rm-name { font: 600 19px var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.rm-k { font: 500 11px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line); }
.auth-alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--mute); }

@media (max-width: 1180px) {
  .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-head { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .plan-cards { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .blk.bulk { padding: 22px 18px 22px 46px; }
  .bulk-title { font-size: 27px; }
  .bulk-groups { grid-template-columns: 1fr; }
  .bulk-foot .btn { width: 100%; }
  .bulk-foot { justify-content: stretch; }
  .plan-blk.blk { padding: 20px 18px; }
  .plan-name { font-size: 30px; }
  .u-v b { font-size: 24px; }
  .trial-ended { padding: 20px; }
  .trial-ended .btn { width: 100%; }
  .te-title { font-size: 22px; }
  .wl-row { flex-direction: column; }
  .modal { padding: 24px 20px; }
  .brand-pop { right: 0; }
  .client-add { min-height: 160px; }
  .pc-head { align-items: flex-start; flex-direction: column; }
}
@media print {
  .report-mast { box-shadow: none; padding-left: 0; }
  .crumb { display: none; }
}
.brand-pop { right: 0; }
.bp-item { gap: 8px; padding: 7px; }
.bp-foot { flex-wrap: wrap; }
.main > .trend-blk .trend { max-height: 300px; }
@media (max-width: 900px) { #plan-card, #draft-area { scroll-margin-top: 76px; } }

/* =====================================================================
   Automatic setup: progress view, "set up automatically" card, suggestions
   ===================================================================== */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.setup-grid > .blk + .blk { margin-top: 0; }
.setup-card { padding: 26px 28px; display: flex; flex-direction: column; }
.setup-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.4s, box-shadow 0.4s; animation: rise 0.5s calc(0.1s + var(--i) * 0.08s) var(--ease) both; }
.st-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 13px var(--f-mono); color: var(--faint); }
.st-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.st-title { font: 500 18px/1.25 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.01em; color: var(--mute); }
.st-sub { font-size: 13px; color: var(--faint); }
.st-sub b { color: var(--ink); }
.st-now { font: 500 10.5px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cite); }
.st-row.now { background: var(--cite-tint); box-shadow: inset 0 0 0 1.5px rgb(43 59 255 / 0.3); }
.st-row.now .st-ic { background: #fff; box-shadow: 0 0 0 0 rgb(43 59 255 / 0.4); animation: ping 1.6s ease-out infinite; }
.st-row.now .st-title { color: var(--ink); }
.st-row.now .st-sub { color: var(--ink-2); }
.st-row.done { background: #fff; }
.st-row.done .st-ic { background: var(--good); color: #fff; box-shadow: none; font-size: 15px; animation: pop 0.45s var(--ease) both; }
.st-row.done .st-title { color: var(--ink); }
.st-row.done .st-sub { color: var(--ink-2); }
.setup-fine { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--mute); }
.setup-art { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px 30px 56px; overflow: hidden; }
.setup-art.blk.blue::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.08) 31px 32px), linear-gradient(to right, transparent 0 34px, rgb(255 255 255 / 0.18) 34px 35px, transparent 35px); }
.setup-art .skeleton-page { position: relative; transform: rotate(-1.5deg); flex: 1; min-height: 220px; }
.sk-bar { align-items: center; }
.sk-url { margin-left: 8px; padding: 2px 10px; border-radius: 6px; background: #fff; font: 11px var(--f-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-line { position: absolute; left: 0; right: 0; top: 40px; height: 46px; background: linear-gradient(180deg, transparent, rgb(255 225 77 / 0.35), transparent); animation: scan 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(170px); } 100% { transform: translateY(0); } }
.setup-note { position: absolute !important; right: 26px; bottom: 14px; color: #fff; font-size: 22px; transform: rotate(-4deg); }

.auto-card { margin-bottom: 16px; }
.auto-line { font: 400 19px/1.4 var(--f-display); font-variation-settings: "SOFT" 100; }
.auto-line .hand { font-size: 22px; margin-left: 6px; white-space: nowrap; }
.auto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.auto-grid div { padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--ring); min-width: 0; }
.auto-grid dt { font: 500 10px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.auto-grid dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.auto-grid dd b { font: 600 18px var(--f-display); }
.tune-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.tune-head .ref { color: var(--ink); font-size: 12px; margin-bottom: 6px; }

.suggest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.sg-k { font: 500 10px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cite); margin-right: 2px; }
.sg-chip { max-width: 100%; height: 28px; padding: 0 11px; border: 0; border-radius: 99px; background: var(--cite-tint); color: var(--cite); font: 600 12.5px var(--f-sans); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.2); transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease), opacity 0.25s; }
.sg-chip:hover { background: var(--cite); color: #fff; transform: translateY(-1px); }
.sg-chip.used { opacity: 0; transform: scale(0.85); }
#comps + .suggest-row, #prompts + .suggest-row { margin: 2px 0 10px; }

.cc-setup.working { background: var(--cite-tint); }
.cc-working { display: flex; align-items: center; gap: 8px; font: 500 18px var(--f-display); color: var(--cite); }

@media (max-width: 1080px) {
  .setup-grid { grid-template-columns: 1fr; }
  .setup-art { min-height: 260px; }
  .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .setup-card.blk { padding: 20px 18px; }
  .st-row { padding: 12px; gap: 12px; }
  .st-title { font-size: 16px; }
  .setup-art.blk { padding: 20px 18px 26px 46px; }
  .auto-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .auto-line { font-size: 17px; }
}
.setup-art .skeleton-page { margin-bottom: 26px; }
@media (max-width: 720px) { .st-now { display: none; } }
.auto-grid dd { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* =====================================================================
   Added Dec 2026: logos, branded dropdowns, competitor scan, onboarding,
   admin panel, "log in as" bar and the calmer overview grid.
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.mini-label { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }

/* ---------- logo tiles (website icon, initial as fallback) ---------- */
.logo-tile {
  --s: 34px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * 0.28); background: var(--ink); color: #fff; overflow: hidden;
  font: 600 calc(var(--s) * 0.48)/1 var(--f-display); font-variation-settings: "SOFT" 100;
}
.logo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; opacity: 0; transition: opacity 0.3s; }
.logo-tile.has-img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.logo-tile.has-img img { opacity: 1; }
.logo-tile.has-img .lt-i { visibility: hidden; }
.logo-tile.tiny img { padding: 24%; image-rendering: auto; }
.logo-tile.xs { --s: 20px; }
.logo-tile.sm { --s: 28px; }
.logo-tile.md { --s: 40px; }
.logo-tile.lt-side { --s: 36px; }
.logo-tile.xl { --s: 72px; box-shadow: var(--ring), var(--shadow-soft); }
.logo-tile.xl.has-img { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.logo-tile.admin-tile { background: var(--cite); }
.side-hi { display: block; font: 600 13px var(--f-sans); color: var(--ink); margin-bottom: 1px; }
.side-plan-card.unl .sp-meta { font-size: 16px; color: var(--cite); }
.badge.unl { background: var(--ink); color: var(--marker); }
.comp-name { display: flex; align-items: center; gap: 10px; }
.b-name .logo-tile { margin-right: 2px; }

/* ---------- branded dropdown ---------- */
.bsel { position: relative; min-width: 0; }
.bsel-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; cursor: pointer; text-align: left;
  font: 500 14.5px var(--f-sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bsel-btn:hover { border-color: #c9c6bd; }
.bsel.open .bsel-btn, .bsel-btn:focus-visible { outline: none; border-color: var(--cite); box-shadow: 0 0 0 4px rgb(43 59 255 / 0.14); }
.bsel-val { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.bsel-val .bsel-label { overflow: hidden; text-overflow: ellipsis; }
.bsel-ph { color: var(--faint); }
.bsel-caret { width: 12px; height: 12px; flex: none; color: var(--mute); transition: transform 0.25s var(--ease); }
.bsel.open .bsel-caret { transform: rotate(180deg); }
.bsel-ic { font-size: 17px; line-height: 1; flex: none; }
.bsel-hint { margin-left: auto; padding-left: 10px; color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.bsel-val .bsel-hint { display: none; }
.bsel-pop {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px;
  background: var(--white); border-radius: 14px; box-shadow: var(--ring), var(--shadow-float);
  animation: bsel-in 0.22s var(--ease) both; transform-origin: top center;
}
.bsel.up .bsel-pop { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
@keyframes bsel-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.bsel-search { display: flex; align-items: center; gap: 8px; height: 38px; margin-bottom: 4px; padding: 0 10px; border-radius: 10px; background: var(--mist); color: var(--mute); }
.bsel-search svg { width: 15px; height: 15px; flex: none; }
.bsel-search input { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0 !important; background: transparent; box-shadow: none !important; font-size: 14px; }
.bsel-list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bsel-opt { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.bsel-opt[hidden], .bsel-empty[hidden] { display: none; }
.bsel-opt.active { background: var(--cite-tint); }
.bsel-opt[aria-selected="true"] { font-weight: 600; }
.bsel-check { margin-left: auto; color: var(--cite); font-weight: 700; opacity: 0; }
.bsel-hint + .bsel-check { margin-left: 8px; }
.bsel-opt[aria-selected="true"] .bsel-check { opacity: 1; }
.bsel-empty { padding: 12px; color: var(--mute); font-size: 13px; text-align: center; }
.market-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.market-pair .field { gap: 6px; }

/* ---------- competitor editor ---------- */
.comp-editor, .ob-comps { display: flex; flex-direction: column; gap: 12px; }
.ce-scan { border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.ce-scan-row { display: flex; align-items: center; gap: 8px; }
.ce-scan-ic { display: grid; place-items: center; width: 30px; color: var(--mute); }
.ce-scan-ic svg { width: 17px; height: 17px; }
.ce-scan .ce-q { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; box-shadow: none; padding: 0; font-size: 15px; }
.ce-scan .ce-q:focus { box-shadow: none; }
.ce-scan:focus-within { box-shadow: inset 0 0 0 1px var(--cite), 0 0 0 4px rgb(43 59 255 / 0.12); }
.ce-scan.is-full { opacity: 0.7; }
.ce-go { height: 36px; padding: 0 16px; }
.ce-result {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 8px; padding: 14px; border-radius: 12px; background: var(--white);
  box-shadow: var(--ring), var(--shadow-soft); animation: rise 0.4s var(--ease) both;
}
.ce-result.miss { background: var(--white); }
.ce-ask { margin-top: 8px; font: 600 13px var(--f-sans); color: var(--cite); }
.sk-tile { background: var(--mist) !important; animation: shimmer 1.2s ease-in-out infinite; }
.sk-line { display: block; width: 60%; height: 10px; border-radius: 6px; background: var(--mist); animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: 0.45; } }
.ce-count { font-size: 13px; color: var(--mute); }
.ce-hint { color: var(--cite); font-weight: 600; }
.ce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ce-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--white);
  box-shadow: var(--ring), 0 1px 2px rgb(17 18 22 / 0.04); animation: rise 0.4s calc(var(--i) * 0.04s) var(--ease) both;
  transition: opacity 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.ce-card.yes { box-shadow: inset 0 0 0 1px rgb(18 161 80 / 0.28), 0 1px 2px rgb(17 18 22 / 0.04); }
.ce-card.maybe { box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.25), 0 8px 20px -16px rgb(43 59 255 / 0.6); }
.ce-card.no { opacity: 0.5; background: var(--paper); }
.ce-card.no .ce-name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ce-body { flex: 1; min-width: 0; }
.ce-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 650; font-size: 15px; }
.ce-tag { font: 500 10px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--cite); background: var(--cite-tint); padding: 4px 7px; border-radius: 99px; }
.ce-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.ce-dom { font: 12px var(--f-mono); color: var(--mute); }
.ce-sep { color: var(--faint); }
.ce-desc { margin-top: 4px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ce-link { padding: 0; border: 0; background: none; color: var(--cite); font: 500 12.5px var(--f-sans); cursor: pointer; }
.ce-link:hover { text-decoration: underline; }
.ce-link:disabled { color: var(--mute); cursor: progress; }
.ce-alias-edit { display: flex; gap: 6px; width: 100%; margin-top: 4px; }
.ce-alias-edit input { height: 32px; font-size: 13px; }
.ce-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.ce-acts.col { flex-direction: column; align-items: stretch; }
.ce-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; cursor: pointer;
  font: 600 13px var(--f-sans); background: var(--mist); color: var(--ink-2); transition: background-color 0.2s, color 0.2s, transform 0.15s;
}
.ce-btn:active { transform: scale(0.95); }
.ce-btn.yes:hover { background: var(--good); color: #fff; }
.ce-btn.no:hover { background: var(--bad-soft); color: var(--bad-text); }
.ce-btn.undo { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ce-ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--good-soft); color: #0b7a3b; font-weight: 800; font-size: 13px; }
.ce-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; font-size: 13px; }
.ce-x:hover { background: var(--bad-soft); color: var(--bad-text); }
.ce-empty { color: var(--mute); font-size: 14px; padding: 6px 2px; }

/* ---------- "log in as" bar ---------- */
.imp-bar {
  position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px 6px 20px;
  background: var(--ink); color: #fff; font-size: 13.5px;
}
.imp-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 0 rgb(255 225 77 / 0.6); animation: ping-y 1.8s ease-out infinite; }
@keyframes ping-y { to { box-shadow: 0 0 0 10px rgb(255 225 77 / 0); } }
.imp-txt { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.imp-txt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.imp-tag, .imp-plan { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: rgb(255 255 255 / 0.12); }
.imp-tag { background: var(--marker); color: var(--ink); }
.imp .side { top: 48px; height: calc(100vh - 48px); }
.imp .mobile-bar { top: 48px; }

/* ---------- onboarding ---------- */
.portal.ob-mode { background-image: radial-gradient(rgb(17 18 22 / 0.06) 1px, transparent 1px); }
.ob-mode .main { max-width: none !important; padding: 0 !important; }
.ob { display: flex; flex-direction: column; min-height: 100vh; max-width: 720px; margin: 0 auto; padding: 22px 24px 28px; }
.imp .ob { min-height: calc(100vh - 48px); }
.ob-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.ob-logo .logo-word { font-size: 19px; }
.ob-progress { display: flex; gap: 5px; }
.ob-progress span { flex: 1; height: 4px; border-radius: 4px; background: rgb(17 18 22 / 0.09); overflow: hidden; position: relative; }
.ob-progress span.done { background: var(--ink); }
.ob-progress span.now { background: rgb(17 18 22 / 0.09); }
.ob-progress span.now::after { content: ""; position: absolute; inset: 0; background: var(--cite); transform-origin: left; animation: ob-fill 0.6s var(--ease) both; }
@keyframes ob-fill { from { transform: scaleX(0); } }
.ob-count { color: var(--mute); }
.ob-card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 56px 0 32px; animation: ob-in 0.55s var(--ease) both; }
.ob-card.back { animation-name: ob-in-back; }
@keyframes ob-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes ob-in-back { from { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
.ob-eyebrow { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cite); margin-bottom: 16px; }
.ob-q { font: 500 44px/1.06 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.03em; text-wrap: balance; }
.ob-q em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--cite); }
.ob-sub { margin-top: 14px; font-size: 16.5px; color: var(--mute); max-width: 46ch; text-wrap: pretty; }
.ob input.ob-input {
  margin-top: 30px; width: 100%; height: 64px; padding: 0 4px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
  background: transparent; font: 500 30px var(--f-display); letter-spacing: -0.015em; box-shadow: none !important; transition: border-color 0.25s;
}
.ob input.ob-input:focus { border-color: var(--cite); }
.ob input.ob-input.small { height: 48px; margin-top: 18px; font: 500 18px var(--f-sans); }
.ob-opts { margin-top: 30px; }
.ob-opts.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-opts.cards.one { grid-template-columns: 1fr; }
.ob-opts.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ob-opt {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); background: var(--white); box-shadow: var(--ring), 0 1px 2px rgb(17 18 22 / 0.04);
  transition: box-shadow 0.25s, transform 0.2s var(--ease), background-color 0.2s; animation: rise 0.45s calc(0.08s + var(--i) * 0.04s) var(--ease) both;
}
.ob-opt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(17 18 22 / 0.2), var(--shadow-soft); }
.ob-opt:active { transform: scale(0.98); }
.ob-opt.on { box-shadow: inset 0 0 0 2px var(--cite), 0 10px 26px -16px rgb(43 59 255 / 0.7); background: #fbfbff; }
.ob-opts.chips .ob-opt { padding: 13px 20px; border-radius: 99px; font-weight: 550; }
.ob-opts.chips .ob-opt.on { background: var(--ink); color: #fff; box-shadow: none; }
.ob-ic { width: 38px; height: 38px; flex: none; padding: 9px; border-radius: 11px; background: var(--mist); color: var(--ink); transition: background-color 0.2s, color 0.2s; }
.ob-opt.on .ob-ic { background: var(--cite); color: #fff; }
.ob-opt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-opt-l { font-weight: 600; font-size: 15px; }
.ob-opt-s { font-size: 13px; color: var(--mute); }
.ob-tick { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; font-size: 13px; font-weight: 800; transition: all 0.2s; }
.ob-opt.on .ob-tick { background: var(--cite); color: #fff; box-shadow: none; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.ob-enter { font: 12px var(--f-mono); color: var(--faint); }
.ob-enter b { color: var(--mute); font-weight: 500; }
.ob-foot .btn.big { min-width: 180px; }
.ob-reading { display: flex; align-items: flex-start; gap: 22px; margin-top: 30px; padding: 22px; border-radius: 20px; background: var(--white); box-shadow: var(--ring), var(--shadow-paper); }
.ob-reading .logo-tile { animation: bob 3s ease-in-out infinite; }
.ob-reading .setup-steps { flex: 1; }
.ob-brand { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 22px; background: var(--white); box-shadow: var(--ring), var(--shadow-paper); }
.ob-brand-top { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.ob-brand-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ob input.ob-bname { height: 46px; padding: 0 10px; margin-left: -10px; border: 1px solid transparent; border-radius: 12px; background: transparent; font: 500 30px var(--f-display); letter-spacing: -0.02em; }
.ob input.ob-bname:hover { border-color: var(--line); }
.ob input.ob-bname:focus { border-color: var(--cite); background: #fff; }
.ob-bdom { font: 12.5px var(--f-mono); color: var(--mute); }
.ob-fine { font-size: 12.5px; color: var(--mute); }
.ob-comps { margin-top: 28px; }
.ob-qs { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.ob-qs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mute); }
.ob-qs-head b { color: var(--ink); }
.ob-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.ob-qrow { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 14px; cursor: pointer; background: var(--white); box-shadow: var(--ring); font-weight: 400; font-size: 14.5px; transition: box-shadow 0.2s, background-color 0.2s; }
.ob-qrow input { position: absolute; opacity: 0; pointer-events: none; }
.ob-qbox { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; font-size: 12px; font-weight: 800; transition: all 0.2s; }
.ob-qrow.on { box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.35); background: #fbfbff; }
.ob-qrow.on .ob-qbox { background: var(--cite); color: #fff; box-shadow: none; }
.ob-qrow:has(input:focus-visible) { outline: 2px solid var(--cite); outline-offset: 2px; }
.ob-qtext { line-height: 1.45; }
.ob-qadd { display: flex; gap: 8px; }
.ob-qadd input { flex: 1; }
.ob-recap { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-rc { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--white); box-shadow: var(--ring), var(--shadow-soft); animation: rise 0.5s calc(var(--n, 0) * 0.05s) var(--ease) both; }
.ob-rc small { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.ob-rc b { font: 500 26px/1.1 var(--f-display); letter-spacing: -0.02em; }
.ob-rc.brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
.ob-rc.brand span { display: flex; flex-direction: column; }
.ob-rc.brand small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ob-rc-logos { display: flex; gap: 4px; margin-top: 4px; }

/* ---------- admin ---------- */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-kpi { padding: 18px 20px; }
.adm-k { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.adm-kpi.ink .adm-k { color: rgb(255 255 255 / 0.65); }
.adm-v { margin-top: 10px; font: 500 36px/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.adm-s { margin-top: 6px; font-size: 12.5px; color: var(--mute); }
.adm-kpi.ink .adm-s { color: rgb(255 255 255 / 0.6); }
.adm-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.adm-h { margin-top: 10px; font: 500 26px/1.15 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; }
.adm-h em { font-style: italic; color: var(--cite); }
.adm-new-text p { margin-top: 8px; }
.adm-cost { padding: 10px 12px; border-radius: 12px; background: var(--marker-soft); }
.adm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adm-form .field:first-child, .adm-form .btn { grid-column: 1 / -1; }
.adm-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); }
.adm-search:focus-within { box-shadow: inset 0 0 0 1px var(--cite), 0 0 0 4px rgb(43 59 255 / 0.12); }
.adm-search svg { width: 16px; height: 16px; flex: none; }
.adm-search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; box-shadow: none !important; padding: 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; background: var(--mist); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--mute); font: 600 13px var(--f-sans); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--ring), 0 2px 6px -2px rgb(17 18 22 / 0.15); }
.acct-head, .acct-sum { display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.2fr) 130px 80px 110px 120px; gap: 14px; align-items: center; }
.acct-head { padding: 0 14px 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.acct-list { display: flex; flex-direction: column; }
.acct { border-bottom: 1px solid var(--line); }
.acct-sum { padding: 12px 14px; cursor: pointer; list-style: none; border-radius: 12px; transition: background-color 0.2s; }
.acct-sum::-webkit-details-marker { display: none; }
.acct-sum:hover, .acct[open] .acct-sum { background: var(--paper); }
.acct-who, .acct-co { display: flex; flex-direction: column; min-width: 0; }
.acct-name { display: flex; align-items: center; gap: 6px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acct-mail, .acct-co span { font: 12px var(--f-mono); color: var(--mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acct-co b { font-weight: 550; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acct-flag { font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 6px; border-radius: 99px; background: var(--cite-tint); color: var(--cite); }
.acct-flag.test { background: var(--marker-soft); color: var(--ink); }
.acct-plan, .acct-mrr, .acct-seen { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13.5px; }
.acct-sub, .acct-mrr small, .acct-seen small { font: 11px var(--f-mono); color: var(--faint); }
.acct-mrr { font: 500 16px var(--f-display); font-variant-numeric: tabular-nums; }
.acct-go { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.acct-caret { width: 8px; height: 8px; border-right: 1.6px solid var(--mute); border-bottom: 1.6px solid var(--mute); transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease); }
.acct[open] .acct-caret { transform: rotate(225deg) translateY(-2px); }
.acct-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 240px; gap: 24px; padding: 8px 14px 20px 68px; animation: rise 0.35s var(--ease) both; }
.acct-dl { display: grid; gap: 6px; margin: 8px 0 0; }
.acct-dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.acct-dl dt { color: var(--mute); }
.acct-dl dd { margin: 0; }
.acct-brands { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.acct-brands li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; }
.acct-brands li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-manage { display: flex; flex-direction: column; gap: 10px; }
.acct-manage .label { margin-bottom: -2px; }
.acct-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- overview: four equal key numbers, then pairs ---------- */
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.bento.ov { align-items: stretch; }
.bento.ov > * { min-width: 0; }
.bento.ov > .span-6 > .trend-blk { height: 100%; }
.kpi-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; min-height: 168px; }
.kc-head { display: flex; align-items: center; justify-content: space-between; }
.kc-head .ref { margin: 0; }
.kc-arrow { color: var(--cite); font-weight: 700; transition: transform 0.25s var(--ease); }
.kpi-card.link-blk:hover .kc-arrow { transform: translateX(3px); }
.kpi-card.link-blk { color: var(--ink); text-decoration: none; }
.kc-num { display: flex; align-items: baseline; gap: 4px; font: 500 52px/0.95 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.kc-num small { font: 400 18px var(--f-display); color: var(--faint); letter-spacing: 0; }
.blk.ink .kc-num small { color: rgb(255 255 255 / 0.45); }
.kc-name { display: flex; align-items: center; gap: 10px; margin-top: 4px; font: 500 24px/1.15 var(--f-display); letter-spacing: -0.02em; min-width: 0; }
.kc-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-sub { margin-top: auto; font-size: 13px; color: var(--mute); }
.blk.ink .kc-sub { color: rgb(255 255 255 / 0.7); }
.kc-sub .delta { font-size: 11.5px; white-space: normal; height: auto; min-height: 22px; padding: 3px 8px; }
.dots.sm { gap: 4px; }
.dots.sm span { width: 10px; height: 10px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.dots.sm span.on { background: var(--cite); box-shadow: 0 0 0 2px rgb(43 59 255 / 0.15); }
.bento.ov .donow { min-height: 0; }
.this-week .tw-summary { font-size: 19px; }
.more-toggle { margin-top: 12px; }
.more-toggle > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 600 13px var(--f-sans); color: var(--cite); }
.more-toggle > summary::-webkit-details-marker { display: none; }
.more-toggle > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease); }
.more-toggle[open] > summary::after { transform: rotate(225deg); }
.more-toggle[open] > :not(summary) { animation: rise 0.35s var(--ease) both; }
.checks-list .more-toggle.passed { grid-column: 1 / -1; margin-top: 4px; }
.checks-list .more-toggle.passed > summary { color: #0b7a3b; }
.checks-list .more-toggle.passed > summary .check-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; font-size: 11px; }
.checks-list .more-toggle.passed[open] { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.checks-list .more-toggle.passed[open] > summary { grid-column: 1 / -1; }
.checks-list .more-toggle.passed .check-row { margin-top: 0; }

@media (max-width: 1180px) {
  .acct-head, .acct-sum { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) 120px 110px; }
  .acct-head span:nth-child(5), .acct-sum .acct-mrr, .acct-head span:nth-child(6), .acct-sum .acct-seen { display: none; }
  .acct-head span:last-child { display: block; }
  .acct-body { grid-template-columns: 1fr 1fr; padding-left: 14px; }
  .acct-manage { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .acct-manage .bsel { width: 220px; }
}
@media (max-width: 1080px) {
  .span-3 { grid-column: span 6; }
  .span-4, .span-8, .span-6 { grid-column: 1 / -1; }
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-new { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .kpi-card { min-height: 0; padding: 16px; gap: 8px; }
  .kc-num { font-size: 40px; }
  .kc-name { font-size: 19px; }
  .market-pair { grid-template-columns: 1fr; }
  .ob { padding: 16px 16px 20px; }
  .ob-top { gap: 14px; }
  .ob-logo .logo-word { display: none; }
  .ob-card { padding: 34px 0 24px; justify-content: flex-start; }
  .ob-q { font-size: 32px; }
  .ob-sub { font-size: 15px; }
  .ob input.ob-input { font-size: 24px; height: 56px; }
  .ob-opts.cards { grid-template-columns: 1fr; }
  .ob-enter { display: none; }
  .ob-foot { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(250 248 243 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .ob-foot .btn.big { min-width: 0; flex: 1; }
  .ob-brand { padding: 18px; }
  .ob input.ob-bname { font-size: 24px; }
  .ob-reading { flex-direction: column; }
  .ob-recap { grid-template-columns: 1fr 1fr; }
  .ob-rc:last-child { grid-column: 1 / -1; }
  .ce-card { flex-wrap: wrap; }
  .ce-card .ce-acts { width: 100%; justify-content: flex-end; }
  .ce-card .ce-acts:has(.ce-ok) { width: auto; }
  .ce-btn span { display: none; }
  .ce-result { flex-wrap: wrap; }
  .ce-acts.col { flex-direction: row; width: 100%; }
  .ce-acts.col .btn { flex: 1; }
  .adm-kpis { gap: 10px; }
  .adm-v { font-size: 28px; }
  .adm-form { grid-template-columns: 1fr; }
  .acct-head { display: none; }
  .acct-sum { grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; padding: 12px 6px; }
  .acct-sum .acct-plan .acct-sub { display: none; }
  .acct-sum .acct-co, .acct-sum .acct-go .btn { display: none; }
  .acct-body { grid-template-columns: 1fr; padding: 4px 6px 18px; gap: 18px; }
  .acct-manage .bsel { width: 100%; }
  .imp-bar { padding: 6px 12px; font-size: 12.5px; }
  .imp-plan { display: none; }
}
.radius-ic { display: block; width: 14px; height: 14px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.status-field .bsel { min-width: 170px; }

/* ---------- AI traffic ---------- */
.tr-hero { padding: 30px 32px; }
.tr-hero-h { margin-top: 12px; max-width: 22em; font: 500 34px/1.1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.025em; text-wrap: balance; }
.tr-hero-h em { font-style: italic; color: var(--marker); }
.tr-hero-p { margin-top: 12px; max-width: 54ch; color: rgb(255 255 255 / 0.78); font-size: 15px; }
.tr-hero-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tr-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--mist); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.tr-pill .swatch, .legend-item .swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.tr-pill.on-ink { background: rgb(255 255 255 / 0.1); color: #fff; animation: rise 0.5s calc(0.2s + var(--i) * 0.08s) var(--ease) both; }
.tr-pill.on-ink .swatch { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.4); }
.tr-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.tr-setup { padding: 0; }
.tr-setup-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; cursor: pointer; list-style: none; }
.tr-setup-sum::-webkit-details-marker { display: none; }
.tr-setup-sum .ref { margin: 0; }
.tr-setup[open] .tr-setup-sum { border-bottom: 1px dashed var(--line); }
.tr-steps { display: grid; gap: 0; }
.tr-step { padding: 20px 24px; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 12px; }
.tr-step:last-child { border-bottom: 0; }
.tr-k { display: flex; align-items: center; gap: 10px; font: 500 20px/1.2 var(--f-display); letter-spacing: -0.01em; }
.tr-k span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cite); color: #fff; font: 600 13px var(--f-sans); }
.tr-code { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; }
.tr-code code { flex: 1; min-width: 0; font: 12.5px/1.5 var(--f-mono); color: #d7dbff; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.tr-plat { flex-wrap: wrap; border-radius: 16px; }
.tr-plat button { display: inline-flex; align-items: center; gap: 6px; }
.tr-det { font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; background: var(--marker); color: var(--ink); }
.tr-howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.tr-howto li::marker { color: var(--cite); font-weight: 700; }
.tr-howto code { font: 12.5px var(--f-mono); background: var(--mist); padding: 1px 5px; border-radius: 5px; }
.tr-verify { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tr-verify p { flex: 1; min-width: 220px; color: var(--mute); }
.tr-chart .trend { height: auto; }
.tr-bars rect { transition: opacity 0.2s; }
.tr-bars g:hover rect { opacity: 0.8; }
.tr-table td { vertical-align: middle; }
.tr-built { font: 500 10px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: var(--marker); color: var(--ink); white-space: nowrap; }
.tr-note { margin-top: 12px; }
.tr-strip { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 20px; color: var(--ink); text-decoration: none !important; }
.tr-strip .ref { margin: 0; }
.tr-strip-n { font: 500 28px/1 var(--f-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.tr-strip-n .delta { font-size: 11px; }
.tr-strip-t { color: var(--ink-2); font-size: 14.5px; grid-column: span 2; }
.tr-strip-cta { color: var(--cite); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tr-strip.invite { background: var(--cite-tint); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.15); }
@media (max-width: 720px) {
  .tr-hero { padding: 22px 18px; }
  .tr-hero-h { font-size: 26px; }
  .tr-step, .tr-setup-sum { padding: 16px; }
  .tr-code { flex-direction: column; align-items: stretch; }
  .tr-strip { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .tr-strip .tr-pills, .tr-strip-t { grid-column: 1 / -1; }
  .tr-table th:nth-child(3), .tr-table td:nth-child(3) { display: none; }
}
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 12.5px; }
.tr-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- WordPress plugin setup ---------- */
.wpp-steps { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; gap: 10px; }
.wpp-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.wpp-steps li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wpp-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cite); color: #fff; font: 600 13px var(--f-sans); }
.wpp-t { font: 500 18px/1.2 var(--f-display); letter-spacing: -0.01em; }
.publish-setup .more-toggle { margin-top: 14px; }
.tr-wpp { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--cite-tint); box-shadow: inset 0 0 0 1px rgb(43 59 255 / 0.15); font-size: 14.5px; }

/* ---------- publishing hub: where is your website built? ---------- */
.pub-hub .setup-pitch { margin-bottom: 12px; }
.pub-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 99px; cursor: pointer;
  font: 600 14px var(--f-sans); color: var(--ink-2); background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pub-tab:hover { box-shadow: inset 0 0 0 1px rgb(17 18 22 / 0.3); }
.pub-tab:active { transform: scale(0.97); }
.pub-tab.on { background: var(--ink); color: #fff; box-shadow: none; }
.pub-ok { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: #fff; font-size: 11px; font-weight: 800; }
.pub-det { font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; background: var(--marker); color: var(--ink); }
.pub-tab.on .pub-det { background: var(--marker); }
.pub-active { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pub-active .bsel { width: 260px; }
.pub-pane { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); animation: rise 0.35s var(--ease) both; }
.pub-pane-head { margin-bottom: 8px; }
.pub-soon { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 15px; }
@media (max-width: 720px) {
  .pub-tab { height: 36px; padding: 0 13px; font-size: 13px; }
  .pub-active { flex-direction: column; align-items: stretch; }
  .pub-active .bsel { width: 100%; }
}

/* brand icons (platforms & AI assistants) */
.bi { width: 18px; height: 18px; flex: none; }
.bi-letter { display: inline-grid; place-items: center; border-radius: 5px; background: currentColor; font: 700 10px/1 var(--f-sans); }
.bi-letter { color: inherit; }
.pub-tab .pub-bi { width: 16px; height: 16px; opacity: 0.75; transition: opacity 0.2s; }
.pub-tab:hover .pub-bi, .pub-tab.on .pub-bi { opacity: 1; }

/* ---------- login (2026 redesign): story on the left, a calm form on the right ---------- */
.auth-mode .main { max-width: none !important; padding: 0 !important; }
.bi-letter { background: currentColor; -webkit-text-fill-color: #fff; }
.pub-tab.on .bi-letter { -webkit-text-fill-color: var(--ink); }
.auth2 { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.auth-mode { overflow: hidden; }

/* left: the story. Everything sits in the top-left; the illustration takes the bottom and the right edge */
.auth2-stage {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  gap: clamp(16px, 3.4vh, 34px); padding: clamp(26px, 4.4vh, 44px) clamp(32px, 4vw, 60px);
  background-color: var(--paper);
  background-image: radial-gradient(rgb(17 18 22 / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  border-right: 1px solid var(--line);
}
/* brand illustration (citera-site/public/images/portal-login-corner.webp, see IMAGES.md): a backwards L –
   slips along the bottom, a stack climbing the right edge. Sits at the bottom, full width, 2:1.
   "darken" lets the dotted paper show through; the top edge fades out. */
.auth2-art {
  position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 2 / 1; z-index: -1; pointer-events: none; mix-blend-mode: darken;
  background: url("/images/portal-login-corner.webp") center bottom / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
          mask-image: linear-gradient(to bottom, transparent, #000 18%);
}
.auth2-logo { display: inline-flex; align-self: flex-start; text-decoration: none !important; position: relative; }
.auth2-logo .logo-word { font-size: 25px; }
.auth2-copy, .auth2-deck { width: min(460px, 66%); }
.auth2-copy { margin-top: clamp(0px, 2vh, 24px); }
.auth2-eyebrow { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.auth2-eyebrow span { color: var(--cite); }
.auth2-title { margin-top: clamp(10px, 1.8vh, 16px); font: 500 clamp(32px, 5vh, 48px)/1.04 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.032em; text-wrap: balance; color: var(--ink); }
.auth2-title em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--cite); }
.auth2-hl { background: linear-gradient(transparent 58%, rgb(255 225 77 / 0.85) 58%, rgb(255 225 77 / 0.85) 92%, transparent 92%); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* the answer card, with two paper slips behind it */
.auth2-deck { position: relative; animation: rise 0.7s 0.1s var(--ease) both; }
.auth2-ghost { position: absolute; inset: 0; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.auth2-ghost.g1 { transform: rotate(2.2deg) translate(10px, 8px); opacity: 0.85; }
.auth2-ghost.g2 { transform: rotate(4.4deg) translate(20px, 16px); opacity: 0.55; }
.auth2-answer {
  position: relative; padding: 10px 10px clamp(14px, 2.2vh, 20px); border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px rgb(17 18 22 / 0.06), 0 1px 2px rgb(17 18 22 / 0.04), 0 24px 50px -24px rgb(17 18 22 / 0.28);
  transform: rotate(-1deg);
}
.auth2-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--mist); }
.auth2-tab { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--mute); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; white-space: nowrap; }
.auth2-tab .bi { width: 14px; height: 14px; }
.auth2-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(17 18 22 / 0.08), 0 0 0 1px rgb(17 18 22 / 0.04); }
.auth2-progress { height: 2px; margin: 8px 6px 0; border-radius: 2px; background: var(--mist); overflow: hidden; }
.auth2-progress i { display: block; height: 100%; width: 100%; background: var(--cite); transform-origin: left; transform: scaleX(0); }
.auth2-answer.timed .auth2-progress i { animation: auth2-fill 3.6s linear infinite; }
@keyframes auth2-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.auth2-body { padding: 0 8px; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.auth2-answer.swap .auth2-body { opacity: 0; transform: translateY(5px); }
.auth2-q { margin-top: clamp(10px, 1.6vh, 14px); font-weight: 650; font-size: 15px; color: var(--ink); }
.auth2-a { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.auth2-a .hl { font-weight: 700; }
.auth2-a .cite-n { font: 600 10px var(--f-mono); color: var(--cite); margin-left: 1px; }
.auth2-src { margin-top: 10px; font: 600 12px var(--f-mono); color: var(--cite); }
.auth2-src span { margin-right: 6px; }
.auth2-note { position: absolute; right: 18px; bottom: 10px; font-size: 23px; transform: rotate(-6deg); }

/* right: the form on a grid that lights up around the cursor */
.auth2-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 28px 32px; background: #fdfcfa; overflow: hidden; }
.auth2-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(17 18 22 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(17 18 22 / 0.07) 1px, transparent 1px);
  background-size: 36px 36px; background-position: center center;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 100%);
}
.auth2-grid::before, .auth2-grid::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease); }
.auth2-grid::before { background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgb(43 59 255 / 0.08), transparent 70%); }
.auth2-grid::after {
  background-image: linear-gradient(rgb(43 59 255 / 0.6) 1px, transparent 1px), linear-gradient(90deg, rgb(43 59 255 / 0.6) 1px, transparent 1px);
  background-size: inherit; background-position: inherit;
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgb(0 0 0 / 0.45) 40%, transparent 75%);
          mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgb(0 0 0 / 0.45) 40%, transparent 75%);
}
.auth2-grid.spot-on::before, .auth2-grid.spot-on::after { opacity: 1; }
.auth2-form-wrap {
  width: 100%; max-width: 420px; margin: auto 0; padding: clamp(26px, 4.4vh, 40px) 36px clamp(22px, 3.4vh, 32px);
  border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px rgb(17 18 22 / 0.06), 0 2px 4px rgb(17 18 22 / 0.03), 0 30px 60px -30px rgb(17 18 22 / 0.25);
  animation: rise 0.6s 0.05s var(--ease) both;
}
.auth2-logo.mobile-only { display: none; }
.auth2-h { margin-top: 14px; font: 500 clamp(36px, 5.2vh, 46px)/1.02 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.03em; }
.auth2-h em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.auth2-sub { margin-top: 10px; color: var(--mute); font-size: 15px; }
.auth2-form { margin-top: clamp(18px, 3vh, 26px); display: flex; flex-direction: column; gap: 12px; }
.auth2-field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background-color 0.2s; color: var(--mute); }
.auth2-field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cite), 0 0 0 4px rgb(43 59 255 / 0.12); color: var(--cite); }
.auth2-field svg { width: 19px; height: 19px; flex: none; }
.auth2-field input { flex: 1; min-width: 0; height: 52px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0; font-size: 16px; color: var(--ink); }
/* the button leans towards the cursor (loginEffects); the zone is a bit bigger than the button */
.auth2-mag { display: block; margin: -10px -14px; padding: 10px 14px; }
.auth2-mag-in { display: block; will-change: transform; }
.auth2-btn { width: 100%; height: 54px; border-radius: 14px; font-size: 15.5px; gap: 8px; }
.auth2-arrow { position: relative; display: inline-block; overflow: hidden; height: 1.2em; width: 1.05em; }
.auth2-arrow i { position: absolute; inset: 0; font-style: normal; transition: transform 0.5s var(--ease); }
.auth2-arrow i + i { transform: translateX(-120%); }
.auth2-btn:hover .auth2-arrow i { transform: translateX(120%); }
.auth2-btn:hover .auth2-arrow i + i { transform: none; }
.auth2-btn.loading .auth2-arrow { display: none; }
.auth2-msg { margin-top: 10px; font-size: 14px; color: var(--mute); min-height: 1.2em; }
.auth2-msg:empty { margin-top: 0; min-height: 0; }
.auth2-msg .dev-link { display: block; margin-top: 6px; }
.auth2-alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--mute); }
.auth2-trust { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.auth2-trust svg { width: 15px; height: 15px; flex: none; }
.auth2-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 20px; }
.auth2-foot-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth2-ask { display: none; }
.auth2-k { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.005em; white-space: nowrap; }
.auth2-k::before, .auth2-k::after { content: ""; width: 28px; height: 1px; background: var(--line); }
.auth2-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* one tile per platform: the logo in ink, its name pops up on hover */
.auth2-tile {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; color: rgb(17 18 22 / 0.78);
  box-shadow: 0 0 0 1px rgb(17 18 22 / 0.07), 0 1px 2px rgb(17 18 22 / 0.05), 0 6px 14px -10px rgb(17 18 22 / 0.3);
  transition: transform 0.25s var(--ease), color 0.2s, box-shadow 0.25s;
}
.auth2-tile .bi { width: 21px; height: 21px; }
.auth2-tile:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 0 0 1px rgb(17 18 22 / 0.1), 0 10px 20px -10px rgb(17 18 22 / 0.35); }
.auth2-tile::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 4px 8px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease);
}
.auth2-tile:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* left: the three steps, lit one after another */
.auth2-steps { position: relative; list-style: none; margin: 0; padding: 0; width: min(400px, 64%); display: flex; flex-direction: column; gap: 10px; animation: rise 0.7s 0.25s var(--ease) both; }
.auth2-steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; border-left: 1.5px dashed rgb(43 59 255 / 0.3); }
.auth2-steps li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.auth2-steps b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--cite); font: 700 12px var(--f-mono); box-shadow: 0 0 0 1.5px rgb(43 59 255 / 0.35); animation: auth2-step 7.2s infinite; }
.auth2-steps li span { padding: 5px 10px; border-radius: 9px; background: rgb(250 248 243 / 0.85); animation: auth2-step-t 7.2s infinite; }
.auth2-steps li:nth-child(2) b, .auth2-steps li:nth-child(2) span { animation-delay: 2.4s; }
.auth2-steps li:nth-child(3) b, .auth2-steps li:nth-child(3) span { animation-delay: 4.8s; }
@keyframes auth2-step { 0%, 30% { background: var(--cite); color: #fff; box-shadow: 0 0 0 4px rgb(43 59 255 / 0.15); } 36%, 100% { background: #fff; color: var(--cite); box-shadow: 0 0 0 1.5px rgb(43 59 255 / 0.35); } }
@keyframes auth2-step-t { 0%, 30% { background: rgb(255 225 77 / 0.55); color: var(--ink); } 36%, 100% { background: rgb(250 248 243 / 0.85); color: var(--ink-2); } }

/* right: little notes pinned around the form card, gently floating */
.auth2-form-wrap { position: relative; }
.auth2-floats { position: absolute; inset: 0; pointer-events: none; }
.auth2-float { position: absolute; display: inline-flex; align-items: center; gap: 9px; animation: auth2-pop 0.6s var(--ease) both, auth2-bob 6s ease-in-out infinite; }
@keyframes auth2-pop { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
@keyframes auth2-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.f-note { top: -54px; left: -92px; padding: 12px 14px 10px; background: var(--marker-soft); font-size: 20px; line-height: 1; color: var(--ink); rotate: -6deg; border-radius: 3px; box-shadow: 0 10px 20px -12px rgb(17 18 22 / 0.35); animation-delay: 0.3s, 0s; }
.f-pub { top: -26px; right: -78px; padding: 9px 12px 9px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(17 18 22 / 0.07), 0 16px 30px -18px rgb(17 18 22 / 0.4); rotate: 3deg; animation-delay: 0.5s, 1.2s; }
.f-pub .bi { width: 22px; height: 22px; color: var(--ink); }
.f-pub > span { display: flex; flex-direction: column; line-height: 1.25; }
.f-pub b { font-size: 13px; color: var(--ink); }
.f-pub small { font: 500 10.5px var(--f-mono); color: var(--mute); }
.auth2-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; font: 700 11px/1 var(--f-sans); font-style: normal; }
.f-cite { bottom: -22px; left: -70px; padding: 8px 13px 8px 9px; border-radius: 99px; background: #fff; font-size: 13px; color: var(--ink-2); box-shadow: 0 0 0 1px rgb(17 18 22 / 0.07), 0 16px 30px -18px rgb(17 18 22 / 0.4); rotate: -3deg; animation-delay: 0.7s, 2.4s; }
.f-cite .bi { width: 18px; height: 18px; color: var(--ink); }
.f-cite .hl { background: var(--marker); padding: 0 3px; border-radius: 3px; }
.f-cite sup { font: 600 10px var(--f-mono); color: var(--cite); margin-left: 1px; }
.f-mark { bottom: 42px; right: -30px; rotate: 10deg; animation-delay: 0.9s, 3.4s; }
.f-mark .mark { width: 46px; height: 46px; filter: drop-shadow(0 10px 14px rgb(43 59 255 / 0.3)); }
.auth2-form { position: relative; }
.auth2-hint { position: absolute; right: calc(100% + 30px); top: -26px; display: flex; flex-direction: column; align-items: flex-end; color: var(--cite); pointer-events: none; }
.auth2-hint .hand { font-size: 22px; rotate: -8deg; white-space: nowrap; }
.auth2-hint svg { width: 56px; height: 38px; margin-right: -24px; }
@media (max-width: 1380px) {
  .f-pub { right: -36px; top: -34px; }
  .f-note { left: -70px; }
  .f-cite { left: -48px; }
  .f-mark { right: -22px; }
}
@media (max-width: 1240px) {
  .auth2-floats, .auth2-hint { display: none; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .auth2-steps li { font-size: 13px; }
  .auth2-steps { gap: 6px; }
  .auth2-steps b { width: 24px; height: 24px; }
  .auth2-steps::before { left: 11px; }
}
@media (max-height: 680px) and (min-width: 961px) {
  .auth2-steps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth2-float, .auth2-steps b, .auth2-steps li span { animation: none !important; }
}

@media (max-width: 1240px) and (min-width: 961px) {
  /* narrow screens: only the active assistant shows its name */
  .auth2-tabs { display: flex; }
  .auth2-tab { flex: 1 1 0; }
  .auth2-tab.on { flex: 2.4 1 0; }
  .auth2-tab:not(.on) > span { display: none; }
  .auth2-copy, .auth2-deck { width: min(460px, 74%); }
  .auth2-tiles { gap: 6px; }
  .auth2-tile { width: 36px; height: 36px; border-radius: 11px; }
  .auth2-tile .bi { width: 19px; height: 19px; }
}
@media (max-height: 700px) and (min-width: 961px) {
  .auth2-a { font-size: 13.5px; line-height: 1.5; }
  .auth2-note { display: none; }
}
@media (max-width: 960px) {
  .auth2 { grid-template-columns: 1fr; }
  .auth2-stage { display: none; }
  .auth2-floats, .auth2-hint { display: none; }
  .auth2-panel { padding: 20px 18px 18px; }
  .auth2-form-wrap { margin: auto 0; padding: 0 4px; background: transparent; box-shadow: none; border-radius: 0; }
  .auth2-logo.mobile-only { display: inline-flex; margin-bottom: clamp(16px, 3.5vh, 30px); }
  .auth2-h { font-size: clamp(32px, 5vh, 40px); }
  .auth2-grid { -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 70%, transparent); }
  .auth2-ask { display: flex; }
  .auth2-foot { gap: 12px; padding-top: 12px; }
  .auth2-foot-row { gap: 8px; }
  .auth2-k { font-size: 12.5px; }
  .auth2-tiles { gap: 5px; flex-wrap: nowrap; }
  .auth2-tile { width: 32px; height: 32px; border-radius: 10px; }
  .auth2-tile .bi { width: 17px; height: 17px; }
}

/* ---------- local areas (cities / regions) ---------- */
.area-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); cursor: text; transition: box-shadow 0.2s; }
.area-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--cite), 0 0 0 4px rgb(43 59 255 / 0.1); }
.area-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border-radius: 99px; background: var(--cite-tint); color: var(--ink); font-size: 14px; font-weight: 600; animation: rise 0.3s var(--ease) both; }
.area-x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--mute); font-size: 11px; cursor: pointer; }
.area-x:hover { background: rgb(17 18 22 / 0.08); color: var(--ink); }
.area-box .area-input { flex: 1; min-width: 160px; height: 32px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 6px; font-size: 15px; }
.area-hint { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
.q-area { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; padding: 3px 9px; border-radius: 99px; background: var(--cite-tint); color: var(--cite); font-size: 12.5px; font-weight: 600; }
.area-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.area-stat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--white); box-shadow: var(--ring); font-size: 13.5px; color: var(--ink-2); }
.area-stat b { color: var(--cite); }
.area-stat.miss b { color: var(--bad-text); }

/* ---------- admin: tabs + API & costs ---------- */
.adm-tabs { display: inline-flex; gap: 4px; margin: -6px 0 18px; padding: 4px; border-radius: 12px; background: var(--mist); }
.adm-tabs a { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none; }
.adm-tabs a:hover { color: var(--ink); }
.adm-tabs a.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgb(17 18 22 / 0.08); }
.cost-budget { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.cost-budget-line { margin-top: 8px; font-size: 15px; }
.cost-meter { margin: 10px 0 8px; height: 8px; width: min(420px, 100%); border-radius: 8px; background: var(--mist); overflow: hidden; }
.cost-meter i { display: block; height: 100%; border-radius: 8px; background: var(--cite); transition: width 0.6s var(--ease); }
.cost-budget.near .cost-meter i { background: var(--amber); }
.cost-budget.over .cost-meter i { background: var(--bad); }
.cost-budget.over { box-shadow: inset 0 0 0 1.5px var(--bad); }
.cost-budget-form { display: flex; align-items: center; gap: 8px; }
.cost-dollar { font-weight: 600; color: var(--mute); }
.cost-budget-form input { width: 110px; }
.prov-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.prov { display: grid; grid-template-columns: 40px minmax(160px, 1.6fr) 118px repeat(3, minmax(90px, 0.7fr)) 190px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.prov.off { background: var(--white); }
.prov.off .prov-ic, .prov.off .prov-id b { opacity: 0.55; }
.prov-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); box-shadow: var(--ring); color: var(--ink); }
.prov-ic .bi { width: 20px; height: 20px; }
.prov-letter { font-weight: 700; color: var(--mute); }
.prov-id { display: flex; flex-direction: column; min-width: 0; }
.prov-id b { font-size: 15px; }
.prov-id span { font-size: 12.5px; color: var(--mute); }
.prov-status { justify-self: start; padding: 4px 10px; border-radius: 99px; background: var(--mist); color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.prov-status.on { background: var(--good-soft); color: var(--good); }
.prov-num { display: flex; flex-direction: column; }
.prov-num span { font: 500 10.5px var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.prov-num b { font-size: 15px; font-variant-numeric: tabular-nums; }
.prov-num.wide { grid-column: span 3; }
.prov-num.wide span { text-transform: none; letter-spacing: 0; font: 500 13px var(--f-sans); color: var(--mute); }
.prov-links { display: flex; gap: 10px; font-size: 13px; white-space: nowrap; }
.prov-links a { color: var(--mute); text-decoration: none; }
.prov-links a:hover { color: var(--cite); }
.prov-links .prov-get { color: var(--cite); font-weight: 600; }
.cost-days { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 4px; height: 120px; margin-top: 12px; }
.cost-day { height: 100%; display: flex; align-items: flex-end; }
.cost-day i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: var(--cite); opacity: 0.85; }
.cost-day:hover i { opacity: 1; }
.cost-days-axis { display: flex; justify-content: space-between; margin-top: 6px; font: 500 11px var(--f-mono); color: var(--faint); }
.cost-split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; margin-top: 14px; }
.cost-split > .blk { margin: 0; }
.cost-row { display: grid; grid-template-columns: minmax(0, 190px) 1fr 64px; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.cost-row-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-row-bar { height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.cost-row-bar i { display: block; height: 100%; border-radius: 8px; background: var(--cite); }
.cost-row-v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.cost-note { margin: 6px 4px 30px; }
@media (max-width: 1100px) {
  .prov { grid-template-columns: 40px 1fr auto; }
  .prov-num, .prov-links { grid-column: 2 / -1; }
  .prov-num { flex-direction: row; justify-content: space-between; }
  .prov-num.wide { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .cost-split { grid-template-columns: 1fr; }
  .cost-days { gap: 2px; }
}

.auth2-pw-toggle { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--mute); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth2-pw-toggle:hover { color: var(--cite); }

/* ---------- draft: fill in the facts only the customer knows ---------- */
.fillc { margin: 0 0 18px; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -24px rgb(17 18 22 / 0.35); overflow: hidden; }
.fillc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 20px 22px; background: linear-gradient(180deg, var(--marker-soft), rgb(255 243 166 / 0.35)); border-bottom: 1px solid rgb(17 18 22 / 0.06); }
.fillc.done .fillc-head { background: var(--good-soft); }
.fillc-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--marker); font-size: 18px; }
.fillc.done .fillc-ic { background: var(--good); color: #fff; }
.fillc-k { font: 600 11px var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--mute); }
.fillc-t { margin-top: 4px; font: 500 22px/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.fillc-sub { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.fillc mark { background: var(--marker); color: var(--ink); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.fillc-prog { min-width: 110px; text-align: right; }
.fillc-prog b { font: 600 26px/1 var(--f-display); color: var(--ink); }
.fillc-prog b small { font-size: 15px; color: var(--mute); }
.fillc-prog span { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); }
.fillc-meter { margin-top: 8px; height: 6px; border-radius: 6px; background: rgb(17 18 22 / 0.08); overflow: hidden; }
.fillc-meter i { display: block; height: 100%; background: var(--good); border-radius: 6px; transition: width 0.6s var(--ease); }
.fillc-list { padding: 6px 22px 18px; }
.fillc-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--line); animation: rise 0.4s calc(var(--i) * 50ms) var(--ease) both; }
.fillc-q label { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.fillc-q small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--mute); }
.fillc-ctx { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; line-height: 1.5; color: var(--ink-2); box-shadow: inset 3px 0 0 var(--marker); }
.fillc-row input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink); transition: box-shadow 0.2s, background-color 0.2s; }
.fillc-row input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cite), 0 0 0 4px rgb(43 59 255 / 0.12); }
.fillc-row input:not(:placeholder-shown) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--good); }
.fillc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 16px; }
.fillc-done, .fillc-notes { padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.fillc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fillc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--good-soft); font-size: 13px; color: var(--ink-2); }
.fillc-chip i { font-style: normal; color: var(--good); font-weight: 700; }
.fillc-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.fillc-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--good); flex: none; }
.fillc-check input:checked + span { color: var(--mute); text-decoration: line-through; }
@media (max-width: 760px) {
  .fillc-head { grid-template-columns: auto 1fr; padding: 16px; }
  .fillc-prog { grid-column: 1 / -1; text-align: left; }
  .fillc-list { padding: 4px 16px 16px; }
  .fillc-row { grid-template-columns: 1fr; gap: 10px; }
  .fillc-done, .fillc-notes { padding: 12px 16px 16px; }
}

/* ---------- draft: edit the text ---------- */
.draft-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 16px; }
.editor { margin: 0 0 18px; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--cite), 0 20px 40px -30px rgb(43 59 255 / 0.5); overflow: hidden; animation: rise 0.35s var(--ease) both; }
.ed-head { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ed-actions { display: flex; gap: 8px; }
.ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px 20px; }
.ed-field { display: flex; flex-direction: column; gap: 5px; }
.ed-field:first-child { grid-column: 1 / -1; }
.ed-field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ed-field em { font-style: normal; font-weight: 400; color: var(--faint); }
.ed-field input, .ed-field textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; color: var(--ink); resize: vertical; }
.ed-field input:focus, .ed-field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cite), 0 0 0 4px rgb(43 59 255 / 0.1); }
.ed-toolbar { position: sticky; top: 66px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 20px; background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ed-toolbar button { min-width: 36px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 2px rgb(17 18 22 / 0.08); cursor: pointer; }
.ed-toolbar button:hover { background: var(--cite); color: #fff; }
.ed-canvas { padding: 24px 28px 32px; background: #fff; }
.ed-body { min-height: 320px; max-width: 760px; margin: 0 auto; outline: none; font-size: 16px; line-height: 1.65; color: #1d1d1f; }
.ed-body:focus { box-shadow: 0 0 0 6px rgb(43 59 255 / 0.06); border-radius: 6px; }
.ed-body h2 { margin: 1.4em 0 0.5em; font-size: 1.5em; line-height: 1.25; }
.ed-body h3 { margin: 1.2em 0 0.4em; font-size: 1.2em; }
.ed-body p, .ed-body ul, .ed-body ol { margin: 0 0 0.9em; }
.ed-body details { display: block; }
.ed-body details > *:not(summary) { display: block; }
@media (max-width: 760px) {
  .ed-fields { grid-template-columns: 1fr; padding: 14px 16px; }
  .ed-head { padding: 12px 16px; }
  .ed-toolbar { padding: 8px 12px; top: 64px; }
  .ed-canvas { padding: 16px; }
}

/* ---------- prospect audits ---------- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.aud-grid > .blk { margin: 0; }
.aud-new form, .aud-brand-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.aud-new .btn.big { align-self: flex-start; }
.aud-color span { display: flex; align-items: center; gap: 10px; }
.aud-color input[type=color] { width: 46px; height: 38px; padding: 2px; border-radius: 10px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.aud-brand-form .btn { align-self: flex-start; }
.aud-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.aud-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.aud-id { display: flex; flex-direction: column; min-width: 0; }
.aud-id b { font-size: 15px; }
.aud-id span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-res { display: flex; align-items: baseline; gap: 10px; }
.aud-score b { font: 600 24px/1 var(--f-display); }
.aud-score small { color: var(--mute); }
.aud-status { font-size: 13px; color: var(--mute); display: inline-flex; align-items: center; gap: 8px; }
.aud-status.err { color: var(--bad-text); }
.aud-status .spinner { width: 14px; height: 14px; }
.aud-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) {
  .aud-grid { grid-template-columns: 1fr; }
  .aud-row { grid-template-columns: auto minmax(0, 1fr); }
  .aud-res, .aud-act { grid-column: 2; justify-content: flex-start; }
}

/* ---------- team ---------- */
.team-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.team-empty { padding: 6px 0; }
.team-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.team-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cite-tint); color: var(--cite); font-weight: 700; }
.team-id { display: flex; flex-direction: column; min-width: 0; }
.team-id b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.team-id span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row select, .team-invite select { height: 38px; padding: 0 10px; border-radius: 10px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14px; }
.team-act { display: flex; gap: 6px; }
.team-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.team-invite input[type=text] { height: 42px; }
.team-brands { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.team-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.team-linkbox { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--cite-tint); font-size: 14px; }
.team-linkrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.team-linkrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; border-radius: 9px; background: #fff; font-size: 12.5px; }
.member-bar { background: var(--cite); }
/* View-only members (clients): hide the buttons that change things. */
.ro #app .btn.primary, .ro #app .btn.marker, .ro #app .btn.magic, .ro #app [data-publish], .ro #app #edit-draft, .ro #app .fillc-actions, .ro #app #run-now, .ro #app .build-panel, .ro #app #add-prompt, .ro #app #suggest { display: none !important; }
@media (max-width: 760px) {
  .team-row { grid-template-columns: auto minmax(0, 1fr); }
  .team-row select, .team-act { grid-column: 2; }
  .team-invite { grid-template-columns: 1fr; }
}
