:root {
  --bg: #fbf8f3; --surface: #ffffff; --ink: #1c1a17; --muted: #6b645b; --line: #e7e0d5;
  --accent: #c2410c; --accent-ink: #ffffff; --focus: #c2410c55;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16140f; --surface: #211e18; --ink: #f2ede4; --muted: #a59d90; --line: #353027;
    --accent: #f0743a; --accent-ink: #1a0f08; --focus: #f0743a66; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: 2px; }
.nav button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer; }
.nav button:hover:not(:disabled) { background: var(--bg); }
.nav button:disabled { opacity: .35; cursor: default; }
.address { flex: 1; min-width: 0; }
.address input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); color: var(--ink); font: inherit; }
button:focus-visible, a:focus-visible, .address input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.session { font-size: 13px; color: var(--muted); white-space: nowrap; }
.start { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.card { width: 100%; max-width: 640px; }
.card h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
.lead { color: var(--muted); margin: 0 0 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 24px; }
.tiles button { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.tiles button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.tiles button:hover { border-color: var(--accent); }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.button { display: inline-block; padding: 9px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; }
.frame-host { flex: 1; display: flex; }
.frame-host iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.credits { padding: 6px 12px; font-size: 11px; color: var(--muted); text-align: center; }
.credits a { color: inherit; }
body.browsing .credits { display: none; }
@media (max-width: 600px) {
  .session { display: none; }
  .brand { font-size: 0; gap: 0; }
  .nav button#forward { display: none; }
  .start { padding-top: 24px; }
}
