/* Layout: one narrow column like a phone app — group bar, big date + ring, week strip, people tabs, timeline, quick-add dock pinned to the bottom. */
:root{
  --bg:#EDEFF3; --surface:#FFFFFF; --surface-2:#F5F6F9; --ink:#131722; --muted:#5E6678; --line:#DDE1E9;
  --accent:#2B50E0; --accent-ink:#FFFFFF; --accent-soft:#E4EAFD; --now:#E99A06; --ok:#16935F; --warn:#D2470E;
  --common:#7A3FD9; --common-soft:#EFE6FD;
  --c-study:#3461F0; --c-proj:#8A4FE8; --c-lang:#D93D72; --c-sport:#0F9C78; --c-home:#C07F0A; --c-rest:#0C98BA; --c-other:#7A8294;
  --shadow:0 1px 2px rgba(20,28,48,.06),0 8px 24px rgba(20,28,48,.07);
  --f-display:"Unbounded","Onest",system-ui,sans-serif;
  --f-body:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --r:14px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0D1015; --surface:#161A22; --surface-2:#1C212B; --ink:#E9ECF3; --muted:#8C94A7; --line:#272D39;
  --accent:#6E8CFF; --accent-ink:#0B0F1A; --accent-soft:#1E2747; --now:#FFC04A; --ok:#3ACB8A; --warn:#FF7A45;
  --common:#B48CFF; --common-soft:#2A2142;
  --c-study:#7194FF; --c-proj:#B08BFF; --c-lang:#FF6E9C; --c-sport:#3CD3A8; --c-home:#F0B03C; --c-rest:#4CC9E8; --c-other:#9AA2B4;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25); color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0D1015; --surface:#161A22; --surface-2:#1C212B; --ink:#E9ECF3; --muted:#8C94A7; --line:#272D39;
  --accent:#6E8CFF; --accent-ink:#0B0F1A; --accent-soft:#1E2747; --now:#FFC04A; --ok:#3ACB8A; --warn:#FF7A45;
  --common:#B48CFF; --common-soft:#2A2142;
  --c-study:#7194FF; --c-proj:#B08BFF; --c-lang:#FF6E9C; --c-sport:#3CD3A8; --c-home:#F0B03C; --c-rest:#4CC9E8; --c-other:#9AA2B4;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25); color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45;padding-inline:16px;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.app{max-width:720px;margin:0 auto;padding-block:16px 210px;display:flex;flex-direction:column;gap:16px}

/* group bar */
.gbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gname{flex:1 1 160px;min-width:0;border:0;background:transparent;font-family:var(--f-display);font-weight:500;font-size:16px;letter-spacing:-.01em;padding:4px 0;outline:none;text-overflow:ellipsis}
.gname::placeholder{color:var(--muted)}
.gname:disabled{color:var(--ink)}
.avs{display:flex;align-items:center}
.avs .av{width:28px;height:28px;margin-left:-8px;border:2px solid var(--bg)}
.avs .av:first-child{margin-left:0}
.avs .more{margin-left:4px;font-size:12px;color:var(--muted);font-family:var(--f-mono)}
.av{width:20px;height:20px;border-radius:50%;object-fit:cover;flex:none;background:var(--line);display:inline-block;vertical-align:middle}
.btn-ghost{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:500}
.btn-ghost:hover{border-color:var(--muted)}

.banner{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;padding:12px 14px;border-radius:var(--r);background:var(--accent-soft);font-size:14px}
.banner.warn{background:color-mix(in srgb,var(--warn) 14%,transparent)}
.banner p{margin:0;max-width:56ch}

/* header */
.top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.date{display:flex;align-items:center;gap:14px;min-width:0}
.date-num{font-family:var(--f-display);font-weight:700;font-size:clamp(52px,14vw,72px);line-height:.9;letter-spacing:-.04em}
.date-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.date-month{font-family:var(--f-display);font-weight:500;font-size:18px;letter-spacing:-.01em}
.date-wd{color:var(--muted);font-size:14px;text-transform:capitalize}
.date-rel{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.ring{position:relative;width:76px;height:76px;flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .trk{fill:none;stroke:var(--line);stroke-width:7}
.ring .bar{fill:none;stroke:var(--accent);stroke-width:7;stroke-linecap:round;transition:stroke-dashoffset .5s cubic-bezier(.2,.8,.2,1)}
.ring.full .bar{stroke:var(--ok)}
.ring-lbl{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--f-mono);font-weight:600;font-size:15px;font-variant-numeric:tabular-nums}
.ring-lbl small{font-family:var(--f-body);font-weight:500;font-size:10px;color:var(--muted)}

/* week */
.week{display:flex;align-items:center;gap:6px}
.wk-nav{flex:none;width:32px;height:52px;border:0;background:transparent;border-radius:10px;color:var(--muted);display:grid;place-items:center}
.wk-nav:hover{background:var(--surface);color:var(--ink)}
.days{flex:1;display:grid;grid-template-columns:repeat(7,1fr);gap:4px;min-width:0}
.day{border:0;background:transparent;border-radius:12px;padding:7px 0 8px;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink)}
.day:hover{background:var(--surface)}
.day .wd{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.day .n{font-family:var(--f-mono);font-weight:600;font-size:16px;font-variant-numeric:tabular-nums}
.day .pb{width:22px;height:3px;border-radius:3px;background:var(--line);overflow:hidden}
.day .pb i{display:block;height:100%;background:var(--accent)}
.day.is-today .n{color:var(--accent)}
.day.is-sel{background:var(--ink);color:var(--bg)}
.day.is-sel .wd,.day.is-sel .n{color:inherit}
.day.is-sel .wd{opacity:.7}
.day.is-sel .pb{background:color-mix(in srgb,var(--bg) 30%,transparent)}
.day.is-sel .pb i{background:var(--bg)}
.wk-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.wk-label{font-size:13px;color:var(--muted)}

/* people tabs */
.tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:500;color:var(--muted)}
.tab:hover{border-color:var(--muted)}
.tab.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.tab .cnt{font-family:var(--f-mono);font-size:11px;opacity:.75}
.tab.common-tab::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--common)}

/* panels */
.panel{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow)}
.focus{padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.lbl{font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.lbl small{text-transform:none;letter-spacing:0;font-weight:500}
.focus input{border:0;background:transparent;font-size:18px;font-weight:600;padding:2px 0;outline:none;width:100%}
.focus input::placeholder{color:var(--muted);font-weight:500;opacity:.7}
.stats{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.stats b{color:var(--ink);font-family:var(--f-mono);font-weight:600;font-variant-numeric:tabular-nums}
.carry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:var(--r);background:var(--accent-soft);font-size:14px;flex-wrap:wrap}
.btn{border:0;border-radius:10px;padding:8px 14px;font-weight:600;font-size:14px;background:var(--accent);color:var(--accent-ink)}
.btn:hover{filter:brightness(1.08)}
.btn.sec{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.btn.danger{background:transparent;color:var(--warn);border:1px solid color-mix(in srgb,var(--warn) 40%,transparent)}

/* timeline */
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-inline:4px;flex-wrap:wrap}
.sec-h h2{margin:0;font-family:var(--f-display);font-weight:500;font-size:15px;letter-spacing:-.01em}
.sec-r{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tl{list-style:none;margin:0;padding:6px;display:flex;flex-direction:column}
.task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:stretch;border-radius:10px;position:relative;overflow:hidden;touch-action:pan-y;background:color-mix(in srgb,var(--ok) calc(var(--sw,0) * 24%),transparent)}
.task > button{transform:translateX(var(--dx,0px))}
.task.settle > button{transition:transform .2s ease}
.task:hover{background:var(--surface-2)}
.task.is-common{box-shadow:inset 3px 0 0 var(--common)}
.task + .task::before,.now + .task::before{content:"";position:absolute;left:8px;right:8px;top:0;height:1px;background:var(--line)}
.task:hover::before,.task:hover + .task::before{opacity:0}
.tick{border:0;background:transparent;display:grid;grid-template-columns:52px 42px;align-items:start;padding:10px 0 10px 8px;text-align:left;border-radius:10px 0 0 10px}
.tick:hover .check{border-color:var(--ok)}
.t-time{font-family:var(--f-mono);font-weight:600;font-size:14px;padding-top:6px;font-variant-numeric:tabular-nums;display:flex;flex-direction:column;line-height:1.25}
.t-time small{font-weight:500;font-size:11px;color:var(--muted)}
.t-time.none{color:var(--muted);font-weight:500}
.check{width:30px;height:30px;border-radius:50%;border:2px solid color-mix(in srgb,var(--muted) 55%,transparent);background:transparent;display:grid;place-items:center;transition:background .15s,border-color .15s}
.check svg{width:16px;height:16px;opacity:0;stroke:#fff;transition:opacity .15s}
.is-done .check{background:var(--ok);border-color:var(--ok)}
.is-done .check svg{opacity:1}
.locked .check{border-style:dashed}
.just .check{animation:pop .32s cubic-bezier(.2,1.6,.4,1)}
@keyframes pop{0%{transform:scale(.6)}100%{transform:scale(1)}}
.t-body{border:0;background:transparent;text-align:left;padding:14px 10px 12px 0;display:flex;flex-direction:column;gap:5px;min-width:0}
.t-title{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.is-done .t-title{text-decoration:line-through;text-decoration-color:var(--muted);color:var(--muted)}
.imp{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:6px;border-radius:5px;background:var(--warn);color:#fff;font-size:12px;font-weight:700;vertical-align:1px}
.t-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:12.5px;color:var(--muted)}
.tag{display:inline-flex;align-items:center;gap:5px;font-weight:500}
.tag::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c)}
.kind{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;font-weight:600;font-size:11.5px;background:var(--common-soft);color:var(--common)}
.who{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--ink)}
.who .av{width:16px;height:16px}
.late{color:var(--warn);font-weight:600}
.note-ic{display:inline-flex;align-items:center;gap:4px}
.grip{border:0;background:transparent;width:42px;display:grid;place-items:center;color:var(--muted);cursor:grab;touch-action:none;opacity:.6;border-radius:0 10px 10px 0}
.grip:hover{opacity:1}
.grip svg{pointer-events:none}
.grip-sp{width:10px}
.task.dragging{background:var(--surface);box-shadow:0 12px 32px rgba(10,14,24,.22);z-index:3;outline:2px solid var(--accent);outline-offset:-2px}
.task.dragging::before,.task.dragging + .task::before{opacity:0}
.task.dragging .grip{opacity:1;color:var(--accent);cursor:grabbing}
body.is-dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}
.now{display:flex;align-items:center;gap:8px;padding:4px 8px;color:var(--now);font-family:var(--f-mono);font-size:12px;font-weight:600}
.now::after{content:"";flex:1;height:2px;border-radius:2px;background:var(--now)}
.now .dot{width:8px;height:8px;border-radius:50%;background:var(--now);box-shadow:0 0 0 4px color-mix(in srgb,var(--now) 25%,transparent)}
.divider{padding:12px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.hint{font-size:12px;color:var(--muted);padding:2px 12px 8px}
.empty{padding:26px 18px 22px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.empty h3{margin:0;font-family:var(--f-display);font-weight:500;font-size:17px}
.empty p{margin:0;color:var(--muted);font-size:14px;max-width:52ch}
.ex{display:flex;flex-direction:column;gap:6px;width:100%}
.ex button{border:1px dashed var(--line);background:var(--surface-2);border-radius:10px;padding:8px 12px;text-align:left;font-family:var(--f-mono);font-size:13px;overflow-wrap:anywhere}
.ex button:hover{border-color:var(--accent);border-style:solid}
.notes{padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.notes textarea{border:0;background:transparent;resize:vertical;min-height:84px;outline:none;width:100%;font-size:15px;line-height:1.5}
.notes textarea::placeholder{color:var(--muted);opacity:.7}
.onotes{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.onote{display:flex;flex-direction:column;gap:4px;min-width:0}
.onote .who{font-size:13px}
.onote p{margin:0;font-size:14.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}

/* dock */
.dock{position:fixed;left:0;right:0;bottom:0;padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,var(--bg) 70%,color-mix(in srgb,var(--bg) 0%,transparent));z-index:5}
.dock-in{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:6px}
.add{display:flex;gap:8px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:6px 6px 6px 14px;box-shadow:var(--shadow)}
.add:focus-within{border-color:var(--accent)}
.add input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:15px;padding:8px 0}
.add input::placeholder{color:var(--muted)}
.add .btn{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:12px;flex:none}
.preview{display:flex;gap:6px;flex-wrap:wrap;min-height:22px;padding-inline:6px;font-size:12px}
.chip{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--muted)}
.chip b{font-family:var(--f-mono);color:var(--ink);font-weight:600}
.status{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.status i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.status.busy i{background:var(--now)}
.status.err i{background:var(--warn)}
.tools{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;padding:2px}
.tools::-webkit-scrollbar{display:none}
.tbtn,.tab,.seg button,.stats span{white-space:nowrap}
.tbtn{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:500;color:var(--muted)}
.tbtn:hover{border-color:var(--muted)}
.tbtn.on{color:var(--ink);border-color:var(--accent);background:var(--accent-soft)}
.tbtn b{font-family:var(--f-mono);font-weight:600;color:var(--ink)}
.tbtn.tbtn-imp.on{border-color:var(--warn);background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--warn)}
.tbtn.cat::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c)}
.tbtn.cat.on{border-color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--ink)}
.tsep{width:1px;height:20px;background:var(--line);flex:none}
.seg{flex:none;display:inline-flex;padding:3px;border-radius:999px;background:var(--surface);border:1px solid var(--line)}
.seg button{border:0;background:transparent;border-radius:999px;height:28px;padding:0 12px;font-size:13px;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--ink);color:var(--bg)}
.seg button.on[data-k="common"]{background:var(--common);color:#fff}

/* sheets */
.overlay{position:fixed;inset:0;background:rgba(8,10,16,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
@media (min-width:640px){.overlay{align-items:center}}
.picker{z-index:25}
.sheet{width:100%;max-width:480px;background:var(--surface);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);max-height:calc(100% - 20px);overflow:auto}
.sheet h3{margin:0;font-family:var(--f-display);font-weight:500;font-size:16px}
.sheet ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.sheet p{margin:0;font-size:14px;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:6px}
.field input,.field textarea{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:9px 11px;outline:none;width:100%}
.field input:focus,.field textarea:focus{border-color:var(--accent)}
.cats{display:flex;flex-wrap:wrap;gap:6px}
.cats label{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid var(--line);font-size:13px;cursor:pointer}
.cats label::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c)}
.cats input{position:absolute;opacity:0;pointer-events:none}
.cats label:has(input:checked){border-color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--ink)}
.cats label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.toggle{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer}
.toggle input{width:18px;height:18px;accent-color:var(--warn)}
.sheet-act{display:flex;gap:8px;flex-wrap:wrap}
.sheet-act .grow{flex:1}
.time-row{display:flex;gap:8px;flex-wrap:wrap}
.time-btn{flex:1 1 180px;min-width:0;display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:10px 12px;text-align:left;color:var(--muted)}
.time-btn:hover{border-color:var(--accent)}
.time-btn b{font-family:var(--f-mono);font-weight:600;color:var(--ink);font-size:16px}
.pk-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pk-quick{display:flex;gap:6px;flex-wrap:wrap}
.pk-time{font-family:var(--f-display);font-weight:700;font-size:40px;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.pk-time small{font-family:var(--f-mono);font-size:14px;font-weight:500;color:var(--muted);letter-spacing:0;margin-left:10px}
.grid6{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.cell{position:relative;height:42px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);font-family:var(--f-mono);font-weight:600;font-size:15px;font-variant-numeric:tabular-nums;padding:0}
.cell:hover{border-color:var(--accent)}
.cell.night{color:var(--muted);font-weight:500}
.cell.busy::after{content:"";position:absolute;top:5px;right:5px;width:5px;height:5px;border-radius:50%;background:var(--now)}
.cell.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.durs{display:flex;flex-wrap:wrap;gap:6px}
.durs .cell{flex:1 0 auto;padding:0 12px;font-size:13px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(150px + env(safe-area-inset-bottom,0px));background:var(--ink);color:var(--bg);padding:10px 12px 10px 16px;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:14px;z-index:30;box-shadow:var(--shadow);max-width:calc(100% - 32px)}
.toast button{border:0;background:transparent;color:var(--bg);font-weight:700;text-decoration:underline;padding:4px}
@media (max-width:420px){.tick{grid-template-columns:46px 38px}.grip{width:36px}.wk-nav{width:24px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- сайт: вход и группы ---------- */
.screen{max-width:720px;margin:0 auto;padding-block:24px 48px;display:flex;flex-direction:column;gap:20px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--f-display);font-weight:700;font-size:18px;letter-spacing:-.02em}
.brand-mark{width:30px;height:30px;border-radius:9px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:15px}
.hero{display:flex;flex-direction:column;gap:14px;padding-block:28px 8px}
.hero h1{margin:0;font-family:var(--f-display);font-weight:700;font-size:clamp(30px,8vw,46px);line-height:1.05;letter-spacing:-.035em;text-wrap:balance;max-width:16ch}
.hero p{margin:0;color:var(--muted);font-size:16px;max-width:46ch}
.signin{display:flex;flex-direction:column;gap:12px;align-items:flex-start;min-height:48px}
.signin .err{color:var(--warn);font-size:14px}
.dev{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--muted)}
.dev input{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 10px;outline:none}
.feats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.feat{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.feat b{font-size:15px}
.feat span{color:var(--muted);font-size:14px}
.mock{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:6px}
.mock .task{pointer-events:none}
.topline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.me{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);min-width:0}
.me .av{width:28px;height:28px}
.glist{display:flex;flex-direction:column;gap:8px}
.gcard{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid transparent;border-radius:var(--r);box-shadow:var(--shadow);padding:14px 16px;text-align:left;width:100%}
.gcard:hover{border-color:var(--accent)}
.gcard b{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.gcard span{color:var(--muted);font-size:13px;white-space:nowrap}
.row{display:flex;gap:8px;flex-wrap:wrap}
.row input{flex:1 1 200px;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px 12px;outline:none}
.row input:focus{border-color:var(--accent)}
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:16px;display:flex;flex-direction:column;gap:10px}
.card h2{margin:0;font-family:var(--f-display);font-weight:500;font-size:15px}
.card p{margin:0;color:var(--muted);font-size:14px}
.gswitch{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:4px 0;font-family:var(--f-display);font-weight:500;font-size:16px;letter-spacing:-.01em;min-width:0;max-width:100%}
.gswitch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gswitch svg{flex:none;color:var(--muted)}
.gbar .spacer{flex:1}
.linkbox{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.linkbox input{flex:1 1 220px;min-width:0;border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:9px 11px;font-family:var(--f-mono);font-size:13px}
.mlist{display:flex;flex-direction:column;gap:6px}
.mrow{display:flex;align-items:center;gap:10px;font-size:14px}
.mrow .av{width:26px;height:26px}
.mrow b{font-weight:600;flex:1;min-width:0;overflow-wrap:anywhere}
.mrow small{color:var(--muted)}
.linkbtn{border:0;background:transparent;color:var(--warn);font-size:13px;font-weight:600;padding:4px}
.menu-list{display:flex;flex-direction:column;gap:8px}
.menu-list .btn{text-align:left}
.av-i{display:inline-grid;place-items:center;color:#fff;font-size:10px;font-weight:700;font-family:var(--f-body)}

/* ---------- дела из других групп (видны только владельцу) ---------- */
.task.foreign{background:repeating-linear-gradient(135deg,transparent 0 8px,color-mix(in srgb,var(--muted) 7%,transparent) 8px 16px)}
.task.foreign .t-title{color:var(--muted)}
.task.foreign .check{border-style:dashed}
.grp{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;border:1px dashed color-mix(in srgb,var(--muted) 60%,transparent);font-weight:600;font-size:11.5px;color:var(--ink)}
.only-me{font-size:11.5px;opacity:.8}

/* ---------- кнопка Google: без белого квадрата вокруг ---------- */
/* Окно Google — iframe в светлой теме. Если у страницы тёмная тема, браузер
   рисует под ним непрозрачный белый фон. Светлая схема на обёртке это убирает. */
.gbtn-wrap{color-scheme:light;background:transparent;min-height:44px;display:flex;align-items:center}
.gbtn-wrap iframe{color-scheme:light;background:transparent!important}

/* ---------- показ своих дел другим группам ---------- */
.share-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.share-task{color:var(--ink)!important;font-weight:600}
.share-list{display:flex;flex-direction:column;gap:6px}
.share-list label{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:14px}
.share-list label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.share-list input{width:18px;height:18px;accent-color:var(--accent)}
.btn.confirm{background:var(--warn);color:#fff}
.sched p{margin:0;font-size:14px;color:var(--muted)}
.sched .btn{align-self:flex-start}
.seen{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;font-weight:600;font-size:11.5px;background:var(--accent-soft);color:var(--accent)}

/* ---------- модерация ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.stat{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.stat b{font-family:var(--f-mono);font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.stat span{font-size:13px;color:var(--muted)}
.alist{display:flex;flex-direction:column}
.alist>p{margin:0;color:var(--muted);font-size:14px}
.arow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.arow:first-child{border-top:0}
.arow>.av{width:34px;height:34px}
.arow.is-banned{opacity:.6}
.ainfo{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px}
.ainfo b{font-size:15px;font-weight:600;display:flex;gap:6px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}
.ainfo span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.ainfo small{font-size:12px;color:var(--muted)}
.aacts{display:flex;gap:6px;flex-wrap:wrap}
.act.armed{border-color:var(--warn);color:var(--warn);font-weight:600}
.badge{font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px;letter-spacing:.02em}
.badge.adm{background:var(--ink);color:var(--bg)}
.badge.mod{background:var(--accent-soft);color:var(--accent)}
.badge.ban{background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--warn)}

/* ---------- страницы: как пользоваться, конфиденциальность ---------- */
.topnav{display:flex;gap:14px;flex-wrap:wrap}
.topnav a,.foot a,.trust .more,.doc a{color:var(--accent);text-decoration:none;font-weight:500;font-size:14px}
.topnav a:hover,.foot a:hover,.trust .more:hover,.doc a:hover{text-decoration:underline}
.trust{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.trust h2{margin:0;font-family:var(--f-display);font-weight:500;font-size:16px}
.trust ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.foot{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;padding-top:8px;border-top:1px solid var(--line)}
.doc{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:22px 22px 26px;max-width:100%}
.doc h1{margin:0 0 6px;font-family:var(--f-display);font-weight:700;font-size:clamp(24px,6vw,32px);letter-spacing:-.03em;text-wrap:balance}
.doc .lead{font-size:16px;color:var(--muted);max-width:60ch}
.doc h2{margin:26px 0 8px;font-family:var(--f-display);font-weight:500;font-size:17px;letter-spacing:-.01em}
.doc p,.doc li{font-size:15px;line-height:1.6;max-width:65ch}
.doc p{margin:0 0 10px}
.doc ul,.doc ol{margin:0 0 10px;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.doc code{font-family:var(--f-mono);font-size:13px;background:var(--surface-2);border:1px solid var(--line);padding:1px 6px;border-radius:6px}
.cheat{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:6px 0 12px}
.cheat div{background:var(--surface-2);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.cheat span{font-size:12px;color:var(--muted)}
.vis-table{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:6px 0 12px}
.vis-table div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;padding:10px 14px;border-top:1px solid var(--line);font-size:14px}
.vis-table div:first-child{border-top:0}
.vis-table span{color:var(--muted)}
@media (max-width:480px){.vis-table div{grid-template-columns:1fr;gap:2px}}
.doc details{border-top:1px solid var(--line);padding:10px 0}
.doc summary{cursor:pointer;font-weight:600;font-size:15px}
.doc details p{margin:8px 0 0}
.mydata{margin-top:10px;padding:16px;border-radius:12px;background:var(--surface-2)}
.mydata h2{margin-top:0}
.mydata .row{gap:8px}
.mydata .btn{text-decoration:none;display:inline-flex;align-items:center}
.updated{margin-top:18px!important;font-size:13px!important;color:var(--muted)}
.doc a.btn,.doc a.btn:hover{text-decoration:none;color:var(--ink)}

/* ---------- шкала дня ---------- */
.tline{padding:0;overflow:hidden}
.tl-head{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:12px 16px;text-align:left}
.tl-title{font-family:var(--f-display);font-weight:500;font-size:15px}
.tl-sum{font-size:13px;color:var(--muted);flex:1}
.tl-chev{color:var(--muted);transition:transform .2s}
.tline.closed .tl-chev{transform:rotate(-90deg)}
.tl-body{padding:0 12px 12px;display:flex;flex-direction:column;gap:8px}
.tl-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tl-note{font-size:12px;color:var(--muted)}
.tl-grid{display:flex;flex-direction:column}
.tl-row{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:stretch;border-top:1px solid var(--line)}
.tl-row.tl-axis{border-top:0}
.tl-row.me .tl-who span{font-weight:700}
.tl-who{display:flex;align-items:center;gap:6px;min-width:0;padding:4px 6px 4px 2px;font-size:12px}
.tl-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-who .av{width:20px;height:20px;flex:none}
.tl-dot{width:12px;height:12px;border-radius:4px;flex:none;margin:0 4px}
.tl-track{position:relative;min-height:30px;
  background-image:linear-gradient(to right,color-mix(in srgb,var(--line) 70%,transparent) 1px,transparent 1px);
  background-size:calc(100% / var(--hours,24)) 100%}
.tl-axis .tl-track{min-height:20px;background:none}
.tl-axis .tl-track span{position:absolute;top:2px;transform:translateX(-50%);font-family:var(--f-mono);font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.tl-axis .tl-track span:first-child{transform:none}
.tl-axis .tl-track span:last-child{transform:translateX(-100%)}
.tl-track em{position:absolute;left:6px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--muted);font-style:normal;opacity:.7}
.tl-bar{position:absolute;height:18px;border:0;border-radius:5px;padding:0 5px;background:var(--c);color:#fff;font-size:10.5px;font-weight:600;text-align:left;overflow:hidden;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tl-bar span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}
.tl-bar:hover{filter:brightness(1.1);z-index:2}
.tl-bar.done{opacity:.4}
.tl-bar.done span{text-decoration:line-through}
.tl-bar.foreign,.tl-bar.shared{background:repeating-linear-gradient(135deg,var(--c) 0 6px,color-mix(in srgb,var(--c) 70%,var(--surface)) 6px 12px)}
.tl-now{position:absolute;top:0;bottom:0;width:2px;background:var(--now);z-index:3;pointer-events:none}
.task.flash{animation:flash 1.2s ease}
@keyframes flash{0%,40%{background:color-mix(in srgb,var(--accent) 22%,transparent)}100%{background:transparent}}

/* ---------- личный кабинет ---------- */
.cab-head{display:flex;align-items:center;gap:12px}
.av.big{width:52px;height:52px;font-size:20px}
.cab-who{display:flex;flex-direction:column;min-width:0}
.cab-who b{font-size:16px}
.cab-who small{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.cab-hint{font-size:12px;color:var(--muted)}
.swatches{display:grid;grid-template-columns:repeat(10,1fr);gap:6px}
.sw{aspect-ratio:1;max-width:100%;border-radius:50%;border:0;background:var(--c);color:#fff;font-size:11px;font-weight:700;padding:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.sw.on{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--c)}
.sw.taken{opacity:.35;cursor:not-allowed}
.cab-open{text-align:left}
@media (max-width:420px){.swatches{grid-template-columns:repeat(5,1fr)}.tl-row{grid-template-columns:64px minmax(0,1fr)}.tl-who span{font-size:11px}}
