@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/golos-text-cyrillic-400.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/golos-text-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/golos-text-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/golos-text-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/golos-text-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/golos-text-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/golos-text-cyrillic-700.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/golos-text-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/ibm-plex-mono-cyrillic-400.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/ibm-plex-mono-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/ibm-plex-mono-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/ibm-plex-mono-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  /* Лабораторный журнал: холодная бумага, чернильно-синий акцент. Сверху — что горит, ниже — работы по разделам, детали — в боковой панели. */
  --bg:#F2F4F3;
  --surface:#FFFFFF;
  --field:#F8FAF9;
  --ink:#17201D;
  --muted:#5D6A65;
  --line:#DBE1DE;
  --accent:#23508C;
  --accent-soft:#E2EAF4;
  --red:#B23C28; --red-soft:#F8E1DB;
  --amber:#946508; --amber-soft:#F7EBCB;
  --green:#2B774B; --green-soft:#DCEEE2;
  --orange:#B0541A; --orange-soft:#F8E5D6;
  --grey-soft:#EBEEED;
  --sec-colleague:#23508C; --sec-mine:#2B774B; --sec-resident:#6A4A9E;
  --font-display:"Golos Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-body:"Golos Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --radius:10px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#111715; --surface:#19211F; --field:#141B19; --ink:#E4EBE8; --muted:#97A59F; --line:#2B3532;
    --accent:#86ACDD; --accent-soft:#1E2B3B;
    --red:#EC8470; --red-soft:#3B221D; --amber:#E2B65A; --amber-soft:#342B16; --green:#6DC390; --green-soft:#1A3024;
    --orange:#EB9C66; --orange-soft:#3A2718; --grey-soft:#222B28;
    --sec-colleague:#86ACDD; --sec-mine:#6DC390; --sec-resident:#B49BE0;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#111715; --surface:#19211F; --field:#141B19; --ink:#E4EBE8; --muted:#97A59F; --line:#2B3532;
  --accent:#86ACDD; --accent-soft:#1E2B3B;
  --red:#EC8470; --red-soft:#3B221D; --amber:#E2B65A; --amber-soft:#342B16; --green:#6DC390; --green-soft:#1A3024;
  --orange:#EB9C66; --orange-soft:#3A2718; --grey-soft:#222B28;
  --sec-colleague:#86ACDD; --sec-mine:#6DC390; --sec-resident:#B49BE0;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
body.locked{overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
.num,.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.dim{color:var(--muted)}
.wrap{max-width:1180px;margin:0 auto;padding:22px 20px 80px;display:flex;flex-direction:column;gap:18px}

/* шапка */
.top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.top h1{font-family:var(--font-display);font-size:24px;font-weight:700;letter-spacing:-0.01em;margin:0;text-wrap:balance}
.today{color:var(--muted);font-size:13px;margin-top:2px}
.top-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.search{width:220px;max-width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:500;white-space:nowrap}
.btn:hover{border-color:var(--muted)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.small{padding:5px 10px;font-size:13px}
.btn.ghost{background:transparent}
.btn.warn{color:var(--red);border-color:var(--red)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.banner{padding:10px 14px;border-radius:8px;background:var(--amber-soft);color:var(--amber);font-size:13px}
.banner[hidden]{display:none}

/* плитки внимания */
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tile{display:flex;flex-direction:column;gap:2px;text-align:left;padding:12px 14px;border-radius:var(--radius);border:1px solid var(--line);border-left:4px solid var(--line);background:var(--surface);cursor:pointer}
.tile:hover{border-color:var(--muted)}
.tile .n{font-family:var(--font-mono);font-size:26px;font-weight:500;line-height:1.1}
.tile .l{font-size:13px;color:var(--muted)}
.tile.hot-red{border-left-color:var(--red)} .tile.hot-red .n{color:var(--red)}
.tile.hot-amber{border-left-color:var(--amber)} .tile.hot-amber .n{color:var(--amber)}
.tile.hot-orange{border-left-color:var(--orange)} .tile.hot-orange .n{color:var(--orange)}
.tile.hot-accent{border-left-color:var(--accent)}
.tile[aria-pressed="true"]{background:var(--accent-soft)}

/* вкладки */
.bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.tabs{display:inline-flex;padding:3px;border-radius:9px;background:var(--grey-soft);gap:2px}
.tabs button{border:0;background:transparent;padding:7px 14px;border-radius:7px;cursor:pointer;font-weight:500;color:var(--muted)}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.chip-filter{display:inline-flex;align-items:center;gap:8px;padding:5px 6px 5px 12px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:500}
.chip-filter button{border:0;background:transparent;cursor:pointer;color:inherit;padding:2px 6px;border-radius:999px}

/* разделы и строки */
.section{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.sec-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.sec-head h2{font-family:var(--font-display);font-size:16px;font-weight:600;margin:0}
.sec-dot{width:10px;height:10px;border-radius:3px;background:var(--sec)}
.sec-count{color:var(--muted);font-family:var(--font-mono);font-size:13px}
.sec-head .btn{margin-left:auto}
.cols,.row{display:grid;grid-template-columns:4px minmax(0,2.3fr) minmax(0,1.25fr) minmax(0,1.7fr) minmax(0,.85fr) 78px;gap:14px;align-items:center;padding:10px 16px 10px 0}
.cols{font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding-top:7px;padding-bottom:7px}
.row{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer}
.row:last-child{border-bottom:0}
.row:hover{background:var(--field)}
.row.st-done,.row.st-pause{opacity:.62}
.stripe{align-self:stretch;width:4px;border-radius:0 3px 3px 0;background:var(--line)}
.st-overdue .stripe{background:var(--red)} .st-soon .stripe{background:var(--amber)} .st-ok .stripe{background:var(--green)}
.c-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.title{font-weight:600;overflow-wrap:anywhere}
.meta{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--muted)}
.who{color:var(--ink);font-weight:500}
.type{padding:0 6px;border-radius:4px;background:var(--grey-soft)}
.c-stage,.c-next,.c-contact,.c-score{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px}
.pipe{display:flex;gap:2px;width:100%;max-width:150px}
.pipe i{flex:1;height:6px;border-radius:3px;background:var(--line)}
.pipe i.on{background:var(--accent);opacity:.55}
.pipe i.cur{background:var(--accent)}
.pipe.pipe-off i{background:var(--line)!important;opacity:1}
.stage-l{font-size:12px;color:var(--muted)}
.next{overflow-wrap:anywhere}
.pill{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.pill.overdue{background:var(--red-soft);color:var(--red)}
.pill.soon{background:var(--amber-soft);color:var(--amber)}
.pill.ok{background:var(--green-soft);color:var(--green)}
.pill.none,.pill.done,.pill.pause{background:var(--grey-soft);color:var(--muted)}
.pill.stale{background:var(--orange-soft);color:var(--orange)}
.pill .d{font-family:var(--font-mono);font-weight:400;opacity:.85}
.dots{display:inline-flex;gap:3px}
.dots i{width:9px;height:9px;border-radius:50%;background:var(--line)}
.dots.lvl-high i.f{background:var(--green)} .dots.lvl-mid i.f{background:var(--amber)} .dots.lvl-low i.f{background:var(--red)}
.m-l{display:none}
.empty{padding:18px 16px;color:var(--muted);font-size:13px}

/* люди */
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px;padding:12px}
.pcard{display:flex;flex-direction:column;gap:10px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);cursor:pointer}
.pcard:hover{border-color:var(--muted)}
.pcard .name{font-weight:600;font-size:15px}
.pcard .role{font-size:12px;color:var(--muted);margin-top:-6px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;font-size:12px}
.stats dt{color:var(--muted)}
.stats dd{margin:0;font-weight:500}
.stat{display:flex;flex-direction:column;gap:1px}

/* сроки */
.dl-group{display:flex;flex-direction:column}
.dl-head{display:flex;align-items:center;gap:8px;padding:12px 16px 6px;font-weight:600;font-size:13px}
.dl-head .sec-count{font-weight:400}
.dl-item{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 16px;border-top:1px solid var(--line)}
.dl-date{display:flex;flex-direction:column;align-items:flex-start;font-family:var(--font-mono);font-size:12px;color:var(--muted)}
.dl-date b{font-size:17px;color:var(--ink);font-weight:500}
.dl-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.dl-text{font-weight:500;overflow-wrap:anywhere}
.dl-sub{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.kind{font-size:11px;padding:0 6px;border-radius:4px;background:var(--grey-soft);color:var(--muted);margin-right:6px}
.linkish{border:0;background:transparent;padding:0;cursor:pointer;text-align:left;color:inherit}
.linkish:hover .dl-text{text-decoration:underline}
.check{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);cursor:pointer}
.check input{width:16px;height:16px;accent-color:var(--accent)}

/* панель */
.scrim{position:fixed;inset:0;background:rgba(10,16,14,.36);opacity:0;pointer-events:none;transition:opacity .18s}
.scrim.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(540px,100%);background:var(--surface);border-left:1px solid var(--line);transform:translateX(100%);transition:transform .2s ease;display:flex;flex-direction:column;z-index:10}
.drawer.open{transform:none;box-shadow:-8px 0 24px rgba(0,0,0,.12)}
.scrim{z-index:9}
.dr-head{padding:14px 18px 12px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.dr-top{display:flex;align-items:center;gap:10px}
.dr-kind{font-size:12px;color:var(--muted);font-weight:500}
.save{font-size:12px;color:var(--muted);margin-left:auto}
.save.err{color:var(--red)}
.icon-btn{border:1px solid var(--line);background:var(--surface);border-radius:8px;width:32px;height:32px;cursor:pointer;font-size:14px}
.dr-title{width:100%;border:0;background:transparent;font-family:var(--font-display);font-size:20px;font-weight:700;resize:none;padding:2px 0;line-height:1.25;overflow:hidden}
.dr-title:focus{outline:none;box-shadow:0 2px 0 var(--accent)}
.dr-status{display:flex;flex-wrap:wrap;gap:6px}
.dr-body{overflow-y:auto;padding:16px 18px 40px;display:flex;flex-direction:column;gap:20px}
.quick{display:flex;flex-wrap:wrap;gap:8px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fld{display:flex;flex-direction:column;gap:5px;min-width:0}
.fld>span:first-child{font-size:12px;color:var(--muted);font-weight:500}
.fld.full{grid-column:1/-1}
.fld[hidden]{display:none}
.fld input:not([type=range]):not([type=checkbox]),.fld select,.fld textarea,.log-add input,.log-add textarea{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--field)}
.fld textarea,.log-add textarea{resize:vertical;min-height:40px}
.range{display:flex;align-items:center;gap:10px}
.range input{flex:1;accent-color:var(--accent)}
.range output{font-family:var(--font-mono);font-size:13px;width:42px;text-align:right}
.score-pick{display:flex;gap:6px}
.score-pick button{width:40px;height:34px;border-radius:8px;border:1px solid var(--line);background:var(--field);cursor:pointer;font-family:var(--font-mono)}
.score-pick button[aria-pressed="true"].lvl-high{background:var(--green-soft);border-color:var(--green);color:var(--green)}
.score-pick button[aria-pressed="true"].lvl-mid{background:var(--amber-soft);border-color:var(--amber);color:var(--amber)}
.score-pick button[aria-pressed="true"].lvl-low{background:var(--red-soft);border-color:var(--red);color:var(--red)}
.hint{font-size:12px;color:var(--muted)}
.links{display:flex;flex-direction:column;gap:2px;font-size:12px}
.links a{color:var(--accent);overflow-wrap:anywhere}
.block h3{font-size:14px;font-weight:600;margin:0 0 10px}
.log-add{display:grid;grid-template-columns:140px 1fr;gap:8px;padding:12px;border:1px dashed var(--line);border-radius:var(--radius)}
.log-add .full{grid-column:1/-1}
.log-add label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.log-add .acts{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.form-err{color:var(--red);font-size:12px;margin-right:auto}
.log-list{display:flex;flex-direction:column;margin-top:8px}
.log-e{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.log-e .ld{font-family:var(--font-mono);font-size:12px;color:var(--muted);padding-top:1px;min-width:52px}
.log-e .lt{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.log-e .agreed{font-weight:500}
.log-e .side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.log-e.done .agreed{text-decoration:line-through;color:var(--muted)}
.del-x{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:12px;padding:0}
.del-x:hover{color:var(--red)}
.plist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.plist .row{grid-template-columns:4px minmax(0,1fr) auto;padding-right:12px}
.danger{display:flex;justify-content:flex-start;gap:8px;align-items:center;padding-top:8px;border-top:1px solid var(--line)}
.loading{padding:40px 16px;text-align:center;color:var(--muted)}

@media (max-width:860px){
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cols{display:none}
  .row{grid-template-columns:4px minmax(0,1fr);gap:6px 12px;padding:12px 14px 12px 0}
  .row>.stripe{grid-row:1 / span 5}
  .row>*:not(.stripe){grid-column:2}
  .c-stage,.c-next,.c-contact,.c-score{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}
  .m-l{display:inline;font-size:12px;color:var(--muted);min-width:60px}
  .pipe{max-width:110px}
  .plist .row{grid-template-columns:4px minmax(0,1fr)}
}
@media (max-width:520px){
  .wrap{padding:16px 16px 60px}
  .search{width:100%}
  .top-actions{width:100%}
  .grid2{grid-template-columns:1fr}
  .log-add{grid-template-columns:1fr}
  .dl-item{grid-template-columns:52px minmax(0,1fr)}
  .dl-item>.check{grid-column:2}
}
@media (prefers-reduced-motion: reduce){
  .drawer,.scrim{transition:none}
}

/* ---------- вход и служебные блоки ---------- */
.foot{color:var(--muted);font-size:12px;margin:0}
.link-out{display:flex;gap:8px;margin-top:8px}
.link-out input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--field);color:var(--ink);font-family:var(--font-mono);font-size:12px}
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.auth-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.auth-card h1{font-family:var(--font-display);font-size:22px;font-weight:700;margin:0}
.auth-card p{margin:0}
.auth-card .btn{justify-content:center}
