/* Phoenix One presentation only. The supplied planner.js is unchanged. */
:root {
  color-scheme: dark;
  --bg: #050709;
  --panel: #10141b;
  --panel-2: #171c25;
  --text: #f3f5fa;
  --muted: #acb5c5;
  --line: #303e4e;
  --accent: #ff75df;
  --accent-2: #25d9ef;
}
body { background: #080c12; line-height: 1.5; }
a { color: var(--accent-2); text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, .table-wrap:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 4px;
}
.phoenix-frame {
  position: relative; isolation: isolate;
  min-height: calc(100dvh - 32px); margin: 16px;
  border: 1px solid #294153; border-top-color: #633d68; border-bottom-color: #704269;
  border-radius: 32px; background: var(--bg);
  box-shadow: 0 0 28px #03bee908, inset 0 0 60px #010307;
}
.phoenix-circuit {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(34vw, 400px); height: min(31vw, 368px);
  background: url("../circuit-corner.121cf302e049.svg") top left / contain no-repeat; opacity: .85;
}
.phoenix-circuit-top { top: 0; left: 0; }
.phoenix-circuit-bottom { bottom: 0; right: 0; transform: rotate(180deg); }
.phoenix-masthead {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; min-height: 80px; padding: 20px clamp(16px, 3vw, 48px);
}
.phoenix-brand {
  display: flex; gap: 14px; align-items: center; flex-shrink: 0;
  color: var(--accent); text-decoration: none; font-size: 14px;
  font-weight: 750; letter-spacing: .035em; line-height: 1.25;
}
.phoenix-brand img { display: block; object-fit: contain; mix-blend-mode: screen; }
.phoenix-brand-sub {
  display: block; color: var(--muted); font-size: 12px;
  font-weight: 500; letter-spacing: .17em; margin-top: 5px;
}
.phoenix-masthead nav { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: flex-end; }
.phoenix-masthead nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.phoenix-skip { position: absolute; left: -9999px; }
.phoenix-skip:focus { left: 24px; top: 24px; z-index: 10; background: var(--panel); padding: 16px; border-radius: 12px; }
.app { max-width: 1440px; padding: 32px clamp(16px, 3vw, 48px) 40px; }
.app > header { align-items: center; gap: 28px; margin-bottom: 24px; }
.phoenix-eyebrow { color: var(--accent-2); font-size: 12px; font-weight: 650; letter-spacing: .14em; margin: 0 0 10px; }
h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.subtitle { max-width: 60ch; margin-top: 12px; line-height: 1.6; }
.phoenix-badges { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.badge { background: #10141b; }
.phoenix-free { border-color: #35606b; color: var(--accent-2); background: #0b1b21; }
.planner-jump { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.planner-jump a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.planner-jump a:hover { border-color: var(--accent-2); background: #101c23; }
.layout { grid-template-columns: 350px minmax(0, 1fr); gap: 20px; }
.card { border-radius: 24px; padding: 20px; background: #10141bf2; box-shadow: 0 12px 32px #0002; scroll-margin-top: 20px; }
.layout > main { border-top-color: #35606b; }
.card h2 { font-size: 16px; font-weight: 650; }
.section { margin-top: 22px; }
input, select { background: #080d13; border-color: #455467; border-radius: 14px; font-size: 16px; min-width: 0; }
input[type=checkbox] { accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
.check { align-items: flex-start; }
.check input { margin-top: 2px; }
.mode-switch button, .secondary, .primary, .ghost { border-radius: 14px; min-height: 44px; }
.mode-switch button.active { background: #251528; }
.primary { background: var(--accent); color: #100c15; }
.primary:hover { background: #ff99e8; }
.primary.done { color: #07150e; }
.secondary, .ghost, .mode-switch button { background: #111820; }
.secondary:hover, .ghost:hover { border-color: #3a6978; background: #162732; }
.icon-btn { border-radius: 12px; }
.small-note { line-height: 1.6; }
.summary { gap: 12px; }
.stat { border-radius: 16px; background: #0b1119; }
.stat strong { font-size: 22px; font-weight: 650; }
.stat:first-child strong, .stat:nth-child(2) strong { color: var(--accent-2); }
.stat.soon strong { color: var(--warn); }
.table-wrap { border-radius: 18px; background: #0c1016; }
th { background: #131c26; padding: 12px 9px; }
td { padding: 10px 9px; }
.stint-num { border-radius: 10px; background: #ff75df14; color: #ff9ae8; }
tbody tr.row-current { background: #25d9ef0d; }
.driver-select { font-size: 13px; }
.act select { font-size: 13px; }
.total-chip, .history-item, .warning { border-radius: 14px; }
.phoenix-footer { margin: 0 clamp(16px, 3vw, 48px); padding: 24px 0; border-top: 1px solid #293542; color: var(--muted); font-size: 13px; text-align: center; }
.phoenix-footer p { max-width: 72ch; margin: 0 auto 12px; }
.phoenix-footer nav { display: flex; justify-content: center; flex-wrap: wrap; }
.phoenix-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; color: var(--muted); text-decoration: none; }
.phoenix-footer a + a { border-left: 1px solid var(--line); }
.phoenix-footer a:hover { color: var(--accent-2); }
.phoenix-note { color: var(--warn); padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 1100px) {
  .app > header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .phoenix-badges { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { max-height: 64dvh; }
}
@media (max-width: 600px) {
  .phoenix-frame { margin: 8px; min-height: calc(100dvh - 16px); border-radius: 24px; }
  .phoenix-masthead { flex-wrap: wrap; gap: 8px 20px; padding: 16px; }
  .phoenix-masthead nav { gap: 20px; }
  .app { padding: 20px 12px 28px; }
  .card { padding: 16px; border-radius: 20px; }
  .summary { gap: 8px; }
  .stat { padding: 10px; }
  .phoenix-footer { margin: 0 16px; }
  .phoenix-footer a { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
