:root{--bg:#f4f7fb;--card:#fff;--ink:#0d2238;--dim:#5b6b7e;--line:#dbe3ec;--brand:#0b1d33;--accent:#0e8f8c;--accent-ink:#fff;
--ok:#12794a;--okbg:#e3f5ec;--warn:#9a5b00;--warnbg:#fff1d6;--bad:#b3261e;--badbg:#fde7e5;--info:#1f5fae;--infobg:#e6effb;--fs:16px}
@media(prefers-color-scheme:dark){:root{--bg:#09131f;--card:#11202f;--ink:#e8eff7;--dim:#9db0c4;--line:#243649;--brand:#0b1d33;--accent:#27b9b5;--accent-ink:#06201f;
--ok:#6fdc9f;--okbg:#12301f;--warn:#ffc864;--warnbg:#3a2c0b;--bad:#ff9a92;--badbg:#3a1613;--info:#8fbcff;--infobg:#13263f}}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--fs)/1.45 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Naskh Arabic",Tahoma,sans-serif}
body.large{--fs:19px}
#app{max-width:640px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;padding-bottom:calc(88px + env(safe-area-inset-bottom))}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background:var(--brand);color:#fff;position:sticky;top:0;z-index:5;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px}.logo{width:38px;height:38px;border-radius:50%;background:#12a4a1;display:grid;place-items:center;font-size:20px}
.name{font-weight:700;font-size:1.1em;line-height:1.1}.sub{font-size:.78em;opacity:.8}
.tools{display:flex;gap:8px;align-items:center}.langs{display:flex;gap:4px}
.lang{min-width:44px;min-height:36px;padding:0 10px;border-radius:18px;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;font-size:.85em}
.lang.on{background:#fff;color:var(--brand);font-weight:700}
.banner{margin:12px 16px 0;padding:10px 14px;border-radius:12px;font-size:.92em;background:var(--warnbg);color:var(--warn);border:1px solid color-mix(in srgb,var(--warn) 35%,transparent)}
main{flex:1;padding:12px 16px}
.searchrow{display:flex;gap:8px}.search{flex:1;min-height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:var(--card)}
.icon{min-width:46px;min-height:46px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:1.2em}
.age{font-size:.8em;color:var(--dim);margin:8px 2px}
.list{display:flex;flex-direction:column;gap:10px}
.card{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;text-align:start;width:100%;padding:12px 14px;border-radius:14px;background:var(--card);border:1px solid var(--line);border-inline-start:5px solid var(--info)}
.card.st-delayed{border-inline-start-color:#e08a00}.card.st-cancelled{border-inline-start-color:var(--bad)}.card.st-landed,.card.st-departed{border-inline-start-color:var(--ok)}
.time{display:flex;flex-direction:column}.time .t{font-size:1.45em;font-weight:700;font-variant-numeric:tabular-nums}.time .old{font-size:.8em;color:var(--dim);text-decoration:line-through}
.city{font-weight:600}.meta{font-size:.85em;color:var(--dim)}.end{text-align:end;display:flex;flex-direction:column;gap:4px;align-items:flex-end}.place{font-size:.85em;color:var(--dim)}
.chip{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.78em;font-weight:600;background:var(--infobg);color:var(--info);white-space:nowrap}
.chip.st-delayed,.chip.st-diverted,.chip.st-unknown{background:var(--warnbg);color:var(--warn)}.chip.st-cancelled{background:var(--badbg);color:var(--bad)}.chip.st-landed,.chip.st-departed{background:var(--okbg);color:var(--ok)}
.more{margin:4px auto;padding:10px 16px;border-radius:12px;border:1px dashed var(--line);background:transparent;color:var(--dim)}
.empty{text-align:center;color:var(--dim);padding:28px 8px}
.tabs{position:fixed;inset-inline:0;bottom:0;display:flex;max-width:640px;margin:0 auto;background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:6}
.tab{flex:1;min-height:60px;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.82em;color:var(--dim)}
.tab.on{color:var(--accent);font-weight:700}
.footer{font-size:.72em;color:var(--dim);text-align:center;padding:0 20px 12px}
.scrim{position:fixed;inset:0;background:rgba(0,10,20,.55);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.sheet{width:100%;max-width:640px;max-height:92dvh;overflow:auto;background:var(--card);border-radius:20px 20px 0 0;padding:16px 18px calc(20px + env(safe-area-inset-bottom))}
.sheet-h{display:flex;align-items:center;gap:10px;justify-content:space-between}.sheet-h>div:first-child{flex:1}.big{font-size:1.7em;font-weight:800}
.kvs{margin-top:10px}.kv{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.kv>span:first-child{color:var(--dim)}
.route h3{margin:16px 0 6px;font-size:1em}.orig select{margin-inline-start:6px;min-height:40px;padding:0 8px;border-radius:10px;border:1px solid var(--line);background:var(--card)}
.walk{font-weight:600}.note{font-size:.78em;color:var(--dim)}
.map{width:100%;height:auto;background:var(--bg);border-radius:12px;border:1px solid var(--line)}
.map .zone{fill:var(--card);stroke:var(--line);stroke-width:2}.map .zl{font-size:15px;fill:var(--dim)}.map .edge{stroke:var(--line);stroke-width:5;stroke-linecap:round}
.map .path{fill:none;stroke:var(--accent);stroke-width:9;stroke-linecap:round;stroke-linejoin:round}.map .src{fill:var(--info)}.map .dest{fill:var(--bad)}.map .pl{font-size:20px;font-weight:700;fill:var(--ink);paint-order:stroke;stroke:var(--card);stroke-width:5px}
.ask{display:flex;flex-direction:column;gap:10px;height:calc(100dvh - 215px);min-height:320px}
.msgs{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px}
.msg{max-width:86%;padding:10px 14px;border-radius:16px;background:var(--card);border:1px solid var(--line);align-self:flex-start}
.msg.user{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-color:transparent}
.bnote{font-size:.75em;color:var(--warn);margin-top:4px}.dim{color:var(--dim)}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.chipbtn{white-space:nowrap;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-size:.85em}
.askrow{display:flex;gap:8px}.send{padding:0 18px;min-height:46px;border-radius:12px;border:0;background:var(--accent);color:var(--accent-ink);font-weight:700}.send:disabled{opacity:.5}
.fine{font-size:.74em;color:var(--dim);margin:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(prefers-reduced-motion:no-preference){.scrim{animation:f .15s}@keyframes f{from{opacity:0}}}
/* Verified AIDX change feed. Not a substitute for official airport announcements. */
.recent-changes { border: 1px solid #228c9a; border-radius: 14px; padding: 12px; margin-bottom: 16px; background: rgba(13,79,94,.12); }
.recent-changes h3 { margin: 0 0 8px; font-size: 1rem; }
.change-item { padding: 9px 2px; border-top: 1px solid rgba(100,150,170,.25); font-size: .88rem; }
/* Frontend v4: visible controls and readable focus in mobile, desktop and RTL. */
button:disabled{cursor:not-allowed;opacity:.65}
.lang{min-height:44px}
.more{color:var(--ink);font-weight:650;min-height:46px}
.card:hover,.chipbtn:hover,.icon:hover{border-color:var(--accent)}
.card:focus-visible,.lang:focus-visible,.tab:focus-visible{outline-offset:3px}
.change-item{overflow-wrap:anywhere;line-height:1.55}
.msg .txt{white-space:pre-wrap;overflow-wrap:anywhere}
.meta,.city,.kv,.place{overflow-wrap:anywhere}
.board .search{min-width:0}
@media(max-width:420px){
  .top{gap:7px;padding:11px 12px}
  .tools{width:100%;justify-content:flex-end}
  .card{grid-template-columns:62px minmax(0,1fr);gap:7px;padding:11px 10px}
  .card .end{grid-column:2;justify-self:start;align-items:flex-start;text-align:start}
  .chip{white-space:normal}
  .time .t{font-size:1.3em}
  .askrow .search{min-width:0}
  main{padding:12px}
}
@media(min-width:900px){
  #app,.tabs{max-width:920px}
  .list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
  .board .card{height:100%;min-height:108px}
  .board .empty,.board .more{grid-column:1/-1}
  .ask{height:calc(100dvh - 240px)}
  .sheet{border-radius:22px;max-height:80dvh;margin-bottom:6dvh}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.top,.tabs,.searchrow,.askrow{display:none!important} #app{max-width:100%;padding:0}.card{break-inside:avoid}}

.source-strip{margin:10px 16px 0;padding:8px 12px;font-size:.78em;font-weight:600;border-radius:10px;background:var(--infobg);color:var(--info);border:1px solid var(--line)}
