:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #090d15;
  color: #f6f8ff;
  font-synthesis: none;
  --base: #0e1624;
  --panel: #182335;
  --muted: #aab8cc;
  --quiet: #8294ad;
  --line: #ffffff20;
  --ice: #bde0ff;
  --blue: #a6d4ff;
  --red: #f27479;
  --pad: clamp(16px, 3.5vw, 42px);
  --bezel-x: clamp(12px, 3.2vw, 44px);
  --bezel-y: clamp(20px, 3.8vw, 55px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, select, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .42; }
a { color: var(--ice); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #aadcff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
small { font-size: .83rem; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.console {
  width: min(94vw, calc((100dvh - 56px) * 1.62), 1360px);
  aspect-ratio: 1.62;
  position: relative;
  display: flex;
  padding: var(--bezel-y) var(--bezel-x);
  border-radius: 12px;
  border: 1px solid #42454c;
  background: linear-gradient(153deg, #36383e 0%, #24262b 19%, #17191e 79%, #22242a);
  box-shadow: 0 0 0 5px #141517, 0 0 0 7px #36393d, 0 16px 29px #04070ca6, inset 0 1px #ffffff26;
}
body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 26px 0;
  background:
    linear-gradient(102deg, #071018d9, #25314124 20%, transparent 49%, #18202c52 81%, #111319f0),
    repeating-linear-gradient(2deg, #1a120b40 0 1px, #80634b22 1px 3px, #baa18128 3px 5px, #46352714 5px 7px),
    linear-gradient(90deg, #1c232c 0 5%, #6b543c 5% 9%, #876a49 33%, #927456 60%, #5d4937 89%, #2b323c 89% 100%);
}
.display {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #111a2a;
  border-radius: 4px;
  border: 1px solid #2c2c2f;
  box-shadow: 0 0 0 4px #08090c, 0 1px 0 5px #ffffff23;
  overflow: hidden;
}
.masthead {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  height: 41px;
  background: #131b29;
  border-bottom: 1px solid #ffffff1a;
}
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0; background: none; border: 0; text-align: left; }
.brand-mark { display: inline-grid; width: 23px; height: 26px; place-items: center; position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; transform: skewX(-29deg) rotate(-24deg); border-radius: 1px; height: 4px; }
.brand-mark::before { width: 21px; background: #96d1f4; top: 8px; left: 0; }
.brand-mark::after { width: 16px; background: #e55757; top: 14px; left: 3px; }
.brand { font-size: 1.02rem; font-weight: 600; }
.brand-flight { display: grid; gap: 0; }
.brand-flight small { color: #c2cee0; font-size: .65rem; font-weight: 460; }
.brand-flight strong { font-size: .86rem; font-variant-numeric: tabular-nums; }
.head-right { display: flex; align-items: center; gap: 8px; }
.top-action { border: 0; background: none; color: #e4ecf8; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 6px; font-size: .82rem; }
.top-action svg { height: 17px; width: 17px; }
.top-action:hover, .head-icon:hover { background: #ffffff21; }
.head-icon { border: 0; background: none; padding: 5px; border-radius: 4px; display: grid; place-items: center; }
.head-icon svg { width: 17px; height: 17px; }
.viewport {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  outline: none;
  background: #142849;
}
.service-page {
  min-height: 100%;
  flex: 1;
  background:
    radial-gradient(ellipse at 71% -17%, #553d7969, transparent 62%),
    radial-gradient(ellipse at 24% 95%, #285e9a80, transparent 64%),
    linear-gradient(122deg,#142844,#193863 58%,#172748);
}
.service-page { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 21px var(--pad); }
.service-page > svg { width: clamp(40px, 8vh, 74px); height: clamp(40px, 8vh, 74px); margin-bottom: 14px; stroke-width: 1.35; }
.service-page h1 { margin-bottom: clamp(12px, 3vh, 31px); font-size: clamp(1.75rem, 4.5vw, 3.3rem); font-weight: 510; }
.service-page p { max-width: 49ch; font-size: clamp(.95rem, 2vw, 1.28rem); line-height: 1.5; }
.service-page p + p { margin-top: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.primary, .secondary, .pill, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; padding: 8px 13px; min-height: 40px; font-weight: 600; }
.primary { color: #101e32; background: #d4e9ff; }
.primary:hover { background: white; }
.secondary { color: #f1f7ff; background: #172438bd; border-color: #bad6fc51; }
.secondary:hover, .pill:hover, .icon-button:hover { background: #30445f; }
.primary svg, .secondary svg { width: 19px; height: 19px; }
.eyebrow { color: var(--ice); font-size: .76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.route-pair { display: flex; align-items: center; justify-content: flex-start; gap: 15px; }
.route-pair .airport strong { font-size: 1.47rem; font-family: ui-monospace, monospace; font-weight: 650; }
.route-pair .airport small { display: block; color: var(--muted); }
.route-pair .plane { color: var(--blue); width: 22px; height: 22px; }
.track { height: 3px; border-radius: 10px; background: #ffffff2b; position: relative; }
.track i { display: block; height: 100%; width: 34%; background: #a8d5ff; border-radius: inherit; position: relative; }
.track i::after { content: ""; display: block; background: #dcf1ff; width: 9px; height: 9px; border-radius: 50%; position: absolute; right: 0; top: -3px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.55vw, 24px); }
.tile { display: flex; flex-direction: column; text-align: left; overflow: hidden; min-width: 0; border: 1px solid #ffffff26; background: #162235; color: #fff; padding: 0; border-radius: 11px; }
.tile:hover, .tile:focus-visible { border-color: var(--blue); }
.tile-img { width: 100%; aspect-ratio: 2.6; position: relative; display: block; overflow: hidden; background: #182536; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .26s ease; }
.tile:hover .tile-img img { transform: scale(1.045); }
.tile-play { position: absolute; bottom: 9px; right: 11px; display: grid; place-items: center; width: 35px; height: 35px; background: #0b1425cf; border: 1px solid #ffffff6b; border-radius: 50%; }
.tile-play svg { width: 16px; height: 16px; fill: currentColor; }
.tile-copy { display: grid; gap: 3px; padding: 9px 12px 10px; }
.tile-copy strong { overflow-wrap: anywhere; font-size: .99rem; }
.tile-copy small { color: var(--muted); font-size: .78rem; }
.controls {
  display: flex;
  flex: none;
  align-items: stretch;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 5px;
  background: #0a1323;
  border-top: 1px solid #7d92ba55;
}
.controls nav, .hardware { display: flex; align-items: stretch; }
.controls button { position: relative; min-height: 44px; width: 43px; background: none; border: 0; padding: 0; display: inline-grid; place-items: center; color: #f6f8ff; }
.controls button:hover, .controls button[aria-current="page"] { color: #fff; background: #95cdff30; }
.controls button[aria-current="page"]::before { content: ""; position: absolute; inset: 0 8px auto; height: 2px; background: #a8d5ff; }
.controls button[aria-pressed="true"] { color: #ffd292; background: #ffca6725; }
.controls svg { width: 19px; height: 19px; }
.toolbar-divider { width: 1px; height: 19px; align-self: center; background: #9ab7de4a; margin-inline: 4px; }
.volume-up::after, .volume-down::after { position: absolute; font-size: 11px; top: 4px; right: 5px; color: #b6d5f4; }
.volume-up::after { content: "+"; }
.volume-down::after { content: "−"; }
.page { padding: clamp(17px, 3vh, 35px) var(--pad); background: linear-gradient(145deg,#142d51,#14203a); flex: 1; }
.page h1 { font-size: clamp(1.6rem, 3.3vw, 2.75rem); line-height: 1.07; letter-spacing: -.038em; margin: 8px 0 14px; }
.page p.lead { max-width: 58ch; line-height: 1.55; color: var(--muted); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 24px 0 19px; }
.pill { border-radius: 30px; background: #1a2a40; padding: 7px 14px; border-color: var(--line); color: #e9f3ff; }
.pill[aria-pressed="true"] { background: var(--ice); color: #152840; }
.catalog { min-height: 100%; }
.catalog .tile-img { aspect-ratio: 1.8; }
.empty { padding: 38px 0; color: var(--muted); }
.onboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 25px; }
.onboard-card { border: 1px solid var(--line); background: linear-gradient(145deg, #233a54, #142033 81%); padding: 23px; border-radius: 13px; display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.onboard-card > svg { width: 28px; height: 28px; color: #b7d8ff; margin-bottom: 7px; }
.onboard-card h2 { font-size: 1.22rem; }
.onboard-card p { color: #c6d2e1; line-height: 1.5; flex: 1; }
.onboard-card button { margin-top: 6px; }
.map-screen { flex: 1; min-height: 100%; display: flex; flex-direction: column; background: #101c34; }
.map-stage { min-height: 180px; flex: 1; position: relative; overflow: hidden; background: #143467; }
.map-stage canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; touch-action: none; }
.map-stage canvas:active { cursor: grabbing; }
.map-stage canvas:focus-visible { outline-offset: -3px; }
.map-tools { display: flex; gap: 4px; position: absolute; top: 8px; left: 9px; right: 9px; pointer-events: none; }
.map-tools button { pointer-events: auto; }
.map-tools .pill, .map-tools .icon-button { background: #11284bdd; border: 1px solid #d1e2ff72; min-height: 35px; border-radius: 5px; font-size: .81rem; padding: 4px 8px; }
.map-tools .pill[aria-pressed="true"] { color: #122647; background: #cde6ff; }
.map-tools .icon-button { width: 35px; padding: 0; color: white; }
.map-tools [data-action="map-center"] { margin-left: auto; }
.map-attrib { position: absolute; bottom: 6px; left: 8px; background: #071021da; border-radius: 3px; padding: 3px 5px; font-size: .65rem; text-decoration: none; }
.map-status-strip { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr auto; gap: 8px; align-items: center; padding: 6px 10px; background: #102745; border-top: 1px solid #ffffff35; }
.map-status-strip div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.map-status-strip div:first-child { align-items: flex-start; }
.map-status-strip small { font-size: .68rem; color: #c0d6f2; }
.map-status-strip b { font-size: .86rem; font-weight: 630; font-variant-numeric: tabular-nums; }
.map-status-strip .icon-button { width: 34px; min-height: 33px; }
.readouts { margin: 13px 0 0; display: grid; gap: 7px; }
.readouts div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 0 0 6px; gap: 7px; }
.readouts dt { color: #bed0e8; font-size: .82rem; }
.readouts dd { margin: 0; font-size: .9rem; text-align: right; font-weight: 630; font-variant-numeric: tabular-nums; }
.map-transport { padding: 5px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid var(--line); }
.map-transport label { display: flex; align-items: center; font-size: .75rem; gap: 8px; }
.map-transport input { min-width: 48px; flex: 1; }
.map-transport .icon-button, .icon-button { width: 37px; padding: 0; border-color: var(--line); background: #22344c; min-height: 33px; }
.rate { display: flex; align-items: center; gap: 5px; }
.rate select { min-height: 33px; font-size: .82rem; }
input[type="range"] { accent-color: #a4d3ff; }
select { min-height: 40px; appearance: none; color: white; background: #1b2c43; border: 1px solid #7991b365; border-radius: 7px; padding: 7px 27px 7px 10px; }
.select-wrap { position: relative; display: inline-flex; max-width: 100%; }
.select-wrap::after { content: ""; position: absolute; right: 11px; top: 42%; border: solid var(--ice); border-width: 0 1.5px 1.5px 0; padding: 3px; transform: rotate(45deg); pointer-events: none; }
.sheet { color: #f4f7ff; width: min(560px, calc(100vw - 26px)); max-height: 89dvh; padding: 23px; background: #172335; border: 1px solid #8aa9cf7d; border-radius: 17px; box-shadow: 0 24px 90px #0009; overflow: auto; }
.sheet::backdrop { background: #030a14a9; backdrop-filter: blur(6px); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.sheet h2 { font-size: 1.54rem; letter-spacing: -.04em; }
.sheet-head .icon-button { flex: none; width: 37px; min-height: 37px; }
.sheet p { color: #c5d0e0; line-height: 1.55; margin-bottom: 12px; }
.sheet label.row { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, 1.5fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sheet label.row:last-child { border: 0; }
.sheet label.row select, .sheet label.row input { width: 100%; }
.sheet .readouts { margin-bottom: 14px; }
.sheet .credit-list { padding-left: 20px; margin: 8px 0; display: grid; gap: 8px; font-size: .89rem; }
.sheet.player { width: min(940px, calc(100vw - 26px)); }
.sheet video { display: block; width: 100%; max-height: 59dvh; background: #04070b; border-radius: 8px; margin: 0 0 12px; }
.player-meta { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.player-meta p { margin: 3px 0 0; }
.dimmer, .reading-glow { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.dimmer { background: #000; opacity: 0; }
.reading-glow { background: radial-gradient(ellipse at top right,#ffe1ab2a,transparent 46%); }
.sleep { position: fixed; inset: 0; z-index: 10; background: #05080c; border: 0; display: grid; place-content: center; gap: 15px; color: #bbcde4; font-size: 1.12rem; }
.sleep svg { margin: auto; width: 37px; height: 37px; }
.toast { position: fixed; z-index: 9; bottom: 77px; right: max(var(--pad), 15px); pointer-events: none; transform: translateY(9px); opacity: 0; transition: opacity .18s ease, transform .18s ease; background: #d5e9ff; color: #10233d; border-radius: 8px; font-weight: 700; padding: 9px 14px; }
.toast.visible { transform: translateY(0); opacity: 1; }
.dimmer { position: absolute; inset: 0; }
.toast { position: absolute; right: 12px; bottom: 52px; }
.console:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; }
.console:fullscreen .display { border: 0; border-radius: 0; }
@media (max-width: 700px) {
  body { padding: 15px 0; }
  .console { width: 96vw; --bezel-x: 10px; --bezel-y: 17px; min-height: min(585px, calc(100dvh - 30px)); aspect-ratio: auto; max-height: 880px; }
  .masthead { padding-inline: 8px; height: 41px; }
  .controls { padding-inline: 0; justify-content: space-evenly; }
  .controls button { width: min(36px, 8.5vw); min-height: 40px; }
  .controls svg { width: 16px; height: 16px; }
  .toolbar-divider { margin-inline: 0; display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-copy strong { font-size: .82rem; }
  .onboard-grid { grid-template-columns: 1fr; }
  .onboard-card { padding: 14px; }
  .map-attrib { font-size: .56rem; }
  .player-meta { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

.welcome-mode .controls { display: none; }
.welcome-mode .viewport { border-radius: 0 0 3px 3px; }
.start-page {
  isolation: isolate;
  position: relative;
  flex: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4.6vw, 62px);
  background:
    linear-gradient(128deg, #17335d 14%, #224a87 53%, #15366e 54%, #1762a7 100%);
}
.start-page::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(54deg, transparent 55%, #09192c78 55.1%, #0c204540 58%, transparent 58.1%);
}
.start-photo::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 33%;
  background: linear-gradient(90deg, #17335d66, #17335d1c), url("assets/n718an.jpg") 53% center / cover no-repeat;
  mask-image: linear-gradient(109deg, transparent 14%, #000 60%);
  content: "";
}
.start-content { width: min(370px, 67%); position: relative; }
.start-content > p { color: #dcecff; font-size: clamp(.81rem, 1.6vw, 1.1rem); }
.start-content h1 { font-size: clamp(2.4rem, 6.9vw, 5rem); font-weight: 570; margin-block: 7px 19px; letter-spacing: -.045em; }
.start-language { display: grid; gap: 6px; justify-items: start; }
.start-language span:first-child { color: #e0edff; font-size: .84rem; }
.start-language select { width: min(165px, 43vw); }
.start-content .actions { margin: 12px 0 15px; }
.start-content .primary { min-width: 92px; }
.start-access { padding: 5px 0; border: 0; background: none; color: #e3edfd; text-decoration: underline; text-underline-offset: 3px; font-size: .81rem; }
.start-access[aria-pressed="true"] { color: #fff1a8; }
.start-seat { position: absolute; top: 17px; right: 19px; padding: 5px 9px; background: #0a1a36ca; color: #f0f6ff; font-size: clamp(1rem, 3vw, 1.65rem); font-weight: 570; }
.high-contrast { --muted: #e1edff; --line: #d6e6ff8c; }
.high-contrast .library-tab, .high-contrast .start-language select, .high-contrast .controls { background: #091325; border-color: #e1eeff; }
.high-contrast :focus-visible { outline: 3px solid #ffef70; }
@media (max-width: 700px) {
  .start-page { padding-inline: 20px; }
  .start-photo::before { inset: 0 0 0 16%; background-position: 62% center; opacity: .7; }
}

.library {
  position: relative;
  min-width: 0;
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: clamp(108px, 15.5%, 168px) minmax(0, 1fr);
  background: radial-gradient(ellipse at 82% 7%, #673d5b71, transparent 54%), linear-gradient(118deg,#182f50,#222b44 61%,#272438);
}
.library-mode .viewport { overflow: hidden; }
.library-mode .controls { min-height: 33px; }
.library-mode .controls button { min-height: 33px; }
.library-nav {
  padding: clamp(24px, 8vh, 75px) 0 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #07122755;
  border-right: 1px solid #d9e9ff21;
}
.library-tab {
  width: 100%;
  padding: 9px clamp(6px, 1.25vw, 21px);
  min-height: 38px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  background: transparent;
  color: #e3eafa;
  font-size: clamp(.69rem, 1.3vw, .91rem);
  white-space: nowrap;
}
.library-tab svg { width: 15px; height: 15px; }
.library-tab:hover { background: #afdaff1e; }
.library-tab[aria-current="page"] { background: #94b7dc29; box-shadow: inset 2px 0 #a9ddff; color: #fff; }
.library-nav .flight-tab { margin-top: auto; border-top: 1px solid #ffffff1f; }
.library-main { min-width: 0; padding: 11px clamp(9px, 1.5vw, 22px) 15px; overflow: auto; scrollbar-width: thin; }
.feature {
  padding: clamp(13px, 2.6vw, 33px);
  min-height: clamp(150px, 18vw, 229px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(93deg, #10192cee, #10192cef 15%, #10192c82 57%, #10192c17 100%),
    var(--feature-image) 54% 48% / cover no-repeat;
}
.feature h1 { font-size: clamp(1.85rem, 4.15vw, 3.54rem); line-height: .97; letter-spacing: -.035em; font-weight: 590; }
.feature p { margin-top: 7px; color: #d6e2f2; font-size: .87rem; }
.feature .actions { margin-top: clamp(8px, 1.2vw, 15px); gap: 7px; }
.feature .secondary, .feature-play { min-height: 34px; font-size: .83rem; }
.feature-play { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 5px; padding: 6px 11px; background: #e4edff; color: #182239; font-weight: 650; }
.feature-play svg { width: 15px; height: 15px; fill: currentColor; }
.feature-play:hover { background: white; }
.poster-row { margin-top: 13px; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.row-head h2 { font-size: clamp(.95rem, 1.65vw, 1.28rem); font-weight: 630; }
.text-button { padding: 3px 0; border: 0; background: none; color: #c9e1ff; font-size: .82rem; }
.text-button:hover { text-decoration: underline; }
.library .tile { border-color: transparent; background: #111e35a6; border-radius: 4px; }
.library .tile:hover { border-color: #b5dafb; }
.library .tile-img { aspect-ratio: 2.04; }
.library .tile-copy { padding: 6px 8px 8px; }
.onboard-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.onboard-row button { min-height: 33px; font-size: .8rem; }
.library-catalog h1 { margin: 4px 0 10px; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 620; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.library-search { display: flex; align-items: center; gap: 5px; border: 1px solid #94b1d790; border-radius: 5px; padding: 3px 7px; background: #182b45; }
.library-search input { background: transparent; color: #fff; border: 0; width: min(32vw, 220px); min-height: 30px; }
.library-search svg { width: 17px; height: 17px; }
.library-search input::placeholder { color: #c2d3e8; }
.flight-drawer {
  position: absolute;
  z-index: 7;
  inset: 42px 0 0 auto;
  margin: 0;
  width: min(360px, 65%);
  max-width: none;
  max-height: none;
  padding: 14px;
  overflow: auto;
  border: 1px solid #a6bdd45e;
  border-radius: 9px 0 0 0;
  color: #f6f8ff;
  background: linear-gradient(155deg,#32465bfa,#1b2a3cfb);
  box-shadow: -7px 0 20px #060c19af;
  backdrop-filter: blur(10px);
}
.drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 7px; }
.drawer-head p { color: #c4d3e3; font-size: .73rem; margin-bottom: 2px; }
.drawer-head h2 { font-size: 1.27rem; font-weight: 630; }
.drawer-map { position: relative; height: clamp(80px, 12vw, 125px); overflow: hidden; border-radius: 5px; margin-block: 10px; background: #0d2136; }
.drawer-map canvas, .picture-map canvas { width: 100%; height: 100%; display: block; }
.drawer-map-open { display: inline-flex; align-items: center; gap: 5px; position: absolute; left: 7px; bottom: 6px; padding: 6px 9px; border-radius: 4px; background: #0c1929e6; border: 1px solid #a5bcd767; font-size: .75rem; }
.drawer-map-open svg { width: 15px; height: 15px; }
.flight-drawer .route-pair { gap: 9px; }
.flight-drawer .route-pair strong { font-size: 1.16rem; }
.flight-drawer .route-pair small { font-size: .72rem; }
.flight-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; margin: 11px 0; gap: 8px 11px; }
.flight-summary div { border-top: 1px solid #f4f8ff2b; padding-top: 6px; }
.flight-summary dt { color: #d1def0; font-size: .73rem; }
.flight-summary dd { margin: 2px 0 0; font-weight: 650; font-size: .94rem; }
.drawer-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.drawer-actions button { min-height: 33px; padding: 4px; font-size: .72rem; }
.drawer-actions svg { width: 15px; height: 15px; }
.picture-map {
  position: absolute;
  z-index: 4;
  bottom: 7px;
  right: 7px;
  width: clamp(123px, 27%, 243px);
  aspect-ratio: 1.7;
  background: #123150;
  border: 1px solid #bdcfe8ab;
  border-radius: 6px;
  box-shadow: 0 3px 14px #0009;
  overflow: hidden;
}
.picture-map > span { position: absolute; inset: auto 0 0; padding: 3px 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; background: #0c162bd6; font-size: .71rem; }
.picture-map .icon-button { position: absolute; top: 3px; right: 3px; width: 25px; min-height: 24px; background: #0e1a2ce3; }
.picture-map .icon-button svg { width: 15px; height: 15px; }
.video-stage { position: relative; }
.video-stage .picture-map { bottom: 46px; }
.player-actions { display: flex; align-items: center; gap: 5px; }
.player-actions [aria-pressed="true"] { border-color: #a9d5ff; background: #304e6c; }
.reading-glow, .sleep { position: absolute; }
.welcome-mode .masthead { background: #0a101e; }

@media (max-width: 700px) {
  .library { grid-template-columns: minmax(70px, 23%) minmax(0, 1fr); }
  .library-nav { padding-top: 19px; }
  .library-tab { gap: 4px; padding-inline: 5px; white-space: normal; }
  .library-tab svg { width: 13px; height: 13px; }
  .library .tiles { gap: 6px; }
  .library .tile-copy { padding-inline: 5px; }
  .flight-drawer { width: min(340px, 87%); padding: 11px; }
}

.feature-deck { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 8px; }
.feature-shortcuts { display: grid; grid-template-rows: 1fr 1fr; gap: 7px; }
.feature-shortcut { display: flex; align-items: center; justify-content: flex-start; gap: 9px; border-radius: 5px; border: 1px solid #b6cde84a; padding: 9px; color: #fff; text-align: left; font-weight: 590; font-size: clamp(.73rem, 1.4vw, .94rem); }
.shortcut-map { background: linear-gradient(132deg,#142841,#365a74); }
.shortcut-wifi { background: linear-gradient(132deg,#182946,#443653); }
.feature-shortcut:hover { border-color: #c8defa; }
.feature-shortcut svg { width: 21px; height: 21px; color: #d4e9ff; }
.sheet.player:modal { position: fixed; }
.sheet.player[open]:not(:modal) { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 7px; inset: 0; margin: 0; position: absolute; z-index: 7; width: 100%; height: 100%; max-height: none; max-width: none; padding: 9px 12px; border: 0; border-radius: 0; background: #0b1019; }
.player .sheet-head { margin: 0; }
.player .sheet-head h2 { font-size: clamp(1rem, 2vw, 1.45rem); }
.player .video-stage { min-height: 0; }
.player video { height: 100%; max-height: none; margin: 0; object-fit: contain; background: #05070a; }
.player .player-meta { align-items: center; }
.player .player-meta p { font-size: clamp(.7rem, 1.3vw, .82rem); }
.player .player-actions button { min-height: 33px; font-size: .78rem; }
@media (max-width: 700px) {
  .feature-deck { grid-template-columns: 1fr; }
  .feature-shortcuts { grid-template: 1fr / repeat(2,minmax(0,1fr)); }
  .feature-shortcut svg { height: 17px; width: 17px; }
  .player .video-stage .picture-map { bottom: 37px; }
}

.watch-marker { display: block; height: 2px; margin-top: 3px; background: #e8f4ff30; }
.watch-marker i { display: block; height: 100%; background: #99dcff; }
.catalog-time { margin: 0 0 10px; color: #cfdbec; font-size: .84rem; }
.catalog-time b { margin-left: 4px; color: #f1f6ff; font-variant-numeric: tabular-nums; }
.finish-filter { min-height: 37px; font-size: .8rem; }
.drawer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 10px 0; padding: 3px; background: #152438; border-radius: 5px; }
.drawer-tab { border: 1px solid transparent; border-radius: 3px; background: transparent; color: #cedced; padding: 7px 4px; font-size: .79rem; }
.drawer-tab[aria-pressed="true"] { border-color: #bad5ed6b; background: #3a5877; color: #fff; }
.flight-drawer .row { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin: 9px 0; color: #e0ebfb; font-size: .8rem; }
.flight-drawer .row input { width: 58%; }
.flight-drawer select, .player .player-actions select { min-height: 32px; font-size: .78rem; }
.drawer-sliders { margin: 12px 0; }
.flight-drawer .secondary[aria-pressed="true"] { background: #44668c; border-color: #b1d9f8; }
.picture-data { padding: 8px; background: #17273bed; }
.picture-data p { margin: 0 22px 5px 0; color: #fff; font-size: .82rem; font-weight: 640; }
.picture-data dl { margin: 0; color: #dce9fc; }
.picture-data dl div { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 3px; font-size: clamp(.59rem, 1.05vw, .73rem); }
.picture-data dd { margin: 0; font-weight: 640; text-align: right; white-space: nowrap; }
.map-status-strip .map-status-actions { flex-direction: row; gap: 4px; }
.map-tools [data-action="map-heading"] { margin-left: auto; }
.map-tools [data-action="map-heading"]:not([hidden]) + [data-action="map-center"] { margin-left: 0; }
