:root{color-scheme:dark;font-family:"Segoe UI",system-ui,sans-serif;background:#0a111c;color:#edf3fa;--panel:#111e2c;--line:#283b50;--muted:#a9b9ca;--accent:#f4cf7c}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem clamp(1rem,5vw,4rem);border-bottom:1px solid var(--line);background:#101b29}
.site-header[hidden]{display:none}
nav,.heading,.actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.heading{justify-content:space-between}
main{max-width:1320px;margin:auto;padding:clamp(1rem,4vw,3rem)}
a{color:#a9d4ff}
.brand{color:inherit;text-decoration:none;font-weight:700;white-space:nowrap}
.brand span,.airport-mark{color:var(--accent);font-family:ui-monospace,monospace;letter-spacing:.07em}
h1{font-size:clamp(1.7rem,4vw,2.7rem);margin:0 0 1rem}
h2{font-size:1.15rem;margin:0 0 1rem}
p{color:var(--muted);line-height:1.5;margin:.4rem 0 .9rem}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:.7rem;padding:1.15rem;margin-bottom:1rem}
.fields{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap}
.fields label{flex:1 1 8.5rem}
.stack,.list{display:grid;gap:.8rem}
label{display:grid;gap:.3rem;font-size:.88rem}
input,select,button{font:inherit;border-radius:.4rem;padding:.59rem .72rem;min-height:2.5rem}
input,select{color:inherit;background:#0b1623;border:1px solid #45607b;min-width:0;width:100%}
input[type=checkbox]{width:1.1rem;min-height:1.1rem}
.check{display:flex;flex:0 0 auto!important;align-items:center;padding:.4rem}
button{cursor:pointer;border:1px solid transparent;font-weight:700;background:var(--accent);color:#1c180e}
button:disabled{opacity:.55;cursor:default}
button.secondary{color:#deebf7;background:#1a2c3d;border-color:#415a75}
button.danger{color:#ffb8bf}
:focus-visible{outline:2px solid #a9d4ff;outline-offset:3px}
.hint{font-size:.83rem;margin-bottom:0}
.item{border-top:1px solid var(--line);padding-top:.8rem;overflow-wrap:anywhere}
.item .actions{margin-top:.55rem}
.item-heading{margin:0;font-weight:700;color:inherit}
.item-meta{margin:.2rem 0 .45rem;font-size:.9rem}
.auth{max-width:29rem;margin:2rem auto}
#notice{max-width:1250px;margin:0 auto;padding:0 1rem}
#notice:empty{display:none}
dialog{color:inherit;background:var(--panel);border:1px solid #45607b;border-radius:.6rem;padding:1.3rem;width:min(92%,34rem)}
dialog::backdrop{background:#020711c7}
dialog .fields{margin-bottom:.65rem}
@media(max-width:730px){.site-header{align-items:flex-start}.fields button{flex:1 1 auto}}
.pairing {text-align:center}
.pairing img {display:block;margin:1.1rem auto;max-width:100%;height:auto;background:white;border-radius:.35rem;image-rendering:pixelated}
.pairing img[hidden] {display:none}
