/* TheGrowwers SearchWatch — light theme, TheGrowwers brand */
:root {
  --blue: #1557E8; --blue-ink: #0F44B8; --blue-wash: #EBF1FE; --blue-line: #C9D8FB;
  --navy: #08112A; --ink: #0F1B33; --ink-2: #4B5873; --ink-3: #8592A8;
  --bg: #F4F7FB; --panel: #FFFFFF; --panel-2: #FAFBFD; --line: #E3E8F1; --line-2: #D2DAE6;
  --ok: #0E9F78; --ok-wash: #E2F6EF; --ok-ink: #0B6B53;
  --warn: #E5A019; --warn-wash: #FDF3DC; --warn-ink: #8A5A00;
  --bad: #DC3B54; --bad-wash: #FDE8EB; --bad-ink: #A51F35;
  --none: #D2DAE6;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(8,17,42,.04), 0 6px 24px rgba(8,17,42,.05);
  --display: 'Poppins', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.brand img.logo { height: 40px; width: auto; align-self: flex-start; }
.brand .product { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--navy); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand .product .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); }
.nav-label { font-size: 12px; color: var(--ink-3); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; margin-bottom: 1px; }
.nav a i { font-size: 18px; }
.nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--blue-wash); color: var(--blue-ink); }
.nav a .count { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; border-radius: 20px; padding: 0 7px; line-height: 18px; }
.nav .site-link { font-size: 13px; padding: 6px 10px; }
.nav .site-link .sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.nav .site-link span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.next { background: var(--bg); border-radius: 10px; padding: 12px; font-size: 12.5px; color: var(--ink-2); }
.next b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.me:hover { background: var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; font-family: var(--display); }
.me .who { min-width: 0; font-size: 13px; line-height: 1.3; }
.me .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { color: var(--ink-3); font-size: 12px; }

main { padding: 26px 34px 70px; max-width: 1360px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); }
h1 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; margin: 0; color: var(--navy); }
h1.hero { font-size: 36px; font-weight: 500; }
h1.hero .of { color: var(--ink-3); }
h2 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0; color: var(--navy); letter-spacing: -.005em; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
.sub { color: var(--ink-2); margin: 6px 0 0; max-width: 72ch; }
.kicker { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-wash); }
.live.busy { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--blue-wash); } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: border-color .12s, background .12s; }
.btn:hover { border-color: var(--ink-3); }
.btn i { font-size: 17px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn.danger { color: var(--bad-ink); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-wash); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg); color: var(--ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--ink-2); border: 1px solid transparent; background: none; cursor: pointer; }
.iconbtn:hover { border-color: var(--line-2); color: var(--ink); background: var(--panel); text-decoration: none; }
.iconbtn i { font-size: 17px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  height: 38px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px; background: var(--panel); width: 100%; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }
.check small { display: block; color: var(--ink-3); font-size: 12.5px; }
.switch { position: relative; width: 36px; height: 21px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 20px; transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::before { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--ink-2); padding: 5px 11px; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: 13px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--blue-wash); color: var(--blue-ink); }
.seg button .n { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.seg button.on .n { color: var(--blue-ink); }
.search { flex: 1; min-width: 200px; position: relative; }
.search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 17px; }
.search input { padding-left: 34px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- cards & stats */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .sub { margin: 2px 0 0; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { padding: 15px 18px; }
.stat .label { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: -.02em; margin-top: 4px; line-height: 1.15; }
.stat .value small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.stat .delta { font-size: 12.5px; margin-top: 3px; color: var(--ink-2); }
.stat.alert { background: var(--bad-wash); border-color: #F3C4CC; }
.stat.alert .label, .stat.alert .delta { color: var(--bad-ink); }
.stat.alert .value { color: #8E1A2D; }
.up { color: var(--ok-ink); } .down { color: var(--bad-ink); }
.delta-pill { font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.delta-pill.up { background: var(--ok-wash); } .delta-pill.down { background: var(--bad-wash); } .delta-pill.flat { background: var(--bg); color: var(--ink-3); }

.pill { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.pill.bad { background: var(--bad-wash); color: var(--bad-ink); }
.pill.ok { background: var(--ok-wash); color: var(--ok-ink); }
.pill.warn { background: var(--warn-wash); color: var(--warn-ink); }
.pill.blue { background: var(--blue-wash); color: var(--blue-ink); }
.pill.grey { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.ok { color: var(--ok-ink); } .dot.bad { color: var(--bad-ink); } .dot.warn { color: var(--warn-ink); } .dot.grey { color: var(--ink-3); }

.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.barline { display: flex; align-items: center; gap: 8px; }
.barline .bar { flex: 1; min-width: 50px; }
.barline .v { font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; font-weight: 500; font-size: 13px; }

/* ---------------------------------------------------------------- index map */
.legend { display: flex; gap: 14px; color: var(--ink-2); font-size: 12.5px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.maprow { display: grid; grid-template-columns: 200px minmax(0, 1fr) 56px; gap: 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.maprow:first-child { border-top: 0; }
.maprow .name { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.cells { display: flex; flex-wrap: wrap; gap: 3px; }
.cells i { width: 11px; height: 11px; border-radius: 3px; display: block; cursor: pointer; }
.cells i:hover { transform: scale(1.45); box-shadow: 0 0 0 2px var(--panel); }
.cells .more { font-size: 12px; color: var(--ink-3); margin-left: 4px; line-height: 11px; }
.pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; height: 220px; }
.chart.sm { height: 150px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .08s; z-index: 2; }
.chart .tip b { font-weight: 600; }
.metric-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.metric-tabs button { flex: 1; border: 0; background: var(--panel); padding: 12px 14px; text-align: left; cursor: pointer; border-right: 1px solid var(--line); }
.metric-tabs button:last-child { border-right: 0; }
.metric-tabs button .l { font-size: 12.5px; color: var(--ink-2); display: block; }
.metric-tabs button .v { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.metric-tabs button.on { background: var(--blue-wash); box-shadow: inset 0 -3px 0 var(--blue); }
.metric-tabs button.on .l { color: var(--blue-ink); }
.spark { width: 110px; height: 28px; display: block; }
.empty-chart { height: 100%; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; text-align: center; padding: 0 20px; }

/* ---------------------------------------------------------------- feed */
.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.feed-item:first-child { border-top: 0; padding-top: 0; }
.feed-url { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-why { color: var(--ink-2); font-size: 13px; }
.feed-time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
th.r, td.r { text-align: right; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
tbody tr.clickable { cursor: pointer; }
td.url { font-family: var(--mono); font-size: 12.5px; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.wrap { white-space: normal; }
td.acts { text-align: right; white-space: nowrap; }
.card .table-wrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); margin: 0 -20px; }
.card .table-wrap th:first-child, .card .table-wrap td:first-child { padding-left: 20px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 0; color: var(--ink-2); font-size: 13px; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--blue-ink); border-color: var(--blue); }
.tabs a .n { font-size: 11.5px; background: var(--bg); color: var(--ink-2); border-radius: 10px; padding: 0 7px; }
.tabs a.on .n { background: var(--blue-wash); color: var(--blue-ink); }

/* ---------------------------------------------------------------- empty, notice */
.empty { text-align: center; padding: 48px 24px; }
.empty i { font-size: 34px; color: var(--blue); }
.empty h3 { font-family: var(--display); font-size: 17px; margin: 10px 0 4px; }
.empty p { color: var(--ink-2); margin: 0 auto 16px; max-width: 52ch; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--blue-line); background: var(--blue-wash); color: var(--navy); }
.notice i { font-size: 18px; color: var(--blue); margin-top: 1px; }
.notice.warn { background: var(--warn-wash); border-color: #F2D69A; }
.notice.warn i { color: var(--warn-ink); }
.notice.bad { background: var(--bad-wash); border-color: #F3C4CC; }
.notice.bad i { color: var(--bad-ink); }
.notice.ok { background: var(--ok-wash); border-color: #B5E5D3; }
.notice.ok i { color: var(--ok-ink); }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 6px 6px 6px 12px; }
.copybox code { font-family: var(--mono); font-size: 12.5px; flex: 1; overflow-x: auto; white-space: nowrap; }

/* ---------------------------------------------------------------- progress */
.runbar { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--blue-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.runbar .bar { flex: 1; height: 8px; }
.runbar .bar span { transition: width .4s; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; background: rgba(8,17,42,.32); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 50; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border-radius: 16px; width: 560px; max-width: 100%; max-height: 84vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(8,17,42,.25); }
.modal.wide { width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 20px; }
.drawer-wrap { position: fixed; inset: 0; background: rgba(8,17,42,.22); z-index: 40; animation: fade .12s; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 520px; max-width: 100%; background: var(--panel); box-shadow: -20px 0 60px rgba(8,17,42,.15); overflow-y: auto; z-index: 41; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .4; } }
.drawer-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; position: sticky; top: 0; background: var(--panel); }
.drawer-body { padding: 18px 22px 30px; display: flex; flex-direction: column; gap: 18px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; word-break: break-word; }
.timeline { display: flex; flex-direction: column; }
.timeline .ev { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline .ev::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline .ev:last-child::before { display: none; }
.timeline .ev .d { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); margin-top: 3px; }

.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--navy); color: #fff; padding: 11px 15px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(8,17,42,.25); display: flex; gap: 9px; align-items: center; max-width: 420px; animation: fade .15s; }
.toast.bad { background: #8E1A2D; }
.toast i { font-size: 17px; }

/* palette */
.palette { width: 600px; max-width: 100%; background: var(--panel); border-radius: 14px; box-shadow: 0 30px 80px rgba(8,17,42,.25); overflow: hidden; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 54px; font-size: 16px; padding: 0 20px; box-shadow: none !important; }
.palette .list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette .opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 9px; cursor: pointer; }
.palette .opt.on { background: var(--blue-wash); }
.palette .opt i { color: var(--ink-2); font-size: 18px; }
.palette .opt .k { margin-left: auto; color: var(--ink-3); font-size: 12px; }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { background: var(--navy); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art .wm { height: 44px; width: auto; align-self: flex-start; background: #fff; padding: 8px 12px; border-radius: 10px; }
.auth-art h2 { font-family: var(--display); color: #fff; font-size: 38px; font-weight: 500; line-height: 1.12; letter-spacing: -.03em; max-width: 13ch; }
.auth-art p { color: #A9B6D3; max-width: 44ch; font-size: 15px; }
.auth-art .grid-art { position: absolute; right: -40px; bottom: 90px; display: grid; grid-template-columns: repeat(18, 14px); gap: 5px; opacity: .9; }
.auth-art .grid-art i { width: 14px; height: 14px; border-radius: 4px; background: #1D2B4D; }
.auth-art .grid-art i.g { background: #1BB48A; } .auth-art .grid-art i.b { background: var(--blue); } .auth-art .grid-art i.r { background: #E2556B; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form form { width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.auth-form h1 { font-size: 26px; }
.auth-form .err { color: var(--bad-ink); font-size: 13px; min-height: 18px; }
.auth-form .btn { height: 42px; justify-content: center; font-size: 15px; }
.foot-note { color: var(--ink-3); font-size: 12px; margin-top: 8px; }

.skeleton { background: linear-gradient(90deg, var(--line) 0%, var(--panel-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 14px; }
  .brand { border: 0; padding: 0; margin: 0; flex-direction: row; align-items: center; }
  .brand img.logo { height: 30px; }
  .brand .product, .nav-label, .side-foot .next, .nav .site-link { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; padding: 0; }
  .me .who { display: none; }
  main { padding: 20px 16px 60px; }
  h1.hero { font-size: 28px; }
  .maprow { grid-template-columns: 1fr 50px; }
  .maprow .cells { grid-column: 1 / -1; grid-row: 2; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .metric-tabs { flex-wrap: wrap; }
  .metric-tabs button { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
