/* Přehled – styly jádra aplikace. Rozměry a barvy podle předloh (docs/predloha), tokeny ve web/tokens.css.
   Styly zobrazení (tabulka, kalendář …) jsou ve web/app/views/views.css. */

/* ============================================================== základ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 20px; color: var(--c-text); background: var(--c-page);
  -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: var(--c-link); }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
svg.icon { flex: none; display: block; overflow: visible; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
::selection { background: #388BFF55; }
* { scrollbar-width: thin; scrollbar-color: var(--c-scroll-thumb) transparent; }

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.boot { flex: 1; display: grid; place-items: center; height: 100%; opacity: .5; }
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; outline: none; }

/* ============================================================== tlačítka a pole */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 3px;
  font-weight: 500; font-size: 14px; line-height: 20px; white-space: nowrap; background: var(--c-neutral); color: var(--c-text-subtle);
  transition: background-color .1s;
}
.btn:hover { background: var(--c-neutral-hover); }
.btn:active { background: var(--c-neutral-pressed); }
.btn-primary { background: var(--c-accent); color: var(--c-accent-text); }
.btn-primary:hover { background: var(--c-accent-hover); }
.btn-primary:disabled { background: var(--c-neutral); color: var(--c-text-subtlest); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-subtle { background: transparent; }
.btn-subtle:hover { background: var(--c-neutral-hover); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--c-dialog-border); color: var(--c-text-subtle); }
.btn-outline:hover { background: var(--c-neutral); }
.btn-sm { height: 28px; padding: 0 8px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-active, .btn.is-open { background: var(--c-selected); color: var(--c-selected-text); }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; color: var(--c-text-subtle); flex: none;
}
.icon-btn:hover { background: var(--c-neutral-hover); }
.icon-btn.is-open, .icon-btn.is-active { background: var(--c-selected); color: var(--c-selected-text); }

.input, .textarea, .select {
  display: block; width: 100%; height: 36px; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--c-input-border);
  background: var(--c-input-bg); color: var(--c-text); font-size: 14px; line-height: 20px; outline: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-input-border-hover); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--c-focus); box-shadow: inset 0 0 0 1px var(--c-focus); }
.input::placeholder, .textarea::placeholder { color: var(--c-text-subtlest); }
.input:disabled { background: var(--c-input-disabled); border-color: transparent; color: var(--c-text-subtlest); }
.textarea { height: auto; min-height: 36px; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626F86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.field-label { display: block; font-size: 12px; font-weight: 700; line-height: 16px; color: var(--c-text-subtle); margin: 12px 0 4px; }
.field-hint { font-size: 11px; line-height: 16px; color: var(--c-text-subtle); margin-top: 4px; }

.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 32px; position: relative; }
.check input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.check-box {
  width: 16px; height: 16px; border-radius: 2px; border: 1px solid var(--c-input-border); background: var(--c-input-bg);
  display: grid; place-items: center; flex: none; color: transparent;
}
.check input:checked + .check-box { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-text); }
.check input:focus-visible + .check-box { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.check-label { min-width: 0; }

.toggle { position: relative; display: inline-flex; cursor: pointer; }
.toggle-input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle-track { width: 32px; height: 16px; border-radius: 8px; background: var(--c-text-subtlest); position: relative; transition: background .15s; }
.toggle-thumb { position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle-input:checked + .toggle-track { background: var(--c-success); }
.toggle-input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }

kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 3px; background: var(--c-neutral); border: 1px solid var(--c-border); font: 12px/18px var(--font); text-align: center; }

/* ============================================================== avatary a štítky */
.avatar {
  --av-size: 24px; width: var(--av-size); height: var(--av-size); border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--av-bg, var(--c-avatar)); color: var(--c-avatar-text); font-size: calc(var(--av-size) * .42); font-weight: 600; line-height: 1;
  letter-spacing: -.01em; user-select: none; overflow: hidden;
}
.avatar-bot { background: var(--c-bot); color: #fff; }

.label {
  display: inline-flex; align-items: center; max-width: 100%; min-width: 0; background: var(--lc, var(--c-neutral)); color: var(--lfg, var(--c-text));
  border-radius: 4px; font-weight: 500; overflow: hidden;
}
.label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-card { height: 16px; min-width: 56px; padding: 0 8px; font-size: 12px; line-height: 16px; }
.label-card.label-noname { min-width: 40px; }
.labels-collapsed .label-card { height: 8px; min-width: 40px; max-width: 40px; padding: 0; border-radius: 4px; }
.labels-collapsed .label-card .label-text { display: none; }
.label-big { height: 32px; padding: 0 12px; font-size: 14px; line-height: 32px; border-radius: 3px; min-width: 48px; }
button.label:hover { filter: brightness(.94); }
[data-theme="dark"] button.label:hover { filter: brightness(1.12); }
.colorblind .label { background-image: var(--lpat, none); }
.colorblind .lc-green, .colorblind .lc-green_light, .colorblind .lc-green_dark { --lpat: repeating-linear-gradient(45deg, #0000 0 4px, #ffffff40 4px 6px); }
.colorblind .lc-yellow, .colorblind .lc-yellow_light, .colorblind .lc-yellow_dark { --lpat: radial-gradient(#ffffff60 1px, #0000 1.5px) 0 0 / 5px 5px; }
.colorblind .lc-orange, .colorblind .lc-orange_light, .colorblind .lc-orange_dark { --lpat: repeating-linear-gradient(-45deg, #0000 0 4px, #ffffff40 4px 6px); }
.colorblind .lc-red, .colorblind .lc-red_light, .colorblind .lc-red_dark { --lpat: repeating-linear-gradient(90deg, #0000 0 4px, #ffffff40 4px 6px); }
.colorblind .lc-purple, .colorblind .lc-purple_light, .colorblind .lc-purple_dark { --lpat: repeating-linear-gradient(0deg, #0000 0 4px, #ffffff40 4px 6px); }
.colorblind .lc-blue, .colorblind .lc-blue_light, .colorblind .lc-blue_dark { --lpat: repeating-conic-gradient(#ffffff40 0 25%, #0000 0 50%) 0 0 / 6px 6px; }

/* ============================================================== horní lišta */
.topbar {
  flex: none; height: 48px; display: flex; align-items: center; padding: 0 8px; gap: 4px; position: relative; z-index: 30;
  background: var(--c-header); color: var(--c-header-text); border-bottom: 1px solid transparent;
}
[data-theme="light"] .topbar, .on-board:not(.has-panels) .topbar { border-bottom-color: var(--c-header-border); }
.topbar .icon-btn { color: var(--c-header-text); }
.tb-left { display: flex; align-items: center; flex: none; }
.tb-logo { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px; border-radius: 3px; text-decoration: none; color: inherit; }
.tb-logo:hover { background: var(--c-neutral-hover); }
.tb-logo-text { font-size: 16px; font-weight: 700; line-height: 20px; letter-spacing: -.01em; color: var(--c-text); }
.logo-mark .logo-bg { fill: #5B4FD9; }
.logo-mark .logo-fg { fill: #fff; }
.tb-center { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 8px; }
.tb-search { position: relative; flex: 0 1 780px; min-width: 120px; }
.tb-search .icon { position: absolute; left: 7px; top: 10px; color: var(--c-text-subtle); pointer-events: none; }
.search-input {
  width: 100%; height: 32px; border-radius: 6px; border: 1px solid var(--c-input-border); background: var(--c-input-bg); color: var(--c-text);
  padding: 0 12px 0 27px; font-size: 14px; outline: none; background-clip: padding-box;
}
.search-input::placeholder { color: var(--c-text-subtle); }
.search-input:focus { border-color: var(--c-focus); box-shadow: inset 0 0 0 1px var(--c-focus); }
.tb-create { height: 32px; padding: 0 12px; border-radius: 3px; background: var(--c-accent); color: var(--c-accent-text); font-weight: 600; flex: none; }
.tb-create:hover { background: var(--c-accent-hover); }
.tb-right { display: flex; align-items: center; gap: 4px; flex: none; }
.tb-right .icon-btn { width: 32px; height: 32px; border-radius: 50%; }
.tb-avatar-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.tb-avatar-btn:hover { background: var(--c-neutral-hover); }
.tb-bell { position: relative; }
.tb-badge {
  position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.tb-search-btn { display: none; }
.tb-more { display: none; }

/* lišta nad nástěnkou (světlý motiv): barva podle pozadí nástěnky */
.on-board:not(.has-panels) .topbar {
  background: color-mix(in srgb, var(--board-color, #0079BF) var(--topbar-board-mix), #000); border-bottom-color: #FFFFFF29; color: #fff;
}
[data-theme="dark"] .on-board:not(.has-panels) .topbar { background: var(--c-header); border-bottom-color: var(--c-header-border); color: var(--c-header-text); }
[data-theme="light"] .on-board:not(.has-panels) .topbar .icon-btn,
[data-theme="light"] .on-board:not(.has-panels) .tb-logo-text { color: #fff; }
[data-theme="light"] .on-board:not(.has-panels) .icon-btn:hover,
[data-theme="light"] .on-board:not(.has-panels) .tb-logo:hover,
[data-theme="light"] .on-board:not(.has-panels) .tb-avatar-btn:hover { background: #FFFFFF33; }
[data-theme="light"] .on-board:not(.has-panels) .logo-mark .logo-bg { fill: #fff; }
[data-theme="light"] .on-board:not(.has-panels) .logo-mark .logo-fg { fill: color-mix(in srgb, var(--board-color, #0079BF) 80%, #000); }
[data-theme="light"] .on-board:not(.has-panels) .search-input { background: #FFFFFF33; border-color: #FFFFFF52; color: #fff; }
[data-theme="light"] .on-board:not(.has-panels) .search-input::placeholder,
[data-theme="light"] .on-board:not(.has-panels) .tb-search .icon { color: #fff; }
[data-theme="light"] .on-board:not(.has-panels) .search-input:focus { background: var(--c-input-bg); color: var(--c-text); }
[data-theme="light"] .on-board:not(.has-panels) .search-input:focus::placeholder { color: var(--c-text-subtle); }
[data-theme="light"] .on-board:not(.has-panels) .tb-create { background: #FFFFFF33; color: #fff; }
[data-theme="light"] .on-board:not(.has-panels) .tb-create:hover { background: #FFFFFF4D; }

/* ============================================================== rozvržení: panely + obsah */
.workspace { flex: 1; min-height: 0; display: flex; position: relative; }
.has-panels .workspace { padding: 4px 16px 32px; gap: 12px; background: var(--c-page); }
.panel {
  flex: none; display: flex; flex-direction: column; min-height: 0; border-radius: 12px; border: 1px solid var(--c-panel-border);
  background: var(--c-page); position: relative; overflow: hidden;
}
.panel-inbox { width: 274px; background: var(--c-inbox-bg); color: var(--c-inbox-text); }
.panel-planner { width: 402px; }
.panel + .panel, .panel + .main { position: relative; }
.panel-resize { position: absolute; right: -8px; top: 50%; width: 4px; height: 20px; border-radius: 2px; background: var(--c-text-subtlest); opacity: .7; }
.has-panels .main { border-radius: 12px; overflow: hidden; border: 1px solid var(--c-panel-border); }

/* ============================================================== nástěnka */
.board {
  flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; isolation: isolate;
  background: var(--board-bg-value, var(--board-bg)); background-size: cover; background-position: center;
}
.board::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--board-dim); z-index: -1; pointer-events: none; }
.board-header {
  flex: none; height: 56px; display: flex; align-items: center; padding: 12px 10px 12px 14px; gap: 4px; background: var(--board-header-overlay);
  color: #fff; position: relative; z-index: 2;
}
.has-panels .board-header { height: 56px; padding-left: 14px; }
.board { container-type: inline-size; container-name: board; }
@container board (max-width: 1000px) { .bh-hide-narrow { display: none !important; } }
.has-panels .bh-title { flex-shrink: 0; max-width: 50%; }
.has-panels .board-canvas { padding-bottom: 12px; margin-bottom: 32px; }
.bh-title {
  height: 32px; padding: 0 10px; border-radius: 3px; font-size: 16px; font-weight: 700; line-height: 32px; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 40vw; text-align: left;
}
.bh-title:hover { background: #FFFFFF33; }
.bh-title-input { height: 32px; font-size: 16px; font-weight: 700; padding: 0 10px; border-radius: 3px; border: 0; outline: 2px solid var(--c-focus); background: var(--c-input-bg); color: var(--c-text); width: 320px; }
.bh-views { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 8px; margin-left: 4px; border-radius: 3px; color: #fff; }
.bh-views:hover { background: #FFFFFF33; }
.bh-views.is-open { background: #fff; color: #172B4D; }
.bh-spacer { flex: 1; min-width: 8px; }
.bh-right { display: flex; align-items: center; gap: 4px; }
.board-header .icon-btn { color: #fff; }
.board-header .icon-btn:hover { background: #FFFFFF33; }
.board-header .icon-btn.is-open, .board-header .icon-btn.is-active, .board-header .bh-filter.has-filter { background: #fff; color: #172B4D; }
.bh-avatar { position: relative; margin-right: 8px; display: inline-grid; place-items: center; width: 32px; height: 32px; }
/* správce nástěnky: avatar bez rámečku, vpravo dole světlý štítek s dvojitou šipkou (jako předloha 01/09) */
.bh-avatar-badge { position: absolute; right: 1px; bottom: 2px; width: 10px; height: 10px; border-radius: 3px 3px 5px 5px; background: #E8E8EF; color: #4848AE; display: grid; place-items: center; transform: rotate(90deg); }
.bh-share { height: 32px; padding: 0 12px 0 10px; margin: 0 4px 0 8px; border-radius: 3px; background: var(--c-neutral-bold); color: var(--c-neutral-bold-text); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.bh-share:hover { filter: brightness(.95); }
.bh-filter { position: relative; width: auto; min-width: 32px; padding: 0 8px; display: inline-flex; gap: 6px; }
.bh-filter-count { font-weight: 600; }
.bh-filter-clear { margin-left: 2px; font-size: 14px; font-weight: 500; }
.bh-buttons { display: flex; gap: 4px; margin-right: 4px; }
.bh-rule-btn { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 32px; padding: 0 10px; border-radius: 3px; background: #FFFFFF33; color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.bh-rule-btn:hover { background: #FFFFFF4D; }

.board-canvas {
  flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; position: relative; padding: 12px 6px 72px;
  scrollbar-width: auto; scrollbar-color: #FFFFFF5C #00000026; display: flex; align-items: flex-start;
}
.board-canvas.is-panning { cursor: grabbing; user-select: none; }
.board-lists { display: flex; align-items: flex-start; height: 100%; }
.list-wrap { flex: none; width: 272px; margin: 0 6px; height: 100%; display: flex; flex-direction: column; }
.list {
  width: 272px; max-height: 100%; display: flex; flex-direction: column; border-radius: 12px; background: var(--c-list-bg); color: var(--c-list-text);
  box-shadow: var(--c-card-shadow); padding-bottom: 8px; position: relative;
}
.list.lc { background: var(--lcol); }
.list-header { display: flex; align-items: flex-start; gap: 4px; padding: 8px 8px 0; position: relative; flex: none; cursor: grab; }
.list-title {
  flex: 1; min-width: 0; min-height: 32px; padding: 6px 8px 6px 12px; font-size: 14px; font-weight: 600; line-height: 20px; border-radius: 6px;
  overflow-wrap: anywhere; cursor: pointer; text-align: left;
}
.list-title-input { flex: 1; min-height: 32px; padding: 6px 8px 6px 11px; font-size: 14px; font-weight: 600; line-height: 20px; border-radius: 6px; resize: none; overflow: hidden; border: 0; outline: 2px solid var(--c-focus); background: var(--c-input-bg); color: var(--c-text); margin: 0; }
.list-count { flex: none; height: 32px; line-height: 32px; color: var(--c-text-subtle); font-size: 14px; padding: 0 3px 0 4px; }
.list-count.is-over { color: var(--c-danger); font-weight: 600; }
.list-header .icon-btn { border-radius: 8px; }
.list-header .icon-btn:hover { background: var(--c-neutral-hover); }
.list-cards {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 4px 0 4px; padding: 8px 4px 2px; display: flex; flex-direction: column; gap: 8px;
  scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: var(--c-scroll-thumb) transparent;
}
.list-cards:empty { padding-top: 4px; padding-bottom: 0; min-height: 4px; }
.list-footer { display: flex; align-items: center; gap: 4px; padding: 4px 8px 0; flex: none; }
.list-add { flex: 1; height: 32px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 8px; color: var(--c-text-subtle); font-weight: 500; text-align: left; }
.list-add:hover { background: var(--c-neutral-hover); color: var(--c-text); }
.list-footer .icon-btn { border-radius: 8px; }
.list-wrap.is-collapsed { width: 44px; }
.list-wrap.is-collapsed .list { width: 44px; min-height: 160px; align-items: center; padding: 8px 0; cursor: pointer; }
.list-collapsed-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.list-collapsed-title { writing-mode: vertical-rl; font-weight: 600; white-space: nowrap; }
.list-collapsed-count { color: var(--c-text-subtle); writing-mode: vertical-rl; }
.list-add-list {
  flex: none; width: 272px; margin: 0 6px; height: 44px; border-radius: 12px; background: #FFFFFF3D; color: #fff; font-weight: 500;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.list-add-list:hover { background: #FFFFFF33; filter: brightness(.95); }
.list-composer { flex: none; width: 272px; margin: 0 6px; border-radius: 12px; background: var(--c-list-bg); padding: 8px; box-shadow: var(--c-card-shadow); }
.list-composer .input { height: 32px; padding: 6px 12px; font-weight: 600; }
.composer-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; }

/* karta – přední strana */
.card {
  position: relative; flex: none; background: var(--c-card-bg); border-radius: 8px; box-shadow: var(--c-card-shadow); color: var(--c-text);
  cursor: pointer; min-height: 36px; outline: 2px solid transparent; outline-offset: -2px; user-select: none; -webkit-touch-callout: none;
  text-decoration: none; display: block; touch-action: manipulation;
}
.card:hover, .card.is-active { outline-color: var(--c-focus); }
.card:focus-visible { outline: 2px solid var(--c-focus); }
.card-cover { border-radius: 8px 8px 0 0; overflow: hidden; background: var(--cover-color, transparent); }
.card-cover.cover-color { height: 36px; }
.card-cover img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.card-full-cover { border-radius: 8px; min-height: 56px; display: flex; align-items: flex-end; padding: 8px 12px; color: #fff; font-weight: 500; background: var(--cover-color); }
.card-body { padding: 8px 12px 4px; position: relative; }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.card-title-row { display: flex; align-items: flex-start; gap: 4px; }
.card-done {
  flex: none; width: 0; height: 20px; overflow: hidden; display: grid; place-items: center; color: var(--c-text-subtle); border-radius: 50%;
  transition: width .12s ease, margin .12s ease; margin-right: -4px;
}
.card:hover .card-done, .card.is-done .card-done, .card-done:focus-visible { width: 16px; margin-right: 0; }
.card-done:hover { color: var(--c-text); }
.card.is-done .card-done { color: var(--c-success); }
.card-title { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; margin-bottom: 4px; padding-right: 44px; }
.card-full-cover, .qe-card .card-title { padding-right: 0; }
.card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; margin-bottom: 4px; min-height: 0; }
.card-badges:empty { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px; border-radius: 3px; font-size: 12px; line-height: 16px;
  color: var(--c-text-subtle); white-space: nowrap;
}
.badge-due { padding: 0 6px 0 4px; }
.badge-due.due-overdue { background: var(--c-due-overdue); color: var(--c-due-overdue-text); }
.badge-due.due-past { background: var(--c-due-past); color: var(--c-due-past-text); }
.badge-due.due-soon { background: var(--c-due-soon); color: var(--c-due-soon-text); }
.badge-due.due-done { background: var(--c-due-done); color: var(--c-due-done-text); }
button.badge-due:hover { filter: brightness(.94); }
.badge-check.is-complete { background: var(--c-due-done); color: var(--c-due-done-text); }
.badge-custom { color: var(--c-text-subtle); }
.badge-template { background: var(--c-selected); color: var(--c-selected-text); }
.notif-title { font-weight: 600; margin-top: 4px; }
.badge-custom b { font-weight: 500; }
.card-members { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin-left: auto; padding: 0 0 4px; }
.card-badges + .card-members { margin-top: -28px; }
.card-edit {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; display: none; place-items: center;
  background: var(--c-card-bg); color: var(--c-text-subtle); z-index: 2;
}
.card-edit:hover { background: var(--c-card-hover); color: var(--c-text); }
.card:hover .card-edit { display: grid; }
.card.is-pending { opacity: .75; }
.card.is-filtered-out { display: none; }
.card-composer { flex: none; }
.card-composer textarea {
  display: block; width: 100%; resize: none; overflow: hidden; min-height: 56px; border: 0; border-radius: 8px; padding: 8px 12px; background: var(--c-card-bg);
  color: var(--c-text); box-shadow: var(--c-card-shadow); outline: none; font-size: 14px; line-height: 20px;
}
.card-composer textarea:focus { box-shadow: inset 0 0 0 2px var(--c-focus); }

/* ============================================================== spodní plovoucí lišta */
.bottombar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; height: 46px;
  padding: 0 7px; border-radius: 12px; background: var(--c-floating); box-shadow: var(--c-floating-shadow); border: 1px solid var(--c-floating-border);
}
.bb-item {
  position: relative; height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; color: var(--c-text);
  font-weight: 500; white-space: nowrap;
}
.bb-item:hover { background: var(--c-neutral-hover); }
.bb-item.is-active { background: var(--c-selected); color: var(--c-selected-text); }
.bb-item.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 12px; height: 2px; margin-left: -6px; border-radius: 1px; background: currentColor; }
.bb-sep { width: 1px; height: 24px; background: var(--c-floating-border); margin: 0; }
.bb-item .icon { color: inherit; }

body.has-card .bottombar { display: none; }
/* plovoucí lišta v detailu karty */
.cd-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 16px; }
.card-dock {
  position: sticky; bottom: 16px; z-index: 101; display: flex; align-items: center; gap: 2px; height: 46px; flex: none;
  padding: 0 6px; border-radius: 12px; background: var(--c-floating); box-shadow: var(--c-floating-shadow); border: 1px solid var(--c-floating-border);
}

/* ============================================================== popovery a menu */
#layer-popovers { position: relative; z-index: 300; }
.popover {
  position: fixed; z-index: 300; display: flex; flex-direction: column; background: var(--c-popover); color: var(--c-text); border-radius: 8px;
  box-shadow: var(--c-overlay-shadow); outline: none; overflow: hidden;
}
.pop-header { flex: none; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 48px; padding: 0 8px; }
.pop-header .pop-back { grid-column: 1; }
.pop-title { grid-column: 2; text-align: center; font-size: 14px; font-weight: 600; line-height: 16px; color: var(--c-text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-close { grid-column: 3; justify-self: end; }
.pop-header .icon-btn { width: 32px; height: 32px; border-radius: 3px; }
.pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 12px 12px; }
.pop-text { color: var(--c-text); margin: 4px 0 12px; }
.pop-section-title { font-size: 12px; font-weight: 700; line-height: 16px; color: var(--c-text-subtle); margin: 12px 0 4px; }
.pop-menu { list-style: none; margin: 0 -12px; padding: 0; }
.pop-item {
  width: 100%; min-height: 32px; display: flex; align-items: center; gap: 12px; padding: 6px 12px; text-align: left; color: var(--c-text); font-size: 14px; line-height: 20px;
}
.pop-item:hover:not(:disabled) { background: var(--c-neutral); }
.pop-item:disabled { color: var(--c-text-subtlest); }
.pop-item.is-danger { color: var(--c-danger); }
.pop-item .icon { color: var(--c-text-subtle); }
.pop-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pop-item-hint { font-size: 12px; line-height: 16px; color: var(--c-text-subtle); }
.pop-check { color: var(--c-accent) !important; }
.pop-divider { height: 1px; background: var(--c-border); margin: 8px 12px; }
.pop-heading { font-size: 11px; font-weight: 700; line-height: 16px; color: var(--c-text-subtle); padding: 8px 12px 4px; text-transform: uppercase; }
.pop-footer { display: flex; gap: 8px; margin-top: 12px; }

/* nápověda (předloha 12) */
.help-pop .pop-body { padding: 12px 24px 16px; }
.help-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.help-art { display: block; width: 336px; max-width: 100%; height: auto; border-radius: 6px; }
.help-tip { font-size: 16px; font-weight: 600; line-height: 20px; margin: 16px 8px 12px; color: var(--c-text); }
.help-next, .help-link { color: var(--c-link); text-decoration: underline; font-size: 14px; line-height: 20px; }
.help-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 20px; padding: 16px 0 4px; }
.help-link { color: var(--c-text-subtle); }
.help-link:hover, .help-next:hover { color: var(--c-text); }
.tb-right .icon-btn.is-open { background: var(--c-selected); color: var(--c-selected-text); box-shadow: inset 0 0 0 1px var(--c-selected-text); }

/* výběr zobrazení */
.views-pop .pop-item { min-height: 40px; padding-left: 18px; gap: 8px; }
.views-pop .pop-item .icon { color: var(--c-text); }
/* menu nástěnky (17): položky v okraji těla 12 px, ikona 12 px od kraje položky, text 16 px za ikonou */
.board-menu .pop-menu { margin: 0; }
.board-menu .pop-item { min-height: 36px; padding: 8px 12px; gap: 16px; border-radius: 8px; }
.board-menu .pop-divider { margin: 8px 0; }
.board-menu .pop-item > .bm-color { margin: 0 -2px; }
.bm-avatar { margin-right: 0; width: 28px; height: 28px; }

/* ============================================================== modální okna */
#layer-dialogs { position: relative; z-index: 200; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: var(--c-backdrop); display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 48px 16px;
}
.modal {
  width: var(--modal-w, 768px); max-width: 100%; background: var(--c-dialog); color: var(--c-text); border-radius: 12px; box-shadow: var(--c-overlay-shadow);
  outline: none; position: relative;
}
.modal-header { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px 24px; }
.modal-title { flex: 1; font-size: 20px; font-weight: 600; line-height: 24px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 8px 24px 24px; }

.shortcut-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 8px 24px 24px; }
.shortcut-list li { display: flex; align-items: center; gap: 12px; min-height: 28px; }
.kbd-group { display: inline-flex; gap: 4px; min-width: 84px; }

/* ============================================================== detail karty */
.cd-backdrop {
  position: fixed; inset: 0; z-index: 100; background: var(--c-backdrop); overflow-y: auto; display: flex; justify-content: center; align-items: flex-start;
  padding: 48px 16px 0;
}
.cd-wrap { padding-bottom: 24px; }
.cd {
  width: 1080px; max-width: 100%; background: var(--c-dialog); color: var(--c-text); border-radius: 12px; box-shadow: var(--c-overlay-shadow);
  display: flex; flex-direction: column; position: relative; outline: none; min-height: 0;
}
.cd.is-file-over { outline: 3px dashed var(--c-focus); outline-offset: -6px; }
.cd-header { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--c-dialog-border); flex: none; }
.cd-list-select { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 6px; border-radius: 3px; background: var(--c-neutral-hover); color: var(--c-text); font-size: 14px; font-weight: 500; max-width: 60%; }
.cd-list-select:hover { background: var(--c-neutral-pressed); }
.cd-list-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cd-header-right .icon-btn { width: 32px; height: 32px; color: var(--c-text); }
.cd-cover { height: 116px; background: var(--cover-color, var(--c-neutral)); display: flex; justify-content: flex-end; align-items: flex-end; padding: 8px 16px; flex: none; }
.cd-cover img { max-height: 160px; width: auto; margin: 0 auto; display: block; }
.cd-cover.has-image { height: auto; min-height: 116px; justify-content: center; }
.cd-columns { display: flex; align-items: stretch; flex: 1; min-height: 0; }
.cd-main { flex: 1 1 620px; min-width: 0; padding: 24px 40px 24px 24px; }
.cd-side { flex: 0 0 460px; background: var(--c-dialog-side); border-left: 1px solid var(--c-dialog-border); border-radius: 0 0 12px 0; padding: 16px 16px 24px; min-width: 0; }
.cd-side[hidden] { display: none; }
.cd-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cd-done { flex: none; width: 16px; height: 16px; margin: 0; display: grid; place-items: center; color: var(--c-text-subtle); border-radius: 50%; }
.cd-done:hover { color: var(--c-text); }
.cd-done.is-done { color: var(--c-success); }
.cd-title { flex: 1; min-width: 0; font-size: 24px; font-weight: 700; line-height: 32px; overflow-wrap: anywhere; padding: 0; border-radius: 3px; cursor: text; }
.cd-title-input { flex: 1; font-size: 24px; font-weight: 700; line-height: 32px; padding: 0 4px; border-radius: 3px; border: 0; outline: 2px solid var(--c-focus); background: var(--c-input-bg); color: var(--c-text); resize: none; overflow: hidden; margin: 0 0 0 -4px; }
.cd-body { padding-left: 32px; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cd-action { height: 32px; padding: 0 8px; gap: 6px; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--c-dialog-border); color: var(--c-text-subtle); font-weight: 500; display: inline-flex; align-items: center; }
.cd-action:hover { background: var(--c-neutral); }
/* otevřený popover (předloha 05/06): tlačítko vyplněné tlumenou barvou textu, text inverzní */
.cd-action.is-open { background: var(--c-text-subtle); color: var(--c-text-inverse); box-shadow: none; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 16px; }
.cd-meta-block { min-width: 0; }
.cd-meta-title { font-size: 12px; font-weight: 600; line-height: 20px; color: var(--c-text-subtle); margin-bottom: 5px; }
.cd-meta-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cd-add-round { width: 32px; height: 32px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--c-dialog-border); color: var(--c-text-subtle); display: grid; place-items: center; }
.cd-add-round:hover { background: var(--c-neutral); }
.cd-members .avatar { cursor: pointer; }
.cd-date-btn { height: 32px; padding: 0 8px 0 10px; border-radius: 3px; background: var(--c-neutral); display: inline-flex; align-items: center; gap: 6px; color: var(--c-text); font-weight: 500; }
.cd-date-btn:hover { background: var(--c-neutral-hover); }
.cd-date-check { display: inline-flex; }
.cd-due-tag { font-size: 12px; font-weight: 600; padding: 0 4px; border-radius: 3px; line-height: 16px; }
.cd-due-tag.due-overdue { background: var(--c-due-overdue); color: var(--c-due-overdue-text); }
.cd-due-tag.due-past { background: var(--c-due-past); color: var(--c-due-past-text); }
.cd-due-tag.due-soon { background: var(--c-due-soon); color: var(--c-due-soon-text); }
.cd-due-tag.due-done { background: var(--c-due-done); color: var(--c-due-done-text); }
.cd-section { margin: 0 0 24px; position: relative; }
.cd-section-head { display: flex; align-items: center; gap: 12px; min-height: 32px; margin: 0 0 12px -32px; }
.cd-section-head > .icon { width: 20px; height: 20px; color: var(--c-text); flex: none; }
.cd-section-title { flex: 1; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--c-text); min-width: 0; }
.cd-section-head .btn { flex: none; }
.cd-desc { cursor: pointer; border-radius: 3px; line-height: 24px; }
.cd-desc-empty { background: var(--c-neutral); border-radius: 3px; padding: 8px 12px; min-height: 56px; color: var(--c-text-subtle); cursor: pointer; }
.cd-desc-empty:hover { background: var(--c-neutral-hover); }
.cd-editor { border: 1px solid var(--c-input-border); border-radius: 3px; background: var(--c-input-bg); overflow: hidden; }
.cd-editor:focus-within { border-color: var(--c-focus); box-shadow: inset 0 0 0 1px var(--c-focus); }
.cd-editor-tabs { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--c-border); }
.cd-editor-tab { height: 28px; padding: 0 10px; border-radius: 3px; font-size: 13px; font-weight: 500; color: var(--c-text-subtle); }
.cd-editor-tab.is-active { background: var(--c-selected); color: var(--c-selected-text); }
.cd-editor textarea { display: block; width: 100%; min-height: 160px; border: 0; outline: none; resize: vertical; padding: 8px 12px; background: transparent; color: var(--c-text); line-height: 20px; }
.cd-editor .md { padding: 8px 12px; min-height: 160px; }
.cd-editor-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.cd-editor-hint { margin-left: auto; font-size: 12px; color: var(--c-text-subtle); }
.cd-loc-map { position: relative; width: 100%; max-width: 420px; height: 140px; border-radius: 8px; overflow: hidden; background: var(--c-neutral); display: block; }
.cd-loc-map img { position: absolute; width: 256px; height: 256px; }
.cd-loc-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: #C9372C; filter: drop-shadow(0 1px 1px #0006); }
.cd-loc-text { margin-top: 6px; }
.cd-loc-name { font-weight: 600; }
.cd-loc-addr { color: var(--c-text-subtle); font-size: 12px; }
.cd-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.cd-field-label { font-size: 12px; font-weight: 600; color: var(--c-text-subtle); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.cd-field .input, .cd-field .select { height: 32px; padding: 4px 8px; }
.cd-field .select { padding-right: 32px; }
.cd-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* přílohy */
.att-list { display: flex; flex-direction: column; gap: 8px; }
.att { display: flex; gap: 12px; align-items: center; min-height: 64px; border-radius: 3px; }
.att-thumb { width: 112px; height: 80px; border-radius: 3px; background: var(--c-neutral); flex: none; display: grid; place-items: center; overflow: hidden; color: var(--c-text-subtle); font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-info { min-width: 0; flex: 1; }
.att-name { font-weight: 600; overflow-wrap: anywhere; color: var(--c-text); text-decoration: none; }
.att-name:hover { text-decoration: underline; }
.att-meta { color: var(--c-text-subtle); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.att-meta button { color: var(--c-text-subtle); text-decoration: underline; font-size: 12px; }
.att-meta button:hover { color: var(--c-text); }
.att-cover-tag { display: inline-flex; align-items: center; gap: 4px; }

/* seznamy úkolů */
.cl { margin-bottom: 24px; }
.cl-progress { display: flex; align-items: center; gap: 8px; margin: 0 0 8px -40px; }
.cl-pct { width: 32px; text-align: center; font-size: 11px; color: var(--c-text-subtle); flex: none; }
.cl-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--c-neutral-hover); overflow: hidden; }
.cl-bar span { display: block; height: 100%; background: var(--c-accent); border-radius: 4px; transition: width .2s; }
.cl-bar.is-complete span { background: var(--c-success); }
.cl-items { display: flex; flex-direction: column; margin-left: -40px; }
.ci { display: flex; align-items: flex-start; gap: 8px; min-height: 36px; padding: 6px 4px 6px 8px; border-radius: 8px; position: relative; }
.ci:hover { background: var(--c-neutral); }
.ci .check { min-height: 20px; margin-top: 2px; }
.ci-text { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: pointer; padding-left: 8px; }
.ci.is-done .ci-text { text-decoration: line-through; color: var(--c-text-subtle); }
.ci-tools { display: none; gap: 2px; align-items: center; }
.ci:hover .ci-tools, .ci-tools.has-values { display: flex; }
.ci-tools .icon-btn { width: 24px; height: 24px; border-radius: 50%; }
.ci-due { font-size: 12px; padding: 0 6px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; background: var(--c-neutral-hover); }
.ci-edit { flex: 1; }
.cl-add { margin: 8px 0 0 0; }
.cl-add-form .textarea { min-height: 56px; }

/* komentáře a aktivita */
.cd-side-head { display: flex; align-items: center; gap: 14px; min-height: 32px; margin-bottom: 12px; padding-left: 6px; }
.cd-side-head .icon { color: var(--c-text); }
.cd-side-title { flex: 1; font-weight: 600; }
.cd-side-head .btn { background: transparent; box-shadow: inset 0 0 0 1px var(--c-dialog-border); color: var(--c-text-subtle); }
.cd-side-head .btn:hover { background: var(--c-neutral); }
.comment-box {
  width: 100%; height: 36px; display: block; text-align: left; border-radius: 8px; padding: 8px 12px; background: var(--c-dialog); color: var(--c-text-subtle);
  box-shadow: var(--c-card-shadow); margin-bottom: 16px;
}
[data-theme="dark"] .comment-box { background: var(--c-dialog); box-shadow: inset 0 0 0 1px var(--c-dialog-border); }
.comment-box:hover { background: var(--c-card-hover); }
.comment-editor { margin-bottom: 16px; }
.comment-editor textarea { display: block; width: 100%; min-height: 72px; resize: vertical; border-radius: 8px; border: 1px solid var(--c-input-border); background: var(--c-input-bg); color: var(--c-text); padding: 8px 12px; outline: none; }
.comment-editor textarea:focus { border-color: var(--c-focus); box-shadow: inset 0 0 0 1px var(--c-focus); }
.mention-list { margin-top: 4px; }
.feed { display: flex; flex-direction: column; gap: 16px; }
.feed-item { display: flex; gap: 8px; align-items: flex-start; }
.feed-item .avatar { margin-top: 0; }
.feed-main { flex: 1; min-width: 0; }
.feed-line { overflow-wrap: anywhere; }
.feed-line b { font-weight: 700; }
.feed-time { font-size: 12px; line-height: 16px; color: var(--c-link); text-decoration: underline; }
.feed-time.plain { color: var(--c-text-subtle); text-decoration: none; }
.comment-text { margin-top: 4px; background: var(--c-dialog); border-radius: 8px; padding: 8px 12px; box-shadow: var(--c-card-shadow); overflow-wrap: anywhere; }
[data-theme="dark"] .comment-text { box-shadow: inset 0 0 0 1px var(--c-dialog-border); }
.comment-text .md p + p { margin-top: 8px; }
.feed-actions { display: flex; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--c-text-subtle); }
.feed-actions button { text-decoration: underline; font-size: 12px; color: var(--c-text-subtle); }
.feed-actions button:hover { color: var(--c-text); }
.feed-bot { font-size: 11px; font-weight: 600; color: var(--c-bot); margin-left: 4px; }

/* markdown */
.md { overflow-wrap: anywhere; }
.md p { margin: 0 0 12px; }
.md p:last-child { margin-bottom: 0; }
.md h2, .md h3, .md h4, .md h5, .md h6 { font-weight: 600; margin: 16px 0 8px; line-height: 24px; }
.md h2 { font-size: 20px; } .md h3 { font-size: 16px; } .md h4, .md h5, .md h6 { font-size: 14px; }
.md :first-child { margin-top: 0; }
.md ul, .md ol { padding-left: 24px; margin: 0 0 12px; }
.md li + li { margin-top: 2px; }
.md li.md-task { list-style: none; margin-left: -20px; }
.md code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; background: var(--c-code-bg); border-radius: 3px; padding: 2px 4px; border: 1px solid var(--c-border); }
.md pre { background: var(--c-code-bg); border-radius: 3px; padding: 8px 12px; overflow-x: auto; margin: 0 0 12px; }
.md pre code { background: none; padding: 0; border: 0; }
.md blockquote { margin: 0 0 12px; padding: 0 12px; border-left: 2px solid var(--c-border-strong); color: var(--c-text-subtle); }
.md hr { border: 0; border-top: 1px solid var(--c-border); margin: 16px 0; }
.md a { color: var(--c-link); }
.mention { color: var(--c-link); font-weight: 500; }
.cd-desc .md { line-height: 24px; }

/* ============================================================== popover Data (předloha 05) */
.dp-cal { margin-top: 0; }
.dp-nav { display: flex; align-items: center; height: 40px; margin: 0 0 4px; }
.dp-nav .icon-btn { width: 32px; height: 32px; }
.dp-month { flex: 1; text-align: center; font-weight: 600; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-wd { height: 32px; line-height: 32px; text-align: center; font-size: 12px; font-weight: 700; color: var(--c-text-subtle); }
.dp-day { height: 32px; border-radius: 3px; text-align: center; color: var(--c-text); font-size: 14px; position: relative; }
.dp-day:hover { background: var(--c-neutral-hover); }
.dp-day.is-other { color: var(--c-text-subtle); }
.dp-day.is-today { color: var(--c-selected-text); font-weight: 600; }
.dp-day.is-today::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: var(--c-selected-text); }
.dp-day.is-sel { background: var(--c-selected); color: var(--c-selected-text); }
.dp-day.is-range { background: var(--c-selected); border-radius: 0; }
.dp-row { display: flex; align-items: center; gap: 8px; }
.dp-row .check { min-height: 36px; gap: 0; }
.dp-row .input { width: 90px; height: 36px; padding: 6px 6px; }
.dp-row .input.dp-time { width: 130px; padding-right: 30px; background: var(--c-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8F97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; }
.dp-row .input.dp-time::-webkit-calendar-picker-indicator { opacity: 0; }
.dp-row .select-time { width: 130px; }
.dp-note { font-size: 14px; color: var(--c-text); margin: 8px 0 12px; line-height: 20px; }
.dp .btn-block + .btn-block { margin-top: 8px; }
/* rozestupy podle předlohy 05 (vše měřeno od horního okraje popoveru) */
.dp .field-label { margin: 12px 0 4px; }
.dp .field-label.dp-l-start { margin-top: 24px; }
.dp .field-label.dp-l-sel { margin-bottom: 1px; }
.dp .dp-row-due { padding-bottom: 12px; }
.dp .select { height: 40px; padding-left: 8px; border-radius: 6px; background-position: right 12px center; }
.dp .dp-remove { background: transparent; box-shadow: inset 0 0 0 1px var(--c-dialog-border); color: var(--c-text-subtle); }
.dp .dp-remove:hover { background: var(--c-neutral); }

/* štítky v popoveru */
.lp-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.lp-row { display: flex; align-items: center; gap: 4px; }
.lp-row .check { gap: 8px; flex: 1; min-width: 0; min-height: 32px; padding-left: 4px; }
.lp-row .check .label { flex: 1; width: 100%; }
.lp-row .label-big { justify-content: flex-start; }
.lp-row .icon-btn { width: 32px; height: 32px; }
.lp-colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.lp-color { height: 32px; border-radius: 3px; background: var(--lc); position: relative; }
.lp-color:hover { filter: brightness(.92); }
.lp-color.is-sel { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.lp-preview { background: var(--c-surface-sunken); margin: 0 -12px 8px; padding: 32px 24px; display: grid; }
.lp-preview .label { justify-self: stretch; }

.member-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 8px; border-radius: 3px; text-align: left; }
.member-row:hover { background: var(--c-neutral); }
.member-row .icon { margin-left: auto; color: var(--c-text-subtle); }

.cover-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cover-size { height: 62px; border-radius: 3px; background: var(--c-neutral); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cover-size.is-sel { outline: 2px solid var(--c-focus); }
.cover-size i { display: block; border-radius: 2px; background: var(--c-text-subtlest); }
.cover-colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cover-color { height: 32px; border-radius: 3px; background: var(--lc); }
.cover-color.is-sel { outline: 2px solid var(--c-focus); outline-offset: 1px; }

.search-results { list-style: none; max-height: 220px; overflow: auto; margin: 4px -4px 0; }
.search-results button { width: 100%; text-align: left; padding: 6px 8px; border-radius: 3px; display: block; }
.search-results button:hover { background: var(--c-neutral); }
.search-results small { display: block; color: var(--c-text-subtle); font-size: 12px; }

/* ============================================================== filtr (předloha 13/16) */
.filter-pop .pop-body { padding: 0 12px 12px; }
.filter-pop .field-hint { margin-top: 8px; }
.fp-section { font-size: 12px; font-weight: 700; line-height: 16px; color: var(--c-text-subtle); margin: 16px 0 8px; }
.fp-section:first-child { margin-top: 16px; }
.fp-row { display: flex; align-items: center; min-height: 36px; padding-left: 8px; }
.fp-row.has-ico, .fp-row.has-label { min-height: 40px; }
.fp-row .check { gap: 16px; width: 100%; min-height: 36px; }
.fp-row .check-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--c-text-subtle); }
.fp-row.has-ico .check-label, .fp-row.has-label .check-label { color: var(--c-text); }
/* filtr nástěnky (16): text bez ikony o 8 px dál od zaškrtávátka, členové tučně 12 px */
.filter-board .fp-row:not(.has-ico):not(.has-label) .check { gap: 24px; }
.filter-board .fp-row:not(.has-ico):not(.has-label) .check-label { color: var(--c-text); }
.fp-member .check-label > span:last-child { font-size: 12px; font-weight: 700; color: var(--c-text); }
.fp-row .label { flex: 1; height: 32px; padding: 0 12px; font-size: 14px; line-height: 32px; border-radius: 3px; }
.fp-ico { width: 24px; height: 24px; display: grid; place-items: center; color: var(--c-text-subtle); flex: none; border-radius: 50%; }
.fp-ico-bg { background: var(--c-neutral-hover); color: var(--c-text); }
[data-theme="light"] .fp-ico-bg { background: var(--c-neutral); color: var(--c-text-subtle); }
.fp-ico.due-overdue { background: var(--c-due-overdue); color: var(--c-due-overdue-text); }
.fp-ico.due-soon { background: var(--c-due-soon); color: var(--c-due-soon-text); }
.fp-match { margin-top: 12px; }
.fp-more { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0 12px; border-radius: 3px; color: var(--c-text-subtle); text-align: left; }
.fp-more-row { gap: 16px; min-height: 44px; }
.fp-more-row .check { width: auto; flex: none; }
.fp-more-row .fp-more { flex: 1; height: 36px; padding: 0 8px; }
.fp-more:hover { background: var(--c-neutral); }
.fp-match .select { height: 36px; }

/* ============================================================== panely: doručená pošta */
.inbox-head { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 16px; flex: none; }
.inbox-title { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--c-inbox-text); }
.inbox-head .icon-btn { color: var(--c-inbox-text); }
.inbox-head .icon-btn:hover { background: var(--c-neutral-hover); }
.inbox-head .icon-btn.has-filter, .inbox-head .icon-btn.is-open { background: #fff; color: #172B4D; }
.inbox-add { padding: 12px 8px 8px; flex: none; }
.inbox-add-btn { width: 100%; height: 36px; border-radius: 8px; text-align: left; padding: 0 12px; background: var(--c-card-bg); color: var(--c-text-subtle); box-shadow: var(--c-card-shadow); }
[data-theme="dark"] .inbox-add-btn { box-shadow: inset 0 0 0 1px #FFFFFF14; }
.inbox-add-btn:hover { background: var(--c-card-hover); }
.inbox-cards { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 16px 16px; color: var(--c-inbox-text); }
.inbox-empty h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.inbox-empty p { font-size: 12px; line-height: 20px; color: var(--c-inbox-text); opacity: .9; }
.inbox-art { margin-top: 40px; }
.inbox-foot { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 16px 24px 76px; font-size: 12px; line-height: 20px; color: var(--c-inbox-text); text-align: center; }
.inbox-foot > span { flex: 1; }
.inbox-foot .icon { margin-top: 2px; }
.panel-head-planner { display: flex; align-items: center; gap: 8px; padding: 12px; }
.panel-view-host { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
/* Plánovač v panelu (předloha 08): obsah přímo v panelu, bez druhého rámečku a okraje zobrazení */
.panel-view-host > .v-root { padding: 0; }
.panel-view-host > .v-root > .v-panel { border-radius: 0; box-shadow: none; background: transparent; }

/* ============================================================== domů (předloha 10) */
.home { flex: 1; min-height: 0; overflow-y: auto; background: var(--c-page); }
.home-inner { display: flex; justify-content: flex-start; gap: 0; padding: 40px 32px 64px; }
@media (min-width: 1800px) { .home-inner { justify-content: center; } }
.home-nav { width: 256px; flex: none; margin-right: min(199px, 12.5vw); position: sticky; top: 40px; align-self: flex-start; }
.home-nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.home-nav-item { width: 100%; height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 8px; color: var(--c-text); font-weight: 500; text-decoration: none; }
.home-nav-item:hover { background: var(--c-neutral-hover); }
.home-nav-item.is-active { background: var(--c-selected); color: var(--c-selected-text); }
.home-nav-sep { height: 1px; background: var(--c-border); margin: 4px 0; }
.home-nav-heading { font-size: 12px; font-weight: 600; line-height: 16px; color: var(--c-text-subtle); padding: 0 16px; margin: 24px 0 6px; }
.home-ws { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 12px; height: 40px; border-radius: 8px; }
.home-ws:hover { background: var(--c-neutral-hover); }
.home-ws-name { flex: 1; font-weight: 600; }
.ws-mark { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; background: linear-gradient(180deg, #E2483D 0%, #C25100 100%); flex: none; }
.ws-mark.small { width: 24px; height: 24px; font-size: 14px; border-radius: 4px; }
.home-main { width: 914px; max-width: 100%; min-width: 0; }
.home-section { margin-bottom: 54px; }
.home-h { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0 0 20px; min-height: 32px; }
.home-h .icon { color: var(--c-text-subtle); }
.home-h-caps { font-size: 16px; font-weight: 700; color: var(--c-text-subtle); text-transform: uppercase; margin: 0 0 20px; }
.home-ws-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.home-ws-title { flex: 1; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.home-ws-btns { display: flex; gap: 8px; }
.home-ws-btns .btn { color: var(--c-text); background: var(--c-neutral); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, 220px); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; width: 220px; height: 108px; border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--c-text);
  box-shadow: var(--c-card-shadow); background: var(--c-card-bg);
}
.tile-bg { height: 72px; background: var(--tile-bg); background-size: cover; background-position: center; position: relative; }
.tile:hover .tile-bg::after { content: ""; position: absolute; inset: 0; background: #0000001F; }
.tile-name { flex: 1; display: flex; align-items: center; padding: 0 8px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[data-theme="dark"] .tile { background: #1F1F2C; box-shadow: none; }
.tile-star { position: absolute; right: 8px; bottom: 6px; width: 24px; height: 24px; display: none; place-items: center; color: var(--c-text-subtle); border-radius: 3px; }
.tile:hover .tile-star, .tile-star.is-on { display: grid; }
.tile-star.is-on { color: #E2B203; }
.tile-new { display: grid; place-items: center; width: 220px; height: 108px; border-radius: 8px; background: var(--c-neutral); color: var(--c-text-subtle); font-size: 14px; }
.tile-new:hover { background: var(--c-neutral-hover); }
.home-closed-btn { margin-top: 40px; background: transparent; box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text-subtle); }

/* ============================================================== stránky (hledání, deník, nastavení, přihlášení) */
.page { flex: 1; min-height: 0; overflow-y: auto; background: var(--c-page); }
.page-inner { max-width: 880px; margin: 0 auto; padding: 32px 16px 96px; }
.page-h { font-size: 24px; font-weight: 700; line-height: 32px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.page-sub { color: var(--c-text-subtle); margin-bottom: 24px; }
.sr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; align-items: center; }
.sr-filters .input { max-width: 420px; }
.sr-filters .select { width: auto; min-width: 180px; }
.sr-list { display: flex; flex-direction: column; gap: 8px; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--c-text); }
.sr-item:hover { background: var(--c-neutral); }
.sr-thumb { width: 40px; height: 32px; border-radius: 4px; background: var(--tile-bg, var(--board-bg)); flex: none; }
.sr-name { font-weight: 500; }
.sr-meta { font-size: 12px; color: var(--c-text-subtle); }
.sr-group { font-size: 12px; font-weight: 700; color: var(--c-text-subtle); text-transform: uppercase; margin: 16px 0 4px; }
.search-pop .pop-body { padding: 0 8px 8px; }
.search-pop .sr-item { padding: 6px 8px; }
.journal-day { margin-bottom: 24px; padding: 16px 20px; border-radius: 12px; background: var(--c-card-bg); box-shadow: var(--c-card-shadow); }
[data-theme="dark"] .journal-day { box-shadow: inset 0 0 0 1px var(--c-border); }
.journal-day-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.journal-day-title { font-weight: 700; font-size: 16px; flex: 1; }
.journal-today { font-size: 12px; font-weight: 600; color: var(--c-selected-text); background: var(--c-selected); border-radius: 3px; padding: 0 6px; }
.settings-group { margin-bottom: 32px; }
.settings-group h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.settings-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.settings-row-text { flex: 1; min-width: 0; }
.settings-row-hint { color: var(--c-text-subtle); font-size: 12px; }
.seg { display: inline-flex; border-radius: 3px; background: var(--c-neutral); padding: 2px; gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border-radius: 3px; font-weight: 500; color: var(--c-text-subtle); display: inline-flex; align-items: center; gap: 6px; }
.seg button.is-on { background: var(--c-card-bg); color: var(--c-text); box-shadow: var(--c-card-shadow); }

.login { flex: 1; overflow-y: auto; background: var(--c-surface-sunken); display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.login-box { width: 400px; max-width: 100%; background: var(--c-card-bg); border-radius: 8px; box-shadow: var(--c-overlay-shadow); padding: 32px 40px; }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; font-weight: 700; margin-bottom: 24px; color: var(--c-text); }
.login-h { text-align: center; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.login .input { height: 40px; }
.login .btn { height: 40px; width: 100%; margin-top: 16px; }
.login-err { color: var(--c-danger); font-size: 14px; margin-top: 8px; }
.login-note { color: var(--c-text-subtle); font-size: 12px; text-align: center; margin-top: 16px; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 20px !important; font-weight: 600; }

/* oznámení */
.notif-pop .pop-body { padding: 0; }
.notif-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 8px; font-size: 12px; color: var(--c-text-subtle); }
.notif-tools label { display: inline-flex; align-items: center; gap: 8px; }
.notif-tools button { color: var(--c-text-subtle); text-decoration: underline; font-size: 12px; }
.notif-list { list-style: none; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--c-border); position: relative; cursor: pointer; }
.notif:hover { background: var(--c-neutral); }
.notif.is-unread::after { content: ""; position: absolute; right: 16px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.notif-main { flex: 1; min-width: 0; padding-right: 16px; }
.notif-card { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-board { font-size: 12px; color: var(--c-text-subtle); }
.notif-text { margin-top: 4px; overflow-wrap: anywhere; }
.notif-time { font-size: 12px; color: var(--c-text-subtle); margin-top: 2px; }
.notif-empty { padding: 32px 16px; text-align: center; color: var(--c-text-subtle); }

/* boční menu nástěnky (předloha 17) */
.board-menu .pop-body { padding: 0 12px 12px; }
.bm-color { width: 20px; height: 20px; border-radius: 3px; background: var(--board-bg-value, var(--board-bg)); background-size: cover; flex: none; }
.bm-bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bm-bg { height: 64px; border-radius: 8px; background: var(--b); display: grid; place-items: center; font-size: 20px; position: relative; }
.bm-bg:hover { filter: brightness(.9); }
.bm-bg.is-sel::after { content: "✓"; position: absolute; color: #fff; font-weight: 700; text-shadow: 0 1px 2px #0008; }
.bm-about h3 { font-size: 14px; font-weight: 600; margin: 8px 0; display: flex; align-items: center; gap: 8px; }
.bm-acts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bm-arch-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.bm-arch-item .card { flex: 1; cursor: default; }
.bm-arch-item .card:hover { outline-color: transparent; }
.bm-arch-links { display: flex; gap: 8px; font-size: 12px; margin-top: 4px; }
.bm-arch-links button { text-decoration: underline; color: var(--c-text-subtle); font-size: 12px; }
.bm-field { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.bm-field-name { flex: 1; }

/* automatizace */
.auto-modal .modal-body { padding-top: 0; }
.auto-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); margin: 0 -24px 16px; padding: 0 24px; }
.auto-tab { height: 40px; padding: 0 12px; font-weight: 500; color: var(--c-text-subtle); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auto-tab.is-on { color: var(--c-selected-text); border-bottom-color: var(--c-selected-text); }
.rule { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--c-surface-sunken); margin-bottom: 8px; }
[data-theme="dark"] .rule { background: var(--c-neutral); }
.rule-main { flex: 1; min-width: 0; }
.rule-name { font-weight: 600; }
.rule-desc { color: var(--c-text-subtle); font-size: 12px; margin-top: 2px; }
.rule-tools { display: flex; gap: 4px; align-items: center; }
.rule-form { border: 1px solid var(--c-border); border-radius: 8px; padding: 16px; margin-top: 8px; }
.rule-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rule-action-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.rule-action-row .select, .rule-action-row .input { width: auto; flex: 1; min-width: 140px; }

/* rychlá úprava karty */
.qe-backdrop { position: fixed; inset: 0; background: var(--c-backdrop); z-index: 150; }
.qe { position: fixed; z-index: 151; display: flex; gap: 8px; align-items: flex-start; }
.qe-card { background: var(--c-card-bg); border-radius: 8px; box-shadow: var(--c-card-shadow); overflow: hidden; }
.qe-card textarea { display: block; width: 100%; border: 0; resize: none; outline: none; background: transparent; color: var(--c-text); padding: 0; min-height: 60px; font-size: 14px; line-height: 20px; }
.qe-save { margin-top: 8px; }
.qe-menu { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.qe-menu button { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 3px; background: var(--c-popover); color: var(--c-text); font-weight: 500; box-shadow: var(--c-card-shadow); }
.qe-menu button:hover { filter: brightness(.96); transform: translateX(4px); transition: transform .1s; }

/* ============================================================== toasty, banner, prázdné stavy */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 8px; min-height: 40px; max-width: 420px; padding: 8px 8px 8px 16px; border-radius: 8px;
  background: var(--c-tooltip); color: var(--c-tooltip-text); box-shadow: var(--c-overlay-shadow);
}
.toast-error { background: var(--c-danger); color: #fff; }
.toast-text { flex: 1; }
.toast-action { font-weight: 600; text-decoration: underline; color: inherit; }
.toast-close { color: inherit; width: 24px; height: 24px; }
.banner { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 4px 16px; background: var(--c-warning-soft); color: var(--c-text); font-size: 13px; }
.empty { text-align: center; color: var(--c-text-subtle); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { color: var(--c-text); font-size: 16px; }
.spinner-wrap { display: grid; place-items: center; padding: 32px; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--c-neutral-hover); border-top-color: var(--c-accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.view-host { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.view-error { margin: 24px; padding: 16px; border-radius: 8px; background: var(--c-card-bg); color: var(--c-text); }

/* ============================================================== drag & drop */
.drag-ghost { box-shadow: 0 12px 24px -6px #091E4240, 0 0 1px #091E424F !important; opacity: .95; will-change: transform; transform-origin: 50% 50%; }
.drag-ghost .card-edit { display: none !important; }
.drag-placeholder { flex: none; border-radius: 8px; background: #091E4224; }
[data-theme="dark"] .drag-placeholder { background: #A6C5E229; }
.list-cards > .drag-placeholder { width: 100%; }
.board-lists > .drag-placeholder { margin: 0 6px; border-radius: 12px; background: #00000033; align-self: flex-start; }
.drag-placeholder.is-away { opacity: .35; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none !important; }
.is-dragging .card:hover { outline-color: transparent; }
.card.is-pressing { transform: scale(.98); transition: transform .2s; }
.is-drop-over { outline: 2px dashed var(--c-focus) !important; outline-offset: -2px; }
.cl-items > .drag-placeholder { height: 36px; border-radius: 8px; }

/* ============================================================== tisk */
@media print {
  .topbar, .bottombar, .board-header .bh-right, .list-footer, .panel { display: none !important; }
  body { overflow: visible; }
  .board-canvas { overflow: visible; }
}

/* ============================================================== mobil (předlohy 14, 15) */
@media (max-width: 750px) {
  .topbar { padding: 0 4px 0 8px; gap: 2px; }
  .tb-logo { padding: 0 4px; }
  .tb-logo-text { display: none; }
  .tb-center { justify-content: center; gap: 8px; }
  .tb-search { display: none; }
  .tb-search-btn { display: inline-grid; }
  .tb-create { height: 32px; padding: 0 12px; font-size: 15px; font-weight: 600; min-width: 78px; }
  .tb-right .tb-feedback, .tb-right .tb-help, .tb-right .tb-bell, .tb-right .tb-avatar-btn { display: none; }
  .tb-more { display: inline-grid; }
  .board-header { padding: 12px 8px 12px 14px; }
  .bh-title { max-width: 52vw; }
  .bh-right .bh-hide-m { display: none !important; }
  .board-canvas { padding: 12px 6px 72px; scroll-snap-type: x mandatory; scroll-padding: 0 12px; }
  .list-wrap { scroll-snap-align: start; }
  .list-cards { scrollbar-gutter: auto; }
  .card-edit { display: none !important; }
  .card:hover { outline-color: transparent; }
  .card-done { width: 0; }
  .card.is-done .card-done { width: 16px; }

  .bottombar {
    left: 0; right: 0; bottom: 0; transform: none; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom);
    border-radius: 0; border: 0; border-top: 1px solid var(--c-floating-border); justify-content: space-between; gap: 0; box-shadow: none;
  }
  .bb-item { height: 44px; padding: 0 12px; }
  .bb-item .bb-label { display: none; }
  .bb-item.bb-board { flex: 0 0 156px; justify-content: center; margin-left: auto; margin-right: 4px; }
  .bottombar { justify-content: flex-start; gap: 2px; padding-left: 6px; padding-right: 6px; }
  .bb-item { min-width: 44px; justify-content: center; padding: 0 6px; }
  .bb-sep { margin: 0 2px; }
  .bb-item.is-active::after { bottom: 6px; }
  .bb-sep { margin: 0 2px; }
  .has-panels .workspace { padding: 0; gap: 0; }
  /* i druhý panel (.panel + .panel má jinak position: relative) – jinak se Plánovač roztáhne podle obsahu */
  .panel, .panel + .panel { position: absolute; inset: 0 0 64px; width: auto !important; border-radius: 0; border: 0; z-index: 5; }
  .has-panels .main { border-radius: 0; }
  .panel-resize { display: none; }

  .cd-backdrop { padding: 32px 22px 0; align-items: stretch; scrollbar-width: none; overflow: hidden; }
  .cd-wrap { padding-bottom: 0; }
  .cd { width: 100%; height: calc(100vh - 111px); height: calc(100dvh - 111px - env(safe-area-inset-bottom)); min-height: 0; border-radius: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .cd-header { height: 56px; padding: 0 16px 0 24px; border-bottom: 0; flex: none; }
  .cd-columns { flex-direction: column; flex: none; }
  .cd-main { padding: 24px 16px 24px 24px; }
  .cd-title-row { gap: 8px; }
  .cd-side { flex: none; border-left: 0; border-top: 1px solid var(--c-dialog-border); border-radius: 0 0 12px 12px; }
  .cd-title { font-size: 24px; }
  .cd-body { padding-left: 24px; }
  .cd-section-head { margin-left: -32px; gap: 12px; }
  .cl-progress, .cl-items { margin-left: -24px; }
  .cd-actions { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 2px; scrollbar-width: none; }
  .card-dock { bottom: calc(19px + env(safe-area-inset-bottom)); margin-top: 0; }
  .card-dock .bb-label { display: none; }
  .card-dock .bb-item { padding: 0 14px; }

  .home-inner { padding: 16px 16px 96px; }
  .home-nav { display: none; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tile, .tile-new { width: auto; }
  .home-ws-row { flex-wrap: wrap; }
  .home-ws-btns { display: none; }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; }
  .shortcut-list { grid-template-columns: 1fr; }
  .rule-form .grid2 { grid-template-columns: 1fr; }
  .icon-btn { width: 44px; height: 44px; }
  .list-header .icon-btn, .list-footer .icon-btn { width: 32px; height: 32px; }
  .tb-right .icon-btn, .topbar .icon-btn { width: 36px; height: 36px; }
  .board-header .icon-btn { width: 36px; height: 36px; }
  .toasts { left: 8px; right: 8px; bottom: 76px; }
}
.qe-front .card-done { display: none !important; }
