/* Davis HQ approvals - same "Daylight" look as HQ. */
:root { color-scheme: light dark; --bg: #f5f5f7; --panel: #fff; --text: #1d1d1f; --muted: #86868b; --line: rgba(0, 0, 0, .07); --accent: #0071e3; --accent-2: #0062c4;
  --bad: #e0352b; --bad-soft: #fdeceb; --good: #1a9a4b; --soft: #f0f0f3; --shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 6px 24px rgba(0, 0, 0, .05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --panel: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --line: rgba(255, 255, 255, .08); --accent: #0a84ff; --accent-2: #409cff;
    --bad: #ff453a; --bad-soft: rgba(255, 69, 58, .15); --good: #30d158; --soft: rgba(255, 255, 255, .08); --shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
.wrap { width: min(560px, 100%); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: #111318; color: #fff; display: grid; place-items: center; font: 800 15px/1 var(--display); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.brand b { display: block; font: 650 16px/1.2 var(--display); }
.brand small { color: var(--muted); font-size: 13px; }
h1 { font: 700 32px/1.12 var(--display); letter-spacing: -1px; margin: 0 0 18px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.card { background: var(--panel); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); margin: 0 0 16px; }
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.where > div { background: var(--panel); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.where small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.where b { font: 650 19px/1.3 var(--display); overflow-wrap: anywhere; }
.prompt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; font-size: 16px; max-height: 50vh; overflow-y: auto; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
button, .btn { font: 600 16px/1 var(--font); border: 0; border-radius: 999px; min-height: 46px; padding: 0 22px; cursor: pointer; background: var(--soft); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .12s, background-color .15s; }
button:active, .btn:active { transform: scale(.97); }
button.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
button.primary:hover { background: var(--accent-2); }
button.big { min-height: 52px; flex: 1 1 220px; font-size: 17px; }
button:disabled { opacity: .6; cursor: default; }
.field { display: block; margin: 0 0 16px; }
.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input { font: inherit; width: 100%; min-height: 48px; border: 0; border-radius: 14px; padding: 10px 14px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
input:focus { outline: 0; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-weight: 500; }
.done { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; font: 700 32px/1 var(--display); margin: 10px 0 18px; }
.fp { font: 600 22px/1.3 ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: 1.5px; background: var(--panel); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); margin: 0 0 16px; text-align: center; }
.key { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.key:first-of-type { border-top: 0; }
.key code { font-size: 13px; }
.key small { grid-column: 1 / -1; }
