:root {
  --ink: #171815;
  --muted: #6c6f66;
  --paper: #f4f1ea;
  --panel: rgba(255,255,255,.64);
  --line: rgba(23,24,21,.11);
  --acid: #d7ff42;
  --acid-ink: #243100;
  --deep: #20231d;
  --soft: #e9e5da;
  --blue: #d9e7ff;
  --radius-xl: 34px;
  --shadow: 0 26px 70px rgba(31, 34, 28, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 17% 7%, rgba(215,255,66,.28), transparent 29rem),
    radial-gradient(circle at 93% 92%, rgba(190,211,255,.33), transparent 34rem),
    var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}
button, textarea { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); z-index: 20; }

.app-shell { min-height: 100vh; padding: 24px; display: flex; flex-direction: column; }
.topbar { height: 54px; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 13px; letter-spacing: .18em; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; letter-spacing: 0; }
.status-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #65a30d; box-shadow: 0 0 0 4px rgba(101,163,13,.09); }

.workspace { flex: 1; width: 100%; max-width: 1440px; margin: 12px auto 0; display: grid; grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr); gap: 18px; min-height: calc(100vh - 114px); }
.conversation-pane, .decision-pane { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(24px); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.conversation-pane { padding: clamp(24px, 4vw, 58px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.conversation-pane:before { content:""; position:absolute; width: 220px; height:220px; border-radius:50%; background:var(--acid); filter: blur(85px); opacity:.12; left:-90px; top:28%; }
.hero { margin: auto 0 34px; max-width: 670px; transition: .5s ease; position: relative; z-index: 1; }
.eyebrow, .tiny-label { font-size: 11px; letter-spacing: .19em; font-weight: 800; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7.5vw, 112px); line-height: .88; letter-spacing: -.055em; margin: 0 0 26px; font-weight: 400; }
.hero-copy { max-width: 570px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; margin: 0; }
.app-shell.engaged .hero { margin: 0 0 26px; }
.app-shell.engaged .hero h1 { font-size: 36px; letter-spacing: -.035em; margin: 0; }
.app-shell.engaged .hero .eyebrow, .app-shell.engaged .hero-copy { display: none; }

.conversation { display: none; flex: 1; flex-direction: column; gap: 16px; overflow-y: auto; padding: 4px 4px 24px 0; scroll-behavior: smooth; position: relative; z-index: 1; }
.app-shell.engaged .conversation { display: flex; }
.message { max-width: 86%; padding: 16px 18px; border-radius: 23px; line-height: 1.5; font-size: 15px; animation: rise .28s ease both; white-space: pre-wrap; }
.message.user { align-self: flex-end; background: var(--deep); color: #fff; border-bottom-right-radius: 7px; }
.message.agent { align-self: flex-start; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-bottom-left-radius: 7px; }
.message.thinking { color: var(--muted); display:flex; gap:5px; width:70px; align-items:center; }
.message.thinking i { width:6px; height:6px; background:currentColor; border-radius:50%; animation:bounce 1s infinite; opacity:.6; }
.message.thinking i:nth-child(2){animation-delay:.15s}.message.thinking i:nth-child(3){animation-delay:.3s}

.composer-wrap { margin-top: auto; position: relative; z-index: 2; }
.composer { display: flex; align-items: flex-end; gap: 10px; background: rgba(255,255,255,.92); border: 1px solid rgba(23,24,21,.14); border-radius: 28px; padding: 8px; box-shadow: 0 12px 34px rgba(23,24,21,.08); transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: rgba(23,24,21,.35); box-shadow: 0 15px 38px rgba(23,24,21,.11); }
.composer textarea { border: 0; outline: 0; resize: none; background: transparent; min-height: 44px; max-height: 150px; padding: 12px 4px; flex: 1; font-size: 16px; color: var(--ink); line-height: 1.3; }
.composer textarea::placeholder { color: #a1a398; }
.mic-button, .send-button { border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; transition: transform .18s, background .18s; }
.mic-button { background: var(--soft); }
.send-button { background: var(--acid); color: var(--acid-ink); }
.mic-button svg, .send-button svg { width: 20px; height: 20px; fill: currentColor; }
.mic-button:hover, .send-button:hover { transform: scale(1.04); }
.mic-button.listening { background: #ffdfdf; animation: pulse 1.1s infinite; }
.quick-prompts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quick-prompts button { border: 1px solid var(--line); background: rgba(255,255,255,.46); border-radius: 999px; padding: 9px 12px; font-size: 12px; cursor: pointer; color: var(--muted); transition: .2s; }
.quick-prompts button:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.app-shell.engaged .quick-prompts { display: none; }
.composer-note { margin: 10px 12px 0; font-size: 11px; color: #93968b; }
.app-shell.engaged .composer-note { display:none; }

.decision-pane { padding: clamp(22px, 3vw, 42px); overflow: auto; position: relative; }
.empty-decision { height: 100%; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding: 7%; position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(155deg, rgba(255,255,255,.35), rgba(255,255,255,.05)); }
.empty-decision .orb { position: absolute; width: 320px; height: 320px; right: -60px; top: -50px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, white, var(--acid) 38%, #bcd62f 72%, #7f8e22); box-shadow: inset -20px -25px 60px rgba(0,0,0,.12), 0 50px 100px rgba(112,127,35,.17); }
.empty-decision h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 58px); line-height: .98; font-weight: 400; letter-spacing: -.04em; margin: 0 0 22px; position: relative; }
.empty-decision > p:last-child { color: var(--muted); line-height: 1.55; max-width: 480px; position: relative; }

.decision-content { animation: fade .35s ease both; }
.decision-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:22px; }
.decision-head h2 { margin:4px 0 0; font-family:Georgia,"Times New Roman",serif; font-size:36px; font-weight:400; letter-spacing:-.035em; }
.confidence { border:1px solid var(--line); border-radius:999px; padding:8px 11px; font-size:11px; color:var(--muted); white-space:nowrap; }
.intent-strip { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:20px; }
.intent-pill { background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:999px; padding:8px 10px; font-size:11px; }

.winner { background:var(--deep); color:#fff; border-radius:28px; padding:26px; position:relative; overflow:hidden; }
.winner:after { content:""; position:absolute; width:220px; height:220px; border-radius:50%; background:var(--acid); right:-90px; top:-95px; opacity:.85; }
.winner-top { display:flex; justify-content:space-between; gap:14px; position:relative; z-index:1; }
.badge { color:var(--acid); font-size:10px; font-weight:800; letter-spacing:.17em; }
.score { width:54px; height:54px; border:1px solid rgba(255,255,255,.24); border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:16px; }
.winner h3 { font-family:Georgia,"Times New Roman",serif; font-size:40px; line-height:.95; font-weight:400; margin:24px 0 8px; letter-spacing:-.035em; position:relative; z-index:1; }
.winner .vibe { color:rgba(255,255,255,.68); font-size:13px; line-height:1.45; max-width:77%; position:relative; z-index:1; }
.price-line { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-top:28px; position:relative; z-index:1; }
.total-price { font-size:31px; font-weight:700; letter-spacing:-.03em; }
.price-line small { display:block; color:rgba(255,255,255,.6); font-size:10px; margin-top:4px; font-weight:400; }
.hotel-name { font-size:12px; text-align:right; max-width:210px; line-height:1.35; }

.metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:12px 0; }
.metric { background:rgba(255,255,255,.66); border:1px solid var(--line); border-radius:20px; padding:15px; min-height:94px; }
.metric .icon { font-size:18px; }
.metric strong { display:block; margin-top:13px; font-size:14px; }
.metric span { display:block; margin-top:4px; color:var(--muted); font-size:10px; line-height:1.35; }

.section-card { border:1px solid var(--line); background:rgba(255,255,255,.52); border-radius:24px; padding:20px; margin-top:12px; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.section-title h4 { margin:0; font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.section-title span { color:var(--muted); font-size:10px; }
.reason-list { margin:0; padding:0; list-style:none; display:grid; gap:11px; }
.reason-list li { display:grid; grid-template-columns:18px 1fr; gap:9px; font-size:12px; line-height:1.45; color:#4e5149; }
.reason-list li:before { content:"✓"; width:18px; height:18px; border-radius:50%; display:grid; place-items:center; background:var(--acid); color:var(--acid-ink); font-size:10px; font-weight:800; }

.alt-list { display:grid; gap:8px; }
.alt { display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center; padding:13px 0; border-top:1px solid var(--line); }
.alt:first-child { border-top:0; padding-top:0; }
.alt strong { font-size:13px; }
.alt p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.alt-score { font-weight:800; font-size:13px; }

.budget-row { display:grid; grid-template-columns:1fr auto; padding:8px 0; border-top:1px solid var(--line); font-size:12px; }
.budget-row:first-of-type { border-top:0; }
.budget-row span { color:var(--muted); }
.budget-row.total { font-weight:800; font-size:14px; margin-top:4px; }
.budget-row.total span { color:var(--ink); }

.live-note { margin-top:12px; padding:12px 14px; border-radius:16px; background:var(--blue); font-size:10px; line-height:1.45; color:#475269; }

@keyframes rise { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@keyframes fade { from{opacity:0} to{opacity:1} }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-4px)} }
@keyframes pulse { 50%{box-shadow:0 0 0 8px rgba(255,110,110,.12)} }

@media (max-width: 980px) {
  .app-shell { padding: 12px; }
  .workspace { grid-template-columns: 1fr; min-height: auto; }
  .conversation-pane { min-height: calc(100vh - 88px); }
  .decision-pane { display:none; }
  .app-shell.engaged .decision-pane { display:block; }
  .metric-grid { grid-template-columns:1fr; }
  .empty-decision { min-height:520px; }
}

@media (max-width: 560px) {
  .topbar { height:48px; }
  .conversation-pane, .decision-pane { border-radius:26px; padding:20px; }
  .hero h1 { font-size:58px; }
  .hero-copy { font-size:15px; }
  .quick-prompts { flex-direction:column; align-items:flex-start; }
  .quick-prompts button { text-align:left; }
  .message { max-width:92%; }
  .winner h3 { font-size:34px; }
}
