/* Gatehouse 2.1 offline: the connection pill (top right on every screen), the "as of" line, the update bar, offline verdicts.
   Readable in sunlight: solid colours, bold text, an icon and words on every state (colour is never the only signal). */
.gh-net{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 12px;border-radius:999px;border:2px solid transparent;font:inherit;font-size:.86rem;font-weight:720;line-height:1.1;cursor:pointer;white-space:nowrap;max-width:min(62vw,340px);overflow:hidden;text-overflow:ellipsis;flex:none}
.gh-net svg{width:18px;height:18px;flex:none}
.gh-net span{overflow:hidden;text-overflow:ellipsis}
.gh-net.on{background:var(--surface);color:var(--ink);border-color:var(--line-strong,var(--line))}
.gh-net.on svg{color:var(--ok,#1F7A4D)}
.gh-net.unk{background:var(--surface);color:var(--ink-2);border-color:var(--line)}
.gh-net.off{background:#0E2233;color:#fff;border-color:#0E2233}
.gh-net.off svg{color:#E7C88E}
.gh-net.wait,.gh-net.send{background:#0E2233;color:#fff;border-color:#D6AB60}
.gh-net.send svg{animation:gh-up 1.2s ease-in-out infinite}
.gh-net.att{background:#D6AB60;color:#0E2233;border-color:#8C6421}
.gh-net.upd{background:#FFF6E3;color:#3B2A0A;border-color:#D6AB60}.gh-net.upd svg{color:#8C6421}
.gh-net.nos{background:#B42318;color:#fff;border-color:#B42318}
.gh-net.nos-on{background:#FFF6E3;color:#3B2A0A;border-color:#B42318}.gh-net.nos-on svg{color:#B42318}
.gh-net:focus-visible{outline:3px solid #D6AB60;outline-offset:2px}
@keyframes gh-up{50%{transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.gh-net.send svg{animation:none}}
/* outside the app frame (sign-in, guest pass, setup pages): fixed at the top right, and the page moves down so it never covers a button */
.gh-net.fixed{position:fixed;top:calc(env(safe-area-inset-top,0px) + 8px);right:calc(env(safe-area-inset-right,0px) + 10px);z-index:60;box-shadow:0 2px 10px rgba(14,34,51,.18)}
body.gh-pill-fixed #root{padding-top:52px}
@media (max-width:820px){.topslot .gh-net{max-width:calc(100vw - 96px);padding:5px 12px;font-size:.84rem}}

.gh-asof{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:10px 12px;border-radius:var(--r2,10px);background:#0E2233;color:#fff;font-size:.9rem;line-height:1.35}
.gh-asof svg{width:20px;height:20px;flex:none;color:#E7C88E;margin-top:1px}
.gh-asof.warn{background:#FFF6E3;color:#3B2A0A;border:1px solid #D6AB60}
.gh-asof.warn svg{color:#8C6421}
:root[data-theme="dark"] .gh-asof.warn{background:#3A3220;color:#F3E6C8}
.gh-why{color:var(--bad,#B42318)!important;font-weight:600}
/* 2.2.3 (F5): the "Needs attention" card on a phone wraps: icon + text and reason full width on top, the A8 buttons under them one per
   row, then Copy details / Try again / Remove. Labels may wrap; 44 px taps; nothing is drawn over anything. 821 px and up unchanged. */
.gh-stuck .btn{white-space:normal;text-align:center}
@media (max-width:600px){
  .li.gh-qbad{flex-wrap:wrap;align-items:flex-start;row-gap:10px}
  .li.gh-qbad>.grow{flex:1 1 0;min-width:0;overflow-wrap:anywhere}
  .li.gh-qbad>.row.nw{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-end;gap:8px}
  .li.gh-qbad>.row.nw .btn{flex:1 1 auto;min-height:44px;white-space:normal}
  .li.gh-qbad .gh-stuck{flex-direction:column;align-items:stretch;gap:8px;margin-top:8px}
  .li.gh-qbad .gh-stuck>*{width:100%}
  .li.gh-qbad .gh-stuck .btn{min-height:44px;height:auto;padding-top:8px;padding-bottom:8px;line-height:1.25}
}

.gh-update{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 84px);z-index:70;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:14px;background:#0E2233;color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.28);font-weight:650;max-width:calc(100vw - 24px)}
.gh-update span{display:inline-flex;gap:8px;align-items:center}
.gh-update svg{width:18px;height:18px;color:#E7C88E}
.gh-update .btn{background:#D6AB60;color:#0E2233;border-color:#D6AB60}
@media (min-width:821px){.gh-update{bottom:20px}}

/* offline gate verdicts */
.verdict.gh-local{border-style:dashed}
.gh-offnote{font-size:.85rem;color:var(--ink-2);margin:6px 0 10px}
.gh-wait-li .btn{min-height:40px}
.gh-thumb{width:96px;height:96px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}
.gh-i{width:18px;height:18px;vertical-align:-3px;color:var(--ok)}
