/* Úkoly — vlastní vrstva nad Metronic (styles.css) a gdo.css. Prefix uk-.
   1 přihlášení · 2 skořápka · 3 panel · 4 nabídky · 5 nástěnka · 6 karty
   7 dialogy · 8 uživatelé, účet · 9 drobnosti · 10 telefon a iOS */

/* 1 ─ přihlášení, změna hesla, offline ─────────────────────────────── */
.uk-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top));
  background: var(--gdo-shell-bg);
}
.uk-auth-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: var(--background);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.uk-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.uk-auth-mark,
.uk-brand-mark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  flex-shrink: 0;
}
.uk-auth-mark::after,
.uk-brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.uk-auth-title {
  margin: 22px 0 6px;
  font-size: 20px;
  font-weight: 600;
}
.uk-auth-note,
.uk-dialog-text {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.uk-auth-error {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fde8ea;
  color: var(--gdo-danger-text);
  font-size: 13px;
  font-weight: 500;
}
.uk-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.uk-label {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.uk-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--background);
  font: inherit;
  font-size: 15px;
  color: var(--foreground);
  outline: 0;
}
.uk-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}
.uk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.uk-btn--primary {
  border-color: var(--gdo-shell-bg);
  background: var(--gdo-shell-bg);
  color: #fff;
}
.uk-btn--primary:hover {
  background: #27272a;
}
.uk-btn--block {
  width: 100%;
  margin-top: 16px;
}

/* 2 ─ skořápka ─────────────────────────────────────────────────────── */
.uk-body {
  overflow: hidden;
}
/* Tělo stránky se neroluje, takže skořápka musí držet výšku okna na všech šířkách (gdo.css to dělá až
   od 1024 px; bez toho na telefonu rostla s obsahem a nebylo co rolovat). Rolují vnitřní oblasti:
   nástěnka, obsah stránky, levý panel. dvh = výška bez adresního řádku Safari. */
.uk-body .gdo-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.uk-loading {
  padding: 40px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}
.uk-offline {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: #78350f;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.uk-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 200;
  transform: translateX(-50%);
  max-width: min(90vw, 480px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gdo-shell-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: uk-rise 180ms ease-out;
}
.uk-toast--error {
  background: var(--gdo-danger-text);
}
@keyframes uk-rise {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.uk-toolbar-title {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}
.uk-toolbar-title strong {
  font-weight: 600;
}
.uk-title-btn {
  max-width: 100%;
  padding: 4px 8px;
  margin-left: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
}
.uk-title-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.uk-nav-mobile {
  display: none;
}
.uk-members {
  display: flex;
}
.uk-members .gdo-avatar {
  margin-left: -6px;
  border: 2px solid var(--gdo-surface);
}
.uk-members .gdo-avatar:first-child {
  margin-left: 0;
}

/* 3 ─ levý panel ───────────────────────────────────────────────────── */
.uk-list-group {
  border-radius: 8px;
  transition: background 120ms ease;
}
.uk-list-group.is-over {
  background: rgba(230, 57, 70, 0.14);
}
.uk-list-title {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 2px;
}
.uk-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uk-list-actions {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 120ms ease;
}
.uk-list-title:hover .uk-list-actions,
.uk-list-actions:focus-within,
.uk-list-actions .uk-menu.is-open {
  opacity: 1;
}
.uk-icon-sm {
  width: 26px;
  height: 26px;
}
.uk-icon-sm i {
  font-size: 15px;
}
.uk-list-empty {
  padding: 4px 10px 6px;
  font-size: 12px;
  color: #6f6f78;
}
.uk-nav-add {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  font: inherit;
  color: #9b9ba4;
}
.uk-nav-add .gdo-nav-label {
  font-size: 13px;
}
.uk-nav-shared {
  font-size: 12px !important;
  color: #7c7c86;
}
.gdo-nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.uk-board-link {
  position: relative;
}
.uk-board-link.is-dragging {
  opacity: 0.4;
}
.uk-board-link.uk-edge-top::before,
.uk-board-link.uk-edge-bottom::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.uk-board-link.uk-edge-top::before {
  top: -2px;
}
.uk-board-link.uk-edge-bottom::after {
  bottom: -2px;
}
.gdo-usermenu form {
  margin: 0;
}
.gdo-usermenu-link {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: start;
}

/* 4 ─ nabídky ⋯ ─────────────────────────────────────────────────────── */
.uk-menu {
  position: relative;
  display: inline-flex;
}
.uk-menu-popup {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 80;
  min-width: 200px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: var(--background);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.uk-menu-popup--end {
  right: 0;
}
.uk-menu-popup--start {
  left: 0;
}
.uk-menu-popup .gdo-usermenu-link {
  white-space: nowrap;
}
.uk-menu-popup .uk-danger,
.uk-menu-popup .uk-danger i {
  color: var(--gdo-danger-text);
}
.gdo-usermenu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--border);
}
.gdo-nav .uk-menu-popup {
  background: #fff;
}

/* 5 ─ nástěnka ─────────────────────────────────────────────────────── */
.uk-board-body {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
}
.uk-board {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 4px 20px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
/* Barva sloupců nástěnky (data-color); stejná světlost u všech, aby karty a text zůstaly čitelné. */
.uk-board,
.uk-swatch {
  --uk-column-bg: #d8d8dd;
}
.uk-board[data-color="green"],
.uk-swatch[data-color="green"] {
  --uk-column-bg: #cfe1d8;
}
.uk-board[data-color="blue"],
.uk-swatch[data-color="blue"] {
  --uk-column-bg: #cfdcec;
}
.uk-board[data-color="amber"],
.uk-swatch[data-color="amber"] {
  --uk-column-bg: #e8dcb7;
}
.uk-board[data-color="rose"],
.uk-swatch[data-color="rose"] {
  --uk-column-bg: #edd1d6;
}
.uk-board[data-color="violet"],
.uk-swatch[data-color="violet"] {
  --uk-column-bg: #dcd5ec;
}
.uk-column {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-height: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--uk-column-bg);
  transition: opacity 120ms ease;
}
.uk-column.is-dragging {
  opacity: 0.4;
}
.uk-column.uk-edge-left::before,
.uk-column.uk-edge-right::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.uk-column.uk-edge-left::before {
  left: -8px;
}
.uk-column.uk-edge-right::after {
  right: -8px;
}
.uk-column-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 6px 6px 12px;
  cursor: grab;
}
.uk-column-name {
  flex: 1;
  min-width: 0;
  padding: 2px 6px;
  margin-left: -6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
}
.uk-column-name:hover {
  background: rgba(0, 0, 0, 0.06);
}
.uk-column-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: #52525b;
  text-align: center;
}
.uk-column-head .gdo-icon-btn--light {
  color: #52525b;
}
.uk-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
  padding: 2px 8px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  border-radius: 0 0 12px 12px;
  transition: background 120ms ease;
}
.uk-column.is-over .uk-cards {
  background: rgba(230, 57, 70, 0.08);
}
/* Místo vložení v prázdném sloupci: linka nad „Nová karta". */
.uk-cards.uk-drop-end::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
/* Svinutý sloupec (běžný i „Hotové"): úzký pruh přes výšku nástěnky, klik ho rozbalí. */
.uk-column.is-closed {
  align-self: stretch;
  width: 44px;
}
.uk-column.is-closed.is-over,
.uk-done.is-over {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.uk-strip {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 14px 0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  user-select: none;
}
.uk-strip:hover {
  background: rgba(0, 0, 0, 0.05);
}
.uk-strip:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: -2px;
}
.uk-strip i,
.uk-column-head > i {
  flex-shrink: 0;
  font-size: 17px;
  color: #52525b;
}
.uk-strip-name {
  min-height: 0;
  writing-mode: vertical-rl;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uk-strip .uk-column-count {
  flex-shrink: 0;
}
/* Sloupec „Hotové": tlumenější odstín barvy nástěnky, nepřesouvá se. */
.uk-done {
  background: #dddde2;
  background: color-mix(in srgb, var(--uk-column-bg) 55%, var(--gdo-surface));
}
.uk-done.is-over .uk-cards {
  background: transparent;
}
.uk-done .uk-column-head {
  cursor: default;
}
.uk-column-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.uk-done-empty {
  margin: 0;
  padding: 4px 6px 8px;
  font-size: 12.5px;
  color: #52525b;
}
.uk-column-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 260px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px dashed #a1a1aa;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
}
.uk-column-add:hover {
  border-color: var(--foreground);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.5);
}
.uk-home {
  display: flex;
  align-items: center;
  justify-content: center;
}
.uk-empty {
  text-align: center;
  color: var(--muted-foreground);
}
.uk-empty i {
  font-size: 34px;
  color: #a1a1aa;
}
.uk-empty p {
  max-width: 320px;
  margin: 10px auto 0;
  font-size: 13.5px;
}

/* 6 ─ karty ─────────────────────────────────────────────────────────── */
.uk-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 10px;
  background: var(--background);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.08);
  cursor: pointer;
  transition: box-shadow 120ms ease, opacity 120ms ease;
}
.uk-card:hover {
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.14);
}
.uk-card.is-dragging {
  opacity: 0.35;
}
/* Místo vložení tažené karty: spodní hrana karty nad ním a horní hrana karty pod ním. */
.uk-card.uk-drop-before {
  box-shadow: inset 0 3px 0 var(--primary), 0 1px 2px rgba(9, 9, 11, 0.08);
}
.uk-card.uk-drop-after {
  box-shadow: inset 0 -3px 0 var(--primary), 0 1px 2px rgba(9, 9, 11, 0.08);
}
.uk-check {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  cursor: pointer;
}
.uk-check input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.uk-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 1px;
  border: 1.5px solid #a1a1aa;
  border-radius: 50%;
  color: transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.uk-check-box i {
  font-size: 11px;
}
.uk-check:hover .uk-check-box {
  border-color: var(--primary);
}
.uk-check input:checked + .uk-check-box {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.uk-check input:focus-visible + .uk-check-box {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}
.uk-card-main {
  flex: 1;
  min-width: 0;
}
.uk-card-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.uk-card.is-done .uk-card-title {
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.uk-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.uk-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 5px;
  border-radius: 999px;
  background: var(--muted);
  font-weight: 500;
}
.uk-due i {
  font-size: 12px;
}
.uk-due--today {
  background: #fef3c7;
  color: #92400e;
}
.uk-due--late {
  background: #fde8ea;
  color: var(--gdo-danger-text);
}
.uk-card-note-icon {
  font-size: 13px;
}
.uk-due-time {
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.uk-card-bell {
  font-size: 13px;
  color: var(--muted-foreground);
}
.uk-card-avatar {
  margin-left: auto;
  width: 22px;
  height: 22px;
  font-size: 9.5px;
}
.uk-card-add {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  text-align: start;
  cursor: pointer;
}
.uk-card-add:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--foreground);
}
.uk-card--new {
  display: block;
  padding: 8px;
  cursor: default;
}
.uk-card-input {
  display: block;
  width: 100%;
  padding: 4px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  resize: none;
  outline: 0;
}
.uk-card-new-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.uk-card-new-actions .gdo-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
}
.uk-card-new-actions .gdo-icon-btn--light {
  color: #52525b;
}

/* 7 ─ dialogy ───────────────────────────────────────────────────────── */
.uk-dialog {
  margin: auto; /* Tailwind preflight nuluje margin i u <dialog>, bez tohoto sedí vlevo nahoře */
  width: min(100vw - 32px, 440px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.uk-dialog--wide {
  width: min(100vw - 32px, 640px);
}
.uk-dialog::backdrop {
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(2px);
}
.uk-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}
.uk-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px 20px;
}
.uk-dialog-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.uk-dialog-head .gdo-icon-btn--light {
  color: #52525b;
}
.uk-dialog-body {
  padding: 0 20px 6px;
  overflow-y: auto;
}
.uk-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
}
.uk-spacer {
  flex: 1;
}
.uk-field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.uk-field-row--2 {
  grid-template-columns: 1fr 1fr;
}
.uk-field-row .gdo-field {
  min-width: 0;
}
.uk-field-row input[type="date"],
.uk-field-row input[type="time"] {
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.uk-field-row input:disabled,
.uk-field-row select:disabled {
  background: var(--muted);
  color: var(--muted-foreground);
  opacity: 0.7;
  cursor: not-allowed;
}
.uk-field-hint {
  margin: -6px 0 14px;
}
.uk-title-input {
  font-size: 15px !important;
  font-weight: 500;
  resize: none;
}
.gdo-field textarea {
  resize: vertical;
}
/* Poznámka: formátovaný text. Rámeček a fokus jako u textového pole, nahoře lišta. */
.uk-rich-box {
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--background);
}
.uk-rich-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}
.uk-rich-bar {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-bottom: 1px solid var(--border);
}
.uk-rich-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52525b;
  cursor: pointer;
}
.uk-rich-btn i {
  font-size: 16px;
}
.uk-rich-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}
.uk-rich-btn.is-active {
  background: rgba(0, 0, 0, 0.1);
  color: var(--foreground);
}
.uk-rich {
  min-height: calc(7.5em + 16px); /* 5 řádků */
  max-height: 40vh;
  padding: 8px 10px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  outline: 0;
}
.uk-rich:empty::before {
  content: attr(data-placeholder);
  color: #71717a;
  pointer-events: none;
}
.uk-rich p {
  margin: 0;
}
.uk-rich b {
  font-weight: 700;
}
.uk-rich ul,
.uk-rich ol {
  margin: 2px 0;
  padding-left: 24px;
}
.uk-rich ul {
  list-style: disc;
}
.uk-rich ol {
  list-style: decimal;
}
.uk-done-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.uk-done-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.uk-done-row.is-done {
  color: var(--gdo-success);
}
.uk-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.uk-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--background);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
}
.uk-swatch:hover {
  background: var(--muted);
}
.uk-swatch.is-active {
  border-color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--foreground);
}
.uk-swatch-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: var(--uk-column-bg);
}
.uk-checklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.uk-checklist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
}
.uk-checklist-row:hover {
  background: var(--muted);
}
.uk-checklist-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}
.uk-secret {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.uk-secret code {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--muted);
  font-size: 16px;
  letter-spacing: 0.04em;
  user-select: all;
}
.uk-hint {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.uk-btn-danger {
  border-color: var(--gdo-danger-text);
  background: var(--gdo-danger-text);
  color: #fff;
}
.uk-btn-danger:hover {
  border-color: #a10f1a;
  background: #a10f1a;
}
.uk-btn-danger-text {
  color: var(--gdo-danger-text);
}
.gdo-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 8 ─ uživatelé, účet ──────────────────────────────────────────────── */
.uk-users {
  background: var(--background);
}
.uk-user-row {
  cursor: default;
}
.uk-user-row.is-inactive .uk-user-main {
  opacity: 0.5;
}
.uk-user-main {
  flex: 1;
  min-width: 0;
}
.uk-user-row .gdo-icon-btn--light {
  color: #52525b;
}
.uk-narrow {
  max-width: 560px;
}
.uk-card-block {
  margin-bottom: 14px;
}
.uk-h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.uk-kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 13.5px;
}
.uk-kv span {
  color: var(--muted-foreground);
}
/* 9 ─ drobnosti ─────────────────────────────────────────────────────── */
.uk-ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 50%;
  z-index: 150;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(var(--uk-ptr, 0px) - 48px));
  opacity: calc(var(--uk-ptr, 0px) / 60px);
  pointer-events: none;
  transition: transform 150ms ease, opacity 150ms ease;
}
.uk-ptr::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--primary);
  border-right-color: transparent;
  border-radius: 50%;
}
.uk-ptr svg {
  display: none;
}
.uk-ptr--loading::after {
  animation: uk-spin 700ms linear infinite;
}
@keyframes uk-spin {
  to { transform: rotate(360deg); }
}

/* 10 ─ telefon a iOS ────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .uk-nav-mobile {
    display: inline-flex;
  }
  .gdo-sidebar-reopen {
    display: none !important;
  }
  .uk-list-actions {
    opacity: 1;
  }
}
@media (max-width: 767px) {
  /* Nástěnka je vodorovný pás: tah do strany přechází mezi sloupci, karty se posouvají svisle ve sloupci. */
  .uk-board {
    gap: 10px;
    padding: 4px 12px calc(12px + env(safe-area-inset-bottom));
    scroll-snap-type: x proximity; /* mandatory vracel krátký posun (kolečko, drobný tah) zpět na začátek */
    scroll-padding-inline: 12px;
    overscroll-behavior: contain;
  }
  .uk-column,
  .uk-column-add {
    scroll-snap-align: start;
  }
  .uk-column {
    width: min(80vw, 320px); /* vedle zůstane vidět okraj dalšího sloupce */
  }
  .uk-column-add {
    width: min(60vw, 220px);
    min-height: 44px;
  }
  .uk-cards {
    overscroll-behavior-y: contain;
  }
  /* Dotykové cíle aspoň 44 px. */
  .uk-column-head {
    padding: 4px 4px 2px 12px;
  }
  .uk-column-head .gdo-icon-btn,
  .uk-card-new-actions .gdo-icon-btn {
    width: 44px;
    height: 44px;
  }
  .uk-card-add,
  .uk-card-new-actions .gdo-btn {
    min-height: 44px;
  }
  .uk-check::after {
    content: "";
    position: absolute;
    inset: -11px;
  }
  .uk-swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .uk-rich-btn {
    width: 36px;
    height: 36px;
  }
  .uk-card {
    min-height: 44px;
  }
  .uk-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .uk-members {
    display: none;
  }
}
@media (display-mode: standalone) {
  .gdo-toolbar,
  .gdo-sidebar-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--gdo-header-height) + env(safe-area-inset-top));
  }
  .uk-toast,
  .uk-offline {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* import */
.uk-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gdo-btn.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.uk-import-result {
  margin-top: 10px;
  color: var(--gdo-success);
}

/* macOS web app z Docku: systémový titulkový pruh (28 px) sedí těsně nad obsahem.
   Přidaný prostor pod ním dá kolečkům vzduch jako u nativních aplikací. Jen s myší
   (hover) — na iPhonu odsazení řeší safe-area výše. Kolečka samotná posunout nejde. */
@media (display-mode: standalone) and (hover: hover) and (pointer: fine) {
  :root {
    --uk-mac-inset: 22px;
  }
  .gdo-shell {
    padding-top: calc(var(--gdo-gap) + var(--uk-mac-inset));
  }
  .gdo-sidebar-header {
    margin-top: calc(var(--gdo-gap) + 1px + var(--uk-mac-inset));
  }
  .uk-auth {
    padding-top: calc(24px + var(--uk-mac-inset));
  }
}

/* přihlášení přes Google */
.uk-btn--google {
  gap: 8px;
  margin-top: 18px;
}
.uk-auth-note--after {
  margin: 14px 0 0;
}
.uk-btn--google i {
  font-size: 16px;
}
