:root { color-scheme: light; --ink: #14334b; --paper: #f4f6f3; --line: #c9d5db; --accent: #087b78; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: system-ui, sans-serif; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
.deck-header { height: 76px; padding: 12px 24px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.brand strong { font-size: 20px; font-weight: 700; }
.brand span { font-size: 12px; margin-top: 3px; }
.deck-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.deck-actions button, .deck-actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font: 500 13px/1.2 system-ui, sans-serif; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.deck-actions button:hover, .deck-actions a:hover { background: #e4eeed; border-color: var(--accent); }
.deck-actions #listen-button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.languages { display: flex; border: 1px solid var(--line); border-radius: 4px; padding: 2px; flex-shrink: 0; }
.languages button { width: 40px; min-height: 40px; background: transparent; border: 0; border-radius: 2px; color: var(--ink); font-weight: 700; cursor: pointer; }
.languages button[aria-pressed="true"] { background: var(--ink); color: white; }
button:focus-visible, a:focus-visible, hyperframes-slideshow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.deck-main { position: relative; width: 100%; height: calc(100dvh - 76px); }
hyperframes-slideshow { display: block; position: relative; width: 100%; height: 100%; background: var(--paper); }
hyperframes-player { position: absolute; inset: 0; }
.deck-status { position: absolute; left: 24px; bottom: 108px; max-width: calc(100% - 48px); margin: 0; padding: 10px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); font-size: 14px; z-index: 20; }
body[data-mode="audience"] .deck-header { display: none; }
body[data-mode="audience"] .deck-main { height: 100dvh; }
.mobile-reading { display: none; }
@media (max-width: 900px) {
  .deck-header { gap: 12px; padding: 10px 12px; }
  .brand span { display: none; }
  .deck-actions { gap: 6px; }
  .deck-actions button, .deck-actions a { font-size: 12px; padding: 6px 8px; }
}
@media (max-width: 620px) {
  html, body { height: auto; min-height: 100%; }
  body { overflow: auto; }
  .deck-header { height: 112px; flex-wrap: wrap; align-content: center; gap: 8px 12px; }
  .brand { margin-right: auto; }
  .brand strong { font-size: 17px; }
  .languages { order: 1; }
  .deck-actions { order: 2; width: 100%; margin: 0; justify-content: space-between; gap: 4px; }
  .deck-actions button, .deck-actions a { font-size: 11px; flex: 1 1 0; min-height: 42px; padding: 6px 4px; white-space: normal; text-align: center; }
  .deck-main, body[data-mode="audience"] .deck-main { height: auto; }
  hyperframes-slideshow { height: calc(100vw * 9 / 16); min-height: 220px; }
  .mobile-reading { display: block; padding: 24px 20px 40px; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
  .mobile-reading h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; }
  .mobile-reading p { margin: 12px 0; }
  .mobile-reading .lede { font-size: 18px; color: #38536a; }
  .mobile-reading .visual { margin-top: 24px; }
  .mobile-reading .visual > div { margin: 20px 0; }
  .mobile-reading .label, .mobile-reading .receipt-tag { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
  .mobile-reading .quantity { display: inline-flex; flex-direction: column; min-width: 72px; margin: 8px 6px; }
  .mobile-reading .quantity strong, .mobile-reading .interface-total, .mobile-reading .finish-number { font-size: 32px; font-weight: 750; }
  .mobile-reading .route, .mobile-reading .resource-lane { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
  .mobile-reading .route-stop { display: flex; flex-direction: column; }
  .mobile-reading .route-stop b { color: var(--accent); font-size: 15px; }
  .mobile-reading .return-row, .mobile-reading .finish-line, .mobile-reading .comparison-row, .mobile-reading .gate-step, .mobile-reading .detail-ledger > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-reading .return-row > span, .mobile-reading .loop-line { display: block; margin: 8px 0; }
  .mobile-reading .photo { margin: 20px 0; }
  .mobile-reading img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
  .mobile-reading figcaption { margin-top: 6px; font-size: 13px; }
  .mobile-reading .screen-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 0; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .mobile-reading .screen-link > span:first-child { color: var(--accent); font-weight: 700; }
  .mobile-reading .pending-label { display: block; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
  .deck-status { bottom: 100px; left: 12px; max-width: calc(100% - 24px); }
}
