/* Задачи — личный трекер. Палитра та же семья, что у Пульта штаба: глубокий синий,
   циан и фиолет. Светлая тема — через [data-theme="light"]. */

@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/golos-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/golos-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d16;
  --bg-2: #0b1421;
  --modal: #0c1523;
  --col: rgba(15, 25, 40, .62);
  --card: #111c2c;
  --card-hover: #152235;
  --raise: rgba(140, 170, 205, .06);
  --raise-2: rgba(140, 170, 205, .1);
  --solid: #172438;
  --menu: #121e30;
  --line: rgba(140, 170, 205, .1);
  --line-2: rgba(140, 170, 205, .17);
  --line-3: rgba(140, 170, 205, .3);
  --ink: #edf3fa;
  --ink-2: #b9c8da;
  --ink-3: #8399b2;
  --ink-4: #5c718a;
  --accent: #5ad3e8;
  --accent-2: #9b8cf0;
  --accent-ink: #03161d;
  --accent-soft: rgba(90, 211, 232, .11);
  --accent-line: rgba(90, 211, 232, .46);
  --grad: linear-gradient(135deg, #5ad3e8 0%, #84aef0 55%, #9b8cf0 100%);
  --ok: #54d3a4;
  --warn: #e9b662;
  --err: #f4657f;
  --s-todo: #8ca4be;
  --s-prog: #5ad3e8;
  --s-review: #e9b662;
  --s-done: #54d3a4;
  --t-task: #4f9dff;
  --t-bug: #f4657f;
  --t-story: #36c48a;
  --t-idea: #ad87f5;
  --p-highest: #f4657f;
  --p-high: #f59a5b;
  --p-medium: #e9b662;
  --p-low: #6fa8ff;
  --p-lowest: #7f95b0;
  --label-l: 72%;
  --label-bg: .15;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 10px 28px -10px rgba(0, 0, 0, .6), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --shadow-pop: 0 28px 70px -18px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-2);
  --overlay: rgba(3, 7, 13, .64);
  --glow-1: rgba(90, 211, 232, .1);
  --glow-2: rgba(155, 140, 240, .085);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .035);
  --f-ui: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-out: cubic-bezier(.32, .72, 0, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f9;
  --bg-2: #ffffff;
  --modal: #ffffff;
  --col: rgba(226, 232, 241, .62);
  --card: #ffffff;
  --card-hover: #ffffff;
  --raise: rgba(20, 45, 80, .045);
  --raise-2: rgba(20, 45, 80, .075);
  --solid: #ffffff;
  --menu: #ffffff;
  --line: rgba(20, 45, 80, .09);
  --line-2: rgba(20, 45, 80, .14);
  --line-3: rgba(20, 45, 80, .26);
  --ink: #0d1929;
  --ink-2: #33465e;
  --ink-3: #5e7089;
  --ink-4: #8d9bb0;
  --accent: #0b9cb5;
  --accent-2: #6d5ae0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 156, 181, .1);
  --accent-line: rgba(11, 156, 181, .5);
  --grad: linear-gradient(135deg, #10a6bf 0%, #4f86e0 58%, #7660e4 100%);
  --ok: #17a673;
  --warn: #c98a17;
  --err: #df3d5e;
  --s-todo: #7a8aa1;
  --s-prog: #0b9cb5;
  --s-review: #cf8d1d;
  --s-done: #17a673;
  --t-task: #2f7ff0;
  --t-bug: #e5486a;
  --t-story: #19a874;
  --t-idea: #8a62e8;
  --p-highest: #e5486a;
  --p-high: #e27a33;
  --p-medium: #cf9a1d;
  --p-low: #3d82e8;
  --p-lowest: #7d8ea6;
  --label-l: 36%;
  --label-bg: .13;
  --shadow-1: 0 1px 2px rgba(15, 30, 55, .07);
  --shadow-2: 0 12px 28px -12px rgba(15, 30, 55, .2), 0 2px 6px -2px rgba(15, 30, 55, .08);
  --shadow-pop: 0 28px 64px -20px rgba(15, 30, 55, .3), 0 0 0 1px var(--line-2);
  --overlay: rgba(14, 24, 40, .32);
  --glow-1: rgba(11, 156, 181, .08);
  --glow-2: rgba(109, 90, 224, .07);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------- база */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 10% -14%, var(--glow-1), transparent 62%),
    radial-gradient(900px 540px at 108% -6%, var(--glow-2), transparent 60%);
}
#app { position: relative; z-index: 1; height: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--line-3); }
::-webkit-scrollbar-track { background: transparent; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ty { width: 16px; height: 16px; flex: none; }
.ty-task { color: var(--t-task); }
.ty-bug { color: var(--t-bug); }
.ty-story { color: var(--t-story); }
.ty-idea { color: var(--t-idea); }
.pr { width: 16px; height: 16px; flex: none; }
.pr-highest { color: var(--p-highest); }
.pr-high { color: var(--p-high); }
.pr-medium { color: var(--p-medium); }
.pr-low { color: var(--p-low); }
.pr-lowest { color: var(--p-lowest); }
.spacer { flex: 1; }
.muted { color: var(--ink-3); }
.hint { font-size: 12px; color: var(--ink-4); }
.mono { font-family: var(--f-mono); }

.boot { height: 100%; display: grid; place-items: center; }
.boot-logo { width: 44px; height: 44px; animation: breathe 1.6s var(--ease) infinite alternate; filter: drop-shadow(0 10px 30px rgba(90, 211, 232, .35)); }
@keyframes breathe { from { opacity: .45; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

kbd {
  font: 500 10.5px/1 var(--f-mono);
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--ink-3);
  background: var(--raise);
}

/* ---------------------------------------------------------------- кнопки и поля */

.btn {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--raise);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .2s, transform .12s, filter .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--raise-2); border-color: var(--line-3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn .i { width: 15px; height: 15px; }
.btn kbd { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: inherit; opacity: .8; }
.btn.primary {
  background: var(--grad);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent), var(--inset);
}
.btn.primary:hover:not(:disabled) { background: var(--grad); filter: brightness(1.07) saturate(1.05); border-color: transparent; }
.btn.primary kbd { background: rgba(3, 22, 29, .12); border-color: rgba(3, 22, 29, .2); }
[data-theme="light"] .btn.primary kbd { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover:not(:disabled) { background: var(--raise); border-color: var(--line); color: var(--ink); }
.btn.danger { color: var(--err); }
.btn.danger-fill { background: var(--err); border-color: transparent; color: #fff; font-weight: 600; }
.btn.danger-fill:hover:not(:disabled) { background: var(--err); filter: brightness(1.08); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn.sm .i { width: 14px; height: 14px; }
.btn.lg { height: 46px; font-size: 15px; border-radius: 12px; padding: 0 18px; }
.btn.block { width: 100%; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  flex: none;
}
.icon-btn:hover { background: var(--raise-2); color: var(--ink); }
.icon-btn.xs { width: 26px; height: 26px; border-radius: 7px; }
.icon-btn.xs .i { width: 14px; height: 14px; }
.link-btn {
  border: 0;
  background: none;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.link-btn:hover { color: var(--ink); background: var(--raise); }
.link-btn .i { width: 14px; height: 14px; }
.link-btn.xs { font-size: 12px; }
.link-btn.danger:hover { color: var(--err); }

.inp, .ta {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--raise);
  color: var(--ink);
  border-radius: 10px;
  font-size: 14px;
  padding: 9px 12px;
  transition: border-color .15s, box-shadow .2s, background .15s;
}
.inp { height: 40px; }
.inp.lg { height: 46px; font-size: 15px; border-radius: 12px; padding: 0 14px; }
.inp::placeholder, .ta::placeholder { color: var(--ink-4); }
.inp:hover, .ta:hover { border-color: var(--line-3); }
.inp:focus, .ta:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--raise-2); }
.ta { resize: none; line-height: 1.55; min-height: 42px; display: block; }

.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.fld > .seg { justify-self: start; }
.fld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld-grid.three { grid-template-columns: 1fr 1fr 1fr; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; background: var(--raise); border-radius: 11px; border: 1px solid var(--line); }
.seg button {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--solid); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }

.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

.chip {
  --h: 200;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: hsl(var(--h) 72% var(--label-l));
  background: hsl(var(--h) 80% 58% / var(--label-bg));
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip .x {
  width: 14px;
  height: 14px;
  margin-right: -3px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  display: inline-grid;
  place-items: center;
  opacity: .7;
}
.chip .x:hover { opacity: 1; background: hsl(var(--h) 80% 58% / .2); }
.chip .x .i { width: 11px; height: 11px; stroke-width: 2.4; }

.pill {
  --c: var(--s-todo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
}
[data-theme="light"] .pill { color: color-mix(in srgb, var(--c) 82%, #000); }
.est {
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--raise-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}
.est.is-empty { background: transparent; color: var(--ink-4); }
.due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.due .i { width: 13px; height: 13px; }
.due.is-soon { color: var(--warn); }
.due.is-late { color: var(--err); }
.meta { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; }
.meta .i { width: 13px; height: 13px; }

.s-dot {
  --c: var(--s-todo);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), 0 0 14px color-mix(in srgb, var(--c) 50%, transparent);
}
.ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #04121a;
  background: var(--grad);
  box-shadow: var(--inset);
}
.ava.sm { width: 22px; height: 22px; font-size: 9.5px; }
.ava.xs { width: 20px; height: 20px; font-size: 8.5px; letter-spacing: 0; }
.ava.alt { --h: 200; background: linear-gradient(135deg, hsl(var(--h) 74% 66%), hsl(calc(var(--h) + 50) 70% 58%)); }
.asg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--ink-2); }

/* ---------------------------------------------------------------- каркас */

.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px 14px;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 20, 33, .7), rgba(9, 16, 27, .45));
  backdrop-filter: blur(14px);
}
[data-theme="light"] .side { background: rgba(255, 255, 255, .62); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 16px; }
.brand-logo { width: 34px; height: 34px; filter: drop-shadow(0 6px 18px rgba(90, 211, 232, .3)); }
.brand-t { display: grid; line-height: 1.2; }
.brand-t b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand-t span { font-size: 12px; color: var(--ink-4); }
.side-create { margin-bottom: 14px; justify-content: flex-start; padding: 0 12px; }
.side-create kbd { margin-left: auto; }
.nav { display: grid; gap: 2px; }
.nav-i {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-i .i { width: 18px; height: 18px; color: var(--ink-3); transition: color .15s; }
.nav-i:hover { background: var(--raise); color: var(--ink); }
.nav-i.on { background: var(--raise-2); color: var(--ink); box-shadow: var(--inset); }
.nav-i.on .i { color: var(--accent); }
.nav-i.on::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad);
}
.nav-i .n { margin-left: auto; font-size: 12px; color: var(--ink-4); font-weight: 500; }
.nav-i kbd { margin-left: auto; opacity: 0; transition: opacity .15s; }
.nav-i .n + kbd { margin-left: 6px; }
.nav-i:hover kbd { opacity: 1; }

.side-sprint { margin-top: 18px; }
.ss {
  display: block;
  padding: 13px 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--raise);
  text-decoration: none;
  transition: border-color .15s;
}
.ss:hover { border-color: var(--line-2); }
.ss-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.ss-h .s-dot { --c: var(--ok); width: 6px; height: 6px; animation: pulse 2.4s ease-in-out infinite; }
.ss-left { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.ss-left.is-late { color: var(--err); }
.ss-name { margin-top: 6px; font-weight: 650; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-bar { margin-top: 10px; height: 5px; border-radius: 99px; background: var(--raise-2); overflow: hidden; }
.ss-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s var(--ease); }
.ss-txt { margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.ss-txt b { color: var(--ink); font-weight: 600; }
.ss.is-empty { text-align: left; }
.ss.is-empty .ss-name { color: var(--ink-2); font-weight: 500; font-size: 13.5px; white-space: normal; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.side-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.me-t { display: grid; min-width: 0; line-height: 1.25; }
.me-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t span { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100vh; height: 100dvh; }
.view-head { padding: 24px 28px 14px; flex: none; }
.vh-top { display: flex; align-items: flex-start; gap: 14px 18px; flex-wrap: wrap; }
.vh-title { flex: 1 1 320px; min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.eyebrow .s-dot { --c: var(--ok); width: 6px; height: 6px; animation: pulse 2.4s ease-in-out infinite; }
.vh-h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
}
.vh-h1 .icon-btn { opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.vh-title:hover .vh-h1 .icon-btn, .vh-h1 .icon-btn:focus-visible { opacity: 1; }
.vh-sub { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-3); font-size: 13px; }
.vh-sub > span { display: inline-flex; align-items: center; gap: 6px; }
.vh-sub .i { width: 14px; height: 14px; color: var(--ink-4); }
.vh-sub .is-late { color: var(--err); }
.vh-sub .goal { color: var(--ink-2); max-width: 520px; }
.vh-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.search { position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ink-4); pointer-events: none; }
.search input {
  width: 210px;
  height: 34px;
  padding: 0 34px 0 33px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--raise);
  color: var(--ink);
  font-size: 13.5px;
  transition: width .3s var(--ease), border-color .15s, box-shadow .2s, background .15s;
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus { outline: none; width: 270px; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--raise-2); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search kbd { position: absolute; right: 9px; pointer-events: none; transition: opacity .15s; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { opacity: 0; }

.vh-tools { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.chip-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
}
.chip-btn:hover { background: var(--raise); color: var(--ink); }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.chip-btn .i { width: 14px; height: 14px; }
.chip-btn .ty { width: 14px; height: 14px; }
.chip-btn b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.tools-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }

.progress { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar { width: 230px; height: 7px; border-radius: 99px; background: var(--raise-2); display: flex; gap: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: flex-grow .45s var(--ease); min-width: 0; }
.prog-txt { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.prog-txt b { color: var(--ink); font-weight: 650; }

.view { flex: 1; min-height: 0; overflow: auto; position: relative; }
.view.is-board { overflow: hidden; }

.empty { display: grid; justify-items: center; align-content: center; text-align: center; gap: 10px; padding: 72px 24px; color: var(--ink-3); min-height: 60%; }
.empty-ico {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 5%, transparent), 0 18px 40px -16px color-mix(in srgb, var(--accent) 60%, transparent);
}
.empty-ico .i { width: 30px; height: 30px; stroke-width: 1.6; }
.empty h2 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 700; }
.empty p { margin: 0 0 8px; max-width: 400px; line-height: 1.55; }
.empty .row-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------------------------------------------------------------- доска */

.board { height: 100%; display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; padding: 2px 28px 24px; }
.col {
  --c: var(--s-todo);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  background: var(--col);
  border: 1px solid var(--line);
  box-shadow: var(--inset);
  transition: border-color .2s, background .2s;
}
body.dragging .col { border-color: var(--line-2); }
.col.is-over { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 5%, var(--col)); }
.col-h { display: flex; align-items: center; gap: 9px; padding: 14px 16px 10px; font-weight: 650; font-size: 13.5px; }
.col-count {
  height: 19px;
  padding: 0 7px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--raise-2);
  display: inline-grid;
  place-items: center;
}
.col-pts { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-4); }
.col-b { flex: 1; min-height: 70px; overflow-y: auto; overflow-x: hidden; padding: 2px 9px 9px; display: flex; flex-direction: column; gap: 8px; }
.col-b:empty::after {
  content: "Перетащи сюда";
  display: grid;
  place-items: center;
  height: 64px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--ink-4);
  font-size: 12.5px;
  opacity: 0;
  transition: opacity .2s;
}
body.dragging .col-b:empty::after { opacity: 1; }
.col-add {
  margin: 0 9px 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px dashed transparent;
  background: transparent;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.col-add:hover { color: var(--ink); background: var(--raise); border-color: var(--line-2); }

.card {
  position: relative;
  padding: 11px 12px 11px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1), var(--inset);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .15s, background .15s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--line-3); background: var(--card-hover); transform: translateY(-1px); box-shadow: var(--shadow-2), var(--inset); }
.card:active { transform: translateY(0); }
.card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.key { font: 500 11.5px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .01em; white-space: nowrap; }
.card-title {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.card .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 20px; }
.card-meta:empty { display: none; }
.card.is-done .card-title { color: var(--ink-3); }
.card.is-done .key { text-decoration: line-through; text-decoration-color: var(--ink-4); }
.card .done-mark { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--s-done) 18%, transparent); color: var(--s-done); }
.card .done-mark .i { width: 11px; height: 11px; stroke-width: 2.6; }
.card.is-new { animation: pop-in .45s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.is-ghost { background: var(--accent-soft) !important; border: 1px dashed var(--accent-line) !important; box-shadow: none !important; transform: none !important; }
.is-ghost > * { visibility: hidden; }
/* Плавающая копия под курсором. Без transition: иначе Sortable двигает её translate3d,
   а наша анимация transform догоняет курсор с опозданием — карточка «плывёт». */
.is-flying {
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
  rotate: 2deg;
  scale: 1.04;
  border-color: var(--accent-line) !important;
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .6), 0 10px 24px -12px rgba(0, 0, 0, .35), 0 0 0 1px var(--accent-line) !important;
  cursor: grabbing !important;
  z-index: 100000 !important;
}
[data-theme="light"] .is-flying { box-shadow: 0 28px 60px -20px rgba(15, 30, 55, .35), 0 10px 24px -14px rgba(15, 30, 55, .2), 0 0 0 1px var(--accent-line) !important; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body.dragging { user-select: none; -webkit-user-select: none; }
body.dragging .card:hover, body.dragging .row:hover { transform: none; box-shadow: var(--shadow-1), var(--inset); }
.is-chosen { transition: none !important; }

/* файл тащат над карточкой на доске */
.card.file-over, .row.file-over {
  border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)) !important;
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-2) !important;
  transform: translateY(-1px);
}
.tbl tr.file-over td { background: var(--accent-soft) !important; }
.drop-hint {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  background: var(--menu);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  font-size: 13.5px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: toast-in .25s var(--ease);
}
.drop-hint .i { width: 18px; height: 18px; color: var(--accent); flex: none; }
.drop-hint span { overflow: hidden; text-overflow: ellipsis; }

.quick { margin: 0 9px 10px; border-radius: 13px; border: 1px solid var(--accent-line); background: var(--card); box-shadow: 0 0 0 3px var(--accent-soft); padding: 8px 10px 6px; }
.quick-ta { width: 100%; border: 0; background: transparent; color: var(--ink); resize: none; font-size: 13.5px; line-height: 1.45; padding: 2px 0; min-height: 42px; }
.quick-ta:focus { outline: none; }
.quick-ta::placeholder { color: var(--ink-4); }
.quick-bar { display: flex; align-items: center; gap: 8px; }
.bl-sec .quick { margin: 0 14px 12px; }

/* ---------------------------------------------------------------- бэклог */

.backlog { padding: 2px 28px 32px; display: grid; gap: 14px; align-content: start; }
.bl-sec {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--col);
  box-shadow: var(--inset);
  transition: border-color .2s;
}
.bl-sec.is-active {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--inset), 0 16px 40px -28px color-mix(in srgb, var(--accent) 70%, transparent);
}
.bl-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px 10px; flex-wrap: wrap; }
.bl-toggle { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.bl-toggle:hover { background: var(--raise-2); color: var(--ink); }
.bl-toggle .i { transition: rotate .2s var(--ease); }
.is-collapsed .bl-toggle .i { rotate: -90deg; }
.bl-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bl-name b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge.live { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
.badge.plan { color: var(--ink-3); background: var(--raise-2); }
.bl-meta { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.bl-stat { display: flex; gap: 4px; }
.mini { --c: var(--s-todo); height: 20px; min-width: 22px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.bl-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bl-goal { margin: -4px 14px 8px 48px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.bl-goal .i { width: 13px; height: 13px; color: var(--ink-4); }
.bl-list { padding: 0 6px 6px; min-height: 6px; display: grid; gap: 2px; }
.bl-list:empty { min-height: 56px; margin: 0 14px 12px; padding: 0; border: 1px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; }
.bl-list:empty::before { content: attr(data-empty); color: var(--ink-4); font-size: 12.5px; }
.is-collapsed .bl-list, .is-collapsed .bl-add, .is-collapsed .bl-goal, .is-collapsed .quick { display: none; }
.bl-add {
  margin: 0 8px 8px;
  height: 36px;
  width: calc(100% - 16px);
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.bl-add:hover { background: var(--raise); color: var(--ink); }

.row {
  display: grid;
  grid-template-columns: 16px 16px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px 0 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background .12s, border-color .12s;
}
.row:hover { background: var(--raise); border-color: var(--line); }
.row .grip { color: var(--ink-4); opacity: 0; transition: opacity .15s; display: grid; place-items: center; cursor: grab; }
.row .grip .i { width: 14px; height: 14px; }
.row:hover .grip { opacity: 1; }
.row-title { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-tail { display: flex; align-items: center; gap: 8px; }
.row.is-done .row-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.row.is-new { animation: pop-in .45s var(--ease); }
.row .chips { display: flex; gap: 4px; }

/* ---------------------------------------------------------------- все задачи */

.all { padding: 2px 28px 32px; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 18px; background: var(--col); overflow: clip; box-shadow: var(--inset); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-3);
  padding: 11px 12px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.tbl th:hover { color: var(--ink); }
.tbl th .i { width: 12px; height: 12px; vertical-align: -1px; margin-left: 3px; color: var(--accent); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover td { background: var(--raise); }
.tbl .c-key { width: 86px; }
.tbl .c-title { min-width: 260px; }
.t-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.t-title span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; color: var(--ink); font-weight: 500; }
.t-title .chips { display: flex; gap: 4px; flex: none; }
.tbl .c-prio { white-space: nowrap; color: var(--ink-2); }
.tbl .c-prio .pr { vertical-align: -3px; margin-right: 4px; }
.tbl .c-sprint, .tbl .c-upd { color: var(--ink-3); white-space: nowrap; }
.tbl tr.is-done .t { color: var(--ink-3); }
.tbl-foot { padding: 12px 4px 0; font-size: 12.5px; color: var(--ink-4); }

/* ---------------------------------------------------------------- слои: модалки, меню, тосты */

#layer { position: relative; z-index: 50; }
.ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--overlay);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.ov.is-open { opacity: 1; }
.ov.is-closing { opacity: 0; transition-duration: .16s; }
.modal {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--modal);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop);
  transform: translateY(10px) scale(.985);
  transition: transform .3s var(--ease-out);
  overflow: hidden;
}
.ov.is-open .modal { transform: none; }
.ov.is-closing .modal { transform: translateY(6px) scale(.99); }

/* карточка задачи */
.tm { max-width: 1120px; height: min(880px, calc(100dvh - 48px)); }
.tm-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 24px; border-bottom: 1px solid var(--line); flex: none; }
.tm-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.tm-crumbs .key { font-size: 12.5px; color: var(--ink-2); }
.tm-crumbs .sep { color: var(--ink-4); }
.tm-crumbs .f-btn { height: 28px; }
.tm-tools { display: flex; align-items: center; gap: 2px; }
.tm-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "title side" "main side";
}
.tm-titlebox { grid-area: title; padding: 18px 28px 0; }
.tm-main { grid-area: main; overflow-y: auto; padding: 6px 28px 32px; }
.tm-side { grid-area: side; overflow-y: auto; padding: 18px 18px 24px; border-left: 1px solid var(--line); background: linear-gradient(180deg, var(--raise), transparent 60%); }
.tm-title {
  width: 100%;
  display: block;
  resize: none;
  overflow: hidden;
  margin: 0 0 0 -10px;
  width: calc(100% + 20px);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: 700 23px/1.3 var(--f-ui);
  letter-spacing: -.01em;
  transition: background .15s, border-color .15s, box-shadow .2s;
}
.tm-title:hover { background: var(--raise); }
.tm-title:focus { outline: none; background: var(--raise); border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.tm-sec { margin-top: 24px; }
.tm-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; min-height: 24px; }
.tm-sec-h h3 { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.tm-sec-h .count { font-size: 11.5px; color: var(--ink-4); font-weight: 600; }
.tm-sec-h .link-btn:first-of-type { margin-left: auto; }

.desc { padding: 10px 12px; margin: 0 -12px; border-radius: 12px; border: 1px solid transparent; cursor: text; transition: background .15s, border-color .15s; min-height: 46px; }
.desc:hover { background: var(--raise); }
.desc.is-empty { color: var(--ink-4); display: flex; align-items: center; gap: 8px; }
.desc.is-empty .i { width: 15px; height: 15px; }
.desc-edit .ta { min-height: 180px; font-size: 14px; }
.desc-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.md { font-size: 14px; line-height: 1.62; color: var(--ink-2); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .7em; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { color: var(--ink); margin: 1.15em 0 .45em; line-height: 1.3; font-weight: 650; }
.md h1 { font-size: 19px; }
.md h2 { font-size: 17px; }
.md h3 { font-size: 15px; }
.md h4, .md h5, .md h6 { font-size: 14px; }
.md strong { color: var(--ink); font-weight: 650; }
.md a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.md a:hover { border-bottom-color: var(--accent); }
.md ul, .md ol { padding-left: 1.45em; margin: 0 0 .7em; }
.md li + li { margin-top: .22em; }
.md li::marker { color: var(--ink-4); }
.md li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.35em; }
.md input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 .55em 0 0;
  vertical-align: -3px;
  border-radius: 5px;
  border: 1.5px solid var(--line-3);
  background: transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.md input[type="checkbox"]:hover { border-color: var(--accent); }
.md input[type="checkbox"]:checked {
  border-color: var(--s-done);
  background: var(--s-done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.4' fill='none' stroke='%2304121a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.md li:has(> input:checked) { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.md code { font: 12.5px/1.5 var(--f-mono); background: var(--raise-2); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; color: var(--ink); }
.md pre { margin: 0 0 .8em; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.md pre code { background: none; border: 0; padding: 0; font-size: 12.5px; }
.md blockquote { margin: 0 0 .8em; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent-line); color: var(--ink-3); }
.md img { display: block; max-width: 100%; max-height: 520px; margin: .5em 0; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.md table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 .8em; font-size: 13px; }
.md th, .md td { border: 1px solid var(--line-2); padding: 6px 10px; text-align: left; }
.md th { background: var(--raise); color: var(--ink); font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.2em 0; }

.atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.att { position: relative; border-radius: 13px; border: 1px solid var(--line); background: var(--raise); overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.att:hover { border-color: var(--line-3); box-shadow: var(--shadow-2); }
.att-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; border: 0; padding: 0; background: var(--raise-2); overflow: hidden; cursor: zoom-in; color: var(--ink-3); text-decoration: none; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.att:hover .att-thumb img { transform: scale(1.04); }
.att-thumb.file { cursor: pointer; }
.att-thumb.file .i { width: 32px; height: 32px; stroke-width: 1.4; }
.att-thumb .ext {
  position: absolute;
  bottom: 9px;
  font: 600 10px/1 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--modal);
  border: 1px solid var(--line-2);
  padding: 3px 6px;
  border-radius: 5px;
}
.att-info { padding: 8px 10px 9px; min-width: 0; }
.att-name { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-name:hover { color: var(--accent); }
.att-sub { font-size: 11.5px; color: var(--ink-4); }
.att-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.att:hover .att-acts, .att:focus-within .att-acts { opacity: 1; }
.att-acts .icon-btn { width: 28px; height: 28px; color: #fff; background: rgba(4, 9, 16, .7); backdrop-filter: blur(6px); }
.att-acts .icon-btn:hover { background: rgba(4, 9, 16, .9); color: #fff; }
.att-acts .icon-btn.danger:hover { color: #ff8da2; }
.att.is-uploading { opacity: .85; }
.att.is-uploading .att-thumb { cursor: default; }
.att-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: var(--grad); transition: width .2s; }
.att-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-height: 132px;
  padding: 12px;
  border-radius: 13px;
  border: 1px dashed var(--line-2);
  color: var(--ink-4);
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.att-add:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }
.att-add .i { width: 20px; height: 20px; }
.tm-drop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--ink);
  pointer-events: none;
  background: color-mix(in srgb, var(--modal) 70%, transparent);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}
.tm-drop::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 2px dashed var(--accent-line);
  background: radial-gradient(55% 45% at 50% 46%, var(--accent-soft), transparent 72%);
  animation: drop-pulse 1.6s ease-in-out infinite;
}
.tm-drop-ico {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--grad);
  box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--accent) 75%, transparent), var(--inset);
  animation: drop-bob 1.6s var(--ease) infinite;
}
.tm-drop-ico .i { width: 34px; height: 34px; stroke-width: 2; }
.tm-drop b { position: relative; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tm-drop span { position: relative; font-size: 13px; color: var(--ink-3); }
.tm.is-dropping .tm-drop { display: grid; animation: drop-in .18s var(--ease); }
@keyframes drop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drop-pulse { 0%, 100% { border-color: var(--accent-line); } 50% { border-color: var(--accent); } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tab {
  height: 36px;
  padding: 0 4px;
  margin-right: 14px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.tab .count { font-size: 11.5px; color: var(--ink-4); }

.composer { display: flex; gap: 11px; margin: 14px 0 6px; }
.composer-box { flex: 1; min-width: 0; border-radius: 13px; border: 1px solid var(--line-2); background: var(--raise); transition: border-color .15s, box-shadow .2s; }
.composer-box:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer-box .ta { border: 0; background: transparent; box-shadow: none; min-height: 42px; padding: 10px 12px; }
.composer-box .ta:focus { box-shadow: none; background: transparent; }
.composer-bar { display: none; align-items: center; gap: 8px; padding: 0 8px 8px 12px; }
.composer-box:focus-within .composer-bar, .composer-box.has-text .composer-bar { display: flex; }
.cmts { display: grid; }
.cmt { display: flex; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.cmt:first-child { border-top: 0; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12.5px; }
.cmt-h b { color: var(--ink); font-weight: 600; }
.cmt-h .t { color: var(--ink-4); }
.cmt-h .acts { margin-left: auto; display: flex; gap: 8px; opacity: 0; transition: opacity .15s; }
.cmt:hover .cmt-h .acts, .cmt:focus-within .cmt-h .acts { opacity: 1; }
.cmt-edit .ta { min-height: 80px; }
.cmt-edit .desc-bar { margin-top: 6px; }
.feed-empty { padding: 18px 0 6px; color: var(--ink-4); font-size: 13px; }

.hist { list-style: none; margin: 10px 0 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink-2); align-items: start; }
.h-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raise-2); color: var(--ink-3); }
.h-ico .i { width: 13px; height: 13px; }
.h-body { padding-top: 3px; line-height: 1.45; }
.h-body b { color: var(--ink); font-weight: 600; }
.h-t { color: var(--ink-4); font-size: 12px; margin-left: 4px; white-space: nowrap; }
.h-body .pill { height: 19px; font-size: 11px; padding: 0 7px; vertical-align: 1px; }
.h-body .arrow { color: var(--ink-4); margin: 0 3px; }

.side-status { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.status-btn {
  --c: var(--s-todo);
  height: 36px;
  padding: 0 12px 0 13px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background .15s, border-color .15s;
}
.status-btn:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }
.status-btn .i { width: 15px; height: 15px; color: var(--ink-3); margin-left: 2px; }
.fields { margin: 0; display: grid; gap: 2px; }
.f { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 38px; }
.f dt { color: var(--ink-3); font-size: 12.5px; }
.f dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 4px; }
.f-btn {
  max-width: 100%;
  height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-align: left;
  min-width: 0;
  transition: background .15s, border-color .15s;
}
.f-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-btn:hover { background: var(--raise-2); border-color: var(--line-2); }
.f-btn.wide { width: 100%; height: 40px; border-color: var(--line-2); background: var(--raise); border-radius: 10px; padding: 0 12px; }
.f-btn.wide:hover { border-color: var(--line-3); }
.f-btn.wide .i:last-child { margin-left: auto; color: var(--ink-4); }
.f-btn.is-placeholder { color: var(--ink-4); }
.f-input {
  height: 32px;
  width: 100%;
  min-width: 0;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  transition: background .15s, border-color .15s, box-shadow .2s;
}
.f-input::placeholder { color: var(--ink-4); }
.f-input:hover { background: var(--raise-2); border-color: var(--line-2); }
.f-input:focus { outline: none; background: var(--raise-2); border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.f-input[type="date"][value=""]:not(:focus) { color: var(--ink-4); }
.inp[type="date"]:invalid:not(:focus) { color: var(--ink-4); }
.f-unit { font-size: 12px; color: var(--ink-4); }
.labels-edit { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 0 6px 9px; }
.labels-edit .chip { max-width: 180px; }
.label-inp { height: 24px; width: 110px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--accent-line); background: var(--raise); color: var(--ink); font-size: 12px; }
.label-inp:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.f-add { width: 24px; height: 24px; border-radius: 6px; border: 1px dashed var(--line-3); background: transparent; color: var(--ink-3); display: inline-grid; place-items: center; }
.f-add:hover { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.f-add .i { width: 13px; height: 13px; }
.side-meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-4); display: grid; gap: 4px; }
.side-meta b { color: var(--ink-3); font-weight: 500; }
.side-danger { margin-top: 14px; }

/* меню */
.menu {
  position: fixed;
  z-index: 95;
  min-width: 210px;
  max-width: 320px;
  max-height: min(380px, calc(100dvh - 24px));
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 13px;
  background: var(--menu);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  transform-origin: top left;
  transition: opacity .14s, transform .2s var(--ease);
}
.menu.is-up { transform-origin: bottom left; transform: translateY(4px) scale(.98); }
.menu.is-open { opacity: 1; transform: none; }
.menu-list { overflow-y: auto; min-height: 0; }
.menu-search { padding: 2px 2px 6px; }
.menu-search input { width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font-size: 13px; }
.menu-search input:focus { outline: none; border-color: var(--accent-line); }
.menu-i {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}
.menu-i:hover:not(:disabled), .menu-i.is-hover { background: var(--raise-2); }
.menu-i:disabled { opacity: .45; }
.menu-i .i { color: var(--ink-3); }
.menu-i .menu-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-i .menu-hint { font-size: 11.5px; color: var(--ink-4); }
.menu-i .menu-check { color: var(--accent); }
.menu-i.is-danger, .menu-i.is-danger .i { color: var(--err); }
.menu-box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex: none; }
.menu-i.is-sel .menu-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.menu-box .i { width: 11px; height: 11px; stroke-width: 2.6; color: inherit !important; }
.menu-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.menu-sep { height: 1px; margin: 5px 4px; background: var(--line); }
.menu-empty { padding: 10px; font-size: 12.5px; color: var(--ink-4); }

/* диалоги */
.dlg { max-width: 540px; }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 20px 18px 4px 24px; }
.dlg-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; flex: 1; }
.dlg-b { padding: 12px 24px 8px; overflow-y: auto; display: grid; gap: 16px; }
.dlg-b p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.dlg-f { display: flex; align-items: center; gap: 8px; padding: 16px 24px 20px; flex-wrap: wrap; }
.dlg-title-ta { font-size: 16px; font-weight: 500; min-height: 52px; }
.more-toggle { justify-self: start; }
.radio-list { display: grid; gap: 6px; }
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--raise);
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.radio:hover { border-color: var(--line-3); }
.radio input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; }
.radio:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.radio .sub { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--raise);
}
.stat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--ink-3); }
.stat.ok b { color: var(--ok); }

/* тосты */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 130; display: grid; justify-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 13px;
  background: var(--menu);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  font-size: 13.5px;
  animation: toast-in .35s var(--ease);
}
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
.toast .t-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.toast .t-ico .i { width: 12px; height: 12px; stroke-width: 2.6; }
.toast.is-err .t-ico { background: color-mix(in srgb, var(--err) 18%, transparent); color: var(--err); }
.toast .btn { margin-left: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* просмотр картинок */
.lb { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(2, 5, 10, .9); opacity: 0; transition: opacity .2s; }
.lb.is-open { opacity: 1; }
.lb img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 130px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.97); transition: transform .3s var(--ease); }
.lb.is-open img { transform: none; }
.lb-bar { position: absolute; top: 14px; left: 20px; right: 14px; display: flex; align-items: center; gap: 10px; color: #e8eef6; font-size: 13.5px; }
.lb-bar .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar .muted { color: #8ea2ba; }
.lb .icon-btn { color: #c7d4e3; }
.lb .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08) !important; }
.lb-nav .i { width: 22px; height: 22px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------------------------------------------------------------- вход */

body.is-login { overflow: hidden; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.aurora { position: absolute; inset: -25%; filter: blur(70px); pointer-events: none; }
.aurora i { position: absolute; width: 48vmax; height: 48vmax; border-radius: 50%; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: 10%; top: 6%; background: radial-gradient(circle, rgba(90, 211, 232, .34), transparent 62%); }
.aurora i:nth-child(2) { right: 6%; top: 22%; background: radial-gradient(circle, rgba(155, 140, 240, .3), transparent 62%); animation-duration: 30s; animation-delay: -8s; }
.aurora i:nth-child(3) { left: 32%; bottom: 0; background: radial-gradient(circle, rgba(84, 211, 164, .16), transparent 62%); animation-duration: 36s; animation-delay: -14s; }
[data-theme="light"] .aurora i:nth-child(1) { background: radial-gradient(circle, rgba(16, 166, 191, .22), transparent 62%); }
[data-theme="light"] .aurora i:nth-child(2) { background: radial-gradient(circle, rgba(118, 96, 228, .2), transparent 62%); }
[data-theme="light"] .aurora i:nth-child(3) { background: radial-gradient(circle, rgba(23, 166, 115, .12), transparent 62%); }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vmax, -3vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 3vmax, 0) scale(.95); }
}
.login-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
  opacity: .5;
}
.login-card {
  position: relative;
  width: min(410px, 100%);
  padding: 34px 30px 28px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--modal) 74%, transparent);
  box-shadow: var(--shadow-pop), var(--inset);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: grid;
  gap: 16px;
  animation: rise .7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.login-card.shake { animation: shake .42s var(--ease); }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.login-mark { width: 54px; height: 54px; filter: drop-shadow(0 12px 30px rgba(90, 211, 232, .4)); }
.login h1 { margin: 6px 0 0; font-size: 30px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.login-sub { margin: -6px 0 8px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.login-sub b { color: var(--ink-2); font-weight: 600; }
.login-err { display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); font-size: 13px; font-weight: 500; }
.login-err.show { display: flex; }
.login-err .i { width: 15px; height: 15px; }
.login .btn.lg .i { transition: transform .2s var(--ease); }
.login .btn.lg:hover .i { transform: translateX(3px); }
.login-foot { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--ink-4); font-size: 12px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* нижняя панель на телефоне */
.tabbar { display: none; }

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 1180px) {
  .tm-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .bar { width: 160px; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .view-head { padding: 16px 16px 10px; }
  .vh-h1 { font-size: 22px; }
  .vh-h1 .icon-btn { opacity: 1; }
  .vh-actions { width: 100%; flex-wrap: nowrap; }
  .vh-actions .vh-actions { width: auto; }
  .vh-actions .search { flex: 1; }
  .search input, .search input:focus { width: 100%; height: 40px; }
  #vbtns .btn { width: 40px; height: 40px; padding: 0; }
  #vbtns .btn span { display: none; }
  .board { scrollbar-width: none; }
  .board::-webkit-scrollbar { display: none; }
  .vh-tools { margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .vh-tools::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .chip-btn .lbl { display: none; }
  .progress { margin-left: 8px; flex: none; }
  .bar { width: 90px; }
  .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 84vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 14px; gap: 12px; scroll-padding: 0 16px; }
  .col { scroll-snap-align: start; }
  .backlog, .all { padding: 2px 12px 24px; }
  .bl-h { padding: 10px 12px 8px 6px; }
  .bl-stat { display: none; }
  .bl-goal { margin-left: 40px; }
  .row { grid-template-columns: 16px 54px minmax(0, 1fr) auto; gap: 8px; min-height: 46px; }
  .row .grip { display: none; }
  .row .chips, .row .meta, .row .due { display: none; }
  .tbl .c-sprint, .tbl .c-upd, .tbl .c-est, .tbl .c-due, .tbl .c-asg { display: none; }
  .tbl .c-title { min-width: 0; }
  .t-title span.t { max-width: 46vw; }
  .t-title .chips { display: none; }
  .ov { padding: 0; place-items: end center; }
  .modal { max-height: 100dvh; border-radius: 22px 22px 0 0; border-left: 0; border-right: 0; border-bottom: 0; transform: translateY(30px); }
  .tm { height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .tm-body { display: flex; flex-direction: column; overflow-y: auto; }
  .tm-titlebox { padding: 14px 18px 0; order: 0; }
  .tm-side { order: 1; border-left: 0; overflow: visible; padding: 10px 18px 6px; background: none; }
  .tm-main { order: 2; overflow: visible; padding: 4px 18px 40px; }
  .tm-title { font-size: 20px; }
  .side-meta, .side-danger { display: none; }
  .tm-h { padding: 10px 10px 10px 18px; }
  .dlg { padding-bottom: env(safe-area-inset-bottom); }
  .fld-grid, .fld-grid.three { grid-template-columns: 1fr; }
  .att-acts { opacity: 1; }
  .cmt-h .acts { opacity: 1; }
  .lb img { max-width: calc(100vw - 24px); }
  .lb-nav { display: none; }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    align-items: center;
    justify-content: space-around;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .tb { display: grid; justify-items: center; gap: 3px; min-width: 58px; padding: 4px 6px; border: 0; background: none; color: var(--ink-3); text-decoration: none; font-size: 10.5px; font-weight: 500; }
  .tb .i { width: 21px; height: 21px; }
  .tb.on { color: var(--accent); }
  .tb-create { width: 50px; height: 50px; border-radius: 17px; border: 0; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
  .tb-create .i { width: 22px; height: 22px; stroke-width: 2.2; }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

.att-add .touch { display: none; }
@media (hover: none) {
  .search kbd, .side-create kbd { display: none; }
  .att-add .desk { display: none; }
  .att-add .touch { display: inline; }
  .card:hover { transform: none; box-shadow: var(--shadow-1), var(--inset); }
  .att-acts, .cmt-h .acts { opacity: 1; }
  .row .grip { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
