.ct-main { --max-width: 1180px; padding-top: 54px; }
.ct-intro { max-width: 860px; margin-bottom: 34px; }
.ct-intro h1 { max-width: 860px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; }
.ct-workspace { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; gap: 22px; }
.ct-settings { display: grid; gap: 16px; min-width: 0; }
.ct-panel, .ct-stage { padding: 20px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 22px; box-shadow: 0 8px 24px rgb(40 64 96 / 5%); }
.ct-panel-heading { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }
.ct-panel-heading h2 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.035em; }
.ct-step { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; background: var(--page); color: var(--blue-deep); border-radius: 8px; font-size: 12px; font-weight: 750; }

.ct-durations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.ct-durations label { position: relative; cursor: pointer; }
.ct-durations input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ct-durations span { display: grid; min-height: 44px; padding: 4px; place-items: center; color: var(--muted); background: var(--page); border: 1px solid var(--paper-line); border-radius: 12px; font-size: 12.5px; font-weight: 750; text-align: center; white-space: nowrap; }
.ct-durations input:checked + span { color: #fff; background: #126ccb; border-color: #126ccb; }
.ct-durations input:focus-visible + span { outline: 3px solid rgb(10 132 255 / 64%); outline-offset: 3px; }
.ct-durations input:disabled + span { cursor: not-allowed; opacity: .55; }
.ct-custom { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.ct-custom input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 10px; font: inherit; font-size: 15px; }
.ct-check { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.ct-check input { width: 19px; height: 19px; margin: 0; accent-color: #126ccb; }
.ct-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.ct-stage { position: relative; display: grid; justify-items: center; gap: 20px; min-width: 0; padding: 30px 24px; overflow: hidden; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--blue) 10%, var(--paper)) 0, var(--paper) 62%); }
.ct-stage:fullscreen { align-content: center; width: 100vw; height: 100vh; border-radius: 0; }
.ct-ring { position: relative; width: min(100%, 340px); aspect-ratio: 1; }
.ct-stage:fullscreen .ct-ring { width: min(60vh, 70vw); }
.ct-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ct-ring__track { fill: none; stroke: var(--page); stroke-width: 16; }
.ct-ring__fill { fill: none; stroke: #0a84ff; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .25s linear; }
.ct-ring__text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.ct-time { font-size: clamp(52px, 9vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ct-stage:fullscreen .ct-time { font-size: min(14vh, 16vw); }
.ct-minute { color: var(--muted); font-size: 14px; font-weight: 650; }
.ct-countdown { position: absolute; inset: 8%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle, #ff5b7f 0, #e2365f 100%); border-radius: 50%; font-size: clamp(90px, 16vw, 150px); font-weight: 850; line-height: 1; opacity: 0; transform: scale(.6); pointer-events: none; font-variant-numeric: tabular-nums; }
.ct-countdown.is-visible { opacity: 1; transform: scale(1); }
.ct-stage.is-done .ct-mission__label { display: none; }
.ct-pulse { animation: ct-pulse .9s ease-out; }
@keyframes ct-pulse { 0% { transform: scale(1.18); } 60% { transform: scale(.97); } 100% { transform: scale(1); } }

.ct-mission { width: min(100%, 560px); padding: 16px 20px; text-align: center; background: var(--page); border-radius: 18px; }
.ct-mission__label { margin: 0 0 6px; color: var(--blue-deep); font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.ct-mission__text { margin: 0; color: var(--ink); font-size: clamp(19px, 2.4vw, 25px); font-weight: 750; line-height: 1.3; letter-spacing: -.025em; }
.ct-stage:fullscreen .ct-mission__text { font-size: min(4.4vh, 5vw); }
.ct-pop { animation: ct-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes ct-pop { 0% { opacity: 0; transform: translateY(8px) scale(.94); } 100% { opacity: 1; transform: none; } }

.ct-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ct-controls .calendar-print-button { margin: 0; min-width: 150px; }
.ct-secondary { min-height: 44px; padding: 0 18px; color: var(--ink); background: var(--page); border: 1px solid var(--paper-line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.ct-secondary:hover { border-color: var(--blue); }
.ct-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.ct-guide { margin-top: 56px; }
.ct-guide h2 { margin: 36px 0 14px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.04em; }
.ct-guide h2:first-child { margin-top: 0; }
.ct-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-guide-grid article { padding: 18px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 18px; }
.ct-guide-grid h3 { margin: 0 0 6px; font-size: 16px; }
.ct-guide-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ct-lengths { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ct-lengths li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 14px; font-size: 15px; }
.ct-lengths span { color: var(--muted); }
.ct-context { margin-top: 56px; }

@media (max-width: 860px) {
  .ct-workspace { grid-template-columns: 1fr; }
  .ct-guide-grid { grid-template-columns: 1fr; }
  .ct-lengths li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .ct-pop, .ct-pulse { animation: none; } .ct-ring__fill { transition: none; } }
@media print { .ct-settings, .ct-controls, .ct-context, .calendar-site-header, .calendar-site-footer { display: none !important; } }
