*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); min-height: 100dvh; }
[hidden] { display: none !important; }
.brand { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: .01em; }
.btn { font: inherit; font-weight: 600; padding: 11px 18px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); font-weight: 500; padding: 8px 14px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.gate { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.gate-msg { margin: 0; color: var(--muted); max-width: 32ch; }
.gate[data-state="denied"] .gate-msg, .gate[data-state="error"] .gate-msg { color: var(--bad); }

.bar { display: flex; align-items: center; gap: 12px; padding: 14px max(16px, env(safe-area-inset-left)) 14px; border-bottom: 1px solid var(--rule); background: var(--panel); }
.who { margin: 0 0 0 auto; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.note { margin: 16px; padding: 10px 12px; border: 1px solid var(--rule); border-left: 4px solid var(--warn); border-radius: var(--radius); background: var(--panel); font-size: 14px; }
.tiles { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; align-content: start; }
.tile-head { display: flex; align-items: center; gap: 10px; }
.mono { width: 38px; height: 38px; border-radius: 9px; display: grid; place-content: center; font-weight: 700; font-size: 14px; background: var(--accent); color: var(--accent-ink); flex: none; }
.tile h2 { margin: 0; font-size: 17px; }
.tile .sub { margin: 0; font-size: 13px; color: var(--muted); }
.tile .links { display: grid; gap: 6px; margin-top: 4px; }
.tile a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.tile .none { color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: opacity .15s; } .btn:active { opacity: .8; } }
