:root { --purple-dark: #16082d; --gold: #ffc627; --ink: #f8f5ff; --muted: #c9bfd9; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 20% 0%, #6f3daa 0, transparent 38%), radial-gradient(circle at 100% 100%, #3e176e 0, transparent 44%), var(--purple-dark); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { position: relative; width: min(1100px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 32px 0; }
.hero { position: absolute; top: 44%; left: 0; width: 100%; text-align: center; transform: translateY(-50%); }
.hero h1 { margin: 0; color: var(--gold); font-size: clamp(18px, 3vw, 30px); font-weight: 800; letter-spacing: .03em; }
.time-display { display: block; margin: 12px 0 0; color: #fff; font-variant-numeric: tabular-nums; font-size: clamp(100px, 24vw, 260px); font-weight: 900; letter-spacing: -.11em; line-height: .82; }
.rotation-details { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.assignment { display: grid; min-width: 104px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(17,5,36,.35); text-align: left; }
.assignment strong { color: var(--gold); font-size: 11px; text-transform: uppercase; }
.assignment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: flex; justify-content: center; gap: 22px; margin-top: 25px; }
.control-button { width: 38px; height: 38px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 23px; }
.control-button:hover { color: var(--gold); }
.control-button:disabled { visibility: hidden; }
.timeline-section { position: absolute; right: 0; bottom: clamp(34px, 8vh, 90px); left: 0; }
.schedule { display: flex; justify-content: center; gap: clamp(8px, 1vw, 16px); margin: 0; padding: 0; list-style: none; }
.schedule-item { position: relative; display: grid; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; transition: color .2s ease, opacity .2s ease; }
.schedule-item span { font-size: clamp(20px, 3.5vw, 42px); font-weight: 750; }
.schedule-item small { max-width: 100px; margin-top: 3px; font-size: 10px; font-weight: 750; line-height: 1.1; }
.schedule-item::after { content: '·'; position: absolute; margin-left: calc(100% + clamp(8px, 1vw, 16px)); color: rgba(255,255,255,.2); font-size: clamp(20px, 3.5vw, 42px); }
.schedule-item:last-child::after { display: none; }
.schedule-item.is-active { color: var(--gold); }
.schedule-item.is-complete { opacity: .35; }
.schedule-dialog { width: min(700px, calc(100% - 28px)); padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; color: var(--ink); background: #211037; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.schedule-dialog::backdrop { background: rgba(8,2,18,.76); backdrop-filter: blur(5px); }
.schedule-dialog form { padding: 24px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 2px 0 0; font-size: 25px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.close-button { padding: 0 4px; border: 0; color: var(--muted); background: transparent; font-size: 30px; line-height: 1; }
.dialog-help { margin: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.schedule-dialog textarea { width: 100%; min-height: 260px; resize: vertical; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: var(--ink); background: #130822; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; }
.count-field { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.count-field input { width: 68px; padding: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: var(--ink); background: #130822; }
.schedule-status { min-height: 18px; margin: 0 0 8px; color: #ff9cae; font-size: 12px; }
.apply-button { width: 100%; padding: 12px 18px; border: 0; border-radius: 10px; color: #241038; background: var(--gold); font-weight: 850; }
@media (max-width: 650px) {
  .shell { width: min(100% - 20px, 1100px); }
  .hero { top: 42%; }
  .time-display { font-size: clamp(84px, 25vw, 150px); }
  .rotation-details { flex-wrap: wrap; gap: 6px; margin-top: 18px; }
  .assignment { min-width: 43%; padding: 6px 9px; }
  .timeline-section { bottom: 24px; }
  .schedule { flex-wrap: wrap; gap: 16px 22px; }
  .schedule-item span { font-size: 21px; }
  .schedule-item small { max-width: 90px; font-size: 9px; }
  .schedule-item::after { display: none; }
  .schedule-dialog form { padding: 18px; }
  .schedule-dialog textarea { min-height: 220px; }
}
