/* Přehled – styly prémiových zobrazení (Tabulka, Kalendář, Časová osa, Souhrnná tabulka, Mapa, Plánovač).
   Prefix tříd .v-…; barvy výhradně z web/tokens.css (oba motivy). Prvky, které se přetahují („duch“ se klonuje
   do <body>), mají selektory bez rodiče, aby duch vypadal stejně. Kořen .v-root vyplní kontejner jádra a sám má
   okraj 12 px jako plátno nástěnky (8 px na mobilu) – kontejner ho nemá přidávat znovu. Popovery jsou v <body>. */

/* ============================================================== základ */
.v-root {
  position: relative; display: flex; flex-direction: column; box-sizing: border-box;
  width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden;
  padding: 12px; font-family: var(--font); font-size: 14px; line-height: 20px; color: var(--c-text);
}
.v-root *, .v-root *::before, .v-root *::after, .v-pop, .v-pop *, .v-ghost, .v-ghost * { box-sizing: border-box; }
.v-panel {
  flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; position: relative;
  background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-list); box-shadow: var(--c-card-shadow); overflow: hidden;
}
.v-root :focus-visible, .v-pop :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.v-icon { flex: none; display: block; }
.v-hide-narrow { display: inline; }
.is-compact .v-hide-narrow { display: none; }

/* tlačítka */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 0; border-radius: var(--radius-sm); background: var(--c-neutral); color: var(--c-text);
  font: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; flex: none;
}
.v-btn:hover { background: var(--c-neutral-hover); }
.v-btn:active { background: var(--c-neutral-pressed); }
.v-btn:disabled { cursor: default; opacity: .6; }
.v-btn.is-active { background: var(--c-accent-subtle); color: var(--c-accent-subtle-text); }
.v-btn--primary { background: var(--c-accent); color: var(--c-accent-text); }
.v-btn--primary:hover { background: var(--c-accent-hover); }
.v-btn--primary:disabled:hover { background: var(--c-accent); }
.v-btn--ghost { background: transparent; }
.v-btn--ghost:hover { background: var(--c-neutral-hover); }
.v-btn--danger { color: var(--c-danger); }
.v-btn--block { display: flex; width: 100%; }
.v-btn--block + .v-btn--block { margin-top: 8px; }
.v-btn--sm { height: 28px; padding: 0 8px; font-size: 13px; gap: 4px; }
.v-btn--dd { padding: 0 8px 0 10px; }
.v-icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--c-text-subtle); cursor: pointer;
}
.v-icon-btn:hover { background: var(--c-neutral-hover); color: var(--c-text); }
.v-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--c-neutral-hover); color: var(--c-text-subtle); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.v-btn.is-active .v-count { background: var(--c-accent); color: var(--c-accent-text); }
.v-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 4px; background: var(--c-neutral); }
.v-seg-btn {
  height: 28px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: var(--c-text-subtle);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.v-seg-btn:hover { color: var(--c-text); background: var(--c-neutral-hover); }
.v-seg-btn.is-active { background: var(--c-surface-raised); color: var(--c-accent); box-shadow: var(--c-card-shadow); }
.v-seg-inner { display: inline-flex; align-items: center; gap: 4px; }

/* formuláře */
.v-input {
  height: 36px; min-width: 0; padding: 0 8px; border: 1px solid var(--c-input-border); border-radius: var(--radius-sm);
  background: var(--c-input-bg); color: var(--c-text); font: inherit;
}
.v-input::placeholder { color: var(--c-text-subtlest); }
.v-input:focus { outline: none; border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.v-input:disabled { background: var(--c-neutral); border-color: transparent; color: var(--c-text-subtlest); }
.v-textarea { display: block; width: 100%; height: auto; min-height: 56px; padding: 8px; resize: vertical; line-height: 20px; }
.v-select { width: 100%; padding-right: 4px; }
.v-pop .v-input, .v-pop .v-select { width: 100%; }
.v-field-label { display: block; margin: 12px 0 4px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--c-text-subtle); }
.v-dp-err { min-height: 0; margin: 4px 0; font-size: 12px; color: var(--c-danger); }
.v-dp-err:empty { margin: 0; }

/* záhlaví zobrazení */
.v-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  min-height: 52px; padding: 10px 12px; border-bottom: 1px solid var(--c-border); flex: none;
}
.v-toolbar-left, .v-toolbar-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.v-toolbar-right { gap: 8px; }
.v-toolbar-title {
  margin: 0 0 0 8px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-toolbar-title::first-letter { text-transform: uppercase; }

/* štítky, termíny, avatary, karta v malém */
.v-label {
  display: inline-block; height: 16px; min-width: 40px; max-width: 100%; padding: 0 8px; border-radius: 4px;
  font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.v-label--compact { height: 8px; padding: 0; }
.v-due {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 16px; color: var(--c-text-subtle); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.v-due--soon { background: var(--c-due-soon); color: var(--c-due-soon-text); }
.v-due--overdue { background: var(--c-due-overdue); color: var(--c-due-overdue-text); }
.v-due--overdue-old { background: var(--c-danger-soft); color: var(--c-danger-text); }
.v-due--done { background: var(--c-due-done); color: var(--c-due-done-text); }
.v-badge { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px; font-size: 12px; color: var(--c-text-subtle); }
.v-badge--ok { padding: 0 4px; border-radius: var(--radius-sm); background: var(--c-due-done); color: var(--c-due-done-text); }
.v-avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--c-avatar-bg); color: var(--c-avatar-text); font-weight: 600; line-height: 1; user-select: none;
}
.v-avatar--bot { background: var(--c-text-subtle); }
.v-done-mark { display: inline-flex; color: var(--c-success); flex: none; margin-top: 2px; }
.v-ok { color: var(--c-success); }
.v-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.v-swatch--line { width: 16px; height: 3px; border-radius: 2px; }

.v-mini {
  display: flex; flex-direction: column; gap: 4px; min-height: 36px; padding: 8px 12px 4px;
  border-radius: var(--radius-card); background: var(--c-card-bg); box-shadow: var(--c-card-shadow); color: var(--c-text);
  font-family: var(--font); font-size: 14px; line-height: 20px; cursor: pointer; text-align: left;
}
.v-mini:hover { background: var(--c-card-hover); }
.v-mini-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.v-mini-name { display: flex; gap: 4px; align-items: flex-start; overflow-wrap: anywhere; padding-bottom: 4px; }
.v-mini-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; flex-wrap: wrap; padding-bottom: 4px; }
.v-mini-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.v-mini-members { display: flex; gap: 2px; margin-left: auto; }

.v-empty { padding: 24px 16px; text-align: center; color: var(--c-text-subtle); }
.v-empty-title { font-weight: 600; color: var(--c-text); }
.v-empty-sub { margin-top: 4px; font-size: 13px; color: var(--c-text-subtle); }

.v-toast {
  position: absolute; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 6px; background: var(--c-text); color: var(--c-surface); box-shadow: var(--c-overlay-shadow);
  transition: opacity .3s;
}
.v-toast.is-out { opacity: 0; }

/* postranní panely (Neplánováno / Neplánované) */
.v-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 4px 12px; }
.v-side-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.v-side-hint { padding: 0 12px 8px; font-size: 12px; line-height: 16px; color: var(--c-text-subtle); }

/* ============================================================== popovery a nabídky */
.v-pop {
  position: fixed; z-index: 9000; display: flex; flex-direction: column; max-height: calc(100vh - 16px); overflow: hidden;
  background: var(--c-surface-overlay); color: var(--c-text); border-radius: 8px; box-shadow: var(--c-overlay-shadow);
  font-family: var(--font); font-size: 14px; line-height: 20px;
}
.v-pop-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 4px; min-height: 48px; padding: 4px 8px; flex: none; }
.v-pop-title { grid-column: 2; text-align: center; font-weight: 600; color: var(--c-text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-pop-title::first-letter { text-transform: uppercase; }
.v-pop-x { grid-column: 3; }
.v-pop-body { padding: 0 12px 12px; overflow: auto; overscroll-behavior: contain; }
.v-menu { display: flex; flex-direction: column; margin: 0 -12px; }
.v-menu-item {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 0; background: transparent;
  color: var(--c-text); font: inherit; text-align: left; cursor: pointer; position: relative;
}
.v-menu-item:hover:not(:disabled) { background: var(--c-neutral); }
.v-menu-item:disabled { color: var(--c-text-subtlest); cursor: default; }
.v-menu-item.is-checked { background: var(--c-accent-subtle); color: var(--c-accent-subtle-text); }
.v-menu-item.is-checked::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c-accent); }
.v-menu-item--danger { color: var(--c-danger); }
.v-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-menu-hint { color: var(--c-text-subtlest); font-size: 12px; }
.v-menu-sep { margin: 6px 12px; border: 0; border-top: 1px solid var(--c-border); }
.v-menu-heading { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--c-text-subtle); }

/* popover Data (předloha 05) */
.v-dp-nav { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; }
.v-dp-title { flex: 1; text-align: center; font-weight: 600; }
.v-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.v-dp-wd { height: 32px; line-height: 32px; text-align: center; font-size: 12px; font-weight: 600; color: var(--c-text-subtle); }
.v-dp-day {
  height: 32px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--c-text);
  font: inherit; cursor: pointer; font-variant-numeric: tabular-nums;
}
.v-dp-day:hover { background: var(--c-neutral-hover); }
.v-dp-day.is-other { color: var(--c-text-subtlest); }
.v-dp-day.is-today { color: var(--c-accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--c-accent); }
.v-dp-day.is-range { background: var(--c-neutral); border-radius: 0; }
.v-dp-day.is-selected { background: var(--c-accent-subtle); color: var(--c-accent-subtle-text); font-weight: 600; }
.v-dp-row { display: flex; align-items: center; gap: 8px; }
.v-dp-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0 4px 0 0; accent-color: var(--c-accent); flex: none; }
.v-pop .v-dp-date { width: 112px; flex: none; }
.v-pop .v-dp-time { width: 76px; flex: none; }
.v-dp > .v-btn--primary { margin-top: 16px; }
.v-addcard-hint { margin-bottom: 8px; font-size: 12px; color: var(--c-text-subtle); }
.v-addcard-hint::first-letter { text-transform: uppercase; }
.v-addcard-actions { display: flex; justify-content: flex-start; margin-top: 12px; }

/* přetahování */
.v-draggable { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.v-dragging { opacity: .35; }
.v-ghost {
  position: fixed !important; z-index: 10000; margin: 0 !important; pointer-events: none !important;
  box-shadow: var(--c-overlay-shadow) !important; opacity: .96; transform-origin: 50% 50%; will-change: transform;
}
body.v-is-dragging, body.v-is-dragging * { cursor: grabbing !important; }

/* ============================================================== Kalendář */
.v-cal-body { position: relative; flex: 1; min-height: 0; display: flex; }
.v-cal-scroll { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.v-cal-head {
  position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: none;
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
}
.v-cal-wd { padding: 6px 8px; text-align: center; font-size: 12px; font-weight: 600; line-height: 20px; color: var(--c-text-subtle); }
.v-cal-wd--week { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px; }
.v-cal-wd-num { font-size: 18px; font-weight: 600; color: var(--c-text); }
.v-cal-wd--week.is-today .v-cal-wd-num { color: var(--c-accent-text); background: var(--c-accent); border-radius: 14px; min-width: 28px; padding: 2px 6px; text-align: center; }
.v-cal-month { flex: 1 0 auto; display: flex; flex-direction: column; }
.v-cal-week { position: relative; flex: 1 0 auto; min-height: var(--v-cal-row, 120px); border-bottom: 1px solid var(--c-border); }
.v-cal-week:last-child { border-bottom: 0; }
.v-cal-week--tall { min-height: 100%; }
.v-cal-week-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.v-cal-cell { border-right: 1px solid var(--c-border); transition: background-color .08s; }
.v-cal-cell:last-child { border-right: 0; }
.v-cal-cell.is-weekend { background: var(--c-weekend); }
.v-cal-cell.is-other { background: var(--c-surface-sunken); }
.v-cal-cell.is-today { background: var(--c-accent-subtle); }
.v-cal-cell.is-drop { background: var(--c-drop-target); box-shadow: inset 0 0 0 2px var(--c-accent); }
.v-cal-week-fg {
  position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 28px; grid-auto-rows: 22px; row-gap: 2px;
  padding-bottom: 6px; pointer-events: none;
}
.v-cal-week--tall .v-cal-week-fg { grid-auto-rows: min-content; row-gap: 6px; padding-top: 4px; }
.v-cal-daynum-wrap { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 4px 4px 0 6px; }
.v-cal-week--tall .v-cal-daynum-wrap { justify-content: flex-end; height: 28px; }
.v-cal-daynum {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; text-align: center; line-height: 24px;
  font-size: 12px; font-weight: 600; color: var(--c-text); font-variant-numeric: tabular-nums;
}
.v-cal-daynum.is-other { color: var(--c-text-subtlest); font-weight: 400; }
.v-cal-daynum.is-today { background: var(--c-accent); color: var(--c-accent-text); }
.v-cal-add {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--c-text-subtle); cursor: pointer; opacity: 0; pointer-events: auto; transition: opacity .1s;
}
.v-cal-daynum-wrap.is-hover .v-cal-add, .v-cal-add:focus-visible { opacity: 1; }
.v-cal-add:hover { background: var(--c-neutral-hover); color: var(--c-text); }
.v-cal.is-dragging .v-cal-add { opacity: 0 !important; }
@media (pointer: coarse) { .v-cal-add { opacity: .7; } }
.v-cal-chip {
  display: flex; align-items: center; gap: 4px; height: 22px; min-width: 0; margin: 0 4px; padding: 0 6px;
  border-radius: 4px; background: var(--c-card-bg); color: var(--c-text); box-shadow: var(--c-card-shadow);
  font-family: var(--font); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; overflow: hidden;
  cursor: pointer; pointer-events: auto;
}
.v-cal-chip:hover { filter: brightness(.96); }
.v-cal-chip.cont-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.v-cal-chip.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.v-cal-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v-cal-chip-done, .v-cal-chip-time { display: inline-flex; flex: none; }
.v-cal-chip-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.v-cal-chip.is-done .v-cal-chip-name { opacity: .85; }
.v-cal-chip--tall { height: auto; min-height: 28px; padding: 4px 6px; align-items: flex-start; white-space: normal; }
.v-cal-chip--tall .v-cal-chip-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.v-cal-chip--list { height: auto; min-height: 28px; margin: 0 0 6px; padding: 4px 8px; white-space: normal; }
.v-cal-poplist { padding-top: 2px; }
.v-cal-more {
  height: 22px; margin: 0 4px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; text-align: left;
  color: var(--c-text-subtle); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; pointer-events: auto;
}
.v-cal-more:hover { background: var(--c-neutral-hover); color: var(--c-text); }
.v-cal-side { display: flex; flex-direction: column; flex: none; width: 288px; min-height: 0; background: var(--c-surface-sunken); border-left: 1px solid var(--c-border); }
.v-cal-side-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 12px; overflow: auto; overscroll-behavior: contain; }
.v-cal-side-card { flex: none; }
/* úzký kontejner */
.v-cal-scroll--compact { display: block; }
.v-cal-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 4px 8px 8px; }
.v-cal-mgrid .v-cal-wd { padding: 4px 0; }
.v-cal-mcell {
  display: flex; flex-direction: column; align-items: center; gap: 3px; height: 48px; padding: 4px 0 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--c-text); font: inherit; cursor: pointer; min-width: 0;
}
.v-cal-mcell.is-other { color: var(--c-text-subtlest); }
.v-cal-mnum { width: 28px; height: 28px; border-radius: 14px; line-height: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.v-cal-mcell.is-today .v-cal-mnum { color: var(--c-accent); font-weight: 700; }
.v-cal-mcell.is-selected .v-cal-mnum { background: var(--c-accent); color: var(--c-accent-text); font-weight: 600; }
.v-cal-mcell.is-drop { background: var(--c-drop-target); box-shadow: inset 0 0 0 2px var(--c-accent); }
.v-cal-mdots { display: flex; gap: 3px; height: 6px; }
.v-cal-mdot { width: 6px; height: 6px; border-radius: 3px; }
.v-cal-agday { padding: 10px 12px 4px; border-top: 1px solid var(--c-border); }
.v-cal-agday.is-drop { background: var(--c-drop-target); }
.v-cal-agday.is-today .v-cal-aghead { color: var(--c-accent); }
.v-cal-aghead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin-bottom: 6px; font-weight: 600; }
.v-cal-aghead > span::first-letter { text-transform: uppercase; }
.v-cal-agitem {
  display: flex; gap: 10px; margin-bottom: 8px; padding: 8px 10px 8px 8px; border-radius: var(--radius-card);
  background: var(--c-card-bg); box-shadow: var(--c-card-shadow); color: var(--c-text); cursor: pointer; font-family: var(--font); font-size: 14px; line-height: 20px;
}
.v-cal-agbar { width: 4px; flex: none; border-radius: 2px; }
.v-cal-agbody { flex: 1; min-width: 0; }
.v-cal-agname { display: flex; gap: 4px; align-items: flex-start; font-weight: 500; overflow-wrap: anywhere; }
.v-cal-agmeta { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--c-text-subtle); min-width: 0; }
.v-cal-aglist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-cal-agempty { padding: 0 0 8px; color: var(--c-text-subtlest); }
.v-cal.is-compact .v-cal-side { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: min(320px, 92%); box-shadow: var(--c-overlay-shadow); }

/* ============================================================== Tabulka */
.v-tbl-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.v-tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.v-tbl th {
  position: sticky; top: 0; z-index: 2; height: 40px; padding: 0; text-align: left; background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-strong);
}
.v-tbl-th {
  display: flex; align-items: center; gap: 4px; width: 100%; height: 40px; padding: 0 12px; border: 0; background: transparent;
  color: var(--c-text-subtle); font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap;
}
.v-tbl-th span { overflow: hidden; text-overflow: ellipsis; }
.v-tbl-th:hover { background: var(--c-neutral); color: var(--c-text); }
.v-tbl-sorticon { opacity: 0; }
.v-tbl-th:hover .v-tbl-sorticon, .is-sorted .v-tbl-sorticon { opacity: 1; }
.v-tbl th.is-sorted .v-tbl-th { color: var(--c-text); }
.v-tbl td { height: 48px; padding: 6px 12px; border-bottom: 1px solid var(--c-border); vertical-align: middle; overflow: hidden; }
.v-tbl tbody tr:hover td { background: var(--c-surface-sunken); }
.v-tbl th:first-child, .v-tbl td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c-surface); }
.v-tbl th:first-child { z-index: 3; }
.v-tbl tbody tr:hover td:first-child { background: var(--c-surface-sunken); }
.v-tbl-name {
  display: flex; align-items: flex-start; gap: 6px; width: 100%; padding: 2px 0; border: 0; background: transparent; color: var(--c-text);
  font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.v-tbl-name:hover .v-tbl-name-text { text-decoration: underline; }
.v-tbl-name-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.v-tbl-list {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 6px 0 10px; border: 0;
  border-radius: var(--radius-sm); background: var(--c-neutral); color: var(--c-text); font: inherit; cursor: pointer;
}
.v-tbl-list:hover { background: var(--c-neutral-hover); }
.v-tbl-list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-tbl-list-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--v-list-color); flex: none; }
.v-tbl-labels { display: flex; flex-wrap: wrap; gap: 4px; max-height: 40px; overflow: hidden; }
.v-tbl-members { display: flex; gap: 4px; }
.v-tbl-due { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; cursor: pointer; }
.v-tbl-due:hover { background: var(--c-neutral-hover); }
.v-tbl-due-add { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-subtlest); font-size: 13px; opacity: 0; }
.v-tbl tr:hover .v-tbl-due-add, .v-tbl-due:focus-visible .v-tbl-due-add { opacity: 1; }
@media (pointer: coarse) { .v-tbl-due-add { opacity: 1; } }
.v-num { text-align: right; font-variant-numeric: tabular-nums; }
.v-tbl-addrow td { position: static; height: auto; padding: 4px 8px; border-bottom: 0; }
.v-tbl-addrow:hover td { background: transparent !important; }
.v-tbl-addbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--c-text-subtle); font: inherit; font-weight: 500; cursor: pointer;
}
.v-tbl-addbtn:hover { background: var(--c-neutral-hover); color: var(--c-text); }
.v-tbl-addform { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px; position: sticky; left: 0; max-width: 100vw; }
.v-tbl-addinput { flex: 1 1 240px; max-width: 420px; }
.v-tbl-search { position: relative; }
.v-tbl-search-icon { position: absolute; left: 8px; top: 50%; margin-top: -8px; color: var(--c-text-subtle); pointer-events: none; }
.v-tbl-searchinput { width: 220px; height: 32px; padding-left: 30px; }
@media (max-width: 640px) { .v-tbl-searchinput { width: 160px; } }
.v-tbl-addsel { width: 220px; flex: 0 1 220px; }

/* ============================================================== Časová osa */
.v-tl-body { position: relative; flex: 1; min-height: 0; display: flex; }
.v-tl-scroll { position: relative; flex: 1; min-width: 0; overflow: auto; overscroll-behavior: contain; }
.v-tl-inner { position: relative; min-height: 100%; }
.v-tl-header { position: sticky; top: 0; z-index: 5; display: flex; background: var(--c-surface); border-bottom: 1px solid var(--c-border-strong); }
.v-tl-corner {
  position: sticky; left: 0; z-index: 6; flex: none; width: var(--v-tl-left); display: flex; align-items: flex-end; padding: 0 12px 8px;
  background: var(--c-surface); border-right: 1px solid var(--c-border); font-size: 12px; font-weight: 600; color: var(--c-text-subtle);
}
.v-tl-scale { position: relative; flex: none; height: 100%; }
.v-tl-scalerow { position: absolute; left: 0; right: 0; height: 28px; }
.v-tl-scalerow--top { top: 0; }
.v-tl-scalerow--bottom { top: 28px; }
.v-tl-scalecell {
  position: absolute; top: 0; height: 28px; padding: 0 6px; border-left: 1px solid var(--c-border); overflow: hidden;
  font-size: 12px; line-height: 28px; white-space: nowrap; color: var(--c-text-subtle);
}
.v-tl-scalerow--top .v-tl-scalecell { font-weight: 600; color: var(--c-text); }
.v-tl-scalerow--top .v-tl-scalelabel { position: sticky; left: calc(var(--v-tl-left) + 6px); }
.v-tl-scalerow--top .v-tl-scalecell::first-letter, .v-tl-scalelabel::first-letter { text-transform: uppercase; }
.v-tl-scalerow--bottom .v-tl-scalecell { text-align: center; padding: 0 2px; font-variant-numeric: tabular-nums; }
.v-tl-scalecell.is-weekend { color: var(--c-text-subtlest); }
.v-tl-scalecell.is-today { color: var(--c-accent-text); }
.v-tl-scalecell.is-today .v-tl-scalelabel { display: inline-block; min-width: 22px; padding: 0 4px; line-height: 20px; border-radius: 10px; background: var(--c-accent); }
.v-tl-todaymark { position: absolute; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 4px; background: var(--c-today-line); }
.v-tl-bg { position: absolute; top: 56px; z-index: 0; pointer-events: none; background-repeat: repeat-x; }
.v-tl-monthline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--c-border-strong); }
.v-tl-today { position: absolute; top: 56px; z-index: 0; width: 2px; margin-left: -1px; background: var(--c-today-line); pointer-events: none; }
.v-tl-rows { position: relative; z-index: 1; }
.v-tl-group { display: flex; border-bottom: 1px solid var(--c-border); }
.v-tl-group.is-drop .v-tl-track { background: var(--c-drop-target); }
.v-tl-gside {
  position: sticky; left: 0; z-index: 4; flex: none; width: var(--v-tl-left); padding: 6px 4px 6px 6px;
  background: var(--c-surface); border-right: 1px solid var(--c-border);
}
.v-tl-gbtn {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; padding: 4px 6px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--c-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.v-tl-gbtn:hover { background: var(--c-neutral-hover); }
.v-tl-gname { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 18px; }
.v-tl-gcount { flex: none; color: var(--c-text-subtle); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.v-tl-gswatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.v-tl-track { position: relative; flex: none; }
.v-tl-collapsed { position: sticky; left: calc(var(--v-tl-left) + 12px); display: inline-block; padding: 10px 12px; font-size: 12px; color: var(--c-text-subtle); }
.v-tl-bar {
  position: absolute; display: flex; align-items: center; height: 28px; min-width: 6px; border-radius: 4px;
  background: var(--c-card-bg); color: var(--c-text); box-shadow: var(--c-card-shadow); cursor: grab;
  font-family: var(--font); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; z-index: 1;
}
.v-tl-bar:hover { filter: brightness(.96); z-index: 2; }
.v-tl-bar.is-active { z-index: 5; box-shadow: var(--c-overlay-shadow); filter: none; }
.v-tl-bar-label { position: sticky; left: calc(var(--v-tl-left) + 2px); display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 0 10px; overflow: hidden; pointer-events: none; }
.v-tl-bar-text { overflow: hidden; text-overflow: ellipsis; }
.v-tl-bar.is-narrow .v-tl-bar-label { position: absolute; left: calc(100% + 6px); max-width: none; padding: 0; overflow: visible; color: var(--c-text); max-width: 240px; }
.v-tl-bar.is-narrow .v-tl-bar-text { text-overflow: ellipsis; }
.v-tl-handle { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
.v-tl-handle--l { left: 0; border-radius: 4px 0 0 4px; }
.v-tl-handle--r { right: 0; border-radius: 0 4px 4px 0; }
.v-tl-bar:hover .v-tl-handle::after { content: ''; position: absolute; top: 8px; bottom: 8px; left: 3px; width: 2px; border-radius: 1px; background: currentColor; opacity: .5; }
.v-tl-bar.is-narrow .v-tl-handle { width: 4px; }
.v-tl-bar.is-narrow:hover .v-tl-handle::after { display: none; }
.v-tl.is-drag-start, .v-tl.is-drag-end { cursor: ew-resize; }
.v-tl-dropmark { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: var(--c-drop-target); box-shadow: inset 0 0 0 2px var(--c-accent); pointer-events: none; }
.v-tl-dragtip {
  position: absolute; z-index: 20; padding: 4px 8px; border-radius: 4px; background: var(--c-text); color: var(--c-surface);
  font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums;
}
.v-tl-side { display: flex; flex-direction: column; flex: none; width: 288px; min-height: 0; background: var(--c-surface-sunken); border-left: 1px solid var(--c-border); }
.v-tl-side-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 12px; overflow: auto; overscroll-behavior: contain; }
.v-tl-side-list > .v-mini { flex: none; }
.v-tl.is-compact .v-tl-side { position: absolute; top: 0; right: 0; bottom: 0; z-index: 8; width: min(320px, 92%); box-shadow: var(--c-overlay-shadow); }
.v-tl.is-compact .v-tl-gside { padding: 4px 2px 4px 4px; }
.v-tl.is-compact .v-tl-gbtn { gap: 4px; padding: 4px; font-size: 13px; }
.v-tl.is-compact .v-tl-gcount { display: none; }

/* ============================================================== Souhrnná tabulka */
.v-dash { padding: 12px; }
.v-dash-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; margin: -4px; padding: 4px; }
.v-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start; }
.v-tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; height: 380px; padding: 12px 12px 16px;
  border-radius: var(--radius-list); background: var(--c-surface); color: var(--c-text); box-shadow: var(--c-card-shadow);
}
.v-tile-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; padding-left: 4px; flex: none; }
.v-tile-titles { flex: 1; min-width: 0; }
.v-tile-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-tile-sub { font-size: 12px; line-height: 16px; color: var(--c-text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-tile-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.v-tile-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 380px;
  border: 2px dashed var(--c-border-strong); border-radius: var(--radius-list); background: var(--c-surface); opacity: .92;
  color: var(--c-text-subtle); font: inherit; font-weight: 600; cursor: pointer;
}
.v-tile-add:hover { opacity: 1; color: var(--c-text); border-color: var(--c-accent); }
.v-tile-add-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 24px; background: var(--c-neutral); }
.v-chart { display: block; overflow: visible; font-family: var(--font); }
.v-chart-grid { stroke: var(--c-chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.v-chart-axis { stroke: var(--c-border-strong); stroke-width: 1; shape-rendering: crispEdges; }
.v-chart-tick { fill: var(--c-text-subtlest); font-size: 11px; font-variant-numeric: tabular-nums; }
.v-chart-xlabel { fill: var(--c-text-subtle); font-size: 12px; }
.v-chart-value { fill: var(--c-text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-chart-hit { fill: transparent; cursor: pointer; outline: none; }
.v-chart-bar path { transition: opacity .1s; }
.v-chart-bar.is-hover path, .v-chart-hit:focus-visible ~ path { opacity: .8; }
.v-chart-slice { stroke: var(--c-surface); stroke-width: 2; cursor: pointer; transition: opacity .1s; }
.v-chart-slice.is-hover { opacity: .8; }
.v-chart-empty { fill: var(--c-neutral); }
.v-chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.v-chart-dot { stroke: var(--c-surface); stroke-width: 2; }
.v-chart-dot--sm { stroke-width: 1.5; }
.v-chart-today { stroke: var(--c-today-line); stroke-width: 1; opacity: .7; }
.v-chart-cross { stroke: var(--c-border-strong); stroke-width: 1; opacity: 0; }
.v-chart-cross.is-on { opacity: 1; }
.v-chart-tip {
  position: absolute; z-index: 10; min-width: 120px; max-width: 240px; padding: 8px 10px; border-radius: 6px; pointer-events: none;
  background: var(--c-surface-overlay); color: var(--c-text); box-shadow: var(--c-overlay-shadow); font-size: 12px; line-height: 18px;
  opacity: 0; transition: opacity .08s;
}
.v-chart-tip.is-on { opacity: 1; }
.v-chart-tip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-chart-tip-strong { font-weight: 600; }
.v-pie-wrap { flex: 1; min-height: 0; display: flex; align-items: center; gap: 16px; }
.v-pie-wrap.is-narrow { flex-direction: column; align-items: stretch; }
.v-pie-svg { flex: none; display: flex; justify-content: center; }
.v-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; padding-left: 28px; font-size: 12px; color: var(--c-text-subtle); }
.v-legend--side { flex: 1; min-width: 0; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0; max-height: 100%; overflow: auto; }
.v-legend-item {
  display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 6px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--c-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.v-legend-item:hover { background: var(--c-neutral); }
.v-legend-item--static { min-height: 20px; padding: 0; cursor: default; font-size: 12px; color: var(--c-text-subtle); }
.v-legend-item--static:hover { background: transparent; }
.v-legend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-legend-val { flex: none; color: var(--c-text-subtle); font-variant-numeric: tabular-nums; }
.v-dash-drill { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.v-dash-drill > .v-mini { flex: none; }
.v-tileform-chart .v-seg { display: flex; }
.v-tileform-chart .v-seg-btn { flex: 1; padding: 0 6px; }
.v-tileform-submit { margin-top: 16px; }

/* ============================================================== Mapa */
.v-map-panel { isolation: isolate; }
.v-map-canvas { position: absolute; inset: 0; z-index: 0; background: var(--c-surface-sunken); }
.v-map-tools { position: absolute; top: 12px; left: 12px; z-index: 500; width: min(360px, calc(100% - 24px)); }
.v-map-searchbox { position: relative; }
.v-map-search-icon { position: absolute; left: 10px; top: 10px; color: var(--c-text-subtle); pointer-events: none; }
.v-map-search { width: 100%; height: 36px; padding-left: 32px; box-shadow: var(--c-overlay-shadow); border-color: transparent; }
.v-map-results {
  margin-top: 6px; max-height: 50vh; overflow: auto; border-radius: 8px; background: var(--c-surface-overlay);
  box-shadow: var(--c-overlay-shadow); padding: 4px 0;
}
.v-map-result {
  display: flex; flex-direction: column; width: 100%; padding: 8px 12px; border: 0; background: transparent; color: var(--c-text);
  font: inherit; text-align: left; cursor: pointer;
}
.v-map-result:hover { background: var(--c-neutral); }
.v-map-result.is-muted { color: var(--c-text-subtle); cursor: default; }
.v-map-result-name { font-weight: 600; }
.v-map-result-addr { font-size: 12px; line-height: 16px; color: var(--c-text-subtle); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v-map-right { position: absolute; top: 12px; right: 12px; z-index: 500; }
.v-map-count { background: var(--c-surface-overlay); box-shadow: var(--c-overlay-shadow); height: 36px; }
.v-map-count:hover { background: var(--c-surface-overlay); filter: brightness(.97); }
.v-map-banner {
  position: absolute; left: 50%; bottom: 20px; z-index: 600; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 24px); padding: 4px 4px 4px 12px; border-radius: 8px; background: var(--c-accent); color: var(--c-accent-text);
  box-shadow: var(--c-overlay-shadow); font-weight: 500;
}
.v-map-banner[hidden] { display: none; }
.v-map-banner .v-icon-btn { color: inherit; }
.v-map.is-placing .v-map-canvas { cursor: crosshair; }
.v-map-loading { position: absolute; inset: 0; z-index: 400; display: grid; place-items: center; color: var(--c-text-subtle); }
.v-map-loading.is-error { color: var(--c-danger); }
.v-map-hint { position: absolute; left: 50%; top: 50%; z-index: 450; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px)); border-radius: 12px; background: var(--c-surface-overlay); box-shadow: var(--c-overlay-shadow); pointer-events: none; }
.v-map-divicon { background: transparent; border: 0; }
.v-map-pin-wrap { width: 30px; height: 40px; cursor: pointer; transition: transform .1s; transform-origin: 50% 100%; }
.v-map-pin-wrap:hover { transform: scale(1.12); }
.v-map-pin { display: block; }
.v-map-pin-body { stroke: var(--c-map-pin-stroke); stroke-width: 1.5; }
.v-map-pin-dot { fill: var(--c-map-pin-stroke); }
.v-map-pin-wrap.is-temp .v-map-pin-dot { fill: var(--c-surface); }
.v-map .leaflet-container { font-family: var(--font); font-size: 14px; background: var(--c-surface-sunken); }
.v-map .leaflet-popup-content-wrapper { border-radius: 8px; background: var(--c-surface-overlay); color: var(--c-text); box-shadow: var(--c-overlay-shadow); }
.v-map .leaflet-popup-tip { background: var(--c-surface-overlay); box-shadow: none; }
.v-map .leaflet-popup-content { margin: 12px; line-height: 20px; }
.v-map .leaflet-container a.leaflet-popup-close-button { color: var(--c-text-subtle); top: 4px; right: 4px; }
.v-map .leaflet-bar a { background: var(--c-surface-overlay); color: var(--c-text); border-bottom-color: var(--c-border); }
.v-map .leaflet-bar a:hover { background: var(--c-neutral-hover); }
.v-map .leaflet-bar { border: 0; box-shadow: var(--c-overlay-shadow); }
.v-map .leaflet-control-attribution { background: var(--c-surface-overlay); color: var(--c-text-subtle); font-size: 11px; opacity: .9; }
.v-map .leaflet-control-attribution a { color: var(--c-link); }
[data-theme="dark"] .v-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.88) saturate(.55); }
.v-map-pop { display: flex; flex-direction: column; gap: 8px; }
.v-map-pop .v-mini { box-shadow: none; padding: 0; background: transparent; }
.v-map-pop .v-mini:hover { background: transparent; }
.v-map-pop .v-mini-name { font-weight: 600; }
.v-map-pop-loc { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 16px; color: var(--c-text-subtle); }
.v-map-pop-loc .v-icon { margin-top: 1px; }
.v-map-pop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v-map-place-title { font-weight: 600; padding-right: 16px; }
.v-map-place-addr { font-size: 12px; line-height: 16px; color: var(--c-text-subtle); margin-bottom: 4px; }
.v-map-place .v-input { width: 100%; margin-top: 6px; }
.v-map-place .v-field-label { margin-top: 10px; }

/* ============================================================== Plánovač */
.v-pl-panel { background: var(--c-surface); }
.v-pl-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px 16px; flex: none; }
.v-pl-month { padding: 0 8px; gap: 8px; font-size: 16px; font-weight: 500; border: 1px solid transparent; }
.v-pl-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.v-pl-navbtn { border: 1px solid var(--c-border); width: 32px; }
.v-pl-today { border: 1px solid var(--c-border); }
.v-pl-mode { padding: 0 6px; border: 1px solid var(--c-border); }
.v-pl-more { border: 1px solid var(--c-border); }
.v-pl-spacer { flex: 1; }
.v-pl-body { flex: 1; min-height: 0; display: flex; }
.v-pl-left { display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1; }
.v-pl-body.is-wide .v-pl-left { flex: none; width: 360px; border-right: 1px solid var(--c-border); }
/* úvodní rámeček (předloha 08): 176 px vysoký, nadpis 20 px, text, tlačítko 32 px; bez křížku jako v Trellu */
.v-pl-intro {
  position: relative; margin: 6px 12px 12px; padding: 22px 16px; border-radius: 8px; text-align: center; flex: none;
  background: var(--c-planner-intro); color: var(--c-planner-intro-text);
}
.v-pl-intro-title { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 16px; }
.v-pl-intro-text { font-size: 14px; line-height: 20px; margin: 0 8px 16px; }
.v-pl-intro-btn { padding: 0 12px; gap: 8px; font-weight: 500; }
.v-pl-intro-btn:disabled { opacity: 1; cursor: default; }
.v-pl-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 12px 16px; }
.v-pl-day { padding: 8px 0 16px; }
.v-pl-dayhead { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--c-text-subtle); }
.v-pl-dayhead b { font-weight: 600; color: var(--c-text); margin-right: 2px; }
.v-pl-empty { color: var(--c-text-subtle); font-size: 14px; }
.v-pl-group {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; margin-bottom: 8px; padding: 0 8px; border: 0;
  border-radius: var(--radius); background: var(--c-neutral); color: var(--c-text); font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.v-pl-group:hover { background: var(--c-neutral-hover); }
.v-pl-group-text { flex: 1; }
.v-pl-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.v-pl-card {
  display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-pl-card-border);
  border-radius: var(--radius-card); background: var(--c-pl-card-bg); color: var(--c-text); cursor: pointer;
  font-family: var(--font); font-size: 14px; line-height: 20px;
}
.v-pl-card:hover { background: var(--c-card-hover); }
.v-pl-card.is-done .v-pl-card-name { color: var(--c-text-subtle); }
.v-pl-check { display: grid; place-items: center; width: 16px; height: 16px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-text-subtle); cursor: pointer; position: relative; }
.v-pl-check::before { content: ""; position: absolute; inset: -8px; }
.v-pl-check:hover { color: var(--c-text); background: var(--c-neutral-hover); }
.v-pl-card.is-done .v-pl-check { color: var(--c-success); }
.v-pl-card-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-pl-card-dot { display: none; }
.v-pl-blockrow {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; margin-bottom: 8px; padding: 4px 10px; border: 0;
  border-left: 3px solid var(--c-block-border); border-radius: var(--radius); background: var(--c-block-bg); color: var(--c-block-text);
  font: inherit; text-align: left; cursor: pointer;
}
.v-pl-blockrow-time { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-pl-blockrow-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-pl-grid { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.v-pl-gridhead, .v-pl-allday { display: grid; margin-left: 52px; margin-right: 8px; flex: none; }
.v-pl-gridhead { border-bottom: 1px solid var(--c-border); }
.v-pl-colhead { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 6px 4px; min-width: 0; color: var(--c-text-subtle); font-size: 12px; font-weight: 600; }
.v-pl-colhead-num { font-size: 16px; color: var(--c-text); font-variant-numeric: tabular-nums; }
.v-pl-colhead.is-today .v-pl-colhead-num { min-width: 26px; padding: 1px 6px; border-radius: 13px; background: var(--c-accent); color: var(--c-accent-text); text-align: center; }
.v-pl-colhead-long { font-size: 14px; color: var(--c-text); }
.v-pl-colhead-long::first-letter { text-transform: uppercase; }
.v-pl-colhead.is-today .v-pl-colhead-long { color: var(--c-accent); }
.v-pl-allday { border-bottom: 1px solid var(--c-border-strong); max-height: 96px; overflow: auto; }
.v-pl-allday-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 8px; padding: 4px 2px; border-left: 1px solid var(--c-border); }
.v-pl-chip {
  display: flex; align-items: center; height: 22px; min-width: 0; padding: 0 6px 0 4px; border-radius: 4px;
  border-left: 3px solid var(--v-chip-accent, var(--c-border-strong)); background: var(--c-neutral); color: var(--c-text);
  font-family: var(--font); font-size: 12px; font-weight: 500; line-height: 16px; cursor: grab;
}
.v-pl-chip:hover { background: var(--c-neutral-hover); }
.v-pl-chip.is-done { color: var(--c-text-subtle); }
.v-pl-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-pl-gridscroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.v-pl-hours { position: relative; display: flex; margin: 8px 8px 12px 0; }
.v-pl-gutter { position: relative; flex: none; width: 52px; }
.v-pl-hourlabel { position: absolute; right: 8px; transform: translateY(-8px); font-size: 11px; line-height: 16px; color: var(--c-text-subtlest); font-variant-numeric: tabular-nums; }
.v-pl-cols { flex: 1; display: grid; min-width: 0; }
.v-pl-col {
  position: relative; min-width: 0; border-left: 1px solid var(--c-border); touch-action: pan-y;
  background-image: linear-gradient(var(--c-border) 0 1px, transparent 1px), linear-gradient(var(--c-weekend) 0 1px, transparent 1px);
  background-size: 100% var(--v-hour), 100% calc(var(--v-hour) / 2);
}
.v-pl-col.is-weekend { background-color: var(--c-weekend); }
.v-pl-grid.is-week .v-pl-col.is-today { background-color: var(--c-accent-subtle); }
.v-pl-block {
  position: absolute; z-index: 2; display: flex; flex-direction: column; overflow: hidden; padding: 2px 6px; border-radius: 4px;
  border-left: 3px solid var(--v-block-accent, var(--c-block-border)); background: var(--c-block-bg); color: var(--c-block-text);
  box-shadow: 0 0 0 1px var(--c-surface); font-size: 12px; line-height: 16px; cursor: grab;
}
.v-pl-block:hover { filter: brightness(.97); }
.v-pl-block.is-active { z-index: 6; box-shadow: var(--c-overlay-shadow); }
.v-pl-block.is-pending { opacity: .7; }
.v-pl-block-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-pl-block-time { font-variant-numeric: tabular-nums; opacity: .85; }
.v-pl-block.is-short { flex-direction: row; gap: 6px; align-items: center; }
.v-pl-block.is-short .v-pl-block-time { order: -1; flex: none; }
.v-pl-block-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.v-pl-block:hover .v-pl-block-resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 1px; background: currentColor; opacity: .5; }
.v-pl-preview {
  position: absolute; left: 2px; right: 2px; z-index: 4; padding: 2px 6px; border-radius: 4px; pointer-events: none;
  background: var(--c-drop-target); box-shadow: inset 0 0 0 2px var(--c-accent); color: var(--c-accent-subtle-text);
  font-size: 12px; font-weight: 600; line-height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.v-pl-now { position: absolute; left: 0; right: 0; z-index: 3; height: 2px; background: var(--c-now-line); pointer-events: none; }
.v-pl-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 5px; background: var(--c-now-line); }
.v-pl-form-day { margin-bottom: 8px; color: var(--c-text-subtle); font-size: 13px; }
.v-pl-form-day::first-letter { text-transform: uppercase; }
.v-pl-form-times { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0; }
.v-pl-form-times .v-field-label { margin: 0; }
.v-pl-form .v-btn--primary { margin-top: 4px; }
.v-pl-grid.is-week .v-pl-block { padding: 2px 4px; }

/* ============================================================== dotyk a mobil */
@media (pointer: coarse) {
  .v-btn, .v-icon-btn, .v-seg-btn, .v-tbl-list, .v-tbl-due, .v-tbl-addbtn, .v-menu-item, .v-legend-item, .v-tl-gbtn, .v-pl-group, .v-cal-more { min-height: 44px; }
  .v-icon-btn { min-width: 44px; }
  .v-dp-day { height: 40px; }
  .v-input { height: 44px; }
}
@media (max-width: 640px) {
  .v-root { padding: 8px; }
  .v-dash { padding: 8px; }
  .v-toolbar { padding: 6px 8px; gap: 4px; min-height: 0; }
  .v-toolbar-title { font-size: 16px; margin-left: 4px; }
  .v-toolbar-right { gap: 4px; margin-left: auto; }
  .v-tile { height: 340px; }
  .v-tile-add { height: 120px; flex-direction: row; }
  .v-pl-head { padding: 8px; gap: 4px; }
  .v-pl-nav { gap: 4px; }
  .v-map-tools { width: calc(100% - 24px); }
  .v-map-right { top: 60px; }
}
