/* Student and professional "command post" overviews. Colours come from
 * theme.css tokens, so every rule works in the light and dark themes. */

.command-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.command-meta { margin: 0; color: var(--faint); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.command-title { margin: .4rem 0 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.command-chips { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; }
.command-chips span { padding: .45rem .7rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: .5rem; }
.command-chips .is-good { color: var(--text-green); background: var(--tint-green); border-color: rgba(18, 185, 129, .45); }

.command-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.command-row > .span-7 { grid-column: span 7; }
.command-row > .span-5 { grid-column: span 5; }
@media (max-width: 991.98px) { .command-row > .span-7, .command-row > .span-5 { grid-column: span 12; } }

.command-panel {
  min-width: 0;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
/* Sighting corners mark the panel that holds the page's focus. */
.command-panel.is-hud {
  --corner: var(--hud);
  background:
    linear-gradient(var(--corner), var(--corner)) top left / 16px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top left / 2px 16px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top right / 16px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top right / 2px 16px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom right / 2px 16px no-repeat,
    var(--surface);
  box-shadow: var(--shadow-raised);
}
.command-panel h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.command-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.1rem; }

/* Focus ring. */
.command-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.focus-ring { position: relative; flex: 0 1 340px; max-width: 100%; aspect-ratio: 1; margin-inline: auto; }
.focus-ring svg { display: block; width: 100%; height: 100%; }
.focus-ring-disc { fill: var(--surface-2); stroke: var(--line); }
.focus-ring-ticks { stroke: var(--hud); stroke-opacity: .3; stroke-width: 2; }
.focus-ring-ticks.is-major { stroke-opacity: .8; stroke-width: 3; }
.focus-ring-track { fill: none; stroke: var(--track); stroke-width: 12; }
.focus-ring-arc { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.focus-ring-glow { fill: #12B981; fill-opacity: .25; }
.focus-ring-head { fill: var(--surface); stroke: #12B981; stroke-width: 3; }
.focus-ring-inner { fill: none; stroke: var(--hud); stroke-opacity: .25; stroke-dasharray: 2 6; }
.focus-ring-readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.focus-ring-readout strong { font-family: var(--font-mono); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.focus-ring-readout span { color: var(--muted); font-size: .85rem; }
.focus-ring-readout .focus-ring-label { color: var(--faint); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.command-focus-copy { flex: 1 1 220px; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.command-focus-copy h2 { margin-top: .25rem; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
.command-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.command-actions .btn { font-size: 1rem; }

/* Telemetry tiles. */
.command-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.command-tile { display: flex; flex-direction: column; gap: .55rem; min-width: 0; padding: 1.1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); text-decoration: none; }
.command-tile strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.command-tile small { color: var(--muted); font-size: .78rem; }
.command-tile.is-link:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-raised); }
.command-meter { display: block; height: 4px; overflow: hidden; background: var(--track); border-radius: 4px; }
.command-meter > span { display: block; height: 100%; background: linear-gradient(90deg, #39A7FF, #F4C542, #12B981); }

/* Week trajectory. */
.trajectory { position: relative; display: flex; align-items: stretch; gap: .8rem; height: 210px; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line-strong); }
/* Each day carries the mark of its own goal. */
.trajectory-goal { position: absolute; left: 8%; right: 8%; border-top: 2px dashed rgba(210, 158, 0, .8); pointer-events: none; }
.trajectory-day { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; min-width: 0; }
.trajectory-bar { display: block; width: 100%; max-width: 46px; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(0deg, rgba(57, 167, 255, .45), #39A7FF 45%, #F4C542); }
.trajectory-day.is-today .trajectory-bar, .trajectory-day.is-met .trajectory-bar { background: linear-gradient(180deg, #12B981, rgba(18, 185, 129, .35)); }
.trajectory-day.is-future .trajectory-bar { background: var(--track); }
.trajectory-value { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; }
.trajectory-label { position: absolute; bottom: -1.5rem; color: var(--faint); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; }
.trajectory-day.is-today .trajectory-label { color: var(--ink); font-weight: 600; }

/* Today's missions. */
.mission-list { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.mission-list li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .7rem .5rem; border-top: 1px solid var(--line); border-radius: .5rem; }
.mission-list li:first-child { border-top: 0; }
.mission-time { color: var(--muted); font-family: var(--font-mono); font-size: .85rem; }
.mission-copy { min-width: 0; }
.mission-copy strong { display: block; overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.mission-length { padding: .2rem .5rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: .4rem; font-family: var(--font-mono); font-size: .7rem; }
.mission-list li.is-now { background: var(--tint-green); }
.mission-list li.is-now .mission-time { color: var(--text-green); font-weight: 600; }
.mission-list li.is-past { opacity: .6; }
.mission-list li.is-done { opacity: .75; }
.mission-list li.is-done strong { text-decoration: line-through; text-decoration-color: var(--line); }
.command-empty { display: grid; justify-items: center; gap: .6rem; padding: 1.5rem .5rem; color: var(--muted); text-align: center; }
.command-empty > i { color: var(--text-blue); font-size: 1.6rem; }
.command-empty p { margin: 0; }

.command-launchpad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
@media (max-width: 767.98px) { .command-launchpad { grid-template-columns: 1fr; } }

/* Courses in orbit. */
.orbit-legend { display: flex; flex-wrap: wrap; gap: .9rem; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; }
.orbit-legend span::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .4rem; border-radius: 2px; background: var(--track); }
.orbit-legend .is-done::before { background: #12B981; }
.orbit-legend .is-active::before { background: #39A7FF; }
.orbit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.orbit-card { display: flex; flex-direction: column; gap: .8rem; padding: 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.orbit-card-head { display: flex; justify-content: space-between; gap: .5rem; }
.orbit-card h3 { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 750; }
.orbit-ratio { color: var(--text-green); font-family: var(--font-mono); font-size: .85rem; }
.orbit-segments { display: flex; gap: 3px; }
.orbit-segments span { flex: 1; height: 10px; border-radius: 2px; background: var(--track); }
.orbit-segments .is-done { background: #12B981; }
.orbit-segments .is-active { background: #39A7FF; }
.orbit-stats { display: grid; gap: .35rem; margin: 0; font-size: .8rem; }
.orbit-stats div { display: flex; justify-content: space-between; gap: .5rem; }
.orbit-stats dt { color: var(--faint); font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.orbit-stats dd { margin: 0; color: var(--ink); font-family: var(--font-mono); text-align: right; }

@media (prefers-reduced-motion: reduce) { .focus-ring-arc { transition: none; } }

/* Public home. */
.landing-hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(2rem, 5vw, 3.5rem); padding: clamp(1rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.landing-hero-copy { flex: 1 1 440px; min-width: 0; }
.landing-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .45rem .8rem; color: var(--text-green); background: var(--tint-green); border: 1px solid rgba(18, 185, 129, .4); border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.landing-kicker span { width: .4rem; height: .4rem; border-radius: 50%; background: #12B981; }
.landing-hero h1 { margin: 1.4rem 0 0; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.045em; }
.landing-lead { max-width: 36rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.landing-note { margin: 1.1rem 0 0; color: var(--faint); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.landing-preview { flex: 1 1 460px; min-width: 0; }
.landing-window { overflow: hidden; background: var(--chrome); border: 1px solid var(--line-strong); border-radius: .9rem; box-shadow: 0 40px 100px rgba(20, 125, 255, .2); }
.landing-window-bar { display: flex; justify-content: space-between; padding: .6rem .9rem; color: var(--faint); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.landing-window-bar .is-live { color: var(--text-green); }
.landing-window-line { height: 2px; background: var(--journey-gradient); }
.landing-window-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 1.1rem; background: var(--bg); }
.landing-window-grid > div { padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; box-shadow: var(--shadow); }
.landing-window-ring { grid-row: span 2; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.landing-window-ring svg { width: 100%; max-width: 190px; }
.landing-ring-track { fill: none; stroke: var(--track); stroke-width: 16; }
.landing-window-ring strong { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; }
.landing-window-ring span, .landing-window-tile span { color: var(--muted); font-size: .72rem; }
.landing-window-tile span { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: .6rem; color: var(--faint); }
.landing-window-tile strong { display: block; margin-top: .35rem; font-size: 1.5rem; font-weight: 800; }
.landing-window-tile i { display: block; height: 4px; margin-top: .6rem; border-radius: 4px; background: linear-gradient(90deg, #39A7FF var(--fill), var(--track) var(--fill)); }
.landing-window-list { grid-column: span 2; display: grid; gap: .45rem; font-size: .82rem; }
.landing-window-list b { margin-right: .7rem; color: var(--text-green); font-family: var(--font-mono); font-weight: 500; }
.landing-window-list span:not(:first-child) { color: var(--muted); }
.landing-window-list span:not(:first-child) b { color: var(--faint); }

.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin: 0 0 4rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.landing-steps span { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.landing-steps p { margin: .5rem 0 0; color: var(--muted); line-height: 1.5; }
.is-blue { color: var(--text-blue); } .is-sky { color: var(--primary); } .is-amber { color: var(--text-amber); } .is-green { color: var(--text-green); }

.landing-modules { margin-bottom: 3rem; }
.landing-modules h2 { max-width: 46rem; margin: .5rem 0 2rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; }
.landing-module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.landing-module { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.landing-module:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-raised); }
.landing-module-code { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.landing-module h3 { margin: 0; font-size: 1.2rem; font-weight: 750; line-height: 1.3; }
.landing-module p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.landing-module-link { margin-top: auto; color: var(--text-blue); font-size: .88rem; font-weight: 700; }

.landing-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.landing-mode { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.landing-mode.is-study { background: linear-gradient(160deg, var(--tint-blue), var(--surface) 70%); }
.landing-mode.is-work { background: linear-gradient(160deg, var(--tint-green), var(--surface) 70%); }
.landing-mode h2 { margin: .8rem 0 .6rem; font-size: 1.6rem; letter-spacing: -.02em; }
.landing-mode p { margin: 0; color: var(--muted); line-height: 1.6; }

.landing-cta { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 46rem; margin: 0 auto 2rem; padding: 2rem 0; text-align: center; }
.landing-cta h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.landing-cta p:not(.eyebrow) { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .landing-module { transition: none; } }

/* Watch post: an annunciator board. Lamps light red for critical points,
 * amber for attention, green when on track and stay dark without data.
 * The board is an instrument, dark in both themes like the timer stage.
 * Critical lamps blink about once per second (well under the WCAG flash
 * limit) and become a steady ring when reduced motion is requested. */
:root { --led-alert: #E5484D; --led-attention: #D29E00; --led-success: #12B981; }
.watch-lamp {
  --lamp: #2A3552;
  --glow: transparent;
  display: inline-block;
  flex: none;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 10%, transparent 42%), var(--lamp);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .08), 0 0 14px 2px var(--glow);
}
.watch-lamp.is-critical { --lamp: #FF3B47; --glow: rgba(255, 59, 71, .75); }
.watch-lamp.is-warning { --lamp: #FFB020; --glow: rgba(255, 176, 32, .6); }
.watch-lamp.is-ok { --lamp: #19D38A; --glow: rgba(25, 211, 138, .6); }
.watch-lamp.is-info { --lamp: #3AA8FF; --glow: rgba(58, 168, 255, .55); }
.watch-lamp.is-idle, .watch-lamp.is-dark { --lamp: #2A3552; --glow: transparent; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .18) 0 10%, transparent 42%), #2A3552; }
.watch-lamp.is-blinking { animation: lamp-blink 1.1s steps(1, end) infinite; }
@keyframes lamp-blink { 55% { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .2) 0 10%, transparent 42%), #3A1A22; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .08); } }
@media (prefers-reduced-motion: reduce) {
  .watch-lamp.is-blinking { animation: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 0 4px var(--lamp), 0 0 14px 2px var(--glow); }
}

.watch-post {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  color: #E8F0FF;
  border: 1px solid rgba(120, 165, 255, .25);
  border-radius: var(--radius-panel);
  background-color: #070D20;
  background-image:
    linear-gradient(rgba(57, 167, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 167, 255, .05) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(20, 125, 255, .22), transparent 50%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  box-shadow: var(--shadow-raised);
  --bs-heading-color: #fff;
}
.watch-post::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--journey-gradient); }
.watch-post.is-critical { border-color: rgba(255, 59, 71, .55); box-shadow: var(--shadow-raised), inset 0 0 60px rgba(255, 59, 71, .08); }

.watch-post-master { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; padding: 1.1rem 1.25rem; background: rgba(255, 255, 255, .03); border: 1px solid rgba(120, 165, 255, .2); border-radius: .5rem; }
.watch-lamp.is-master { width: 3rem; height: 3rem; box-shadow: 0 0 0 4px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .08), 0 0 34px 6px var(--glow); }
.watch-post-label { margin: 0; color: #8396BC; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.watch-post-state { margin: .15rem 0 .2rem; font-family: var(--font-mono); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.watch-post.is-critical .watch-post-state { color: #FF6B73; }
.watch-post.is-warning .watch-post-state { color: #FFC24D; }
.watch-post.is-ok .watch-post-state { color: #3BE0A0; }
.watch-post-summary { margin: 0; color: #A3B4D4; font-size: .9rem; }
.watch-post-counters { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.watch-post-counters li { display: grid; justify-items: center; gap: .3rem; min-width: 5.2rem; padding: .7rem .6rem; background: rgba(0, 0, 0, .25); border: 1px solid rgba(120, 165, 255, .16); border-radius: .45rem; }
.watch-post-counters strong { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.watch-post-counters li > span:last-child { color: #8396BC; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }

.watch-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.watch-channel {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 9.5rem;
  padding: .9rem 1rem 1rem;
  color: #E8F0FF;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(120, 165, 255, .18);
  border-radius: .5rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.watch-channel:hover, .watch-channel:focus-visible { color: #fff; border-color: rgba(140, 203, 255, .55); }
.watch-channel-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .25rem; }
.watch-channel-code { color: #8396BC; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; }
.watch-channel-state { margin-left: auto; color: #8396BC; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.watch-channel-label { font-size: .92rem; font-weight: 650; }
.watch-channel-value { margin-top: auto; font-family: var(--font-mono); font-size: 1.55rem; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.watch-channel-detail { color: #A3B4D4; font-size: .76rem; line-height: 1.4; }
.watch-channel.is-critical { background: linear-gradient(180deg, rgba(255, 59, 71, .16), rgba(255, 59, 71, .05)); border-color: rgba(255, 59, 71, .6); box-shadow: inset 0 0 22px rgba(255, 59, 71, .12); }
.watch-channel.is-critical .watch-channel-state { color: #FF6B73; }
.watch-channel.is-warning { border-color: rgba(255, 176, 32, .45); }
.watch-channel.is-warning .watch-channel-state { color: #FFC24D; }
.watch-channel.is-ok { border-color: rgba(25, 211, 138, .32); }
.watch-channel.is-ok .watch-channel-state { color: #3BE0A0; }
.watch-channel.is-idle { opacity: .72; }

.watch-post-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.1rem; padding-top: .9rem; color: #8396BC; border-top: 1px solid rgba(120, 165, 255, .14); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; }
.watch-post-legend > span { display: inline-flex; align-items: center; gap: .5rem; }
.watch-post-legend .watch-lamp { width: .6rem; height: .6rem; }
@media (max-width: 767.98px) {
  .watch-post-master { grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: .95rem; }
  .watch-post-state { font-size: clamp(1.2rem, 6.2vw, 1.6rem); letter-spacing: .04em; overflow-wrap: anywhere; }
  .watch-post-counters { grid-column: 1 / -1; }
  .watch-post-counters li { flex: 1; min-width: 0; padding-inline: .3rem; }
  .watch-post-counters li > span:last-child { max-width: 100%; font-size: .56rem; letter-spacing: .06em; overflow-wrap: anywhere; text-align: center; }
}

/* Signal log below the board. */
.watch-log { margin-bottom: 1.5rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.watch-log-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.watch-log-head h2 { margin: .3rem 0 .2rem; font-size: 1.1rem; font-weight: 700; }
.watch-grid { gap: .85rem; }
.watch-insight { flex-direction: column; gap: .55rem; padding: 1rem 1.05rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.watch-insight.is-urgent { border-color: color-mix(in srgb, var(--led-alert) 50%, var(--line)); background: color-mix(in srgb, var(--led-alert) 6%, var(--surface-2)); }
.watch-insight.is-reminder { border-color: color-mix(in srgb, var(--led-attention) 55%, var(--line)); background: color-mix(in srgb, var(--led-attention) 7%, var(--surface-2)); }
.watch-insight:has(.bi-bell-fill)::before { display: none; }
.watch-insight:has(.bi-bell-fill) { box-shadow: none; }
.watch-insight-head { display: flex; align-self: stretch; align-items: center; gap: .6rem; }
.watch-insight-head .watch-level { color: var(--faint); font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em; }
.watch-insight.is-urgent .watch-level { color: var(--led-alert); }
.watch-insight.is-reminder .watch-level { color: var(--text-amber); }
.watch-insight-icon { margin-left: auto; color: var(--faint); }
.watch-insight h3 { margin: 0; font-size: .98rem; font-weight: 700; }
.watch-insight p { color: var(--muted); }
.watch-feedback { border-top-color: var(--line); }
.watch-feedback button { border-color: var(--line-strong); }
.premium-watch-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.05rem; color: var(--ink); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-panel); text-decoration: none; }
.premium-watch-card:hover { color: var(--ink); border-color: var(--hud); }
.premium-watch-card > i { display: none; }
.premium-watch-card strong { color: var(--ink) !important; font-size: .98rem; }
.premium-watch-card > span:not(.watch-premium-leds):not(.watch-level):not(.watch-premium-link) { color: var(--muted); font-size: .82rem; }
.watch-premium-leds { display: inline-flex; gap: .35rem; }
.premium-watch-card .watch-level, .premium-watch-card .watch-level i { color: var(--faint) !important; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.premium-watch-card .watch-premium-link { margin-top: auto; color: var(--text-blue) !important; font-size: .82rem; font-weight: 700; }
.premium-watch-card .watch-premium-link i { color: inherit !important; }
.work-watch::before { display: none; }

/* Dashboard strip: a compact view of the board that opens the watch post. */
.watch-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.1rem;
  margin-bottom: 1.25rem;
  padding: .85rem 1.1rem;
  color: #E8F0FF;
  text-decoration: none;
  background-color: #070D20;
  background-image: linear-gradient(rgba(57, 167, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 167, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(120, 165, 255, .25);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.watch-strip:hover, .watch-strip:focus-visible { color: #fff; border-color: rgba(140, 203, 255, .55); }
.watch-strip.is-critical { border-color: rgba(255, 59, 71, .55); }
.watch-strip > .watch-lamp { width: 1.4rem; height: 1.4rem; }
.watch-strip-copy { display: flex; flex: 1 1 260px; flex-direction: column; min-width: 0; }
.watch-strip-meta { color: #8396BC; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.watch-strip-copy strong { font-size: .95rem; font-weight: 650; }
.watch-strip-lamps { display: inline-flex; flex-wrap: wrap; gap: .5rem; padding: .45rem .6rem; background: rgba(0, 0, 0, .3); border: 1px solid rgba(120, 165, 255, .16); border-radius: .4rem; }
.watch-strip-lamps .watch-lamp { width: .62rem; height: .62rem; }
.watch-strip-link { color: #8CCBFF; font-size: .85rem; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .watch-channel { transition: none; } }

/* Application pages share the command post vocabulary. ------------------ */
.command-lead { max-width: 46rem; margin: .5rem 0 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.analytics-header { margin-bottom: 1.25rem; }
.analytics-header .analytics-actions .btn, .analytics-header .btn { min-height: 2.5rem; }

/* Page heroes inside the app become compact titles; the public site keeps
   its large typography. */
.app-frame .display-title, .app-frame .analytics-title, .app-frame .flash-title {
  max-width: 48rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.app-frame .lead { font-size: 1rem; line-height: 1.55; }
.app-frame .glass-card h2.h3, .app-frame .glass-card .h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.app-frame .glass-card h2.h4, .app-frame .glass-card .h4 { font-size: 1rem; font-weight: 700; }

/* Telemetry tiles: label on top, value below, a small glyph in the corner. */
.metric-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.1rem 1.15rem; }
.metric-card .metric-label { order: -1; margin: 0 !important; padding-right: 2.2rem; color: var(--faint); font-size: .66rem; letter-spacing: .12em; }
.metric-card .metric-icon { position: absolute; top: .9rem; right: .9rem; width: 1.9rem; height: 1.9rem; margin: 0 !important; border-radius: .5rem; font-size: .95rem; }
.metric-card > .d-flex:first-child { position: absolute; top: .9rem; right: .9rem; margin: 0 !important; }
.metric-card > .d-flex:first-child .badge { display: none; }
.metric-card .metric-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.analytics-blue { color: var(--text-blue); background: var(--tint-blue); }
.analytics-yellow { color: var(--text-amber); background: var(--tint-amber); }
.analytics-green { color: var(--text-green); background: var(--tint-green); }

/* Filters read as an instrument toolbar. */
.analytics-filter .form-label { color: var(--faint); font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em; }
.analytics-unit, .goal-reference { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.analytics-unit { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }

/* Progress bars, charts and the completion dial. */
.analytics-progress { height: .5rem; background: var(--track); }
.analytics-progress span, .modern-progress .progress-bar { background: var(--journey-gradient); }
.course-stat.goal-consumed .analytics-progress span { background: #12B981; }
.course-goal-percent { font-family: var(--font-mono); }
.chart-gridline { stroke: var(--line-strong); }
.chart-y-label, .chart-axis { font-family: var(--font-mono); }
.chart-line { stroke-width: 3.5; }
.chart-point, .work-chart-point { fill: var(--surface); stroke: #39A7FF; stroke-width: 3; }
.completion-donut, .completion-donut.work-accuracy {
  position: relative;
  width: 180px;
  background: conic-gradient(from 0deg, #147DFF 0, #39A7FF calc(var(--completion) * .34%), #F4C542 calc(var(--completion) * .66%), #12B981 calc(var(--completion) * 1%), var(--track) calc(var(--completion) * 1%));
  box-shadow: none;
}
.completion-donut::before { width: 80%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.completion-donut::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: repeating-conic-gradient(var(--hud) 0 .6deg, transparent .6deg 6deg); opacity: .35; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)); pointer-events: none; }
.completion-donut strong { font-family: var(--font-mono); font-weight: 600; }
.completion-donut span { color: var(--faint); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; }
.weekday-track { background: var(--track); border-radius: 3px 3px 0 0; }
.weekday-track span, .weekday-track.work-weekday span { background: linear-gradient(0deg, rgba(57, 167, 255, .45), #39A7FF 45%, #F4C542); border-radius: 3px 3px 0 0; }
.weekday-column.goal-met .weekday-track span { background: linear-gradient(180deg, #12B981, rgba(18, 185, 129, .4)); box-shadow: none; }
.weekday-column { font-family: var(--font-mono); }
.weekday-column strong { color: var(--muted); font-weight: 500; text-transform: uppercase; }
.goal-scale { font-family: var(--font-mono); }

/* Tables and status pills. */
.analytics-table th, .table thead th { color: var(--faint); background: var(--surface-2); font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.status-pill { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .04em; }
.status-pill.complete { color: var(--text-green); background: var(--tint-green); }
.status-pill.active { color: var(--text-blue); background: var(--tint-blue); }
.status-pill.interrupted { color: var(--text-amber); background: var(--tint-amber); }

/* Locked analytics read as a locked instrument. */
.analytics-premium-gate { border-style: dashed; border-color: var(--line-strong); }
.analytics-premium-gate > span { color: var(--text-blue) !important; background: var(--tint-blue) !important; }
.metric-card .metric-value { margin-top: auto; }

/* Floating timer: a small instrument panel docked in the corner. */
.global-timer {
  overflow: hidden;
  background-color: var(--stage);
  background-image: linear-gradient(rgba(57, 167, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 167, 255, .06) 1px, transparent 1px), radial-gradient(circle at 100% 0%, rgba(20, 125, 255, .35), transparent 60%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  border: 1px solid rgba(120, 165, 255, .3);
  border-radius: var(--radius-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.global-timer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--journey-gradient); }
.global-timer-icon { background: rgba(57, 167, 255, .16); border-radius: .5rem; }
.global-timer-clock { font-family: var(--font-mono); font-weight: 600; }
.global-timer-range { font-family: var(--font-mono); }
.global-timer.is-complete { background-color: #0f2a24; background-image: radial-gradient(circle at 100% 0%, rgba(18, 185, 129, .35), transparent 60%); border-color: rgba(18, 185, 129, .45); }

/* Lock-screen alert offer: an ordinary panel that follows the theme. */

/* Profile: the account header is an ordinary command panel. */
.profile-hero { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.profile-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.profile-hero p { color: var(--muted); }
.profile-hero .eyebrow { color: var(--faint); }
.profile-avatar { border-color: var(--line-strong); }
.profile-section-icon { color: var(--text-blue); background: var(--tint-blue); border-radius: .6rem; }
.profile-plan { border-radius: var(--radius-panel); }
.profile-plan.premium { color: var(--ink); background: linear-gradient(160deg, var(--tint-green), var(--surface) 75%); border: 1px solid rgba(18, 185, 129, .4); }
.profile-plan.premium p, .profile-plan.premium small { color: var(--muted); }

/* Chapter summaries: each course tint is mixed from its accent and the
   theme surface, so the shelf follows the light and dark themes. */
.summary-space .summary-course { --course-tint: color-mix(in srgb, var(--course-accent) 7%, var(--surface)) !important; }

/* Blocks drawn on a fixed dark gradient keep white headings in both themes
   (Bootstrap would otherwise use the theme's heading ink). */
.company-manifesto, .company-vision, .contact-aside, .legal-hero, .plan-card.premium, .guest-worker .guest-mode-hero,
.work-hero, .auth-lock, .pdf-audio-player, .edyex-notice.tone-timer { --bs-heading-color: #fff; }

/* Work planning header: a compact command header rather than a banner. */
.schedule-hero { padding: 0 0 .25rem; color: var(--ink); background: none; border-radius: 0; box-shadow: none; }
.schedule-hero h1 { margin: .4rem 0 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.schedule-hero p { margin-top: .5rem; color: var(--muted); }
.schedule-hero .eyebrow { color: var(--faint); }
.schedule-hero .btn-light.btn-lg { color: var(--on-action); background: var(--action); border-color: transparent; }

/* Watch post and strip in the light theme: same board, light instrument.
 * Lamps keep their colours; the bezel darkens and the glow softens so they
 * still read on a white panel. */
:root:not([data-theme="dark"]) .watch-post,
:root:not([data-theme="dark"]) .watch-strip {
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(20, 125, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 125, 255, .05) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(57, 167, 255, .12), transparent 50%);
  border-color: var(--line);
  --bs-heading-color: var(--ink);
}
:root:not([data-theme="dark"]) .watch-strip { background-size: 24px 24px, 24px 24px, 100% 100%; }
:root:not([data-theme="dark"]) .watch-post.is-critical { border-color: rgba(229, 72, 77, .5); box-shadow: var(--shadow-raised), inset 0 0 60px rgba(229, 72, 77, .05); }
:root:not([data-theme="dark"]) .watch-strip.is-critical { border-color: rgba(229, 72, 77, .55); }
:root:not([data-theme="dark"]) .watch-strip:hover, :root:not([data-theme="dark"]) .watch-strip:focus-visible { color: var(--ink); border-color: var(--hud); }

:root:not([data-theme="dark"]) .watch-post-master { background: var(--surface-2); border-color: var(--line); }
:root:not([data-theme="dark"]) .watch-post-label,
:root:not([data-theme="dark"]) .watch-channel-code,
:root:not([data-theme="dark"]) .watch-channel-state,
:root:not([data-theme="dark"]) .watch-post-counters li > span:last-child,
:root:not([data-theme="dark"]) .watch-post-legend,
:root:not([data-theme="dark"]) .watch-strip-meta { color: var(--faint); }
:root:not([data-theme="dark"]) .watch-post-summary,
:root:not([data-theme="dark"]) .watch-channel-detail { color: var(--muted); }
:root:not([data-theme="dark"]) .watch-post.is-critical .watch-post-state,
:root:not([data-theme="dark"]) .watch-channel.is-critical .watch-channel-state { color: #C62F38; }
:root:not([data-theme="dark"]) .watch-post.is-warning .watch-post-state,
:root:not([data-theme="dark"]) .watch-channel.is-warning .watch-channel-state { color: #8A6500; }
:root:not([data-theme="dark"]) .watch-post.is-ok .watch-post-state,
:root:not([data-theme="dark"]) .watch-channel.is-ok .watch-channel-state { color: #08724F; }
:root:not([data-theme="dark"]) .watch-post-counters li { background: var(--surface); border-color: var(--line); }
:root:not([data-theme="dark"]) .watch-post-legend { border-top-color: var(--line); }

:root:not([data-theme="dark"]) .watch-channel { color: var(--ink); background: var(--surface-2); border-color: var(--line-strong); }
:root:not([data-theme="dark"]) .watch-channel:hover, :root:not([data-theme="dark"]) .watch-channel:focus-visible { color: var(--ink); border-color: var(--hud); }
:root:not([data-theme="dark"]) .watch-channel.is-critical { background: #FFF0F2; border-color: rgba(229, 72, 77, .6); box-shadow: none; }
:root:not([data-theme="dark"]) .watch-channel.is-warning { background: #FFFBEF; border-color: rgba(210, 158, 0, .5); }
:root:not([data-theme="dark"]) .watch-channel.is-ok { border-color: rgba(18, 185, 129, .4); }

:root:not([data-theme="dark"]) .watch-strip-lamps { background: var(--surface-2); border-color: var(--line); }
:root:not([data-theme="dark"]) .watch-strip-link { color: var(--text-blue); }

:root:not([data-theme="dark"]) .watch-lamp { box-shadow: 0 0 0 2px rgba(11, 23, 57, .22), 0 0 0 3px rgba(255, 255, 255, .9), 0 0 8px 1px var(--glow); }
:root:not([data-theme="dark"]) .watch-lamp.is-idle,
:root:not([data-theme="dark"]) .watch-lamp.is-dark { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8) 0 10%, transparent 42%), #C9D2E3; }
:root:not([data-theme="dark"]) .watch-lamp.is-master { box-shadow: 0 0 0 4px rgba(11, 23, 57, .18), 0 0 0 6px rgba(255, 255, 255, .9), 0 0 22px 4px var(--glow); }
:root:not([data-theme="dark"]) .watch-lamp.is-blinking { animation-name: lamp-blink-light; }
@keyframes lamp-blink-light { 55% { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8) 0 10%, transparent 42%), #F1C9CC; box-shadow: 0 0 0 2px rgba(11, 23, 57, .22), 0 0 0 3px rgba(255, 255, 255, .9); } }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-theme="dark"]) .watch-lamp.is-blinking { animation: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 4px var(--lamp), 0 0 8px 1px var(--glow); }
}

/* Stronger relief for the watch post and its dashboard strip.
 * Light theme: a dark blue drop shadow in two layers (contact + ambient).
 * Dark theme: an off-white ("blanc sale") halo and a lit top edge so the
 * panels lift off the ink background. */
:root:not([data-theme="dark"]) .watch-post,
:root:not([data-theme="dark"]) .watch-strip {
  box-shadow: 0 2px 4px rgba(11, 23, 57, .14), 0 20px 44px -6px rgba(11, 40, 100, .32);
}
:root:not([data-theme="dark"]) .watch-post.is-critical {
  box-shadow: 0 2px 4px rgba(11, 23, 57, .14), 0 20px 44px -6px rgba(11, 40, 100, .32), inset 0 0 60px rgba(229, 72, 77, .05);
}
:root:not([data-theme="dark"]) .watch-post-master,
:root:not([data-theme="dark"]) .watch-channel,
:root:not([data-theme="dark"]) .watch-post-counters li {
  box-shadow: 0 1px 2px rgba(11, 23, 57, .12), 0 8px 18px -4px rgba(11, 40, 100, .22);
}
:root:not([data-theme="dark"]) .watch-channel:hover,
:root:not([data-theme="dark"]) .watch-channel:focus-visible {
  box-shadow: 0 2px 4px rgba(11, 23, 57, .14), 0 14px 28px -6px rgba(11, 40, 100, .3);
}

[data-theme="dark"] .watch-post,
[data-theme="dark"] .watch-strip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px rgba(232, 228, 218, .1), 0 0 26px rgba(232, 228, 218, .1), 0 18px 44px -8px rgba(232, 228, 218, .24);
}
[data-theme="dark"] .watch-post.is-critical {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px rgba(232, 228, 218, .1), 0 0 26px rgba(232, 228, 218, .1), 0 18px 44px -8px rgba(232, 228, 218, .24), inset 0 0 60px rgba(255, 59, 71, .08);
}
[data-theme="dark"] .watch-post-master,
[data-theme="dark"] .watch-channel,
[data-theme="dark"] .watch-post-counters li {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px -6px rgba(232, 228, 218, .18);
}
[data-theme="dark"] .watch-channel.is-critical {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px -6px rgba(232, 228, 218, .18), inset 0 0 22px rgba(255, 59, 71, .12);
}
[data-theme="dark"] .watch-channel:hover,
[data-theme="dark"] .watch-channel:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 28px -6px rgba(232, 228, 218, .18);
}
.watch-channel { transition: border-color .15s ease, box-shadow .15s ease; }

/* Timetable header: the entry count sits in the action row, which wraps. */
.timetable-header-actions > * { flex-shrink: 0; }
.schedule-count { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); }
.schedule-count-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; }


/* Timer dials of the professional overview: the focus ring's vocabulary,
 * one compact dial per way of timing a task. */
.work-timer-panel { display: flex; flex-direction: column; }
.timer-dials { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.timer-dial-wrap { display: block; min-width: 0; }
.timer-dial {
  --accent: #39A7FF;
  display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; height: 100%;
  padding: 1.25rem 1rem 1.1rem; color: var(--ink); text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-panel);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.timer-dial.is-measure { --accent: #12B981; }
.timer-dial:hover, .timer-dial:focus-visible {
  border-color: var(--accent); outline: none; transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 34px color-mix(in srgb, var(--accent) 22%, transparent);
}
.timer-dial:disabled { opacity: .55; pointer-events: none; }
.timer-dial-ring { position: relative; display: block; width: min(168px, 100%); aspect-ratio: 1; }
.timer-dial-ring svg { display: block; width: 100%; height: 100%; }
.timer-dial-arc { fill: none; stroke-width: 12; stroke-linecap: round; }
.timer-dial-solid { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.timer-dial-glow { fill: var(--accent); fill-opacity: .25; transition: fill-opacity .2s ease; }
.timer-dial-head { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.timer-dial:hover .timer-dial-glow, .timer-dial:focus-visible .timer-dial-glow { fill-opacity: .5; }
.timer-dial-readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.timer-dial-readout i { color: var(--accent); font-size: 2rem; line-height: 1; }
.timer-dial-readout small { max-width: 58%; color: var(--faint); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.timer-dial-copy { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.timer-dial-index { color: var(--accent); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; }
.timer-dial-copy strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.timer-dial-cta { margin-top: .35rem; color: var(--accent); font-size: .85rem; font-weight: 700; }
.timer-dial-cta i { display: inline-block; transition: transform .2s ease; }
.timer-dial:hover .timer-dial-cta i { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .timer-dial, .timer-dial-cta i { transition: none; } .timer-dial:hover { transform: none; } }
/* Phones: dial beside its title, the two timers stacked. */
@media (max-width: 575.98px) {
  .timer-dials { grid-template-columns: 1fr; }
  .timer-dial { flex-direction: row; text-align: left; padding: .9rem; }
  .timer-dial-ring { width: 104px; flex: none; }
  .timer-dial-readout i { font-size: 1.4rem; }
  .timer-dial-readout small { display: none; }
  .timer-dial-copy { align-items: flex-start; }
}

/* Planning toolbar: week navigation on one side, planning tools on the other. */
.schedule-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.schedule-week-nav { display: flex; align-items: center; gap: .9rem; }
.schedule-week-label { min-width: 11rem; text-align: center; }
.schedule-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.schedule-tools form { margin: 0; }
.schedule-tools .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap; }
.schedule-tools-divider { align-self: stretch; width: 1px; margin-inline: .25rem; background: var(--line-strong); }
@media (max-width: 767.98px) {
  .schedule-toolbar { flex-direction: column; align-items: stretch; }
  .schedule-week-nav { justify-content: space-between; }
  .schedule-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-tools .btn { width: 100%; height: 100%; white-space: normal; line-height: 1.2; }
  .schedule-tool-main { grid-column: 1 / -1; }
  .schedule-tools-divider { display: none; }
}
