/* Profil trenéra V2 — „Tiché měřítko“: dostupnost po dnech + klientský booking. Vše na grafitu. UKÁZKA bez backendu, fiktivní data. */

@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/albert-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --stage: #0f1011;
  --bg: #18191b;
  --raise: #202124;
  --raise-2: #27282b;
  --line: rgba(241, 236, 227, .09);
  --line-2: rgba(241, 236, 227, .18);
  --line-3: rgba(241, 236, 227, .34);
  --fg: #f1ece3;
  --fg-2: #ada79d;
  --fg-3: #8c877f;
  --gold: #c8b289;
  --gold-soft: rgba(200, 178, 137, .38);
  --err: #e39a85;
  --on-gold: #17140f;


  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Albert Sans", "Segoe UI", system-ui, sans-serif;

  --pad: 20px;
  --hit: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .18s;
  --t-med: .26s;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- Stage (mobil = jen aplikace) ---------- */
.stage { min-height: 100%; }
.notes { display: none; }
.device { height: 100%; }
.app {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}

/* ---------- Header ---------- */
.top { padding: calc(14px + env(safe-area-inset-top)) var(--pad) 6px; }
.micro { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.wordmark { font: 500 13px/1 var(--ui); letter-spacing: .02em; color: var(--fg); }
.wordmark__sep { color: var(--fg-3); margin: 0 6px; }
.wordmark__sub { color: var(--fg-2); }
.demo-tag {
  font: 600 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
  border: 1px solid var(--line-2); padding: 6px 8px; border-radius: 2px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Tabs ---------- */
.tabs { display: flex; justify-content: space-between; padding: 0 calc(var(--pad) - 6px); border-bottom: 1px solid var(--line); }
.tab {
  position: relative; flex: 0 1 auto;
  min-height: var(--hit); padding: 0 6px;
  background: none; border: 0;
  font: 600 12px/1 var(--ui); letter-spacing: .13em; text-transform: uppercase;
  color: var(--fg-3);
  transition: color var(--t-fast) var(--ease);
}
.tab:hover { color: var(--fg-2); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: -2px; }

/* ---------- Screen ---------- */
.screen { overflow-y: auto; overscroll-behavior: contain; }
.panel { padding: 30px var(--pad) 44px; outline: none; }
.panel.enter { animation: panel-in .24s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel:focus-visible { box-shadow: inset 2px 0 0 var(--gold); }

/* moment rozhodnutí: nadpis + jedna věta + stav */
.moment { margin-bottom: 30px; }
.section-title { font: 400 32px/1.15 var(--display); letter-spacing: -.014em; margin-bottom: 10px; }
.moment__lead { color: var(--fg-2); font-size: 15px; line-height: 1.6; max-width: 36ch; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 22px; }

.label { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.label--quiet { color: var(--fg-3); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 13px; }
.hint { font-size: 13.5px; line-height: 1.55; color: var(--fg-3); }
.hint--center { text-align: center; margin-top: 10px; }
.hint--row { padding: 0 0 14px; }
.error { font-size: 13.5px; line-height: 1.5; color: var(--err); display: flex; gap: 6px; }
.error::before { content: ""; width: 10px; height: 1px; background: currentColor; margin-top: .7em; flex: none; }

/* ---------- Identita ---------- */
.avatar {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line);
  font: 400 17px/1 var(--display); letter-spacing: .03em; color: var(--fg);
}
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.identity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 18px; }
.display-name { font: 400 33px/1.12 var(--display); letter-spacing: -.018em; overflow-wrap: anywhere; }
.identity__meta { margin-top: 6px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* ---------- Skupiny a progresivní odhalení ---------- */
.groups { border-top: 1px solid var(--line); }
.groups--tight { margin-top: 26px; }
.group-row { border-bottom: 1px solid var(--line); }
.group-row__head {
  width: 100%; min-height: 68px; padding: 12px 0; background: none; border: 0; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
.group-row__head--static { cursor: default; min-height: 64px; }
.group-row__text { display: grid; gap: 5px; min-width: 0; }
.group-row__label { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.group-row__value { font-size: 16px; line-height: 1.5; color: var(--fg); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.group-row__value--clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-row__value.is-empty { color: var(--fg-3); }
.group-row__act { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); min-height: var(--hit); }
.group-row__head:hover .group-row__act { color: var(--fg); }
.group-row__head:focus-visible { outline-offset: 2px; }
.chev { transition: transform var(--t-med) var(--ease); }
[aria-expanded="true"] .chev { transform: rotate(180deg); }

.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease); }
.reveal.is-open { grid-template-rows: 1fr; }
.reveal__inner { min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; padding: 0 2px; transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
.reveal.is-open .reveal__inner { visibility: visible; opacity: 1; transition: opacity var(--t-med) var(--ease), visibility 0s; }
.reveal.is-open .reveal__inner { padding-bottom: 20px; }

/* ---------- Pole ---------- */
.fields { padding-bottom: 2px; }
.field { display: grid; gap: 4px; padding-top: 6px; }
.field + .field { padding-top: 16px; }
.field > label, .field__head label, .field > legend, .time-field label {
  font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.field > legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
fieldset.field { display: block; padding-top: 22px; }
fieldset.field .chips { clear: both; }
.field__head { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: 13px; line-height: 1.5; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--fg-2); }

.input {
  width: 100%; min-height: var(--hit);
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 9px 0 10px;
  font: 400 17px/1.4 var(--ui); color: var(--fg);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input:hover { border-bottom-color: var(--line-3); }
.input:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.input[aria-invalid="true"] { border-bottom-color: var(--err); box-shadow: 0 1px 0 0 var(--err); }
.input--area { resize: none; line-height: 1.5; padding-top: 10px; min-height: 104px; }
.field .hint, .field .error { margin-top: 6px; }

/* ---------- Tlačítka ---------- */
.btn-primary {
  min-height: var(--hit); padding: 0 22px;
  background: var(--gold); color: #17140f; border: 0; border-radius: 2px;
  font: 600 14px/1 var(--ui); letter-spacing: .06em; white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform .12s var(--ease);
}
.btn-primary:hover:not(:disabled) { background: #d4c09b; }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: transparent; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: default; }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--hit); padding: 0 16px;
  background: none; border: 1px solid var(--line-2); border-radius: 2px;
  font: 500 14px/1 var(--ui); color: var(--fg);
  transition: border-color var(--t-fast) var(--ease);
}
.btn-line:hover:not(:disabled) { border-color: var(--line-3); }
.btn-line:disabled { color: var(--fg-3); border-color: var(--line); cursor: default; }
.btn-line--block { display: flex; width: 100%; justify-content: center; min-height: 52px; font-size: 15px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--hit); padding: 0; background: none; border: 0;
  font: 500 14px/1 var(--ui); color: var(--fg);
  text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 5px;
}
.btn-text:hover { text-decoration-color: var(--fg); }
.btn-text--end { min-width: var(--hit); justify-content: flex-end; color: var(--fg-2); text-decoration: none; font-size: 14px; }
.btn-text--end:hover { color: var(--fg); }
.btn-text--center { justify-self: center; color: var(--fg-2); }
.btn-add {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; margin-top: 22px;
  background: none; border: 1px solid var(--line-2); border-radius: 2px;
  font: 500 15px/1 var(--ui); color: var(--fg);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.btn-add:hover { border-color: var(--line-3); background: rgba(241,236,227,.03); }
.icon-btn { width: var(--hit); height: var(--hit); display: grid; place-items: center; background: none; border: 0; color: var(--fg-2); border-radius: 50%; margin-right: -10px; }
.icon-btn:hover { color: var(--fg); }

/* ---------- Jak profil působí veřejně ---------- */
.public-look { margin-top: 34px; display: grid; gap: 12px; justify-items: start; }
.peek__row {
  width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.peek__text { min-width: 0; display: grid; gap: 3px; }
.peek__name { font: 600 15px/1.4 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek__meta { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek__price { font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 100%; }
.meter i { height: 3px; background: var(--line-2); border-radius: 1px; transition: background-color var(--t-med) var(--ease); }
.meter i.is-on { background: var(--fg); }
.meter__text { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); margin-top: -4px; }

/* ---------- Služby (správa) ---------- */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__btn {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  min-height: 84px; padding: 16px 0; background: none; border: 0; text-align: left;
}
.service__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); }
.service__text { min-width: 0; display: grid; gap: 4px; }
.service__name { display: block; font: 500 17px/1.4 var(--ui); overflow-wrap: anywhere; }
.service__meta { display: block; font-size: 14px; line-height: 1.5; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.service__side { display: grid; justify-items: end; gap: 4px; }
.service__price { font: 400 22px/1.2 var(--display); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.service__edit { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); transition: color var(--t-fast) var(--ease); }
.service__btn:hover .service__edit { color: var(--fg); }
.service__btn:focus-visible { outline-offset: 2px; }
.service.is-changed .service__meta::after { content: "· upraveno"; margin-left: 6px; color: var(--fg); }

/* ---------- Dostupnost (Configure) ---------- */
.switch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.switch-row__title { font: 500 17px/1.4 var(--ui); margin-bottom: 4px; }
.switch { position: relative; width: 60px; height: var(--hit); background: none; border: 0; padding: 0; flex: none; }
.switch::before { content: ""; position: absolute; left: 2px; right: 2px; top: 8px; bottom: 8px; border-radius: 14px; border: 1px solid var(--line-3); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.switch__thumb { position: absolute; top: 13px; left: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg-3); transition: transform var(--t-med) var(--ease), background-color var(--t-fast) var(--ease); }
.switch[aria-checked="true"]::before { border-color: var(--gold); background: rgba(200, 178, 137, .16); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(26px); background: var(--gold); }

/* týdenní tečky: odvozené z rozvrhu, ne dekorace */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 26px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.week__day { display: grid; justify-items: center; gap: 9px; }
.week__abbr { font: 600 12px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.week__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.week__h { font-size: 12.5px; line-height: 1.4; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.week__day.is-on .week__abbr { color: var(--fg); }
.week__day.is-on .week__dot { background: var(--gold); box-shadow: none; }
.week__day.is-on .week__h { color: var(--fg-2); }

.quick { margin-top: 22px; display: grid; gap: 8px; }
.quick .hint { line-height: 1.5; }
.list-label { margin: 30px 0 4px; }

/* řádky dnů: název / stav / čas mají vlastní řádek a rytmus */
.dayrows { border-top: 1px solid var(--line); }
.dayrow { border-bottom: 1px solid var(--line); }
.dayrow__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dayrow__main {
  min-width: 0; min-height: 76px; padding: 12px 0; background: none; border: 0; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
}
.dayrow__text { display: grid; gap: 4px; min-width: 0; }
.dayrow__name { font: 500 17px/1.4 var(--ui); color: var(--fg-2); }
.dayrow__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.dayrow__time { font-variant-numeric: tabular-nums; }
.dayrow.is-on .dayrow__name { color: var(--fg); }
.dayrow.is-on .dayrow__state { color: var(--fg-2); }
.dayrow.is-on .dayrow__time { color: var(--fg); }
.dayrow.is-bad .dayrow__time { color: var(--err); }
.dayrow__main:hover .group-row__act { color: var(--fg); }
.dayrow__main:focus-visible { outline-offset: 2px; }
.dayrow__detail { padding: 2px 2px 22px; }
.dayrow.is-open .dayrow__name { color: var(--fg); }

.times { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: end; gap: 8px; padding-top: 4px; }
.time-field { display: grid; gap: 4px; }
.times__dash { height: 1px; background: var(--line-3); margin-bottom: 22px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1.4px solid var(--fg-2); border-bottom: 1.4px solid var(--fg-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select { appearance: none; -webkit-appearance: none; font: 400 25px/1.3 var(--display); font-variant-numeric: lining-nums tabular-nums; padding-right: 22px; cursor: pointer; }
.select option { background: var(--raise); color: var(--fg); font: 400 16px var(--ui); }
.dayrow .error { margin-top: 8px; }

.ruler { margin: 22px 0 4px; }
.ruler__track {
  position: relative; height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px calc(100% / 16)) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px calc(100% / 4)) left bottom / 100% 14px no-repeat;
  border-bottom: 1px solid var(--line-2);
}
.ruler__track::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; height: 14px; background: var(--line-3); }
.ruler__range { position: absolute; bottom: -1px; height: 2px; background: var(--gold); transition: left var(--t-med) var(--ease), width var(--t-med) var(--ease); }
.ruler__labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ruler__labels span { width: 0; display: flex; justify-content: center; }
.ruler__labels span:first-child { justify-content: flex-start; }
.ruler__labels span:last-child { justify-content: flex-end; width: auto; }

/* ---------- Klientský booking (Decide / Operate) — stále grafit ---------- */
.panel--client { padding-top: 16px; padding-bottom: 28px; }
.ctop { display: flex; align-items: center; gap: 4px; min-height: var(--hit); }
.ctop__back { margin: 0 4px 0 -12px; color: var(--fg); }
.ctop__text { display: grid; gap: 2px; min-width: 0; }
.ctop__crumb { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.ctop__demo { font-size: 13px; line-height: 1.4; color: var(--fg-3); }

.cprog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0 26px; }
.cprog__i { display: grid; gap: 8px; }
.cprog__bar { height: 2px; border-radius: 1px; background: var(--line-2); transition: background-color var(--t-med) var(--ease); }
.cprog__t { font-size: 12.5px; line-height: 1.4; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cprog__i.is-done .cprog__bar { background: var(--fg-2); }
.cprog__i.is-done .cprog__t { color: var(--fg-2); }
.cprog__i.is-current .cprog__bar { background: var(--gold); }
.cprog__i.is-current .cprog__t { color: var(--fg); font-weight: 600; }

.chead { font: 400 28px/1.2 var(--display); letter-spacing: -.012em; margin-bottom: 8px; outline: none; }
.clead { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.clead--wide { max-width: 38ch; }
.btn-text--inline { display: inline; min-height: 0; padding: 2px 0; margin-left: 6px; font-size: 14px; color: var(--fg-2); text-decoration-color: var(--line-3); }
.cnote { margin-top: 18px; line-height: 1.55; }
.cempty { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--fg-2); line-height: 1.6; }

/* 1 · profil a služba */
.cprofile { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.cprofile__id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.cprofile__name { font: 400 30px/1.15 var(--display); letter-spacing: -.016em; overflow-wrap: anywhere; }
.cprofile__meta { margin-top: 6px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.cstatus { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--fg); }
.cstatus.is-off { color: var(--fg-3); }
.cstatus.is-off .dot { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-3); }
.cbio { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--fg-2); overflow-wrap: anywhere; white-space: pre-line; }
.cbio.is-empty { color: var(--fg-3); font-style: italic; }

.csvc { margin-top: 14px; border-top: 1px solid var(--line); }
.csvc li { border-bottom: 1px solid var(--line); }
.csvc__opt { position: relative; display: block; cursor: pointer; }
.csvc__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.csvc__body {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  min-height: 84px; padding: 16px 12px; margin: 0 -12px; border-radius: 4px;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.csvc__radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); display: grid; place-items: center; transition: box-shadow var(--t-fast) var(--ease); }
.csvc__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.csvc__text { display: grid; gap: 4px; min-width: 0; }
.csvc__name { font: 500 17px/1.4 var(--ui); overflow-wrap: anywhere; }
.csvc__meta { font-size: 14px; line-height: 1.5; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.csvc__price { font: 400 22px/1.2 var(--display); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.csvc__opt:hover .csvc__body { background: rgba(241, 236, 227, .03); }
.csvc__opt input:checked + .csvc__body { background: var(--raise); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.csvc__opt input:checked + .csvc__body .csvc__radio { box-shadow: inset 0 0 0 1.5px var(--gold); }
.csvc__opt input:checked + .csvc__body .csvc__radio::after { transform: scale(1); }
.csvc__opt input:focus-visible + .csvc__body { outline: 2px solid var(--gold); outline-offset: 2px; }
.csvc__opt input:disabled + .csvc__body { opacity: .5; cursor: default; }

/* 2 · den a čas */
.dayhead { margin: 26px 0 12px; }
.dstrip {
  position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none;
}
.dstrip::-webkit-scrollbar { display: none; }
.dchip {
  position: relative; flex: 0 0 64px; scroll-snap-align: start;
  display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 96px; padding: 10px 4px 12px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 4px; color: var(--fg);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.dchip__a { font: 600 12px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.dchip__n { font: 400 25px/1.15 var(--display); font-variant-numeric: lining-nums; }
.dchip__s { font-size: 12px; line-height: 1.4; color: var(--fg-2); white-space: nowrap; }
.dchip:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--line-3); }
.dchip[aria-pressed="true"] { background: var(--raise-2); border-color: var(--fg); }
.dchip[aria-pressed="true"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; background: var(--gold); border-radius: 1px; }
.dchip:disabled { border-style: dashed; border-color: var(--line); cursor: default; }
.dchip:disabled .dchip__a, .dchip:disabled .dchip__n, .dchip:disabled .dchip__s { color: var(--fg-3); }
.dchip:focus-visible { outline-offset: 2px; }

.dayinfo { margin-top: 20px; }
.dayinfo__t { font: 500 17px/1.4 var(--ui); }
.dayinfo__m { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 4px; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 3px; border: 1px solid var(--line-3); flex: none; }
.lg--sel { background: var(--gold); border-color: var(--gold); }
.lg--busy { border-style: dashed; border-color: var(--line-2); background: linear-gradient(to top right, transparent calc(50% - .75px), var(--fg-3) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }

.slotgroup { margin-top: 22px; }
.slotgroup__t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.slotgroup__n { font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 13px; color: var(--fg-3); }
.slotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; padding: 0 4px; background: transparent; border: 1px solid var(--line-2); border-radius: 4px;
  font: 500 16px/1.3 var(--ui); font-variant-numeric: tabular-nums; color: var(--fg);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.slot:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--fg); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.slot:disabled { border-style: dashed; border-color: var(--line-2); color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--fg-3); cursor: not-allowed; }
.slot:focus-visible { outline-offset: 2px; }

/* 3 · kontrola, 4 · potvrzení */
.review { margin-top: 18px; border-top: 1px solid var(--line); }
.review__row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review__k { font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.review__v { font-size: 16px; line-height: 1.5; color: var(--fg); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.review__act { min-width: 0; }
.review__row--total .review__v { grid-column: 2 / -1; }
.review__price { font: 400 26px/1.2 var(--display); font-variant-numeric: lining-nums; }
.cform { margin-top: 28px; }
.cform__t { margin-bottom: 12px; }
.cform .field + .field { padding-top: 18px; }

.done { padding-top: 8px; }
.done__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); margin-bottom: 22px; animation: pop .36s var(--ease); }
.done__mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.done__eyebrow { color: var(--gold); margin-bottom: 8px; }
.chead--done { margin-bottom: 12px; }
.cdone__alt { margin-top: 24px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Spodní lišta ---------- */
.bar {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.bar__progress { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--gold); }
.bar.is-saving .bar__progress { animation: progress .9s var(--ease) forwards; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.bar__state, .bar__sum {
  min-height: var(--hit); min-width: 0; display: grid; gap: 2px; align-content: center; justify-items: start;
  background: none; border: 0; padding: 0; text-align: left;
}
.bar__line1 { font: 600 14.5px/1.35 var(--ui); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.bar__line2 { font-size: 13px; line-height: 1.4; color: var(--fg-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__state[data-mode="dirty"] .bar__line2 { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.bar__state[data-mode="saved"] .bar__line1::before {
  content: ""; width: 10px; height: 5px; border-left: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(-45deg) translateY(-2px); flex: none;
  animation: tick .35s var(--ease);
}
@keyframes tick { from { opacity: 0; transform: rotate(-45deg) translateY(-2px) scale(.4); } to { opacity: 1; transform: rotate(-45deg) translateY(-2px) scale(1); } }
.bar__state[data-mode="error"] .bar__line1 { color: var(--err); }
.bar__state[data-mode="error"] .bar__line2 { color: var(--fg-2); }

.bar--client { grid-template-columns: minmax(0, 1fr) auto; }
.bar--client .btn-primary { min-height: 48px; }
.bar--client .bar__line1 { font-size: 15px; }

/* ---------- Sheets ---------- */
.sheet { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(8, 8, 9, .62); animation: fade .22s var(--ease); }
.sheet__panel {
  position: relative; width: 100%; max-height: 88%; overflow-y: auto;
  background: var(--raise); border-radius: 14px 14px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.05), 0 -24px 60px -20px rgba(0,0,0,.8);
  padding: 8px var(--pad) calc(22px + env(safe-area-inset-bottom));
  animation: rise .3s var(--ease);
}
.sheet.is-closing .sheet__scrim { animation: fade-out .16s var(--ease) forwards; }
.sheet.is-closing .sheet__panel { animation: sink .16s var(--ease) forwards; }
.sheet__grip { width: 36px; height: 3px; border-radius: 2px; background: var(--line-2); margin: 2px auto 8px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__title { font: 400 26px/1.2 var(--display); letter-spacing: -.01em; }
.sheet__body { display: grid; gap: 4px; }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 8px; }
.sheet__actions > * { justify-content: center; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sink { from { transform: none; opacity: 1; } to { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; min-height: var(--hit); border: 1px solid var(--line-2); border-radius: 2px; font-size: 14px; color: var(--fg-2); white-space: nowrap; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chip input:checked + span { border-color: var(--fg); color: var(--fg); box-shadow: inset 0 -2px 0 var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.affix { position: relative; }
.affix .input { padding-right: 32px; font: 400 28px/1.2 var(--display); font-variant-numeric: lining-nums; }
.affix__suffix { position: absolute; right: 0; bottom: 13px; font-size: 15px; color: var(--fg-2); }

.changes { display: grid; }
.changes li { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.changes li:first-child { padding-top: 6px; }
.changes .c-label { font: 600 12px/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.changes .c-diff { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.changes .c-diff s { color: var(--fg-3); text-decoration-color: var(--fg-3); }
.changes .c-arrow { display: inline-block; width: 14px; height: 10px; margin: 0 8px; vertical-align: 1px; fill: none; stroke: var(--fg-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.changes .c-empty { color: var(--fg-3); font-size: 15px; border: 0; }

/* ---------- Úzké telefony ---------- */
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .tab { letter-spacing: .08em; font-size: 11.5px; padding: 0 4px; }
  .tab::after { left: 4px; right: 4px; }
  .tabs { padding: 0 calc(var(--pad) - 4px); }
  .display-name, .cprofile__name { font-size: 27px; }
  .section-title { font-size: 29px; }
  .chead { font-size: 25px; }
  .identity, .cprofile__id { gap: 12px; }
  .avatar--lg { width: 56px; height: 56px; font-size: 21px; }
  .demo-tag { letter-spacing: .08em; padding: 6px 6px; }
  .btn-primary { padding: 0 16px; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { gap: 2px; }
  .week__h { font-size: 11.5px; }
  .group-row__act .act-text, .dayrow__main .act-text { display: none; }
  .service__icon { display: none; }
  .service__btn { grid-template-columns: minmax(0, 1fr) auto; }
  .csvc__body { gap: 12px; }
  .review__row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 10px; }
  .slotgrid { gap: 6px; }
  .cprog__t { font-size: 12px; }
  .bar { gap: 10px; }
}

/* ---------- Desktop gallery ---------- */
@media (min-width: 960px) {
  html, body { height: auto; }
  body { background: var(--stage); }
  .stage {
    min-height: 100vh;
    display: grid; grid-template-columns: minmax(220px, 300px) 390px minmax(220px, 300px);
    justify-content: center; align-items: center; gap: clamp(40px, 6vw, 96px);
    padding: 48px 40px;
    background: linear-gradient(152deg, #141516 0 46%, #111213 46% 100%);
  }
  .device {
    height: 844px; width: 390px; border-radius: 46px; padding: 10px;
    background: #0b0b0c;
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), -26px 30px 0 -6px rgba(0,0,0,.2), 40px 60px 90px -30px rgba(0,0,0,.85);
  }
  .app { height: 100%; border-radius: 37px; }
  .top { padding-top: 22px; }
  .notes { display: block; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
  .notes__eyebrow { font: 600 11.5px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
  .notes__eyebrow--gap { margin-top: 30px; margin-bottom: 4px; }
  .notes__title { font: 400 38px/1.05 var(--display); letter-spacing: -.015em; color: var(--fg); margin: 14px 0 0; padding-bottom: 14px; position: relative; }
  .notes__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 1px; background: var(--gold); }
  .notes__lead { margin-top: 18px; }
  .notes__list { margin-top: 26px; border-top: 1px solid var(--line); }
  .notes__list > div, .state > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
  .notes dt { font: 600 11.5px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
  .notes dd { color: var(--fg-2); }
  .spec-display { font-family: var(--display); font-size: 17px; line-height: 1; color: var(--fg); }
  .swatches { display: flex; gap: 6px; padding-top: 4px; }
  .sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
  .notes__foot { margin-top: 26px; font-size: 13px; color: var(--fg-3); }
  .state { margin-top: 10px; border-top: 1px solid var(--line); }
  .state dd { color: var(--fg); }
  .changes--compact li { padding: 9px 0; }
  .changes--compact .c-diff { font-size: 13.5px; color: var(--fg-2); }
  .peek__row--desk { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .bar.is-saving .bar__progress { animation: none; width: 100%; }
}
