/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt). Same rules as assets/fonts/fonts.css, inlined to save a blocking request. */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2?v=ae79aaa702) format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2?v=e80a8d0e3d) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2?v=fd86dcbbcd) format("woff2-variations");
  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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/assets/fonts/jetbrains-mono-cyrillic-400-normal.woff2?v=71961e640e) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2?v=802a71b81e) 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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --black: #000; --white: #fff; --ash: #e5e7eb; --smoke: #bfbfbf; --iron: #999;
  --hair: rgba(229,231,235,.12); --hair-strong: rgba(229,231,235,.24);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 17.6px; --pill: 9999px;
  --gutter: clamp(16px, 3vw, 29px);
}
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
h1, h2, p, ul { margin: 0; } ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
/* Pills and tabs keep their shape when focused; after a tap the ring is not needed at all */
.seg button:focus-visible, .side a:focus-visible, .ghost:focus-visible, .pill:focus-visible { outline-offset: 3px; }
@media (hover: none) { .seg button:focus, .side a:focus, .ghost:focus, .pill:focus { outline: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mark { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kicker { color: var(--ash); font-size: 17px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 15px 30px; border: 0; border-radius: var(--pill);
  background: var(--white); color: var(--black); font-weight: 500; cursor: pointer;
}
.pill:hover { background: var(--ash); }
.ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; border-radius: var(--pill);
  padding: 8px 14px; color: var(--ash); cursor: pointer; font-size: 14px; white-space: nowrap;
}
.ghost:hover { background: rgba(255,255,255,.07); color: var(--white); }
.ghost--border { border-color: var(--hair-strong); }
.ghost--sm { padding: 6px 12px; font-size: 13px; }
.ghost[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Login ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.login__card {
  width: 100%; max-width: 380px;
  border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 35px 26px 26px; display: grid; gap: 14px; justify-items: center; text-align: center;
}
.login__card .mark { width: 36px; height: 36px; margin-bottom: 8px; }
.login__card h1 { font-size: 47px; font-weight: 450; letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; }
.login__card input {
  width: 100%; height: 52px; padding: 0 20px;
  background: transparent; border: 1px solid var(--hair-strong); border-radius: var(--pill);
  font-size: 16px;
}
.login__card input:focus { outline: none; border-color: var(--white); }
.login__card .pill { width: 100%; }
.login__err { min-height: 22px; color: var(--white); font-size: 14px; }
.pill[disabled] { opacity: .5; cursor: wait; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.top__inner { max-width: 1320px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; letter-spacing: -0.04em; }
.live { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--hair); border-radius: var(--pill); font-size: 13px; color: var(--smoke); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2s infinite; }
.live b { color: var(--white); font-weight: 500; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.top__actions { margin-left: auto; display: flex; gap: 4px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 20px var(--gutter) 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wrap > * { min-width: 0; }
.wrap.is-loading .kpis, .wrap.is-loading .card { opacity: .55; transition: opacity .2s; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; padding: 4px 0 8px; }
.filters__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.updated { font-size: 12px; color: var(--iron); }

.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hair); border-radius: var(--pill); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--smoke); padding: 8px 14px; border-radius: var(--pill); cursor: pointer; font-size: 14px; white-space: nowrap; }
.seg button:hover { color: var(--white); background: rgba(255,255,255,.06); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--black); }
.seg--sm button { padding: 6px 12px; font-size: 13px; }

.card { border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card__head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.card__head h2 { font-size: 17px; font-weight: 450; letter-spacing: -0.03em; margin-right: auto; }
.hint { font-size: 12px; color: var(--iron); }

.grid2, .grid3, .grid4 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .grid4 { grid-template-columns: repeat(4, 1fr); } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 860px) and (max-width: 1179px) { .grid3 { grid-template-columns: 1fr 1fr; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; min-width: 0; }
.kpi__label { font-size: 13px; color: var(--iron); }
.kpi__value { font-size: clamp(28px, 3.4vw, 38px); font-weight: 450; letter-spacing: -0.045em; line-height: 1.05; }
.kpi__delta { font-size: 12px; color: var(--smoke); display: flex; align-items: center; gap: 4px; }
.kpi__delta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.kpi__delta span { color: var(--iron); }
@media (max-width: 480px) { .kpi__delta span { display: none; } .kpi { padding: 14px 16px; } }

/* ---------- Chart ---------- */
.chart { position: relative; height: 300px; }
@media (max-width: 600px) { .chart { height: 230px; } }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: rgba(255,255,255,.08); }
.chart .axis text { fill: var(--iron); font-size: 11px; font-family: var(--font); }
.chart .area { fill: rgba(255,255,255,.07); }
.chart .line { fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.chart .dot { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.chart .empty { fill: var(--iron); font-size: 14px; }

.chart-table { max-height: 320px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
th { color: var(--iron); font-weight: 400; font-size: 12px; position: sticky; top: 0; background: var(--black); }
td.num, th.num { text-align: right; }

/* ---------- Tooltip ---------- */
.tip {
  position: fixed; z-index: 50; pointer-events: none;
  background: #111; border: 1px solid var(--hair-strong); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; min-width: 130px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.tip b { display: block; font-size: 20px; font-weight: 450; letter-spacing: -0.04em; line-height: 1.2; }
.tip small { color: var(--iron); }

/* ---------- Bar lists ---------- */
.list { display: grid; gap: 4px; }
.row {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 9px; min-height: 36px; overflow: hidden;
}
.row__bar { position: absolute; inset: 2px auto 2px 0; background: rgba(255,255,255,.09); border-radius: 0 4px 4px 0; }
.row:hover .row__bar { background: rgba(255,255,255,.15); }
.row__k { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.row__k small { color: var(--iron); margin-left: 6px; }
.row__n { position: relative; font-size: 14px; color: var(--ash); }
.row__p { position: relative; font-size: 12px; color: var(--iron); width: 40px; text-align: right; }
.empty-note { color: var(--iron); font-size: 14px; padding: 14px 10px; }
.sub-h { font-size: 13px; font-weight: 600; color: var(--ash); margin: 18px 0 8px; }
.card__foot { margin-top: 10px; }
.card__foot:empty { display: none; }

/* ---------- Hours ---------- */
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 150px; }
.hours button {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px;
  background: transparent; border: 0; padding: 0; cursor: default; min-width: 0;
}
.hours .b { background: #3a3a3a; border-radius: 4px 4px 1px 1px; min-height: 2px; transition: background-color .15s; }
.hours button:hover .b, .hours button:focus-visible .b { background: var(--white); }
.hours .b.is-max { background: var(--smoke); }
.hours small { font-size: 10px; color: var(--iron); text-align: center; line-height: 1; }
@media (max-width: 600px) { .hours small { visibility: hidden; } .hours button:nth-child(6n+1) small { visibility: visible; } }

/* ---------- Leads ---------- */
.leads { display: grid; gap: 8px; }
.lead {
  display: grid; gap: 6px 16px; grid-template-columns: 1fr auto;
  padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px;
}
.lead__name { font-size: 16px; font-weight: 450; }
.lead__contact { color: var(--ash); overflow-wrap: anywhere; }
.lead__meta { font-size: 12px; color: var(--iron); }
.lead__msg { grid-column: 1 / -1; color: var(--smoke); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.lead__actions { display: flex; gap: 6px; align-items: start; grid-row: 1 / 3; grid-column: 2; }
.lead select {
  background: var(--black); border: 1px solid var(--hair-strong); border-radius: var(--pill);
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.lead.is-new { border-color: var(--hair-strong); }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: var(--pill); background: var(--white); color: var(--black); margin-left: 8px; vertical-align: 2px; }
@media (max-width: 560px) {
  .lead { grid-template-columns: 1fr; }
  .lead__actions { grid-row: auto; grid-column: 1; }
}

/* ---------- Feed ---------- */
.feed { display: grid; }
.feed li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--iron); font-size: 12px; }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what em { font-style: normal; color: var(--iron); font-size: 12px; margin-right: 8px; padding: 2px 8px; border: 1px solid var(--hair); border-radius: var(--pill); }
.feed .dev { color: var(--iron); font-size: 12px; text-align: right; }
@media (max-width: 560px) { .feed li { grid-template-columns: 48px 1fr; } .feed .dev { display: none; } }

@media (max-width: 560px) {
  .top__inner { gap: 10px; }
  .brand span { display: none; }
  .top__actions a.ghost { display: none; }
  .top__actions .ghost { padding: 8px 10px; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__right { justify-content: space-between; }
  .card { padding: 16px; }
}

/* ---------- Security ---------- */
.sec { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 860px) { .sec { grid-template-columns: 1fr 1fr; } }
.sec h3, .sec__h { font-size: 13px; font-weight: 400; color: var(--iron); margin: 0 0 10px; }
.sec__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; margin-bottom: 6px; font-size: 14px; }
.sec__item .grow { flex: 1; min-width: 0; }
.sec__item small { display: block; color: var(--iron); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec__form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sec__form input, .sec__form select { background: var(--black); border: 1px solid var(--hair-strong); border-radius: var(--pill); padding: 6px 12px; font-size: 13px; min-width: 0; }
.sec__form input { flex: 1 1 140px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: var(--pill); border: 1px solid var(--hair-strong); color: var(--smoke); white-space: nowrap; }
.tag--ok { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Clickable rows ---------- */
.row--link, .feed__row[role="button"] { cursor: pointer; }
.row--link:hover .row__k, .feed__row[role="button"]:hover .what { text-decoration: underline; text-underline-offset: 3px; }
.feed__row[role="button"]:hover { background: rgba(255,255,255,.03); }

/* ---------- Lead attribution ---------- */
.lead__attr { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--hair); }
.lead__attr p { flex: 1 1 260px; font-size: 13px; color: var(--smoke); }

/* ---------- Journey drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%);
  background: #070707; border-left: 1px solid var(--hair-strong);
  overflow-y: auto; padding: 20px 22px 40px;
  animation: slidein .25s ease-out both;
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; position: sticky; top: -20px; background: #070707; padding: 20px 0 10px; margin-top: -20px; }
.drawer__head h2 { font-size: 21px; font-weight: 450; letter-spacing: -0.03em; }
.jsum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 520px) { .jsum { grid-template-columns: repeat(4, 1fr); } }
.jstat { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.jstat small { display: block; color: var(--iron); font-size: 11px; }
.jstat b { display: block; font-weight: 450; font-size: 15px; overflow-wrap: anywhere; }
.jnote { margin: 0 0 12px; }
.jleads { border: 1px solid var(--hair-strong); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.jleads h3 { font-size: 13px; font-weight: 450; color: var(--iron); margin: 0 0 6px; }
.jleads p { font-size: 14px; }
.jsess { border: 1px solid var(--hair); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.jsess__head { display: grid; gap: 2px; margin-bottom: 10px; }
.jsess__head b { font-weight: 450; font-size: 15px; }
.jsess__head small { color: var(--iron); font-size: 12px; overflow-wrap: anywhere; }
.jtimeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--hair-strong); margin-left: 6px; }
.jev { display: grid; grid-template-columns: 44px 18px 1fr; gap: 6px; align-items: baseline; padding: 5px 0 5px 12px; font-size: 13.5px; }
.jev time { color: var(--iron); font-size: 12px; }
.jev__i { color: var(--smoke); text-align: center; }
.jev--leave { color: var(--iron); }
.jev--click span:last-child { color: var(--white); }
.sec__backup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.sub-h--first { margin-top: 0; }
.grid2--flat { gap: 20px; }
.utm { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .utm { grid-template-columns: 1fr 220px; } }
.utm__form { display: grid; gap: 12px; min-width: 0; }
.utm__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .utm__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; color: var(--iron); }
.field small { color: var(--iron); opacity: .7; }
.field input, .field select { width: 100%; min-width: 0; background: var(--black); border: 1px solid var(--hair-strong); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.field input[readonly] { color: var(--ash); }
.utm__link { display: flex; gap: 8px; align-items: center; }
.utm__qr { display: grid; gap: 10px; align-content: start; justify-items: center; }
.utm__qrbox { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 10px; }
.utm__qrbox svg { display: block; width: 100%; height: 100%; }
.utm__qrbtns { display: flex; gap: 8px; }
.kpi__help { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border: 1px solid var(--hair-strong); border-radius: 50%; font-size: 10px; color: var(--iron); cursor: help; vertical-align: 1px; }
.tip .tip__text { display: block; max-width: 280px; white-space: normal; line-height: 1.45; }

/* ---------- Public demo (/demo/) ---------- */
.demo-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--hair-strong); border-radius: var(--pill); color: var(--smoke); }
.demo-bar { border: 1px solid var(--hair-strong); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; background: radial-gradient(120% 140% at 100% 0%, #161616 0%, #000 60%); margin-bottom: 8px; }
@media (min-width: 960px) { .demo-bar { grid-template-columns: 1fr auto; align-items: center; gap: 28px; } }
.demo-bar__text { display: grid; gap: 10px; max-width: 760px; }
.demo-bar h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 450; letter-spacing: -0.035em; line-height: 1.12; }
.demo-bar p { color: var(--smoke); font-size: 14.5px; line-height: 1.5; }
.demo-bar__en { color: var(--iron); font-size: 13px; }
.demo-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-bar__actions .pill { min-height: 46px; padding: 12px 24px; font-size: 15px; }
.demo-more__list { display: grid; gap: 10px; margin-bottom: 18px; }
.demo-more__list li { color: var(--smoke); font-size: 14.5px; line-height: 1.5; padding-left: 18px; position: relative; }
.demo-more__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.demo-more__list b { color: var(--white); font-weight: 500; }
@media (max-width: 560px) { .demo-tag { display: none; } .demo-bar__actions .pill, .demo-bar__actions .ghost { width: 100%; justify-content: center; } }

/* ---------- Shell: sidebar + content ---------- */
.shell { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1fr; }
.side { display: flex; gap: 2px; padding: 8px var(--gutter) 0; overflow-x: auto; scrollbar-width: none; position: sticky; top: 57px; z-index: 15; background: rgba(0,0,0,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.side::-webkit-scrollbar { display: none; }
.side::after { content: ""; flex: none; width: var(--gutter); }
@media (min-width: 960px) { .side::after { display: none; } }
.side a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--pill); color: var(--smoke); font-size: 14px; white-space: nowrap; margin-bottom: 8px; }
.side a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.side a[aria-current="page"] { background: var(--white); color: var(--black); }
.panel { display: grid; gap: 12px; }
.panel > * { min-width: 0; }
@media (min-width: 960px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .side { flex-direction: column; gap: 2px; padding: 20px 12px 20px var(--gutter); position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; border-right: 1px solid var(--hair); }
  .side a { padding: 10px 14px; margin: 0; font-size: 14.5px; }
  .wrap { max-width: none; margin: 0; }
}

/* ---------- Countries: map + list ---------- */
.geo { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .geo { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.map { width: 100%; aspect-ratio: 1000 / 389; }
.map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.map__c { fill: #fff; fill-opacity: .07; stroke: #000; stroke-width: .6; transition: fill-opacity .15s; }
.map__c.is-on { fill: #fff; }
.map__c:hover { fill-opacity: .2; }
.map__c.is-on:hover { fill-opacity: 1 !important; }
.geo__list .row__k { font-size: 13.5px; }
.cc { display: inline-block; font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .04em; padding: 1px 5px; border: 1px solid var(--hair-strong); border-radius: 5px; color: var(--smoke); vertical-align: 1px; }
