/* ---------- domov ---------- */
.tape {
  height: 8px;
  margin: 0 -16px 18px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #15130f 10px 20px);
  opacity: 0.9;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-nav {
  display: flex;
  gap: 8px;
}

.wordmark {
  margin-top: 10px;
  font: 900 clamp(68px, 21vw, 120px) / 0.82 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Ř a Č mají háček nad versálkou: druhý řádek potřebuje vzduch nahoře */
.wordmark span {
  display: inline-block;
  margin-top: 0.12em;
  color: var(--red);
}

.hero .lede {
  margin-top: 14px;
}

.today {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(90% 80% at 100% 0, rgba(224, 54, 44, 0.2), transparent 60%),
    var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

.today-plate {
  position: absolute;
  top: -34px;
  right: -40px;
  transform: rotate(-14deg);
}

.today-body {
  position: relative;
}

.today-body > * + * {
  margin-top: 14px;
}

.today-title {
  max-width: 10ch;
  font-size: clamp(40px, 12vw, 56px);
  text-transform: uppercase;
}

.today-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-step {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--bg-sunk);
  font: 600 11px/1 var(--f-mono);
  color: var(--chalk-2);
}

.resume {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1.5px var(--yellow);
  text-decoration: none;
}

.resume-title {
  margin-top: 4px;
  font-weight: 700;
}

.resume .muted {
  margin-top: 2px;
}

.week > * + * {
  margin-top: 10px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day {
  display: grid;
  justify-items: center;
  gap: 6px;
  font: 600 11px/1 var(--f-mono);
  color: var(--chalk-3);
}

.day-dot {
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.day.is-on .day-dot {
  background: radial-gradient(circle, var(--bg) 0 18%, var(--red) 20%);
  box-shadow: none;
}

.day.is-today {
  color: var(--chalk);
}

.day.is-today .day-dot {
  box-shadow: inset 0 0 0 2px var(--chalk);
}

.day.is-today.is-on .day-dot {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--chalk);
}

.modes > * + * {
  margin-top: 10px;
}

.mode-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode {
  --pc: var(--red);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}

.mode:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 3px 0 0 var(--pc);
}

.mode:active {
  transform: scale(0.985);
}

.mode-blue { --pc: var(--blue); }
.mode-yellow { --pc: var(--yellow); }
.mode-green { --pc: var(--green); }
.mode-white { --pc: var(--white); }
.mode-steel { --pc: var(--steel); }

.mode-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mode-name {
  font: 800 23px/1 var(--f-display);
  text-transform: uppercase;
}

.mode-desc {
  color: var(--chalk-3);
  font-size: 14px;
  line-height: 1.35;
}

.mode-tag {
  font: 600 10px/1.2 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chalk-3);
  text-align: right;
}

/* ---------- zpracování ---------- */
.think {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 0 8px;
  text-align: center;
}

.think-plate .plate {
  animation: spin 2.8s linear infinite;
}

.think.is-error .think-plate .plate {
  animation: none;
  filter: grayscale(1);
  opacity: 0.6;
}

.think-status {
  font: 800 clamp(24px, 7vw, 30px) / 1.05 var(--f-display);
  text-transform: uppercase;
  max-width: 20ch;
}

.think.is-error .think-status {
  color: #ff8a80;
  text-transform: none;
  font-size: 22px;
}

.think-clock {
  font: 500 13px/1 var(--f-mono);
  color: var(--chalk-3);
}

.loading-screen {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--chalk-2);
}

.spinner-plate .plate {
  animation: spin 2.4s linear infinite;
}

/* ---------- rozbor ---------- */
.verdict h1 {
  margin-top: 8px;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 0.98;
}

.applied {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 4px 0 0 var(--tone, var(--chalk-3)), inset 0 0 0 1px var(--line);
}

.applied.is-good { --tone: var(--green); }
.applied.is-warn { --tone: var(--yellow); }
.applied.is-bad { --tone: #ff7a6e; }

.applied-tag {
  font: 800 18px/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tone);
}

.moments > * + * {
  margin-top: 10px;
}

.moment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

.moment.is-main {
  box-shadow: inset 0 0 0 1.5px rgba(224, 54, 44, 0.7);
}

.moment-play {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 44px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--bg-sunk);
  color: var(--chalk);
  cursor: pointer;
}

.moment-play b {
  font: 800 18px/1 var(--f-display);
  color: var(--red);
}

.moment-body > * + * {
  margin-top: 6px;
}

.moment-time {
  font: 600 11px/1 var(--f-mono);
  color: var(--chalk-3);
}

.moment blockquote {
  font: 600 17px/1.35 var(--f-body);
  color: var(--chalk);
}

.moment blockquote::before {
  content: '„';
  color: var(--red);
}

.moment blockquote::after {
  content: '“';
  color: var(--red);
}

.moment-body > p:not(.moment-time) {
  color: var(--chalk-2);
  font-size: 15px;
}

.moment-drill {
  padding-left: 10px;
  border-left: 2px solid var(--yellow);
}

.moment .btn,
.moment .ghost-btn {
  margin-top: 10px;
}

.fix {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 4px 0 var(--red), inset 0 0 0 1px var(--line);
}

.fix > * + * {
  margin-top: 10px;
}

.fix-title {
  font-size: clamp(28px, 8vw, 36px);
  text-transform: uppercase;
}

.stronger {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(47, 107, 216, 0.14), transparent 70%), var(--bg-raise);
  box-shadow: inset 0 4px 0 var(--blue), inset 0 0 0 1px var(--line);
}

.stronger > * + * {
  margin-top: 12px;
}

.stronger-text {
  font-size: 19px;
  line-height: 1.5;
  color: var(--chalk);
}

.strength {
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: inset 4px 0 0 var(--green), inset 0 0 0 1px var(--line);
}

.strength > * + * {
  margin-top: 6px;
}

.next {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.next .ghost-btn {
  justify-self: center;
}

/* ---------- shrnutí a historie ---------- */
.done-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.done-hero h1 {
  margin-top: 6px;
  font-size: clamp(40px, 12vw, 64px);
  text-transform: uppercase;
}

.done-hero .btn {
  margin-top: 10px;
}

.summary {
  padding: 20px 18px;
  border-radius: 20px;
  background: var(--chalk);
  color: var(--bg);
}

.summary > * + * {
  margin-top: 12px;
}

.summary .kicker {
  color: rgba(18, 17, 16, 0.6);
}

.takeaway {
  font-size: clamp(30px, 9vw, 42px);
  text-transform: uppercase;
}

.evidence {
  display: grid;
  gap: 10px;
}

.evidence figure {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(18, 17, 16, 0.08);
}

.evidence figcaption {
  font: 600 10px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.evidence blockquote {
  margin-top: 6px;
  font-weight: 600;
}

.evidence .is-last {
  background: rgba(54, 168, 90, 0.18);
}

.compare > * + * {
  margin-top: 10px;
}

.compare-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 540px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table thead th {
  font: 600 10px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chalk-3);
}

.compare-table tbody th {
  color: var(--chalk-2);
  font-weight: 500;
}

.compare-table td {
  font: 800 19px/1 var(--f-display);
}

.hist-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
}

.hist-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hist-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-line {
  font: 700 20px/1.1 var(--f-display);
  color: var(--chalk-2);
}

.hist-fb > * + * {
  margin-top: 8px;
}

.hist-verdict {
  font: 700 22px/1.1 var(--f-display);
}

/* ---------- nastavení ---------- */
.settings {
  display: grid;
  gap: 8px;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.setting > span {
  display: grid;
  gap: 3px;
}

.setting.is-stack {
  flex-direction: column;
  align-items: stretch;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.2s;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--chalk);
  transition: transform 0.2s var(--ease);
}

.switch:checked {
  background: var(--green);
}

.switch:checked::after {
  transform: translateX(20px);
}

/* ---------- zámek ---------- */
.lock {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-top: 8vh;
}

.lock .tape {
  width: calc(100% + 32px);
}

.lock-form {
  display: grid;
  gap: 12px;
  width: 100%;
}

/* ---------- klinika ---------- */
.clinic-pick {
  display: grid;
  gap: 10px;
}

.view.is-busy .clinic-pick,
.view.is-busy .rec-wrap {
  opacity: 0.4;
  pointer-events: none;
}

.clinic-status:empty {
  display: none;
}

.clinic-status > * + * {
  margin-top: 10px;
}

.clinic-status .think-status {
  text-align: center;
}

.speakers {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.speaker {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.speaker span {
  color: var(--chalk-2);
  font-size: 15px;
}

.speaker:hover {
  box-shadow: inset 0 0 0 1.5px var(--chalk);
}

.original .viz-label {
  color: var(--blue);
}
