/* Bikini Bottom: vivid illustrated surroundings, quiet readable working surfaces. */
:root{--green:#155977;--green-dark:#0c3d5b;--lime:#ffed62;--muted:#426276;--line:#153d62;--surface:#fffef3;--orange:#923519;--ink:#153d62;--yellow:#ffed62;--sea:#78dfea;--pink:#ffadbf;--sea-art:url("./sea-background.png");background:#78dfea;color:var(--ink)}
body{background:#78dfea;color:var(--ink)}
/* A separately composited layer avoids mobile background-attachment repainting.
   lvh stays constant while browser chrome expands or collapses during scrolling. */
body::before{content:'';position:fixed;top:0;left:0;width:100%;height:100vh;height:100lvh;background-image:var(--sea-art);background-size:cover;background-position:center bottom;background-repeat:no-repeat;pointer-events:none;z-index:0;transform:translateZ(0)}
button,input,select{color:var(--ink)}button:focus-visible,a:focus-visible{outline:3px solid #c53464;outline-offset:4px}h1,h2,h3,.brand,.summary-total>strong,.basket-amount>strong{font-family:"Trebuchet MS",-apple-system,BlinkMacSystemFont,sans-serif}h1{font-weight:900;letter-spacing:-.6px;line-height:1.3}h2,h3{font-weight:800}.icon{stroke-width:2}
.shell{position:relative;z-index:1;isolation:isolate}.workspace{position:relative}.sidebar{width:244px;padding:28px 20px 24px;background:#dffaffed;border-right:3px solid var(--ink);box-shadow:5px 0 0 #154c6720}.workspace{margin-left:244px;width:calc(100% - 244px)}
.brand{display:block;position:relative;padding:17px 7px 16px 53px;margin:0 -5px;background:var(--yellow);border:3px solid var(--ink);border-radius:16px 13px 18px 11px;box-shadow:4px 5px 0 var(--ink);transform:rotate(-2deg);font-size:1.08rem;letter-spacing:-.65px;font-weight:900}.brand-icon{position:absolute;left:9px;top:17px;width:35px;height:40px;background:transparent;border:0;font-size:31px;line-height:1;transform:rotate(8deg)}.brand-caption{font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:.75rem;line-height:1.5;font-weight:600;color:#355c65;letter-spacing:0;margin-top:5px}.navigation{margin-top:35px;gap:14px}.nav-item{font-weight:750;font-size:1rem;border:2px solid transparent;min-height:52px;color:var(--ink);border-radius:11px}.nav-item:hover{background:#bceff1}.nav-item.active{background:#ffed62;border-color:var(--ink);color:var(--ink);box-shadow:3px 3px 0 var(--ink);transform:rotate(-1deg)}.nav-item:nth-child(2).active{background:#ffb6cb;transform:rotate(1deg)}.nav-item:nth-child(3).active{background:#cbb7f5}.nav-item .icon{width:23px;height:23px}.side-footer{padding:19px 1px 0;color:#466676;font-size:.8125rem}.device-label{color:var(--ink);font-weight:750}.side-footer p{margin:8px 0 10px}.side-footer .text-button{font-size:.875rem;text-decoration:underline;text-underline-offset:4px}.sidebar-art{display:block;width:100%;height:180px;object-fit:contain;object-position:center;margin:0 0 13px;filter:drop-shadow(0 5px 0 #153d621a)}
.topbar{background:#dffaffcf;border-bottom:2px solid #153d6240;height:74px;padding:0 38px;backdrop-filter:blur(8px)}.breadcrumb{font-size:.875rem;font-weight:650;color:#315d76}.breadcrumb>span{color:#5a93a3}.breadcrumb strong{font-weight:600;color:#315d76}.local-label{background:#fffef2;border:2px solid var(--ink);border-radius:30px;padding:6px 10px;color:var(--ink);font-size:.75rem;font-weight:650}.local-label .icon{width:15px;height:15px}
main{padding:32px 38px 30px;max-width:1390px}.page-heading{margin-bottom:23px}.eyebrow{display:table;background:#e4fbffeb;border:1px solid #327e9955;border-radius:6px;padding:4px 7px;color:#2c526a;font-size:.75rem;font-weight:650;letter-spacing:.5px;margin-bottom:10px}.heading-actions .button{background:#f3feff}.purchase-avatar{background:#fffef3;border:3px solid var(--ink);box-shadow:3px 3px 0 var(--ink);border-radius:15px;transform:rotate(-4deg);width:56px;height:57px}.purchase-avatar:hover{background:var(--yellow);transform:rotate(0deg)}.purchase-title-text{font-weight:900;color:#153d62;text-shadow:0 2px 0 #ffffffb3}.title-edit.icon-button{color:var(--ink);background:#e4fbff99;border:1px solid #3a819b66;min-height:34px;min-width:34px;border-radius:9px;margin-left:5px}.title-edit.icon-button:hover{background:#fff183}
.button{border:2px solid var(--ink);border-radius:11px;min-height:46px;box-shadow:3px 3px 0 var(--ink);font-size:.875rem;font-weight:750;white-space:normal;text-align:center;background:#fffef3;transition:transform .12s,box-shadow .12s,background .12s}.button.primary{background:var(--yellow);border-color:var(--ink);color:var(--ink);box-shadow:3px 4px 0 var(--ink)}.button.primary:hover:not(:disabled){background:#ffe345;transform:translateY(-1px)}.button.secondary{background:#e3faff}.button.secondary:hover:not(:disabled){background:#c0f1ff}.button:active:not(:disabled),.button.primary:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.button:disabled{opacity:1;color:#6b8390;background:#d5eced;border-color:#7795a4;box-shadow:2px 2px 0 #7795a4}.text-button{color:#155977;font-weight:700}.icon-button{color:#416781;min-width:44px;min-height:44px}.icon-button:hover{background:#dff4f9}.menu-button{font-weight:650;min-height:51px}.menu-button:hover{background:#e1f4fa}.danger{color:#a02f40}
.summary{background:#fff18a;color:var(--ink);border:3px solid var(--ink);border-radius:17px 17px 12px 12px;box-shadow:5px 6px 0 var(--ink);padding:26px 26px 28px;gap:22px;overflow:hidden}.summary:after{content:'';position:absolute;bottom:7px;left:16px;right:16px;border-bottom:2px dashed #153d624d;pointer-events:none}.summary-total>strong{color:var(--ink);font-size:2.65rem;font-weight:900;letter-spacing:-1.1px;overflow-wrap:anywhere}.summary-label{color:#3b5861;font-size:.875rem;font-weight:700}.summary-sub{color:#536b62;font-size:.75rem}.summary-metric{border-left:2px dashed #153d624d;padding-left:20px}.summary-metric>span{color:#3c5865;font-size:.8125rem;font-weight:650}.summary-metric>strong{color:var(--ink);font-size:1.4rem;font-weight:800;letter-spacing:-.5px}.summary-metric.has-over>strong{color:#a03636}.summary-metric.has-over>span{color:#8a3540}.summary-exact strong{color:#1a654f;font-size:1.05rem}.summary-balance{gap:18px}
.purchase-toolbar{padding:15px 17px;margin:26px 0 25px;border:2px solid var(--ink);border-radius:14px;background:#e9fcffd9;box-shadow:3px 3px 0 #153d6266;gap:15px}.mode-control{gap:13px}.mode-control label{font-size:.9375rem;font-weight:750;color:var(--ink)}.mode-control p{color:#486776;font-size:.8125rem;line-height:1.5}.mode-control label .icon{color:#206584}.switch{width:47px;height:29px;padding:3px;border:2px solid var(--ink);background:#b0ccd7;box-shadow:1px 2px 0 #153d6255}.switch span{width:19px;height:19px;background:#fffef2;border:1px solid var(--ink);box-shadow:1px 1px 0 var(--ink)}.switch.on{background:#59cdb6}.switch.on span{transform:translateX(18px)}.section-title{margin-bottom:17px}.section-title h2{font-size:1.12rem;font-weight:850;color:var(--ink)}.section-title h2 span{background:#fff084;color:var(--ink);border:2px solid var(--ink);font-weight:800;border-radius:7px;min-width:26px;height:26px}.desktop-hint{color:#214d67;font-size:.8125rem;background:#e9fbffbe;border-radius:5px;padding:3px 6px}
.panel{background:#fffef3;border:3px solid var(--ink);border-radius:16px;box-shadow:4px 5px 0 var(--ink)}.basket{--accent:#995423;--pale:#ffe8a0;overflow:hidden}.basket.color-1{--accent:#9b3b66;--pale:#ffc5d9}.basket.color-2{--accent:#087166;--pale:#a7e9d2}.basket.color-3{--accent:#68519c;--pale:#ddd0ff}.basket-header{padding:15px 16px 13px;background:var(--pale);border-bottom:2px solid var(--ink);gap:11px}.basket-number{background:#fffef3;border:2px solid var(--ink);border-radius:10px;color:var(--ink);width:40px;height:43px;font-size:1rem;font-weight:850;box-shadow:2px 2px 0 var(--ink);transform:rotate(-4deg)}.color-1 .basket-number,.color-3 .basket-number{transform:rotate(4deg)}.basket-title h3{font-size:1rem;font-weight:850}.limit-label{font-size:.8125rem;font-weight:600;color:#385a67;min-height:30px}.limit-label .icon{height:13px;width:13px}.basket-header>.icon-button{color:var(--ink)}.basket-header>.icon-button:hover{background:#ffffff70}.basket-amount{padding:18px 17px 12px;gap:10px;flex-wrap:wrap}.basket-amount strong{font-size:1.75rem;font-weight:850;color:var(--ink)}.basket-amount>span{font-size:.8125rem;font-weight:650;color:#416573}.basket-amount .over-tag{background:#ffded6;color:#8d3030;border:1px solid #b7655c;padding:5px 8px;border-radius:7px}.meter{height:10px;margin:0 17px 17px;background:#e8eeea;border:2px solid var(--ink);border-radius:8px;overflow:hidden}.meter span{background:#4bc8b0;border-radius:0;transition:width .25s}.color-1 .meter span{background:#f791b7}.color-2 .meter span{background:#40c8cd}.color-3 .meter span{background:#ac90ea}.over-limit .meter span{background:#ee9173}.product-list{border-top:2px dashed #153d622a;min-height:156px}.product{background:#fffef5;border-bottom:1px dashed #4167814d;padding:13px 11px 13px 7px;min-height:80px;gap:9px}.product:nth-child(even){background:#f5faf5}.product-list .product:first-child:last-child{border-bottom:0}.product-name{font-size:1rem;font-weight:650;color:#1e3e55;line-height:1.4}.product-price{font-size:1rem;font-weight:800;color:#153d62}.product-meta{font-size:.75rem;color:#5a7380}.product-symbol{display:grid;width:34px;height:36px;background:#d9f3f3;border:1px solid #648da1;border-radius:9px;color:#265d79;flex-shrink:0}.product-symbol .icon{width:18px;height:18px}.drag-handle{width:27px;height:48px;color:#5a8194}.drag-handle .icon{width:18px}.product .item-menu{min-width:40px;width:40px;min-height:44px}.basket-empty{height:161px;color:#326582}.basket-empty>.icon{width:35px;height:35px;color:#4f94aa}.basket-empty>span{font-size:1rem;font-weight:700}.basket-empty>p{font-size:.8125rem;color:#63808d;max-width:230px;line-height:1.5}.basket-footer{border-top:2px dashed #153d6240;background:#fff4bf;padding:12px 15px;font-size:.75rem;color:#49616b;align-items:center}.basket-footer>span:last-child{text-align:right}.basket-footer .icon{height:14px;width:14px}.purchase-bottom{margin-top:28px;gap:20px}.purchase-bottom>p{color:#285873;background:#e4fbffc7;border:1px solid #5293a466;border-radius:8px;padding:8px 10px;font-size:.8125rem;line-height:1.5}.add-product{background:var(--yellow);min-height:50px;min-width:210px;font-size:1rem}.workspace-footer{padding:22px 38px;color:#285571;font-size:.75rem;font-weight:650;text-shadow:0 1px 0 white}
.history-list{gap:19px}.history-card{padding:22px 21px;gap:16px;transition:transform .15s,box-shadow .15s}.history-card:nth-child(3n+2){background:#fff0f4}.history-card:nth-child(3n+3){background:#effcff}.history-card:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:5px 7px 0 var(--ink)}.history-symbol{border:2px solid var(--ink);background:#ffed80;border-radius:12px;box-shadow:2px 2px 0 var(--ink);width:52px;height:55px}.history-card:nth-child(2n) .history-symbol{background:#c9eced}.history-info>strong{font-family:"Trebuchet MS",sans-serif;font-size:1.05rem;font-weight:800;color:var(--ink)}.history-info>span{font-size:.8125rem;color:#526e7c}.history-amount{max-width:40%;flex-shrink:0;gap:7px}.history-amount>strong{font-size:1.3rem;font-weight:850;color:var(--ink)}.history-amount>span{font-size:.8125rem;color:#426478;line-height:1.45}.history-card>.icon{color:#356e86}.saved-label{color:#24614f;background:#e3f8e5;border:1px solid #5e9e80;border-radius:8px;padding:6px 8px;font-weight:650;font-size:.8125rem}.back-link{background:#e5fbffb3;border-radius:7px;padding:7px 10px;margin-bottom:18px}.empty-state{padding:40px 25px;position:relative}.empty-state h2{font-size:1.35rem;font-weight:850}.empty-state p{color:#4b6a7a;font-size:1rem;line-height:1.7}.empty-art{width:230px;height:220px;object-fit:contain;margin:0;filter:drop-shadow(0 5px 0 #153d621a)}.empty-state>.empty-icon{color:var(--ink);background:#ffed8b;border:2px solid var(--ink);border-radius:13px;padding:11px;width:58px;height:58px}
.settings-grid{gap:25px}.settings-panel{padding:27px 25px;background:#fffef3}.settings-panel:nth-child(2){background:#fff0f4}.settings-icon{width:48px;height:49px;border:2px solid var(--ink);box-shadow:2px 3px 0 var(--ink);border-radius:11px;background:#ffe974;color:var(--ink);transform:rotate(-4deg)}.settings-panel:nth-child(2) .settings-icon{background:#b1eaf3;transform:rotate(4deg)}.settings-panel h2{font-size:1.25rem}.settings-panel p{color:#4b6575;font-size:1rem;line-height:1.7}.settings-panel .note{font-size:.875rem}.settings-panel h3{font-size:1rem;font-weight:800}.settings-divider{height:0;border-bottom:2px dashed #6d899780;background:none;margin:26px 0}.settings-panel #offline-status{font-size:.8125rem}.setting-input{gap:11px}.setting-input .button{box-shadow:2px 3px 0 var(--ink)}
input,select{border:2px solid #517388;background:#fff;border-radius:10px;min-height:49px;color:#183e5a;padding:11px 12px;box-shadow:inset 0 2px 0 #153d620c;font-size:1rem}input:focus,select:focus{outline:3px solid #ef90b4;outline-offset:2px;border-color:var(--ink)}input::placeholder{color:#8097a4}label{font-weight:650;font-size:.9375rem;color:#284e66}.note{color:#4e6d7e;font-size:.875rem;line-height:1.7}.form-error{color:#a82742;font-weight:600}dialog{border:3px solid var(--ink);border-radius:21px 17px 23px 16px;background:#fffef2;color:var(--ink);padding:27px;box-shadow:7px 8px 0 var(--ink),0 30px 100px #12385650;scrollbar-color:#8abacb #fffef2}dialog::backdrop{background:#1045718c;backdrop-filter:blur(4px)}.dialog-header{border-bottom:2px dashed #6f98a366;padding-bottom:17px;margin-bottom:20px}.dialog-header h2{font-family:"Trebuchet MS",sans-serif;font-size:1.4rem;font-weight:850}.dialog-description{font-size:1rem;color:#426377}.dialog-header .icon-button{background:#d9f3f5;color:var(--ink);border:2px solid var(--ink);border-radius:10px;margin:-4px -6px -4px 0;min-width:36px;min-height:36px;padding:6px}.dialog-footer{gap:14px;margin-top:25px}.dialog-footer .button{min-height:48px}.segmented{border:2px solid var(--ink);background:#cbf0f5;padding:4px;gap:6px;border-radius:12px}.segmented button{font-size:.9375rem;color:#375d76;font-weight:750;min-height:43px;border:2px solid transparent;border-radius:7px}.segmented button.selected{border-color:var(--ink);background:#ffed7d;color:var(--ink);box-shadow:2px 2px 0 var(--ink)}.item-preview{background:#fff2ac;border:2px dashed #977a39;color:#6a5426;padding:14px;border-radius:11px;font-size:.875rem;font-weight:600;line-height:1.7}.welcome-symbol{background:#ffed62;border:3px solid var(--ink);color:var(--ink);box-shadow:3px 3px 0 var(--ink);transform:rotate(-4deg);border-radius:14px}.install-instructions p{color:#4b6b7b;font-size:1rem}.install-instructions h3{font-weight:850}.animal-picker legend{font-weight:750;font-size:.9375rem}.animal-choice>span:first-of-type{background:#daf3f4;border:2px solid #99bbc5;border-radius:11px;min-height:49px}.animal-choice input:checked+span{background:#ffeb76;border-color:var(--ink);box-shadow:2px 2px 0 var(--ink)}.animal-choice:hover>span:first-of-type{background:#ffefa3}.animal-choice input:focus-visible+span{outline:3px solid #d7648f}.random-name{font-size:.875rem;text-decoration:underline;text-underline-offset:4px}.animal-emoji{text-shadow:none}.error-banner{background:#fff0d5;border:2px solid #945829;box-shadow:3px 3px 0 #945829;color:#784422}#toast{background:#fff094;color:var(--ink);border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);font-size:.9375rem;font-weight:650;left:calc(50% + 122px);z-index:10000}.basket.drop-target{border-color:#92385f;box-shadow:0 0 0 5px #ffa8cc,5px 6px 0 var(--ink)}.drag-ghost{border:3px solid var(--ink);background:#fff3ac!important;border-radius:13px;box-shadow:6px 9px 0 #153d624d;opacity:.97}.drag-source{opacity:.27}
@media(min-width:1600px){.summary{padding:29px 30px 31px}.summary-total>strong{font-size:2.8rem}}
@media(max-width:1150px){.sidebar{width:216px;padding:25px 15px}.workspace{margin-left:216px;width:calc(100% - 216px)}.brand{font-size:1rem;padding-left:44px}.brand-icon{left:5px;width:31px;font-size:28px}.brand-caption{font-size:.75rem}.topbar{padding:0 28px}main{padding:28px}.summary{padding:24px 20px 27px;gap:17px}.summary-metric{padding-left:13px}.summary-metric>strong{font-size:1.2rem}.summary-total>strong{font-size:2.25rem}.summary-balance{gap:13px}.basket-grid{gap:21px}.product-symbol{display:none}.product{gap:7px}.nav-item{font-size:.9375rem;gap:10px;padding:11px}.sidebar-art{height:160px}.workspace-footer{padding-left:28px;padding-right:28px}}
@media(max-width:850px) and (min-width:701px){.sidebar{width:192px;padding:23px 11px}.workspace{margin-left:192px;width:calc(100% - 192px)}.brand{font-size:.9375rem;padding-left:41px}.brand-icon{font-size:25px}.brand-caption{font-size:.75rem}.summary-balance .summary-metric{padding-left:0;border:0}.summary{gap:19px}.sidebar-art{height:140px}.settings-grid{grid-template-columns:1fr}.topbar{padding:0 23px}main{padding:25px 23px}.summary-metric>strong{font-size:1.25rem}.nav-item{font-size:.875rem;padding:11px 8px}.side-footer{font-size:.75rem}}
@media(max-width:700px){body::before{background-size:auto 100%;background-position:center bottom}.workspace{margin:0;width:100%;padding-bottom:calc(79px + env(safe-area-inset-bottom))}.sidebar{inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:0 10px env(safe-area-inset-bottom);border-right:0;border-top:3px solid var(--ink);background:#e3f9fff7;box-shadow:0 -3px 0 #153d621f}.navigation{height:69px;margin:0;gap:6px;align-items:center}.nav-item{border:2px solid transparent;border-radius:11px;padding:5px 3px;gap:3px;min-height:54px;max-height:59px;font-size:.75rem;transform:none!important;color:#305f78;font-weight:700}.nav-item.active,.nav-item:nth-child(2).active,.nav-item:nth-child(3).active{border-color:var(--ink);box-shadow:2px 2px 0 var(--ink);color:var(--ink)}.nav-item.active>span:first-child,.nav-item>span:first-child{background:none;border-radius:0;padding:0 13px}.nav-item .icon{width:21px;height:21px}.topbar{height:calc(67px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 17px 0;border-bottom:0;background:#8be5efb3;backdrop-filter:blur(6px)}.breadcrumb{font-family:"Trebuchet MS",sans-serif;font-size:1.16rem;font-weight:900;letter-spacing:-.6px;color:#153d62;text-shadow:1px 2px 0 #fff087}.local-label{font-size:.75rem;padding:5px 7px;border-width:1.5px;background:#e8feff}.local-label .icon{width:13px;height:13px}main{padding:15px 16px 27px}.page-heading{margin-bottom:19px;gap:11px}.eyebrow{font-size:.75rem;font-weight:650;letter-spacing:.1px;padding:3px 6px;margin-bottom:11px}.purchase-avatar{width:48px;height:51px;border-width:2px;border-radius:12px;box-shadow:3px 3px 0 var(--ink)}.purchase-avatar .animal-emoji{font-size:29px}.purchase-title-text{font-size:1.42rem;line-height:1.35;letter-spacing:-.5px}.purchase-identity{gap:12px}.title-edit.icon-button{min-width:32px;min-height:32px;padding:5px;vertical-align:middle}.heading-actions .button{min-height:41px;font-size:.875rem;padding:7px 12px;border-radius:9px;box-shadow:2px 3px 0 var(--ink)}.heading-actions .button .icon{display:block;width:17px;height:17px}.summary{border-width:3px;border-radius:15px;box-shadow:4px 5px 0 var(--ink);padding:21px 20px 25px;gap:17px 14px}.summary-total{gap:7px}.summary-total>strong{font-size:2.55rem;line-height:1.1;font-weight:900}.summary-label{font-size:.875rem}.summary-sub{font-size:.75rem;line-height:1.5}.summary-metric{padding:0;border:0;gap:5px}.summary-limit{flex-direction:row;align-items:baseline;border-bottom:2px dashed #153d6240;padding-bottom:13px}.summary-metric>span{font-size:.8125rem;font-weight:650}.summary-metric>strong{font-size:1.35rem}.summary-exact{min-height:0}.summary-exact strong{font-size:1.15rem}.summary-balance{gap:14px}.purchase-toolbar{padding:14px 12px;margin:24px 0;border-width:2px;border-radius:13px;gap:13px;box-shadow:2px 3px 0 #153d6266}.mode-control{gap:10px;min-width:0;flex:1 1 185px}.mode-control label{font-size:.875rem;white-space:normal}.mode-control p{font-size:.75rem;max-width:none;line-height:1.5}.switch{width:43px;height:27px;padding:3px}.switch span{width:17px;height:17px}.switch.on span{transform:translateX(16px)}.purchase-toolbar>.button{margin-left:auto;padding:7px 10px;min-height:41px;font-size:.8125rem;box-shadow:2px 3px 0 var(--ink)}.purchase-toolbar>.button .icon{width:17px;height:17px}.section-title{margin-bottom:15px}.section-title h2{font-size:1.1rem}.basket-grid{gap:23px}.basket{border-width:3px;border-radius:14px;box-shadow:4px 5px 0 var(--ink)}.basket-header{padding:13px 13px 11px;gap:11px}.basket-number{width:37px;height:39px;font-size:.9375rem;border-radius:9px;box-shadow:2px 2px 0 var(--ink)}.basket-title h3{font-size:1rem}.limit-label{font-size:.8125rem;min-height:31px}.basket-amount{padding:16px 14px 12px}.basket-amount strong{font-size:1.7rem}.basket-amount>span{font-size:.8125rem}.meter{height:9px;margin:0 14px 15px}.product{padding:12px 7px 12px 4px;gap:6px;min-height:82px}.product-symbol{display:none}.drag-handle{width:28px;flex-shrink:0}.product-info{gap:5px}.product-name{font-size:1rem;font-weight:650}.product-price{font-size:1rem;font-weight:800;white-space:normal;max-width:34%;text-align:right;overflow-wrap:anywhere}.product-meta{font-size:.75rem;line-height:1.5}.product .item-menu{width:38px;min-width:38px;padding:7px;min-height:46px}.basket-footer{padding:11px 12px;font-size:.75rem;gap:9px;line-height:1.5}.basket-footer>span:last-child{max-width:72%}.basket-empty{height:154px;padding:20px 15px}.basket-empty>p{font-size:.8125rem}.purchase-bottom{margin-top:24px;padding-bottom:81px;gap:0}.purchase-bottom>p{font-size:.75rem;padding:7px 9px;line-height:1.6}.add-product{left:16px;right:16px;bottom:calc(87px + env(safe-area-inset-bottom));width:calc(100% - 32px);min-height:53px;font-size:1rem;border:3px solid var(--ink);border-radius:13px;box-shadow:4px 5px 0 var(--ink)!important}.button.primary.add-product:hover{transform:none}.history-list{gap:20px}.history-card{padding:17px 12px;gap:12px;flex-wrap:wrap;border-radius:14px;box-shadow:4px 5px 0 var(--ink)}.history-symbol{width:43px;height:46px;flex-shrink:0;border-radius:11px}.history-symbol .animal-emoji{font-size:27px}.history-info{flex:1 1 calc(100% - 63px);min-width:0}.history-info>strong{font-size:1.02rem;line-height:1.4}.history-info>span{font-size:.75rem;line-height:1.5}.history-amount{max-width:none;flex:1 1 100%;display:flex;flex-direction:row;justify-content:flex-start;align-items:baseline;gap:8px 15px;flex-wrap:wrap;padding-top:12px;margin-top:1px;border-top:2px dashed #6b8d9a4d;text-align:left}.history-amount>strong{font-size:1.3rem;margin-right:auto;flex-basis:100%}.history-amount>span{font-size:.8125rem;line-height:1.5}.history-card:hover{transform:none;box-shadow:4px 5px 0 var(--ink)}.empty-state{padding:29px 20px;gap:16px}.empty-art{width:205px;height:190px;max-width:100%}.empty-state p{font-size:1rem}.empty-state h2{font-size:1.25rem}.settings-panel{padding:25px 20px;border-radius:15px}.settings-grid{gap:24px}.settings-panel p{font-size:1rem}.settings-panel .note{font-size:.875rem}.settings-panel .settings-icon{margin-bottom:21px}.settings-panel h2{font-size:1.22rem}.setting-input{flex-wrap:wrap;gap:12px}.setting-input input{flex:1 1 130px}.setting-input .button{flex:0 0 auto;min-height:46px;font-size:.875rem}.saved-label{font-size:.8125rem}.back-link{font-size:.875rem;margin-bottom:17px}dialog{inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 13px);border:3px solid var(--ink);border-bottom:0;border-radius:22px 22px 0 0;padding:24px 19px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -5px 0 #153d622e,0 -20px 70px #153d623b}.dialog-header{padding-bottom:17px;margin-bottom:18px}.dialog-header h2{font-size:1.32rem}.dialog-description{font-size:1rem}.form-columns{gap:12px}dialog label{font-size:.9375rem}.dialog-footer{gap:12px;margin-top:24px;padding-right:3px}.dialog-footer .button{min-height:49px;font-size:.9375rem}.segmented button{min-height:45px;font-size:.875rem}.item-preview{font-size:.875rem}.note{font-size:.875rem}.animal-grid{gap:10px}.animal-choice>span:first-of-type{min-height:50px}.menu-button{font-size:1rem;min-height:56px}.install-instructions p{font-size:1rem}#toast{left:50%;bottom:calc(153px + env(safe-area-inset-bottom));max-width:calc(100vw - 34px);font-size:.875rem;padding:12px 16px;border-radius:11px}.workspace-footer{display:none}}
@media(max-width:370px){main{padding-left:12px;padding-right:12px}.topbar{padding-left:13px;padding-right:13px}.breadcrumb{font-size:1.06rem}.local-label{font-size:.75rem;gap:3px;padding:4px 5px}.local-label .icon{display:none}.purchase-title-text{font-size:1.3rem}.summary{padding:19px 16px 23px}.summary-total>strong{font-size:2.25rem}.summary-metric>strong{font-size:1.15rem}.summary-metric>span{font-size:.75rem}.mode-control{flex-basis:180px}.basket-amount strong{font-size:1.55rem}.basket-amount>span{font-size:.75rem}.product-name{font-size:.9375rem}.product-price{font-size:.9375rem}.animal-grid{gap:7px}.animal-choice>span:first-of-type{min-height:46px}.sidebar{padding-left:7px;padding-right:7px}.navigation{gap:5px}.nav-item{font-size:.75rem}.add-product{left:12px;right:12px;width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.brand>span:last-child{display:block;line-height:1.2}.brand-caption{margin-top:7px}.sidebar{overflow-y:auto}.brand{font-size:1.05rem;letter-spacing:-.4px}.sidebar-art{flex-shrink:0}@media(max-height:760px) and (min-width:701px){.sidebar-art{height:125px}.side-footer{padding-top:16px}}

.brand-icon{overflow:hidden;border:2px solid var(--ink);border-radius:9px;background:#ffe600}.brand-icon img{width:100%;height:100%;object-fit:cover;display:block}.brand-caption{font-size:.75rem}@media(max-width:700px){.breadcrumb{font-size:1.02rem;max-width:65%;line-height:1.15}.topbar{gap:8px}.local-label{white-space:nowrap;flex-shrink:0}}@media(max-width:370px){.breadcrumb{font-size:.9375rem}.local-label{font-size:.75rem}}
/* Swipe-to-reveal is a native scroll surface; vertical page scrolling stays native. */
.swipe-row{display:flex;position:relative;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;background:#a7354e;border-bottom:1px dashed #4167814d}.swipe-row::-webkit-scrollbar{display:none}.swipe-row:last-child{border-bottom:0}.swipe-row>.product{flex:0 0 100%;width:100%;min-width:0;border-bottom:0;scroll-snap-align:start;scroll-snap-stop:always}.swipe-row:nth-child(even)>.product{background:#f5faf5}.swipe-row>.quick-delete{flex:0 0 96px;width:96px;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:78px;padding:12px 7px;border:0;border-left:2px solid #153d62;background:#a7354e;color:#fff;font-size:.875rem;font-weight:750;scroll-snap-align:end;scroll-snap-stop:always;touch-action:manipulation}.swipe-row>.quick-delete:disabled{opacity:1;cursor:default}.swipe-row>.quick-delete:not(:disabled):active{background:#84273d}.swipe-row>.quick-delete:focus-visible{outline:3px solid #ffed62;outline-offset:-6px}.swipe-row>.quick-delete .icon{width:24px;height:24px}.swipe-row .drag-handle{touch-action:none}

.button.danger-button{background:#a7354e;border-color:#153d62;color:#fff}.button.danger-button:hover:not(:disabled){background:#84273d}.dialog-footer .danger-button{flex:1}.settings-copyright{width:fit-content;max-width:100%;margin:30px auto 12px;padding:12px 20px;text-align:center;color:#153d62;background:#fffef3;border:1px solid #153d6240;border-radius:12px;font-size:1rem;font-weight:650;line-height:1.5;overflow-wrap:anywhere}

/* Sheets share one scroll surface, with actions always outside that surface. */
body.sheet-open{position:fixed;top:var(--page-scroll);left:0;right:0;width:100%;overflow:hidden}
dialog.native-sheet{padding:0;overflow:hidden;border-radius:22px;max-height:calc(var(--visible-height,100dvh) - 40px)}
dialog.native-sheet[open]{display:flex;flex-direction:column;animation:sheet-appear .18s ease-out}
.native-sheet form{display:flex;flex-direction:column;min-height:0;max-height:inherit;width:100%}
.native-sheet .dialog-header{flex-shrink:0;margin:0;padding:20px 22px 16px;border-bottom:1px solid #153d6226;gap:12px}
.native-sheet .dialog-header h2{font-size:1.25rem}
.native-sheet .dialog-header .icon-button{border:0;border-radius:50%;width:44px;min-width:44px;height:44px;margin:0;padding:10px;box-shadow:none;background:#e2efef}
.native-sheet .dialog-body{padding:20px 22px;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;min-height:0;scroll-padding-block:18px}
.native-sheet .dialog-body>label:first-child{margin-top:0}
.native-sheet .dialog-footer{display:flex;flex-direction:column;flex-shrink:0;gap:12px;margin:0;padding:16px 22px 20px;background:#fffef2;border-top:1px solid #153d6226}
.dialog-actions{display:flex;flex-shrink:0;gap:12px;width:100%}
.dialog-actions .button{flex:1;min-width:0;min-height:50px}
.native-sheet .dialog-footer .dialog-actions .secondary{flex:1}
.sheet-grip{display:none}
.native-sheet input,.native-sheet select{font-size:16px;scroll-margin-block:18px}
.native-sheet .form-columns>div{min-width:0}
.quantity-stepper{display:flex;border:2px solid #517388;border-radius:12px;overflow:hidden;background:#fff;min-height:50px}
.quantity-stepper button{border:0;background:#e8f5f4;width:44px;flex:0 0 44px;font-size:1.4rem;font-weight:600;min-height:46px;padding:0;box-shadow:none}
.quantity-stepper button:active:not(:disabled){background:#c9e9e6}.quantity-stepper button:disabled{opacity:.35}
.quantity-stepper input{border:0;border-radius:0;box-shadow:none;padding:8px 0;width:100%;min-width:0;text-align:center;appearance:textfield;-moz-appearance:textfield}
.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.quantity-stepper:focus-within{outline:3px solid #ef90b4;outline-offset:2px}.quantity-stepper input:focus{outline:0}
@keyframes sheet-appear{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@media(max-width:700px){
 dialog.native-sheet{inset:auto 0 var(--keyboard-offset,0px);border:1px solid #153d6240;border-bottom:0;max-height:calc(var(--visible-height,100dvh) - env(safe-area-inset-top) - 8px);border-radius:26px 26px 0 0;box-shadow:0 -12px 55px #12385640;transform:translateY(var(--sheet-drag,0px));transition:transform .18s ease-out}
 .native-sheet::backdrop{background:#12385666;backdrop-filter:blur(3px)}
 .sheet-grip{display:grid;place-items:center;flex-shrink:0;height:25px;touch-action:none;cursor:grab}
 .sheet-grip span{width:36px;height:5px;border-radius:10px;background:#153d6240}
 .required-sheet .sheet-grip{visibility:hidden;height:12px}
 .native-sheet.sheet-dragging{transition:none;animation:none;user-select:none}
 .native-sheet .dialog-header{padding:0 16px 10px;border-bottom:0}
 .native-sheet .dialog-header h2{font-size:1.2rem}
 .native-sheet .dialog-body{padding:8px 18px 18px}
 .native-sheet .dialog-footer{padding:12px 18px calc(24px + env(safe-area-inset-bottom,0px));gap:10px;box-shadow:0 -4px 18px #153d6205}
 .native-sheet.keyboard-visible .dialog-footer{padding-bottom:24px}
 .native-sheet .button{border-width:1px;box-shadow:none!important;border-radius:13px;font-size:1rem;min-height:50px;transform:none!important}
 .native-sheet .button:active:not(:disabled){filter:brightness(.94)}
 .native-sheet .segmented{padding:3px;border:0;gap:3px;background:#e4eeeb;border-radius:11px}
 .native-sheet .segmented button{border:0;min-height:40px;border-radius:8px;font-size:.875rem}
 .native-sheet .segmented button.selected{background:#fff;box-shadow:0 1px 5px #153d6230}
 .native-sheet input,.native-sheet select{border-width:1px;min-height:50px;border-radius:12px}
 .native-sheet .quantity-stepper input{border:0;border-radius:0;min-height:46px}
 .quantity-stepper{border-width:1px}.quantity-stepper button{flex-basis:40px;width:40px}
 .native-sheet .form-columns{grid-template-columns:minmax(0,1fr) minmax(145px,1fr);gap:12px}
 .native-sheet .menu-button{border-radius:12px;min-height:54px;background:#edf5f1;padding:14px}
 .native-sheet .menu-actions{gap:8px}
 .title-edit.icon-button{min-width:44px;min-height:44px}.product .item-menu{width:44px;min-width:44px}.limit-label{min-height:44px}
 .heading-actions .button,.purchase-toolbar>.button{min-height:44px}
 .switch:before{content:'';position:absolute;inset:-10px -2px}.switch{position:relative}
 .nav-item:active{filter:brightness(.94)}
 @keyframes sheet-appear{from{translate:0 45px;opacity:.5}to{translate:0 0;opacity:1}}
}
@media(prefers-reduced-motion:reduce){dialog.native-sheet[open]{animation:none;transition:none}}
