/* Пульт · экраны. */
.skip-link { position: fixed; left: 18px; top: -60px; z-index: 600; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--hl); font-weight: 700; }
.skip-link:focus { top: 18px; }

/* ================= общие блоки карточек записей ================= */
.dsec + .dsec { margin-top: 24px; }
:where(.qp-report, .callout, blockquote, .res-grid) + .dsec { margin-top: 20px; }
.dsec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dsec-h h3 { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.crit { display: grid; gap: 2px; }
.crit-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }
.crit-row:nth-child(odd) { background: var(--paper); }
.crit-ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; background: var(--white); }
.crit-ic .i { stroke-width: 2.6; }
.crit-row.ok .crit-ic { background: var(--green); color: #fff; }
.crit-row.bad .crit-ic { background: var(--red); color: #fff; }
.crit-row.na, .crit-row.later { color: var(--mut); }
.crit-row.na .crit-ic, .crit-row.later .crit-ic { border-style: dashed; border-color: var(--mut-2); color: var(--mut-2); }
.crit-t { min-width: 0; }
.crit-need { font-size: 12px; color: var(--mut); white-space: nowrap; }
.cp-next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.cp-next b { font-weight: 800; }
.cp-next span:not(.tag) { flex: 1; min-width: 160px; color: var(--ink-3); font-size: 13.5px; }
.cp-next.risk { background: var(--red-xl); }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.mini-kpis > div { background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.mini-kpis b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mini-kpis b small { font-size: 14px; color: var(--mut); font-weight: 700; }
.mini-kpis span { display: block; font-size: 12px; color: var(--mut); margin-top: 3px; line-height: 1.3; }
.pt-n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; flex: none; background: var(--white); }
.auds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.aud { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 1px; background: var(--white); }
.aud b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.aud > span { font-size: 12.5px; color: var(--ink-3); }
.aud-ic { color: var(--ink-3); margin-bottom: 4px; }
.fit { display: flex; gap: 14px; align-items: center; }
.fit-score { position: relative; width: 52px; height: 52px; flex: none; }
.fit-score b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.res-grid > div { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; background: var(--white); display: grid; gap: 2px; min-width: 0; }
.res-grid b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.res-grid span:not(.kicker) { font-size: 12px; color: var(--mut); }
.res-grid .est-box { border-style: dashed; background: var(--paper); }
.bind { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 9px; border: 1.5px solid var(--line-2); border-radius: 7px; background: var(--white); font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink-2); max-width: 100%; text-align: left; cursor: default; }
.bind .i { flex: none; }
button.bind[data-act] { cursor: pointer; }
button.bind[data-act]:hover { border-color: var(--ink); background: var(--hl-soft); color: var(--ink); }
.bind-fixed { display: flex; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span2 { grid-column: span 2; }
.reasons { display: grid; gap: 6px; }
.reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.reason:hover { border-color: var(--ink); }
.reason:has(input:checked) { border-color: var(--ink); background: var(--hl-soft); box-shadow: var(--sh-1); font-weight: 600; }
.reason input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.shake { animation: shake .3s; border-color: var(--red) !important; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.steps { display: grid; gap: 2px; }
.step { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--mut); font-size: 13.5px; transition: color .2s; }
.step.done { color: var(--ink); }
.step-ic { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.step.done .step-ic { background: var(--green); border-color: var(--ink); color: #fff; }
.step:not(.done) .step-ic .i { animation: spin 1.4s linear infinite; }
.input-wrap .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--mut); pointer-events: none; }
.input-wrap .input.pre { padding-left: 196px; font-family: var(--mono); font-size: 13px; }
.back-tr { background: var(--cream); border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.back-tr p { margin-top: 4px; color: var(--ink-2); }
.na-result { margin-top: 18px; padding: 16px; border: 2px dashed var(--green); border-radius: 14px; background: var(--green-xl); animation: rise-in .3s var(--ease-out); }
.res-exact { font-weight: 800; color: #1f8a5b; }
.res-exp { font-weight: 600; color: var(--ink-3); }

/* ================= Сегодня ================= */
.today .page-head { margin-bottom: 26px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.today-rail { position: sticky; top: calc(var(--top-h) + var(--frame-w) + 22px); display: grid; gap: 14px; }
.rail-day .rd-ring { position: relative; width: 60px; height: 60px; flex: none; }
.rail-day .rd-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.rail-t { width: 46px; font-size: 13px; }
.keys-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.keys-grid > span:nth-child(odd) { display: inline-flex; gap: 3px; }
.mob-hint { display: none; }
.qgroup + .qgroup { margin-top: 30px; }
.qg-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.qg-head h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.qg-head .qg-d { font-size: 13px; color: var(--mut); }
.qg-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.today-main { min-width: 0; }

.qcard { position: relative; min-width: 0; border-radius: 16px; transition: height .34s var(--ease), opacity .3s, margin .34s; outline: none; }
.qc-inner { position: relative; z-index: 1; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--sh); transition: box-shadow .2s var(--ease), transform .2s var(--ease); overflow: hidden; }
.qcard:hover .qc-inner { box-shadow: var(--sh-2); }
.qcard.is-open .qc-inner { box-shadow: 0 5px 0 var(--ink); }
.qcard:focus-visible .qc-inner { outline: 3px solid var(--blue); outline-offset: 3px; }
.qc-inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: transparent; }
.qcard.g-urgent .qc-inner::before { background: var(--red); }
.qcard.is-sel .qc-inner { background: var(--hl-soft); }
.qc-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; cursor: pointer; min-height: 74px; }
.qc-sel { flex: none; display: grid; place-items: center; }
.qc-sel .check input:disabled + .box { opacity: .35; }
.qc-ic { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; background: var(--white); }
.qc-ic.red { background: var(--red-l); } .qc-ic.yellow { background: var(--yellow-l); } .qc-ic.blue { background: var(--blue-l); } .qc-ic.green { background: var(--green-l); }
.qc-ic .dot { position: absolute; top: -5px; right: -5px; }
.qc-main { flex: 1; min-width: 0; }
.qc-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); line-height: 1.35; }
.qc-kick > span { white-space: nowrap; }
.qc-kick .qc-obj { color: var(--ink-2); white-space: normal; }
.qc-kick .sev { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; border-width: 1.5px; }
.qc-kick .tag { letter-spacing: 0; text-transform: none; }
.qc-dotsep { color: var(--mut-2); }
.qc-title { margin-top: 4px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.qcard.is-open .qc-title { font-size: 19px; font-weight: 700; letter-spacing: -.012em; line-height: 1.3; }
.qc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.qc-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.qc-owner { display: inline-flex; }
.qc-quick { width: 34px; padding: 0; opacity: .55; }
.qcard:hover .qc-quick { opacity: 1; background: var(--accent); color: var(--accent-fg); }
.qc-chev { color: var(--mut); transition: transform .25s var(--ease); flex: none; }
.qcard.is-open .qc-chev { transform: rotate(180deg); color: var(--ink); }
.qc-body { display: none; padding: 0 22px 20px 74px; }
.qcard.is-open .qc-body { display: block; animation: rise-in .28s var(--ease-out); }
.qc-scenline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -2px 0 12px; }
.qc-scen { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1.5px dashed var(--ink); border-radius: 8px; background: var(--cream); font-size: 12px; font-weight: 700; }
.qc-scen.in { border-style: solid; border-color: var(--line-2); background: var(--white); font-weight: 600; }

.qp-msg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--white); }
.qp-msg.incoming { border-style: dashed; }
.qp-col { padding: 14px 16px; min-width: 0; }
.qp-col.back { background: var(--cream); border-left: 1.5px dashed var(--line-2); }
.qp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.qp-subj { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.qp-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.qp-edit { min-height: 180px; font-size: 14px; background: var(--hl-soft); }
.qp-second { margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--ink-3); padding-top: 8px; border-top: 1px dashed var(--line-2); }
.qp-attach { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--yellow-xl); }
.qp-in { margin-bottom: 10px; padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--blue-xl); border-radius: 4px 12px 12px 4px; }
.qp-in .orig-t { margin-top: 6px; font-style: italic; color: var(--ink-2); }
.qp-in .tr-t { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.qp-table .tbl-wrap.flat { box-shadow: none; border-width: 1.5px; border-radius: 12px; }
.qp-table .tbl td { vertical-align: top; }
.qp-list { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--paper); }
.qp-li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.qp-li:last-child { border-bottom: 0; }
.qp-li b { display: block; font-weight: 700; }
.qp-li span { color: var(--ink-3); }
.qp-li-ic { width: 30px; height: 30px; flex: none; border: 1.5px solid var(--ink); border-radius: 9px; display: grid; place-items: center; background: var(--white); }
.qp-report { margin: 0; display: flex; gap: 12px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--red-xl); }
.qp-report p { font-size: 15px; font-weight: 500; line-height: 1.5; }
.qp-report span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.qp-textblock { padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); }
.qp-textblock p + p { margin-top: 8px; }
.qp-place { border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--white); }
.qp-place-h { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1.5px dashed var(--line-2); }
.qp-place-h b { display: block; font-size: 15px; }
.qp-place-h span { font-size: 12.5px; color: var(--ink-3); }
.qp-pin { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.qp-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 14px; padding: 10px 14px; }
.qp-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.qp-chk .i { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--ink); stroke-width: 2.6; }
.qp-chk.ok .i { background: var(--green); color: #fff; }
.qp-chk.bad .i { background: var(--red); color: #fff; }
.qp-chk.val .i { background: var(--yellow-l); }
.qp-opts { display: grid; gap: 8px; }
.qp-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s, box-shadow .15s; }
.qp-opt:hover { border-color: var(--ink); }
.qp-opt.on { border-color: var(--ink); background: var(--hl-soft); box-shadow: var(--sh-1); font-weight: 600; }
.qp-opt input { position: absolute; opacity: 0; }
.qp-radio { width: 20px; height: 20px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.qp-opt.on .qp-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.qp-opt input:focus-visible + .qp-radio { outline: 3px solid var(--blue); outline-offset: 2px; }
.conf { width: 80px; height: 8px; border-radius: 999px; background: var(--grey-xl); border: 1px solid var(--ink); overflow: hidden; flex: none; }
.conf i { display: block; height: 100%; background: var(--ink); }
.qp-cands .tbl-wrap.flat { box-shadow: none; border-width: 1.5px; border-radius: 12px; max-height: 340px; }
.fitn { display: inline-grid; place-items: center; min-width: 34px; height: 24px; border-radius: 7px; border: 1.5px solid var(--ink); font-weight: 800; font-size: 12.5px; }
.fitn.hi { background: var(--green-l); } .fitn.mid { background: var(--yellow-l); } .fitn.lo { background: var(--grey-l); }
.qp-agr, .qp-hints { margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.qp-hints ul { display: grid; gap: 4px; font-size: 13.5px; }
.qp-hints li { padding-left: 16px; position: relative; }
.qp-hints li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

.qc-why { margin-top: 16px; }
.qc-why ul { display: grid; margin-top: 6px; }
.qc-why li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.qc-why li:last-child { border-bottom: 0; }
.qc-why li > span:first-child { min-width: 0; }
.src-link { flex: none; border: 1.5px solid var(--line-2); background: var(--white); border-radius: 999px; height: 22px; padding: 0 9px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: border-color .15s, color .15s; }
.src-link:hover { border-color: var(--ink); color: var(--ink); background: var(--hl-soft); }
.qc-why .src { flex: none; white-space: nowrap; }
.qc-cr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-top: 14px; }
.qc-cr > div { background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.qc-cr > div:only-child { grid-column: 1 / -1; }
.qc-cr p { margin-top: 3px; font-size: 13.5px; }
.qc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--line); align-items: center; }
.qc-more { display: contents; }
.qc-acts .btn kbd { opacity: .8; }

.qc-swipe { position: absolute; inset: 0; z-index: 0; border-radius: 16px; display: none; align-items: center; justify-content: space-between; padding: 0 22px; font-weight: 800; background: var(--grey-l); border: 2px solid var(--ink); }
.qc-swipe span { display: inline-flex; align-items: center; gap: 8px; opacity: .25; transition: opacity .15s; }
.qcard.swiping .qc-swipe { display: flex; }
.qcard.swiping .qc-inner { transition: none; }
.qcard.sw-right .qc-swipe { background: var(--green); color: #fff; }
.qcard.sw-right .sw-ok { opacity: 1; }
.qcard.sw-left .qc-swipe { background: var(--red); color: #fff; }
.qcard.sw-left .sw-no { opacity: 1; }

.qcard.is-done .qc-inner { display: none; }
.qc-done { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--green-xl); overflow: hidden; animation: pop-in .25s var(--ease-out); }
.qc-done b { display: block; font-weight: 800; font-size: 14px; }
.qc-done span { display: block; font-size: 13px; color: var(--ink-3); }
.qc-done-ic { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.qc-done.st-rejected { background: var(--red-xl); } .qc-done.st-rejected .qc-done-ic, .qc-done.st-undone .qc-done-ic { background: var(--red); }
.qc-done.st-snoozed, .qc-done.st-passed { background: var(--blue-xl); } .qc-done.st-snoozed .qc-done-ic, .qc-done.st-passed .qc-done-ic { background: var(--blue); }
.qc-done.st-ok { background: var(--paper); } .qc-done.st-ok .qc-done-ic { background: var(--ink); }
.qc-done-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--ink); transform-origin: left; animation-name: shrink-x; animation-timing-function: linear; animation-fill-mode: forwards; }
.qcard.is-gone { opacity: 0; overflow: hidden; margin-bottom: -10px; }

.batchbar { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--frame-w) + 18px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 18px; width: min(760px, calc(100vw - 40px)); background: var(--ink); color: var(--cream); border-radius: 14px; box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 18px 40px -16px rgba(0,0,0,.5); animation: rise-in .25s var(--ease-out); }
.batchbar .btn { box-shadow: none; }
.batchbar .btn-ghost { color: var(--cream); }
.batchbar .small { color: rgba(253,246,227,.7); }
.next-runs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.next-runs .nr { min-width: 150px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); display: grid; gap: 2px; text-align: left; }
.next-runs .nr b { font-size: 18px; }
.next-runs .nr span { font-weight: 600; font-size: 13.5px; }
.next-runs .nr small { color: var(--mut); font-size: 12px; }
.today-tasks .card-body { padding-top: 6px; padding-bottom: 6px; }

/* ================= карта мира ================= */
.wmap { position: relative; overflow: hidden; background: #e8f0f5; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--sh-2); }
.wmap-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; user-select: none; }
.wmap.dragging .wmap-svg { cursor: grabbing; }
.wm-sea { fill: #e6eff5; }
.wm-grat { fill: none; stroke: rgba(62, 140, 209, .2); stroke-width: .6; vector-effect: non-scaling-stroke; }
.wm-land { fill: #fffdf7; stroke: #1d1c1c; stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.wm-border { fill: none; stroke: rgba(29, 28, 28, .2); stroke-width: .6; vector-effect: non-scaling-stroke; }
.wm-outline { fill: none; stroke: rgba(29, 28, 28, .18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wm-n { fill: #172434; pointer-events: none; }
.wm-n.n0 { opacity: .13; } .wm-n.n1 { opacity: .1; } .wm-n.n2 { opacity: .08; } .wm-n.n3 { opacity: .07; }
.wm-sun circle { fill: #F5C244; stroke: #1d1c1c; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wm-sun .halo { fill: rgba(245, 194, 68, .35); stroke: none; }
.wm-c { fill: var(--white); stroke: #1d1c1c; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; transition: stroke-width .15s; }
.wm-c:hover { stroke-width: 2.6; }
.wm-c.st-ready, .wm-c.st-live { fill: var(--green); }
.wm-c.st-gathering { fill: var(--yellow); }
.wm-c.st-opening { fill: var(--blue); }
.wm-c.st-demand { fill: var(--white); stroke-dasharray: 2 1.5; }
.wm-c.st-caution, .wm-c.st-problem { fill: var(--red); }
.wm-c.st-out { fill: var(--grey-l); }
.wm-c.st-quiet { fill: #cfd8df; }
.wm-c.st-done { fill: #1d1c1c; }
.wm-c.lvlA { stroke-width: 2.2; }
.wm-ring { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ringp 1.8s ease-out infinite; pointer-events: none; }
@keyframes ringp { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }
.wm-p { fill: var(--white); stroke: #1d1c1c; stroke-width: .9; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; transition: opacity .3s; cursor: pointer; }
.wmap.zoomed .wm-p { opacity: 1; pointer-events: auto; }
.wm-p.beacon { fill: var(--green); } .wm-p.hot { fill: var(--red); } .wm-p.none { fill: #cfd8df; } .wm-p.busy { fill: var(--yellow); }
.wm-labels text { font-family: var(--font); font-weight: 700; fill: #1d1c1c; stroke: #fffdf7; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.wm-ctrl { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.wm-presets { position: absolute; left: 12px; top: 12px; }
@media (max-width: 600px) {
  .wm-presets { right: 12px; display: flex; }
  .wm-presets button { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  .wm-presets button[data-preset="world"] { display: none; }
  .wm-ctrl { top: 56px; }
}
.wm-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.4; box-shadow: var(--sh-2); max-width: 280px; }
.wm-tip b { font-weight: 800; }
.wm-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; background: rgba(255, 253, 247, .94); border: 1.5px solid var(--ink); border-radius: 10px; font-size: 12px; font-weight: 600; max-width: calc(100% - 24px); }
.wm-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* план точек города */
.cplan { display: block; width: 100%; height: auto; }
.cp-bg { fill: #f6f1e4; }
.cp-grid { stroke: rgba(29, 28, 28, .08); stroke-width: 1; fill: none; }
.cp-pt { cursor: pointer; outline: none; }
.cp-dot { fill: var(--white); stroke: #1d1c1c; stroke-width: 2; transition: r .15s; }
.cp-halo { fill: transparent; transition: fill .15s; }
.cp-pt:hover .cp-halo, .cp-pt:focus-visible .cp-halo { fill: rgba(245, 194, 68, .5); }
.cp-pt.beacon .cp-dot { fill: var(--green); }
.cp-pt.warn .cp-dot { fill: var(--red); }
.cp-pt.hid .cp-dot { fill: var(--grey-l); stroke-dasharray: 3 3; }
.cp-pt text { font: 800 13px var(--font); fill: #1d1c1c; pointer-events: none; }
.cp-pt.beacon text, .cp-pt.warn text { fill: #fff; }
.cp-new .cp-dot { fill: var(--hl); stroke-dasharray: 4 3; }
.cp-center path { stroke: rgba(29, 28, 28, .35); stroke-width: 1.5; }
.cp-scale path { stroke: #1d1c1c; stroke-width: 2; fill: none; }
.cp-north path { fill: #1d1c1c; }
.cp-scale text, .cp-north text { font: 700 11px var(--font); fill: #1d1c1c; }

/* ================= мелкие графики ================= */
.chart-auto { width: 100%; min-width: 0; }
.mini-bars .axis { stroke: var(--ink); stroke-width: 1.5; }
.bar-r { fill: var(--ink); }
.bar-r.y { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; }
.bar-r.g { fill: var(--green); stroke: var(--ink); stroke-width: 1.2; }
.bar-r.r { fill: var(--red); stroke: var(--ink); stroke-width: 1.2; }
.bar-r.b { fill: var(--blue); stroke: var(--ink); stroke-width: 1.2; }
.bar-r.m { fill: var(--magenta); stroke: var(--ink); stroke-width: 1.2; }
.bar-r.l { fill: var(--grey-l); stroke: var(--ink); stroke-width: 1.2; }
.bar-v, .bar-l { font: 600 10.5px var(--font); fill: var(--ink-3); }
.lines .grid { stroke: rgba(29, 28, 28, .08); }
.lines .ax { font: 500 10.5px var(--font); fill: var(--mut); }
.lines .ln { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lines .ln.dash { stroke-dasharray: 6 5; stroke: var(--ink-3); stroke-width: 2; }
.lines .ln.dot { stroke-dasharray: 1 5; stroke-width: 2.6; }
.lines .ln.green { stroke: var(--green); } .lines .ln.red { stroke: var(--red); } .lines .ln.blue { stroke: var(--blue); } .lines .ln.magenta { stroke: var(--magenta); } .lines .ln.yellow { stroke: #d9a514; }
.lines .area { fill: rgba(245, 194, 68, .28); }
.lines .area.magenta { fill: rgba(210, 31, 115, .14); }
.lines .area.green { fill: rgba(53, 178, 122, .16); }
.lines .band { fill: rgba(62, 140, 209, .14); }
.lines .goal { stroke: var(--red); stroke-dasharray: 6 5; stroke-width: 1.6; }
.lines .goal-t { font: 700 11px var(--font); fill: #c4321f; }
.lines .mark { stroke: var(--ink); stroke-dasharray: 2 3; }
.lines .mark-t { font: 700 10.5px var(--font); fill: var(--ink); }
.lines .end { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.lines .end.magenta { fill: var(--magenta); }
.sharebar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; border: 1.5px solid var(--ink); background: var(--grey-xl); }
.sharebar i { display: block; min-width: 2px; }
.sharebar i + i { border-left: 1.5px solid var(--ink); }
.sharebar i.green, .sw.green { background: var(--green); } .sharebar i.yellow, .sw.yellow { background: var(--yellow); } .sharebar i.red, .sw.red { background: var(--red); } .sharebar i.grey, .sw.grey { background: var(--grey-l); } .sharebar i.ink, .sw.ink { background: var(--ink); } .sharebar i.blue, .sw.blue { background: var(--blue); }

/* ================= телефон ================= */
@media (max-width: 1200px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-rail .rail-keys { display: none; }
}
@media (max-width: 900px) {
  .mob-hint { display: flex; align-items: center; gap: 8px; margin: -8px 0 16px; padding: 8px 12px; border: 1.5px dashed var(--line-2); border-radius: 10px; font-size: 12.5px; color: var(--ink-3); background: var(--paper); }
  .today .page-head .acts { width: 100%; flex-wrap: nowrap; }
  .today .page-head .acts .seg { flex: 1; min-width: 0; }
  .today .page-head .acts .seg button { flex: 1; justify-content: center; padding: 0 8px; }
  .today .page-head .acts [data-act="q-batch"] { flex: none; width: 44px; padding: 0; }
  .today .page-head .acts [data-act="q-batch"] .bl { display: none; }
  .qp-table .tbl-wrap.cards { border: 1.5px solid var(--ink); }
  .qp-table .tbl.cards tbody tr { box-shadow: none; border-width: 0 0 1.5px; border-radius: 0; margin: 0; }
  .today-rail { grid-template-columns: minmax(0, 1fr); }
  .today-rail > :not(.rail-day) { display: none; }
  .qc-row { gap: 10px; padding: 12px 12px 12px 14px; min-height: 64px; align-items: flex-start; }
  .qc-ic { width: 36px; height: 36px; border-radius: 10px; }
  .qc-title { font-size: 15px; }
  .qcard.is-open .qc-title { font-size: 17px; }
  .qc-side { display: none; }
  .qc-quick { display: none; }
  .qc-body { padding: 0 14px 16px; }
  .qp-msg { grid-template-columns: minmax(0, 1fr); }
  .qp-col.back { border-left: 0; border-top: 1.5px dashed var(--line-2); }
  .qc-cr { grid-template-columns: minmax(0, 1fr); }
  .qc-why li { flex-direction: column; gap: 4px; }
  .qc-acts .btn { flex: 1 1 auto; }
  .qc-acts kbd { display: none; }
  .qc-more { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
  .qc-more .btn { flex: 1 1 30%; font-size: 13px; padding: 0 8px; }
  .batchbar { bottom: 80px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span2 { grid-column: auto; }
  .res-grid { grid-template-columns: minmax(0, 1fr); }
  .input-wrap .input.pre { padding-left: 12px; padding-top: 18px; height: 52px; }
  .input-wrap .prefix { top: 12px; transform: none; font-size: 10.5px; }
}

/* ================= Задачи ================= */
.tasks-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.tgroup + .tgroup { margin-top: 24px; }
.tlist { padding: 4px 0; overflow: hidden; }
.trow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1.5px solid var(--line); cursor: pointer; transition: background .12s; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--hl-soft); }
.trow.is-done .trow-t { color: var(--mut); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.trow.is-new { animation: flash 1.6s var(--ease-out); }
@keyframes flash { from { background: var(--hl); } to { background: transparent; } }
.trow-main { flex: 1; min-width: 0; }
.trow-t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.trow-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.trow-meta .small { display: inline-flex; align-items: center; gap: 4px; }
.t-author { display: inline-flex; flex: none; }
.t-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; flex: none; min-width: 150px; justify-content: flex-end; }
.t-due.over { color: #c4321f; }
.t-due.today { color: var(--ink); }
.t-due.done { color: #1f8a5b; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.bcol { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 16px; padding: 12px; min-height: 360px; transition: background .15s, box-shadow .15s; }
.bcol.over { background: var(--hl-soft); box-shadow: inset 0 0 0 3px var(--accent); }
.bcol-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }
.bcol-h h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bcol-list { display: grid; gap: 10px; }
.bcol-empty { padding: 26px 12px; text-align: center; color: var(--mut); font-size: 13px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.tcard { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px 10px; box-shadow: var(--sh); cursor: grab; transition: transform .15s var(--ease), box-shadow .15s; touch-action: pan-y; user-select: none; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.tcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tcard.over { border-left: 6px solid var(--red); }
.tcard.placeholder { opacity: .3; border-style: dashed; box-shadow: none; }
.tcard.ghost { position: fixed; z-index: 500; pointer-events: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45), var(--sh-3); cursor: grabbing; }
.tcard.dropped { animation: pop-in .35s var(--ease-out); }
body.dragging-task, body.dragging-task * { cursor: grabbing !important; }
.tcard-top { display: flex; align-items: center; gap: 6px; min-height: 4px; }
.tcard-top .grip { margin-left: auto; color: var(--mut-2); }
.tcard-t { font-weight: 600; font-size: 14px; line-height: 1.35; margin: 4px 0 8px; }
.tcard-b { margin-bottom: 10px; }
.tcard-f { display: flex; align-items: center; gap: 6px; }
.tcard-f .t-due { min-width: 0; font-size: 12px; }
.plan-head .plan-meter { min-width: 260px; }
.plan-last { padding-left: 20px; border-left: 1.5px dashed var(--line-2); }
.plan-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pcol { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; box-shadow: var(--sh); }
.pcol header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pitem { padding: 10px; border: 1.5px solid var(--line-2); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.pitem:hover { border-color: var(--ink); background: var(--hl-soft); }
.pitem-t { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.pitem-m { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pitem-m .t-due { min-width: 0; font-size: 11.5px; }
.loadbar { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.loadbar .bar { flex: 1; }
.cu-list { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); cursor: pointer; }
.cu-list b { display: block; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px 12px; align-items: end; margin: 0 0 14px; padding: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; }
@media (max-width: 1100px) { .plan-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .bcol { min-height: 0; }
  .trow { flex-wrap: wrap; padding: 12px 14px; gap: 8px 12px; }
  .trow-main { flex-basis: calc(100% - 40px); }
  .t-due { min-width: 0; justify-content: flex-start; }
  .plan-cols { grid-template-columns: minmax(0, 1fr); }
  .plan-last { padding-left: 0; border-left: 0; }
}

/* ================= Таймлайн ================= */
.tl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.tl-kpis .kpi .v small { font-size: 14px; }
.tl-controls { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: flex-end; padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--sh); }
.tlc { display: grid; gap: 5px; }
.tlc .kicker { font-size: 10px; }
.tl-wrap { padding: 6px 0 0; overflow: hidden; box-shadow: var(--sh-2); }
.tl-scroll { overflow-x: auto; overflow-y: hidden; }
.tl { position: relative; }
.tl-row { display: grid; grid-template-columns: var(--tl-side, 210px) minmax(0, 1fr); border-bottom: 1.5px solid var(--line); }
.tl-row.chart { transition: background .3s; }
.tl-row.chart.flash { background: var(--hl-soft); }
.tl-side { padding: 10px 12px 10px 16px; border-right: 1.5px solid var(--line); min-width: 0; background: var(--paper); }
.tl-plot { position: relative; min-width: 0; }
.axis-row { border-bottom: 2px solid var(--ink); }
.axis-row .tl-side { display: flex; align-items: center; }
.tl-axis { position: relative; height: 46px; }
.tl-axis .tk { position: absolute; top: 8px; transform: translateX(-50%); display: grid; justify-items: center; line-height: 1.1; white-space: nowrap; }
.tl-axis .tk b { font-size: 13px; font-weight: 800; }
.tl-axis .tk small { font-size: 10.5px; color: var(--mut); font-weight: 600; }
.tl-axis .tk::after { content: ""; width: 1.5px; height: 6px; background: var(--ink); margin-top: 3px; }
.tl-axis .tk.r { transform: translateX(-88%); justify-items: end; }
.tl-axis .tk.r::after { margin-right: 6px; }
.tl-axis .tk.l { transform: translateX(-12%); justify-items: start; }
.conv-ax { fill: #1f8a5b; }
.tl-today { position: absolute; top: 0; bottom: -2px; width: 0; }
.tl-today.edge span { transform: translateX(-100%); }
.tl-today span { position: absolute; top: 3px; left: 0; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; z-index: 2; }
.ts-t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.ts-src { font-size: 11px; color: var(--mut); margin: 2px 0 6px 20px; }
.ts-when { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .01em; }
.ts-vals { display: grid; gap: 2px; }
.sv { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.sv b { margin-left: auto; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 800; }
.sv i { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 1.5px solid var(--ink); }
.sw-k { background: var(--ink); } .sw-u { background: var(--grey-l); } .sw-p { background: transparent; border-style: dashed !important; } .sw-f { background: var(--blue-l); }
.sw-v { background: var(--blue-l); } .sw-c { background: var(--green); } .sw-m1 { background: var(--ink); } .sw-m2 { background: var(--blue); } .sw-m3 { background: var(--green); }
.sw-a { background: var(--accent); } .sw-b { background: var(--blue); }
.cmp-sw { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); display: inline-block; }
.tl-svg { display: block; overflow: visible; }
.tl-grid { stroke: rgba(29,28,28,.08); stroke-width: 1; }
.tl-ax { font: 600 10px var(--font); fill: var(--mut-2); }
.tl-future { stroke: none; }
.tl-now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tl-bar.known { fill: var(--ink); }
.tl-bar.unknown { fill: var(--grey-l); stroke: rgba(29,28,28,.35); stroke-width: 1; }
.tl-bar.vis { fill: var(--blue-l); stroke: rgba(29,28,28,.5); stroke-width: 1; }
.tl-bar.reach { fill: var(--accent); stroke: var(--ink); stroke-width: 1.2; }
.tl-ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.tl-ln.past { stroke: var(--ink-3); stroke-dasharray: 6 5; stroke-width: 1.8; }
.tl-ln.cur { stroke: var(--ink); stroke-width: 2.8; }
.tl-ln.fc { stroke: var(--blue); stroke-dasharray: 1.5 5; stroke-width: 3; }
.tl-ln.conv { stroke: var(--green); stroke-width: 2.4; }
.tl-ln.m1 { stroke: var(--ink); } .tl-ln.m2 { stroke: var(--blue); } .tl-ln.m3 { stroke: var(--green); }
.tl-ln.a { stroke: #d9a514; stroke-width: 2.8; } .tl-ln.b { stroke: var(--blue); stroke-width: 2.8; }
.tl-area { fill: rgba(245, 194, 68, .3); }
.tl-band { fill: rgba(62, 140, 209, .13); }
.tl-goal { stroke: var(--red); stroke-width: 1.8; stroke-dasharray: 7 5; }
.tl-goal-t { font: 800 11px var(--font); fill: #c4321f; }
.tl-fc-end { fill: var(--blue); stroke: var(--ink); stroke-width: 1.5; }
.tl-fc-t { font: 700 11px var(--font); fill: #2a6fae; paint-order: stroke; stroke: #fffdf7; stroke-width: 4px; stroke-linejoin: round; }
.tl-goal-t { paint-order: stroke; stroke: #fffdf7; stroke-width: 4px; stroke-linejoin: round; }
.tl-note { font: 700 10.5px var(--font); fill: var(--ink-2); paint-order: stroke; stroke: var(--cream); stroke-width: 3px; stroke-linejoin: round; }
.tl-empty-t { font: 600 12px var(--font); fill: var(--mut); }
.tl-mark { cursor: pointer; outline: none; }
.tl-mark circle { fill: var(--hl); stroke: var(--ink); stroke-width: 1.8; transition: r .15s; }
.tl-mark.dip circle { fill: var(--red-l); }
.tl-mark.pending circle { fill: var(--red); animation: none; }
.tl-mark.pending .mk-ic { stroke: #fff; }
.tl-mark.confirmed circle { fill: var(--green); }
.tl-mark.confirmed .mk-ic { stroke: #fff; }
.tl-mark .mk-ic { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tl-mark:hover circle, .tl-mark:focus-visible circle { r: 12; }
.tl-lanes-h { display: grid; grid-template-columns: var(--tl-side, 210px) minmax(0, 1fr); border-bottom: 1.5px solid var(--line); background: var(--cream); }
.tl-lanes-h .tl-side { background: var(--cream); padding-top: 12px; padding-bottom: 8px; }
.lanes-hint { display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.lane .tl-side.lane-side { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.lane-side span:first-of-type { flex: 1; min-width: 0; }
.lane-n { min-width: 20px; height: 18px; border-radius: 999px; background: var(--cream-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.tl-track { position: relative; min-width: 0; background-image: linear-gradient(90deg, rgba(29,28,28,.03) 1px, transparent 1px); background-size: 40px 100%; }
.lane:nth-child(even) .tl-track { background-color: rgba(253, 246, 227, .5); }
.hidden-lane .tl-track { background: none; }
.pill { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 25px; max-width: 360px; padding: 0 9px 0 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s; z-index: 1; }
.pill:hover, .pill.hot { transform: translateY(-1px); box-shadow: var(--sh); z-index: 3; }
.pill.hot { background: var(--hl); }
.pill.flip { flex-direction: row-reverse; padding: 0 4px 0 9px; }
.pill-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); }
.pill-t { overflow: hidden; min-width: 0; }
.pill.long .pill-t { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.pill-r { flex: none; font-size: 11px; }
.pill-r .est { height: 16px; font-size: 10.5px; padding: 0 4px; }
.pill.st-idea { border-style: dashed; background: transparent; color: var(--ink-3); }
.pill.st-idea .pill-dot { border-style: dashed; }
.pill.st-planned .pill-dot { background: var(--white); }
.pill.st-out { background: var(--yellow-xl); } .pill.st-out .pill-dot { background: var(--yellow); }
.pill.st-reviewed { background: var(--green-xl); } .pill.st-reviewed .pill-dot { background: var(--green); }
.pill.is-new { animation: pop-in .5s var(--ease-out); box-shadow: 0 0 0 3px var(--hl); }
.tl-track.tasks .tpin:nth-child(3n+2) { top: 18px !important; } .tl-track.tasks .tpin:nth-child(3n) { top: 29px !important; }
.tpin { position: absolute; width: 12px; height: 12px; margin-left: -6px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--white); transform: rotate(45deg); padding: 0; transition: transform .15s; }
.tpin:hover { transform: rotate(45deg) scale(1.35); }
.tpin.over { background: var(--red); } .tpin.done { background: var(--green); }
.tl-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--ink); pointer-events: none; z-index: 4; }
.tl-cross-l { position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 7px; background: var(--ink); color: var(--cream); font-size: 11px; font-weight: 700; white-space: nowrap; }
.legend .lg-mk { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--red); display: inline-block; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.cmp-row.click { cursor: pointer; border-radius: 8px; }
.cmp-row.click:hover { background: var(--hl-soft); }
.cmp-d { width: 30px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 7px; font-weight: 800; font-size: 12px; flex: none; background: var(--white); }
.cmp-card { padding: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.spike-pop { padding: 8px 8px 6px; }
.sp-ai { display: flex; gap: 8px; align-items: flex-start; }
.evid-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.evid-row:last-child { border-bottom: 0; }
.hyp { display: grid; gap: 6px; margin-top: 10px; }
.hyp-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: 13px; cursor: pointer; }
.hyp-row:has(input:checked) { border-color: var(--ink); background: var(--hl-soft); }
.hyp-row input { accent-color: var(--ink); margin: 0; }
@media (max-width: 1100px) { .tl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tl { --tl-side: 150px; }
  .tl-side { padding: 8px 10px; position: sticky; left: 0; z-index: 6; box-shadow: 1px 0 0 var(--line); }
  .tl-lanes-h .lanes-hint { display: none; }
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-controls { gap: 10px 14px; }
  .seg.seg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .seg.seg-grid button { justify-content: center; }
}

/* ================= Города ================= */
.cities-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
.ct-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ct-filters .input-wrap { width: 210px; }
.ct-filters .select { width: auto; min-width: 150px; }
.cities-tbl td { white-space: nowrap; }
.cities-tbl th, .cities-tbl td { padding-left: 9px; padding-right: 9px; }
.cities-tbl th:first-child, .cities-tbl td:first-child { padding-left: 16px; }
.cities-tbl td:first-child { white-space: normal; min-width: 160px; }
.city-link { color: var(--ink); text-decoration: none; }
.city-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ready-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.ready-cell .segbar { flex: 1; min-width: 70px; }
.cp-mini { font-size: 12.5px; color: var(--ink-3); }
.cp-mini.risk { color: #c4321f; font-weight: 600; }
.ct-map-wrap { position: relative; }
.ct-map { height: min(620px, 68vh); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; margin-bottom: 12px; color: var(--ink-3); }
.back-link:hover { color: var(--ink); }
.city-head h1 .tag { font-size: 13px; height: 26px; padding: 0 10px; letter-spacing: 0; }
.city-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.city-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.city-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.city-grid .span-12 { grid-column: span 12; } .city-grid .span-7 { grid-column: span 7; } .city-grid .span-6 { grid-column: span 6; } .city-grid .span-5 { grid-column: span 5; }
.cp-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.ready-big { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.ready-big .segbar { flex: 1; height: 14px; }
.rb-num { display: flex; align-items: baseline; gap: 4px; }
.rb-num b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.rb-num span { color: var(--mut); font-weight: 600; }
.cpl-list { position: relative; display: grid; gap: 2px; }
.cpl-list::before { content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.cpl { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 0; }
.cpl-d { position: relative; z-index: 1; width: 36px; height: 30px; border-radius: 9px; border: 2px solid var(--ink); background: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cpl-t > b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cpl-t span b { font-weight: 700; color: var(--ink); }
.cpl-t span b.c-red { color: #c4321f; }
.cpl-t span { font-size: 12px; color: var(--mut); }
.cpl.ahead .cpl-d { border-color: var(--line-2); color: var(--ink-3); }
.cpl.next .cpl-d { background: var(--hl); }
.cpl.risk .cpl-d { background: var(--red); color: #fff; animation: pulse-ring 2s infinite; }
.cpl.done .cpl-d { background: var(--green); color: #fff; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.plan-wrap { border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: #f6f1e4; }
.cp-lead { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; fill: none; }
.cp-real { fill: var(--ink); }
.cp-city { font: 800 22px var(--font); fill: rgba(29, 28, 28, .1); letter-spacing: -.02em; }
.cp-center text { font: 600 10px var(--font); fill: var(--mut); }
.plan-legend { padding: 8px 12px; border-top: 1.5px solid var(--line-2); background: var(--paper); }
.pts { display: grid; gap: 6px; }
.pt-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pt-row:hover { border-color: var(--ink); background: var(--hl-soft); }
.pt-row .t { flex: 1; min-width: 0; }
.pt-row .t b { display: block; font-weight: 700; font-size: 14px; }
.pt-row .t span { font-size: 12px; color: var(--mut); }
.pt-n.ok { background: var(--green); color: #fff; } .pt-n.bad { background: var(--red); color: #fff; }
.pt-n.prop { background: var(--hl); border-style: dashed; }
.pt-row.prop { border-style: dashed; cursor: default; }
.pt-stat { display: grid; justify-items: end; line-height: 1.1; min-width: 74px; }
.pt-stat b { font-size: 15px; font-weight: 800; }
.pt-stat small { font-size: 11px; color: var(--mut); }
.pt-prop { margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line-2); display: grid; gap: 6px; }
.vol-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vr-cell { display: grid; gap: 1px; padding: 10px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); }
.vr-cell b { font-size: 22px; font-weight: 800; }
.vr-cell span { font-size: 12.5px; font-weight: 700; }
.vr-cell small { font-size: 11px; color: var(--mut); }
.chat-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--ink); border-radius: 12px; font-size: 13.5px; }
.chat-link span { flex: 1; min-width: 0; }
.rules { display: grid; gap: 12px; }
.rules-sos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--red-xl); }
.rules-sos b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.rules-note { padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.rules-note ul { display: grid; gap: 5px; font-size: 13.5px; padding-left: 0; }
.rules-note li { position: relative; padding-left: 14px; }
.rules-note li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.src-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rules-hol { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.steps-ai { display: grid; gap: 8px; }
.sa-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); box-shadow: var(--sh-1); }
.sa-row .t { flex: 1; min-width: 0; }
.sa-row .t b { display: block; font-weight: 700; font-size: 14px; }
.sa-row .t span { font-size: 12.5px; color: var(--ink-3); }
.sa-ic { width: 32px; height: 32px; border-radius: 9px; border: 1.5px dashed var(--ink); background: var(--cream); display: grid; place-items: center; flex: none; }
@media (max-width: 1200px) { .cities-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .city-grid .span-7, .city-grid .span-5, .city-grid .span-6 { grid-column: span 12; } .plan-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .cities-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-filters .input-wrap, .ct-filters .select { width: 100%; }
  .ct-filters { width: 100%; }
  .vol-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .sa-row { flex-wrap: wrap; }
  .sa-row .t { flex-basis: calc(100% - 46px); }
  .sa-row .btn { margin-left: 44px; }
  .pt-row { flex-wrap: wrap; }
  .pt-row .t { flex-basis: calc(100% - 40px); }
  .ct-map { height: 420px; }
  .cities-tbl td { white-space: normal; }
}

/* ================= Люди ================= */
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; margin-bottom: 16px; overflow: hidden; }
.fn-stages { display: flex; align-items: stretch; gap: 0; padding: 16px 12px 12px 16px; overflow-x: auto; }
.fn-st { position: relative; flex: 1 1 0; min-width: 92px; display: grid; justify-items: start; align-content: start; gap: 4px; padding: 6px 12px 6px 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; transition: background .15s; }
.fn-st:hover { background: var(--cream); }
.fn-st.on { background: var(--hl); box-shadow: inset 0 0 0 2px var(--ink); }
.fn-bar { width: 100%; height: 118px; display: flex; align-items: flex-end; border-bottom: 2px solid var(--ink); }
.fn-bar i { display: block; width: 70%; background: var(--accent); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; transition: height .4s var(--ease-out); }
.fn-st:nth-child(n+5) .fn-bar i { background: var(--green); }
.fn-st b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.fn-t { font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.2; }
.fn-gap { position: absolute; right: -14px; top: 92px; z-index: 1; padding: 1px 6px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line-2); font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.fn-side { border-left: 2px solid var(--ink); background: var(--paper); padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.fn-kpi { display: grid; gap: 3px; }
.fn-kpi > b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.fn-sides { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-3); }
.fn-best { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--white); font-size: 12.5px; margin-top: 2px; }
.fn-best:hover { border-color: var(--ink); }
.fn-best b { color: #1f8a5b; }
.pp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pp-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-filters .input-wrap { width: 170px; }
.pp-filters .select { width: 140px; min-width: 0; }
.pboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.pcolumn { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 16px; padding: 10px; }
.pcolumn.side { background: var(--grey-xl); border-style: dashed; }
.pcolumn header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.pcolumn header b { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pc-list { display: grid; gap: 8px; }
.ccard { padding: 10px 11px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); box-shadow: var(--sh); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; min-width: 0; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.ccard.waiting { background: var(--yellow-xl); }
.ccard.stuck { border-left: 6px solid var(--red); }
.cc-top { display: flex; align-items: center; gap: 8px; }
.cc-name { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.cc-handle { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); }
.cc-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.cc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pc-more { width: 100%; padding: 8px; border: 1.5px dashed var(--ink); border-radius: 10px; background: transparent; font-weight: 700; font-size: 12.5px; }
.pc-more:hover { background: var(--white); }
.upload-drop { display: grid; justify-items: center; gap: 6px; padding: 28px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--paper); text-align: center; }
/* страница партнёра */
.pv { background: var(--white); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; }
.pv-head { padding: 34px 36px 28px; background: var(--cream); border-bottom: 2px solid var(--ink); }
.pv-head .ribbon { height: 7px; width: 120px; margin-bottom: 22px; }
.pv-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pv-mark svg { width: 26px; height: 26px; }
.pv-head h1 { margin-top: 18px; font-size: 44px; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.pv-head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding: 0 28px; margin-top: 22px; }
.pv > .pv-card { margin: 22px 28px 0; }
.pv-card { border: 2px solid var(--ink); border-radius: 16px; padding: 16px 18px; background: var(--white); }
.pv-count { background: var(--hl); display: grid; align-content: start; gap: 4px; }
.pv-count b { font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.pv-count span { font-weight: 600; }
.pv-mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pv-mat { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); font-weight: 600; text-align: left; transition: background .15s; }
.pv-mat:hover { background: var(--hl-soft); }
.pv-mat span { flex: 1; }
.pv-brief { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.pv-foot { margin-top: 26px; padding: 16px 28px; border-top: 2px solid var(--ink); background: var(--cream); font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 1100px) { .funnel { grid-template-columns: minmax(0, 1fr); } .fn-side { border-left: 0; border-top: 2px solid var(--ink); grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .fn-side { grid-template-columns: minmax(0, 1fr); }
  .pp-filters .input-wrap, .pp-filters .select { width: 100%; }
  .pp-filters { width: 100%; }
  .pboard { grid-auto-columns: minmax(240px, 82vw); }
  .pv-head { padding: 24px 20px; }
  .pv-head h1 { font-size: 32px; }
  .pv-grid { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .pv > .pv-card { margin: 16px 16px 0; }
  .pv-mats { grid-template-columns: minmax(0, 1fr); }
}

/* ================= День волны ================= */
.wv-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 12px; margin-bottom: 16px; }
.wv-stat { padding: 14px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); box-shadow: var(--sh); display: grid; gap: 4px; align-content: start; min-width: 0; }
.wv-stat > b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.wv-stat.big { background: var(--ink); color: var(--cream); box-shadow: 0 3px 0 var(--accent); }
.wv-stat.big .kicker { color: rgba(253,246,227,.7); }
.wv-stat.big b { font-size: 44px; }
.wv-stat.big .delta.up { color: var(--green-l); }
.wv-stat.hot { background: var(--red-xl); }
.wv-stat.duty b { display: block; font-weight: 700; }
.wv-stat.duty .small { display: block; }
.wv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.wv-main, .wv-side { display: grid; gap: 16px; min-width: 0; }
.wv-panel.p-map { position: relative; }
.wv-map { height: 470px; }
.flat-in { border: 0; border-radius: 0 0 14px 14px; box-shadow: none; }
.share-cell { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.share-cell .bar { flex: 1; min-width: 50px; }
.wm-list { display: grid; gap: 10px; max-height: 620px; overflow-y: auto; }
.wmsg { padding: 12px 12px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.wmsg:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.wmsg.s1 { background: var(--red-xl); border-left-width: 7px; border-left-color: var(--red); }
.wmsg.s2 { border-left-width: 7px; border-left-color: var(--red-l); }
.wmsg.now { box-shadow: 0 0 0 3px rgba(240, 74, 63, .25), var(--sh); }
.wmsg.done { opacity: .6; }
.wm-top { display: flex; align-items: center; gap: 10px; }
.wm-top b { display: block; font-size: 13.5px; line-height: 1.2; }
.wm-text { margin-top: 8px; font-size: 13.5px; line-height: 1.45; }
.wm-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.feed-item.hot .ico { background: var(--red); color: #fff; }
.duty-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.duty-row .t { flex: 1; min-width: 0; }
.duty-row .t b { display: block; font-size: 13.5px; }
.duty-row .t span { font-size: 12px; color: var(--mut); }
.duty-row.cur { background: var(--green-xl); box-shadow: inset 0 0 0 1.5px var(--ink); }
.duty-row.past { opacity: .55; }
.duty-row.gap { background: var(--red-xl); color: #c4321f; }
.duty-note { display: flex; gap: 8px; margin-top: 10px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 10px; font-size: 12.5px; color: var(--ink-3); }
.wv-mtabs { margin-bottom: 14px; width: 100%; }
.wv-mtabs button { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; height: 48px; padding: 0 2px; font-size: 10.5px; letter-spacing: 0; }
.alarm { display: grid; gap: 0; counter-reset: a; padding: 0; }
.alarm li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; }
.alarm li::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.alarm li:last-child::before { display: none; }
.alarm li b { display: block; font-size: 14px; }
.alarm li span:not(.al-n) { font-size: 12.5px; color: var(--ink-3); }
.al-n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--white); color: var(--mut); }
.alarm li.ok .al-n { background: var(--green); border-color: var(--ink); color: #fff; }
.alarm li.ok::before { background: var(--green); }
.alarm li.cur .al-n { background: var(--hl); border-color: var(--ink); color: var(--ink); animation: pulse-ring 1.8s infinite; }
.alarm-forks { display: grid; gap: 6px; }
.fork { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1.5px dashed var(--ink); border-radius: 10px; font-size: 12.5px; background: var(--paper); }
.prep-top .countdown { background: var(--ink); color: var(--cream); box-shadow: 0 3px 0 var(--accent); }
.prep-top .countdown .kicker, .prep-top .countdown .small { color: rgba(253,246,227,.7); }
.cd-num { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.cd-num b { font-size: 72px; font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.cd-num span { font-size: 20px; font-weight: 700; }
.cd-mini b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cd-mini span { font-size: 12.5px; color: var(--mut); }
.duty-gantt { position: relative; display: grid; gap: 8px; padding-top: 26px; }
.dg-scale { position: absolute; left: 110px; right: 0; top: 0; height: 20px; }
.dg-scale span { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--mut); }
.dg-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 0; }
.dg-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.dg-track { position: relative; height: 24px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--grey-xl) 0 1px, transparent 1px 8.33%); border: 1.5px solid var(--line-2); }
.dg-shift { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; background: var(--green); border: 1.5px solid var(--ink); }
.dg-shift.backup { background: repeating-linear-gradient(45deg, var(--green-l) 0 4px, transparent 4px 8px); border-style: dashed; }
.dg-gap { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; background: var(--red); border: 1.5px solid var(--ink); animation: blink 1.6s infinite; }
.res-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .wv-grid { grid-template-columns: minmax(0, 1fr); } .wv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .wv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wv-stat { padding: 10px 12px; }
  .wv-stat > b { font-size: 26px; }
  .wv-stat.big { grid-column: span 2; }
  .wv-stat.big b { font-size: 36px; }
  .wv-stat.duty { grid-column: span 2; }
  .wv-grid .wv-panel { display: none; }
  .wv-grid[data-mtab="msgs"] .p-msgs, .wv-grid[data-mtab="map"] .p-map, .wv-grid[data-mtab="feed"] .p-feed, .wv-grid[data-mtab="cities"] .p-cities, .wv-grid[data-mtab="duty"] .p-duty { display: block; }
  .wv-map { height: 360px; }
  .wm-list { max-height: none; }
  .res-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-row { grid-template-columns: 76px minmax(0, 1fr); }
  .dg-scale { left: 76px; }
  .dg-scale span:nth-child(even) { display: none; }
  .cd-num b { font-size: 56px; }
}

/* ================= Разбор недели ================= */
.rw-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rw-st { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--white); }
.rw-st.ok { border-color: var(--ink); background: var(--green-xl); }
.rw-st.cur { border-color: var(--ink); background: var(--hl); }
.rw-sec { margin-top: 30px; }
.rw-h { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.rw-h::after { content: ""; flex: 1; height: 0; border-top: 1.5px dashed var(--line-2); }
.rw-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rw-nums .kpi .v { font-size: 26px; }
.rw-nums .kpi .v small { font-size: 13px; }
.rw-act { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.rw-act:last-child { border-bottom: 0; }
.rw-act:hover .t b { text-decoration: underline; text-underline-offset: 3px; }
.rw-act .t { flex: 1; min-width: 0; }
.rw-act .t b { display: block; font-size: 14px; }
.rw-act .t span { font-size: 12.5px; color: var(--ink-3); }
.rw-res { flex: none; font-size: 14px; }
.rw-why p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.rw-why p + p { margin-top: 10px; }
.rw-dec { padding: 18px 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); box-shadow: var(--sh-2); }
.rw-dec.decided { background: var(--paper); box-shadow: var(--sh); }
.rw-dec-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.rw-dec-h h3 { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.rw-n { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ink); color: var(--hl); display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.rw-opts { display: grid; gap: 8px; }
.rw-opts .qp-opt.own { border-style: dashed; }
.rw-ai b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.rw-ai span { font-size: 12.5px; color: var(--mut); }
.rw-fc b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -.035em; margin: 6px 0 2px; }
.ask { display: flex; gap: 8px; }
.ask-ans { padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); animation: rise-in .3s var(--ease-out); }
.digest .dg-lines { display: grid; gap: 10px; counter-reset: l; }
.digest .dg-lines li { position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.5; }
.digest .dg-lines li::before { counter-increment: l; content: counter(l); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--hl); }
.tg-preview { padding: 16px; border: 2px solid var(--ink); border-radius: 20px; background: #dfe9f2; align-self: start; }
.tg-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 14px; }
.tg-head span { margin-left: auto; font-size: 12px; color: var(--mut); }
.tg-msg { position: relative; padding: 12px 14px 22px; border-radius: 4px 16px 16px 16px; background: var(--white); border: 1.5px solid rgba(29,28,28,.2); font-size: 13.5px; line-height: 1.45; }
.tg-msg b { display: block; margin-bottom: 6px; }
.tg-msg p + p { margin-top: 6px; }
.tg-link { display: inline-block; margin-top: 10px; color: #2a6fae; font-weight: 700; }
.tg-time { position: absolute; right: 10px; bottom: 6px; font-size: 11px; color: var(--mut); }
@media (max-width: 1100px) { .rw-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rw-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rw-dec { padding: 14px; } .rw-dec .row.between { flex-wrap: wrap; } .rw-dec .row.between .btn { width: 100%; } .ask { flex-direction: column; } }

/* ================= ИИ ================= */
.ai-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ai-kill { margin-top: 16px; background: var(--paper); }
.ai-kill .row { flex-wrap: nowrap; }
.ai-kill .grow { flex: 1 1 300px; }
@media (max-width: 900px) { .ai-kill .row { flex-wrap: wrap; } }
.kill-ic { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--ink); background: var(--red-l); display: grid; place-items: center; flex: none; }
.ai-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.al { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: 14px; background: var(--white); font-size: 12.5px; color: var(--ink-3); }
.al b { font-size: 14px; color: var(--ink); }
.al-num { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--hl); display: grid; place-items: center; font-weight: 900; margin-bottom: 4px; }
.lvl-dots { display: inline-flex; align-items: center; gap: 3px; }
.lvl-dots i { width: 9px; height: 18px; border-radius: 3px; border: 1.5px solid var(--ink); background: transparent; }
.lvl-dots i.on { background: var(--ink); }
.lvl-dots b { margin-left: 6px; font-size: 13px; font-weight: 800; }
.acc { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.acc .bar { flex: 1; }
.acc b { font-size: 12.5px; min-width: 38px; text-align: right; }
.ai-tbl td { vertical-align: middle; }
.lvl-card { padding: 16px 18px; }
.lvl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.ls { position: relative; display: grid; gap: 3px; padding: 12px 14px; background: var(--white); font-size: 12.5px; color: var(--mut); }
.ls + .ls { border-left: 1.5px solid var(--line-2); }
.ls b { font-size: 14px; color: var(--ink-3); }
.ls-n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; margin-bottom: 4px; }
.ls.past { background: var(--green-xl); }
.ls.past .ls-n { background: var(--green); color: #fff; border-color: var(--ink); }
.ls.cur { background: var(--hl); color: var(--ink-2); box-shadow: inset 0 -4px 0 var(--ink); }
.ls.cur b { color: var(--ink); }
.ls.cur .ls-n { background: var(--ink); color: var(--hl); border-color: var(--ink); }
.lvl-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.lvl-foot .small { flex: 1; color: var(--ink-3); }
.lvl-types { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line-2); }
.ai-instr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.instr-ta { min-height: 340px; font-size: 14.5px; line-height: 1.65; background: var(--paper); }
.ver-b { min-width: 34px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.ver-b.cur { background: var(--ink); color: var(--hl); border-color: var(--ink); }
.diff { border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; }
.diff > div { padding: 6px 10px; }
.diff .del { background: var(--red-xl); color: #a3271a; }
.diff .add { background: var(--green-xl); color: #17694a; }
.ex-card.ok { border-color: var(--ink); } .ex-card.no { background: var(--red-xl); } .ex-card.edit { background: var(--yellow-xl); }
.ex-q { font-style: italic; color: var(--ink-3); padding: 8px 10px; border-left: 3px solid var(--line-2); background: var(--white); border-radius: 0 8px 8px 0; }
.run-res { animation: rise-in .3s var(--ease-out); }
@media (max-width: 1200px) { .ai-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ai-instr { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .ai-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls:nth-child(3) { border-left: 0; }
  .ls:nth-child(n+3) { border-top: 1.5px solid var(--line-2); }
  .lvl-foot { flex-direction: column; align-items: stretch; }
}

/* ================= Настройки ================= */
.st-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.st-nav { position: sticky; top: calc(var(--top-h) + var(--frame-w) + 20px); display: grid; gap: 2px; padding: 8px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: var(--sh); }
.st-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s; }
.st-nav a:hover { background: var(--cream); color: var(--ink); }
.st-nav a[aria-current="page"] { background: var(--nav-on); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.st-body { min-width: 0; }
.st-sec + .st-sec { margin-top: 28px; }
.st-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.st-h > div { max-width: 680px; }
.st-h .small { margin-top: 4px; }
.dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.dir { box-shadow: var(--sh); }
.dir-own, .dir-ppl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dir-pick { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 13px; }
.dir-pick:hover { background: var(--hl-soft); }
.dir-pick[disabled] { opacity: .5; cursor: not-allowed; }
.waves-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wave-card { display: grid; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--white); }
.wave-card b { font-size: 16px; }
.wave-card.cur { border: 2px solid var(--ink); background: var(--hl); box-shadow: var(--sh); }
.cp-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.cpt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); font-size: 13px; }
.langs { display: flex; gap: 3px; flex-wrap: wrap; }
.lng { width: 26px; height: 20px; border-radius: 5px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--mut-2); }
.lng.on { border: 1.5px solid var(--ink); background: var(--green-xl); color: var(--ink); }
.esc { display: grid; gap: 10px; padding: 0; }
.esc li { display: flex; gap: 12px; align-items: center; }
.esc li b { display: block; font-size: 14px; }
.esc li span:not(.al-n) { font-size: 12.5px; color: var(--mut); }
.esc .al-n { background: var(--hl); border-color: var(--ink); color: var(--ink); }
.gap-row td { background: var(--red-xl); }
.conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.conn { padding: 14px 16px; box-shadow: var(--sh); }
.conn.err { background: var(--red-xl); }
.conn-h { display: flex; gap: 12px; align-items: flex-start; }
.conn-h b { display: block; font-size: 14.5px; }
.conn-h .small { display: block; margin-top: 2px; line-height: 1.35; }
.conn-ic { width: 40px; height: 40px; flex: none; border: 1.5px solid var(--ink); border-radius: 12px; display: grid; place-items: center; background: var(--paper); }
.conn-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed var(--line-2); }
.conn-f .small { display: inline-flex; align-items: center; gap: 4px; }
.conn-opt { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.rules-tbl td:nth-child(3) { min-width: 260px; }
.rules-tbl td:nth-child(5) { white-space: nowrap; }
.rules-tbl thead th { white-space: normal; }
.team-tbl td:nth-child(4) { min-width: 130px; font-size: 12.5px; }
.team-tbl .person > span { min-width: 0; }
.fp { padding: 2px 8px; border: 1.5px dashed var(--line-2); border-radius: 6px; background: var(--paper); }
@media (max-width: 1100px) { .waves-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); }
  .st-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .st-nav::-webkit-scrollbar { display: none; }
  .st-nav a { white-space: nowrap; flex: none; }
}

/* ================= Fledge Events ================= */
.gate-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 32px; background: linear-gradient(135deg, var(--white) 55%, var(--magenta-xl)); }
.gate-art .art { width: 200px; height: 152px; }
.gate-t h1 { max-width: 640px; }
.gate-list { display: grid; gap: 8px; }
.gate-row { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: var(--sh); }
.gate-row .t b { display: block; font-size: 14.5px; }
.gate-row .t span { font-size: 12.5px; color: var(--ink-3); }
.gate-n { width: 34px; height: 34px; border-radius: 10px; background: var(--magenta); color: #fff; display: grid; place-items: center; font-weight: 900; border: 2px solid var(--ink); }
.gate-now { display: grid; gap: 4px; justify-items: start; }
.gate-where { display: inline-flex; align-items: center; gap: 4px; }
.fe-lanes .fe-lane { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1.5px solid var(--line); }
.fe-lane-t { padding: 12px 16px; font-weight: 600; font-size: 13px; background: var(--paper); border-right: 1.5px solid var(--line); }
.fe-lane-track { position: relative; height: 46px; margin: 0 16px 0 12px; }
.fe-rules { display: grid; gap: 6px; font-size: 13.5px; }
.fe-rules li { position: relative; padding-left: 16px; }
.fe-rules li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--magenta); }
html[data-contour="fe"] .kpi.hl { background: var(--magenta-l); }
html[data-contour="fe"] .wv-stat.big { box-shadow: 0 3px 0 var(--magenta); }
html[data-contour="fe"] .chip[aria-pressed="true"] { background: var(--magenta-l); }
html[data-contour="fe"] .seg button[aria-pressed="true"] { background: var(--magenta); color: #fff; }
html[data-contour="fe"] .qc-quick:hover, html[data-contour="fe"] .qcard:hover .qc-quick { color: #fff; }
@media (max-width: 900px) {
  .gate-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 12px; }
  .gate-art .art { width: 150px; height: 114px; }
  .gate-row { grid-template-columns: 34px minmax(0, 1fr); }
  .gate-now, .gate-where { grid-column: 2; }
  .fe-lanes .fe-lane { grid-template-columns: minmax(0, 1fr); }
  .fe-lane-t { border-right: 0; }
  .fe-lane-track { margin: 0 8px; }
}

.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mut); }
