:root{
  --brand:#8a6a4f;--ink:#26221f;--muted:#645c55;--line:#e8e2da;--bg:#f6f3ef;--card:#fff;
  --ok:#2f8a4c;--ok-bg:#e6f4ea;--bad:#c0392b;--bad-bg:#fdecea;--warn:#b7791f;--warn-bg:#fdf3dc;
  --r:16px;--shadow:0 1px 2px rgba(40,30,20,.06),0 4px 14px rgba(40,30,20,.05);
  --side:250px;--font:"Assistant",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{margin:0;line-height:1.25}
.noscroll{overflow:hidden}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.muted{color:var(--muted)}.small{font-size:13px}
.ok{color:var(--ok)}.bad{color:var(--bad)}

/* ---------- login ---------- */
.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(1200px 600px at 80% -10%,color-mix(in srgb,var(--brand) 18%,transparent),transparent),var(--bg)}
.login__card{width:100%;max-width:380px;background:var(--card);border-radius:24px;padding:32px 26px;box-shadow:0 20px 60px rgba(40,30,20,.12);display:flex;flex-direction:column;gap:14px;text-align:center}
.login__card h1{font-size:26px;font-weight:800}
.login__card p{margin:0}
.login__card label{text-align:right}
.login__logo{max-height:70px;max-width:180px;margin:0 auto;object-fit:contain}
.alert{background:var(--bad-bg);color:var(--bad);border-radius:10px;padding:10px;font-weight:600}

/* ---------- forms ---------- */
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:11px 13px;background:#fff;font-weight:400;font-size:16px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent)}
textarea{resize:vertical}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;align-items:end}
.form-grid--tight{gap:10px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.stack{display:flex;flex-direction:column;gap:16px}
.stack--tight{gap:8px}
.switch{flex-direction:row;align-items:center;gap:10px;cursor:pointer;font-weight:600;min-height:44px}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch span{width:46px;height:28px;border-radius:20px;background:#d9d3cc;position:relative;flex:none;transition:background .2s}
.switch span::after{content:"";position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.switch input:checked+span{background:var(--brand)}
.switch input:checked+span::after{transform:translateX(-18px)}
.switch input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-weight:700;cursor:pointer;white-space:nowrap;transition:transform .08s,filter .15s,background .15s}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.55;pointer-events:none}
.btn--primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn--primary:hover{filter:brightness(.93)}
.btn--lg{min-height:52px;padding:0 22px;font-size:17px;border-radius:14px}
.btn--block{width:100%}
.btn--ghost{background:transparent}
.btn--wa{color:#0b6a5f;border-color:#b7e3d7}
.btn--danger{background:var(--bad);border-color:var(--bad);color:#fff}
.btn--danger-ghost{color:var(--bad);border-color:#f2c3bd;background:transparent}
.iconbtn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;border:0;background:transparent;cursor:pointer;color:var(--muted)}
.iconbtn:hover{background:var(--bg);color:var(--ink)}
.row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ---------- layout ---------- */
.app{min-height:100vh}
.side{display:none}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:rgba(246,243,239,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:40px;max-width:110px;object-fit:contain}
.brand small{display:block;color:var(--muted);font-size:13px}
.brand__dot{width:38px;height:38px;border-radius:12px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px}
.brand--sm b{font-size:18px}
.view{padding:18px 16px 110px;max-width:1280px;margin:0 auto}
.bottom{position:fixed;bottom:0;inset-inline:0;z-index:30;display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.bottom a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;font-size:12px;font-weight:600;color:var(--muted);border-radius:12px}
.bottom a .ic{width:24px;height:24px}
.bottom a.active{color:var(--brand)}
.bottom__cta .ic{background:var(--brand);color:#fff;border-radius:14px;width:44px!important;height:36px!important;padding:6px 10px}
.bottom__cta{color:var(--ink)!important}
@media (min-width:900px){
  .app{display:grid;grid-template-columns:var(--side) 1fr}
  .topbar,.bottom{display:none}
  .side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:20px 14px;background:#fff;border-inline-end:1px solid var(--line);gap:22px}
  .side nav{display:flex;flex-direction:column;gap:4px;flex:1}
  .side nav a,.side__foot a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:12px;font-weight:600;color:#4a443f}
  .side nav a:hover,.side__foot a:hover{background:var(--bg)}
  .side nav a.active{background:color-mix(in srgb,var(--brand) 12%,#fff);color:var(--brand)}
  .side nav a.nav-cta{background:var(--brand);color:#fff;margin:6px 0}
  .side nav a.nav-cta.active{filter:brightness(.92)}
  .side__foot{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:2px}
  .view{padding:28px 32px 60px;width:100%}
}

/* ---------- page parts ---------- */
.page-title{font-size:26px;font-weight:800;margin-bottom:14px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.page-head .page-title{margin:0}
.card{background:var(--card);border-radius:var(--r);padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:14px}
.card h2{font-size:18px}
.panel-sec{margin-top:26px}
.panel-sec h2{font-size:18px;margin-bottom:10px}
.empty{padding:28px 16px;text-align:center;color:var(--muted);background:rgba(255,255,255,.6);border-radius:var(--r);border:1.5px dashed var(--line)}
.empty--sm{padding:14px}
.loading{display:grid;place-items:center;padding:60px}
.loading span{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--brand);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.boot{display:grid;place-items:center;min-height:100vh;color:var(--muted)}

.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}
@media (min-width:700px){.stats{grid-template-columns:repeat(4,1fr)}}
.stats--2{grid-template-columns:1fr 1fr!important}
.stat{background:var(--card);border-radius:var(--r);padding:14px 16px;box-shadow:var(--shadow);display:flex;flex-direction:column;border-inline-start:5px solid #c9c1b8}
.stat b{font-size:26px;font-weight:800;line-height:1.15}
.stat span{color:var(--muted);font-size:14px}
.stat--warn{border-color:#e0a82e}.stat--late{border-color:var(--bad)}.stat--money{border-color:var(--ok)}
.quick{display:flex;gap:10px;flex-wrap:wrap}
.quick .btn{flex:1;min-width:150px}

.seg{display:inline-flex;background:#ebe5de;border-radius:12px;padding:4px;gap:2px;margin-bottom:14px}
.seg a{padding:8px 16px;border-radius:9px;font-weight:700;color:var(--muted);font-size:15px}
.seg a.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}

.badge{display:inline-flex;align-items:center;gap:4px;background:#f1ece6;color:#6d5f52;border-radius:20px;padding:2px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.badge .ic{width:13px;height:13px}
.badge--gold{background:#fdf1d8;color:#946200}
.badge--gold .ic{fill:#e0a82e;stroke:#e0a82e}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:600;color:#4a443f;background:#f3efea;border-radius:9px;padding:3px 9px}
.chip .ic{width:15px;height:15px}
.chip--soon{background:var(--warn-bg);color:#8a5a00}
.chip--late{background:var(--bad-bg);color:var(--bad)}
.chip--plain{background:transparent;padding-inline:4px;color:var(--muted);font-weight:500}
.pill{display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:4px 12px;font-weight:700;font-size:13px;border:1.5px solid;background:#fff;cursor:pointer;min-height:32px}
.pill .ic{width:15px;height:15px}
.pill--paid{color:var(--ok);border-color:#bfe3c9;background:var(--ok-bg)}
.pill--unpaid{color:var(--bad);border-color:#f2c3bd}

/* ---------- orders board ---------- */
.coltabs{display:flex;gap:6px;margin-bottom:12px;overflow-x:auto}
.coltabs button{flex:1;border:0;background:#fff;border-radius:12px;padding:10px 8px;font-weight:700;color:var(--muted);box-shadow:var(--shadow);cursor:pointer;white-space:nowrap}
.coltabs button span{background:var(--bg);border-radius:20px;padding:0 8px;margin-inline-start:4px}
.coltabs button.on{background:var(--brand);color:#fff}
.coltabs button.on span{background:rgba(255,255,255,.25)}
.board{display:block}
.col{display:none;flex-direction:column;gap:12px}
.col.on{display:flex}
.col h2{display:none}
@media (min-width:1100px){
  .coltabs{display:none}
  .board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
  .col{display:flex;background:#ece6df;border-radius:20px;padding:12px}
  .col h2{display:flex;justify-content:space-between;font-size:16px;padding:4px 6px}
  .col h2 span{background:#fff;border-radius:20px;padding:0 10px;font-size:14px}
  .col--new h2{color:#2f5f8a}.col--production h2{color:#8a5a00}.col--ready h2{color:#1f6e3a}
}
.cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.ocard{background:var(--card);border-radius:var(--r);padding:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:9px;border-inline-start:4px solid transparent}
.ocard--late{border-color:var(--bad);background:#fffafa}
.ocard__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ocard__num{color:var(--brand)}
.ocard__name{font-size:17px}
.ocard__due{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.ocard__items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ocard__items small,.lines small{display:block;color:var(--muted);font-size:13px;padding-inline-start:24px}
.ocard__note,.ocard__cnote{display:flex;gap:6px;align-items:flex-start;background:#f6f3ef;border-radius:10px;padding:8px 10px;font-size:14px}
.ocard__note .ic,.ocard__cnote .ic{width:16px;height:16px;margin-top:2px;color:var(--muted)}
.ocard__cnote{background:#fdf6e6;color:#6b4e00}
.ocard__cnote .ic{fill:#e0a82e;stroke:#e0a82e}
.ocard__foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ocard__foot:empty{display:none}
.ocard__total{font-size:18px}
.ocard__actions{display:flex;gap:6px;flex-wrap:wrap}
.ocard__actions .btn--primary{flex:1 1 130px}
.ocard__actions .btn:not(.btn--primary):not(.btn--ghost){padding:0 12px}

/* ---------- lists ---------- */
.list{display:flex;flex-direction:column;gap:8px}
.list__row{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);border:0;text-align:right;width:100%;cursor:pointer}
.list__row>span:nth-child(2){flex:1;min-width:0}
.list__row small{display:block;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis}
.list__end{text-align:left;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.avatar{width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--brand) 15%,#fff);color:var(--brand);display:grid;place-items:center;font-weight:800;font-size:18px;flex:none}
.tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
.tags i{font-style:normal;font-size:12px;font-weight:700;background:#f3ece4;color:#6f5440;border-radius:20px;padding:0 8px}
.searchbar{display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:0 14px;margin-bottom:14px;box-shadow:var(--shadow)}
.searchbar input{border:0!important;box-shadow:none!important;padding-inline:0!important}

/* ---------- products ---------- */
.pgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:700px){.pgrid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}
.pcard{background:var(--card);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);border:0;padding:0;text-align:right;cursor:pointer;display:flex;flex-direction:column;transition:transform .12s}
.pcard:hover{transform:translateY(-2px)}
.pcard img{width:100%;aspect-ratio:1;object-fit:cover;background:#eee}
.pcard div{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px}
.pcard__price{color:var(--brand);font-weight:700}
.pcard--hidden img{opacity:.45}
.imgpick{display:flex;align-items:center;gap:14px}
.imgpick__prev{width:110px;height:110px;border-radius:14px;background:var(--bg);display:grid;place-items:center;overflow:hidden;color:var(--muted);flex:none;border:1.5px dashed var(--line)}
.imgpick__prev img{width:100%;height:100%;object-fit:cover}
.imgpick__prev .ic{width:34px;height:34px}
.imgpick--logo .imgpick__prev img{object-fit:contain;padding:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chipbox{flex-direction:row}
.chipbox input{position:absolute;opacity:0;width:1px;height:1px}
.chipbox span{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:20px;padding:7px 14px;font-weight:600;cursor:pointer;background:#fff}
.chipbox input:checked+span{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,#fff);color:var(--brand)}
.chipbox input:focus-visible+span{outline:2px solid var(--brand)}
.dot{width:14px;height:14px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.15);background:#9a9995}
.dot--white{background:#efeee9}.dot--black{background:#3a3a3c}.dot--terracotta{background:#b97a5e}.dot--pink{background:#d8b2a8}
.vars{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:8px}

/* ---------- new order ---------- */
.line{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.line img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none}
.line__main{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.addline select{border-style:dashed;background:var(--bg);font-weight:700;color:var(--brand)}
.lookup:empty{display:none}
.found{display:flex;gap:8px;background:#fdf6e6;color:#6b4e00;border-radius:12px;padding:10px 12px;font-size:14px}
.found .ic{fill:#e0a82e;stroke:#e0a82e;margin-top:2px}
.found small{display:block;margin-top:2px}
.sumbar{position:sticky;bottom:76px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-radius:18px;padding:12px 14px 12px 12px;box-shadow:0 8px 30px rgba(40,30,20,.14)}
.sumbar small{display:block;color:var(--muted)}
.sumbar b{font-size:22px}
@media (min-width:900px){.sumbar{bottom:16px}}

/* ---------- coupons ---------- */
.cards--coupons{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.coupon{position:relative;background:var(--card);border-radius:var(--r);padding:16px;box-shadow:var(--shadow);border:2px dashed color-mix(in srgb,var(--brand) 40%,#fff);display:flex;flex-direction:column;gap:4px}
.coupon__code{font-weight:800;font-size:20px;letter-spacing:1px;color:var(--brand);direction:ltr;text-align:right}
.coupon__amt{font-weight:700;font-size:17px}
.coupon small{color:var(--muted)}
.coupon .iconbtn{position:absolute;top:8px;left:8px}
.coupon--off{opacity:.55}

/* ---------- settings ---------- */
.swatches{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.swatch{width:40px;height:40px;border-radius:50%;border:3px solid #fff;background:var(--c);box-shadow:0 0 0 1.5px var(--line);cursor:pointer;padding:0}
.swatch.on{box-shadow:0 0 0 3px var(--ink)}
.swatch--custom{position:relative;background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);overflow:hidden}
.swatch--custom input{position:absolute;inset:0;opacity:0;cursor:pointer}
.roles-help{display:grid;gap:6px;background:#fff;border-radius:14px;padding:12px 16px;margin-bottom:14px;color:#4a443f;font-size:14px;box-shadow:var(--shadow)}
.creds{background:var(--bg);border-radius:12px;padding:12px 14px;font-family:ui-monospace,monospace;font-size:14px;display:grid;gap:4px;margin:8px 0;word-break:break-all}

/* ---------- sheet ---------- */
.sheet-wrap{position:fixed;inset:0;z-index:100;background:rgba(30,24,20,0);display:flex;align-items:flex-end;justify-content:center;transition:background .2s}
.sheet-wrap.open{background:rgba(30,24,20,.45)}
.sheet{background:#fff;width:100%;max-height:92vh;border-radius:22px 22px 0 0;display:flex;flex-direction:column;transform:translateY(30px);opacity:0;transition:transform .22s,opacity .22s}
.sheet-wrap.open .sheet{transform:none;opacity:1}
.sheet__head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 8px;border-bottom:1px solid var(--line)}
.sheet__head h2{font-size:20px}
.sheet__body{padding:16px 18px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;display:flex;flex-direction:column;gap:14px}
.sheet__body h3{font-size:16px;margin-top:6px}
@media (min-width:700px){
  .sheet-wrap{align-items:center}
  .sheet{max-width:520px;border-radius:22px;max-height:88vh}
  .sheet--wide{max-width:760px}
}
.lead{font-size:17px;margin:0}
.big{font-size:20px}
.detail-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;background:var(--bg);border-radius:12px;padding:12px 14px}
.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:600}
.lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.lines li{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.lines__total{font-size:18px;border-bottom:0!important}
.more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.more-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 6px;background:var(--bg);border-radius:14px;font-weight:700;font-size:14px}
.more-grid .ic{width:26px;height:26px;color:var(--brand)}

/* ---------- toast ---------- */
.toast{position:fixed;z-index:200;left:50%;bottom:96px;transform:translate(-50%,20px);opacity:0;background:var(--ink);color:#fff;padding:12px 20px;border-radius:14px;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.25);transition:all .25s;pointer-events:none;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast--err{background:var(--bad)}
@media (min-width:900px){.toast{bottom:30px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* delivered is locked until paid */
.btn--locked{background:#fff;color:var(--muted);border:1.5px dashed var(--line)}
.btn--locked:hover{color:var(--bad);border-color:var(--bad)}
.unpaid{display:flex;gap:14px;align-items:flex-start;background:var(--bad-bg);border-radius:14px;padding:14px;margin-bottom:16px}
.unpaid__icon{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--bad);color:#fff}
.unpaid__icon svg{width:22px;height:22px}
.unpaid .lead{margin:0 0 6px}
.unpaid__sum{margin:0;font-size:1.05rem}
/* payment method pickers */
.paygrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.paybtn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;border:1.5px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;text-align:center}
.paybtn svg{width:28px;height:28px;color:var(--brand)}
.paybtn b{font-size:1.05rem}
.paybtn small{color:var(--muted);font-size:.75rem;line-height:1.2}
.paybtn:hover,.paybtn:focus-visible{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,#fff);outline:none}
.paybtn--chosen{border-color:var(--brand)}
.paybtn:disabled{opacity:.5;cursor:wait}
.paycfg{display:grid;gap:14px}
.paycfg__row{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px}
.sheet h3{font-size:1rem;margin:18px 0 4px}
/* reports */
.seg button{font:inherit;border:0;background:transparent;cursor:pointer;padding:8px 14px;border-radius:9px;font-weight:700;color:var(--muted);font-size:15px}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.seg--wrap{flex-wrap:wrap;max-width:100%}
.range[hidden]{display:none}
.range{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:10px}
.range label{flex:1 1 140px}
.bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;align-items:end;height:200px;padding-top:6px}
.bars__col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.bars__bar{width:100%;max-width:38px;background:var(--brand);border-radius:6px 6px 2px 2px}
.bars__col:last-child .bars__bar{background:color-mix(in srgb,var(--brand) 70%,#000)}
.bars__val{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;margin-bottom:3px}
.bars__lb{font-size:12px;color:var(--muted);margin-top:6px;white-space:nowrap}
@media (max-width:600px){.bars__val{display:none}.bars{height:160px;gap:3px}.bars__lb{font-size:10px}}
.grid2{display:grid;gap:14px;margin-top:14px}
@media (min-width:900px){.grid2{grid-template-columns:1fr 1fr}}
.hbars{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hbars li{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}
.hbars li b{font-variant-numeric:tabular-nums}
.hbars li i{grid-column:1/-1;height:8px;border-radius:4px;background:color-mix(in srgb,var(--brand) 75%,#fff);min-width:4px}
.rtable{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.rtable th{font-size:13px;color:var(--muted);font-weight:600;text-align:start;padding:6px 4px;border-bottom:1px solid var(--line)}
.rtable td{padding:9px 4px;border-bottom:1px solid var(--line)}
.rtable td:not(:first-child),.rtable th:not(:first-child){text-align:end;white-space:nowrap}
.rtable__link{cursor:pointer}.rtable__link:hover td{background:var(--bg)}
/* receipts */
.receipt-box{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:#f3efea;border-radius:12px;padding:12px 14px;margin:10px 0}
.receipt-box p{margin:0;flex:1 1 220px}
.receipt-box--err{background:var(--bad-bg);color:var(--bad)}
/* whatsapp templates */
.tchips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tchip{font:inherit;font-size:14px;font-weight:700;padding:8px 14px;border-radius:20px;border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
.tchip--on{background:#25d366;border-color:#25d366;color:#fff}
.tchip:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
#wa-text{font:inherit;line-height:1.5}
.tags code{background:#f1ece6;border-radius:6px;padding:1px 6px;font-size:12px;margin-inline:1px;white-space:nowrap}
/* install as app */
.install{margin-bottom:16px;border:1.5px solid color-mix(in srgb,var(--brand) 35%,#fff)}
.install__row{display:flex;gap:12px;align-items:center}
.install__row p{margin:2px 0 0}
.install__icon{width:52px;height:52px;border-radius:14px;box-shadow:0 2px 8px rgba(0,0,0,.12);flex:none}
.steps{margin:0;padding-inline-start:20px;display:grid;gap:4px}
.grid2--tight{margin-top:0}
/* calendar */
.cal__nav{display:flex;align-items:center;gap:6px}
.cal__nav b{min-width:110px;text-align:center;font-size:17px}
.cal__nav .iconbtn{font-size:24px;line-height:1}
.cal__legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted);margin:6px 0 10px}
.cal__legend span{display:inline-flex;align-items:center;gap:5px}
.cal{padding:10px;gap:6px}
.cal__head,.cal__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal__head span{text-align:center;font-size:13px;font-weight:700;color:var(--muted)}
.cal__day{font:inherit;color:inherit;background:#faf8f5;border:1.5px solid transparent;border-radius:10px;min-height:58px;padding:5px 4px;display:flex;flex-direction:column;align-items:stretch;gap:3px;cursor:pointer;text-align:start;min-width:0;overflow:hidden}
.cal__day:hover{border-color:var(--line)}
.cal__day:focus-visible{outline:3px solid var(--brand);outline-offset:1px}
.cal__day--out{opacity:.45}
.cal__day--today .cal__num{background:var(--brand);color:#fff}
.cal__day--sel{border-color:var(--brand);background:#fff}
.cal__day--late{background:var(--bad-bg)}
.cal__num{align-self:flex-start;font-weight:700;font-size:13px;min-width:24px;height:24px;border-radius:12px;display:grid;place-items:center;padding:0 4px}
.cal__dots{display:flex;gap:3px;flex-wrap:wrap;padding-inline:3px}
.cal__names{display:none}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9a8f85}
.dot--new{background:#4f6a8a}.dot--production{background:#e0a82e}.dot--ready{background:#2f8a4c}.dot--done{background:#c9c1b8}
.badge--new{background:#e6edf5;color:#3c5675}.badge--production{background:#fdf3dc;color:#8a5d00}.badge--ready{background:#e6f4ea;color:#23703c}.badge--done{background:#efebe7;color:#7b736c}
button.list__row{font:inherit;color:inherit;width:100%;text-align:start;border:0;cursor:pointer}
@media (min-width:900px){
  .cal__day{min-height:96px}
  .cal__dots{display:none}
  .cal__names{display:flex;flex-direction:column;gap:2px}
  .cal__ev{font-size:12px;font-weight:600;border-radius:5px;padding:1px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#e6edf5;color:#3c5675}
  .cal__ev--production{background:#fdf3dc;color:#8a5d00}.cal__ev--ready{background:#e6f4ea;color:#23703c}.cal__ev--done{background:#efebe7;color:#7b736c;text-decoration:line-through}
  .cal__more{font-size:11px;color:var(--muted);padding-inline:5px}
}
/* product "featured" star */
.pwrap{position:relative;display:flex}
.pwrap>.pcard{flex:1;min-width:0}
.pstar{position:absolute;top:8px;inset-inline-start:8px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(0,0,0,.15);display:grid;place-items:center;cursor:pointer;color:#b8aea4}
.pstar svg{width:20px;height:20px}
.pstar--on{color:#e0a82e}
.pstar--on svg{fill:#e0a82e}
.pstar:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.pstar-hint{display:flex;align-items:center;gap:6px;margin:-4px 0 10px}
.pstar-hint svg{width:16px;height:16px;color:#e0a82e;fill:#e0a82e}
/* site design */
.heroprev{border-radius:14px;min-height:170px;background:#3d3935 center/cover no-repeat;display:grid;place-items:center;position:relative;overflow:hidden;text-align:center;padding:20px}
.heroprev::before{content:"";position:absolute;inset:0;background:rgba(20,16,12,.45)}
.heroprev>div{position:relative;display:grid;gap:6px;justify-items:center;color:#fff}
.heroprev b{font-size:22px;line-height:1.2}
.heroprev span{font-size:14px;opacity:.95}
.heroprev i,.btnprev{font-style:normal;background:var(--brand);color:#fff;font-weight:700;padding:7px 16px;font-size:14px;display:inline-block}
.noticeprev{background:var(--brand);color:#fff;text-align:center;font-weight:700;padding:8px 12px;border-radius:10px}
.noticeprev[hidden]{display:none}
.secs{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.secrow{border:1.5px solid var(--line);border-radius:14px;padding:12px;display:grid;gap:10px;background:#fff}
.secrow--off{background:#faf8f5}
.secrow--off>label{opacity:.55}
.secrow__head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.secrow__move{display:flex;gap:4px}
.secrow__move .iconbtn:disabled{opacity:.3;cursor:default}
.optgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 12px}
.optcard{cursor:pointer}
.optcard input{position:absolute;opacity:0;pointer-events:none}
.optcard>span{display:grid;gap:6px;justify-items:center;text-align:center;border:1.5px solid var(--line);border-radius:14px;padding:12px 6px;background:#fff;height:100%;box-sizing:border-box}
.optcard>span>b{font-size:17px}
.optcard small{color:var(--muted);font-size:12px;line-height:1.3}
.optcard input:checked+span{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand) inset;background:color-mix(in srgb,var(--brand) 6%,#fff)}
.optcard input:focus-visible+span{outline:3px solid var(--brand);outline-offset:2px}
.colsprev{display:grid;grid-auto-flow:column;gap:3px;width:60px;height:24px}
.colsprev i{background:#d8cfc5;border-radius:3px}
.sumbar--design{position:sticky;bottom:0;z-index:5;flex-wrap:wrap;gap:10px}
@media (max-width:899px){.sumbar--design{bottom:calc(64px + env(safe-area-inset-bottom))}}

/* ---------- product: order fields + quantity discounts ---------- */
.fed{display:grid;gap:10px;border:1.5px solid var(--line);border-radius:var(--r);padding:14px;background:#fdfcfa}
.fed__head{display:grid;gap:2px}
.fed__list{display:grid;gap:10px}
.fed__add{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tchip--ghost{border-style:dashed;background:transparent}
.frow{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:grid;gap:8px}
.frow__top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.frow__type{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14px;color:var(--brand)}
.frow__type i{font-style:normal;width:26px;height:26px;border-radius:8px;display:inline-grid;place-items:center;background:color-mix(in srgb,var(--brand) 12%,#fff);font-size:13px}
.frow__moves{display:flex}
.frow__moves .iconbtn{width:36px;height:36px}
.frow__moves .iconbtn:disabled{opacity:.3;cursor:default}
.frow .switch{align-self:center}
.choices{display:grid;gap:6px}
.choice{display:flex;gap:6px;align-items:center}
.choice input[data-c=name]{flex:1 1 auto;width:auto!important;min-width:0}
.choice input.choice__price{width:84px!important;flex:none}
.choice input[type=color]{width:40px;height:40px;border:1.5px solid var(--line);border-radius:10px;padding:2px;background:#fff;flex:none;cursor:pointer}
.choice .iconbtn{width:36px;height:36px;flex:none}
.choices .tchip{justify-self:start}
.tiers{display:grid;gap:6px}
.tier{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:600}
.tier input{width:76px!important}
.tier .iconbtn{width:36px;height:36px}
.optgrid--types{grid-template-columns:repeat(2,minmax(0,1fr))}
.optgrid--types .optcard{display:grid;gap:6px;justify-items:center;border:1.5px solid var(--line);border-radius:14px;padding:16px 8px;background:#fff;font:inherit}
.optgrid--types .optcard:hover,.optgrid--types .optcard:focus-visible{border-color:var(--brand);outline:none}
.optcard__ic{font-size:22px;line-height:1}
.span2{grid-column:1/-1}
.fed,.fed>*,.fed__list>*,.frow>*,.choices>*{min-width:0}

/* ---------- feedback ---------- */
.topbar__act{display:flex;align-items:center}
.fb-mine{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.fb-mine h3{font-size:16px;font-weight:800}
.fb-item{background:var(--bg);border-radius:14px;padding:12px 14px;display:grid;gap:6px}
.fb-item p{margin:0;white-space:pre-wrap}
.fb-item__top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.fb-kind{font-weight:700;font-size:14px}
.fb-st{border-radius:20px;padding:2px 10px;font-size:12.5px;font-weight:700;background:#eef0f4;color:#3c4558}
.fb-st--working{background:var(--warn-bg);color:var(--warn)}
.fb-st--done{background:var(--ok-bg);color:var(--ok)}
.fb-img img{max-width:160px;max-height:120px;border-radius:10px;border:1px solid var(--line);object-fit:cover}
.fb-reply{background:#fff;border-inline-start:3px solid var(--brand);border-radius:8px;padding:8px 10px}

/* ---------- link-in-bio editor ---------- */
.lkx{display:grid;gap:18px;align-items:start}
@media (min-width:1100px){.lkx{grid-template-columns:minmax(0,1fr) 340px}.lkx__prev{position:sticky;top:20px}}
@media (max-width:1099px){.lkx__prev{display:none}}
@media (min-width:1100px){.lk-prevbtn{display:none}}
.lk-share__url{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;align-items:baseline}
.lk-share__url b{font-size:17px;word-break:break-all}
.lk-phone{border:10px solid #26221f;border-radius:38px;overflow:hidden;background:#26221f;box-shadow:0 18px 40px rgba(40,30,20,.18)}
.lk-phone__screen{height:640px;overflow-y:auto;border-radius:28px;background:#fff}
.lk-phone__screen .lk{min-height:100%}
.lk-phone--sheet{max-width:360px;margin:0 auto}
.lk-phone--sheet .lk-phone__screen{height:min(640px,70vh)}
.lk-fonts{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.lk-font,.lk-theme{cursor:pointer}
.lk-font input,.lk-theme input{position:absolute;opacity:0;pointer-events:none}
.lk-font>span,.lk-theme>span{display:grid;gap:4px;justify-items:center;text-align:center;border:1.5px solid var(--line);border-radius:14px;padding:12px 6px;background:#fff;height:100%;box-sizing:border-box}
.lk-font b{font-size:22px;font-weight:700;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lk-font small,.lk-theme small{color:var(--muted);font-weight:600}
.lk-font input:checked+span,.lk-theme input:checked+span{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.lk-font input:focus-visible+span,.lk-theme input:focus-visible+span{outline:3px solid var(--ink);outline-offset:2px}
.lk-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.lk-theme i{display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;width:100%;height:56px;border-radius:10px;border:1px solid rgba(0,0,0,.06)}
.lk-theme em{display:block;width:70%;height:12px;border-radius:999px}
.lk-btns{display:grid;gap:10px}
.lk-row{border:1.5px solid var(--line);border-radius:14px;padding:10px 12px;display:grid;gap:8px;background:#fdfcfa}
.lk-row__top{display:flex;align-items:center;gap:8px}
.lk-row__top input{flex:1;min-width:0;font-weight:700}
.lk-row__foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.lk-emoji{width:46px;height:46px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-size:22px;cursor:pointer;flex:none}
.lk-emoji:focus-visible{outline:3px solid var(--brand)}
.lk-emojis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.lk-emojis button{font-size:28px;height:56px;border-radius:12px;border:1.5px solid var(--line);background:#fff;cursor:pointer}
.lk-note{margin:0;align-self:center}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- fonts & looks ---------- */
.fslots{display:grid;gap:10px;margin-bottom:8px}
.fslot{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1.5px solid var(--line);border-radius:14px;padding:10px 14px;background:#fff}
.fslot__txt{display:grid;gap:2px;min-width:0}
.fslot__txt b{font-size:22px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fslot__txt small{font-size:13px;font-weight:700}
.fslot__txt small.muted{font-weight:400}
.fpick{display:grid;gap:10px}
.fpick__h{font-size:15px;font-weight:800;margin:6px 0 0}
.fpick__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.fcard-wrap{position:relative}
.fcard{width:100%;display:grid;gap:4px;justify-items:center;text-align:center;border:1.5px solid var(--line);border-radius:14px;padding:14px 8px;background:#fff;cursor:pointer;font:inherit;color:var(--ink)}
.fcard b{font-size:24px;font-weight:700;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fcard small{color:var(--muted);font-size:12.5px}
.fcard.on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.fcard:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.fcard__del{position:absolute;top:2px;inset-inline-start:2px;width:34px;height:34px}
.fup{border-top:1px solid var(--line);padding-top:10px;display:grid;gap:6px}
.fup__row{display:flex;gap:8px;flex-wrap:wrap}
.fup__row input{flex:1 1 200px}
.skinprev{display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;width:100%;height:58px;border-radius:12px;background:var(--a);border:1px solid rgba(0,0,0,.08)}
.skinprev em{display:block;width:70%;height:12px;border-radius:999px;background:var(--b);border:1px solid rgba(0,0,0,.06)}
.skinprev em+em{background:var(--c);width:45%}
.whyed{display:grid;gap:8px}
.whyed__row{display:grid;grid-template-columns:52px 1fr 1.4fr;gap:6px}
.whyed__ic{text-align:center;font-size:20px}
@media (max-width:560px){.whyed__row{grid-template-columns:52px 1fr}.whyed__row [data-w=text]{grid-column:1/-1}}

/* order details: item pictures */
.lines--img li{align-items:flex-start}
.line-img{flex:none;width:56px;height:56px;border-radius:12px;overflow:hidden;background:var(--bg);display:block}
.line-img img{width:100%;height:100%;object-fit:cover;display:block}
.line-img--none{border:1px dashed var(--line)}
.line-txt{flex:1;min-width:0;display:grid;gap:3px}
.line-txt small{color:var(--muted)}
.line-file{display:flex;align-items:center;gap:8px;margin-top:4px;color:var(--brand);font-weight:600}
.line-file img{width:44px;height:44px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}

.ocard__ded{display:flex;gap:8px;align-items:flex-start;background:#fdf0f4;border-radius:10px;padding:8px 10px;font-size:14px;white-space:pre-wrap}
.ded-tgl label{margin-top:4px}

/* colour list */
.pallist{display:grid;gap:8px}
.palchips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.palchip{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:600;border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:5px 10px;cursor:pointer}
.palchip i{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.palchip:disabled{opacity:.4;cursor:default}

/* product pictures & video */
.media-ed{display:grid;gap:10px}
.media-ed__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.mthumb{position:relative;margin:0;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--bg);border:1.5px solid var(--line)}
.mthumb img{width:100%;height:100%;object-fit:cover;display:block}
.mthumb--main{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.mthumb figcaption{position:absolute;bottom:6px;inset-inline-start:6px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:1px 8px}
.mthumb__btn{position:absolute;top:6px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2);font-size:15px}
.mthumb__btn .ic{width:16px;height:16px}
.mthumb__del{inset-inline-end:6px;color:var(--bad)}
.mthumb__star{inset-inline-start:6px}
.mthumb--empty{display:grid;place-items:center;gap:4px;color:var(--muted);border-style:dashed;align-content:center}
.mthumb--load{display:grid;place-items:center}
.mthumb--load .loading{padding:0}
.mvid{display:grid;gap:8px;justify-items:start}
.mvid video{width:100%;max-width:360px;max-height:260px;border-radius:12px;background:#000}
.mvid--load{display:flex;align-items:center;gap:10px}
.mvid--load .loading{padding:0}

/* design screen: tabs, compact section rows */
.dtabs{display:flex;gap:6px;background:#fff;border-radius:14px;padding:5px;box-shadow:var(--shadow);margin:6px 0 14px;overflow-x:auto}
.dtab{flex:1;font:inherit;font-weight:700;font-size:15px;border:0;background:transparent;border-radius:10px;padding:11px 10px;cursor:pointer;white-space:nowrap;color:var(--muted)}
.dtab[aria-selected="true"]{background:color-mix(in srgb,var(--brand) 14%,#fff);color:var(--ink)}
.dtab:focus-visible{outline:3px solid var(--brand);outline-offset:1px}
.optgrid--skins .optcard>span{gap:4px}
.optgrid--skins b{font-size:15px}
.dmore>summary{cursor:pointer;display:flex;flex-direction:column;gap:2px;list-style:none}
.dmore>summary::-webkit-details-marker{display:none}
.dmore>summary::before{content:"＋";float:left;font-weight:800;color:var(--brand)}
.dmore[open]>summary::before{content:"－"}
details.card.dmore{display:block}
details.card.dmore[open]>summary{margin-bottom:12px}
details.card.dmore[open]{display:flex}
.dmore--inline{border-top:1px solid var(--line);padding-top:10px}
.dmore--inline>summary{flex-direction:row;justify-content:space-between;font-weight:700;color:var(--brand)}
.dmore--inline[open]{display:grid;gap:12px}
.secrow__name{display:grid;gap:1px}
.secrow__name small{font-weight:400;color:var(--muted);font-size:13px}
.secrow__more>summary{cursor:pointer;color:var(--brand);font-weight:700;font-size:14px;margin-top:4px}
.secrow__more[open]{display:grid;gap:10px}
.secrow--off .secrow__more{display:none}
.ded-tgl label[hidden],.ded-tgl button[hidden]{display:none}
.dpanel[hidden]{display:none!important}
.secrow__head{display:flex!important;align-items:center;gap:10px}
.secrow__sw{flex:none;min-height:0}
.secrow__name{flex:1;min-width:0;display:grid;gap:1px}
.secrow__name b{font-size:15px}
.secrow__move{flex:none;display:flex}
.secrow__move .iconbtn{width:38px;height:38px}
.newcat{margin-top:8px}.newcat__row{display:flex;gap:8px}.newcat__row input{flex:1;min-width:0}.newcat__row[hidden],.newcat [hidden]{display:none!important}
.cal__ev{color:#2f4560!important}
:root{--ok:#1f7a3e}
.cal__ev--production{color:#6b4600!important}.cal__ev--ready{color:#1b5a30!important}.cal__ev--done{color:#5c554f!important}
.cal__day--out{opacity:1!important}.cal__day--out .cal__num{color:#6f6760}.cal__day--out .cal__ev{background:#eee9e4!important;color:#4a443f!important}


.tsize{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tsize__lbl{width:100%;font-weight:600;font-size:14px}
.tsize__opt{cursor:pointer;flex:1 1 70px}
.tsize__opt input{position:absolute;opacity:0;pointer-events:none}
.tsize__opt span{display:block;text-align:center;border:1.5px solid var(--line);border-radius:12px;padding:8px 6px;background:#fff;font-weight:700;line-height:1.2}
.tsize__opt input:checked+span{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.tsize__opt input:focus-visible+span{outline:3px solid var(--ink);outline-offset:2px}

/* getting started, help, empty states */
.setup{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:16px;display:grid;gap:12px;margin-bottom:16px;border:1.5px solid color-mix(in srgb,var(--brand) 30%,#fff)}
.setup__head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.setup__head h2{font-size:20px;font-weight:800}
.setup__head small{color:var(--muted)}
.setup__bar{height:8px;border-radius:99px;background:var(--bg);overflow:hidden}
.setup__bar i{display:block;height:100%;background:var(--brand);border-radius:99px;transition:width .3s}
.setup__list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.setup__row{display:flex;align-items:center;gap:12px;width:100%;text-align:right;background:var(--bg);border:0;border-radius:14px;padding:12px 14px;cursor:pointer;font:inherit;color:var(--ink)}
.setup__row:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.setup__row b{display:block;font-size:16px}
.setup__row small{color:var(--muted);font-size:13.5px}
.setup__chk{flex:none;width:28px;height:28px;border-radius:50%;border:2px solid var(--line);background:#fff;display:grid;place-items:center;color:#fff}
.setup__chk .ic{width:16px;height:16px;stroke-width:3}
.is-done .setup__chk{background:var(--ok);border-color:var(--ok)}
.is-done .setup__row{opacity:.7}
.is-done .setup__row b{text-decoration:line-through}
.help-steps{margin:0;padding-inline-start:22px;display:grid;gap:10px;font-size:17px;line-height:1.5}
.empty--help{display:grid;gap:8px;justify-items:center}
.empty--help b{color:var(--ink);font-size:17px}
.empty--help p{margin:0;max-width:420px}
.nav-more{margin-top:4px}
@media (max-width:899px){.nav-more{display:none}}
[data-help].iconbtn{font-weight:800;font-size:18px;color:var(--ink)}

.newcard{background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 12%,#fff),#fff);border:1.5px solid color-mix(in srgb,var(--brand) 35%,#fff);border-radius:var(--r);padding:14px 16px;margin-bottom:16px;display:grid;gap:8px}
.newcard__head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.newcard h2{font-size:18px;font-weight:800}
.newcard ul{margin:0;padding-inline-start:20px;display:grid;gap:4px}

/* iPhone Safari: date / time / colour fields must stay inside their box */
input[type=date],input[type=time],input[type=datetime-local],input[type=month]{
  -webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0!important;
  box-sizing:border-box;min-height:48px;line-height:1.4;text-align:right;direction:rtl;margin:0}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:right;min-height:1.4em;margin:0}
input[type=date]::-webkit-calendar-picker-indicator{margin-inline-start:6px}
label,.form-grid>*,.stack>*,.card>*,.sheet__body>*{min-width:0}
.card,.sheet__body,.form-grid{max-width:100%}
.btn--wa{color:#0b6a5f!important}.is-done .setup__row{opacity:1!important;background:#eef5ef}.is-done .setup__row small{color:#4f5a52}.mthumb figcaption{background:#7a3b4e;font-size:12.5px}

/* first sign-in: choose a password */
.pwrules{list-style:none;margin:0;padding:0;display:grid;gap:4px;text-align:right;font-size:14px;color:var(--muted)}
.pwrules li::before{content:"○";margin-inline-end:8px}
.pwrules li.ok{color:#1f6e3a;font-weight:700}
.pwrules li.ok::before{content:"✓"}
.notice-ok{background:var(--ok-bg);color:#1f6e3a;border-radius:10px;padding:10px;font-weight:600;margin:0}

/* alerts */
.attn{background:#fff4f2;border:1.5px solid #efb3aa;border-radius:var(--r);padding:14px 16px;margin-bottom:16px;display:grid;gap:8px}
.attn h2{font-size:18px;font-weight:800;color:#8f2b1f}
.attn ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.attn a{display:flex;justify-content:space-between;gap:10px;background:#fff;border-radius:12px;padding:10px 12px;flex-wrap:wrap}
.attn span{color:#8f2b1f;font-weight:700;font-size:14px}
.chip--stuck{background:#fdecea;color:#8f2b1f;font-weight:700}
.btn--wa span{margin-inline-start:6px}

/* welcome screen (first visit) */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wz{position:fixed;inset:0;z-index:300;background:var(--bg,#faf7f4);overflow-y:auto;display:flex;justify-content:center;align-items:flex-start;padding:16px}
.wz__box{width:100%;max-width:520px;display:grid;gap:14px;padding:24px 0 32px;text-align:center}
.wz__box form{text-align:start}
.wz h2{font-size:28px;font-weight:800;line-height:1.25;outline:0}
.wz__lead{font-size:17px;line-height:1.5;color:#333;margin:0}
.wz__party{font-size:60px}
.wz__fields{display:grid;gap:6px}
.wz__logo{display:grid;place-items:center;min-height:140px;border:2px dashed #cfc7bf;border-radius:var(--r);background:#fff;padding:12px}
.wz__logo img{max-width:100%;max-height:170px;object-fit:contain}
.wz__ph{font-size:52px}
.wz__file{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-align:center}
.wz__file:focus-within{outline:3px solid var(--brand);outline-offset:2px}
@media(min-width:700px){.wz{align-items:center}.wz__box{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:32px}}

/* little guides */
.tour{position:fixed;inset:0;z-index:400}
.tour__hole{position:fixed;border-radius:12px;box-shadow:0 0 0 9999px rgba(20,16,12,.62);outline:2px solid #fff;outline-offset:-2px;pointer-events:none}
.tour__tip{position:fixed;width:min(340px,calc(100vw - 24px));background:#fff;border-radius:18px;padding:16px;box-shadow:0 12px 40px rgba(0,0,0,.35);display:grid;gap:8px}
.tour__tip h3{font-size:19px;font-weight:800;margin:0;outline:0}
.tour__tip p{margin:0;font-size:16px;line-height:1.5;color:#333}
.tour__n{font-size:13px;font-weight:700;color:#555}
.tour__act{display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
.tour__act .btn{min-height:44px}
.tour__skip{background:none;border:0;color:#555;text-decoration:underline;font:inherit;min-height:44px;cursor:pointer}


.sheet-wrap--top{z-index:150}
.stat--ready{border-color:var(--ok)}
.newcol{margin-top:8px}
.newcat__row input[type=color]{flex:none;width:48px;min-width:48px;padding:2px;height:44px}
