:root { color-scheme: dark light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-tap-highlight-color: transparent; letter-spacing: -0.011em; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
html.dark body { background: #000; color: #f5f5f7; }
html.light body { background: #f5f5f7; color: #1d1d1f; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.gate-card { width: min(100%, 420px); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; background: #121215; display: grid; gap: 14px; }
html.light .gate-card { background: #fff; border-color: #d2d2d7; }
.gate-card h1 { margin: 0; font-size: 22px; }
.gate-card p { margin: 0; font-size: 14px; line-height: 1.5; color: #9a9aa6; }
html.light .gate-card p { color: #5f5f6b; }
.gate-note { padding: 20px; }
.field { display: grid; gap: 6px; font-size: 13px; color: #9a9aa6; }
html.light .field { color: #5f5f6b; }
.field input { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: #0c0c0f; color: inherit; }
html.light .field input { background: #f2f2f7; border-color: #d2d2d7; }
.field input:focus-visible, .btn:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; padding: 12px 16px; border-radius: 12px; border: 0; cursor: pointer; background: #0a84ff; color: #fff; text-align: center; text-decoration: none; display: block; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.18); font-weight: 500; padding: 7px 12px; font-size: 13px; display: inline-block; }
html.light .btn-ghost { border-color: #c9c9d1; }
.btn-link { background: none; color: #0a84ff; padding: 6px; font-weight: 500; }
.msg { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; }
.msg-error { background: rgba(255,69,58,.14); color: #ff9a93; }
html.light .msg-error { color: #c9302a; }
.msg-ok { background: rgba(48,209,88,.14); color: #6fe38f; }
html.light .msg-ok { color: #1c7a3a; }
.qr { justify-self: center; width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: .06em; word-break: break-all; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); user-select: all; }
html.light .secret { background: rgba(0,0,0,.05); }
.code-input { text-align: center; letter-spacing: .35em; font-size: 24px !important; }
.office-view { max-width: 1760px; margin: 0 auto; padding: 8px 14px 24px; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 2px 12px; }
.topbar-title { font-weight: 700; font-size: 17px; }
.topbar-who { flex: 1; font-size: 12px; color: #9a9aa6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
