:root { --c-accent: #7fd6ff; --c-page-bg: linear-gradient(#1a2233, #0c1018); --c-panel: rgba(18, 23, 34, .95);
  --pnl: #655d54; --pnl-dark: #4b453f; --pnl-line: #2c2824; --ink: #ece7dc; --mag: #ff5fe0; --lcd: #f6edcf; }
.c-home .c-title { color: #f2f2f2; }
.c-home .c-title span { color: #7fd6ff; }
html, body { margin: 0; height: 100%; background: #0c1018; color: #f2f2f2; overflow: hidden;
  font: 16px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#cockpit { position: fixed; inset: 0; background: #0c1018; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#c-corner #quick { position: static; }
#flightBot { width: min(70vw, 260px); }
#flightBot[hidden] { display: none !important; }
#seats .docs a { color: var(--c-accent); }
#quick { position: absolute; z-index: 3; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; zoom: var(--ui, 1); }
.qbtn { position: relative; min-width: 96px; min-height: 56px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .55); background: rgba(20, 22, 27, .82);
  color: #fff; font: 800 18px/1 system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.qbtn.on { background: #1f6a35; border-color: #7dff8a; }
.qbtn:active { filter: brightness(1.3); }
.pointed { outline: 3px solid var(--mag); outline-offset: 2px; animation: ring .7s infinite alternate; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255, 95, 224, .1); } to { box-shadow: 0 0 0 8px rgba(255, 95, 224, .5); } }
#calls { position: absolute; z-index: 3; left: 50%; top: calc(var(--band-h, 52px) + 6px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; zoom: var(--ui, 1); width: max-content; max-width: 96vw; }
.call { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 7px 16px 9px; border-radius: 12px;
  background: rgba(8, 12, 20, .84); border: 1px solid rgba(255, 255, 255, .25); }
.call .from { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: #3d4660; color: #fff; }
.call .from.atc { background: #8a5a12; } .call .from.gpws { background: #9a1f1f; }
.call .what { font-size: 24px; font-weight: 900; letter-spacing: .04em; color: #fff; }
.call .left { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--left, 1) * 100%); background: #7dff8a; }
.call.late .left { background: #ff6a4d; width: 100%; }
.call.done { border-color: #7dff8a; }
.call.done .what { color: #7dff8a; }
.call.theirs { opacity: .8; padding: 4px 12px; }
.call.theirs .what { font-size: 14px; font-weight: 700; }
#warn { position: absolute; z-index: 3; left: 50%; top: calc(var(--band-h, 52px) + 112px); transform: translateX(-50%); zoom: var(--ui, 1);
  padding: 4px 14px; border-radius: 8px; background: #b01818; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .08em; pointer-events: none;
  animation: blink .5s infinite alternate; white-space: nowrap; }
.scr-sideways.scr-compact #calls { left: 5.5%; top: calc(var(--band-h, 52px) + 4px); transform: none; align-items: flex-start; }
.scr-sideways.scr-compact .call .what { font-size: 20px; }
.scr-sideways.scr-compact #warn { top: calc(var(--band-h, 52px) + 8px); left: auto; right: 12px; transform: none; }
@keyframes blink { from { opacity: 1; } to { opacity: .55; } }
#vrefCard { position: absolute; z-index: 4; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); zoom: var(--ui, 1);
  padding: 10px 14px 12px; border-radius: 14px; background: rgba(12, 16, 26, .95); border: 2px solid var(--mag); text-align: center; width: max-content; max-width: 94vw; }
#vrefCard h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; color: #b9c4dc; }
#vrefCard table { border-collapse: collapse; margin: 0 auto 6px; font: 700 14px ui-monospace, Consolas, monospace; }
#vrefCard td, #vrefCard th { padding: 2px 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
#vrefCard th { color: #9aa6c0; font-weight: 700; }
#vrefCard p { margin: 4px 0 8px; font-size: 17px; font-weight: 800; }
#vrefCard .c-btn { min-width: 64px; min-height: 46px; font: 800 18px ui-monospace, Consolas, monospace; }
.scr-sideways.scr-compact #vrefCard table { display: inline-table; }
.scr-sideways.scr-compact #vrefCard tr { display: inline-block; }
.scr-sideways.scr-compact #vrefCard h3 { display: none; }
.screen { position: fixed; inset: 0; z-index: 100; display: flex; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
  box-sizing: border-box; padding: calc(var(--band-h, 52px) + 8px) 14px 14px; background: rgba(8, 11, 18, .86); overflow-y: auto; touch-action: pan-y; }
#seats { background: var(--c-page-bg); }
.col { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: auto; zoom: var(--ui, 1); text-align: center; }
.card { padding: 18px 16px; border-radius: 18px; background: #1a2130; border: 1px solid rgba(255, 255, 255, .12); box-sizing: border-box; }
h2 { margin: 0; font-size: 24px; font-weight: 800; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.c-btn.big { min-width: 150px; min-height: 52px; font-size: 18px; }
.note { margin: 0; font-size: 14px; color: #9aa6c0; }
.seatRow { display: flex; gap: 12px; width: 100%; }
.seat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; cursor: pointer;
  background: #232c40; border: 2px solid rgba(255, 255, 255, .18); color: #fff; }
.seat:active { border-color: var(--c-accent); }
.seat b { font-size: 17px; letter-spacing: .05em; }
.seat small { font-size: 13px; color: #b9c4dc; }
.seat .pic { width: 96px; height: 56px; border-radius: 10px 10px 4px 4px; background:
  linear-gradient(#7fd6ff, #7fd6ff) 0 0 / 100% 0 no-repeat, #10151f; position: relative; border: 1px solid #000; }
.seat .pic::before, .seat .pic::after { content: ''; position: absolute; bottom: 6px; width: 30px; height: 34px; border-radius: 9px 9px 4px 4px; background: #3a4358; }
.seat .pic::before { left: 12px; } .seat .pic::after { right: 12px; }
.seat .pic.left::before, .seat .pic.right::after { background: #7fd6ff; box-shadow: 0 0 10px #7fd6ff; }
#end .col { gap: 10px; }
.stats { display: grid; grid-template-columns: auto auto auto; gap: 6px 14px; align-items: center; justify-content: center; font-size: 16px; }
.stats .k { text-align: right; color: #b9c4dc; }
.stats .v { text-align: left; font: 800 17px ui-monospace, Consolas, monospace; }
.stats .p { font: 700 14px ui-monospace, Consolas, monospace; color: #7dff8a; }
.total { font-size: 44px; font-weight: 900; color: #7fd6ff; line-height: 1; }
.total small { font-size: 16px; color: #9aa6c0; font-weight: 700; }
.bad { color: #ff8a70; }
#wait.screen { padding: 0; align-items: stretch; justify-content: stretch; background: var(--c-page-bg); }
#waitPanel { width: 100%; height: 100%; }
#waitPanel .docs a { color: var(--c-accent); }
.swapSeat { min-height: 40px; }
body.tv #quick, body.tv #vrefCard, body.tv #flightBot, body.tv .swapSeat, body.tv #endButtons { display: none !important; }
