/* Světlý vzhled (záměrně bez tmavého režimu). */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #17202b;
  --muted: #667085;
  --line: #e3e7ed;
  --line-strong: #cfd5de;
  --accent: #4b4fe0;
  --accent-soft: #eeeefd;
  --ok: #18794e;
  --ok-soft: #e7f6ee;
  --warn: #8a5a00;
  --warn-soft: #fff4d9;
  --bad: #c4202e;
  --bad-soft: #fdecee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: .4rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
p { margin: .3rem 0 .7rem; }

/* ---------------------------------------------------------------- rozvržení */
.topnav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; padding: .75rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--line); }
.topnav a { color: var(--text); font-weight: 500; }
.topnav .brand { font-weight: 800; color: var(--text); margin-right: .5rem; letter-spacing: -.01em; }
.topnav .brand span, .brand-title span { color: var(--accent); }
.brand-title { font-weight: 800; letter-spacing: -.02em; text-align: center; }
.topnav .brand { display: inline-flex; align-items: center; gap: .45rem; }
.topnav .brand img { border-radius: 7px; }
.brand-logo { display: block; margin: 0 auto .5rem; border-radius: 18px; }
.topnav .logout { margin-left: auto; }
.topnav .logout button { color: var(--muted); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.25rem; }
.wide { max-width: 1600px; margin: 0 auto; padding: 1.25rem; }
.narrow { max-width: 560px; margin: 0 auto; padding: 1.25rem; }
.narrow-wide { max-width: 860px; margin: 0 auto; padding: 1.25rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.grid2 > .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }
.center { text-align: center; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.lead { font-size: 1.05rem; }
.mono { font-family: ui-monospace, SFMono-Regular, monospace; font-size: .85rem; }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.crumbs { margin: 0 0 .2rem; font-size: .9rem; }
.error { color: var(--bad); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.alert { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: .55rem .75rem; margin: .5rem 0 0; font-weight: 600; }

/* ---------------------------------------------------------------- formuláře */
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: .5rem .65rem; min-height: 42px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.row > input, .row > select, .row > .field, .row > .voice-wrap { width: auto; flex: 1 1 160px; }
textarea { resize: vertical; }
.num-input { width: 4.5rem !important; min-height: 32px !important; padding: .2rem .4rem !important; }

button, .btn { background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: .5rem .9rem; cursor: pointer; display: inline-block; color: var(--text); font-weight: 500; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .btn.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: .45; cursor: default; }
button.big, .btn.big, .big-btn { font-size: 1.05rem; padding: .8rem 1.2rem; }
button.link { background: none; border: none; padding: 0 .2rem; color: var(--accent); font-weight: 400; }
button.danger, .danger { color: var(--bad); }
.ok-btn { border-color: var(--ok); color: var(--ok); }
.big-btn { display: block; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); }
.big-btn:hover { border-color: var(--accent); text-decoration: none; }
.part-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.other-btn { text-align: left; cursor: pointer; font-weight: 400; }
.other-btn.active { border-color: var(--accent); background: var(--accent-soft); }
#jine { margin-top: .8rem; }

.field { display: flex; flex-direction: column; gap: .3rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .9rem; padding: 0; }
.check { display: flex; gap: .5rem; align-items: center; }
details > summary { cursor: pointer; font-weight: 600; padding: .2rem 0; }
details[open] > summary { margin-bottom: .7rem; }
details.sub { margin-top: .8rem; }
details.sub > summary { font-weight: 400; color: var(--muted); font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips.vertical { flex-direction: column; align-items: stretch; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; background: #fff; user-select: none; }
.chip input { margin: 0; }
.chips .chip input, .scale .chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--accent); }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); }
.chip.custom { border-style: dashed; }
.chip.plays:has(input:checked) { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.chip.plays_limited:has(input:checked) { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.chip.out:has(input:checked) { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.chip-btn { border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; }
.templates { display: flex; flex-wrap: wrap; gap: .35rem; }

.badge { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; background: var(--line); color: var(--muted); white-space: nowrap; }
.badge.plays { background: var(--ok-soft); color: var(--ok); }
.badge.plays_limited { background: var(--warn-soft); color: var(--warn); }
.badge.out { background: var(--bad-soft); color: var(--bad); }
.badge.new { background: var(--accent); color: #fff; }
.badge.phase-before { background: var(--bad-soft); color: var(--bad); }
.badge.phase-check { background: var(--warn-soft); color: var(--warn); }
.badge.phase-after { background: var(--ok-soft); color: var(--ok); }
.pain { display: inline-block; min-width: 1.8rem; text-align: center; border-radius: 6px; padding: 0 .4rem; font-weight: 700; background: var(--ok-soft); color: var(--ok); }
.pain.p4, .pain.p5, .pain.p6 { background: var(--warn-soft); color: var(--warn); }
.pain.p7, .pain.p8, .pain.p9, .pain.p10 { background: var(--bad-soft); color: var(--bad); }
.tag { display: inline-block; background: var(--accent-soft); color: #1b4a9c; border-radius: 6px; padding: .05rem .45rem; margin: 0 .25rem .25rem 0; font-size: .84rem; }

/* ---------------------------------------------------------------- úvodní seznam hráček */
.group { margin-bottom: 1.6rem; }
.group h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .5rem; }
.group h2 .count { background: var(--line); color: var(--text); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; margin-left: .3rem; }
.group-action h2 { color: var(--accent); }
.group-action h2 .count { background: var(--accent); color: #fff; }
.player-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.player-list li + li { border-top: 1px solid var(--line); }
.player-row { display: grid; grid-template-columns: 14rem minmax(0, 1fr) 24rem; gap: .8rem; align-items: center; padding: .8rem 1.1rem; color: var(--text); }
.player-row:hover { background: #f8fafc; text-decoration: none; }
.player-row .who { display: flex; flex-direction: column; }
.player-row .status { display: flex; gap: .6rem; align-items: center; justify-content: flex-end; }
.player-row .next { color: var(--accent); font-weight: 600; white-space: nowrap; }
.group-healthy .player-row .next { color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- hráčka: kroky */
.chronic { color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; padding: 0; margin: 1rem 0 1.4rem; counter-reset: none; }
.steps li a { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .82rem; color: var(--muted); padding: .4rem .2rem; border-radius: 8px; }
.steps li a:hover { background: var(--card); text-decoration: none; }
.steps .num, .step h2 .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--line); color: var(--muted); font-weight: 700; font-size: .95rem; flex: none; }
.steps li.done .num { background: var(--ok-soft); color: var(--ok); }
.steps li.done a { color: var(--ok); }
.steps li.current .num { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.steps li.current a { color: var(--accent); font-weight: 700; }

.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.step h2 { display: flex; gap: .7rem; align-items: center; }
.step.current { border: 2px solid var(--accent); }
.step.current h2 .num { background: var(--accent); color: #fff; }
.step.done h2 .num { background: var(--ok-soft); color: var(--ok); }
.step.locked { opacity: .55; box-shadow: none; }
.step .actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.step .actions form { margin-left: auto; }

.share { display: flex; flex-direction: column; gap: .5rem; background: var(--accent-soft); border-radius: 10px; padding: .8rem; margin: .5rem 0; }
.share input { background: #fff; }

dl.summary { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .35rem .8rem; margin: .6rem 0 1rem; }
dl.summary dt { color: var(--muted); }
dl.summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.summary .badge, dl.answers .badge { white-space: normal; }

table.trend td, table.trend th { text-align: center; }
table.trend td:first-child, table.trend th:first-child { text-align: left; }
table.trend tr.new td { background: var(--accent-soft); }
table.trend tr.note-row td { border-top: 0; padding-top: 0; text-align: left; color: var(--muted); }
.trend-lepší { color: var(--ok); font-weight: 600; }
.trend-horší { color: var(--bad); font-weight: 600; }

/* ---------------------------------------------------------------- zranění */
.subnav { display: flex; gap: .3rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: .5rem 0; margin-bottom: .5rem; }
.subnav a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; color: var(--text); }
.subnav a:hover { border-color: var(--accent); text-decoration: none; }
.card[id] { scroll-margin-top: 3.5rem; }

ul.plain, ul.list, ol.timeline { list-style: none; padding: 0; margin: 0 0 .8rem; }
ul.plain li { padding: .3rem 0; }
ol.timeline { margin-top: 1rem; }
ol.timeline li { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem .8rem; margin-bottom: .8rem; }
ol.timeline p { margin: .2rem 0 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
thead th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
table.plan td.pre { min-width: 280px; }
tr.editing td { background: var(--accent-soft); }
table.overview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); table-layout: fixed; min-width: 760px; }
table.overview td { overflow-wrap: anywhere; }
table.overview thead th { white-space: normal; overflow-wrap: break-word; }
table.overview .badge { white-space: pre-line; line-height: 1.35; border-radius: 8px; }

table.week { background: var(--card); }
table.week th.name { min-width: 170px; font-weight: 600; }
table.week th.today { color: var(--accent); }
table.week td.cell { min-width: 120px; cursor: pointer; border-left: 1px solid var(--line); }
table.week td.cell:hover { background: var(--accent-soft); }
table.week td.cell.editing { cursor: default; background: var(--accent-soft); min-width: 200px; }
table.week .add { color: var(--line-strong); font-size: 1.2rem; }

details.report { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; margin-bottom: .5rem; background: #fff; }
details.report.new { border-color: var(--accent); }
details.report summary { font-weight: 400; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
dl.answers { display: grid; grid-template-columns: minmax(180px, 40%) minmax(0, 1fr); gap: .3rem .8rem; margin: .5rem 0 .8rem; }
dl.answers dt { color: var(--muted); }
dl.answers dd { margin: 0; white-space: pre-wrap; font-weight: 500; }

.preview { background: var(--bg); border-radius: 8px; padding: .55rem .75rem; margin: 0; }

/* ---------------------------------------------------------------- hlasový vstup */
.voice-wrap { position: relative; display: flex; width: 100%; }
.voice-wrap > input, .voice-wrap > textarea { padding-right: 2.6rem !important; }
.mic { position: absolute; right: .3rem; top: .35rem; border: none; background: none; padding: .2rem .35rem; font-size: 1.05rem; opacity: .55; }
.mic:hover { opacity: 1; }
.mic.recording { opacity: 1; background: var(--bad-soft); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--bad-soft); } }

/* ---------------------------------------------------------------- dotazník pro hráčky */
.public { font-size: 16px; }
fieldset.q { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--card); margin: 0; box-shadow: var(--shadow); }
fieldset.q legend { font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: .6rem; }
fieldset.q legend + * { clear: both; }
fieldset.q.missing, .consent.missing { border-color: var(--bad); background: var(--bad-soft); }
.req, .opt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-radius: 4px; padding: .05rem .35rem; vertical-align: middle; margin-left: .3rem; }
.req { color: var(--bad); background: var(--bad-soft); }
.opt { color: var(--muted); background: var(--bg); }
.hint { margin: 0 0 .5rem; color: var(--muted); font-size: .85rem; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: .25rem; }
.scale .chip { justify-content: center; padding: .5rem 0; border-radius: 8px; }
.consent { border-radius: var(--radius); align-items: flex-start; padding: .8rem 1rem; }
.consent input { position: static !important; opacity: 1 !important; pointer-events: auto !important; margin-top: .25rem; }

/* ---------------------------------------------------------------- videa */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.video-card { display: flex; flex-direction: column; gap: .3rem; }
.video-card video, .video-placeholder { width: 100%; aspect-ratio: 9 / 16; max-height: 320px; background: #000; border-radius: 8px; object-fit: contain; }
.video-placeholder { display: grid; place-items: center; color: #fff; background: #475467; }
.video-placeholder.error { background: var(--bad); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare figure { margin: 0; }
.compare video { width: 100%; max-height: 75vh; background: #000; border-radius: 8px; }
.compare-controls { position: sticky; bottom: 0; background: var(--card); padding: .7rem; border-top: 1px solid var(--line); margin-top: 1rem; }

/* spodní lišta na mobilu (jako v aplikaci) */
.tabbar { display: none; }
@media (max-width: 640px) {
  .topnav { padding: .6rem .9rem; }
  .topnav .desk { display: none; }
  body:has(.tabbar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card);
    border-top: 1px solid var(--line); padding: 0 .25rem env(safe-area-inset-bottom); }
  .tabbar > a, .tabbar summary { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; font-size: .72rem; font-weight: 600; color: var(--muted); list-style: none; cursor: pointer; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .more svg circle { fill: currentColor; stroke: none; }
  .tabbar .on { color: var(--accent); }
  .tabbar .more { flex: 1; display: flex; }
  .tabbar .sheet { position: absolute; right: .5rem; bottom: calc(100% + .4rem); background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; min-width: 200px; overflow: hidden; }
  .tabbar .sheet a, .tabbar .sheet button { padding: .9rem 1rem; font-size: 1rem; color: var(--text); text-align: left; border-bottom: 1px solid var(--line); width: 100%; }
  .tabbar .sheet form:last-child button { border-bottom: 0; color: var(--muted); }
  .wrap, .wide, .narrow, .narrow-wide { padding: 1rem .9rem; }
  .scale { grid-template-columns: repeat(6, 1fr); }
  dl.answers { grid-template-columns: 1fr; }
  dl.answers dd { margin-bottom: .4rem; }
  .player-row { grid-template-columns: 1fr; gap: .3rem; }
  .player-row .status { justify-content: flex-start; }
  .steps li a { font-size: .7rem; }

  /* pole: 16 px, jinak iPhone při klepnutí přiblíží stránku */
  input, select, textarea { font-size: 16px; }
  /* větší cíle pro prst */
  .chip { min-height: 40px; padding: .45rem .9rem; }
  .mic { top: .15rem; right: .15rem; min-width: 40px; min-height: 40px; }
  button.link.danger[title="Smazat"] { min-width: 40px; min-height: 40px; font-size: 1.2rem; }
  .crumbs a { display: inline-block; padding: .45rem 0; }
  details > summary { padding: .45rem 0; }
  .subnav { position: sticky; top: 0; z-index: 20; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .subnav a { padding: .55rem .8rem; }
  .subnav { scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .player-row > * { min-width: 0; }
  .player-row .next { white-space: normal; }
  button, .btn { min-height: 42px; }
  button.link { min-height: 36px; }

  /* tabulky jako karty */
  table.cards-m, table.cards-m tbody, table.cards-m tr, table.cards-m td { display: block; width: 100%; }
  table.cards-m { min-width: 0; table-layout: auto; border: 0; background: none; }
  table.cards-m colgroup, table.cards-m thead { display: none; }
  table.cards-m tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; padding: .3rem 0; }
  table.cards-m td { border: 0; padding: .3rem .9rem; }
  table.cards-m td:empty { display: none; }
  table.cards-m td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
  table.cards-m td.card-head { font-size: 1.05rem; padding-top: .55rem; }
  table.cards-m td.actions { display: flex; gap: .8rem; justify-content: flex-end; }
  table.cards-m td.actions button { min-width: 44px; min-height: 40px; }
  table.week td.cell > .tag { justify-self: start; }
  .table-wrap:has(> table.cards-m) { overflow: visible; }

  /* kalendář: hráčka pod hráčkou, dny pod sebou */
  table.week, table.week tbody, table.week tr, table.week th.name, table.week td.cell { display: block; width: 100%; }
  table.week thead { display: none; }
  table.week { background: none; }
  table.week tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .9rem; overflow: hidden; }
  table.week th.name { min-width: 0; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  table.week td.cell { min-width: 0; border-left: 0; display: grid; grid-template-columns: 4.6rem 1fr; gap: 0 .6rem; align-items: start; padding: .55rem .9rem; min-height: 46px; }
  table.week td.cell > * { grid-column: 2; }
  table.week td.cell::before { content: attr(data-day); grid-column: 1; grid-row: 1 / span 9; font-size: .85rem; font-weight: 600; color: var(--muted); padding-top: .1rem; }
  table.week td.cell.today::before { color: var(--accent); }
  table.week td.cell.today { background: var(--accent-soft); }
  table.week td.cell.editing { display: block; min-width: 0; }
  table.week td.cell.editing::before { display: none; }
  .table-wrap:has(> table.week) { overflow: visible; }
}

/* přílohy v deníku */
.file-pick { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--muted); }
.attachments { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.attachments .thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.attachments .file { display: inline-flex; align-items: center; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .88rem; }

/* plán pro hráčku */
.full { display: block; width: 100%; text-align: center; }
ol.my-plan { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
ol.my-plan li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
ol.my-plan li.today { border: 2px solid var(--accent); }
ol.my-plan li.past { opacity: .55; }
ol.my-plan .day { font-weight: 700; }
ol.my-plan p { margin: .35rem 0 0; }

.quickbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: -.4rem 0 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; font-size: 1rem; }
details.done-steps { margin-top: 1rem; }
details.done-steps > summary { color: var(--muted); font-weight: 500; margin-bottom: .8rem; }

/* kalendář */
table.week td.cell.has-plan { background: #f7fbff; }
table.week td.cell.editing { min-width: 320px; vertical-align: top; }
.plan-snippet { margin-top: .3rem; padding-top: .3rem; border-top: 1px dashed var(--line); }
.plan-edit { border-top: 1px solid var(--line); padding-top: .6rem; }
.chip.small { padding: .2rem .55rem; font-size: .82rem; }
a.chip { color: var(--text); text-decoration: none; }
a.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
table.week.readonly td.cell { cursor: default; }
table.week.readonly td.cell:hover { background: inherit; }

/* ---------------------------------------------------------------- QR kódy */
.qr-box { display: flex; justify-content: center; margin: .6rem 0; }
.qr-box .qr { width: min(280px, 80vw); height: auto; border-radius: 8px; border: 1px solid var(--line); }
.share-qr summary { cursor: pointer; color: var(--accent); margin-top: .5rem; }

/* ---------------------------------------------------------------- ukázka */
.demo-bar { background: #fff4d6; color: #7a5200; border-bottom: 1px solid #f0d58a; padding: .5rem 1.25rem; font-size: .88rem; text-align: center; }

/* ---------------------------------------------------------------- seznamy: hledání, tým, řazení */
.list-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.list-tools input[type=search] { flex: 1 1 220px; width: auto; }
.list-tools select { flex: 0 1 auto; width: auto; }
[data-item][hidden], [data-group][hidden] { display: none !important; }
@media (max-width: 640px) {
  .list-tools input[type=search] { flex-basis: 100%; }
  .list-tools select { flex: 1 1 0; min-width: 0; }
}

/* ---------------------------------------------------------------- týmy hráček (hromadně) */
.notice { background: #fff4d6; border: 1px solid #f0d58a; color: #7a5200; border-radius: var(--radius); padding: .6rem .9rem; }
.notice a { font-weight: 600; }
.team-row form { display: grid; grid-template-columns: 13rem 1fr auto 5.5rem; gap: .6rem; align-items: center; padding: .6rem 1.1rem; }
.team-row .chips { margin: 0; }
.team-row select { width: auto; }
.team-row .saved { color: var(--ok); }
@media (max-width: 640px) {
  .team-row form { grid-template-columns: 1fr auto; }
  .team-row .name, .team-row .chips { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- hráčka: archivovat / smazat */
.player-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.2rem 0 1rem; }
.player-actions .btn.danger { color: var(--bad); border-color: var(--bad-soft); }
@media (max-width: 640px) {
  .badge { white-space: normal; }
  main { overflow-x: clip; }
}
