:root{--bg:#050505;--panel:#0b0b0b;--gold:#d8b56b;--gold-soft:#f2d99a;--ivory:#f7f1df;--muted:#b9ae94;--line:rgba(216,181,107,.24);--shadow:0 0 50px rgba(216,181,107,.14)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 50% 12%,#14110b 0%,#070707 32%,#020202 100%);color:var(--ivory);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{min-height:100vh}button,input{font:inherit}button{cursor:pointer}
.app-shell{min-height:100vh;width:min(100%,720px);margin:0 auto;padding:max(14px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto auto minmax(210px,1fr) auto auto;gap:12px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand-wrap{display:flex;align-items:center;gap:9px}.brand-mark{color:var(--gold-soft);font-size:26px}.brand-name{letter-spacing:.18em;font:600 14px/1.2 Georgia,serif;color:var(--gold-soft)}.brand-sub{margin-top:3px;font-size:11px;color:var(--muted);letter-spacing:.08em}
.ghost-button,.small-control,.quick-actions button{border:1px solid var(--line);color:var(--gold-soft);background:rgba(9,9,8,.9);border-radius:999px}.ghost-button{padding:10px 14px;font-size:12px}
.hero{display:grid;justify-items:center;gap:8px;transition:.25s ease}.orb-stage{position:relative;width:196px;aspect-ratio:1;display:grid;place-items:center;isolation:isolate}.orb,.orb-rings{position:absolute;border-radius:50%}.orb{width:96px;height:96px;background:radial-gradient(circle at 35% 30%,#fff1bc 0%,#e2ba68 22%,#9b6e27 48%,#221306 80%,#0a0703 100%);box-shadow:inset -12px -12px 28px rgba(0,0,0,.5),0 0 30px rgba(216,181,107,.55),0 0 80px rgba(216,181,107,.18);overflow:hidden;z-index:3;animation:breathe 4.6s ease-in-out infinite}.orb-v{position:absolute;inset:0;display:grid;place-items:center;font:600 34px/1 Georgia,serif;color:rgba(255,247,220,.86);text-shadow:0 0 18px rgba(255,239,177,.6)}.orb-shimmer{position:absolute;inset:-30%;background:linear-gradient(110deg,transparent 35%,rgba(255,248,210,.5) 48%,transparent 60%);transform:translateX(-80%) rotate(12deg);animation:shimmer 4.8s ease-in-out infinite}.orb-rings{border:1px solid rgba(216,181,107,.33);box-shadow:0 0 18px rgba(216,181,107,.12)}.ring-inner{width:118px;height:118px;animation:spin 12s linear infinite}.ring-mid{width:150px;height:150px;border-style:dashed;animation:spinReverse 19s linear infinite}.ring-outer{width:184px;height:184px;border-color:rgba(216,181,107,.14);animation:spin 28s linear infinite}.spark-field{position:absolute;inset:0;z-index:4;pointer-events:none}.spark{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--gold-soft);box-shadow:0 0 9px 2px rgba(242,217,154,.5);opacity:0;animation:sparkle 3.2s linear infinite}
.hero-copy{text-align:center;max-width:620px}.eyebrow{margin:0;color:var(--gold);font-size:11px;letter-spacing:.26em}h1{margin:4px 0 3px;font:500 clamp(24px,5vw,36px)/1.08 Georgia,serif;color:var(--gold-soft)}.concierge-line{margin:0;color:var(--muted);font:italic 14px/1.4 Georgia,serif}
.conversation-panel{min-height:0;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,rgba(16,15,12,.9),rgba(6,6,6,.97));box-shadow:var(--shadow);overflow:hidden}.messages{height:100%;max-height:48vh;min-height:210px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}.message{max-width:88%;border-radius:17px;padding:10px 12px;font-size:15px;line-height:1.46}.message.assistant{align-self:flex-start;background:rgba(216,181,107,.08);border:1px solid rgba(216,181,107,.18)}.message.user{align-self:flex-end;background:#1a1710;border:1px solid rgba(242,217,154,.22)}.message .meta{display:block;margin-bottom:5px;color:var(--gold);font-size:9px;letter-spacing:.12em;text-transform:uppercase}
.product-card{margin-top:10px;border:1px solid rgba(216,181,107,.35);border-radius:18px;padding:13px;background:linear-gradient(145deg,rgba(27,22,13,.96),rgba(9,9,8,.98))}.product-card h3{margin:0 0 5px;color:var(--gold-soft);font:500 19px/1.2 Georgia,serif}.product-card .price{font-weight:700}.product-card .facts,.product-card .reason{color:var(--muted);font-size:13px;line-height:1.4}.match-list{display:grid;gap:4px;margin-top:8px;font-size:12px}.match.good{color:#e9d7a5}.match.warn{color:#e5bd78}.card-actions,.choice-actions{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}.primary-button,.card-actions button,.choice-actions button,.send-button{border:0;border-radius:999px;background:linear-gradient(135deg,#f0d78f,#b98a3e);color:#171006;font-weight:700;padding:10px 14px}.choice-actions button.secondary{background:#15120c;color:var(--gold-soft);border:1px solid var(--line)}
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.quick-actions button{min-height:44px;padding:8px 10px;font-size:12px}.app-shell.active .quick-actions{display:none}.app-shell.menu-open .quick-actions{display:grid}
.composer-wrap{display:grid;gap:8px;padding-bottom:env(safe-area-inset-bottom)}.composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.composer input{min-width:0;width:100%;border:1px solid var(--line);border-radius:999px;background:#0b0b09;color:var(--ivory);outline:none;padding:13px 15px}.composer input:focus{border-color:rgba(242,217,154,.55);box-shadow:0 0 0 3px rgba(216,181,107,.07)}.send-button{height:46px;min-width:76px}.control-row{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.small-control{padding:8px 11px;font-size:11px}.prototype-note{margin:0;text-align:center;color:#706851;font-size:9px;letter-spacing:.04em}.notice{border:1px solid var(--line);border-radius:12px;background:#100e09;color:var(--muted);font-size:12px;padding:8px 10px;text-align:center}.hidden{display:none!important}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(10px);z-index:20;display:grid;place-items:center;padding:18px}.modal-card{width:min(100%,430px);border:1px solid var(--line);border-radius:22px;background:#0c0b08;padding:22px}.modal-card h2{margin:7px 0 8px;font:500 26px/1.15 Georgia,serif;color:var(--gold-soft)}.modal-card p{color:var(--muted);line-height:1.5}.modal-actions{display:flex;gap:10px;flex-wrap:wrap}
.app-shell.active .hero{grid-template-columns:92px 1fr;align-items:center;justify-items:start}.app-shell.active .orb-stage{width:86px}.app-shell.active .orb{width:48px;height:48px}.app-shell.active .ring-inner{width:58px;height:58px}.app-shell.active .ring-mid{width:70px;height:70px}.app-shell.active .ring-outer{width:84px;height:84px}.app-shell.active .orb-v{font-size:19px}.app-shell.active .hero-copy{text-align:left}.app-shell.active h1{font-size:clamp(20px,4.4vw,28px)}
.app-shell[data-state="listening"] .orb{box-shadow:0 0 42px rgba(242,217,154,.72),0 0 95px rgba(216,181,107,.28)}.app-shell[data-state="thinking"] .ring-inner{animation-duration:3s}.app-shell[data-state="thinking"] .ring-mid{animation-duration:5s}.app-shell[data-state="speaking"] .orb{animation:speakPulse 1.2s ease-in-out infinite}.app-shell[data-state="recommendation"] .orb{box-shadow:0 0 52px rgba(242,217,154,.82),0 0 110px rgba(216,181,107,.38)}.app-shell[data-state="handoff"] .orb{filter:saturate(.65) brightness(.9)}
@keyframes breathe{0%,100%{transform:scale(.98)}50%{transform:scale(1.03)}}@keyframes speakPulse{0%,100%{transform:scale(.98)}50%{transform:scale(1.08)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes spinReverse{to{transform:rotate(-360deg)}}@keyframes shimmer{0%,58%{transform:translateX(-90%) rotate(12deg);opacity:0}68%{opacity:.65}82%{transform:translateX(95%) rotate(12deg);opacity:0}100%{opacity:0}}@keyframes sparkle{0%{transform:translateY(8px) scale(.4);opacity:0}18%{opacity:.9}70%{opacity:.35}100%{transform:translateY(-26px) scale(1.15);opacity:0}}
@media(max-width:560px){.app-shell{padding-left:10px;padding-right:10px;gap:9px}.topbar{align-items:flex-start}.brand-name{font-size:12px;letter-spacing:.14em}.ghost-button{padding:8px 10px;font-size:10px}.orb-stage{width:164px}.orb{width:80px;height:80px}.ring-inner{width:98px;height:98px}.ring-mid{width:126px;height:126px}.ring-outer{width:156px;height:156px}.quick-actions{grid-template-columns:repeat(2,1fr)}.messages{max-height:44vh;min-height:210px;padding:11px}.message{max-width:94%;font-size:14px}.composer input{font-size:16px;padding:12px 13px}.send-button{height:44px;min-width:70px;padding:0 14px}.small-control{font-size:10px;padding:8px 10px}.app-shell.active .hero{grid-template-columns:82px 1fr}.app-shell.active .orb-stage{width:76px}.app-shell.active .ring-outer{width:74px;height:74px}.app-shell.active .ring-mid{width:62px;height:62px}.app-shell.active .ring-inner{width:52px;height:52px}.app-shell.active .orb{width:43px;height:43px}}
@media(min-height:1000px) and (min-width:500px){.messages{max-height:54vh;min-height:320px}.quick-actions button{min-height:52px;font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
