/* 👟 Denní pohyb — karta na Přehledu, okno (týden, kroky, sestava, časovač), editor (pohyb.js, 13. 11. 2026)
   Vzhled podle náhledu docs/nahledy/denni-pohyb-grafika.html, který David schválil 13. 11. 2026.
   Text jen přes --mu-* tokeny → tmavý režim i bílé okno vyjdou samy. Barvy dat: zelená #16a34a (chůze / hotovo),
   modrá #2563eb (běh), zlatá #d97706 (splněný cíl). Dvojice chůze × běh prošla kontrolou i pro barvoslepé;
   zlatý sloupec má navíc ★ (barva tu není jediný signál). Testuje se na 375 i 320 px. */

/* ── Pohárek: hladina s vlnkou, lesk, rysky po čtvrtinách; plný = zlatý ── */
.mpo-cup { display: block; flex: 0 0 auto; overflow: visible; }
.mpo-cup__bg { fill: hsl(var(--mu-subtle)); }
.mpo-cup__line { fill: none; stroke: #7d8a83; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mpo-cup__stem { fill: #7d8a83; }
.mpo-cup__tick { stroke: #7d8a83; stroke-opacity: .55; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.mpo-cup.is-full .mpo-cup__line { stroke: #d97706; }
.mpo-cup.is-full .mpo-cup__stem { fill: #d97706; }
.mpo-cup__star { fill: #fff; font-family: system-ui, sans-serif; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
  .mpo-cup__w { animation: mpo-wave 2.6s linear infinite; }
  .mpo-cup__w2 { animation: mpo-wave 4.2s linear infinite reverse; }
  .mpo-cup.is-pop { animation: mpo-pop 0.7s ease-out; transform-origin: 50% 90%; }
}
.mpo-cup__w2 { opacity: .45; }
@keyframes mpo-wave { to { transform: translateX(-60px); } }
@keyframes mpo-pop { 0% { transform: scale(1); } 35% { transform: scale(1.15) rotate(-4deg); } 70% { transform: scale(0.97) rotate(2deg); } 100% { transform: scale(1); } }

/* ── Složení kroků: chůze + běh v jednom pruhu, značky cíle a milníků ── */
.mpo-comp { position: relative; display: block; margin: 6px 0 2px; }
.mpo-comp__track { position: relative; display: flex; gap: 2px; height: 10px; border-radius: 99px; background: rgba(22, 163, 74, 0.16); overflow: hidden; }
.mpo-comp__track i { display: block; height: 100%; }
.mpo-comp__w { background: #16a34a; }
.mpo-comp__r { background: #2563eb; }
.mpo-comp__goal { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 2px; background: hsl(var(--mu-text)); }
.mpo-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 0.78rem; color: hsl(var(--mu-text-muted)); }
.mpo-leg b { color: hsl(var(--mu-text)); font-weight: 700; }
.mpo-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.mpo-leg__g { margin-left: auto; }

/* ── Dílkový kroužek sestavy ── */
.mpo-seg { position: relative; display: block; flex: 0 0 auto; }
.mpo-seg svg { display: block; }
.mpo-seg circle { fill: none; }
.mpo-seg .is-t { stroke: hsl(var(--mu-subtle)); }
.mpo-seg .is-d { stroke: #16a34a; }
.mpo-seg > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; color: hsl(var(--mu-text)); }

.mpo-fire { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: #fef3c7; color: #7c2d12;
  font-size: 0.78rem; font-weight: 800; text-transform: none; letter-spacing: 0; white-space: nowrap; }

/* ── Malá dlaždice kroků vedle spánku a HRV (řada .mu-vpills nahoře na Přehledu) ── */
.mpo-pill .mu-vpill__ic { font-size: 0.85rem; line-height: 1.2; }
.mpo-pill.is-hit .mu-vpill__ic { color: #d97706; letter-spacing: -1px; }
.mpo-pill__bar { display: block; width: 100%; height: 4px; margin-top: 6px; border-radius: 99px; background: rgba(22, 163, 74, 0.16); overflow: hidden; }
.mpo-pill__bar i { display: block; height: 100%; border-radius: inherit; background: #16a34a; }
.mpo-pill.is-hit .mpo-pill__bar i { background: #d97706; }
@media (min-width: 1024px) { .mpo-pill__bar { height: 5px; margin-top: 12px; } }
/* Spánek + tep + HRV + kroky + „Noc →" = pět dlaždic. Na telefonu čtyři stejné sloupce a úzká šipka (bez nápisu NOC),
   menší písmo; do 359 px dvě řady po dvou a šipka pod nimi. Bez téhle úpravy by kroky vytekly z mřížky 3 + 1. */
@media (max-width: 639.98px) {
  .mu-vpills:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)) 30px; gap: 6px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill { min-width: 0; padding: 9px 7px 8px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill b { font-size: 1.08rem; white-space: nowrap; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill b i { font-size: 0.56rem; margin-left: 1px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill small { font-size: 0.6rem; white-space: nowrap; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill--more { padding: 8px 2px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill__morel { display: none; }
}
@media (max-width: 359.98px) {
  .mu-vpills:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill--more { grid-column: 1 / 3; flex-direction: row; gap: 6px; padding: 6px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill__morel { display: inline; }
}
/* 💻 Počítač: levý sloupec Přehledu má od 1200 px jen ~400 px → dlaždice ~79 px a číslo 24 px s jednotkou se do ní nevešlo
   („20,1 tis." vyteklo přes okraj, David 14. 11. 2026; stejně by vyteklo „9 876", HRV „112 ms" nebo spánek „10:15").
   Dlaždice je proto KONTEJNER a písmo se měří podle JEJÍ šířky (cqw) — na širokém sloupci zůstává 24 px, na úzkém se zmenší.
   Jen v mřížce (≥ 1024 px): mezi 640 a 1023 px jsou dlaždice flex a šířku si berou z obsahu, tam by kontejner dlaždici smrskl. */
@media (min-width: 1024px) {
  .mu-vpills:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)) 46px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill:not(.mu-vpill--more) { container-type: inline-size; padding-left: 10px; padding-right: 10px; }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill b { white-space: nowrap; font-size: clamp(1.05rem, 36cqw, 1.5rem); }
  .mu-vpills:has(> :nth-child(5)) .mu-vpill small { white-space: nowrap; font-size: clamp(0.6rem, 18cqw, 0.72rem); }
}

/* ── Karta na Přehledu ───────────────────────────────────── */
#mu-pohyb-slot { min-width: 0; margin: 12px 0; }
.mpo-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; box-sizing: border-box; min-width: 0;
  padding: 14px; border: 1px solid hsl(var(--mu-border)); border-radius: 18px; background: hsl(var(--mu-card));
  color: hsl(var(--mu-text)); font: inherit; text-align: left; cursor: pointer; }
.mpo-card:hover { border-color: #16a34a; }
.mpo-card:focus-visible { outline: 3px solid rgba(34, 197, 94, 0.45); outline-offset: 2px; }
.mpo-card--skel { min-height: 96px; cursor: default; background: hsl(var(--mu-subtle)); }
.mpo-card__cup { grid-row: 1 / 4; grid-column: 1; }
.mpo-card__k { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
  font-size: 0.72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: hsl(var(--mu-text-muted)); }
.mpo-card__m { grid-column: 2; display: block; min-width: 0; }
.mpo-card__n { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 6.2vw, 1.55rem); line-height: 1.1; white-space: nowrap; }
.mpo-card__n small { font: 600 0.82rem system-ui, sans-serif; color: hsl(var(--mu-text-muted)); }
.mpo-card__q { display: block; font-weight: 800; font-size: 1rem; line-height: 1.25; }
.mpo-card__ring { grid-column: 3; grid-row: 2 / 4; }
.mpo-card__s { grid-column: 2; font-size: 0.8rem; color: hsl(var(--mu-text-muted)); min-width: 0; }
.mpo-card .mpo-comp__track { background: hsl(var(--mu-subtle)); }
@media (max-width: 359px) {
  .mpo-card { padding: 12px; gap: 4px 10px; }
  .mpo-card__cup .mpo-cup { width: 46px; height: 51px; }
}

/* ── Okno ────────────────────────────────────────────────── */
@media (max-width: 640px) { .mu-modal:has(.mpo-win) { align-items: flex-start; } }
.mpo-win { position: relative; max-width: 460px; }
.mpo-title { margin: 0 0 12px; font-size: 1.25rem; color: hsl(var(--mu-text)); padding-right: 32px; }
.mpo-sub { margin: 0 0 10px; font-size: 0.86rem; line-height: 1.45; color: hsl(var(--mu-text-muted)); }
.mpo-day { margin: 12px 0 0; font-weight: 800; font-size: 0.95rem; color: hsl(var(--mu-text)); }
.mpo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Týden: sloupce proti čáře cíle */
.mpo-wk__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin: 0 0 6px; font-size: 0.78rem; color: hsl(var(--mu-text-muted)); }
.mpo-wk__hint { font-weight: 700; color: hsl(var(--mu-text)); }
.mpo-wk svg { display: block; width: 100%; height: auto; overflow: visible; }
.mpo-wk__base { stroke: hsl(var(--mu-border)); stroke-width: 1; }
.mpo-wk__goal { stroke: #7d8a83; stroke-width: 1; }
.mpo-wk__t { fill: hsl(var(--mu-text-muted)); font: 600 10.5px system-ui, sans-serif; }
.mpo-wk__bar { fill: #16a34a; }
.mpo-wk__bar.is-hit { fill: #d97706; }
.mpo-wk__bar.is-none { fill: hsl(var(--mu-border)); }
.mpo-wk__star { fill: #d97706; font: 800 11px system-ui, sans-serif; }
.mpo-wk__val { fill: hsl(var(--mu-text)); font: 800 11.5px 'Montserrat', system-ui, sans-serif; }
.mpo-wk__d { cursor: pointer; outline: none; }
.mpo-wk__sel { fill: transparent; }
.mpo-wk__d:hover .mpo-wk__sel, .mpo-wk__d.is-on .mpo-wk__sel { fill: hsl(var(--mu-subtle)); }
.mpo-wk__d:focus-visible .mpo-wk__sel { stroke: #16a34a; stroke-width: 2; }
.mpo-wk__d.is-on .mpo-wk__day { fill: hsl(var(--mu-text)); font-weight: 800; }
.mpo-wk__s { fill: none; stroke: hsl(var(--mu-border)); stroke-width: 1.5; }
.mpo-wk__s.is-full { fill: #16a34a; stroke: none; }
.mpo-wk__s.is-part { stroke: #16a34a; stroke-width: 2; }
.mpo-wk__chk { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mpo-wk__leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: 0.74rem; color: hsl(var(--mu-text-muted)); }
.mpo-wk__leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.mpo-wk__gold { background: #d97706; }

/* Dnešní kroky: číslo je hlavní věc na obrazovce */
.mpo-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; margin-top: 10px; }
.mpo-hero__n { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(2.1rem, 11vw, 3rem); line-height: 1; letter-spacing: -.01em; color: hsl(var(--mu-text)); white-space: nowrap; }
.mpo-hero__c { margin-top: 2px; font-size: 0.85rem; font-weight: 600; color: hsl(var(--mu-text-muted)); }
.mpo-hero .mpo-comp, .mpo-hero .mpo-leg, .mpo-hero__m, .mpo-hero__src { grid-column: 1 / 3; }
.mpo-hero .mpo-comp { margin-top: 10px; }
.mpo-hero__m { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.4; color: hsl(var(--mu-text)); }
.mpo-hero__src { margin: 2px 0 0; font-size: 0.78rem; color: hsl(var(--mu-text-muted)); }
@media (max-width: 359px) { .mpo-hero { gap: 4px 12px; } .mpo-cup--big { width: 84px; height: 92px; } }

.mpo-runrow { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; min-width: 0; margin-top: 10px; padding: 10px 12px;
  border: 1px dashed rgba(37, 99, 235, 0.55); border-radius: 12px; background: rgba(37, 99, 235, 0.06);
  color: hsl(var(--mu-text)); font: inherit; font-size: 0.88rem; line-height: 1.35; text-align: left; }
button.mpo-runrow { cursor: pointer; }
.mpo-runrow > span { flex: 1 1 auto; min-width: 0; }
.mpo-runrow small { display: block; margin-top: 2px; font-size: 0.78rem; color: hsl(var(--mu-text-muted)); }
.mpo-runrow.is-on { border-style: solid; }
.mpo-runrow__x { flex: 0 0 auto; padding: 6px 10px; border: 1px solid hsl(var(--mu-border)); border-radius: 9px; background: hsl(var(--mu-card));
  color: hsl(var(--mu-danger-text)); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }

.mpo-inp { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; min-width: 0; }
.mpo-inp__f { position: relative; display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0;
  padding: 0 12px; border: 2px solid hsl(var(--mu-border)); border-radius: 12px; background: hsl(var(--mu-subtle)); }
.mpo-inp__f:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.mpo-inp__f input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; outline: none; padding: 10px 0;
  font: inherit; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: hsl(var(--mu-text)); }
.mpo-inp__f span { font-size: 0.82rem; font-weight: 700; color: hsl(var(--mu-text-muted)); }
.mpo-inp .mu-lib-primary { flex: 0 0 auto; width: auto; margin: 0; padding: 10px 18px; border-radius: 12px; font-size: 0.95rem; }
.mpo-err { margin: 8px 0 0; font-size: 0.85rem; font-weight: 700; color: hsl(var(--mu-danger-text)); }
.mpo-err[hidden] { display: none; }

.mpo-link { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 0; background: none; font: inherit;
  font-size: 0.88rem; font-weight: 700; color: hsl(var(--mu-accent-text)); cursor: pointer; text-align: center; }
.mpo-link--danger { color: hsl(var(--mu-danger-text)); }
.mpo-link--in { display: inline; width: auto; margin: 0 0 0 6px; padding: 0; font-size: 0.82rem; }

/* Sestava: lehké řádky, jeden signál pro „hotovo" */
.mpo-str { margin-top: 18px; padding-top: 16px; border-top: 1px solid hsl(var(--mu-border)); }
.mpo-st__h { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; min-width: 0; }
.mpo-st__h > div { min-width: 0; }
.mpo-st__h h4 { margin: 0; font-size: 1.05rem; color: hsl(var(--mu-text)); }
.mpo-st__h p { margin: 0; font-size: 0.8rem; color: hsl(var(--mu-text-muted)); }
.mpo-go { margin: 0; }
.mpo-go small { font-weight: 600; opacity: 0.9; }
.mpo-rows { margin-top: 10px; }
.mpo-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 0 4px; padding: 9px 0; border-top: 1px solid hsl(var(--mu-border)); }
.mpo-row__main { position: relative; display: grid; grid-template-columns: 28px 44px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; cursor: pointer; }
.mpo-row__main input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mpo-row__c { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #b9c4bd; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.mpo-row__main input:focus-visible + .mpo-row__c { outline: 3px solid rgba(34, 197, 94, 0.45); outline-offset: 2px; }
.mpo-row.is-on .mpo-row__c { background: #16a34a; border-color: #16a34a; }
.mpo-row__e { width: 44px; height: 44px; border-radius: 12px; background: hsl(var(--mu-subtle)); display: grid; place-items: center; font-size: 1.35rem; overflow: hidden; }
.mpo-row__e img { width: 100%; height: 100%; object-fit: cover; }
.mpo-row__t { min-width: 0; overflow-wrap: anywhere; }
.mpo-row__t b { display: block; font-size: 0.95rem; line-height: 1.25; color: hsl(var(--mu-text)); }
.mpo-row__t small { font-size: 0.8rem; color: hsl(var(--mu-text-muted)); }
.mpo-row.is-on .mpo-row__t b { color: hsl(var(--mu-text-muted)); font-weight: 600; }
.mpo-row__i { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: hsl(var(--mu-text-muted)); font-size: 1.05rem; cursor: pointer; }
.mpo-row__i[aria-expanded="true"] { background: hsl(var(--mu-subtle)); color: hsl(var(--mu-text)); }
.mpo-row__how { grid-column: 1 / 3; margin: 6px 0 2px 38px; font-size: 0.84rem; line-height: 1.45; color: hsl(var(--mu-text-muted)); }
.mpo-row__how[hidden] { display: none; }
.mpo-row__how p { margin: 0 0 6px; }
.mpo-row__how > img { display: block; max-width: 100%; max-height: 220px; border-radius: 12px; margin: 0 0 6px; }
.mpo-it__vid { display: inline-block; padding: 5px 2px; border: 0; background: none; font: inherit; font-size: 0.82rem; font-weight: 700; color: hsl(var(--mu-accent-text)); cursor: pointer; }
.mpo-it__player { margin-top: 6px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.mpo-it__player[hidden] { display: none; }
.mpo-it__player iframe { display: block; width: 100%; height: 100%; border: 0; }

.mpo-how { margin-top: 14px; font-size: 0.85rem; line-height: 1.5; color: hsl(var(--mu-text)); }
.mpo-how > summary { cursor: pointer; font-weight: 700; color: hsl(var(--mu-accent-text)); padding: 4px 0; }
.mpo-how p { margin: 6px 0; }

/* ── Časovač ─────────────────────────────────────────────── */
.mpo-run { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; text-align: center; }
.mpo-run__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  font-size: 0.82rem; font-weight: 700; color: hsl(var(--mu-text-muted)); }
.mpo-run__snd { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid hsl(var(--mu-border)); border-radius: 50%;
  background: hsl(var(--mu-card)); font-size: 1rem; cursor: pointer; }
.mpo-run__dots { display: flex; gap: 4px; width: 100%; }
.mpo-run__dots i { flex: 1 1 0; height: 6px; border-radius: 99px; background: hsl(var(--mu-subtle)); }
.mpo-run__dots i.is-done { background: #16a34a; }
.mpo-run__dots i.is-now { background: linear-gradient(90deg, #16a34a 50%, rgba(22, 163, 74, 0.2) 50%); }
.mpo-run__media:empty { display: none; }
.mpo-run__media img { display: block; max-width: 100%; max-height: 130px; margin: 0 auto; border-radius: 14px; object-fit: cover; }
.mpo-run__name { font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: hsl(var(--mu-text)); overflow-wrap: anywhere; }
.mpo-run__name small { display: block; margin-top: 3px; font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: hsl(var(--mu-text-muted)); }
.mpo-run__ring { position: relative; width: min(210px, 62vw); aspect-ratio: 1; }
.mpo-run__ring svg { display: block; width: 100%; height: 100%; }
.mpo-run__bg { fill: none; stroke: rgba(22, 163, 74, 0.16); stroke-width: 11; }
.mpo-run__fg { fill: none; stroke: #16a34a; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }
.mpo-run.is-prep .mpo-run__bg, .mpo-run.is-switch .mpo-run__bg { stroke: rgba(217, 119, 6, 0.18); }
.mpo-run.is-prep .mpo-run__fg, .mpo-run.is-switch .mpo-run__fg { stroke: #d97706; }
.mpo-run__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mpo-run__num b { font-family: 'Montserrat', sans-serif; font-size: 4rem; font-weight: 800; line-height: 1; color: hsl(var(--mu-text)); }
.mpo-run__num span { font-size: 0.8rem; font-weight: 600; color: hsl(var(--mu-text-muted)); }
.mpo-run__phase { min-height: 34px; }
.mpo-sides { display: inline-flex; padding: 3px; border-radius: 99px; background: hsl(var(--mu-subtle)); font-size: 0.8rem; font-weight: 800; }
.mpo-sides i { font-style: normal; padding: 5px 14px; border-radius: 99px; color: hsl(var(--mu-text-muted)); }
.mpo-sides i.is-on { background: #16a34a; color: #fff; }
.mpo-sides i.is-dn { color: hsl(var(--mu-text)); }
.mpo-run__next { width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 12px; background: hsl(var(--mu-subtle)); font-size: 0.84rem; color: hsl(var(--mu-text-muted)); text-align: left; overflow-wrap: anywhere; }
.mpo-run__next b { color: hsl(var(--mu-text)); }
.mpo-run__btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.mpo-run__btns .mu-lib-primary { flex: 1 1 100%; margin: 0; }
.mpo-run__btns .mu-lib-ghost { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mpo-run__fg { transition: none; } }

.mpo-fin { text-align: center; padding: 8px 0; }
.mpo-fin__e { font-size: 3rem; line-height: 1.1; }
.mpo-fin h4 { margin: 6px 0; font-size: 1.4rem; color: hsl(var(--mu-text)); }
.mpo-fin p { margin: 4px 0; font-size: 0.92rem; color: hsl(var(--mu-text)); }
.mpo-fin__s { font-weight: 800; }

/* Konfety — jen pro ty, kdo nemají vypnuté animace (skript je jinak vůbec nevytvoří) */
.mpo-conf { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 5; }
.mpo-conf i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation: mpo-conf 1.7s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes mpo-conf {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx, 0), 460px) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* ── Editor (jen David) ──────────────────────────────────── */
.mpo-ed__l { display: block; margin: 10px 0 4px; font-size: 0.8rem; font-weight: 700; color: hsl(var(--mu-text)); }
.mpo-ed__in { width: 100%; box-sizing: border-box; min-width: 0; padding: 9px 11px; border: 1px solid hsl(var(--mu-border)); border-radius: 10px;
  background: hsl(var(--mu-card)); color: hsl(var(--mu-text)); font: inherit; font-size: 16px; }
textarea.mpo-ed__in { resize: vertical; }
.mpo-ed__tot { margin: 12px 0 0; font-size: 0.85rem; color: hsl(var(--mu-text)); }
.mpo-ed__rows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mpo-ed__row { padding: 10px; border: 1px solid hsl(var(--mu-border)); border-radius: 12px; background: hsl(var(--mu-subtle)); }
details.mpo-ed__row > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
  font-weight: 800; font-size: 0.92rem; color: hsl(var(--mu-text)); min-width: 0; }
details.mpo-ed__row > summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.mpo-ed__row > summary small { flex: 0 0 auto; font-weight: 700; color: hsl(var(--mu-text-muted)); }
details.mpo-ed__row > *:not(summary) { margin-top: 6px; }
.mpo-ed__top { display: flex; gap: 6px; min-width: 0; }
.mpo-ed__top .mpo-ed__in { flex: 1 1 auto; width: auto; }
.mpo-ed__top .mpo-ed__emo { flex: 0 0 56px; width: 56px; text-align: center; }
.mpo-ed__time { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; font-weight: 700; color: hsl(var(--mu-text)); }
.mpo-ed__time .mpo-ed__sec { width: 64px; text-align: center; display: inline-block; }
.mpo-ed__chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mpo-ed__chk input { width: 20px; height: 20px; }
.mpo-ed__img { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mpo-ed__img img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.mpo-ed__up { cursor: pointer; font-weight: 700; }
.mpo-ed__st { font-size: 0.8rem; color: hsl(var(--mu-text-muted)); }
.mpo-ed__act { display: flex; gap: 6px; flex-wrap: wrap; }
.mpo-ed__act .mu-lib-ghost--danger { margin-left: auto; }

.mpo-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 1300; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px;
  background: hsl(150 30% 14%); color: #fff; font-size: 0.88rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
