/* BLADES — "Log it once": the app's Log Flight screens (app/flight/add.tsx, app/drone-flight/add.tsx) rebuilt in
   HTML on two iPhones, filling in as you scroll, over a map where a flight crosses the Atlantic. */

@font-face { font-family: "DSEG7"; src: url(../fonts/dseg7-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(../fonts/chakrapetch-semibold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

.lfs { position: relative; background: var(--night); color: var(--white); }
/* One screen pinned, then 460vh of scroll for a flight that runs to the end (--end 1); js/logflight.js sets --end to where
   the pane on show finishes, so each pane is only as long as its own flight. */
.lfs.lfs-on { height: calc(100vh + 460vh * var(--end, 1)); }
.lfs-pin { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.lfs-on .lfs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
/* Two panes side by side: the full log (two phones) and, swiped in from the right, Quicklog + ACARS scan. */
.lfs-panes {
  display: flex; height: 100%; min-height: inherit;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.lfs-panes::-webkit-scrollbar { display: none; }
.lfs-pane {
  position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 90px max(var(--pad), calc((100% - 1240px) / 2)) 72px;   /* the foot: the switcher (.lfs-nav) */
}

/* Copy */
.lfs-copy { position: relative; z-index: 2; align-self: center; max-width: 400px; }
.lfs-copy h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.045em; }
.lfs-copy h2 em { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.lfs-leg { margin-top: 18px; color: var(--mist); font-size: 17px; line-height: 1.45; }
.lfs-leg b { display: block; color: var(--white); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }

/* The phones: the mockup image, scaled; each screen placed with a perspective transform (js/logflight.js) */
.lfs-stage { position: relative; z-index: 1; width: var(--sw, 540px); height: var(--sh, 80vh); }
.lfs-k { position: absolute; left: 0; top: 0; width: 1248px; height: 1832px; transform-origin: 0 0; transform: scale(var(--k, 0.4)); }
/* Each phone: its picture with the app screen on top. Placed by js/logflight.js (side by side, or stacked on a phone). */
.lfp { position: absolute; left: 0; top: 0; }
.lfp-pilot { width: 586px; height: 1519px; }
.lfp-drone { width: 612px; height: 1584px; z-index: 1; }
.lfp-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }


/* What each phone is for: a line of text under it (placed by js/logflight.js) */
.lfs-tag {
  position: absolute; z-index: 2; left: 0; top: 0; margin: 0; width: 220px; padding: 6px 8px; text-align: center;
  border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; pointer-events: none;
}
/* Once the script runs, each caption opens its phone full screen. */
.fv-ready .lfs-tag { pointer-events: auto; cursor: pointer; }
.fv-ready .lfp { cursor: pointer; }
.lfs-open { display: none; }
.fv-ready .lfs-open {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 6px 12px 6px 10px;
  border-radius: 999px; border: 1px solid rgba(0, 200, 232, 0.5); background: rgba(0, 200, 232, 0.12);
  font-size: 12.5px; font-weight: 600; color: var(--white); transition: background-color 0.2s ease;
}
.lfs-open svg { width: 13px; height: 13px; fill: none; stroke: #00C8E8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lfs-tag:hover .lfs-open { background: rgba(0, 200, 232, 0.24); }
.lfs-tag b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--white); }
.lfs-tag em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--mist); }

/* The three ways to log, one small switcher at the foot of the scene (a swipe moves between them too). The capsule
   behind the one on show slides along (--x, --w from js/logflight.js). */
.lfs-nav {
  position: absolute; left: 50%; bottom: 16px; z-index: 5; transform: translateX(-50%);
  display: flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(8, 16, 30, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lfs-nav[hidden] { display: none; }
.lfs-nav::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px; background: rgba(0, 200, 232, 0.14); box-shadow: inset 0 0 0 1px rgba(0, 200, 232, 0.42);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.lfs-nav button {
  position: relative; padding: 8px 15px; border: 0; border-radius: 999px; background: none;
  font: 600 13px/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap; color: var(--mist); cursor: pointer; transition: color 0.25s ease;
}
.lfs-nav button:hover, .lfs-nav button[aria-current="true"] { color: var(--white); }
.lfs-nav button:focus-visible { outline: 2px solid #00C8E8; outline-offset: 1px; }
.lfs-copy h2 + .lfs-leg { margin-top: 30px; }

/* Quicklog pane: the steps beside the phone */
/* The stopwatch: from the tap on Log flight to Save (js/logflight.js runs it with the scroll) */
.lfb-clock { margin: 34px 0 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.lfb-clock b { font-weight: 800; font-size: clamp(56px, 5.4vw, 76px); line-height: 0.9; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--white); transition: color 0.35s ease; }
.lfb-clock span { font-family: var(--serif); font-style: italic; font-size: 30px; color: #00C8E8; }
.lfb-clock em { grid-column: 1 / -1; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--mist); }
.lfb-clock.done b { color: #00C8E8; }
.lfb-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.lfb-steps li { position: relative; padding: 9px 0 9px 22px; color: rgba(255, 255, 255, 0.34); transition: color 0.35s ease; }
.lfb-steps li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: background-color 0.35s ease, box-shadow 0.35s ease; }
.lfb-steps li::after { content: ""; position: absolute; left: 3.5px; top: 27px; bottom: -11px; width: 1px; background: rgba(255, 255, 255, 0.12); }
.lfb-steps li:last-child::after { display: none; }
.lfb-steps i { display: none; }
.lfb-steps b { display: block; font-weight: 700; font-size: 19px; line-height: 1.2; }
.lfb-steps span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; }
.lfb-steps li.done { color: rgba(255, 255, 255, 0.55); }
.lfb-steps li.done::before { background: #00C8E8; }
.lfb-steps li.cur { color: var(--white); }
.lfb-steps li.cur span { color: var(--mist); }
.lfb-steps li.cur::before { background: #00C8E8; box-shadow: 0 0 0 5px rgba(0, 200, 232, 0.2); }
.lfs-stage-b { width: var(--bw, 360px); height: var(--bh, 80vh); }
/* A computer with a low screen (a laptop at 720–940 px): the steps beside the Quicklog phone close up, and only the
   step being shown keeps its line of explanation, so the whole list fits beside the phone. */
@media (min-width: 821px) and (max-height: 940px) {
  .lfs-pane { padding-top: 84px; padding-bottom: 64px; }
  .lfs-pane-b .lfs-copy { align-self: start; }
  .lfb-clock { margin-top: 22px; }
  .lfb-clock b { font-size: clamp(48px, 4.6vw, 64px); }
  .lfb-steps { margin-top: 16px; gap: 0; }
  .lfb-steps li { padding: 6px 0 6px 22px; }
  .lfb-steps li::before { top: 12px; }
  .lfb-steps li::after { top: 24px; bottom: -8px; }
  .lfb-steps b { font-size: 17px; }
  .lfs-on .lfs-pane-b .lfb-steps li:not(.cur) span { display: none; }
}
/* A phone on its side, or a very low window: the step being done stays, the rest of the list goes */
@media (min-width: 821px) and (max-height: 560px) {
  .lfs-pane { padding-top: 84px; padding-bottom: 52px; }
  .lfs-copy h2 { font-size: clamp(26px, 3.2vw, 36px); }
  .lfb-clock { margin-top: 12px; }
  .lfb-clock b { font-size: 40px; }
  .lfb-clock span { font-size: 22px; }
  .lfs-on .lfs-pane-b .lfb-steps li:not(.cur) { display: none; }
  .lfs-on .lfs-pane-b .lfb-steps li::after { display: none; }
  /* The phones are small here: each caption is just its full-screen button (the words stay for screen readers) */
  .lfs-tag { width: auto; padding: 2px; }
  .lfs-tag b, .lfs-tag em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fv-ready .lfs-open { margin-top: 2px; padding: 7px; gap: 0; font-size: 0; }
  .lfs-open svg { width: 14px; height: 14px; }
}
@media (min-width: 821px) {
  .lfs-pane-b { grid-template-columns: minmax(0, 440px) auto; justify-content: center; column-gap: clamp(48px, 9vw, 150px); }
  .lfs-copy h2 em { display: block; }
}
.lfs-kb { width: 612px; height: 1584px; }
.lfp-solo { width: 612px; height: 1584px; }
/* The straight-on phone the photographed one turns into (js/logflight.js), the same as the full-screen view's */
.lfp-flat {
  position: absolute; left: 0; top: 0; width: 430px; height: 902px; transform-origin: 0 0; pointer-events: none; opacity: 0;
  border-radius: 70px;
  background: linear-gradient(145deg, #50565f, #1b1e23 32%, #2c3138 68%, #111316);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24), inset 0 0 0 8px #0b0d10, 0 50px 90px rgba(0, 0, 0, 0.55);
}

/* ---------------- One app screen: 402 × 874, as on the phone ---------------- */
.lf-screen {
  --bg: #0A1628; --card: #0F1E3A; --el: #152338; --bd: #1A3A5A; --sep: #122030;
  --acc: #00C8E8; --ok: #00E8A0; --gold: #FFB830; --t2: #7FA8C8; --mut: #3A5A7A;
  position: absolute; left: 0; top: 0; width: 402px; height: 874px;
  transform-origin: 0 0;
  overflow: hidden; border-radius: 56px;
  background: var(--bg); color: #fff;
  font: 14px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  display: flex; flex-direction: column;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.lf-drone { --t2: #A8BFD6; --mut: #5A7FA0; --el: #16314E; }
.lf-screen .ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lf-screen .ic .fill, .lf-screen .ic.ok .f { fill: currentColor; stroke: none; }
.lf-screen .ic .dots { stroke-width: 2.6; }
.lf-screen .ic.ok { color: var(--ok); } .lf-screen .ic.ok .w { stroke: #0A1628; stroke-width: 2.4; }
.lf-screen .ic .w2 { stroke: var(--acc); stroke-width: 2.4; }

/* status bar + header */
.lf-sb { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px; }
.lf-clock { font-weight: 600; font-size: 16px; }
.lf-island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 18px; background: #000; }
.lf-sig { display: flex; align-items: flex-end; gap: 2px; }
.lf-sig i { width: 3px; background: #fff; border-radius: 1px; }
.lf-sig i:nth-child(1) { height: 4px; } .lf-sig i:nth-child(2) { height: 6px; } .lf-sig i:nth-child(3) { height: 8px; } .lf-sig i:nth-child(4) { height: 10px; }
.lf-batt { width: 24px; height: 11px; margin-left: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); position: relative; }
.lf-batt::after { content: ""; position: absolute; inset: 2px 6px 2px 2px; border-radius: 1px; background: #fff; }
.lf-head { position: relative; flex: none; background: var(--card); padding: 8px 16px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 0.5px solid var(--sep); }
.lf-date { font: 700 22px Georgia, "Times New Roman", serif; letter-spacing: -0.6px; }
.lf-cal { color: var(--acc); font-size: 18px; display: flex; }
.lf-x, .lf-scan { position: absolute; bottom: 12px; font-size: 22px; display: flex; }
.lf-x { left: 16px; } .lf-scan { right: 16px; color: var(--acc); }
.lf-mode { flex: none; background: var(--card); padding: 8px 14px; display: flex; border-bottom: 0.5px solid var(--sep); }
.lf-mode .sp { flex: 1; }

/* toggles (SlideToggle) */
.tg { display: flex; background: var(--el); border: 1px solid var(--bd); border-radius: 8px; padding: 2px; gap: 0; }
.tg span { flex: 1; text-align: center; border-radius: 6px; font-weight: 800; letter-spacing: 0.3px; color: var(--mut); transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }
.tg span.sel { background: var(--on); color: #0A1628; box-shadow: 0 0 6px color-mix(in srgb, var(--on) 50%, transparent); }
.tg.sm span { flex: none; font-size: 9.5px; padding: 4px 12px; }
.tg.blk span { font-size: 12px; padding: 8px 0; }

.lf-view { position: relative; flex: 1; overflow: hidden; }
.lf-scr { padding: 16px 16px 60px; display: flex; flex-direction: column; gap: 8px; will-change: transform; }

/* reverse bar */
.rev { display: flex; align-items: center; gap: 8px; background: #00C8E814; border: 1px solid #00C8E833; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--t2); }
.rev .ic { color: var(--acc); font-size: 14px; } .rev .ic:last-child { margin-left: auto; color: var(--t2); }
.rev b { color: #fff; }
.rev { position: relative; transition: background-color 0.3s ease, border-color 0.3s ease; }
.rev.sel { background: #00C8E826; border-color: #00C8E899; }   /* tapped: the reversed flight fills the form */

/* route card */
.place { margin-top: 10px; background: var(--card); border: 1px solid var(--bd); border-radius: 16px; padding: 14px; }
.leg { display: flex; margin: -14px -14px 0; }
.pnl { flex: 1; min-width: 0; background: #00C8E80D; padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); }
.pnl:first-child { border-right: 1px solid var(--sep); border-radius: 15px 12px 12px 0; }
.pnl:last-child { border-left: 1px solid var(--sep); border-radius: 12px 15px 0 12px; }
.pnl-h { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; text-align: center; }
.icao { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--bd); border-radius: 10px; padding: 12px; font: 700 19px/1 "Chakra Petch", sans-serif; letter-spacing: 0.5px; height: 46px; }
.icao .ic { font-size: 18px; }
.apn, .loc { text-align: center; font-size: 10px; color: var(--t2); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utc { position: relative; margin-top: 6px; background: var(--card); border: 1px solid #00E8A088; border-radius: 10px; padding: 12px 30px 12px 12px; font: 700 18px/1 "DSEG7", monospace; letter-spacing: 1px; height: 44px; display: flex; align-items: center; }
.utc em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 15px "Chakra Petch", sans-serif; font-style: normal; color: var(--acc); }
.utc.c { justify-content: center; padding: 12px 30px; }
.conn { flex: none; width: 0; opacity: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 0; transition: width 0.55s cubic-bezier(.3, 1, .4, 1), opacity 0.4s ease 0.12s; }
.place.sel .conn { width: 48px; opacity: 1; }
.pnl { transition: border-radius 0.4s ease; }
.place:not(.sel) .pnl:first-child { border-radius: 15px 0 0 0; }
.place:not(.sel) .pnl:last-child { border-radius: 0 15px 0 0; }
.pl-x { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(.3, 1, .4, 1); }
.place.sel .pl-x { max-height: 190px; }
.lfs-measure .place .conn { width: 48px; } .lfs-measure .pl-x { max-height: none; }
.lfs-measure *, .lfs-notrans * { transition: none !important; }
.conn .flag { width: 20px; height: 15px; border-radius: 2px; }
.conn .dash { flex: 1; width: 2px; background: repeating-linear-gradient(#00C8E880 0 5px, transparent 5px 9px); margin: 4px 0; }
.lf-plane { width: 34px; height: 34px; fill: var(--acc); transform: rotate(180deg); }
.lfhero { position: relative; margin-top: 12px; min-height: 92px; display: flex; justify-content: center; }
.lfhero-l { position: absolute; left: 0; top: 4px; display: grid; gap: 1px; }
.lfhero-l b { font: 800 20px "Chakra Petch", sans-serif; }
.lfhero-l em { font: 9px "JetBrains Mono", monospace; color: var(--acc); font-style: normal; }
.lfhero-l span { font: 800 7.5px "JetBrains Mono", monospace; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.tot { display: grid; justify-items: center; padding: 8px 18px; border-radius: 14px; border: 1px solid #00C8E888; background: #FFB8300D; }
.tot b { font: 800 28px/1 "DSEG7", monospace; }
.tot > span { margin-top: 5px; font: 800 9px "JetBrains Mono", monospace; letter-spacing: 1.4px; text-transform: uppercase; }
.tot .tot-i { display: flex; align-items: center; gap: 4px; font: 700 8px "JetBrains Mono", monospace; letter-spacing: 0.5px; }
.tot-i i { width: 4px; height: 4px; border-radius: 50%; background: var(--acc); }
.lfhero-r { position: absolute; right: 0; top: 0; display: grid; justify-items: center; gap: 3px; }
.sunglobe { width: 60px; height: 60px; }
.lfhero-r span { font: 700 7.5px "JetBrains Mono", monospace; letter-spacing: 0.4px; color: var(--mut); text-transform: uppercase; }
.twl { margin-top: 13px; display: flex; align-items: center; gap: 7px; }
.twl > span { width: 24px; font: 800 7.5px "JetBrains Mono", monospace; letter-spacing: 0.5px; color: var(--t2); }
.twl-b { flex: 1; height: 14px; border-radius: 8px; border: 1px solid var(--bd); overflow: hidden; display: flex; }
.twl-b i { width: var(--w); background: var(--c); }
.twl-lab { display: flex; margin: 3px 31px 0; font: 700 7px "JetBrains Mono", monospace; text-transform: uppercase; color: var(--mut); }
.twl-lab span { text-align: center; }
.via { display: flex; align-items: center; gap: 10px; margin: 12px -2px 0; }
.via i { flex: 1; border-top: 1px dashed var(--bd); }
.via span { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--bd); font: 800 9px "JetBrains Mono", monospace; letter-spacing: 0.8px; color: var(--t2); text-transform: uppercase; }

/* condition bars (CondBar) */
.bars { margin: 6px 0; }
.cb { margin-bottom: 12px; }
.cb-h { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.cb-l { font: 700 9px "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); }
.cb-p { margin-left: auto; font: 9px "JetBrains Mono", monospace; color: var(--mut); }
.cb-r { display: flex; align-items: center; gap: 8px; }
.cb-t { position: relative; flex: 1; height: 20px; border-radius: 8px; background: var(--el); border: 1px solid var(--bd); overflow: hidden; }
.cb-t i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w, var(--pct)) * 1%); background: color-mix(in srgb, var(--tint) 50%, transparent); }
.cb-t b { position: absolute; top: 0; bottom: 0; width: 10px; border-radius: 4px; background: var(--tint); box-shadow: 0 0 4px color-mix(in srgb, var(--tint) 85%, transparent); left: max(0px, calc(var(--w, var(--pct)) * 1% - 5px)); }
.cb-v { width: 58px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--el); border: 1px solid var(--bd); font: 700 14px "DSEG7", monospace; color: var(--tint); }
.auto { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: #00E8A024; border: 1px solid #00E8A066; font: 700 8px "JetBrains Mono", monospace; letter-spacing: 0.6px; color: var(--ok); }
.auto .ic { font-size: 8px; stroke-width: 3; }

/* aircraft & crew card */
.lfcard { background: var(--card); border: 0.5px solid var(--bd); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.row2 { display: flex; gap: 10px; }
.fld { flex: 1; min-width: 0; }
.fl { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--t2); margin: 2px 0 4px; }
.fl .ic { color: var(--acc); font-size: 16px; }
.fl.sec { margin-top: 12px; }
.pick { position: relative; display: flex; align-items: center; height: 44px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--bd); background: var(--el); transition: border-color 0.25s ease; }
.lf-drone .pick { background: var(--card); }
.pick > .pv { flex: 1; min-width: 0; font: 800 16px "JetBrains Mono", monospace; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv b { font-weight: inherit; }
.pv b.ph { color: var(--mut); }
.lfs:not(.lfs-on) .pv > b:not(:last-child) { display: none; }
.pick > .ic:first-of-type { transition: transform 0.25s ease; }
.lfs-on .pick.in { border-color: var(--acc); }
.lfs-on .pick.in > .ic:first-of-type { transform: rotate(180deg); }
/* The flyout of saved aircraft under the fields (no header, codes only) */
.pk2 { position: relative; }
.dd { position: absolute; z-index: 6; top: calc(100% + 4px); left: 0; padding: 8px; border-radius: 10px; background: #152338; border: 1px solid var(--bd); box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4); }
.lfs:not(.lfs-on) .dd { display: none; }
.lfs-on .dd { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s; }
.lfs-on .dd.in { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s ease; }
.dd-t { width: 55%; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto); justify-content: start; gap: 6px; }
.dd-r { right: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 4px 6px; }
.ddc { position: relative; padding: 7px 11px; border-radius: 8px; background: var(--card); border: 1px solid var(--bd); font: 800 12px "JetBrains Mono", monospace; letter-spacing: 0.5px; color: var(--t2); white-space: nowrap; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.dd-r .ddc { padding: 6px 0; border-radius: 7px; text-align: center; font-size: 9.5px; letter-spacing: 0.3px; }
.ddc.sel { background: #00C8E824; border-color: var(--acc); color: var(--acc); }
.lf-drone .dd { background: #16314E; }
.lf-drone .ddc { background: #0F1E3A; color: #A8BFD6; }
.lf-drone .ddc.sel { background: #00C8E824; color: var(--acc); }
.pick .ic { color: var(--t2); font-size: 15px; }
.pick > i { width: 1px; height: 20px; margin: 0 6px; background: var(--bd); }
.pick .ic:last-child { color: var(--acc); font-size: 18px; }
.role { display: flex; gap: 6px; }
.role-g { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.role-g span { padding: 10px 0; text-align: center; border-radius: 10px; background: var(--el); border: 1px solid var(--bd); font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: 0.3px; color: var(--t2); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.role-g span.wide { grid-column: 1 / -1; }
.role-g span.sel { background: #00C8E824; border-color: var(--acc); color: var(--acc); }
.role-g.op span.sel { background: #FFB83024; border-color: var(--gold); color: var(--gold); }
.sw { width: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 8px/10px "JetBrains Mono", monospace; text-align: center; color: var(--mut); }
.sw span.on, .sw-t.sel ~ .mp { color: var(--acc); }
.sw-t { position: relative; flex: 1; width: 30px; min-height: 40px; border-radius: 15px; border: 1px solid #00C8E866; background: var(--el); box-shadow: inset 0 0 0 20px #00C8E82E; }
.sw-t i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: top 0.35s cubic-bezier(.3, 1.3, .5, 1); }
.sw-t.sel i { top: calc(100% - 25px); }
.pp { display: flex; gap: 6px; }
.pp-r { display: flex; align-items: center; justify-content: center; min-width: 48px; height: 44px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--bd); background: var(--el); }
.lf-drone .pp-r, .lf-drone .pp-n, .lf-drone .pp-a { background: var(--card); }
.pp-r b { display: none; font: 800 11px "JetBrains Mono", monospace; color: var(--acc); }
.pp-r .ic { font-size: 15px; }
.pp-r.sel { border-color: var(--acc); } .pp-r.sel b { display: block; } .pp-r.sel .ic { display: none; }
.pp-n { flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--bd); background: var(--el); }
.pp-n > span:first-child { flex: 1; font-weight: 700; font-size: 14px; }
.pp-n .ic { color: var(--t2); font-size: 15px; } .pp-n > i { width: 1px; height: 20px; margin: 0 6px; background: var(--bd); } .pp-n .ic:last-child { color: var(--acc); font-size: 18px; }
/* Scan-log: the second pilot picked from the crew list */
.pp.pk2 { flex-wrap: nowrap; }
.pp-n { position: relative; }
.lfs-on .pp-n.in { border-color: var(--acc); }
.dd-crew { left: 54px; right: 54px; display: grid; gap: 5px; }
.dd-crew .ddc { font: 700 13px -apple-system, system-ui, sans-serif; letter-spacing: 0; color: #fff; }
.dd-crew .ddc.sel { color: var(--acc); }
.pp-a { width: 48px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--bd); background: var(--el); color: var(--acc); font-size: 14px; }

/* take-offs / landings (MiniStepper) */
.tols, .appr { margin: 4px 0 10px; padding: 0 4px; }
.tol, .hold { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--bd); }
.tols .tol:first-child { border-top: 0; }
.tol-l { width: 70px; flex: none; font: 700 9.5px "JetBrains Mono", monospace; letter-spacing: 0.6px; text-transform: uppercase; color: var(--t2); }
.st { flex: 1; display: flex; align-items: center; height: 38px; border-radius: 9px; background: var(--el); border: 1px solid var(--bd); }
.st-s { padding-left: 6px; font: 700 9px "JetBrains Mono", monospace; color: var(--mut); }
.st-c { margin-left: auto; display: flex; align-items: center; gap: 4px; padding-right: 6px; }
.st-c .ic { font-size: 20px; color: var(--t2); } .st-c .ic:last-child { color: var(--acc); }
.st-c b { min-width: 14px; text-align: center; font: 800 16px "JetBrains Mono", monospace; }
.hold { justify-content: space-between; }
.hold .st-c { height: 38px; padding: 0 8px; border-radius: 9px; background: var(--el); border: 1px solid var(--bd); }

/* approaches (ApproachFlow) */
.ap-c { background: var(--el); border: 1px solid var(--bd); border-radius: 11px; padding: 9px 11px; margin-bottom: 9px; display: grid; gap: 7px; }
.ap-t { display: flex; align-items: baseline; gap: 8px; }
.ap-t b { font: 800 14px "JetBrains Mono", monospace; }
.ap-res { font: 700 13px "JetBrains Mono", monospace; color: var(--acc); }
/* What has been chosen so far (3D, then 3D · ILS) */
.ap-sofar { font: 700 11px "JetBrains Mono", monospace; color: var(--t2); }
.ap-add { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--mut); }
.ap-reset { margin-left: auto; font-size: 10px; color: var(--mut); }
.lfs-on [data-on].off { display: none; }
.lfs-measure [data-on] { display: none !important; }
.ap-o { animation: apIn 0.3s ease both; }
@keyframes apIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.ap-o { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ap-o em { font-style: normal; font-size: 9px; color: var(--mut); margin-right: 2px; }
.ap-o span { padding: 5px 9px; border-radius: 7px; background: var(--el); border: 1px solid var(--bd); font: 700 10px "JetBrains Mono", monospace; color: var(--t2); transition: all 0.3s ease; }
.ap-o span.sel { background: #00C8E828; border-color: var(--acc); color: var(--acc); }

/* remarks, media, save */
.rmk { min-height: 60px; background: var(--card); border: 0.5px solid var(--bd); border-radius: 8px; padding: 12px; font-size: 15px; line-height: 1.35; }
.rmk.d { border-width: 1px; border-radius: 10px; font-size: 14px; min-height: 70px; }
/* One line each: your own text, then the lines the app keeps in step (approach, second pilot) */
.rmk-l { display: block; }
.media { display: flex; gap: 8px; margin-top: 4px; }
.media span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; border-radius: 10px; background: var(--el); border: 1px solid var(--bd); font-size: 13px; font-weight: 600; color: var(--mut); }
.media .ic { font-size: 16px; }
.save { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 0; border-radius: 12px; background: var(--acc); color: #0A1628; font-size: 17px; font-weight: 700; transition: transform 0.25s ease, box-shadow 0.3s ease; }
.save .ic { font-size: 20px; color: #0A1628; } .save .ic .w2 { stroke: var(--acc); }
.save.sel { transform: scale(0.97); box-shadow: 0 0 0 4px #00E8A055, 0 0 24px #00E8A088; background: var(--ok); }
.lf-drone .save { margin-top: 20px; font-size: 16px; }

/* drone-specific */
.mis { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mis-l { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--t2); }
.mis-i { flex: 1; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--bd); font-size: 14px; }
.mis-i span { flex: 1; } .mis-i .ic { color: var(--acc); font-size: 16px; }
.dg { display: flex; gap: 12px; margin-top: 4px; }
.dg-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dg-c .pnl-h { margin-top: 8px; }
.dg-c .pnl-h:first-child { margin-top: 0; }
.dbox { height: 48px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--bd); }
.dbox.loc14 { font: 700 14px "Chakra Petch", sans-serif; letter-spacing: 1px; }
.dbox.loc14 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbox.loc14 .ic { color: var(--acc); font-size: 16px; }
.gap16 { height: 16px; }
.seg24 { font: 800 24px "DSEG7", monospace; }
.seg26 { font: 800 26px "DSEG7", monospace; }
.dbox.tot2 { border-radius: 12px; border-color: #00C8E888; background: #00C8E80D; position: relative; }
.dbox.tot2 .t2 { position: absolute; opacity: 0; }
.tot2.two .seg26:first-child { opacity: 0; } .tot2.two .t2 { opacity: 1; }
.dg-c .utc { margin-top: 0; }
.dg-c .loc { margin-top: 2px; height: 14px; }
.add-row { margin-top: 10px; align-items: center; }
.addf { display: inline-flex; align-self: center; align-items: center; gap: 6px; height: 34px; padding: 0 18px; border-radius: 10px; border: 1px solid #00C8E866; background: #00C8E810; font-size: 12px; font-weight: 800; letter-spacing: 0.3px; color: var(--acc); }
.addf .n3, .addf.sel .n2 { display: none; } .addf.sel .n3 { display: inline; }
.nth { height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 12px; border: 1.5px solid #F97316; background: #F9731626; }
.nth em { width: 24px; font: 800 9px "JetBrains Mono", monospace; font-style: normal; color: #F97316; }
.nth .seg24 { flex: 1; text-align: center; }
.nth .xo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #F97316; color: #2a1404; font-size: 12px; }
.lf-drone .tg.blk { margin-top: 16px; }
.lf-drone .bars { margin-top: 12px; }
.autonight { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; padding: 9px 0; border-radius: 10px; border: 1px solid #00C8E855; background: #00C8E810; font-size: 12px; font-weight: 700; color: var(--acc); }
.autonight .ic { font-size: 13px; }
.rules { display: flex; gap: 10px; margin-top: 16px; }
.rules .tg.blk { flex: 1; margin-top: 0; }
.exp { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--bd); background: var(--card); color: var(--t2); font-size: 18px; flex: none; }
.frame { margin-top: 4px; background: #00C8E80D; border: 1px solid var(--sep); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.frame .fl { margin-top: 10px; }
.frame .row2 .fl { margin-top: 2px; }
.role-g.d span { background: var(--el); }
.role-g.op { flex: none; }
.lf-drone > .lf-view .tol { border-top: 0; }
.alt { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--bd); margin-top: 4px; }
.alt-b { position: relative; flex: 1; height: 28px; border-radius: 7px; background: #0A1628; border: 1px solid var(--bd); overflow: hidden; }
.alt-b i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w, var(--pct)) * 1%); background: #00C8E880; }
.alt-b b { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font: 700 14px "DSEG7", monospace; color: #F4FAFF; }
.alt-b em { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 8.5px "JetBrains Mono", monospace; font-style: normal; color: var(--t2); }
.alt-s { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--el); border: 1px solid var(--bd); color: var(--t2); font-size: 20px; }
.alt-s:last-child { color: var(--acc); }


/* ---------- The Log Flight sheet over the screen it was opened from ---------- */
.lf-modal { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: var(--bg); padding-top: 52px; box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.5); will-change: transform; }
.lf-modal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52px; background: var(--card); }
.lf-under {
  position: absolute; inset: 0; z-index: 1; padding-top: 52px; overflow: hidden;
  background:
    radial-gradient(100% 40% at 70% 0%, rgba(52, 110, 200, 0.32), transparent 100%),
    radial-gradient(70% 30% at 100% 55%, rgba(60, 70, 170, 0.1), transparent 100%),
    radial-gradient(85% 40% at 0% 88%, rgba(0, 200, 232, 0.1), transparent 100%),
    linear-gradient(180deg, #0C1C35 0%, #0A1628 40%, #091424 70%, #060C18 100%);
}
.mono { font-family: Menlo, "JetBrains Mono", monospace; }

/* tab bar (GlassTabBar) */
.tb { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 22px; height: 62px; border-radius: 31px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; background: rgba(16, 28, 48, 0.86); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.45); }
.tb-i { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 26px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; color: #C9D9EA; }
.tb-i .ic { font-size: 22px; }
.tb-i.on { color: var(--acc); background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); }
.tb-b img { width: 38px; height: auto; filter: drop-shadow(0 0 8px rgba(0, 200, 232, 0.7)); }

/* pilot dashboard */
.db-c { padding: 10px 12px 0; }
.db-wl { display: flex; align-items: center; gap: 8px; }
.db-wl-l { font: 700 9px Menlo, "JetBrains Mono", monospace; letter-spacing: 1.2px; color: var(--t2); }
.db-chip { --z: #00E8A0; padding: 2px 7px; border-radius: 7px; border: 0.8px solid color-mix(in srgb, var(--z) 35%, transparent); background: color-mix(in srgb, var(--z) 12%, transparent); font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: var(--z); opacity: 0.9; transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.db-wx { margin-left: auto; display: flex; align-items: center; gap: 4px; font: 13px "Chakra Petch", sans-serif; color: var(--t2); }
.db-wx .ic { color: var(--mut); font-size: 13px; }
.db-bar { position: relative; height: 6px; margin: 13px 0 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); }
.db-bar-f { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bw, 52%); border-radius: 3px; background: linear-gradient(90deg, #00C8E82E, #00C8E8E6); }
.db-bar-t { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: rgba(255, 255, 255, 0.45); }
.db-bar-k { position: absolute; top: 50%; left: var(--bw, 52%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); box-shadow: 0 0 0 2.5px rgba(0, 200, 232, 0.18), 0 0 8px var(--acc); }
.db-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 0 4px; }
.db-ringw { position: relative; width: 110px; height: 110px; flex: none; }
.ring { width: 110px; height: 110px; }
.db-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin-top: -6px; }
.db-pct b { font: 700 23px Menlo, "JetBrains Mono", monospace; color: #E6EEF7; }
.db-pct em { font: 700 13px Menlo, "JetBrains Mono", monospace; font-style: normal; color: var(--t2); }
.db-zone { --z: #00E8A0; position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: var(--z); opacity: 0.85; }
.db-info { position: absolute; left: 0; bottom: 0; color: var(--t2); font-size: 16px; }
.db-ro { flex: 1; display: grid; gap: 6px; }
.db-r { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; border-radius: 8px; background: #0A1628CC; border: 1px solid var(--bd); }
.db-r > span:first-child { font: 700 10px Menlo, "JetBrains Mono", monospace; letter-spacing: 1px; color: var(--mut); }
.db-r b { font: 400 16px "DSEG7", monospace; }
.db-r b.cy { color: var(--acc); }
.db-r b.zn { --z: #00E8A0; color: var(--z); font: 800 14px Menlo, "JetBrains Mono", monospace; display: flex; }
.db-r b.zn i { font-style: normal; } .db-r b.zn s { text-decoration: none; color: var(--t2); }
.db-badge { position: absolute; right: 108px; font: 400 16px "DSEG7", monospace; color: #fff; }
.db-lf { position: relative; margin: 0 2px; border-radius: 16px; border: 1px solid #00C8E855; background: linear-gradient(135deg, #00C8E822, #0F1E3A 70%); overflow: hidden; transition: border-color 0.2s, background-color 0.2s; }
/* Quicklog: the latest flight is tapped to open it */
.db-lf.sel { border-color: #00C8E8; background-color: #00C8E81F; }
.db-lf-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.db-lf-h span { font: 700 9.5px "JetBrains Mono", monospace; letter-spacing: 1.8px; color: var(--acc); }
.db-lf-h i { flex: 1; height: 1px; background: #00C8E833; }
.db-lf-h em { font: 10px "JetBrains Mono", monospace; font-style: normal; color: var(--t2); }
.db-lf-r { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.db-lf-r > b { font: 600 30px/1.05 Fraunces, Georgia, serif; }
.db-lf-r .ic { color: var(--acc); font-size: 18px; }
.db-lf-t { margin-left: auto; display: grid; justify-items: end; }
.db-lf-t b { font: 700 17px "JetBrains Mono", monospace; } .db-lf-t em { font: 9px "JetBrains Mono", monospace; font-style: normal; color: var(--mut); }
.db-lf-n { display: flex; align-items: center; gap: 5px; padding: 4px 14px 0; font: 700 9.5px "JetBrains Mono", monospace; color: #C7CDDA; }
.db-lf-n .ic { font-size: 11px; }
.db-lf-a { padding: 4px 14px 10px; font-size: 11.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-lf-s { display: flex; border-top: 1px solid #00C8E833; }
.db-lf-s span { flex: 1; display: grid; gap: 2px; padding: 8px 6px; border-left: 1px solid #00C8E822; }
.db-lf-s span:first-child { border-left: 0; }
.db-lf-s em { font: 700 7.5px "JetBrains Mono", monospace; font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.db-lf-s b { font: 700 10.5px "JetBrains Mono", monospace; } .db-lf-s b.cy { color: var(--acc); }
.db-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.db-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--bd); } .db-dots i.on { width: 16px; background: var(--acc); }
.db-log { display: flex; gap: 8px; margin-top: 14px; height: 52px; }
.db-sq { width: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--card); border: 1px solid #00C8E855; color: var(--acc); font-size: 22px; }
.db-lb { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid #00C8E855; background: linear-gradient(90deg, #00C8E822, #0F1E3A); font-size: 16px; font-weight: 800; color: var(--acc); }
.db-lb .ic { font-size: 18px; } .db-lb .ic .w3 { stroke: #0A1628; stroke-width: 2.4; }
.db-photo { position: relative; height: 140px; margin-top: 14px; border-radius: 14px; overflow: hidden; }
.db-photo img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.db-ph-o { position: absolute; left: 12px; right: 12px; bottom: 26px; display: flex; align-items: center; gap: 6px; font: 800 11px Georgia, serif; letter-spacing: 0.5px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.db-ph-o i { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.4); }
.db-ph-o svg { width: 12px; height: 12px; }
.db-ph-m { position: absolute; left: 12px; bottom: 10px; font: 9px Georgia, serif; font-style: normal; color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.db-ph-b { position: absolute; right: 12px; bottom: 10px; font: 900 7px Georgia, serif; letter-spacing: 2px; color: #FFB830AA; }
.db-globe { width: 440px; height: 440px; margin: 10px 0 0 -31px; border-radius: 50%; background: url(../img/earth-night-1600.webp) 30% 40% / 210% 100%; box-shadow: inset -40px -30px 80px rgba(0, 0, 0, 0.85), inset 20px 20px 60px rgba(135, 206, 250, 0.12), 0 0 40px rgba(135, 206, 250, 0.35); }

/* drone logbook (list) */
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; border-bottom: 1px solid var(--sep); }
.lb-top > b { font: 600 26px Fraunces, Georgia, serif; }
.lb-seg { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--card); border: 1px solid var(--bd); }
.lb-seg i { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #7FA8C8; font-size: 16px; }
.lb-seg i.on { background: var(--acc); color: #0A1628; }
.lb-f { padding: 4px 14px 10px; border-bottom: 1px solid var(--sep); }
.lb-s { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--bd); font-size: 14px; color: #5A7FA0; }
.lb-s .ic { font-size: 16px; }
.lb-chips { display: flex; gap: 6px; margin-top: 10px; }
.lb-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bd); background: var(--card); font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: 0.6px; color: #7FA8C8; }
.lb-chips span.on { background: var(--acc); border-color: var(--acc); color: #0A1628; }
.lb-y { display: flex; align-items: center; gap: 8px; padding: 14px 14px 7px; }
.lb-y .ic { color: var(--acc); font-size: 15px; }
.lb-y b { font: 600 21px Fraunces, Georgia, serif; }
.lb-y > i { flex: 1; height: 1px; background: var(--sep); }
.lb-y em { font: 700 11px "JetBrains Mono", monospace; font-style: normal; color: var(--acc); }
.lb-y > span { font: 11px "JetBrains Mono", monospace; color: #5A7FA0; }
.lb-prev { display: flex; align-items: center; gap: 6px; padding: 12px 14px 0; font: 600 15px Fraunces, Georgia, serif; color: #5A7FA0; }
.lb-prev .ic { color: var(--acc); font-size: 14px; }
.lb-cal { padding: 0 14px; margin-top: 14px; }
.lb-cal-h { display: block; margin-bottom: 10px; font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: 1.8px; color: #7FA8C8; }
.hm-m, .hm-r { display: flex; gap: 3px; align-items: center; }
.hm-m span, .hm-r > span { width: 24px; flex: none; }
.hm-m em { flex: 1; text-align: center; font: 7px "JetBrains Mono", monospace; font-style: normal; color: var(--mut); }
.hm-r { margin-top: 3px; }
.hm-r > span { font: 700 9px "JetBrains Mono", monospace; color: #5A7FA0; } .hm-r > span.on { color: var(--acc); }
.hm-r i { flex: 1; aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; background: var(--sep); font: 700 8px "JetBrains Mono", monospace; font-style: normal; }
.hm-r i.sel { box-shadow: inset 0 0 0 1.5px #fff; }
.lb-div { display: block; height: 1px; background: var(--sep); margin: 8px 0; }
.iso { width: 100%; height: auto; display: block; }
.iso text { font-family: "JetBrains Mono", monospace; font-weight: 700; }
.iso .iso-title { font-size: 10px; letter-spacing: 0.5px; fill: #fff; }

/* ---------- Quicklog (pane B) ---------- */
.db-lf-m { padding: 2px 7px; border-radius: 7px; border: 0.8px solid #FFB83066; background: #FFB8301F; font: 700 8px "JetBrains Mono", monospace; letter-spacing: 0.6px; color: var(--gold); }
/* a finger tap */
.tap { position: absolute; z-index: 3; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 30%, rgba(255, 255, 255, 0.18) 31% 100%); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.tap.in { animation: tap 1s ease-out infinite; }
@keyframes tap { 0% { opacity: 0; transform: scale(0.5); } 25% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.35); } }
.db-lb, .save, .tg span { position: relative; }
/* Quicklog body */
.lf-quick .place { margin-top: 10px; }
.lf-quick .pl-x { margin-bottom: 2px; }
.ql-rules { margin-top: 6px; }
.lf-quick .lfcard { margin-top: 6px; }
.qtl { margin-top: 6px; }
.qtl-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.qtl-h > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--t2); }
.qtl-r { display: flex; gap: 8px; }
.qc { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--el); border: 1px solid var(--bd); }
.qc > b { font: 800 18px "JetBrains Mono", monospace; color: var(--mut); }
.qc.sel > b { color: #fff; }
.qc > span:not(.qc-st) { display: grid; font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--t2); }
.qc em { font-style: normal; color: var(--ok); }
.qc em.n { color: var(--acc); }
.qc-st { margin-left: auto; display: flex; gap: 4px; }
.qc-st i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--bd); font-style: normal; font-size: 14px; color: var(--t2); }
.qc-st i:last-child { border-color: #00C8E866; background: #00C8E81A; color: var(--acc); }
.qc.qa { display: none; }
.qc.qa em { color: var(--acc); }
.qc.qa > b { color: #fff; }
.qtl.sel .qc.qa { display: flex; }
.qtl.sel .qc-st { display: none; }
.ql-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px dashed var(--bd); font-size: 12.5px; font-weight: 600; color: var(--mut); }
.lf-quick .save { margin-top: 12px; }
.tb-i { position: relative; }

/* ---------- Full screen: one phone straight on, the steps beside it (js/logflight.js) ---------- */
html.fv-open { overflow: hidden; }
.fv { position: fixed; inset: 0; z-index: 60; }
.fv[hidden] { display: none; }
.fv-bg {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease;
  background: radial-gradient(60% 50% at 50% 45%, rgba(25, 198, 230, 0.12), transparent 70%), var(--night);
}
.fv-in .fv-bg { opacity: 1; }
.fv-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fv-scroll:focus { outline: none; }
.fv-track { height: 460vh; }
.fv-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: auto minmax(0, 420px); justify-content: center; align-items: center;
  column-gap: clamp(40px, 7vw, 120px); padding: 0 var(--pad);
}
.fv-drone .fv-pin { grid-template-columns: minmax(0, 420px) auto; }
.fv-slot { width: var(--dw, 300px); height: var(--dh, 640px); }
.fv-drone .fv-slot { order: 2; }
.fv-copy { display: none; opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.fv-pilot .fv-copy[data-for="pilot"], .fv-drone .fv-copy[data-for="drone"] { display: block; }
.fv-in .fv-copy { opacity: 1; transform: none; transition-delay: 0.55s; }
.fv-copy h3 { margin: 0; font-weight: 800; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.04; letter-spacing: -0.04em; color: var(--white); }
.fv-copy h3 em { display: block; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; color: #00C8E8; }
.fv-hint { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; font-size: 14px; color: var(--mist); opacity: 0; transition: opacity 0.3s ease; }
.fv-start .fv-hint { opacity: 1; }
.fv-hint svg { width: 16px; height: 16px; fill: none; stroke: #00C8E8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: hintDown 1.6s ease-in-out infinite; }
@keyframes hintDown { 50% { transform: translateY(4px); } }
/* The phone: the app screen in a titanium frame, flown in from the page by a perspective transform */
.fv-dev {
  position: fixed; left: 0; top: 0; z-index: 1; width: 430px; height: 902px; transform-origin: 0 0; pointer-events: none;
  border-radius: 70px;
  background: linear-gradient(145deg, #50565f, #1b1e23 32%, #2c3138 68%, #111316);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24), inset 0 0 0 8px #0b0d10, 0 50px 90px rgba(0, 0, 0, 0.55);
}
.fv-dev .lf-screen { left: 14px; top: 14px; display: none; }
.fv-pilot .fv-dev .lf-screen[data-for="pilot"], .fv-drone .fv-dev .lf-screen[data-for="drone"] { display: flex; }
.fv-x {
  position: fixed; z-index: 2; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer; opacity: 0; transition: opacity 0.3s ease 0.2s, background-color 0.2s ease;
}
.fv-x:hover { background: rgba(255, 255, 255, 0.18); }
.fv-in .fv-x { opacity: calc(1 - var(--lift, 0) * 4); }
.fv-x svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; }
.lf-pt { position: absolute; width: 0; height: 0; }

/* scroll-driven states (only once js/logflight.js runs) */
.lfs-on [data-show] { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, 1.2, .4, 1); }
.lfs-on [data-show]:not(.on) { opacity: 0; transform: scale(0.85); }
.lfs-on .lfhero[data-show]:not(.on), .lfs-on .twl[data-show]:not(.on), .lfs-on .twl-lab[data-show]:not(.on) { transform: translateY(6px); }
.ph { color: var(--mut); }
.typing::after { content: ""; display: inline-block; width: 2px; height: 0.95em; margin-left: 1px; vertical-align: -0.12em; background: var(--acc); animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 820px) {
  .lfs.lfs-on { height: calc(100vh + 420vh * var(--end, 1)); }
  .lfs-pane { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; justify-items: center; gap: 0; padding: 76px 6px 60px; }
  .lfs-copy { align-self: start; padding: 0 10px; max-width: none; justify-self: stretch; }
  .lfs-copy h2 { font-size: min(30px, 7.6vw); white-space: nowrap; }
  .lfs-leg { display: none; }
  .lfs-pane-c h2 { white-space: normal; }
  .lfs-pane-c h2 em { display: block; }   /* "Log from the cockpit," over "no hassle." */
  .lfs-stage { align-self: start; margin-top: 6px; }
  .lfs-tag { width: 140px; padding: 4px; } .lfs-tag b { font-size: 13px; } .lfs-tag em { font-size: 11px; }
  .fv-ready .lfs-open { margin-top: 6px; padding: 4px 9px 4px 8px; font-size: 11px; gap: 4px; }
  .lfs-open svg { width: 11px; height: 11px; }
  /* Full screen on a phone: the phone and its steps side by side */
  .fv-pin { grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; column-gap: 12px; padding: 0 12px 0 14px; }
  .fv-drone .fv-pin { grid-template-columns: minmax(0, 1fr) auto; padding: 0 14px 0 12px; }
  .fv-copy h3 { font-size: 17px; letter-spacing: -0.03em; }
  .fv-copy .lfb-steps { position: relative; display: block; min-height: 180px; margin: 22px 0 0; }
  .fv-copy .lfb-steps b { font-size: 16px; }
  .fv-copy .lfb-steps span { font-size: 13px; }
  .fv-hint { margin-top: 10px; font-size: 12px; }
  .fv-x { top: 12px; right: 12px; width: 44px; height: 44px; }
  /* Quicklog pane: title on top, the current step on the left, the phone on the right */
  .lfs-pane-b { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 4px; }
  .lfs-pane-b .lfs-copy { display: contents; }
  .lfs-pane-b h2 { grid-column: 1 / -1; justify-self: stretch; padding: 0 10px; }
  .lfs-pane-b .lfb-side { grid-column: 1; grid-row: 3; align-self: center; justify-self: stretch; margin: 0 0 0 10px; }
  .lfb-clock { margin: 0 0 18px; }
  .lfb-clock b { font-size: 46px; }
  .lfb-clock span { font-size: 22px; }
  .lfb-clock em { margin-top: 4px; font-size: 12px; }
  .lfs-pane-b .lfb-steps { position: relative; margin: 0; display: block; min-height: 150px; }
  .lfb-steps li { padding: 0 0 12px; }
  .lfb-steps li::before, .lfb-steps li::after { display: none; }
  .lfs-on .lfb-steps li { position: absolute; left: 0; right: 0; top: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
  .lfs-on .lfb-steps li.cur { opacity: 1; transform: none; }
  .lfb-steps i { display: block; margin-bottom: 8px; font: 700 12px/1 var(--sans); font-style: normal; letter-spacing: 0.08em; color: #00C8E8; }
  .lfb-steps b { font-size: 19px; }
  .lfb-steps span { margin-top: 6px; font-size: 14.5px; }
  .lfs-stage-b { grid-column: 2; grid-row: 3; margin-top: 6px; }
}
.lfs:not(.lfs-on) .tap { display: none; }
/* Full screen in a phone on its side, or a very low window: the title and the step being done, beside a phone the
   height of the window */
@media (min-width: 821px) and (max-height: 560px) {
  .fv-copy h3 { font-size: 24px; }
  .fv-copy .lfb-steps { margin-top: 12px; }
  .fv-copy .lfb-steps li:not(.cur) { display: none; }
  .fv-copy .lfb-steps li::after { display: none; }
  .fv-hint { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lfs.lfs-on { height: auto; }
  .lfs-on .lfs-pin { position: relative; height: auto; }
}


/* ======================= Scan-log (scratchpad lf/scan.py): the ACARS, photographed live ======================= */
/* The chooser and the review: cards over the dimmed sheet */
.sc-ov { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 22px; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
.sc-ov.in { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.sc-card { width: 100%; display: grid; justify-items: center; gap: 8px; padding: 20px 18px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--bd); transform: scale(0.94); transition: transform 0.3s cubic-bezier(.2, 1.3, .4, 1); }
.sc-ov.in .sc-card { transform: none; }
.sc-t { font-size: 18px; font-weight: 800; }
.sc-b { margin: 0 0 4px; text-align: center; font-size: 13.5px; line-height: 19px; color: var(--t2); }
.sc-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: stretch; margin-bottom: 4px; }
.sc-ex > div { display: grid; justify-items: center; gap: 6px; }
.sc-ex em { font-size: 11px; line-height: 15px; color: var(--mut); text-align: center; }
.sc-exi { width: 100%; height: 112px; border-radius: 10px; border: 1px solid var(--bd); display: grid; align-content: center; gap: 7px; padding: 0 14px; }
.sc-exi.paper { background: #e9e4d6; }
.sc-exi.paper i { height: 3px; border-radius: 2px; background: #8a8270; }
.sc-exi.paper i:nth-child(2n) { width: 70%; }
.sc-exi.mcdu-mini { background: #0b0d10; box-shadow: inset 0 0 0 5px #2a2e35; }
.sc-exi.mcdu-mini i { height: 3px; border-radius: 2px; background: #3EF06A; }
.sc-exi.mcdu-mini i:nth-child(odd) { background: #cfd6de; width: 60%; }
.sc-btn { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-top: 4px; border-radius: 13px; background: var(--acc); color: var(--bg); font-size: 15px; font-weight: 800; }
.sc-btn .ic { font-size: 18px; }
.sc-cancel { padding: 10px 0 2px; font-size: 14px; font-weight: 700; color: var(--t2); }
.sc-rv { justify-items: stretch; gap: 0; padding: 18px 16px 10px; border-radius: 16px; }
.sc-rh { display: flex; align-items: center; gap: 8px; }
.sc-rh .ic { color: var(--acc); font-size: 16px; }
.sc-rh b { font-size: 16px; font-weight: 800; }
.sc-rs { margin: 4px 0 6px; font-size: 12px; color: var(--mut); }
.sc-rows { display: grid; }
.sc-rr { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--sep); opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease; }
.sc-rr:first-child { border-top: 0; }
.sc-rr.on { opacity: 1; transform: none; }
.sc-rr .ck { font-size: 19px; color: var(--mut); }
.sc-rr .ck.on { color: var(--ok); }
.sc-rr .ck .fill { fill: currentColor; stroke: none; } .sc-rr .ck .w2 { stroke: var(--card); stroke-width: 2.4; }
.sc-rr span { display: grid; min-width: 0; }
.sc-rr em { font-style: normal; font-size: 11px; color: var(--t2); }
.sc-rr b { font: 700 14px Menlo, "JetBrains Mono", monospace; }
.sc-rr.off b { color: var(--mut); }
.sc-tt { display: grid; gap: 6px; padding: 8px 0 4px; border-top: 1px solid var(--sep); opacity: 0; transition: opacity 0.25s ease; }
.sc-tt.on { opacity: 1; }
.sc-tt em { font-style: normal; font-size: 11px; color: var(--t2); }
.sc-tt div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-tt span { padding: 8px 0; text-align: center; border-radius: 10px; border: 1px solid var(--bd); font-size: 13px; font-weight: 700; color: var(--t2); }
.sc-tt span.on { border-color: var(--acc); background: #00C8E81C; color: var(--acc); }
.sc-rv .sc-btn.apply { margin-top: 10px; }
.sc-rv .sc-cancel { text-align: center; }

/* The camera, live: as the iPhone's own, the MCDU in the viewfinder */
.sc-cam { position: absolute; inset: 0; z-index: 8; background: #000; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.2s; }
.sc-cam.in { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.sc-cam-top { height: 96px; padding: 50px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.sc-cam-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-fl svg { fill: #fff; stroke: none; width: 18px; height: 18px; }
.sc-fl { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.sc-live i { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px dotted rgba(255, 255, 255, 0.8); }
.sc-vf { position: relative; height: 536px; overflow: hidden; background: #0b0e12; perspective: 900px; }
/* The scene in front of the lens: a dim cockpit, the MCDU under its light, held by hand */
.sc-scene { position: absolute; inset: -30px; background:
  radial-gradient(60% 45% at 50% 55%, #1f2630 0%, #12161c 55%, #07090c 100%); }
.sc-cam.in .sc-scene { animation: scHand 3.2s ease-in-out infinite; }
.sc-cam.in .sc-scene.sel { animation-play-state: paused; }
@keyframes scHand { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(2px, -1.5px) rotate(0.25deg); } 50% { transform: translate(-1.5px, 1px) rotate(-0.2deg); } 75% { transform: translate(1px, 2px) rotate(0.15deg); } }
.sc-glare { position: absolute; border-radius: 50%; filter: blur(18px); opacity: 0.55; }
.sc-glare.a { left: 4%; top: 6%; width: 120px; height: 60px; background: #2a6fbf; }
.sc-glare.b { right: 2%; top: 10%; width: 90px; height: 50px; background: #7a4bbf; opacity: 0.35; }
.sc-glare.c { left: 30%; bottom: 2%; width: 200px; height: 50px; background: #c98a2a; opacity: 0.25; }
.mcdu { position: absolute; left: 50%; top: 52%; width: 344px; padding: 14px 10px 12px; border-radius: 12px; background: linear-gradient(170deg, #3a3f48, #23272e 60%); box-shadow: 0 0 0 2px #15181d, 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12); transform: translate(-50%, -50%) rotateX(14deg) rotateZ(-4deg); display: grid; grid-template-columns: 22px 1fr 22px; gap: 6px; }
.mc-lsk { display: grid; align-content: space-evenly; gap: 6px; }
.mc-lsk i { height: 12px; border-radius: 3px; background: #4b515b; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4); }
.mc-scr { display: grid; padding: 8px 6px; border-radius: 4px; background: #050607; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9); font: 700 13px/1.32 "JetBrains Mono", Menlo, monospace; letter-spacing: -0.2px; white-space: pre; filter: blur(0.25px); }
.mc-scr span { display: block; }
.mc-w { color: #e8edf2; } .mc-g { color: #3EF06A; text-shadow: 0 0 4px rgba(62, 240, 106, 0.6); } .mc-c { color: #3FE0FF; text-shadow: 0 0 4px rgba(63, 224, 255, 0.5); }
.mc-s { color: #e8edf2; font-size: 9.5px; opacity: 0.85; }
.mc-keys { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 6px; }
.mc-keys b { display: grid; place-items: center; height: 22px; border-radius: 3px; background: #4b515b; font: 700 5.5px/1 Inter, sans-serif; color: #dfe3e8; text-align: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4); }
/* Focus finds the screen: the yellow square */
.sc-af { position: absolute; left: 50%; top: 47%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border: 1.5px solid #FFD60A; opacity: 0; transform: scale(1.4); }
.sc-af.in { animation: scAf 1s ease-out both; }
@keyframes scAf { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0.45; transform: scale(1); } }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-flash.in { animation: scFlash 0.35s ease-out both; }
@keyframes scFlash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.sc-cam-bot { position: absolute; left: 0; right: 0; bottom: 0; height: 242px; display: grid; align-content: start; gap: 20px; padding-top: 18px; }
.sc-modes { display: flex; justify-content: center; gap: 18px; font: 600 12.5px/1 -apple-system, system-ui, sans-serif; letter-spacing: 0.4px; color: rgba(255, 255, 255, 0.85); }
.sc-modes .on { color: #FFD60A; }
.sc-row { display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.sc-thumb { width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, #2a3442, #121820); }
.sc-shut { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; }
.sc-shut i { width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.sc-flip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.sc-flip svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-cam-use { position: absolute; left: 0; right: 0; bottom: 70px; display: flex; justify-content: space-between; padding: 0 28px; font: 400 18px -apple-system, system-ui, sans-serif; color: #fff; }
.sc-cam-use .use { position: relative; font-weight: 600; }

/* Saved: in place of the screen, how long it took */
.sc-done { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(70% 50% at 50% 45%, #0f2a44 0%, var(--bg) 70%); opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity 0.4s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1), visibility 0s 0.4s; }
.sc-done.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.sc-dc { color: var(--acc); font-size: 44px; }
.sc-dc .ic .fill { fill: currentColor; stroke: none; } .sc-dc .ic .w2 { stroke: var(--bg); stroke-width: 2.4; }
.sc-dn { display: flex; align-items: baseline; gap: 4px; }
.sc-dn b { font: 800 120px/0.9 -apple-system, system-ui, Inter, sans-serif; letter-spacing: -0.05em; color: #fff; }
.sc-dn em { font: italic 400 44px Fraunces, Georgia, serif; color: var(--acc); }
.sc-dl { font-size: 17px; font-weight: 600; color: #fff; }
.sc-dr { font: 600 12px "JetBrains Mono", Menlo, monospace; color: var(--t2); }
