@font-face { font-family: "B612"; src: url(fonts/b612-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url(fonts/b612-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url(fonts/b612-mono-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url(fonts/b612-mono-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* The tablet is a piece of flight deck: painted panel, placards engraved on the paint,
   instruments set into it. Colours mean what they mean on an Airbus or Boeing display:
   magenta the managed route, cyan what the pilot selected, green active, amber caution. */
:root {
  --paint: #25343d;
  --paint-high: #30434e;
  --paint-low: #1c2931;
  --placard: #c9d6dc;
  --placard-dim: #8fa3ad;
  --well: #0a141a;
  --well-line: #1b2a33;
  --ink: #eaf1f3;
  --ink-dim: #93a8b3;
  --cyan: #52d4ea;
  --green: #62d995;
  --amber: #f5b53a;
  --magenta: #e56fd6;
  --red: #ff6b5e;
  --gap: 10px;
}
[data-theme="giorno"] {
  --paint: #a9b8bf;
  --paint-high: #bcc9cf;
  --paint-low: #95a6ae;
  --placard: #15222a;
  --placard-dim: #3c4f59;
  --well: #f3f7f8;
  --well-line: #c4d0d5;
  --ink: #0d1a21;
  --ink-dim: #4c606b;
  --cyan: #00748c;
  --green: #0b7a45;
  --amber: #a15f00;
  --magenta: #a81e9c;
  --red: #c32a1c;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.4 "B612", system-ui, sans-serif;
  height: 100dvh; overflow: hidden;
  color: var(--ink);
  background: var(--paint);
  display: flex; flex-direction: column;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.data { font-family: "B612 Mono", monospace; font-variant-numeric: tabular-nums; }

/* Flight strip: the one memorable thing. An ATC progress strip across the top of the panel. */
.strip {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 10px 18px 12px;
  background: var(--well);
  border-bottom: 3px solid var(--magenta);
}
.strip .id b { font: 700 26px/1 "B612 Mono", monospace; letter-spacing: .01em; }
.strip .id small { display: block; margin-top: 4px; color: var(--ink-dim); font-size: 12px; }
.ribbon { position: relative; height: 54px; }
.ribbon .line { position: absolute; left: 26px; right: 26px; top: 19px; height: 2px; background: var(--well-line); }
.ribbon .done { position: absolute; left: 26px; top: 19px; height: 2px; background: var(--magenta); }
.ribbon .stop { position: absolute; top: 14px; transform: translateX(-50%); text-align: center; color: var(--ink-dim); font-size: 11px; white-space: nowrap; }
.ribbon .stop i { display: block; width: 12px; height: 12px; margin: 0 auto 6px; border-radius: 50%; background: var(--well); border: 2px solid var(--well-line); }
.ribbon .stop.past i { background: var(--magenta); border-color: var(--magenta); }
.ribbon .stop.now { color: var(--ink); font-weight: 700; }
.ribbon .stop.now i { border-color: var(--magenta); }
.ribbon .plane { position: absolute; top: 8px; width: 24px; height: 24px; margin-left: -12px; color: var(--ink); transform: rotate(90deg); transition: left .6s linear; }
.strip .numbers { display: flex; gap: 20px; }
.strip .numbers div { text-align: right; }
.strip .numbers b { display: block; font: 700 18px/1.1 "B612 Mono", monospace; }
.strip .numbers span { color: var(--ink-dim); font-size: 11px; }

.spacer { flex: 1; }
.toggle { display: inline-flex; gap: 7px; align-items: center; color: var(--placard); font-size: 13px; min-height: 36px; }
.toggle input { accent-color: var(--cyan); width: 18px; height: 18px; }
.btn { min-height: 36px; padding: 6px 13px; border-radius: 6px; cursor: pointer; background: var(--paint-high); color: var(--placard); border: 1px solid transparent; }
.btn.primary { background: var(--cyan); color: #06222a; font-weight: 700; }
[data-theme="giorno"] .btn.primary { color: #fff; }

/* The desktop and its instruments */
.desk { flex: 1; min-height: 0; overflow: auto; padding: 10px 14px; }
.desk[hidden] { display: none; }
.grid { position: relative; }
.item { position: absolute; display: flex; flex-direction: column; transition: left .18s, top .18s, width .18s, height .18s; }
.item.dragging { z-index: 20; transition: none; opacity: .95; }
.placard { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 2px; color: var(--placard); font-size: 13px; font-weight: 700; flex: none; }
.placard small { font-weight: 400; color: var(--placard-dim); font-size: 12px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.well {
  position: relative; flex: 1; min-height: 0; overflow: hidden; container-type: size;
  background: var(--well); border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--well-line), inset 0 2px 7px rgba(0,0,0,.42), 0 1px 0 rgba(255,255,255,.07);
}
[data-theme="giorno"] .well { box-shadow: inset 0 0 0 1px var(--well-line), inset 0 2px 5px rgba(0,0,0,.12), 0 1px 0 rgba(255,255,255,.5); }
.pad { padding: 10px 12px; height: 100%; overflow: auto; font-size: calc(14px * var(--text, 1)); }
.ghost { position: absolute; border: 2px dashed var(--cyan); border-radius: 6px; background: color-mix(in srgb, var(--cyan) 10%, transparent); pointer-events: none; }

/* Edit mode */
body.editing .grid { user-select: none; -webkit-user-select: none; }
body.editing .placard { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
body.editing .item.dragging .placard { cursor: grabbing; }
body.editing .well { outline: 1px dashed var(--placard-dim); outline-offset: 1px; }
body.editing .well > * { pointer-events: none; }
.to-app { all: unset; cursor: pointer; flex: 1; min-height: 24px; line-height: 24px; }
.to-app:focus-visible { outline: 2px solid var(--cyan); }
body.editing .to-app { cursor: grab; pointer-events: none; }
.remove, .resize { display: none; }
body.editing .remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 22px; margin-left: 4px; border: 0; border-radius: 4px; background: var(--paint-low); color: var(--placard); cursor: pointer; flex: none; }
body.editing .resize { display: block; position: absolute; right: -3px; bottom: -3px; width: 34px; height: 34px; touch-action: none; cursor: nwse-resize; z-index: 5; }
.resize::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 15px; height: 15px; border-right: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); border-radius: 0 0 3px 0; }

.drawer { background: var(--paint-low); padding: 12px 14px 14px; border-top: 2px solid var(--cyan); max-height: 40vh; overflow: auto; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; }
.drawer-head h2 { font-size: 16px; color: var(--placard); margin-right: auto; }
.hint { color: var(--placard-dim); font-size: 13px; margin: 6px 0 10px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.cat { display: grid; grid-template-columns: 40px 1fr; gap: 4px 10px; align-items: center; padding: 8px 10px; background: var(--paint); border-radius: 6px; }
.cat .tile { width: 40px; height: 40px; border-radius: 10px; grid-row: span 2; }
.cat .tile svg { width: 22px; height: 22px; }
.cat b { color: var(--placard); font-size: 13px; }
.cat .opts { display: flex; gap: 12px; flex-wrap: wrap; }
.cat label { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; color: var(--placard-dim); font-size: 12px; cursor: pointer; }
.cat input { width: 18px; height: 18px; accent-color: var(--cyan); }

/* Shared display pieces */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.kv dt { color: var(--ink-dim); }
.kv dd { margin: 0; font-family: "B612 Mono", monospace; text-align: right; }
.kv { margin: 0; }
.sel { color: var(--cyan); } .act { color: var(--green); } .cau { color: var(--amber); } .rte { color: var(--magenta); } .dim { color: var(--ink-dim); }
.big { font: 700 28px/1.05 "B612 Mono", monospace; }

/* Map */
.map { position: absolute; inset: 0; overflow: hidden; background: #1b1d20; }
.map img { position: absolute; width: 256px; height: 256px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map text { font: 700 11px "B612 Mono", monospace; paint-order: stroke; stroke: rgba(0,0,0,.8); stroke-width: 3px; }
.map-layers { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.map-layers button { min-height: 32px; padding: 3px 9px; border: 1px solid #3a4a53; border-radius: 4px; background: rgba(10,20,26,.82); color: #93a8b3; cursor: pointer; font-size: 12px; }
.map-layers button[aria-pressed="true"] { color: #52d4ea; border-color: #52d4ea; }

/* Profile */
.profile svg { width: 100%; height: 100%; display: block; }
.profile text { font: 11px "B612 Mono", monospace; fill: var(--ink-dim); }

/* Fuel */
.fuel-bar { position: relative; height: 22px; background: var(--well-line); border-radius: 3px; margin: 8px 0 14px; }
.fuel-bar .used { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 3px 0 0 3px; }
.fuel-bar .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--amber); }
.fuel-bar .plan { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--magenta); }

/* Weather */
.wx { display: grid; gap: 8px; }
.wx article { border-left: 3px solid var(--green); padding-left: 9px; }
.wx article.mvfr { border-color: var(--cyan); }
.wx header { display: flex; gap: 8px; align-items: baseline; }
.wx b { font: 700 16px "B612 Mono", monospace; }
.wx p { font: 12px/1.35 "B612 Mono", monospace; color: var(--ink-dim); }
.wx .role { color: var(--ink-dim); font-size: 12px; }
.wx .cat-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green); }
.wx .mvfr .cat-tag { color: var(--cyan); }

/* Checklist */
.cl-title { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cl-title b { flex: 1; font-size: 13px; color: var(--cyan); }
.cl-title button { width: 34px; height: 30px; border-radius: 4px; border: 1px solid var(--well-line); background: none; cursor: pointer; }
.cl { list-style: none; margin: 0; padding: 0; }
.cl label { display: flex; gap: 9px; align-items: center; min-height: 34px; border-bottom: 1px solid var(--well-line); cursor: pointer; }
.cl input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.cl span { flex: 1; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.cl em { font: 12px "B612 Mono", monospace; color: var(--cyan); text-align: right; }
.cl input:checked + span, .cl input:checked + span em { color: var(--green); }

/* Notes */
.notes { display: flex; flex-direction: column; height: 100%; }
.freqs { display: flex; gap: 12px; padding: 8px 12px 6px; border-bottom: 1px solid var(--well-line); flex-wrap: wrap; }
.freqs label { color: var(--ink-dim); font-size: 12px; }
.freqs input { display: block; width: 72px; background: none; border: 0; border-bottom: 1px solid var(--well-line); color: var(--cyan); font: 700 14px "B612 Mono", monospace; padding: 1px 0; }
.note-mode, .ink-tools { display: flex; gap: 2px; align-self: flex-end; margin-left: auto; }
.note-mode button, .ink-tools button { min-height: 30px; padding: 4px 10px; border: 1px solid var(--well-line); background: none; color: var(--ink-dim); border-radius: 5px; font-size: 12px; cursor: pointer; }
.note-mode button.on, .ink-tools button.on { background: var(--paint-high); color: var(--ink); border-color: transparent; }
.ink-tools { margin: 6px 12px 0; align-self: auto; }
.ink-tools [data-undo] { margin-left: auto; }
.notes canvas.ink { flex: 1; width: 100%; min-height: 60px; touch-action: none; color: var(--ink); cursor: crosshair; display: block; }
.notes textarea { flex: 1; width: 100%; resize: none; border: 0; background: none; padding: 8px 12px; font: 13px/1.45 "B612 Mono", monospace; color: var(--ink); min-height: 40px; }

/* Roster */
.legs { display: grid; gap: 1px; }
.leg { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--well-line); font-size: 13px; }
.leg i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-dim); }
.leg.done i { background: var(--green); border-color: var(--green); }
.leg.now i { background: var(--magenta); border-color: var(--magenta); }
.leg.now { font-weight: 700; }
.leg b { font-family: "B612 Mono", monospace; font-weight: inherit; }
.leg span { color: var(--ink-dim); font-size: 12px; }

/* Traffic, log */
.rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.rows td { padding: 5px 0; border-bottom: 1px solid var(--well-line); }
.rows td:last-child { text-align: right; font-family: "B612 Mono", monospace; color: var(--ink-dim); }
.rows td:first-child { font-family: "B612 Mono", monospace; font-weight: 700; }

/* Calculator */
.calc label { display: block; color: var(--ink-dim); font-size: 12px; margin-bottom: 8px; }
.calc input[type=range] { width: 100%; accent-color: var(--cyan); height: 26px; display: block; }
.calc output { color: var(--cyan); font-family: "B612 Mono", monospace; float: right; }

/* Rank */
.progress { height: 8px; background: var(--well-line); border-radius: 4px; margin: 6px 0 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--cyan); }

@media (max-width: 880px) {
  .strip { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .ribbon { grid-column: 1 / -1; grid-row: 2; }
  .strip .numbers { gap: 12px; }
  .strip .numbers div:nth-child(n+3) { display: none; }
}
/* OS shell */
.status { display: flex; align-items: center; gap: 14px; height: 28px; padding: 0 16px; background: var(--well); font-size: 12px; color: var(--ink-dim); flex: none; }
.status b { color: var(--ink); }
.status .act { color: var(--green); }
.link { all: unset; cursor: pointer; color: var(--cyan); min-height: 28px; line-height: 28px; }
.link:focus-visible { outline: 2px solid var(--cyan); }
.strip { flex: none; padding-top: 4px; }

body[data-wall="stretto"] { background: linear-gradient(180deg, #16303f 0%, #2d4a58 48%, #8a6a5c 86%, #c98f64 100%); }
body[data-wall="etna"] { background: radial-gradient(ellipse 60% 34% at 62% 100%, rgba(255,110,50,.42), transparent 70%), linear-gradient(180deg, #0c1720, #1d2a33 72%, #2a2a2d); }
body[data-wall="stretto"] .placard, body[data-wall="etna"] .placard { color: #f2f6f7; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.icon { align-items: center; }
.launch { all: unset; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 100%; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.launch:focus-visible .tile { outline: 2px solid var(--cyan); outline-offset: 2px; }
.label { font-size: 12px; color: var(--placard); text-align: center; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
[data-theme="giorno"] .label { text-shadow: none; }
.tile {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 15px; flex: none;
  background: linear-gradient(160deg, #33474f 0%, #17242c 62%, #0d181f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 -1px 0 rgba(0,0,0,.55) inset, 0 3px 7px rgba(0,0,0,.38);
}
.tile svg { width: 34px; height: 34px; }
.tile.sel { color: #52d4ea; } .tile.act { color: #62d995; } .tile.cau { color: #f5b53a; } .tile.rte { color: #e56fd6; } .tile.dim { color: #c9d6dc; }
.icon .remove { position: absolute; top: -6px; right: 4px; }
body.editing .icon .launch { cursor: grab; touch-action: none; }
body.editing .icon { touch-action: none; }

.dock { display: flex; align-items: center; gap: 14px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); background: var(--paint-low); box-shadow: 0 -1px 0 rgba(255,255,255,.07); flex: none; }
.home { all: unset; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; color: var(--placard); border-radius: 10px; }
.home svg { width: 28px; height: 28px; }
.home:focus-visible { outline: 2px solid var(--cyan); }
.dock-apps { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.d-app { all: unset; position: relative; cursor: pointer; border-radius: 12px; flex: none; }
.d-app:focus-visible { outline: 2px solid var(--cyan); }
.d-app .tile { width: 48px; height: 48px; border-radius: 11px; }
.d-app .tile svg { width: 26px; height: 26px; }
.d-app.open::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cyan); }
.badge { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid var(--paint-low); }
.desks { display: flex; background: var(--paint); border-radius: 7px; padding: 3px; flex: none; }
.desks button { border: 0; background: none; padding: 6px 12px; border-radius: 5px; color: var(--placard-dim); cursor: pointer; min-height: 38px; }
.desks button[aria-selected="true"] { background: var(--paint-high); color: var(--placard); font-weight: 700; }

.app { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--well); }
.app[hidden] { display: none; }
.app-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--paint); flex: none; }
.app-head h1 { font-size: 18px; margin: 0; color: var(--placard); }
.app-icon .tile { width: 34px; height: 34px; border-radius: 8px; }
.app-icon .tile svg { width: 20px; height: 20px; }
.app-ver { margin-left: auto; font-size: 12px; color: var(--placard-dim); }
.app-body { flex: 1; min-height: 0; position: relative; overflow: auto; font-size: calc(15px * var(--text, 1)); }
.app-body > .pad { max-width: 860px; margin: 0 auto; padding: 22px 26px; }

.store { max-width: 1040px; margin: 0 auto; padding: 8px 22px 30px; }
.store h2 { font-size: 16px; margin: 20px 0 8px; color: var(--ink); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; align-items: start; }
.s-card { background: var(--paint-low); border-radius: 8px; padding: 10px 12px; color: var(--placard); }
.s-main { display: flex; align-items: center; gap: 12px; }
.s-main .tile { width: 52px; height: 52px; border-radius: 12px; }
.s-main .tile svg { width: 28px; height: 28px; }
.s-main > div { flex: 1; min-width: 0; }
.s-main b { display: block; }
.s-main small { color: var(--placard-dim); font-size: 12px; line-height: 1.25; display: block; }
.small { font-size: 12px; white-space: nowrap; }
details { margin-top: 6px; font-size: 12px; color: var(--placard-dim); }
summary { cursor: pointer; min-height: 24px; line-height: 24px; }
.bar { display: block; width: 92px; height: 6px; border-radius: 3px; background: var(--well-line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--cyan); animation: fill .9s linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.settings { max-width: 640px; margin: 0 auto; padding: 22px; display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 14px; min-height: 40px; border-radius: 6px; background: var(--paint-low); color: var(--placard); cursor: pointer; }
.seg input:checked + span { background: var(--cyan); color: #06222a; font-weight: 700; }
[data-theme="giorno"] .seg input:checked + span { color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.row { display: flex; gap: 8px; margin-top: 8px; }
.settings .toggle { color: var(--ink); }

.ops { display: grid; gap: 8px; align-content: start; }
.ops article { border-left: 3px solid var(--cyan); padding-left: 10px; }
.ops article.cau { border-color: var(--amber); }
.ops p { color: var(--ink-dim); font-size: .9em; }

/* Lock screen: flight first, the way a duty tablet is left on the glareshield */
.lock { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: radial-gradient(ellipse 80% 60% at 50% 0%, #1b3340, #081016 70%); color: #eaf1f3; transition: transform .32s cubic-bezier(.3,.8,.3,1), opacity .32s; touch-action: none; }
.lock[hidden] { display: none; }
.lock.leaving { transform: translateY(-100%); opacity: .4; }
.l-live { display: flex; flex-direction: column; align-items: center; width: min(560px, 88vw); }
.l-time { font-family: "B612", sans-serif; font-size: clamp(84px, 16vw, 156px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.l-zulu { color: #93a8b3; font-size: 18px; margin: 6px 0 34px; }
.l-flight { width: 100%; padding: 14px 16px; border-radius: 10px; background: rgba(10,20,26,.72); box-shadow: inset 0 0 0 1px #1b2a33; }
.l-row { display: flex; justify-content: space-between; gap: 10px; }
.l-row.dim { color: #93a8b3; font-size: 13px; }
.l-track { height: 3px; margin: 11px 0 8px; background: #1b2a33; }
.l-track i { display: block; height: 100%; background: #e56fd6; }
.l-open { min-width: 170px; min-height: 46px; }

@media (max-width: 880px) {
  .desks { display: none; }
  #simulate { display: none; }
}
/* Phone: one column in the pilot's order. Arranging a desktop needs a tablet. */
@media (max-width: 620px) {
  #edit { display: none; }
  .grid { display: flex; flex-direction: column; gap: 10px; height: auto !important; }
  .item { position: relative; left: 0 !important; top: 0 !important; width: 100% !important; height: auto !important; min-height: 260px; }
  .strip .numbers div:nth-child(n+2) { display: none; }
  .ribbon .stop { font-size: 0; }
  .ribbon .stop.now { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ═══════════════ Variants ═══════════════
   Each one changes material, type and shape, not only colour. */
@font-face { font-family: "Plex Cond"; src: url(fonts/ibm-plex-sans-condensed-400-normal.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Plex Cond"; src: url(fonts/ibm-plex-sans-condensed-600-normal.woff2) format("woff2"); font-weight: 600 700; }
@font-face { font-family: "Barlow SC"; src: url(fonts/barlow-semi-condensed-500-normal.woff2) format("woff2"); font-weight: 400 500; }
@font-face { font-family: "Barlow SC"; src: url(fonts/barlow-semi-condensed-700-normal.woff2) format("woff2"); font-weight: 600 700; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-600-normal.woff2) format("woff2"); font-weight: 600 700; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-400-normal.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-700-normal.woff2) format("woff2"); font-weight: 600 700; }
@font-face { font-family: "Raleway"; src: url(fonts/raleway-500-normal.woff2) format("woff2"); font-weight: 400 500; }
@font-face { font-family: "Raleway"; src: url(fonts/raleway-700-normal.woff2) format("woff2"); font-weight: 600 700; }

/* ── Carta: an en-route chart. Paper white, chart blue, airway magenta, hairlines ── */
html[data-skin="carta"] {
  --paint: #e8eef1; --paint-high: #ffffff; --paint-low: #d9e3e8; --placard: #17406e; --placard-dim: #5d7790;
  --well: #fbfcfc; --well-line: #b9cad6; --ink: #13293d; --ink-dim: #5d7790;
  --cyan: #1d5fa8; --green: #1f7a4d; --amber: #b5650a; --magenta: #a3166f; --red: #b8261b;
}
[data-skin="carta"] body { font-family: "Plex Cond", sans-serif; background:
  linear-gradient(#d3dee5 1px, transparent 1px) 0 0 / 100% 64px,
  linear-gradient(90deg, #d3dee5 1px, transparent 1px) 0 0 / 64px 100%, #e8eef1; }
[data-skin="carta"] .data, [data-skin="carta"] .kv dd, [data-skin="carta"] .big, [data-skin="carta"] .wx b,
[data-skin="carta"] .wx p, [data-skin="carta"] .strip .id b, [data-skin="carta"] .strip .numbers b,
[data-skin="carta"] .notes textarea, [data-skin="carta"] .freqs input, [data-skin="carta"] .leg b,
[data-skin="carta"] .rows td, [data-skin="carta"] .cl em { font-family: "Plex Cond", sans-serif; font-variant-numeric: tabular-nums; }
[data-skin="carta"] .well { border-radius: 0; box-shadow: none; border: 1px solid var(--placard); }
[data-skin="carta"] .placard { color: var(--placard); font-weight: 600; border-bottom: 2px solid var(--magenta); margin-bottom: 4px; }
[data-skin="carta"] .strip { background: #fbfcfc; border-bottom: 1px solid var(--placard); box-shadow: inset 0 -4px 0 #fbfcfc, inset 0 -5px 0 var(--magenta); }
[data-skin="carta"] .status { background: #17406e; color: #c8d8e6; }
[data-skin="carta"] .status b { color: #fff; }
[data-skin="carta"] .tile { border-radius: 50%; background: #fbfcfc; box-shadow: inset 0 0 0 2px var(--placard), inset 0 0 0 6px #fbfcfc, inset 0 0 0 7px var(--placard-dim); }
[data-skin="carta"] .tile.sel, [data-skin="carta"] .tile.dim { color: #1d5fa8; } [data-skin="carta"] .tile.act { color: #1f7a4d; }
[data-skin="carta"] .tile.cau { color: #b5650a; } [data-skin="carta"] .tile.rte { color: #a3166f; }
[data-skin="carta"] .label { text-shadow: none; color: var(--ink); }
[data-skin="carta"] .dock { background: #fbfcfc; box-shadow: 0 -1px 0 var(--placard); }
[data-skin="carta"] .btn.primary, [data-skin="carta"] .seg input:checked + span { background: #17406e; color: #fff; }
[data-skin="carta"] .lock { background: #fbfcfc; color: #13293d; }
[data-skin="carta"] .l-flight { background: #fff; box-shadow: inset 0 0 0 1px #17406e; }
[data-skin="carta"] .l-zulu, [data-skin="carta"] .l-row.dim { color: #5d7790; }

/* ── Overhead: the Airbus overhead panel. Grey paint, white engraved caps, lit pushbuttons ── */
html[data-skin="overhead"] {
  --paint: #5b6a72; --paint-high: #6b7b84; --paint-low: #4b5960; --placard: #f4f6f6; --placard-dim: #c3ccd0;
  --well: #121618; --well-line: #2b3236; --ink: #eef2f2; --ink-dim: #9aa6ab;
  --cyan: #45d2ef; --green: #3fe08a; --amber: #ffb13b; --magenta: #ff6bd9; --red: #ff5a4e;
}
[data-skin="overhead"] body { font-family: "Barlow SC", sans-serif; background: #5b6a72; }
[data-skin="overhead"] .placard { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 12px; justify-content: center; }
[data-skin="overhead"] .placard::before, [data-skin="overhead"] .placard::after { content: ""; flex: 1; height: 1px; background: #f4f6f6; opacity: .55; }
[data-skin="overhead"] .to-app { flex: none; text-align: center; padding: 0 6px; }
[data-skin="overhead"] .well { border-radius: 2px; box-shadow: 0 0 0 3px #3d4950, 0 0 0 4px #7c8b93, inset 0 2px 10px rgba(0,0,0,.7); }
[data-skin="overhead"] .tile { border-radius: 4px; background: linear-gradient(#2a3034, #15191b); box-shadow: 0 0 0 2px #3d4950, 0 0 0 3px #8796a0, 0 4px 6px rgba(0,0,0,.4); color: #f4f6f6 !important; position: relative; }
[data-skin="overhead"] .tile::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 8px; height: 3px; border-radius: 2px; background: #3fe08a; box-shadow: 0 0 6px #3fe08a; }
[data-skin="overhead"] .tile.cau::after { background: #ffb13b; box-shadow: 0 0 6px #ffb13b; }
[data-skin="overhead"] .tile.rte::after { background: #45d2ef; box-shadow: 0 0 6px #45d2ef; }
[data-skin="overhead"] .tile svg { margin-top: -8px; }
[data-skin="overhead"] .label { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 11px; text-shadow: none; }
[data-skin="overhead"] .strip { background: #121618; border-bottom: 4px solid #3d4950; }
[data-skin="overhead"] .status { background: #3d4950; color: #c3ccd0; }
[data-skin="overhead"] .dock { background: #4b5960; box-shadow: 0 -2px 0 #3d4950; }
[data-skin="overhead"] .btn { border-radius: 3px; background: #2a3034; color: #f4f6f6; box-shadow: 0 0 0 1px #7c8b93; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 12px; }
[data-skin="overhead"] .btn.primary { color: #3fe08a; background: #15191b; }
[data-skin="overhead"] .desks button { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
[data-skin="overhead"] .lock { background: radial-gradient(ellipse at 50% 30%, #6b7b84, #3d4950); }
[data-skin="overhead"] .l-flight { background: #121618; }

/* ── MCDU: the flight management computer. Black glass, page titles, line keys ── */
html[data-skin="mcdu"] {
  --paint: #2c3135; --paint-high: #42494e; --paint-low: #23272a; --placard: #ffffff; --placard-dim: #9da5aa;
  --well: #000000; --well-line: #1d2326; --ink: #ffffff; --ink-dim: #9da5aa;
  --cyan: #2fd4ff; --green: #2be86b; --amber: #ffad1f; --magenta: #ff5ce6; --red: #ff4d4d;
}
[data-skin="mcdu"] body, [data-skin="mcdu"] button, [data-skin="mcdu"] input, [data-skin="mcdu"] textarea { font-family: "B612 Mono", monospace; }
[data-skin="mcdu"] body { background: #2c3135; }
[data-skin="mcdu"] .item.widget { background: #000; border-radius: 3px; box-shadow: 0 0 0 6px #42494e, 0 0 0 7px #5b646a; }
[data-skin="mcdu"] .placard { justify-content: center; background: #000; height: 26px; color: #fff; font-weight: 400; text-transform: uppercase; }
[data-skin="mcdu"] .to-app { flex: none; }
[data-skin="mcdu"] .well { border-radius: 0; box-shadow: none; }
[data-skin="mcdu"] .tile { border-radius: 2px; background: linear-gradient(#55606a, #3b4249); box-shadow: inset 0 1px 0 #7a858d, 0 2px 0 #1a1d1f; color: #fff !important; }
[data-skin="mcdu"] .label { font-size: 11px; text-transform: uppercase; text-shadow: none; color: #fff; }
[data-skin="mcdu"] .strip { background: #000; border-bottom: 2px solid #2be86b; }
[data-skin="mcdu"] .strip .id b { color: #2be86b; }
[data-skin="mcdu"] .status { background: #000; color: #2fd4ff; }
[data-skin="mcdu"] .status b { color: #2be86b; }
[data-skin="mcdu"] .dock { background: #23272a; }
[data-skin="mcdu"] .btn { border-radius: 2px; background: linear-gradient(#55606a, #3b4249); color: #fff; text-transform: uppercase; font-size: 12px; box-shadow: inset 0 1px 0 #7a858d; }
[data-skin="mcdu"] .btn.primary { color: #000; background: #2be86b; box-shadow: none; }
[data-skin="mcdu"] .kv dt::before { content: "<"; color: #9da5aa; margin-right: 4px; }
[data-skin="mcdu"] .lock { background: #000; }
[data-skin="mcdu"] .l-time { font-family: "B612 Mono", monospace; color: #2be86b; }
[data-skin="mcdu"] .l-flight { background: #000; box-shadow: inset 0 0 0 1px #42494e; }

/* ── Maiolica: Sicilian ceramics. Cobalt and ochre on glazed white ── */
html[data-skin="maiolica"] {
  --paint: #f4f6f8; --paint-high: #ffffff; --paint-low: #e3e9f1; --placard: #1d3f8f; --placard-dim: #56689a;
  --well: #ffffff; --well-line: #dfe5ee; --ink: #172447; --ink-dim: #5f6d8f;
  --cyan: #1f5fc4; --green: #2f7d4a; --amber: #c27c00; --magenta: #b2306f; --red: #c0392b;
}
[data-skin="maiolica"] body { font-family: "Figtree", sans-serif; background-color: #f4f6f8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23f4f6f8'/%3E%3Cpath d='M48 6c8 14 8 28 0 42-8-14-8-28 0-42zM48 90c-8-14-8-28 0-42 8 14 8 28 0 42zM6 48c14-8 28-8 42 0-14 8-28 8-42 0zM90 48c-14 8-28 8-42 0 14-8 28-8 42 0z' fill='%231d3f8f' fill-opacity='.11'/%3E%3Ccircle cx='48' cy='48' r='5' fill='%23e5a823' fill-opacity='.35'/%3E%3Cpath d='M0 0h18L0 18zM96 0H78l18 18zM0 96h18L0 78zM96 96H78l18-18z' fill='%23e5a823' fill-opacity='.18'/%3E%3C/svg%3E"); }
[data-skin="maiolica"] .data, [data-skin="maiolica"] .kv dd, [data-skin="maiolica"] .wx p, [data-skin="maiolica"] .notes textarea,
[data-skin="maiolica"] .freqs input, [data-skin="maiolica"] .rows td, [data-skin="maiolica"] .cl em, [data-skin="maiolica"] .leg b,
[data-skin="maiolica"] .strip .numbers b, [data-skin="maiolica"] .wx b, [data-skin="maiolica"] .big { font-family: "Figtree", sans-serif; font-variant-numeric: tabular-nums; }
[data-skin="maiolica"] .placard, [data-skin="maiolica"] .app-head h1, [data-skin="maiolica"] .strip .id b, [data-skin="maiolica"] .store h2 { font-family: "Fraunces", serif; font-weight: 600; }
[data-skin="maiolica"] .placard { font-size: 15px; }
[data-skin="maiolica"] .well { border-radius: 14px; box-shadow: 0 0 0 1px #dfe5ee, 0 6px 18px rgba(29,63,143,.10); }
[data-skin="maiolica"] .tile { border-radius: 18px; background: #1d3f8f; box-shadow: inset 0 0 0 3px #1d3f8f, inset 0 0 0 5px #e5a823, 0 5px 12px rgba(29,63,143,.25); color: #fff !important; }
[data-skin="maiolica"] .label { color: #172447; text-shadow: 0 0 3px #fff, 0 0 6px #fff; font-weight: 700; }
[data-skin="maiolica"] .strip { background: #1d3f8f; color: #fff; border-bottom: 4px solid #e5a823; --ink: #fff; --ink-dim: #b9c7ea; --magenta: #e5a823; --well-line: #3c5aa6; --well: #1d3f8f; }
[data-skin="maiolica"] .status { background: #142e6b; color: #b9c7ea; }
[data-skin="maiolica"] .status b { color: #fff; }
[data-skin="maiolica"] .dock { background: rgba(255,255,255,.88); box-shadow: 0 -1px 0 #dfe5ee; backdrop-filter: blur(6px); }
[data-skin="maiolica"] .btn { border-radius: 999px; }
[data-skin="maiolica"] .btn.primary, [data-skin="maiolica"] .seg input:checked + span { background: #1d3f8f; color: #fff; }
[data-skin="maiolica"] .lock { background: #1d3f8f; }
[data-skin="maiolica"] .l-time { font-family: "Fraunces", serif; }
[data-skin="maiolica"] .l-track i { background: #e5a823; }

/* ── Livrea: Air Sicilia's own colours and type, red on white like the fuselage ── */
html[data-skin="livrea"] {
  --paint: #eef0f3; --paint-high: #ffffff; --paint-low: #e1e5ea; --placard: #20262d; --placard-dim: #5b6670;
  --well: #ffffff; --well-line: #e3e7ec; --ink: #1c2229; --ink-dim: #66717c;
  --cyan: #0b63ce; --green: #198754; --amber: #b86e00; --magenta: #cc1616; --red: #cc1616;
}
[data-skin="livrea"] body { font-family: "Raleway", sans-serif; font-weight: 500; background: linear-gradient(180deg, #eef0f3, #e4e8ed); }
[data-skin="livrea"] .data, [data-skin="livrea"] .kv dd, [data-skin="livrea"] .big, [data-skin="livrea"] .strip .numbers b, [data-skin="livrea"] .strip .id b { font-family: "Raleway", sans-serif; font-variant-numeric: lining-nums tabular-nums; }
[data-skin="livrea"] .placard { font-weight: 700; }
[data-skin="livrea"] .placard::before { content: ""; width: 4px; height: 16px; background: #cc1616; border-radius: 2px; }
[data-skin="livrea"] .well { border-radius: 10px; box-shadow: 0 1px 2px rgba(20,30,40,.06), 0 8px 24px rgba(20,30,40,.07); }
[data-skin="livrea"] .tile { border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,40,.1), 0 6px 16px rgba(20,30,40,.1); color: #cc1616 !important; }
[data-skin="livrea"] .tile.sel, [data-skin="livrea"] .tile.dim { color: #20262d !important; }
[data-skin="livrea"] .label { color: #20262d; text-shadow: none; font-weight: 600; }
[data-skin="livrea"] .strip { background: #fff; border-bottom: 0; box-shadow: inset 0 -3px 0 #cc1616; }
[data-skin="livrea"] .status { background: #cc1616; color: #ffe1e1; }
[data-skin="livrea"] .status b, [data-skin="livrea"] .status .act, [data-skin="livrea"] .status .link { color: #fff; }
[data-skin="livrea"] .dock { background: #fff; box-shadow: 0 -1px 0 #e3e7ec; }
[data-skin="livrea"] .btn.primary, [data-skin="livrea"] .seg input:checked + span { background: #cc1616; color: #fff; }
[data-skin="livrea"] .lock { background: linear-gradient(160deg, #cc1616 0%, #8f0d0d 100%); }
[data-skin="livrea"] .l-time { font-family: "Raleway", sans-serif; }
[data-skin="livrea"] .l-flight { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
[data-skin="livrea"] .l-track i { background: #fff; }
[data-skin="livrea"] .l-open { background: #fff; color: #cc1616; }

/* Variant fixes after review */
[data-skin="mcdu"] .ribbon .stop { font-size: 0; }
[data-skin="mcdu"] .ribbon .stop.now { font-size: 11px; }
[data-skin="carta"] .status .act, [data-skin="maiolica"] .status .act { color: #9be7b9; }
[data-skin="carta"] .status .link, [data-skin="maiolica"] .status .link { color: #fff; }
[data-skin="maiolica"] .strip .id b, [data-skin="maiolica"] .placard, [data-skin="maiolica"] .l-time { font-variant-numeric: lining-nums; }
[data-skin="livrea"] .wx p, [data-skin="livrea"] .wx b, [data-skin="livrea"] .notes textarea, [data-skin="livrea"] .freqs input,
[data-skin="livrea"] .rows td, [data-skin="livrea"] .cl em, [data-skin="livrea"] .leg b { font-family: "Raleway", sans-serif; font-variant-numeric: lining-nums tabular-nums; }

/* Personal wallpaper */
body[data-wall="mio"] { background-size: cover !important; background-position: center !important; background-attachment: fixed; }
body[data-wall="mio"] .placard, body[data-wall="mio"] .label { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.field { min-height: 38px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--well-line); background: var(--well); color: var(--ink); min-width: 220px; }

/* Briefing app */
.briefing-app { max-width: 1060px; margin: 0 auto; padding: 18px 24px 30px; }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.b-head .row { margin: 0; flex-wrap: wrap; }
.b-route { margin: 12px 0 16px; line-height: 1.5; }
.b-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
.briefing-app h2, .charts-app h2 { font-size: 16px; margin: 22px 0 10px; }
.b-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.b-maps figure { margin: 0; }
.b-maps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #fff; display: block; box-shadow: 0 0 0 1px var(--well-line); }
.b-maps figcaption { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.briefing-app details pre { white-space: pre; overflow: auto; font: 12px/1.35 "B612 Mono", monospace; background: var(--paint-low); color: var(--ink); padding: 12px; border-radius: 6px; max-height: 360px; }
.small-note { margin-top: 18px; font-size: 12px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Sign in */
.l-form { width: min(380px, 86vw); display: grid; gap: 12px; margin-top: 8px; }
.l-form label { display: grid; gap: 5px; color: #93a8b3; font-size: 13px; }
.l-form input { min-height: 46px; padding: 8px 12px; border-radius: 8px; border: 1px solid #2b3c46; background: rgba(10,20,26,.8); color: #eaf1f3; font: 16px "B612", sans-serif; }
.l-form input:focus-visible { outline: 2px solid #52d4ea; }
.l-form .l-open { justify-self: start; }
.l-msg { min-height: 1.2em; color: #ff8a80; font-size: 13px; margin: 0; }
.l-note { color: #93a8b3; font-size: 12px; margin-top: 16px; }
.lock .l-time { font-size: clamp(56px, 10vw, 96px); }

/* Real data */
.small-head { font-size: 12px; color: var(--ink-dim); margin: 8px 0 2px; }
.wx article.ifr { border-color: var(--red); }
.wx .ifr .cat-tag { color: var(--red); }
.wx .taf { margin-top: 4px; color: var(--ink); opacity: .8; }
.wx .src { font-size: 11px; margin-top: 4px; }
.cl-pick { width: 100%; margin-bottom: 8px; }
.placard small { font-size: 11px; color: var(--amber); font-weight: 400; margin-left: 6px; }

/* Live map */
.map-pan { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; }
.map-tiles { position: absolute; inset: 0; }
.map-layers button { min-width: 36px; }
.map-layers button:disabled { opacity: .4; }
.map-pan:active { cursor: grabbing; }
.map-note { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 6px; background: rgba(10,20,26,.85); color: #eaf1f3; font-size: 13px; }
.map-layers button[data-z] { width: 34px; font-size: 16px; }
.stale { font-size: 12px; margin-bottom: 6px; }
.charts-frame { position: absolute; inset: 0; display: flex; flex-direction: column; }
.charts-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; background: var(--paint-low); }
.charts-slot { flex: 1; background: #0b1218; }
.charts-frame iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* Airports */
.ap section + section { margin-top: 12px; }
.ap h3 { font-size: 15px; margin: 0 0 2px; }
.ap .freq { all: unset; cursor: pointer; color: var(--cyan); font-family: "B612 Mono", monospace; padding: 2px 4px; border-radius: 4px; }
.ap .freq:focus-visible, .ap .freq:hover { outline: 1px solid var(--cyan); }
.sig-h { font-size: 14px; margin: 12px 0 2px; }
.manual { margin-top: 8px; }

/* Toasts */
.toasts { position: fixed; top: 112px; right: 14px; z-index: 40; display: grid; gap: 8px; width: min(340px, 90vw); pointer-events: none; }
.toast { pointer-events: auto; display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--well); color: var(--ink); border-left: 4px solid var(--cyan); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: opacity .5s, transform .5s; font-size: 13px; }
.toast.cau { border-color: var(--amber); } .toast.act { border-color: var(--green); }
.toast span { color: var(--ink-dim); }
.toast.gone { opacity: 0; transform: translateX(20px); }

/* Airports */
.ap section + section { margin-top: 12px; }
.ap h3 { font-size: 15px; margin: 0 0 2px; }
.ap .freq { all: unset; cursor: pointer; color: var(--cyan); font-family: "B612 Mono", monospace; padding: 2px 4px; border-radius: 4px; }
.ap .freq:focus-visible, .ap .freq:hover { outline: 1px solid var(--cyan); }
.sig-h { font-size: 14px; margin: 12px 0 2px; }
.manual { margin-top: 8px; }

/* Toasts */
.toasts { position: fixed; top: 112px; right: 14px; z-index: 40; display: grid; gap: 8px; width: min(340px, 90vw); pointer-events: none; }
.toast { pointer-events: auto; display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--well); color: var(--ink); border-left: 4px solid var(--cyan); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: opacity .5s, transform .5s; font-size: 13px; }
.toast.cau { border-color: var(--amber); } .toast.act { border-color: var(--green); }
.toast span { color: var(--ink-dim); }
.toast.gone { opacity: 0; transform: translateX(20px); }

/* Reorganisation: sections inside apps, utilities in the top bar */
.app-tabs { display: flex; gap: 2px; margin-left: 18px; background: var(--paint-low); border-radius: 7px; padding: 3px; overflow-x: auto; }
.app-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 5px; color: var(--placard-dim); cursor: pointer; min-height: 36px; white-space: nowrap; font: inherit; }
.app-tabs button[aria-selected="true"] { background: var(--paint-high); color: var(--placard); font-weight: 700; }
.st-btn { all: unset; position: relative; display: grid; place-items: center; width: 34px; height: 28px; cursor: pointer; color: var(--ink); border-radius: 6px; }
.st-btn svg { width: 19px; height: 19px; }
.st-btn:focus-visible { outline: 2px solid var(--cyan); }
.st-btn i { position: absolute; top: 0; right: 2px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--amber); color: #111; font: 700 10px/15px "B612", sans-serif; font-style: normal; text-align: center; }
.status { height: 34px; }
.s-w { margin-top: 3px; color: var(--placard); opacity: .75; }
.empty-desk { position: absolute; inset: 40px 0 auto; text-align: center; color: var(--placard-dim); }
.cat .opts label { min-width: 0; }
.app-tabs:empty { display: none; }
.catalog { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: start; }
.cat { display: block; padding: 10px 12px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cat-head .tile { width: 34px; height: 34px; border-radius: 9px; grid-row: auto; }
.cat-head .tile svg { width: 19px; height: 19px; }
.cat .opts { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.cat .opts.col { flex-direction: column; gap: 0; }
.cat-sub { margin: 6px 0 0; font-size: 11px; color: var(--placard-dim); }

/* Voli */
.fl p { margin: 0 0 6px; }
.fl .row { margin-top: 8px; flex-wrap: wrap; }
.fl-leg { padding: 10px 0; border-bottom: 1px solid var(--well-line); }
.fl-leg .dim { font-size: 13px; }
.search { align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.search label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-dim); }
.fl .check { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-weight: 600; }
.fl .check input { width: 20px; height: 20px; accent-color: var(--act, currentColor); }
.field.small { min-width: 0; width: 84px; text-transform: uppercase; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.pick { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--well-line); background: var(--paint-low); color: var(--ink); cursor: pointer; min-height: 56px; font: inherit; }
.pick:hover:not(:disabled), .pick:focus-visible { border-color: var(--cyan); }
.pick:disabled { opacity: .55; cursor: not-allowed; }
.pick span { color: var(--ink-dim); font-size: 13px; }
.pick small { font-size: 12px; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.field.small::placeholder { text-transform: none; }
.fl ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }

/* ── Ufficio ─────────────────────────────────────────────── */
.of-ed { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: #1b1d23; color: #e6edf3; }
/* the room is always dark, whatever the skin: its overlays keep light text */
.of-ed .dim, .of-tray > b { color: #9fb0bd; }
.of-stage { grid-row: 1 / 4; grid-column: 1; position: relative; min-height: 0; }
.of-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.of-top, .of-sel, .of-tray, .of-hint { grid-column: 1; z-index: 1; }
.of-top { grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(#0b1218e6, #0b121800); pointer-events: none; }
.of-top > * { pointer-events: auto; }
.of-spacer { flex: 1; }
.of-status { color: #e6edf3; font-size: 14px; text-shadow: 0 1px 2px #000; }
.of-status[data-kind="error"] { color: var(--amber, #ffb347); }
.of-top .btn { min-width: 44px; min-height: 44px; }
.of-top .of-zoom { font-size: 20px; font-weight: 700; }
.of-shell { min-height: 44px; }
.of-sel { grid-row: 2; align-self: end; justify-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 8px 10px; border-radius: 12px; background: #0b1218ee; border: 1px solid var(--well-line); box-shadow: 0 6px 24px #0008; }
.of-sel .btn { min-height: 44px; }
.of-sel-name { padding: 0 6px; }
.of-tray { grid-row: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0b1218ee; border-top: 1px solid var(--well-line); overflow: hidden; }
.of-tray > b { flex: none; font-size: 13px; color: var(--ink-dim); }
.of-tray-items { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 2px; }
.of-item { flex: none; scroll-snap-align: start; display: grid; grid-template-rows: 64px auto; justify-items: center; width: 96px; padding: 6px; border-radius: 10px;
  background: #22303a; color: #e6edf3; border: 1px solid transparent; font-size: 12px; text-align: center; cursor: pointer; }
.of-item img { width: 64px; height: 64px; object-fit: contain; }
.of-item:active { border-color: var(--cyan); }
.of-hint { grid-row: 2; align-self: end; justify-self: start; margin: 0 0 12px 12px; font-size: 12px; pointer-events: none; text-shadow: 0 1px 2px #000; }
.of-sel:not([hidden]) ~ .of-hint { display: none; }

.of-wsnap { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #1b1d23; cursor: pointer; }
.of-wsnap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.of-shop { position: absolute; inset: 0; overflow: auto; padding: 14px 16px 24px; }
.of-shop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; position: sticky; top: 0; z-index: 1; padding: 6px 0; background: var(--paint, #0e171d); }
.of-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.of-cats button { min-height: 40px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--well-line); background: none; color: var(--ink-dim); cursor: pointer; }
.of-cats button.on { background: var(--cyan); color: #06222a; border-color: transparent; font-weight: 700; }
.of-bal { font-size: 15px; }
.of-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.of-card { display: grid; grid-template-rows: auto auto auto; gap: 4px; padding: 10px; border-radius: 12px; background: var(--well, #111c23); border: 1px solid var(--well-line);
  color: var(--ink); text-align: left; cursor: pointer; transition: transform .12s; }
.of-card:active { transform: scale(.97); }
.of-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: radial-gradient(circle at 50% 60%, #2a3640, #141d24); }
.of-thumb img { width: 90%; height: 90%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.of-thumb img.in { opacity: 1; }
.of-card b { font-size: 14px; line-height: 1.25; }
.of-price { font: 700 14px "B612 Mono", monospace; color: var(--cyan); }
.of-card.owned .of-price { color: var(--green, #66dc8c); font-family: inherit; font-weight: 600; }
.of-sheet-wrap { position: absolute; inset: 0; z-index: 5; display: grid; place-items: end center; background: #000a; }
.of-sheet { width: min(860px, 100%); max-height: 92%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 18px;
  border-radius: 16px 16px 0 0; background: var(--paint, #0e171d); border: 1px solid var(--well-line); box-shadow: 0 -10px 40px #000a; animation: of-up .22s ease-out; }
@keyframes of-up { from { transform: translateY(40px); opacity: 0; } }
.of-view { min-height: 280px; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #2a3640, #141d24); position: relative; overflow: hidden; }
.of-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.of-info h2 { margin: 0 0 4px; font-size: 22px; }
.of-info .kv { margin: 14px 0; }
.of-info .btn { min-height: 48px; }
@media (max-width: 640px) { .of-sheet { grid-template-columns: 1fr; } .of-view { min-height: 220px; } }

.of-visit { display: grid; gap: 14px; }
.of-mine { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--well, #111c23); border: 1px solid var(--well-line); }
.of-offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.of-office { display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: var(--well, #111c23); border: 1px solid var(--well-line); color: var(--ink); text-align: left; cursor: pointer; }
.of-office img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #1b1d23; }
.of-photo { position: relative; border-radius: 12px; overflow: hidden; background: #1b1d23; }
.of-photo img { display: block; width: 100%; }
.of-zone { position: absolute; border: 0; background: transparent; border-radius: 6px; cursor: pointer; }
.of-zone.on, .of-zone:focus-visible { outline: 2px solid var(--cyan); background: #4dd0e122; }

/* Online ATC */
.atc-online h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.atc-online h4 { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-dim); }
.atc-net { display: inline-flex; gap: 2px; }
.atc-net button { min-height: 30px; padding: 3px 10px; border: 1px solid var(--well-line); background: none; color: var(--ink-dim); border-radius: 5px; font-size: 12px; cursor: pointer; }
.atc-net button.on { background: var(--paint-high); color: var(--ink); border-color: transparent; }
.net { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font: 700 11px "B612 Mono", monospace; color: #06222a; }
.net.vatsim { background: #8fd16f; }
.net.ivao { background: #4da6ff; }
.atis-code { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 4px; background: var(--amber, #ffb347); color: #1b1300; font: 700 11px "B612 Mono", monospace; }
.atc-row.has-atis { cursor: pointer; }
.atis-text td { font: 12px/1.45 "B612 Mono", monospace; color: var(--ink-dim); padding: 4px 0 10px; text-align: left !important; white-space: normal; }
.atc-online .src { margin: 8px 0 4px; }
.ap-db { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--well-line); }

/* OFP reader */
.ofp-view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ofp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--well-line); background: var(--paint-low, transparent); }
.ofp-marks { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ofp-marks button { flex: none; min-height: 38px; padding: 6px 12px; border-radius: 19px; border: 1px solid var(--well-line); background: none; color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap; }
.ofp-marks button:active { background: var(--paint-high); }
.ofp-tools { display: flex; gap: 4px; flex: none; }
.ofp-tools .btn { min-width: 44px; min-height: 40px; font-weight: 700; }
.ofp-frame { flex: 1; width: 100%; border: 0; display: block; }

/* Image viewer */
.viewer { position: fixed; inset: 0; z-index: 50; background: #05090ce8; display: grid; animation: v-in .15s ease-out; }
@keyframes v-in { from { opacity: 0; } }
.v-stage { grid-area: 1 / 1; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; padding: 68px 0 44px; }
.v-stage img { max-width: 100vw; max-height: calc(100vh - 112px); object-fit: contain; transform-origin: center; background: #fff; will-change: transform; }
.v-top { grid-area: 1 / 1; align-self: start; display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: #05090cf2; border-bottom: 1px solid #ffffff1a; color: #e6edf3; pointer-events: none; z-index: 1; }
.v-top > * { pointer-events: auto; }
.v-title { flex: 1; font-weight: 600; }
.v-count { color: #9fb0bd; font: 13px "B612 Mono", monospace; }
.v-top .btn { min-width: 48px; min-height: 48px; font-size: 18px; }
.v-nav { grid-area: 1 / 1; align-self: center; width: 52px; height: 72px; border: 0; border-radius: 10px; background: #0008; color: #fff; font-size: 34px; cursor: pointer; }
.v-nav.prev { justify-self: start; margin-left: 10px; }
.v-nav.next { justify-self: end; margin-right: 10px; }
.v-hint { grid-area: 1 / 1; align-self: end; justify-self: center; margin: 0 0 max(14px, env(safe-area-inset-bottom)); padding: 6px 12px; border-radius: 14px; background: #0009; color: #c8d3da; font-size: 12px; pointer-events: none; }
.b-map { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.b-map img { display: block; width: 100%; }
.of-sel[hidden], .v-nav[hidden] { display: none; }

/* NOTAM */
.nt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nt-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
.nt-tools .field { flex: 1; min-width: 200px; min-height: 42px; }
.nt-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nt-cats button { min-height: 36px; padding: 4px 12px; border-radius: 18px; border: 1px solid var(--well-line); background: none; color: var(--ink-dim); cursor: pointer; }
.nt-cats button.on { background: var(--paint-high); color: var(--ink); border-color: transparent; }
.nt-wrap h3 { margin: 16px 0 6px; }
.nt { padding: 10px 12px; margin: 6px 0; border-radius: 8px; background: var(--well, #111c23); border: 1px solid var(--well-line); border-left: 3px solid var(--well-line); cursor: pointer; }
.nt.imp { border-left-color: var(--amber, #ffb347); }
.nt.off { opacity: .55; }
.nt header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.nt-cat { font-size: 11px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--well-line); color: var(--ink-dim); }
.nt-imp { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: var(--amber, #ffb347); color: #1b1300; font-weight: 700; }
.nt-time { margin-left: auto; font-size: 12px; color: var(--ink-dim); }
.nt-text { margin: 6px 0 0; font: 13px/1.45 "B612 Mono", monospace; white-space: pre-wrap; word-break: break-word; }
.nt-w p { margin: 0 0 6px; font-size: 13px; }
.nt-wi { border-left: 3px solid var(--amber, #ffb347); padding-left: 8px; }

/* Prepara il piano */
.sbf h2 { margin: 0 0 4px; }
.sbf fieldset { border: 1px solid var(--well-line); border-radius: 10px; padding: 10px 14px 12px; margin: 14px 0; }
.sbf legend { padding: 0 6px; font-weight: 700; }
.sbf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0; }
.sbf-f { display: grid; gap: 4px; font-size: 12px; color: var(--ink-dim); }
.sbf-f .field { min-height: 44px; min-width: 110px; font-size: 15px; }
.sbf-f.wide { display: grid; }
.sbf-f.wide textarea { width: 100%; font: 14px/1.4 "B612 Mono", monospace; }
.sbf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sbf-chips button { min-height: 40px; min-width: 48px; border-radius: 8px; border: 1px solid var(--well-line); background: var(--paint-high); color: var(--ink); font: 700 14px "B612 Mono", monospace; cursor: pointer; }
.sbf-frames { display: grid; gap: 6px; }
.pick-r { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; background: var(--well, transparent); }
.pick-r input[type=radio] { width: 22px; height: 22px; }
.small-w { min-width: 260px; min-height: 40px; }
.sbf-go .btn { min-height: 50px; padding: 0 22px; }
.sb-ifps .sbi { grid-area: 1 / 1; align-self: center; justify-self: center; width: min(760px, 94vw); max-height: 92vh; overflow: auto; padding: 18px; border-radius: 14px; background: var(--paint, #0e171d); color: var(--ink, #e6edf3); border: 1px solid var(--well-line); }
.sb-ifps textarea { width: 100%; font: 13px/1.4 "B612 Mono", monospace; margin: 8px 0; }

.sbf-chips button.rec { background: var(--cyan); color: #06222a; border-color: transparent; }
.sbf-why { margin: -2px 0 8px; font-size: 13px; color: var(--ink-dim); }
.sbf-why.atis { color: var(--green, #66dc8c); }
.app-hint { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 14px; background: var(--paint, #0e171d); color: var(--ink, #e6edf3); border: 1px solid var(--well-line); box-shadow: 0 10px 40px #000a; }
.app-hint > div:first-child { display: grid; gap: 2px; max-width: 640px; }
.app-hint span { font-size: 13px; color: var(--ink-dim); }
.app-hint .btn { min-height: 44px; }

/* Checklist */
.cl-phases { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 4px; padding-bottom: 4px; scrollbar-width: thin; }
.cl-phases button { flex: none; min-height: 40px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--well-line); background: none; color: var(--ink-dim); cursor: pointer; white-space: nowrap; }
.cl-phases button[aria-selected="true"] { background: var(--paint-high); color: var(--ink); border-color: transparent; }
.cl-phases button.full small { color: var(--green, #66dc8c); }
.cl-title button:disabled { opacity: .35; }
.cl li label { min-height: 44px; }
.cl-title button { color: var(--ink); font-size: 18px; }
#app-body .cl-title b { font-size: 16px; }
#app-body .cl label { min-height: 52px; }
#app-body .cl input { width: 24px; height: 24px; }
#app-body .cl span { font-size: 15px; }
#app-body .cl em { font-size: 14px; }
#app-body .cl-title button { width: 48px; height: 44px; }

/* Piste consigliate */
.rw { margin-bottom: 14px; }
.rw h3 { margin: 0 0 4px; font-size: 15px; }
.rw-adv { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 6px; font-size: 13px; color: var(--ink-dim); }
.rw-adv .big { font: 700 26px "B612 Mono", monospace; color: var(--cyan); }
.rw-adv.atis .big { color: var(--green, #66dc8c); }
.rw tr.rec td { background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.toast.undo { cursor: pointer; border-left-color: var(--green, #3fb950); }

/* ── 0.24.0: usability round ─────────────────────────────────── */
/* numbers that change in place do not jitter */
.data, .numbers b, .big, .kv dd, .status, .l-time, .nt-time { font-variant-numeric: tabular-nums; }
/* status bar: readable, and its buttons large enough for a finger in turbulence */
.status { height: 36px; font-size: 13px; }
.st-btn { width: 44px; height: 36px; }
.net-off { color: #111; background: var(--amber); padding: 2px 8px; border-radius: 10px; font-weight: 700; }
/* hit areas grown without changing the look */
body.editing .remove { position: relative; width: 32px; height: 24px; }
body.editing .remove::after, .st-btn::after { content: ""; position: absolute; inset: -8px; }
/* dock: a short name under each app */
.d-app { display: grid; justify-items: center; gap: 2px; }
.d-lbl { font-size: 11px; line-height: 1.1; color: var(--placard-dim); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-app.open .d-lbl { color: var(--placard); font-weight: 700; }
.d-app.open::after { bottom: -3px; }
/* desks: Auto, visible; in portrait above the apps instead of hidden */
.desk-tabs { display: flex; }
.desks .auto { border: 0; background: none; padding: 6px 10px; border-radius: 5px; color: var(--placard-dim); cursor: pointer; min-height: 38px; font-weight: 700; }
.desks .auto[aria-pressed="true"] { color: #111; background: var(--cyan); }
@media (max-width: 880px) {
  .dock { flex-wrap: wrap; row-gap: 6px; }
  .desks { display: flex !important; order: -1; width: 100%; overflow-x: auto; }
  .desk-tabs { flex: 1; }
  .desk-tabs button { flex: 1; white-space: nowrap; }
  .strip .numbers div:nth-child(n+3) { display: block; }
  .strip .numbers .opt { display: none; }
}
@media (max-width: 620px) { .strip .numbers div:nth-child(n+2) { display: none; } .strip .numbers div:last-child { display: block; } }
/* the lock screen: Z first */
.l-time small { font-size: .35em; margin-left: .08em; opacity: .75; }
/* the plan on screen is another flight's */
.other-plan { margin: 0 0 10px; padding: 8px 10px; border-left: 4px solid var(--amber); background: rgba(255, 179, 71, .12); color: var(--ink); border-radius: 4px; font-size: 13px; }
/* Da fare: a step that leads somewhere */
.ops .op { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; cursor: pointer; padding: 8px 10px; margin-bottom: 8px; border-left: 3px solid var(--cyan); border-radius: 4px; background: var(--well); }
.ops .op.cau { border-left-color: var(--amber); }
.ops .op b, .ops .op p { grid-column: 1; margin: 0; }
.ops .op .go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 22px; color: var(--cyan); }
.ops .op:focus-visible { outline: 2px solid var(--cyan); }
/* empty desk */
.empty-desk { display: grid; justify-items: center; gap: 10px; }
.empty-desk p { margin: 0; }
/* checklist phases: a fade says there is more to scroll */
.cl-phases { overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
/* night dimmer over everything, touches pass through */
#dimmer { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 9999; }
/* toasts can be closed with a tap */
.toast { cursor: pointer; }
/* every button looks like one, on every skin; a little taller for a finger */
.btn { min-height: 40px; }
.btn:not(.primary):not(.danger) { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.lock .l-open { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
/* Voli › Ferry and Transfer */
.fl h3 { margin: 18px 0 8px; font-size: 15px; }
.fy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; margin-bottom: 8px; border-radius: 6px; background: var(--well-line, rgba(127,127,127,.12)); }
.fy-main { display: grid; gap: 2px; min-width: 220px; flex: 1; }
.fy-main small { font-size: 13px; }
.transit { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; margin-bottom: 12px; border-left: 4px solid var(--cyan); background: rgba(77, 208, 225, .1); border-radius: 4px; }
.fy-req { display: grid; gap: 10px; }
.fy-req .pick.on { outline: 2px solid var(--cyan); }
.fy-modes span, .tr-modes .btn { display: grid; gap: 2px; text-align: left; }
.fy-modes small, .tr-modes small { font-size: 12px; font-weight: 400; opacity: .8; }
.tr-modes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tr-modes .btn { min-height: 56px; padding: 8px 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.4); }
/* text that carries information is at least 13 px (labels of tiles and tags stay compact) */
.strip .id small, .placard small, .wx .role, .freqs label, .leg span, .calc label, .s-main small, details,
.b-maps figcaption, .small-note, .l-note, .small-head, .wx .src, .stale, .search label, .pick small, .nt-time, .sbf-f,
.fy-modes small, .tr-modes small, .app-ver, .small { font-size: 13px; }
.strip .numbers span { font-size: 12px; }
/* edit drawer reduced to its buttons */
.drawer.min { max-height: none; overflow: visible; }
.drawer.min .hint, .drawer.min .catalog { display: none; }
/* Note ATC: fill from the flight, start a new flight */
.note-acts { display: flex; gap: 6px; align-items: end; }
.note-acts button { min-height: 34px; padding: 4px 10px; border: 1px solid var(--well-line); border-radius: 6px; background: none; color: var(--ink); cursor: pointer; font-size: 13px; }
/* links to the same page of the site */
.site-link { margin: 12px 0 0; }
.site-link a { color: var(--cyan); text-decoration: none; font-weight: 700; display: inline-block; min-height: 32px; line-height: 32px; }
.fy-legs { flex-basis: 100%; display: grid; gap: 8px; }
.fy-leglist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; }
.fy-leglist .pick[hidden] { display: none; }
