/* Lighthouse ve vzhledu TaskTracker_prace: klidné světlé plochy, jeden zelený akcent, barva jen tam,
   kde nese význam (termín, riziko, stav). Režimy Světlý, Tmavý a Konzole jsou jen jiné hodnoty tokenů. */
:root {
  color-scheme: light;
  --bg: #f6f5f1; --surface: #ffffff; --panel: #efede6; --panel-2: #edebe4; --board: #edebe4; --hover: #f0efe9;
  --ink: #17211c; --ink-2: #2b3630; --mute: #4b5851; --faint: #66726b;
  --line: #e2dfd6; --line-soft: #edebe4; --line-strong: #c4c0b4; --dot: #c4c0b4;
  --accent: #0e3a2f; --accent-strong: #0e3a2f; --accent-hover: #155443; --on-accent: #ffffff; --accent-soft: #e6f1ea; --acc2: #78faae;
  --late: #a61f17; --late-bg: #fbe8e5; --soon: #8a4a00; --soon-bg: #fcefd9; --ok: #1f6b36; --ok-bg: #e3f2e7;
  --info: #1a4fb5; --info-bg: #e8f0fb; --purple: #5e35b1; --brown: #7a4a00;
  --m-late: #c9423a; --m-soon: #e09a2b; --m-ok: #7fbf98; --m-none: #aab6ae;
  --mark: #fbe9a6; --mark-hover: #f5d976; --mark-ink: #17211c;
  --selection: #e6f1ea; --scroll: #e2dfd6;
  --danger: var(--late); --danger-soft: var(--late-bg); --warn: var(--soon);
  --st-none: var(--m-late); --st-read: var(--m-soon); --st-explain: var(--m-ok); --st-use: var(--info);
  --sh1: 0 1px 2px rgba(23,33,28,.06); --sh2: 0 10px 30px -12px rgba(23,33,28,.28); --focus: 0 0 0 3px rgba(14,58,47,.28);
  --shadow: 23 33 28;
  /* Barvy směrů: tečka u názvu. Liší se odstínem i světlostí. */
  --a1: #2f7d55; --a2: #b87a12; --a3: #c9423a; --a4: #1a4fb5; --a5: #5e35b1; --a6: #4f8f6a;
  /* Levé menu je tišší než obsah: světlá plocha, aktivní položka jako karta. */
  --rail: var(--panel); --rail-ink: var(--ink); --rail-mute: var(--mute); --rail-line: var(--hover); --rail-on: var(--surface); --rail-focus: var(--accent);

  --ui: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --read: var(--ui);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
  --radius-xs: 2px; --radius-sm: 3px; --radius-row: 4px; --radius: 6px; --radius-lg: 10px; --radius-xl: 12px;
  --space-xs: 4px; --space-sm: 6px; --space-md: 8px; --space-lg: 12px; --space-xl: 16px; --space-2xl: 24px; --space-3xl: 32px;
  --top-h: 0px; --strip-w: 232px; --measure: 70ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  --bg: #141a17; --surface: #1a211d; --panel: #101512; --panel-2: #222b26; --board: #222b26; --hover: #212a25;
  --ink: #e6ece8; --ink-2: #cdd6d1; --mute: #b0bcb5; --faint: #8f9b94;
  --line: #2a342f; --line-soft: #222b26; --line-strong: #43514a; --dot: #43514a;
  --accent: #7ccc9c; --accent-strong: #7ccc9c; --accent-hover: #98d9b2; --on-accent: #0f1814; --accent-soft: #203128;
  --late: #ff9d93; --late-bg: #3a1f1c; --soon: #f0b867; --soon-bg: #35280f; --ok: #8fd6a4; --ok-bg: #1c3324;
  --info: #9dc0f0; --info-bg: #22324a; --purple: #c3b2ff; --brown: #e8bf7a;
  --mark: #f3dc8a; --mark-hover: #f7e6a6; --selection: #203128; --scroll: #2a342f;
  --sh1: none; --sh2: 0 12px 32px -12px rgba(0,0,0,.6); --focus: 0 0 0 3px rgba(124,204,156,.35); --shadow: 0 0 0;
  --a1: #7ccc9c; --a2: #f0b867; --a3: #ff9d93; --a4: #9dc0f0; --a5: #c3b2ff; --a6: #8fd6a4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141a17; --surface: #1a211d; --panel: #101512; --panel-2: #222b26; --board: #222b26; --hover: #212a25;
  --ink: #e6ece8; --ink-2: #cdd6d1; --mute: #b0bcb5; --faint: #8f9b94;
  --line: #2a342f; --line-soft: #222b26; --line-strong: #43514a; --dot: #43514a;
  --accent: #7ccc9c; --accent-strong: #7ccc9c; --accent-hover: #98d9b2; --on-accent: #0f1814; --accent-soft: #203128;
  --late: #ff9d93; --late-bg: #3a1f1c; --soon: #f0b867; --soon-bg: #35280f; --ok: #8fd6a4; --ok-bg: #1c3324;
  --info: #9dc0f0; --info-bg: #22324a; --purple: #c3b2ff; --brown: #e8bf7a;
  --mark: #f3dc8a; --mark-hover: #f7e6a6; --selection: #203128; --scroll: #2a342f;
  --sh1: none; --sh2: 0 12px 32px -12px rgba(0,0,0,.6); --focus: 0 0 0 3px rgba(124,204,156,.35); --shadow: 0 0 0;
  --a1: #7ccc9c; --a2: #f0b867; --a3: #ff9d93; --a4: #9dc0f0; --a5: #c3b2ff; --a6: #8fd6a4;
}
:root[data-theme="console"] {
  color-scheme: dark;
  --bg: #0d1210; --surface: #111815; --panel: #111815; --panel-2: #19231f; --board: #19231f; --hover: #161f1b;
  --ink: #e0e9e3; --ink-2: #c9d4ce; --mute: #a5b2ab; --faint: #84918a;
  --line: #1f2a25; --line-soft: #19231f; --line-strong: #34433c; --dot: #34433c;
  --accent: #78faae; --accent-strong: #78faae; --accent-hover: #a5ffcb; --on-accent: #0b2a1d; --accent-soft: #1b2c24;
  --late: #ff9086; --late-bg: #3a1f1c; --soon: #f2b45a; --soon-bg: #33270f; --ok: #86d9a0; --ok-bg: #16301f;
  --info: #8fb8f0; --info-bg: #16263a; --purple: #c3b2ff; --brown: #e8bf7a;
  --mark: #f3dc8a; --selection: #1b2c24; --scroll: #1f2a25;
  --sh1: none; --sh2: 0 12px 32px -12px rgba(0,0,0,.7); --focus: 0 0 0 2px rgba(120,250,174,.55); --shadow: 0 0 0;
  --a1: #78faae; --a2: #f2b45a; --a3: #ff9086; --a4: #8fb8f0; --a5: #c3b2ff; --a6: #86d9a0;
  --read: var(--mono); --strip-w: 56px; font-size: 13px;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--scroll) transparent; }
body { margin: 0; font: 14px/1.5 var(--ui); color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
form { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::placeholder { color: var(--faint); opacity: 1; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; text-wrap: balance; }
h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.meta, small { color: var(--mute); font-size: 13px; }
.mute { color: var(--mute); }
.caption { font-size: 12px; font-weight: 500; color: var(--mute); }
.read { font-family: var(--read); }
.mono { font: 12.5px var(--mono); }
.ico { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }

/* ---------- rám: levé menu a obsah ---------- */
.top { display: none; }
.brand { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: center; padding: 0 8px 18px; color: var(--ink); font: 650 14px/1.3 var(--display); }
.brand:hover { text-decoration: none; }
.brand:hover span { text-decoration: underline; text-underline-offset: 3px; }
.brand .ico { width: 24px; height: 24px; padding: 4px; background: var(--accent-strong); color: var(--acc2); border-radius: var(--radius); stroke-width: 2; }
.mini { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: none; color: var(--mute); }
.mini:hover { background: var(--hover); color: var(--ink); }
.menu-btn { display: none; }

.app { display: grid; grid-template-columns: var(--strip-w) minmax(0, 1fr); min-height: 100vh; }
.strip {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 18px 10px 12px;
  background: var(--panel); color: var(--ink); border-right: 1px solid var(--line); font-size: 13.5px; overflow-y: auto;
}
.strip .grp { display: grid; gap: 1px; padding: 0; }
.strip .grp + .grp { padding-top: 10px; }
.strip .grp h2 { padding: 4px 10px 4px; font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: var(--radius); color: var(--mute); font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); min-width: 0; }
.item:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.item[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 0 0 1px var(--line); }
.item .ico { width: 17px; height: 17px; color: var(--mute); }
.item[aria-current="page"] .ico { color: var(--accent); }
.item .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.item .n { justify-self: end; color: var(--faint); font-size: 12px; font-weight: 500; }
.item .dot { justify-self: center; margin: 0; }
.strip .grp.sub .item { min-height: 30px; font-size: 13px; }
.strip .foot { margin-top: auto; display: grid; gap: var(--space-sm); padding: 8px 0 0; border-top: 1px solid var(--line); }
.strip .foot .quick { display: flex; align-items: center; gap: 2px; }
.strip .foot form.out { margin-left: auto; }
.strip .who { padding: 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.strip .status { padding: 0 10px; font-size: 11.5px; color: var(--faint); }
.strip .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; }
.modes { display: flex; gap: 2px; flex-wrap: wrap; padding: 0 2px; }
.modes button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 0; border-radius: var(--radius); background: none; color: var(--mute); font: 600 12px var(--ui); }
.modes button:hover { background: var(--hover); color: var(--ink); }
.modes button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.modes .ico { width: 14px; height: 14px; }

/* Konzole: menu jako lišta ikon, popisky v title. */
[data-theme="console"] .strip { padding: 12px 8px; align-items: center; }
[data-theme="console"] .brand { grid-template-columns: 24px; padding: 0 0 14px; }
[data-theme="console"] .brand span, [data-theme="console"] .strip .grp h2, [data-theme="console"] .item .t, [data-theme="console"] .item .n,
[data-theme="console"] .strip .grp.sub, [data-theme="console"] .strip .who, [data-theme="console"] .strip .status, [data-theme="console"] .modes button span { display: none; }
[data-theme="console"] .item { grid-template-columns: 18px; width: 40px; justify-content: center; padding: 6px; }
[data-theme="console"] .strip .foot { justify-items: center; width: 100%; }
[data-theme="console"] .modes { flex-direction: column; }

.page { display: grid; gap: var(--space-3xl); align-content: start; min-width: 0; width: 100%; max-width: 1120px; padding: 36px 48px 80px; }
.page-head { display: grid; gap: var(--space-sm); }
.page-head .row { display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap; }
.page-head h1 { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; }
.page-head h1 .dot { width: 10px; height: 10px; }
.page-head .tools { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-sm); color: var(--mute); font-size: 13px; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.lede { font: 400 19px/1.45 var(--read); color: var(--ink-2); max-width: var(--measure); white-space: pre-line; overflow-wrap: anywhere; }
.lede.mute { color: var(--mute); font-style: italic; }

/* ---------- prvky ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 6px var(--space-lg); min-height: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 500 13px var(--ui); white-space: nowrap; transition: border-color .15s, background .15s, transform .12s; }
.btn:hover { border-color: var(--line-strong); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.quiet { border-color: transparent; background: none; color: var(--mute); }
.btn.quiet:hover { background: var(--line-soft); color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn .ico { width: 15px; height: 15px; }
.linkbtn { border: 0; background: none; padding: 2px 0; color: var(--mute); font-size: 13px; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: var(--space-sm); border: 0; background: none; padding: 5px var(--space-lg); font: 500 13px var(--ui); color: var(--mute); }
.seg > * + * { border-left: 1px solid var(--line) !important; }
.seg button:hover, .seg a:hover { color: var(--ink); text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--accent-strong); color: var(--on-accent); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.filters a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--mute); font-size: 13px; background: var(--surface); }
.filters a:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }
.filters a[aria-current="page"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

.field { display: grid; gap: var(--space-sm); min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--mute); }
.input, .select { width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); color: var(--ink); font: 14px var(--ui); }
.input:hover, .select:hover { border-color: var(--line-strong); }
textarea.input { resize: vertical; line-height: 1.5; }
.form { display: grid; gap: var(--space-xl); align-content: start; }
.inline { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.inline > .input, .inline > .select { flex: 1 1 200px; width: auto; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-lg); align-items: end; }
.actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.check-label { display: inline-flex; gap: var(--space-sm); align-items: center; font-size: 13px; }

details > summary { cursor: pointer; color: var(--mute); font-size: 13px; width: fit-content; }
details > summary:hover { color: var(--ink); }
details[open] > summary { margin-bottom: var(--space-lg); }
.reveal > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-sm); }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary .ico { width: 14px; height: 14px; transition: transform .15s; }
.reveal[open] > summary .ico { transform: rotate(90deg); }

.empty { color: var(--mute); padding: var(--space-lg) 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--mute); white-space: nowrap; }
.tag.bot { border-color: transparent; background: var(--accent-soft); color: var(--ink); }
.secret { font: 12.5px var(--mono); background: var(--line-soft); padding: var(--space-md) 10px; border-radius: var(--radius); overflow-wrap: anywhere; }
.alert { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: var(--radius); background: var(--danger); color: var(--surface); box-shadow: 0 8px 24px rgb(var(--shadow) / .22); font-size: 14px; animation: rise .24s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Termín: text a tečka. Po termínu plná, brzy půlená, jinak prázdná. */
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; white-space: nowrap; color: var(--mute); }
.due::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.due.late { color: var(--danger); }
.due.late::before { background: currentColor; }
.due.soon { color: var(--warn); }
.due.soon::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* ---------- sekce a sloupce ---------- */
.section { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.section > header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.section > header .meta { font-size: 13px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl) 48px; align-items: start; }
.cols.side { grid-template-columns: minmax(0, 1fr) 300px; }
.ruled { border-top: 1px solid var(--line); padding-top: var(--space-2xl); }

/* Řádky seznamu: oddělené linkou, ne stínem. */
.rows { display: grid; }
.rows > * { display: flex; align-items: flex-start; gap: var(--space-lg); padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.rows > .empty { display: block; }
.rows > :last-child { border-bottom: 1px solid var(--line); }
.rows .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rows .title { font-weight: 500; color: var(--ink); }
.rows .meta { display: block; margin-top: 1px; }
.rows .end { margin-left: auto; display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
a.row-link { color: var(--ink); }
a.row-link:hover { text-decoration: none; background: var(--line-soft); }
a.row-link:hover .title { color: var(--accent); }
.note { white-space: pre-line; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* Zaškrtávátko úkolu */
.check { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius-row); background: var(--surface); display: grid; place-items: center; color: transparent; }
.check:hover { border-color: var(--accent); color: var(--accent); }
.check.on { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.check .ico { width: 12px; height: 12px; stroke-width: 2.2; }
.rows s { color: var(--mute); }

/* ---------- Fokus: věta, příkazový řádek, den ---------- */
.hello .sentence { font: 400 24px/1.4 var(--read); max-width: 48ch; text-wrap: pretty; }
.hello .sentence a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hello .sentence a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.hello .sentence a.late { text-decoration-color: var(--danger); }
.cmd { display: grid; gap: var(--space-md); padding: 14px var(--space-xl); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgb(var(--shadow) / .06); }
.cmd:focus-within { border-color: var(--line-strong); }
.cmd .line { display: flex; align-items: center; gap: 10px; }
.cmd .line .ico { color: var(--accent); }
.cmd .line input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 400 17px/1.4 var(--read); color: var(--ink); }
.cmd .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 24px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); font-size: 12.5px; color: var(--ink); }
.chip .ico { width: 13px; height: 13px; }
.chip b { font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.unknown { background: none; border: 1px dashed var(--line-strong); color: var(--mute); }
.cmd .keys { padding-top: var(--space-md); }
.day { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-3xl) 48px; align-items: start; }
.dayitem { display: flex; gap: 10px; align-items: flex-start; }
.dayitem .check { margin-top: 3px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week > div { display: grid; grid-template-rows: 34px auto; gap: 4px; justify-items: center; font-size: 12px; color: var(--mute); }
.week i { align-self: end; width: 100%; border-radius: 3px; background: var(--line-soft); }
.week i.has { background: var(--accent-strong); opacity: .8; }
.week .is-today { color: var(--ink); font-weight: 600; }
.week .is-today i { outline: 2px solid var(--accent); outline-offset: 2px; }
.dirs-mini > a { display: grid; grid-template-columns: 10px minmax(0, 1fr) 92px; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.dirs-mini > a:last-child { border-bottom: 1px solid var(--line); }
.dirs-mini > a:hover { text-decoration: none; background: var(--line-soft); }
.dirs-mini > a.quiet b { color: var(--mute); }
.dirs-mini b { font-weight: 600; }
.dirs-mini .meta { grid-column: 2 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { display: grid; grid-template-columns: repeat(30, 1fr); gap: 1px; }
.pulse i { height: 10px; border-radius: 1px; background: var(--line-soft); }
.pulse i.on { background: var(--c, var(--accent)); }

/* ---------- Fokus: časová osa dne ---------- */
.hello { display: grid; gap: 2px; }
.hello .meta { font-size: 13px; }
.next-card { display: grid; gap: var(--space-md); padding: 18px 22px 20px; border-radius: var(--radius-lg); background: var(--accent-soft); }
.next-card .meta { color: var(--mute); }
.next-card .next { font: 400 26px/1.25 var(--read); letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: pretty; }
.next-card .next s { color: var(--mute); }
.next-card label.next { display: block; }
.next-card .actions { margin-top: var(--space-xs); }
.next-card .inline .input { background: var(--surface); }

.dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2xl) var(--space-3xl); }
.dir { display: grid; gap: var(--space-md); align-content: start; }
.dirname { display: flex; align-items: center; gap: var(--space-md); color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.dirname:hover { color: var(--accent); text-decoration: none; }
.days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.days i { height: 8px; border-radius: var(--radius-xs); background: var(--line-soft); }
.days i.on { background: var(--c, var(--accent)); }
.days.wide i { height: 12px; }
.dir.quiet .dirname { color: var(--mute); }
.dir .meta { font-size: 13px; }

/* Nabídka rytmu na Fokusu: přijde jednou a sama zmizí. */
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); padding: 10px var(--space-xl); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); }
.offer:hover { border-color: var(--line-strong); text-decoration: none; }
.offer .ico { color: var(--accent); }

/* ---------- svislá časová osa: deník, aktivita, historie ---------- */
.timeline { display: grid; }
.timeline > li { display: grid; grid-template-columns: 64px 20px minmax(0, 1fr); column-gap: var(--space-xl); position: relative; padding-bottom: 20px; }
.timeline > li::before { content: ""; position: absolute; left: 89.5px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline > li:first-child::before { top: 10px; }
.timeline > li:last-child::before { bottom: auto; height: 12px; }
.timeline > li:only-child::before { display: none; }
.timeline .when { font-size: 13px; color: var(--mute); padding-top: 1px; text-align: right; line-height: 1.35; }
.timeline .pt { position: relative; z-index: 1; justify-self: center; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 3px var(--bg); }
.timeline .pt.bot { background: var(--bg); border: 1.5px solid var(--accent-strong); width: 9px; height: 9px; margin-top: 6px; }
.timeline .pt.decision { background: var(--accent-strong); }
.timeline .pt.insight { background: var(--st-read); }
.timeline .pt.event { background: var(--line-strong); }
.timeline .pt.preference { background: var(--a5); }
.timeline .pt.reply { background: var(--st-use); }
.timeline .pt.now { width: 18px; height: 18px; margin-top: 12px; border: 2px solid var(--accent-strong); background: radial-gradient(circle, var(--st-read) 0 3.5px, var(--bg) 4px); }
.timeline .pt.goal { width: 10px; height: 10px; margin-top: 6px; border-radius: 1px; background: var(--bg); border: 2px solid var(--accent-strong); transform: rotate(45deg); }
.timeline > li.future::before { background: repeating-linear-gradient(var(--line-strong) 0 4px, transparent 4px 8px); }
.timeline > li.today .when { font-weight: 600; color: var(--ink); padding-top: 13px; }
.timeline .entry { margin: 0; font: 400 16px/1.45 var(--read); overflow-wrap: anywhere; }
.timeline .detail { margin-top: 3px; font: 400 14px/1.5 var(--read); color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.timeline .meta { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.timeline.compact > li { grid-template-columns: 52px 16px minmax(0, 1fr); column-gap: var(--space-lg); padding-bottom: var(--space-xl); }
.timeline.compact > li::before { left: 71.5px; }
.timeline.compact .entry { font-size: 15px; }

.search { display: flex; gap: var(--space-sm); align-items: center; max-width: 560px; }
.search .input { flex: 1; }

/* ---------- Čmárák ---------- */
.capture-box { display: grid; gap: var(--space-lg); padding: var(--space-xl) 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.capture-box textarea { font: 400 16px/1.5 var(--read); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 20px; background: var(--board); border-radius: var(--radius-lg); align-items: start; }
.board > .empty { grid-column: 1 / -1; padding: var(--space-md) 0; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(var(--shadow) / .06); transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 8px 20px rgb(var(--shadow) / .12); transform: translateY(-2px); }
.card:focus-within { transform: none; }
.card .head { display: flex; gap: var(--space-md); align-items: flex-start; padding: 10px 14px 9px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.card .head .ico { color: var(--accent); margin-top: 2px; }
.card .body { display: grid; gap: 10px; padding: 10px 14px 12px; }
.card .syn { font: 400 14px/1.5 var(--read); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 15em; overflow: hidden; }
.card .url { font-size: 13px; overflow-wrap: anywhere; }
.card .foot { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--mute); }
.card .foot .end { margin-left: auto; display: flex; gap: var(--space-xs); }
.card .sort { padding: 0 14px 12px; }
.card .sort[open] { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.card .sort .form + .form { padding-top: var(--space-lg); border-top: 1px solid var(--line-soft); }

/* Plátno: sloupce Zachyceno, K roztřídění, Roztříděno */
.canvas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); padding: var(--space-xl); background: var(--board); border-radius: var(--radius-lg); align-items: start; }
.col { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.col > header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: 2px 4px; }
.col > header h2 { font-size: 14px; }
.col > .empty { padding: var(--space-md) 4px; }
.card.converted { opacity: .62; box-shadow: none; }
.card.converted:hover { transform: none; box-shadow: none; }
.card.converted .head .ico { color: var(--mute); }
.steps-pick { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; }
.steps-pick legend { margin-bottom: 4px; }

/* Poznámka a návrh bota */
.agent-note { display: grid; gap: var(--space-sm); padding: 10px var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.agent-note.proposal { background: var(--accent-soft); border-color: transparent; }
.agent-note header { display: flex; align-items: center; gap: var(--space-sm); font-size: 12px; color: var(--mute); }
.agent-note header .ico { width: 14px; height: 14px; }
.agent-note header b { color: var(--ink); font-weight: 600; }
.agent-note p { font: 14px/1.5 var(--read); overflow-wrap: anywhere; white-space: pre-line; }
.agent-note .actions .btn { padding: 4px 10px; min-height: 28px; }

/* Výpisky a čtení */
.quote { padding: var(--space-sm) 10px; background: var(--mark); color: var(--mark-ink); border-radius: var(--radius-sm); font: 400 14px/1.5 var(--read); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow-y: auto; }
.readframe { display: block; width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.read-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-3xl); align-items: start; }

/* ---------- Atlas směrů ---------- */
.atlas { display: grid; }
.atlas-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--space-xl) 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.atlas-row:last-child { border-bottom: 1px solid var(--line); }
.atlas-row .who { display: grid; gap: var(--space-sm); align-content: start; }
.atlas-row .who h2 { display: flex; align-items: center; gap: var(--space-md); font-size: 17px; }
.atlas-row .who h2 a { color: var(--ink); }
.atlas-row.quiet .who h2 a { color: var(--mute); }
.atlas-row .intent { font: 400 14px/1.45 var(--read); color: var(--ink-2); }
.load { display: flex; height: 8px; gap: 2px; border-radius: 2px; overflow: hidden; }
.load i, .legend .key { display: block; }
.load .late, .legend .late { background: var(--danger); }
.load .soon, .legend .soon { background: var(--warn); }
.load .later, .legend .later { background: var(--accent-strong); opacity: .7; }
.load .none, .legend .none { background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 5px); }
.lanes-wrap { min-width: 0; display: grid; gap: var(--space-xs); }
.scale { position: relative; height: 20px; border-bottom: 1px solid var(--line-soft); }
.scale span { position: absolute; top: 0; font-size: 12px; color: var(--mute); white-space: nowrap; }
.lanes { position: relative; display: grid; gap: 2px; padding-top: 2px; }
.lane { position: relative; display: block; height: 44px; color: var(--ink); border-radius: var(--radius-row); }
.lane:hover { text-decoration: none; background: var(--line-soft); }
.lane > * { z-index: 1; }
.lane .name { position: absolute; left: 4px; top: 3px; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; background: var(--bg); padding-right: 6px; }
.lane:hover .name { background: var(--line-soft); }
.lane .health { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--mute); }
.lane .health.stuck { color: var(--danger); }
.lane .health.waits { color: var(--warn); }
.lane .bar { position: absolute; top: 29px; height: 4px; border-radius: 2px; background: var(--c); opacity: .4; }
.lane .ms { position: absolute; top: 25px; width: 11px; height: 11px; margin-left: -5.5px; transform: rotate(45deg); border-radius: 1px; background: var(--bg); border: 2px solid var(--c); }
.lane .ms.hit { background: var(--c); }
.today-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--warn); border-radius: 1px; z-index: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .key { width: 18px; height: 8px; border-radius: 2px; }
.legend .key.ms { width: 9px; height: 9px; border: 2px solid var(--accent-strong); transform: rotate(45deg); border-radius: 1px; }
.legend .key.today { width: 2px; height: 12px; background: var(--warn); }

/* ---------- projekty ---------- */
.plist { display: grid; gap: var(--space-3xl); }
.prow { display: grid; gap: 3px; }
.prow .title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.prow .state { font: 400 15px/1.45 var(--read); color: var(--ink-2); }
.history .entry { font-size: 15px; }
.bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent-strong); }
.milestones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; border-top: 1px solid var(--line-strong); padding-top: var(--space-lg); }
.milestones div { display: grid; gap: 2px; }
.milestones span { font-size: 13px; color: var(--mute); }
.milestones b { font-weight: 500; }
.milestones .current span { color: var(--accent); font-weight: 600; }
.milestones .current b { font-weight: 600; }
.milestones .past b { color: var(--mute); font-weight: 400; }
.msedit { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; }
.msmove { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: var(--space-md); align-items: center; }
.msmove label { font-size: 14px; }
.gantt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.gantt { min-width: 640px; font-size: 13px; }
.gantt .r { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1px solid var(--line-soft); }
.gantt .r:first-child { border-top: 0; }
.gantt .lab { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt .lane { position: relative; min-height: 36px; }
.gantt .weeks { display: flex; }
.gantt .weeks span { flex: 1 1 0; padding: var(--space-sm) 4px; color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; }
.gantt .phase { position: absolute; top: 11px; height: 14px; min-width: 6px; border-radius: var(--radius-row); background: var(--accent-strong); }
.gantt .phase.done { background: var(--line-strong); }
.gantt .phase.moved { background: var(--st-read); }
.gantt .ms { position: absolute; top: 12px; width: 11px; height: 11px; margin-left: -5.5px; transform: rotate(45deg); border-radius: 1px; background: var(--accent-strong); }
.gantt .ms.done { background: var(--line-strong); }
.gantt .ms.moved { background: var(--st-read); }
.gantt .ghost { position: absolute; top: 12px; width: 11px; height: 11px; margin-left: -5.5px; transform: rotate(45deg); border: 1.5px dashed var(--st-read); }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--st-read); }
.file .ficon { flex: none; width: 34px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-row); background: var(--panel); font: 500 9.5px var(--mono); color: var(--mute); }

/* Oblouk milníků na mobilu */
.msarc, .only-phone { display: none; }
.arcbox { position: relative; }
.arcbox svg { display: block; width: 100%; height: auto; }
.arcbox path, .arc-today { fill: none; stroke-width: 12; }
.arc-track, .arc-elapsed, .arc-phase { stroke-linecap: round; }
.arc-track { stroke: var(--line-soft); }
.arc-phase { stroke: var(--accent-strong); opacity: .3; }
.arc-elapsed { stroke: var(--accent-strong); }
.arc-today { stroke: var(--st-read); stroke-width: 3; }
.arc-point circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.arc-point text { font: 600 12px var(--ui); text-anchor: middle; fill: var(--ink); }
.arc-point.done circle, .arc-point.next circle { fill: var(--accent-strong); stroke: var(--bg); }
.arc-point.next circle { stroke-width: 3; }
.arc-point.done text, .arc-point.next text { fill: var(--on-accent); }
.arc-point.next text { font-size: 14px; }
.arc-center { position: absolute; left: 20%; right: 20%; bottom: 2%; display: grid; justify-items: center; text-align: center; }
.arc-center span { font-size: 13px; color: var(--mute); }
.arc-center b { font: 400 26px/1.15 var(--read); }
.arc-list > div { display: flex; justify-content: space-between; gap: var(--space-lg); min-height: 40px; padding-block: var(--space-sm); align-items: center; border-top: 1px solid var(--line); }
.arc-list > div > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.arc-list > div > span:last-child { flex: none; white-space: nowrap; color: var(--mute); }
.arc-list .past { color: var(--mute); }
.arc-list .current { font-weight: 600; color: var(--accent); }

/* ---------- úkoly: přetahování ---------- */
.tasklist .rows > .task { align-items: flex-start; }
.grip { flex: none; display: grid; place-items: center; width: 16px; height: 20px; padding: 0; border: 0; background: none; color: var(--faint); cursor: grab; touch-action: none; }
.grip:hover { color: var(--ink); }
.grip .ico { width: 14px; height: 14px; }
.task.dragging { background: var(--accent-soft); border-radius: var(--radius); opacity: .9; cursor: grabbing; }
.tasklist:has(.task) > .rows > .empty { display: none; }
.tedit > summary { list-style: none; color: var(--ink); font-size: 14px; width: auto; }
.tedit > summary::-webkit-details-marker { display: none; }
.tedit > summary:hover { color: var(--accent); }
.tedit[open] > summary { font-weight: 600; }
.task:has(.tedit[open]) > .end { display: none; }
.resume-card { padding: var(--space-xl) 20px; border-radius: var(--radius-lg); background: var(--accent-soft); }

/* Pracovna: seznam úkolů a inspektor vpravo */
.page:has(> .work) { max-width: none; padding-right: 0; padding-top: 0; padding-bottom: 0; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 var(--space-3xl); align-items: start; }
.worklist { display: grid; gap: var(--space-2xl); align-content: start; padding: 36px 0 80px; min-width: 0; max-width: 900px; }
.quickadd { display: grid; gap: var(--space-sm); }
.quickadd .inline { padding: 0 var(--space-sm) 0 var(--space-lg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quickadd .inline .ico { color: var(--accent); }
.quickadd .inline .input { border: 0; background: none; font: 400 16px var(--read); min-height: 44px; }
.quickadd .reveal .fields { margin-top: var(--space-sm); }
.tasklist.is-late > header h2 { color: var(--danger); }
.tasklist .rows > .task { align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 0; }
.tasklist .rows > .task:hover { background: var(--line-soft); }
.tasklist .rows > .task[aria-current="true"] { background: var(--accent-soft); border-radius: var(--radius); }
.topen { display: grid; gap: 1px; color: var(--ink); min-width: 0; }
.topen:hover { text-decoration: none; }
.topen:hover .ttitle { color: var(--accent); }
.ttitle { font: 400 15.5px/1.4 var(--read); display: inline-flex; gap: 6px; align-items: baseline; }
.ttitle .ico { width: 13px; height: 13px; color: var(--accent); flex: none; }
.tlast { font-size: 12.5px; color: var(--mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tproj { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.tdue { min-width: 84px; text-align: right; }
.inspector-slot { display: contents; }
.inspector { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; display: grid; gap: 18px; align-content: start; padding: 24px 24px 40px; background: var(--surface); border-left: 1px solid var(--line); }
.inspector .crumbs { align-items: center; }
.inspector .crumbs .close { margin-left: auto; color: var(--mute); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius); }
.inspector .crumbs .close:hover { background: var(--line-soft); color: var(--ink); }
.ititle { font: 400 22px/1.3 var(--read); letter-spacing: -.01em; overflow-wrap: anywhere; }
.inote { font: 400 15px/1.55 var(--read); color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.props { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px var(--space-lg); margin: 0; font-size: 13px; }
.props dt { color: var(--mute); }
.props dd { margin: 0; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: var(--space-lg); border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--mute); }
@media (min-width: 901px) and (max-width: 1180px) {
  .work { grid-template-columns: 1fr; padding-right: 48px; }
  .inspector { position: static; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 80px; }
  .work:has(.inspector .ititle) .inspector { order: -1; margin: 24px 0 0; }
}
.kbd { font: 500 11.5px var(--mono); padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; color: var(--mute); background: var(--surface); }

/* Hodnocení knihy: tvar, ne jen barva */
.stars { color: var(--st-read); letter-spacing: 1px; font-size: 12px; }

/* ---------- přihlášení ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--space-xl); background: var(--bg); }
.login form { width: 100%; max-width: 360px; display: grid; gap: var(--space-xl); padding: var(--space-2xl); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 16px 48px rgb(var(--shadow) / .12); }
.login .brand { width: auto; padding: 0; color: var(--ink); font-size: 18px; }
.login .brand .ico { color: var(--accent); width: 24px; height: 24px; }
.login .error { color: var(--danger); font-size: 13px; }

/* ---------- mobil ---------- */
.tabbar { display: none; }
.scrim { display: none; }
@media (max-width: 900px) {
  .page { padding: 24px 16px 104px; gap: 28px; }
  .menu-btn { display: grid; }
  .brand { width: auto; }
  .top .capture, .top .who { display: none; }
  .app { grid-template-columns: 1fr; }
  .strip { position: fixed; top: var(--top-h); left: 0; bottom: 0; z-index: 30; width: min(300px, 86vw); height: auto; transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: 0 8px 24px rgb(var(--shadow) / .22); }
  body.nav-open .strip { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--top-h) 0 0; z-index: 25; background: rgb(var(--shadow) / .4); }
  .cols, .cols.side, .read-grid { grid-template-columns: 1fr; }
  .page:has(> .work) { padding: 0 16px; }
  .work { grid-template-columns: 1fr; }
  .worklist { padding: 24px 0 24px; }
  .inspector { position: static; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 104px; }
  .work:has(.inspector .ititle) .inspector { order: -1; margin: 16px 0 0; }
  .tproj { display: none; }
  .tdue { min-width: 0; }
  .btn, .input, .select { min-height: 44px; }
  .mini { width: 40px; height: 40px; }
  .board { padding: 12px; gap: 12px; grid-template-columns: 1fr; }
  .canvas { grid-template-columns: 1fr; padding: 12px; }
  .atlas-row { grid-template-columns: 1fr; }
  .card:hover { transform: none; }
  .next-card .next { font-size: 22px; }
  .day { grid-template-columns: 1fr; }
  .hello .sentence { font-size: 20px; }
  .timeline > li { grid-template-columns: 48px 14px minmax(0, 1fr); column-gap: 10px; }
  .timeline > li::before { left: 64.5px; }
  .milestones, .only-wide, .gantt-wrap { display: none; }
  .msarc { display: grid; gap: var(--space-lg); }
  .only-phone { display: inline; }
  .msmove { grid-template-columns: 1fr; }
  .msedit { align-items: start; }
  .alert { bottom: 92px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); font-size: 11.5px; text-align: center; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 44px; padding-top: 4px; color: var(--mute); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a .ico { width: 20px; height: 20px; }
  .tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .tabbar a.add { justify-self: center; align-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent); }
  .tabbar a.add .ico { width: 22px; height: 22px; }
}
@media (hover: none) { .keys { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =====================================================================
   Vrstva TaskTracker_prace: prvky a komponenty podle design systému.
   Stojí na konci, takže přepisuje starší pravidla stejné váhy.
   ===================================================================== */
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.ico { stroke-width: 1.8; }
h1 { font: 650 22px/1.2 var(--display); letter-spacing: -.02em; }
h2 { font: 650 16px/1.3 var(--display); letter-spacing: -.01em; }
.page { max-width: 1180px; padding: 24px 28px 48px; gap: 28px; container-type: inline-size; container-name: main; }
.lede { font: 400 15px/1.5 var(--ui); color: var(--mute); }
.lede.mute { font-style: normal; }
.meta, small { font-size: 12.5px; }
kbd, .kbd { font: 11px var(--mono); background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--mute); }

/* Tlačítka: jedna primární akce, ostatní tichá. */
.btn { min-height: 32px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 550 13px var(--ui); transition: background .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { background: var(--hover); border-color: var(--line); }
.btn:active { transform: none; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.quiet { border-color: transparent; background: none; color: var(--mute); }
.btn.quiet:hover { background: var(--hover); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--late); border-color: var(--line); }
.btn.danger:hover { background: var(--late-bg); border-color: var(--late); }
.linkbtn { color: var(--mute); }
.linkbtn:hover { color: var(--accent); }

.seg { border-radius: var(--radius); }
.seg button, .seg a { font: 600 12.5px var(--ui); padding: 6px 12px; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--accent-strong); color: var(--on-accent); }
.filters a { border-radius: 999px; font-weight: 600; font-size: 12px; padding: 3px 10px; }
.filters a[aria-current="page"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

.input, .select { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); color: var(--ink); font: 14px var(--ui); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input:hover, .select:hover { border-color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field > label, .label { font-size: 12px; font-weight: 500; color: var(--mute); }
.field .hint { font-size: 12.5px; color: var(--faint); }

/* Odpočet termínu: barevný text na jemném pozadí, nikdy bílý na plné barvě. */
.due { display: inline-flex; align-items: center; gap: 0; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--line-soft); color: var(--mute); }
.due::before { display: none; }
.due.late { background: var(--late-bg); color: var(--late); }
.due.soon { background: var(--soon-bg); color: var(--soon); }
.due.ok { background: var(--ok-bg); color: var(--ok); }

/* Zaškrtnutí: kolečko jako v agendě. */
.check { width: 18px; height: 18px; border: 1.75px solid var(--faint); border-radius: 50%; background: none; }
.check:hover { border-color: var(--accent); color: var(--accent); }
.check.on { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.check .ico { width: 11px; height: 11px; stroke-width: 3; }

.empty { color: var(--mute); font-size: 13.5px; }
.tag { border-radius: 4px; font-size: 11px; font-weight: 600; padding: 0 6px; background: var(--line-soft); border-color: transparent; color: var(--mute); }
.tag.bot { background: var(--info-bg); color: var(--info); }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.chip small { font-weight: 500; font-size: 12px; color: var(--mute); }
.chip.unknown { background: transparent; border: 1px dashed var(--soon); color: var(--soon); }
.alert { background: var(--late-bg); color: var(--late); border: 1px solid var(--late); box-shadow: var(--sh2); }

/* Seznamy: řádky oddělené linkou, nadpis seznamu silnou čarou. */
.rows > * { border-top-color: var(--line); }
.rows > :first-child { border-top: 1px solid var(--ink); }
.rows .title { font-weight: 600; }
a.row-link:hover { background: var(--hover); }
.section > header h2 { font-size: 15px; }
.next-card { background: var(--accent-soft); border-radius: var(--radius-lg); }
.next-card .next { font: 400 22px/1.3 var(--serif); }
.agent-note.proposal, .resume-card { background: var(--accent-soft); }
.card { border-radius: var(--radius-lg); box-shadow: var(--sh1); }
.card:hover { box-shadow: var(--sh2); transform: none; }
.capture-box, .cmd, .quickadd .inline { border-radius: var(--radius-xl); }
.timeline .pt { background: var(--accent-strong); }
.timeline .pt.goal { border-color: var(--brown); }
.timeline .entry { font: 500 14.5px/1.45 var(--ui); }
.inspector { background: var(--surface); border-left: 1px solid var(--line); }
.ititle { font: 650 19px/1.3 var(--display); letter-spacing: -.015em; }
.ttitle { font: 600 14px/1.4 var(--ui); }
.tasklist .rows > .task[aria-current="true"] { background: var(--accent-soft); }
.quote { background: var(--mark); color: var(--mark-ink); font-family: var(--ui); }

/* ---------- Dnes (Fokus) ---------- */
.tdGrid { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 48px; }
.tdHead { font: 400 36px/1.18 var(--serif); letter-spacing: -.015em; margin: 8px 0 10px; text-wrap: balance; }
.tdHead em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--acc2) 55%, transparent) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }
.tdHead a { color: inherit; text-decoration: none; }
.tdHead .late { color: var(--late); }
.tdMeta { color: var(--mute); margin: 0 0 24px; font-size: 14px; }
.tdMeta .late { color: var(--late); }
.tdCompose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 14px 16px 12px; box-shadow: var(--sh2); margin-bottom: 36px; }
.tdCompose:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.tdCompose input[name=text] { width: 100%; border: 0; outline: 0; background: none; padding: 0; font: 17px/1.45 var(--ui); color: var(--ink); box-shadow: none; }
.tdParsed { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; min-height: 24px; }
.tdCfoot { display: flex; align-items: center; gap: 8px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.tdCfoot .btns { display: flex; gap: 8px; margin-left: auto; }
.tdSec { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 20px; margin-bottom: 30px; }
.tdLab { padding-top: 10px; }
.tdLab b { display: block; font-weight: 650; font-size: 15px; }
.tdLab span { color: var(--faint); font-size: 12.5px; }
.tdLab.late b { color: var(--late); }
.tdItems { border-top: 1px solid var(--ink); }
.tdItem { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tdItem .check { margin-top: 2px; }
.tdT { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.tdT a { color: inherit; }
.tdM { display: flex; gap: 4px 12px; flex-wrap: wrap; margin-top: 3px; color: var(--mute); font-size: 12.5px; align-items: center; }
.tdM .ico { width: 13px; height: 13px; }
.tdM a { color: var(--mute); }
.tdN { color: var(--faint); font-size: 12.5px; margin-top: 3px; max-width: 62ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdWhen { text-align: right; font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.tdWhen b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 650; }
.tdWhen.late b { color: var(--late); } .tdWhen.soon b { color: var(--soon); }
.tdMain { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.tdMain .tdT { font: 400 22px/1.3 var(--serif); }
.tdMain .actions { margin-top: 10px; }
.tdMain form.inline .input { background: var(--surface); }
.msIc { color: var(--brown); font-size: 14px; line-height: 18px; text-align: center; margin-top: 2px; }
.tdMore { margin: -14px 0 30px 140px; font-size: 13px; font-weight: 600; }
.tdEmpty { color: var(--mute); font-size: 14px; padding: 12px 0; border-top: 1px solid var(--ink); }
.tdRail h3 { font-size: 12.5px; font-weight: 650; color: var(--mute); margin: 0 0 10px; display: flex; justify-content: space-between; }
.tdRail h3 a { font-weight: 600; }
.tdRail section { margin-bottom: 30px; }
.tdWeek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tdDay { text-align: center; padding: 7px 0 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 11.5px; color: var(--faint); }
.tdDay b { display: block; font-size: 17px; font-weight: 650; color: var(--ink); margin-top: 1px; }
.tdDay.zero b { color: var(--faint); font-weight: 500; }
.tdDay.we { background: none; border-style: dashed; }
.tdDay.today { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.tdDay.today b { color: var(--on-accent); }
.tdRow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
a.tdRow:hover { text-decoration: none; background: var(--hover); }
.tdRow:first-of-type { border-top: 1px solid var(--ink); }
.tdRow > div { flex: 1; min-width: 0; }
.tdRow b { display: block; font-weight: 600; }
.tdRow small { color: var(--faint); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdRow small.late { color: var(--late); font-weight: 600; }
.tdRow .pulse { margin-top: 6px; }
.tdRow .pulse i { height: 8px; background: var(--line-soft); }
.tdRow .pulse i.on { background: var(--c); }
.tdBox { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 13px; color: var(--mute); }
.tdBox b { color: var(--ink); }
.offer { border-radius: var(--radius-lg); }
.offer .ico { color: var(--accent); }

/* ---------- Čmárák ---------- */
.spHead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spHead h1 { margin: 0; }
.spCapture { display: grid; gap: 8px; }
.spCapture .row { display: flex; gap: 8px; align-items: flex-start; }
.spCapture textarea { flex: 1; min-height: 46px; }
.spCols { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.spCol { background: var(--panel-2); border-radius: var(--radius-lg); padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 10px; }
.spColH { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: var(--mute); padding: 2px 2px 0; }
.spCol.ready .spColH { color: var(--accent); }
.spCol > .empty { font-size: 12.5px; color: var(--faint); padding: 4px 2px; }
.spCard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spCard:hover { box-shadow: var(--sh2); }
.spT { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.spB { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 12em; overflow: hidden; color: var(--ink-2); }
.spB.quote { padding: 4px 8px; border-radius: var(--radius-sm); }
.spChips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.spTag { font-size: 11px; font-weight: 600; color: var(--mute); background: var(--line-soft); padding: 0 6px; border-radius: 4px; }
.spLink { font-size: 12px; overflow-wrap: anywhere; }
.spBot { display: grid; gap: 6px; background: var(--accent-soft); border-radius: var(--radius); padding: 8px 10px; font-size: 12.5px; color: var(--mute); }
.spBot b { color: var(--ink); }
.spBot p { white-space: pre-line; }
.spFoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.spActs { display: flex; gap: 2px; }
.spActs .btn { min-height: 26px; padding: 2px 6px; }
.spCard.conv { opacity: .6; }
.spCard.conv .spT { text-decoration: line-through; text-decoration-color: var(--faint); }
.spConvLink { font-size: 12px; font-weight: 600; color: var(--accent); }
.spCard .sort { border-top: 1px solid var(--line-soft); padding-top: 6px; }
.spCard .sort > summary { font-size: 12px; font-weight: 600; color: var(--accent); }
.spCard .sort .form { gap: 8px; padding-top: 8px; }
.spCard .sort .form + .form { border-top: 1px solid var(--line-soft); }
.spSteps { display: grid; gap: 2px; font-size: 12.5px; color: var(--faint); }
.spSteps div { display: flex; gap: 6px; align-items: center; }
.spSteps .box { flex: none; width: 11px; height: 11px; border: 1.5px solid var(--faint); border-radius: 3px; }

/* ---------- Směry (obdoba stránky Tým) ---------- */
.tmHead { font: 650 30px/1.15 var(--display); letter-spacing: -.025em; margin: 4px 0 10px; text-wrap: balance; }
.tmHead .late { color: var(--late); }
.tmLead { font-size: 15px; color: var(--mute); max-width: 70ch; }
.tmLead b { color: var(--ink); } .tmLead .late { color: var(--late); }
.tmAway { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.tmAway b { color: var(--ink); }
.tmAway .ico { color: var(--accent); }
.tmBh { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.tmBh h2 { font: 650 18px var(--display); }
.tmBh .sp { flex: 1; }
.tmLegend { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0; font-size: 12.5px; color: var(--mute); }
.tmLegend span { display: inline-flex; gap: 7px; align-items: center; }
.tmLegend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-late { background: var(--m-late); } .sw-soon { background: var(--m-soon); } .sw-ok { background: var(--m-ok); }
.sw-none { background: repeating-linear-gradient(135deg, var(--m-none) 0 2px, transparent 2px 5px); outline: 1px solid var(--m-none); outline-offset: -1px; }
.tmLoad { border-top: 1px solid var(--ink); }
.tmRow { display: grid; grid-template-columns: 230px minmax(0, 1fr) 84px 96px 34px; gap: 0 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.tmRow:hover { background: var(--hover); text-decoration: none; }
.tmName { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tmName .avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid var(--c); color: var(--ink); }
.tmName > span:last-child { min-width: 0; }
.tmName b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmName small { display: block; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmSeg { display: flex; height: 22px; gap: 2px; min-width: 0; }
.tmSeg i { display: grid; place-items: center; font: 700 11px var(--ui); font-style: normal; border-radius: 3px; min-width: 0; overflow: hidden; }
.tmSeg .late { background: var(--m-late); color: #fff; } .tmSeg .soon { background: var(--m-soon); color: #241500; }
.tmSeg .ok { background: var(--m-ok); color: #06210f; }
.tmSeg .none { background: repeating-linear-gradient(135deg, var(--m-none) 0 2px, transparent 2px 5px); outline: 1px solid var(--m-none); outline-offset: -1px; color: var(--ink); }
.tmSeg.empty { color: var(--faint); font-size: 12.5px; align-items: center; padding: 0; }
.tmTot { text-align: right; font-size: 13px; color: var(--mute); } .tmTot b { font-size: 15px; color: var(--ink); }
.tmLate { text-align: right; font-size: 13px; font-weight: 650; color: var(--faint); } .tmLate.bad { color: var(--late); }
.tmRow .ico { color: var(--faint); }
.tl { border-top: 1px solid var(--ink); }
.tlRow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 34px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
a.tlRow:hover { background: var(--hover); text-decoration: none; }
.tlLbl { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tlLbl small { font-weight: 500; color: var(--faint); }
.tlAxis, .tlTrack { position: relative; height: 24px; }
.tlHead { border-bottom: 1px solid var(--line); }
.tlAxis span { position: absolute; top: 4px; font-size: 11px; color: var(--faint); border-left: 1px solid var(--line); padding-left: 4px; height: 16px; overflow: hidden; white-space: nowrap; }
.tlToday { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--m-late); }
.tlBar { position: absolute; top: 7px; height: 10px; border-radius: 5px; background: var(--m-ok); }
.tlBar.waits { background: var(--m-soon); } .tlBar.stuck { background: var(--m-late); }
.tlMs { position: absolute; top: 3px; transform: translateX(-50%); color: var(--brown); font-size: 14px; line-height: 18px; padding: 0 3px; }
.tlMs.done { color: var(--ok); } .tlMs.late { color: var(--late); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh1); color: var(--ink); }
a.pcard:hover { box-shadow: var(--sh2); text-decoration: none; }
.pcHead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pcName { font-size: 16px; font-weight: 650; line-height: 1.3; display: flex; gap: 8px; align-items: center; }
.pcIntent { font: 400 14px/1.45 var(--serif); color: var(--mute); margin-top: 4px; }
.pcStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.pcStats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcV { font-size: 17px; font-weight: 650; white-space: nowrap; } .pcV.bad { color: var(--late); }
.pcL { font-size: 11px; color: var(--faint); }
.pcRow { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.pcRow .msd { color: var(--brown); } .pcRow.warnRow { color: var(--soon); }
.hb { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.hb.green { background: var(--ok-bg); color: var(--ok); } .hb.amber { background: var(--soon-bg); color: var(--soon); }
.hb.red { background: var(--late-bg); color: var(--late); } .hb.closed { background: var(--line-soft); color: var(--mute); }
.projB { display: inline-flex; gap: 4px; align-items: center; color: var(--mute); }

[data-theme="console"] .tdHead, [data-theme="console"] .tmHead { font: 650 24px/1.2 var(--display); }
[data-theme="console"] .tdCompose { box-shadow: none; }
[data-theme="console"] .tdItem, [data-theme="console"] .tdRow, [data-theme="console"] .tmRow { padding-block: 6px; }
[data-theme="console"] .tdN { display: none; }
@container main (max-width: 1060px) { .tdGrid { grid-template-columns: 1fr; gap: 8px; } }
@container main (max-width: 760px) {
  .tdSec { grid-template-columns: 1fr; } .tdMore { margin-left: 0; } .tdHead { font-size: 28px; }
  .spCols { grid-template-columns: 1fr; }
  .tmRow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; } .tmRow .tmSeg { grid-column: 1 / -1; grid-row: 2; } .tmRow .tmTot, .tmRow > .ico { display: none; }
  .tlRow { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .top { display: flex; position: sticky; top: 0; z-index: 20; height: 48px; align-items: center; gap: 8px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .top .brand { padding: 0; }
  .app { grid-template-columns: 1fr; }
  .strip { position: fixed; top: 48px; left: 0; bottom: 0; height: auto; z-index: 30; width: min(280px, 86vw); transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: var(--sh2); }
  body.nav-open .strip { transform: none; }
  body.nav-open .scrim { inset: 48px 0 0; }
  .page { padding: 20px 16px 104px; }
  .tabbar a.add { background: var(--accent-strong); color: var(--on-accent); }
}

/* ---------- Revize 0.7: věta, lišta, tabulka, kanban, panel ---------- */
.pageH { display: grid; gap: 4px; }
.pageH .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pageH .row h1 { flex: 1; }
.summary { font-size: 14.5px; color: var(--mute); max-width: 90ch; }
.summary b, .summary a { color: var(--ink); font-weight: 650; }
.summary a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.summary a.late { color: var(--late); text-decoration-color: currentColor; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar .quick { display: flex; gap: 6px; flex: 1 1 320px; max-width: 520px; }
.toolbar .quick .input { flex: 1; }
.chip a { display: inline-grid; place-items: center; color: inherit; }
.chip .ico { width: 13px; height: 13px; }

.tblWrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: clip; background: var(--surface); }
.tblWrap table { width: 100%; border-collapse: collapse; }
.tblWrap th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tblWrap th.tr, .tblWrap td.sb { text-align: right; }
.tblWrap td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr.gh td { background: var(--bg); padding: 8px 12px; font-size: 12.5px; font-weight: 650; color: var(--mute); border-top: 1px solid var(--line); }
tr.gh:first-child td { border-top: 0; }
tr.gh .dot { width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; }
tr.gh .c { color: var(--faint); font-weight: 500; margin-left: 6px; }
.band-late { --c: var(--m-late); } .band-today { --c: var(--m-soon); } .band-week { --c: var(--m-ok); } .band-later { --c: var(--m-ok); } .band-none { --c: var(--m-none); }
tr.row { cursor: pointer; }
tr.row:hover { background: var(--hover); }
tr.row[aria-current="true"] { background: var(--accent-soft); }
td.dcell { width: 72px; line-height: 1.2; white-space: nowrap; }
td.dcell b { display: block; font-size: 14px; font-weight: 650; color: var(--ok); }
td.dcell small { color: var(--faint); font-size: 11.5px; }
td.dcell.late b { color: var(--late); } td.dcell.soon b { color: var(--soon); } td.dcell.none b { color: var(--faint); font-weight: 500; }
td.lt { max-width: 0; width: 100%; }
td.lt .t { display: block; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
td.lt .t:hover { color: var(--accent); text-decoration: none; }
td.lt .t .ico { width: 13px; height: 13px; color: var(--accent); }
td.lt .l2 { display: flex; gap: 10px; margin-top: 2px; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; }
td.lt .l2 .n { overflow: hidden; text-overflow: ellipsis; }
td.wh { white-space: nowrap; font-size: 13px; }
td.st { width: 110px; }
.status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--line-soft); color: var(--mute); }
.prog { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--faint); white-space: nowrap; }
.prog i { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.prog i b { display: block; height: 100%; background: var(--m-ok); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.kcol { background: var(--panel-2); border-radius: var(--radius-lg); padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.khead { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 650; color: var(--mute); padding: 2px 2px 4px; }
.kcol .rows { display: flex; flex-direction: column; gap: 8px; }
.kcol .rows > * { border: 0; padding: 0; }
.kcol .rows > :first-child { border-top: 0; }
.kcol .rows > .empty { font-size: 12.5px; color: var(--faint); padding: 6px 2px; }
.kcol:has(.task) .rows > .empty { display: none; }
.tile { background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius-lg); padding: 10px 12px !important; display: grid !important; gap: 6px; box-shadow: var(--sh1); }
.tile:hover { box-shadow: var(--sh2); }
.tile[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent); }
.tile.dragging { opacity: .5; }
.ttop { display: flex; gap: 8px; align-items: flex-start; }
.ttop .ttl { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); }
.ttop .ttl .ico { width: 13px; height: 13px; color: var(--accent); }
.tmeta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.tile .tlast { font-size: 12.5px; color: var(--faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }

.work:not(:has(.inspector)) { grid-template-columns: 1fr; }
.inspector { gap: 0; padding: 12px 18px 32px; }
.inspector .blk { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 8px; }
.inspector .blk:last-of-type { border-bottom: 0; }
.inspector .blk.head { gap: 6px; }
.rowBetween { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.blkH { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--mute); }
.blkH .meta { font-weight: 400; font-size: 12px; }
.plan-seg { display: inline-flex; margin-top: 4px; }
.plan-seg form { display: contents; }
.plan-seg button { border: 0; background: none; padding: 4px 10px; font: 600 12px var(--ui); color: var(--mute); }
.plan-seg form + form button { border-left: 1px solid var(--line); }
.plan-seg button[aria-pressed="true"] { background: var(--accent-strong); color: var(--on-accent); }
.stepRow { display: flex; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: var(--radius); }
.stepRow:hover { background: var(--hover); }
.stepRow .grow { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.stepRow .grow .meta { display: block; font-weight: 400; font-size: 11.5px; }
.stepRow.done .grow { font-weight: 400; color: var(--faint); text-decoration: line-through; }
.stepRow.done .grow .meta { text-decoration: none; }
.stepRow .mini { width: 26px; height: 26px; opacity: 0; }
.stepRow:hover .mini, .stepRow .mini:focus-visible { opacity: 1; }
.addRow .input { background: var(--bg); }
.upd { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.upd p { white-space: pre-line; overflow-wrap: anywhere; }
.hist { font-size: 12.5px; color: var(--faint); padding: 2px 0; }
.hist b { color: var(--mute); font-weight: 600; }
.inspector .actions .grow { flex: 1; }
.empty.sm { padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 12.5px; color: var(--faint); }
.empty.big { display: grid; justify-items: start; gap: 10px; padding: 28px 22px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--mute); }
@media (hover: none) { .stepRow .mini { opacity: 1; } }
@container main (max-width: 900px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } td.wh, td.st, .tblWrap th:nth-child(3), .tblWrap th:nth-child(4) { display: none; } }

/* Projekty: karty se stavem */
.pgroup { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.groupH { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 650; color: var(--mute); text-transform: none; margin: 0; }
.groupH .c, tr.gh .c { font-weight: 500; color: var(--faint); font-size: 12px; margin-left: 6px; }
.pcName .dot { background: var(--c, var(--line-strong)); }
.pcMeta { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.pcTlAx { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 2px; }
.pcNext { font-size: 13px; padding: 8px 10px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); }
.pcNext b { color: var(--accent); font-weight: 650; }
.pcNext.none { background: none; border: 1px dashed var(--line-strong); color: var(--mute); }
a.chip[aria-current="true"] { background: var(--accent); color: var(--surface); }
td.late { color: var(--late); font-weight: 650; }

/* Čmárák: barevné lístky */
.spTags { display: flex; gap: 6px; flex-wrap: wrap; }
.spF { background: var(--surface); border: 1px solid var(--line); color: var(--mute); padding: 3px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; }
.spF:hover { color: var(--ink); text-decoration: none; }
.spF.on { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.spGrid { columns: 4 260px; column-gap: 14px; }
.spNote { break-inside: avoid; margin: 0 0 14px; background: var(--nb); border: 1px solid var(--nl); border-radius: var(--radius-lg); padding: 12px 14px 10px; position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.spCol .spNote { margin: 0; }
.spNote[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.c1 { --nb: #fffbe6; --nl: #efe3a8; } .c2 { --nb: #eef6ff; --nl: #c9dcf3; } .c3 { --nb: #eefaf1; --nl: #c6e6cf; } .c4 { --nb: #fbf0f5; --nl: #ecd0dd; } .c5 { --nb: var(--surface); --nl: var(--line); }
:root[data-theme="dark"] .c1, :root[data-theme="console"] .c1 { --nb: #302d20; --nl: #4a4430; }
:root[data-theme="dark"] .c2, :root[data-theme="console"] .c2 { --nb: #232c38; --nl: #36445a; }
:root[data-theme="dark"] .c3, :root[data-theme="console"] .c3 { --nb: #22302a; --nl: #36483d; }
:root[data-theme="dark"] .c4, :root[data-theme="console"] .c4 { --nb: #33262d; --nl: #4c3a43; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .c1 { --nb: #302d20; --nl: #4a4430; } :root:not([data-theme]) .c2 { --nb: #232c38; --nl: #36445a; }
  :root:not([data-theme]) .c3 { --nb: #22302a; --nl: #36483d; } :root:not([data-theme]) .c4 { --nb: #33262d; --nl: #4c3a43; }
}
.spPinIc { position: absolute; right: 10px; top: 10px; color: var(--accent); }
.spPinIc .ico { width: 14px; height: 14px; }
.spNote .spT { padding-right: 18px; }
.spNote .spB { white-space: pre-wrap; }
.spChips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.spPerson { font-size: 11px; font-weight: 600; color: var(--info); background: var(--info-bg); padding: 0 6px; border-radius: 4px; }
a.spTag:hover { color: var(--ink); text-decoration: none; }
.spBotLine { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--mute); padding-top: 6px; border-top: 1px dashed var(--nl); margin: 0; }
.spBotLine .ico { width: 14px; height: 14px; flex: none; }
.spBotLine > span { flex: 1; min-width: 0; }
.spBotLine b { color: var(--ink); font-weight: 600; }
.spBotLine .btn { padding: 2px 8px; font-size: 11.5px; min-height: 0; }
.spNote .spFoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.spNote .spActs { display: flex; gap: 2px; align-items: center; opacity: 0; transition: opacity .15s; }
.spNote:hover .spActs, .spNote:focus-within .spActs { opacity: 1; }
@media (hover: none) { .spNote .spActs { opacity: 1; } }
.spNote .spActs .btn { padding: 3px 6px; min-height: 0; font-size: 12px; }
.spNote .spActs .spConvBtn { padding: 3px 8px; color: var(--accent); font-weight: 600; }
.spSw { display: inline-block; width: 12px; height: 12px; background: var(--nb); border: 1px solid var(--nl); border-radius: 3px; }
.spWait { font-size: 11.5px; color: var(--faint); display: inline-flex; gap: 5px; align-items: center; }
.spWait::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--faint); }
.spNote.conv { opacity: .6; }
.spNote.conv .spT { text-decoration: line-through; text-decoration-color: var(--faint); }
.spTrash { margin-top: 18px; }
.spSuggest p { margin: 0 0 4px; }

/* Vztahy: graf a panel člověka */
.graphWrap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.graphWrap svg { display: block; width: 100%; height: auto; min-height: 320px; }
.gTools { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.gEdge { stroke: var(--line-strong); stroke-width: 1.2; transition: opacity .15s; }
.gEdge.org { stroke-dasharray: 3 3; }
.gEdge.proj { stroke: var(--ec, var(--accent)); stroke-opacity: .55; }
.gNode { cursor: default; transition: opacity .15s; outline: none; }
.gNode[role="link"] { cursor: pointer; }
.gNode text { font: 500 11.5px var(--font, system-ui); fill: var(--mute); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.gNode.person circle.b { fill: var(--surface); stroke: var(--faint); stroke-width: 1.5; }
.gNode.org rect { fill: var(--line-soft); stroke: var(--faint); }
.gNode.proj rect { fill: var(--nc, var(--accent)); }
.gNode .ring { fill: none; stroke-width: 2.5; }
.gNode .ring.soon { stroke: var(--m-soon); } .gNode .ring.late { stroke: var(--m-late); }
.gNode.sel circle.b, .gNode:focus-visible circle.b { stroke: var(--accent); stroke-width: 2.5; fill: var(--accent-soft); }
.gNode.sel text, .gNode:focus-visible text { fill: var(--ink); font-weight: 650; }
.graphWrap.hl .gNode:not(.nb) { opacity: .2; } .graphWrap.hl .gEdge:not(.nb) { opacity: .1; }
.graphWrap.hl .gEdge.nb { stroke: var(--accent); stroke-opacity: 1; }
.graphWrap[data-filter="person"] .gNode:not(.person), .graphWrap[data-filter="org"] .gNode:not(.org),
.graphWrap[data-filter="proj"] .gNode:not(.proj), .graphWrap[data-filter="due"] .gNode:not(.due) { opacity: .12; }
.graphWrap[data-filter]:not([data-filter=""]) .gEdge { opacity: .15; }
.gLegend { position: absolute; bottom: 10px; left: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mute); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 4px 8px; border-radius: var(--radius); }
.gLegend span { display: inline-flex; gap: 6px; align-items: center; }
.gLegend i { display: inline-block; width: 10px; height: 10px; }
.lgP { border-radius: 50%; border: 1.5px solid var(--faint); } .lgO { border-radius: 2px; background: var(--line-soft); border: 1px solid var(--faint); }
.lgPr { background: var(--accent); transform: rotate(45deg) scale(.85); } .lgR { border-radius: 50%; border: 2.5px solid var(--m-late); }
.psHead { display: flex; gap: 12px; align-items: center; margin: 8px 0 10px; }
.psHead .ititle { margin: 0; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.avatar.big { width: 44px; height: 44px; font-size: 15px; flex: none; }
.fact { padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.fact:first-of-type { border-top: 0; }
.fact small { display: block; font-size: 11.5px; color: var(--faint); }
.addMore > summary { font-size: 12.5px; font-weight: 650; color: var(--accent); cursor: pointer; list-style: none; padding: 6px 0 0; }
.addMore > summary::-webkit-details-marker { display: none; }
.addMore[open] > summary { margin-bottom: 6px; }
details.pop { position: relative; }
details.pop > summary { list-style: none; } details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] > .form { margin-top: 8px; }
.inspector a.sub { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.inspector a.sub:first-of-type { border-top: 0; }
.inspector a.sub .meta { display: block; }
dl.facts { margin: 0; display: grid; gap: 6px; }
dl.facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 13.5px; }
dl.facts dt { color: var(--faint); } dl.facts dd { margin: 0; }

/* Čtení: obálky, tempo, myšlenky, výpisky */
.rdQuick { max-width: 520px; margin-bottom: 22px; display: flex; gap: 8px; }
.rdQuick .input { flex: 1; }
.rdGrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .rdGrid { grid-template-columns: 1fr; } }
.rdSec { margin-top: 28px; }
.railH { font-size: 12.5px; font-weight: 650; color: var(--mute); margin: 0 0 10px; }
.shelfNow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.bookCard { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--sh1); }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; background: var(--bc); color: #fff; padding: 10px 8px 10px 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12); max-width: 100%; text-align: left; }
.cover b { font: 600 12.5px/1.15 var(--serif); overflow-wrap: anywhere; }
.cover small { font-size: 9.5px; line-height: 1.2; opacity: .85; }
.cover.sm { width: 64px; padding: 7px 6px 7px 10px; }
.cover.sm b { font-size: 10px; } .cover.sm small { display: none; }
.bookCard h3 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.bookCard .by { font-size: 13px; color: var(--mute); margin-top: 2px; }
.bookCard .by .dot { background: var(--c); }
.bookBar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; margin: 12px 0 6px; }
.bookBar i { display: block; height: 100%; background: var(--m-ok); }
.bookMeta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--faint); }
.bookMeta b { color: var(--ink); font-weight: 650; }
.bookPace { font-size: 13px; color: var(--mute); margin: 8px 0 0; }
.bookPace.soon { color: var(--soon); }
.bookActs { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.bookActs .inline { display: flex; gap: 6px; }
.bookActs .inline .input { width: 84px; }
.bookActs details.pop[open] { flex-basis: 100%; }
.thought { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.thought:first-of-type { border-top: 1px solid var(--ink); }
.thought q { display: block; font: 400 19px/1.4 var(--serif); quotes: "„" "“"; color: var(--ink); }
.thought .src { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.rate { font-size: 12px; font-weight: 650; color: var(--ok); background: var(--ok-bg); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.shelf { display: flex; gap: 14px; flex-wrap: wrap; padding: 4px 2px 10px; }
.shelf .slot { display: grid; gap: 6px; width: 96px; font-size: 12px; align-content: start; }
.shelf .slot span { color: var(--faint); line-height: 1.3; }
.slotBtn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 3px 6px 6px 3px; transition: transform .15s; }
.slotBtn:hover, .slotBtn:focus-visible { transform: translateY(-2px); }
.slotBtn .cover { width: 96px; }
.excerpt { padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; margin-top: 8px; font-size: 13.5px; }
.excerpt mark { background: color-mix(in srgb, var(--m-soon) 30%, transparent); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.excerpt .to { display: flex; gap: 6px; flex-wrap: wrap; }
.excerpt .to .btn { padding: 3px 9px; font-size: 12px; min-height: 0; }
.rdRail .spTags { margin-bottom: 8px; }

/* Nastavení: sbalitelné sekce se shrnutím */
.setList { display: flex; flex-direction: column; gap: 10px; max-width: 820px; min-width: 0; }
.setSec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 18px; }
.setSec > summary { display: flex; align-items: center; gap: 14px; padding: 14px 0; cursor: pointer; list-style: none; }
.setSec > summary::-webkit-details-marker { display: none; }
.setSec > summary .meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setSec > summary > .ico:last-child { transition: transform .15s; color: var(--faint); }
.setSec[open] > summary > .ico:last-child { transform: rotate(90deg); }
.setSec[open] { padding-bottom: 16px; }
.setT { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; min-width: 140px; }
.setSec .rows { margin: 10px 0; }
details.rename > summary { display: flex; gap: 12px; align-items: baseline; list-style: none; cursor: pointer; }
details.rename > summary::-webkit-details-marker { display: none; }
details.rename[open] > summary .linkbtn { display: none; }
details.rename > summary .linkbtn { font-size: 12.5px; opacity: 0; }
details.rename:hover > summary .linkbtn, details.rename > summary:focus-visible .linkbtn { opacity: 1; }
@media (hover: none) { details.rename > summary .linkbtn { opacity: 1; } }
details.rename[open] .inline { margin-top: 6px; }
.pcTlAx { position: relative; }
.pcTlAx .now { position: absolute; transform: translateX(-50%); color: var(--late); }
.spNote .spFoot { position: relative; min-height: 26px; }
.spNote .spFoot > .meta { white-space: nowrap; }
.spNote .spActs { position: absolute; right: -6px; bottom: -4px; background: var(--nb); padding-left: 6px; border-radius: var(--radius); }
.setSec > summary { width: 100%; }
.bookActs form.inline { display: flex; flex-wrap: nowrap; gap: 6px; }
.bookActs form.inline .input { width: 84px; flex: 0 0 84px; }

/* Úpravy a mazání */
.btn.quiet.danger { background: none; border-color: transparent; color: var(--danger); }
.btn.quiet.danger:hover { background: var(--late-bg); }
.pActs { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.pActs details.pop[open] { flex-basis: 100%; order: 9; max-width: 560px; }
.bookEdit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 24px; box-shadow: var(--sh1); }
.bookEdit .rowBetween { display: flex; justify-content: space-between; align-items: center; }
.bookDel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.thought .src a { color: var(--faint); text-decoration: underline; }
.shelf .slot span a { color: var(--faint); text-decoration: underline; }

/* Účty, uživatelé a přístupové klíče */
.formMsg { max-width: 820px; margin: 0 0 12px; padding: 9px 12px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); font-size: 13.5px; }
.formMsg.bad { background: var(--late-bg); color: var(--late); }
.setSec .formMsg { margin: 8px 0; }
.setH { margin: 14px 0 2px; font-size: 13px; font-weight: 650; color: var(--ink); }
.setSec > .setH:first-of-type { margin-top: 2px; }
.form.narrow { max-width: 520px; gap: var(--space-lg); }
fieldset.plain { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
fieldset.plain > legend { margin-bottom: 6px; width: 100%; }
.rows .title .ico { width: 14px; height: 14px; vertical-align: -2px; color: var(--mute); }
.tag.late { background: var(--late-bg); color: var(--late); }
details.userEdit { margin-left: auto; }
details.userEdit > summary { list-style: none; cursor: pointer; }
details.userEdit > summary::-webkit-details-marker { display: none; }
details.userEdit > summary .linkbtn + .linkbtn, details.userEdit[open] > summary .linkbtn:first-child { display: none; }
details.userEdit[open] > summary .linkbtn + .linkbtn { display: inline; }
details.userEdit[open] { flex-basis: 100%; margin: 0; }
details.userEdit[open] > summary { display: flex; justify-content: flex-end; width: auto; margin: -26px 0 0 auto; }
details.userEdit[open] > .userActions { max-width: 560px; margin-top: 8px; }
.rows > div:has(> details.userEdit[open]) { flex-wrap: wrap; }
.userActions { display: grid; gap: 8px; }
.userActions .inline > .input, .userActions .inline > .select { flex: 1 1 180px; }
.login .alt { display: grid; gap: 10px; }
.login .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.login .or::before, .login .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login .lede { font-size: 13.5px; color: var(--mute); margin: 0; }
.login .btn .ico { width: 16px; height: 16px; }
.login { grid-template-rows: 1fr auto; }
.login > form:first-child { align-self: end; }
.login form.logoutLink { all: unset; justify-self: center; align-self: start; padding-top: 12px; }
.login:not(:has(.logoutLink)) { grid-template-rows: 1fr; }
.login:not(:has(.logoutLink)) > form:first-child { align-self: center; }
