/* Agency admin UI. Hand-written, no build step. */
:root {
    --ink: #0d1321;
    --ink-2: #4a5468;
    --ink-3: #8a93a6;
    --line: #e3e7ef;
    --line-2: #eef1f6;
    --bg: #f4f6fb;
    --card: #ffffff;
    --night: #0b1020;
    --night-2: #151c33;
    --primary: #3b5bfd;
    --primary-hover: #2c48e6;
    --primary-soft: #eef1ff;
    --teal: #12b5a6;
    --glow: linear-gradient(120deg, #3b5bfd 0%, #12b5c9 100%);
    --ok: #0a7a4f;
    --ok-bg: #e5f6ee;
    --warn: #9a5b00;
    --warn-bg: #fff4e0;
    --err: #c42b3c;
    --err-bg: #fdecee;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(13, 19, 33, .05), 0 6px 24px rgba(13, 19, 33, .06);
    --shadow-lg: 0 2px 6px rgba(13, 19, 33, .06), 0 18px 48px rgba(13, 19, 33, .12);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 750; }
h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 12px; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.icon { flex: none; vertical-align: -3px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.topbar { background: var(--night); color: #fff; position: relative; z-index: 5; }
.topbar-inner { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 15.5px; color: #fff; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 28px; height: 28px; border-radius: 8px; background: var(--glow); display: grid; place-items: center;
    box-shadow: 0 4px 16px rgba(59, 91, 253, .45);
}
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { white-space: nowrap; color: rgba(255, 255, 255, .68); padding: 7px 13px; border-radius: 9px; font-weight: 550; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.me { display: flex; align-items: center; gap: 12px; margin: 0; }
.me-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .12); color: #fff; }
.me button { background: none; border: 0; color: rgba(255, 255, 255, .68); font: inherit; font-weight: 550; cursor: pointer; padding: 6px 0; }
.me button:hover { color: #fff; }

/* ---------- page hero (dark band under the top bar) ---------- */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; padding: 26px 0 92px; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(520px 300px at 78% 10%, rgba(59, 91, 253, .55), transparent 70%),
        radial-gradient(420px 260px at 95% 90%, rgba(18, 181, 201, .38), transparent 70%),
        radial-gradient(380px 220px at 8% 0%, rgba(59, 91, 253, .22), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero.compact { padding-bottom: 76px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero h1 { color: #fff; display: flex; align-items: center; gap: 14px; }
.hero .sub { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 8px 0 0; }
.hero .sub strong { color: #fff; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: #8fb0ff; margin-bottom: 10px; display: block; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: #fff; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.body { margin-top: -60px; position: relative; z-index: 2; padding-bottom: 72px; }
.hero.compact + .body { margin-top: -48px; }

/* ---------- cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head p { margin: 2px 0 0; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-2-1 > *, .grid-2 > * { min-width: 0; }
.table-scroll { overflow-x: auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 34px 0 14px; flex-wrap: wrap; }
.section-head p { margin: 4px 0 0; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 750; margin-right: 10px; vertical-align: 1px; }
@media (max-width: 920px) { .grid-2-1, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.stat:nth-child(2) .stat-icon { background: #e3f7f4; color: var(--teal); }
.stat:nth-child(3) .stat-icon { background: #f1ebff; color: #6d3df5; }
.stat:nth-child(4) .stat-icon { background: #fff1e6; color: #e8710a; }
.stat-value { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.stat-label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.meter { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--glow); }
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font: inherit; font-weight: 650; font-size: 13.5px;
    cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(59, 91, 253, .32); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-glow { background: var(--glow); border: 0; color: #fff; box-shadow: 0 6px 20px rgba(59, 91, 253, .4); }
.btn-glow:hover { background: var(--glow); filter: brightness(1.07); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.danger, .btn-link.danger { color: var(--err) !important; }
.icon-btn { background: none; border: 0; color: var(--ink-3); line-height: 0; cursor: pointer; padding: 6px; border-radius: 8px; }
.icon-btn:hover { background: var(--err-bg); color: var(--err); }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); }
label .hint { font-weight: 400; color: var(--ink-3); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 450; }
input, select, textarea {
    font: inherit; color: var(--ink); background: #fff; width: 100%;
    border: 1px solid #d5dbe6; border-radius: 10px; padding: 9px 12px; min-height: 42px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 91, 253, .15); }
input[type="color"] { padding: 4px; width: 72px; height: 42px; cursor: pointer; }
input[type="checkbox"] { min-height: 0; width: 16px; height: 16px; accent-color: var(--primary); }
input[type="file"] { padding: 8px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }

/* ---------- toasts, tags, avatars ---------- */
.toasts { position: fixed; top: 76px; right: 24px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 48px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-weight: 550; animation: toast-in .25s ease-out; }
.toast .icon { margin-top: 2px; }
.toast-ok .icon { color: var(--ok); }
.toast-error { border-color: #f5c2c8; }
.toast-error .icon { color: var(--err); }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 550; background: var(--err-bg); color: var(--err); }
.flash-ok { background: var(--ok-bg); color: var(--ok); }

/* two-factor */
.auth-card.wide { max-width: none; }
.qr-box { display: flex; justify-content: center; margin: 18px 0 10px; }
.qr { width: 196px; height: 196px; border-radius: 12px; border: 1px solid var(--line); }
.secret { display: block; text-align: center; font: 600 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--line-2); border-radius: 10px; padding: 8px 10px; word-spacing: .3em; user-select: all; }
.steps { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); }
.steps li { margin-bottom: 6px; }
.code-input { font: 650 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .35em; text-align: center; padding: 12px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; padding: 16px; border-radius: 12px; background: var(--line-2); list-style: none; font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-align: center; }
.alt-link { text-align: center; margin: 16px 0 0; font-size: 13px; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-progress { background: var(--primary-soft); color: var(--primary); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-plain::before { display: none; }

.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--c, var(--primary)); color: #fff; font-weight: 750; font-size: 15px; letter-spacing: .02em; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.avatar.logo { background: #fff; border: 1px solid var(--line); padding: 5px; }
.avatar.logo img { max-width: 100%; max-height: 100%; display: block; }
.avatar.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 19px; }
.hero .avatar.logo { border: 0; }

.badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--pc, var(--ink-3)); }
.badge.off { background: var(--line-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- dashboard ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 18px; }
.client-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden; }
.client-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--primary)); }
.client-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d5dbe6; }
.cc-top { display: flex; align-items: center; gap: 13px; }
.cc-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.cc-name::after { content: ""; position: absolute; inset: 0; } /* whole card links to the client */
.cc-name:hover { text-decoration: none; }
.cc-meta { color: var(--ink-3); font-size: 12.5px; }
.cc-top .tag { margin-left: auto; }
.cc-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.cc-foot .btn, .cc-foot form { position: relative; z-index: 1; margin: 0; }
.cc-progress { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.cc-progress .meter { width: 120px; }

.empty-state { background: var(--card); border: 1.5px dashed #cfd6e3; border-radius: var(--radius); padding: 44px 28px; text-align: center; }
.empty-state .stat-icon { margin: 0 auto 14px; width: 54px; height: 54px; border-radius: 16px; }
.empty-state form { max-width: 420px; margin: 22px auto 0; text-align: left; }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(11, 16, 32, .55); backdrop-filter: blur(3px); }
.dialog-body { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* ---------- client page ---------- */
.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.report-item { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; position: relative; }
.report-item:hover { border-color: #cdd5e3; background: #fafbfe; }
.cal { width: 52px; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff; }
.cal b { display: block; background: var(--c, var(--primary)); color: #fff; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 0; }
.cal span { display: block; font-size: 15px; font-weight: 750; padding: 3px 0 4px; }
.ri-title { font-weight: 650; color: var(--ink); }
.ri-title::after { content: ""; position: absolute; inset: 0; }
.ri-title:hover { text-decoration: none; }
.ri-sub { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.ri-sub .badge { min-width: 30px; height: 20px; font-size: 10px; }
.report-item .btn { position: relative; z-index: 1; }
.new-report { display: flex; gap: 10px; flex-wrap: wrap; }
.new-report input { width: auto; flex: 1; min-width: 170px; }
.logo-preview { background: var(--line-2); border-radius: 10px; padding: 12px; }
.logo-preview img { max-height: 48px; max-width: 100%; display: block; }
.danger-zone { margin-top: 18px; padding: 0 4px; }

/* ---------- report editor ---------- */
.progress-pill { display: inline-flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 13px; }
.progress-pill .meter { width: 120px; margin: 0; background: rgba(255, 255, 255, .15); }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.platform-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); position: relative; }
.platform-card.has-data { border-color: #bfe5d3; }
.pc-head { display: flex; align-items: center; gap: 11px; }
.pc-head h3 { flex: 1; }
.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 118px; padding: 16px; border: 1.5px dashed #c9d1df; border-radius: 12px; background: #f9fafd;
    text-align: center; cursor: pointer; font-weight: 450; color: var(--ink-2); transition: background .15s, border-color .15s, transform .15s;
}
.dropzone .dz-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--pc, var(--primary)); box-shadow: var(--shadow); }
.dropzone strong { color: var(--ink); }
.dropzone:hover, .dropzone.over { border-color: var(--pc, var(--primary)); background: color-mix(in srgb, var(--pc, var(--primary)) 6%, #fff); }
.dropzone.over { transform: scale(1.01); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.busy { pointer-events: none; opacity: .75; }
.dropzone.busy .dz-icon { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); } }
.dz-status { font-size: 12.5px; font-weight: 600; }
.dz-status.error { color: var(--err); }
.dz-status.ok { color: var(--ok); }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 12px; background: #f7f8fc; border-radius: 10px; }
.file-list li > .icon { color: var(--ok); margin-top: 2px; }
.file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-warn { display: flex; gap: 6px; color: var(--warn); font-size: 12px; margin-top: 5px; background: var(--warn-bg); padding: 5px 8px; border-radius: 7px; }
.file-warn .icon { margin-top: 1px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 16px; }
.copy-row input { flex: 1; font-size: 12.5px; background: var(--line-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.row-actions { display: flex; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.row-actions form { margin: 0; }
.share-off { text-align: center; padding: 10px 0 4px; }
.share-off .stat-icon { margin: 0 auto 12px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table form { display: inline; }
.person { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.person .avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; }

/* ---------- system ---------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.checks li:last-child { border-bottom: 0; }
.checks .ok { color: var(--ok); }
.checks .bad { color: var(--err); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 550; }
.kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.sysbar { background: #ffb547; color: #3d2600; font-weight: 600; font-size: 13px; position: relative; z-index: 4; }
.sysbar .wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.sysbar a { color: inherit; text-decoration: underline; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; margin-bottom: 18px; border: 1px solid #f6dcae; }
.banner form { margin: 0 0 0 auto; }

/* ---------- export guide ---------- */
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 18px; }
.guide .card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.guide p, .guide li { color: #2b3242; }
.guide ol, .guide ul { padding-left: 20px; margin: 0 0 12px; }
.guide li { margin-bottom: 5px; }
.guide-wide { grid-column: 1 / -1; scroll-margin-top: 20px; }
.guide-wide h3 { margin: 18px 0 8px; font-size: 14.5px; }
.guide-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
@media (max-width: 920px) { .guide-steps { grid-template-columns: 1fr; } }
.lead { font-size: 15.5px; color: rgba(255, 255, 255, .75); max-width: 760px; margin: 10px 0 0; }
.lead strong { color: #fff; }

/* ---------- sign-in pages ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--night); position: relative; overflow-x: hidden; }
body.auth::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(600px 420px at 20% 15%, rgba(59, 91, 253, .45), transparent 70%), radial-gradient(560px 420px at 85% 85%, rgba(18, 181, 201, .32), transparent 70%);
}
body.auth::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .6;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(circle at center, #000, transparent 75%);
}
.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card { background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; }
.auth-card form { margin-top: 22px; }
.auth-foot { text-align: center; color: rgba(255, 255, 255, .5); font-size: 12.5px; margin-top: 20px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
    .wrap { padding: 0 18px; }
    .topbar-inner { height: auto; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; padding-bottom: 8px; }
    .brand { flex: 1; }
    .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -6px; scrollbar-width: none; }
    h1 { font-size: 25px; }
    .hero { padding-top: 20px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 14px; }
    .stat-icon { display: none; }
    .client-grid, .platform-grid, .guide { grid-template-columns: 1fr; }
    .report-item { grid-template-columns: 46px 1fr; }
    .report-item > :nth-child(n+3) { grid-column: 2; justify-self: start; }
    .toasts { top: 72px; right: 12px; }
}
