/* Панель аналитика «Сақ бол», многостраничная: шрифты, размеры, свет и стекло — один в один с макетом design/tandem. */

:root {
  --bg: #050508; --ink: #f3f2ff; --muted: #8b8ea0; --soft: #9da1ae;
  --line: rgba(185, 169, 255, .16); --line-active: rgba(185, 169, 255, .55);
  --violet: #8f7cff; --lilac: #b9a9ff; --glow: rgba(160, 130, 255, .65);
  --high: #ff6b6b; --mid: #f5b14c; --low: #5fd3a0; --gold: #fec50c;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --f-display: 'Unbounded', 'Onest', sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  /* в макете метки, кнопки решений и kbd набраны так — повторяем как есть */
  --f-chip: "Geist Mono", monospace;
  --lottery: #9ba7ff; --casino: #f08bd3; --pyramid: #5fd3a0;
  /* граф: те же цвета узлов, что в старой панели */
  --surface: #121020; --border-strong: rgba(185, 169, 255, .34); --medium: var(--mid); --gold-deep: #d9a100;
  --n-account: #b49cff; --n-channel: #3ccbe0; --n-domain: #7fa9ff; --n-promo: #fec50c; --n-card: #5fd49a;
  --n-phone: #ff9f75; --n-ref: #f08bd3; --n-short: #a3aeff; --n-wallet: #e0b85a; --n-invite: #5ed1c2;
  --n-page: #aebdc7; --n-kaspi: #ff8a73; --n-other: #9aaab4;
  --edge: rgba(185, 169, 255, .3); --edge-redirect: #8fa8ff; --edge-mirror: #fec50c;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); overflow-x: hidden; }
body { font-family: var(--f-body); font-weight: 300; font-size: 15.5px; line-height: 1.55; background: var(--bg); color: var(--ink);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100vh; position: relative; isolation: isolate; }
::selection { background: var(--lilac); color: #050508; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* сцена: луч и точечный пол первого экрана */
.stage { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 100vh; min-height: 640px; overflow: hidden; pointer-events: none; }
.beam { position: absolute; left: 50%; top: -15%; width: 480px; height: 130%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 25%, rgba(139, 124, 240, .55), rgba(110, 90, 255, .16) 45%, transparent 72%);
  filter: blur(28px); will-change: opacity, transform; transition: opacity .8s; }
.beam::after { content: ""; position: absolute; inset: 0 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(220, 210, 255, .7) 35%, rgba(160, 140, 255, .35) 75%, transparent 100%); filter: blur(14px); }
.floor-wrap { position: absolute; left: -25%; right: -25%; bottom: -10%; height: 58%; perspective: 550px; transition: opacity .8s; }
.floor { position: absolute; inset: 0; transform: rotateX(68deg); transform-origin: bottom center;
  background-image: radial-gradient(circle, rgba(225, 220, 255, .95) 1.5px, transparent 2px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, #000 42%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, #000 42%, transparent 78%);
  opacity: .92; }
.floor-spot { position: absolute; left: 50%; bottom: 2%; width: 600px; height: 320px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(160, 140, 255, .55) 0%, rgba(120, 100, 240, .22) 40%, transparent 70%); filter: blur(35px); transition: opacity .8s; }
/* на рабочих страницах свет приглушён, чтобы не мешать чтению */
body:not(.is-overview) .beam { opacity: .4; }
body:not(.is-overview) .floor-wrap, body:not(.is-overview) .floor-spot { opacity: .25; }

/* навигация */
.top { position: relative; z-index: 20; display: flex; align-items: center; gap: 48px; padding: 24px 48px; max-width: 1520px; margin: 0 auto; width: 100%; }
.logo { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 500; letter-spacing: .14em; font-size: 17px; color: #fff; text-decoration: none; }
.logo svg { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(185, 169, 255, .5)); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: 15px; transition: color .25s; position: relative; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-links a.on::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--lilac); box-shadow: 0 0 8px var(--lilac); }
.btn-check { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px;
  color: #f3f2ff; font-size: 14px; font-weight: 400; background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); cursor: pointer; transition: all .3s; text-decoration: none; }
.btn-check:hover { border-color: var(--lilac); background: rgba(185, 169, 255, .08); box-shadow: 0 0 16px rgba(160, 130, 255, .25); }

/* хлебные крошки и язык */
.crumbs-bar { position: relative; z-index: 20; padding: 0 48px; max-width: 1520px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 16px; }
.crumbs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.crumbs a, .crumbs span { color: var(--muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs b { color: #fff; font-weight: 500; }
.lang-toggle { margin-left: auto; display: flex; gap: 8px; }
.lang-toggle button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.lang-toggle button.on { color: #fff; font-weight: 600; text-shadow: 0 0 10px rgba(185, 169, 255, .6); }

main { position: relative; z-index: 10; max-width: 1520px; margin: 0 auto; width: 100%; padding: 40px 48px 70px; }
main:focus, main:focus-visible { outline: none; }
body.is-overview main { padding-top: 0; }
.foot { max-width: 1520px; margin: 0 auto; padding: 0 48px 30px; }

/* заголовки и общие элементы */
h1 { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.14; letter-spacing: -.025em; color: #fff; }
h1 .lav { color: var(--lilac); }
.glow-text { text-shadow: 0 0 28px var(--glow); }
h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -.02em; color: #fff; }
h2 .sub { color: var(--muted); font-weight: 300; }
h3 { font: 300 11px/1.55 var(--f-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 20px; display: block; }
.field h3 { margin-bottom: 8px; }
.head, .case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px; border-bottom: 1px solid rgba(185, 169, 255, .08); padding-bottom: 16px; }
.lead { color: var(--soft); margin: 22px 0 34px; max-width: 440px; font-size: 15px; line-height: 1.6; }
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 34px; background: rgba(13, 11, 24, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 45px rgba(0, 0, 0, .45); }

/* пилюля со свечением (как «ІСТІ АШУ») */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 38px; border-radius: 999px;
  background: radial-gradient(120% 140% at 50% 120%, rgba(120, 100, 240, .3), #0b0913 75%); color: #f3f2ff; border: 1.5px solid #d9cbfd;
  box-shadow: 0 0 18px rgba(139, 124, 240, .45), inset 0 0 14px rgba(139, 124, 240, .16);
  font: 500 11.5px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.pill:hover { box-shadow: 0 0 32px rgba(160, 140, 255, .7), inset 0 0 20px rgba(160, 140, 255, .28); transform: translateY(-2px); color: #fff; }
.pill svg { width: 14px; height: 14px; }

/* кнопки решений и фильтры (как «Растау / Жалған белгі») */
.act-btn, .pill.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: auto; border-radius: 999px; padding: 13px 26px;
  font: 500 11.5px var(--f-chip); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: all .3s; user-select: none; text-decoration: none; }
.act-btn.primary { background: radial-gradient(120% 140% at 50% 120%, rgba(120, 100, 240, .35), #0b0913 75%); color: #fff; border: 1.5px solid #d9cbfd;
  box-shadow: 0 0 18px rgba(139, 124, 240, .4), inset 0 0 12px rgba(139, 124, 240, .15); }
.act-btn.primary:hover { box-shadow: 0 0 30px rgba(160, 140, 255, .7); transform: translateY(-2px); }
.act-btn.ghost, .pill.ghost { background: transparent; color: var(--soft); border: 1px solid var(--line); box-shadow: none; }
.act-btn.ghost:hover, .pill.ghost:hover { color: #fff; border-color: rgba(185, 169, 255, .5); background: rgba(185, 169, 255, .06); transform: translateY(-2px); box-shadow: none; }
.pill.small { padding: 9px 16px; font-size: 11px; letter-spacing: .12em; }
.act-btn[aria-pressed="true"], .pill[aria-pressed="true"] { color: #fff; border-color: rgba(217, 203, 253, .9); background: rgba(143, 124, 255, .22); }
kbd { display: inline-block; font: 500 10px var(--f-chip); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--lilac); background: rgba(255, 255, 255, .05); }
.tag { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: 400 11px var(--f-chip); letter-spacing: .08em; color: var(--lilac); background: rgba(185, 169, 255, .05); }
.tag.status { color: var(--gold); border-color: rgba(254, 197, 12, .35); }
.meta-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 400 12px var(--f-chip); letter-spacing: .05em; color: #cfcbef; background: rgba(255, 255, 255, .03); }
.lv-high { color: var(--high); } .lv-medium { color: var(--mid); } .lv-low { color: var(--low); }
.empty { color: var(--muted); padding: 20px 0; }
.err { color: var(--high); }
.gap { margin-top: 26px; }

/* обзор: герой в три колонки */
.hero { display: grid; grid-template-columns: 1.15fr 320px 1fr; align-items: center; gap: 32px; padding: 40px 0 60px; min-height: calc(100vh - 99px); }
.hero-left { display: flex; flex-direction: column; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; margin-bottom: 24px;
  color: var(--lilac); background: rgba(143, 124, 255, .08); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 8px var(--lilac); }
.shield-box { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; }
.shield { position: relative; display: block; width: 250px; height: 300px; transform-origin: center center; text-decoration: none; color: #fff;
  animation: shieldFloat 4.5s ease-in-out infinite alternate; }
@keyframes shieldFloat { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-12px) rotate(.4deg); } }
.shield svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 45px rgba(160, 130, 255, .7)); }
.shield .score-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 24px; pointer-events: none; }
.shield .score-num { font-family: var(--f-display); font-weight: 300; font-size: 78px; line-height: .95; letter-spacing: -.02em; color: #fff; }
.shield .score-label { margin-top: 10px; font-size: 11px; letter-spacing: .22em; color: #ff7e7e; }
.shield .score-label.lv-medium { color: var(--mid); } .shield .score-label.lv-low { color: var(--low); }
.hero-right { display: flex; flex-direction: column; align-items: flex-end; }
.stats-stack { display: flex; flex-direction: column; gap: 16px; width: 210px; }
.stat-card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; background: rgba(14, 13, 26, .65);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 36px rgba(0, 0, 0, .45); transition: transform .3s, border-color .3s; }
.stat-card:hover { border-color: rgba(185, 169, 255, .4); transform: translateX(-4px); }
.stat-card b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.01em; color: #f3f2ff; }
.stat-card b.lv-high { color: var(--high); } .stat-card b.lv-medium { color: var(--mid); }
.stat-card span { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .16em; }
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 10px; }

/* полка случаев */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.filters .sep { width: 1px; height: 26px; background: var(--line); margin: 0 6px; }
.search { flex: 1; min-width: 220px; max-width: 360px; background: rgba(10, 9, 22, .7); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 14px; }
.search::placeholder { color: var(--muted); }
.search:focus { outline: none; border-color: var(--line-active); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case { border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; text-decoration: none; display: flex; flex-direction: column; position: relative;
  background: linear-gradient(180deg, rgba(22, 19, 42, .72) 0%, rgba(10, 9, 20, .8) 100%); backdrop-filter: blur(12px); transition: all .35s var(--ease); }
.case:hover { border-color: rgba(185, 169, 255, .45); transform: translateY(-5px); box-shadow: 0 18px 45px rgba(0, 0, 0, .6), 0 0 26px rgba(143, 124, 255, .15); }
.case .n { font-family: var(--f-display); font-weight: 300; font-size: 50px; line-height: 1; letter-spacing: -.02em; }
.case .meta { margin: 10px 0 16px; font-size: 11px; letter-spacing: .15em; }
.case p { color: var(--soft); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.case .tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.track b { display: block; margin: 12px 0 10px; }
.more-row { display: flex; justify-content: center; margin-top: 30px; }

/* разбор случая */
.back { display: inline-flex; margin-bottom: 20px; text-decoration: none; }
.back:hover { color: #fff; }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.score-row { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.score-row .big { font-family: var(--f-display); font-weight: 300; font-size: 50px; line-height: 1; letter-spacing: -.02em; }
.score-row .big small { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.score-row .lvl { font-size: 16px; font-weight: 400; }
.meter { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--low) 0 25%, var(--mid) 25% 60%, var(--high) 60%); opacity: .85; margin: 6px 0 30px; }
.meter i { position: absolute; top: -6px; width: 3px; height: 18px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff; }
.field + .field { margin-top: 22px; }
.src { font-size: 22px; font-weight: 300; line-height: 1.75; color: #e9e7fc; white-space: pre-wrap; overflow-wrap: anywhere; }
mark.ev { position: relative; color: #fff; background: linear-gradient(180deg, transparent 58%, rgba(143, 124, 255, .42) 58%) no-repeat; background-size: 100% 100%;
  padding: 2px 4px; border-radius: 4px; font-weight: 400; cursor: pointer; transition: background-color .25s, box-shadow .25s; }
mark.ev:hover, mark.ev.is-hot { background-color: rgba(143, 124, 255, .55); box-shadow: 0 0 16px rgba(160, 130, 255, .5); }
.src sup { font: 600 10.5px var(--f-chip); color: var(--lilac); margin-left: 3px; vertical-align: super; line-height: 0; }
.meta-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.sig { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line);
  border-radius: 8px; transition: background .2s, padding .2s; }
.sig:hover, .sig.is-hot { background: rgba(185, 169, 255, .07); padding-left: 10px; padding-right: 10px; }
.sig .k { color: var(--lilac); font-size: 13px; }
.sig strong { display: block; font-weight: 400; font-size: 16px; color: #f6f5ff; }
.sig small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.sig .p { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: -.01em; color: var(--high); }
.sig .p.zero { color: var(--muted); }
.sig .p.neg { color: var(--low); }
.note { margin-top: 26px; padding: 18px 22px; border-radius: 16px; border: 1px dashed rgba(185, 169, 255, .35); background: rgba(185, 169, 255, .04);
  color: var(--soft); font-size: 14px; line-height: 1.6; }
.note b { color: #fff; font-weight: 500; }
.acts { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.notebox { width: 100%; margin-top: 16px; min-height: 64px; background: rgba(10, 9, 22, .7); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 14px; resize: vertical; }
.notebox:focus { outline: none; border-color: var(--line-active); }
.status-line { margin-top: 12px; }
.more-btn { margin-top: 28px; width: 100%; }

/* подробнее */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bars .bar { display: grid; grid-template-columns: 170px 1fr 40px; gap: 12px; align-items: center; margin: 12px 0; }
.bars .track-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bars .track-bar i { display: block; height: 100%; border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ent-group + .ent-group { margin-top: 16px; }
.ent-group .mono { display: block; margin-bottom: 8px; }
.related a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.related a:hover { color: #fff; }
.related .lv-high, .related .lv-medium, .related .lv-low { font-family: var(--f-display); font-weight: 400; }
.cluster + .cluster { margin-top: 20px; }
.cluster p { color: var(--soft); font-size: 14px; margin: 8px 0 14px; }

/* сети */
.graph-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.graph-box { position: relative; padding: 0; overflow: hidden; height: calc(100vh - 260px); min-height: 460px; }
#graph-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#graph-svg.is-panning { cursor: grabbing; }
.graph-tools { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 2; }
.graph-hint { position: absolute; right: 16px; bottom: 12px; }
.legend { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 4px; font-size: 12px; background: rgba(10, 9, 22, .8); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.clusters { max-height: calc(100vh - 260px); overflow: auto; }
.cl { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; cursor: pointer; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(22, 19, 42, .72) 0%, rgba(10, 9, 20, .8) 100%); transition: border-color .3s, box-shadow .3s; }
.cl:hover, .cl.on { border-color: var(--gold); box-shadow: 0 0 18px rgba(254, 197, 12, .15); }
.cl p { color: var(--soft); font-size: 13.5px; margin-top: 8px; }
.edge { stroke: var(--edge); stroke-width: 1.1; }
.edge.k-redirects_to { stroke: var(--edge-redirect); stroke-width: 1.6; }
.edge.k-same_family { stroke: var(--edge-mirror); stroke-width: 1.8; stroke-dasharray: 5 4; }
.node circle { stroke: var(--surface); stroke-width: 1.5; cursor: pointer; transition: opacity .15s; }
.node text { font: 400 10.5px var(--f-body); fill: var(--soft); pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.node.t-post circle { fill: var(--low); } .node.t-post.lvl-medium circle { fill: var(--mid); } .node.t-post.lvl-high circle { fill: var(--high); }
.node.t-account circle { fill: var(--n-account); } .node.t-channel circle { fill: var(--n-channel); } .node.t-domain circle { fill: var(--n-domain); }
.node.t-promo_code circle { fill: var(--n-promo); } .node.t-card circle { fill: var(--n-card); } .node.t-phone circle { fill: var(--n-phone); }
.node.t-ref_id circle { fill: var(--n-ref); } .node.t-short_link circle { fill: var(--n-short); } .node.t-wallet circle { fill: var(--n-wallet); }
.node.t-invite circle { fill: var(--n-invite); } .node.t-page circle { fill: var(--n-page); } .node.t-kaspi_pay circle { fill: var(--n-kaspi); }
.node.t-other circle { fill: var(--n-other); }
.node.ring-medium circle { stroke: var(--mid); stroke-width: 2.5; } .node.ring-high circle { stroke: var(--high); stroke-width: 3; }
.node:hover circle, .node.is-focus circle { stroke: var(--gold); stroke-width: 3.5; }
.dim { opacity: .12; }
.edge.is-lit { stroke: var(--gold-deep); stroke-width: 2; }

/* проверка */
.check { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.form label { display: block; margin-bottom: 16px; }
.form label span { display: block; margin-bottom: 8px; }
.form textarea, .form input, .form select { width: 100%; background: rgba(10, 9, 22, .7); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; font-size: 14px; }
.form textarea:focus, .form input:focus, .form select:focus { outline: none; border-color: var(--line-active); }
.form input[type="checkbox"] { width: auto; }
.form .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.metrics b { display: block; font-family: var(--f-display); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -.01em; margin-bottom: 8px; }

@media (max-width: 1200px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr 260px 1fr; gap: 24px; padding: 30px 0 50px; }
  .top, .crumbs-bar, main, .foot { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; min-height: 0; }
  .hero-left { align-items: center; }
  .hero-right { align-items: center; width: 100%; }
  .stats-stack { flex-direction: row; width: 100%; justify-content: center; }
  .stat-card { flex: 1; }
  .detail, .grid2, .graph-layout, .check, .tracks { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lead { max-width: none; }
}
@media (max-width: 640px) {
  .shelf { grid-template-columns: 1fr; }
  .stats-stack { flex-direction: column; }
  .src { font-size: 18px; }
  .top, .crumbs-bar, main, .foot { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, .beam, .floor { animation: none !important; transition: none !important; } }
