/* Gate — super simple, Apple-style. System font, grouped inset cards, one accent, semantic verdict colors. */
:root {
  --bg: #f2f2f7; --card: #ffffff; --fill: #e5e5ea; --sep: rgba(60,60,67,.18);
  --label: #000; --label-2: rgba(60,60,67,.6); --label-3: rgba(60,60,67,.3);
  --tint: #007aff; --yellow: #ffcc00;
  --wait: #8e8e93; --book: #34c759; --switch: #ff9500; --act: #ff3b30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --card: #1c1c1e; --fill: #2c2c2e; --sep: rgba(84,84,88,.6); --label: #fff; --label-2: rgba(235,235,245,.6); --label-3: rgba(235,235,245,.3); --tint: #0a84ff; --wait: #98989d; --book: #30d158; --switch: #ff9f0a; --act: #ff453a; color-scheme: dark; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 17px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.app { max-width: 600px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 84px); }
.top { display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 0 8px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.flap { display: none; }
.brand-name { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
/* bottom tab bar */
.nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 0 calc(env(safe-area-inset-bottom) + 6px); background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--sep); font-size: 11px; font-weight: 500; color: var(--label-2); z-index: 5; }
.nav a { display: grid; justify-items: center; gap: 3px; min-width: 72px; padding: 2px 8px; }
.nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a[data-nav="new"] svg { stroke-width: 2.2; }
.nav a.active { color: var(--tint); }
.view { display: grid; gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.card.link:active { opacity: .7; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.row > * { min-width: 0; overflow-wrap: anywhere; }
.row > .mono, .row > .small.muted.mono { flex: 0 0 auto; }
.muted { color: var(--label-2); } .faint { color: var(--label-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: 15px; } .tiny { font-size: 13px; }
.title { font-size: 17px; font-weight: 600; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 400; color: var(--label-2); margin-left: 6px; letter-spacing: 0; }
.verdict { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 2px 0 4px; }
.verdict.wait { color: var(--wait); } .verdict.book { color: var(--book); } .verdict.switch { color: var(--switch); } .verdict.act_now { color: var(--act); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.badge.wait { color: var(--wait); } .badge.book { color: var(--book); } .badge.switch { color: var(--switch); } .badge.act_now { color: var(--act); }
.marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mark { background: var(--fill); border-radius: 10px; padding: 8px 10px; }
.mark b { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mark span { font-size: 11px; color: var(--label-2); letter-spacing: .04em; text-transform: uppercase; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { background: var(--fill); border-radius: 12px; padding: 12px 16px; font-size: 17px; font-weight: 600; color: var(--tint); flex: 1; text-align: center; }
.btn.primary { background: var(--tint); color: #fff; }
.btn.ghost { background: transparent; flex: 0 0 auto; }
.btn.bad { color: var(--act); }
.btn:disabled { opacity: .5; }
.spark { width: 100%; height: 72px; display: block; color: var(--label-2); }
.chat { display: grid; gap: 8px; }
.bubble { padding: 10px 14px; border-radius: 18px; max-width: 85%; line-height: 1.35; }
.bubble.me { background: var(--tint); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.bubble.gate { background: var(--card); border-bottom-left-radius: 6px; }
.inputbar { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(env(safe-area-inset-bottom) + 76px); }
.inputbar .btn { flex: 0 0 auto; }
textarea, input, select { width: 100%; background: var(--card); color: var(--label); border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 17px; }
textarea { min-height: 48px; resize: none; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--label-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--sep); }
.opt:first-child { border-top: 0; padding-top: 0; }
.opt .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.opt .k.best { color: var(--book); } .opt .k.cheap { color: var(--tint); } .opt .k.wouldnt { color: var(--act); }
.opt .btn { flex: 0 0 auto; padding: 8px 14px; font-size: 15px; }
.notes { display: grid; gap: 4px; font-size: 15px; color: var(--label-2); margin: 0; padding: 0; }
.notes li { list-style: none; }
.lane { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--sep); font-size: 15px; }
.lane:first-of-type { border-top: 0; }
details summary { cursor: pointer; color: var(--tint); font-weight: 500; font-size: 15px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%); background: var(--label); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; z-index: 10; max-width: 90vw; }
.empty { text-align: center; padding: 32px 12px; color: var(--label-2); display: grid; gap: 10px; justify-items: center; }
.empty .flap { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); color: #1c1c1e; font-size: 34px; font-weight: 800; }
.stand { font-size: 13px; color: var(--label-3); }
.hint { font-size: 15px; color: var(--label-2); background: var(--card); border-radius: var(--radius); padding: 12px 16px; }
.ok { color: var(--book); } .warn { color: var(--switch); } .bad { color: var(--act); }
.section { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--label-2); margin: 4px 16px -6px; }
