/* WEBPilot — single stylesheet for the public site, dashboard and admin. */

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

:root {
  --navy: #0B1220;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #DBEAFE;
  --accent-text: #1D4ED8;
  --positive: #22C55E;
  --positive-soft: #DCFCE7;
  --positive-text: #15803D;
  --warn-soft: #FEF3C7;
  --warn-text: #92400E;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #111827;
  --text-2: #374151;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-soft: #172554;
  --accent-text: #93C5FD;
  --positive-soft: #052E16;
  --positive-text: #4ADE80;
  --warn-soft: #422006;
  --warn-text: #FCD34D;
  --danger-soft: #450A0A;
  --bg: #0B1220;
  --surface: #111A2E;
  --surface-2: #0F172A;
  --text: #E5E7EB;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --border: #1E293B;
  --border-strong: #334155;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* Fallback when JavaScript is disabled: follow the operating system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --accent: #3B82F6; --accent-hover: #60A5FA; --accent-soft: #172554; --accent-text: #93C5FD;
    --positive-soft: #052E16; --positive-text: #4ADE80; --warn-soft: #422006; --warn-text: #FCD34D;
    --danger-soft: #450A0A; --bg: #0B1220; --surface: #111A2E; --surface-2: #0F172A; --text: #E5E7EB;
    --text-2: #CBD5E1; --muted: #94A3B8; --border: #1E293B; --border-strong: #334155; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.sprite { display: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600;
  font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap; background: transparent; color: var(--text);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { color: #0B1220; }
.btn-outline { border-color: var(--border-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-available { background: var(--positive-soft); color: var(--positive-text); }
.badge-planned { background: var(--warn-soft); color: var(--warn-text); }
.badge-neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-neutral::before, .badge-plain::before { display: none; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--accent); font-weight: 750; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .94rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle { display: none; }

.theme-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.theme-switch button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.theme-switch .icon { width: 16px; height: 16px; }
.no-js .theme-switch { display: none; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: .85rem; border: 1px solid var(--border); background: var(--surface); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--border-strong); color: var(--text); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60; }
.lang-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; }
.lang-menu li a:hover { background: var(--surface-2); }
.lang-menu li a[aria-current="true"] { color: var(--accent-text); font-weight: 650; }
.lang-menu li a[aria-current="true"]::after { content: "✓"; }

@media (max-width: 1020px) {
  .main-nav, .header-actions .hide-mobile { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 10px; }
}
.mobile-panel { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 12px 0 20px; }
.mobile-panel.is-open { display: block; }
.mobile-panel nav a { display: block; padding: 12px 4px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-panel nav a[aria-current="page"] { color: var(--accent-text); }
.mobile-panel .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mobile-panel .mobile-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mobile-panel .mobile-langs a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: .88rem; }
.mobile-panel .mobile-langs a[aria-current="true"] { border-color: var(--accent); color: var(--accent-text); }
@media (min-width: 1021px) { .mobile-panel { display: none !important; } }
@media (max-width: 420px) { .lang-menu summary .lang-code { display: none; } }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
:root[data-theme="dark"] .section-alt { background: #0D1526; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--positive-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.x-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.x-list li::before { content: "!"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-weight: 800; font-size: .85rem; }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 48px 0 64px; } }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

.status-strip { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.status-strip h2 { font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.status-strip p { margin: 0; color: var(--text-2); font-size: .97rem; }

/* Dashboard preview illustration */
.preview { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem; }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.preview-bar strong { margin-left: 8px; font-size: .85rem; }
.preview-bar span { margin-left: auto; color: var(--muted); }
.preview-body { padding: 16px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.kpi span { display: block; color: var(--muted); font-size: .72rem; }
.kpi strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: .72rem; font-weight: 650; color: var(--positive-text); }
.kpi .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); margin-right: 5px; box-shadow: 0 0 0 3px var(--positive-soft); }
.preview-chart { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 6px; }
.preview-chart .label { color: var(--muted); font-size: .72rem; margin-bottom: 4px; display: flex; justify-content: space-between; }
.preview-chart svg { width: 100%; height: 120px; }
.chart-area { fill: var(--accent); opacity: .12; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-marker { fill: var(--surface); stroke: var(--positive); stroke-width: 2.2; }
.chart-marker-line { stroke: var(--positive); stroke-width: 1.2; stroke-dasharray: 3 3; }
.preview-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.preview-box h4 { font-size: .74rem; color: var(--muted); font-weight: 600; margin: 0 0 8px; letter-spacing: 0; }
.src-row { display: grid; grid-template-columns: 62px 1fr 30px; gap: 8px; align-items: center; margin-bottom: 6px; font-size: .74rem; }
.src-row b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.src-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.src-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.w-42 { width: 42%; } .w-23 { width: 23%; } .w-17 { width: 17%; } .w-11 { width: 11%; } .w-7 { width: 7%; }
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .74rem; }
.tl li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; }
.tl time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl li span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); margin-right: 6px; vertical-align: 1px; }
.preview-caption { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; font-size: .82rem; color: var(--muted); }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, 1fr); } .preview-cols { grid-template-columns: 1fr; } }

/* Problem / consequence */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.label-pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.label-problem { background: var(--danger-soft); color: var(--danger); }
.label-consequence { background: var(--warn-soft); color: var(--warn-text); }
.label-solution { background: var(--positive-soft); color: var(--positive-text); }
:root[data-theme="dark"] .label-problem { color: #FCA5A5; }

.source-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.source-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.source-item h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.source-item p { color: var(--muted); font-size: .9rem; margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot-1 { background: #2563EB; } .dot-2 { background: #F59E0B; } .dot-3 { background: #64748B; } .dot-4 { background: #22C55E; } .dot-5 { background: #A855F7; }
@media (max-width: 1020px) { .source-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .source-grid { grid-template-columns: 1fr; } }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 88px; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row h2 { margin-bottom: 14px; }
.feature-row p { color: var(--text-2); }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 28px; } .feature-row.reverse > :first-child { order: 0; } .feature-row + .feature-row { margin-top: 64px; } }

.mini-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.site-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.site-tile + .site-tile { margin-top: 10px; }
.site-tile .fav { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .85rem; }
.fav-a { background: #2563EB; } .fav-b { background: #0EA5E9; } .fav-c { background: #22C55E; }
.site-tile div { flex: 1; min-width: 0; }
.site-tile strong { display: block; font-size: .92rem; }
.site-tile small { color: var(--muted); }
.live-number { font-size: 3rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.live-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.live-row:last-child { border-bottom: 0; }
.live-row span:last-child { font-weight: 650; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { display: block; font-size: .8rem; color: var(--muted); }
.timeline strong { font-weight: 600; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.tag-grid li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .88rem; color: var(--text-2); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--border-strong); padding-left: 12px; }

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
:root[data-theme="dark"] .steps > li::before { background: var(--accent); }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.steps-v { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-v > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.steps-v > li:last-child { border-bottom: 0; }
.steps-v > li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 750; font-size: 1.2rem; }
:root[data-theme="dark"] .steps-v > li::before { background: var(--accent); }
.steps-v h2 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.steps-v p { color: var(--text-2); margin: 0; }
@media (max-width: 560px) { .steps-v > li { grid-template-columns: 1fr; gap: 12px; } }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 28px; }
.billing-toggle button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.billing-toggle small { color: var(--positive-text); font-weight: 650; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; position: relative; }
.plan.highlight { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .plan-flag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .plan-desc { color: var(--muted); font-size: .9rem; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 2px; }
.price strong { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .92rem; }
.price-sub { font-size: .82rem; color: var(--muted); min-height: 1.4em; margin-bottom: 18px; }
.plan .check-list { font-size: .9rem; margin-bottom: 22px; }
.plan .btn { margin-top: auto; }
.plan-limits { list-style: none; padding: 14px 0; margin: 0 0 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; gap: 6px; font-size: .9rem; font-weight: 550; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn-text) 25%, transparent); margin-bottom: 32px; }
.notice .icon { color: var(--warn-text); margin-top: 2px; }
.notice strong { display: block; margin-bottom: 2px; }
.notice p { margin: 0; font-size: .95rem; color: var(--text-2); }
.notice-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.notice-info .icon { color: var(--accent-text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--positive-text); font-weight: 700; }
.no { color: var(--muted); }
@media (max-width: 720px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; font-size: .85rem; }
  table.stack td.td-main { display: block; text-align: left; font-size: 1rem; }
  table.stack td.td-main::before { display: none; }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 620; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; margin: 0; }

.cta-band { background: var(--navy); color: #E2E8F0; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .45), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #CBD5E1; }
.cta-band .btn { position: relative; z-index: 1; }
:root[data-theme="dark"] .cta-band { background: #111A2E; border: 1px solid var(--border); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Page header */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.page-head h1 { max-width: 860px; }
.page-head .lead { max-width: 760px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-text); text-decoration: underline; }

.feature-card { display: flex; flex-direction: column; }
.feature-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.feature-card ul { margin-top: 6px; font-size: .93rem; color: var(--text-2); }
.feature-card .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .92rem; text-decoration: none; }

.pcs { display: grid; gap: 20px; }
.pcs .card { border-left-width: 4px; }
.pcs .pcs-problem { border-left-color: var(--danger); }
.pcs .pcs-consequence { border-left-color: #F59E0B; }
.pcs .pcs-solution { border-left-color: var(--positive); }
.pcs h2 { font-size: 1.35rem; }

/* Articles */
.articles-layout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .articles-layout { grid-template-columns: 1fr; } .articles-layout aside { order: -1; } }
.search-form { display: flex; gap: 8px; margin-bottom: 24px; }
.search-form input { flex: 1; }
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .93rem; }
.cat-list a:hover { background: var(--surface-2); color: var(--text); }
.cat-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.cat-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .cat-list { display: flex; flex-wrap: wrap; gap: 8px; } .cat-list a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; } }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .article-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid, .article-grid.three { grid-template-columns: 1fr; } }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--surface-2); }
.article-card .ac-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.article-card .ac-cat { font-size: .78rem; font-weight: 650; color: var(--accent-text); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.article-card h2, .article-card h3 { font-size: 1.12rem; margin: 8px 0; letter-spacing: -0.01em; }
.article-card h2 a, .article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--accent-text); }
.article-card p { color: var(--muted); font-size: .93rem; }
.article-card .ac-meta { margin-top: auto; font-size: .8rem; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--surface); }
.pagination a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a:hover { border-color: var(--accent); }

.article-head { padding: 40px 0 28px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 860px; }
.article-head .lead { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); margin-top: 18px; }
.article-cover { border-radius: 18px; border: 1px solid var(--border); width: 100%; aspect-ratio: 16 / 6; object-fit: cover; background: var(--surface-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 40px 0 72px; align-items: start; }
.article-layout aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-layout aside { position: static; order: -1; } }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }

.prose { font-size: 1.07rem; line-height: 1.75; color: var(--text-2); max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; color: var(--text); }
.prose h3 { font-size: 1.22rem; margin: 1.6em 0 .5em; color: var(--text); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); }
.category-intro { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--border); }
.category-intro > h2:first-child { margin-top: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text); }
.prose blockquote p:last-child { margin: 0; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .88em; overflow-wrap: anywhere; }
.article-layout > * { min-width: 0; }
.prose pre { background: var(--navy); color: #E2E8F0; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table { display: block; overflow-x: auto; margin: 1.5em 0; font-size: .95rem; border: 1px solid var(--border); border-radius: 10px; }
.prose table th, .prose table td { white-space: normal; min-width: 120px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose > :first-child { margin-top: 0; }
.legal .prose { max-width: 760px; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 22px 18px; border-radius: 14px; } }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
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); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; margin-top: 6px; }
:root[data-theme="dark"] .field-error { color: #FCA5A5; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-foot { margin-top: 18px; font-size: .93rem; color: var(--muted); text-align: center; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
:root[data-theme="dark"] .alert-error { color: #FCA5A5; }
.alert-success { background: var(--positive-soft); color: var(--positive-text); border: 1px solid color-mix(in srgb, var(--positive) 30%, transparent); }
.alert-info { background: var(--accent-soft); color: var(--accent-text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.auth-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding: 48px 0 80px; }
.auth-wrap.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }
.auth-aside { padding: 28px; border-radius: 18px; background: var(--navy); color: #CBD5E1; }
.auth-aside h2 { color: #fff; font-size: 1.2rem; }
.auth-aside .check-list li::before { background-color: rgba(34, 197, 94, .15); }
:root[data-theme="dark"] .auth-aside { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
:root[data-theme="dark"] .auth-aside h2 { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 0; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; font-size: .93rem; }
.footer-grid a:hover { color: var(--accent-text); }
.footer-grid .tagline { color: var(--muted); font-size: .93rem; max-width: 300px; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--muted); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a[aria-current="true"] { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.notfound { text-align: center; padding: 96px 0; }
.notfound .code { font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ===== Application (dashboard / admin) ===== */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.app-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; }
.app-side .logo { padding: 4px 10px 18px; }
.app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .93rem; }
.app-nav a:hover { background: var(--surface-2); color: var(--text); }
.app-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.app-nav .soon { margin-left: auto; white-space: nowrap; flex-shrink: 0;font-size: .68rem; font-weight: 650; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 999px; }
.app-nav-sep { height: 1px; background: var(--border); margin: 10px 6px; }
.app-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); font-size: .85rem; }
.app-side-foot .who { padding: 4px 10px 10px; color: var(--muted); overflow-wrap: anywhere; }
.app-side-foot .who strong { display: block; color: var(--text); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.app-top .company { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top .spacer { flex: 1; }
.app-toggle { display: none; }
.app-content { padding: 32px 28px 64px; max-width: 1200px; width: 100%; }
.app-content h1 { font-size: 1.75rem; margin-bottom: 6px; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.app-head p { margin: 0; color: var(--muted); }
.app-backdrop { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 70; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .app-side.is-open { transform: none; }
  .app-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(11, 18, 32, .5); z-index: 60; }
  .app-toggle { display: inline-flex; }
  .app-top { padding: 0 16px; }
  .app-content { padding: 24px 16px 56px; }
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.stat span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .badge { margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 24px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1080px) { .two-col { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--surface); }
.empty .icon-tile { margin: 0 auto 16px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }
.view-switch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.view-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font: inherit; font-size: .87rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.site-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.site-card-head { display: flex; gap: 12px; align-items: center; }
.site-card-head .fav { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 750; color: #fff; background: var(--accent); flex: none; text-transform: uppercase; }
.site-card-head div { min-width: 0; }
.site-card-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-head a.domain { color: var(--muted); font-size: .88rem; text-decoration: none; overflow-wrap: anywhere; }
.site-card .metric-empty { border: 1px dashed var(--border); border-radius: 10px; padding: 12px; font-size: .84rem; color: var(--muted); }
.site-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.site-card-foot .actions { display: flex; gap: 6px; }
.code-box { position: relative; background: var(--navy); color: #E2E8F0; border-radius: 12px; padding: 16px 18px; font-family: var(--mono); font-size: .85rem; overflow-x: auto; white-space: pre; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.copy-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.entry:last-child { border-bottom: 0; }
.entry time { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry h3 { font-size: 1rem; margin: 4px 0; letter-spacing: 0; }
.entry p { margin: 4px 0 0; font-size: .92rem; color: var(--text-2); white-space: pre-line; }
.entry .entry-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) { .entry { grid-template-columns: 1fr; gap: 6px; } }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.danger-zone h2 { color: var(--danger); }
.inline-form { display: inline; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars svg { width: 100%; height: 140px; }
.bar-rect { fill: var(--accent); }
.bar-label { fill: var(--muted); font-size: 9px; }
.admin-tag { font-size: .7rem; font-weight: 700; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
:root[data-theme="dark"] .admin-tag { background: var(--accent); }
.pager { display: flex; gap: 8px; margin-top: 16px; }
.msg-body { white-space: pre-line; font-size: .9rem; color: var(--text-2); max-width: 520px; }
.preview-fig { margin: 0; }
.feature-card h2, h2.h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.badge-plain { text-decoration: none; }
.mini-panel .live-number .live-dot { width: 12px; height: 12px; vertical-align: middle; margin-right: 10px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
input:disabled, select:disabled { opacity: .65; cursor: not-allowed; }
.signups { width: 100%; height: auto; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); margin-right: 5px; box-shadow: 0 0 0 3px var(--positive-soft); }
.source-grid + p, .steps + p, .plans + p, .grid + p { margin-top: 18px; }
.preview-chart svg { height: auto; aspect-ratio: 300 / 112; }
