/* Athena – user app. Violet design system, light + dark, motion respects prefers-reduced-motion. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
:root {
  --bg: #f7f6fb; --panel: #ffffff; --panel2: #f3f1f9; --line: #e8e4f1; --line2: #d9d3e8; --text: #1c1730; --muted: #6c6782;
  --accent: #7c3aed; --accent2: #6d28d9; --accent3: #a855f7; --accent-soft: #f1ebfe; --accent-ink: #5b21b6;
  --good: #147a3a; --good-soft: #e5f6eb; --warn: #a84b07; --warn-soft: #fff3df; --bad: #b91c1c; --bad-soft: #fde9e9;
  --info: #6b6782; --info-soft: #f0eef6;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  --shadow: 0 1px 2px rgba(28, 23, 48, .04), 0 4px 16px rgba(28, 23, 48, .05);
  --shadow-lg: 0 10px 40px rgba(60, 30, 120, .18);
  --radius: 14px; --ease: cubic-bezier(.2, .8, .2, 1);
  --c1: #7c3aed; --c2: #16a34a; --c3: #f59e0b; --c4: #ec4899; --c5: #06b6d4; --c6: #6366f1; --c7: #a16207; --c8: #94a3b8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0c15; --panel: #16131f; --panel2: #1f1b2b; --line: #2a2539; --line2: #3a3350; --text: #ece9f6; --muted: #9b95b0;
    --accent: #a78bfa; --accent2: #c4b5fd; --accent3: #c084fc; --accent-soft: #261d3d; --accent-ink: #ddd6fe;
    --good: #4ade80; --good-soft: #13281b; --warn: #fbbf24; --warn-soft: #2e2410; --bad: #f87171; --bad-soft: #321819;
    --info: #a9a3bd; --info-soft: #221e2e; --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
    --c1: #a78bfa; --c2: #4ade80; --c3: #fbbf24; --c4: #f472b6; --c5: #22d3ee; --c6: #818cf8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0c15; --panel: #16131f; --panel2: #1f1b2b; --line: #2a2539; --line2: #3a3350; --text: #ece9f6; --muted: #9b95b0;
  --accent: #a78bfa; --accent2: #c4b5fd; --accent3: #c084fc; --accent-soft: #261d3d; --accent-ink: #ddd6fe;
  --good: #4ade80; --good-soft: #13281b; --warn: #fbbf24; --warn-soft: #2e2410; --bad: #f87171; --bad-soft: #321819;
  --info: #a9a3bd; --info-soft: #221e2e; --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  --c1: #a78bfa; --c2: #4ade80; --c3: #fbbf24; --c4: #f472b6; --c5: #22d3ee; --c6: #818cf8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: clamp(14px, calc(.26vw + 10px), 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: .55em .75em;
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { letter-spacing: -.01em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
code { background: var(--panel2); padding: .05em .35em; border-radius: 5px; font-size: .88em; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .9rem; height: 3.6rem; padding: 0 1.2rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.logo { width: 1.85rem; height: 1.85rem; border-radius: 9px; }
.site-pick { display: flex; gap: .4rem; align-items: center; min-width: 0; }
.site-pick select { max-width: 18rem; font-weight: 650; background: var(--panel2); border-color: transparent; }
.job-ind { display: flex; align-items: center; gap: .45rem; font-size: .85rem; min-width: 0; white-space: nowrap; overflow: hidden;
  background: var(--accent-soft); color: var(--accent-ink); padding: .25rem .7rem; border-radius: 99px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.seg { display: inline-flex; background: var(--panel2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: .28em .75em; border-radius: 8px; font-weight: 550; font-size: .9rem; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel); color: var(--accent); box-shadow: 0 1px 3px rgba(28, 23, 48, .12); }
.icon-btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: .3em .6em; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .1s; display: inline-flex; align-items: center; gap: .35rem; }
.icon-btn:hover { border-color: var(--line2); background: var(--panel2); } .icon-btn:active { transform: scale(.96); }
.icon-btn.small { padding: .2em .45em; } .icon-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.menu { display: none; }

/* ---------- shell + sidebar ---------- */
.shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: calc(100vh - 3.6rem); }
.side { border-right: 1px solid var(--line); background: var(--panel); padding: .9rem .7rem 1.2rem; position: sticky; top: 3.6rem;
  height: calc(100vh - 3.6rem); overflow-y: auto; scrollbar-width: thin; }
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: .8rem; }
.nav-h { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: .35rem .7rem; }
#nav a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-radius: 10px; color: var(--text); font-size: .94rem;
  transition: background .15s, color .15s; }
#nav a:hover { background: var(--panel2); text-decoration: none; }
#nav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
#nav a.on::before { content: ""; position: absolute; left: -.7rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad);
  animation: navIn .35s var(--ease); }
#nav a .i { color: var(--muted); transition: color .15s, transform .2s var(--ease); } #nav a.on .i { color: var(--accent); }
#nav a:hover .i { transform: translateX(1px) scale(1.06); }
#nav .count { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 700; padding: 0 .5em; min-width: 1.4em; text-align: center; }
@keyframes navIn { from { transform: scaleY(0); } }

main { padding: 1.5rem 2rem 6rem; min-width: 0; max-width: 140rem; }

/* ---------- buttons, chips ---------- */
.btn { border: 1px solid var(--line2); background: var(--panel); color: var(--text); border-radius: 10px; padding: .5em 1em; white-space: nowrap; font-weight: 550;
  display: inline-flex; align-items: center; gap: .4rem; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { color: #fff; box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.small { padding: .28em .7em; font-size: .85rem; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); } .btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); } .btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.link-btn { align-self: flex-start; border: 0; background: none; color: var(--muted); padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 550; padding: .12em .6em; border-radius: 99px; background: var(--info-soft);
  color: var(--info); white-space: nowrap; border: 0; }
.chip.critical, .chip.bad, .chip.high { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.good { background: var(--good-soft); color: var(--good); } .chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
a.chip:hover, button.chip:hover { text-decoration: none; filter: brightness(.96); }

/* ---------- page head, breadcrumbs, intro ---------- */
.crumbs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }
.crumbs a { color: var(--muted); font-weight: 550; } .crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.page-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.ph-title { display: flex; align-items: center; gap: .9rem; min-width: 0; flex: 1; }
.ph-icon { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.ph-icon .i { width: 1.4rem; height: 1.4rem; }
.page-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-head .sub { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.more { position: relative; } .more summary { list-style: none; } .more summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .45rem;
  display: flex; flex-direction: column; gap: .3rem; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); min-width: 12rem; }
.intro { display: flex; gap: .65rem; align-items: flex-start; background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: .7rem 1rem;
  margin: 0 0 1rem; font-size: .92rem; }
.intro .i { color: var(--accent); margin-top: .12rem; }
body:not(.simple) .intro { background: none; padding: 0; color: var(--muted); }
body.simple .expert { display: none !important; }
.note { display: flex; gap: .6rem; align-items: flex-start; background: var(--info-soft); color: var(--muted); border-radius: 10px; padding: .6rem .9rem; font-size: .88rem; }

/* ---------- summary box + related links ---------- */
.summary { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem;
  box-shadow: var(--shadow); overflow: hidden; }
.summary::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.summary h3, .summary h2 { margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); display: flex; gap: .4rem; align-items: center; }
.summary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.summary li { display: flex; gap: .55rem; align-items: baseline; font-size: .95rem; }
.summary li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--line2); flex: none; transform: translateY(-.1rem); }
.summary li.good::before { background: var(--good); } .summary li.warn::before { background: var(--warn); } .summary li.bad::before { background: var(--bad); }
.summary li.info::before { background: var(--accent); }
.related { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.related > span { font-size: .8rem; color: var(--muted); margin-right: .2rem; }
.related a { font-size: .82rem; font-weight: 600; padding: .25em .7em; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); transition: transform .15s var(--ease); }
.related a:hover { text-decoration: none; transform: translateY(-1px); }

/* ---------- layout ---------- */
.grid { display: grid; gap: 1rem; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin-bottom: 1rem; }
.cols2 { grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }
.cols3 { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.mt { margin-top: 1rem; }
.col-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.grid-contents { display: contents; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 0 0 .85rem; font-size: 1rem; font-weight: 700; }
.card > h3 { display: flex; align-items: center; gap: .35rem; }
.card h4 { margin: 1rem 0 .45rem; font-size: .9rem; }
.card .sub { color: var(--muted); font-size: .85rem; margin: -.5rem 0 .8rem; }
.clickable { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.clickable:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi { position: relative; overflow: hidden; }
.kpi .v { font-size: 1.85rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.kpi[data-go] { cursor: pointer; transition: border-color .2s, transform .2s var(--ease); } .kpi[data-go]:hover { border-color: var(--accent); transform: translateY(-2px); }
.kpi[data-go]::after { content: "→"; position: absolute; right: .9rem; top: .8rem; color: var(--accent); opacity: 0; transition: opacity .2s, transform .2s; }
.kpi[data-go]:hover::after { opacity: 1; transform: translateX(2px); }
.v.good { color: var(--good); } .v.warn { color: var(--warn); } .v.bad { color: var(--bad); }
.explain { border: 0; background: none; color: var(--muted); padding: .1rem .25rem; margin-left: auto; opacity: .45; border-radius: 6px; transition: opacity .15s, background .15s; }
.explain:hover { opacity: 1; color: var(--accent); background: var(--accent-soft); }

/* ---------- scores ---------- */
.ring { --c: var(--good); width: 4.4rem; height: 4.4rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--panel2) 0); animation: ringFill 1.1s var(--ease) both; }
.ring span { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.ring.big { width: 7.5rem; height: 7.5rem; } .ring.big span { width: 6.1rem; height: 6.1rem; font-size: 2.3rem; letter-spacing: -.03em; }
@keyframes ringFill { from { --p: 0; } }
.mini-score { display: inline-block; min-width: 2.3rem; text-align: center; font-weight: 700; border-radius: 7px; padding: .1em .4em; font-size: .85rem; font-variant-numeric: tabular-nums; }
.s-good { background: var(--good-soft); color: var(--good); } .s-warn { background: var(--warn-soft); color: var(--warn); } .s-bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- tasks ---------- */
.rec { border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 12px; padding: .85rem 1rem; margin-bottom: .7rem; background: var(--panel);
  transition: box-shadow .2s, transform .2s var(--ease); }
.rec.critical, .rec.high { border-left-color: var(--bad); } .rec.warn { border-left-color: var(--warn); } .rec.info { border-left-color: var(--line2); }
.rec[data-open] { cursor: pointer; } .rec[data-open]:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.rec .hd { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.rec .hd b { flex: 1; min-width: 12rem; }
.rec p { margin: .45rem 0 0; color: var(--muted); font-size: .92rem; } .rec p strong { color: var(--text); }
.rec .ex { margin-top: .4rem; font-size: .82rem; display: flex; flex-direction: column; gap: .1rem; } .rec .ex a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .act { display: flex; gap: .4rem; margin-top: .65rem; flex-wrap: wrap; align-items: center; }
.rec .act .open-link { margin-left: auto; font-size: .85rem; font-weight: 600; }
.rec.leaving { animation: leave .35s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(30px); } }

/* ---------- bars, lists ---------- */
.bars { display: flex; flex-direction: column; gap: .5rem; }
.bar { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr 3.4rem; gap: .65rem; align-items: center; font-size: .88rem; }
.bar[data-go] { cursor: pointer; border-radius: 6px; } .bar[data-go]:hover .lb { color: var(--accent); }
.bar .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .tr { display: block; height: .6rem; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.bar .fl { display: block; height: 100%; background: var(--grad); border-radius: 99px; transform-origin: left; animation: growX .9s var(--ease) both; }
.bar .fl.good { background: var(--good); } .bar .fl.warn { background: var(--warn); } .bar .fl.bad { background: var(--bad); }
.bar .vl { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes growX { from { transform: scaleX(0); } }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }
.checklist li { display: flex; gap: .55rem; align-items: baseline; } .checklist .ok { color: var(--good); font-weight: 700; } .checklist .no { color: var(--bad); font-weight: 700; }
.checklist small { color: var(--muted); margin-left: auto; text-align: right; }
.recs-list { margin: 0; padding-left: 1.1rem; font-size: .92rem; } .recs-list li { margin-bottom: .4rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .88rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.row-inline { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.row-end { display: flex; gap: .5rem; justify-content: flex-end; }
.steps { padding-left: 1.3rem; line-height: 1.7; } .steps.left { text-align: left; max-width: 30rem; margin: 1.5rem auto .5rem; }
details summary { cursor: pointer; color: var(--muted); }

/* ---------- tables (cards on phones) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; position: sticky; top: 0;
  background: var(--panel); cursor: pointer; user-select: none; }
th.sorted { color: var(--accent); } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { transition: background .12s; } tr:hover td { background: var(--panel2); } tr:last-child td { border-bottom: 0; }
tr[data-row] { cursor: pointer; }
.hl { cursor: pointer; font-weight: 600; color: var(--text); } .hl:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: .8rem; }
.toolbar { display: flex; gap: .6rem; margin-bottom: .9rem; flex-wrap: wrap; align-items: center; }
.toolbar input { flex: 1; min-width: 14rem; max-width: 30rem; }

/* ---------- authors ---------- */
.authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1rem; }
.author { display: flex; gap: .85rem; }
.author img, .author .ph { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; background: var(--accent-soft); flex: none;
  display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.author .bd { min-width: 0; flex: 1; } .author .bio { color: var(--muted); font-size: .82rem; margin: .3rem 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.socials { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }
.socials a { font-size: .75rem; padding: .12em .55em; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.stats { display: flex; gap: .8rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.hours { display: flex; align-items: flex-end; gap: 2px; height: 3.5rem; margin-top: .8rem; } .hours span { flex: 1; background: var(--panel2); border-radius: 3px 3px 0 0; }
.hours span.on { background: var(--grad); transform-origin: bottom; animation: growY .7s var(--ease) both; }
.hours-l { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); }
@keyframes growY { from { transform: scaleY(0); } }

/* ---------- headlines ---------- */
.hl-list { display: flex; flex-direction: column; gap: .75rem; }
.hl-item { border-bottom: 1px solid var(--line); padding-bottom: .75rem; } .hl-item:last-child { border: 0; }
.hl-item .t { font-weight: 650; cursor: pointer; } .hl-item .t:hover { color: var(--accent); }
.hl-item .note { color: var(--muted); font-size: .85rem; margin: .2rem 0; background: none; padding: 0; display: block; }
.better { font-size: .9rem; margin: .3rem 0 0; padding-left: 1.1rem; } .better li { color: var(--good); margin: .15rem 0; }
.better.click li { cursor: pointer; } .better.click li:hover { text-decoration: underline; }

/* ---------- detail pages ---------- */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.3rem; align-items: center; margin-bottom: 1rem; }
.detail-hero.with-img { grid-template-columns: 15rem minmax(0, 1fr) auto; }
.detail-hero .lead-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--panel2); max-height: none; }
.detail-hero h2 { margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.35; }
.meta-row { display: flex; gap: .4rem .5rem; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); }
.detail-hero .rings { display: flex; gap: 1rem; }
.ring-l { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.pager a { flex: 1; max-width: 48%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text);
  transition: border-color .15s, transform .2s var(--ease); }
.pager a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.pager a small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.pager a b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.pager a.next { text-align: right; margin-left: auto; }
.author-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; } .author-head > div:nth-child(2) { flex: 1; min-width: 0; }
.author-head img, .author-head .ph { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: var(--accent); flex: none; }
.author-head h2 { margin: 0; font-size: 1.4rem; }
.lead-img { width: 100%; max-height: 18rem; object-fit: cover; border-radius: 10px; background: var(--panel2); }
.issue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.issue-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.issue-list li .ic { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .75rem; font-weight: 800; }
.issue-list li.bad .ic { background: var(--bad-soft); color: var(--bad); } .issue-list li.good .ic { background: var(--good-soft); color: var(--good); }
.issue-list li.warn .ic { background: var(--warn-soft); color: var(--warn); }
.issue-list small { display: block; color: var(--muted); }

/* ---------- faq + help ---------- */
.faq-box { margin-top: 2rem; }
.faq-box > h3 { font-size: 1rem; display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; }
.faq-box > h3 .i { color: var(--accent); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: .5rem; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary { list-style: none; padding: .8rem 1rem; color: var(--text); font-weight: 600; display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; font-weight: 600; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1rem .9rem; color: var(--muted); font-size: .93rem; animation: fadeUp .3s var(--ease); }
.faq details > div a { font-weight: 600; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: .8rem; }
.glossary div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.glossary b { display: block; margin-bottom: .2rem; } .glossary span { color: var(--muted); font-size: .9rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 2.6rem; height: 1.5rem; border-radius: 99px; background: var(--line2); position: relative; border: 0; padding: 0; transition: background .2s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff;
  transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--accent); } .switch input:checked::after { transform: translateX(1.1rem); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 3; } .chart text { fill: var(--muted); font-size: 12px; }
.chart path.ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) forwards; }
.chart circle.pt { opacity: 0; animation: fadeIn .4s ease forwards; animation-delay: .9s; }
.chart rect.col { transform-box: fill-box; transform-origin: bottom; animation: growY .6s var(--ease) both; }
.chart rect.col:hover { filter: brightness(1.12); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark { width: 100%; height: 2rem; display: block; margin: .3rem 0; }
.legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; margin-top: .3rem; }
.legend i { display: inline-block; width: .8rem; height: .3rem; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.heat { display: grid; grid-template-columns: 2rem repeat(24, 1fr); gap: 2px; font-size: .7rem; color: var(--muted); }
.heat .hc { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), var(--panel2)); animation: fadeIn .5s ease both; }
.heat .hx { text-align: center; } .heat .hy { display: flex; align-items: center; }
.donut { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .donut svg { width: 8rem; height: 8rem; flex: none; }
.donut circle { animation: fadeIn .8s ease both; }
.donut text { fill: var(--text); font-size: 14px; font-weight: 800; }
.donut ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 9rem; font-size: .85rem; display: flex; flex-direction: column; gap: .25rem; }
.donut li { display: flex; gap: .4rem; align-items: center; } .donut li span { flex: 1; } .donut li i { width: .7rem; height: .7rem; border-radius: 3px; flex: none; }
.mbar { display: inline-block; width: 6rem; height: .45rem; background: var(--panel2); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.mbar i { display: block; height: 100%; background: var(--grad); transform-origin: left; animation: growX .8s var(--ease) both; }
.up { color: var(--good); } .down { color: var(--bad); }

/* ---------- overview ---------- */
.hero { margin-bottom: 1rem; display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden;
  background: radial-gradient(60rem 18rem at 100% 0%, var(--accent-soft), transparent 70%), var(--panel); }
.hero-txt { flex: 1; min-width: 16rem; } .hero-txt h2 { margin: 0 0 .25rem; font-size: 1.4rem; letter-spacing: -.02em; }
.subs { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; }
.sub-score { display: flex; gap: .55rem; align-items: center; cursor: pointer; padding: .3rem .5rem; border-radius: 10px; transition: background .15s; }
.sub-score:hover { background: var(--panel2); }
.sub-score .mini-score { font-size: 1.05rem; padding: .3em .55em; } .sub-score small { display: block; color: var(--muted); font-size: .78rem; }
.setup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.setup li { display: flex; align-items: center; gap: .6rem; } .setup li span:nth-child(2) { flex: 1; }
.setup .b { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-size: .75rem; color: #fff; flex: none; }
.setup li.ok .b { background: var(--good); border-color: var(--good); } .setup li.ok span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.hero-mini { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }

/* ---------- job progress ---------- */
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--good); flex: none; display: inline-block; }
.dot.busy { background: var(--accent); animation: pulse 1.2s infinite; } .dot.err { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }
.job-card { margin-bottom: 1rem; } .job-card.err { color: var(--bad); }
.job-line { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; }
.stepper li { display: flex; gap: .55rem; align-items: flex-start; }
.stepper .b { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-size: .8rem; flex: none; color: #fff; }
.stepper li.done .b { background: var(--good); border-color: var(--good); animation: pop .3s var(--ease); } .stepper li.fail .b { background: var(--bad); border-color: var(--bad); }
.stepper li.run .b { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
.stepper small { display: block; color: var(--muted); font-size: .78rem; } .stepper li.wait { opacity: .55; }
.prog { display: block; height: .3rem; background: var(--panel2); border-radius: 99px; margin-top: .3rem; overflow: hidden; width: 8rem; }
.prog i { display: block; height: 100%; background: var(--grad); transition: width .5s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- trends, tester, social, ads ---------- */
.trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 1rem; }
.trend.miss { border-left: 4px solid var(--warn); } .trend.ok { border-left: 4px solid var(--good); }
.tr-h { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .tr-h b { font-size: 1.05rem; }
.trend .news { padding-left: 1rem; margin: .4rem 0; } .trend p { margin: .4rem 0; }
.big-input { width: 100%; font-size: 1.15rem; padding: .75em .85em; }
textarea { width: 100%; min-height: 8rem; font-family: ui-monospace, monospace; font-size: .8rem; }
textarea.plain { font-family: inherit; font-size: .95rem; min-height: 4rem; }
.form-row { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; } .form-row label { font-size: .85rem; color: var(--muted); }
.ht-hist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.ht-hist li { cursor: pointer; display: flex; gap: .5rem; align-items: baseline; } .ht-hist li:hover { color: var(--accent); }
.nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.net { display: flex; flex-direction: column; gap: .35rem; border-top: 4px solid var(--c8); }
.net-facebook { border-top-color: #1877f2; } .net-instagram { border-top-color: #e1306c; } .net-tiktok { border-top-color: #111; }
.net-youtube { border-top-color: #ff0000; } .net-threads { border-top-color: #555; } .net-linkedin { border-top-color: #0a66c2; } .net-x { border-top-color: #000; }
.net-h { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .net-h a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem; }
.net-v { font-size: 1.8rem; font-weight: 800; } .net-g { display: flex; gap: .8rem; color: var(--muted); flex-wrap: wrap; }
.net-m { display: flex; gap: .3rem .8rem; flex-wrap: wrap; color: var(--muted); margin: .3rem 0; } .net-m b { color: var(--text); font-weight: 600; }
.net-in { display: flex; gap: .4rem; } .net-in input { flex: 1; min-width: 0; }
.add-net { border-top-style: dashed; } .add-net input, .add-net select { width: 100%; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.shots figure { margin: 0; } .shots img { width: 100%; aspect-ratio: 500 / 739; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.shots figcaption { font-size: .8rem; color: var(--muted); margin-top: .3rem; display: flex; flex-direction: column; gap: .25rem; } .shots .hl { cursor: pointer; color: var(--text); }
.md h4 { margin: 1rem 0 .3rem; font-size: 1rem; } .md ul { margin: .2rem 0; padding-left: 1.2rem; } .md li { margin: .2rem 0; } .md p { margin: .3rem 0; }
.learn-feat { margin-bottom: 1rem; } .learn-feat h4 { margin: 0 0 .4rem; font-size: .92rem; }

/* ---------- empty, modal, toast ---------- */
.empty { max-width: 40rem; margin: 8vh auto; text-align: center; }
.empty h1 { font-size: 1.9rem; letter-spacing: -.02em; } .empty p { color: var(--muted); }
.empty form { display: flex; gap: .5rem; margin-top: 1.4rem; } .empty input { flex: 1; font-size: 1.1rem; }
.modal { position: fixed; inset: 0; background: rgba(20, 12, 40, .45); backdrop-filter: blur(3px); z-index: 70; display: grid; place-items: center; padding: 1rem; animation: fadeIn .2s ease; }
.modal-panel { background: var(--panel); border-radius: 16px; padding: 1.6rem; width: min(34rem, 100%); display: flex; flex-direction: column; gap: .8rem;
  box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.modal-panel h2 { margin: 0; } .modal-panel input { font-size: 1.1rem; }
.toast { position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .65em 1.3em; border-radius: 12px;
  z-index: 90; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease); font-weight: 550; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- ask panel ---------- */
.ask-fab { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 65; display: flex; gap: .5rem; align-items: center; border: 0; border-radius: 99px;
  background: var(--grad); color: #fff; padding: .85em 1.25em; font-weight: 650; box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s; animation: pop .4s var(--ease); }
.ask-fab:hover { transform: translateY(-2px); }
.ask-fab .i { width: 1.3em; height: 1.3em; }
body.ask-open .ask-fab, body.assistant-on .ask-fab { display: none; }
.ask { position: fixed; right: 1rem; bottom: 1rem; z-index: 66; width: min(30rem, calc(100vw - 2rem)); height: min(42rem, calc(100vh - 6rem));
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: panelIn .3s var(--ease); transform-origin: bottom right; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.ask-head { display: flex; align-items: center; gap: .4rem; padding: .75rem .9rem; background: var(--grad); color: #fff; }
.ask-head b { flex: 1; } .ask-head .icon-btn { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
.ask-head .icon-btn.on { background: #fff; color: var(--accent); }
.ask-ctx { font-size: .8rem; color: var(--muted); padding: .45rem .9rem; background: var(--panel2); }
.ask-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 92%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; animation: fadeUp .3s var(--ease); }
.msg.q { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--panel2); border-bottom-left-radius: 4px; } .msg.a.err { color: var(--bad); }
.msg.a p { margin: .25rem 0; } .msg.a ul { margin: .25rem 0; padding-left: 1.1rem; } .msg.a h4 { margin: .4rem 0 .2rem; }
.msg.pending { display: flex; gap: .5rem; align-items: center; color: var(--muted); }
.typing { display: inline-flex; gap: 3px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ask-sugg { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .9rem .5rem; } .ask-sugg .chip { cursor: pointer; font-size: .8rem; white-space: normal; text-align: left; padding: .35em .8em; }
.ask-form { display: flex; gap: .4rem; padding: .6rem .7rem; border-top: 1px solid var(--line); align-items: flex-end; }
.ask-form textarea { flex: 1; min-height: 2.6rem; max-height: 8rem; font-family: inherit; font-size: .95rem; resize: vertical; }
.ask-form .mic.on { background: var(--bad); border-color: var(--bad); color: #fff; animation: pulse 1.2s infinite; }
.ask-form .btn, .ask-form .icon-btn { height: 2.6rem; }
.msg-foot { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: .35rem; }
.msg-foot .link-btn { color: var(--accent); cursor: pointer; } .msg.old { opacity: .65; }

/* ---------- brain ---------- */
.brain-grid { grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); }
.kind-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; } .kind-chips .chip { cursor: pointer; }
.kind-chips i, .kdot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.mem-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mem-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .3rem; border-bottom: 1px solid var(--line); transition: background .3s; }
.mem-list li:last-child { border: 0; } .mem-list li.pinned .txt { font-weight: 600; } .mem-list li.flash { background: var(--accent-soft); }
.mem-list .kdot { margin-top: .45rem; flex: none; } .mem-list .mt { flex: 1; min-width: 0; margin: 0; } .mem-list .mt .small { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; align-items: center; }
.mact { display: flex; gap: .25rem; flex: none; opacity: .5; } .mem-list li:hover .mact { opacity: 1; }
.hist details { border-bottom: 1px solid var(--line); padding: .5rem 0; } .hist summary { display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; }

/* ---------- accounts & admin ---------- */
body.role-viewer .need-editor, body.role-viewer .need-owner, body.role-editor .need-owner { display: none !important; }
.user-menu { position: relative; } .user-menu summary { list-style: none; display: flex; gap: .45rem; align-items: center; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.um-av { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex: none; }
.user-menu .um-name { font-weight: 650; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu small { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .menu-list { min-width: 15rem; }
.menu-list .mi { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 8px; border: 0; background: none; text-align: left; color: var(--text); font-size: .9rem; }
.menu-list .mi:hover { background: var(--panel2); text-decoration: none; }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: .2rem 0; width: 100%; }
.link-box { display: flex; gap: .5rem; margin-top: .6rem; } .link-box input { flex: 1; font-family: ui-monospace, monospace; font-size: .85rem; }
.mail-ok { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 0; }
input.narrow { width: 6rem; }
tr.dim td { opacity: .55; }
#adm table input:not(.narrow) { min-width: 8rem; }

/* ---------- motion: page enter + skeleton ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.enter > * { animation: fadeUp .45s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .04s; } .enter > *:nth-child(3) { animation-delay: .08s; } .enter > *:nth-child(4) { animation-delay: .12s; }
.enter > *:nth-child(5) { animation-delay: .16s; } .enter > *:nth-child(6) { animation-delay: .2s; } .enter > *:nth-child(n+7) { animation-delay: .24s; }
.kpis > .card { animation: fadeUp .45s var(--ease) both; }
.kpis > .card:nth-child(2) { animation-delay: .05s; } .kpis > .card:nth-child(3) { animation-delay: .1s; } .kpis > .card:nth-child(4) { animation-delay: .15s; }
.kpis > .card:nth-child(n+5) { animation-delay: .2s; }
.skel { display: grid; gap: 1rem; }
.skel .sk { border-radius: var(--radius); background: linear-gradient(90deg, var(--panel2) 25%, var(--panel) 50%, var(--panel2) 75%); background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear; border: 1px solid var(--line); }
.skel .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .chart path.ln { stroke-dashoffset: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; top: 3.6rem; bottom: 0; left: 0; width: min(18rem, 85vw); height: auto; transform: translateX(-102%); transition: transform .28s var(--ease); }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu { display: inline-flex; }
  .top { gap: .5rem; padding: 0 .6rem; } .brand span { display: none; }
  #modeSeg, .job-ind, .user-menu small, .user-menu .um-name { display: none; }
  main { padding: 1rem 1rem 6rem; }
  .cols2, .cols3, .brain-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.3rem; } .ph-icon { width: 2.3rem; height: 2.3rem; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .kpi .v { font-size: 1.45rem; }
  .ask { right: 0; bottom: 0; width: 100vw; height: 88vh; border-radius: 18px 18px 0 0; }
  .heat { grid-template-columns: 1.6rem repeat(24, 1fr); gap: 1px; font-size: .6rem; }
  .detail-hero, .detail-hero.with-img { grid-template-columns: 1fr; }
  .bar { grid-template-columns: minmax(6rem, 42%) 1fr 3rem; }
  /* tables become stacked cards */
  table.resp thead { display: none; }
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: 100%; }
  table.resp tr { padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
  table.resp td { border: 0; padding: .15rem 0; text-align: left !important; display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; }
  table.resp td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .78rem; flex: none; }
  table.resp td.main-cell { display: block; font-size: 1rem; padding-bottom: .3rem; }
  table.resp td:empty { display: none; }
  .pager a { max-width: none; }
}
@media (min-width: 901px) and (max-width: 1200px) { .shell { grid-template-columns: 13.5rem minmax(0, 1fr); } main { padding: 1.3rem 1.4rem 6rem; } }

/* ---------- assistant (owl) ---------- */
.as { position: fixed; right: 1.2rem; bottom: 1rem; z-index: 64; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; pointer-events: none; }
.as > * { pointer-events: auto; }
body.ask-open .as { display: none; }
.as-owl { position: relative; width: 5.2rem; height: 5.2rem; border: 0; background: none; padding: 0; cursor: pointer; --lx: 0px; --ly: 0px;
  filter: drop-shadow(0 6px 14px rgba(91, 33, 182, .35)); transition: transform .2s var(--ease); animation: owlIn .6s var(--ease) both; }
.as-owl:hover { transform: translateY(-3px) scale(1.04); }
.as-owl svg { width: 100%; height: 100%; overflow: visible; }
@keyframes owlIn { from { opacity: 0; transform: translateY(30px) scale(.6); } }
.as-owl .body { animation: float 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes float { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
.as-owl .pupils { transform: translate(var(--lx), var(--ly)); transition: transform .25s ease-out; }
.as-owl .lids { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: blink 5.5s infinite; }
@keyframes blink { 0%, 91%, 97%, 100% { transform: scaleY(0); } 94% { transform: scaleY(1); } }
.as-owl .happy-eyes, .as-owl .dots, .as-owl .zz { opacity: 0; transition: opacity .2s; }
.as-owl .wing { transform-box: fill-box; transform-origin: 50% 15%; }
.as-owl .tuft { transform-box: fill-box; transform-origin: 50% 100%; }
.as-owl .shadow { transform-box: fill-box; transform-origin: center; animation: shadow 3.4s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scaleX(.85); opacity: .7; } }
.as.talk .wing.r { animation: wave .45s ease-in-out 3; } .as.talk .body { animation: hop .5s var(--ease); }
@keyframes wave { 50% { transform: rotate(-35deg); } }
@keyframes hop { 40% { transform: translateY(-8px); } }
.as.alert .body { animation: shake .5s ease-in-out 2; } .as.alert .tuft { animation: perk .5s ease 2; }
@keyframes shake { 20%, 60% { transform: rotate(-6deg); } 40%, 80% { transform: rotate(6deg); } }
@keyframes perk { 50% { transform: scaleY(1.25); } }
.as.happy .body { animation: hop .5s var(--ease) 3; } .as.happy .happy-eyes { opacity: 1; } .as.happy .pupils, .as.happy .lids { opacity: 0; }
.as.happy .wing { animation: wave .4s ease-in-out 4; }
.as.thinking .pupils { transform: translate(-2.5px, -3.5px); } .as.thinking .dots { opacity: 1; } .as.thinking .dots circle { fill: var(--accent); animation: bounce 1s infinite; }
.as.thinking .dots circle:nth-child(2) { animation-delay: .15s; } .as.thinking .dots circle:nth-child(3) { animation-delay: .3s; }
.as.sleep .lids { animation: none; transform: scaleY(1); } .as.sleep .zz { opacity: 1; animation: zz 2.4s ease-in-out infinite; } .as.sleep .body { animation-duration: 6s; }
.as-owl .zz { fill: var(--accent); font: 800 16px sans-serif; }
@keyframes zz { 0% { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(8px, -14px); opacity: 0; } }
.as-badge { position: absolute; top: .2rem; right: .25rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--bad); border: 2px solid var(--panel); animation: pulse 1.2s infinite; }
.as-bubble { position: relative; width: min(19rem, calc(100vw - 2.4rem)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  padding: .85rem 1rem .7rem; box-shadow: var(--shadow-lg); font-size: .92rem; animation: bubbleIn .35s var(--ease); transform-origin: bottom right; }
.as-bubble::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 16px 0 0 4px; background: var(--grad); }
.as-bubble.warn::before { background: var(--bad); } .as-bubble.good::before { background: var(--good); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.92); } }
.as-name { font-weight: 800; font-size: .78rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.as-text { line-height: 1.45; }
.as-act { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; } .as-act:empty { display: none; }
.as-x { position: absolute; top: .45rem; right: .5rem; border: 0; background: none; color: var(--muted); font-size: .8rem; padding: .2rem; border-radius: 6px; }
.as-x:hover { background: var(--panel2); color: var(--text); }
.as-off { display: block; margin-top: .55rem; font-size: .75rem; } .as-off:hover { color: var(--bad); }
@media (max-width: 900px) { .as { right: .7rem; bottom: .7rem; } .as-owl { width: 3.9rem; height: 3.9rem; } }
.side, main, .ask-log { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.seg button { white-space: nowrap; }
.toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 900px) {
  .toolbar input { min-width: 100%; }
  .as-bubble { font-size: .88rem; }
  .crumbs > span:last-child { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* alerts bell + notification settings */
.bell summary { position: relative; }
.bell summary .i { width: 1.05rem; height: 1.05rem; }
.bell-n { position: absolute; top: -.35rem; right: -.35rem; background: var(--bad); color: #fff; border-radius: 99px; font-size: .66rem; font-weight: 800;
  min-width: 1.15rem; height: 1.15rem; display: grid; place-items: center; padding: 0 .25rem; box-shadow: 0 0 0 2px var(--panel); animation: bellPop .35s ease; }
@keyframes bellPop { from { transform: scale(.3); } to { transform: scale(1); } }
.bell-list { width: min(24rem, calc(100vw - 2rem)); max-height: min(70vh, 32rem); overflow: auto; padding: .35rem; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .6rem .55rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.bell-head a { color: var(--accent); }
.bell-item { display: flex; gap: .6rem; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: .55rem .6rem; color: var(--text);
  font-size: .87rem; line-height: 1.4; cursor: pointer; }
.bell-item:hover { background: var(--panel2); }
.bell-item.new { background: var(--accent-soft, rgba(124, 58, 237, .08)); }
.bell-item small { display: block; margin-top: .15rem; }
.bell-item .dot { width: .55rem; height: .55rem; border-radius: 50%; flex: none; margin-top: .4rem; background: var(--warn); }
.bell-item .dot.sev-critical, .bell-item .dot.sev-high { background: var(--bad); }
.bell-empty { padding: .8rem .6rem; margin: 0; }
.ntf-grid { gap: 1.4rem; margin-top: .4rem; }
.ntf-row { align-items: flex-start; }
.ntf-row span { display: flex; flex-direction: column; gap: .1rem; }
.ntf-row small { font-weight: 400; }
@media (max-width: 640px) { .bell .menu-list { position: fixed; left: 1rem; right: 1rem; top: 3.6rem; width: auto; } }

/* ---------- UX pass: dashboard, tasks, brain, headlines, lists ---------- */
.mt-s { margin-top: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
button.chip { cursor: pointer; border: 1px solid transparent; font: inherit; font-size: .78rem; }
button.chip:hover { border-color: var(--accent); }
.ov-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.ov-top .hero { margin: 0; height: 100%; }
.ov-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kpi-spark { padding: .85rem 1rem .6rem; display: flex; flex-direction: column; }
.kpi-spark .l { margin: 0 0 .15rem; font-weight: 600; }
.kpi-spark .v { font-size: 1.7rem; line-height: 1.15; }
.kpi-spark .sub { margin-top: .2rem; }
.kpi-spark .v.s-good, .kpi-spark .v.s-warn, .kpi-spark .v.s-bad { background: none; } .kpi-spark .v.s-good { color: var(--good); } .kpi-spark .v.s-warn { color: var(--warn); } .kpi-spark .v.s-bad { color: var(--bad); }
.kpi-spark .v.good { color: var(--good); } .kpi-spark .v.bad { color: var(--bad); }
.kpi-spark .spark { margin-top: auto; height: 1.8rem; opacity: .9; }
.ov-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.setup-bar { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.sb-head { display: flex; flex-direction: column; gap: .2rem; min-width: 12rem; }
.sb-head .prog { width: 100%; }
.sb-items { display: flex; flex-wrap: wrap; gap: .45rem; }
.sb-item { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line2); background: var(--panel); color: var(--text); border-radius: 99px; padding: .3rem .75rem; font-size: .85rem; cursor: pointer; }
.sb-item:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.sb-item.ok { opacity: .6; text-decoration: line-through; cursor: default; }
.sb-item .b { width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: .65rem; }
.sb-item.ok .b { background: var(--good); border-color: var(--good); color: #fff; }

.tmap { position: relative; width: 100%; border-radius: 10px; overflow: hidden; }
.tm { position: absolute; box-sizing: border-box; border: 2px solid var(--panel); border-radius: 8px; padding: .45rem .55rem; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--c) 22%, var(--panel)); color: var(--text); display: flex; flex-direction: column; justify-content: flex-start;
  animation: fadeIn .6s ease both; transition: background .2s, transform .2s var(--ease); }
.tm:hover { background: color-mix(in srgb, var(--c) 38%, var(--panel)); z-index: 2; transform: scale(1.02); }
.tm b { font-size: .85rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.tm span { font-size: .74rem; color: var(--text); opacity: .85; white-space: nowrap; }
.tm.tiny b, .tm.tiny span { display: none; }

.av { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel2); display: inline-grid; place-items: center; font-weight: 800; color: var(--accent-ink); font-size: .85rem; }
.av.ph { background: var(--accent-soft); }
.av.sm { width: 1.6rem; height: 1.6rem; font-size: .7rem; } .av.xs { width: 1.2rem; height: 1.2rem; font-size: .6rem; }
.thumb { width: 4.2rem; height: 2.8rem; border-radius: 8px; object-fit: cover; flex: none; background: var(--panel2); display: block; }
.thumb.ph { background: linear-gradient(135deg, var(--panel2), var(--accent-soft)); }
.people { display: flex; flex-direction: column; gap: .35rem; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .35rem .4rem; border-radius: 10px; cursor: pointer; }
.person:hover { background: var(--panel2); }
.person .pm { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.person .pm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .mbar { width: 100%; }
.latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.lt { display: flex; gap: .7rem; padding: .5rem; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.lt:hover { border-color: var(--accent); transform: translateY(-2px); }
.lt .thumb { width: 5.5rem; height: 3.8rem; }
.lt-b { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.lt-h { font-weight: 650; font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-m { display: flex; align-items: center; gap: .4rem; font-size: .76rem; flex-wrap: wrap; }
.art-cell { display: flex; gap: .7rem; align-items: flex-start; }
.au-cell { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; margin: .1rem .4rem .1rem 0; }

.rec-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.sev-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.sev-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius);
  padding: .7rem .9rem; cursor: pointer; border-top: 4px solid var(--line2); color: var(--text); text-align: left; transition: transform .2s var(--ease), box-shadow .2s; }
.sev-tile:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sev-tile[disabled] { opacity: .45; cursor: default; }
.sev-tile .n { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.sev-tile .l { color: var(--muted); font-size: .82rem; }
.sev-tile.critical, .sev-tile.high { border-top-color: var(--bad); } .sev-tile.warn { border-top-color: var(--warn); }
.sev-tile.on { outline: 2px solid var(--accent); background: var(--accent-soft); }
.rec-prog { display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.rec-prog .prog { width: 100%; height: .5rem; }
.task-group { margin-bottom: 1.2rem; }
.tg-h { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .6rem; font-size: 1.02rem; }
.tg-h small { font-weight: 400; flex-basis: 100%; margin-left: 1.15rem; }
.tasks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.tasks.compact { border: 0; box-shadow: none; background: none; gap: .1rem; }
.task { border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task.leaving { opacity: 0; transform: translateX(20px); transition: all .3s; }
.task-h { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; cursor: pointer; transition: background .15s; }
.tasks.compact .task-h { padding: .5rem .3rem; border-radius: 10px; }
.task-h:hover { background: var(--panel2); }
.task-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.task-t b { line-height: 1.3; }
.task-m { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.sev-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; background: var(--line2); }
.sev-dot.critical { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); } .sev-dot.high { background: var(--bad); } .sev-dot.warn { background: var(--warn); }
.quick-done { border-radius: 50%; width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; }
.quick-done:hover { background: var(--good); border-color: var(--good); color: #fff; }
.chev { color: var(--muted); font-size: 1.1rem; transition: transform .25s var(--ease); width: 1rem; text-align: center; }
.task.open > .task-h .chev { transform: rotate(180deg); }
.task-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.task.open > .task-b { grid-template-rows: 1fr; }
.task-in { overflow: hidden; padding: 0 1rem 0 2.35rem; }
.task.open .task-in { padding-bottom: 1rem; }
.task-in .wf p { margin: .2rem 0 .5rem; line-height: 1.5; }
.task-in h5 { margin: .6rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.task-arts { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.task-arts li { display: flex; gap: .6rem; align-items: center; font-size: .88rem; cursor: pointer; border-radius: 8px; padding: .2rem; }
.task-arts li:hover { background: var(--panel2); color: var(--accent); }
.task-arts .thumb { width: 3.2rem; height: 2.1rem; }
.task-in .act { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.task-in .open-link { margin-left: auto; }

.teach { background: linear-gradient(135deg, var(--accent-soft), var(--panel) 70%); }
.teach-form { display: flex; flex-direction: column; gap: .6rem; }
.teach-form textarea { width: 100%; font-size: 1rem; }
.teach-ex { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .7rem; }
.brain-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.mem-group { margin-bottom: 1rem; }
.mem-group h4 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 .3rem; }
.mem-group h4 small { font-weight: 400; flex-basis: 100%; margin-left: 1.1rem; }
.mem-list li .mact { opacity: .35; transition: opacity .2s; } .mem-list li:hover .mact { opacity: 1; }
.top-mem { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: .87rem; }
.top-mem li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .5rem; align-items: start; }
.top-mem li .kdot { margin-top: .35rem; } .top-mem li small { grid-column: 2; }

.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1rem; }
.hl-card .t { font-weight: 700; font-size: 1.02rem; line-height: 1.35; cursor: pointer; margin-bottom: .45rem; }
.hl-card .t:hover { color: var(--accent); }
.hl-card .hl-meta { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .84rem; }
.hl-card .why { font-size: .88rem; color: var(--muted); margin: .6rem 0; line-height: 1.5; }
.hl-card .sugg { background: var(--good-soft); border-radius: 10px; padding: .55rem .75rem; font-size: .88rem; }
.hl-card .sugg ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.hl-card.best { border-left: 4px solid var(--good); }
.good-t { color: var(--good); }
.bar { grid-template-columns: minmax(8rem, 46%) 1fr 3.4rem; }

@media (max-width: 1100px) { .ov-top, .rec-top, .ov-2-1, .brain-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ov-kpis { grid-template-columns: 1fr 1fr; gap: .6rem; } .kpi-spark .v { font-size: 1.35rem; }
  .sev-tiles { grid-template-columns: 1fr 1fr; }
  .task-in { padding-left: 1rem; }
  .latest { grid-template-columns: 1fr; }
  .art-cell .thumb { width: 3.4rem; height: 2.3rem; }
  .hl-grid { grid-template-columns: 1fr; }
}

/* authors, categories, ads (UX pass 2) */
.av.lg { width: 3.4rem; height: 3.4rem; font-size: 1.2rem; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.au-card { display: flex; flex-direction: column; gap: .7rem; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.au-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.au-top { display: flex; gap: .8rem; align-items: center; }
.au-id { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.au-id b { font-size: 1.02rem; }
.au-bio { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.7em; }
.au-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; background: var(--panel2); border-radius: 10px; padding: .5rem; text-align: center; }
.au-stats b { display: block; font-size: 1.1rem; } .au-stats small { color: var(--muted); font-size: .72rem; }
.t-good { color: var(--good); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); }
.au-comp { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; color: var(--muted); }
.au-comp .prog { width: 100%; margin: 0; height: .4rem; }
.prog i.good { background: var(--good); } .prog i.warn { background: var(--warn); } .prog i.bad { background: var(--bad); }
.au-soc { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-top: auto; }
.soc { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: .72rem; font-weight: 800;
  text-decoration: none; transition: background .2s, color .2s; }
.soc:hover { background: var(--accent); color: #fff; }
.seg-scroll { max-width: 100%; overflow-x: auto; }
.tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tech-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tech-list li:last-child { border-bottom: 0; }
.dot-s { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line2); }
.dot-s.good { background: var(--good); } .dot-s.warn { background: var(--warn); } .dot-s.bad { background: var(--bad); }
.native-list { display: flex; flex-direction: column; gap: .5rem; }
.nat { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 12px; padding: .65rem .8rem; }
.nat.bad { border-left-color: var(--bad); } .nat.warn { border-left-color: var(--warn); }
.nat-score { font-weight: 800; font-size: 1.15rem; min-width: 1.6rem; text-align: center; }
.nat.bad .nat-score { color: var(--bad); } .nat.warn .nat-score { color: var(--warn); } .nat.good .nat-score { color: var(--good); }
.nat-b { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.nat-m { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.shot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: .8rem; }
.shot-row { display: flex; gap: .8rem; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; }
.shot-th { flex: none; width: 4.6rem; height: 8.2rem; border-radius: 8px; overflow: hidden; background: var(--panel2); display: block; }
.shot-th img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-b { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.shot-b .hl { font-weight: 650; line-height: 1.3; cursor: pointer; }
.shot-m { display: flex; gap: .6rem; align-items: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) { .shot-list, .au-grid { grid-template-columns: 1fr; } }
.shot-b .chips .chip, .chips .chip { max-width: 100%; white-space: normal; text-align: left; }

/* remaining pages (UX pass 3) */
.tr-vol { margin-left: auto; font-weight: 800; color: var(--accent); white-space: nowrap; }
.trend .tr-h { display: flex; gap: .6rem; align-items: baseline; }
.tr-s { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin: .45rem 0; }
.tr-your { margin: .3rem 0; } .tr-best { margin: .6rem 0 0; }
.tr-act { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.trend details summary { cursor: pointer; color: var(--muted); margin: .2rem 0; }
.net { display: flex; flex-direction: column; gap: .35rem; }
.net-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.net-link { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-empty { margin: .4rem 0 .2rem; }
.net-upd summary { list-style: none; display: inline-block; cursor: pointer; } .net-upd summary::-webkit-details-marker { display: none; }
.net-upd[open] summary { margin-bottom: .4rem; }
.net-f { margin-top: auto; padding-top: .3rem; }
.fix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fix-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: center; padding: .55rem .3rem; border-bottom: 1px solid var(--line); border-radius: 8px; }
.fix-list li[data-go] { cursor: pointer; } .fix-list li[data-go]:hover { background: var(--panel2); }
.fix-list li:last-child { border-bottom: 0; }
.g-setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.benefits { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.benefits li { display: flex; gap: .7rem; } .benefits li div { display: flex; flex-direction: column; gap: .1rem; }
.bi { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-weight: 800; flex: none; }
.stepper-v { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.stepper-v li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.5; }
.stepper-v .n { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.learn-empty .ln-prev { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.ln-tile { border: 1px dashed var(--line2); border-radius: 12px; padding: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.ln-ghost { display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.ln-ghost i { display: block; height: .5rem; border-radius: 99px; background: linear-gradient(90deg, var(--accent-soft), var(--panel2)); }
@media (max-width: 1100px) { .g-setup { grid-template-columns: 1fr; } }
.ring .ring-frac { font-size: .78em; }

/* competitors */
.cp-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .4rem; vertical-align: middle; flex: none; }
.cp-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; }
.cp-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cp-list li .muted { flex: 1; min-width: 10rem; }
.cp-act { display: flex; gap: .3rem; }
.cp-sugg { display: flex; flex-direction: column; gap: .5rem; }
.sg { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.sg-b { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.sg-a { display: flex; gap: .3rem; }
.cp-table td:first-child { color: var(--muted); white-space: nowrap; }
.cp-table th { white-space: nowrap; }
.cp-table td.cp-own { background: var(--accent-soft); font-weight: 700; }
.cp-table td.cp-best { color: var(--good); font-weight: 800; }
.cp-matrix td, .cp-matrix th { text-align: center; padding: .35rem .5rem; }
.cp-matrix td:first-child { text-align: left; }
.cp-matrix td.yes { color: var(--good); font-weight: 800; background: var(--good-soft); }
.cp-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cp-feed li { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.cp-feed li div { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cp-feed a { color: var(--text); font-weight: 600; text-decoration: none; } .cp-feed a:hover { color: var(--accent); }
.cp-pace { display: flex; flex-direction: column; gap: .7rem; margin-top: .6rem; }
.cp-pr { display: grid; grid-template-columns: minmax(8rem, 35%) 1fr 3rem; gap: .6rem; align-items: center; font-size: .9rem; }
.cp-pr .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-pr .tr { height: .9rem; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.cp-pr .tr i { display: block; height: 100%; border-radius: 99px; animation: growX .9s var(--ease) both; transform-origin: left; }
.cp-pr b { text-align: right; }
.cp-table td.num { white-space: nowrap; }

/* ---------- first-run tour ---------- */
.tour { position: fixed; inset: 0; z-index: 400; animation: tourIn .25s var(--ease); }
.tour.out { opacity: 0; transition: opacity .22s; }
.tour-block { position: absolute; inset: 0; }
.tour-spot { position: fixed; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 200vmax rgba(18, 8, 38, .58), 0 0 0 3px var(--accent), 0 0 24px 4px rgba(155, 81, 224, .55);
  transition: left .38s var(--ease), top .38s var(--ease), width .38s var(--ease), height .38s var(--ease); }
.tour-spot::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--accent); animation: tourPulse 1.8s ease-out infinite; }
.tour.center .tour-spot::after { display: none; }
.tour-pop { position: fixed; width: min(23rem, calc(100vw - 24px)); background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem 1rem; outline: none; transition: left .38s var(--ease), top .38s var(--ease); }
.tour.center .tour-pop { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(27rem, calc(100vw - 24px)); padding: 1.6rem 1.6rem 1.2rem; }
.tour.center .tour-pop::before { content: ""; display: block; width: 3.2rem; height: 3.2rem; margin-bottom: .8rem; border-radius: 14px;
  background: var(--accent) url("athena-logo.svg") center / 62% no-repeat; box-shadow: 0 8px 22px rgba(124, 58, 237, .35); }
.tour-pop.in { animation: tourPop .32s var(--ease); }
.tour.center .tour-pop.in { animation: tourPopC .32s var(--ease); }
.tour-pop h3 { margin: .35rem 0 .35rem; font-size: 1.12rem; }
.tour-pop p { margin: 0 0 1rem; color: var(--muted); line-height: 1.5; }
.tour-dots { display: flex; align-items: center; gap: .3rem; }
.tour-dots i { width: .45rem; height: .45rem; border-radius: 99px; background: var(--line2); transition: width .3s var(--ease), background .3s; }
.tour-dots i.past { background: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
.tour-dots i.on { width: 1.3rem; background: var(--accent); }
.tour-dots small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.tour-act { display: flex; align-items: center; gap: .45rem; }
.tour-act .sp { flex: 1; }
@keyframes tourIn { from { opacity: 0; } }
@keyframes tourPop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes tourPopC { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@keyframes tourPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .tour, .tour-pop.in, .tour-spot, .tour-spot::after { animation: none !important; transition: none !important; } }
.csv-btn .i { width: 1rem; height: 1rem; }

/* ---------- author detail ---------- */
.av.xl { width: 6.2rem; height: 6.2rem; font-size: 2rem; box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--accent-soft); }
.au-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.4rem 1.5rem;
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%), var(--panel); }
.au-hero h1 { margin: 0 0 .25rem; font-size: 1.6rem; letter-spacing: -.01em; }
.au-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); }
.au-bio { margin: .55rem 0 .4rem; color: var(--muted); max-width: 60rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.au-hero .socials { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .7rem; }
.au-hero .socials a { font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.au-actions { flex-wrap: wrap; gap: .5rem; }
.au-hero .ring-l { cursor: pointer; text-align: center; font-size: .78rem; color: var(--muted); font-weight: 600; }
.au-views { margin: 1.1rem 0 1rem; }
.au-views small { opacity: .65; font-weight: 600; }
.au-sw ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.au-sw li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.au-sw li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--good); }
.au-sw.warn li::before { content: "!"; background: var(--warn); }
.au-sw.good { border-top: 3px solid var(--good); } .au-sw.warn { border-top: 3px solid var(--warn); }
.au-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; }
.au-best-i { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem; border-radius: 12px; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.au-best-i:hover { border-color: var(--accent); transform: translateY(-2px); }
.au-best-i .thumb { width: 5.2rem; height: 3.6rem; flex: none; }
.au-best-i b { display: block; font-size: .9rem; line-height: 1.35; margin-bottom: .25rem; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ideas li { padding: .6rem .75rem; border-radius: 10px; background: var(--panel2); border-left: 3px solid var(--accent); }
.ideas small { display: block; margin-top: .2rem; }
.dual { display: grid; gap: .55rem; }
.dual-r { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr auto; gap: .7rem; align-items: center; font-size: .88rem; }
.dual-r[data-cat] { cursor: pointer; } .dual-r[data-cat]:hover .lb { color: var(--accent); }
.dual-r .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dual-b { display: grid; gap: 3px; }
.dual-b i { display: block; height: 7px; border-radius: 99px; transform-origin: left; animation: growX .6s var(--ease) both; }
.dual-b i.me { background: var(--accent); } .dual-b i.si { background: var(--line2); }
.dual-r .vl { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; min-width: 3.2rem; }
.dual .legend { margin-top: .2rem; }
@keyframes growX { from { transform: scaleX(0); } }
.coach-chars { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .4rem 0 1rem; }
.coach-chars > div { padding: .7rem .8rem; border-radius: 12px; background: var(--panel2); display: flex; flex-direction: column; }
.coach-chars b { font-size: 1.5rem; } .coach-chars b.good { color: var(--good); } .coach-chars b.warn { color: var(--warn); }
.hl-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.hl-pick li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hl-pick li:last-child { border: 0; }
.hl-pick a { color: inherit; font-weight: 600; text-decoration: none; } .hl-pick a:hover { color: var(--accent); }
.hl-pick small { display: block; margin-top: .15rem; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
@media (max-width: 900px) {
  .au-hero { grid-template-columns: auto 1fr; padding: 1.1rem; }
  .au-hero .ring-l { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .6rem; justify-self: start; }
  .av.xl { width: 4.4rem; height: 4.4rem; }
  .hl-pick li { grid-template-columns: auto 1fr; } .hl-pick li .btn { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .dual-b i { animation: none; } }

/* ---------- market & gaps ---------- */
.mk-missed { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mk-missed > li { padding: .75rem .85rem; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 12px; }
.mk-missed ul { margin: .45rem 0 .55rem; padding-left: 1.1rem; font-size: .88rem; display: grid; gap: .2rem; }
.mk-missed ul a { color: inherit; } .mk-missed ul a:hover { color: var(--accent); }
.mk-mh { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; } .mk-mh b { font-size: 1.02rem; margin-right: .2rem; }
.mk-gap { padding: .6rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .3rem; } .mk-gap:last-child { border: 0; }
.mk-gh { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; } .mk-gh b[data-cat] { cursor: pointer; }
.mk-ex { color: var(--muted); } .mk-ex a { color: inherit; }
.mk-matrix { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .82rem; }
.mk-matrix th { font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; padding: .2rem .4rem; }
.mk-matrix thead th { text-align: center; font-size: .75rem; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; }
.mk-matrix thead th.focus { color: var(--accent); }
.mk-matrix tbody th[data-cat] { cursor: pointer; } .mk-matrix tbody th[data-cat]:hover { color: var(--accent); }
.mk-matrix td { text-align: center; border-radius: 6px; padding: .35rem .2rem; font-variant-numeric: tabular-nums; min-width: 3rem;
  background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), var(--panel2)); color: var(--text); }
.mk-matrix td.focus { outline: 2px solid var(--accent); outline-offset: -2px; }
tr.row-focus td { background: var(--accent-soft); }
.mk-matrix td.hi { color: #fff; font-weight: 700; }
.mk-matrix tbody th { text-transform: none; letter-spacing: 0; font-size: .82rem; }

/* ---------- tools & jobs ---------- */
.card-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; } .card-h h3 { margin: 0; }
.issue-list li.info .ic { background: var(--info-soft, var(--panel2)); color: var(--muted); }
.issue-list { margin: .7rem 0; }
.tl-bots .ok { color: var(--good); font-weight: 800; } .tl-bots .no { color: var(--bad); font-weight: 800; }
.tl-raw { max-height: 18rem; overflow: auto; background: var(--panel2); padding: .7rem; border-radius: 10px; font-size: .78rem; white-space: pre-wrap; }
.tl-arch { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; margin: .5rem 0; }
.tl-arch label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tl-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
.tl-job { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; }
.tl-job small { display: block; }
.bad-t { color: var(--bad); }
.link-box.tall { align-items: flex-start; } .link-box textarea { flex: 1; font: .78rem/1.4 ui-monospace, monospace; resize: vertical; }
.ig-fresh { border: 1px dashed var(--accent); border-radius: 12px; padding: .2rem .9rem .8rem; margin: .8rem 0; background: var(--accent-soft); }

/* ---------- operations (platform admin) ---------- */
.ops-health { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .8rem 1rem; border-radius: 12px; margin-bottom: .4rem;
  background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.ops-health.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.ops-health .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 25%, transparent); animation: pulse 2s infinite; }
.ops-health.bad .dot { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 25%, transparent); }
.ops-health b { margin-right: auto; }
.ops-bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin: .8rem 0; }
.ops-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent3)); border-radius: inherit; transition: width .6s; }
pre.trace { max-height: 260px; overflow: auto; font-size: .72rem; background: var(--bg2, rgba(0,0,0,.04)); padding: .6rem; border-radius: 8px; white-space: pre-wrap; }
tr.dim { opacity: .55; }
.warn-t { color: var(--warn); }

/* ---------- security & privacy ---------- */
.qr-wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: .4rem 0 .8rem; }
.qr-wrap img.qr { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
code.secret { display: inline-block; font-size: .95rem; letter-spacing: .06em; padding: .4rem .6rem; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; word-break: break-all; }
.rec-codes { columns: 2; gap: 1.5rem; padding-left: 1.4rem; margin: .6rem 0 1rem; }
.rec-codes li { margin: .2rem 0; } .rec-codes code { font-size: .95rem; letter-spacing: .05em; }
.sec-policy { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .6rem; }
.switch-row { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.sec-must { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.warn-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--warn-soft); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; }
.warn-note svg { color: var(--warn); flex: none; margin-top: .15rem; }
details.danger-zone { border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); border-radius: 10px; padding: .6rem .9rem; }
details.danger-zone summary { color: var(--bad); cursor: pointer; font-weight: 600; }
details.danger-zone .stack { max-width: 360px; margin-top: .6rem; }
@media (max-width: 600px) { .rec-codes { columns: 1; } }

/* ---------- billing ---------- */
.bill-bar { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.2rem; background: var(--warn-soft); border-bottom: 1px solid var(--line); font-size: .9rem; }
.bill-bar.bad { background: var(--bad-soft); }
.bill-bar span { flex: 1; } .bill-bar[hidden] { display: none; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin: .8rem 0; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .3rem; transition: border-color .2s, transform .2s; }
.plan:hover { border-color: var(--accent); transform: translateY(-2px); }
.plan-price { font-size: 1.6rem; font-weight: 700; color: var(--accent-ink); } .plan-price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.plan .btn { margin-top: auto; }
table.edit-table input { width: 100%; min-width: 6rem; }

/* ---------- live readers ---------- */
.live-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; } .live-head h3 { margin: 0; } .live-head .btn { margin-left: auto; }
.live-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 60%, transparent); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: start; }
.live-total { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border-radius: 14px; background: linear-gradient(135deg, var(--accent-soft), transparent); }
.live-n { font-size: 2.6rem; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.live-list h4 { margin-top: 0; }
.live-row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: .7rem; align-items: center; padding: .4rem .3rem; border-radius: 10px; cursor: pointer; }
.live-row:hover { background: var(--panel2); }
.live-row.hot { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.live-row .thumb { width: 48px; height: 32px; }
.lr-b { min-width: 0; display: flex; flex-direction: column; gap: .25rem; } .lr-h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.lr-bar { height: 5px; border-radius: 99px; background: var(--panel2); overflow: hidden; } .lr-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s; }
.live-row.hot .lr-bar i { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.lr-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.hot { background: var(--bad-soft); color: var(--bad); } .chip.hot svg { width: .85em; height: .85em; vertical-align: -1px; }
.live-rising { list-style: none; padding: 0; margin: .3rem 0 .6rem; } .live-rising li { padding: .35rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.live-thr { margin-top: .6rem; }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } .live-row { grid-template-columns: 40px 1fr auto; } .live-row .chip { grid-column: 2 / -1; justify-self: start; } }

/* ---------- headline & photo changes ---------- */
.chg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: .8rem; margin: .8rem 0; }
.card.chg { cursor: pointer; transition: border-color .2s, transform .2s; } .card.chg:hover { border-color: var(--accent); transform: translateY(-2px); }
.chg-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .45rem; } .chg-head .chip:last-child { margin-left: auto; }
.chg-body { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.chg-old { text-decoration: line-through; color: var(--muted); } .chg-new { font-weight: 600; }
.chg-arrow { color: var(--accent); font-weight: 700; }
.chg-body .thumb { width: 96px; height: 60px; }
.chg-timeline { list-style: none; padding: 0 0 0 1rem; margin: .4rem 0 1rem; border-left: 2px solid var(--accent-soft); }
.chg-timeline li { position: relative; padding: .3rem 0 .8rem .8rem; }
.chg-timeline li::before { content: ""; position: absolute; left: -1.42rem; top: .7rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.chg-chart { width: 100%; height: 160px; } .chg-chart .area { fill: color-mix(in srgb, var(--accent) 14%, transparent); } .chg-chart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chg-mark { stroke: var(--warn); stroke-dasharray: 4 3; stroke-width: 1.5; vector-effect: non-scaling-stroke; } .chg-mark-t { fill: var(--warn); font-size: 11px; }
.chg-chart .axis { fill: var(--muted); font-size: 11px; }
@media (max-width: 600px) { .chg-list { grid-template-columns: 1fr; } }

/* ---------- work plan board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.pcol { background: var(--panel2); border-radius: 16px; padding: .7rem; min-height: 12rem; transition: background .2s, box-shadow .2s; }
.pcol.over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.pcol-h { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .6rem; }
.pcol-b { display: flex; flex-direction: column; gap: .6rem; } .pcol-empty { text-align: center; padding: 1rem 0; }
.pt { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .4rem;
  box-shadow: 0 1px 2px rgba(20,10,40,.05); transition: transform .15s, box-shadow .15s; animation: fadeUp .35s var(--ease) both; }
.pt[draggable="true"] { cursor: grab; } .pt.dragging { opacity: .5; transform: rotate(1.5deg); }
.pt:hover { box-shadow: 0 6px 18px rgba(60,30,120,.10); }
.pt.mine { border-left: 3px solid var(--accent); } .pt.over { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .78rem; }
.pt-due svg { width: .9em; height: .9em; vertical-align: -1px; }
.pt-title { font-size: .95rem; line-height: 1.3; } .pt-note { margin: 0; font-size: .84rem; color: var(--muted); white-space: pre-line; }
.pt-link { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--text); min-width: 0; }
.pt-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-link .thumb { width: 40px; height: 26px; flex: none; }
.pt-out { font-size: .8rem; padding: .3rem .5rem; border-radius: 8px; background: var(--panel2); } .pt-out.good { background: var(--good-soft); color: var(--good); }
.pt-foot { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; } .pt-foot .icon-btn { margin-left: auto; }
.um-av.sm { width: 1.5rem; height: 1.5rem; font-size: .7rem; }
#taskModal .modal-panel label { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .6rem; }
#taskModal .row-inline label { flex: 1; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } .pcol { min-height: 0; } }
.push-dev { list-style: none; padding: 0; margin: .3rem 0; } .push-dev li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Discover tech ---------- */
.dx-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.dx-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .3rem; border-radius: 99px; background: var(--panel2); color: var(--text); font-size: .82rem; font-weight: 600; transition: background .2s; }
.dx-pill:hover { background: var(--accent-soft); text-decoration: none; }
.dx-kpis { grid-template-columns: 1fr 1fr; } .dx-blocker { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .2rem; }
.dx-blocker b { font-size: 1.15rem; color: var(--bad); }
.dx-preview { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.dx-phone { position: relative; justify-self: center; width: 300px; height: 330px; border-radius: 34px; border: 8px solid #1c1730; background: #eef0f4; overflow: hidden;
  box-shadow: 0 20px 50px rgba(60,30,120,.25); }
.dx-feed { padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; animation: dxFeed 6s ease-in-out infinite alternate; }
@keyframes dxFeed { from { transform: translateY(0); } to { transform: translateY(-18px); } }
.dx-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: pointer; color: #1f1f1f; }
.dx-card.big img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.dx-card-b { padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.3; }
.dx-card-b b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dx-mini { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; order: 2; }
.dx-src { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #5f6368; margin-bottom: 4px; }
.dx-fav { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 800; }
.dx-card.ghost { height: 120px; background: linear-gradient(90deg, #fff, #f6f6f9, #fff); } .dx-card.ghost.short { height: 70px; }
.dx-tag { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); box-shadow: 0 4px 12px rgba(0,0,0,.12); white-space: nowrap; }
.dx-areas { display: flex; flex-direction: column; gap: 1rem; margin-top: .8rem; }
.dx-area { scroll-margin-top: 80px; transition: box-shadow .4s; } .dx-area.flash { box-shadow: 0 0 0 3px var(--accent); }
.dx-area-h { display: flex; gap: .9rem; align-items: center; margin-bottom: .6rem; } .dx-area-h h3 { margin: 0; } .dx-area-h p { margin: .15rem 0 0; }
.dx-area-ic { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.dx-area-ic.s-good { background: var(--good-soft); color: var(--good); } .dx-area-ic.s-warn { background: var(--warn-soft); color: var(--warn); } .dx-area-ic.s-bad { background: var(--bad-soft); color: var(--bad); }
.dx-area-score { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.dx-checks { border-top: 1px solid var(--line); }
.dx-check { border-bottom: 1px solid var(--line); } .dx-check:last-child { border-bottom: 0; }
.dx-check summary { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 160px auto auto 1rem; gap: .7rem; align-items: center; padding: .65rem .2rem; cursor: pointer; list-style: none; }
.dx-check summary::-webkit-details-marker { display: none; }
.dx-check summary:hover { background: var(--panel2); border-radius: 8px; }
.dx-ic { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--good); }
.dx-check.no .dx-ic { background: var(--bad); }
.dx-name { font-weight: 600; min-width: 0; }
.dx-bar { height: 7px; border-radius: 99px; background: var(--panel2); overflow: hidden; grid-column: 3; } .dx-bar i { display: block; height: 100%; border-radius: inherit; animation: growX .8s var(--ease) both; transform-origin: left; }
.dx-bar i.good { background: var(--good); } .dx-bar i.warn { background: var(--warn); } .dx-bar i.bad { background: var(--bad); }
.dx-pct { font-size: .82rem; white-space: nowrap; }
.dx-check:not(:has(.dx-bar)) .dx-pct { grid-column: 3 / 5; }
.dx-check .chev { color: var(--muted); transition: transform .2s; grid-column: 6; } .dx-check[open] .chev { transform: rotate(180deg); }
.dx-body { padding: .2rem .4rem 1rem 2.4rem; animation: fadeUp .3s var(--ease) both; } .dx-body p { margin: .3rem 0; }
.dx-worst { display: flex; flex-direction: column; gap: .2rem; }
.dx-w { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .45rem .3rem; border-radius: 10px; cursor: pointer; }
.dx-w:hover { background: var(--panel2); } .dx-w .thumb { width: 64px; height: 40px; }
.dx-w-b { min-width: 0; } .dx-w-b b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-w-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
@media (max-width: 900px) {
  .dx-preview { grid-template-columns: 1fr; } .dx-phone { width: 260px; height: 300px; }
  .dx-check summary { grid-template-columns: 1.6rem minmax(0, 1fr) auto 1rem; } .dx-bar { grid-column: 2 / 4; grid-row: 2; }
  .dx-check summary .chip { display: none; } .dx-check .chev { grid-column: 4; } .dx-check:not(:has(.dx-bar)) .dx-pct { grid-column: 3; }
  .dx-area-h { flex-wrap: wrap; } .dx-kpis { grid-template-columns: 1fr 1fr; }
}
.dx-check summary { color: var(--text); } .dx-check.ok .dx-name { font-weight: 500; }
.dx-preview > div:first-child { align-self: center; }
.dx-req { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .35rem; }
.dx-req li { display: flex; gap: .5rem; align-items: center; font-size: .9rem; } .dx-req span { width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--good); font-weight: 800; }
.dx-req li.no span { background: var(--bad); }
.dx-kpis .kpi { min-height: 0; }
:root[data-theme="dark"] .dx-phone { border-color: #4a4166; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dx-phone { border-color: #4a4166; } }

/* ---------- SEO (DataForSEO) ---------- */
.seo-bar .chip svg { width: 14px; height: 14px; }
.seo-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seo-moves .seo-mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; margin-top: .5rem; font-weight: 650; font-size: 1.05rem; }
.seo-moves small { font-weight: 450; color: var(--muted); font-size: .78rem; }
.seo-t td { vertical-align: middle; }
.seo-t .main-cell b { font-weight: 600; }
.seo-url { max-width: 34rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem; }
.seo-url a { color: var(--muted); } .seo-url a:hover { color: var(--accent-ink); }
.seo-t .spark, .seo-lk-r .spark { width: 90px; height: 26px; }
.seo-mv { font-size: .75rem; font-weight: 650; margin-left: .2rem; } .seo-mv.up { color: var(--good); } .seo-mv.down { color: var(--bad); }
.kd { display: inline-grid; place-items: center; min-width: 2.1rem; padding: .1rem .35rem; border-radius: 6px; font-size: .8rem; font-weight: 650;
  background: color-mix(in srgb, var(--good) calc(100% - var(--kd) * 1%), var(--bad)); color: #fff; }
.seo-pages, .seo-sugg, .seo-lk-r { list-style: none; margin: 0; padding: 0; }
.seo-pages li, .seo-cmp-r { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; padding: .55rem .3rem; border-bottom: 1px solid var(--line); }
.seo-pages li[data-art] { cursor: pointer; border-radius: 8px; transition: background .15s; } .seo-pages li[data-art]:hover { background: var(--panel2); }
.sp-b { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sp-h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.sp-n, .sc-n { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.seo-cmp-r { grid-template-columns: minmax(8rem, 12rem) 1fr auto; }
.seo-cmp-r.me { background: var(--accent-soft); border-radius: 8px; }
.sc-h { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-sugg li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.seo-lk { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; } .seo-lk textarea { flex: 1; min-width: 16rem; }
.seo-lk-r li { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr auto 2.4rem 7rem 90px; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.seo-budget { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin-bottom: .8rem; } .seo-budget b { font-size: 1.6rem; } .seo-budget .lr-bar { flex-basis: 100%; }
.seo-off svg { width: 44px; height: 44px; color: var(--accent); }
.spin-i { display: inline-block; width: .9em; height: .9em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -.1em; }
@media (max-width: 720px) {
  .seo-lk-r li { grid-template-columns: 1fr auto; } .seo-lk-r li > .lr-bar, .seo-lk-r li > .spark, .seo-lk-r li > .small { display: none; }
  .seo-cmp-r { grid-template-columns: 1fr auto; } .seo-cmp-r .lr-bar { grid-column: 1 / -1; grid-row: 2; }
  .seo-url { max-width: 60vw; }
}
.stack-form { display: grid; gap: .5rem; max-width: 26rem; }
@media (max-width: 720px) { table.resp.seo-t td.nowrap { justify-content: flex-end; gap: .4rem; } }
.seo-tabs { flex-wrap: nowrap; }
.seo-body.seo-in > * { animation: fadeUp .35s ease both; }
.seo-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1rem; }
.seo-next-c { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; text-align: left; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.seo-next-c:hover { transform: translateY(-2px); border-color: var(--accent); }
.seo-next-c svg { width: 22px; height: 22px; color: var(--accent); }
.seo-next-c span { display: flex; flex-direction: column; gap: .15rem; } .seo-next-c i { font-style: normal; color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .seo-body.seo-in > * { animation: none; } }
.ai-opt { display: grid; grid-template-columns: auto 1fr; gap: .8rem; cursor: pointer; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.ai-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-opt input[type=radio] { margin-top: .35rem; accent-color: var(--accent); }
.ai-opt .stack-form { max-width: none; }
/* homepage & structure */
.home-shots-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.home-shot { margin: 0; padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.home-shot a { display: block; border-radius: 10px; overflow: hidden; background: var(--bg2, var(--line)); aspect-ratio: 16 / 11; }
.home-shot.phone a { aspect-ratio: 9 / 16; }
.home-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
.home-shot a:hover img { transform: scale(1.02); }
.home-shot figcaption { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; }
.home-shot.empty { min-height: 8rem; justify-content: center; text-align: center; }
.home-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.home-gallery.phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.home-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.home-cmp figure { margin: 0; }
.home-cmp img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.home-cmp.phone { max-width: 640px; }
.home-lineup, .home-top { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.home-lineup li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; align-items: start; padding: .35rem .4rem; border-radius: 8px; }
.home-lineup li.clickable:hover, .home-top li.clickable:hover { background: var(--accent-soft); cursor: pointer; }
.hl-pos { font-weight: 700; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.home-top li { padding: .45rem .5rem; border-radius: 8px; border-bottom: 1px solid var(--line); }
.home-chs { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .6rem; }
.home-ch { border-left: 3px solid var(--line); padding: .4rem .7rem; }
.home-ch.bad { border-color: var(--bad); } .home-ch.warn { border-color: var(--warn); }
.hc-h { display: flex; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.hc-l { margin: .2rem 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.home-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.home-nav a.chip { text-decoration: none; }
.home-tpl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem; }
.home-tpl li { padding: .45rem .6rem; border-radius: 8px; background: var(--good-soft, rgba(34,197,94,.08)); }
.home-tpl li.bad { background: var(--bad-soft, rgba(239,68,68,.1)); color: var(--bad); }
@media (max-width: 760px) { .home-shots-row, .home-cmp { grid-template-columns: 1fr; } .home-shot.phone { max-width: 320px; } }
/* site speed (Core Web Vitals) */
.chip.cwv-good { background: var(--good-soft, rgba(34,197,94,.14)); color: var(--good); }
.chip.cwv-ni { background: rgba(245,158,11,.16); color: var(--warn); }
.chip.cwv-poor { background: rgba(239,68,68,.14); color: var(--bad); }
.cwv-nokey { display: flex; gap: 1rem; align-items: flex-start; border-left: 4px solid var(--warn); }
.cwv-nokey > svg { width: 2rem; height: 2rem; flex: none; color: var(--warn); }
.cwv-form { margin-top: 1rem; }
.cwv-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.cwv-grid.sm { margin-top: .8rem; }
.cwv-m { display: flex; flex-direction: column; gap: .35rem; border-top: 4px solid var(--line); }
.cwv-m .l { font-weight: 600; font-size: .9rem; }
.cwv-m .v { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cwv-m.cwv-b-good { border-top-color: var(--good); } .cwv-m.cwv-b-ni { border-top-color: var(--warn); } .cwv-m.cwv-b-poor { border-top-color: var(--bad); }
.cwv-m.cwv-b-good .v { color: var(--good); } .cwv-m.cwv-b-ni .v { color: var(--warn); } .cwv-m.cwv-b-poor .v { color: var(--bad); }
.cwv-dist { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.cwv-dist i { display: block; min-width: 2px; } .cwv-dist .g { background: var(--good); } .cwv-dist .n { background: var(--warn); } .cwv-dist .p { background: var(--bad); }
tr.me-row td { background: var(--accent-soft); }
/* visibility (Google & AI, News, brand, advertisers) */
.vis-bar { margin: .3rem 0 0; }
.vis-share { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .4rem; }
.vis-share li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 4rem; gap: .6rem; align-items: center; font-size: .92rem; }
.vis-share li.me { font-weight: 700; color: var(--accent); }
.vis-share b { text-align: right; font-variant-numeric: tabular-nums; }
.vis-pages { padding-left: 1.2rem; display: grid; gap: .3rem; }
.vis-pages a { word-break: break-all; }
.kpi-big { font-size: 1rem; margin: .3rem 0 .8rem; } .kpi-big b { font-size: 2rem; }
button.chip.clickable { cursor: pointer; border: 1px solid var(--line); }
button.chip.clickable:hover { border-color: var(--accent); }
.pager { display: flex; gap: .8rem; align-items: center; justify-content: center; margin: 1rem 0; }
.ml-form { display: grid; gap: .9rem; max-width: 34rem; margin-top: .6rem; } .ml-form .form-row { display: grid; gap: .3rem; } .ml-form .form-row label { font-weight: 600; font-size: .9rem; } .ml-form input { width: 100%; } .ml-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.god-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; }
.god-head h2 { margin: 0; } .god-head p { margin: .2rem 0 0; } .god-head .kv { margin: 0; }
.god-av { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--accent), #c084fc); }
.god-org + .god-org { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .god-head { grid-template-columns: auto 1fr; } .god-head .kv { grid-column: 1 / -1; } }
/* social network page (app-socialnet.js) */
.sn-hero { grid-template-columns: auto 1fr auto; }
.sn-hero img.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.sn-big { text-align: center; } .sn-big b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; } .sn-big span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.sn-ins { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.sn-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.sn-post { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; padding: .9rem; margin: 0; }
.sn-post:not(:has(.sn-thumb)) { grid-template-columns: 1fr; }
.sn-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--panel2); display: block; }
.sn-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sn-text { margin: .45rem 0; font-size: .88rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sn-nums { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); } .sn-nums b { color: var(--text); }
.sn-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; } .sn-tags span { font-size: .75rem; color: var(--accent-ink); background: var(--accent-soft); border-radius: 99px; padding: .05rem .5rem; }
.sn-mentions { display: flex; flex-wrap: wrap; gap: .6rem; } .sn-mentions a { display: flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .85rem; padding: .25rem .6rem .25rem .25rem; border: 1px solid var(--line); border-radius: 99px; }
.sn-mentions img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.net-detail { margin: .5rem 0 .2rem; }
@media (max-width: 700px) { .sn-hero { grid-template-columns: auto 1fr; } .sn-big { grid-column: 1 / -1; text-align: left; } .sn-posts { grid-template-columns: 1fr; } .sn-post { grid-template-columns: 72px 1fr; } .sn-thumb img { width: 72px; height: 72px; } }
.add-net summary { display: grid; gap: .25rem; cursor: pointer; list-style: none; } .add-net summary::-webkit-details-marker { display: none; }
.add-net form { display: grid; gap: .5rem; margin-top: .7rem; }
.net-h .link-btn { padding: 0 .3rem; color: var(--muted); }
.net-v small { display: block; font-size: .78rem; font-weight: 600; }
.sn-suggest { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; } .sn-suggest li { display: grid; gap: .1rem; } .sn-suggest a { font-weight: 600; text-decoration: none; }
.sn-slots { display: flex; flex-wrap: wrap; gap: .4rem; }
.sn-suggest .chip { justify-self: start; }
.nets .add-net { align-self: start; } .nets .add-net:not([open]) { padding-top: .9rem; padding-bottom: .9rem; }
/* site switcher with the portal's icon (brand.py) */
.site-ico { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--line); vertical-align: middle; }
.site-ico.sm { width: 16px; height: 16px; border-radius: 4px; margin-right: .35rem; vertical-align: -3px; }
.site-ico-l { display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--accent-ink); background: var(--accent-soft); box-shadow: none; }
.site-ico-l.sm { font-size: .6rem; }
.site-pick { position: relative; }
.site-btn { display: inline-flex; align-items: center; gap: .5rem; max-width: 18rem; padding: .4rem .7rem .4rem .45rem; border-radius: 10px; border: 0;
  background: var(--panel2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.site-btn:hover, .site-btn[aria-expanded="true"] { background: var(--accent-soft); }
.site-btn .site-name, .site-menu .site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-btn .caret { color: var(--muted); font-size: .75rem; }
.site-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 15rem; max-width: 22rem; max-height: 60vh; overflow: auto; padding: .35rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 10, 50, .18); display: grid; gap: 2px; }
.site-menu button { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.site-menu button:hover, .site-menu button:focus-visible { background: var(--panel2); outline: none; }
.site-menu button.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
@media (max-width: 700px) { .site-btn { max-width: 9.5rem; } }
.net-ico { flex: none; vertical-align: -4px; }
.net-name { display: inline-flex; align-items: center; gap: .5rem; }
.sn-net { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; }
.tsearch { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 .6rem; }
.tsearch input { flex: 1; max-width: 22rem; }

/* billing details form */
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; margin-top: .6rem; }
.bd-grid .span2 { grid-column: 1 / -1; }
.bd-grid .form-row { margin-bottom: .7rem; }
.bd-grid input, .bd-grid select { width: 100%; }
@media (max-width: 560px) { .bd-grid { grid-template-columns: 1fr; } }

/* Platform → Pricing */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem .9rem; margin-top: .6rem; }
.pr-grid .span2 { grid-column: 1 / -1; }
.pr-l { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.pr-l input, .pr-l select, .pr-l textarea { width: 100%; color: var(--text); }
.pr-c { display: flex; align-items: center; gap: .45rem; font-size: .9rem; align-self: end; padding-bottom: .4rem; }
.pr-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); gap: 1rem; margin-top: .8rem; }
.pr-plan h4 { margin: 1rem 0 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pr-feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pr-top { display: flex; justify-content: space-between; align-items: center; }
.pr-acts { display: flex; gap: .3rem; }
.pr-save { position: sticky; bottom: 0; background: var(--bg); padding: .6rem 0; z-index: 2; }

/* morning briefing */
.br-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.br-pick { display: flex; flex-direction: column; gap: .55rem; border-top: 3px solid var(--accent); }
.br-pick.k-missed { border-top-color: var(--bad); } .br-pick.k-trend { border-top-color: var(--warn); } .br-pick.k-works { border-top-color: var(--good); }
.br-top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.br-n { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: #fff; font-size: .85rem; }
.br-title { margin: .1rem 0 0; font-size: 1.15rem; line-height: 1.3; }
.br-why { margin: 0; font-size: .9rem; }
.br-angle, .br-hl { background: var(--panel2); border-radius: 10px; padding: .6rem .8rem; }
.br-angle b, .br-hl > b { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.br-angle p { margin: .2rem 0 0; }
.br-h { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.br-hl > b + .br-h { border-top: 0; }
.br-hact { display: flex; gap: .25rem; flex-shrink: 0; }
.br-kv { margin: 0; }
.br-act { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .3rem; }
.br-y { margin-top: 1rem; }
.br-ylist { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .4rem; }
.br-ylist li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.br-teaser ol { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.br-tt { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.br-tt h3 { margin: 0; }

/* value in money */
.val-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; align-items: end; }
.val-big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--good); margin: .2rem 0 .6rem; }
.val-parts { list-style: none; padding: 0; margin: 0 0 .6rem; }
.val-parts li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.val-top { padding-left: 1.1rem; }

/* market benchmark */
.bm-card { margin-bottom: 1rem; }
.bm-grid { display: grid; gap: .55rem; margin-top: .6rem; }
.bm-row { display: grid; grid-template-columns: minmax(10rem, 1.2fr) 2fr minmax(9rem, 1fr); gap: .9rem; align-items: center; }
.bm-l, .bm-v { display: flex; flex-direction: column; }
.bm-v { text-align: right; }
.bm-v b.good { color: var(--good); } .bm-v b.bad { color: var(--bad); }
.bm-bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); }
.bm-bar i.bm-band { top: 0; height: 100%; transform: none; border-radius: 99px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.bm-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .7rem 0 0; }
.bm-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.bm-legend i { display: inline-block; position: static; transform: none; }
.bm-legend i.bm-band { width: 22px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.bm-legend i.bm-me { width: 11px; height: 11px; border-radius: 50%; box-shadow: none; }
.bm-bar i { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.bm-med { width: 3px; height: 16px; border-radius: 2px !important; background: var(--muted); }
.bm-me { width: 14px; height: 14px; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.bm-me.good { background: var(--good); } .bm-me.bad { background: var(--bad); }
@media (max-width: 640px) { .bm-row { grid-template-columns: 1fr 1fr; } .bm-bar { grid-column: 1 / -1; order: 3; } }

/* site audit */
.aud-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.aud-row { display: flex; flex-direction: column; gap: .5rem; }
.aud-h { display: flex; gap: .6rem; align-items: center; } .aud-h img { border-radius: 6px; } .aud-h .chip { margin-left: auto; }
.aud-k { display: flex; gap: 1.2rem; flex-wrap: wrap; } .aud-k b { font-size: 1.3rem; }
.aud-logo { max-height: 40px; max-width: 160px; grid-column: 1 / -1; }

/* archive revival */
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 1rem; }
.rv-item { display: flex; flex-direction: column; gap: .5rem; }
.rv-top { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.rv-h { font-weight: 700; }
.rv-reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.rv-reasons li { padding-left: .6rem; border-left: 3px solid var(--line2); }
.rv-reasons .rv-trend { border-color: var(--bad); } .rv-reasons .rv-season { border-color: var(--warn); } .rv-reasons .rv-striking, .rv-reasons .rv-decline { border-color: var(--accent); }

/* ownership & site groups */
.own-steps li { margin-bottom: .6rem; }
.own-dns { margin-top: .3rem; font-size: .85rem; } .own-dns th { text-align: left; padding-right: .8rem; color: var(--muted); font-weight: 500; }
.own-others { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .4rem; }
.own-others li { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .own-others .btn { margin-left: auto; }
.sm-g { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .8rem .2rem; }
.site-ok { margin-left: auto; color: var(--good); font-weight: 700; font-size: .8rem; }
.cp-people { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.cp-people li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .3rem 0; }
/* backlinks: insight list + spam rows */
.seo-tips { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.seo-tips li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.seo-tips li .i { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .15rem; }
.seo-tips li.bad .i { color: var(--bad); } .seo-tips li.warn .i { color: var(--warn); } .seo-tips li.good .i { color: var(--good); } .seo-tips li.info .i { color: var(--accent); }
tr.row-bad td { background: color-mix(in srgb, var(--bad) 7%, transparent); }
#seoLinkSub { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
/* authors: search + layout switch + table */
.au-bar { flex-wrap: wrap; gap: .6rem; align-items: center; }
.au-q { flex: 1 1 14rem; min-width: 0; max-width: 26rem; }
.layout-seg button { display: inline-flex; align-items: center; padding: .3em .55em; }
.layout-seg .i { width: 1.05rem; height: 1.05rem; }
.au-cell { display: flex; align-items: center; gap: .6rem; min-width: 12rem; }
.au-cell small { display: block; }
.au-tbl .au-soc { display: flex; gap: .25rem; flex-wrap: wrap; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover, th.sortable.on { color: var(--accent); }
/* before writing (topic brief) */
.tb-q { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.tb-q .link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; font: inherit; }
.tb-ai { max-height: 18rem; overflow: auto; font-size: .92rem; padding: .6rem .8rem; border-radius: 10px; background: var(--panel2); }
.tb-ai h3, .tb-ai h4 { font-size: .95rem; margin: .6rem 0 .2rem; }
/* author topic mix (Production → authors table) */
.au-mix { display: flex; flex-direction: column; gap: .3rem; min-width: 200px; }
.au-mix-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.au-mix-bar i { display: block; height: 100%; }
.au-mix-l { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .78rem; color: var(--muted); }
.au-mix-l span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.au-mix-l b { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ntf-groups { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .3rem .8rem; }
.ntf-groups legend { padding: 0; margin-bottom: .3rem; }
.ntf-more summary { cursor: pointer; font-weight: 600; }
/* briefing: portal fit */
.br-fit { margin: .1rem 0 0; color: var(--good); display: flex; align-items: center; gap: .35rem; }
.br-tchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.br-skip { margin: 0; padding-left: 1.1rem; }
.br-skip li { margin: .2rem 0; }
.gi-can { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
.gi-can:first-of-type { border-top: 0; }
.clickable { cursor: pointer; }

/* accessibility page */
.a11y-top { grid-template-columns: minmax(12rem, 16rem) 1fr; align-items: stretch; }
@media (max-width: 700px) { .a11y-top { grid-template-columns: 1fr; } }
.a11y-gauge { text-align: center; display: flex; flex-direction: column; justify-content: center; border-top: 4px solid var(--line); }
.a11y-gauge .l { color: var(--muted); font-size: .85rem; } .a11y-gauge .v { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.a11y-gauge .v small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.a11y-gauge.cwv-b-good { border-top-color: var(--good); } .a11y-gauge.cwv-b-ni { border-top-color: var(--warn); } .a11y-gauge.cwv-b-poor { border-top-color: var(--bad); }
.chip.a11y-critical { background: var(--bad-soft); color: var(--bad); }
.chip.a11y-serious { background: var(--warn-soft); color: var(--warn); }
.chip.a11y-moderate { background: var(--accent-soft); color: var(--accent-ink); }
.chip.a11y-minor { background: var(--chip, rgba(127,127,127,.12)); color: var(--muted); }
.a11y-rule { padding: .2rem 1rem; margin-bottom: .6rem; } .a11y-rule summary { cursor: pointer; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.a11y-rule[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .6rem; } .a11y-cnt { margin-left: auto; }
.a11y-ex { background: var(--bg2, rgba(127,127,127,.08)); border-radius: 8px; padding: .5rem .7rem; overflow-x: auto; font-size: .78rem; white-space: pre-wrap; word-break: break-all; margin: .3rem 0 .1rem; }
.a11y-top-list { list-style: none; padding: 0; margin: 0 0 .8rem; } .a11y-top-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.a11y-st { width: 100%; font: .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: .6rem 0; }
.a11y-empty { text-align: center; padding: 2.5rem 1rem; } .a11y-empty svg { width: 2.6rem; height: 2.6rem; color: var(--accent); }
.a11y-kpi { cursor: pointer; text-align: left; font: inherit; color: inherit; } .a11y-kpi:hover { border-color: var(--accent); }
.a11y-rule summary { color: var(--text, inherit); } .a11y-rule summary b { font-weight: 700; }
.a11y-f { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); } .a11y-f input { width: 100%; }

/* uptime page */
.up-hero { display: flex; align-items: center; gap: 1rem; border-left: 5px solid var(--good); }
.up-hero.is-down { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--card, transparent)); }
.up-hero h2 { margin: 0; font-size: 1.35rem; } .up-hero h2 small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.up-hero p { margin: .25rem 0 0; }
.up-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--good); flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: upPulse 2.2s ease-out infinite; }
.is-down .up-dot { background: var(--bad); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 60%, transparent); }
@keyframes upPulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .up-dot { animation: none; } }
.up-strip { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; margin: .6rem 0; }
.up-strip i { border-radius: 2px; background: var(--line); } .up-strip i.good { background: var(--good); } .up-strip i.ni { background: var(--warn); } .up-strip i.poor { background: var(--bad); }
@media (max-width: 600px) { .up-strip { gap: 1px; height: 28px; } }
.up-downs { display: flex; flex-wrap: wrap; gap: .3rem; }

/* accessibility helpers (WCAG 2.1 AA) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
p a:not(.btn):not(.chip), li a:not(.btn):not(.chip), .page-head .sub a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.table-wrap:focus-visible, :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 1rem; color: #fff; text-decoration: none; }
#main:focus { outline: none; }
.ask-ai { margin: 0; padding: .35rem 1rem .6rem; font-size: .74rem; color: var(--muted); }
.mk-gap.off { opacity: .72; }
.trend.off { opacity: .7; }
/* trends: live / earlier, stories taking off at competitors */
.tr-when { display: flex; align-items: center; gap: .35rem; margin: .1rem 0 .3rem; color: var(--muted); }
.tr-when .live-dot { width: .5rem; height: .5rem; display: inline-block; }
.rise-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.rise-list > li { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); }
.rise-list > li:first-child { border-top: 0; padding-top: 0; }
.rise-list .news { margin: .35rem 0 0; }
@media (max-width: 640px) { .rise-list > li { flex-direction: column; } }
.tr-rising + .toolbar { margin-top: 1rem; }
/* categories over time */
.ct-cards { align-items: stretch; }
.ct-card { display: flex; flex-direction: column; gap: .5rem; border-top: 3px solid var(--line2); }
.ct-card.bad { border-top-color: var(--bad); } .ct-card.warn { border-top-color: var(--warn); } .ct-card.good { border-top-color: var(--good); } .ct-card.accent { border-top-color: var(--accent); }
.ct-card .ct-h { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.ct-card p { margin: 0; } .ct-card .row-inline { margin-top: auto; }
.ct-spark { display: flex; gap: .8rem; height: 34px; } .ct-spark svg { flex: 1; height: 34px; }
/* portal profile */
.pp-card .pp-sum { font-size: 1.02rem; line-height: 1.55; margin: .4rem 0 .8rem; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem 1.4rem; }
.pp-grid h4, .pp-card h4 { margin: .4rem 0 .35rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pp-card .chip { margin: 0 .25rem .3rem 0; }
.pp-card textarea { width: 100%; }
.tr-angle { display: flex; gap: .4rem; align-items: flex-start; margin: .2rem 0 .4rem; color: var(--text); }
.tr-angle svg { flex: none; margin-top: .15rem; color: var(--accent); }
.pp-card .chip { white-space: normal; text-align: left; max-width: 100%; }
.card.niche { margin-bottom: 1rem; }

/* ---------- avatars, my profile, admin groups, simulation, e-mail templates ---------- */
.av-img, .av-ini { width: 2rem; height: 2rem; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover; font-weight: 800; color: #fff; background: var(--grad, linear-gradient(135deg, var(--accent), var(--accent3))); font-size: .85rem; vertical-align: middle; }
.av-img.sm, .av-ini.sm { width: 1.6rem; height: 1.6rem; font-size: .7rem; }
.av-img.lg, .av-ini.lg { width: 2.8rem; height: 2.8rem; font-size: 1.1rem; }
.av-img.xl, .av-ini.xl { width: 4.5rem; height: 4.5rem; font-size: 1.7rem; }
.um-av .av-img, .um-av .av-ini { width: 100%; height: 100%; font-size: inherit; background: none; }
.um-av:has(.av-img) { background: none; }
.god-av { background: none; width: auto; height: auto; }
.me-photo { display: flex; gap: 1rem; align-items: center; }
.me-photo p { margin: .4rem 0 0; }
.me-mini { display: flex; gap: .8rem; align-items: center; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.link-card h3 { margin-bottom: .2rem; }
.stack-cards { display: grid; gap: 1rem; align-content: start; }
.mem-cell { display: inline-flex; gap: .55rem; align-items: center; }
.dev-list { list-style: none; padding: 0; margin: 0 0 .8rem; }
.dev-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.dev-list li:last-child { border-bottom: 0; }
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: .7rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .5rem 1rem;
  background: repeating-linear-gradient(135deg, #f59e0b, #f59e0b 14px, #fbbf24 14px, #fbbf24 28px); color: #1c1300; font-weight: 600; font-size: .88rem; text-align: center; }
.imp-bar .btn { background: #1c1300; color: #fff; border-color: #1c1300; }
.imp-bar .i { width: 1.1rem; height: 1.1rem; }
body.impersonating .need-editor, body.impersonating .need-owner { opacity: .55; }
.adm-nav { display: grid; gap: .6rem; margin-bottom: 1rem; }
.adm-groups { display: flex; gap: .4rem; flex-wrap: wrap; }
.adm-groups button { display: inline-flex; gap: .45rem; align-items: center; padding: .55rem .95rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.adm-groups button:hover { border-color: var(--line2); transform: translateY(-1px); }
.adm-groups button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.adm-groups .i { width: 1.05rem; height: 1.05rem; }
.adm-nav .toolbar { margin: 0; }
.mtpl { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 1rem; align-items: start; }
.mtpl-list { display: grid; gap: .15rem; position: sticky; top: 4.5rem; }
.mtpl-list .nav-h { margin: .7rem 0 .2rem; }
.mtpl-list button { text-align: left; padding: .5rem .7rem; border-radius: 9px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.mtpl-list button:hover { background: var(--panel2); }
.mtpl-list button.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mtpl-prev { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #f5f3ff; }
.mt-var { cursor: pointer; padding: .1rem .35rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.row-inline.spread { justify-content: space-between; }
@media (max-width: 760px) { .mtpl { grid-template-columns: 1fr; } .mtpl-list { position: static; grid-auto-flow: row; } .adm-groups button span { font-size: .85rem; } }
.me-card form label, #mtForm label { display: grid; gap: .3rem; font-weight: 600; font-size: .88rem; }
.me-card form label small { font-weight: 400; }
.me-card form input, .me-card form select, #mtForm input, #mtForm textarea { width: 100%; }
#mtForm label.switch { display: flex; font-weight: 500; }
.use-row { display: flex; justify-content: space-between; margin-top: .4rem; }
.use-bar { height: .55rem; border-radius: 99px; background: var(--panel2); overflow: hidden; margin: .35rem 0 .2rem; }
.use-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent3)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.use-bar i.full { background: var(--warn, #f59e0b); }
.flag-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.flag-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: .6rem; }
.flag-grid label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.flag-grid select[multiple] { min-height: 4.5rem; }
.good-t { color: var(--good); }
@media (max-width: 760px) { .flag-list { grid-template-columns: 1fr; } }
.chip.geo { font-size: .68rem; padding: .05rem .4rem; letter-spacing: .04em; }
.world .rise-list li { align-items: flex-start; }
.ab-list { display: grid; gap: .8rem; }
.ab-test { box-shadow: none; border: 1px solid var(--line); }
.ab-vars { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .4rem; }
.ab-vars li { display: grid; grid-template-columns: 1fr 180px; gap: .8rem; align-items: center; padding: .5rem .6rem; border-radius: 10px; background: var(--panel2); }
.ab-vars li.win { background: color-mix(in srgb, var(--good) 14%, var(--panel)); }
.ab-p small { color: var(--muted); }
@media (max-width: 640px) { .ab-vars li { grid-template-columns: 1fr; } }
