/* Content Monitor: dark glass dashboard (violet accent, Inter, light display figures). */
:root {
  color-scheme: dark;
  --bg: #0b0a14;
  --side: rgba(14, 13, 26, 0.86);
  --tile: rgba(255, 255, 255, 0.045);
  --tile-hi: rgba(255, 255, 255, 0.075);
  --pop: rgba(24, 22, 38, 0.95);
  --ink: #f4f3fb;
  --ink-2: #b6b3cc;
  --ink-3: #7f7c97;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.045);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-2: rgba(255, 255, 255, 0.035);
  --accent: #b4a5ff;
  --accent-2: #7c5cff;
  --accent-ink: #120e24;
  --accent-bg: rgba(140, 115, 255, 0.16);
  --good: #4ade80;
  --good-bg: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --bad: #fb7185;
  --bad-bg: rgba(251, 113, 133, 0.13);
  --info: #93c5fd;
  --info-bg: rgba(147, 197, 253, 0.12);
  --today: linear-gradient(135deg, #c4b5fd, #7c5cff);
  --we: rgba(255, 255, 255, 0.012);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --r: 20px;
  --r-sm: 12px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 14px/1.5 var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  background:
    radial-gradient(900px 520px at 18% -8%, rgba(124, 92, 255, 0.2), transparent 70%),
    radial-gradient(800px 480px at 105% 0%, rgba(110, 120, 247, 0.12), transparent 70%),
    radial-gradient(700px 500px at 60% 110%, rgba(124, 92, 255, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.warn-text { color: var(--warn); }
.dim { color: var(--ink-3); font-weight: inherit; }
.foot { margin: 28px 0 0; text-align: center; }
.label { font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(140, 115, 255, 0.4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px 14px; background: var(--side); border-right: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; }
.side__brand strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.side__brand small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.side__label { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; padding: 16px 12px 8px; }
.side__nav { display: grid; gap: 2px; }
.side__link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; border: 1px solid transparent; transition: background 0.15s, color 0.15s; }
.side__link svg { color: var(--ink-3); flex: none; transition: color 0.15s; }
.side__link:hover { background: var(--fill-2); color: var(--ink); }
.side__link[aria-current="page"] { color: #fff; background: linear-gradient(135deg, rgba(150, 125, 255, 0.95), rgba(110, 82, 245, 0.95)); box-shadow: 0 8px 24px -10px rgba(124, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.side__link[aria-current="page"] svg { color: #fff; }
.side__sites { display: grid; gap: 2px; }
.side__site { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; font-size: 13.5px; color: var(--ink-2); }
.side__site:hover { background: var(--fill-2); color: var(--ink); }
.side__sitename { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__count { font-size: 11.5px; font-weight: 600; min-width: 24px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--fill); color: var(--ink-2); }
.side__count--bad { background: var(--bad-bg); color: var(--bad); }
.side__count--warn { background: var(--warn-bg); color: var(--warn); }
.side__count--good { background: var(--good-bg); color: var(--good); }
.side__foot { margin-top: auto; padding-top: 16px; }
.sidecard { border-radius: 16px; padding: 14px; background: linear-gradient(160deg, rgba(140, 115, 255, 0.16), rgba(140, 115, 255, 0.04)); border: 1px solid rgba(160, 140, 255, 0.18); }
.sidecard--warn { background: linear-gradient(160deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03)); border-color: rgba(251, 191, 36, 0.2); }
.sidecard--bad { background: linear-gradient(160deg, rgba(251, 113, 133, 0.16), rgba(251, 113, 133, 0.03)); border-color: rgba(251, 113, 133, 0.22); }
.sidecard__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.sidecard__head svg { color: var(--accent); }
.sidecard p { margin: 8px 0 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.sidecard p strong { color: var(--ink); font-weight: 600; }
.meter { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7c5cff, #c4b5fd); }
.sidecard--warn .meter span { background: linear-gradient(90deg, #f59e0b, #fde68a); }
.sidecard--bad .meter span { background: linear-gradient(90deg, #e11d48, #fda4af); }
.sidecard__link { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--accent); }

.mono-tile { --c: var(--accent-2); flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 700; letter-spacing: -0.02em; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c), #fff 18%), color-mix(in srgb, var(--c) 78%, #000)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -8px var(--c); }
.mono-tile--sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; background: linear-gradient(to bottom, rgba(11, 10, 20, 0.92), rgba(11, 10, 20, 0.7)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.bar__title { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.bar__sub { margin: 3px 0 0; color: var(--ink-3); font-size: 13px; max-width: 72ch; }
.bar__actions { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; background: var(--fill-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip svg { color: var(--ink-3); }
.userchip { display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--fill-2); font-size: 13px; font-weight: 500; }
.userchip__av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: linear-gradient(135deg, #e9e3ff, #a594ff); }
.userchip form { margin: 0; }
.content { padding: 24px 32px 64px; width: 100%; max-width: 1480px; }
.tabbar { display: none; }

.app--bleed .main { height: 100dvh; }
.app--bleed .content { flex: 1; min-height: 0; max-width: none; padding: 18px 24px 22px; display: flex; }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .hide-sm { display: none !important; }
  .bar { padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
  .bar__title { font-size: 21px; }
  .bar__sub { display: none; }
  .content { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }
  .app--bleed .main { height: auto; min-height: 100dvh; }
  .app--bleed .content { padding: 12px 0 calc(84px + env(safe-area-inset-bottom)); display: block; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 30; padding: 6px; border-radius: 20px; background: rgba(22, 20, 36, 0.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--ink-3); padding: 6px 0; border-radius: 14px; }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: #fff; background: linear-gradient(135deg, rgba(150, 125, 255, 0.9), rgba(110, 82, 245, 0.9)); }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; font-size: 13px; font-weight: 600; border-radius: 11px; padding: 0 14px; border: 1px solid var(--line); background: var(--fill-2); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { background: var(--fill); border-color: rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn--ghost { background: transparent; }
.btn--primary { background: linear-gradient(180deg, #cfc4ff, #a594ff); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(165, 148, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--primary:hover { background: linear-gradient(180deg, #ddd5ff, #b4a5ff); }
.btn--glass { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.btn--small { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn--tiny { height: 24px; font-size: 11.5px; padding: 0 9px; border-radius: 8px; margin-left: 6px; }
.btn--block { width: 100%; height: 42px; font-size: 14px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { background: var(--fill); color: var(--ink); }
.iconbtn--box { border: 1px solid var(--line); background: var(--fill-2); width: 32px; height: 32px; }
.roundbtn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); background: var(--fill-2); flex: none; }
.roundbtn:hover { color: #fff; background: var(--fill); }
.is-spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.link:hover { color: #d9d1ff; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg button { border: 1px solid transparent; background: transparent; height: 28px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.6); }
.seg .dot { margin-right: 6px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; flex: none; background: var(--ink-3); }
.dot--polishpal { background: var(--c-polishpal); box-shadow: 0 0 10px var(--c-polishpal); }
.dot--plantalong { background: var(--c-plantalong); box-shadow: 0 0 10px var(--c-plantalong); }
.dot--atelier { background: var(--c-atelier); box-shadow: 0 0 10px var(--c-atelier); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; height: 24px; padding: 0 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill--good { background: var(--good-bg); color: var(--good); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--muted { background: var(--fill); color: var(--ink-2); }

.badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.badge--indexed { background: var(--good-bg); color: var(--good); }
.badge--not_indexed { background: var(--warn-bg); color: var(--warn); }
.badge--error { background: var(--bad-bg); color: var(--bad); }
.badge--unchecked { background: var(--fill); color: var(--ink-3); }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--accent-bg); color: var(--accent); white-space: nowrap; }
.tag--live { background: var(--good-bg); color: var(--good); }
.tag--held { background: var(--warn-bg); color: var(--warn); }
.tag--late { background: var(--bad-bg); color: var(--bad); }
.status { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.status--published { background: var(--good-bg); color: var(--good); }
.status--scheduled { background: var(--accent-bg); color: var(--accent); }
.status--draft { background: var(--fill); color: var(--ink-2); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; height: 22px; padding: 0 7px; border-radius: 7px; white-space: nowrap; vertical-align: middle; }
.delta--good { color: var(--good); background: var(--good-bg); }
.delta--bad { color: var(--bad); background: var(--bad-bg); }
.delta--flat { color: var(--ink-3); background: var(--fill-2); font-weight: 500; }
.empty { color: var(--ink-3); padding: 24px 0; text-align: center; margin: 0; }

/* ---------- cards ---------- */
.card, .panel { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card--pad, .panel { padding: 18px 20px; }
.card__head, .panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__head h2, .panel__head h2 { font-size: 15px; font-weight: 600; }
.tile { background: var(--tile); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tile strong { font-size: 19px; font-weight: 500; letter-spacing: -0.03em; }
.tile small { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 1px; }
.tile__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin-top: 6px; overflow: hidden; }
.tile__bar i { display: block; height: 100%; border-radius: 3px; background: var(--good); }
.tile__bar i.tone--warn { background: var(--warn); }
.tile__bar i.tone--bad { background: var(--bad); }
.tile__bar i.tone--muted { background: var(--ink-3); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ---------- overview ---------- */
.ov-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.sitecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sitecard { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.sitecard::after { content: ""; position: absolute; inset: auto -40px -80px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 65%); pointer-events: none; }
.sitecard__head { display: flex; align-items: center; gap: 12px; }
.sitecard__id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sitecard__id strong { font-size: 15px; font-weight: 600; }
.sitecard__next { position: relative; }
.sitecard__next .pill { position: absolute; top: 0; right: 0; }
.sitecard__when { font-size: 38px; font-weight: 300; letter-spacing: -0.045em; line-height: 1.1; margin-top: 4px; }
.sitecard__when--none { color: var(--bad); font-size: 26px; font-weight: 400; }
.sitecard__title { font-size: 14px; font-weight: 500; margin-top: 6px; color: var(--ink); }
.sitecard__date { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sitecard__traffic { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 12px 10px 14px; border-radius: 14px; background: var(--tile); border: 1px solid var(--line-2); transition: background 0.15s; }
.sitecard__traffic:hover { background: var(--tile-hi); }
.sitecard__traffic--empty { flex-direction: column; align-items: flex-start; gap: 2px; }
.sitecard__tnum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sitecard__tnum > div { display: flex; align-items: center; gap: 8px; }
.sitecard__tnum strong { font-size: 26px; font-weight: 400; letter-spacing: -0.04em; line-height: 1.15; }
.spark { flex: none; overflow: visible; }

.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(160deg, #2a1f63 0%, #1a1340 45%, #120e2b 100%); border: 1px solid rgba(170, 150, 255, 0.25); box-shadow: 0 30px 60px -30px rgba(124, 92, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.hero__glow { position: absolute; inset: auto -30% -40% -30%; height: 75%; background: radial-gradient(closest-side, rgba(150, 120, 255, 0.55), transparent); filter: blur(10px); pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(1.5px 1.5px at 85% 45%, rgba(255, 255, 255, 0.45), transparent), radial-gradient(1px 1px at 40% 62%, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1px 1px at 92% 78%, rgba(255, 255, 255, 0.35), transparent); }
.hero > *:not(.hero__glow) { position: relative; }
.hero__top { display: flex; align-items: center; gap: 10px; }
.hero__brand { font-weight: 600; font-size: 14px; }
.hero__tag { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: rgba(200, 185, 255, 0.2); color: #e4dcff; }
.hero__title { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.hero__big { font-size: 68px; font-weight: 300; letter-spacing: -0.06em; line-height: 1; }
.hero__big span { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-left: 8px; color: #cfc6f5; }
.hero__text { margin: 0; color: #c9c2ea; font-size: 13.5px; line-height: 1.55; }
.hero__text strong { color: #fff; font-weight: 600; }
.hero__rows { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(10, 6, 30, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); }
.hero__row { display: grid; grid-template-columns: auto 1fr 90px auto; align-items: center; gap: 8px; font-size: 12.5px; color: #d8d2f5; }
.hero__row .dot { margin: 0; }
.hero__row strong { font-weight: 600; min-width: 34px; text-align: right; }
.hero__meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hero__meter i { display: block; height: 100%; background: linear-gradient(90deg, #8b6cff, #d6ccff); border-radius: 4px; }
.hero__actions { display: grid; gap: 10px; margin-top: auto; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.ov-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
@media (max-width: 1280px) { .ov-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda__day { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 14px 2px 6px; letter-spacing: 0.02em; }
.agenda__day:first-child { padding-top: 0; }
.agenda__item { display: grid; grid-template-columns: 52px 3px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px 10px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line-2); }
.agenda__item:hover { background: var(--tile-hi); }
.agenda__bar { align-self: stretch; background: var(--c); border-radius: 3px; box-shadow: 0 0 10px var(--c); }
.agenda__main { display: flex; flex-direction: column; min-width: 0; }
.agenda__title { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda__site { font-size: 12px; color: var(--ink-3); }
.agenda__time { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.agenda__item--late .agenda__time { color: var(--bad); font-weight: 600; }
.more { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 8px 0 0; color: var(--accent); font-size: 12.5px; font-weight: 600; }

.attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line-2); }
.attn__icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }
.attn__item--critical { border-color: rgba(251, 113, 133, 0.3); background: linear-gradient(90deg, rgba(251, 113, 133, 0.1), var(--tile)); }
.attn__item--critical .attn__icon { background: var(--bad-bg); color: var(--bad); }
.attn__item--warning .attn__icon { background: var(--warn-bg); color: var(--warn); }
.attn__item strong { display: block; font-size: 13.5px; font-weight: 600; }
.attn__item p { margin: 2px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.allclear { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--good-bg); color: var(--good); }
.allclear p { margin: 0; color: var(--ink-2); font-size: 12.5px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: baseline; gap: 4px; padding: 9px 2px; border-top: 1px solid var(--line-2); }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.rows li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.rows li a:hover { color: var(--accent); }

/* ---------- tables ---------- */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 34px; font-weight: 300; letter-spacing: -0.045em; line-height: 1.15; }
.card--table { padding: 6px; }
.card--table .filters { padding: 12px 12px 0; }
.card--table .count { padding: 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-3); min-width: 200px; flex: 1; max-width: 320px; }
.search:focus-within { border-color: rgba(180, 165, 255, 0.5); }
.search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: 13.5px; color: var(--ink); width: 100%; }
.search input::placeholder { color: var(--ink-3); }
.count { margin: 6px 0 8px; }
.tablewrap { overflow-x: auto; border-radius: 14px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #15131f; z-index: 1; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.table tr[hidden] { display: none; }
.title { min-width: 280px; }
.title__row { display: flex; gap: 12px; align-items: center; }
.title a, .title__text { font-weight: 500; }
.title a:hover { color: var(--accent); }
.table .google { min-width: 170px; }
.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }
.note-inline { font-size: 12px; color: var(--warn); margin-top: 2px; }

/* ---------- indexing ---------- */
.icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 20px; }
.withmono { display: flex; align-items: center; gap: 10px; }
.icard__body { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 14px; }
.icard__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.icard__tiles .label { display: flex; align-items: center; gap: 6px; }
.donut { position: relative; width: 132px; height: 132px; }
.donut svg { display: block; }
.arc--track { stroke: rgba(255, 255, 255, 0.06); }
.arc--indexed { stroke: var(--good); filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5)); }
.arc--not_indexed { stroke: var(--warn); }
.arc--error { stroke: var(--bad); }
.arc--unchecked { stroke: rgba(255, 255, 255, 0.16); }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.donut__c strong { font-size: 26px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.donut__c strong small { font-size: 14px; color: var(--ink-3); }
.donut__c span { font-size: 10.5px; color: var(--ink-3); max-width: 80px; line-height: 1.3; margin-top: 4px; }
.k { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.k--indexed { background: var(--good); }
.k--not_indexed { background: var(--warn); }
.k--error { background: var(--bad); }
.k--unchecked { background: rgba(255, 255, 255, 0.25); }
.setup { font-size: 13px; background: var(--warn-bg); border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 12px; padding: 12px 14px; color: var(--ink-2); }
.setup strong { color: var(--ink); }
.setup summary { cursor: pointer; margin-top: 6px; font-weight: 600; color: var(--accent); }
.setup ol { padding-left: 18px; margin: 8px 0 0; }
.setup li { margin-bottom: 6px; }
.setup a { color: var(--accent); }
@media (max-width: 480px) { .icard__body { grid-template-columns: 1fr; justify-items: center; } .icard__tiles { width: 100%; } }

/* ---------- login ---------- */
.loginwrap { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login { width: min(380px, 100%); display: grid; gap: 14px; padding: 32px 28px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.6); backdrop-filter: blur(16px); }
.login__icon { justify-self: center; filter: drop-shadow(0 10px 24px rgba(124, 92, 255, 0.6)); }
.login h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; text-align: center; }
.login > p { margin: -8px 0 6px; text-align: center; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.field input { font: inherit; font-size: 14.5px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); outline: 0; }
.field input:focus { border-color: rgba(180, 165, 255, 0.6); box-shadow: 0 0 0 4px rgba(140, 115, 255, 0.15); }
.login__err { background: var(--bad-bg); color: var(--bad); padding: 9px 12px; border-radius: 10px; margin: 0; font-size: 13px; }

.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--pop); color: var(--ink); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-pop); padding: 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 500; z-index: 60; max-width: calc(100vw - 32px); }
@media (max-width: 960px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

@media (max-width: 640px) {
  .sitecard__when { font-size: 32px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__big { font-size: 56px; }
  .search { max-width: none; flex-basis: 100%; }
  .filters .seg, .tfilters .seg { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .sec-head h2 { font-size: 19px; }
}

/* =================================================================
   Calendar
   ================================================================= */
.cal { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.cal__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; flex-wrap: wrap; }
.cal__nav { display: flex; align-items: center; gap: 6px; }
.cal__title { font-size: 22px; font-weight: 300; letter-spacing: -0.03em; margin-left: 12px; white-space: nowrap; }
.cal__title strong { font-weight: 600; }
.cal__filters { display: flex; align-items: center; gap: 4px; padding: 0 14px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cal__sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.cal__count { margin-left: auto; padding-right: 4px; }
.calchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; height: 30px; padding: 0 10px; border-radius: 10px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.calchip:hover { background: var(--fill-2); color: var(--ink); }
.calchip__box { width: 15px; height: 15px; border-radius: 5px; border: 1.6px solid var(--c, var(--ink-3)); position: relative; flex: none; }
.calchip[aria-pressed="true"] .calchip__box { background: var(--c, var(--ink-3)); box-shadow: 0 0 10px color-mix(in srgb, var(--c, #888) 60%, transparent); }
.calchip[aria-pressed="true"] .calchip__box::after { content: ""; position: absolute; left: 3.6px; top: 0.6px; width: 3.5px; height: 7.5px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.calchip[aria-pressed="false"] { color: var(--ink-3); }
.cal__body { flex: 1; min-height: 0; overflow: auto; position: relative; }

.ev { --tint: color-mix(in srgb, var(--c) 22%, transparent); --text: color-mix(in srgb, var(--c) 45%, #fff); border: 0; cursor: pointer; text-align: left; font: inherit; }

.month { height: 100%; display: flex; flex-direction: column; min-height: 580px; }
.m-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.m-wd { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; letter-spacing: 0.03em; text-transform: uppercase; }
.m-wd--we { color: rgba(127, 124, 151, 0.7); }
.m-wd .narrow { display: none; }
.m-grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--weeks), minmax(108px, 1fr)); }
.m-cell { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; outline: 0; transition: background 0.15s; }
.m-cell:hover { background: rgba(255, 255, 255, 0.015); }
.m-cell:nth-child(7n) { border-right: 0; }
.m-cell--we { background: var(--we); }
.m-num { display: flex; padding: 2px 2px 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.m-num span { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 9px; display: inline-grid; place-items: center; }
.m-cell--out .m-num { color: rgba(127, 124, 151, 0.55); }
.m-cell--out .m-evs { opacity: 0.5; }
.m-cell--today .m-num span { background: var(--today); color: #fff; font-weight: 700; box-shadow: 0 6px 16px -6px rgba(124, 92, 255, 0.9); }
.m-cell--sel:not(.m-cell--today) .m-num span { background: var(--fill); color: var(--ink); }
.m-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-ev { display: flex; align-items: center; gap: 6px; padding: 2px 7px; border-radius: 7px; font-size: 12px; line-height: 18px; min-width: 0; background: transparent; color: var(--ink-2); }
.m-ev i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 8px var(--c); }
.m-ev__t { color: var(--ink-3); font-size: 11px; flex: none; font-variant-numeric: tabular-nums; }
.m-ev__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.m-ev.ev--scheduled { background: var(--tint); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.m-ev.ev--scheduled .m-ev__t { color: var(--text); opacity: 0.7; font-weight: 500; }
.m-ev.ev--published i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.m-ev.ev--held, .m-ev.ev--late { box-shadow: inset 0 0 0 1px var(--bad); }
.m-ev:hover { filter: brightness(1.15); }
.m-more { border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-align: left; padding: 1px 7px; cursor: pointer; border-radius: 6px; }
.m-more:hover { background: var(--fill); color: var(--ink); }
.m-dots { display: none; }
.m-daylist { display: none; }

.week { height: 100%; display: flex; flex-direction: column; }
.w-head { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); flex: none; }
.w-hd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; font-size: 11px; color: var(--ink-3); cursor: pointer; border-left: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.w-hd__num { font-size: 18px; font-weight: 400; color: var(--ink); min-width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; text-transform: none; letter-spacing: -0.02em; }
.w-hd--today .w-hd__num { background: var(--today); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(124, 92, 255, 0.9); }
.w-hd--today .w-hd__wd { color: var(--accent); }
.w-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.w-grid { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); position: relative; height: calc(var(--hour) * 24); }
.w-hours { position: relative; }
.w-hour { height: var(--hour); position: relative; }
.w-hour span { position: absolute; top: -7px; right: 10px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.w-col { position: relative; border-left: 1px solid var(--line-2); background-image: linear-gradient(to bottom, var(--line-2) 1px, transparent 1px); background-size: 100% var(--hour); }
.w-col--we { background-color: var(--we); }
.w-col--today { background-color: rgba(124, 92, 255, 0.04); }
.w-ev { position: absolute; height: calc(var(--hour) * 0.66); min-height: 30px; border-radius: 8px; padding: 4px 7px 4px 9px; overflow: hidden; display: flex; flex-direction: column; background: var(--tint); color: var(--text); box-shadow: inset 3px 0 0 var(--c), 0 8px 20px -12px var(--c); z-index: 1; }
.w-ev__n { font-size: 12px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.w-ev__t { font-size: 11px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ev.ev--published { background: rgba(255, 255, 255, 0.04); color: var(--ink-2); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 0 1px var(--line); }
.w-ev.ev--held, .w-ev.ev--late { box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px var(--bad); }
.w-ev:hover { z-index: 3; filter: brightness(1.15); }
.w-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--bad); z-index: 4; pointer-events: none; box-shadow: 0 0 10px var(--bad); }
.w-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }

.list { padding: 8px 18px 26px; max-width: 900px; }
.l-day { padding-top: 12px; scroll-margin-top: 8px; }
.l-day__head { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 6px 2px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.l-day__num { font-size: 24px; font-weight: 300; min-width: 32px; letter-spacing: -0.03em; color: var(--ink); }
.l-day--today .l-day__num { color: var(--accent); font-weight: 500; }
.l-day__today { font-size: 11px; font-weight: 700; color: #fff; background: var(--today); padding: 2px 8px; border-radius: 7px; }
.l-day--past { opacity: 0.55; }
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.l-ev { width: 100%; display: grid; grid-template-columns: 52px 3px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px 10px 4px; border-radius: 12px; background: transparent; color: var(--ink); }
.l-ev:hover { background: var(--fill-2); }
.l-ev__time { font-size: 12.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.l-ev__bar { align-self: stretch; border-radius: 3px; background: var(--c); min-height: 30px; box-shadow: 0 0 10px var(--c); }
.ev--published .l-ev__bar { background: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: none; }
.l-ev__main { display: flex; flex-direction: column; min-width: 0; }
.l-ev__title { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-ev__site { font-size: 12px; color: var(--ink-3); }
.dl-head { font-size: 15px; font-weight: 600; padding: 16px 16px 8px; }
.dl-empty { color: var(--ink-3); padding: 4px 16px 18px; margin: 0; }
.cal-empty { text-align: center; padding: 70px 16px; color: var(--ink-2); }
.cal-empty p { margin: 6px 0 0; color: var(--ink-3); }

.pop { position: absolute; z-index: 50; width: 320px; background: var(--pop); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 16px; animation: popin 0.16s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
.pop__x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 9px; border: 0; background: var(--fill); color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.pop__head { display: flex; gap: 12px; padding-right: 30px; }
.pop__bar { width: 3px; border-radius: 3px; background: var(--c); flex: none; box-shadow: 0 0 10px var(--c); }
.pop__head h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.pop__site { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pop__dl { margin: 14px 0 12px; display: grid; gap: 8px; font-size: 13px; padding: 12px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line-2); }
.pop__dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.pop__dl dt { color: var(--ink-3); font-size: 12px; padding-top: 1px; }
.pop__dl dd { margin: 0; color: var(--ink-2); }
.pop__dl dd strong { color: var(--ink); }
.pop__actions { display: flex; gap: 8px; }
.pop__day { font-size: 15px; font-weight: 600; padding: 0 30px 10px 4px; }
.dl--pop { max-height: 340px; overflow-y: auto; }
.pop--sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: sheetin 0.2s ease-out; z-index: 70; }
@keyframes sheetin { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 720px) {
  .cal { border-radius: 0; border-left: 0; border-right: 0; overflow: visible; }
  .cal__toolbar { padding: 10px 12px 8px; }
  .cal__title { font-size: 19px; margin-left: 6px; }
  .cal__filters { padding: 0 8px 10px; gap: 2px; }
  .cal__count { width: 100%; margin: 4px 8px 0; }
  .cal__body { overflow: visible; }
  .month { min-height: 0; }
  .m-wd { text-align: center; padding: 8px 0; }
  .m-wd .wide { display: none; }
  .m-wd .narrow { display: inline; }
  .m-grid { grid-template-rows: repeat(var(--weeks), 56px); }
  .m-cell { border-right: 0; padding: 4px 0; align-items: center; cursor: pointer; }
  .m-num { justify-content: center; padding: 0; font-size: 15px; }
  .m-num span { min-width: 32px; height: 32px; border-radius: 11px; }
  .m-cell--sel:not(.m-cell--today) .m-num span { background: rgba(255, 255, 255, 0.92); color: #120e24; }
  .m-evs { display: none; }
  .m-dots { display: flex; gap: 3px; justify-content: center; height: 6px; }
  .m-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
  .m-dots i.is-live { background: transparent; box-shadow: inset 0 0 0 1.2px var(--c); }
  .m-daylist { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-bottom: 10px; }
  .m-daylist .dl { padding: 0 8px; }
  .w-head, .w-grid { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
  .w-hd { gap: 0; font-size: 9.5px; padding: 6px 0; }
  .w-hd__num { font-size: 14px; min-width: 28px; height: 28px; border-radius: 9px; }
  .w-scroll { max-height: calc(100dvh - 300px); }
  .w-ev { padding: 2px 3px 2px 5px; min-height: 26px; }
  .w-ev__t { display: none; }
  .w-ev__n { font-size: 10.5px; -webkit-line-clamp: 2; }
  .w-hour span { right: 4px; font-size: 9px; }
  .list { padding: 4px 12px 20px; }
}

/* =================================================================
   Traffic
   ================================================================= */
.tfilters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 18px; }
.tfilters__sites { display: flex; gap: 2px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 20px; }
.kpi { position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 65%); pointer-events: none; }
.kpi header { display: flex; align-items: center; font-weight: 600; font-size: 14.5px; }
.kpi__range { margin-left: auto; font-weight: 500; }
.kpi__hero { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 14px; position: relative; z-index: 1; }
.kpi__big { font-size: 46px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.kpi__unit { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.kpi__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.kpi__grid > div { background: var(--tile); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; }
.kpi__grid dt { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.kpi__grid dd { margin: 2px 0 6px; font-size: 19px; font-weight: 400; letter-spacing: -0.03em; }
.kpi__empty { margin: 14px 0 2px; }

.chartpanel { padding-bottom: 16px; }
.chartpanel .panel__head { flex-wrap: wrap; }
.chartpanel .link { border: 0; background: none; cursor: pointer; padding: 4px 0; }
.tlegend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); min-height: 4px; }
.tlegend__item { display: inline-flex; align-items: center; gap: 7px; }
.tlegend__item i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.tchart { position: relative; width: 100%; min-height: 300px; }
.tchart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.tchart .g { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.tchart .ax { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.tchart .dl { fill: var(--ink-2); font-size: 12px; font-weight: 600; font-family: var(--font); }
.tchart .ring { stroke: #15131f; stroke-width: 2; }
.tchart .xh { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.tchart .hit { cursor: crosshair; }
.tchart__empty { display: grid; place-items: center; height: 300px; color: var(--ink-3); background: var(--tile); border-radius: 14px; }
.ttip { position: absolute; top: 8px; pointer-events: none; background: var(--pop); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-pop); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; min-width: 180px; z-index: 5; }
.ttip__d { font-weight: 600; margin-bottom: 6px; }
.ttip__r { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; color: var(--ink-2); padding: 1px 0; }
.ttip__r i { width: 8px; height: 8px; border-radius: 50%; }
.ttip__r strong { color: var(--ink); font-weight: 600; }
.ttable { margin-top: 12px; max-height: 360px; overflow: auto; }
.tnote { margin: 12px 0 0; }
.tsite-note { margin: 6px 0 0; display: flex; align-items: center; flex-wrap: wrap; color: var(--ink-2); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.cols--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1500px) { .cols--even { grid-template-columns: minmax(0, 1fr); } }
.panel--table { padding-bottom: 14px; }
.filters--tight { margin: 0 0 4px; }
.tablewrap--inner { border-radius: 12px; border: 1px solid var(--line-2); max-height: 540px; overflow: auto; }
.table--compact td, .table--compact th { padding: 9px 12px; }
.table--compact .title { min-width: 220px; }
.setup-panel ol { padding-left: 18px; }
@media (max-width: 640px) {
  .kpi__big { font-size: 38px; }
  .sitecard__traffic .spark { width: 100px; }
}
.sitebar { width: 3px; align-self: stretch; min-height: 28px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.good-text { color: var(--good); }
.bad-text { color: var(--bad); }

/* seven nav items: the phone tab bar scrolls sideways */
@media (max-width: 960px) {
  .tabbar { display: flex; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tab { flex: 1 0 64px; }
}

/* =================================================================
   Keywords
   ================================================================= */
.kstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1200px) { .kstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kdist { grid-column: 1 / -1; } }
@media (max-width: 640px) { .kstats { grid-template-columns: minmax(0, 1fr); } }
.kdist__bar { display: flex; gap: 3px; height: 12px; margin: 12px 0 10px; border-radius: 6px; overflow: hidden; }
.kdist__seg { display: block; min-width: 4px; border-radius: 3px; }
.kdist__seg--0 { background: #ddd6fe; }
.kdist__seg--1 { background: #a78bfa; }
.kdist__seg--2 { background: #7c5cff; }
.kdist__seg--3 { background: #5b3fd6; }
.kdist__seg--4 { background: #3b2a8a; }
.kdist__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); }
.kdist__legend span { display: inline-flex; align-items: center; gap: 6px; }
.kdist__legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.kdist__legend strong { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 0; line-height: 1.4; }
.ktabs { justify-content: space-between; }
.sortbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.sortbtn:hover, .sortbtn.is-active { color: var(--ink); }
.poschip { display: inline-block; min-width: 46px; text-align: center; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.poschip--top3 { background: rgba(196, 181, 253, 0.2); color: #ddd6fe; }
.poschip--top10 { background: var(--accent-bg); color: var(--accent); }
.poschip--top20 { background: rgba(255, 255, 255, 0.06); color: var(--ink-2); }
.poschip--low { background: rgba(255, 255, 255, 0.035); color: var(--ink-3); }
.poschip--none { background: transparent; color: var(--ink-3); font-weight: 500; border: 1px dashed var(--line); }
.kwchip { display: inline-block; font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 8px; background: var(--fill); border: 1px solid var(--line-2); }
.kpagecell { max-width: 340px; }
.kpage { font-weight: 500; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.kpage:hover { color: var(--accent); }
.kmore { display: flex; justify-content: center; padding: 10px 0 6px; }

/* =================================================================
   Link manager
   ================================================================= */
.statrow--5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat strong .dim { font-size: 20px; }
.lcrawl { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.lstatus { white-space: nowrap; }
.lstatus .pill + .pill { margin-left: 4px; }
.ldetails { margin-top: 6px; }
.ldetails summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.ldetails summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: var(--accent-bg); font-size: 12px; }
.ldetails[open] summary::before { content: "−"; }
.ldetails summary::-webkit-details-marker { display: none; }
.sugg { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--tile); border: 1px solid var(--line-2); }
.sugg ul { margin: 4px 0 0; padding-left: 16px; }
.sugg li { margin: 3px 0; font-size: 13px; }
.sugg a { color: var(--ink); font-weight: 500; }
.sugg a:hover { color: var(--accent); }
.lnote { padding: 8px 14px 6px; margin: 0; }
.lempty { max-width: 640px; }
.lempty p { margin: 8px 0 14px; }

/* ---------- apply suggestions ---------- */
.sugg__head { display: flex; align-items: center; justify-content: space-between; }
.sugg ul { list-style: none; padding-left: 0; }
.sugg__item { display: flex; align-items: flex-start; gap: 10px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; }
.sugg__item:hover { background: var(--fill-2); }
.sugg__item span { min-width: 0; }
.sugg__cb { appearance: none; -webkit-appearance: none; flex: none; width: 17px; height: 17px; margin: 2px 0 0; border-radius: 5px; border: 1.6px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.03); display: grid; place-items: center; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.sugg__cb:checked { background: linear-gradient(135deg, #b4a5ff, #7c5cff); border-color: transparent; box-shadow: 0 0 10px rgba(124, 92, 255, 0.6); }
.sugg__cb:checked::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.sugg__cb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ldetails__bar { display: flex; justify-content: flex-end; margin-top: 6px; }
.ldetails__bar .link, .lcrawl .link { border: 0; background: none; cursor: pointer; padding: 0; }
.applybar { position: fixed; z-index: 40; left: calc(var(--side-w) + (100vw - var(--side-w)) / 2); transform: translateX(-50%); bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(24, 21, 44, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(170, 150, 255, 0.3); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 10px 40px -20px rgba(124, 92, 255, 0.9); }
.applybar[hidden] { display: none; }
.applybar__count { font-size: 13px; color: var(--ink-2); margin-right: 6px; white-space: nowrap; }
.applybar__count strong { color: #fff; font-size: 15px; }
body.has-applybar .content { padding-bottom: 110px; }
@media (max-width: 960px) {
  .applybar { left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: calc(100vw - 20px); flex-wrap: wrap; justify-content: center; }
}
.promptdlg { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #14121f; color: var(--ink); box-shadow: var(--shadow-pop); }
.promptdlg[open] { display: flex; flex-direction: column; }
.promptdlg::backdrop { background: rgba(5, 4, 12, 0.65); backdrop-filter: blur(4px); }
.promptdlg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.promptdlg__head h2 { font-size: 17px; }
.promptdlg__head p { margin: 3px 0 0; }
.promptdlg__head .iconbtn { font-size: 20px; }
#prompttext { flex: 1; min-height: 360px; margin: 14px 20px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--ink-2); font: 12.5px/1.6 var(--mono); resize: vertical; outline: 0; }
#prompttext:focus { border-color: rgba(180, 165, 255, 0.5); }
.promptdlg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 18px; flex-wrap: wrap; }
.promptdlg__actions { display: flex; gap: 8px; }
