/* ==========================================================================
   Vizza AI — админ-панель. Тот же визуальный язык, что и сайт:
   чернила, бумага, штемпельный фиолетовый, гильош. Тёмная колонка навигации,
   светлая рабочая область, цифры — крупно и спокойно.
   ========================================================================== */

@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/prata-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/prata-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0030-0039; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-045F; }

:root {
  --ink: #0E1A3A; --ink-2: #36426B; --ink-3: #5F6A8F; --ink-4: #98A1BD;
  --paper: #FFFFFF; --bg: #F4F5FA; --wash: #F5F7FB; --wash-2: #EBEEF6; --line: #E3E6F0; --line-2: #C7CEE0;
  --violet: #4A2FBD; --violet-d: #39229A; --violet-t: #EEEBFB; --violet-l: #CFC6F6;
  --ok: #11734B; --ok-t: #E2F3EA; --warn: #8A5600; --warn-t: #FBF0DA; --bad: #B2332A; --bad-t: #FBE8E5;
  --sky: #2563A8; --sky-t: #E3EEFA; --gold: #B98A2E;
  --iris: linear-gradient(115deg, #CDEBDD, #CFE5F8 30%, #D8D3F7 62%, #FADFCF);
  --display: "Prata", "Times New Roman", serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --code: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r-ctl: 10px; --r-box: 16px; --r-big: 22px;
  --sh-1: 0 1px 2px rgba(14, 26, 58, .05);
  --sh-2: 0 1px 2px rgba(14, 26, 58, .04), 0 10px 28px -16px rgba(14, 26, 58, .22);
  --sh-3: 0 4px 12px rgba(14, 26, 58, .06), 0 32px 64px -28px rgba(14, 26, 58, .42);
  --side: 264px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.5 var(--text); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--violet-l); }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--s { width: 15px; height: 15px; }
.ico--l { width: 22px; height: 22px; }
.mono { font-family: var(--code); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Каркас ---------- */
.adm { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px 14px;
  color: #C9CEE3; background: #0B1532; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #26325a transparent;
  background-image:
    radial-gradient(120% 60% at 0% 0%, rgba(98, 74, 214, .32), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(37, 99, 168, .18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.035'%3E%3Cpath d='M0 120 Q60 60 120 120 T240 120'/%3E%3Cpath d='M0 140 Q60 80 120 140 T240 140'/%3E%3Cpath d='M0 100 Q60 40 120 100 T240 100'/%3E%3Cpath d='M0 160 Q60 100 120 160 T240 160'/%3E%3Cpath d='M0 80 Q60 20 120 80 T240 80'/%3E%3C/g%3E%3C/svg%3E");
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 18px; color: #fff; }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(from 210deg, #8F7BF0, #4A2FBD, #2C1C7E, #8F7BF0); box-shadow: 0 0 0 4px rgba(143, 123, 240, .16), inset 0 0 0 7px #0B1532; }
.brand__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.brand__name { font: 400 21px/1 var(--display); letter-spacing: .01em; }
.brand__tag { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #B9ADF7;
  padding: 3px 7px; border: 1px solid rgba(185, 173, 247, .32); border-radius: 999px; }
.nav__group { padding: 14px 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6E789E; }
.nav__item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #C9CEE3; font-weight: 500;
  transition: background .15s, color .15s; }
.nav__item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav__item.is-on { background: linear-gradient(90deg, rgba(143, 123, 240, .26), rgba(143, 123, 240, .08)); color: #fff; box-shadow: inset 0 0 0 1px rgba(185, 173, 247, .18); }
.nav__item.is-on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #A796FF; }
.nav__item .ico { opacity: .8; }
.nav__badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #0B1532; background: #FFD27A; box-shadow: 0 0 0 3px rgba(255, 210, 122, .14); }
.nav__badge:empty, .nav__badge[data-n="0"] { display: none; }
.side__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me:hover { background: rgba(255, 255, 255, .05); }
.me__name { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; }
.me__role { font-size: 11.5px; color: #8D96B9; }
.me__out { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #8D96B9; cursor: pointer; }
.me__out:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 32px;
  background: rgba(244, 245, 250, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(14, 26, 58, .06); }
.top__burger { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; min-width: 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--ink-4); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 38px; min-width: 260px; padding: 0 10px 0 12px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--paper); color: var(--ink-4); cursor: pointer; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.search-btn:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.search-btn kbd { margin-left: auto; }
kbd { font: 500 11px/1 var(--code); padding: 4px 6px; border-radius: 6px; background: var(--wash); border: 1px solid var(--line); color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22A36B; box-shadow: 0 0 0 0 rgba(34, 163, 107, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 107, .45); } 70% { box-shadow: 0 0 0 9px rgba(34, 163, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 163, 107, 0); } }

.page { width: 100%; max-width: 1440px; padding: 28px 32px 64px; }
.head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.head__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.head h1 { font: 400 34px/1.1 var(--display); letter-spacing: -.005em; }
.head p { margin-top: 8px; color: var(--ink-3); max-width: 720px; }
.head__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Кнопки, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid transparent;
  border-radius: var(--r-ctl); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s, box-shadow .15s, transform .08s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background: linear-gradient(180deg, #5638D0, var(--violet)); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(74, 47, 189, .8); }
.btn--primary:hover { background: linear-gradient(180deg, #4E31C4, var(--violet-d)); }
.btn--ghost { background: var(--paper); border-color: var(--line); color: var(--ink); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--line-2); background: #FBFBFE; }
.btn--soft { background: var(--violet-t); color: var(--violet-d); }
.btn--soft:hover { background: #E4DFFA; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: #0D603E; }
.btn--warn { background: var(--warn-t); color: var(--warn); }
.btn--warn:hover { background: #F6E5C2; }
.btn--danger { background: var(--paper); border-color: #F0C9C4; color: var(--bad); }
.btn--danger:hover { background: var(--bad-t); }
.btn--plain { background: transparent; color: var(--ink-3); padding: 0 10px; }
.btn--plain:hover { background: var(--wash-2); color: var(--ink); }
.btn--s { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn--icon { width: 38px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small, .hint { font-size: 12px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--paper);
  box-shadow: var(--sh-1); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { border-color: #8E7BEA; box-shadow: 0 0 0 4px rgba(74, 47, 189, .12); }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F6A8F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input--s, .select--s { height: 34px; font-size: 13px; }
.is-invalid { border-color: #E3958D !important; box-shadow: 0 0 0 4px rgba(178, 51, 42, .08) !important; }
.error { font-size: 12.5px; color: var(--bad); font-weight: 500; }
.with-icon { position: relative; }
.with-icon .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.with-icon .input { padding-left: 38px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(14,26,58,.3); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--violet); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(74, 47, 189, .18); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
.grid--wide { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.grid--side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 18px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.gap-s { gap: 6px; }

/* ---------- Карточки ---------- */
.card { background: var(--paper); border: 1px solid rgba(14, 26, 58, .07); border-radius: var(--r-box); box-shadow: var(--sh-2); min-width: 0; }
.card__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.card__head h2, .card__title { font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.card__head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.card__head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__body { padding: 18px 20px 20px; }
.card__body--flush { padding: 10px 0 6px; }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.card--hero { position: relative; overflow: hidden; color: #fff; border: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(166, 145, 255, .45), transparent 55%), linear-gradient(135deg, #1B1452, #34208F 55%, #4A2FBD); }
.card--hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Ccircle cx='320' cy='0' r='60'/%3E%3Ccircle cx='320' cy='0' r='100'/%3E%3Ccircle cx='320' cy='0' r='140'/%3E%3Ccircle cx='320' cy='0' r='180'/%3E%3Ccircle cx='320' cy='0' r='220'/%3E%3Ccircle cx='320' cy='0' r='260'/%3E%3C/g%3E%3C/svg%3E") right top no-repeat; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { font: 400 23px/1.2 var(--display); }
.section-title p { color: var(--ink-3); font-size: 13px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { position: relative; padding: 18px 18px 16px; overflow: hidden; }
.kpi__label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.kpi__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--violet-t); color: var(--violet); }
.kpi__icon--ok { background: var(--ok-t); color: var(--ok); }
.kpi__icon--warn { background: var(--warn-t); color: var(--warn); }
.kpi__icon--sky { background: var(--sky-t); color: var(--sky); }
.kpi__value { margin-top: 14px; font: 400 32px/1 var(--display); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.kpi__value small { font: 500 14px var(--text); color: var(--ink-3); margin-left: 4px; }
.kpi__foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.kpi__spark { position: absolute; right: 14px; bottom: 14px; width: 96px; height: 34px; opacity: .9; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-weight: 650; font-size: 11.5px; }
.delta--up { color: var(--ok); background: var(--ok-t); }
.delta--down { color: var(--bad); background: var(--bad-t); }
.delta--flat { color: var(--ink-3); background: var(--wash-2); }

/* ---------- Метки ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--wash-2); color: var(--ink-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip--plain::before { display: none; }
.chip--ok { background: var(--ok-t); color: var(--ok); }
.chip--warn { background: var(--warn-t); color: var(--warn); }
.chip--bad { background: var(--bad-t); color: var(--bad); }
.chip--violet { background: var(--violet-t); color: var(--violet-d); }
.chip--sky { background: var(--sky-t); color: var(--sky); }
.chip--dark { background: var(--ink); color: #fff; }
.pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--wash-2); color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--new { background: #F2A93B; box-shadow: 0 0 0 3px rgba(242, 169, 59, .2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: .02em;
  color: var(--violet-d); background: linear-gradient(135deg, #EEEBFB, #DCD5FA); box-shadow: inset 0 0 0 1px rgba(74, 47, 189, .12); }
.avatar--dark { color: #fff; background: linear-gradient(135deg, #6D57E3, #3B24A6); box-shadow: none; }
.avatar--s { width: 28px; height: 28px; font-size: 11px; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  padding: 12px 14px; background: #FAFBFD; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child { padding-left: 20px; }
.table td { padding: 13px 14px; border-bottom: 1px solid #EEF0F6; vertical-align: middle; }
.table td:first-child { padding-left: 20px; }
.table td:last-child, .table th:last-child { padding-right: 20px; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FAFAFE; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table .r { text-align: right; }
.table .c { text-align: center; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.cell-flex { display: flex; align-items: center; gap: 10px; min-width: 0; }

.progress { position: relative; height: 6px; border-radius: 999px; background: var(--wash-2); overflow: hidden; min-width: 80px; }
.progress i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #8E7BEA, var(--violet)); }
.progress--ok i { background: linear-gradient(90deg, #4BB385, var(--ok)); }

.conf { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 11.5px; font-weight: 700;
  background: conic-gradient(var(--c, var(--violet)) calc(var(--p) * 1%), var(--wash-2) 0); position: relative; }
.conf::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--paper); }
.conf span { position: relative; }
.conf--ok { --c: #1E9563; } .conf--warn { --c: #D19A1E; } .conf--bad { --c: #D2493F; }
.conf--l { width: 92px; height: 92px; font: 400 24px var(--display); }
.conf--l::before { inset: 8px; }

/* ---------- Фильтры, вкладки ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1 1 240px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--wash-2); flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--ink-3); transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px rgba(14,26,58,.05); }
.tab .pill-count { background: rgba(14, 26, 58, .06); }
.tab.is-on .pill-count { background: var(--violet-t); color: var(--violet-d); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.seg button, .seg a { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-weight: 600; font-size: 12.5px; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; }
.seg .is-on { background: var(--ink); color: #fff; }

.pager { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.pager__links { display: flex; gap: 6px; }

.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 48px 24px; color: var(--ink-3); }
.empty__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--iris); color: var(--violet-d); }
.empty b { color: var(--ink); font-size: 15px; }

/* ---------- Списки ---------- */
.list { display: grid; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #EEF0F6; transition: background .12s; }
.list__item:first-child { border-top: 0; }
a.list__item:hover { background: #FAFAFE; }
.list__main { min-width: 0; flex: 1; }
.list__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__meta { font-size: 12px; color: var(--ink-4); white-space: nowrap; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Графики ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__tip { position: absolute; z-index: 3; pointer-events: none; padding: 9px 11px; border-radius: 10px; background: #0E1A3A; color: #fff; font-size: 12px;
  box-shadow: var(--sh-3); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s; }
.chart__tip b { display: block; font-weight: 600; margin-bottom: 3px; color: #C9CEE3; font-size: 11.5px; }
.chart__tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart__tip.is-on { opacity: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.axis { font: 500 11px var(--text); fill: var(--ink-4); }
.gridline { stroke: #EDEFF5; stroke-width: 1; }
.hbars { display: grid; gap: 12px; }
.hbar__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.hbar__top b { font-weight: 600; }
.hbar__top span { color: var(--ink-3); white-space: nowrap; }
.hbar__track { height: 8px; border-radius: 999px; background: var(--wash-2); overflow: hidden; }
.hbar__track i { transition: width .6s var(--ease); display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #A291F0, var(--violet)); transform-origin: left; }
.funnel { display: grid; gap: 8px; }
.funnel__row { display: grid; grid-template-columns: minmax(96px, 160px) minmax(60px, 1fr) 46px; gap: 12px; align-items: center; font-size: 13px; }
.funnel__bar { height: 30px; border-radius: 8px; background: var(--wash); overflow: hidden; position: relative; }
.funnel__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #4A2FBD, #8E7BEA); transform-origin: left; }
.funnel__bar span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 650; font-size: 12.5px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.funnel__pct { text-align: right; color: var(--ink-3); font-size: 12.5px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-wrap .chart { width: 150px; height: 150px; flex: none; }
.donut-legend { display: grid; gap: 9px; font-size: 13px; flex: 1; min-width: 0; }
.donut-legend div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 4px 9px; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-legend span { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; }
.donut-legend small { grid-column: 2 / -1; margin-top: -4px; color: var(--ink-4); font-size: 11.5px; }
.skeleton { border-radius: 12px; min-height: 120px; background: linear-gradient(90deg, #F0F2F8 25%, #F7F8FC 50%, #F0F2F8 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Чат ---------- */
.chat { display: flex; flex-direction: column; height: 620px; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 10px; background:
  radial-gradient(circle at 1px 1px, rgba(14, 26, 58, .05) 1px, transparent 0) 0 0 / 18px 18px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; box-shadow: var(--sh-1); overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble small { display: block; margin-top: 5px; font-size: 11px; opacity: .7; white-space: normal; }
.bubble--client { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 5px; }
.bubble--staff { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #5638D0, #4A2FBD); border-top-right-radius: 5px; }
.chat__form { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--paper); border-radius: 0 0 var(--r-box) var(--r-box); }
.chat__form .textarea { min-height: 72px; }
.chat__empty { margin: auto; text-align: center; color: var(--ink-3); font-size: 13px; max-width: 260px; }

/* ---------- Документы ---------- */
.doc { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid #EEF0F6; }
.doc:first-child { border-top: 0; }
.doc__icon { width: 38px; height: 46px; border-radius: 6px; flex: none; display: grid; place-items: center; color: var(--violet); background: var(--iris); box-shadow: inset 0 0 0 1px rgba(14,26,58,.06); }
.doc__icon--bad { background: var(--bad-t); color: var(--bad); }
.doc__main { flex: 1; min-width: 0; }
.doc__title { font-weight: 600; }
.doc__why { font-size: 12.5px; color: var(--bad); margin-top: 2px; }

.steps { display: flex; gap: 4px; }
.steps i { flex: 1; height: 6px; border-radius: 999px; background: var(--wash-2); }
.steps i.done { background: var(--violet); }
.steps i.now { background: linear-gradient(90deg, var(--violet), #B5A8F3); }
.steplist { display: grid; gap: 2px; counter-reset: s; }
.steplist li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--ink-4); }
.steplist li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid var(--line-2); flex: none; }
.steplist li.done { color: var(--ink-2); }
.steplist li.done::before { content: "✓"; background: var(--violet); border-color: var(--violet); color: #fff; }
.steplist li.now { color: var(--ink); font-weight: 650; }
.steplist li.now::before { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 4px var(--violet-t); }
.steplist { margin: 0; padding: 0; }

.timeline { display: grid; gap: 0; }
.timeline__item { position: relative; padding: 0 0 16px 22px; font-size: 13px; }
.timeline__item::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px var(--violet-t); }
.timeline__item::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline__item:last-child::after { display: none; }
.timeline__item small { display: block; color: var(--ink-4); font-size: 11.5px; }

/* ---------- Код (JSON) ---------- */
.code { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0D1530; box-shadow: var(--sh-2); }
.code__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: #121B3B; border-bottom: 1px solid #1E2A50; color: #8D96B9; font-size: 12px; }
.code__bar .btn--plain { color: #AEB5D3; }
.code__bar .btn--plain:hover { background: #1E2A50; color: #fff; }
.code__status { display: inline-flex; align-items: center; gap: 6px; }
.code__status i { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; }
.code__status.is-bad { color: #FF9C93; }
.code__status.is-bad i { background: #FF6B5E; }
.code__area { position: relative; height: 560px; }
.code__area pre, .code__area textarea { position: absolute; inset: 0; margin: 0; padding: 14px 16px 14px 58px; font: 400 12.75px/1.65 var(--code); white-space: pre; overflow: auto; tab-size: 2; border: 0; }
.code__area pre { pointer-events: none; color: #D6DBF0; }
.code__area textarea { resize: none; outline: none; background: transparent; color: transparent; caret-color: #fff; }
.code__area textarea::selection { background: rgba(143, 123, 240, .35); color: transparent; }
.code__gutter { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; padding: 14px 8px 0 0; text-align: right; font: 400 12.75px/1.65 var(--code); color: #45507A; background: #0B1229; border-right: 1px solid #1A2447; overflow: hidden; user-select: none; }
.j-key { color: #A796FF; } .j-str { color: #8FE3B8; } .j-num { color: #FFC978; } .j-bool { color: #FF8FB1; } .j-null { color: #8D96B9; }

/* ---------- Окна, тосты, палитра ---------- */
dialog { border: 0; padding: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: var(--sh-3); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(11, 21, 50, .45); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal { width: 520px; }
.modal__head { padding: 22px 24px 4px; }
.modal__head h3 { font: 400 22px/1.2 var(--display); }
.modal__head p { color: var(--ink-3); margin-top: 6px; font-size: 13.5px; }
.modal__body { padding: 16px 24px; display: grid; gap: 14px; }
.modal__foot { padding: 14px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

.palette { width: 620px; margin-top: 12vh; }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__input input { flex: 1; border: 0; outline: none; font-size: 16px; background: transparent; }
.palette__list { max-height: 420px; overflow-y: auto; padding: 8px; }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.palette__item.is-on { background: var(--violet-t); }
.palette__item small { margin-left: auto; font-size: 11.5px; color: var(--ink-4); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.palette__foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-4); }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 10px; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 300px; max-width: 420px; padding: 13px 14px; border-radius: 14px; background: #0E1A3A; color: #fff; box-shadow: var(--sh-3);
  animation: toast .32s var(--ease); font-size: 13.5px; }
.toast .ico { color: #6EE7B0; margin-top: 1px; }
.toast--bad .ico { color: #FF9C93; }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; background: var(--violet-t); color: var(--violet-d); }
.alert--warn { background: var(--warn-t); color: var(--warn); }
.alert--bad { background: var(--bad-t); color: var(--bad); }
.alert--ok { background: var(--ok-t); color: var(--ok); }
.alert b { display: block; margin-bottom: 2px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font: 500 14px var(--code); }
.codes span { padding: 8px 12px; border-radius: 9px; background: var(--wash); border: 1px dashed var(--line-2); text-align: center; }

/* ---------- Страны ---------- */
.ctry { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ctry__card { position: relative; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; transition: transform .18s var(--ease), box-shadow .18s; }
.ctry__card:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.ctry__top { display: flex; align-items: center; gap: 12px; }
.ctry__top .flag { width: 36px; height: 24px; border-radius: 4px; }
.ctry__name { font: 400 19px/1.1 var(--display); }
.ctry__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ctry__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ctry__card.is-off { opacity: .72; }

/* ---------- Вход ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.auth__art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(90% 70% at 85% 10%, rgba(166, 145, 255, .55), transparent 60%), radial-gradient(70% 60% at 10% 100%, rgba(37, 99, 168, .45), transparent 60%), #0B1532; }
.auth__art::before { content: ""; position: absolute; inset: -20%; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Ccircle cx='300' cy='300' r='40'/%3E%3Ccircle cx='300' cy='300' r='80'/%3E%3Ccircle cx='300' cy='300' r='120'/%3E%3Ccircle cx='300' cy='300' r='160'/%3E%3Ccircle cx='300' cy='300' r='200'/%3E%3Ccircle cx='300' cy='300' r='240'/%3E%3Ccircle cx='300' cy='300' r='280'/%3E%3Cpath d='M0 300 Q150 150 300 300 T600 300'/%3E%3Cpath d='M0 330 Q150 180 300 330 T600 330'/%3E%3Cpath d='M0 270 Q150 120 300 270 T600 270'/%3E%3C/g%3E%3C/svg%3E") center / 900px no-repeat; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth__art > * { position: relative; }
.auth__quote { max-width: 460px; }
.auth__quote h2 { font: 400 44px/1.1 var(--display); letter-spacing: -.01em; }
.auth__quote p { margin-top: 16px; color: #B8BFDB; font-size: 15px; line-height: 1.6; }
.auth__stamp { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--code); letter-spacing: .14em; color: #A796FF; text-transform: uppercase; }
.auth__form { display: grid; place-items: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 380px; display: grid; gap: 18px; }
.auth__box h1 { font: 400 32px/1.15 var(--display); }
.auth__box .lead { color: var(--ink-3); margin-top: -8px; }
.otp { letter-spacing: .5em; text-align: center; font: 500 22px var(--code) !important; height: 54px !important; }
.qr { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; width: max-content; margin: 0 auto; box-shadow: var(--sh-2); }
.secret { font: 500 13px var(--code); letter-spacing: .08em; word-break: break-all; padding: 10px 12px; border-radius: 10px; background: var(--wash); text-align: center; }

/* ---------- Флаги (как на сайте) ---------- */
.flag { position: relative; display: inline-block; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(14, 26, 58, .14); background: #fff; }
.flag--jp { background: radial-gradient(circle at 50% 50%, #BC002D 0 30%, #fff 31%); }
.flag--us { background: linear-gradient(#3C3B6E, #3C3B6E) 0 0 / 42% 54% no-repeat, repeating-linear-gradient(#B22234 0 7.7%, #fff 7.7% 15.4%); }
.flag--fr { background: linear-gradient(90deg, #0055A4 33.3%, #fff 33.3% 66.6%, #EF4135 66.6%); }
.flag--es { background: linear-gradient(#AA151B 25%, #F1BF00 25% 75%, #AA151B 75%); }
.flag--cz { background: linear-gradient(#fff 50%, #D7141A 50%); }
.flag--cz::before { content: ""; position: absolute; inset: 0; background: #11457E; clip-path: polygon(0 0, 50% 50%, 0 100%); }
.flag--hu { background: linear-gradient(#CE2939 33.3%, #fff 33.3% 66.6%, #477050 66.6%); }
.flag--at { background: linear-gradient(#ED2939 33.3%, #fff 33.3% 66.6%, #ED2939 66.6%); }
.flag--de { background: linear-gradient(#000 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.flag--it { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #CE2B37 66.6%); }
.flag--dk { background: linear-gradient(90deg, transparent 30%, #fff 30% 42%, transparent 42%), linear-gradient(transparent 42%, #fff 42% 58%, transparent 58%), #C8102E; }
.flag--be { background: linear-gradient(90deg, #000 33.3%, #FDDA24 33.3% 66.6%, #EF3340 66.6%); }
.flag--gb { background: linear-gradient(90deg, transparent 42%, #C8102E 42% 58%, transparent 58%), linear-gradient(transparent 38%, #C8102E 38% 62%, transparent 62%), #012169; }
.flag--kr { background: radial-gradient(circle at 50% 50%, #CD2E3A 0 22%, #fff 23%); }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--main, .grid--wide { grid-template-columns: 1fr; }
  .code__bar .hint { display: none; }
  .chat { height: 520px; }
}
@media (max-width: 1180px) {
  .search-btn { min-width: 0; }
  .search-btn span { display: none; }
}
@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--sh-3); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(11, 21, 50, .4); }
  .top { padding: 0 16px; }
  .top__burger { display: grid; }
  .search-btn { min-width: 0; }
  .search-btn span, .search-btn kbd, .live span { display: none; }
  .page { padding: 20px 16px 48px; }
  .grid--2, .grid--3, .grid--4, .grid--side { grid-template-columns: 1fr; }
  .grid--side .stack { position: static !important; }
  .span-2 { grid-column: auto; }
  .head h1 { font-size: 28px; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; }
  .toast { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Настройки обычной формой (data-json-form) ---------- */
.jf__top { display: grid; gap: 14px; }
.jf__top > .jf__grid { background: var(--paper); border: 1px solid rgba(14, 26, 58, .07); border-radius: var(--r-box); box-shadow: var(--sh-2); padding: 20px; }
.jf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px 18px; align-items: start; }
.jf__grid:empty { display: none; }
.jf__wide { grid-column: 1 / -1; }
.jf__sec { background: var(--paper); border: 1px solid rgba(14, 26, 58, .07); border-radius: var(--r-box); box-shadow: var(--sh-2); }
.jf__obj .jf__sec { box-shadow: none; background: var(--wash); }
.jf__sec > summary { cursor: pointer; padding: 14px 20px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.jf__sec > summary::-webkit-details-marker { display: none; }
.jf__sec > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.jf__sec[open] > summary::before { transform: rotate(45deg); }
.jf__secbody { padding: 0 20px 18px; }
.jf__list { display: grid; gap: 10px; justify-items: start; }
.jf__list > * { width: 100%; }
.jf__list > .btn { width: auto; }
.jf__row, .jf__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.jf__item { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--paper); }
.jf__pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.jf__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 16px; }
.jf__del { color: var(--ink-3); }
.jf__del:hover { color: var(--bad, #c0392b); }
