/* Экран «Контроль заявок». Токены - продуктовый брендбук Топ-Топ Админ (5.3, 5.4 - темы; 5.5 - статусы;
   13.1 - серии s1-s5; последовательная шкала возраста q1-q5), значения - из одобренного прототипа.
   Шрифт - локальный файл (страница с данными клиентов не тянет сторонние ресурсы). */
@font-face{font-family:"Montserrat";src:url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:light;--tt-bg:#EAE8E3;--tt-surface:#FFFFFF;--tt-surface-2:#EAE8E3;--tt-text:#0F1A2C;--tt-muted:#585F69;--tt-border:#D2D1CF;--tt-accent:#C43A31;--tt-btn:#B03630;--tt-btn-hover:#9C3330;--tt-btn-active:#882F2F;--tt-btn-ink:#EAE8E3;--tt-soft:#E6D5CF;--tt-soft-bd:#E2C1BB;--tt-focus:#C43A31;--tt-overlay:rgba(15,26,44,.55);--tt-shadow:0 1px 2px rgba(15,26,44,.06),0 4px 12px rgba(15,26,44,.06);--tt-empty:rgba(255,255,255,.5);--ok:#007131;--ok-bg:#D9F3DD;--ok-bd:#ABD8B3;--ok-ink:#007131;--warn:#7B5600;--warn-bg:#FAE9CE;--warn-bd:#E3C697;--warn-ink:#7B5600;--info:#0E5CAF;--info-bg:#DEEDFF;--info-bd:#ACCDF8;--info-ink:#0E5CAF;--err:#A61515;--err-bg:#FFE4E0;--err-bd:#F5BAB1;--err-ink:#A61515;--neu-bg:#D2D1CF;--neu-ink:#0F1A2C;--s1:#C43A31;--s2:#0053A5;--s3:#2EA957;--s4:#8757B7;--s5:#956900;--q1:#E6D5CF;--q2:#DDAEA8;--q3:#D58780;--q4:#CC6159;--q5:#C43A31;--logo-mark:#C43A31}
@media (prefers-color-scheme:dark){:root{color-scheme:dark;--tt-bg:#0F1A2C;--tt-surface:#273140;--tt-surface-2:#404855;--tt-text:#EAE8E3;--tt-muted:#A1A3A6;--tt-border:#404855;--tt-accent:#C84D45;--tt-btn:#CC6159;--tt-btn-hover:#D1746C;--tt-btn-active:#D58780;--tt-btn-ink:#0F1A2C;--tt-soft:#37212D;--tt-soft-bd:#4B252E;--tt-focus:#EAE8E3;--tt-shadow:none;--tt-empty:transparent;--ok:#40AD60;--ok-bg:#223D27;--ok-bd:#2E5F3A;--ok-ink:#EAE8E3;--warn:#C48F26;--warn-bg:#433215;--warn-bd:#6A4D15;--warn-ink:#EAE8E3;--info:#539AF2;--info-bg:#23364F;--info-bd:#33547E;--info-ink:#EAE8E3;--err:#F66E60;--err-bg:#4C2B27;--err-bd:#794039;--err-ink:#EAE8E3;--neu-bg:#404855;--neu-ink:#EAE8E3;--s1:#CC6159;--s2:#3A81D7;--s3:#33AC5A;--s4:#9565C7;--s5:#AE7C00;--q1:#5F282E;--q2:#882F2F;--q3:#B03630;--q4:#CC6159;--q5:#D99B94}}
*{box-sizing:border-box}
html,body{margin:0;background:var(--tt-bg);color:var(--tt-text);font-family:Montserrat,system-ui,sans-serif;font-size:16px;line-height:1.5}
body{min-height:100vh;overflow-x:hidden}
button,input{font-family:inherit}
:focus-visible{outline:2px solid var(--tt-focus);outline-offset:2px}
[hidden]{display:none !important}
p{margin:0}
.wrap{max-width:1440px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:24px}
.card{background:var(--tt-surface);border:1px solid var(--tt-border);border-radius:16px;box-shadow:var(--tt-shadow);padding:24px;min-width:0}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.h2{font-size:20px;font-weight:700;line-height:1.2;margin:0}
.cap{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tt-muted);line-height:1.3}
.muted{color:var(--tt-muted)}
.small{font-size:14px;line-height:1.5}
.num{font-variant-numeric:tabular-nums}
.ic{flex:none;display:block}
.badge{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid transparent;white-space:nowrap;line-height:1}
.b-err{background:var(--err-bg);border-color:var(--err-bd);color:var(--err-ink)}.b-err .ic{color:var(--err)}
.b-warn{background:var(--warn-bg);border-color:var(--warn-bd);color:var(--warn-ink)}.b-warn .ic{color:var(--warn)}
.b-info{background:var(--info-bg);border-color:var(--info-bd);color:var(--info-ink)}.b-info .ic{color:var(--info)}
.b-ok{background:var(--ok-bg);border-color:var(--ok-bd);color:var(--ok-ink)}.b-ok .ic{color:var(--ok)}
.b-neu{background:var(--neu-bg);color:var(--neu-ink)}
.line{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;border:1px solid var(--tt-border);font-size:12px;font-weight:600;color:var(--tt-muted);white-space:nowrap}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--tt-border);background:var(--tt-surface);color:var(--tt-text);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;text-decoration:none;transition:background-color .15s ease}
.chip:hover{background:var(--tt-surface-2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--tt-border);background:var(--tt-surface);color:var(--tt-text);font-size:16px;font-weight:600;cursor:pointer;white-space:nowrap}
.btn-icon{width:44px;padding:0}
.dot{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none}
.d-err{background:var(--err)}.d-warn{background:var(--warn)}.d-ok{background:var(--ok)}.d-neu{background:var(--tt-muted)}
.prow2{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--tt-muted);align-items:center}
.lg{display:inline-flex;align-items:center;gap:8px}
.lg-bar{display:inline-block;width:12px;height:4px;border-radius:2px;flex:none}
.hdr{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:16px;min-width:0}
.logo{height:32px;width:auto;flex:none}
.logo-text{fill:var(--tt-text)}.logo-mark{fill:var(--logo-mark)}
.title{font-size:25px;font-weight:700;line-height:1.15;margin:0}
.hdr-r{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.fresh{display:flex;flex-wrap:wrap;gap:8px}
#banners{display:flex;flex-direction:column;gap:12px}
#banners:empty{display:none}
.banner{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-radius:16px;border:1px solid;font-size:14px;line-height:1.5}
.bn-warn{background:var(--warn-bg);border-color:var(--warn-bd);color:var(--warn-ink)}.bn-warn .ic{color:var(--warn)}
.bn-err{background:var(--err-bg);border-color:var(--err-bd);color:var(--err-ink)}.bn-err .ic{color:var(--err)}
.block-err{flex-direction:column;gap:8px}
.block-err .be-title{display:flex;gap:8px;align-items:center;font-weight:700}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(156px,1fr));gap:12px}
.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;background:var(--tt-surface);border:1px solid var(--tt-border);border-radius:16px;padding:16px;color:var(--tt-text);min-height:156px;cursor:pointer;transition:transform .15s ease;font-size:16px}
.tile:hover{transform:translateY(-1px)}
.tile[aria-pressed="true"]{border-color:var(--tt-text);box-shadow:inset 0 0 0 1px var(--tt-text)}
.tile.static{cursor:default}.tile.static:hover{transform:none}
.big{font-size:31px;font-weight:800;line-height:1.05;letter-spacing:-.02em}
.tsub{font-size:14px;color:var(--tt-muted);line-height:1.4}
.grid2{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.col-main{flex:999 1 560px;min-width:0}
.col-side{flex:1 1 320px;min-width:0}
.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--tt-border);margin:0 0 12px}
.tab{flex:none;height:40px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--tt-muted);font-size:14px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.tab[aria-selected="true"]{color:var(--tt-text);font-weight:600;border-bottom-color:var(--tt-accent)}
.count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;padding:0 8px;border-radius:999px;background:var(--neu-bg);color:var(--neu-ink);font-size:12px;font-weight:600}
.list{display:flex;flex-direction:column;max-height:560px;overflow-y:auto}
.lrow{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:4px 12px;align-items:start;padding:12px 8px;border-bottom:1px solid var(--tt-border);color:var(--tt-text);font-size:14px;line-height:1.4;cursor:pointer}
.lrow:hover{background:var(--tt-surface-2)}
.lrow .dot{margin-top:8px}
.l-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.l-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:700;font-size:16px}
.l-top a{color:inherit}
.l-mid{color:var(--tt-muted);overflow-wrap:anywhere}
.l-hint{font-weight:500}
.l-right{text-align:right;color:var(--tt-muted);white-space:nowrap;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.more-note{padding:12px 8px}
.empty{border:1px dashed var(--tt-border);border-radius:16px;padding:24px 40px;text-align:center;background:var(--tt-empty);display:flex;flex-direction:column;align-items:center;gap:8px}
.e-title{font-size:16px;font-weight:600}
.sig{display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 12px;padding:12px 8px;border:0;border-bottom:1px solid var(--tt-border);background:transparent;color:var(--tt-text);text-align:left;cursor:pointer;font-size:14px;line-height:1.4;width:100%}
.sig:hover{background:var(--tt-surface-2)}
.sig-time{font-weight:700;font-variant-numeric:tabular-nums}
.sig-main{display:flex;flex-direction:column;gap:4px}
.sig-text{font-weight:600}
.tablewrap{overflow-x:auto;border:1px solid var(--tt-border);border-radius:16px}
.prow{display:grid;gap:0 16px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--tt-border);font-size:14px}
.prow:last-child{border-bottom:0}
.phead{background:var(--tt-surface-2)}
.prow.sel,.pcard.sel{background:var(--tt-soft)}
.r{text-align:right;justify-self:end}
.pname{overflow-wrap:anywhere;word-break:break-word;max-width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;background:transparent;color:var(--tt-text);padding:4px 0;text-align:left;cursor:pointer;font-size:16px;font-weight:600;min-height:44px;justify-content:center}
.pname.static{cursor:default}
.agebar{display:flex;gap:2px;height:8px;border-radius:2px;overflow:hidden;background:var(--tt-surface-2);margin-top:4px}
.ab-seg{height:100%}
.q1{background:var(--q1)}.q2{background:var(--q2)}.q3{background:var(--q3)}.q4{background:var(--q4)}.q5{background:var(--q5)}
.s1{background:var(--s1)}.s2{background:var(--s2)}.s3{background:var(--s3)}.s4{background:var(--s4)}.s5{background:var(--s5)}
.bullet{position:relative;display:block;height:16px;border-radius:2px;background:var(--tt-surface-2)}
.bl-fill{position:absolute;left:0;top:5px;height:6px;border-radius:0 2px 2px 0;background:var(--tt-text)}
.bl-norm{position:absolute;top:0;width:2px;height:16px;background:var(--tt-text)}
.err-num{color:var(--err);font-weight:700}
.cellcol{display:flex;flex-direction:column;gap:4px}
.spark{display:block}
.spark-norm{stroke:var(--tt-border)}.spark-line{stroke:var(--tt-text)}.spark-dot{fill:var(--tt-text)}
.pcards{display:none;flex-direction:column;gap:12px}
.pcard{border:1px solid var(--tt-border);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--tt-surface)}
.pcard-h{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.pcard-h .pname{min-width:0;flex:1 1 auto}
.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;font-size:14px}
.kv-v{font-weight:700;font-size:16px;display:block}
.overlay{position:fixed;inset:0;background:var(--tt-overlay);z-index:50;border:0;width:100%;cursor:pointer}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,100%);background:var(--tt-surface);color:var(--tt-text);z-index:51;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:16px;border-left:1px solid var(--tt-border);animation:dr-in .4s cubic-bezier(.2,0,0,1)}
@keyframes dr-in{from{transform:translateX(100%)}to{transform:none}}
@keyframes sh-in{from{transform:translateY(100%)}to{transform:none}}
.dr-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dr-hl{display:flex;flex-direction:column;gap:8px;min-width:0}
.dr-tags{display:flex;gap:8px;flex-wrap:wrap}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;font-size:14px}
.facts b{display:block}
.tl{position:relative;height:28px;background:var(--tt-surface-2);border-radius:2px;margin-top:24px}
.tl-seg{position:absolute;top:0;bottom:0;border-right:2px solid var(--tt-surface)}
.tl-mark{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--tt-text)}
.tl-label{position:absolute;top:-24px;transform:translateX(-50%);font-size:12px;font-weight:600;white-space:nowrap}
.tl-ends{display:flex;justify-content:space-between;margin-top:4px}
.ev{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:4px 12px;padding:8px 0;border-bottom:1px solid var(--tt-border);font-size:14px;align-items:start}
.ev .lg-bar{margin-top:8px}
.ev-r{text-align:right}
.lg-mark{width:2px;height:12px;background:var(--tt-text)}
.sk{background:var(--tt-surface-2);border-radius:8px;animation:sk 1.5s ease-in-out infinite}
.sk-tile{height:156px;border-radius:16px}
.sk-row{height:44px;margin-bottom:8px}
@keyframes sk{50%{opacity:.5}}
.foot{font-size:12px;color:var(--tt-muted);line-height:1.5}
.noaccess{display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:640px}
@media (max-width:759px){
  .wrap{padding:16px;gap:16px}
  .card{padding:16px}
  .grid2{gap:16px}
  .empty{padding:24px 16px}
  .tablewrap{display:none}
  .pcards{display:flex}
  .title{font-size:20px}
  .drawer{top:auto;left:0;width:100%;max-height:88vh;border-left:0;border-top:1px solid var(--tt-border);border-radius:16px 16px 0 0;padding:16px;animation:sh-in .4s cubic-bezier(.2,0,0,1)}
  .col-main,.col-side{flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important}}
.kv-strong{font-weight:700;font-size:16px}
.phead .cap{letter-spacing:.04em;overflow-wrap:anywhere;min-width:0}
/* колонка «Состояние» таблицы «Люди»: длинный бейдж («Нет действий 1439 мин») переносится внутри ячейки, а не уходит за
   правый край таблицы */
.ptable [data-col="state"] .badge{white-space:normal;height:auto;min-height:24px;max-width:100%;padding:3px 8px;line-height:1.3}
.dr-hl a{color:inherit}

/* Фаза 4: вход, пароль, настройки */
.narrow{max-width:480px}
.inline{display:inline}
.hnav{justify-content:flex-end}
.form{display:flex;flex-direction:column;gap:16px}
.fld{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:14px}
.fld-l{font-weight:600}
.fld input,.fld select,.fld textarea{font:inherit;font-size:16px;color:var(--tt-text);background:var(--tt-surface);border:1px solid var(--tt-border);border-radius:8px;padding:8px 12px;min-height:44px;max-width:100%;min-width:0}
.fld textarea{width:100%;resize:vertical;line-height:1.4}
.fld.chk{flex-direction:row;align-items:center;gap:8px;min-height:44px}
.fld.chk input{width:20px;height:20px;min-height:0}
.fld.ord input{width:80px}
.fld.inl{flex-direction:row;align-items:center;gap:8px}
.fld.wide{grid-column:1/-1}
.btn-primary{background:var(--tt-btn);border-color:var(--tt-btn);color:var(--tt-btn-ink)}
.btn-primary:hover{background:var(--tt-btn-hover)}
.chip.danger{color:var(--err)}
.sgrid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.snav{display:flex;flex-direction:column;gap:4px;padding:12px;position:sticky;top:16px}
.snav-a{display:block;padding:8px 12px;border-radius:8px;color:var(--tt-text);text-decoration:none;font-size:14px;font-weight:500}
.snav-a:hover{background:var(--tt-surface-2)}
.snav-a.on{background:var(--tt-soft);font-weight:700}
.smain{display:flex;flex-direction:column;gap:16px;min-width:0}
.stitle{font-size:25px}
.prm .card-h{align-items:flex-start}
.plabel{overflow-wrap:anywhere}
.fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px 16px;margin:0 0 12px}
.items{display:flex;flex-direction:column;gap:12px}
.item{border:1px solid var(--tt-border);border-radius:16px;padding:16px}
.item-t{font-weight:700;margin:0 0 8px;overflow-wrap:anywhere}
.addform{margin-top:12px}
.addform summary{list-style:none;display:inline-flex;margin-bottom:12px}
.addform summary::-webkit-details-marker{display:none}
.dflt{margin-top:12px;overflow-wrap:anywhere}
.tpl-prev{display:flex;flex-direction:column;gap:4px;background:var(--tt-surface-2);border-radius:8px;padding:12px;white-space:pre-wrap;margin:0 0 12px;overflow-wrap:anywhere}
.acc-list{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
.acc{border:1px solid var(--tt-border);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.acc.off{opacity:.7}
.acc-h{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.acc-name{min-height:0;padding:0}
.linkbox{border-color:var(--warn-bd);background:var(--warn-bg);display:flex;flex-direction:column;gap:8px}
.linkval{font:inherit;font-size:14px;width:100%;padding:8px 12px;border:1px solid var(--tt-border);border-radius:8px;background:var(--tt-surface);color:var(--tt-text)}
.conn{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:8px}
.conn li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;overflow-wrap:anywhere}
.tablewrap-s{overflow-x:auto;max-width:100%}
.ltable{border-collapse:collapse;width:100%;font-size:14px}
.ltable th,.ltable td{text-align:left;padding:8px;border-bottom:1px solid var(--tt-border);vertical-align:top}
.ltable .val{font-family:ui-monospace,monospace;font-size:12px;overflow-wrap:anywhere;max-width:320px}
.mt{margin-top:24px}
#problems ul{margin:8px 0 0;padding-left:20px}
@media (max-width:860px){.sgrid{grid-template-columns:minmax(0,1fr)}.snav{position:static;flex-direction:row;flex-wrap:wrap}.snav-a{padding:8px 10px}}
@media (max-width:480px){.wrap{padding:16px}.fields{grid-template-columns:minmax(0,1fr)}}

/* Фаза 6: недельный разбор (экран «Недельный разбор» прототипа) */
.sk-block{height:320px;border-radius:16px;margin-top:24px}
.rgrid{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.r-full{flex:1 1 100%;min-width:0}
.r-half{flex:1 1 560px;min-width:0}
.rgrid .tiles{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.spark-box{position:relative;height:32px;width:100%}
.spark-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.spark-line{stroke:var(--tt-text)}
.spark-cur{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--tt-text);transform:translate(-50%,50%);box-shadow:0 0 0 2px var(--tt-surface)}
.lg-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}
.lg-dot.sig{background:var(--err);width:12px;height:12px}
.lg-bar.ink{background:var(--tt-text)}.lg-bar.muted-bar{background:var(--tt-muted)}
.db{display:grid;grid-template-columns:72px minmax(0,1fr) 220px;gap:8px 16px;align-items:center;padding:8px 0;border-bottom:1px solid var(--tt-border);font-size:14px}
.db-track{position:relative;height:24px}
.db-grid{position:absolute;top:0;bottom:0;width:1px;background:var(--tt-border)}
.db-bar{position:absolute;top:10px;height:4px;border-radius:2px;background:var(--tt-muted)}
.db-dot{position:absolute;top:8px;width:8px;height:8px;border-radius:50%;transform:translateX(-50%);box-shadow:0 0 0 2px var(--tt-surface)}
.db-axis{position:relative;height:16px;font-size:12px;color:var(--tt-muted);margin:4px 236px 0 88px}
.db-t{position:absolute;transform:translateX(-50%);white-space:nowrap}
.st{display:grid;grid-template-columns:64px minmax(0,1fr) 168px;gap:8px 16px;align-items:center;padding:8px 0;font-size:14px}
.st-bar{display:flex;gap:2px;height:20px;border-radius:2px;overflow:hidden;min-width:0}
.st-bar.st-thin{height:12px}
.st-seg{height:100%;min-width:2px}
.st.sel{background:var(--tt-surface-2);border-radius:8px;padding:8px}
.xmr{position:relative;height:240px;margin:12px 0 0;padding-bottom:24px}
.xmr-plot{position:absolute;left:0;right:104px;top:8px;bottom:24px}
.mr .xmr-plot,.mr-plot{bottom:8px}
.xmr-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.xmr-poly{stroke:var(--tt-text)}
.xmr-line{position:absolute;left:0;right:0;height:2px}
.xmr-line.l-center,.xmr-line.l-limit{height:1px;background:var(--tt-muted)}
.xmr-line.l-norm{background:var(--s2)}
.xmr-lab{position:absolute;right:-104px;width:100px;font-size:12px;transform:translateY(-50%);line-height:1.2;color:var(--tt-muted)}
.xmr-line.l-norm .xmr-lab{color:var(--tt-text)}
.xmr-lab.lab-up{transform:translateY(-150%)}
.pt{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--tt-text);transform:translate(-50%,50%);box-shadow:0 0 0 2px var(--tt-surface)}
.pt-small{width:6px;height:6px}
.pt-sig{background:var(--err);width:12px;height:12px}
.pt-before{background:var(--tt-surface);box-shadow:inset 0 0 0 2px var(--tt-muted),0 0 0 2px var(--tt-surface)}
.xmr-x{position:absolute;left:0;right:104px;bottom:0;height:16px;font-size:12px;color:var(--tt-muted)}
.xmr-xt{position:absolute;transform:translateX(-50%);white-space:nowrap}
.mr-cap{margin:16px 0 0}
.mr{position:relative;height:96px}
.xmr-foot{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:16px}
.xmr-foot .chip{white-space:normal;text-align:left;padding:6px 12px;max-width:100%}
.journal{margin:8px 0 0;padding-left:20px}
.rtable{overflow-x:auto;border:1px solid var(--tt-border);border-radius:16px;max-width:100%}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tt-muted);text-align:left;padding:10px 14px;background:var(--tt-surface-2);border-bottom:1px solid var(--tt-border)}
.tbl td{padding:10px 14px;border-bottom:1px solid var(--tt-border)}
.tbl tr:last-child td{border-bottom:0}
.tbl .r{text-align:right}
.pname-r{display:inline-flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-weight:600;overflow-wrap:anywhere}
.r-people-cards{display:none;flex-direction:column;gap:12px}
.slow{display:grid;grid-template-columns:minmax(96px,200px) 88px minmax(0,1fr);gap:8px 16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--tt-border);font-size:14px}
.slow-n{display:flex;flex-direction:column;gap:2px;min-width:0;font-weight:700;overflow-wrap:anywhere}
.slow-n a{color:inherit}
.slow-t{font-weight:400}
.slow-p{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
#week-chips button{min-height:36px}
@media (max-width:759px){
  .rgrid{gap:16px}
  .db{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"line text" "track track"}
  .db .line{grid-area:line}.db .db-text{grid-area:text;text-align:right}.db .db-track{grid-area:track}
  .db-axis{margin:4px 0 0}
  .st{grid-template-columns:48px minmax(0,1fr);grid-template-areas:"wk bar" ". txt"}
  .st>span:first-child{grid-area:wk}.st .st-bar{grid-area:bar}.st>span:last-child{grid-area:txt}
  .xmr-plot,.xmr-x{right:72px}
  .xmr-lab{right:-72px;width:68px;font-size:11px}
  .r-people-table{display:none}
  .r-people-cards{display:flex}
  .slow{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n h" "p p"}
  .slow-n{grid-area:n}.slow-h{grid-area:h}.slow-p{grid-area:p}
}


/* План 2026-10-21, фаза 1б: блок «Люди» первым - карточки «кто чем занят» (макет 22.10.2026, решения 31 и 33).
   Движение - по брендбуку 150 / 250 / 400 мс: карточки появляются снизу по очереди, переезжают на новое место,
   полоса «сделано» растёт; числа меняются сразу. «Уменьшить движение» выключает всё (правило в начале файла). */
:root{--tt-lift:0 8px 20px rgba(15,26,44,.12)}
@media (prefers-color-scheme:dark){:root{--tt-lift:0 8px 20px rgba(0,0,0,.45)}}
.pk-note{display:block;margin:-8px 0 16px}
.seg{display:inline-flex;max-width:100%;border:1px solid var(--tt-border);border-radius:999px;overflow:hidden;background:var(--tt-surface)}
.sbtn{border:0;background:transparent;color:var(--tt-text);padding:4px 12px;min-height:36px;font-family:inherit;font-size:14px;font-weight:500;line-height:1.2;cursor:pointer;white-space:normal;text-align:center;transition:background-color .25s ease,color .25s ease}
.sbtn:hover{background:var(--tt-surface-2)}
.sbtn[aria-pressed="true"]{background:var(--tt-text);color:var(--tt-bg)}
.pk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:16px}
.pk{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;border:1px solid var(--tt-border);border-radius:16px;background:var(--tt-surface);color:var(--tt-text);cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
.pk.static{cursor:default}
.pk:not(.static):hover{transform:translateY(-2px);box-shadow:var(--tt-lift)}
.pk.sev-err{border-color:var(--err-bd);box-shadow:inset 4px 0 0 var(--err)}
.pk.sev-warn{border-color:var(--warn-bd);box-shadow:inset 4px 0 0 var(--warn)}
.pk.sev-err:not(.static):hover{box-shadow:inset 4px 0 0 var(--err),var(--tt-lift)}
.pk.sev-warn:not(.static):hover{box-shadow:inset 4px 0 0 var(--warn),var(--tt-lift)}
.pk.sel{background:var(--tt-soft)}
.pk.pk-move{transition:transform .4s cubic-bezier(.2,0,0,1),box-shadow .25s ease,background-color .25s ease}
.pk-in{animation:pk-in .4s cubic-bezier(.2,0,0,1) both}
@keyframes pk-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.pk-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:4px 8px;min-width:0}
.pk-name{flex:1 1 160px;min-width:0;font-size:16px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.pk-st{display:flex}
.pk-now{display:flex;flex-direction:column;gap:8px;min-width:0;padding:8px 12px;border-radius:8px;background:var(--tt-surface-2);font-size:14px;line-height:1.4}
.pk-item{display:flex;flex-direction:column;gap:4px;min-width:0}
.pk-item-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 8px}
.pk-lbl{display:inline-flex;align-items:baseline;gap:8px}
.pk-item-h a{color:inherit;font-weight:700}
.pk-cap{font-weight:700}
.pk-ago{font-size:12px}
.pk-title{color:var(--tt-muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.pk-tags{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.pk-cnt{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;text-align:center}
.pk-cnt>span{display:flex;flex-direction:column;align-items:center;min-width:0;padding:4px 0;border-radius:8px;background:var(--tt-surface-2)}
.pk-cnt b{font-size:20px;line-height:1.2;font-variant-numeric:tabular-nums}
.pk-cnt small{font-size:12px;color:var(--tt-muted);line-height:1.3}
.pk-done{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px}
.pk-done-v{margin-left:auto;font-weight:700}
.pk-nonorm,.pk-zakryto{flex-basis:100%}
.pk-bar{position:relative;height:8px;margin-top:-4px;border-radius:999px;background:var(--tt-surface-2);overflow:hidden}
.pk-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:999px;background:var(--s2);transition:width .4s cubic-bezier(.2,0,0,1)}
.pk-fill.reached{background:var(--s3)}
.pk-marks{display:flex;flex-wrap:wrap;gap:4px 8px}
.pk-more{display:none;align-self:center;margin-top:12px;justify-content:center;width:100%}
@media (max-width:759px){
  .pk-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  /* на телефоне сначала четыре карточки (CARDS_SHOWN_PHONE в segodnya.js) и кнопка «Ещё» - как в макете телефона */
  .pk-grid.collapsed>.pk:nth-child(n+5){display:none}
  .pk-more{display:inline-flex}
}

/* План 2026-10-21, фаза 1г: экран в офисе (решение 34; макет 22.10.2026, 1920×1080). Тёмная тема всегда - те же токены,
   что у тёмной темы в начале файла (тест tests/test_ekran_ofis.py сверяет их строку в строку). Размер шрифта корня - от
   ширины и высоты экрана: на 1920×1080 это 16 px, на другом экране всё масштабируется вместе и помещается без прокрутки;
   текст - от 18 px (1.125rem). Движение - 400 мс брендбука (решение 33), «уменьшить движение» его выключает (правило в
   начале файла). */
:root.ekran-page{color-scheme:dark;--tt-bg:#0F1A2C;--tt-surface:#273140;--tt-surface-2:#404855;--tt-text:#EAE8E3;--tt-muted:#A1A3A6;--tt-border:#404855;--tt-accent:#C84D45;--tt-btn:#CC6159;--tt-btn-hover:#D1746C;--tt-btn-active:#D58780;--tt-btn-ink:#0F1A2C;--tt-soft:#37212D;--tt-soft-bd:#4B252E;--tt-focus:#EAE8E3;--tt-shadow:none;--tt-empty:transparent;--ok:#40AD60;--ok-bg:#223D27;--ok-bd:#2E5F3A;--ok-ink:#EAE8E3;--warn:#C48F26;--warn-bg:#433215;--warn-bd:#6A4D15;--warn-ink:#EAE8E3;--info:#539AF2;--info-bg:#23364F;--info-bd:#33547E;--info-ink:#EAE8E3;--err:#F66E60;--err-bg:#4C2B27;--err-bd:#794039;--err-ink:#EAE8E3;--neu-bg:#404855;--neu-ink:#EAE8E3;--s1:#CC6159;--s2:#3A81D7;--s3:#33AC5A;--s4:#9565C7;--s5:#AE7C00;--q1:#5F282E;--q2:#882F2F;--q3:#B03630;--q4:#CC6159;--q5:#D99B94;--tt-lift:0 8px 20px rgba(0,0,0,.45);font-size:min(calc(100vw / 120),calc(100vh / 67.5))}
.ekran-page body{font-size:1.125rem;overflow:hidden;min-height:0}
.ekran-page .badge{height:1.75rem;padding:0 .625rem;font-size:1.125rem;gap:.375rem}
.ekran-page .line{height:1.75rem;padding:0 .625rem;font-size:1.125rem}
.ekran-page .cap{font-size:1.125rem}
.tv{position:relative;width:100vw;height:100vh;padding:2.5rem 3.5rem;display:flex;flex-direction:column;gap:1.5rem;overflow:hidden}
.tv-h{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem}
.tv-hl{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.tv-title{font-size:2.75rem;font-weight:700;line-height:1.1}
.tv-dots-row{display:flex;align-items:center;gap:.875rem}
.tv-dots{display:flex;gap:.625rem}
.tv-dot{width:.875rem;height:.875rem;border-radius:50%;background:var(--tt-border);transition:background-color .4s ease,transform .4s ease}
.tv-dot.on{background:var(--tt-text);transform:scale(1.2)}
.tv-hr{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;text-align:right}
.tv-clock{font-size:4rem;font-weight:700;line-height:1}
.tv-fresh{display:flex;align-items:center;gap:.5rem;color:var(--tt-muted)}
.tv-live{display:inline-block;width:.625rem;height:.625rem;border-radius:50%;background:var(--ok);flex:none;animation:tv-pulse 1.6s ease-in-out infinite}
.tv-live.d-warn{background:var(--warn);animation:none}
.tv.stale .tv-live{background:var(--err);animation:none}
@keyframes tv-pulse{50%{opacity:.3}}
.tv-prog{height:.375rem;border-radius:.1875rem;background:var(--tt-border);overflow:hidden;flex:none}
.tv-prog i{display:block;height:100%;background:var(--tt-btn);transform-origin:0 50%;transform:scaleX(0)}
.tv-prog i.run{animation:tv-prog linear both}
@keyframes tv-prog{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tv-stage{position:relative;flex:1;min-height:0}
.tv-wait{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
.tv-sk{height:15rem;border-radius:1rem}
/* уходящий слайд гаснет сразу, новый въезжает справа за 400 мс (макет: slidein) - два слайда не наслаиваются */
.tv-slide{position:absolute;inset:0;display:flex;flex-direction:column;gap:1.25rem;overflow:hidden;opacity:0;transform:translateX(3.75rem);visibility:hidden;transition:none}
.tv-slide.on{opacity:1;transform:none;visibility:visible;transition:opacity .4s cubic-bezier(.2,0,0,1),transform .4s cubic-bezier(.2,0,0,1)}
.tv-in{animation:tv-in .4s cubic-bezier(.2,0,0,1) both}
@keyframes tv-in{from{opacity:0;transform:translateY(.75rem)}to{opacity:1;transform:none}}
/* карточки не сжимаются и не срезаются: ряд - по самой высокой карточке, сколько рядов влезает - решает ekran.js по месту.
   Отступы и зазоры карточки - плотные: типичная карточка с тремя отметками встаёт в два ряда на 1920×1080 и 1366×768
   (на реальных кадрах копии прода 22-23.10.2026 при прежних отступах вставал один ряд - двум не хватало 24 px из 820) */
.tv-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;gap:1.25rem;align-content:start;flex:none}
.tv-probe{position:absolute;left:0;right:0;top:0;visibility:hidden;pointer-events:none}
.tv-probe .tv-grid{align-items:start}
.tv-card{display:flex;flex-direction:column;gap:.5rem;min-width:0;padding:1rem 1.125rem;border:1px solid var(--tt-border);border-radius:1rem;background:var(--tt-surface)}
.tv-card.sev-err{border-color:var(--err-bd);box-shadow:inset .25rem 0 0 var(--err)}
.tv-card.sev-warn{border-color:var(--warn-bd);box-shadow:inset .25rem 0 0 var(--warn)}
.tv-card-h{display:flex;justify-content:space-between;align-items:center;gap:.5rem;min-width:0}
.tv-name{flex:1 1 auto;min-width:0;font-size:1.375rem;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-st{display:flex}
.tv-now{display:flex;flex-direction:column;gap:.25rem;padding:.5rem .75rem;border-radius:.625rem;background:var(--tt-surface-2);min-width:0}
.tv-now-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.25rem .75rem}
.tv-tags{display:flex;flex-wrap:wrap;gap:.375rem .5rem;align-items:center;min-width:0}
.tv-now .line{border-color:var(--tt-muted);color:var(--tt-text)}
.tv-cnt{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;text-align:center}
.tv-cnt>span{display:flex;flex-direction:column;align-items:center;min-width:0;padding:.125rem 0;border-radius:.5rem;background:var(--tt-surface-2)}
.tv-cnt b{font-size:1.625rem;line-height:1.1}
.tv-cnt small{font-size:1.125rem;color:var(--tt-muted);line-height:1.3;white-space:nowrap}
.tv-marks{display:flex;flex-wrap:wrap;gap:.25rem .5rem}
.tv-bigs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;flex:none}
.tv-big{display:flex;flex-direction:column;gap:.25rem;min-width:0;padding:1.5rem 1.75rem;border:1px solid var(--tt-border);border-radius:1.25rem;background:var(--tt-surface)}
.tv-big b{font-size:6rem;font-weight:800;line-height:1;letter-spacing:-.02em}
.tv-big .v-err{color:var(--err)}.tv-big .v-ok{color:var(--ok)}.tv-big .v-warn{color:var(--warn)}
.tv-sub{font-size:1.125rem}
.tv-box{flex:1;min-height:0;display:flex;flex-direction:column;padding:1rem 1.5rem;border:1px solid var(--tt-border);border-radius:1.25rem;background:var(--tt-surface);overflow:hidden}
.tv-row{display:grid;grid-template-columns:9rem minmax(0,1fr) minmax(0,1.3fr) minmax(0,2.2fr) 12rem;gap:1rem;align-items:center;padding:.7rem .5rem;border-bottom:1px solid var(--tt-border);font-size:1.375rem;line-height:1.35}
.tv-row-h{font-size:1.125rem;padding-top:.25rem}
.tv-row .r{text-align:right;justify-self:end}
.tv-cut{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-more{flex:none;padding:0 1.5rem;font-size:1.25rem;line-height:1.4}
.tv-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;text-align:center;color:var(--tt-muted);font-size:1.5rem}
.tv-chart-h{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.5rem}
.tv-legend{display:flex;gap:1.5rem}
.tv-legend .lg{font-size:1.125rem;color:var(--tt-muted);gap:.5rem}
.tv-sw{display:inline-block;width:.875rem;height:.875rem;border-radius:.1875rem}
.tv-chart{flex:1;min-height:0;display:flex;align-items:stretch;gap:1rem;border-bottom:1px solid var(--tt-border)}
.tv-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:.5rem}
.tv-pair{flex:1;min-height:0;display:flex;align-items:flex-end;justify-content:center;gap:.375rem;padding-top:2.25rem}
.tv-bar{position:relative;width:min(3.5rem,45%);min-height:2px;border-radius:.25rem .25rem 0 0;transition:height .4s cubic-bezier(.2,0,0,1)}
.tv-bar span{position:absolute;left:50%;bottom:100%;transform:translate(-50%,-.25rem);font-size:1.25rem;font-weight:700;color:var(--tt-text)}
.tv-hour{text-align:center;font-size:1.125rem;color:var(--tt-muted);padding-bottom:.25rem}
.tv-col.future .tv-hour{opacity:.5}
.tv-off,.tv-denied{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;padding:3.5rem;text-align:center;background:var(--tt-bg)}
.tv.off .tv-off{background:#080e18}
.tv-off-clock{font-size:10rem;font-weight:700;line-height:1;color:var(--tt-muted)}
.tv-off-title{font-size:2.75rem;font-weight:700}
.tv-off-next{font-size:1.5rem;max-width:60rem}
.tv-off-nums{width:100%;max-width:100rem;margin-top:2rem;opacity:.75}
.tv.off .tv-h,.tv.off .tv-prog,.tv.off .tv-stage,.tv.denied .tv-h,.tv.denied .tv-prog,.tv.denied .tv-stage{visibility:hidden}
.tv-banner{position:absolute;left:50%;bottom:2rem;transform:translateX(-50%);z-index:5;max-width:calc(100% - 7rem);padding:1rem 1.75rem;border:1px solid var(--warn-bd);border-radius:1rem;background:var(--warn-bg);color:var(--warn-ink);font-size:1.5rem;font-weight:600;box-shadow:var(--tt-lift)}
