/* Layout: cream app canvas, white cards with soft warm shadow, bordeaux for key cards and actions, serif titles — following the user's reference. Single warm theme by choice. */
:root{
  --bg:#f6f1ea; --card:#fffdf9; --ink:#2b1f1a; --muted:#7a6a5f; --line:#ece3d8;
  --wine:#6b1426; --wine-2:#82203a; --gold:#d6a24e; --beige:#efe7dc; --pink:#f3e6e1;
  --ok:#2f7a4a; --ok-bg:#e1f1e5; --warn:#8a5a05; --warn-bg:#fdecc4; --bad:#a3283a; --bad-bg:#fbe1e4;
  --shadow:0 6px 20px rgba(107,20,38,.07);
  --display:"Playfair Display", Georgia, "Times New Roman", serif;
  --body:"Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:#e8e1d8;font-family:var(--body);color:var(--ink);font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none;padding:0}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.app{max-width:440px;margin:0 auto;min-height:100%;background:var(--bg);position:relative;display:flex;flex-direction:column}
.screen{flex:1;padding:16px 18px 100px;display:flex;flex-direction:column;gap:16px}
h1,h2,h3{margin:0;text-wrap:balance}
.title{font-family:var(--display);font-weight:500;font-size:30px;line-height:1.12;letter-spacing:-.01em}
.h-display{font-family:var(--display);font-weight:500;font-size:28px;line-height:1.12}
.h-sec{font-size:17px;font-weight:700}
.muted{color:var(--muted)} .small{font-size:13px} .xs{font-size:12px} .num{font-variant-numeric:tabular-nums}
.row{display:flex;align-items:center;gap:10px} .between{justify-content:space-between} .stack{display:flex;flex-direction:column;gap:10px}
.grow{flex:1;min-width:0} .ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card{background:var(--card);border-radius:20px;padding:16px;box-shadow:var(--shadow)}
.card.flat{box-shadow:none;background:var(--beige)}
.wine{background:radial-gradient(120% 140% at 100% 0%,#8a2539 0%,var(--wine) 45%,#4e0d1b 100%);color:#fbeee6;box-shadow:0 12px 26px rgba(107,20,38,.25)}
.wine .muted{color:#e9c7bf}
.pill{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.p-ok{background:var(--ok-bg);color:var(--ok)} .p-warn{background:var(--warn-bg);color:var(--warn)} .p-bad{background:var(--bad-bg);color:var(--bad)} .p-n{background:var(--beige);color:var(--muted)} .p-wine{background:var(--pink);color:var(--wine)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:16px;border-radius:18px;font-weight:700;font-size:16px;background:linear-gradient(180deg,var(--wine-2),var(--wine));color:#fff;box-shadow:0 8px 18px rgba(107,20,38,.22)}
.btn:hover{filter:brightness(1.06)}
.btn.ghost{background:var(--beige);color:var(--ink);box-shadow:none}
.btn.light{background:var(--beige);color:var(--wine);box-shadow:none}
.btn.sm{width:auto;padding:9px 15px;font-size:14px;border-radius:999px}
.btn:disabled{opacity:.5}
.link{color:var(--wine);font-weight:700;font-size:14px}
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:440px;background:rgba(255,250,245,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:8px 4px calc(12px + env(safe-area-inset-bottom));z-index:20}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:#a8968a}
.tab svg{width:23px;height:23px}
.tab.on{color:var(--wine)}
.seg{display:flex;background:var(--beige);border-radius:16px;padding:4px;gap:4px}
.seg button{flex:1;padding:9px 6px;border-radius:12px;font-size:14px;font-weight:600;color:var(--muted)}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(80,40,20,.1)}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:8px 14px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 1.5px var(--line);font-weight:600;font-size:14px}
.chip.on{background:var(--wine);color:#fff;box-shadow:none}
.chip:disabled{opacity:.4;text-decoration:line-through}
.olist{display:flex;flex-direction:column}
.oitem{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);text-align:left;width:100%}
.oitem:last-child{border-bottom:none}
.thumb{width:62px;height:62px;border-radius:16px;overflow:hidden;flex-shrink:0;background:#efe2d3}
.thumb svg,.thumb img{width:100%;height:100%;display:block;object-fit:cover}
.price{font-weight:800;font-variant-numeric:tabular-nums}
.mic-card{display:flex;align-items:center;gap:14px;background:var(--card);border-radius:20px;padding:14px 16px;width:100%;text-align:left;box-shadow:var(--shadow)}
.mic-btn{width:52px;height:52px;border-radius:50%;background:linear-gradient(180deg,var(--wine-2),var(--wine));color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 0 0 6px var(--pink)}
.mic-btn svg{width:24px;height:24px}
.fab{position:fixed;right:max(18px,calc(50% - 202px));bottom:92px;width:60px;height:60px;border-radius:50%;background:linear-gradient(180deg,var(--wine-2),var(--wine));color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 22px rgba(107,20,38,.35);z-index:19}
.fab svg{width:27px;height:27px}
.banner{border-radius:18px;padding:13px 15px;display:flex;gap:10px;align-items:flex-start}
.banner.warn{background:var(--warn-bg);color:#5f3b05} .banner.bad{background:var(--pink);color:#6d1626} .banner.ok{background:var(--ok-bg);color:#1d4d2e}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.input{width:100%;padding:13px 14px;border-radius:14px;border:1.5px solid var(--line);background:#fff}
textarea.input{min-height:96px;resize:vertical}
.sheet-bg{position:fixed;inset:0;background:rgba(40,20,15,.45);z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--bg);width:100%;max-width:440px;max-height:92%;overflow:auto;border-radius:26px 26px 0 0;padding:18px 18px 30px;display:flex;flex-direction:column;gap:14px}
.grab{width:42px;height:5px;border-radius:3px;background:#dccbbb;margin:0 auto}
.cal{display:grid;grid-template-columns:repeat(7,1fr);row-gap:6px;text-align:center}
.cal .wd{font-size:13px;color:var(--muted);font-weight:600;padding:6px 0}
.cal .d{height:46px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;font-weight:600;font-size:16px}
.cal .d .n{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.cal .d.out{opacity:.28}
.cal .d.today .n{box-shadow:inset 0 0 0 1.5px var(--gold)}
.cal .d.sel .n{background:var(--wine);color:#fff}
.cal .d.full:not(.sel) .n{background:repeating-linear-gradient(135deg,#f3cdd3 0 4px,#fbeef0 4px 8px);color:var(--wine)}
.dots{display:flex;gap:3px;height:5px}
.dots i{width:5px;height:5px;border-radius:50%;background:var(--wine)} .dots i.s{background:var(--gold)} .dots i.f{background:#4c9a62}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:0}
.big{font-family:var(--display);font-size:44px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums}
.hbar{display:grid;grid-template-columns:112px 1fr 92px;gap:10px;align-items:center;font-size:14px}
.track{height:8px;background:var(--beige);border-radius:4px;overflow:hidden}
.track i{display:block;height:100%;border-radius:4px}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl td{padding:10px 0;border-bottom:1px solid var(--line)}
.tbl tr:last-child td{border-bottom:none}
.tbl td:last-child{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.ing-input{width:74px;padding:7px 9px;border-radius:10px;border:1.5px solid var(--line);text-align:right;background:#fff;font-variant-numeric:tabular-nums}
.step{display:flex;align-items:center;border-radius:999px;overflow:hidden;background:var(--beige)}
.step button{width:34px;height:34px;font-size:18px;font-weight:700;color:var(--wine)}
.step span{min-width:58px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;font-size:14px}
.cartbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:440px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg) 30%);z-index:20}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.iconbtn{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.iconbtn svg{width:22px;height:22px}
.listen{animation:pulse 1.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(107,20,38,.45)}100%{box-shadow:0 0 0 18px rgba(107,20,38,0)}}
@media (prefers-reduced-motion:reduce){.listen{animation:none}}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:104px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:14px;font-size:14px;z-index:60;max-width:90%}
.prow{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;font-weight:500;font-size:16px}
.prow:last-child{border-bottom:none}
.prow svg.ic{width:22px;height:22px;color:var(--ink)}
.made{font-size:11px;color:#a8968a;text-align:center;letter-spacing:.04em}
.proto-note{font-size:12px;color:var(--muted);background:var(--beige);border-radius:14px;padding:9px 13px}
.work{position:relative;overflow:hidden;border-radius:24px;padding:20px 20px 18px}
.work .whisk{position:absolute;right:-6px;top:-10px;width:110px;height:110px;opacity:.9}
.work-n{font-family:var(--display);font-size:34px;font-weight:500;display:flex;align-items:center;gap:10px;color:#fff}
.checks{display:flex;flex-direction:column;gap:7px;font-size:14px}
.checks span{display:flex;align-items:center;gap:9px}
.checks svg{width:18px;height:18px;flex-shrink:0}
.ordrow{display:flex;gap:14px;align-items:center;padding:12px 0;width:100%;text-align:left;border-bottom:1px solid var(--line)}
.ordrow:last-child{border-bottom:none}
.ordrow .thumb{width:68px;height:68px}
.sec-h{display:flex;align-items:center;justify-content:space-between}
.sec-h h2{font-size:18px;font-weight:700}
.remcard{background:linear-gradient(135deg,#fbf1e5,#f8e9da);border-radius:20px;padding:14px 16px;display:flex;gap:12px}
.hero{position:relative;height:220px;overflow:hidden;border-radius:0 0 34px 34px}
.hero img{width:100%;height:100%;object-fit:cover;display:block}
.hero .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(40,15,10,.25) 0%,rgba(40,15,10,0) 35%,rgba(40,15,10,.55) 100%)}
.hero .bar{position:absolute;top:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between}
.hero .bar .iconbtn{background:rgba(255,250,245,.88)}
.hero .cap{position:absolute;left:20px;bottom:18px;right:20px;color:#fff}
.brandname{font-family:var(--display);font-size:18px;letter-spacing:.16em;text-transform:uppercase}
.cakecard{display:flex;background:var(--card);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
.cakecard .ph{width:42%;min-height:150px;flex-shrink:0;background:#efe2d3}
.cakecard .ph img,.cakecard .ph svg{width:100%;height:100%;object-fit:cover;display:block}
.cakecard .tx{padding:14px 14px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tile{background:var(--card);border-radius:16px;padding:8px 4px 9px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:600;box-shadow:var(--shadow)}
.tile .ti{width:100%;height:38px;border-radius:10px;overflow:hidden}
.tile .ti img,.tile .ti svg{width:100%;height:100%;object-fit:cover}
.tile.on{background:var(--wine);color:#fff}
.plus{width:36px;height:36px;border-radius:50%;background:var(--beige);color:var(--wine);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.plus svg{width:18px;height:18px}
.avatar{width:96px;height:96px;border-radius:50%;background:linear-gradient(160deg,#f3d6c4,#e6b9a3);color:var(--wine);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:40px;flex-shrink:0;box-shadow:0 0 0 5px #fff,var(--shadow)}
.ava-s{width:52px;height:52px;border-radius:50%;background:linear-gradient(160deg,#f3d6c4,#e8c0ab);color:var(--wine);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:21px;flex-shrink:0}
.lang{display:flex;gap:2px;background:rgba(255,250,245,.88);border-radius:999px;padding:3px}
.lang button{padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;color:var(--muted)}
.lang button.on{background:var(--wine);color:#fff}
.switch{width:46px;height:28px;border-radius:999px;background:#d9c9bb;position:relative;flex-shrink:0;transition:background .2s}
.switch i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:left .2s}
.switch.on{background:var(--wine)} .switch.on i{left:21px}
.dot{width:12px;height:12px;border-radius:4px;flex-shrink:0}
.splash{min-height:100vh;position:relative;display:flex;flex-direction:column;justify-content:space-between;color:#fff;overflow:hidden;background:#2a120d}
.splash img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.splash .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(60,14,22,.92) 0%,rgba(60,14,22,.55) 38%,rgba(30,10,8,.15) 60%,rgba(30,10,8,.75) 100%)}
.splash .in{position:relative;z-index:1;padding:64px 26px 40px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;height:100vh;justify-content:space-between}
.p-work{background:#fde3cc;color:#9a4a10}
.hdr{display:flex;align-items:center;gap:10px}
.logo{width:42px;height:42px;color:var(--wine)}
.brand{font-family:var(--display);font-size:19px;letter-spacing:.08em;line-height:1}
.badge{position:absolute;top:2px;right:2px;min-width:16px;height:16px;border-radius:8px;background:var(--wine);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 4px}
.ava-m{width:40px;height:40px;border-radius:50%;background:#f1e2d6;color:var(--wine);display:flex;align-items:center;justify-content:center;font-weight:700}
.greet{position:relative;min-height:150px;display:flex;flex-direction:column;justify-content:center}
.greet .pic{position:absolute;right:-18px;top:-6px;width:150px;height:170px;border-radius:0 0 0 80px;overflow:hidden;-webkit-mask-image:linear-gradient(to left,#000 60%,transparent);mask-image:linear-gradient(to left,#000 60%,transparent)}
.greet .pic img{width:100%;height:100%;object-fit:cover}
.stat{background:var(--card);border-radius:20px;padding:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px;text-align:left}
.stat .v{font-family:var(--display);font-size:32px;font-weight:600;line-height:1.05}
.talk{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:14px 16px;border-radius:999px;background:linear-gradient(180deg,var(--wine-2),var(--wine));color:#fff;box-shadow:0 10px 22px rgba(107,20,38,.25)}
.talk b{display:flex;align-items:center;gap:8px;font-size:17px}
.talk b svg{width:20px;height:20px}
.talk span{font-size:12px;color:#ecd3cc}
.ctabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.ctabs::-webkit-scrollbar{display:none}
.ctab{flex-shrink:0;padding:8px 13px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 1.5px var(--line);font-size:13px;font-weight:600;display:flex;gap:6px;align-items:center}
.ctab .c{background:var(--beige);border-radius:999px;padding:0 7px;font-size:12px}
.ctab.on{background:var(--wine);color:#fff;box-shadow:none}
.ctab.on .c{background:rgba(255,255,255,.2)}
.orow{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);width:100%;text-align:left}
.orow:last-child{border-bottom:none}
.orow .thumb{width:84px;height:76px;border-radius:18px}
.ttl-ic{display:flex;align-items:center;gap:10px}
.ttl-ic svg{width:28px;height:28px;color:var(--wine)}
.roundplus{width:44px;height:44px;border-radius:50%;background:linear-gradient(180deg,var(--wine-2),var(--wine));color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px rgba(107,20,38,.3)}
.roundplus svg{width:22px;height:22px}
.daylist .r{display:grid;grid-template-columns:14px 52px 1fr auto;gap:8px;align-items:center;padding:7px 0;font-size:14px}
.daylist .r i{width:10px;height:10px;border-radius:50%}
.ingrow{display:grid;grid-template-columns:34px 1fr auto auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.ingrow img{width:30px;height:30px;border-radius:8px;object-fit:cover}
.ingrow .dotc{width:30px;height:30px;border-radius:8px}
.donut{width:110px;height:110px}
.lowbar{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#f8eee6,#f3e5da);border-radius:20px;padding:12px 14px}

/* --- real app additions --- */
.btn:disabled{opacity:.5;cursor:default;filter:none}
a.btn{text-decoration:none}
.sheet .h-sec{font-size:19px}
details summary{cursor:pointer;list-style:none}
details summary::-webkit-details-marker{display:none}
.chip:disabled{text-decoration:none;opacity:.35}
.p-wine{background:var(--pink);color:var(--wine)}
.ordrow > svg{width:20px;height:20px;flex-shrink:0;color:var(--muted)}
.rating svg{width:18px;height:18px}

/* auth screen: crisp vector header instead of a full-screen photo */
.auth{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
.auth-hero{position:relative;overflow:hidden;border-radius:0 0 34px 34px;padding:calc(56px + env(safe-area-inset-top)) 28px 64px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.auth-hero .title{color:#fff;font-size:40px}
.auth-hero p{margin:0;color:#f0d6cf;font-size:16px;max-width:300px}
.auth-logo{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center}
.auth-logo .logo{color:#fff;width:38px;height:38px}
.auth-whisk{position:absolute;right:-30px;bottom:-34px;width:130px;height:130px;opacity:.35}
.auth form{margin:-34px 18px calc(24px + env(safe-area-inset-bottom));position:relative}
