:root { color-scheme: light; --paper: #f5f3ed; --ink: #25382e; --muted: #737d74; --line: #dcded5; --app-height: 100dvh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button { border: 0; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .remote-surface:focus-visible { outline: 2px solid #728d61; outline-offset: 4px; }
.gate { min-height: 100svh; display: flex; flex-direction: column; padding: max(32px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom)); max-width: 1180px; margin: auto; }
.brand { display: flex; align-items: center; gap: 15px; }
.brand-mark { position: relative; display: flex; align-items: center; justify-content: center; width: 51px; height: 51px; border: 1px solid #a2ad98; border-radius: 50%; font: 27px Georgia, "Times New Roman", serif; letter-spacing: -9px; padding-right: 8px; }
.brand-mark span { transform: translateY(5px); opacity: .64; }
.brand-name { font: 17px/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.3px; }
.entry { width: 100%; max-width: 370px; margin: auto; padding: 62px 0 46px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; margin: 0 0 26px; }
.status-dot { width: 6px; height: 6px; background: #8c9e79; border-radius: 50%; }
h1 { font: 400 clamp(42px, 9vw, 54px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -2px; margin: 0 0 22px; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 31px; }
.entry-form { display: flex; flex-direction: column; }
.entry-form label { font-size: 12px; font-weight: 550; margin: 0 0 9px; }
.entry-form input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf8; color: var(--ink); padding: 0 14px; font-size: 16px; margin: 0 0 22px; box-shadow: 0 1px 3px #26362b03; }
.entry-form input:focus { outline: 0; border-color: #849675; box-shadow: 0 0 0 3px #8c9e7914; }
.primary { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 18px; border-radius: 7px; background: var(--ink); color: #f9f8f3; font-size: 13px; font-weight: 550; margin-top: 4px; transition: background .15s; }
.primary:hover { background: #3d5040; }
.primary span:last-child { font-size: 23px; font-weight: 300; }
.primary:disabled { opacity: .65; cursor: wait; }
.form-message { min-height: 19px; font-size: 12px; line-height: 1.5; color: #8c4031; margin: 14px 0 0; overflow-wrap: anywhere; }
.entry-note { font-size: 11px; line-height: 1.65; color: var(--muted); max-width: 295px; margin: 12px 0 0; }
.gate-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; color: #91988e; font-size: 10px; }
.workspace { position: fixed; top: 0; left: 0; width: 100%; height: var(--app-height); display: flex; flex-direction: column; overflow: hidden; background: #fff; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.toolbar { height: 59px; min-height: 59px; display: flex; align-items: center; gap: 4px; padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)); background: var(--paper); border-bottom: 1px solid var(--line); }
.icon-button { flex: 0 0 37px; width: 37px; height: 40px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; }
.icon-button:hover, .icon-button:active, .keyboard-button.ready { background: #e5e9dc; }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lock-button { background: #e8eade; }
.toolbar-divider { width: 1px; height: 21px; background: var(--line); margin: 0 4px; }
.service-label { flex: 1; min-width: 0; max-width: 240px; margin-left: auto; padding: 0 10px; font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remote-surface { position: relative; flex: 1; min-height: 0; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; background: #fff; outline: 0; }
#browser-frame { display: block; width: 100%; height: 100%; object-fit: fill; }
.connection-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; color: var(--muted); background: var(--paper); font-size: 13px; text-align: center; }
.spinner { width: 23px; height: 23px; border: 2px solid #d6ddcd; border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
.workspace-status { height: 19px; min-height: 19px; background: var(--paper); border-top: 1px solid #e9eade; color: var(--muted); font-size: 9px; padding: 3px 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.keyboard-proxy { position: fixed; left: 12px; bottom: max(20px, env(safe-area-inset-bottom)); width: 1px; height: 1px; opacity: .01; padding: 0; border: 0; margin: 0; resize: none; color: transparent; caret-color: transparent; font-size: 16px; background: transparent; z-index: -1; }
.noscript { position: fixed; bottom: 20px; left: 20px; right: 20px; color: #8c4031; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 700px) { .gate { padding: 45px 60px 30px; } .entry { margin-top: max(65px, calc((100svh - 750px) / 2)); } .toolbar { gap: 8px; } .service-label { margin-right: auto; } }
@media (max-height: 700px) { .entry { padding-top: 38px; padding-bottom: 25px; } .eyebrow { margin-bottom: 18px; } h1 { font-size: 43px; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
