/* Shared surface chrome — weekly builder, Studio, workout-mode */
.th-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #0d100f;
  border-bottom: 1px solid #303834;
  font: 600 0.78rem system-ui, sans-serif;
  position: relative;
  z-index: 9999;
  direction: rtl;
}
.th-nav .brand { color: #b9f24a; }
.th-nav a, .th-nav .chip {
  color: #f6f8f6;
  border: 1px solid #303834;
  border-radius: 14px;
  padding: 3px 11px;
  text-decoration: none;
}
.th-nav .chip.on {
  background: rgba(185, 242, 74, 0.15);
  border-color: rgba(185, 242, 74, 0.4);
}
.th-banner {
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: #f0b542;
  font: 600 0.74rem system-ui, sans-serif;
  padding: 7px 14px;
  text-align: center;
  direction: rtl;
}
.th-btn {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  border: 1px solid #7c3aed;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.th-btn.ghost {
  background: #1a1a2e;
  color: #c4b5fd;
  border-color: #3a3a5a;
}

/* Shared a11y: visible focus, skip link, live-region helper, reduced motion */
:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -48px;
  z-index: 10000;
  background: #b9f24a;
  color: #101312;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kbd-hint {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 4px;
}
.ex-media-wrap { width: 100%; }
.ex-media {
  width: 100%;
  max-height: 240px;
  border: 0;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 16 / 9;
}
video.ex-media { max-height: 160px; aspect-ratio: auto; }
.ex-media-fallback {
  background: #111513;
  border: 1px solid #303834;
  border-radius: 10px;
  padding: 12px 14px;
  color: #a7b1ab;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ex-media-link {
  display: inline-block;
  margin-top: 6px;
  color: #b9f24a;
  font-weight: 700;
}
.source-pill { font-size: 0.72rem; }

.th-gate {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  color: #f0b542;
  line-height: 1.5;
}
.th-gate p { margin: 0 0 8px; }
.th-gate p:last-child { margin-bottom: 0; }
.th-gate-link { color: #b9f24a; font-weight: 700; }
.print-sheet { max-width: 720px; margin: 0 auto; }
.print-sheet h1 { font-size: 1.8rem; margin: 0 0 8px; }
.print-brand { font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.print-phase { margin: 18px 0; }
.print-phase h2 { font-size: 1.1rem; margin: 0 0 8px; }
.print-sheet table { width: 100%; border-collapse: collapse; }
.print-sheet th, .print-sheet td {
  text-align: start;
  padding: 8px 6px;
  border-bottom: 1px solid #303834;
}
.print-watermark {
  margin: 20px 0 0;
  padding: 10px 12px;
  border: 1px dashed #f0b542;
  color: #f0b542;
  font-weight: 700;
}
.print-footer { margin-top: 24px; color: #a7b1ab; font-size: 0.85rem; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .print-sheet th, .print-sheet td { border-bottom-color: #ccc; }
  .print-footer { color: #444; }
}

.th-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}
.th-steps li {
  background: #1a1f1d;
  border: 1px solid #303834;
  border-radius: 12px;
  padding: 10px 12px;
  color: #a7b1ab;
  font-size: 0.82rem;
  line-height: 1.45;
}
.th-steps b { display: block; color: #f6f8f6; margin-bottom: 4px; }
@media (max-width: 700px) {
  .th-steps { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
