/* Эпка — dark theme from КонтраБэнд (Inter Tight, big radii, pills). Tokens first, then components. */
:root{
  color-scheme:dark;
  --bg:#141416; --surface:#212124; --surface-2:#2C2C30; --surface-3:#37373C; --hover:#26262A;
  --ink:#F3F2EE; --muted:#9C9CA3; --soft:#C9C8C4; --line:#333338;
  --paper:#F3F2EE; --paper-ink:#131315;
  --accent:#E5552C; --blue:#4B63D6;
  --ok:#2BC46D; --ok-ink:#0E2A18; --ok-soft:rgba(43,196,109,.14); --warn:#E8B321; --risk:#FF7A59; --risk-soft:rgba(229,85,44,.16);
  --f:"Inter Tight",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r-xl:30px; --r-lg:24px; --r-md:16px;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f);font-size:15px;line-height:1.45;letter-spacing:-.005em;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
/* everything that is pressed shows the hand (решение 12.10.2026): lists, toggles, a label of a check or a colour, tiles and rows
   with role="button" — not only buttons and links */
select,summary,[role="button"],[role="tab"],input[type=checkbox],input[type=radio],input[type=color],input[type=range],label:has(>input[type=checkbox],>input[type=radio],>input[type=color]),label.dctl{cursor:pointer}
select:disabled,[aria-disabled="true"]{cursor:default}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}
.tn{font-variant-numeric:tabular-nums}
.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:600;color:var(--muted)}
.sub{color:var(--muted);font-size:14px}
.empty{color:var(--muted);font-size:14px;padding:6px 0}
.err{color:var(--risk);font-size:13.5px}

/* buttons, chips */
.btn{border:0;border-radius:999px;padding:11px 18px;font-weight:600;font-size:14px;background:var(--surface-2);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--surface-3)}
.btn:disabled{opacity:.5;cursor:default}
.btn.primary{background:var(--paper);color:var(--paper-ink)}
.btn.primary:hover{background:#fff}
.btn.accent{background:var(--accent);color:#fff}
.btn.ghost{background:transparent}
.btn.sm{padding:8px 13px;font-size:13px}
.btn .plus{width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.18);display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1}
.linkbtn{border:0;background:none;padding:0;color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.linkbtn:hover{color:var(--ink)}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;background:var(--surface-2);color:var(--ink);white-space:nowrap}
.st-ok{background:var(--ok-soft);color:#5BD58A}.st-risk{background:var(--risk-soft);color:var(--risk)}.st-pause{background:var(--surface-3);color:var(--muted)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.av{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:13.5px;flex:none;color:#fff}
.av.ph{background-color:var(--surface-2);background-size:cover;background-position:center}   /* a photo instead of the initial */
.me-photo{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
/* framing the profile's photo (решение 12.10.2026): a round frame over the picture; drag, slider, wheel or two fingers */
.crop-ov{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.62);display:flex;align-items:center;justify-content:center;padding:16px}
.crop-card{background:var(--surface);border-radius:24px;padding:18px;width:min(380px,100%);display:flex;flex-direction:column;gap:12px}
.crop-card h3{margin:0;font-size:18px}
.crop-stage{position:relative;width:100%;aspect-ratio:1;overflow:hidden;border-radius:16px;background:#000;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.crop-stage:active{cursor:grabbing}
.crop-stage img{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none;pointer-events:none}
.crop-ring{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.55),inset 0 0 0 2px rgba(255,255,255,.9);pointer-events:none}
.crop-zoom{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:600}
.crop-zoom input{flex:1;accent-color:var(--accent)}
.pico{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex:none}

/* forms */
.f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);min-width:0}
.f input,.f select,.f textarea{background:var(--surface-2);border:1px solid transparent;border-radius:14px;padding:12px 14px;font-size:16px;color:var(--ink);width:100%;min-width:0}
.f input:focus,.f select:focus{border-color:var(--surface-3);outline:none}
.f.bad input{border-color:var(--risk)}
.fg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sw{display:flex;gap:8px;flex-wrap:wrap}
.sw button{width:34px;height:34px;border-radius:50%;border:0;padding:0}
.sw button[aria-pressed="true"]{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--ink)}
.tpl{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.tpl button{border:0;background:var(--surface-2);border-radius:18px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:3px}
.tpl button small{color:var(--muted);font-size:12px}
.tpl button[aria-pressed="true"]{background:var(--paper);color:var(--paper-ink)}.tpl button[aria-pressed="true"] small{color:#6B6B70}
/* «Отчётный период»: a field like an iOS cell, the month calendar opens under it (the .pk grid of the period sheet) */
.pspick{display:flex;align-items:center;gap:12px;width:100%;border:0;background:var(--surface-2);color:var(--ink);font:inherit;text-align:left;border-radius:16px;padding:12px 16px;cursor:pointer}
.pspick .pst{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pspick .pst b{font-size:15px;font-weight:600}.pspick .pst small{font-size:12.5px;color:var(--muted)}
.pspick .chev{color:var(--muted);transition:transform .15s}.pspick[aria-expanded="true"] .chev{transform:rotate(180deg)}
.pscal{background:var(--surface-2);border-radius:18px;padding:12px 10px 10px;display:flex;flex-direction:column;gap:6px}
.pscal .pk-mh{padding:0 6px 4px;color:var(--ink)}.pscal .pk-mh small{font-size:12px;color:var(--muted)}
.pscal .sub{padding:2px 6px 0;font-size:12px}
.pscal .pk-d:disabled span{color:var(--muted);opacity:.5}
/* «Менеджер проекта»: the people under the field, the chosen one with a tick */
.mgself{width:34px;height:34px;border-radius:50%;background:var(--surface-3);color:var(--muted);display:inline-flex;align-items:center;justify-content:center;flex:none}
.mgself svg{width:18px;height:18px}
.mglist{background:var(--surface-2);border-radius:18px;padding:4px 14px}
.mgopt{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:12px;align-items:center;width:100%;border:0;background:none;color:var(--ink);font:inherit;text-align:left;padding:10px 0;border-top:1px solid var(--line);cursor:pointer}
.mgopt:first-child{border-top:0}
.mgopt .pst{display:flex;flex-direction:column;gap:2px;min-width:0}.mgopt b{font-size:15px;font-weight:600}.mgopt small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgopt .tick{color:var(--accent);opacity:0}.mgopt[aria-pressed="true"] .tick{opacity:1}
/* «Финансы»: who sends the invoices to the clients (решение 11.10.2026); an invoice Эпка issued and nobody sent yet */
.billing{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin:-6px 0 4px}
.billing .bw{display:inline-flex;align-items:center;gap:7px;color:var(--ink)}.billing .bw b{font-weight:600}
.billing .linkbtn{margin-left:2px}
.st-warn{background:rgba(232,179,33,.17);color:var(--warn)}
/* the project's tabs: a list of switches in groups (Контент / Работа / Проект) */
.mlist{display:flex;flex-direction:column;background:var(--surface-2);border-radius:18px;padding:4px 14px 6px}
.mgrp{font-size:12px;font-weight:600;color:var(--muted);padding:12px 0 4px}
.mrow{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;border:0;background:none;color:var(--ink);font:inherit;text-align:left;padding:10px 0;border-top:1px solid var(--line);cursor:pointer}
.mgrp+.mrow{border-top:0}
.mrow .mi{display:flex;color:var(--muted)}.mrow[aria-checked="true"] .mi{color:var(--ink)}
.mrow .mt{display:flex;flex-direction:column;gap:2px;min-width:0}
.mrow .mt b{font-size:14.5px;font-weight:600}
.mrow .mt small{font-size:12.5px;color:var(--muted);line-height:1.35}
.mrow .tg{pointer-events:none}
.mrow[aria-checked="true"] .tg{background:var(--ok)}.mrow[aria-checked="true"] .tg::after{transform:translateX(18px);background:#fff}
.mrow:disabled{cursor:default}.mrow:disabled .tg{opacity:.5}
.tg{width:46px;height:28px;border-radius:999px;border:0;background:var(--surface-3);position:relative;flex:none;padding:0;transition:background .15s}
.tg::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--ink);transition:transform .15s}
.tg[aria-checked="true"]{background:var(--ok)}
.tg[aria-checked="true"]::after{transform:translateX(18px);background:#fff}
.tg:disabled{opacity:.5;cursor:default}
.trow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}
.trow:first-child{border-top:0}
.trow b{font-weight:600;font-size:14.5px;display:block}.trow small{font-size:12.5px;color:var(--muted);display:block;margin-top:2px}
.sel{background:var(--surface-2);border:0;border-radius:999px;padding:8px 28px 8px 12px;font-size:13px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 14px) 52%,calc(100% - 9px) 52%;background-size:5px 5px;background-repeat:no-repeat}
.sel.none{color:var(--muted)}

/* sign-in screens */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.auth-card{width:min(420px,100%);display:flex;flex-direction:column;gap:16px}
.auth-logo{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.auth-logo b{font-size:34px;font-weight:600;letter-spacing:-.04em}
.auth h1{font-size:26px;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
.auth p{color:var(--soft)}
.auth form{display:flex;flex-direction:column;gap:12px}
.auth .btn{padding:14px 18px;font-size:15px}
.note{background:var(--surface);border-radius:18px;padding:12px 14px;font-size:13.5px;color:var(--soft);overflow-wrap:anywhere}
.logo{width:40px;height:40px;border-radius:50%;background:var(--paper);color:var(--paper-ink);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:19px;flex:none}

/* app shell */
.app{max-width:1280px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
.top{display:flex;align-items:center;gap:12px;padding:16px 20px;position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.co{border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:0;min-width:0;text-align:left}
.co>span{min-width:0}   /* a long project name in the switcher: the company name gets «…» instead of running under it */
.co b{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.co small{display:block;font-size:12px;color:var(--muted)}
.pbtn{display:inline-flex;align-items:center;gap:10px;border:0;background:var(--surface);border-radius:999px;padding:6px 14px 6px 6px;font-weight:600;font-size:14.5px;min-width:0}
.pbtn .sq{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;font-size:12.5px;font-weight:700}
.pbtn .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.pbtn:hover{background:var(--surface-2)}
.pbtn.plain{padding:6px 14px;min-height:40px}   /* «Проекты» without a project open: just the word (the folder lives in the phone's bottom bar) */
.nav{display:flex;gap:6px}
.nav a{border-radius:999px;padding:10px 15px;font-weight:600;font-size:14.5px;display:inline-flex;gap:8px;align-items:center;text-decoration:none;color:var(--muted)}
.nav a:hover{color:var(--ink);background:var(--surface)}
.nav a[aria-current="page"]{background:var(--accent);color:#fff}
.grow{flex:1}
.mebtn{border:0;background:transparent;padding:0;border-radius:50%}
.screen{flex:1;padding:24px 20px 40px;display:flex;flex-direction:column;gap:18px;min-width:0}
.botnav{display:none}
/* the side menu on a computer (решение 21.10.2026, «как на скрине»): left, full height; no top bar on a computer — the page and the
   menu start at one height. Its toggle sits in the menu's head; hidden, the menu leaves a 64 px rail with the toggle and the sections
   as icons. It slides in from the very edge on the task panel's curve (main.js toggleSide: transform only, FLIP for the page).
   From 1024 px the menu stands beside the page (256 px), 761–1023 px it lies over the page with a scrim. A phone — neither */
:root{--side-w:256px;--rail-w:64px}   /* under the panels' scrim (50): a task or a sheet darkens the menu too */
.side,.side-scrim,.rail,.h-row.ptitle{display:none}   /* .h-row.ptitle: above the base .h-row further down */
@media (min-width:761px){
  .top{display:none}
  .h-row.ptitle{display:flex}
  body{padding-left:var(--rail-w)}
  html .smm{left:var(--rail-w)}   /* html: above the base .smm and .pback rules further down */
  html .pback{left:calc(var(--rail-w) + 24px)}
  .rail{display:flex;flex-direction:column;align-items:center;gap:6px;position:fixed;left:0;top:0;bottom:0;width:var(--rail-w);padding:24px 0 16px;background:var(--surface);border-right:1px solid var(--line);z-index:44}
  .rail a,.rail-tg,.side-x{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border:0;border-radius:12px;background:transparent;color:var(--muted)}
  .rail a svg{width:20px;height:20px}
  .rail a:hover,.rail-tg:hover,.side-x:hover{background:var(--hover);color:var(--ink)}
  .rail a[aria-current="page"]{background:var(--accent);color:#fff}
  .rail-tg{margin-bottom:10px;color:var(--ink)}
  .rail-me{border:0;background:transparent;padding:0;border-radius:50%}
  .side{display:flex;flex-direction:column;gap:16px;position:fixed;left:0;top:0;bottom:0;width:var(--side-w);padding:24px 14px 16px;background:var(--surface);border-right:1px solid var(--line);z-index:45;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-100%);visibility:hidden;will-change:transform}
  html.side-open .side{transform:none;visibility:visible}
  .side-h{display:flex;align-items:center;gap:8px;min-height:40px}
  .side-h .co{flex:1;min-width:0;padding:0 6px}
  .side .co b{max-width:140px}
  .side-x{color:var(--ink)}
  .side-nav{display:flex;flex-direction:column;gap:2px}
  .side-nav a{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:14px;color:var(--muted);font-weight:600;font-size:14.5px;text-decoration:none}
  .side-nav a:hover{background:var(--hover);color:var(--ink)}
  .side-nav a[aria-current="page"]{background:var(--accent);color:#fff}
  .side-i{display:inline-flex;width:20px;height:20px}.side-i svg{width:20px;height:20px}
  .side-sec{display:flex;flex-direction:column;gap:2px}
  .side-sh{display:flex;align-items:center;justify-content:space-between;padding:0 6px 6px 12px;font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
  .side-add{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--muted)}
  .side-add:hover{background:var(--surface-2);color:var(--ink)}
  .side-p,.side-u{display:flex;align-items:center;gap:12px;min-height:34px;padding:3px 12px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;font-size:14.5px;font-weight:500;text-align:left;text-decoration:none;width:100%}
  .side-p:hover,.side-u:hover{background:var(--hover)}
  .side-p[aria-current="page"]{background:var(--surface-2)}
  .side-p .dot{width:10px;height:10px;flex:none;margin:0 5px}
  .side-p.paused{color:var(--muted)}
  .side-u{padding-left:8px;gap:10px}
  .side-pn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .side-more{align-self:flex-start;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:600;padding:6px 12px;border-radius:999px}
  .side-more:hover{color:var(--ink);background:var(--hover)}
  .side-none{font-size:13.5px;color:var(--muted);padding:4px 12px}
  .side-f{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--line);padding-top:10px}
  .side-me{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;padding:6px 8px;border-radius:14px}
  .side-me:hover{background:var(--hover)}
  .side-me b{display:block;font-size:14.5px;font-weight:600}.side-me small{display:block;font-size:12px;color:var(--muted)}
  .side-out{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--muted);font:inherit;font-size:14.5px;font-weight:600}
  .side-out:hover{background:var(--hover);color:var(--ink)}
}
@media (min-width:1024px){
  html.side-open body{padding-left:var(--side-w)}
  html.side-open .smm{left:var(--side-w)}
  html.side-open .pback{left:calc(var(--side-w) + 24px)}
}
@media (min-width:761px) and (max-width:1023px){
  html.side-open .side-scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:44}
  html.side-open .pback{display:none}
}
.h-row{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.h-row h2{font-size:clamp(26px,3.4vw,36px);font-weight:600;letter-spacing:-.03em;line-height:1.05;text-wrap:balance}
.actions{display:flex;gap:8px;flex-wrap:wrap}

/* cards */
.w{background:var(--surface);border-radius:var(--r-xl);padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0}
.w-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.w-h h3{font-size:18px;font-weight:600;letter-spacing:-.02em}
/* rows of cards: cards sharing a row get the same width and height; one card alone in a row spans it */
.grid2{display:flex;flex-wrap:wrap;gap:14px;align-items:stretch}
.grid2>*{flex:1 1 320px;min-width:0}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:12px}   /* wide project cards: three in a row on a computer (решение 10.10.2026) */
.pc{border:0;text-align:left;background:var(--surface-2);border-radius:22px;padding:14px;display:flex;flex-direction:column;gap:12px;min-width:0;text-decoration:none;color:inherit}
.pc:hover{background:var(--surface-3)}
.pc-t{display:flex;gap:10px;align-items:center;min-width:0}
.pc-t b{font-size:16px;font-weight:600;display:block;line-height:1.2}
.pc-t small{font-size:12.5px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-f{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.pc.new{align-items:center;justify-content:center;min-height:110px;color:var(--muted)}
/* a project card in the style of the sections' tiles (решение 10.10.2026): light, orange when tasks are overdue */
/* the card in its project's colour (--pc), its ink (--pci) light or dark by it (решение 12.10.2026) */
.pc.ptile{background:var(--pc,var(--paper));color:var(--pci,var(--paper-ink));border-radius:26px;padding:16px 18px 18px;gap:10px;transition:filter .15s}
.pc.ptile:hover{background:var(--pc,var(--paper));filter:brightness(1.05)}
.ptile .dh-tag{background:color-mix(in srgb,var(--pci,#131315) 12%,transparent);color:inherit}
.ptile .pt-ico{width:34px;height:34px;font-size:13px;background:var(--pci,#131315);color:var(--pc,#F3F2EE)}
.pt-over{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;padding:5px 11px 5px 9px;border-radius:999px;background:var(--pci,#131315);color:var(--pc,#F3F2EE);white-space:nowrap}
.pt-over i{width:8px;height:8px;border-radius:50%;background:#FF7A59;box-shadow:0 0 0 2px color-mix(in srgb,var(--pc,#F3F2EE) 40%,transparent)}
.pc.ptile[aria-current="true"]{outline:3px solid var(--accent);outline-offset:2px}
.pt-top{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:34px}
.pt-mid{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.pt-main{min-width:0}
.pt-name{display:block;font-size:24px;font-weight:500;letter-spacing:-.03em;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-main small{display:block;font-size:13px;color:color-mix(in srgb,var(--pci,#131315) 66%,transparent);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptile .dh-prog{gap:10px}.ptile .dh-prog span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptile .hbar{height:18px;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--pci,#131315) 30%,transparent) 0 2px,transparent 2px 7px),color-mix(in srgb,var(--pci,#131315) 8%,transparent)}
.ptile .hbar i{background:var(--pci,#131315)}
.ptile .dh-prog{color:color-mix(in srgb,var(--pci,#131315) 72%,transparent)}.ptile .dh-prog b{color:var(--pci,#131315)}
.pc-preview{pointer-events:none;max-width:420px;margin-top:6px}.pc-preview .pc{min-height:0}.pc-preview .pc[aria-current]{outline:0}
/* «Свой цвет»: the system's colour picker under a swatch */
.sw-own{position:relative;width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;cursor:pointer;color:#fff;font-size:18px;font-weight:600;
  background:conic-gradient(#E5552C,#E8B321,#1E8E4E,#4B63D6,#8A63E0,#D35BA0,#E5552C)}
.sw-own span{text-shadow:0 1px 2px rgba(0,0,0,.4);pointer-events:none}
.sw-own.on{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--ink)}
.sw-own input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;border:0;padding:0}
.soon{display:flex;flex-wrap:wrap;gap:10px}
.soon div{flex:1 1 210px;min-width:0;background:var(--surface-2);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:4px}
.soon b{font-weight:600}.soon span{font-size:13px;color:var(--muted)}

/* project (the section row and the segmented switch .opt — ptabs.css) */
.placeholder{background:var(--surface);border-radius:var(--r-xl);padding:28px 22px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.placeholder h3{font-size:22px;font-weight:600;letter-spacing:-.02em}
.placeholder p{color:var(--soft);max-width:60ch}
.mrow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.mrow:first-child{border-top:0}
.mrow b{font-weight:600;display:block}.mrow small{font-size:12.5px;color:var(--muted)}

/* access */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* «Права ролей» (21.10.2026, «в 2 ряда»): two cards in a row, equally tall; rights × the group's two roles, switches in the cells */
.rl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.rl-t{width:100%;border-collapse:collapse}
.rl-t thead th{font-size:13px;font-weight:600;color:var(--muted);text-align:center;padding:0 6px 8px;width:112px}
.rl-t thead th:first-child{width:auto}
.rl-t tbody th{text-align:left;font-weight:500;font-size:15px;padding:12px 8px 12px 0;border-top:1px solid var(--line)}
.rl-t td{text-align:center;padding:12px 6px;border-top:1px solid var(--line)}
.rl-na{color:var(--surface-3);font-weight:600}
@media (max-width:760px){
  .rl-grid{grid-template-columns:minmax(0,1fr)}
  .rl-t thead th{width:96px}
  .rl-t tbody th{font-size:14px}
}
.xbtn{border:0;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:50%;font-size:17px}
.xbtn:hover{background:var(--surface-2);color:var(--ink)}
.xbtn.confirm{width:auto;border-radius:999px;padding:0 12px;font-size:12.5px;font-weight:700;background:var(--risk-soft);color:var(--risk)}
.irow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
/* «Доступы → Люди и проекты» (решение 12.10.2026, «как в Asana»): the team, then the clients; a row — the person, their projects,
   the role in the company; it opens the person's panel. An invitation waits in its group, a dashed circle */
.pplist .tgroup+.tgroup{margin-top:10px}
.pprow{display:grid;grid-template-columns:36px minmax(0,1fr) minmax(0,1.3fr) minmax(88px,auto);align-items:center;gap:12px;width:100%;padding:10px 0;border:0;border-top:1px solid var(--line);background:transparent;color:inherit;font:inherit;text-align:left;border-radius:0}
button.pprow{cursor:pointer;border-radius:14px;transition:background-color .15s,box-shadow .15s}
button.pprow:hover,button.pprow.on{background:var(--hover);box-shadow:-8px 0 0 var(--hover),8px 0 0 var(--hover);border-top-color:transparent}
button.pprow:hover+.pprow,button.pprow.on+.pprow{border-top-color:transparent}
.pprow .av{width:36px;height:36px}
.pp-n{display:flex;flex-direction:column;min-width:0}
.pp-n b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-n small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-me{font-size:12px;font-weight:500;color:var(--muted);margin-left:4px}
.pp-pj{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.pp-chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;background:var(--surface-2);font-size:12.5px;font-weight:500;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pp-chip small{color:var(--muted);font-size:12px;font-weight:500}
.pp-all{color:var(--muted);font-size:13px}
.pp-r{color:var(--muted);font-size:13px;text-align:right;white-space:nowrap}
.pprow.inv .btn{justify-self:end}
.av.pp-wait{background:transparent;border:1.5px dashed var(--muted);color:var(--muted)}
/* the person's panel: their roles; a project's role is one segmented row (Нет · Менеджер · Сотрудник · Наблюдатель) */
.pp-head{display:flex;align-items:center;gap:14px}
.pp-head .tp-title{margin:0;padding:0}.pp-head .sub{margin:2px 0 0}
.tp-sec>.pp-seg{align-self:flex-start}
.pp-prow{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
.pp-pn{display:inline-flex;align-items:center;gap:8px;font-weight:500;min-width:0}
.pp-seg button{padding:7px 12px;font-size:13px}
@media (max-width:760px){
  .pprow{grid-template-columns:36px minmax(0,1fr) auto;row-gap:8px}
  .pprow .pp-pj{grid-column:2/-1;grid-row:2}
  .pprow .pp-pj:empty{display:none}
  .pp-prow .pp-seg,.tp-sec>.pp-seg{width:100%;align-self:stretch}.pp-prow .pp-seg button,.tp-sec>.pp-seg button{flex:1}
  .pprow .pp-chip small{display:none}   /* on a phone a project's name is enough in the list: the role is in the person's panel */
}
.irow:first-child{border-top:0}
.irow b{font-weight:600}.irow small{display:block;font-size:12.5px;color:var(--muted)}
.prow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0}
.link{display:flex;gap:8px;align-items:center;background:var(--surface-2);border-radius:999px;padding:6px 6px 6px 14px;min-width:0}
.link code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,Menlo,monospace;font-size:12.5px;color:var(--soft)}

/* overlays */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:50;display:flex}
.drawer{width:min(380px,92vw);background:var(--surface);height:100%;padding:20px;display:flex;flex-direction:column;gap:14px;overflow:auto;border-radius:0 30px 30px 0}
.search{background:var(--surface-2);border:0;border-radius:999px;padding:11px 16px;width:100%;font-size:16px}
.plist{display:flex;flex-direction:column;gap:4px}
.pl-i{border-radius:18px;padding:8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;text-decoration:none;color:inherit}
.pl-i:hover{background:var(--surface-2)}
.pl-i[aria-current="true"]{background:var(--surface-3)}
.pl-i b{font-weight:600;display:block}.pl-i small{color:var(--muted);font-size:12.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grp{font-size:12px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;padding:8px 8px 2px}
.sheetw{align-items:flex-end;justify-content:center}
.sheet{width:min(640px,100%);max-height:92vh;overflow:auto;background:var(--surface);border-radius:30px 30px 0 0;padding:22px 22px calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain}
@media (min-width:700px){.sheetw{align-items:center;padding:24px}.sheet{border-radius:30px}}
.sheet h2{font-size:24px;font-weight:600;letter-spacing:-.02em}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--paper);color:var(--paper-ink);border-radius:999px;padding:12px 20px;font-weight:600;font-size:14px;z-index:80;max-width:calc(100% - 32px);box-shadow:0 10px 30px rgba(0,0,0,.4)}

/* figures, charts, finance */
.kpis{display:flex;flex-wrap:wrap;gap:10px}
.kpis>*{flex:1 1 170px;min-width:0}
.kpi{background:var(--surface);border-radius:22px;padding:16px 18px;display:flex;flex-direction:column;gap:6px;min-width:0}
.kpi b{font-size:26px;font-weight:600;letter-spacing:-.03em;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi span{font-size:13px;color:var(--muted)}
.kpi.hot{background:var(--accent);color:#fff}.kpi.hot span{color:rgba(255,255,255,.8)}
.kpi.light{background:var(--paper);color:var(--paper-ink)}.kpi.light span{color:#6B6B70}
.kpi.warn b{color:var(--risk)}
/* a tile that leads somewhere: the whole tile is a button with a small arrow */
.kpi{position:relative}
button.kpi{border:0;text-align:left;cursor:pointer;font:inherit}
button.kpi:not(.hot):not(.light){color:var(--ink)}
.kpi.go:hover{filter:brightness(1.12)}
.kpi .arr{position:absolute;top:13px;right:13px;display:flex;opacity:.4;transition:opacity .15s}
.kpi.go:hover .arr{opacity:.9}
/* a tile that is a filter: the chosen one is orange (.hot), no outline (21.10.2026) */
.kpi.go b{padding-right:20px}
.w,.kpis{scroll-margin-top:92px}
.flash{animation:flash 1.5s ease-out}
@keyframes flash{0%,35%{box-shadow:0 0 0 2px var(--accent)}100%{box-shadow:0 0 0 2px transparent}}
.fchip{border:0;cursor:pointer;gap:8px}
/* the invoice sheet: «Повторять каждый месяц» swaps fields */
form:not(.is-rec) [data-rec],form.is-rec [data-once]{display:none!important}
.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:14px;height:8px;border-radius:4px;display:inline-block}
.legend b{color:var(--ink);font-weight:600}
.w>.legend:last-child{margin-top:auto}
.mchart{display:flex;align-items:flex-end;gap:10px;height:160px}
.mc{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;min-width:0}
.mc-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px}
.mc-bars i{display:block;width:min(18px,40%);border-radius:6px 6px 3px 3px;min-height:2px}
.mc-bars .pd{background:var(--ok)}.mc-bars .sp{background:var(--accent)}
.mc small{font-size:12px;color:var(--muted)}
.bar{display:block;height:7px;border-radius:7px;background:var(--surface-3);overflow:hidden;margin-top:7px}
.bar i{display:block;height:100%;border-radius:7px}
.frow{display:grid;grid-template-columns:minmax(0,1fr) auto 32px;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.fr-main{border:0;background:transparent;color:inherit;text-align:left;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:6px 8px;margin:0 -8px;border-radius:16px;min-width:0}
.fr-main:hover{background:var(--hover)}.fr-main[aria-pressed="true"]{background:var(--surface-2)}
.frow:first-child{border-top:0}
.frow b{font-weight:600}
.fr-v{text-align:right;display:flex;flex-direction:column}.fr-v small{font-size:12.5px;color:var(--muted)}
.irow small .chip{margin-top:4px}
.mform{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.f input[type=date]{-webkit-appearance:none;appearance:none;min-height:46px}
.hb{display:flex;flex-direction:column;gap:12px}
.hb-r{display:grid;grid-template-columns:110px minmax(0,1fr) 40px;gap:10px;align-items:center;font-size:13.5px}
.hb-tr{position:relative;height:14px;border-radius:7px;background:var(--surface-3);overflow:hidden}
.hb-tr .fa{position:absolute;inset:0 auto 0 0;border-radius:7px}
.hb-r .v{text-align:right;color:var(--muted)}
.atable{overflow-x:auto}
.atable table{border-collapse:collapse;width:100%;font-size:13.5px;min-width:560px}
.atable th,.atable td{padding:10px 8px;text-align:left;border-top:1px solid var(--line);white-space:nowrap}
.atable thead th{border-top:0;color:var(--muted);font-weight:600;font-size:12.5px}
.atable .pn{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.atable .pn b{font-weight:600}
.red{color:var(--risk)}
/* ledger rows (finance page and project tab): the text opens the item, buttons act in place */
.lrow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:0 10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.lrow:first-child{border-top:0}
.lrow>b{font-weight:600;text-align:right}
.lr-main{border:0;background:transparent;color:inherit;text-align:left;padding:7px 0;border-radius:14px;min-width:0;display:block;text-decoration:none}   /* a link too: «Отправить счёт» in «Мои задачи» */
/* a row that opens: the whole row lights up (the sum and the date too), 8 px wider than the text on both sides */
.lrow.go{cursor:pointer;border-radius:14px;transition:background-color .15s,box-shadow .15s}
.lrow.go:hover{background:var(--hover);box-shadow:-8px 0 0 var(--hover),8px 0 0 var(--hover)}
.lrow.go:hover,.lrow.go:hover+.lrow{border-top-color:transparent}
.lr-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.lr-t b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-t small{font-size:12.5px;color:var(--muted)}
.lr-p{display:inline-flex;align-items:center;gap:6px}
/* the row's top line, across the whole row: the project, its status right after it */
.lrow>.lr-h{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0;padding-top:7px;font-size:12.5px;color:var(--muted)}
.lrow>.lr-h .chip{min-width:0;overflow:hidden;text-overflow:ellipsis}
.lrow>.lr-h .lr-p{font-size:inherit;white-space:nowrap;min-width:0}
.lrow>.lr-h+.lr-main{padding-top:3px}
.lr-act{display:flex;gap:4px;align-items:center;justify-content:flex-end;min-width:32px}
.chip.mini{font-size:11.5px;padding:2px 8px}
.ltools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ltot{margin-left:auto}
.btn.confirm{background:var(--risk-soft);color:var(--risk)}
.btn.danger{color:var(--risk)}
/* round check button — the same size and shape everywhere, on desktop and phone */
/* the round check (решение 12.10.2026: «слишком большая»): an outline like the content plan's, the size of the icons next to it;
   green on hover (a computer), a green fill when done */
.cbtn{width:32px;height:32px;flex:none;border-radius:50%;border:0;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--muted);box-shadow:inset 0 0 0 2px var(--surface-3);cursor:pointer;transition:background-color .18s,color .18s,box-shadow .18s,transform .18s}
@media (hover:hover){ .cbtn:not(.on):not(.still):not(.kind):hover{color:var(--ok);background:var(--ok-soft);box-shadow:inset 0 0 0 2px var(--ok)} }
.cbtn:active{transform:scale(.92)}
.cbtn svg{width:14px;height:14px}
.cbtn.on{background:var(--ok);color:#fff;box-shadow:none}
.cbtn.on:hover{background:#25AE60}
/* «Салют» from a tick (main.js salute): a box at the check's centre, sparks and a ring fly out of it */
.salute{position:fixed;width:0;height:0;pointer-events:none;z-index:300}
.salute i{position:absolute;left:-2.5px;top:-2.5px;width:5px;height:5px;border-radius:50%}
.salute i.ln{left:-4.5px;top:-1.5px;width:9px;height:3px;border-radius:2px}
.salute b{position:absolute;left:-14px;top:-14px;width:28px;height:28px;border-radius:50%;border:2px solid var(--ok)}
.fixed{display:flex;align-items:center;gap:9px;background:var(--surface-2);border-radius:14px;padding:12px 14px;color:var(--ink);font-size:16px}
.inrow{display:flex;gap:8px;align-items:center}.inrow input{flex:1;min-width:0}
.tbar{display:inline-flex;align-items:center;gap:10px}.tbar .bar{width:64px;margin:0;flex:none}
/* inline form row: fields wrap, the button sits at the end */
.fl{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.fl>.f{flex:1 1 140px}.fl>.f.n{flex:0 1 90px}.fl>.f.wide{flex:2 1 220px}.fl>.btn{flex:none;min-height:48px}
/* budget bar */
.seg{display:flex;height:16px;border-radius:8px;background:var(--surface-2);overflow:hidden}
.seg i{display:block;height:100%}
.kv{display:flex;flex-direction:column;gap:9px}
.kv div{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.kv span{display:inline-flex;align-items:center;gap:8px;color:var(--soft)}
.kv i{width:10px;height:10px;border-radius:50%}

/* tasks: the round check, title and meta, due date, the eye */
.lrow.task{grid-template-columns:auto minmax(0,1fr) auto}
.lrow.task.with-eye{grid-template-columns:auto minmax(0,1fr) auto auto}
/* the own date of a subtask (решение 12.10.2026): a dashed calendar or its date; the date field itself is invisible over it */
.dctl{position:relative;display:inline-flex;align-items:center;justify-content:flex-end;min-width:32px;min-height:32px;border-radius:999px;padding:0 6px;cursor:pointer;color:var(--muted)}
.dctl:hover{background:var(--surface-2)}.dctl.empty{padding:0}.dctl.empty:hover{background:transparent;color:var(--ink)}
.dctl input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0;color-scheme:dark}
.dctl-i{display:grid;place-items:center}.dctl-i svg{width:28px;height:28px}
.dctl .due{white-space:nowrap}
/* ▸ subtasks under their row (решение 12.10.2026, как в Asana): the caret in the gutter left of the check, the list indented under it */
.lrow.task{position:relative}
/* the ▸ itself (not its 18 px hit area) starts right at the card's padding — as far from the left edge as the date is from the right one */
.sub-car{position:absolute;left:-6.6px;top:50%;transform:translateY(-50%);width:18px;height:32px;border:0;padding:0;background:transparent;color:#B9B8B2;display:grid;place-items:center;cursor:pointer;border-radius:6px;z-index:2}
.sub-car:hover{color:var(--ink);background:var(--surface-2)}
.sub-car svg{transition:transform .16s}.sub-car[aria-expanded="true"] svg{transform:translate(2.2px,-.6px) rotate(90deg)}   /* ▼ keeps the same left edge as ▸ */
.subrows{padding-left:42px;border-top:1px solid var(--line)}
/* a card with ▸ keeps a 20 px lane on the left of every row for it, so all the checks stay in one line (as in Asana) */
.w:has(.sub-car) .lrow.task:not(.sub){padding-left:20px}
.w:has(.sub-car) .subrows{padding-left:62px}
.lrow.task.sub{grid-template-columns:auto minmax(0,1fr) auto auto;padding:4px 0;border-top:1px solid var(--line)}
.subrows .lrow.task.sub:first-child{border-top:0}
.lrow.task.sub .tt{font-weight:500;font-size:14.5px}
.lrow.task.sub.done .tt{color:var(--muted);text-decoration:line-through}
.sub-av{display:flex}.sub-load{font-size:13px;color:var(--muted);padding:10px 0}
/* «Мои задачи» on a computer (решение 12.10.2026): the stage and the people between the title and the date, one column for every row */
.lr-x{display:none}
@media (min-width:761px){
  .lrow.task.with-x{grid-template-columns:auto minmax(0,1fr) auto auto}
  .lr-x{display:grid;grid-template-columns:110px 84px;gap:14px;align-items:center}
  .with-x .due{min-width:92px;text-align:right}
  .with-x .tsub{display:none}   /* the count is in the column on a computer */
  .lrow.task.with-x.with-eye{grid-template-columns:auto minmax(0,1fr) auto auto auto}
  .with-x .tm-i.who{display:none}   /* the people are avatars in the column on a computer */
}
.lr-st{min-width:0;display:flex}
.lr-prog{display:flex;align-items:center;gap:8px;width:100%;font-size:12.5px;color:var(--muted)}.lr-prog b{font-weight:600;min-width:30px}
.lr-bar{flex:1;height:6px;border-radius:9px;background:var(--surface-3);overflow:hidden}.lr-bar i{display:block;height:100%;border-radius:9px;background:var(--ok)}
.lr-prog.full b{color:var(--ok)}
.lr-ppl{display:flex;justify-content:flex-end}.lr-ppl .av{width:24px;height:24px;font-size:10px;box-shadow:0 0 0 2px var(--surface);margin-left:-7px}.lr-ppl .av:first-child{margin-left:0}
.lr-ppl .av.more{background:var(--accent);color:#fff;font-weight:600}
.lrow.task .lr-main{margin:0}
.lrow.task .lr-t b{white-space:normal;overflow:visible;line-height:1.3}
.task.done .tt{text-decoration:line-through;color:var(--muted)}
.tm{display:flex;flex-wrap:wrap;gap:3px 12px;align-items:center}
.tm-i{display:inline-flex;align-items:center;gap:6px}
.tm .av{font-size:9.5px}
.due{font-size:12.5px;font-weight:600;white-space:nowrap;color:var(--muted)}
.due.late{color:var(--risk)}.due.today{color:var(--warn)}
/* «Срочно» (решение 12.10.2026): a red flag first in the row's line; urgent tasks stand first in every group */
/* an event's timing in its panel: time · what · × */
.tp-tmr{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:8px;align-items:center;margin-bottom:6px}
.tp-tmadd{margin-top:4px;width:auto;align-self:flex-start}
.tm-i.urg{color:var(--risk);font-weight:600}.tm-i.urg svg{width:13px;height:13px}
.grp.late{color:var(--risk)}
/* the filters of a project's tasks: one height with the switch next to them (36 px) */
.tfbar .sel,.tfbar .fchip{height:36px}
.tfbar .fchip.tf-urg svg{width:14px;height:14px}.tfbar .fchip.tf-urg[aria-pressed="true"]{background:var(--risk-soft);color:var(--risk)}
/* «Задачи» (22.10.2026, макет 6a/6b из Claude Design). Computer: the list and «Что нового» side by side, as tall as each other; the
   filters in one row of 36 px, 12.5 px / 600 (#ta-list only: a project's filters keep wrapping on a phone). Phone: tabs «Задачи · N / Что нового · N», the filters without wrapping (the project — a
   button, a select there is 16 px), the task row with a right column (the date up, the people down) */
.ta{display:flex;flex-direction:column;gap:18px}
.ta-row{display:flex;flex-direction:column;gap:14px}
@media (min-width:1200px){.ta-row{display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:stretch}}
.ta-tabs,.ta-scope-m,.ta-pbtn,.ta-m,.lr-r,.ta-feed .grp{display:none}
#ta-list .tfbar .sel,#ta-list .tfbar .chip,#ta-list .tfbar .opt button{font-size:12.5px;font-weight:600}
#ta-list .tfbar .opt{height:36px;flex-wrap:nowrap}
#ta-list .tfbar .opt button{white-space:nowrap}
.grp .dot{margin-right:6px}
.ta-more{display:flex;gap:12px;margin-top:12px}
.tm-i.red{color:var(--risk);font-weight:600}
.fdrow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:12px;width:100%;padding:10px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;text-align:left;border-radius:0}
.fd > .fdrow:first-child,.fd .grp + .fdrow{border-top:0}
.fdrow:hover .fd-t{color:#fff}
.fd-t{min-width:0;font-size:14px;line-height:1.4}.fd-t b{font-weight:600}
.fd-t small{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:12.5px;color:var(--muted)}
.fd-t small .dot{margin:0}
.fdrow .due{font-size:12.5px;font-weight:600;color:var(--muted);white-space:nowrap;line-height:19.6px}
@media (max-width:760px){
  .ta-scope{display:none}
  .ta-scope-m{display:inline-flex;align-self:flex-start}
  .ta-tabs{display:flex;align-self:stretch}.ta-tabs button{flex:1}
  .ta.tab-tasks .ta-feed,.ta.tab-feed .ta-kpis,.ta.tab-feed .ta-list{display:none}
  .ta-feed .grp{display:block}
  .ta-feed .w-h{display:none}
  #ta-list .tfbar{flex-wrap:nowrap}
  .ta-psel,#ta-list .tfbar .tf-ppl,.ta-l,.ta-reset{display:none}
  .ta-pbtn{display:inline-flex;align-items:center;flex:none;white-space:nowrap;max-width:46%;overflow:hidden;text-overflow:ellipsis}
  .ta-m{display:inline}
  #ta-list .tfbar .tf-urg{flex:1 1 0;min-width:36px;padding:0;justify-content:center}
  #ta-list .tfbar .ltot{flex:2.4 1 0;margin-left:0}#ta-list .tfbar .ltot button{flex:1}
  #ta-list .lrow.task{grid-template-columns:auto minmax(0,1fr) auto;column-gap:14px;align-items:stretch;padding:13px 0;border-top:1px solid color-mix(in oklch,var(--line) 55%,transparent)}
  #ta-list .grp + .lrow.task{border-top:0}
  #ta-list .lrow.task > .cbtn{align-self:start}
  #ta-list .lrow.task > .lr-main{padding:0;align-self:stretch;display:flex}
  #ta-list .lrow.task .lr-t{display:flex;flex-direction:column;justify-content:space-between;gap:4px}
  #ta-list .lrow.task > .due,#ta-list .lrow.task > .eye,#ta-list .lrow.task > .sub-car,#ta-list .lrow.task > .lr-x,#ta-list .lrow.task .tm-i.who{display:none}
  #ta-list .lr-r{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:4px;min-width:64px}
  #ta-list .lr-r .due{line-height:19.5px}
  #ta-list .lr-r .lr-ppl{display:flex}
}
.tf-ppl{display:inline-flex;gap:6px;align-items:center;height:36px}
.tf-av{border:0;background:transparent;padding:0;border-radius:50%;cursor:pointer;line-height:0;box-shadow:0 0 0 2px transparent;transition:box-shadow .15s,opacity .15s}
.tf-av[aria-pressed="true"]{box-shadow:0 0 0 2px var(--ink)}
.tf-ppl:has([aria-pressed="true"]) .tf-av[aria-pressed="false"]{opacity:.4}
.eye{width:32px;height:32px;border-radius:50%;border:0;background:transparent;color:#5A5A61;display:inline-flex;align-items:center;justify-content:center;padding:0}
.eye[aria-pressed="true"]{color:var(--ok);background:var(--ok-soft)}
.eye:hover{color:var(--ink)}
.cbtn.kind{cursor:default;background:var(--surface-2);color:var(--muted);box-shadow:none}.cbtn.kind svg{width:17px;height:17px}.cbtn.kind.on{background:var(--ok-soft);color:var(--ok)}   /* a reel or the day's stories in «Мои задачи»: what it is, not a tick */
.cbtn.still{cursor:default;background:var(--surface-2);color:var(--muted);box-shadow:none}.cbtn.still.on{background:var(--ok-soft);color:var(--ok)}
.tgroup .grp{padding:12px 0 2px}
.tquick{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tquick input{flex:1;min-width:0;background:var(--surface-2);border:1px solid transparent;border-radius:999px;padding:11px 16px;font-size:16px;color:var(--ink)}
.tquick input:focus{border-color:var(--surface-3);outline:none}
.tquick .err{width:100%}
.pc-p{display:flex;align-items:center;gap:10px}.pc-p .bar{flex:1;margin:0}.pc-p small{font-size:12px;color:var(--muted)}
.pc-n{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
p.about{color:var(--soft);white-space:pre-wrap;max-width:80ch}
.f textarea{resize:vertical;min-height:84px;line-height:1.45}

/* charts (charts.js) */
.donut{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}   /* a narrow card puts the legend under the ring */
.dn-c{position:relative;width:150px;height:150px;flex:none}
.dn-t{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.dn-t b{font-size:32px;font-weight:600;letter-spacing:-.03em;line-height:1}
.dn-t small{font-size:12px;color:var(--muted);margin-top:3px}
.dl{flex:1;min-width:190px;display:flex;flex-direction:column;gap:11px}
.dl div{display:grid;grid-template-columns:auto minmax(0,1fr) auto 38px;gap:10px;align-items:center;font-size:14px}
.dl i{width:10px;height:10px;border-radius:50%}
.dl b{font-weight:600}.dl small{color:var(--muted);text-align:right;font-size:12.5px}
.cols{display:flex;gap:12px;height:190px}
.col{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.col-b{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px}
.col-b b{font-size:14px;font-weight:600}
.col-b i{display:block;width:min(56px,72%);border-radius:10px 10px 4px 4px;min-height:3px}
.col small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hs{display:flex;flex-direction:column;gap:12px}
.hs-r{display:grid;grid-template-columns:minmax(90px,150px) minmax(0,1fr) 56px;gap:12px;align-items:center;font-size:14px}
.hs-l{display:flex;align-items:center;gap:8px;min-width:0}
.hs-l span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-l .av,.hs-l .pico{flex:none}
.hs-tr{display:flex;height:14px;border-radius:7px;background:var(--surface-2);overflow:hidden}
.hs-tr>*{display:block;height:100%;flex:none;border:0;padding:0}
.hs-r>b{text-align:right;font-weight:600}
/* chart parts that lead somewhere: links and buttons look like the chart, a hover lifts them */
.dl-a,.col,.hs-l,.hs-tr>a,.hs-tr>button,.mc,.cell-a{font:inherit;color:inherit;text-decoration:none;background:none;border:0;padding:0;text-align:inherit}
a.dl-a,button.dl-a,a.col,button.col,a.hs-l,button.hs-l,.hs-tr>a,.hs-tr>button,button.mc,.cell-a,.dn-a,.lc-h[role="button"],a.lc-h{cursor:pointer}
.dn-a circle{transition:stroke-width .15s}.dn-a:hover circle,.dn-a:focus-visible circle{stroke-width:27px}
.dn-a:focus{outline:none}
.dl-a{display:grid;grid-template-columns:auto minmax(0,1fr) auto 38px;gap:10px;align-items:center;font-size:14px;border-radius:12px;padding:5px 8px;margin:-5px -8px;width:calc(100% + 16px)}
.dl-a:hover{background:var(--surface-2)}
.dl-a span{text-decoration:underline;text-decoration-color:var(--surface-3);text-underline-offset:3px}
.col{border-radius:12px}
a.col:hover,button.col:hover{background:var(--surface-2)}
.hs-r.hs-go{border-radius:12px;padding:4px 8px;margin:-4px -8px}
.hs-r.hs-go:hover{background:var(--surface-2)}
.hs-r.hs-go:hover .hs-tr{background:var(--surface-3)}
.hs-tr>a:hover,.hs-tr>button:hover{filter:brightness(1.25)}
.hs-tr>.hs-rest{background:transparent}.hs-tr>.hs-rest:hover{background:rgba(255,255,255,.08);filter:none}
.mc{border-radius:12px;padding-top:4px}.mc:hover{background:var(--surface-2)}
.mc.on{background:var(--surface-2)}.mc.on small{color:var(--ink);font-weight:600}   /* the chosen period */
.cell-a{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:3px 6px;margin:-3px -6px}
.cell-a:hover{background:var(--surface-2)}
.atable tbody tr:hover td{background:rgba(255,255,255,.025)}
.atable button.chip{border:0;cursor:pointer;font:inherit;font-size:12.5px;font-weight:600}
.afchip{background:var(--accent);color:#fff}.afchip:hover{filter:brightness(1.1)}
/* a point of a line chart: the column under it lights up and a dashed guide shows the month */
.lc-h rect{transition:fill .15s}.lc-h:hover rect,.lc-h:focus-visible rect{fill:rgba(255,255,255,.035)}
.lc-h .lc-v{stroke:var(--muted);stroke-dasharray:3 4;opacity:0}.lc-h:hover .lc-v,.lc-h:focus-visible .lc-v{opacity:1}
.lc-h:focus{outline:none}
/* the hover card (main.js): title, rows with a colour dot, what a click does */
.tip{position:fixed;z-index:95;pointer-events:none;background:var(--surface-3);color:var(--ink);border-radius:14px;padding:10px 12px;font-size:12.5px;line-height:1.35;box-shadow:0 12px 32px rgba(0,0,0,.5);max-width:270px;display:flex;flex-direction:column;gap:5px}
.tip>b{font-size:13px;font-weight:600;margin-bottom:1px}
.tip-r{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:8px;align-items:center;color:var(--soft)}
.tip-r i{width:8px;height:8px;border-radius:50%}
.tip-r b{color:var(--ink);font-weight:600;text-align:right}
.tip small{color:var(--muted);margin-top:2px}
.rep{display:inline-flex;vertical-align:-2px;color:var(--muted);margin-right:6px}
.lc{display:flex;flex-direction:column;gap:6px}
.lc-y{color:var(--muted);font-size:12px}
.lc-s{width:100%;height:190px;display:block;overflow:visible}
.lc-x{display:flex;justify-content:space-between}
.lc-x small{font-size:12px;color:var(--muted)}

/* the reporting period on a project's «Финансы» — the same row as the SMM module's (smm/src/css/epka.css):
   40 px controls, 12 px from the tiles and from the numbers under it; on a wide screen at the right */
.perrow{display:grid;grid-template-columns:40px minmax(0,1fr) 40px auto;gap:0 8px;align-items:center;margin-block:-6px}
.perrow+.dtop{margin-top:6px}   /* the tiles at the very place they take under the SMM module's period row (12 px under it) */
.pr-b{width:40px;height:40px;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);font-size:18px;line-height:1;padding:0}
.pr-b:hover{background:var(--surface-3)}
.pr-l{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center;border:0;background:none;color:inherit;font:inherit;padding:0;cursor:pointer;border-radius:12px}
.pr-l:hover b{color:var(--accent)}   /* the name opens the period sheet */
.pr-l b{font-size:17px;font-weight:600;line-height:1.2;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pr-l small{font-size:11.5px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pr-t{height:40px;border:0;border-radius:999px;padding:0 16px;background:var(--paper);color:var(--paper-ink);font-size:14px;font-weight:600}
.pr-t:hover{background:#fff}
@media (min-width:761px){.perrow{grid-template-columns:40px minmax(150px,auto) 40px auto;justify-content:end}}
/* the period sheet — the SMM module's (smm/src/css/plan.css .pk): ‹ period ›, «Начало» / «Конец», a month of days, «Готово» */
.pk{display:flex;flex-direction:column;gap:14px}
.pk-top{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}
.pk-title{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;min-width:0}
.pk-title small{font-size:12px;color:var(--muted)}
.pk-title b{font-size:22px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.pk-title span{font-size:12.5px;color:var(--muted)}
.pk-ic{width:44px;height:44px;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.pk-ic:hover{background:var(--surface-3)}
.pk-ic.sm{width:34px;height:34px;background:transparent;color:var(--accent)}
.pk-ic.txt{width:auto;padding:0 14px 0 12px;gap:6px;border-radius:999px;font:inherit;font-size:14px;font-weight:600}
.pk-segs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--surface-2);border-radius:14px;padding:4px}
.pk-seg{display:flex;flex-direction:column;align-items:center;gap:1px;border:0;border-radius:11px;background:transparent;color:var(--ink);padding:7px 6px;font:inherit;cursor:pointer}
.pk-seg small{font-size:11.5px;color:var(--muted)}
.pk-seg b{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.pk-seg.on{background:var(--surface-3);box-shadow:0 2px 8px rgba(0,0,0,.35)}
.pk-seg.on small{color:var(--accent)}
.pk-cal{display:flex;flex-direction:column;gap:6px}
.pk-mh{display:flex;justify-content:space-between;align-items:center;padding:0 2px}
.pk-mh b{font-size:17px;font-weight:600}
.pk-mh span{display:flex;gap:2px}
.pk-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));row-gap:4px}
.pk-w{font-size:12px;font-weight:600;color:var(--muted);text-align:center;padding-bottom:4px;text-transform:uppercase}
.pk-d{position:relative;height:44px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:17px;padding:0;cursor:pointer;font-variant-numeric:tabular-nums}
.pk-d:disabled{cursor:default;color:var(--ink)}
.pk-d span{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%}
.pk-d.today span{color:var(--accent);font-weight:600}
.pk-d.in::before{content:"";position:absolute;inset:2px 0;background:rgba(229,85,44,.22)}
.pk-d.in.l::before{border-top-left-radius:20px;border-bottom-left-radius:20px;left:2px}
.pk-d.in.r::before{border-top-right-radius:20px;border-bottom-right-radius:20px;right:2px}
.pk-d.s::before{left:50%;border-radius:0}.pk-d.e::before{right:50%;border-radius:0}
.pk-d.s.e::before{display:none}
.pk-d.s.r::before,.pk-d.e.l::before{display:none}
.pk-d.s span,.pk-d.e span{background:var(--accent);color:#fff;font-weight:600}
.pk-d:not(:disabled):not(.s):not(.e):hover span{background:var(--surface-2)}
.pk-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pk-done{padding:12px 22px;font-size:15px}

/* the SMM module: a frame from the top bar to the bottom of the screen; the page itself does not scroll then.
   The frame draws the same tiles at the top of its page (main.js sends them), so they scroll away with the content.
   It is see-through until the module paints, so Эпка's own tiles underneath show while it loads. */
.smm{position:fixed;left:0;right:0;bottom:0;z-index:10}
.smm iframe{display:block;width:100%;height:100%;border:0;background:transparent}
.smm-slot{height:1px;margin-top:-6px}   /* 12 px from the tiles to the module, like the module's own rhythm */
body.smm-on{overflow:hidden}
/* the two tiles on top of «Финансы» and «О проекте» — the same as on top of the SMM module's sections (smm/src/css/v7.css) */
.dtop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:900px){.dtop{grid-template-columns:minmax(0,1fr)}}
.dayhero{background:var(--paper);color:var(--paper-ink);border-radius:30px;padding:18px 20px 20px;display:flex;flex-direction:column;gap:12px}
.dh-top{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px}
.dh-tags{display:flex;gap:6px;flex-wrap:nowrap;overflow:hidden;min-width:0}
.dh-tag{font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;background:rgba(0,0,0,.07);white-space:nowrap}
.dh-tag.dark{background:var(--paper-ink);color:var(--paper)}
.daynav{display:flex;gap:6px}
.rbtn{width:42px;height:42px;border-radius:50%;border:0;background:var(--paper-ink);color:var(--paper);font-size:18px;display:flex;align-items:center;justify-content:center}
.rbtn.txt{width:auto;padding:0 14px;font-size:13px;font-weight:600;border-radius:999px}
.dh-mid{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.dayhero h2{font-size:clamp(34px,6vw,44px);font-weight:500;letter-spacing:-.04em;line-height:1.05;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dh-main{min-width:0}
.dh-sub{font-size:14px;color:#5E5E64;margin-top:4px}
.dh-count{font-size:15px;white-space:nowrap}
.dh-count b{font-size:28px;font-weight:500;letter-spacing:-.03em;font-feature-settings:"tnum" 1}
.dh-prog{display:flex;justify-content:space-between;font-size:14px;color:#5E5E64}
.dh-prog b{color:var(--paper-ink);font-weight:600}
.hbar{height:46px;border-radius:999px;overflow:hidden;background:repeating-linear-gradient(135deg,rgba(0,0,0,.14) 0 2px,transparent 2px 7px),#E4E3DE}
.hbar i{display:block;height:100%;background:var(--paper-ink);border-radius:999px;min-width:0;transition:width .3s}
.wkchart{background:var(--accent);color:#fff;border-radius:30px;padding:18px 18px 14px;display:flex;flex-direction:column;gap:8px}
.wk-h{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}
.wk-h h3{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-range{flex:none}
.wk-h h3{font-size:20px;font-weight:500;letter-spacing:-.02em;margin:0}
.wk-range{font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;border:1.5px solid rgba(255,255,255,.55)}
.wkbars{display:grid;grid-template-columns:repeat(var(--n,7),minmax(0,58px));grid-template-rows:1fr;justify-content:space-around;gap:7px;flex:1 0 auto;min-height:190px;align-items:end;padding-top:30px}   /* no legend under it (12.10.2026): the bars take its place */
.wkb{position:relative;height:100%;border:0;background:transparent;padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:6px;color:#fff;cursor:pointer}
.wkfill{display:flex;flex-direction:column;justify-content:flex-end;border-radius:999px;overflow:hidden;background:repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 2px,rgba(255,255,255,.18) 2px 7px);min-height:8px}
.wkfill em{display:block;background:rgba(255,255,255,.95);border-radius:999px}
.wkb.on .wkfill{background:#131315}
.wkb.on .wkfill em{background:#3A3A40}
.wkb.out{opacity:.35}
.wkl{font-size:12.5px;text-align:center;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.wk-empty{grid-column:1/-1;align-self:center;text-align:center;font-size:14px;opacity:.8}
.wkb.on .wkl{font-weight:700;opacity:1}
.wkv{position:absolute;left:50%;transform:translateX(-50%);top:-28px;white-space:nowrap;background:#131315;color:#fff;font-size:11.5px;font-weight:600;padding:4px 8px;border-radius:999px;z-index:1}
.wk-leg{display:flex;gap:12px;font-size:11.5px;opacity:.85}
/* tiles waiting for their data (tilesWait): the boxes as they will be, soft bars in place of the words */
.dtop.wait .dh-tag,.dtop.wait h2,.dtop.wait .dh-sub,.dtop.wait .dh-count b,.dtop.wait .dh-prog span{color:transparent;background:rgba(0,0,0,.07);border-radius:10px}
.dtop.wait .dh-tag{width:84px;border-radius:999px}.dtop.wait .dh-main{flex:1}.dtop.wait h2{width:58%}.dtop.wait .dh-sub{width:32%}
.dtop.wait .dh-count b{display:inline-block;width:56px}.dtop.wait .dh-prog span{width:46%}
.dtop.wait .wk-h h3,.dtop.wait .wk-leg span{color:transparent;background:rgba(255,255,255,.18);border-radius:10px}
.dtop.wait .wk-h h3{width:44%}.dtop.wait .wk-range{color:transparent;width:96px}.dtop.wait .wk-leg span{width:150px}
.wk-leg span{display:inline-flex;align-items:center;gap:5px}
.wk-leg i{width:10px;height:10px;border-radius:3px;display:inline-block}
.wk-leg i.h{background:repeating-linear-gradient(135deg,rgba(255,255,255,.8) 0 2px,rgba(255,255,255,.25) 2px 5px)}
.wk-leg i.s{background:#fff}
.wk-leg i.d{background:#131315}
.dayhero.go{cursor:pointer}.dayhero.go:hover{background:#fff}

.psw{display:none}
/* «Назад» in a project: round, an arrow, no text; on the phone level with the section switch, on its left */
.pback{position:fixed;left:24px;bottom:24px;z-index:60;width:46px;height:46px;padding:0;border-radius:50%;border:1px solid var(--surface-3);background:var(--surface-2);color:var(--ink);
  display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,.55);cursor:pointer}
.pback:active{transform:scale(.94)}
body.smm-overlay .pback{display:none!important}
/* «Разделы»: the list behind the section switch — a group, then its sections in two columns with the counts;
   the open one in the accent colour on a light plate (решение 10.10.2026, вариант B: all sections on one screen) */
.sheet:has(.seclist){gap:6px}
.sheet:has(.seclist) h2{font-size:20px}
.seclist{display:flex;flex-direction:column}
.sec-g{font-size:12px;font-weight:600;color:var(--muted);padding:12px 0 4px}
.sec-g:first-child{padding-top:4px}
.sec-c{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px}
.sec-r{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:44px;width:100%;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-size:15px;font-weight:500;text-align:left;padding:0 10px;cursor:pointer}
.sec-r .sec-i{display:flex;color:var(--muted)}
.sec-r .sec-i svg{width:18px;height:18px}
.sec-r .sec-l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sec-r .sec-n{font-size:12.5px;color:var(--muted)}
.sec-r:active{background:var(--surface-2)}
.sec-r[aria-current="page"]{background:var(--surface-2);color:var(--accent);font-weight:600}
.sec-r[aria-current="page"] .sec-i{color:var(--accent)}
/* once the module has painted, the frame is opaque and Эпка's row underneath is hidden: pulling the module's page down
   on the iPhone shows no second row of tiles, and Safari's bar at the bottom takes the dark colour, not white */
body.smm-ready .smm{background:var(--bg)}
body.smm-ready .smm-under{visibility:hidden}
body.smm-overlay .botnav{display:none!important}

/* ---------- the task panel (решение 11.10.2026, как в Asana, в нашем стиле): a side panel that slides in from the right;
   the whole screen on a phone. main.js animates it in and out, a swipe to the right closes it ---------- */
.tpw{justify-content:flex-end;z-index:70}
.tpanel{width:min(620px,100%);height:100%;background:var(--surface);display:flex;flex-direction:column;border-radius:28px 0 0 28px;box-shadow:-28px 0 70px rgba(0,0,0,.4);overflow:hidden;will-change:transform}
.tp-bar{display:flex;align-items:center;gap:8px;padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top,0px));border-bottom:1px solid var(--line)}
.tp-done{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:999px;padding:5px 16px 5px 5px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.tp-done .cbtn{pointer-events:none}
.tp-done.on{background:var(--ok-soft);border-color:transparent;color:#5BD58A}
span.tp-done{cursor:default}
.tp-ib{width:40px;height:40px;flex:none;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);display:inline-grid;place-items:center;cursor:pointer}
.tp-ib:hover{background:var(--surface-3)}.tp-ib svg{width:18px;height:18px}
.tp-body{flex:1;overflow:auto;overscroll-behavior:contain;padding:20px 24px 28px;display:flex;flex-direction:column;gap:22px}
.tp-body>*{flex-shrink:0}   /* a long task scrolls; otherwise the column squeezes its fields (the title's textarea to nothing) */
.tp-parent{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;border:0;background:var(--surface-2);color:var(--muted);border-radius:999px;padding:6px 12px 6px 8px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;max-width:100%}
.tp-parent span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-parent svg{width:16px;height:16px;flex:none}
.tp-title{font:inherit;font-size:clamp(22px,4vw,28px);font-weight:600;letter-spacing:-.02em;line-height:1.2;color:var(--ink);background:transparent;border:0;resize:none;padding:6px 8px;margin:-6px -8px;border-radius:12px;width:calc(100% + 16px);overflow:hidden}
textarea.tp-title:hover,.tp-notes:hover{background:var(--surface-2)}
.tp-title:focus,.tp-notes:focus,.tp-in:focus,.tp-compose textarea:focus{outline:none;background:var(--surface-2);box-shadow:inset 0 0 0 1.5px var(--surface-3)}
.tp-fields{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 14px;align-items:center;font-size:14.5px}
.tp-fields>.k{color:var(--muted)}
.tp-fields>.k-top{align-self:start;padding-top:8px}.tp-fields>.k-tm{align-self:end;padding-bottom:8px}
.tp-fields>.v{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tp-val{display:inline-flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--ink);border-radius:999px;padding:4px 12px 4px 4px;font:inherit;cursor:pointer}
.tp-val:hover{background:var(--surface-2)}.tp-val.still{cursor:default}.tp-val.still:hover{background:none}
.tp-none{color:var(--muted);padding-left:8px}
.tp-none:has(svg){display:inline-flex;align-items:center;gap:8px}   /* «Запланировать съёмку» with its camera */
.tp-pick{flex-basis:100%;margin-top:4px}
.tp-due{display:inline-flex;align-items:center;gap:8px}
.tp-date{font:inherit;font-size:14.5px;color:var(--ink);background:var(--surface-2);border:0;border-radius:999px;padding:7px 12px;color-scheme:dark}
.tp-date.late{color:var(--risk)}.tp-date.today{color:var(--warn)}
.tp-x{width:30px;height:30px;flex:none;border-radius:50%;border:0;background:transparent;color:var(--muted);display:inline-grid;place-items:center;cursor:pointer}
.tp-x:hover{background:var(--surface-2);color:var(--ink)}.tp-x svg{width:14px;height:14px}
.tp-proj{display:inline-flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-weight:600}
.tp-proj .dot{width:10px;height:10px}
.tp-in{font:inherit;font-size:14.5px;color:var(--ink);background:transparent;border:0;border-radius:12px;padding:7px 10px;width:100%;min-width:0}
.tp-in:hover{background:var(--surface-2)}
.tp-sec{display:flex;flex-direction:column;gap:8px}
.tp-h{font-size:16px;font-weight:600;letter-spacing:-.01em;display:flex;align-items:baseline;gap:8px}
.tp-notes{font:inherit;font-size:15px;line-height:1.55;color:var(--ink);background:transparent;border:0;resize:none;border-radius:12px;padding:8px 10px;margin:0 -10px;width:calc(100% + 20px);min-height:72px;overflow:hidden}
.tp-txt{white-space:pre-wrap;font-size:15px;line-height:1.55}
.tp-sub{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.tp-sub:first-of-type{border-top:0}
.tp-subt{border:0;background:none;color:var(--ink);text-align:left;font:inherit;font-size:15px;padding:4px 0;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-subt:hover{text-decoration:underline;text-underline-offset:3px}
.tp-sub.done .tp-subt{color:var(--muted);text-decoration:line-through}
.tp-add{border:1px dashed var(--line);margin-top:2px}
.tp-link{display:flex;align-items:center;gap:8px}
.tp-link a{flex:1;min-width:0;display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;background:var(--surface-2);border-radius:16px;padding:10px 14px}
.tp-link a:hover{background:var(--surface-3)}
.tp-link .pst{display:flex;flex-direction:column;min-width:0}.tp-link b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-link small{color:var(--muted);font-size:12.5px}
.tp-li{width:34px;height:34px;flex:none;border-radius:50%;background:var(--surface);display:inline-grid;place-items:center;color:var(--muted)}.tp-li svg{width:16px;height:16px}
.tp-addl{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:8px;align-items:center}
.tp-addl .tp-in{background:var(--surface-2)}
.tp-kind{align-self:flex-start}
.tp-kind button{display:inline-flex;align-items:center;gap:7px;font-size:14px;padding:8px 14px}.tp-kind svg{width:16px;height:16px}
.tp-stack{display:inline-flex;align-items:center}
.tp-stack .av{box-shadow:0 0 0 2px var(--surface);margin-left:-8px}.tp-stack .av:first-child{margin-left:0}
.tp-stack .av.more{background:var(--accent);color:#fff;font-size:11.5px}
.tp-names{color:var(--muted);font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.tp-times{display:grid;grid-template-columns:repeat(3,minmax(0,112px));gap:8px;width:100%}
.tp-tm{display:flex;flex-direction:column;gap:3px}.tp-tm small{color:var(--muted);font-size:12px;padding-left:12px}
.tp-tm .tp-date{width:100%;min-width:0}
.tp-place{display:flex;flex-direction:column;gap:2px;width:100%}
.tp-place .tp-in{padding:6px 10px;margin-left:-10px;width:calc(100% + 10px)}
.tp-place textarea.tp-in{resize:none;line-height:1.4;font-size:14px;color:var(--ink)}
.tp-place.still{gap:3px}.tp-place.still small{color:var(--muted);white-space:pre-wrap}
.tp-map{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;color:var(--accent);text-decoration:none;font-weight:600;font-size:13.5px;padding:4px 0}
.tp-map svg{width:16px;height:16px}.tp-map:hover{text-decoration:underline;text-underline-offset:3px}
[data-tpics]{display:inline-flex;align-items:center;gap:7px}[data-tpics] svg{width:16px;height:16px}
.tp-ties{display:flex;flex-direction:column;gap:6px}
.tp-tie{display:flex;align-items:center;gap:12px;background:var(--surface-2);border-radius:16px;padding:8px 8px 8px 12px}
.tp-tie .pst{flex:1;display:flex;flex-direction:column;min-width:0}.tp-tie b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-tie small{color:var(--muted);font-size:12.5px}
.tp-tiebtns{display:flex;gap:8px}.tp-tiebtns .btn[aria-expanded="true"]{background:var(--surface-3);box-shadow:inset 0 0 0 1.5px var(--accent)}
.tp-pick.long{max-height:340px;overflow:auto}
.tm-i.shoot{color:#B79BF2}.tm-i.shoot svg{width:14px;height:14px}
/* the kind of a module's row in «Мои задачи» (решение 12.10.2026, вариант A): its icon under the title, in the colour of its dots in the calendar */
.tm-i.kreel{color:var(--ink)}.tm-i.kstory{color:var(--accent)}.tm-i.kreel svg,.tm-i.kstory svg{width:14px;height:14px;flex:none}
/* one editor for everything: a reel, a story, an event, an idea of the SMM module in the task panel */
.smm-bg{position:fixed;left:-10000px;top:0;width:390px;height:700px;visibility:hidden;pointer-events:none}
.smm-bg iframe{width:100%;height:100%;border:0}
.tp-kindtag{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;background:var(--surface-2);color:var(--muted);border-radius:999px;padding:5px 12px 5px 9px;font-size:13px;font-weight:600;margin-bottom:-10px}
.tp-kindtag svg{width:15px;height:15px}
.tp-def{color:var(--muted);font-size:12.5px;margin-left:4px}.tp-def.rep{color:var(--warn)}
.tp-chips{flex-wrap:wrap}.tp-chips button{font-size:13px;padding:7px 12px}
.tp-sel{font:inherit;font-size:14.5px;color:var(--ink);background:var(--surface-2);border:0;border-radius:12px;padding:8px 12px;max-width:100%;color-scheme:dark}
.tp-hint{margin-top:-12px}
.tp-subt.still{cursor:default;white-space:normal;display:flex;flex-direction:column;gap:2px}.tp-subt.still:hover{text-decoration:none}
.tp-subt.still small{color:var(--muted);font-size:12.5px}
.tp-sub.done .tp-subt.still b{color:var(--muted);text-decoration:line-through}
.tp-subt.st{white-space:normal;display:flex;flex-direction:column;gap:2px}.tp-subt.st small{color:var(--muted);font-size:12.5px}
.tp-sub.done .tp-subt.st{text-decoration:none}.tp-sub.done .tp-subt.st b{color:var(--muted);text-decoration:line-through}
.tp-feed{display:flex;flex-direction:column;gap:14px}
.tp-ev{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--muted)}.tp-ev b{color:var(--ink);font-weight:600}
.cbtn.sm{width:24px;height:24px}.cbtn.sm svg{width:11px;height:11px}
.tp-cm{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px}
.tp-cmh{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.tp-cmh b{font-weight:600}.tp-cmh small{color:var(--muted);font-size:12.5px}.tp-cmh .linkbtn{margin-left:auto;font-size:12.5px}
.tp-cmb{white-space:pre-wrap;font-size:15px;line-height:1.5;margin-top:2px;overflow-wrap:anywhere}
.tp-compose{display:flex;gap:8px;align-items:flex-end;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}
.tp-compose textarea{flex:1;font:inherit;font-size:15px;line-height:1.4;color:var(--ink);background:var(--surface-2);border:0;border-radius:20px;padding:10px 14px;resize:none;max-height:40vh;overflow:auto}
.tp-send{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--accent);color:#fff;display:inline-grid;place-items:center;cursor:pointer}
.tp-send svg{width:18px;height:18px}

/* phone */
@media (max-width:760px){
  .tpanel{border-radius:0;width:100%;box-shadow:none}
  .tp-body{padding:16px 16px 24px}
  .tp-fields{grid-template-columns:96px minmax(0,1fr)}
  .tp-times{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .tp-tm .tp-date{padding:7px 8px;text-align:center}.tp-tm small{padding-left:8px}
  .tp-tm .tp-date::-webkit-calendar-picker-indicator{display:none}
  .tp-fields>.k-wide{grid-column:1/-1;margin-bottom:-4px}.tp-fields>.v-wide{grid-column:1/-1}   /* a reel's five stages: the whole width under their name */
  .tp-chips button{padding:7px 10px}
  .v-wide .tp-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%}.v-wide .tp-chips button{padding:8px 0}   /* three times in a row on a phone: the clock buttons take no room */
  .tp-addl{grid-template-columns:1fr auto}.tp-addl #tp-urlt{grid-row:2;grid-column:1/-1}
  .top{padding:12px 16px;gap:10px}
  .nav{display:none}
  .co{flex-shrink:0}   /* the company name stays whole (up to 120 px), a long project name takes the «…» */
  .co b{max-width:120px}
  .pbtn .lbl{max-width:120px}
  .top .grow{display:none} .mebtn{margin-left:auto}   /* 10 px to the avatar, not two gaps around the spacer */
  .screen{padding:18px 16px 110px}   /* 16 px: the SMM module's margins, so its content lines up with the tiles */
  .fg{grid-template-columns:1fr}
  /* above the projects drawer (z 50), below sheets with forms (z 70) */
  /* the bar hugs its buttons: 7 px between them and the same to the edges, centred */
  .botnav{display:flex;position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + env(safe-area-inset-bottom,0px));background:#000;border-radius:999px;padding:7px;gap:7px;z-index:60}
  .drawer{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
  .sheetw{z-index:70}
  .kpi b{font-size:22px}
  /* a half-width tile: the arrow moves down by the label, so a long sum («1 820 000 ₽») keeps the whole width */
  .kpi.go b{padding-right:0}.kpi.go span{padding-right:22px}.kpi .arr{top:auto;bottom:14px}
  .hb-r{grid-template-columns:90px minmax(0,1fr) 34px}
  .hs-r{grid-template-columns:minmax(70px,104px) minmax(0,1fr) 50px;gap:10px}
  /* phone: delete lives in the item's sheet, «Оплачен» is just the tick */
  .lr-x{display:none}
  .lr-act{min-width:0}
  .ltot{margin-left:0;width:100%}
  .botnav a,.botnav button{width:50px;height:50px;border-radius:50%;border:0;background:var(--surface);color:var(--muted);display:flex;align-items:center;justify-content:center;text-decoration:none;transition:background-color .2s,color .2s,transform .12s}
  .botnav a:active,.botnav button:active{transform:scale(.92)}
  .botnav [aria-current="page"]{background:var(--accent);color:#fff}
  /* two-tone on the active button: the icon's body fills softly under its outline */
  .botnav svg .ifl{fill:currentColor;fill-opacity:0;transition:fill-opacity .2s}
  .botnav [aria-current="page"] svg .ifl{fill-opacity:.3}
  .drawer{width:100%;border-radius:0}
  .h-row h2{font-size:26px}
  .toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  /* in a project the section switch floats over the bottom bar (as in Asana): the page and the toast leave room for it */
  /* max-width leaves room on the left for the module's round «Назад» (16 + 46 + 10 px on each side) */
  .psw{display:flex;align-items:center;gap:9px;position:fixed;left:50%;transform:translateX(-50%);bottom:calc(90px + env(safe-area-inset-bottom,0px));z-index:60;
    height:46px;max-width:calc(100% - 144px);padding:0 14px 0 13px;border-radius:999px;border:1px solid var(--surface-3);background:var(--surface-2);color:var(--ink);
    font:inherit;font-size:15px;font-weight:600;white-space:nowrap;box-shadow:0 10px 30px rgba(0,0,0,.55);cursor:pointer}
  .psw:active{transform:translateX(-50%) scale(.96)}
  .psw .psw-i{display:flex}.psw .psw-l{overflow:hidden;text-overflow:ellipsis}.psw .ud{flex:none;color:var(--muted)}
  body.smm-overlay .psw{display:none!important}
  .pback{left:16px;bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  body.in-proj .screen{padding-bottom:170px}
  body.in-proj .toast{bottom:calc(148px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* «Мои задачи»: quick actions by a swipe (решение 11.10.2026), as in the content plan: right — done, left — «Изм.» / «Удалить» */
.swr{position:relative;isolation:isolate;touch-action:pan-y;border-top:1px solid var(--line)}
.swr:first-child{border-top:0}
.swr>.lrow{border-top:0;position:relative;z-index:1;background:var(--surface)}
.swr>.swr-r,.swr>.swr-l{position:absolute;inset:0;display:none;z-index:0;overflow:hidden;border-radius:14px}
@media (hover:none) and (pointer:coarse), (max-width:760px){ .swr.r>.swr-r{display:flex} .swr.l>.swr-l{display:flex} }
.swr-r{background:var(--ok);color:#fff;align-items:center;justify-content:flex-start;padding-left:20px;transition:background .15s}
.swr-r svg{transform:scale(var(--p,.6));transition:transform .12s}
.swr.armed .swr-r{background:#26B062}.swr.armed .swr-r svg{transform:scale(1.25)}
.swr-r.undo{background:#55555D}.swr.armed .swr-r.undo{background:#6B6B74}
.swr-l{justify-content:flex-end;align-items:stretch;gap:4px;padding:4px 0}
.swr-btn{width:72px;border:0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#fff;background:#505058;padding:0;font:inherit;font-size:12px;font-weight:600}
.swr-btn.del{background:#D93A3A}
.swr-btn:active{filter:brightness(1.2)}
.toast{display:flex;align-items:center;gap:10px}
.toast-ok{width:24px;height:24px;flex:none;border-radius:50%;background:var(--ok);color:#fff;display:inline-grid;place-items:center}.toast-ok svg{width:13px;height:13px}
.toast-undo{display:inline-flex;align-items:center;gap:6px;margin-left:6px;border:0;background:var(--paper-ink);color:var(--paper);border-radius:999px;padding:6px 12px 6px 10px;font:inherit;font-weight:600;font-size:13px;cursor:pointer}
.toast-undo svg{width:15px;height:15px}
/* a ticked row (решение 12.10.2026): it flashes green, its title is struck through, then it goes (main.js tickOut) */
.lrow.task.ticking,.swr>.lrow.task.ticking{background:var(--ok-soft);box-shadow:-8px 0 0 var(--ok-soft),8px 0 0 var(--ok-soft);border-radius:14px;transition:background-color .2s}
.lrow.ticking .tt{text-decoration:line-through;text-decoration-color:var(--ok);color:var(--muted);transition:color .2s}
.lrow.ticking .cbtn{animation:tickpop .32s cubic-bezier(.3,1.6,.5,1)}
@keyframes tickpop{0%{transform:scale(.8)}60%{transform:scale(1.18)}100%{transform:scale(1)}}

/* iPhone zooms the page into any field with text under 16px (правило владельца: «никогда и никогда не было зуммирования»):
   on a touch screen or a narrow one every field gets 16px; the task's title stays big */
@media (pointer:coarse), (max-width:760px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),textarea,select{font-size:16px!important}
  textarea.tp-title{font-size:clamp(22px,4vw,28px)!important}
}
