@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/cormorant-garamond-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/cormorant-garamond-latin-600-normal.woff2) 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;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/cormorant-garamond-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/cormorant-garamond-latin-700-normal.woff2) 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;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/manrope-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:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/manrope-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+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:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/manrope-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/manrope-latin-600-normal.woff2) 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;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url(/static/fonts/manrope-cyrillic-800-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url(/static/fonts/manrope-latin-800-normal.woff2) 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 {
  --navy: #0e2a47; --navy-deep: #0a1f36; --navy-2: #22344d;
  --gold: #c9a227; --gold-soft: #e9c767;
  --paper: #0b223d; --paper-2: rgba(255,255,255,.05); --line: rgba(255,255,255,.1); --card: rgba(255,255,255,.045); --field: rgba(255,255,255,.06);
  --ink: #eef2f7; --muted: rgba(238,242,247,.64); --faint: rgba(238,242,247,.42);
  --st-done: #4a7d5d; --st-review: #b08a17; --st-work: #3d6491; --st-new: #8d99a8; --st-cancel: #a85a44; --st-wait: #7c6aa8;
  --red: #f08a72; --red-bg: rgba(240,138,114,.14); --green-bg: rgba(76,168,114,.16); --gold-bg: rgba(201,162,39,.16);
  --radius: 16px; --shadow: 0 10px 30px rgba(0,0,0,.18); color-scheme: dark;
  --s-done: #4ca872; --s-work: #5b8fd1; --s-review: #b88c1c; --s-wait: #9476d8; --s-cancel: #d0705a; --s-new: #7d8a9c;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 700px at 80% -10%, #17365c 0%, rgba(23,54,92,0) 60%) fixed, linear-gradient(180deg, #0a1f36 0%, #0c2440 100%) fixed; background-color: #0b223d; color: var(--ink); font: 15px/1.55 var(--sans); }
select option { background: #0c2440; color: #fff; }
::selection { background: rgba(233,199,103,.35); }
a { color: var(--ink); text-decoration-color: rgba(233,199,103,.55); text-underline-offset: 3px; }
a:hover { color: #f3dc94; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: 34px; } h2 { font-size: 24px; } h3 { font-size: 18px; font-family: var(--sans); font-weight: 650; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* каркас */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; margin: 0 6px 22px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand b { font-family: var(--display); font-size: 19px; display: block; line-height: 1.1; }
.brand span { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.nav-group { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin: 16px 8px 6px; font-weight: 700; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 9px;
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a.on { background: rgba(233,199,103,.14); color: #fff; font-weight: 600; }
.badge { background: var(--gold); color: var(--navy); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; min-width: 20px; text-align: center; }
.side-foot { margin-top: 24px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.6); }
.side-foot button { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 99px; padding: 3px 12px; cursor: pointer; margin-top: 8px; }
.main { padding: 28px 36px 60px; max-width: 1180px; width: 100%; }
.topbar { display: none; }

/* карточки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kpi .v { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 6px; }
.kpi.alert .v { color: var(--red); }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 24px 26px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .muted { color: rgba(255,255,255,.65); }
.hero .eyebrow { color: var(--gold-soft); }
.bar { height: 8px; background: rgba(14,42,71,.08); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.hero .bar { background: rgba(255,255,255,.14); }

/* кнопки и поля */
.btn { color: var(--ink); border: 1px solid var(--line); background: var(--field); border-radius: 10px; padding: 7px 14px; cursor: pointer; font-weight: 550; font-size: 14px; }
.btn:hover { border-color: rgba(233,199,103,.6); background: rgba(255,255,255,.1); }
.btn.primary { background: linear-gradient(145deg, #e9c767, #c9a227); color: #0a1f36; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=date], input[type=search], select, textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: var(--field); color: var(--ink); width: 100%; outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
textarea { min-height: 80px; resize: vertical; }
label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
label.f em { font-weight: 400; color: var(--muted); font-style: normal; }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { color: var(--ink); border: 1px solid var(--line); background: var(--field); border-radius: 99px; padding: 3px 11px; font-size: 13px; cursor: pointer; }
.chip.on { background: #e9c767; color: #0a1f36; border-color: #e9c767; font-weight: 700; }

/* статусы */
.st { display: inline-block; border-radius: 99px; font-size: 12px; font-weight: 600; padding: 1px 9px; white-space: nowrap; }
.st-done { background: var(--green-bg); color: var(--st-done); }
.st-review { background: var(--gold-bg); color: var(--st-review); }
.st-in-progress { background: #e1e9f3; color: var(--st-work); }
.st-not-started { background: #eceef1; color: #5d6a7a; }
.st-cancelled { background: #f3e4df; color: var(--st-cancel); }
.st-waiting { background: #ebe7f4; color: var(--st-wait); }
.flag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 0 6px; }
.flag.red { background: var(--red-bg); color: var(--red); }
.flag.gray { background: #eceef1; color: #5d6a7a; }
.flag.gold { background: var(--gold-bg); color: var(--st-review); }
.flag.agent { background: #e6e2f2; color: #4f4180; }

/* таблица задач */
.tlist { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.trow { display: grid; grid-template-columns: 52px 1fr 190px 96px 118px; gap: 12px; padding: 11px 16px; border-top: 1px solid #efe9dc; align-items: start; cursor: pointer; }
.trow:first-child { border-top: 0; }
.trow:hover { background: var(--paper-2); }
.trow .id { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.trow .t { font-weight: 550; }
.trow .sec { font-size: 12px; color: var(--faint); margin-top: 2px; }
.thead { background: rgba(255,255,255,.06); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; font-size: 12px; font-weight: 600; cursor: default; }
.thead:hover { background: rgba(255,255,255,.06); }

/* панель задачи */
.drawer-bg { position: fixed; inset: 0; background: rgba(10,31,54,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--paper-2); z-index: 41; overflow-y: auto; padding: 24px 26px 60px; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.drawer .x { position: absolute; top: 14px; right: 16px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.act-work { border-color: var(--st-work); color: var(--st-work); }
.act-done { border-color: var(--st-done); color: var(--st-done); }
.act-move { border-color: var(--st-review); color: var(--st-review); }
.act-block { border-color: var(--red); color: var(--red); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--gold); position: absolute; left: -5px; top: 14px; }
.timeline li.agent::before { background: #6b5aa6; }
.inline-form { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }

/* моё сегодня */
.today-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.ring-wrap { text-align: center; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tcard.over { border-left: 4px solid var(--red); }
.tcard.blocked { border-left: 4px solid var(--red); background: rgba(240,138,114,.06); }
.tcard .meta { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.marked { font-size: 12.5px; font-weight: 600; color: var(--st-done); }

/* списки */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-top: 1px solid #efe9dc; }
.list li:first-child { border-top: 0; }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 18px; text-align: center; font-size: 14px; }
.warn { background: var(--gold-bg); border: 1px solid #ead9a2; color: #6b5310; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.err { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.ok { background: var(--green-bg); color: var(--st-done); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.pre { white-space: pre-wrap; font-size: 14px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .12em; background: var(--paper); border: 1px dashed var(--gold); padding: 8px 12px; border-radius: 10px; display: inline-block; }

/* вход */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; text-align: center; padding: 32px 28px; }
.login input { text-align: center; letter-spacing: .14em; font-weight: 600; margin: 18px 0 10px; }

/* тост */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #e9c767; color: #0a1f36; font-weight: 600; padding: 10px 18px; border-radius: 12px; z-index: 60; font-size: 14px; box-shadow: var(--shadow); max-width: 92vw; }
.toast.bad { background: var(--red); }

.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: #e9c767; color: #0a1f36; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

.sv-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid #efe9dc; }
.sv-row:first-child { border-top: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { color: var(--ink); border: 0; background: var(--field); padding: 5px 10px; font-size: 13px; cursor: pointer; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: #e9c767; color: #0a1f36; font-weight: 700; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 50; transform: translateX(-102%); transition: transform .2s; height: 100%; }
  .side.open { transform: none; box-shadow: 10px 0 30px rgba(0,0,0,.25); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
  .topbar b { font-family: var(--display); font-size: 18px; }
  .main { padding: 18px 16px 60px; }
  .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > :first-child { grid-column: 1 / -1; }
  .trow { grid-template-columns: 40px 1fr; }
  .trow > :nth-child(n+3) { grid-column: 2; }
  .thead { display: none; }
  .today-grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
@media (max-width: 520px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* справочник */
.md { max-width: 78ch; }
.md h2 { font-size: 22px; margin: 22px 0 8px; } .md h3 { font-size: 17px; margin: 18px 0 6px; } .md h4, .md h5 { font-size: 15px; margin: 14px 0 4px; font-family: var(--sans); }
.md p { margin: 0 0 10px; } .md ul { margin: 0 0 12px; padding-left: 20px; } .md li { margin-bottom: 4px; }
.md .eyebrow { margin-top: 14px; }
.md-table { overflow-x: auto; margin: 0 0 14px; } .md-table table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; } .md-table th { background: var(--paper-2); }
.md-img { display: block; margin: 8px 0 14px; overflow-x: auto; } .md-img img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.ref-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; } .ref-card:hover { border-color: var(--gold); }
.ref-card .flag { align-self: flex-start; }

/* ===== Пульт колеса (главная) ===== */
.dark-zone { overflow-x: clip; background: radial-gradient(1200px 700px at 78% -10%, #17365c 0%, rgba(23,54,92,0) 60%), linear-gradient(180deg, #0a1f36 0%, #0c2440 100%); min-height: 100vh; color: #fff;
  --pl-text: #ffffff; --pl-mute: rgba(255,255,255,.62); --pl-faint: rgba(255,255,255,.4); --pl-card: rgba(255,255,255,.045); --pl-line: rgba(255,255,255,.09); --pl-gold: #e9c767; --pl-gold2: #c9a227;
  --s-done: #4ca872; --s-work: #5b8fd1; --s-review: #b88c1c; --s-wait: #9476d8; --s-cancel: #d0705a; --s-new: #7d8a9c; }
.dark-zone .topbar { background: #0a1f36; }
.pult { position: relative; }
.pult::before { content: ""; position: absolute; right: -120px; top: -140px; width: 760px; height: 760px; background: url(/static/texture.svg) center/contain no-repeat; opacity: .9; pointer-events: none; }
.pult h1, .pult h2, .pult h3 { color: var(--pl-text); }
.pl-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pl-gold2); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pl-eyebrow .live { display: inline-flex; align-items: center; gap: 6px; color: #7fd1a0; letter-spacing: .12em; }
.pl-eyebrow .live i { width: 7px; height: 7px; border-radius: 99px; background: #4ca872; box-shadow: 0 0 0 0 rgba(76,168,114,.7); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(76,168,114,.6); } 70% { box-shadow: 0 0 0 9px rgba(76,168,114,0); } 100% { box-shadow: 0 0 0 0 rgba(76,168,114,0); } }
.pl-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; position: relative; }
.pl-title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; margin: 14px 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.pl-title em { font-style: normal; color: var(--pl-gold2); }
.pl-lead { color: var(--pl-mute); font-size: 16px; max-width: 52ch; margin: 0 0 20px; }
.pl-lead b { color: #fff; font-weight: 600; }
.countdown { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.cd-cell { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 14px; padding: 10px 14px 8px; min-width: 76px; text-align: center; }
.cd-cell b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--pl-gold); font-variant-numeric: tabular-nums; }
.cd-cell span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-faint); }
.cd-label { align-self: center; color: var(--pl-mute); font-size: 13px; max-width: 150px; line-height: 1.35; }
.beads { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.bead { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; border: 1.5px solid rgba(233,199,103,.45); color: var(--pl-gold); text-decoration: none; transition: transform .15s; }
.bead.on { background: linear-gradient(145deg, #e9c767, #b88c1c); color: #0a1f36; border-color: transparent; box-shadow: 0 0 14px rgba(233,199,103,.35); }
.bead:hover { transform: translateY(-2px) scale(1.08); }
.beads-label { font-size: 12.5px; color: var(--pl-mute); margin-left: 6px; }
.wheel-box { position: relative; max-width: 480px; width: 100%; justify-self: center; }
.wheel-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.wheel-box .med { cursor: pointer; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.wheel-box .med:hover { transform: scale(1.12); }
.wheel-box .med .ping { transform-box: fill-box; transform-origin: center; opacity: 0; }
.wheel-box .med.pinged .ping { animation: ping 1.4s ease-out 2; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }
.wheel-hand { transition: transform .9s cubic-bezier(.2,.8,.2,1); transform-origin: 220px 220px; }
.pl-grid { display: grid; gap: 16px; margin-top: 26px; position: relative; }
.pl-row2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pl-row3 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1fr); }
.pl-card { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 18px; padding: 18px 20px; backdrop-filter: blur(2px); min-width: 0; }
.pl-card h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pl-gold2); margin: 0 0 12px; display: flex; justify-content: space-between; gap: 8px; }
.pl-card h3 a { color: var(--pl-mute); letter-spacing: .06em; text-transform: none; font-weight: 500; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tile { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; display: block; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: rgba(233,199,103,.45); transform: translateY(-2px); }
.tile .k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pl-faint); font-weight: 700; }
.tile .v { font-family: var(--display); font-size: 44px; line-height: 1.05; color: var(--pl-gold); font-variant-numeric: tabular-nums; margin-top: 4px; }
.tile .v small { font-size: 22px; color: var(--pl-mute); }
.tile .s { font-size: 12.5px; color: var(--pl-mute); margin-top: 2px; }
.tile .tbar { height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.tile .tbar i { display: block; height: 100%; background: linear-gradient(90deg, #b88c1c, #e9c767); border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.tile.alert .v { color: #f08a72; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--pl-line); font-size: 13.5px; }
.feed li:first-child { border-top: 0; }
.feed li.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { 0% { background: rgba(233,199,103,.22); transform: translateX(-8px); } 100% { background: transparent; transform: none; } }
.av { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #16365b; color: var(--pl-gold); border: 1px solid rgba(233,199,103,.35); }
.av.agent { background: #2b2352; color: #c9b8ff; border-color: rgba(201,184,255,.4); }
.feed .who { font-weight: 700; color: #fff; }
.feed .what { color: var(--pl-mute); }
.feed .what a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.35); }
.feed .meta { font-size: 11.5px; color: var(--pl-faint); margin-top: 2px; }
.feed .via { color: #7fb8ff; }
.feed-empty { color: var(--pl-mute); font-size: 14px; padding: 18px 4px; line-height: 1.5; }
.chip-st { display: inline-block; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 8px; margin-left: 4px; color: #0a1f36; }
.donut-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.donut-wrap svg { width: 132px; height: 132px; }
.donut-wrap path { cursor: pointer; transition: opacity .2s; }
.donut-wrap.hovering path:not(.hl) { opacity: .28; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.legend li { white-space: nowrap; display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; cursor: pointer; color: var(--pl-mute); }
.legend li:hover, .legend li.hl { background: rgba(255,255,255,.06); color: #fff; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.tempo svg { width: 100%; height: 150px; display: block; }
.tempo .verdict { font-size: 13.5px; color: #fff; margin-top: 8px; }
.tempo .lg { display: flex; gap: 14px; font-size: 12px; color: var(--pl-mute); margin-top: 6px; }
.tempo .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.heat { display: grid; gap: 4px; font-size: 11.5px; }
.heat .hrow { display: grid; grid-template-columns: 112px repeat(10, 1fr); gap: 4px; align-items: center; }
.heat .hn { color: var(--pl-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat .hc { height: 18px; border-radius: 4px; background: rgba(255,255,255,.05); }
.heat .hd { color: var(--pl-faint); text-align: center; font-size: 10px; }
.hot li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--pl-line); font-size: 13.5px; }
.hot li:first-child { border-top: 0; }
.hot a { color: #fff; text-decoration: none; }
.hot .num { color: var(--pl-gold); font-weight: 800; }
.hot .tag { font-size: 11.5px; font-weight: 700; color: #f08a72; background: rgba(240,138,114,.12); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.pl-tip { white-space: pre-line; position: fixed; z-index: 80; background: #061426; color: #fff; border: 1px solid rgba(233,199,103,.4); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 260px; }
@media (max-width: 1100px) { .pl-row3 { grid-template-columns: 1fr 1fr; } .pl-row3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .pl-hero, .pl-row2, .pl-row3 { grid-template-columns: 1fr; } .pult::before { width: 420px; height: 420px; right: -160px; } .donut-wrap { grid-template-columns: 120px 1fr; } .donut-wrap svg { width: 120px; height: 120px; } .cd-cell b { font-size: 32px; } .cd-cell { min-width: 62px; } }
@media (prefers-reduced-motion: reduce) { .wheel-hand, .tile .tbar i { transition: none; } .feed li.fresh, .wheel-box .med.pinged .ping, .pl-eyebrow .live i { animation: none; } }

.pult, .pult svg text, .cd-cell b, .tile .v { font-variant-numeric: lining-nums tabular-nums; }
.shell { background: var(--navy); }
.shell > div:last-child { background: var(--paper); min-width: 0; }
.shell > div.dark-zone { background: radial-gradient(1200px 700px at 78% -10%, #17365c 0%, rgba(23,54,92,0) 60%), linear-gradient(180deg, #0a1f36 0%, #0c2440 100%); }

/* ===== тёмная тема для всех экранов ===== */
h1, h2, h3 { color: var(--ink); }
h1 { font-size: 40px; letter-spacing: -.01em; }
.eyebrow { color: #c9a227; }
.card { background: var(--card); border-color: var(--line); box-shadow: none; }
.kpi .v { color: #e9c767; }
.kpi.alert .v { color: var(--red); }
.shell > div:last-child, .shell > div.dark-zone { background: transparent; }
.shell { background: transparent; }
.side { background: rgba(6,20,38,.72); backdrop-filter: blur(6px); border-right: 1px solid rgba(255,255,255,.06); }
.trow { border-top-color: var(--line); transition: background .15s; }
.trow:hover { background: rgba(255,255,255,.05); }
.trow .t { color: var(--ink); }
.st-done { background: rgba(76,168,114,.18); color: #7fd1a0; }
.st-review { background: rgba(201,162,39,.2); color: #f0d27a; }
.st-in-progress { background: rgba(91,143,209,.2); color: #9cc0f0; }
.st-not-started { background: rgba(255,255,255,.08); color: #c3cad4; }
.st-cancelled { background: rgba(208,112,90,.18); color: #f2a693; }
.st-waiting { background: rgba(148,118,216,.2); color: #c7b5f5; }
.flag.red { background: rgba(240,138,114,.16); color: #f5a893; }
.flag.gray { background: rgba(255,255,255,.08); color: #c3cad4; }
.flag.gold { background: rgba(201,162,39,.18); color: #f0d27a; }
.flag.agent { background: rgba(148,118,216,.2); color: #c7b5f5; }
.act-work { border-color: #5b8fd1; color: #9cc0f0; } .act-done { border-color: #4ca872; color: #7fd1a0; }
.act-move { border-color: #c9a227; color: #f0d27a; } .act-block { border-color: #d0705a; color: #f5a893; }
.warn { background: rgba(201,162,39,.12); border-color: rgba(201,162,39,.35); color: #f0d27a; }
.err { background: rgba(240,138,114,.12); color: #f5a893; }
.ok { background: rgba(76,168,114,.14); color: #8fdcad; }
.drawer { background: #0c2440; border-left: 1px solid rgba(233,199,103,.25); }
.drawer-bg { background: rgba(3,10,20,.55); backdrop-filter: blur(2px); }
.timeline li { border-left-color: rgba(255,255,255,.12); }
.login .card { background: rgba(255,255,255,.05); border-color: rgba(233,199,103,.25); }
.code { background: rgba(255,255,255,.06); }
.list li { border-top-color: var(--line); }
.marked { color: #7fd1a0; }
.md-table th { background: rgba(255,255,255,.06); }
.md-img img { border-color: var(--line); }
.bar { background: rgba(255,255,255,.1); }
.card, .tcard, .tile, .pl-card, .ref-card { transition: transform .2s, border-color .2s, background .2s; }
a.card:hover, .ref-card:hover { transform: translateY(-2px); border-color: rgba(233,199,103,.45); }
.main > * { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: .0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .main > * { animation: none; } }

/* ===== Справочник: плашки, разделы, виджеты ===== */
body { font-variant-numeric: lining-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--gold-soft)); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 10px var(--tone, transparent); }
.ref-hero { position: relative; margin: 8px 0 18px; padding: 26px 28px; border-radius: 22px; border: 1px solid rgba(233,199,103,.22); background: radial-gradient(600px 240px at 90% 0%, rgba(233,199,103,.13), transparent 70%), linear-gradient(135deg, rgba(29,63,102,.75), rgba(11,34,61,.6)); overflow: hidden; }
.ref-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed rgba(233,199,103,.25); animation: spin 60s linear infinite; }
.ref-hero h1 { font-size: 42px; margin-bottom: 6px; }
.ref-hero.page h1 { font-size: 38px; }
.ref-hero > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.ref-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 16px; }
.ref-stats div { display: flex; align-items: baseline; gap: 7px; } .ref-stats b { font-family: var(--display); font-size: 38px; color: var(--gold-soft); line-height: 1; } .ref-stats span { color: var(--muted); font-size: 13px; }
.ref-search { margin: 20px 0 6px; } .ref-search input { font-size: 15px; padding: 12px 16px; border-radius: 14px; }
.ref-groups { display: grid; gap: 22px; margin-top: 14px; }
.ref-group-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .ref-group-h b { font-family: var(--display); font-size: 24px; }
.ref-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(233,199,103,.12); color: var(--gold-soft); border: 1px solid rgba(233,199,103,.3); }
.ref-plaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ref-plaque { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: inherit; overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s, border-color .2s, background .2s; }
.ref-plaque.in { opacity: 1; transform: none; }
.ref-plaque::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(233,199,103,.1) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.ref-plaque:hover { border-color: rgba(233,199,103,.5); background: rgba(233,199,103,.06); transform: translateY(-3px); color: inherit; }
.ref-plaque:hover::before { transform: translateX(100%); }
.ref-plaque b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.ref-plaque-n { font-family: var(--display); font-size: 26px; color: var(--gold-soft); line-height: 1; min-width: 32px; }
.ref-plaque-go { color: var(--gold-soft); font-size: 18px; transition: transform .25s; } .ref-plaque:hover .ref-plaque-go { transform: translateX(5px); }
.ref-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ref-plaque.nav { display: flex; flex-direction: column; gap: 3px; opacity: 1; transform: none; } .ref-plaque.nav.next { text-align: right; align-items: flex-end; }
.ref-hub { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 8px; }
.ref-hub-side h3 { font-family: var(--display); font-size: 26px; }
.ref-hub-cap { display: flex; gap: 12px; align-items: flex-start; min-height: 88px; margin: 14px 0; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.ref-prev { background: rgba(255,255,255,.03); max-height: 72vh; overflow: auto; }
/* оглавление-плашки */
.rtoc { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 0 0 8px; background: linear-gradient(180deg, #0b223d 70%, rgba(11,34,61,0)); scrollbar-width: none; }
.rtoc::-webkit-scrollbar { display: none; }
.rtoc a { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); font-size: 13px; text-decoration: none; color: var(--muted); transition: all .25s; white-space: nowrap; }
.rtoc a span { font-size: 11px; font-weight: 800; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--gold-soft); }
.rtoc a:hover { color: var(--ink); border-color: rgba(233,199,103,.45); }
.rtoc a.on { background: #e9c767; color: #0a1f36; border-color: #e9c767; font-weight: 700; } .rtoc a.on span { background: #0a1f36; }
/* разделы */
.md.rich { max-width: none; }
.rintro { margin: 4px 0 18px; } .rintro > p, .rintro > ul { max-width: 82ch; } .rintro .lead, .md p.lead { font-size: 17px; line-height: 1.6; color: var(--ink); }
.rsec { scroll-margin-top: 64px; margin: 0 0 16px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s, border-color .3s; }
.rsec.in { opacity: 1; transform: none; } .rsec:hover { border-color: rgba(233,199,103,.28); }
.rsec-h { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.rsec-h h2 { margin: 0; font-size: 26px; }
.rsec-n { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 22px; font-weight: 700; color: #0a1f36; background: linear-gradient(135deg, #f3dc94, #c9a227); box-shadow: 0 6px 18px rgba(201,162,39,.25); }
.rsec-h .eyebrow { margin-bottom: 2px; }
.rsec-b > p, .rsec-b > ul { max-width: 82ch; }
.md .lbl { color: var(--gold-soft); font-weight: 700; }
.rlist { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.rlist li { position: relative; padding: 8px 12px 8px 32px; border-radius: 10px; background: rgba(255,255,255,.035); margin: 0 !important; }
.rlist li::before { content: ""; position: absolute; left: 13px; top: 15px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-soft); }
.rtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.rtiles.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rtile { position: relative; padding: 15px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--line); border-top: 3px solid var(--tone, rgba(233,199,103,.55)); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s, transform .5s, border-color .2s, box-shadow .25s; }
.rtile.in { opacity: 1; transform: none; }
.rtile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.25); border-color: rgba(233,199,103,.4); }
.rtile.numbered { padding-left: 58px; }
.rtile-n { position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--gold-soft); border: 1.5px solid rgba(233,199,103,.55); }
.rtile-lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; margin-bottom: 5px; }
.rtile-t { font-weight: 800; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .rtile-t .dot { margin-right: 0; }
.rtile-sub { font-size: 12.5px; color: var(--gold-soft); margin-bottom: 6px; }
.rtile p { margin: 0 0 6px; font-size: 14px; color: rgba(238,242,247,.86); } .rtile p:last-child { margin: 0; }
.rtile ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.rflow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 16px; padding: 14px; border-radius: 14px; background: rgba(233,199,103,.05); border: 1px dashed rgba(233,199,103,.3); }
.rflow-st { padding: 8px 13px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(233,199,103,.35); font-weight: 600; font-size: 13.5px; animation: popin .5s both; }
.rflow-ar { color: var(--gold-soft); font-weight: 800; animation: nudge 1.6s ease-in-out infinite; }
@keyframes popin { from { opacity: 0; transform: scale(.9); } }
@keyframes nudge { 50% { transform: translateX(3px); } }
.rfields { display: grid; gap: 8px; margin: 6px 0 12px; }
.rfield { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.035); }
.rfield-l { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); padding-top: 2px; }
.rfield-v ul { margin: 0; padding-left: 18px; }
.md-table td.first { font-weight: 700; color: var(--ink); }
.md-table tbody tr { transition: background .15s; } .md-table tbody tr:hover { background: rgba(233,199,103,.07); }
.md-table { border-radius: 12px; border: 1px solid var(--line); } .md-table table { border: 0; } .md-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.md-table th, .md-table td { border-width: 0 0 1px 0 !important; }
/* колесо блоков */
.bw { position: relative; }
.bw-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bw-filt .chip { display: inline-flex; align-items: center; } .bw-filt .dot { width: 8px; height: 8px; margin-right: 6px; box-shadow: none; }
.bw-stage { display: grid; place-items: center; }
.bw-svg { width: 100%; max-width: 560px; height: auto; overflow: visible; font-family: var(--sans); }
.bw-seg { cursor: pointer; outline: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.bw-fill { fill: var(--c); fill-opacity: .16; stroke: var(--c); stroke-opacity: .55; stroke-width: 1.2; transition: fill-opacity .25s, stroke-width .25s; }
.bw-num { fill: var(--c); font-family: var(--display); font-weight: 700; font-size: 17px; pointer-events: none; }
.bw-lbl { fill: var(--ink); font-weight: 600; letter-spacing: .01em; pointer-events: none; opacity: .88; }
.bw-seg:hover .bw-fill, .bw-seg:focus-visible .bw-fill { fill-opacity: .34; }
.bw-seg.on { transform: translate(var(--dx), var(--dy)); }
.bw-seg.on .bw-fill { fill-opacity: .55; stroke-width: 2.4; stroke-opacity: 1; filter: drop-shadow(0 0 10px var(--c)); }
.bw-seg.on .bw-num { fill: #0a1f36; } .bw-seg.on .bw-lbl { fill: #0a1f36; font-weight: 800; opacity: 1; }
.bw-seg.dim { opacity: .18; }
.bw-neck { fill: #d0705a; animation: neck 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes neck { 50% { transform: scale(1.6); opacity: .55; } }
.bw-track { fill: none; stroke: rgba(233,199,103,.35); stroke-width: 1.2; stroke-dasharray: 3 7; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.bw-comet { fill: #f3dc94; }
.bw-gate line { stroke: #e9c767; stroke-width: 2.2; } .bw-gate circle { fill: #e9c767; }
.bw-gate text { fill: #e9c767; font-size: 12.5px; font-weight: 800; } .bw-gate:hover text { fill: #fff; }
.bw-hnum { fill: #e9c767; font-family: var(--display); font-weight: 700; font-size: 50px; }
.bw-ht { fill: var(--ink); font-size: 13.5px; font-weight: 700; } .bw-hc { fill: var(--muted); font-size: 10.5px; }
.rw { margin: 6px 0 10px; }
.bx-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px; border-radius: 22px; border: 1px solid rgba(233,199,103,.2); background: radial-gradient(500px 400px at 25% 45%, rgba(29,63,102,.55), transparent 70%), rgba(255,255,255,.025); scroll-margin-top: 16px; }
.bx-side { position: sticky; top: 14px; }
.bx-panel { --c: #e9c767; padding: 20px; border-radius: 18px; background: rgba(10,31,54,.72); border: 1px solid var(--line); border-top: 4px solid var(--c); animation: slidein .45s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } }
.bx-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; } .bx-head h3 { font-family: var(--display); font-size: 27px; margin: 0 0 6px; }
.bx-num { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 700; color: #0a1f36; background: var(--c, #e9c767); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.bx-num.sm { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; background: #e9c767; }
.bx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-tag { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.bx-tag.neck { color: #f08a72; border-color: rgba(240,138,114,.5); background: rgba(240,138,114,.1); }
.bx-tag.gate { color: #e9c767; border-color: rgba(233,199,103,.5); background: rgba(233,199,103,.08); }
.bx-lead { font-size: 15.5px; line-height: 1.55; margin: 6px 0 14px; }
.bx-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 16px; }
.bx-io { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13px; }
.bx-io.out { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.bx-io-l { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.bx-arrow { display: flex; align-items: center; gap: 4px; } .bx-arrow i { width: 14px; height: 2px; background: var(--c); position: relative; overflow: hidden; }
.bx-arrow i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: dash 1.2s linear infinite; transform: translateX(-100%); }
@keyframes dash { to { transform: translateX(100%); } }
.bx-core { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #0a1f36; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.bx-sec { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold-soft); margin: 4px 0 8px; }
.bx-steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.bx-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 0 0 10px; font-size: 14px; animation: popin .4s both; }
.bx-steps li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: linear-gradient(var(--c), transparent); opacity: .5; } .bx-steps li:last-child::before { display: none; }
.bx-steps li > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1.5px solid var(--c); color: var(--c); background: #0b223d; }
.bx-steps li > div { padding-top: 4px; }
.bx-grid { display: grid; gap: 12px; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-chip { font-size: 12.5px; padding: 4px 10px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.bx-chip.kpi { border-color: rgba(76,168,114,.5); background: rgba(76,168,114,.1); }
.bx-owner { display: inline-block; font-size: 13.5px; padding: 6px 12px; border-radius: 10px; background: rgba(233,199,103,.08); border: 1px solid rgba(233,199,103,.3); }
.bx-nav { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.bx-show { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.bx-col { --c: #e9c767; display: flex; flex-direction: column; gap: 8px; }
.bx-col-h { display: flex; gap: 8px; align-items: baseline; padding: 6px 2px 8px; border-bottom: 2px solid var(--c); } .bx-col-h b { color: var(--c); } .bx-col-h span { font-size: 12.5px; color: var(--muted); }
.bx-cnt { margin-left: auto; font-weight: 800; }
.bx-card { display: grid; grid-template-columns: 36px 1fr; gap: 10px; text-align: left; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: inherit; cursor: pointer; transition: transform .2s, border-color .2s, background .2s, opacity .3s; }
.bx-card:hover { transform: translateX(4px); border-color: var(--c); }
.bx-card.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.bx-card.dim { opacity: .3; }
.bx-card b { font-size: 13.5px; display: block; margin-bottom: 2px; }
.bx-card-n { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--c); }
/* гейты */
.gt { margin: 6px 0 10px; padding: 18px; border-radius: 22px; border: 1px solid rgba(233,199,103,.2); background: rgba(255,255,255,.025); }
.gt-scroll { overflow-x: auto; padding: 4px 0 10px; }
.gt-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); min-width: 660px; }
.gt-line { position: absolute; left: 8%; right: 8%; top: 27px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.gt-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c9a227, #f3dc94); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.gt-node { position: relative; z-index: 1; background: none; border: 0; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; }
.gt-dot { width: 58px; height: 58px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 21px; border-radius: 16px; transform: rotate(45deg); background: #0b223d; border: 2px solid rgba(233,199,103,.45); color: var(--gold-soft); transition: all .35s; }
.gt-dot { transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; background: rgba(233,199,103,.18); }
.gt-node.past .gt-dot { background: rgba(233,199,103,.4); color: #fff; }
.gt-node.on .gt-dot { background: #e9c767; color: #0a1f36; transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(233,199,103,.6)); }
.gt-name { font-size: 12.5px; font-weight: 700; text-align: center; color: var(--muted); } .gt-node.on .gt-name { color: var(--ink); }
.gt-card { margin-top: 10px; padding: 20px; border-radius: 18px; background: rgba(10,31,54,.72); border: 1px solid var(--line); border-top: 4px solid #e9c767; animation: slidein .45s cubic-bezier(.2,.8,.2,1); }
.gt-head { display: flex; gap: 14px; align-items: center; } .gt-head h3 { font-family: var(--display); font-size: 28px; margin: 0; }
.gt-big { font-family: var(--display); font-size: 40px; font-weight: 700; color: #e9c767; }
.gt-pass { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 8px; margin: 16px 0; }
.gt-from, .gt-to { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 700; text-align: center; }
.gt-to { border-color: #4ca872; background: rgba(76,168,114,.1); }
.gt-arrow { position: relative; height: 24px; display: grid; place-items: center; } .gt-arrow i { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, #e9c767 0 6px, transparent 6px 11px); animation: march 1s linear infinite; background-size: 22px 2px; }
.gt-arrow b { position: relative; color: #e9c767; background: #0f2744; padding: 0 4px; font-size: 16px; }
@keyframes march { to { background-position: 22px 0; } }
.gt-crit p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.gt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
/* горизонты */
.hz { margin: 6px 0 10px; padding: 18px; border-radius: 22px; border: 1px solid rgba(233,199,103,.2); background: rgba(255,255,255,.025); }
.hz-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.hz-step { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; min-height: 110px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; transition: all .25s; }
.hz-step i { display: block; width: 60%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(233,199,103,.55), rgba(233,199,103,.12)); transition: all .35s; }
.hz-step b { font-size: 14px; } .hz-step:hover { border-color: rgba(233,199,103,.45); color: var(--ink); }
.hz-step.on { border-color: #e9c767; background: rgba(233,199,103,.1); color: var(--ink); } .hz-step.on i { background: linear-gradient(180deg, #f3dc94, #c9a227); box-shadow: 0 0 18px rgba(233,199,103,.4); }
.hz-card { margin-top: 12px; padding: 20px; border-radius: 18px; background: rgba(10,31,54,.72); border: 1px solid var(--line); border-top: 4px solid #e9c767; animation: slidein .45s cubic-bezier(.2,.8,.2,1); }
.hz-card h3 { font-family: var(--display); font-size: 30px; margin: 0; }
.hz-mets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 14px; }
.hz-met { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13.5px; animation: popin .4s both; }
.hz-met span { font-weight: 800; color: var(--gold-soft); }
.hz-norm { padding: 12px 14px; border-radius: 12px; border-left: 4px solid #4ca872; background: rgba(76,168,114,.08); margin-bottom: 12px; } .hz-norm p { margin: 0; }
@media (max-width: 1000px) {
  .bx-stage, .ref-hub { grid-template-columns: 1fr; } .bx-side { position: static; }
  .bx-show { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ref-hero { padding: 20px 18px; } .ref-hero h1 { font-size: 32px; } .ref-hero.page h1 { font-size: 30px; }
  .rsec { padding: 18px 16px; } .rsec-h h2 { font-size: 22px; }
  .rfield { grid-template-columns: 1fr; gap: 4px; }
  .bx-flow { grid-template-columns: 1fr; } .bx-arrow { justify-content: center; transform: rotate(90deg); height: 34px; }
  .gt-pass { grid-template-columns: 1fr; } .gt-arrow { transform: rotate(90deg); height: 40px; }
  .hz-scale { grid-template-columns: repeat(5, minmax(56px, 1fr)); gap: 6px; } .hz-step b { font-size: 12px; }
  .ref-pn { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rsec, .rtile, .ref-plaque { opacity: 1; transform: none; transition: none; } .bw-track, .bw-neck, .rflow-ar, .ref-hero::after, .gt-arrow i { animation: none; } }

/* ===== Доска задач ===== */
.kb { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kb-col { --c: #7d8a9c; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 10px; min-height: 200px; transition: background .2s, border-color .2s, box-shadow .2s; }
.kb-col.over { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent) inset; }
.kb-col.closed { opacity: .82; }
.kb-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; border-bottom: 2px solid var(--c); margin-bottom: 10px; }
.kb-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); } .kb-h b { font-size: 14px; } .kb-h span { margin-left: auto; font-weight: 800; color: var(--muted); }
.kb-list { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; padding-right: 2px; }
.kb-card { --c: #7d8a9c; padding: 10px 11px; border-radius: 12px; background: rgba(12,36,64,.9); border: 1px solid var(--line); border-left: 3px solid var(--c); cursor: grab; transition: transform .18s, box-shadow .18s, border-color .18s; }
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.3); border-color: rgba(233,199,103,.35); }
.kb-card.ro { cursor: pointer; } .kb-card.dragging { opacity: .4; transform: rotate(2deg); }
.kb-card.moved { animation: kbflash 1.2s ease; }
@keyframes kbflash { 0% { box-shadow: 0 0 0 0 rgba(233,199,103,.9); } 100% { box-shadow: 0 0 0 14px rgba(233,199,103,0); } }
.kb-top { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; } .kb-id { font-size: 11.5px; font-weight: 800; color: var(--gold-soft); }
.kb-t { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.kb-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #0a1f36; background: linear-gradient(135deg, #f3dc94, #c9a227); }
.kb-av.big { width: 46px; height: 46px; font-size: 15px; }
.kb-due { margin-left: auto; font-size: 12px; color: var(--muted); } .kb-due.late { color: var(--red); font-weight: 700; }
.kb-empty { font-size: 12px; color: var(--faint); text-align: center; padding: 18px 6px; border: 1px dashed var(--line); border-radius: 10px; }
.kb-more { text-align: center; padding: 4px; }
/* ===== Сверка: режим совещания ===== */
.sv-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 14px; border-radius: 16px; border: 1px solid rgba(233,199,103,.3); background: linear-gradient(135deg, rgba(233,199,103,.12), rgba(255,255,255,.02)); }
.svs { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: radial-gradient(900px 600px at 70% 0%, #17365c, transparent 70%), #0a1f36; padding: 18px clamp(16px, 4vw, 56px) 24px; overflow-y: auto; outline: none; }
.svs-top { display: flex; justify-content: space-between; align-items: center; }
.svs-bar { display: flex; gap: 3px; margin: 12px 0 18px; }
.svs-seg { flex: 1; height: 8px; min-width: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.1); cursor: pointer; transition: all .2s; padding: 0; }
.svs-seg.cur { outline: 2px solid #e9c767; outline-offset: 2px; }
.svs-seg.o-done { background: #4ca872; } .svs-seg.o-failed { background: #d0705a; } .svs-seg.o-moved { background: #b88c1c; } .svs-seg.o-lost { background: #7d8a9c; } .svs-seg.o-continue { background: #5b8fd1; }
.svs-seg.warn { background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(0,0,0,.4) 3px 6px); }
.svs-stage { flex: 1; display: grid; place-items: start center; }
.svs-card { width: min(980px, 100%); animation: slidein .35s cubic-bezier(.2,.8,.2,1); }
.svs-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; } .svs-no { font-family: var(--display); font-size: 28px; color: #e9c767; font-weight: 700; }
.svs-t { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2; margin: 8px 0 18px; }
.svs-who { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.svs-note { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.svs-outs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 8px 0 16px; }
.svs-out { --c: #7d8a9c; position: relative; padding: 22px 10px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--ink); font-size: 17px; font-weight: 800; cursor: pointer; transition: transform .15s, background .2s; }
.svs-out:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 22%, transparent); }
.svs-out.on { background: var(--c); color: #0a1f36; border-color: var(--c); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 45%, transparent); }
.svs-out kbd { position: absolute; top: 7px; left: 9px; font: 700 11px var(--sans); opacity: .6; }
.svs-out.o-done { --c: #4ca872; } .svs-out.o-failed { --c: #d0705a; } .svs-out.o-moved { --c: #d9a441; } .svs-out.o-lost { --c: #9aa6b5; } .svs-out.o-continue { --c: #5b8fd1; }
.svs-why { padding: 16px; border-radius: 14px; border: 1px solid rgba(240,138,114,.4); background: rgba(240,138,114,.07); margin-bottom: 16px; }
.svs-nav { display: flex; justify-content: space-between; margin-top: 10px; }
@media (max-width: 720px) { .svs-outs { grid-template-columns: 1fr 1fr; } .svs-out { padding: 16px 8px; font-size: 15px; } }

/* ===== Справочник 2: навигатор ===== */
/* дерево в боковом меню */
.ref-tree { margin: 2px 0 8px 8px; padding-left: 8px; border-left: 1px solid rgba(233,199,103,.25); }
.rt-grp { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; color: rgba(255,255,255,.75); font-size: 12.5px; font-weight: 700; padding: 6px 6px; border-radius: 8px; cursor: pointer; text-align: left; }
.rt-grp span { color: var(--gold-soft); width: 16px; } .rt-grp::after { content: "▸"; margin-left: auto; transition: transform .2s; opacity: .6; } .rt-grp.open::after { transform: rotate(90deg); }
.rt-grp:hover { background: rgba(255,255,255,.05); }
.rt-pages { display: none; padding-left: 10px; } .rt-pages.open { display: block; animation: popin .25s; }
.rt-page { display: block; font-size: 12.5px; color: rgba(255,255,255,.66); text-decoration: none; padding: 5px 8px; border-radius: 7px; line-height: 1.3; }
.rt-page:hover { background: rgba(255,255,255,.05); color: #fff; } .rt-page.on { color: #0a1f36; background: #e9c767; font-weight: 700; }
.rt-parts { margin: 3px 0 6px 6px; border-left: 2px solid rgba(233,199,103,.35); }
.rt-part { display: flex; gap: 6px; width: 100%; text-align: left; background: none; border: 0; color: rgba(255,255,255,.62); font-size: 12px; padding: 4px 8px; cursor: pointer; line-height: 1.3; border-radius: 0 6px 6px 0; }
.rt-part span { color: var(--gold-soft); font-weight: 800; font-size: 10.5px; padding-top: 1px; }
.rt-part:hover { color: #fff; background: rgba(255,255,255,.04); } .rt-part.on { color: #fff; font-weight: 700; background: rgba(233,199,103,.12); box-shadow: inset 2px 0 0 #e9c767; margin-left: -2px; }
/* маршрут на главной справочника */
.ref-route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.ref-route-st { position: relative; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; transition: transform .2s, border-color .2s; }
.ref-route-st:hover { transform: translateY(-3px); border-color: rgba(233,199,103,.5); }
.ref-route-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #0a1f36; background: linear-gradient(135deg, #f3dc94, #c9a227); }
.ref-route-ar { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 1; color: #e9c767; font-style: normal; font-weight: 800; animation: nudge 1.6s infinite; }
.ref-crumbs { margin-bottom: 8px; color: var(--muted); } .ref-crumbs a { color: var(--gold-soft); }
/* вкладки-плашки разделов */
.rtabs { position: sticky; top: 0; z-index: 6; display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 12px; margin: 6px 0 0; background: linear-gradient(180deg, #0b223d 80%, rgba(11,34,61,0)); scrollbar-width: none; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs-line { display: none; }
.rtab { flex: none; display: flex; align-items: center; gap: 8px; max-width: 260px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; text-align: left; transition: all .25s; }
.rtab span { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; font-size: 11.5px; font-weight: 800; color: var(--gold-soft); background: rgba(255,255,255,.07); }
.rtab b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtab:hover { color: var(--ink); border-color: rgba(233,199,103,.45); transform: translateY(-2px); }
.rtab.past span { background: rgba(233,199,103,.25); color: #fff; }
.rtab.on { background: linear-gradient(135deg, #f3dc94, #c9a227); color: #0a1f36; border-color: #e9c767; box-shadow: 0 8px 20px rgba(201,162,39,.25); } .rtab.on span { background: #0a1f36; color: #e9c767; }
.rctrl { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.rstage { position: relative; min-height: 200px; }
.rstage.playing::before { content: ""; position: absolute; left: 0; top: -6px; height: 3px; border-radius: 3px; background: #e9c767; animation: playbar 9s linear infinite; z-index: 2; }
@keyframes playbar { from { width: 0; } to { width: 100%; } }
.rsec.from-r { animation: fromr .45s cubic-bezier(.2,.8,.2,1); } .rsec.from-l { animation: froml .45s cubic-bezier(.2,.8,.2,1); }
@keyframes fromr { from { opacity: 0; transform: translateX(40px); } } @keyframes froml { from { opacity: 0; transform: translateX(-40px); } }
.rpn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.rpn-b { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; text-decoration: none; transition: all .2s; }
.rpn-b.next, .rpn .ref-plaque.next { text-align: right; align-items: flex-end; }
.rpn-b:hover { border-color: rgba(233,199,103,.5); transform: translateY(-2px); color: inherit; }
.rpn-b.next { background: linear-gradient(135deg, rgba(233,199,103,.14), rgba(255,255,255,.03)); border-color: rgba(233,199,103,.35); }
/* плашки-кнопки */
button.rtile { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.rtile-b { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.rtile-more { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gold-soft); opacity: .7; transition: opacity .2s, transform .2s; }
.rtile:hover .rtile-more { opacity: 1; transform: translateX(3px); }
/* выезжающая карточка */
.rsheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(4,14,26,.55); backdrop-filter: blur(3px); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.rsheet { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; padding: 18px 20px 28px; background: #0c2440; border-left: 1px solid rgba(233,199,103,.3); box-shadow: -20px 0 40px rgba(0,0,0,.35); animation: sheetin .3s cubic-bezier(.2,.8,.2,1); }
.rsheet.out { transform: translateX(100%); transition: transform .2s; }
@keyframes sheetin { from { transform: translateX(100%); } }
.rsheet-grab { display: none; }
.rsheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rsheet-card { position: relative; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-top: 4px solid var(--tone, #e9c767); }
.rsheet-card.numbered, .rsheet-card:has(.rtile-n) { padding-left: 60px; }
.rsheet-card .rtile-t { font-size: 20px; font-family: var(--display); }
.rsheet-card p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; } .rsheet-card ul { padding-left: 20px; }
.rsheet-rel { margin-top: 14px; display: grid; gap: 6px; }
.rsheet-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rtasks { display: grid; gap: 6px; } .rtasks.grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rtask { --c: #7d8a9c; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-left: 3px solid var(--c); color: inherit; cursor: pointer; font: inherit; font-size: 13px; transition: transform .15s, border-color .15s; }
.rtask:hover { transform: translateX(3px); border-color: rgba(233,199,103,.4); }
.rtask-id { font-weight: 800; color: var(--gold-soft); font-size: 12px; } .rtask-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* виды */
.rv { margin: 8px 0 16px; padding: 14px; border-radius: 18px; border: 1px solid rgba(233,199,103,.18); background: rgba(255,255,255,.02); }
.rv-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.rv-panel { margin-top: 12px; }
.rv-card { position: relative; padding: 18px 20px; border-radius: 16px; background: rgba(10,31,54,.75); border: 1px solid var(--line); border-top: 4px solid var(--tone, #e9c767); animation: slidein .4s cubic-bezier(.2,.8,.2,1); }
.rv-card .rtile-n { position: static; display: inline-grid; margin-bottom: 8px; }
.rv-card .rtile-t { font-family: var(--display); font-size: 24px; }
.rv-card p { font-size: 15px; line-height: 1.6; margin: 0 0 8px; }
.rv-count { position: absolute; right: 16px; top: 14px; font-size: 12px; font-weight: 800; color: var(--muted); }
.rv-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
/* шаги */
.rv-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(96px, 1fr)); gap: 6px; overflow-x: auto; padding: 4px 2px 6px; }
.rv-line { position: absolute; left: 5%; right: 5%; top: 23px; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; }
.rv-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font: inherit; }
.rv-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #0b223d; border: 2px solid rgba(233,199,103,.45); color: var(--gold-soft); transition: all .3s; }
.rv-lbl { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-step.past .rv-dot { background: rgba(233,199,103,.3); color: #fff; }
.rv-step.on .rv-dot { background: #e9c767; color: #0a1f36; transform: scale(1.15); box-shadow: 0 0 18px rgba(233,199,103,.55); } .rv-step.on .rv-lbl { color: var(--ink); }
/* вкладки */
.rv-tabrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rv-tab { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--tone, rgba(233,199,103,.6)); background: var(--card); color: var(--muted); cursor: pointer; font: inherit; transition: all .2s; }
.rv-tab small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; } .rv-tab b { font-size: 13.5px; }
.rv-tab:hover { color: var(--ink); } .rv-tab.on { color: var(--ink); background: rgba(233,199,103,.12); border-color: #e9c767; }
/* шкала */
.rv-spec { display: flex; border-radius: 14px; overflow: hidden; }
.rv-band { flex: 1; position: relative; min-height: 78px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px; border: 0; cursor: pointer; font: inherit; text-align: left; color: #0a1f36; background: var(--tone); opacity: .55; transition: all .3s; }
.rv-band b { font-size: 14px; } .rv-band:hover { opacity: .8; } .rv-band.on { opacity: 1; flex: 1.6; box-shadow: inset 0 -4px 0 rgba(10,31,54,.5); }
.rv-here { position: absolute; top: 8px; left: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #0a1f36; color: #e9c767; padding: 2px 7px; border-radius: 99px; }
/* этажи */
.rv-stack { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rv-layer { width: var(--w); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(233,199,103,.3); background: linear-gradient(90deg, rgba(233,199,103,calc(.06 + var(--k) * .05)), rgba(91,143,209,.08)); color: var(--ink); cursor: pointer; font: inherit; transition: all .25s; }
.rv-layer span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; }
.rv-layer:hover { transform: scale(1.02); } .rv-layer.on { background: linear-gradient(90deg, #f3dc94, #c9a227); color: #0a1f36; } .rv-layer.on span { color: #0a1f36; }
/* воронка */
.rv-fun { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rv-fstep { width: var(--w); display: flex; justify-content: center; align-items: baseline; gap: 10px; padding: 11px 12px; border: 0; clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); background: rgba(233,199,103,.2); color: var(--ink); cursor: pointer; font: inherit; transition: all .25s; }
.rv-fstep span { font-size: 11.5px; color: var(--gold-soft); } .rv-fstep:hover { background: rgba(233,199,103,.32); }
.rv-fstep.on { background: linear-gradient(90deg, #f3dc94, #c9a227); color: #0a1f36; } .rv-fstep.on span { color: #0a1f36; }
/* сравнение */
.rv-seg { margin-bottom: 10px; flex-wrap: wrap; }
.rv-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.rv-col { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-top: 4px solid var(--tone); opacity: .55; transition: opacity .3s, transform .3s; }
.rv-col.on { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.rv-col ul { padding-left: 18px; margin: 6px 0; } .rv-col li { margin-bottom: 5px; font-size: 14px; }
.rv-col-h .rtile-t { font-size: 17px; }
/* цикл */
.rv-loop-wrap { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.rv-loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-loop-ring { fill: none; stroke: rgba(233,199,103,.35); stroke-width: 1.5; stroke-dasharray: 4 8; animation: flow 3s linear infinite; }
.rv-loop-c { fill: var(--gold-soft); font-family: var(--display); font-size: 22px; font-weight: 700; }
.rv-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 130px; background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; }
.rv-node span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #0b223d; border: 2px solid var(--tone); color: var(--tone); transition: all .3s; }
.rv-node b { font-size: 12px; text-align: center; line-height: 1.2; background: rgba(11,34,61,.85); padding: 2px 6px; border-radius: 6px; }
.rv-node.on span { background: var(--tone); color: #0a1f36; transform: scale(1.18); box-shadow: 0 0 20px var(--tone); }
/* дуэты */
.rduets { display: grid; gap: 8px; margin: 8px 0 16px; }
.rduet { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.rduet-a, .rduet-b { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: inherit; cursor: pointer; font: inherit; transition: transform .2s, border-color .2s; }
.rduet-a { background: rgba(148,118,216,.1); border-color: rgba(148,118,216,.4); } .rduet-b { background: rgba(233,199,103,.07); border-color: rgba(233,199,103,.35); }
.rduet-a:hover, .rduet-b:hover { transform: translateY(-2px); }
.rduet-k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.rduet-ar { align-self: center; color: #e9c767; font-weight: 800; animation: nudge 1.6s infinite; }
/* живые данные */
.rlive { margin: 8px 0 16px; padding: 14px; border-radius: 18px; border: 1px solid rgba(76,168,114,.35); background: rgba(76,168,114,.05); }
.rlive-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.rlive .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #4ca872; }
.rlive .live i { width: 8px; height: 8px; border-radius: 50%; background: #4ca872; animation: neck 1.6s infinite; }
.rlive-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; } .rlive-bar button { border: 0; cursor: pointer; padding: 0; transition: filter .2s; } .rlive-bar button:hover { filter: brightness(1.3); }
.rlive-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-right: 10px; } .rlive-leg i { width: 8px; height: 8px; border-radius: 2px; }
.ragents { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ragent { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s; } .ragent:hover { transform: translateY(-2px); color: inherit; }
/* таблицы */
.rtable-q { margin: 4px 0 8px; } .rtable tbody tr { cursor: pointer; }
@media (max-width: 900px) {
  .ref-route { grid-template-columns: 1fr 1fr; } .ref-route-ar { display: none; }
  .rv-cols { grid-template-columns: 1fr; } .rv-col { opacity: 1; display: none; } .rv-col.on { display: block; transform: none; }
}
@media (max-width: 640px) {
  .rtabs { margin: 0 -16px; padding-left: 16px; padding-right: 16px; } .rtab b { max-width: 150px; }
  .rpn { grid-template-columns: 1fr; }
  .rsheet { top: auto; left: 0; width: 100%; max-height: 86vh; border-left: 0; border-top: 1px solid rgba(233,199,103,.35); border-radius: 20px 20px 0 0; animation: sheetup .3s cubic-bezier(.2,.8,.2,1); }
  .rsheet.out { transform: translateY(100%); }
  .rsheet-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: -6px auto 10px; }
  .rv-steps { grid-template-columns: repeat(var(--n), 84px); } .rv-line { right: auto; width: calc(var(--n) * 90px - 40px); left: 40px; }
  .rv-spec { flex-direction: column; } .rv-band { min-height: 48px; } .rv-band.on { flex: 1; }
  .rv-layer, .rv-fstep { width: 100% !important; }
  .rduet { grid-template-columns: 1fr; } .rduet-ar { transform: rotate(90deg); justify-self: center; }
  .rtasks.grid { grid-template-columns: 1fr; }
  .rtable table thead { display: none; } .rtable table, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { padding: 8px 4px; border-bottom: 1px solid var(--line); } .rtable td { border: 0 !important; padding: 2px 8px; } .rtable td::before { content: attr(data-h); display: block; font-size: 10px; letter-spacing: .1em; color: var(--gold-soft); font-weight: 800; }
  .rv-node b { font-size: 10.5px; max-width: 90px; } .rv-node span { width: 36px; height: 36px; }
}
@keyframes sheetup { from { transform: translateY(100%); } }
.rtable-more { color: var(--gold-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rlock { text-align: center; padding: 34px 20px; border-radius: 20px; border: 1px dashed rgba(233,199,103,.4); background: rgba(233,199,103,.05); }
.rlock-ico { font-size: 34px; margin-bottom: 6px; } .rlock h3 { font-family: var(--display); font-size: 26px; } .rlock p { max-width: 520px; margin: 0 auto; }
@media (max-width: 640px) { .rv-band { flex-direction: row; justify-content: space-between; align-items: center; } .rv-here { position: static; order: 2; } }

/* ===== Китайское колесо ===== */
.cn-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px; margin: 10px 0 14px; border-radius: 22px; border: 1px solid rgba(208,112,90,.3); background: radial-gradient(500px 400px at 25% 45%, rgba(120,40,40,.25), transparent 70%), rgba(255,255,255,.025); }
.cn-wheel { display: grid; place-items: center; }
.cn-svg { width: 100%; max-width: 520px; height: auto; overflow: visible; font-family: var(--sans); }
.cn-seg { cursor: pointer; outline: none; transition: opacity .3s; }
.cn-fill { fill: var(--c); fill-opacity: .18; stroke: var(--c); stroke-opacity: .6; stroke-width: 1.3; transition: fill-opacity .25s, stroke-width .25s; }
.cn-seg:hover .cn-fill, .cn-seg:focus-visible .cn-fill { fill-opacity: .35; }
.cn-seg.on .cn-fill { fill-opacity: .6; stroke-width: 2.6; filter: drop-shadow(0 0 10px var(--c)); }
.cn-num { fill: var(--c); font-family: var(--display); font-weight: 700; font-size: 18px; pointer-events: none; }
.cn-seg.on .cn-num, .cn-seg.on .cn-lbl { fill: #0a1f36; }
.cn-lbl { fill: var(--ink); font-size: 10.5px; font-weight: 600; pointer-events: none; }
.cn-badge { fill: #e9c767; stroke: #0b223d; stroke-width: 2; } .cn-badge-t { fill: #0a1f36; font-size: 11px; font-weight: 800; pointer-events: none; }
.cn-ph-f { fill: var(--c); fill-opacity: .1; stroke: var(--c); stroke-opacity: .35; }
.cn-ph.on .cn-ph-f { fill-opacity: .45; stroke-opacity: 1; animation: phpulse 2.4s ease-in-out infinite; }
@keyframes phpulse { 50% { fill-opacity: .25; } }
.cn-ph-t { fill: var(--ink); font-size: 11px; font-weight: 800; } .cn-ph-w { fill: var(--muted); font-size: 9px; }
.cn-hand { transform-origin: 260px 260px; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.cn-hub-n { fill: #e9c767; font-family: var(--display); font-size: 46px; font-weight: 700; }
.cn-hub-s { fill: var(--muted); font-size: 10px; letter-spacing: .12em; font-weight: 700; } .cn-hub-s2 { fill: var(--ink); font-size: 11px; }
.cn-side { min-width: 0; }
.cn-intro h3 { font-family: var(--display); font-size: 26px; }
.cn-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.cn-kpis div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; flex-direction: column; } .cn-kpis b { font-family: var(--display); font-size: 28px; color: var(--gold-soft); line-height: 1; } .cn-kpis span { font-size: 11.5px; color: var(--muted); }
.cn-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); } .cn-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.cn-panel { padding: 18px; border-radius: 18px; background: rgba(10,31,54,.75); border: 1px solid var(--line); border-top: 4px solid var(--c); animation: slidein .4s cubic-bezier(.2,.8,.2,1); }
.cn-panel-h { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; } .cn-panel-h h3 { font-family: var(--display); font-size: 22px; margin: 0 0 5px; }
.cn-roles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); margin: 8px 0; }
.cn-mini { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 3px; }
.cn-tabs { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.cn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.cnf { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: transform .3s, opacity .3s; }
.cnf.sm { padding: 10px; } .cnf.gone { opacity: 0; transform: scale(.95) translateY(-8px); }
.cnf-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); } .cnf-id { font-weight: 800; color: var(--gold-soft); }
.cnf-co { font-size: 15px; } .cnf-pr { font-size: 13px; color: var(--gold-soft); }
.cnf-score { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; } .cnf-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; } .cnf-bar i { display: block; height: 100%; border-radius: 6px; }
.cnf-note { color: rgba(238,242,247,.8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cnf-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.btn.cn-yes { background: rgba(76,168,114,.18); border-color: #4ca872; color: #bff0d1; } .btn.cn-yes:hover { background: #4ca872; color: #0a1f36; }
.btn.cn-no { background: rgba(208,112,90,.12); border-color: #d0705a; color: #ffc6b8; } .btn.cn-no:hover { background: #d0705a; color: #0a1f36; }
.cnf-why-n { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.cnf-res { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.rtask.sm { padding: 4px 8px; font-size: 12px; }
.cnf-letter { white-space: pre-wrap; font-size: 12px; background: rgba(255,255,255,.04); padding: 10px; border-radius: 10px; max-height: 260px; overflow: auto; font-family: var(--sans); }
.cn-chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cn-ch { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--card); color: inherit; cursor: pointer; font: inherit; transition: transform .2s; } .cn-ch:hover { transform: translateY(-2px); }
.cn-ch-h { display: flex; gap: 8px; align-items: baseline; } .cn-ch-n { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--c); } .cn-ch-c { font-size: 12px; font-weight: 700; }
.cn-funnel { display: grid; gap: 8px; }
.cn-fun-row { display: grid; grid-template-columns: 170px 1fr 50px; gap: 10px; align-items: center; } .cn-fun-l { font-size: 13px; }
.cn-fun-bar { height: 22px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; } .cn-fun-bar i { display: block; height: 100%; background: linear-gradient(90deg, #d0705a, #e9c767); border-radius: 8px; animation: grow .8s both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.cn-how { display: grid; gap: 8px; }
.cn-how-st { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.cn-how-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--c); color: #0a1f36; } .cn-how-st p { margin: 4px 0 0; }
@media (max-width: 1000px) { .cn-stage { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cn-kpis { grid-template-columns: 1fr 1fr; } .cn-fun-row { grid-template-columns: 110px 1fr 36px; } .cn-roles { grid-template-columns: 1fr; } .cn-roles .rduet-ar { transform: rotate(90deg); justify-self: center; } }
.cnf-why-n[hidden] { display: none; }

/* ===== Решения владельцев ===== */
.dc-ring { display: flex; gap: 16px; align-items: center; margin: 4px 0 8px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.dc-ring-svg { position: relative; width: 84px; height: 84px; flex: none; } .dc-ring-svg svg { width: 100%; height: 100%; }
.dc-ring-svg b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 28px; color: var(--gold-soft); }
.dc-group { margin: 0 0 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); scroll-margin-top: 16px; }
.dc-gh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .dc-gh h3 { font-family: var(--display); font-size: 22px; margin: 0; }
.dc-n { font-weight: 800; color: #0a1f36; background: #e9c767; border-radius: 99px; padding: 0 9px; font-size: 13px; }
.dc-list { display: grid; gap: 8px; margin-top: 8px; }
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: opacity .3s, transform .3s; }
.dc-row.gone { opacity: 0; transform: translateX(30px); }
.dc-t { display: flex; gap: 10px; align-items: flex-start; } .dc-t b { font-size: 14px; }
.dc-id { flex: none; background: none; border: 1px solid rgba(233,199,103,.4); color: var(--gold-soft); border-radius: 8px; font-weight: 800; font-size: 12px; padding: 3px 7px; cursor: pointer; }
.dc-flags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.dc-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; } .dc-act select, .dc-act input { width: auto; min-width: 150px; }
.dc-more { margin-top: 10px; display: grid; gap: 6px; } .dc-more[hidden] { display: none; }
.dc-reason { display: flex; gap: 6px; flex-wrap: wrap; } .dc-reason > * { flex: 1; min-width: 140px; }
.dc-llm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.dc-llm-o { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: inherit; cursor: pointer; font: inherit; }
.dc-llm-o span { font-size: 12px; color: var(--muted); } .dc-llm-o.on { border-color: #e9c767; background: rgba(233,199,103,.1); }
@media (max-width: 720px) { .dc-row { grid-template-columns: 1fr; } .dc-act { justify-content: flex-start; } .dc-act select, .dc-act input { flex: 1; } }
.login-steps { display: grid; gap: 6px; margin-top: 16px; text-align: left; font-size: 12.5px; color: var(--muted); }
.login-steps div { display: flex; gap: 8px; align-items: flex-start; } .login-steps b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(233,199,103,.2); color: var(--gold-soft); }
.ref-route { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- файлы и библиотека (3.0.1) ---------- */
.fchip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-width: 0; }
.fchip .fi { font-size: 20px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--field); border-radius: 9px; flex: none; }
.fchip .fthumb { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; flex: none; background: var(--field); }
.fchip .fmeta { flex: 1; min-width: 0; }
.fchip .fmeta a { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip.locked { opacity: .75; }
.dropz { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed rgba(233,199,103,.45); border-radius: 12px; cursor: pointer; background: rgba(233,199,103,.05); transition: background .15s, border-color .15s; }
.dropz:hover, .dropz:focus-visible, .dropz.over { background: rgba(233,199,103,.14); border-color: var(--gold-soft); outline: none; }
.dropz .dz-ic { font-size: 22px; }
.lib { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.lib-side { position: sticky; top: 16px; }
.lib > * { min-width: 0; }
.lib-tree { display: flex; flex-direction: column; gap: 2px; }
.lib-tree button { display: flex; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.lib-tree button:hover { background: var(--field); color: var(--ink); }
.lib-tree button.on { background: var(--gold-bg); color: var(--ink); font-weight: 600; }
.lib-tree i { font-style: normal; color: var(--faint); font-size: 12px; }
.lib-item { margin-bottom: 10px; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0 4px; }
.lib-tags a.flag { text-decoration: none; }
.lib-more { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--field); }
.lib-more select { width: auto; }
.btn.danger { color: var(--red); }
@media (max-width: 900px) { .lib { grid-template-columns: 1fr; } .lib-side { position: static; } .lib .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .lib .chips .chip { flex: none; } .lib .filters { flex-wrap: wrap; } .lib .filters > * { flex: 1 1 100%; min-width: 0; } .lib-tree { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .lib-tree button { white-space: nowrap; } }

/* ---------- чаты ---------- */
.chat-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 0; height: calc(100vh - 64px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.chat-side { border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; }
.chat-side select { width: 100%; }
.croom { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.croom:hover { background: var(--field); color: var(--ink); }
.croom.on { background: var(--gold-bg); }
.cr-t { flex: 1; min-width: 0; }
.cr-t b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-t .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cav { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--navy-2); color: #fff; border: 1px solid var(--line); }
.cav.grp { border-radius: 10px; background: rgba(91,143,209,.25); font-size: 16px; }
.cav.tsk { border-radius: 10px; background: var(--gold-bg); color: var(--gold-soft); }
.badge.gold { background: transparent; color: var(--gold-soft); border: 1px solid var(--gold-soft); }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 60px; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-back { display: none; }
.cthread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cthread.compact { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cthread.compact .cmsgs { max-height: 380px; min-height: 90px; }
.cmsgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cmsg { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; }
.cmsg.mine { align-self: flex-end; flex-direction: row-reverse; }
.cbody { background: var(--field); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px; min-width: 0; }
.cmsg.mine .cbody { background: rgba(91,143,209,.2); border-radius: 14px 14px 4px 14px; }
.cmsg.del .cbody { opacity: .6; }
.ctext { white-space: pre-wrap; overflow-wrap: anywhere; }
.ctext .mention { color: var(--gold-soft); font-weight: 600; }
.cbody .fchip { margin-top: 6px; background: rgba(0,0,0,.12); }
.cact { display: flex; gap: 10px; margin-top: 2px; opacity: 0; transition: opacity .15s; }
.cmsg:hover .cact, .cmsg:focus-within .cact { opacity: 1; }
.cact button { background: none; border: 0; padding: 0; font-size: 12px; color: var(--faint); cursor: pointer; }
.cact button:hover { color: var(--gold-soft); }
.ccompose { position: relative; display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.ccompose textarea { flex: 1; min-height: 40px; max-height: 160px; resize: none; }
.cthread > .tiny { padding: 0 14px 8px; }
.mention-pop { position: absolute; bottom: 100%; left: 50px; background: var(--navy); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); z-index: 5; display: flex; flex-direction: column; }
.mention-pop[hidden] { display: none; }
.mention-pop button { background: none; border: 0; text-align: left; padding: 6px 10px; border-radius: 8px; color: #fff; cursor: pointer; }
.mention-pop button:hover { background: var(--gold-bg); }
@media (hover: none) { .cact { opacity: 1; } }
@media (max-width: 900px) {
  .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - 110px); }
  .chat-wrap.in-room .chat-side { display: none; }
  .chat-wrap:not(.in-room) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .cmsg { max-width: 94%; }
}

/* цели (пакет 06.10) */
.gnode { min-width: 0; }
.groot > .ghead { margin-bottom: 8px; }
.gtitle { font-family: var(--sans); font-size: 20px; font-weight: 650; margin: 0; text-wrap: balance; }
.ghead.row { gap: 10px; align-items: center; flex-wrap: wrap; }
.ghead .grow, .gtask .grow { flex: 1 1 200px; min-width: 0; }
.gacts { gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.gkids { margin: 10px 0 0 6px; padding-left: 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.gkids > .tiny { margin-bottom: -4px; }
.gstep { font-weight: 600; }
.gclosed { opacity: .6; }
.gtasks { display: grid; gap: 2px; margin-top: 6px; }
.gtask { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13.5px; flex-wrap: wrap; }
.gtask:hover { background: var(--paper-2); }
.gtask .id { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; min-width: 44px; }
.flag.green { background: var(--green-bg); color: #4ca872; }
.warnchip { border-color: var(--gold); color: var(--gold-soft); }
.result-box { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.gacts a.btn, a.chip { text-decoration: none; }
@media (max-width: 700px) { .gkids { padding-left: 8px; margin-left: 2px; } .gtask .id { min-width: 0; } }
.ghelp { margin: 12px 0 4px; padding: 14px 18px; }
.ghelp summary { cursor: pointer; list-style-position: outside; }
.ghelp-steps { margin: 12px 0 2px; padding-left: 22px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ghelp-steps li { min-width: 0; }
.ghelp-steps li::marker { color: var(--gold); font-weight: 700; }
/* КП поставщиков */
.offers { margin-top: 10px; display: grid; gap: 6px; min-width: 0; }
.otbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.otbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.otbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.otbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.otbl tr:last-child td { border-bottom: 0; }
.otbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.otbl tr.click { cursor: pointer; } .otbl tr.click:hover td { background: var(--paper-2); }
.offer-ed .otbl input { min-width: 70px; padding: 4px 6px; font-size: 13px; }
.offer-ed .otbl input.wide { min-width: 200px; } .offer-ed .otbl input.num { min-width: 70px; max-width: 110px; }
.gfiles { display: grid; gap: 6px; margin-top: 8px; }
.gkids, .gnode, .offers, .gfiles { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.offer-ed, .offer-ed .grid > * { min-width: 0; }
.offer-ed input, .offer-ed textarea { max-width: 100%; }
/* прогноз и отчёт недели */
.gforecast { margin-top: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 2px; }
.gforecast.red { border-color: rgba(240,138,114,.5); background: var(--red-bg); }
.gforecast.green { border-color: rgba(76,168,114,.45); background: var(--green-bg); }
.gforecast.gray { background: var(--paper-2); }
.wk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wk-tile { padding: 12px 14px; display: grid; gap: 2px; } .wk-tile b { font-size: 24px; font-variant-numeric: tabular-nums; }
.wk-tile.bad b { color: var(--red); }
.wk-res { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.otbl tr.wk-silent td { background: var(--red-bg); }
