:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#1c2421;background:#f7f8f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}.wrap{width:min(1160px,calc(100% - 48px));margin:0 auto}.header{border-bottom:1px solid #e2e8e2;background:rgba(255,255,255,.9)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:19px;font-weight:750;display:flex;align-items:center;gap:10px;letter-spacing:-.04em}.brand small{font-size:13px;letter-spacing:0;font-weight:550;color:#52605a}.brand-icon{width:34px;height:34px;border-radius:11px;background:#294f40;color:white;display:grid;place-items:center;font-size:19px}.header nav{display:flex;gap:28px;font-size:14px;color:#50605a}.header nav a:hover,.back:hover{color:#1d7654}main{flex:1;padding:58px 0 80px}.page-title{margin-bottom:35px}.eyebrow{color:#438363;font-size:12px;font-weight:750;letter-spacing:.16em;margin:0 0 13px}h1,h2,p{margin-top:0}h1{font-size:clamp(32px,5vw,52px);letter-spacing:-.045em;line-height:1.12;margin-bottom:14px}h2{letter-spacing:-.02em}.lead{font-size:16px;color:#6b7972;line-height:1.7;margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{overflow:hidden;border:1px solid #e4eae4;border-radius:18px;background:#fff;transition:transform .18s,box-shadow .18s}.card:hover{transform:translateY(-4px);box-shadow:0 14px 36px #244a3215}.product-image{aspect-ratio:4/3;background:linear-gradient(140deg,#ecf1e8,#dce8de);display:grid;place-items:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.placeholder{font-size:80px;color:#b4cabb;font-weight:700;letter-spacing:-.1em}.card-body{padding:22px}.card-meta{font-size:10px;letter-spacing:.13em;color:#6d9b7e;font-weight:700}.card h2{font-size:20px;margin:0 0 7px}.card-subtitle{color:#7a8780;font-size:14px;min-height:22px}.card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:26px}.price,.detail-price{font-weight:750;color:#244f3b}.price{font-size:21px}.arrow{font-size:13px;color:#54725e}.footer{border-top:1px solid #e2e8e2;color:#87928b;font-size:13px;padding:25px 0}.footer span{margin:0 8px}.back{display:inline-block;color:#64746a;font-size:14px;margin-bottom:28px}.detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:52px;align-items:start}.detail>.product-image{border-radius:20px}.detail-content{min-width:0;padding:10px 0}.detail-content h1{font-size:clamp(30px,4vw,44px)}.detail-price{font-size:30px;margin:24px 0}.actions,.row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:11px 17px;font-weight:650;font-size:14px;border:1px solid transparent;line-height:1.3}.primary{background:#285b43;color:white}.primary:hover{background:#1d4734}.secondary{background:#fff;border-color:#dce5dd;color:#385344}.secondary:hover{background:#f1f6f1}.danger{background:#fff;border-color:#efdddd;color:#ad4b4b}.detail-section{border-top:1px solid #e2e8e2;margin-top:30px;padding-top:24px}.detail-section h2{font-size:16px}.multiline{white-space:pre-wrap;overflow-wrap:anywhere;color:#576760;line-height:1.8}.empty-state,.login-panel,.editor{background:#fff;border:1px solid #e3eae3;border-radius:18px;padding:30px}.empty-state h1{font-size:30px}.login-panel{max-width:460px;margin:0 auto}.login-panel h1,.admin-top h1{font-size:32px}.form,.editor{display:flex;flex-direction:column;gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;color:#405249}.field input,.field textarea{width:100%;border:1px solid #d6e0d7;border-radius:9px;padding:11px 12px;background:#fff;color:#17231b;outline:none}.field input:focus,.field textarea:focus{border-color:#4c9370;box-shadow:0 0 0 3px #4c937020}.field textarea{resize:vertical}.notice{padding:14px 16px;background:#f0f5ef;border-radius:10px;color:#5a7060;line-height:1.6}.notice.error{background:#fff1f0;color:#a83a36}.admin-top,.list-header,.editor-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.admin-top .page-title{margin-bottom:25px}.list-header{margin-bottom:18px}.list-header h2,.editor-head h2{font-size:20px;margin:0}.list-header .muted{margin-right:auto}.admin-list{display:flex;flex-direction:column;gap:10px}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border:1px solid #e3eae3;border-radius:13px;padding:18px}.admin-info{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}.muted{font-size:13px;color:#839087}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.check{display:flex;align-items:center;gap:8px;font-size:14px}.check input{width:18px;height:18px;accent-color:#285b43}.text-button{border:0;padding:0;background:none;color:#53745f;text-align:left}.editor>.button{align-self:flex-start}.loading{color:#738277}.card h2,.card-subtitle,.detail-content h1,.lead{overflow-wrap:anywhere}@media(max-width:760px){.wrap{width:min(100% - 32px,1160px)}.header-inner{min-height:66px}.header nav{gap:15px;font-size:13px}.brand{font-size:17px}.brand small{font-size:12px}main{padding:38px 0 60px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-body{padding:15px}.card h2{font-size:17px}.card-bottom{margin-top:18px;gap:5px;align-items:flex-start;flex-direction:column}.detail{grid-template-columns:1fr;gap:24px}.detail>.product-image{max-height:400px}.form-grid{grid-template-columns:1fr}.admin-row{align-items:flex-start;flex-direction:column}.admin-top{align-items:flex-start}.login-panel,.editor{padding:20px}.list-header{flex-wrap:wrap}.placeholder{font-size:55px}}@media(max-width:370px){.grid{grid-template-columns:1fr}.header nav{gap:9px}.brand small{display:none}}
/* Warm storefront */
:root{color:#41372a;background:#fff9ed}.header{background:rgba(255,251,242,.94);border-color:#f1e4c9;position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.brand-icon{background:#e9b852;color:#fff}.brand,.header nav{color:#6d542a}main{padding:34px 0 105px}.store-intro h1{font-size:clamp(29px,4vw,42px);margin-bottom:10px;color:#49391e}.store-intro>p:last-child{color:#897754}.eyebrow{color:#b58332}.announcement,.category-card{background:#fffdf8;border:1px solid #f4e9d3;border-radius:20px;box-shadow:0 9px 25px #ae87300b}.announcement{padding:20px 24px;margin:24px 0}.announcement h2,.category-title{font-size:16px;color:#806126;margin:0}.announcement p{margin:12px 0 0;color:#8a785d;line-height:1.7}.category-list{display:grid;gap:18px}.category-card{overflow:hidden}.category-title{padding:18px 22px;border-bottom:1px dashed #eee0c5}.product-row{display:flex;gap:17px;align-items:center;margin:0 22px;padding:20px 0;border-bottom:1px solid #f3eadc}.product-row:last-child{border-bottom:0}.product-row .product-image{width:58px;height:58px;flex:0 0 58px;aspect-ratio:1;border-radius:14px;background:#fff3d7}.product-row .placeholder{font-size:30px;color:#c6a765}.product-row-info{flex:1;min-width:0}.product-row h3{font-size:16px;line-height:1.45;overflow-wrap:anywhere;margin:0 0 6px}.product-subtitle{font-size:13px;color:#9a8a70;margin:0 0 5px;overflow-wrap:anywhere}.price,.sheet-price,.detail-price{color:#b77419}.price{font-size:17px}.primary{background:#eebd5b;color:#503812}.primary:hover{background:#e2ac43}.row-buy{border-radius:99px;flex-shrink:0}.button,.product-row,.bottom-nav a,.sheet-close{transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease}.button:active,.bottom-nav a:active,.sheet-close:active{transform:scale(.96)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:6;display:flex;justify-content:center;gap:8px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));background:rgba(255,252,245,.96);border-top:1px solid #f0e3cb;backdrop-filter:blur(12px)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:120px;padding:8px;color:#9c8967;font-size:19px;border-radius:12px}.bottom-nav a span{font-size:12px}.bottom-nav a.selected{background:#fff0cd;color:#a36e20}.admin-page .bottom-nav{display:none}.sheet-open{overflow:hidden}.sheet-overlay{position:fixed;inset:0;z-index:20;background:#30271999;display:flex;justify-content:center;align-items:flex-end;animation:fade-in .2s ease}.sheet{background:#fffdf8;width:min(620px,100%);max-height:min(88dvh,850px);border-radius:24px 24px 0 0;display:flex;flex-direction:column;overflow:hidden;animation:sheet-in .24s ease;box-shadow:0 -12px 40px #39270f25}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #f3e8d6}.sheet-head h2{font-size:19px;line-height:1.4;margin:0;overflow-wrap:anywhere}.sheet-close{border:0;border-radius:50%;width:40px;height:40px;flex-shrink:0;background:#fff0d5;color:#79562c;font-size:25px}.sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:22px;min-height:0}.sheet-summary{display:flex;align-items:center;gap:16px;margin-bottom:20px}.sheet-summary .product-image{width:74px;height:74px;flex:0 0 74px;aspect-ratio:1;border-radius:14px;background:#fff3d7}.sheet-summary .placeholder{font-size:36px;color:#c6a765}.sheet-price{font-size:23px}.sheet-details{border:1px dashed #e9d9b9;border-radius:14px;padding:16px}.sheet-details summary,.help-item summary{cursor:pointer;color:#8e682c;font-weight:700}.sheet-section{padding-top:18px}.sheet-section h3{font-size:15px;margin:0 0 8px}.sheet-section p{margin:0}.sheet-foot{flex-shrink:0;padding:14px 22px calc(18px + env(safe-area-inset-bottom));background:#fff7e6;border-top:1px solid #f0e3cb}.sheet-total{display:block;font-weight:700;margin-bottom:10px;color:#79562c}.sheet-buy{width:100%;border-radius:13px}.help-item{margin:0 22px;padding:18px 0;border-bottom:1px solid #f3eadc}.help-item:last-child{border:0}.help-item p{margin:12px 0 0}.footer{border-color:#f0e3cb;color:#aa9879;padding-bottom:100px}@keyframes sheet-in{from{transform:translateY(25px);opacity:.7}to{transform:translateY(0);opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@media(max-width:760px){main{padding:28px 0 100px}.product-row{margin:0 16px;gap:12px}.category-title{padding:16px}.row-buy{padding:9px 15px}.product-row .product-image{width:50px;height:50px;flex-basis:50px}.product-row h3{font-size:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.sheet-details summary{list-style:none;display:flex;align-items:center;gap:8px}.sheet-details summary::-webkit-details-marker{display:none}.sheet-details summary::before{content:'▸';display:inline-block;transition:transform .2s ease}.sheet-details[open] summary::before{transform:rotate(90deg)}
/* Soft raised card treatment for the storefront. */
.announcement,.category-card{
  background:#fff;
  border-color:#f0dfbd;
  box-shadow:0 4px 0 #d9bb8033,0 12px 26px #a7772924,inset 0 1px 0 #fff;
}
.product-row .product-image{
  background:linear-gradient(145deg,#fff7e2,#f8e7bd);
  box-shadow:inset 0 1px 1px #fff,0 3px 7px #aa7c2b1c;
}
/* A softer cream palette keeps the white cards distinct. */
:root{background:#fffcf6}
.header{background:rgba(255,253,248,.96);border-color:#f6efdf}
.brand-icon{background:#efd395;color:#fff}
.announcement,.category-card{border-color:#f2eee7;box-shadow:0 4px 0 #d8d0c322,0 12px 26px #92887918,inset 0 1px 0 #fff}
.product-row .product-image{background:linear-gradient(145deg,#fffaf0,#fbf1d9);box-shadow:inset 0 1px 1px #fff,0 3px 7px #aa8e5d16}
.primary{background:#f3d899;color:#5c4825}
.primary:hover{background:#edcc85}
.bottom-nav{background:rgba(255,253,249,.97);border-color:#f4eddf}
.bottom-nav a.selected{background:#fcf2df}
.sheet-foot{background:#fffaf0;border-color:#f4eddf}
.help-category-summary,.admin-help-category-title,.admin-help-item>summary{cursor:pointer;list-style:none}
.help-category-summary::-webkit-details-marker,.admin-help-category-title::-webkit-details-marker,.admin-help-item>summary::-webkit-details-marker{display:none}
.help-category-summary .category-title::after,.admin-help-category-title::after{content:'▸';margin-left:auto;transition:transform .2s ease}
.help-category[open]>.help-category-summary .category-title::after,.admin-help-category[open]>.admin-help-category-title::after{transform:rotate(90deg)}
.help-category:not([open]) .category-title{border-bottom:0}
.help-product-row{display:flex;align-items:center;gap:12px;padding:14px 0}
.help-product-row .product-image{width:50px;height:50px;flex:0 0 50px;aspect-ratio:1;border-radius:14px;background:linear-gradient(145deg,#fffaf0,#fbf1d9);box-shadow:inset 0 1px 1px #fff,0 3px 7px #aa8e5d16}
.help-product-row .product-image img{object-fit:contain}
.help-product-row .placeholder{font-size:27px;color:#c6a765}
.help-product-info{min-width:0;flex:1}
.help-product-info h3{font-size:15px;line-height:1.45;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.help-product-info h3.help-name-long{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere}
.help-name-long .help-product-name-text{font-size:.88em}
.help-product-link{flex-shrink:0;border-radius:99px;padding:9px 15px}
.help-view-open{overflow:hidden}
.help-fullscreen{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;background:#fffcf6;animation:fade-in .2s ease}
.help-fullscreen-bar{flex-shrink:0;padding:calc(12px + env(safe-area-inset-top)) 16px 8px;background:rgba(255,252,246,.78);backdrop-filter:blur(12px)}
.help-fullscreen-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(174,151,112,.12);border-radius:50%;background:rgba(222,209,183,.34);color:#655840;font-size:28px;line-height:1;transition:transform .16s ease,background-color .16s ease}
.help-fullscreen-close:active{transform:scale(.95);background:rgba(222,209,183,.55)}
.help-fullscreen-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 24px calc(28px + env(safe-area-inset-bottom))}
.help-detail-title{font-size:26px;line-height:1.35;margin:0 0 20px;overflow-wrap:anywhere}
.help-fullscreen .help-content p{color:#576760;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.admin-help-category{border:1px solid #eee3d1;border-radius:14px;overflow:hidden}
.admin-help-category-title{display:flex;align-items:center;padding:15px 18px;color:#806126;font-weight:700;background:#fffaf2}
.admin-help-item{margin:0 18px;padding:14px 0;border-top:1px solid #f0e7da}
.admin-help-item>summary{color:#58452c;font-weight:650}
.admin-help-item>summary::before{content:'▸';display:inline-block;margin-right:8px;transition:transform .2s ease}
.admin-help-item[open]>summary::before{transform:rotate(90deg)}
.admin-help-form{padding:14px 0 4px}
/* The typography editor is available only after an administrator signs in. */
.type-editor{position:fixed;z-index:50;right:14px;bottom:14px;width:min(430px,calc(100vw - 28px));max-height:min(68vh,620px);overflow:auto;background:#fff;border:1px solid #eadbc0;border-radius:18px;padding:15px;box-shadow:0 12px 40px #42301e40;color:#41372a;font-size:14px}
.type-editor-top,.type-editor-tabs,.type-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.type-editor-top{justify-content:space-between}
.type-editor-tip{color:#776b5a;font-size:12px;line-height:1.45;margin:9px 0}
.type-editor-selected{font-weight:700;margin:12px 0}
.type-editor-close,.type-editor-control,.type-editor-save{font:inherit;border:1px solid #eadcc3;border-radius:9px;background:#fffaf0;color:#604821;padding:8px 10px;cursor:pointer}
.type-editor-save{background:#f3d899;border-color:#f3d899;font-weight:700}
.type-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.type-editor-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#6c5d47}
.type-editor-input{width:100%;min-height:37px;border:1px solid #e8dbc7;border-radius:8px;background:#fff;color:#41372a;padding:5px;font:inherit}
.type-editor-actions{margin-top:10px}
.type-editor-status{margin:8px 0 0;color:#7d6338;font-size:12px}
.type-editing .category-title,.type-editing .product-row h3,.type-editing .announcement p{cursor:crosshair}
.category-title{display:flex;align-items:center;gap:10px}
.category-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#fff7e7;color:#bb9551;overflow:hidden}
.category-icon img{width:100%;height:100%;object-fit:contain}
.product-row .product-image img,.sheet-summary .product-image img{object-fit:contain}
.bottom-nav a{flex:1;min-width:0;max-width:120px}
.service-card{max-width:500px;margin:24px auto 0;padding:32px 24px;text-align:center;background:#fff;border:1px solid #f2eee7;border-radius:20px;box-shadow:0 4px 0 #d8d0c322,0 12px 26px #92887918,inset 0 1px 0 #fff}
.service-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 16px;border-radius:16px;background:#fcf2df;color:#a67a35;font-size:26px}
.service-card h1{margin:0 0 12px;font-size:23px;color:#49391e}
.service-copy,.service-hint{color:#897b66;font-size:14px;line-height:1.7}
.service-qr{position:relative;width:180px;height:180px;margin:24px auto 12px;border:12px solid #fff;outline:1px solid #eee5d7;border-radius:10px;background:repeating-conic-gradient(#7d7466 0 25%,#fff 0 50%) 0 0/20px 20px;display:grid;place-items:center}
.service-qr-label{padding:8px 12px;background:#fffaf0;color:#806b4c;font-weight:700;border-radius:8px;box-shadow:0 1px 7px #4a3d2b22}
.service-note{font-size:13px;color:#a27840;margin:0 0 10px}.service-hint{margin:0}

/* Full-page product details and customer notices. */
.sheet-overlay{align-items:stretch;background:#fffcf6}
.sheet{width:100%;height:100%;max-height:none;border-radius:0;box-shadow:none;animation:fade-in .2s ease;background:#fffcf6}
.sheet-head{justify-content:flex-start;padding:calc(12px + env(safe-area-inset-top)) 18px 14px;background:rgba(255,252,246,.92)}
.sheet-head h2{font-size:19px;min-width:0}
.sheet-close{display:grid;place-items:center;width:44px;height:44px;line-height:1;border:1px solid rgba(174,151,112,.12);background:rgba(222,209,183,.34);color:#655840;font-size:28px}
.sheet-body{flex:1;padding:24px max(22px,calc((100% - 720px)/2));overscroll-behavior:contain}
.sheet-foot{padding:15px max(22px,calc((100% - 720px)/2)) calc(18px + env(safe-area-inset-bottom))}
.welcome-open,.purchase-confirm-open{overflow:hidden}
.welcome-fullscreen{position:fixed;inset:0;z-index:30;display:flex;justify-content:center;background:#fffcf6;animation:fade-in .2s ease}
.welcome-inner{width:min(100%,680px);height:100%;display:flex;flex-direction:column;min-height:0}
.welcome-heading{flex-shrink:0;padding:calc(36px + env(safe-area-inset-top)) 26px 16px;text-align:center}
.welcome-mark,.purchase-confirm-mark{display:grid;place-items:center;margin:0 auto 16px;width:56px;height:56px;border-radius:19px;background:#fdf0d4;color:#bc9142;font-size:24px}
.welcome-kicker{margin:0 0 10px;color:#b89962;font-size:11px;font-weight:750;letter-spacing:.16em}
.welcome-heading h1{margin:0 0 10px;color:#4c3c25;font-size:clamp(28px,7vw,36px)}
.welcome-intro{margin:0;color:#9a886a;font-size:14px}
.welcome-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0 22px;padding:20px 22px;background:#fff;border:1px solid #f2eadb;border-radius:20px;box-shadow:0 10px 28px #98784610}
.welcome-copy,.purchase-confirm-copy{margin:0;color:#6c5c45;font-size:15px;line-height:1.9}
.welcome-foot{flex-shrink:0;padding:18px 22px calc(20px + env(safe-area-inset-bottom))}
.welcome-ok{width:100%;min-height:50px;border-radius:14px;font-size:16px}
.purchase-confirm-overlay{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:20px;background:#30271980;animation:fade-in .2s ease}
.purchase-confirm{display:flex;flex-direction:column;width:min(100%,480px);max-height:calc(100dvh - 40px);overflow:hidden;padding:24px;background:#fffdf9;border:1px solid #f0e5d1;border-radius:22px;box-shadow:0 18px 55px #30241430}
.purchase-confirm-mark{width:44px;height:44px;margin:0 0 14px;border-radius:15px;font-size:20px}
.purchase-confirm h2{margin:0 0 7px;color:#4c3c25;font-size:22px}
.purchase-confirm-intro{margin:0 0 16px;color:#99896e;font-size:13px;line-height:1.6}
.purchase-confirm-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;background:#fff9ee;border:1px solid #f5ead5;border-radius:14px}
.purchase-confirm-actions{display:flex;gap:10px;flex-shrink:0;margin-top:18px}
.purchase-confirm-actions .button{min-height:46px;border-radius:12px}
.purchase-confirm-actions .secondary{flex:0 0 auto}
.purchase-confirm-go{flex:1;text-align:center}
.purchase-steps{margin:0;padding-left:1.5em;color:#6c5c45;font-size:15px;line-height:1.9}
.purchase-steps li+li{margin-top:8px}
.purchase-spec{color:#ca612e;font-weight:800}
.purchase-confirm-body{padding:0;background:transparent;border:0;border-radius:0}
.purchase-method{overflow:hidden;background:#fff;border:1px solid #f0e6d5;border-radius:14px}
.purchase-method+.purchase-method{margin-top:10px}
.purchase-method[open]{background:#fffaf0;border-color:#e9d5ac}
.purchase-method-summary{display:flex;align-items:center;gap:9px;min-height:52px;padding:13px 15px;cursor:pointer;list-style:none;color:#57452d}
.purchase-method-summary::-webkit-details-marker{display:none}
.purchase-method-summary::after{content:'⌄';margin-left:auto;color:#a58c61;font-size:19px;line-height:1;transition:transform .2s ease}
.purchase-method[open]>.purchase-method-summary::after{transform:rotate(180deg)}
.purchase-method-name{font-size:15px;font-weight:750}
.purchase-method-caption{color:#a49377;font-size:12px}
.purchase-method-badge{padding:3px 8px;border-radius:20px;background:#fff0cf;color:#ab7325;font-size:12px;font-weight:700}
.purchase-method-content{padding:2px 15px 16px}
.purchase-method-button{display:block;width:100%;min-height:45px;margin-top:14px;border-radius:12px;text-align:center}
.purchase-method-button:disabled{cursor:not-allowed}
.purchase-method-hint{margin:8px 0 0;color:#a08d72;font-size:12px;line-height:1.5;text-align:center}
.alipay-copy{margin:0;color:#6c5c45;font-size:14px;line-height:1.8}
.alipay-price{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:12px 0;padding:11px 12px;border-radius:10px;background:#fff2d7;color:#8a714e;font-size:13px}
.alipay-price strong{color:#b96b2d;font-size:19px}
@media(prefers-reduced-motion:reduce){.purchase-method-summary::after{transition:none}}
@media(max-height:600px){.welcome-heading{padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:10px}.welcome-mark{width:42px;height:42px;margin-bottom:8px}.welcome-kicker{display:none}.welcome-heading h1{font-size:25px;margin-bottom:6px}.purchase-confirm{padding:17px}}
.service-qr-image,.admin-qr-preview{display:block;width:min(220px,100%);height:auto;max-height:300px;object-fit:contain;margin:24px auto 12px;background:#fff}
.help-custom>p{padding:18px 22px;margin:0}

/* Gentle loading feedback for slower connections. */
.loading-feedback{display:flex;align-items:center;justify-content:center;gap:9px;min-height:60px;color:#987342;font-size:14px}.loading-spinner{display:inline-block;width:20px;height:20px;flex:none;border:2px solid #f2e4ca;border-top-color:#d2aa65;border-radius:50%;animation:loading-turn .75s linear infinite}.row-buy .loading-feedback{min-height:0;gap:6px;font-size:13px}.row-buy .loading-spinner{width:15px;height:15px}@keyframes loading-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none;border-top-color:#d2aa65}}

/* Product ordering in the existing administration area. */
.admin-top{flex-wrap:wrap;justify-content:flex-start;margin-bottom:24px}
.admin-top .page-title{flex:1 0 100%;margin-bottom:0}
.product-order-editor>.muted{margin:0;line-height:1.6}
.order-status{min-height:1.4em;margin:0;color:#96703c;font-size:13px}
.product-order-list{display:grid;gap:16px}
.product-order-category{overflow:hidden;border:1px solid #f0e7d8;border-radius:14px;background:#fff}
.product-order-title{margin:0;padding:14px 16px;background:#fffaf1;color:#806126;font-size:15px}
.product-order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-top:1px solid #f4eee4}
.product-order-info{display:flex;min-width:0;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.product-order-info strong{font-size:14px;line-height:1.45}
.product-order-actions{display:flex;gap:8px;flex-shrink:0}
.product-order-move{padding:9px 12px;white-space:nowrap}
.product-order-move:disabled{cursor:not-allowed}
@media(max-width:480px){.product-order-row{align-items:flex-start;flex-direction:column}.product-order-actions{align-self:flex-end}}

/* Keep the confirmation visible in mobile browsers; only long text scrolls. */
.welcome-fullscreen{align-items:center;padding:16px;background:#30271980}
.welcome-inner{height:auto;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);width:min(100%,500px);overflow:hidden;border-radius:22px;background:#fffcf6;box-shadow:0 18px 55px #30241430}
.welcome-heading{padding:22px 20px 12px}
.welcome-mark{width:44px;height:44px;margin-bottom:9px;border-radius:15px;font-size:20px}
.welcome-kicker{margin-bottom:6px;font-size:10px}
.welcome-heading h1{font-size:24px;margin-bottom:6px}
.welcome-body{flex:0 1 auto;margin:0 18px;padding:16px 18px;border-radius:14px}
.welcome-foot{padding:14px 18px calc(16px + env(safe-area-inset-bottom))}
.category-order-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:12px;background:#fffaf1}
.category-order-head .product-order-title{min-width:0;overflow-wrap:anywhere}
.category-order-head .product-order-move{font-size:12px;padding:7px}
@media(max-width:480px){.category-order-head{align-items:flex-start;flex-direction:column;padding:0 12px 10px}.category-order-head .product-order-title{padding:12px 4px 6px}.category-order-head .product-order-actions{align-self:flex-end}}
.description-image{display:block;max-width:100%;height:auto;margin:12px auto;border-radius:12px}
.description-editor-images{display:flex;flex-direction:column;gap:10px}
.description-editor-images>.muted{margin:0;line-height:1.6}
.description-upload-status:empty{display:none}
.description-preview{padding:16px;background:#fffcf7;border:1px solid #f0e7d8;border-radius:14px}
.description-preview-title{display:block;margin-bottom:10px;color:#806126;font-size:14px}
.description-preview p{margin:0}
.header .admin-return{display:none}
.admin-site .header .admin-return{display:flex}
.admin-product-category{overflow:hidden;border:1px solid #eee3d1;border-radius:14px;background:#fff}
.admin-category-summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:14px 16px;background:#fffaf2;color:#806126;font-weight:700;cursor:pointer;list-style:none}
.admin-category-summary::-webkit-details-marker{display:none}
.admin-category-summary::after{content:'▸';margin-left:auto;transition:transform .2s ease}
.admin-product-category[open]>.admin-category-summary::after{transform:rotate(90deg)}
.admin-category-name{min-width:0;overflow-wrap:anywhere}
.admin-category-count{font-size:12px;font-weight:500;color:#a18f72;white-space:nowrap}
.admin-product-category>.admin-row{margin:10px 12px;border-color:#f0e9dc}
.admin-product-category>.admin-row:last-child{margin-bottom:12px}
/* Customer pages keep a single vertical scrolling direction. */
html.customer-viewport{overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none;touch-action:pan-y}
html.customer-viewport body{overflow-x:clip;touch-action:pan-y}
html.customer-viewport .sheet-body,html.customer-viewport .welcome-body,html.customer-viewport .help-fullscreen-body,html.customer-viewport .purchase-confirm-body{overscroll-behavior-x:none;touch-action:pan-y}
/* Customer orders and the optional administrator delivery view. */
.order-row-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.row-order{border-radius:99px;padding:9px 11px;font-size:13px}
.order-view-open{overflow:hidden}
.order-fullscreen{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;background:#fffcf6;animation:fade-in .2s ease}
.order-fullscreen-bar{display:flex;align-items:center;gap:14px;flex-shrink:0;padding:calc(12px + env(safe-area-inset-top)) 16px 10px;background:rgba(255,252,246,.88);backdrop-filter:blur(12px);border-bottom:1px solid #f1e8db}
.order-screen-title{margin:0;font-size:20px;color:#59472d;letter-spacing:0}
.order-fullscreen-body{width:min(100%,720px);margin:0 auto;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 20px calc(28px + env(safe-area-inset-bottom))}
.order-form,.order-content,.order-list,.order-created{display:flex;flex-direction:column;gap:14px}
.order-form h2,.order-created h2,.order-product h2{margin:0;font-size:19px;letter-spacing:0}
.order-form .notice,.order-content .notice{margin:0}
.order-form-status:empty{display:none}
.order-wide{width:100%;min-height:46px;border-radius:12px;text-align:center}
.order-created .button{display:block}
.order-id-card{display:flex;flex-direction:column;gap:8px;padding:16px;background:#fff5df;border:1px solid #f1e2c6;border-radius:14px;color:#735c38}
.order-id,.order-id-small{overflow-wrap:anywhere;font-size:13px;letter-spacing:0}
.order-id{font-size:15px;color:#433b2d}
.order-caption{margin:0;color:#867963;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.order-save-check{display:flex;gap:9px;align-items:flex-start;color:#655840;font-size:14px;line-height:1.6}
.order-save-check input{width:18px;height:18px;flex:none;accent-color:#c8932f}
.order-list-item{display:flex;align-items:center;gap:12px;padding:15px;background:#fff;border:1px solid #f0e7d8;border-radius:14px}
.order-list-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
.order-product{display:flex;gap:14px;align-items:center;padding:16px;background:#fff;border:1px solid #f0e7d8;border-radius:16px}
.order-product .product-image{width:60px;height:60px;flex:0 0 60px;aspect-ratio:1;border-radius:12px}
.order-product .product-image img{object-fit:contain}.order-product .placeholder{font-size:32px}
.order-product-info{display:flex;min-width:0;flex-direction:column;gap:5px}.order-product-info h2{overflow-wrap:anywhere}
.order-status{margin:0;color:#8c6d36;font-weight:700}
.order-blue-card{padding:17px;border:1px solid #cfe4f4;border-radius:16px;background:#eaf6ff;color:#365469;line-height:1.8;overflow-wrap:anywhere}
.order-blue-card h3{margin:0 0 10px;color:#365e7a;font-size:16px}.order-blue-card p{margin:0}.order-value,.order-extra{margin:10px 0!important}.order-extra p{white-space:pre-wrap}
.order-warning-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px;background:#30271988}
.order-warning{display:flex;flex-direction:column;gap:14px;width:min(100%,460px);max-height:calc(100dvh - 40px);overflow:auto;padding:22px;border-radius:20px;background:#fffdf9;box-shadow:0 18px 55px #30241430}
.order-warning h2{margin:0;font-size:20px}.order-warning-help{overflow:auto;max-height:45vh;padding:14px;background:#eaf6ff;border-radius:12px;color:#365469;line-height:1.7}
.order-warning-actions{display:flex;gap:10px}.order-warning-actions .button{flex:1}.order-manual-copy{width:100%;padding:12px;border:1px solid #cfe4f4;border-radius:10px;resize:vertical}
.order-copy-toast{position:fixed;z-index:90;top:50%;left:50%;transform:translate(-50%,-50%);padding:14px 22px;border-radius:13px;background:rgba(42,48,46,.82);color:#fff;font-weight:650;white-space:nowrap;pointer-events:none;animation:order-toast 2s ease forwards}
@keyframes order-toast{0%,75%{opacity:1}100%{opacity:0}}
.admin-order-list{display:grid;gap:12px}.admin-order-card{padding:16px;border:1px solid #eadfce;border-radius:14px;background:#fff;overflow-wrap:anywhere}.admin-order-card h3{margin:0 0 9px;font-size:16px}.admin-order-meta{margin:5px 0;color:#6e6454;font-size:13px;line-height:1.6}.admin-order-card .form{margin-top:12px}.admin-order-notice{position:fixed;z-index:80;right:18px;bottom:20px;width:min(360px,calc(100% - 36px));padding:18px;border:1px solid #e8d5ad;border-radius:16px;background:#fffdf7;box-shadow:0 12px 36px #59442135}.admin-order-notice p{margin:0 0 12px}.admin-order-notice-actions{display:flex;gap:8px}.admin-order-notice-actions .button{flex:1}
@media(max-width:420px){.product-row:has(.order-row-actions){gap:8px}.product-row:has(.order-row-actions) .product-image{width:42px;height:42px;flex-basis:42px}.order-row-actions{gap:3px}.order-row-actions .button{padding:8px 10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.order-copy-toast{animation:none}}

/* Five navigation items remain comfortably tappable on narrow phones. */
.bottom-nav{gap:4px;padding-left:8px;padding-right:8px}
.bottom-nav a{padding:8px 3px;font-size:19px}
.bottom-nav a span{font-size:12px}
.customer-page{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.customer-page-title,.customer-panel-title{font-size:24px;line-height:1.3;letter-spacing:0;color:#59472d;margin:0}
.customer-panel{max-width:480px;margin:20px auto 0;padding:24px;background:#fff;border:1px solid #f2e9db;border-radius:20px;box-shadow:0 8px 24px #8b735a12}
.customer-auth-form{gap:16px}.customer-auth-switch{align-self:center;padding:8px;color:#a27736;text-align:center}
.customer-profile{display:flex;flex-direction:column;gap:14px}
.customer-profile-name{margin:0 0 4px;color:#897b66;overflow-wrap:anywhere}
.customer-profile-action{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:14px 16px;border:1px solid #f1e7d6;border-radius:14px;background:#fffbf4;color:#5b4930;text-align:left;font-weight:650}
.customer-profile-action::after{content:'›';font-size:22px;color:#b5a282}
.customer-profile-action:active{transform:scale(.98)}
.order-list-item>.product-image{width:46px;height:46px;flex:0 0 46px;aspect-ratio:1;border-radius:11px;background:#fff7e7}
.order-list-item>.product-image img{object-fit:contain}.order-list-item .placeholder{font-size:25px}
.legacy-recovery{border:1px solid #f0e7d8;border-radius:14px;background:#fff}
.legacy-recovery summary{padding:14px 16px;color:#987d4f;font-size:13px;cursor:pointer}
.legacy-recovery-body{display:flex;flex-direction:column;gap:12px;padding:0 16px 16px}
.legacy-order-slot{display:flex;flex-direction:column;gap:12px}
html.customer-viewport .order-fullscreen{max-width:100%;overflow-x:hidden;touch-action:pan-y}
html.customer-viewport .order-fullscreen-body{overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y}
.order-fullscreen-body,.order-content,.order-product,.order-blue-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:360px){.bottom-nav{gap:2px;padding-left:5px;padding-right:5px}.bottom-nav a{font-size:18px}.bottom-nav a span{font-size:11px}.customer-panel{padding:20px}}
.maker-credit{margin-left:auto;color:#897555;font-size:12px;white-space:nowrap}
.admin-page .maker-credit,.admin-site .maker-credit{display:none}
@media(max-width:370px){.maker-credit{font-size:11px}}
