/* Mini Storefront — CraftCart e-commerce. Namespaced .sf */
* { box-sizing: border-box; }
body { margin: 0; }
.sf {
    --bg: #fffaf4; --panel: #ffffff; --line: #f0e6da; --ink: #1c1917; --muted: #78716c;
    --brand: #ea580c; --brand-ink: #c2410c; --accent: #0d9488;
    --ok: #16a34a; --warn: #d97706; --danger: #dc2626;
    --shadow: 0 12px 32px -18px rgba(234,88,12,.28);
    min-height: calc(100vh - 44px);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: radial-gradient(1000px 420px at 88% -10%, rgba(234,88,12,.07), transparent), var(--bg);
    color: var(--ink);
}
.sf-btn { border: 0; cursor: pointer; border-radius: .6rem; padding: .6rem 1rem; font: 600 .88rem inherit; background: var(--brand); color: #fff; transition: transform .1s, background .15s; white-space: nowrap; }
.sf-btn:hover { transform: translateY(-1px); }
.sf-btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.sf-btn.ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.sf-btn.sm { padding: .42rem .75rem; font-size: .8rem; }
.sf-btn:disabled { opacity: .45; cursor: not-allowed; }
.sf-link { border: 0; background: transparent; color: var(--brand-ink); font: 600 .8rem inherit; cursor: pointer; }
.sf-link:hover { text-decoration: underline; }
.sf-h2 { margin: 0 0 1.1rem; font-size: 1.25rem; }

/* Topbar */
.sf-topbar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: var(--panel); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; flex-wrap: wrap; }
.sf-brand { display: flex; align-items: center; gap: .6rem; }
.sf-logo { font-size: 1.6rem; }
.sf-brand b { display: block; font-size: 1.05rem; }
.sf-brand small { color: var(--muted); font-size: .72rem; }
.sf-nav { display: flex; gap: .25rem; margin: 0 auto; flex-wrap: wrap; }
.sf-navbtn { border: 0; background: transparent; color: var(--muted); padding: .5rem .8rem; border-radius: .6rem; font: 600 .85rem inherit; cursor: pointer; }
.sf-navbtn:hover { color: var(--ink); background: #fdf1e7; }
.sf-navbtn.active { background: var(--brand); color: #fff; }
.sf-top-actions { display: flex; align-items: center; gap: .5rem; }
.sf-icon-btn { border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: .5rem .7rem; font: 600 .82rem inherit; cursor: pointer; }
.sf-icon-btn.cart { background: var(--brand); color: #fff; border-color: var(--brand); }
.sf-icon-btn span { font-variant-numeric: tabular-nums; }

.sf-view { max-width: 1400px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }
.sf-view[hidden] { display: none !important; }
.sf-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); }
.sf-card h3 { margin: 0 0 1rem; font-size: .95rem; }
.sf-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sf-card-head h3 { margin: 0; }
.sf-card-head span { color: var(--muted); font-size: .8rem; }

/* SHOP */
.sf-shop-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .sf-shop-grid { grid-template-columns: 1fr; } }
.sf-filters { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); position: sticky; top: 76px; }
@media (max-width: 820px) { .sf-filters { position: static; } }
.sf-filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.sf-filter-head h3 { margin: 0; font-size: .95rem; }
.sf-filters input[type=text] { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: #fdfaf6; margin-bottom: 1rem; }
.sf-fgroup { margin-bottom: 1rem; }
.sf-fgroup > span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: .4rem; }
.sf-fgroup > span b { color: var(--ink); }
.sf-fgroup input[type=range] { width: 100%; accent-color: var(--brand); }
.sf-cats { display: flex; flex-direction: column; gap: .1rem; }
.sf-cat { border: 0; background: transparent; text-align: left; padding: .4rem .55rem; border-radius: .5rem; font: 600 .82rem inherit; color: var(--muted); cursor: pointer; }
.sf-cat:hover { background: #fdf1e7; color: var(--ink); }
.sf-cat.active { background: #fed7aa; color: var(--brand-ink); }
.sf-rating-pick { display: flex; gap: .3rem; }
.sf-rating-pick button { border: 1px solid var(--line); background: #fdfaf6; border-radius: .5rem; padding: .3rem .55rem; font: 600 .78rem inherit; cursor: pointer; color: var(--muted); }
.sf-rating-pick button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.sf-check { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.sf-check input { accent-color: var(--brand); }

.sf-shop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sf-shop-head span { font-weight: 700; font-size: .9rem; }
.sf-shop-head select { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.sf-prod { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sf-prod .img { position: relative; height: 140px; display: grid; place-items: center; font-size: 3rem; color: #fff; }
.sf-prod .img .badges { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.sf-prod .img .pb { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: .12rem .4rem; border-radius: .3rem; background: var(--panel); color: var(--ink); }
.sf-prod .img .pb.sale { background: var(--danger); color: #fff; }
.sf-prod .img .pb.best { background: var(--warn); color: #fff; }
.sf-prod .img .pb.low { background: #1c1917; color: #fff; }
.sf-prod .img .wish { position: absolute; top: .5rem; right: .5rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; font-size: .95rem; line-height: 1; }
.sf-prod .img .wish.on { color: var(--danger); }
.sf-prod .b { padding: .8rem .9rem 1rem; flex: 1; display: flex; flex-direction: column; }
.sf-prod .cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.sf-prod h3 { margin: .2rem 0 .3rem; font-size: .92rem; line-height: 1.3; }
.sf-prod .rate { font-size: .76rem; color: var(--warn); font-weight: 700; }
.sf-prod .rate span { color: var(--muted); font-weight: 400; }
.sf-prod .prow { display: flex; align-items: baseline; gap: .4rem; margin: .4rem 0; }
.sf-prod .price { font-weight: 800; font-size: 1.05rem; }
.sf-prod .compare { color: var(--muted); text-decoration: line-through; font-size: .78rem; }
.sf-prod .off { color: var(--danger); font-size: .74rem; font-weight: 700; }
.sf-prod .stock { font-size: .72rem; color: var(--muted); margin-bottom: .5rem; }
.sf-prod .stock.low { color: var(--warn); font-weight: 600; }
.sf-prod .stock.out { color: var(--danger); font-weight: 600; }
.sf-prod .add { margin-top: auto; }

.sf-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: 1rem; }

/* PRODUCT DETAIL */
.sf-back { border: 0; background: transparent; color: var(--brand-ink); font: 600 .85rem inherit; cursor: pointer; margin-bottom: 1rem; }
.sf-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .sf-detail-grid { grid-template-columns: 1fr; } }
.sf-dgallery { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.sf-dgallery .main { aspect-ratio: 1; display: grid; place-items: center; font-size: 6rem; color: #fff; }
.sf-dgallery .thumbs { display: flex; gap: .4rem; padding: .5rem; background: var(--panel); }
.sf-dgallery .thumbs .t { width: 3rem; height: 3rem; border-radius: .4rem; display: grid; place-items: center; font-size: 1.2rem; color: #fff; cursor: pointer; opacity: .5; }
.sf-dgallery .thumbs .t.on { opacity: 1; outline: 2px solid var(--brand); }
.sf-dinfo h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.sf-dinfo .rate { color: var(--warn); font-weight: 700; font-size: .9rem; }
.sf-dinfo .rate span { color: var(--muted); font-weight: 400; }
.sf-dinfo .prow { display: flex; align-items: baseline; gap: .6rem; margin: .8rem 0; }
.sf-dinfo .price { font-size: 1.8rem; font-weight: 800; color: var(--brand-ink); }
.sf-dinfo .compare { color: var(--muted); text-decoration: line-through; }
.sf-dinfo .off { background: var(--danger); color: #fff; font-size: .74rem; font-weight: 700; padding: .1rem .5rem; border-radius: .3rem; }
.sf-dinfo .desc { color: var(--muted); line-height: 1.6; font-size: .9rem; }
.sf-variant { margin: 1.2rem 0; }
.sf-variant .vl { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.sf-variant .vopts { display: flex; gap: .4rem; flex-wrap: wrap; }
.sf-vopt { border: 1.5px solid var(--line); background: var(--panel); border-radius: .5rem; padding: .4rem .8rem; font: 600 .82rem inherit; cursor: pointer; }
.sf-vopt.sel { border-color: var(--brand); background: #fed7aa; color: var(--brand-ink); }
.sf-qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.sf-qty { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: .6rem; padding: .3rem .5rem; }
.sf-qty button { width: 1.7rem; height: 1.7rem; border: 0; border-radius: .4rem; background: var(--brand); color: #fff; cursor: pointer; font-weight: 700; }
.sf-dactions { display: flex; gap: .6rem; }
.sf-dspecs { margin: 1.5rem 0; }
.sf-dspecs h3 { font-size: .95rem; margin: 0 0 .6rem; }
.sf-dspecs .row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.sf-dspecs .row span:first-child { color: var(--muted); }
.sf-dreviews { margin-top: 1rem; }
.sf-review { border: 1px solid var(--line); border-radius: .7rem; padding: .8rem .9rem; margin-bottom: .6rem; background: #fdfaf6; }
.sf-review .rh { display: flex; justify-content: space-between; font-size: .84rem; }
.sf-review .rh b { }
.sf-review .rh .stars { color: var(--warn); }
.sf-review .rt { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.sf-related { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; margin-top: 1rem; }
.sf-related .r { min-width: 150px; background: #fdfaf6; border: 1px solid var(--line); border-radius: .7rem; padding: .7rem; cursor: pointer; text-align: center; }
.sf-related .r:hover { border-color: var(--brand); }
.sf-related .r .e { font-size: 1.8rem; }
.sf-related .r b { display: block; font-size: .78rem; margin: .3rem 0 .1rem; }
.sf-related .r .p { color: var(--brand-ink); font-weight: 700; font-size: .82rem; }

/* CART DRAWER */
.sf-drawer-overlay { position: fixed; inset: 0; background: rgba(28,25,23,.5); display: flex; justify-content: flex-end; z-index: 120; }
.sf-drawer-overlay[hidden] { display: none; }
.sf-drawer-card { width: min(30rem, 100%); height: 100%; background: var(--panel); display: flex; flex-direction: column; animation: sfslide .25s ease; }
@keyframes sfslide { from { transform: translateX(30px); opacity: 0; } }
.sf-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.sf-drawer-head b { font-size: 1.1rem; }
.sf-drawer-head button { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.sf-drawer-body { padding: 1.5rem; overflow: auto; flex: 1; }
.sf-ci { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.sf-ci .ico { width: 3rem; height: 3rem; border-radius: .5rem; display: grid; place-items: center; font-size: 1.4rem; color: #fff; flex: none; }
.sf-ci .n { flex: 1; }
.sf-ci .n b { display: block; font-size: .88rem; }
.sf-ci .n small { color: var(--muted); font-size: .76rem; }
.sf-ci .qc { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.sf-ci .qc button { width: 1.5rem; height: 1.5rem; border: 1px solid var(--line); background: #fdfaf6; border-radius: .4rem; cursor: pointer; font-weight: 700; }
.sf-ci .rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }
.sf-ci .lp { font-weight: 700; }

/* CHECKOUT */
.sf-checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .sf-checkout-grid { grid-template-columns: 1fr; } }
.sf-co-steps { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.sf-co-step { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); padding-bottom: .5rem; border-bottom: 3px solid var(--line); }
.sf-co-step.active { color: var(--brand-ink); border-bottom-color: var(--brand); font-weight: 700; }
.sf-co-step.done { color: var(--ok); border-bottom-color: var(--ok); }
.sf-co-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
.sf-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.sf-field span { text-transform: uppercase; font-size: .66rem; }
.sf-field input, .sf-field select, .sf-field textarea { font: 400 .9rem inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: #fdfaf6; }
.sf-field-row { display: flex; gap: .6rem; }
.sf-field-row .sf-field { flex: 1; }
.sf-ship-opt { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: .6rem; padding: .7rem .9rem; margin-bottom: .5rem; cursor: pointer; }
.sf-ship-opt.sel { border-color: var(--brand); background: #fed7aa33; }
.sf-ship-opt input { accent-color: var(--brand); }
.sf-ship-opt .sname { flex: 1; font-weight: 600; font-size: .88rem; }
.sf-ship-opt .sname small { display: block; color: var(--muted); font-weight: 400; }
.sf-pay-opt { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: .6rem; padding: .7rem .9rem; margin-bottom: .5rem; cursor: pointer; font-size: .88rem; }
.sf-pay-opt.sel { border-color: var(--brand); background: #fed7aa33; }
.sf-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); position: sticky; top: 76px; }
.sf-summary h3 { margin: 0 0 1rem; font-size: .95rem; }
.sf-summary .sli { display: flex; justify-content: space-between; font-size: .82rem; padding: .2rem 0; color: var(--muted); }
.sf-summary .sli b { color: var(--ink); }
.sf-coupon { display: flex; gap: .5rem; margin: .8rem 0; }
.sf-coupon input { flex: 1; font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: .5rem; text-transform: uppercase; }
.sf-coupon button { border: 0; background: #1c1917; color: #fff; border-radius: .5rem; padding: 0 .9rem; font: 600 .82rem inherit; cursor: pointer; }
.sf-coupon-msg { font-size: .78rem; margin: -.4rem 0 .6rem; }
.sf-coupon-msg.ok { color: var(--ok); } .sf-coupon-msg.bad { color: var(--danger); }
.sf-totals { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.sf-totals .r { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); padding: .2rem 0; }
.sf-totals .r.grand { color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.sf-place { width: 100%; margin-top: 1rem; }

/* Confirmation */
.sf-confirm { text-align: center; padding: 1rem 0; }
.sf-confirm .check { width: 4rem; height: 4rem; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; animation: sfpop .4s ease; }
@keyframes sfpop { from { transform: scale(0); } }
.sf-confirm h2 { margin: 0 0 .3rem; }
.sf-confirm p { color: var(--muted); margin: 0; }
.sf-invoice { border: 1px solid var(--line); border-radius: .8rem; padding: 1.2rem; margin: 1.5rem 0; text-align: left; font-size: .85rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.sf-invoice h4 { margin: 0 0 .8rem; display: flex; justify-content: space-between; }
.sf-invoice .li { display: flex; justify-content: space-between; padding: .25rem 0; }
.sf-invoice .li.tot { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .5rem; font-weight: 800; }

/* ORDERS + tracking */
.sf-order { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.sf-order .oh { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .6rem; }
.sf-order .oh b { font-size: 1rem; }
.sf-order .oh .st { font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; }
.sf-order .oh .st.paid { background: #dbeafe; color: #1d4ed8; }
.sf-order .oh .st.packed { background: #fef9c3; color: #a16207; }
.sf-order .oh .st.shipped { background: #fed7aa; color: var(--brand-ink); }
.sf-order .oh .st.delivered { background: #dcfce7; color: var(--ok); }
.sf-order .oitems { display: flex; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; }
.sf-order .oi { display: flex; align-items: center; gap: .4rem; background: #fdfaf6; border: 1px solid var(--line); border-radius: .5rem; padding: .3rem .6rem; font-size: .8rem; }
.sf-order .oi .e { font-size: 1rem; }
.sf-order .ometa { font-size: .8rem; color: var(--muted); }
.sf-track { display: flex; gap: 0; margin-top: 1rem; }
.sf-track .ts { flex: 1; text-align: center; position: relative; }
.sf-track .ts::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.sf-track .ts:first-child::before { display: none; }
.sf-track .ts.done::before { background: var(--ok); }
.sf-track .ts .d { width: 20px; height: 20px; border-radius: 50%; background: var(--line); margin: 0 auto .3rem; position: relative; z-index: 1; }
.sf-track .ts.done .d { background: var(--ok); }
.sf-track .ts.current .d { background: var(--brand); box-shadow: 0 0 0 4px rgba(234,88,12,.2); }
.sf-track .ts small { font-size: .7rem; color: var(--muted); }
.sf-track .ts.current small, .sf-track .ts.done small { color: var(--ink); }

/* SELLER */
.sf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.sf-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); }
.sf-kpi b { font-size: 1.7rem; font-weight: 800; display: block; }
.sf-kpi small { color: var(--muted); font-size: .78rem; }
.sf-kpi .delta { color: var(--ok); font-size: .74rem; font-weight: 600; }
.sf-seller-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .sf-seller-grid { grid-template-columns: 1fr; } }
.sf-card-wide { grid-column: 1 / -1; }
#sf-saleschart { width: 100%; height: 200px; }
.sf-funnel-row { display: flex; align-items: center; gap: .8rem; padding: .4rem 0; font-size: .83rem; }
.sf-funnel-row .fn { width: 6rem; color: var(--muted); flex: none; }
.sf-funnel-row .fb { flex: 1; height: 16px; background: var(--line); border-radius: 4px; overflow: hidden; }
.sf-funnel-row .fb i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #fb923c); }
.sf-funnel-row .fv { width: 5rem; text-align: right; }
#sf-catdonut { width: 130px; height: 130px; display: block; margin: 0 auto; }
.sf-donut-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; font-size: .76rem; color: var(--muted); margin-top: .6rem; }
.sf-donut-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.sf-donut-legend i { width: .7rem; height: .7rem; border-radius: 3px; }
.sf-fulfil-row, .sf-inv-row { display: grid; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; align-items: center; }
.sf-fulfil-row { grid-template-columns: 1fr auto auto auto; }
.sf-inv-row { grid-template-columns: 1fr auto auto auto; }
.sf-fulfil-row:last-child, .sf-inv-row:last-child { border-bottom: 0; }
.sf-fulfil-row.head, .sf-inv-row.head { font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sf-fulfil-row .st { font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; }
.sf-fulfil-row .st.paid { background: #dbeafe; color: #1d4ed8; }
.sf-fulfil-row .st.packed { background: #fef9c3; color: #a16207; }
.sf-fulfil-row .st.shipped { background: #fed7aa; color: var(--brand-ink); }
.sf-fulfil-row .st.delivered { background: #dcfce7; color: var(--ok); }
.sf-inv-row .lvl { display: flex; align-items: center; gap: .5rem; }
.sf-inv-row .lvl .bar { width: 5rem; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.sf-inv-row .lvl .bar i { display: block; height: 100%; background: var(--ok); }
.sf-inv-row .lvl.low .bar i { background: var(--warn); }
.sf-inv-row .lvl.out .bar i { background: var(--danger); }
.sf-inv-row .adj { display: flex; gap: .3rem; }
.sf-inv-row .adj button { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line); background: var(--panel); border-radius: .4rem; cursor: pointer; font-weight: 700; }

/* Toast */
.sf-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: #1c1917; color: #fff; padding: .7rem 1.1rem; border-radius: .7rem; font-size: .88rem; z-index: 200; box-shadow: 0 15px 40px -12px rgba(0,0,0,.4); max-width: 90vw; }
.sf-toast[hidden] { display: none; }
@media print { .demo-chrome, .sf-topbar, .sf-nav { display: none !important; } }
