/* Moje rezervace - varianta V1 „Salon". Rozměry 1:1 z Figmy (stránka 2:6, 👤 Moje rezervace).
   Formulářové obrazovky: obsah vlevo + fotka v oblouku vpravo (440 × 600). Přehled: hlavní sloupec 800 + boční 400.
   Tokeny a komponenty (Button, SlotChip, Portrait/Arch) jsou ve sdíleném styles.css. */

/* ---------- stavy stránky ---------- */
.mr-view[hidden] { display: none; }
.mr-boot [data-view="login"] { display: none; } /* viz inline skript v hlavičce: bez probliknutí úvodní obrazovky */
.mr-noscript { padding: var(--s-48) var(--pad-x); }
.mr-noscript a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible { outline: none; }

/* jedna zlatá akce na obrazovku: hlavička ji nese v přehledu s rezervací a po přesunu, jinak je schovaná */
body:not([data-gold="header"]) .header .btn--primary { display: none; }
.header__account[aria-current="page"] { color: var(--gold); }

/* ---------- nadpisy (Display/L, na mobilu Mobile/Display) ---------- */
.mr-title { font: 400 64px/72px var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.mr-title--m { font-size: 48px; line-height: 56px; }
@media (min-width: 1024px) and (max-width: 1180px) { .mr-title { font-size: 56px; line-height: 64px; } .mr-title--m { font-size: 44px; line-height: 52px; } }
@media (max-width: 767px) {
  .mr-title, .mr-title--m { font-size: 40px; line-height: 48px; letter-spacing: -.005em; }
}

/* ---------- rozvržení formulářových obrazovek ---------- */
.mr-split { display: grid; grid-template-columns: minmax(0, 740fr) minmax(0, 700fr); max-width: var(--max); margin: 0 auto; }
.mr-left { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-40); padding: var(--s-96) var(--s-64) var(--s-96) var(--pad-x); min-width: 0; }
.mr-left > * { max-width: 100%; }
.mr-head { display: flex; flex-direction: column; gap: var(--s-24); align-self: stretch; }
.mr-head p { max-width: 596px; }
.mr-media { display: flex; align-items: center; justify-content: center; padding: var(--s-40) var(--pad-x) var(--s-64) 0; }
.mr-arch { width: min(440px, 100%); aspect-ratio: 440 / 600; position: relative; flex: none; background: var(--bg-raised); }
.mr-arch::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 10px 28px rgba(0, 0, 0, .5); pointer-events: none; } /* Figma: inner shadow 0 / 10 / 28 / 50 % */
@media (max-width: 1023px) {
  .mr-split { grid-template-columns: minmax(0, 1fr); }
  .mr-media { display: none; }
  .mr-left { gap: var(--s-32); padding: var(--s-40) var(--pad-x) var(--s-48); }
  .mr-head { gap: var(--s-16); }
}

/* kruh s ikonou (72) */
.mr-ring { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--gold); }
.mr-ring .icon { width: 32px; height: 32px; }

/* ---------- pole (TextField) ---------- */
.mr-form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-24); align-self: stretch; }
.mr-field { display: flex; flex-direction: column; gap: var(--s-8); width: 100%; }
.mr-field__label { font: 500 14px/20px var(--sans); }
.mr-field__input {
  width: 100%; height: 52px; padding: 0 var(--s-24); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--bg-sunken); color: var(--text-primary); font: 400 16px/26px var(--sans);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mr-field__input::placeholder { color: var(--text-tertiary); }
.mr-field__input:hover { border-color: var(--text-tertiary); }
.mr-field__input:focus-visible, .mr-field__input:focus { outline: none; border-color: var(--text-primary); box-shadow: 0 0 0 .5px var(--text-primary); } /* Figma: ohnisko = rámeček 1,5 px */
.mr-field.is-error .mr-field__input { border-color: var(--state-error); box-shadow: 0 0 0 .5px var(--state-error); }
.mr-field__hint { font: 400 13px/18px var(--sans); color: var(--text-tertiary); }
.mr-field__error { color: var(--state-error); }
.mr-field__error[hidden] { display: none; }
.mr-field.is-error .mr-field__hint { display: none; }
@media (max-width: 767px) { .mr-btn-fill { width: 100%; } }

/* tři body „Jak to funguje" */
.mr-points { display: flex; flex-direction: column; gap: var(--s-16); }
.mr-points li { display: flex; align-items: center; gap: var(--s-12); }
.mr-points .icon { color: var(--gold); }

/* ---------- odkaz odeslán ---------- */
.mr-addr { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-16); }
.mr-edit { display: inline-flex; align-items: center; gap: var(--s-8); font: 500 13px/18px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.mr-edit .icon { color: var(--gold); }
.mr-edit:hover span { text-decoration: underline; text-underline-offset: 4px; }
.mr-resend { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-8); align-self: stretch; }
.mr-resend .btn:disabled { border-color: var(--line-subtle); color: var(--text-tertiary); cursor: default; background: none; }
.mr-resend .btn { font-variant-numeric: tabular-nums; }
.mr-tip { display: flex; align-items: flex-start; gap: var(--s-12); padding: var(--s-24); background: var(--bg-raised); border-radius: var(--radius-s); align-self: stretch; }
.mr-tip > div { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.mr-tip .icon { color: var(--text-secondary); margin-top: 0; }
@media (max-width: 767px) { .mr-resend .btn { width: 100%; } .mr-addr { flex-direction: column; align-items: flex-start; gap: var(--s-8); } }

/* anotace k potvrzení majitelem / pro vývoj (přerušovaný rámeček z Figmy, jde vypnout v JS: SHOW_DRAFT_NOTES) */
.mr-draft { display: flex; align-items: center; gap: var(--s-8); padding: var(--s-8) var(--s-12); border: 1px dashed var(--line-strong); border-radius: var(--radius-s); font: 400 13px/18px var(--sans); color: var(--text-tertiary); align-self: stretch; }
.mr-draft[hidden], [data-draft][hidden] { display: none; }
.mr-draft .icon { color: var(--text-tertiary); }
.mr-textlink { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.mr-textlink:hover { color: var(--gold); }
.mr-textlink--gold { color: var(--gold); font: 500 13px/18px var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.mr-textlink--gold:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- souhrn přesunu, akce ---------- */
.mr-summary { display: flex; flex-direction: column; gap: var(--s-20); padding: var(--s-32); background: var(--bg-raised); border-radius: var(--radius-s); align-self: stretch; }
.mr-summary > div { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-summary del { text-decoration: line-through; text-decoration-thickness: 1px; }
.mr-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-32); align-self: stretch; }
.mr-back { display: inline-flex; align-items: center; gap: var(--s-8); font: 500 13px/18px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.mr-back:hover { color: var(--text-primary); }
.mr-back--m { font-size: 14px; line-height: 20px; letter-spacing: .08em; color: var(--text-primary); }
.mr-back--m .icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .mr-summary { padding: var(--s-24); }
  .mr-actions { flex-direction: column; align-items: stretch; gap: var(--s-16); }
  .mr-actions .mr-back { align-self: center; }
}

/* ---------- přehled ---------- */
.mr-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-32); padding-top: var(--s-64); padding-bottom: var(--s-48); }
.mr-intro__title { display: flex; flex-direction: column; gap: var(--s-16); min-width: 0; }
.mr-logout { display: inline-flex; align-items: center; gap: var(--s-8); font: 500 14px/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); white-space: nowrap; }
.mr-logout:hover { color: var(--text-primary); }
.mr-loading { padding-bottom: var(--s-128); }
.mr-loading[hidden], [data-ov-body][hidden] { display: none; }
.mr-h { display: flex; align-items: baseline; gap: var(--s-16); }

.mr-ov { display: grid; grid-template-columns: minmax(0, 800fr) minmax(0, 400fr); column-gap: var(--s-80); row-gap: var(--s-80); padding-bottom: var(--s-128); align-items: start; }
.mr-upcoming { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: var(--s-24); min-width: 0; }
.mr-history { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: var(--s-24); min-width: 0; }
.mr-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: var(--s-32); min-width: 0; }
@media (max-width: 1180px) { .mr-ov { column-gap: var(--s-48); } }
@media (max-width: 1023px) {
  .mr-ov { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-48); padding-bottom: var(--s-48); }
  .mr-side { display: contents; }
  .mr-upcoming { order: 1; }
  .mr-vouchers { order: 2; }
  .mr-history { order: 3; }
  .mr-rules { order: 4; }
  .mr-help { order: 5; }
  .mr-loading { padding-bottom: var(--s-48); }
}
@media (max-width: 767px) {
  .mr-intro { flex-direction: column; align-items: flex-start; gap: var(--s-12); padding-top: var(--s-32); padding-bottom: var(--s-32); }
  .mr-intro__title { gap: var(--s-8); }
  .mr-intro__who { font: 400 15px/22px var(--sans); }
  .mr-logout { font-size: 13px; line-height: 18px; letter-spacing: .1em; }
  .mr-ov { gap: var(--s-48); }
  .mr-upcoming { gap: var(--s-20); }
  [data-up-count] { display: none; }
}

/* karta rezervace (BookingCard) */
.mr-bk { display: flex; flex-direction: column; gap: var(--s-32); padding: var(--s-40); background: var(--bg-raised); border-radius: var(--radius-s); }
.mr-bk[hidden], .mr-empty[hidden] { display: none; }
.mr-bk__main { display: flex; gap: var(--s-40); }
.mr-bk__photo { flex: none; width: 160px; height: 212px; }
.mr-bk__photo img { object-position: 50% 15%; }
.mr-bk__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-24); }
.mr-bk__when { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-16); }
.mr-bk__state { display: inline-flex; align-items: center; gap: var(--s-8); color: var(--state-ok); }
.mr-bk__state .icon { width: 16px; height: 16px; }
.mr-bk__time { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-bk__date { font: 400 36px/44px var(--serif); }
.mr-bk__range { color: var(--gold); }
.mr-link { display: inline-flex; align-items: center; gap: var(--s-8); font: 500 14px/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mr-link .icon { width: 20px; height: 20px; }
.mr-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.mr-link--muted { color: var(--text-secondary); }
.mr-link--muted:hover { color: var(--text-primary); }
.mr-bk__service { display: flex; flex-direction: column; gap: var(--s-2); }
.mr-bk__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }
.mr-fact { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.mr-fact .label-s { color: var(--text-tertiary); }
.mr-bk__where { display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); }
.mr-place { display: flex; align-items: flex-start; gap: var(--s-12); min-width: 0; }
.mr-place .icon { color: var(--text-secondary); margin-top: 0; }
.mr-place div { display: flex; flex-direction: column; gap: var(--s-2); }
.mr-bk__actions { display: flex; align-items: center; gap: var(--s-32); padding-top: var(--s-24); border-top: 1px solid var(--line-subtle); }
.mr-bk__who { display: none; }
@media (max-width: 767px) {
  .mr-bk { gap: var(--s-24); padding: var(--s-24); }
  .mr-bk__main { display: block; }
  .mr-bk__photo { display: none; }
  .mr-bk__body { gap: var(--s-24); }
  .mr-bk__date { font-size: 30px; line-height: 38px; }
  .mr-bk__who { display: flex; align-items: center; gap: var(--s-16); }
  .mr-bk__who > div { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
  .mr-bk__who .mr-bk__barber { display: flex; flex-wrap: wrap; gap: var(--s-8); }
  .mr-bk__service, .mr-fact--barber { display: none; }
  .mr-bk__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr-bk__where { flex-direction: column; align-items: flex-start; gap: var(--s-12); }
  .mr-bk__actions { flex-direction: column; align-items: stretch; gap: var(--s-16); }
  .mr-bk__actions .mr-link { align-self: center; }
}

/* prázdný stav (3b) */
.mr-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-24); padding: var(--s-48); background: var(--bg-raised); border-radius: var(--radius-s); }
.mr-empty__text { display: flex; flex-direction: column; gap: var(--s-8); }
.mr-empty__slots { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.mr-empty__actions { display: flex; align-items: center; gap: var(--s-32); }
.mr-link--arrow .icon { width: 16px; height: 16px; color: var(--gold); transition: transform .2s var(--ease); }
.mr-link--arrow:hover .icon { transform: translateX(3px); }
@media (max-width: 767px) {
  .mr-empty { gap: var(--s-20); padding: var(--s-24); }
  .mr-empty__actions { align-self: stretch; }
  .mr-empty__actions .btn { width: 100%; }
  .mr-empty__actions .mr-link { display: none; }
  .mr-empty .heading-m { font-size: 28px; line-height: 36px; }
  .mr-empty .body-m { font: 400 15px/22px var(--sans); }
}

/* minulé návštěvy (HistoryRow) */
.mr-hlist { display: flex; flex-direction: column; }
.mr-hr { display: grid; grid-template-columns: 96px 52px minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s-24); padding: var(--s-20) 0; border-top: 1px solid var(--line-subtle); }
.mr-hr__when { display: flex; flex-direction: column; gap: var(--s-2); }
.mr-hr__info { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.mr-hr__mdate { display: none; }
.mr-hr__price { text-align: right; color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mr-hr__again { white-space: nowrap; }
.mr-hr__again .icon { display: none; }
/* užší sloupec (tablet, malý notebook, mobil): kompaktní řádek s textovým odkazem, jako na mobilu ve Figmě */
@media (max-width: 1180px) {
  .mr-hr { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "face info price" "face again again"; align-items: start; column-gap: var(--s-16); row-gap: 0; padding: var(--s-16) 0; }
  .mr-hr__when { display: none; }
  .mr-hr .portrait { grid-area: face; }
  .mr-hr__info { grid-area: info; gap: var(--s-4); }
  .mr-hr__price { grid-area: price; font: 500 14px/20px var(--sans); }
  .mr-hr__again { grid-area: again; align-self: start; justify-self: start; display: inline-flex; align-items: center; gap: var(--s-8); height: auto; padding: var(--s-8) 0 0; border: 0; border-radius: 0; color: var(--gold); font: 500 13px/18px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
  .mr-hr__again:hover { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; }
  .mr-hr__again .icon { display: block; width: 16px; height: 16px; }
  .mr-hr__meta { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-12); }
  .mr-hr__mdate { display: inline; }
}

/* boční sloupec: voucher, pravidla, pomoc */
.mr-vouchers { display: flex; flex-direction: column; gap: var(--s-24); }
.mr-vouchers[hidden], .mr-rules[hidden] { display: none; }
.mr-vouchers__list { display: flex; flex-direction: column; gap: var(--s-20); }
.mr-voucher { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-20); padding: var(--s-32); border-radius: var(--radius-s); background: var(--stuk); color: var(--text-on-light); }
.mr-voucher__label { display: flex; align-items: center; gap: var(--s-8); color: var(--text-on-light-muted); }
.mr-voucher__what { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-voucher__what p:last-child { color: var(--text-on-light-muted); }
.mr-voucher__meta { display: flex; gap: var(--s-32); }
.mr-voucher__meta div { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-voucher__meta dt { color: var(--text-on-light-muted); }
.mr-voucher__meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.mr-voucher .mr-link .icon { width: 20px; height: 20px; }
.mr-voucher :focus-visible { outline-color: var(--text-on-light); }
.mr-rules { display: flex; flex-direction: column; gap: var(--s-12); padding: var(--s-24); background: var(--bg-raised); border-radius: var(--radius-s); }
.mr-help { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-12); padding: var(--s-24); border: 1px solid var(--line-subtle); border-radius: var(--radius-s); }
.mr-phone { display: inline-flex; align-items: center; gap: var(--s-8); }
.mr-phone .icon { color: var(--gold); }
.mr-phone:hover { color: var(--gold); }
@media (min-width: 1024px) and (max-width: 1180px) { .mr-voucher { padding: var(--s-24); } }
@media (max-width: 1023px) { [data-vouch-title] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } } /* na mobilu je voucher bez nadpisu, jen karta (Figma) */
@media (max-width: 767px) { .mr-voucher { padding: var(--s-32); } }

/* ---------- přesun termínu ---------- */
.mr-rs { display: grid; grid-template-columns: minmax(0, 800fr) minmax(0, 400fr); column-gap: var(--s-80); align-items: start; padding-top: var(--s-64); padding-bottom: var(--s-128); }
.mr-rs__main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-40); min-width: 0; }
.mr-rs__main > * { max-width: 100%; }
.mr-head--m { gap: var(--s-16); }
.mr-head--m p { max-width: 720px; }
.mr-rs__barber { display: flex; align-items: center; gap: var(--s-16); }
.mr-rs__barber > div { display: flex; flex-direction: column; gap: var(--s-2); }
.mr-rs__barber .mr-meta { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-12); }
.mr-picker { display: flex; flex-direction: column; gap: var(--s-16); align-self: stretch; min-width: 0; }
.mr-month { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); }
.mr-arrows { display: flex; gap: var(--s-8); }
.mr-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); transition: border-color .2s var(--ease), color .2s var(--ease); }
.mr-arrow:hover:not(:disabled) { border-color: var(--text-primary); }
.mr-arrow:disabled { color: var(--text-tertiary); border-color: var(--line-subtle); cursor: default; }
.mr-days { display: flex; gap: var(--s-8); overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.mr-days::-webkit-scrollbar { display: none; }
.mr-day-in { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mr-day {
  position: relative; flex: 0 0 calc((100% - 7 * var(--s-8)) / 8); min-width: 64px; height: 114px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-16) var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); cursor: pointer; text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.mr-day .label-s { color: var(--text-secondary); }
.mr-day .numeral-l { color: var(--text-primary); }
.mr-day .body-xs { color: var(--text-secondary); white-space: nowrap; }
.mr-day:hover { border-color: var(--text-secondary); }
.mr-day-in:checked + .mr-day { background: var(--text-primary); border-color: var(--text-primary); }
.mr-day-in:checked + .mr-day .label-s, .mr-day-in:checked + .mr-day .body-xs { color: var(--text-on-light-muted); }
.mr-day-in:checked + .mr-day .numeral-l { color: var(--text-on-light); }
.mr-day-in:disabled + .mr-day { border-color: var(--line-subtle); cursor: default; pointer-events: none; }
.mr-day-in:disabled + .mr-day .label-s, .mr-day-in:disabled + .mr-day .numeral-l, .mr-day-in:disabled + .mr-day .body-xs { color: var(--text-tertiary); }
.mr-day-in:focus-visible + .mr-day { outline: 2px solid var(--gold); outline-offset: 3px; }
.mr-times-wrap { display: flex; flex-direction: column; gap: var(--s-16); align-self: stretch; }
.mr-dayhead { display: flex; align-items: baseline; gap: var(--s-12); }
.mr-times { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.mr-slot-in { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mr-times .slot { cursor: pointer; }
.mr-slot-in:checked + .slot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.mr-slot-in:focus-visible + .slot { outline: 2px solid var(--gold); outline-offset: 3px; }
.mr-times__empty { color: var(--text-secondary); }
.mr-sum { display: flex; flex-direction: column; gap: var(--s-24); padding: var(--s-32); background: var(--bg-raised); border-radius: var(--radius-s); }
.mr-sum__block { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-old del { text-decoration: line-through; text-decoration-thickness: 1px; }
.mr-sum__time { color: var(--gold); }
.mr-sum__time.is-empty { color: var(--text-tertiary); }
.mr-sum__error { color: var(--state-error); margin-top: calc(var(--s-8) * -1); }
.mr-sum__error[hidden] { display: none; }
@media (max-width: 1180px) { .mr-rs { column-gap: var(--s-48); } }
@media (max-width: 1023px) {
  .mr-rs { display: flex; flex-direction: column; gap: var(--s-32); padding-top: var(--s-24); padding-bottom: var(--s-48); }
  .mr-rs__main { gap: var(--s-32); align-self: stretch; }
  .mr-sum { align-self: stretch; }
}
@media (max-width: 767px) {
  .mr-head--m { gap: var(--s-12); }
  .mr-head--m p { font: 400 16px/26px var(--sans); }
  .mr-day { flex: 0 0 64px; }
  .mr-sum { padding: var(--s-24); }
  .mr-days { margin-right: calc(var(--pad-x) * -1); padding-right: var(--pad-x); } /* pás dnů vyjede až k okraji displeje */
}

/* ---------- zrušení: dialog (desktop) / spodní panel (mobil) ---------- */
.mr-dialog { width: min(560px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 32px); padding: var(--s-48); border: 1px solid var(--line-subtle); border-radius: var(--radius-s); background: var(--bg-raised); color: var(--text-primary); overflow-y: auto; overscroll-behavior: contain; }
.mr-dialog[open] { display: flex; flex-direction: column; gap: var(--s-32); }
.mr-dialog::backdrop { background: rgba(15, 15, 17, .8); } /* Figma: Scrim bg/page 80 % */
body:has(dialog[open]) { overflow: hidden; }
.mr-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-16); }
.mr-dialog__title { font: 400 36px/44px var(--serif); }
.mr-dialog__close { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: var(--s-8); color: var(--text-secondary); }
.mr-dialog__close:hover { color: var(--text-primary); }
.mr-dialog__what { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-policy { display: flex; flex-direction: column; gap: var(--s-12); padding: var(--s-20); background: var(--bg-sunken); border-radius: var(--radius-s); }
.mr-policy__rule { display: flex; align-items: flex-start; gap: var(--s-12); }
.mr-policy__rule > div { display: flex; flex-direction: column; gap: var(--s-4); }
.mr-policy__rule .icon { color: var(--state-ok); }
.mr-policy__rule .ui-s { color: var(--state-ok); }
.mr-policy.is-late .mr-policy__rule .icon, .mr-policy.is-late .mr-policy__rule .ui-s { color: var(--state-error); }
.mr-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-32); }
.mr-dialog__actions [hidden] { display: none; }
.mr-quiet { white-space: nowrap; font: 500 14px/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.mr-quiet:hover { color: var(--text-primary); }
.mr-dialog__alt { display: flex; align-items: center; justify-content: flex-start; gap: var(--s-8); margin-top: calc(var(--s-8) * -1); }
@media (max-width: 767px) {
  .mr-dialog { width: 100%; max-width: 100%; margin: auto 0 0; padding: var(--s-32) var(--s-20) calc(var(--s-40) + env(safe-area-inset-bottom)); gap: var(--s-24); border-width: 1px 0 0; border-radius: 0; }
  .mr-dialog__title { font-size: 28px; line-height: 36px; }
  .mr-dialog__close { margin-top: var(--s-4); }
  .mr-dialog__actions { flex-direction: column; align-items: stretch; gap: var(--s-16); }
  .mr-dialog__actions .mr-quiet { align-self: center; }
  .mr-dialog__alt { justify-content: center; margin-top: 0; }
}
