:root{
  --ink:#0B1030; --cobalt:#2340FF; --coral:#FF6A3D; --sky:#BFD0FF; --mint:#BFF0E0; --canvas:#F2F4FA; --white:#fff;
  --line:rgba(11,16,48,.10); --mute:rgba(11,16,48,.58);
  --sans:'Geist',system-ui,sans-serif; --mono:'Geist Mono',ui-monospace,monospace;
  --shadow:0 1px 2px rgba(11,16,48,.06),0 8px 24px rgba(11,16,48,.07);
}
*{box-sizing:border-box;margin:0}
html,body{height:100%}
body{font-family:var(--sans);color:var(--white);background:var(--ink);-webkit-font-smoothing:antialiased;letter-spacing:-.005em}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
input{font:inherit}
.mono{font-family:var(--mono);font-weight:500}

.stage{min-height:100vh;display:grid;grid-template-columns:1fr 402px 1fr;gap:56px;align-items:center;padding:32px 56px;
  background:radial-gradient(900px 600px at 50% 0%,rgba(35,64,255,.38),transparent 70%),radial-gradient(500px 400px at 100% 100%,rgba(255,106,61,.16),transparent 70%),var(--ink)}
.side{max-width:360px}
.side.left{justify-self:end}
.side h1{font-weight:600;font-size:46px;line-height:1.02;letter-spacing:-.035em;margin-bottom:18px}
.side h2{font-weight:600;font-size:22px;letter-spacing:-.02em;margin-bottom:6px}
.lede{font-size:16px;line-height:1.5;color:rgba(255,255,255,.7);margin-bottom:30px}
.small{font-size:13.5px;color:rgba(255,255,255,.6);line-height:1.45;margin-bottom:16px}
.label{font-family:var(--mono);font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.5);margin-bottom:10px}
.switch{display:flex;gap:8px;flex-wrap:wrap}
.pill{display:flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;border-radius:99px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);font-weight:500;font-size:14px;transition:background .15s}
.pill:hover{background:rgba(255,255,255,.12)}
.pill.on{background:var(--white);color:var(--ink);border-color:var(--white)}
.pill .st{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3)}
.pill .st.todo{background:var(--coral)}.pill .st.done{background:#5BE3B0}
.hint{margin-top:22px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.88)}
.link{margin-top:18px;font-size:13.5px;color:rgba(255,255,255,.6);text-decoration:underline;text-underline-offset:3px}
.link:hover{color:#fff}

.av{--c:var(--cobalt);--t:#fff;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--c);color:var(--t);font-weight:600;font-size:12.5px;flex:none;position:relative}
.av.maya{--c:#2340FF}.av.aisha{--c:#FF6A3D}.av.ben{--c:#BFF0E0;--t:#0B1030}.av.chen{--c:#BFD0FF;--t:#0B1030}
.pill .av{width:26px;height:26px;font-size:11.5px}
.pill.on .av{box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(11,16,48,.2)}

.phone-wrap{display:flex;justify-content:center}
.phone{width:394px;height:820px;border-radius:56px;padding:9px;background:linear-gradient(160deg,#2b3158,#0a0e26);box-shadow:0 0 0 1px rgba(255,255,255,.14),0 40px 80px rgba(0,0,0,.5)}
.app{height:100%;border-radius:47px;background:var(--canvas);color:var(--ink);overflow:hidden;display:flex;flex-direction:column;position:relative}
.status{display:flex;justify-content:space-between;align-items:center;padding:16px 28px 6px;font-weight:600;font-size:14px;flex:none}
.status .mono{font-size:11px}
.island{width:96px;height:26px;border-radius:20px;background:var(--ink);display:block}
.view{flex:1;min-height:0;display:flex;flex-direction:column}
.view[hidden]{display:none}
.view.other{overflow-y:auto;padding:6px 18px 18px}
.view.other::-webkit-scrollbar,.thread::-webkit-scrollbar{display:none}

.appbar{padding:6px 16px 10px;flex:none}
.appbar-top{display:flex;align-items:center;gap:10px}
.icon{width:36px;height:36px;border-radius:50%;background:var(--white);display:grid;place-items:center;box-shadow:var(--shadow)}
.trip-title{flex:1;display:flex;flex-direction:column;line-height:1.15}
.trip-title b{font-weight:600;font-size:19px;letter-spacing:-.02em}
.trip-title span{font-size:12px;color:var(--mute);font-weight:500}
.stack{display:flex;padding:2px}
.stack .av{width:28px;height:28px;font-size:11px;margin-left:-8px;box-shadow:0 0 0 2px var(--canvas)}
.stack .av:first-child{margin-left:0}
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}
.steps li{font-family:var(--mono);font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--mute);padding-top:7px;position:relative}
.steps li:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;border-radius:3px;background:var(--line)}
.steps li.on{color:var(--ink)}.steps li.on:before{background:var(--cobalt)}
.steps li.done:before{background:var(--ink)}

.thread{position:relative;flex:1;overflow-y:auto;padding:8px 14px 14px;display:flex;flex-direction:column;gap:8px}
.thread>*{flex:none}
.row{display:flex;gap:8px;align-items:flex-end;animation:rise .25s ease-out both}
.ai-mark{width:26px;height:26px;border-radius:50%;background:var(--cobalt);display:grid;place-items:center;flex:none;color:#fff}
.msg{max-width:82%;padding:11px 14px;border-radius:20px;font-size:15px;line-height:1.38}
.msg.ai{background:var(--white);box-shadow:var(--shadow);border-bottom-left-radius:6px}
.msg.me{background:var(--cobalt);color:#fff;border-bottom-right-radius:6px;align-self:flex-end;margin-left:auto;font-weight:500}
.msg.sys{align-self:center;font-family:var(--mono);font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--mute);padding:4px 8px;max-width:92%;text-align:center}
.typing{display:flex;gap:4px;padding:15px 16px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--ink);opacity:.3;animation:blink 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{50%{opacity:.9}}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.chips{padding:6px 14px 8px;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;flex:none}
.chips:empty{display:none}
.chip{padding:8px 14px;border-radius:99px;background:var(--white);border:1px solid var(--line);font-weight:500;font-size:13.5px;box-shadow:0 1px 2px rgba(11,16,48,.05);transition:transform .1s,background .15s}
.chip:hover{border-color:rgba(11,16,48,.3)}
.chip:active{transform:scale(.97)}
.chip.primary{background:var(--cobalt);color:#fff;border-color:var(--cobalt)}
.chip.quiet{background:transparent;box-shadow:none;color:var(--mute)}
.composer{display:flex;gap:8px;padding:6px 14px 10px;flex:none}
.composer input{flex:1;height:42px;border-radius:99px;border:1px solid var(--line);background:var(--white);padding:0 16px;font-size:15px;color:var(--ink);outline:none}
.composer input:focus{border-color:var(--cobalt)}
.send{width:42px;height:42px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;flex:none}

.tabbar{display:flex;justify-content:space-around;padding:8px 6px 22px;background:rgba(255,255,255,.9);border-top:1px solid var(--line);flex:none}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;font-weight:500;color:var(--mute);padding:4px 14px}
.tabbar svg{width:22px;height:22px}
.tabbar .on{color:var(--cobalt)}

/* cards */
.card{background:var(--white);border-radius:24px;overflow:hidden;box-shadow:var(--shadow);animation:rise .3s ease-out both;margin:2px 0 6px}
.hero{position:relative;height:210px;background:var(--ink) center/cover}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(11,16,48,.82),rgba(11,16,48,0) 62%)}
.hero .cap{position:absolute;left:16px;right:16px;bottom:14px;z-index:1;color:#fff;display:flex;justify-content:space-between;align-items:flex-end}
.hero h3{font-weight:600;font-size:26px;letter-spacing:-.03em;line-height:1}
.hero .when{font-size:12.5px;opacity:.8;margin-top:5px}
.hero .price{font-family:var(--mono);font-weight:500;font-size:13px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:6px 12px;white-space:nowrap}
.body{padding:14px 16px 6px}
.fit{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}
.fit div{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:500}
.fit i{width:8px;height:8px;border-radius:50%;background:#2BC48A;flex:none}
.fit i.bad{background:var(--coral)}
.fit span{margin-left:auto;font-family:var(--mono);font-size:12px;color:var(--mute)}
.tradeoff{font-size:14px;line-height:1.45;color:rgba(11,16,48,.8);padding:12px 14px;background:var(--canvas);border-radius:14px;margin-bottom:12px}
.tradeoff b{font-weight:600;color:var(--ink)}
.why{width:100%;text-align:left;font-size:13.5px;font-weight:500;color:var(--cobalt);padding:2px 0 10px}
.whybox{font-size:13.5px;line-height:1.5;color:rgba(11,16,48,.75);padding:0 0 12px}
.slots{display:flex;gap:8px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}
.slot{width:34px;height:34px;border-radius:50%;border:1.5px dashed rgba(11,16,48,.25);display:grid;place-items:center;position:relative}
.slot .av{width:100%;height:100%}
.slot.maybe .av{opacity:.55}.slot.out .av{opacity:.25}
.slot .tag{position:absolute;right:-3px;bottom:-3px;width:15px;height:15px;border-radius:50%;background:#2BC48A;border:2px solid #fff;color:#fff;font-size:8px;display:grid;place-items:center;font-weight:700}
.slot.maybe .tag{background:#E9A400}.slot.out .tag{background:var(--coral)}
.slot.has{border:0}
.count{margin-left:auto;font-family:var(--mono);font-size:12px;color:var(--mute)}

.day{display:flex;gap:14px;padding:13px 16px;border-top:1px solid var(--line)}
.day .n{flex:none;font-family:var(--mono);font-size:12px;color:var(--mute);padding-top:2px;width:34px}
.day b{display:block;font-weight:600;font-size:15px;letter-spacing:-.01em;margin-bottom:2px}
.day span{font-size:13.5px;line-height:1.4;color:rgba(11,16,48,.7)}
.day em{display:inline-block;margin-top:6px;font-style:normal;font-size:12px;font-weight:500;color:var(--cobalt);background:rgba(35,64,255,.08);border-radius:99px;padding:3px 10px}
.notes{padding:14px 16px;background:var(--canvas);font-size:13.5px;line-height:1.5;color:rgba(11,16,48,.8)}
.notes p+p{margin-top:6px}.notes b{color:var(--ink);font-weight:600}
.cost{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;background:var(--ink);color:#fff}
.cost span{font-size:13px;opacity:.7}
.cost b{font-family:var(--mono);font-weight:500;font-size:24px;letter-spacing:-.02em}
.actions{display:flex;gap:8px;padding:12px 16px;flex-wrap:wrap;border-top:1px solid var(--line)}
.btn{padding:9px 15px;border-radius:99px;border:1px solid var(--line);font-size:13.5px;font-weight:500;background:#fff}
.btn:hover{border-color:rgba(11,16,48,.3)}
.btn.primary{background:var(--cobalt);border-color:var(--cobalt);color:#fff}
.btn:disabled{opacity:.5;cursor:default}
.locked{padding:11px 16px;background:rgba(43,196,138,.12);color:#0b6b48;font-size:13.5px;font-weight:500}

/* other views */
.h1{font-weight:600;font-size:30px;letter-spacing:-.035em;margin:10px 0 14px}
.tripcard{display:block;width:100%;text-align:left;background:var(--white);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.tripcard .hero{height:150px}
.tripcard .t{padding:14px 16px 16px;display:flex;align-items:center;gap:10px}
.tripcard .t b{display:block;font-weight:600;font-size:17px}.tripcard .t small{color:var(--mute);font-size:13px}
.tripcard .t .stack{margin-left:auto}
.dest{position:relative;display:block;width:100%;height:190px;border-radius:22px;overflow:hidden;margin-bottom:12px;text-align:left;background:var(--ink) center/cover;box-shadow:var(--shadow)}
.dest:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(11,16,48,.8),transparent 60%)}
.dest .cap{position:absolute;z-index:1;left:16px;right:16px;bottom:14px;color:#fff;display:flex;justify-content:space-between;align-items:flex-end}
.dest b{font-weight:600;font-size:22px;letter-spacing:-.03em}.dest span{font-family:var(--mono);font-size:12px;opacity:.85}
.panel{background:var(--white);border-radius:20px;padding:16px;box-shadow:var(--shadow);margin-bottom:12px;font-size:14.5px;line-height:1.5}
.panel .kv{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line)}
.panel .kv:first-of-type{border-top:0}.panel .kv span{color:var(--mute)}
.empty{color:var(--mute);font-size:14.5px;line-height:1.5;padding:8px 2px}

.sheet{position:absolute;inset:0;z-index:20;background:rgba(11,16,48,.5);display:flex;align-items:flex-end;animation:fade .2s}
.sheet[hidden]{display:none}
.sheet .sh{width:100%;max-height:86%;overflow-y:auto;background:var(--canvas);border-radius:28px 28px 0 0;padding:10px 16px 28px;animation:up .25s ease-out}
.sheet .grab{width:38px;height:4px;border-radius:4px;background:var(--line);margin:0 auto 12px}
.sheet h4{font-weight:600;font-size:20px;letter-spacing:-.02em;margin-bottom:10px}
.sheet .prow{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line);font-weight:500}
.sheet .prow:first-of-type{border-top:0}
.sheet .prow small{display:block;color:var(--mute);font-weight:400;font-size:12.5px}
.sheet .prow .btn{margin-left:auto}
.sheet .close{margin-top:12px;width:100%;padding:12px;border-radius:14px;background:var(--white);font-weight:500;box-shadow:var(--shadow)}
@keyframes fade{from{opacity:0}}@keyframes up{from{transform:translateY(40px)}}
.toast{position:absolute;left:50%;bottom:92px;transform:translate(-50%,16px);background:var(--ink);color:#fff;font-size:13.5px;font-weight:500;padding:10px 16px;border-radius:99px;opacity:0;pointer-events:none;transition:.25s;z-index:30;white-space:nowrap}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* right panel */
.brain{display:flex;flex-direction:column;gap:10px}
.bcard{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:14px 16px;font-size:13.5px;color:rgba(255,255,255,.9)}
.bcard h4{font-family:var(--mono);font-weight:500;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.5);margin-bottom:10px}
.brow{display:flex;align-items:center;gap:9px;padding:4px 0;font-weight:500}
.brow .av{width:22px;height:22px;font-size:10px}
.brow .v{margin-left:auto;font-family:var(--mono);font-size:12px;color:rgba(255,255,255,.75)}
.brow .v.wait{color:rgba(255,255,255,.35)}
.bar{display:flex;height:8px;border-radius:8px;overflow:hidden;gap:2px;margin:4px 0 8px}
.bar i{display:block;border-radius:8px}
.cap2{font-size:12px;color:rgba(255,255,255,.5)}
.shared{background:rgba(91,227,176,.1);border-color:rgba(91,227,176,.3)}
.shared p{line-height:1.4}.shared p+p{margin-top:5px}
.log{max-height:150px;overflow:auto;line-height:1.35}
.log p{padding:5px 0;border-top:1px solid rgba(255,255,255,.08)}.log p:first-child{border-top:0}

@media (max-width:1180px){
  .stage{grid-template-columns:1fr;justify-items:center;padding:24px 16px;gap:28px}
  .side,.side.left{max-width:420px;justify-self:center}
  .phone-wrap{order:-1}.side.left{order:0}
}
@media (max-width:520px){
  .stage{padding:0;gap:0}
  .phone{width:100vw;height:100dvh;border-radius:0;padding:0;box-shadow:none;background:none}
  .app{border-radius:0}
  .status{display:none}
  .appbar{padding-top:16px}
  .side{padding:28px 20px 40px;max-width:none;width:100%}
  .side.left{order:1}.side.right{order:2}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
