/* The hosted OS's own styles (T316): the front door (sign-in and loading), and the look-only marks. The OS's screens use
   the prototype's styles.css. Brand tokens from 02 Visual Identity (the prototype's :root): Paper page, Ink text,
   Brand Orange only for the slash and small labels on Ink. Everything for the front door sits under #gate so it never
   touches the OS's own screens. */
body.booting .shell, body.booting #remote-banner, body.booting #offline-banner { display: none; }
#gate { position: fixed; top: 31px; right: 0; bottom: 0; left: 0; z-index: 60; overflow-y: auto; background: var(--paper); }
#gate[hidden] { display: none; }
#gate .gwrap { max-width: 440px; margin: 0 auto; padding: 48px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
#gate .gmark { display: block; width: 200px; max-width: 60%; height: auto; margin: 0 0 28px; }
#gate .gcard { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
#gate h1 { font: 700 26px/1.15 "Clash Display", Inter, sans-serif; letter-spacing: -0.02em; margin: 0 0 8px; }
#gate p { margin: 0 0 12px; color: var(--body, #565653); }
#gate .muted { color: var(--muted); }
#gate .gbtn { min-height: 44px; margin: 16px 0 4px; }
#gate .btn { margin: 12px 8px 0 0; }
#gate .btn.ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
#gate .bad { border-left: 3px solid var(--orange); padding: 8px 12px; background: #FFF4F1; color: var(--ink); margin: 12px 0 0; }
#gate .foot { font: 500 12px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); margin-top: 16px; }

/* Look-only: what would change something is greyed out, still readable, and says why when tapped. */
.ro-off { opacity: .45; cursor: not-allowed !important; }
input.ro-off, textarea.ro-off { background: transparent; }
/* The prototype's "simulated" tags: on the hosted OS nothing is simulated, it's read from the sheets. */
.sim-tag { display: none !important; }
.who .lbl { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.who .who-name { color: var(--white); margin: 0; }
.who .who-mail { word-break: break-all; }
.who-btn { margin-top: 10px; background: none; border: 1px solid #3a3a3a; color: var(--white); border-radius: 99px; min-height: 36px; padding: 0 14px; font-size: 13px; cursor: pointer; }
#sync-status .who-btn { margin-left: 6px; }
