/* Colours are tokens. Dark is the default (html[data-theme=dark]); html[data-theme=light] = "denný režim".
   The theme comes from the cookie panel_theme (PanelContext::theme), the toggle is js/theme.js.
   Colours of the ERMA Group logo, one job each (owner 2026-11-23, docs/ux-audit.md chapter 6):
   --red = the main action (one red button per screen, active menu / tab), --link = links and info (logo blue),
   --ok = done / paid (logo green), --warn = attention (late, at risk, low stock, draft), --err = errors (always with words). */
:root, [data-theme=dark] {
  color-scheme: dark;
  --red: #f74040; --red-soft: #3a1c1e; --ok: #55f264; --err: #ff6b6b; --link: #5fcfea; --warn: #e3b341;
  --ink: #e8ebee; --muted: #aab2ba; --line: #363d45; --soft: #0d1013;
  --surface: #1a1f24; --surface-2: #21272d; --hover: #262d34; --code: #2a3138; --field: #46505a; --dimmed: #858e97;
  --ok-bg: #15301f; --err-bg: #3a1a1a; --warn-bg: #3a3014;
  --side: #121518; --side-ink: #c4cad0; --side-hover: #22282d; --side-line: #2c3238; --side-muted: #7f878e;
}
[data-theme=light] {
  color-scheme: light;
  --red-soft: #fdecec; --ok: #187a35; --err: #c62828; --link: #0e6f8e; --warn: #8a6100;
  --ink: #1a1e23; --muted: #535b63; --line: #dde1e5; --soft: #f5f7f8;
  --surface: #fff; --surface-2: #fafbfc; --hover: #fafcff; --code: #eef0f2; --field: #c9ced3; --dimmed: #9aa1a7;
  --ok-bg: #e7f5ec; --err-bg: #fdecec; --warn-bg: #fdf6e3;
  --side: #23272b; --side-ink: #cfd4d8; --side-hover: #2f3439; --side-line: #3a4046; --side-muted: #8d959c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; color: var(--ink); background: var(--soft); line-height: 1.5; }
a { color: var(--link); }
h1 { font-size: 1.55rem; font-weight: 650; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 1.6rem 0 .6rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
code { background: var(--code); padding: 0 .3rem; border-radius: 3px; }

.shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); color: var(--side-ink); display: flex; flex-direction: column; padding: 1rem .8rem; position: sticky; top: 0; height: 100vh; }
.side a { color: var(--side-ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; color: #fff !important; padding: .2rem .5rem 1.2rem; }
.brand img { width: 32px; height: auto; }
.brand b { color: var(--red); font-weight: 600; }
.side nav { display: flex; flex-direction: column; gap: .1rem; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--side-line) transparent; margin: 0 -.4rem; padding: 0 .4rem; }   /* a long menu scrolls, the account part stays at the bottom */
/* menu: top items, groups that fold (<details>, the group of the open page is unfolded), Nastavenia at the bottom */
.side nav a, .side summary, .side-foot a { display: flex; align-items: center; gap: .6rem; padding: .42rem .6rem; border-radius: 6px; cursor: pointer; }
.side nav a:hover, .side summary:hover, .side-foot a:hover { background: var(--side-hover); color: #fff; }
.side nav a.active, .side-foot a.active { background: rgba(247, 64, 64, .2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--red); }
.side .ico { flex: 0 0 auto; opacity: .85; }
.side nav a .nav-count { margin-left: auto; background: var(--red); border-color: var(--red); color: #fff; font-size: .72rem; padding: 0 .4rem; }
.nav-sec summary { list-style: none; color: var(--side-ink); user-select: none; }
.nav-sec summary::-webkit-details-marker { display: none; }
.nav-sec summary > .ico:last-child { margin-left: auto; opacity: .5; transition: transform .15s; }
.nav-sec[open] summary > .ico:last-child { transform: rotate(90deg); }
.nav-sec.current summary { color: #fff; font-weight: 600; }
.nav-items { display: flex; flex-direction: column; gap: .05rem; margin: .1rem 0 .35rem 1.15rem; padding-left: .55rem; border-left: 1px solid var(--side-line); }
.side nav .nav-items a { padding: .3rem .6rem; font-size: .93rem; }
.side-foot { flex-shrink: 0; border-top: 1px solid var(--side-line); padding-top: .6rem; margin-top: .4rem; }
.page-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin-right: auto; }
.help-link { font-size: .85rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; color: var(--ink); white-space: nowrap; }
.help-link:hover { background: var(--surface-2); }
/* Pomocník (help pages) */
.help { max-width: 52rem; line-height: 1.6; }
.help h2 { margin-top: 1.8rem; }
.help h3 { margin-top: 1.3rem; }
.help ol, .help ul { padding-left: 1.4rem; }
.help li { margin: .25rem 0; }
.help blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--link); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.help code { background: var(--surface-2); padding: .05rem .3rem; border-radius: 4px; }
.help table { border-collapse: collapse; margin: 1rem 0; }
.help th, .help td { border: 1px solid var(--line); padding: .35rem .6rem; text-align: left; vertical-align: top; }
.help-index { columns: 2 18rem; column-gap: 2rem; }
.help-index section { break-inside: avoid; margin-bottom: 1rem; }
button.link { background: none; border: 0; color: var(--side-ink); padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 1.3rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
/* top bar: search, stopwatch, + Nové, Treba urobiť, notifications, help, account menu */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .35rem; padding: .55rem clamp(1rem, 3vw, 2.5rem);
  background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar form.search { position: relative; flex: 1 1 22rem; max-width: 34rem; margin: 0; }
.topbar form.search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.topbar form.search input { width: 100%; padding-left: 2.15rem; border-radius: 999px; background: var(--soft); }
.top-gap { flex: 1 1 0; }
.top-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 8px;
  color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0; }
.top-btn:hover, .top-btn.active { background: var(--hover); }
.top-count, .badge.top-count { position: absolute; top: 0; right: 0; min-width: 1.1rem; padding: 0 .3rem; font-size: .68rem; line-height: 1.1rem; text-align: center;
  background: var(--err); border: 0; color: #fff; border-radius: 999px; }
.top-count.warn, .badge.top-count.warn { background: var(--warn); color: #111; }
.badge[hidden] { display: none; }
.nav-toggle { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-menu { position: relative; }
.top-menu > summary { list-style: none; cursor: pointer; }
.top-menu > summary::-webkit-details-marker { display: none; }
.top-menu.create > summary { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .85rem .35rem .65rem; margin: 0 .3rem; }
.top-menu .avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.1rem; height: 2.1rem; line-height: 1; border-radius: 50%; background: var(--red); color: #fff;
  font-weight: 600; font-size: .82rem; margin-left: .3rem; }
.menu-pop { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 14rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); padding: .35rem; display: flex; flex-direction: column; z-index: 40; }
.menu-pop a, .menu-pop .menu-btn { display: flex; padding: .42rem .7rem; border-radius: 6px; color: var(--ink); text-decoration: none; text-align: left;
  background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.menu-pop a:hover, .menu-pop .menu-btn:hover { background: var(--hover); }
.menu-pop form { margin: 0; }
.menu-who { padding: .4rem .7rem .55rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; display: flex; flex-direction: column; }
.menu-who small { color: var(--muted); }
.top-timer { display: inline-flex; align-items: center; margin: 0 .3rem; border: 1px solid var(--ok); border-radius: 999px; padding: .12rem .15rem .12rem .6rem; }
.top-timer a { display: inline-flex; align-items: center; gap: .35rem; color: var(--ok); text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.top-stop { background: none; border: 0; color: var(--ok); cursor: pointer; padding: .1rem .45rem; font-size: .8rem; }

.flash { padding: .6rem .9rem; border-radius: 6px; border-left: 4px solid; }
.flash.ok { background: var(--ok-bg); border-color: var(--ok); }
.flash.err { background: var(--err-bg); border-color: var(--err); }
.flash.warn { background: var(--warn-bg); border-color: var(--warn); }
.field-err { display: block; color: var(--err); font-size: .85rem; margin-top: .2rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.card h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.cards > * { min-width: 0; }   /* a wide field must not stretch its card past the grid */
.cards > .card { margin-bottom: 0; }
.card input:not([type=checkbox]):not([type=radio]), .card select, .card textarea { max-width: 100%; box-sizing: border-box; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; display: flex; flex-direction: column; }
.tile span { color: var(--muted); font-size: .9rem; } .tile b { font-size: 1.8rem; } .tile small { color: var(--muted); }

table.grid { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.grid th, .grid td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid th { background: var(--surface-2); font-weight: 600; font-size: .85rem; color: var(--muted); }
.grid tbody tr:hover { background: var(--hover); }
.grid .num { text-align: right; white-space: nowrap; }
.grid tfoot td { border-bottom: 0; } .grid tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.grid tr.inactive td { color: var(--dimmed); }
.state { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .85rem; border: 1px solid var(--c); color: var(--ink);
         background: color-mix(in srgb, var(--c) 18%, var(--surface)); white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.filters input[name=q] { min-width: 16rem; }
input, select, textarea { font: inherit; padding: .4rem .55rem; border: 1px solid var(--field); border-radius: 6px; background: var(--surface); color: var(--ink); }
button, .button { font: inherit; padding: .45rem 1rem; border-radius: 6px; border: 1px solid var(--field); background: var(--surface); cursor: pointer; text-decoration: none; color: var(--ink); display: inline-block; }
.primary { background: var(--red); border-color: var(--red); color: #fff !important; }
.primary:hover { filter: brightness(1.07); }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

.form { max-width: 30rem; display: flex; flex-direction: column; gap: .8rem; }
.form label { display: flex; flex-direction: column; gap: .25rem; }
label.check { flex-direction: row !important; align-items: center; gap: .5rem !important; }

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login { width: 100%; max-width: 22rem; display: flex; flex-direction: column; gap: .8rem; }
.login-logo { width: 220px; height: auto; align-self: center; margin-bottom: .2rem; }
.login h1 { margin: 0; font-size: 1.15rem; text-align: center; color: var(--muted); font-weight: 500; }
.login label { display: flex; flex-direction: column; gap: .25rem; }

/* Invoicing, companies, customers */
.badge { display: inline-block; padding: 0 .45rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.badge.draft { border-color: var(--warn); color: var(--warn); }
.badge.issued { border-color: var(--ok); color: var(--ok); }
.badge.pay-paid { border-color: var(--ok); color: var(--ok); }
.badge.pay-partial, .badge.pay-unpaid { border-color: var(--warn); color: var(--warn); }
.badge.pay-overdue { border-color: var(--warn); color: var(--warn); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
form.inline { display: inline; margin: 0; }
button.danger { border-color: var(--err); color: var(--err); background: transparent; }
button[disabled] { opacity: .45; cursor: not-allowed; }
.link-danger { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .2rem .4rem; }
.link-danger:hover { color: var(--err); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .7rem 1rem; align-content: start; margin-bottom: 1rem; }
.form-grid > h2, .form-grid > .wide { grid-column: 1 / -1; }
.form-grid label, .card > label { display: flex; flex-direction: column; gap: .25rem; }
.form-grid.narrow { max-width: 46rem; }
.card > label { margin: .6rem 0; }
.field-hint { color: var(--muted); font-size: .875rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem .9rem; display: flex; flex-direction: column; gap: .45rem; }
legend { color: var(--muted); padding: 0 .3rem; }
.perms { display: flex; flex-direction: column; gap: .45rem; padding-left: 1.6rem; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }   /* wrapper to disable a whole read-only form */
fieldset.plain[disabled] { opacity: .75; }
.perms h3 { margin: .6rem 0 0; font-size: 1rem; }
td.result.yes { color: var(--ok); font-weight: 600; }
td.result.no { color: var(--muted); }
/* record box: comments, links, history (views/core/record.php) */
.record .comment { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.record .comment p { margin: .2rem 0; overflow-wrap: anywhere; }
.record textarea { width: 100%; box-sizing: border-box; }
.record .comment-edit summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
b.mention { color: var(--link); font-weight: 600; }
.link-form { position: relative; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
.link-form input[name=target] { flex: 1 1 14rem; }
.lookup-list, .mention-list { position: absolute; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  min-width: 16rem; max-width: 100%; max-height: 16rem; overflow-y: auto; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.link-form .lookup-list { top: 100%; left: 0; }
.lookup-list button, .mention-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .35rem .6rem; color: inherit; cursor: pointer; }
.lookup-list button:hover, .mention-list button:hover, .lookup-list button:focus, .mention-list button:focus { background: var(--hover); }
.record-link { margin: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }   /* under the box of the record: chat button · short link · QR */
.record-link .button { margin: 0; }
tr.unread td { font-weight: 600; }
.search-group h2 { font-size: 1rem; margin: 1rem 0 .3rem; }
.cal { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cal th { color: var(--muted); font-weight: 600; font-size: .85rem; padding: .2rem; }
.cal td { vertical-align: top; border: 1px solid var(--line); height: 5.5rem; padding: .2rem .3rem; font-size: .85rem; overflow: hidden; }
.cal td.other { opacity: .45; }
.cal td.today { outline: 2px solid var(--link); outline-offset: -2px; }
.cal .day { color: var(--muted); font-size: .8rem; }
.cal a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .k-over { color: var(--warn); font-weight: 600; }
@media (max-width: 700px) { .cal td { height: auto; } }
/* tasks: kanban, priorities, checklist (views/tasks) */
.board { display: flex; gap: .7rem; overflow-x: auto; align-items: flex-start; padding-bottom: .5rem; }
.board-col { flex: 0 0 16rem; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: .5rem; }
.board-col h2 { font-size: 1rem; margin: 0 0 .4rem; }
.board-col.done { opacity: .85; }
.board-col.drop { outline: 2px dashed var(--link); }
.board-cards { display: flex; flex-direction: column; gap: .4rem; min-height: 3rem; }
.board-card { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 6px;
  padding: .4rem .5rem; color: inherit; text-decoration: none; font-size: .9rem; }
.board-card:hover { border-color: var(--link); }
.board-card.dragging { opacity: .4; }
.board-card.prio-3 { border-left-color: var(--warn); }
.board-card.prio-4 { border-left-color: var(--err); }
.board-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; font-size: .8rem; }
.prio-1 { color: var(--muted); }
.prio-3 { color: var(--warn); font-weight: 600; }
.prio-4 { color: var(--err); font-weight: 600; }
.check-row { display: flex; align-items: center; gap: .4rem; margin: .1rem 0; }
.check-row button.link { font-size: 1.05rem; text-decoration: none; }
tr.day-row th { background: var(--soft); text-align: left; }
@media (max-width: 700px) { .board-col { flex-basis: 80vw; } }
.grid.compact th, .grid.compact td { padding: .3rem .45rem; }
.grid td input, .grid td select { width: 100%; padding: .3rem .4rem; }
.grid td input.w-name { min-width: 16rem; }
input.num { text-align: right; }
.scroll-x { overflow-x: auto; }
/* vertical rhythm: every block of a page (card, table, grid of cards) keeps a gap from the next one, whatever follows */
.card, table.grid, .scroll-x, .tiles, .board, .tl { margin-bottom: 1rem; }
.card table.grid:last-child, .card .scroll-x:last-child, .card > :last-child { margin-bottom: 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.push { margin-left: auto; }
img.preview { max-width: 100%; max-height: 7rem; background: #fff; padding: .4rem; border-radius: 6px; border: 1px solid var(--line); }
.lookup { position: relative; display: flex; flex-direction: column; gap: .3rem; }
.lookup input { width: 100%; }
.results { display: flex; flex-direction: column; gap: .2rem; }
.results .pick { text-align: left; padding: .35rem .6rem; }
.results .pick:hover { border-color: var(--link); }
.flash ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.tabs > a:not(.button) { padding: .35rem .7rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.tabs > a.active { background: var(--surface-2); font-weight: 600; }
.tabs .push { margin-left: auto; }
button.rpo { color: var(--link); font-size: .875rem; align-self: flex-start; }
.rpo-note { font-size: .85rem; color: var(--muted); }

/* Theme toggle: the button shows the mode you switch TO. */
.theme-toggle { text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
[data-theme=dark] .theme-toggle .to-dark, [data-theme=light] .theme-toggle .to-light { display: none; }
.login-page .theme-toggle { position: fixed; top: 1rem; right: 1rem; color: var(--muted); }
.menu-pop .theme-toggle { display: flex; }

@media (max-width: 860px) {   /* phone / small tablet: the menu slides in from the left (button ☰ in the top bar) */
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 16rem; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
  .nav-toggle { display: inline-flex; }
  .topbar { padding: .45rem .7rem; gap: .2rem; }
  .top-menu.create > summary span { display: none; }
  .grid { display: block; overflow-x: auto; }
}
@media (max-width: 520px) { .topbar form.search { flex-basis: 6rem; } .top-timer a span { display: none; } }

/* Výsledky (reports): big numbers in summary cards */
.card p.big { font-size: 1.6rem; font-weight: 700; margin: .2rem 0; }
.doc-preview { margin-top: 1rem; }
.doc-preview iframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.doc-preview img { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.todo ul { margin: 0; padding-left: 1.1rem; }
.todo li { margin: .25rem 0; }
.todo li::marker { color: var(--muted); }
.todo li.todo-err::marker, .todo li.todo-err a { color: var(--err); }
.todo li.todo-warn::marker { color: var(--warn); }
tr.warn td { color: var(--warn); }
/* timeline (views/tasks/timeline.php): name column + day columns of --tl-day; bars, days of rest, absences, arrows (SVG) */
.tl { --tl-name: 15rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 1rem; }
.tl-grid { width: calc(var(--tl-name) + var(--tl-days) * var(--tl-day)); position: relative; }
.tl-head, .tl-row { display: flex; border-bottom: 1px solid var(--line); }
.tl-head { position: sticky; top: 0; background: var(--surface-2); z-index: 3; }
.tl-name { flex: 0 0 var(--tl-name); width: var(--tl-name); box-sizing: border-box; padding: .25rem .5rem; position: sticky; left: 0; z-index: 2;
  background: var(--surface); border-right: 1px solid var(--line); font-size: .85rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-head .tl-name { background: var(--surface-2); font-weight: 600; display: flex; align-items: flex-end; }
.tl-name a { display: block; overflow: hidden; text-overflow: ellipsis; }
.tl-name small { display: block; }
.tl-track { position: relative; flex: 1 0 auto; height: 2.6rem; }
.tl-head .tl-track { height: 2.8rem; }
.tl-month { position: absolute; top: 0; height: 1.3rem; font-size: .75rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: .3rem; box-sizing: border-box;
  white-space: nowrap; overflow: hidden; }
.tl-day { position: absolute; top: 1.4rem; height: 1.4rem; font-size: .7rem; text-align: center; color: var(--muted); line-height: 1.4rem; }
.tl-day.off { color: var(--dimmed); }
.tl-day.today { color: var(--link); font-weight: 700; }
.tl-body { position: relative; }
.tl-bg { position: absolute; top: 0; bottom: 0; left: var(--tl-name); right: 0; pointer-events: none; }
.tl-off { position: absolute; top: 0; bottom: 0; background: var(--soft); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--link); opacity: .6; }
.tl-row .tl-track { background: transparent; }
.tl-absent { position: absolute; top: .2rem; bottom: .2rem; opacity: .5;
  background: repeating-linear-gradient(45deg, transparent 0 4px, var(--dimmed) 4px 6px); }
.tl-bar { position: absolute; top: .55rem; height: 1.5rem; box-sizing: border-box; border-radius: 5px; background: var(--link); color: #fff; font-size: .72rem;
  line-height: 1.5rem; padding: 0 .35rem; overflow: hidden; white-space: nowrap; z-index: 1; user-select: none; touch-action: none; }
.tl[data-editable] .tl-bar { cursor: grab; }
.tl-bar.done { background: var(--dimmed); }
.tl-bar.over { background: var(--warn); color: #1f1a08; }
.tl-bar.blocked { background: transparent; color: var(--link); border: 2px dashed var(--link); line-height: calc(1.5rem - 4px); }
.tl-bar.moving { opacity: .75; cursor: grabbing; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tl-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; background: rgba(255,255,255,.25); }
.tl-arrows { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.tl-arrows path.dep { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.tl-arrows path.dep.bad { stroke: var(--err); }
.tl-arrows marker path { fill: var(--muted); }
.tl-arrows #tl-arrow-bad path { fill: var(--err); }
@media (max-width: 700px) { .tl { --tl-name: 9rem; } }
.cal .k-holiday { color: var(--ok); font-weight: 600; }
.cal .k-absence, .cal .k-plan { color: var(--muted); }
.cal td.dayoff { background: var(--soft); }
/* project finances (views/tasks/finance.php): meters actual (solid) + committed (hatched), the budget mark, the spending chart */
.meter { position: relative; display: flex; gap: 2px; width: 100%; min-width: 8rem; height: 10px; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; }
.m-actual { background: var(--link); }
.m-committed { background: repeating-linear-gradient(45deg, var(--link) 0 2px, transparent 2px 5px); }
.meter.over .m-actual { background: var(--err); }
.meter.over .m-committed { background: repeating-linear-gradient(45deg, var(--err) 0 2px, transparent 2px 5px); }
.m-budget { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.legend-sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; margin: 0 .2rem 0 .6rem; border: 1px solid var(--line); }
svg.chart { width: 100%; max-width: 760px; height: auto; display: block; }
svg.chart .grid-line { stroke: var(--line); stroke-width: 1; }
svg.chart .axis { fill: var(--muted); font-size: 11px; }
svg.chart .budget-line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
svg.chart .series { fill: none; stroke: var(--link); stroke-width: 2; stroke-linejoin: round; }
svg.chart .pt circle { fill: var(--link); stroke: var(--surface); stroke-width: 2; }
svg.chart .pt circle.hit { fill: transparent; stroke: none; cursor: pointer; }
svg.chart .pt:hover circle:not(.hit) { r: 6; }
/* time sheet (views/time/week.php): the form on top in one row, compact days */
.time-form { margin: 1rem 0; }
.time-form .form-grid { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin-bottom: .6rem; }
.time-form .form-grid .wide { grid-column: span 2; }
.time-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.time-week th:first-child { width: 7rem; white-space: nowrap; }
.time-week tbody th { background: var(--soft); font-weight: 600; color: var(--ink); vertical-align: top; }
.time-week tr.day-empty.off th, .time-week tr.day-empty.off td { color: var(--dimmed); }
.time-week tr.today th { box-shadow: inset 3px 0 0 var(--link); }
@media (max-width: 700px) { .time-form .form-grid .wide { grid-column: 1 / -1; } }
/* Môj účet (views/employees/account.php) */
.account-head { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.account-id { display: flex; gap: 1rem; align-items: center; }
.account-id h2 { margin: 0; }
.account-id p { margin: .15rem 0; }
.avatar { flex: 0 0 3.2rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.account-tiles .tile { color: inherit; text-decoration: none; background: var(--surface-2); }
.account-tiles .tile:hover { border-color: var(--link); }
.account-tiles .tile b { font-size: 1.25rem; margin: .15rem 0; }
.account-tiles .tile.alert small { color: var(--err); }
.account-cards { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.account-cards > .card { display: flex; flex-direction: column; gap: .7rem; }
.account-cards > .card > label:not(.check) { display: flex; flex-direction: column; gap: .25rem; margin: 0; }
.account-cards > .card > p { margin: 0; }
.account-cards h2.sub { margin: .6rem 0 0; font-size: 1rem; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .5rem 1.5rem; }
.perm-groups h3 { font-size: .9rem; margin: .6rem 0 .2rem; color: var(--muted); }
.perm-groups ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.scroll-x > table.grid { margin-bottom: 0; }
/* kanban: new task field at the bottom of a column, quick edit side panel */
.board-add { margin-top: .5rem; }
.board-add input { width: 100%; box-sizing: border-box; background: transparent; border: 1px dashed var(--line); border-radius: 6px; padding: .4rem .5rem; color: var(--ink); }
.board-add input:focus { background: var(--surface); border-style: solid; border-color: var(--link); outline: none; }
.board-card { cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(34rem, 100vw); background: var(--surface); border-left: 1px solid var(--line); z-index: 41;
  overflow-y: auto; box-shadow: -6px 0 24px rgba(0,0,0,.35); }
.drawer-body { padding: 1rem 1.2rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.drawer-head .link { font-size: 1.2rem; text-decoration: none; }
.quick-form { display: flex; flex-direction: column; gap: .7rem; }
.quick-form > label { display: flex; flex-direction: column; gap: .25rem; }
.quick-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.quick-form input:not([type=checkbox]), .quick-form select, .quick-form textarea { width: 100%; box-sizing: border-box; }
.quick-title input { font-size: 1.15rem; font-weight: 600; }
.drawer-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; bottom: 0; background: var(--surface);
  padding: .6rem 0; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.nowrap { white-space: nowrap; }
.cost-form .form-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.cost-form > label { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .6rem; }
@media (min-width: 900px) { .account-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-pick td { vertical-align: top; }
.legal-pick td:first-child { width: 2rem; }
.board-card.prio-3, .board-card.prio-4 { color: inherit; font-weight: normal; }   /* only the left edge shows the priority */
/* send an invoice by e-mail: the form + the preview side by side */
.mail-send { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; align-items: start; }
.mail-send > .card { margin-bottom: 0; max-width: none; }
.mail-preview iframe { width: 100%; height: 34rem; border: 1px solid var(--line); border-radius: 6px; background: #f3f4f6; }
/* a short list of actions in a card: buttons of the same width, the explanation next to / under each */
.action-list { display: flex; flex-direction: column; gap: .6rem; }
.action-list form { display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: .3rem .7rem; margin: 0; }
.action-list button { width: 100%; }
.action-list small { line-height: 1.3; }
@media (max-width: 1500px) { .action-list form { grid-template-columns: 1fr; } }
/* Dokumenty (docs/panel-architektura.md 6.2): list with folders, the text, the editor */
.toolbar > [hidden], .flash[hidden] { display: none !important; }
.bulk-bar[hidden], .notice[hidden] { display: none !important; }
.docs-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.docs-layout.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { .docs-layout { grid-template-columns: minmax(0, 1fr); } }
.doc-folders { margin-bottom: 0; }
.doc-folders ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.doc-folders li a { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem .45rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.doc-folders li a:hover { background: var(--hover); }
.doc-folders li a.active { background: var(--surface-2); font-weight: 600; }
.doc-folders form { display: flex; gap: .4rem; margin-top: .4rem; }
.doc-folders form input { flex: 1; min-width: 0; }
.doc-new { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.doc-new input[name=title] { flex: 1 1 14rem; min-width: 0; }
.doc-new select { max-width: 100%; }
.doc-snippet { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.doc-meta { color: var(--muted); font-size: .9rem; margin: -.4rem 0 .8rem; }
.badge.writing { border-color: var(--warn); color: var(--warn); }
.doc-body { line-height: 1.65; overflow-wrap: anywhere; }
.doc-body > p, .doc-body > h1, .doc-body > h2, .doc-body > h3, .doc-body > ul, .doc-body > ol, .doc-body > blockquote, .doc-body > pre { max-width: 60rem; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h1 { font-size: 1.45rem; margin: 1.4rem 0 .5rem; }
.doc-body h2 { font-size: 1.2rem; margin: 1.2rem 0 .4rem; }
.doc-body h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.doc-body p { margin: 0 0 .7rem; }
.doc-body ul, .doc-body ol { padding-left: 1.6rem; margin: 0 0 .7rem; }
.doc-body blockquote { margin: 0 0 .7rem; padding: .3rem .9rem; border-left: 4px solid var(--line); color: var(--muted); }
.doc-body pre { background: var(--code); padding: .7rem .9rem; border-radius: 6px; overflow-x: auto; white-space: pre-wrap; }
.doc-body pre code { background: none; padding: 0; }
.doc-body table { border-collapse: collapse; margin: 0 0 .9rem; max-width: 100%; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { border: 1px solid var(--field); padding: .3rem .55rem; vertical-align: top; min-width: 3rem; }
.doc-body th { background: var(--surface-2); text-align: left; }
.doc-body img { max-width: 100%; height: auto; border-radius: 4px; }
.doc-body hr { border: 0; border-top: 1px solid var(--field); margin: 1rem 0; }
.doc-body mark { background: #fff3a0; color: #1f2328; }
.doc-body a.ref { text-decoration: none; border-bottom: 1px dashed var(--link); }
.doc-body .mention { color: var(--link); font-weight: 600; }
.doc-body .al-c { text-align: center; } .doc-body .al-r { text-align: right; }
.doc-empty { color: var(--muted); font-style: italic; }
.doc-title { width: 100%; font-size: 1.35rem; font-weight: 600; padding: .45rem .65rem; margin-bottom: .6rem; }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; position: sticky; top: 0; z-index: 5; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px 8px 0 0; padding: .35rem; }
.doc-toolbar button, .doc-toolbar select { padding: .25rem .5rem; min-width: 2.1rem; font-size: .9rem; }
.doc-toolbar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 .2rem; }
.doc-toolbar .table-tools[hidden] { display: none; }
.doc-edit { min-height: 24rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; padding: 1rem 1.2rem; background: var(--surface);
  outline: none; max-width: none; }
.doc-edit:focus { border-color: var(--field); }
.doc-edit:empty::before { content: attr(data-placeholder); color: var(--dimmed); }
.doc-status { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .7rem; }
.doc-status .state { color: var(--muted); font-size: .9rem; }
.doc-status .state.err { color: var(--err); font-weight: 600; }
.doc-pop { position: fixed; z-index: 50; width: min(26rem, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--field); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); padding: .7rem; }
.doc-pop[hidden] { display: none; }
.doc-pop input { width: 100%; }
.doc-pop ul { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 16rem; overflow-y: auto; }
.doc-pop li button { width: 100%; text-align: left; border: 0; border-radius: 6px; padding: .35rem .5rem; background: none; }
.doc-pop li button:hover, .doc-pop li button:focus { background: var(--hover); }
.diff { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.diff div { padding: 0 .4rem; border-radius: 3px; }
.diff .add { background: var(--ok-bg); }
.diff .del { background: var(--err-bg); text-decoration: line-through; }
.diff .gap { color: var(--muted); }
.share-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .2rem 1rem; margin: .4rem 0 .8rem; }
.share-row { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: .15rem 0; border-bottom: 1px solid var(--line); }
.share-row label { display: flex; gap: .4rem; align-items: center; }
/* right-click menu of tasks (js/panel.js) */
.ctx-menu { position: fixed; z-index: 60; min-width: 14rem; max-width: 20rem; background: var(--surface); border: 1px solid var(--field); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); padding: .3rem; font-size: .92rem; }
.ctx-head { padding: .3rem .6rem .4rem; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 5px; padding: .38rem .6rem; color: var(--ink); cursor: pointer; }
.ctx-item:hover:not([disabled]), .ctx-item:focus { background: var(--hover); outline: none; }
.ctx-item[disabled] { opacity: .45; cursor: not-allowed; }
.ctx-danger { color: var(--err); }
.ctx-sep { height: 1px; background: var(--line); margin: .25rem .2rem; }
.ctx-has-sub { position: relative; }
.ctx-sub { display: none; position: absolute; left: 100%; top: -.3rem; min-width: 13rem; max-width: 20rem; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--field); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); padding: .3rem; }
.ctx-left .ctx-sub { left: auto; right: 100%; }
.ctx-has-sub:hover > .ctx-sub, .ctx-has-sub.open > .ctx-sub, .ctx-has-sub:focus-within > .ctx-sub { display: block; }
@media (max-width: 700px) { .ctx-sub { position: static; box-shadow: none; border: 0; padding-left: .8rem; max-height: 40vh; } }
/* V-model (docs/panel-architektura.md 6.3) */
.subtabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.4rem 0 1rem; }
.subtabs a { padding: .25rem .65rem; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); font-size: .9rem; }
.subtabs a.active { background: var(--surface-2); border-color: var(--field); font-weight: 600; }
.vee { margin: 0 0 1.2rem; }
.vee-row { display: grid; grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr); align-items: center; margin-bottom: .45rem; }
.vee-row > .vee-level.spec { margin-left: calc(var(--d) * 2.2rem); }
.vee-row > .vee-level.test { margin-right: calc(var(--d) * 2.2rem); }
.vee-level { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  text-decoration: none; color: var(--ink); min-width: 0; }
.vee-level.spec { border-left: 4px solid var(--link); }
.vee-level.test { border-right: 4px solid var(--ok); text-align: right; }
.vee-level:hover, .vee-level.active { background: var(--hover); border-color: var(--field); }
.vee-level .meter { min-width: 0; height: 6px; margin-top: .2rem; }
.vee-level .meter i { background: var(--ok); }
.vee-link { text-align: center; color: var(--muted); font-size: .85rem; }
.vee-bottom { margin: 0 calc(var(--d) * 2.2rem + 2rem); text-align: center; padding: .45rem; border: 1px dashed var(--field); border-radius: 8px; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .vee-row { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .vee-row > .vee-level.spec, .vee-row > .vee-level.test { margin: 0; text-align: left; }
  .vee-link { display: none; } .vee-bottom { margin: 0; }
}
.badge.vm-draft { border-color: var(--warn); color: var(--warn); } .badge.vm-valid { border-color: var(--ok); color: var(--ok); } .badge.vm-obsolete { text-decoration: line-through; }
.badge.res-pass, .badge.cov-ok { border-color: var(--ok); color: var(--ok); }
.badge.res-fail, .badge.cov-fail { border-color: var(--err); color: var(--err); }
.badge.res-blocked, .badge.cov-outdated, .badge.cov-untested { border-color: var(--warn); color: var(--warn); }
.badge.cov-notest { border-color: var(--err); color: var(--err); border-style: dashed; }
.cov-summary { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.res-pick { display: inline-flex !important; margin-right: .55rem; font-size: .88rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .3rem 0 0; }
.inline-form select { max-width: 100%; }
select.vm-pick { width: 100%; }
table.matrix td { vertical-align: top; }
.pulls .badge { margin-left: .2rem; }
.badge.pr-open, .badge.ci-running { border-color: var(--link); color: var(--link); } .badge.pr-approved, .badge.pr-merged, .badge.ci-success { border-color: var(--ok); color: var(--ok); }
.badge.ci-failure { border-color: var(--err); color: var(--err); }
/* price quotes (Predaj → Ponuky) */
.badge.q-draft { border-color: var(--warn); color: var(--warn); } .badge.q-sent { border-color: var(--link); color: var(--link); }
.badge.q-accepted { border-color: var(--ok); color: var(--ok); } .badge.q-rejected, .badge.q-expired { border-color: var(--err); color: var(--err); }
.badge.q-cancelled { text-decoration: line-through; }
.quote-preview { max-width: 60rem; }
.quote-preview .q-totals { margin: .8rem 0 .8rem auto; min-width: 16rem; } .quote-preview .q-totals td { padding: .15rem .6rem; }
.quote-preview .q-totals .total td { font-weight: 700; border-top: 1px solid var(--field); }
.quote-preview .q-text { white-space: normal; } .quote-preview .q-title { font-weight: 700; font-size: 1.05rem; }
/* custom jobs (Predaj → Zákazky) */
.badge.job-inquiry, .badge.job-quoted { border-color: var(--warn); color: var(--warn); } .badge.job-approved, .badge.job-production { border-color: var(--link); color: var(--link); }
.badge.job-done, .badge.job-delivered, .badge.proof-approved { border-color: var(--ok); color: var(--ok); } .badge.job-cancelled { text-decoration: line-through; }
.badge.proof-pending, .badge.q-queued { border-color: var(--warn); color: var(--warn); } .badge.proof-rejected { border-color: var(--err); color: var(--err); }
.badge.q-running { border-color: var(--link); color: var(--link); } .badge.q-done { border-color: var(--ok); color: var(--ok); }
/* Servis → Reklamácie (phase 6e) */
.badge.cpl-received { border-color: var(--warn); color: var(--warn); } .badge.cpl-in_progress { border-color: var(--link); color: var(--link); }
.badge.cpl-accepted { border-color: var(--ok); color: var(--ok); } .badge.cpl-rejected { border-color: var(--err); color: var(--err); }
.badge.cpl-closed { opacity: .7; }
/* Predaj → Kontakty, Príležitosti (phase 6f) */
.badge.ct-customer { border-color: var(--link); color: var(--link); } .badge.ct-supplier { border-color: var(--warn); color: var(--warn); }
.person { padding: .35rem 0; border-bottom: 1px solid var(--line); } .person:last-of-type { border-bottom: 0; }
.person-form { margin: .5rem 0; }
.badge.op-inquiry { border-color: var(--warn); color: var(--warn); } .badge.op-quote, .badge.op-negotiation { border-color: var(--link); color: var(--link); }
.badge.op-won { border-color: var(--ok); color: var(--ok); } .badge.op-lost { border-color: var(--err); color: var(--err); }
.opp-board .board-col { flex: 1 0 11rem; min-width: 0; } .opp-board .opp-sum { margin: -.3rem 0 .4rem; }
@media (max-width: 700px) { .opp-board .board-col { flex: 0 0 80vw; } }
.opp-board .op-col-won .board-card { border-left-color: var(--ok); } .opp-board .op-col-lost .board-card { border-left-color: var(--err); opacity: .8; }
.proof { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.proof img { width: 9rem; height: auto; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 600px) { .proof { grid-template-columns: minmax(0, 1fr); } }
.queue-actions { display: flex; gap: .3rem; margin-top: .4rem; } .queue-actions button { padding: .15rem .5rem; font-size: .85rem; }
/* Pošta (phase 7a) */
tr.unread td { font-weight: 600; }
.badge.mail-triage { border-color: var(--warn); color: var(--warn); }
.mail-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mail-head .link-form { position: relative; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mail-msg header { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; margin-bottom: .6rem; }
.mail-msg header > div { flex-basis: 100%; }
.mail-msg.out { border-left: 4px solid var(--link); }
.mail-text { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: .92rem; margin: 0; max-height: 40rem; overflow: auto; }
.mail-html { width: 100%; min-height: 12rem; height: 24rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mail-atts { list-style: none; padding: 0; margin: .6rem 0 .3rem; display: flex; flex-direction: column; gap: .2rem; }
.inline-details { display: inline-block; }
#partner-entry [hidden] { display: none !important; }   /* fields of other kinds of a partner record */
/* Platby — predpoveď peňazí (phase 7b) */
.fc-bar { display: inline-block; height: .7rem; border-radius: 3px; background: var(--ok); min-width: 2px; vertical-align: middle; }
.fc-bar.neg { background: var(--err); }
/* Prihlásenie a bezpečnosť, schránky zamestnancov (phase 7d) */
.qr-box { margin: .5rem 0; }
.qr-box svg { width: 12rem; height: 12rem; border-radius: 6px; }
.recovery-codes { font-size: 1.1rem; line-height: 1.7; padding: .8rem 1rem; background: var(--code); border: 1px dashed var(--line); border-radius: 6px; columns: 2; max-width: 26rem; }
ol.steps > li { margin-bottom: .8rem; }
.secret-once { font-size: 1.05rem; user-select: all; }
/* Pošta ako e-mailový klient: priečinky, hromadné akcie, editor, koncepty (phase 7d part 2) */
.folder-bar { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.4rem 0 .9rem; }
.folder-bar a { padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.folder-bar a:hover { background: var(--hover); }
.folder-bar a.active { background: var(--surface-2); border-color: var(--field); font-weight: 600; }
.folder-bar a.folder-manage { border-style: dashed; color: var(--muted); }
.folder-bar.dropping a[data-drop-folder] { border-color: var(--link); }
.folder-bar a.drop-over { background: var(--red-soft); border-color: var(--red); }
.mail-list tr[draggable="true"] { cursor: grab; }
.bulk-bar, .mail-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .7rem; }
.bulk-bar button, .mail-tools button:not(.link) { padding: .25rem .65rem; }
.mail-tools .push { margin-left: auto; }
/* full client step 11: the mail on a phone — one message = a card (sender + date on top, the subject under it), the bars
   scroll sideways, big touch targets, the editor fills the width */
@media (max-width: 640px) {
  .mail-list thead { display: none; }
  .mail-list, .mail-list tbody { display: block; }
  .mail-list tr { display: grid; grid-template-columns: auto 1fr auto; gap: .1rem .5rem; padding: .55rem .3rem; border-bottom: 1px solid var(--line); }
  .mail-list td { display: block; border: 0; padding: 0; }
  .mail-list td.check { grid-row: 1 / span 3; align-self: center; }
  .mail-list td:nth-last-child(1) { grid-column: 3; grid-row: 1; font-size: .85rem; color: var(--muted); text-align: right; }
  .mail-list td:nth-last-child(2) { grid-column: 2 / span 2; font-size: .875rem; }
  .mail-list td:nth-last-child(3) { grid-column: 2 / span 2; }
  .mail-list td:nth-last-child(4) { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mail-list tr.unread td:nth-last-child(3) a { font-weight: 700; }
  .mail-list tr[draggable="true"] { cursor: default; }
  .folder-bar, .mail-boxes, nav.tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .folder-bar a, .mail-boxes a { white-space: nowrap; }
  .bulk-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); padding: .35rem 0; }
  .mail-star { font-size: 1.25rem; padding: .2rem .35rem; }
  .mail-compose .rte { min-height: 40vh; }
  .mail-quick, .mail-reply-actions { gap: .4rem; }
  .mail-quick .button, .mail-reply-actions .button, .mail-reply-actions button { padding: .45rem .7rem; }
  .mail-html { width: 100%; }
}
/* full client step 10: send options, outbox */
.send-options { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: .3rem 0; }
.send-later summary { cursor: pointer; color: var(--muted); }
.send-later[open] { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem; align-items: end; }
.mail-outbox { display: flex; flex-direction: column; gap: .3rem; }
.mail-outbox .outbox-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; width: 100%; }
.sig-logo { max-width: 220px; max-height: 90px; display: block; margin: .3rem 0; border: 1px solid var(--line); background: #fff; }
/* full client step 9: image preview, quota */
.preview-dialog { max-width: 92vw; max-height: 92vh; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.preview-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.preview-dialog img { display: block; max-width: 88vw; max-height: 80vh; margin: .3rem auto; }
.preview-dialog button { float: right; }
.mail-quota { font-size: .9rem; }
.quota-bar { display: inline-block; vertical-align: middle; width: 10rem; height: .5rem; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-left: .4rem; }
.quota-bar span { display: block; height: 100%; background: var(--link); }
.mail-quota.k-over .quota-bar span { background: var(--warn); }
/* phase 7c: a call rings on every page */
.call-ring { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 1rem); display: flex; gap: .7rem; align-items: center;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ok, #3ba55c); border-radius: 10px; padding: .55rem .9rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  animation: ring 1.2s ease-in-out infinite alternate; }
@keyframes ring { from { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); } to { box-shadow: 0 6px 24px rgba(59, 165, 92, .55); } }
@media (prefers-reduced-motion: reduce) { .call-ring { animation: none; } }
@media (max-width: 860px) { .call-ring { bottom: calc(4.4rem + env(safe-area-inset-bottom)); left: .5rem; right: .5rem; transform: none; justify-content: space-between; } }
/* phase 7c: scan a code, photo to a record */
.scan-view { position: relative; max-width: 28rem; aspect-ratio: 1; background: #000; border-radius: 10px; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid var(--red); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.photo-capture { margin-left: .3rem; }
/* notifications (4.2): the Inbox and what to be notified about */
.inbox { list-style: none; padding: 0; margin: .5rem 0; }
.inbox li { display: flex; gap: .8rem; align-items: center; padding: .65rem .8rem .65rem .7rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.inbox li.inbox-day { display: block; padding: 1rem .2rem .35rem; border: 0; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.inbox li.unread { background: color-mix(in srgb, var(--link) 8%, transparent); border-left-color: var(--link); }
.inbox li:not(.unread):not(.inbox-day) { opacity: .78; }
.inbox li:not(.inbox-day):hover { background: var(--surface-2); opacity: 1; }
.inbox-icon { font-size: 1.15rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--surface-2); }
.inbox li.unread .inbox-icon { background: var(--surface); }
.inbox-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.inbox-main > a { color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; text-decoration: none; }
.inbox li.unread .inbox-main > a { font-weight: 600; }
.inbox-main > a:hover { text-decoration: underline; }
.inbox-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; }
.inbox-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--link); display: inline-block; }
.inbox-done { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 50%; width: 2rem; height: 2rem; padding: 0; font-size: 1rem; cursor: pointer; }
.inbox-done:hover { color: var(--ok); border-color: currentColor; }
.inbox-tabs { flex-wrap: wrap; }
.notify-settings .card { margin-bottom: 1rem; }
.notify-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: flex-start; justify-content: space-between; padding: .5rem 0; border-top: 1px solid var(--line); }
.notify-row:first-of-type { border-top: 0; }
.notify-scopes { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .25rem; }
/* full client step 7: rules */
.mail-rules { padding-left: 1.3rem; margin: .3rem 0 .8rem; display: flex; flex-direction: column; gap: .35rem; }
.mail-rules li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
/* full client steps 5 + 6: more filters, star, snooze */
.mail-filters { display: inline-block; }
.mail-filters summary { cursor: pointer; color: var(--muted); }
.mail-filters[open] { display: block; width: 100%; }
.mail-filters-grid { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: end; margin: .4rem 0; }
.mail-star { background: none; border: 0; padding: 0 .2rem; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.mail-star.on { color: var(--warn); }
.mail-quick { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 .6rem; }
.mail-quick .mail-star { border: 1px solid var(--field); border-radius: 6px; padding: .45rem .8rem; font-size: inherit; color: var(--ink); }
.mail-quick .mail-star.on { color: var(--warn); }
.mail-quick > a:first-child { margin-right: .4rem; }
.mail-quick form.inline { display: inline-flex; gap: .4rem; }
.menu-pop .menu-move { display: flex; gap: .4rem; padding: .2rem .7rem .5rem; } .menu-pop .menu-move select { flex: 1 1 auto; min-width: 9rem; }
.mail-assign { flex: 0 0 auto; } .mail-assign[open] { flex: 1 1 100%; }   /* folded = one word in the line of the record */ .mail-assign > summary { cursor: pointer; display: inline; color: var(--link); } .mail-assign[open] > summary.link-btn { margin-right: .5rem; }
.mail-assign .link-form { margin-top: .4rem; }
.snooze .menu-pop form { display: flex; flex-direction: column; }
.snooze .menu-pop button { text-align: left; }
.snooze .snooze-custom { flex-direction: row; gap: .3rem; padding: .3rem; border-top: 1px solid var(--line); }
/* full client step 2: reply / reply all / forward, attachments kept with a draft */
.mail-reply-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .2rem 0 .6rem; }
.mail-reply-actions .button.active { border-color: var(--red); }
.mail-draft-files { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .2rem 0; }
.mail-draft-files .chip { font-size: .85rem; color: var(--ink); display: inline-flex; gap: .3rem; align-items: center; }
.mail-draft-files .chip button { padding: 0 .15rem; }
.mail-list th.check, .mail-list td.check { width: 1.6rem; padding-right: 0; }
.mail-compose { max-width: 46rem; }
.mail-compose .addr-wrap { position: relative; }
.mail-compose .addr-list { top: 100%; left: 0; right: 0; }
.rte-field { display: flex; flex-direction: column; gap: .25rem; }
.rte-bar { display: flex; flex-wrap: wrap; gap: .25rem; }
.rte-bar button { padding: .15rem .5rem; font-size: .85rem; min-width: 2rem; }
.rte-bar .rte-bold { font-weight: 700; } .rte-bar .rte-italic { font-style: italic; } .rte-bar .rte-underline { text-decoration: underline; }
.rte { min-height: 14rem; max-height: 36rem; overflow: auto; padding: .55rem .7rem; border: 1px solid var(--field); border-radius: 6px; background: var(--surface); color: var(--ink); line-height: 1.5; }
.rte:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.rte blockquote { margin: .4rem 0 .4rem .2rem; padding-left: .8rem; border-left: 3px solid var(--line); color: var(--muted); }
.rte p { margin: 0 0 .5rem; }
/* Výroba: produkty, revízie, kusovník, katalóg (phase 8) */
.k-over { color: var(--warn); font-weight: 600; }
ul.plain { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-direction: column; gap: .25rem; }
.pick-wrap { position: relative; display: inline-block; }
.pick-wrap .lookup-list { top: 100%; left: 0; min-width: 26rem; max-width: 90vw; }
.badge.prod-development { border-color: var(--link); color: var(--link); } .badge.prod-production { border-color: var(--ok); color: var(--ok); }
.badge.rev-draft { border-color: var(--warn); color: var(--warn); } .badge.rev-released { border-color: var(--ok); color: var(--ok); } .badge.rev-obsolete { text-decoration: line-through; }
.badge.cmp-added { border-color: var(--ok); color: var(--ok); } .badge.cmp-removed { border-color: var(--err); color: var(--err); } .badge.cmp-changed { border-color: var(--warn); color: var(--warn); }
.rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; }
.rev-numbers { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.rev-numbers div { display: flex; flex-direction: column; }
.rev-numbers small { color: var(--muted); font-size: .85rem; }
.rev-numbers b { font-size: 1.25rem; }
.grid.bom td { vertical-align: top; }
.grid.bom .bom-refs { max-width: 14rem; word-break: break-word; }
.grid tr.bom-unpaired td { background: var(--warn-bg); }
.bom-pair { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cost-table { max-width: 44rem; } .cost-table tr.total td { border-top: 2px solid var(--line); }
/* first administrator: what the server needs */
.setup-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.setup-checks .ok { color: var(--ok); }
/* product as a container (Výroba → Produkty) */
.prod-head .prod-search { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 0; }
.prod-head .prod-search input { flex: 1 1 18rem; max-width: 34rem; }
.hub-list { margin: .3rem 0; padding-left: 1.1rem; }
.hub-list li { margin: .15rem 0; }
.hub-forms { display: grid; gap: .6rem; margin-top: .8rem; }
.bom tr.bom-board td { background: var(--soft); }
.nowrap { white-space: nowrap; }
/* CHAT A HOVORY (phase 7c) */
.chat { display: grid; grid-template-columns: minmax(15rem, 20rem) 1fr; gap: 1rem; height: calc(100vh - 11rem); min-height: 26rem; }
.chat-side { display: flex; flex-direction: column; gap: .6rem; min-height: 0; }
.chat-new > summary { list-style: none; display: inline-block; cursor: pointer; }
.chat-new > summary::-webkit-details-marker { display: none; }
.chat-new .card { margin-top: .5rem; display: grid; gap: .8rem; }
.chat-members { display: grid; gap: .2rem; max-height: 12rem; overflow: auto; }
.chat-rooms { overflow: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.chat-rooms a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.chat-rooms .room-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.chat-rooms .room-top { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.chat-rooms .room-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-rooms .room-top .badge { flex: 0 0 auto; font-size: .75rem; }
.chat-rooms a > .av { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; font-size: .75rem; }
.chat-rooms a > .top-count { flex: 0 0 auto; }
.chat-rooms a:hover { background: var(--hover); }
.chat-rooms a.active { background: var(--soft); }
.chat-rooms a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.chat-empty { margin: auto; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.chat-head .chat-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.chat-back { display: none; text-decoration: none; font-size: 1.3rem; }
.chat-callbar { margin: .5rem .9rem 0; }
.chat-messages { flex: 1; overflow: auto; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.msg { max-width: 75%; padding: .45rem .7rem; border-radius: 10px; background: var(--soft); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--red) 18%, var(--surface)); }
.msg.system { align-self: center; background: none; color: var(--muted); font-size: .85rem; padding: 0; }
.msg .msg-text { white-space: normal; overflow-wrap: anywhere; }
.msg blockquote { margin: .2rem 0; padding-left: .5rem; border-left: 3px solid var(--line); color: var(--muted); font-size: .85rem; }
.chat-compose { display: flex; gap: .5rem; padding: .6rem .9rem; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; resize: vertical; min-height: 2.6rem; }
.call { position: fixed; inset: 0; z-index: 60; background: #0b0d10; color: #fff; display: flex; flex-direction: column; padding: 1rem; gap: .6rem; }
.call[hidden] { display: none; }
.call-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .6rem; min-height: 0; overflow: hidden; }
/* the tiles fit the space (alone in the call the own video covered the buttons — Hang up could not be clicked, 2026-11-25) */
.call-tile { position: relative; margin: 0; background: #1b1f24; border-radius: 10px; overflow: hidden; min-height: 0; }
.call-tile:only-child { justify-self: center; width: min(100%, 44rem); max-height: 100%; aspect-ratio: 16 / 10; align-self: center; }
.call-status, .call-bar, .call-devices, .call-unmute { position: relative; z-index: 1; flex: 0 0 auto; }
.call-tile video { width: 100%; height: 100%; object-fit: cover; background: #1b1f24; }
.call-tile.me { border: 2px solid var(--red); }
.call-tile figcaption { position: absolute; left: .5rem; bottom: .4rem; background: rgba(0, 0, 0, .55); padding: .1rem .5rem; border-radius: 6px; font-size: .85rem; }
.call-tile.muted-audio figcaption::after { content: " 🔇"; }
.call-status { text-align: center; color: #cfd6dd; margin: 0; }
.call-bar { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.call-bar button.off { opacity: .55; text-decoration: line-through; }
.call-bar .danger, button.danger { background: #c62828; color: #fff; border-color: #c62828; }
body.in-call { overflow: hidden; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 9rem); }
  .chat.has-room .chat-side { display: none; }
  .chat:not(.has-room) .chat-main { display: none; }
  .chat-back { display: inline; }
  .msg { max-width: 90%; }
}

/* ===== Design system (UX overhaul 2026-11, docs/ux-audit.md, sketches docs/ux-audit/navrhy/) =====
   One main action per screen (.primary, red) at the right of .page-header, the rest in the "⋯" menu (.more);
   edit in place / side panel (.drawer); rows without underlines; words + colour for states. */
.grid td a, .list a, .facts a, .board-card { text-decoration: none; }
.grid td a:hover, .list a:hover, .facts a:hover { text-decoration: underline; }
/* page header: title, meta line, actions (secondary buttons, ONE primary, ⋯) */
.page-header { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.page-header h1 { margin: 0; font-size: 1.55rem; }
.page-header .ph-title { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; flex: 1 1 auto; min-width: 0; }
.page-header .ph-meta { flex-basis: 100%; color: var(--muted); font-size: .88rem; }
.page-header .ph-crumbs { flex-basis: 100%; color: var(--muted); font-size: .875rem; }
.page-header .ph-crumbs a { color: var(--muted); text-decoration: none; }
.page-header .ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-left: auto; }
/* the ⋯ menu: <details class="more"><summary>⋯</summary><div class="menu-pop">…</div></details> */
.more { position: relative; display: inline-block; }
.more > summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border: 1px solid var(--field); border-radius: 6px; line-height: 1.1; color: var(--ink); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: var(--hover); }
.more .menu-pop form { margin: 0; }
.more .menu-pop button { display: flex; width: 100%; padding: .42rem .7rem; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.more .menu-pop button:hover { background: var(--hover); }
.more .menu-pop .danger, .more .menu-pop button.danger { color: var(--err); background: none; border: 0; }
.menu-sep { height: 1px; background: var(--line); margin: .25rem .2rem; }
/* views of a record (Overview · List · Board …): underline tabs */
.view-tabs { display: flex; flex-wrap: wrap; gap: 1.3rem; border-bottom: 1px solid var(--line); margin: 0 0 1.1rem; }
.view-tabs a { padding: .5rem 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.view-tabs a:hover { color: var(--ink); }
.view-tabs a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent, var(--red)); }
/* segmented control (inner tabs) */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 1rem; flex-wrap: wrap; }
.seg a, .seg button { padding: .3rem .85rem; border-radius: 7px; border: 0; background: none; color: var(--muted); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; }
.seg a.active, .seg button.active { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
/* two columns: content + side facts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.stack > .card, .stack > table.grid, .stack > .scroll-x, .stack > .notice { margin-bottom: 0; }
.card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.card-head h2 { margin: 0; font-size: 1.1rem; font-weight: 650; flex: 1 1 auto; }
.card-head > a, .card-head .link-btn { font-size: .88rem; text-decoration: none; }
/* key → value rows */
.facts { display: flex; flex-direction: column; margin: 0; }
.facts > div { display: flex; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt, .facts .k { flex: 0 0 8rem; color: var(--muted); }
.facts dd, .facts .v { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* list of rows (tasks, alerts, costs): check circle, title + sub line, right side */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); min-height: 2.6rem; }
.list-row:last-child { border-bottom: 0; }
.list-row .main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.list-row .main > a, .list-row .main > span:first-child { color: var(--ink); overflow-wrap: anywhere; }
.list-row .sub { color: var(--muted); font-size: .875rem; }
.list-row .end { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.list-row.done .main > a, .list-row.done .main > span:first-child { color: var(--muted); text-decoration: line-through; }
.list-row.late .end { color: var(--warn); font-weight: 600; }
.list-head { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: .9rem .2rem .3rem; border-bottom: 1px solid var(--line); }
.list-add { display: flex; align-items: center; gap: .75rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); margin: 0; }
.list-add input { flex: 1 1 auto; background: transparent; border: 0; padding: .2rem 0; }
.list-add input:focus { outline: none; }
.list-add .ring { border-style: dashed; }
/* the round "done" check */
.check-circle { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1.5px solid var(--dimmed); background: transparent; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; line-height: 1; color: transparent; cursor: pointer; }
.check-circle:hover { border-color: var(--ok); color: var(--ok); }
.check-circle.on { background: var(--ok); border-color: var(--ok); color: #0b2a12; }
.ring { display: inline-block; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1.5px solid var(--dimmed); flex: 0 0 auto; }
/* big number + bar */
.bar { height: 8px; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; background: var(--link); }
.bar > i.ok { background: var(--ok); } .bar > i.warn { background: var(--warn); } .bar > i.err { background: var(--err); } .bar > i.muted { background: var(--dimmed); }
.bar > i.hatch { background: repeating-linear-gradient(45deg, var(--warn) 0 3px, transparent 3px 7px); }
.bar.thin { height: 5px; } .bar.big { height: 14px; border-radius: 7px; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat .stat-top { display: flex; gap: .5rem; font-size: .88rem; } .stat .stat-top span { flex: 1; color: var(--muted); } .stat .stat-top b { font-weight: 600; }
.stat small { color: var(--muted); }
a.stat { color: inherit; text-decoration: none; } a.stat:hover small { color: var(--link); }
.lead { font-size: 1.25rem; line-height: 1.45; margin: 0; }
.lead b { font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; background: var(--c, var(--link)); }
/* status pills: words first, colour helps */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok, .pill.on_track, .pill.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn, .pill.at_risk { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.err, .pill.off_track { background: var(--err-bg); color: var(--err); border-color: transparent; }
.pill.info { background: color-mix(in srgb, var(--link) 16%, var(--surface)); color: var(--link); border-color: transparent; }
details.pill-pick { position: relative; display: inline-block; }
details.pill-pick > summary { list-style: none; cursor: pointer; }
details.pill-pick > summary::-webkit-details-marker { display: none; }
details.pill-pick .menu-pop { left: 0; right: auto; }
/* notice line (one sentence + one action) */
.notice { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem;
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.notice > span { flex: 1 1 auto; }
.notice a { font-weight: 600; color: var(--warn); }
.notice.err { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 40%, transparent); } .notice.err a { color: var(--err); }
.notice.info { background: var(--surface-2); border-color: var(--line); } .notice.info a { color: var(--link); }
/* empty state */
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .3rem; }
.empty p { margin: .2rem auto .8rem; max-width: 34rem; }
/* small avatars */
.av { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: .66rem; font-weight: 600;
  color: #f2f4f6; background: var(--c, #2a5f6e); flex: 0 0 auto; }
.avs { display: inline-flex; } .avs .av { border: 2px solid var(--surface); margin-left: -.45rem; } .avs .av:first-child { margin-left: 0; }
/* pictures of people and groups (6.13b) */
.av.has-photo { background: var(--surface-2); overflow: hidden; padding: 0; }
.av.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-lg { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; }
.photo-form { display: flex; gap: 1rem; align-items: center; margin: .2rem 0 .8rem; }
.photo-form .field-hint { margin: .3rem 0 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.comment-who, .card-who { display: inline-flex; align-items: center; gap: .3rem; }
.comment-who .av, .card-who .av { width: 1.3rem; height: 1.3rem; font-size: .55rem; }
.msg .av { width: 1.5rem; height: 1.5rem; font-size: .6rem; vertical-align: middle; margin-right: .3rem; }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; flex: 0 0 auto; background: var(--c, var(--link)); }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font-size: .8rem; background: var(--surface-2); color: var(--muted); border-radius: 4px; padding: .05rem .45rem; border: 1px solid var(--line); }
/* tile links (settings hub) */
.hub-group h2 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .6rem; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.hub a { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); min-height: 4.6rem; }
.hub a:hover { border-color: var(--field); background: var(--hover); }
.hub a b { font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.hub a b .pill { margin-left: auto; font-size: .72rem; }
.hub a span { color: var(--muted); font-size: .86rem; line-height: 1.35; }
/* help in a side panel */
.drawer .help { max-width: none; }
/* new left menu: + New, top items, starred projects, work areas, settings / help / me at the bottom */
.side-new { position: relative; margin: 0 .1rem .7rem; }
.side-new > summary { list-style: none; display: flex; justify-content: center; align-items: center; gap: .35rem; padding: .5rem; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 600; cursor: pointer; }
.side-new > summary::-webkit-details-marker { display: none; }
.side-new[open] > summary { filter: brightness(1.07); }
.side-new .menu-pop { left: 0; right: auto; width: 100%; max-height: 70vh; overflow-y: auto; }
.side-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--side-muted); padding: .9rem .6rem .25rem; }
.side nav a .dot { margin: 0 .25rem 0 .2rem; }
.side nav a.more-link { color: var(--side-muted); font-size: .86rem; }
.side-user { position: relative; margin-top: .3rem; }
.side-user > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 6px; cursor: pointer; }
.side-user > summary::-webkit-details-marker { display: none; }
.side-user > summary:hover { background: var(--side-hover); }
.side-user > summary .av { width: 1.9rem; height: 1.9rem; font-size: .75rem; background: var(--red); }
.side-user > summary span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-user > summary b { color: #e4e7ea; font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user > summary small { color: var(--side-muted); font-size: .8rem; }
.side-user .menu-pop { top: auto; bottom: calc(100% + .3rem); left: 0; right: auto; width: 15rem; }
.menu-pop .menu-label { padding: .35rem .7rem .15rem; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.menu-pop .menu-btn.on { font-weight: 600; }
.menu-pop .menu-btn.on::after { content: "✓"; margin-left: auto; color: var(--ok); }
.help-btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem;
  color: var(--muted); background: none; text-decoration: none; cursor: pointer; white-space: nowrap; }
.help-btn:hover { color: var(--ink); background: var(--surface-2); }
.side-panel { width: min(38rem, 100vw); }
.side-panel-head { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: .5rem .8rem 0; background: var(--surface); z-index: 1; }
.side-panel-close { font-size: 1.1rem; text-decoration: none; color: var(--muted); padding: .2rem .4rem; }
.side-panel .drawer-body { padding-top: 0; }
.crumbs { margin: -.4rem 0 1rem; font-size: .9rem; } .crumbs a { text-decoration: none; }
.settings-hub { max-width: 72rem; } .hub-search input { width: min(28rem, 100%); }
.hub a[hidden], .hub-group[hidden] { display: none; }
/* project header (views/tasks/project-tabs.php) */
.key-tile { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .35rem; border-radius: 8px; background: var(--c, var(--link)); color: #0b1418; font-weight: 700; font-size: .75rem; }
.star { background: none; border: 0; padding: .1rem .2rem; font-size: 1.15rem; line-height: 1; color: var(--dimmed); cursor: pointer; }
.star:hover, .star.on { color: var(--warn); }
.project-head .avs { text-decoration: none; margin-right: .3rem; }
.project-head .pill-pick .menu-btn { padding: .3rem .5rem; }
/* Home = my day (views/dashboard.php) */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.2rem; align-items: start; margin-bottom: 1.2rem; }
.home-grid > .card { margin-bottom: 0; }
.home-head .pill { text-decoration: none; }
.section-title { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .6rem; }
a.list-row { color: var(--ink); text-decoration: none; }
a.list-row:hover { background: var(--hover); }
a.list-row .end { color: var(--link); }
.attn-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: 0 0 auto; background: var(--dimmed); }
.attn.err .attn-dot { background: var(--err); } .attn.warn .attn-dot { background: var(--warn); } .attn.info .attn-dot { background: var(--link); }
.list-row.proj .main .bar { margin: .25rem 0 .1rem; max-width: 22rem; }
.list-head.late { color: var(--warn); }
details.card > summary { cursor: pointer; }
.home-shops h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.list-add select, .list-add button { flex: 0 0 auto; }
.my-tasks .list-add { margin-bottom: .2rem; }
.ov-desc { line-height: 1.6; margin: 0; }
.status-form > summary { display: inline-block; list-style: none; }
.status-form > summary::-webkit-details-marker { display: none; }
/* record box as one card with tabs (views/core/record.php) */
.record-box { display: block; margin-top: 1.2rem; }   /* never glued to the page above it */
.stack > .record-box { margin-top: 0; } .stack > .record-link { margin-top: -.4rem; }   /* in a column the gap of the column is enough */
.record-box.tabbed > section.record > h2:first-child { font-size: 0; margin: 0; } .record-box.tabbed > section.record > h2:first-child .button { font-size: .85rem; float: right; }
.record-box > section.record + section.record { margin-top: 1rem; } .record-box.tabbed > section.record + section.record { margin-top: 0; }
.record-box .record[hidden] { display: none; }
label.field { display: flex; flex-direction: column; gap: .3rem; } label.field textarea { width: 100%; }
/* project finance (views/tasks/finance.php, tasks/cost-form.php) */
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; align-items: start; }
.fin-grid > .card { margin-bottom: 0; }
.fin .list-row .stat-top { font-size: .9rem; }
input.big-input { font-size: 1.3rem; font-weight: 600; }
.chip-pick, .seg-pick { display: inline-flex; align-items: center; cursor: pointer; }
.chip-pick input, .seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { border: 1px solid var(--field); border-radius: 999px; padding: .3rem .75rem; font-size: .88rem; }
.chip-pick input:checked + span { background: var(--red-soft); border-color: var(--red); color: var(--ink); font-weight: 600; }
.chip-pick input:focus-visible + span, .seg-pick input:focus-visible + span { outline: 2px solid var(--link); }
.seg-pick span { display: inline-block; padding: .35rem .85rem; border-radius: 7px; color: var(--muted); font-size: .9rem; }
.seg-pick input:checked + span { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.cost-quick .seg { margin: 0; }
td .more .menu-pop { min-width: 16rem; }

/* ---------------------------------------------------------------- task sheet (views/tasks/task.php): page and side panel, edit in place */
.side-panel { width: min(44rem, 100vw); }
.task-sheet { display: flex; flex-direction: column; gap: .2rem; max-width: 78rem; }
.ts-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .4rem; }
.ts-head .ph-crumbs { flex: 1 1 auto; color: var(--muted); font-size: .875rem; min-width: 0; }
.ts-head .ph-crumbs a { color: var(--muted); text-decoration: none; }
.ts-head .ph-crumbs a:hover { color: var(--link); }
.ts-actions { display: flex; align-items: center; gap: .4rem; }
.task-sheet.is-done .ts-done { border-color: var(--ok); color: var(--ok); }
.ts-title textarea, .ts-title-ro { width: 100%; font-size: 1.45rem; font-weight: 600; line-height: 1.3; border: 1px solid transparent; background: transparent;
  color: var(--ink); padding: .2rem .35rem; margin: 0 0 .5rem -.35rem; resize: none; overflow: hidden; border-radius: 6px; }
.ts-title textarea:hover { border-color: var(--line); }
.ts-title textarea:focus { border-color: var(--link); outline: none; background: var(--surface-2); }
.task-sheet.is-done .ts-title textarea { text-decoration: line-through; color: var(--muted); }
.ts-props { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .35rem 1rem; align-items: center; margin: 0 0 .8rem; }
.ts-props > label, .ts-props dt { color: var(--muted); font-size: .86rem; margin: 0; }
.ts-props dd { margin: 0; }
.ts-props select, .ts-props input { max-width: 100%; }
.ts-props select, .ts-props input:not([type=date]) { width: min(100%, 20rem); }
.ts-props input.late { border-color: var(--warn); color: var(--warn); }
.ts-dates { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ts-desc { display: flex; flex-direction: column; gap: .25rem; margin: 0 0 .3rem; }
.ts-desc textarea { width: 100%; min-height: 4.5rem; resize: vertical; }
.ts-save { margin: 0 0 .4rem; min-height: 1.2rem; }
.ts-meta { margin: 0 0 .6rem; }
.ts-section { border-top: 1px solid var(--line); padding: .7rem 0 .4rem; margin: 0; }
.ts-section h2 { font-size: 1.05rem; margin: 0 0 .3rem; display: inline; }
.ts-section > h2 { display: block; }
.ts-section summary { cursor: pointer; list-style: none; padding: .1rem 0; }
.ts-section summary::-webkit-details-marker { display: none; }
.ts-section summary::before { content: '▸'; color: var(--muted); display: inline-block; width: 1rem; }
.ts-section[open] summary::before { content: '▾'; }
.ts-section .list-add { border-bottom: 0; }
.task-sheet .record-box { margin-top: 1rem; }
.check-circle.small { width: 1.1rem; height: 1.1rem; font-size: .7rem; }
.ring.small { width: 1.1rem; height: 1.1rem; }
.done-text { text-decoration: line-through; }
.embed-page > .flash { margin-top: 0; }
@media (max-width: 640px) { .ts-props { grid-template-columns: 1fr; gap: .15rem; } .ts-props > label { margin-top: .4rem; } }

/* project List (views/tasks/list.php) and filters */
.project-list { padding-top: .2rem; }
.list-section + .list-section { margin-top: .4rem; }
.filters.compact { gap: .4rem; }
.filters.compact input[name=q] { min-width: 12rem; }

/* member picker of the project settings */
.member-list .list-row { padding: .4rem .2rem; }
.member-add { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0 .2rem; }
.project-row .project-progress { width: 6rem; flex: 0 0 auto; }
.project-row .key-tile { flex: 0 0 auto; }
.notice-list { margin: -.6rem 0 1rem; padding: .2rem 1rem .6rem 2.4rem; color: var(--err); }
.menu-pop .menu-note { display: block; padding: .42rem .7rem; color: var(--muted); font-size: .875rem; }
.page-head .head-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; align-self: center; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; background: var(--surface); padding: .7rem 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* phone: bottom bar + "+" (sketch docs/ux-audit/navrhy/Mobile.dc.html) */
.bottom-bar, .fab { display: none; }
@media (max-width: 860px) {
  .bottom-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
    padding: .25rem .2rem calc(.25rem + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom-bar a, .bottom-bar button { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem .1rem; color: var(--muted);
    text-decoration: none; font-size: .68rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
  .bottom-bar a.active { color: var(--red); }
  .bottom-bar .bb-count { position: absolute; top: .1rem; left: calc(50% + .4rem); background: var(--red); color: #fff; border: 0; font-size: .62rem; padding: 0 .3rem; }
  .fab { display: flex; align-items: center; justify-content: center; position: fixed; right: 1rem; bottom: calc(4.4rem + env(safe-area-inset-bottom)); z-index: 31; width: 3.4rem; height: 3.4rem;
    border-radius: 50%; background: var(--red); color: #fff; font-size: 1.8rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .main .content { padding-bottom: 6rem; }
  .side-panel { width: 100vw; }
}
@media (max-width: 640px) {
  .list-add { flex-wrap: wrap; }
  .list-add input[name=title], .list-add input[name=text] { flex: 1 1 calc(100% - 2.5rem); min-width: 0; }
  .list-row { flex-wrap: wrap; }
  .list-row .end { margin-left: auto; }
  .page-head, .page-header { min-width: 0; }
}
@media (max-width: 860px) { body { overflow-x: hidden; } }
@media (max-width: 640px) { .list-row .main { flex: 1 1 12rem; min-width: 0; } .list-row > form.inline, .list-row > .ring, .list-row > .check-circle { flex: 0 0 auto; } }
.code-block { white-space: pre-wrap; word-break: break-all; background: var(--code); padding: .5rem .7rem; border-radius: 6px; font-size: .85rem; margin: .3rem 0; }
.talk-qr { width: 240px; height: 240px; background: #fff; padding: 8px; border-radius: 8px; }

/* ---- Readability (owner 2026-11-24: "webpage is still kind of hard to read") — docs/ux-guidelines.md "Čitateľnosť" ----
   one link style: coloured, no line; the line comes on hover / keyboard focus. In running text (help, documents,
   comments, mail) links keep the line so they are seen among the words. */
a { text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
.help a, .doc-body a, .comment p a, .mail-body a, p.ov-desc a, .field-hint a, .notice a { text-decoration: underline; }
.button:hover, .tabs > a:hover, .view-tabs a:hover, .seg a:hover, .side a:hover, .menu-pop a:hover, .chat-rooms a:hover, .hub a:hover,
  .folder-bar a:hover, .subtabs a:hover, .board-card:hover, a.stat:hover { text-decoration: none; }
/* card titles and table heads read as headings, values as values */
.grid th { color: var(--muted); letter-spacing: .01em; }
.grid td { line-height: 1.45; }
.card { border-color: var(--line); }
.list-row .main > a, .list-row .main > span:first-child { font-weight: 500; }

/* Employee form (owner 2026-11-24: the rights "uplne na kokot"): the person left, what they may do right */
.emp-form { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 980px) { .emp-form { grid-template-columns: minmax(0, 1fr); } }
.emp-form .card h2 { margin-top: 0; }
.emp-person .emp-mailbox { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.emp-person .emp-mailbox h3 { margin: 0 0 .4rem; font-size: 1rem; }
.input-row { display: flex; gap: .4rem; } .input-row input { flex: 1 1 auto; min-width: 0; }
.emp-rights .perms > label.check { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.emp-rights .perms > label.check small { display: inline-block; margin-top: .1rem; }
.emp-scope { margin-top: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.emp-scope > summary { cursor: pointer; }
.emp-save { margin-top: 1rem; }
.rights { display: flex; flex-direction: column; gap: .5rem; margin-top: .4rem; }
.rights-area { border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; }
.rights-area > summary { cursor: pointer; padding: .15rem 0; }
.perm-row { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.perm-row:first-of-type { margin-top: .35rem; }
.perm-row input[type=checkbox] { margin-top: .25rem; }
.perm-row .perm-src { margin-left: .3rem; }
.form label.perm-row { display: flex; flex-direction: row; align-items: flex-start; gap: .6rem; margin: 0; }
.form label.perm-row input[type=checkbox] { width: auto; flex: 0 0 auto; margin: .3rem 0 0; }
.emp-form .card.form { max-width: none; }
/* Files of a record: pictures as thumbnails (owner 2026-11-24: pictures everywhere) */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin: .8rem 0; }
.file-thumb { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.file-thumb.is-cover { border-color: var(--warn); }
.file-thumb img { display: block; width: 100%; height: 120px; object-fit: cover; background: var(--soft); }
.file-thumb figcaption { padding: .35rem .5rem; font-size: .82rem; display: flex; flex-direction: column; gap: .2rem; }
.file-thumb .file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-thumb .file-acts { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.files-upload { margin-bottom: .6rem; }
.record-cover { width: 3rem; height: 3rem; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.segment-row { border-top: 1px solid var(--line); padding: .8rem 0; }
.segment-row:first-of-type { border-top: 0; }
.period-presets { margin: .2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.period-presets .chip { padding: .25rem .65rem; font-size: .85rem; text-decoration: none; }
.period-presets .chip.active { background: var(--red-soft); border-color: var(--red); color: var(--ink); }

/* Chat on every page, like Messenger (js/chat-dock.js, owner 2026-11-25) */
.chat-dock { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; }
.cd-btn { width: 3.4rem; height: 3.4rem; border-radius: 50%; font-size: 1.5rem; background: var(--surface-2); border: 1px solid var(--field);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 0; position: relative; }
.cd-btn:hover { background: var(--hover); }
.cd-count { position: absolute; top: -.2rem; right: -.2rem; background: var(--red); border-color: var(--red); color: #fff; font-size: .75rem; }
.cd-list { position: absolute; right: 0; bottom: 4.2rem; width: 22rem; max-height: min(32rem, 70vh); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); overflow: hidden; }
.cd-list[hidden], .cd-win[hidden] { display: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem .4rem; }
.cd-head .cd-full { font-size: .85rem; }
.cd-search { margin: 0 .8rem .5rem; }
.cd-rooms { overflow-y: auto; padding: 0 .4rem .5rem; }
.cd-room { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: .5rem; color: var(--ink); cursor: pointer; }
.cd-room:hover { background: var(--hover); }
.cd-room .av { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; }
.cd-room-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cd-room-main b, .cd-room-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.cd-room.unread .cd-room-main b { font-weight: 700; }
.cd-win { position: fixed; right: 5.6rem; bottom: 1.2rem; width: 22rem; height: min(30rem, 75vh); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 8px 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); overflow: hidden; }
.cd-win.min { height: auto; }
.cd-win.min .cd-msgs, .cd-win.min .cd-compose { display: none; }
.cd-win-head { display: flex; align-items: center; gap: .3rem; padding: .45rem .5rem .45rem .8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cd-win-head .cd-title { flex: 1 1 auto; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font-weight: 650; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cd-win-head a, .cd-win-head .cd-min, .cd-win-head .cd-close { background: none; border: 0; padding: .2rem .45rem; color: var(--muted); text-decoration: none; cursor: pointer; }
.cd-win-head a:hover, .cd-win-head button:hover { color: var(--ink); }
.cd-msgs { flex: 1 1 auto; overflow-y: auto; padding: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.cd-msgs .msg { max-width: 85%; display: flex; gap: .4rem; align-items: flex-start; font-size: .92rem; }
.cd-msgs .msg .av { flex: 0 0 auto; margin: .1rem 0 0; }
.cd-msgs .msg-body { min-width: 0; }
.cd-compose { display: flex; gap: .4rem; padding: .5rem; border-top: 1px solid var(--line); }
.cd-compose textarea { flex: 1 1 auto; resize: none; min-height: 2.4rem; max-height: 8rem; }
.cd-compose button { flex: 0 0 auto; }
@media (max-width: 860px) {
  .chat-dock { right: 1rem; bottom: calc(8.4rem + env(safe-area-inset-bottom)); }   /* above the "+" button and the bottom bar */
  .cd-btn { width: 3rem; height: 3rem; font-size: 1.3rem; }
  .cd-list { position: fixed; left: .5rem; right: .5rem; width: auto; bottom: calc(4.2rem + env(safe-area-inset-bottom)); max-height: 70vh; }
  .cd-win { left: 0; right: 0; top: 0; bottom: calc(3.9rem + env(safe-area-inset-bottom)); width: auto; height: auto; border-radius: 0; z-index: 45; }
  .cd-win.min { top: auto; height: auto; }
}
@media print { .chat-dock { display: none; } }
/* own events of the calendar (owner 2026-11-25) */
.cal a.day { color: var(--muted); text-decoration: none; display: inline-block; min-width: 1.4rem; }
.cal a.day:hover { color: var(--ink); text-decoration: underline; }
.cal td a.k-meeting, a.k-meeting { background: color-mix(in srgb, var(--link) 22%, transparent); border-radius: 4px; padding: 0 .25rem; color: var(--ink); }
/* availability (owner 2026-11-25) */
.st-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--dimmed); flex: 0 0 auto; }
.st-online { background: var(--ok); } .st-away { background: var(--warn); } .st-dnd { background: var(--err); } .st-invisible, .st-offline { background: transparent; border: 2px solid var(--dimmed); width: .45rem; height: .45rem; }
.menu-status { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .3rem; }
.menu-status input, .menu-status select { margin: .2rem .7rem 0; font-size: .85rem; }
.menu-status small { padding: .2rem .7rem 0; font-size: .75rem; }
.cd-room .av { position: relative; }
.cd-room .st-dot { position: absolute; right: -.1rem; bottom: -.1rem; border: 2px solid var(--surface); width: .7rem; height: .7rem; }
.cd-room .st-msg { color: var(--muted); font-size: .78rem; }
.room-status { display: flex; align-items: center; gap: .3rem; color: var(--muted); }
/* call: devices, the sound of the others (owner 2026-11-25) */
.call-devices { align-self: center; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; background: #1b1f24; border-radius: 10px; padding: .7rem 1rem; max-width: 52rem; }
.call-devices[hidden] { display: none; }
.call-devices label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: #cfd6dd; min-width: 14rem; flex: 1; }
.call-devices label[hidden] { display: none; }
.call-devices select { background: #0b0d10; color: #fff; border: 1px solid #3a424b; border-radius: 6px; padding: .35rem .4rem; }
.call-devices small { flex-basis: 100%; color: #9aa4ad; }
.call-level { display: block; height: 5px; background: #0b0d10; border-radius: 3px; overflow: hidden; }
.call-level span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .08s linear; }
.call-unmute { text-align: center; margin: 0; }
.call-unmute button[hidden] { display: none; }
.call-tile figcaption[data-note]:not([data-note=""])::after { content: " — " attr(data-note); color: #ffd27a; }

.call-tile.screen video { object-fit: contain; background: #000; }   /* a shared screen whole, not cropped */
/* teams (owner 2026-11-25) */
.team-tree { display: flex; flex-direction: column; gap: .6rem; }
.team-tree .team { margin: 0 0 0 calc(var(--depth, 0) * 1.6rem); border-left: 3px solid var(--link); }
.team-head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.team-people { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .5rem 0 0; }
.team-lead, .team-member { display: inline-flex; align-items: center; gap: .35rem; }
.team-lead { font-weight: 600; }

/* calendar: the sources beside the month (owner 2026-11-25 "like Nextcloud calendar, checkboxes") */
.cal-page { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.cal-side { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.cal-side .small-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .6rem 0 .2rem; }
.cal-side .small-head:first-child { margin-top: 0; }
.cal-layer { display: flex; align-items: center; gap: .45rem; font-size: .9rem; }
.cal-swatch { width: .8rem; height: .8rem; border-radius: 3px; flex: 0 0 auto; background: var(--dimmed); }
.cal-swatch.l-my-events { background: var(--link); }
.cal-swatch.l-tasks-and-projects { background: #a78bfa; }
.cal-swatch.l-leave-and-public-holidays { background: var(--ok); }
.cal-swatch.l-invoices, .cal-swatch.l-costs-and-payments, .cal-swatch.l-our-orders { background: var(--warn); }
.cal-swatch.l-obligations-of-the-company { background: var(--red); }
.cal-own { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c, var(--link)); padding-left: .25rem; margin: 1px 0; color: var(--ink); }
td .cal-own { font-size: .8rem; }
[data-upcoming] .cal-own { display: inline; }
.err-text { color: var(--err); }
@media (max-width: 860px) {
  .cal-page { grid-template-columns: 1fr; }
  .cal-side { position: static; flex-direction: row; flex-wrap: wrap; gap: .3rem .9rem; }
  .cal-side .small-head { flex-basis: 100%; }
  .cal-side .field-hint { flex-basis: 100%; }
}
/* chat: people (owner 2026-11-25 "nemôžem vidieť užívateľov v chate") */
.chat-people-head, .cd-people-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .8rem .6rem .2rem; }
.chat-person-form { margin: 0; }
.chat-person { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; width: 100%;
  background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.chat-person:hover { background: var(--hover); }
.chat-person .room-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.chat-person .room-main b, .chat-person .room-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-wrap { position: relative; flex: 0 0 auto; display: inline-flex; }
.av-wrap .av { width: 2.2rem; height: 2.2rem; font-size: .75rem; }
.av-wrap .st-dot, .cd-person .av .st-dot { position: absolute; right: -.1rem; bottom: -.1rem; border: 2px solid var(--surface); width: .7rem; height: .7rem; }
.cd-person .av { position: relative; }
.chat-readall, .cd-readall { margin: .3rem .6rem; }
.chat-readall button { padding: 0; }
/* chat: pictures, files, GIFs (owner 2026-11-25) */
.chat-compose, .cd-compose { position: relative; }
.chat-tools { display: flex; gap: .2rem; align-items: flex-end; }
.chat-tool { padding: .3rem .45rem; min-width: 2.2rem; font-size: .95rem; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; }
.chat-tool[data-gif] { font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.chat-tool:hover { background: var(--hover); }
.chat-upload { position: absolute; left: .4rem; top: -1.3rem; }
.chat-img { display: block; margin: .3rem 0; max-width: min(22rem, 100%); }
.chat-img img { display: block; max-width: 100%; max-height: 18rem; border-radius: 10px; background: var(--surface-2); }
.cd-msgs .chat-img { max-width: 100%; }
.cd-msgs .chat-img img { max-height: 12rem; }
.chat-file { display: inline-block; margin: .3rem 0; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; }
.drop-on { outline: 2px dashed var(--link); outline-offset: -4px; }
.gif-pop { position: absolute; bottom: calc(100% + .4rem); left: 0; z-index: 30; width: min(22rem, 92vw); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: .4rem; }
.gif-pop input { width: 100%; }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; max-height: 16rem; overflow: auto; }
.gif-grid button { padding: 0; border: 0; background: var(--surface-2); border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gif-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-pop > small { text-align: right; font-size: .7rem; }
/* the task: two columns (owner 2026-11-25 "wall of text") — what to do on the left, the details on the right */
.ts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; grid-template-areas: "top side" "rest side"; grid-template-rows: auto 1fr; gap: 0 2rem; align-items: start; }
.ts-top { grid-area: top; min-width: 0; }
.ts-rest { grid-area: rest; min-width: 0; }
.ts-side { grid-area: side; display: flex; flex-direction: column; gap: .7rem; position: sticky; top: 1rem; }
.ts-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; }
.ts-side .ts-props { grid-template-columns: 6.2rem minmax(0, 1fr); gap: .45rem .7rem; margin: 0; }
.ts-side .ts-props select, .ts-side .ts-props input:not([type=date]), .ts-side .ts-props input[type=date] { width: 100%; }
.ts-side .ts-est { display: flex; align-items: center; gap: .4rem; }
.ts-side .ts-est input { width: 4.5rem !important; flex: 0 0 auto; }
.ts-side .ts-meta { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); line-height: 1.5; }
.ts-fold > summary { cursor: pointer; font-weight: 600; list-style: none; }
.ts-fold > summary::-webkit-details-marker { display: none; }
.ts-fold > summary::before { content: '▸'; color: var(--muted); display: inline-block; width: 1rem; }
.ts-fold[open] > summary { margin-bottom: .5rem; }
.ts-fold[open] > summary::before { content: '▾'; }
.ts-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; margin: 0 0 .45rem; font-size: .88rem; }
.ts-entry small { grid-column: 1 / -1; }
.ts-log { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.ts-log input:not([type=checkbox]) { width: 100%; }
.ts-log-row { display: flex; gap: .4rem; align-items: center; justify-content: space-between; }
.ts-log-row input[type=date] { flex: 1 1 auto; }
.ts-log-row input[name=hours] { width: 6rem; flex: 0 0 auto; }
.ts-label { color: var(--muted); font-size: .86rem; }
.ts-desc textarea { min-height: 6rem; line-height: 1.55; }
.ts-desc-ro { line-height: 1.6; margin: .3rem 0 1rem; }
.ts-rest .ts-section:first-child { margin-top: .6rem; }
@media (max-width: 1100px) {
  .ts-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "rest"; }
  .ts-side { position: static; }
}
.side-panel .ts-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "rest"; }
.side-panel .ts-side { position: static; }

.autosave-btn[hidden] { display: none !important; }   /* the fields save themselves (JS); the button only without JS */
/* unread e-mails stand out (owner 2026-11-25: "new emails are hardly visible in list of all emails") — like Gmail: unread =
   bold + a blue dot + a stripe on the left + a lighter row; read = normal weight, a little dimmer */
.mail-list tr.unread td { background: color-mix(in srgb, var(--link) 8%, transparent); }
.mail-list tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--link); }
.mail-list tr.unread .mail-from { font-weight: 700; color: var(--ink); }
.mail-list tr.unread .mail-from::before { content: ''; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--link); margin-right: .45rem; vertical-align: .1em; }
.mail-list tr.unread .mail-subj > a { font-weight: 700; color: var(--ink); }
.mail-list tr:not(.unread) .mail-from { color: var(--muted); font-weight: 400; }
.mail-list tr:not(.unread) .mail-subj > a { color: var(--ink); font-weight: 400; opacity: .82; }
.mail-list .mail-subj > a:hover { color: var(--link); opacity: 1; }
/* the bottom of the left menu: report a problem / idea + version (owner 2026-11-25) */
.side-meta { display: flex; flex-direction: column; gap: .15rem; padding: .2rem .7rem .4rem; font-size: .78rem; }
.side-meta a { display: block !important; color: var(--side-muted); text-decoration: none; padding: .15rem 0 !important; background: none !important; }
.side-meta a:hover { color: var(--side-ink); }
.side-new { color: var(--ok); font-weight: 600; }
/* reports of problems and ideas */
.feedback-form .seg-choice { display: flex; flex-direction: column; gap: .3rem; border: 0; padding: 0; margin: 0 0 .4rem; }
.fb-text { white-space: normal; line-height: 1.55; margin: .5rem 0; }
.badge.fb-new { background: var(--red-soft); color: var(--red); }
.badge.fb-accepted, .badge.fb-progress { background: var(--warn-bg); color: var(--warn); }
.badge.fb-done { background: var(--ok-bg); color: var(--ok); }
.badge.fb-rejected { color: var(--muted); }
/* attached, not sent yet (owner 2026-11-25: a pasted picture must wait for Send) */
.chat-pending { display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; order: -1; padding: .1rem 0 .3rem; }
.chat-pending[hidden] { display: none; }
.chat-compose, .cd-compose { flex-wrap: wrap; }
.chat-chip { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.chat-chip img { display: block; height: 4rem; max-width: 7rem; object-fit: cover; }
.chat-chip-name { padding: .35rem 1.6rem .35rem .5rem; font-size: .85rem; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-chip-x { position: absolute; top: 2px; right: 2px; width: 1.3rem; height: 1.3rem; padding: 0; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: .7rem; line-height: 1; cursor: pointer; }
.chat-compose textarea, .cd-compose textarea { flex: 1 1 12rem; }

/* people everywhere (owner 2026-11-25, js/people.js): the status dot in every picture of a person + his card on hover */
.av.av-st { position: relative; overflow: visible; }
.av.has-photo.av-st img { border-radius: 50%; }
.av-st > .st-dot { position: absolute; right: -2px; bottom: -2px; width: 40%; height: 40%; min-width: .5rem; min-height: .5rem; max-width: .8rem; max-height: .8rem;
  border: 2px solid var(--surface); box-sizing: border-box; }
.av-st > .st-offline, .av-st > .st-invisible { background: var(--surface); border-color: var(--dimmed); }
.side .av-st > .st-dot { border-color: var(--side); } .side .av-st > .st-offline, .side .av-st > .st-invisible { border-color: var(--side-muted); background: var(--side); }
.pcard { position: fixed; z-index: 1000; width: 19rem; max-width: calc(100vw - 16px); background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: .9rem 1rem; font-size: .88rem; }
.pcard-head { display: flex; gap: .8rem; align-items: center; }
.pcard .pcard-pic .av { width: 3.4rem; height: 3.4rem; font-size: 1.1rem; background: var(--surface-2); color: var(--ink); }
.pcard .pcard-pic .st-dot { width: .85rem; height: .85rem; }
.pcard-name { display: block; font-size: 1.05rem; line-height: 1.25; }
.pcard-state { display: flex; align-items: center; gap: .35rem; margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.pcard-state .st-dot { position: static; border: 0; width: .55rem; height: .55rem; }
.pcard-state .st-offline, .pcard-state .st-invisible { border: 2px solid var(--dimmed); width: .45rem; height: .45rem; }
.pcard-rows { display: grid; gap: .3rem; margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.pcard-rows:empty { display: none; }
.pcard-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.pcard-row > span { color: var(--muted); }
.pcard-row > b { font-weight: 500; overflow-wrap: anywhere; }
.pcard-actions { display: flex; gap: .4rem; margin-top: .8rem; }
.pcard-actions:empty { display: none; }
.pcard-actions .button { padding: .3rem .75rem; font-size: .82rem; }
.av[data-person] { cursor: default; }
.pcard .pcard-pic .st-offline, .pcard .pcard-pic .st-invisible { background: var(--surface); border-color: var(--dimmed); }
.people-list { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }
/* the look of a record (owner 2026-11-25, Trello-like; Core\Looks): the band with its picture / colour, the board on the
   picture of the project, the cover + colour stripe of a task card, the side panel "🎨 Picture and colour" */
.look-banner { position: relative; height: 9rem; margin: -.4rem 0 1rem; border-radius: 12px; background: var(--look, var(--surface-2)) center / cover no-repeat;
  border: 1px solid var(--line); overflow: hidden; }
.look-banner.only-color { height: 3.2rem; background: linear-gradient(120deg, var(--look), color-mix(in srgb, var(--look) 45%, var(--surface))); }
.look-banner.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; }
.look-change { position: absolute; right: .6rem; bottom: .5rem; z-index: 1; font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .55);
  color: #fff !important; text-decoration: none; opacity: 0; transition: opacity .15s; }
.look-banner:hover .look-change, .look-change:focus { opacity: 1; }
@media (hover: none) { .look-change { opacity: 1; } }
.task-sheet .look-banner { height: 6.5rem; margin: 0 0 .8rem; }
.task-sheet .look-banner.only-color { height: .6rem; border: 0; }
.board.has-bg { background-size: cover; background-position: center; background-attachment: local; border-radius: 12px; padding: .7rem; min-height: 60vh;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, .25); }
.board.has-bg .board-col { background: color-mix(in srgb, var(--soft) 88%, transparent); backdrop-filter: blur(6px); }
.board-card.has-color { border-top: 6px solid var(--card); }
.card-cover { display: block; height: 6.5rem; margin: -.4rem -.5rem .45rem; border-radius: 5px 5px 0 0; background: var(--surface-2) center / cover no-repeat; }
.board-card.has-color .card-cover { border-radius: 0; }
.look-form h2 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.look-preview { height: 7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--look, var(--surface-2)) center / cover no-repeat;
  display: flex; align-items: flex-end; padding: .6rem .8rem; }
.look-preview span { background: rgba(0, 0, 0, .55); color: #fff; padding: .15rem .5rem; border-radius: 6px; font-weight: 600; font-size: .9rem; }
.look-colors { display: flex; flex-wrap: wrap; gap: .45rem; }
.look-swatch { width: 2.2rem; height: 2.2rem; border-radius: 8px; border: 2px solid transparent; background: var(--c); color: #fff; font-weight: 700; padding: 0; cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.look-swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }
.look-swatch.none { background: var(--surface-2); color: var(--muted); border-color: var(--line); text-shadow: none; }
.look-custom { margin-top: .6rem; display: flex; gap: .5rem; align-items: center; }
.look-custom input[type=color] { width: 3rem; height: 2rem; padding: 0; border: 1px solid var(--line); background: none; vertical-align: middle; }
.look-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.look-images form { margin: 0; }
.look-img { position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.look-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-img.on { border-color: var(--link); }
.look-img b { position: absolute; top: .2rem; right: .3rem; color: #fff; text-shadow: 0 1px 3px #000; }
.look-back { margin-top: 1.4rem; }
.record-cover.sm { width: 2rem; height: 2rem; border-radius: 6px; vertical-align: middle; margin-right: .4rem; }
.look-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; background: var(--c); vertical-align: middle; margin-right: .45rem; }
.prod-code { white-space: nowrap; }
/* the task in ONE column like Asana (owner 2026-11-25: "Nastavenia tasku sú stále hrozné … zober si príklad z Asany / Trella"):
   fields as quiet rows without frames — a frame shows only on hover / focus; the rarely used parts folded under them */
.ts-main { max-width: 52rem; display: flex; flex-direction: column; gap: .2rem; }
.side-panel .ts-main { max-width: none; }
.ts-fields { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .1rem .8rem; align-items: center; margin: .3rem 0 1rem; }
.ts-fields > label, .ts-fields dt { color: var(--muted); font-size: .86rem; margin: 0; display: flex; align-items: center; gap: .45rem; min-height: 2.2rem; }
.ts-fields dd { margin: 0; min-height: 2.2rem; display: flex; align-items: center; gap: .4rem; padding: 0 .5rem; }
.ts-ico { width: 1.1rem; text-align: center; opacity: .75; font-size: .9rem; }
.ts-val { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.ts-val select, .ts-val input { border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 6px; padding: .35rem .5rem; font: inherit;
  max-width: 100%; min-height: 2.1rem; cursor: pointer; }
.ts-val input:not([type=date]) { cursor: text; width: min(100%, 22rem); }
.ts-val select { appearance: none; -webkit-appearance: none; padding-right: 1.4rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23858e97'/%3E%3C/svg%3E") no-repeat right .45rem center; }
.ts-val select:hover, .ts-val input:hover { border-color: var(--line); background-color: var(--surface-2); }
.ts-val select:focus, .ts-val input:focus { border-color: var(--link); background-color: var(--surface-2); outline: none; }
.ts-val select option { background: var(--surface); color: var(--ink); }
.ts-val input.late { color: var(--warn); }
.ts-val input::placeholder { color: var(--dimmed); }
.ts-who .av { width: 1.6rem; height: 1.6rem; }
.ts-dates input[type=date] { width: 10.5rem; }
.ts-est input { width: 5rem !important; }
.ts-val select.prio-3, .ts-fields dd.prio-3 { color: var(--warn); } .ts-val select.prio-4, .ts-fields dd.prio-4 { color: var(--err); }
.ts-main .ts-desc { margin: 0 0 .6rem; }
.ts-main .ts-desc textarea { border: 1px solid transparent; background: transparent; padding: .5rem .6rem; border-radius: 8px; min-height: 4rem; }
.ts-main .ts-desc textarea:hover { border-color: var(--line); background: var(--surface-2); }
.ts-main .ts-desc textarea:focus { border-color: var(--link); background: var(--surface-2); outline: none; }
.ts-main .ts-desc textarea:placeholder-shown { min-height: 2.6rem; }
.ts-more { display: flex; flex-direction: column; gap: 0; margin: .4rem 0 .2rem; border-top: 1px solid var(--line); }
.ts-more .ts-card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .6rem 0; }
.ts-more .ts-fold > summary { font-weight: 600; font-size: 1rem; }
.ts-main .ts-meta { margin: .8rem 0 0; }
@media (max-width: 640px) { .ts-fields { grid-template-columns: 1fr; } .ts-fields > label, .ts-fields dt { min-height: 0; margin-top: .4rem; } }
.ts-main .ts-save { margin: 0; min-height: 0; height: 1.1rem; }
.ts-main .ts-title textarea { padding: .25rem .4rem; }
/* the lighter chat (owner 2026-11-25: "prerob chat okno, pôsobí to strašne ťažkopádne"): the whole page is the chat, a quiet
   list with search, the head with the person, round icon buttons, bubbles grouped by author, a pill composer */
.chat { height: calc(100vh - 6.5rem); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); margin-top: .4rem; }
.chat-side { border-right: 1px solid var(--line); background: var(--soft); gap: 0; }
.chat-side-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .7rem .5rem; position: relative; }
.chat-side-head > b { flex: 1 1 auto; font-size: 1.1rem; }
.chat-side-head input[type=search] { flex: 1 1 100%; order: 3; border-radius: 999px; padding: .4rem .8rem; background: var(--surface); }
.chat-side-head .chat-new { position: static; }
.chat-side-head .chat-new > .card { position: absolute; left: .5rem; right: .5rem; top: 2.8rem; z-index: 20; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.chat-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; font-size: 1rem; list-style: none; }
.chat-icon-btn::-webkit-details-marker { display: none; }
.chat-icon-btn:hover { background: var(--hover); border-color: var(--line); }
.chat-rooms { padding: 0 .35rem .5rem; gap: 0; }
.chat-rooms a, .chat-person { padding: .45rem .55rem; border-radius: 10px; }
.chat-rooms a.active { background: color-mix(in srgb, var(--link) 14%, transparent); }
.chat-rooms .room-top b { font-weight: 500; }
.chat-rooms a:has(.top-count:not([hidden])) .room-top b { font-weight: 700; }
.chat-rooms a > .av, .chat-rooms a > .av-st { width: 2.4rem; height: 2.4rem; }
.chat-rooms .top-count { background: var(--link); color: #0b1418; border-color: var(--link); border-radius: 999px; min-width: 1.3rem; text-align: center; }
.chat-main { border: 0; border-radius: 0; background: var(--surface); }
.chat-head { padding: .55rem .8rem; gap: .6rem; }
.chat-head > .av { width: 2.3rem; height: 2.3rem; }
.chat-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-title b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .chat-actions { gap: .15rem; }
.chat-messages { gap: .45rem; padding: 1rem 1.1rem; }
.chat-messages .msg, .cd-msgs .msg { display: flex; align-items: flex-end; gap: .45rem; max-width: 78%; padding: 0; background: none; border-radius: 0; }
.msg .av { flex: 0 0 auto; width: 1.8rem; height: 1.8rem; margin: 0; }
.msg.cont { margin-top: -.3rem; }
.msg.cont .av { visibility: hidden; }
.msg-body { min-width: 0; padding: .4rem .75rem .3rem; border-radius: 16px; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.mine .msg-body { background: color-mix(in srgb, var(--link) 22%, var(--surface)); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.msg.mine { align-self: flex-end; background: none; }
.msg.cont .msg-body { border-top-left-radius: 5px; } .msg.mine.cont .msg-body { border-top-left-radius: 16px; border-top-right-radius: 5px; }
.msg-name { display: block; font-size: .8rem; color: var(--link); font-weight: 600; margin-bottom: .1rem; }
.msg-time { display: block; text-align: right; font-size: .68rem; color: var(--muted); margin-top: .1rem; line-height: 1; }
.msg.has-media .msg-body { padding: .25rem .25rem .3rem; }
.msg.has-media .msg-time, .msg.has-media .msg-name { padding: 0 .45rem; }
.msg .chat-img { margin: 0; max-width: min(17rem, 100%); }
.msg .chat-img img { max-height: 13rem; border-radius: 12px; }
.msg.system { align-self: center; font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: .15rem .7rem; border-radius: 999px; max-width: 90%; }
.chat-compose { margin: .5rem .8rem .8rem; padding: .3rem .35rem .3rem .5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); align-items: flex-end; gap: .3rem; }
.chat-compose:focus-within { border-color: var(--link); }
.chat-compose textarea, .cd-compose textarea { border: 0; background: transparent; resize: none; min-height: 2.2rem; max-height: 10rem; padding: .45rem .3rem; box-shadow: none; outline: none; }
.chat-compose .chat-tool, .cd-compose .chat-tool { border: 0; border-radius: 50%; min-width: 2.1rem; height: 2.1rem; color: var(--muted); }
.chat-compose .chat-tool:hover, .cd-compose .chat-tool:hover { color: var(--ink); }
.chat-send, .cd-compose button.primary { width: 2.3rem; height: 2.3rem; min-width: 0; padding: 0; border-radius: 50%; font-size: 1rem; flex: 0 0 auto; }
.cd-compose { margin: .4rem .5rem .5rem; padding: .2rem .3rem .2rem .4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); align-items: flex-end; gap: .2rem; }
.cd-compose:focus-within { border-color: var(--link); }
.cd-win { border-radius: 14px; overflow: hidden; }
.cd-win-head { background: var(--surface); }
.cd-msgs { gap: .4rem; padding: .7rem .6rem; }
.cd-msgs .msg { max-width: 88%; }
.cd-msgs .msg .chat-img img { max-height: 10rem; }
.cd-list:not([hidden]) ~ .cd-win { right: calc(1.2rem + 23.5rem); }   /* the list and an open conversation side by side, never over each other */
@media (max-width: 900px) { .cd-list:not([hidden]) ~ .cd-win { display: none; } }
@media (max-width: 700px) { .chat { height: calc(100vh - 5rem); border-radius: 0; border-left: 0; border-right: 0; } }
.chat-new { display: inline-flex; } .chat-side-head .chat-new > summary { margin: 0; }
/* Organizácia (owner 2026-11-25): the tree of teams for everyone */
.org { display: flex; flex-direction: column; gap: .8rem; margin-top: .6rem; }
.org-node { display: flex; flex-direction: column; gap: .8rem; }
.org-children { margin-left: 1.4rem; padding-left: 1.2rem; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.org-team { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; max-width: 46rem; position: relative; }
.org-children > .org-node > .org-team::before { content: ""; position: absolute; left: -1.3rem; top: 1.3rem; width: 1.2rem; border-top: 2px solid var(--line); }
.org-team.mine { border-color: color-mix(in srgb, var(--link) 55%, var(--line)); }
.org-team-head { display: flex; align-items: baseline; gap: .6rem; }
.org-team-head b { font-size: 1.05rem; }
.org-team-head .push { margin-left: auto; }
.org-desc { margin: .2rem 0 0; }
.org-lead { margin: .6rem 0 .4rem; }
.org-people { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.org-person { display: inline-flex; align-items: center; gap: .4rem; }
.org-lead .org-person .av { width: 2rem; height: 2rem; }
.org-person.is-me > span:last-child { font-weight: 600; }
.org-without-head { font-size: 1rem; margin: 1.6rem 0 .6rem; color: var(--muted); }
/* Topics — like a forum (owner 2026-11-25; views/core/topics.php, topic.php) */
.topics-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topics-head h2 { margin: 0; flex: 1 1 auto; }
.topics-new > summary { list-style: none; } .topics-new > summary::-webkit-details-marker { display: none; }
.topics-new[open] { flex-basis: 100%; order: 3; }
.topics-new[open] > summary { display: none; }
.topics-form { margin-top: .6rem; max-width: 44rem; }
.topic-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.topic-list li { display: flex; align-items: center; gap: .8rem; padding: .65rem .2rem; border-top: 1px solid var(--line); }
.topic-list li.is-resolved { opacity: .7; }
.topic-ico { width: 1.6rem; text-align: center; font-size: 1.05rem; flex: 0 0 auto; }
.topic-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.topic-main a { font-weight: 600; text-decoration: none; color: var(--ink); }
.topic-main a:hover { color: var(--link); }
.topic-stat { flex: 0 0 5.5rem; text-align: center; line-height: 1.1; }
.topic-stat b { display: block; font-size: 1.1rem; }
.topic-last { flex: 0 0 9rem; text-align: right; }
@media (max-width: 640px) { .topic-last { display: none; } .topic-stat { flex-basis: 3.5rem; } }
.topic-crumbs { margin: 0 0 .6rem; }
.topic-who { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; }
.topic-body { line-height: 1.6; margin: 0 0 .6rem; }
.topic-badges:empty { display: none; }
/* the calendar like Teams (owner 2026-11-25): Day · Week · Month, a grid of hours, drag, the small window of an event */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 .8rem; }
.cal-arrows { display: inline-flex; gap: .25rem; }
.cal-arrows .button { padding: .3rem .7rem; font-size: 1.1rem; line-height: 1; }
.cal-title { font-size: 1.15rem; flex: 1 1 auto; }
.cal-views a { padding: .35rem .8rem; }
.cal-week { --hour: 48px; --gut: 3.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; user-select: none; }
.cw-row { display: grid; grid-template-columns: var(--gut) repeat(var(--days), minmax(0, 1fr)); }
.cw-head { border-bottom: 1px solid var(--line); }
.cw-dayhead { padding: .45rem .5rem; border-left: 1px solid var(--line); min-width: 0; }
.cw-dayhead a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: .35rem; }
.cw-dayhead a b { font-size: 1.25rem; font-weight: 500; }
.cw-dayhead small { color: var(--muted); }
.cw-dayhead.today a b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 .45rem; }
.cw-dayhead.dayoff { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.cw-holiday { display: block; color: var(--warn) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-allday { border-bottom: 1px solid var(--line); }
.cw-allday .cw-gutter { padding: .35rem .3rem; text-align: right; font-size: .72rem; }
.cw-adcell { border-left: 1px solid var(--line); padding: .2rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 1.8rem; }
.cw-chip { display: block; font-size: .75rem; padding: .1rem .4rem; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
  background: var(--surface-2); color: var(--ink); border-left: 3px solid var(--c, var(--link)); cursor: pointer; }
.cw-scroll { height: calc(100vh - 19rem); min-height: 22rem; overflow-y: auto; position: relative; }
.is-day .cw-scroll { height: calc(100vh - 17rem); }
.cw-body { position: relative; height: calc(24 * var(--hour)); }
.cw-hours { position: relative; }
.cw-hours span { display: block; height: var(--hour); font-size: .7rem; color: var(--muted); text-align: right; padding-right: .45rem; transform: translateY(-.45em); }
.cw-col { position: relative; border-left: 1px solid var(--line); cursor: cell;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour)),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour) / 2), color-mix(in srgb, var(--line) 45%, transparent) calc(var(--hour) / 2) calc(var(--hour) / 2 + 1px), transparent calc(var(--hour) / 2 + 1px) var(--hour)); }
.cw-col.dayoff { background-color: color-mix(in srgb, var(--soft) 55%, transparent); }
.cw-col.today { background-color: color-mix(in srgb, var(--link) 5%, transparent); }
.cw-ev { position: absolute; left: 2px; right: 2px; top: calc(var(--s) / 60 * var(--hour)); height: calc(var(--len) / 60 * var(--hour) - 2px); min-height: 18px;
  overflow: hidden; border-radius: 6px; padding: .15rem .4rem; font-size: .78rem; line-height: 1.25; text-decoration: none; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--c, var(--link)) 24%, var(--surface)); border-left: 3px solid var(--c, var(--link)); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); z-index: 1; }
.cw-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-ev small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-ev.k-meeting { --c: #a78bfa; }
.cw-ev.unanswered { border-left-style: dashed; }
.cw-ev.own { cursor: grab; touch-action: none; }
.cw-ev.dragging { cursor: grabbing; opacity: .85; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); z-index: 5; }
.cw-ev.saving { opacity: .6; }
.cw-ev:hover { z-index: 3; filter: brightness(1.12); }
.cw-now { position: absolute; left: 0; right: 0; top: calc(var(--s) / 60 * var(--hour)); border-top: 2px solid var(--red); z-index: 4; pointer-events: none; }
.cw-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.cal-pop { position: fixed; z-index: 1000; width: 18rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.cal-pop-title { display: block; font-size: 1.02rem; margin: 0 1.4rem .4rem 0; }
.cal-pop-row { margin: .15rem 0; font-size: .88rem; }
.cal-pop-actions { display: flex; gap: .4rem; margin-top: .7rem; }
.cal-pop-actions:empty { display: none; }
.cal-pop-actions .button { padding: .3rem .75rem; font-size: .85rem; }
.cal-pop-x { position: absolute; top: .4rem; right: .45rem; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; }
@media (max-width: 700px) { .cal-week { --gut: 2.6rem; } .cw-dayhead small { display: none; } }
/* projects in groups (owner 2026-11-25: many projects without a mess — like Asana: by teams, ⭐ on top) */
.proj-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 .9rem; }
.proj-filters input[type=search] { min-width: 16rem; }
.proj-group { margin: 0 0 .8rem; padding-top: .5rem; }
.proj-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; padding: .1rem 0 .5rem; font-size: 1.02rem; }
.proj-group > summary::-webkit-details-marker { display: none; }
.proj-group > summary::before { content: '▾'; color: var(--muted); width: 1rem; }
.proj-group:not([open]) > summary::before { content: '▸'; }
.proj-group:not([open]) { padding-bottom: .3rem; }
