:root{
  --ivory:#F7F3ED; --paper:#FFFFFF; --ink:#1E1A17; --ink-2:#3A332D; --muted:#7A7066; --line:#ECE4D8; --line-2:#E2D8CA;
  --gold:#A27B45; --gold-2:#8A6635; --gold-soft:#F4EBDD; --espresso:#29211C;
  --michelle:#2F7A66; --michelle-soft:#E2F0EB; --bea:#B0506A; --bea-soft:#F8E5EA;
  --danger:#C0392B; --danger-soft:#FBE9E6; --ok:#2F7A66; --warn:#B7791F; --warn-soft:#FDF3E1;
  --serif:"Cormorant Garamond",Georgia,serif; --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --r:18px; --shadow:0 1px 2px rgba(41,33,28,.06),0 8px 24px rgba(41,33,28,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:var(--sans);color:var(--ink);background:radial-gradient(1200px 700px at 50% -10%,#FFFDF9 0%,#EFE7DC 60%,#E6DCCE 100%);-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.45}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,textarea,select{font:inherit;color:inherit}
img{display:block;max-width:100%}

/* ---------- stage layout ---------- */
.stage{min-height:100vh;display:grid;grid-template-columns:minmax(260px,320px) auto minmax(300px,360px);gap:36px;justify-content:center;align-items:start;padding:28px 24px}
.panel{position:sticky;top:28px;max-height:calc(100vh - 56px);overflow:auto;background:rgba(255,255,255,.72);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.9);border-radius:22px;box-shadow:var(--shadow);padding:20px}
.panel::-webkit-scrollbar{width:0}
.brandline{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.mono{width:34px;height:34px;border-radius:10px;background:var(--espresso);color:#E9D6B3;display:grid;place-items:center;font-family:var(--serif);font-weight:600;font-size:17px;letter-spacing:.5px;flex:none}
.panel h1{font-family:var(--serif);font-weight:600;font-size:24px;line-height:1.1}
.panel .sub{color:var(--muted);font-size:13px;margin:6px 0 16px}
.ptitle{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:18px 0 8px}
.seg{display:grid;grid-template-columns:repeat(3,1fr);background:var(--gold-soft);border-radius:12px;padding:3px;gap:3px}
.seg button{padding:8px 4px;border-radius:9px;font-size:13px;font-weight:500;color:var(--ink-2)}
.seg button.on{background:var(--paper);box-shadow:0 1px 3px rgba(0,0,0,.08);color:var(--ink);font-weight:600}
.pushbtn{width:100%;text-align:left;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--paper);margin-bottom:8px;transition:transform .12s,border-color .12s}
.pushbtn:hover{border-color:var(--gold);transform:translateY(-1px)}
.pushbtn .ic{width:26px;height:26px;border-radius:8px;background:var(--gold-soft);display:grid;place-items:center;font-size:13px;flex:none}
.pushbtn b{display:block;font-size:13px;font-weight:600}
.pushbtn span{display:block;font-size:12px;color:var(--muted);line-height:1.35}
.pushbtn .tag{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--gold-2);font-weight:600}
.playall{width:100%;padding:11px;border-radius:12px;background:var(--espresso);color:#F3E6CF;font-weight:600;font-size:13px;margin-bottom:10px}
.note{font-size:12px;color:var(--muted);line-height:1.5}

/* ---------- console ---------- */
.ctabs{display:flex;gap:6px;margin:4px 0 12px}
.ctab{flex:1;padding:8px;border-radius:10px;font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:center;gap:6px}
.ctab.on.m{background:var(--michelle);color:#fff;border-color:var(--michelle)}
.ctab.on.b{background:var(--bea);color:#fff;border-color:var(--bea)}
.count{min-width:18px;height:18px;border-radius:9px;background:rgba(0,0,0,.12);font-size:11px;display:inline-grid;place-items:center;padding:0 5px}
.qcard{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:10px}
.qcard.new{animation:pop .35s ease}
.qcard.new{box-shadow:0 0 0 2px var(--gold-soft),var(--shadow)}
.qhead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.qhead b{font-size:13px}
.qhead time{font-size:11px;color:var(--muted)}
.qcard p{font-size:12.5px;color:var(--ink-2);line-height:1.45}
.qcard .ai{margin-top:8px;font-size:11.5px;background:var(--ivory);border-radius:10px;padding:8px 10px;color:var(--ink-2)}
.qcard .ai i{font-style:normal;font-weight:600;color:var(--gold-2)}
.qcard img{width:56px;height:56px;object-fit:cover;border-radius:10px;float:right;margin:0 0 6px 8px}
.pill{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;padding:3px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.06em}
.pill.urgent{background:var(--danger-soft);color:var(--danger)}
.pill.soon{background:var(--warn-soft);color:var(--warn)}
.pill.routine{background:var(--ivory);color:var(--muted)}
.pill.done{background:var(--michelle-soft);color:var(--michelle)}
.stat3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.stat3 div{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:10px}
.stat3 b{font-family:var(--serif);font-size:24px;line-height:1;display:block}
.stat3 span{font-size:11px;color:var(--muted)}

/* ---------- phone ---------- */
.phone{width:auto;height:min(840px,calc(100vh - 48px));aspect-ratio:400/840;border-radius:58px;background:#111;padding:12px;box-shadow:0 40px 80px -20px rgba(41,33,28,.45),0 0 0 2px #2b2b2b inset;position:relative}
.screen{width:100%;height:100%;border-radius:47px;overflow:hidden;background:var(--ivory);position:relative;display:flex;flex-direction:column}
.island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:118px;height:34px;border-radius:20px;background:#000;z-index:60}
.statusbar{height:50px;flex:none;display:flex;justify-content:space-between;align-items:flex-end;padding:0 30px 6px 34px;font-size:15px;font-weight:600;z-index:5}
.statusbar .icons{display:flex;gap:5px;align-items:center;font-size:12px}
.appbar{flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 20px 10px}
.appbar .who{display:flex;align-items:center;gap:10px}
.appbar .mono{width:32px;height:32px;font-size:15px;border-radius:9px}
.appbar .t1{font-family:var(--serif);font-size:19px;font-weight:600;line-height:1}
.appbar .t2{font-size:11px;color:var(--muted);letter-spacing:.04em}
.iconbtn{width:36px;height:36px;border-radius:50%;background:var(--paper);display:grid;place-items:center;box-shadow:var(--shadow);position:relative}
.iconbtn .dot{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--bea);border:2px solid var(--paper)}
.content{flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 18px 24px}
.content::-webkit-scrollbar{width:0}
.tabbar{flex:none;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px 26px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-top:1px solid var(--line)}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:var(--muted);font-weight:500;padding:4px 0}
.tabbar button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7}
.tabbar button.on{color:var(--ink)}
.tabbar button.on svg{stroke:var(--gold-2)}
.badge{position:absolute;margin-left:16px;margin-top:-2px;min-width:16px;height:16px;border-radius:8px;background:var(--bea);color:#fff;font-size:10px;display:grid;place-items:center;padding:0 4px}

/* ---------- content atoms ---------- */
.h-eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-2);font-weight:600;margin:10px 0 4px}
.h-display{font-family:var(--serif);font-weight:600;font-size:32px;line-height:1.05;letter-spacing:-.01em}
.h2{font-family:var(--serif);font-weight:600;font-size:23px;line-height:1.1;margin:22px 0 10px}
.lead{color:var(--ink-2);font-size:14.5px;margin-top:8px}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.card{background:var(--paper);border-radius:var(--r);box-shadow:var(--shadow);padding:16px;margin-top:12px}
.card.tap{cursor:pointer;transition:transform .15s}
.card.tap:active{transform:scale(.985)}
.hero{border-radius:24px;overflow:hidden;position:relative;margin-top:12px;background:var(--espresso);color:#F6EBDA;padding:20px;min-height:200px;display:flex;flex-direction:column;justify-content:flex-end}
.hero .bg{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;opacity:.55}
.hero .bg img{width:100%;height:100%;object-fit:cover;filter:grayscale(.2) contrast(1.05)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(41,33,28,.05) 0%,rgba(41,33,28,.92) 78%)}
.hero > *:not(.bg){position:relative;z-index:2}
.hero .h-display{font-size:29px;color:#FFF6E8}
.hero p{font-size:13.5px;color:#E8D9C2;margin-top:6px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border-radius:14px;font-weight:600;font-size:14.5px;transition:transform .12s,opacity .12s}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--espresso);color:#F6EBDA}
.btn.gold{background:var(--gold);color:#fff}
.btn.light{background:#FFF6E8;color:var(--espresso)}
.btn.ghost{background:var(--paper);border:1px solid var(--line-2)}
.btn.m{background:var(--michelle);color:#fff}
.btn.b{background:var(--bea);color:#fff}
.btn.block{width:100%}
.btn[disabled]{opacity:.5}
.row{display:flex;gap:10px;align-items:center}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{background:var(--paper);border-radius:16px;box-shadow:var(--shadow);padding:14px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:104px}
.tile .ti{width:34px;height:34px;border-radius:10px;background:var(--gold-soft);display:grid;place-items:center;font-size:17px}
.tile b{font-size:14px}
.tile span{font-size:12px;color:var(--muted);line-height:1.35}
.back{display:inline-flex;align-items:center;gap:4px;color:var(--gold-2);font-weight:600;font-size:14px;margin:4px 0 6px}
.chip{padding:7px 12px;border-radius:999px;background:var(--paper);border:1px solid var(--line-2);font-size:12.5px;font-weight:500;white-space:nowrap}
.chip.on{background:var(--espresso);color:#F6EBDA;border-color:var(--espresso)}
.chips{display:flex;gap:6px;overflow-x:auto;padding:2px 0 6px;margin:0 -18px;padding-left:18px;padding-right:18px}
.chips::-webkit-scrollbar{height:0}
.staffline{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;margin-top:10px}
.staffline.m{background:var(--michelle-soft)}
.staffline.b{background:var(--bea-soft)}
.av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;font-size:14px;flex:none}
.av.m{background:var(--michelle)} .av.b{background:var(--bea)} .av.ai{background:var(--espresso);color:#E9D6B3;font-family:var(--serif);font-size:15px} .av.me{background:#CDBEA9}
.divider{height:1px;background:var(--line);margin:14px 0}

/* gallery */
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.case{background:var(--paper);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);text-align:left}
.case .pair{display:grid;grid-template-columns:1fr 1fr;aspect-ratio:1.5/1;background:#ddd}
.case .pair img{width:100%;height:100%;object-fit:cover}
.case .meta{padding:8px 10px}
.case .meta b{font-size:12.5px;display:block}
.case .meta span{font-size:11px;color:var(--muted)}
.ba{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:285/262;background:#ddd;margin-top:10px;user-select:none}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ba .after{clip-path:inset(0 0 0 50%)}
.ba .handle{position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.3);pointer-events:none}
.ba .handle::after{content:"⟷";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:16px;color:var(--ink)}
.ba input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize}
.ba .lbl{position:absolute;bottom:10px;font-size:11px;font-weight:600;color:#fff;background:rgba(0,0,0,.45);padding:3px 8px;border-radius:6px;letter-spacing:.06em;text-transform:uppercase}
.gradecard{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.gradecard div{background:var(--paper);border-radius:16px;box-shadow:var(--shadow);padding:14px;text-align:center}
.gradecard small{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.gradecard b{display:block;font-family:var(--serif);font-size:44px;line-height:1.05;color:var(--gold-2)}
.gradecard span{font-size:11.5px;color:var(--muted)}
.match{display:grid;grid-template-columns:116px 1fr;gap:12px;align-items:center;background:var(--paper);border-radius:16px;box-shadow:var(--shadow);padding:10px;margin-top:10px;text-align:left;width:100%}
.match .pair{display:grid;grid-template-columns:1fr 1fr;border-radius:10px;overflow:hidden;aspect-ratio:1.4/1}
.match .pair img{width:100%;height:100%;object-fit:cover}
.match b{font-size:13.5px}
.match p{font-size:12px;color:var(--muted);line-height:1.35;margin-top:2px}
.preview{position:relative;border-radius:18px;overflow:hidden;margin-top:12px;background:#000}
.preview img{width:100%;max-height:300px;object-fit:cover;opacity:.92}
.scan{position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,rgba(162,123,69,.0) 40%,rgba(233,214,179,.55) 50%,rgba(162,123,69,0) 60%,transparent 100%);background-size:100% 220%;animation:scan 1.6s linear infinite}
.scanlabel{position:absolute;left:12px;bottom:12px;background:rgba(41,33,28,.8);color:#F6EBDA;font-size:12.5px;padding:6px 10px;border-radius:10px;display:flex;gap:8px;align-items:center}
@keyframes scan{0%{background-position:0 100%}100%{background-position:0 -100%}}

/* checklist */
.check{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.check:last-child{border-bottom:0}
.box{width:24px;height:24px;border-radius:8px;border:1.5px solid var(--line-2);display:grid;place-items:center;flex:none;margin-top:1px;transition:all .15s;color:transparent}
.check.done .box{background:var(--michelle);border-color:var(--michelle);color:#fff}
.check.done .ct b{text-decoration:line-through;color:var(--muted)}
.check.overdue .box{border-color:var(--danger)}
.ct{flex:1}
.ct b{font-size:14px;font-weight:600;display:block}
.ct span{font-size:12px;color:var(--muted)}
.due{font-size:11px;font-weight:600;white-space:nowrap;padding:3px 8px;border-radius:999px;background:var(--ivory);color:var(--muted)}
.check.overdue .due{background:var(--danger-soft);color:var(--danger)}
.ring{width:84px;height:84px;flex:none}
.countdown{display:flex;gap:16px;align-items:center}
.countdown .big{font-family:var(--serif);font-size:46px;font-weight:600;line-height:.9}

/* chat */
.chat{display:flex;flex-direction:column;gap:10px;padding-top:6px}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:92%}
.msg > div:last-child{min-width:0}
.msg.anim,.sys.anim{animation:pop .25s ease}
.msg .av{width:28px;height:28px;font-size:12px}
.bubble{padding:10px 13px;border-radius:18px;font-size:14px;line-height:1.42;background:var(--paper);box-shadow:0 1px 2px rgba(0,0,0,.05);white-space:pre-wrap}
.msg .name{font-size:10.5px;font-weight:600;margin:0 0 3px 4px;letter-spacing:.03em}
.msg.ai .name{color:var(--gold-2)} .msg.m .name{color:var(--michelle)} .msg.b .name{color:var(--bea)}
.msg.ai .bubble{border-bottom-left-radius:6px}
.msg.m .bubble{background:var(--michelle-soft);border-bottom-left-radius:6px}
.msg.b .bubble{background:var(--bea-soft);border-bottom-left-radius:6px}
.msg.me{align-self:flex-end;flex-direction:row-reverse}
.msg.me .bubble{background:var(--espresso);color:#F6EBDA;border-bottom-right-radius:6px}
.msg .bubble img{border-radius:12px;max-width:180px;margin-bottom:4px}
.sys{align-self:center;font-size:11.5px;font-weight:600;padding:5px 12px;border-radius:999px;display:flex;gap:6px;align-items:center}
.sys.m{background:var(--michelle-soft);color:var(--michelle)} .sys.b{background:var(--bea-soft);color:var(--bea)} .sys.urgent{background:var(--danger-soft);color:var(--danger)}
.typing{display:inline-flex;gap:4px;padding:12px 14px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);opacity:.5;animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:.9}}
.suggest{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.suggest button{font-size:12.5px;padding:7px 11px;border-radius:999px;background:var(--paper);border:1px solid var(--gold-soft);color:var(--gold-2);font-weight:500;text-align:left}
.composer{flex:none;display:flex;gap:8px;align-items:center;padding:8px 12px 8px;background:var(--ivory);border-top:1px solid var(--line)}
.composer input{flex:1;border:1px solid var(--line-2);background:var(--paper);border-radius:22px;padding:11px 14px;font-size:14.5px;outline:none}
.composer input:focus{border-color:var(--gold)}
.composer .send{width:40px;height:40px;border-radius:50%;background:var(--espresso);color:#F6EBDA;display:grid;place-items:center;flex:none}
.composer .att{width:40px;height:40px;border-radius:50%;background:var(--paper);border:1px solid var(--line-2);display:grid;place-items:center;flex:none;font-size:18px}
.disclaim{font-size:10.5px;color:var(--muted);text-align:center;padding:0 20px 4px}

/* drains */
.bars{display:flex;align-items:flex-end;gap:14px;height:150px;padding:10px 4px 0;position:relative;margin-top:6px}
.bars .goal{position:absolute;left:0;right:0;border-top:1.5px dashed var(--michelle);font-size:10px;color:var(--michelle);font-weight:600}
.bars .goal span{position:absolute;right:0;top:-15px;background:var(--paper);padding:0 4px}
.bday{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.bpair{display:flex;gap:4px;align-items:flex-end;height:100%}
.bpair i{width:14px;border-radius:5px 5px 2px 2px;display:block;transition:height .6s cubic-bezier(.2,.8,.2,1)}
.bpair i.l{background:#B5523E}.bpair i.r{background:#D99A82}
.bday small{font-size:10.5px;color:var(--muted);font-weight:600}
.legend{display:flex;gap:14px;font-size:11.5px;color:var(--muted);margin-top:8px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.bulbs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.bulb{background:var(--ivory);border-radius:14px;padding:12px}
.bulb small{font-size:10.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:600}
.bulb b{display:block;font-family:var(--serif);font-size:34px;line-height:1.05}
.bulb b em{font-size:15px;font-style:normal;font-family:var(--sans);color:var(--muted);margin-left:2px}
.swatch{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.flag{display:flex;gap:8px;align-items:flex-start;background:var(--warn-soft);color:#7A5210;border-radius:12px;padding:10px 12px;font-size:12.5px;margin-top:8px}
.flag.ok{background:var(--michelle-soft);color:var(--michelle)}
.flag.bad{background:var(--danger-soft);color:var(--danger)}

/* forms */
.field{display:block;margin-top:10px}
.field span{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-bottom:5px;letter-spacing:.03em}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line-2);background:var(--paper);border-radius:12px;padding:12px 13px;font-size:14.5px;outline:none}
.field textarea{min-height:92px;resize:none}
.field input:focus,.field textarea:focus{border-color:var(--gold)}
.cc{border-radius:18px;padding:18px;color:#F6EBDA;background:linear-gradient(135deg,#3A2E26,#1E1814);aspect-ratio:1.85/1;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 14px 30px -12px rgba(0,0,0,.5);margin-top:12px}
.cc .num{font-size:19px;letter-spacing:.14em;font-family:ui-monospace,Menlo,monospace}
.demo-stamp{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-2);background:var(--gold-soft);padding:3px 8px;border-radius:6px}
.line{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.line:last-child{border-bottom:0}
.line.total{font-weight:700;font-size:15px}
.opt{display:flex;gap:12px;align-items:center;padding:12px;border-radius:14px;border:1.5px solid var(--line);background:var(--paper);margin-top:8px;width:100%;text-align:left}
.opt.on{border-color:var(--gold);background:#FFFBF4}
.opt .radio{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line-2);flex:none;display:grid;place-items:center}
.opt.on .radio{border-color:var(--gold)}
.opt.on .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--gold)}
.opt b{font-size:14px;display:block}
.opt span{font-size:12px;color:var(--muted)}
.opt .amt{margin-left:auto;text-align:right;font-weight:700;font-size:15px}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.slots button{padding:10px 4px;border-radius:12px;border:1px solid var(--line-2);background:var(--paper);font-size:13px;font-weight:600}
.slots button.on{background:var(--bea);color:#fff;border-color:var(--bea)}
.days{display:flex;gap:8px;overflow-x:auto;margin:6px -18px 0;padding:2px 18px 4px}
.days::-webkit-scrollbar{height:0}
.days button{flex:none;width:58px;padding:9px 0;border-radius:14px;border:1px solid var(--line-2);background:var(--paper);text-align:center}
.days button small{display:block;font-size:10.5px;color:var(--muted);font-weight:600;text-transform:uppercase}
.days button b{font-size:18px}
.days button.on{background:var(--espresso);color:#F6EBDA;border-color:var(--espresso)}
.days button.on small{color:#D9C7AA}
.success{text-align:center;padding:26px 10px}
.success .tick{width:64px;height:64px;border-radius:50%;background:var(--michelle);color:#fff;display:grid;place-items:center;font-size:30px;margin:0 auto 14px;animation:pop .4s ease}

/* sheet */
.sheet-bg{position:absolute;inset:0;background:rgba(20,16,13,.38);z-index:40;animation:fade .2s ease}
.sheet{position:absolute;left:0;right:0;bottom:0;background:var(--ivory);border-radius:26px 26px 0 0;padding:10px 18px 30px;z-index:41;animation:up .28s cubic-bezier(.2,.8,.2,1);max-height:82%;overflow:auto}
.sheet .grab{width:38px;height:5px;border-radius:3px;background:var(--line-2);margin:0 auto 12px}
.sheet h3{font-family:var(--serif);font-size:22px;font-weight:600}
.sheet .opt{border-width:1px}
.sheet .opt .ti{width:38px;height:38px;border-radius:12px;background:var(--gold-soft);display:grid;place-items:center;font-size:18px;flex:none}
.sgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.sgrid button{border-radius:12px;overflow:hidden;aspect-ratio:1;background:#ddd;position:relative}
.sgrid button img{width:100%;height:100%;object-fit:cover}
.sgrid button span{position:absolute;left:4px;right:4px;bottom:4px;font-size:10px;font-weight:600;color:#fff;background:rgba(0,0,0,.5);border-radius:6px;padding:2px 4px;text-align:left;line-height:1.2}

/* push banner */
.push{position:absolute;top:54px;left:10px;right:10px;z-index:70;background:rgba(246,243,238,.86);backdrop-filter:blur(24px) saturate(1.6);-webkit-backdrop-filter:blur(24px) saturate(1.6);border-radius:22px;padding:12px 14px;display:flex;gap:11px;box-shadow:0 12px 34px rgba(0,0,0,.22);cursor:pointer;animation:drop .5s cubic-bezier(.2,1.1,.3,1)}
.push.out{animation:rise .35s ease forwards}
.push .pi{width:38px;height:38px;border-radius:10px;background:var(--espresso);color:#E9D6B3;font-family:var(--serif);font-weight:600;display:grid;place-items:center;flex:none;font-size:17px}
.push .ph{display:flex;justify-content:space-between;font-size:12px;color:#5d554d}
.push .ph b{font-weight:600;color:#1E1A17;letter-spacing:.02em}
.push .pt{font-size:14px;font-weight:600;margin-top:1px}
.push .pb{font-size:13.5px;color:#2b2520;line-height:1.35}
@keyframes drop{from{transform:translateY(-130%)}to{transform:translateY(0)}}
@keyframes rise{to{transform:translateY(-140%);opacity:.4}}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(100%)}}
.spin{width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:sp 0.8s linear infinite;display:inline-block}
.spin.dark{border-color:rgba(0,0,0,.15);border-top-color:var(--gold)}
@keyframes sp{to{transform:rotate(360deg)}}
.toast{position:absolute;bottom:100px;left:50%;transform:translateX(-50%);background:var(--espresso);color:#F6EBDA;font-size:13px;padding:9px 14px;border-radius:12px;z-index:80;animation:pop .25s ease;white-space:nowrap}
.ribbon{display:none;position:fixed;bottom:12px;left:50%;transform:translateX(-50%);font-size:11.5px;color:var(--muted);background:rgba(255,255,255,.7);padding:6px 12px;border-radius:999px;z-index:5}

/* mobile: the app is the screen */
.demo-fab{display:none}
@media (max-width:1180px){
  .stage{grid-template-columns:400px minmax(300px,360px)}
  .panel.left{grid-column:2;grid-row:1}
  .panel.right{grid-column:2;grid-row:2}
  .phone{grid-row:1/span 2}
  .panel{position:static;max-height:none}
}
@media (max-width:820px){
  body{background:var(--ivory)}
  .stage{display:block;padding:0}
  .phone{width:100vw;height:100dvh;border-radius:0;padding:0;box-shadow:none;background:var(--ivory)}
  .screen{border-radius:0}
  .island,.statusbar{display:none}
  .push{top:max(10px,env(safe-area-inset-top))}
  .appbar{padding-top:max(12px,env(safe-area-inset-top))}
  .tabbar{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .panel{display:none}
  body.drawer .panel{display:block;position:fixed;left:10px;right:10px;z-index:90;max-height:46dvh;overflow:auto}
  body.drawer .panel.left{top:10px}
  body.drawer .panel.right{bottom:10px;top:auto}
  .demo-fab{display:block;position:fixed;right:66px;top:max(16px,calc(env(safe-area-inset-top) + 4px));z-index:95;background:var(--gold-soft);color:var(--gold-2);font-size:12px;font-weight:700;padding:8px 12px;border-radius:999px;border:1px solid var(--line-2)}
  .ribbon{display:none}
}
