@import url('https://fonts.googleapis.com/css2?family=Signika:wght@400;500;600;700&family=Signika+Negative:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#17191c;--panel:#26292e;--line:#3e4146;--gold:#ffa04b;--text:#faf6f0;--muted:#b9b5b0;--green:#a8c7af}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'Signika Negative',sans-serif;font-size:13px}button,input,select{font:inherit}button,a,input,select{outline-offset:5px}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer;border:0;padding:13px 20px;background:var(--gold);color:#2b1504;font-weight:600;border-radius:3px}button:hover{filter:brightness(1.12)}button:disabled{opacity:.45;cursor:not-allowed}input,select{padding:12px;background:#1c1f23;border:1px solid var(--line);color:var(--text);border-radius:3px}input{min-width:0}label{display:grid;gap:9px;margin:16px 0}.demo-bar{background:#262321;color:#d5c8bd;font-size:10px;letter-spacing:1px;padding:8px 5%;display:flex;align-items:center;gap:12px}.demo-bar button{margin-left:auto;background:none;color:#c7b9ad;font-size:10px;padding:3px}.demo-bar span{letter-spacing:0}header{min-height:96px;max-width:1330px;margin:auto;padding:20px 4%;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line)}.brand{font-size:25px;font-family:Georgia,serif;font-weight:bold;position:relative;white-space:nowrap}.brand span{color:var(--gold)}.brandmark{font-size:34px;margin-right:9px}.brand small{font-family:Arial,sans-serif;display:block;font-size:8px;letter-spacing:3px;margin-left:47px;color:#aaa39b}.outline{background:transparent;border:1px solid #685440;color:var(--gold)}nav{display:flex;gap:30px;margin:auto}nav a{font-size:12px;color:#bcb6af}nav a.active,nav a:hover{color:var(--gold)}main{max-width:1200px;margin:auto;padding:0 28px 65px}.hero{min-height:450px;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;position:relative;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--gold);text-transform:uppercase}.hero h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:66px;line-height:1.04;margin:23px 0}.hero h1 em{color:var(--gold);font-style:normal}.hero p{color:var(--muted);line-height:1.9;max-width:425px;font-size:13px}.hero-actions{display:flex;gap:22px;align-items:center;margin:28px 0}.subtle{color:var(--muted);font-size:11px}.portal{height:400px;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#ff8a2820,transparent 66%)}.portal svg{height:390px;width:100%;filter:drop-shadow(0 0 20px #ff942b33)}.portal-label{position:absolute;bottom:14px;font-size:9px;letter-spacing:4px;color:#aca49b}.features{display:grid;grid-template-columns:repeat(3,1fr);padding:27px 0;border-bottom:1px solid var(--line);gap:30px}.feature{display:flex;gap:14px;align-items:center}.feature b{font-size:12px;font-weight:500}.feature p{font-size:10px;color:var(--muted);margin:6px 0 0}.feature i{font-size:25px;color:var(--gold);font-style:normal}.section-title{display:flex;align-items:end;justify-content:space-between;margin:48px 0 25px;gap:15px}h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:38px;font-weight:500;margin:10px 0}h3{font-size:16px;font-weight:500}.section-title p{color:var(--muted);font-size:12px}.toolbar{display:flex;gap:8px;align-items:center;margin:20px 0}.chip{background:transparent;color:#bcb6af;border:1px solid var(--line);font-size:11px;padding:9px 16px}.chip.selected{color:var(--gold);background:#3d2e23;border-color:#b16f36}.toolbar select{margin-left:auto;font-size:11px;padding:9px}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid var(--line);background:linear-gradient(140deg,#292b2f,#202226);border-radius:5px;overflow:hidden}.card:hover{border-color:#c67a3a}.card-art{height:155px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#ff9a342b,transparent 70%);border-bottom:1px solid var(--line)}.sigil{color:#ffb573;font:70px Georgia;text-shadow:0 0 35px #ff7d2c55;transform:rotate(-5deg)}.card-art:before,.card-art:after{content:'';position:absolute;width:85px;height:85px;border:1px solid #ffa04b55;transform:rotate(45deg)}.card-art:after{width:110px;height:110px;border-style:dotted}.badge{position:absolute;top:15px;left:16px;font-size:9px;letter-spacing:1px;color:#dec3a9}.stock{position:absolute;right:15px;top:15px;font-size:9px;color:#b8c8b0}.card-body{padding:22px}.card-body p{color:var(--muted);font-size:11px;line-height:1.8}.tag{font-size:9px;border:1px solid #49423b;color:#cec5bc;padding:4px 7px;border-radius:3px}.price-line{display:flex;justify-content:space-between;align-items:center;margin:25px 0 18px}.price{font-family:Georgia,serif;font-size:26px;color:var(--gold)}.price small{font-family:Arial;font-size:11px;color:var(--muted)}.wide{width:100%}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:25px 0}.steps article{border-top:1px solid var(--line);padding-top:22px}.steps b{color:var(--gold);font-size:11px;letter-spacing:2px}.steps p{font-size:12px;line-height:1.8;color:var(--muted)}footer{border-top:1px solid var(--line);padding:35px 6%;display:flex;align-items:center;gap:30px;flex-wrap:wrap}footer p,footer span{font-size:10px;color:var(--muted)}footer>a:nth-of-type(2){margin-left:auto;font-size:11px}footer>span{width:100%}.panel{padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:4px;margin:20px 0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:25px}.muted{color:var(--muted);line-height:1.8}.status{display:inline-block;padding:6px 10px;background:#3d493766;color:#b9d0ad;font-size:10px;border-radius:20px}.account{display:flex;justify-content:space-between;align-items:center;gap:20px}.account p{color:var(--muted)}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.notice{padding:13px 16px;border-left:2px solid var(--gold);background:#ffa04b12;color:#d3c7bb;font-size:12px;line-height:1.8}.empty{text-align:center;padding:60px 20px}.mail-layout{display:grid;grid-template-columns:290px 1fr;min-height:400px;border:1px solid var(--line)}.mail-list{background:#202327;border-right:1px solid var(--line)}.mail-item{display:block;width:100%;text-align:left;color:var(--text);background:transparent;border-bottom:1px solid var(--line);border-radius:0;padding:20px;font-weight:400;line-height:1.7}.mail-item.selected{background:#433024}.mail-item small{display:block;color:var(--muted);font-size:10px}.mail-content{padding:30px;line-height:1.9;overflow-wrap:anywhere}.code{font:36px Georgia;color:var(--gold);letter-spacing:6px;margin:25px 0}.qr-demo{height:180px;width:180px;display:grid;place-items:center;margin:22px auto;border:10px solid #eee9e1;background:repeating-conic-gradient(#24272b 0 25%,#eee9e1 0 50%) 0/22px 22px}.qr-demo span{background:#202226;padding:10px;color:#ffd1a6;font-weight:bold;transform:rotate(-8deg);border:1px solid var(--gold)}dialog{background:#282a2e;color:var(--text);border:1px solid #6d5745;border-radius:7px;width:440px;max-width:92vw;padding:30px}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.close{float:right;background:none;color:var(--muted);padding:4px 9px;font-size:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#ffa04b;color:#202226;padding:14px 22px;z-index:10;border-radius:4px;display:none;max-width:90vw}textarea{width:100%;min-height:130px;background:#191c20;color:var(--text);border:1px solid var(--line);padding:15px;font:12px monospace}table{width:100%;border-collapse:collapse}th,td{padding:16px 10px;text-align:left;border-bottom:1px solid var(--line);font-size:12px}th{color:var(--muted);font-weight:400}.table-wrap{overflow:auto}.metric{font:36px Georgia;color:var(--gold)}.support{min-height:200px}.support button{margin-top:20px}.back{display:inline-block;margin-top:28px;color:var(--muted)}
@media(max-width:800px){header{flex-wrap:wrap;gap:20px;padding:20px}nav{order:3;width:100%;justify-content:space-between;gap:10px}header>button{margin-left:auto}.hero{grid-template-columns:1fr 0.8fr;min-height:400px}.hero h1{font-size:48px}.portal{height:330px}.products{gap:12px}.card-body{padding:15px}.features{gap:15px}.feature i{display:none}.grid2{grid-template-columns:1fr}}@media(max-width:600px){main{padding:0 18px 40px}.demo-bar span{display:none}.brand{font-size:23px}header>button{font-size:11px;padding:10px}nav a{font-size:10px}.hero{grid-template-columns:1fr}.hero>div:first-child{z-index:1;padding:40px 0 20px}.hero h1{font-size:54px}.portal{position:absolute;right:-18px;top:10px;width:65%;opacity:.25;height:380px}.hero p{max-width:300px}.features{grid-template-columns:1fr;padding:20px 0;gap:18px}.feature i{display:block}.products,.steps{grid-template-columns:1fr}.card-art{height:145px}.section-title{align-items:start}.section-title h2{font-size:32px}.toolbar{flex-wrap:wrap}.toolbar select{margin-left:0}.account{align-items:start;flex-direction:column}.mail-layout{grid-template-columns:1fr}.mail-list{border-right:0}.mail-content{padding:20px}.panel{padding:20px}.section-title>p{display:none}footer{gap:15px}footer>a:nth-of-type(2){margin-left:0}.hero-actions{gap:15px}.row input{max-width:100%}}

/* Ember palette and aligned wordmark */
.brand{display:inline-flex;align-items:center;gap:10px;font-family:'Signika Negative',sans-serif;font-size:25px;line-height:1.15;letter-spacing:-1px}
.brand .brandmark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:42px;margin:0;color:#ffb975;font-size:inherit}
.brandmark svg{display:block;width:36px;height:40px;filter:drop-shadow(0 0 9px #ff8d3255)}
.brand .brand-copy{display:flex;flex-direction:column;gap:7px;color:var(--text)}
.brand .brand-name{color:var(--text);display:block}.brand .brand-name b{color:#ffa04b;font-weight:700}
.brand small{margin:0;font-size:7px;line-height:1;letter-spacing:2.3px;color:#aaa39b}
.hero h1{font-family:'Signika Negative',sans-serif;font-size:49px;line-height:1.22;letter-spacing:-2.1px;font-weight:700}
.hero h1 em{background:linear-gradient(110deg,#ffc187,#ffa04b 55%,#ff873f);background-clip:text;-webkit-background-clip:text;color:transparent}
h2{font-family:'Signika Negative',sans-serif;font-size:30px;font-weight:600;letter-spacing:-1px;line-height:1.35}
.price,.metric{font-family:'Signika Negative',sans-serif;font-weight:600;letter-spacing:-.8px}
button{border-radius:7px}button:not(.outline):not(.chip):not(.mail-item):not(.close):not(#reset):not(.auth-text-button){background:linear-gradient(110deg,#ffb36c,#ff9b43);color:#2b1504}
.card,.panel{border-radius:12px}.card-art{background:radial-gradient(ellipse at 50% 100%,#ff8d2b25,transparent 75%)}
.card:nth-child(2) .sigil{color:#ffc188;text-shadow:0 0 35px #ff9d4655}.card:nth-child(3) .sigil{color:#e7b18a;text-shadow:0 0 35px #f8903e33}
.feature i{color:#ffb36c}.eyebrow{color:#ffb46e}.hero{background:radial-gradient(ellipse at 90% 50%,#ff8b2a0b,transparent 65%)}
footer .brand{font-size:23px}.outline:hover{background:#ffa04b12}button:focus-visible,a:focus-visible{outline:2px solid #ffb36c}
@media(max-width:800px){.hero h1{font-size:39px;letter-spacing:-1.5px}.brand{font-size:23px}}
@media(max-width:600px){.hero h1{font-size:40px;letter-spacing:-1.7px}.section-title h2{font-size:28px}.brand{font-size:22px;gap:8px}.brand .brandmark{flex-basis:30px;width:30px}.brandmark svg{width:29px;height:34px}.brand small{font-size:6px;letter-spacing:1.8px}header{gap:15px}header>button{padding:10px 12px}.portal{opacity:.38}.hero{min-height:380px}}

/* Ember energy portal */
.portal{height:440px;isolation:auto;overflow:visible;background:none;pointer-events:none}
.portal-art{display:block;width:100%;height:430px;object-fit:contain;mix-blend-mode:lighten;mask-image:radial-gradient(ellipse at 50% 48%,#000 60%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 50% 48%,#000 60%,transparent 75%)}
.portal-label{bottom:8px;color:var(--muted);font-size:8px;letter-spacing:3px}
@media(min-width:801px){.hero{min-height:475px}}
@media(min-width:601px) and (max-width:800px){.portal{height:330px}.portal-art{height:330px}.portal-label{font-size:7px;letter-spacing:2px}}
@media(max-width:600px){.hero{grid-template-columns:1fr;gap:0}.hero>div:first-child{padding:35px 0 0}.portal{position:relative;right:auto;top:auto;width:100%;height:300px;opacity:1;margin:0 auto 12px}.portal-art{height:300px;max-width:370px}.portal-label{bottom:0;font-size:7px;letter-spacing:2.5px}}

/* Four sample account months */
.products{grid-template-columns:repeat(4,minmax(0,1fr))}.card-body .tag{display:inline-block;margin-bottom:5px}.card-body h3{line-height:1.5}.card-body{padding:18px}.price{font-size:24px}
@media(max-width:1050px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.products{grid-template-columns:1fr}}

/* Simplified product cards with separate email types */
.card-body h3{min-height:48px;margin:0 0 14px;line-height:1.5}.provider-tag{border-color:#7a5736;color:#ffc185;background:#ffa04b0a}.toolbar select[aria-label="Loại email"]{margin-left:auto}.toolbar select[aria-label="Sắp xếp"]{margin-left:0}
@media(max-width:600px){.card-body h3{min-height:0}.toolbar select[aria-label="Loại email"]{margin-left:0}}

/* Inventory visibility and sold-out examples */
.is-soldout .card-art{opacity:.55}.is-soldout .stock{color:var(--text)}.is-soldout .price{color:var(--muted)}.status-hidden{background:#3e4146;color:#d7d1ca}.visibility-table th,.visibility-table td{white-space:nowrap}.visibility-table button{padding:9px 13px;font-size:11px}.catalog-empty{grid-column:1/-1;padding:35px 0}

/* Standalone email catalog */
#email-catalog{margin-top:48px;padding-top:4px;border-top:1px solid var(--line)}.email-products{grid-template-columns:repeat(2,minmax(0,1fr))}.email-products .card{display:grid;grid-template-columns:140px minmax(0,1fr)}.email-products .card-art{height:100%;min-height:260px;border-bottom:0;border-right:1px solid var(--line)}.email-products .sigil{font-size:52px}.email-products .stock{top:14px;left:12px;right:auto;font-size:9px}.email-products .card-body h3{min-height:0;margin-top:0}.email-products .card-body{padding:24px}.email-products .price-line{margin-top:20px}
@media(max-width:850px){.email-products{grid-template-columns:1fr}}
@media(max-width:600px){.email-products .card{grid-template-columns:95px minmax(0,1fr)}.email-products .card-body{padding:17px}.email-products .card-art{min-height:255px}.email-products .stock{left:8px;font-size:8px}.email-products .card-art:before{width:58px;height:58px}.email-products .card-art:after{width:72px;height:72px}}

/* Original Allflame-inspired underwater hero background */
body{overflow-x:clip}
.hero{isolation:isolate;background:none;min-height:520px}
.hero::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);z-index:-1;pointer-events:none;background-image:linear-gradient(180deg,rgba(23,25,28,.08) 0%,rgba(23,25,28,.1) 55%,var(--bg) 100%),linear-gradient(90deg,rgba(23,25,28,.35),rgba(23,25,28,.06) 65%,rgba(23,25,28,.12)),url('assets/allflame-background.png');background-size:cover;background-position:center 40%}
.hero>div:first-child{padding:35px 0;text-shadow:0 2px 12px rgba(0,0,0,.65)}
.hero-actions button{text-shadow:none}.hero p{color:#d2ceca}.hero .subtle{color:#c9c3bb}.hero .tag{background:rgba(23,25,28,.65)}
.portal{height:455px}.portal-art{height:450px}.portal-label{color:#bcb5ad;text-shadow:0 1px 6px #000}
@media(min-width:601px) and (max-width:800px){.hero{min-height:430px}.portal{height:340px}.portal-art{height:335px}.hero::before{background-position:58% center}}
@media(max-width:600px){.hero{min-height:0}.hero::before{background-position:58% top;background-image:linear-gradient(180deg,rgba(23,25,28,.2),rgba(23,25,28,.42) 45%,var(--bg) 100%),url('assets/allflame-background.png')}.hero>div:first-child{padding:35px 0 0}.portal{height:300px}.portal-art{height:300px}.hero p{color:#d2ceca}}
.hero h1 em{text-shadow:none}

/* Sticky glass navigation */
html{scroll-padding-top:112px}
header{position:sticky;top:0;z-index:100;width:100%;max-width:none;padding-left:max(4%,calc((100vw - 1220px)/2));padding-right:max(4%,calc((100vw - 1220px)/2));background:rgba(23,25,28,.78);backdrop-filter:blur(16px) saturate(110%);-webkit-backdrop-filter:blur(16px) saturate(110%);border-bottom:1px solid rgba(190,182,171,.18);box-shadow:0 5px 24px rgba(0,0,0,.14)}
@supports not ((backdrop-filter:blur(16px)) or (-webkit-backdrop-filter:blur(16px))){header{background:rgba(23,25,28,.96)}}
@media(max-width:800px){html{scroll-padding-top:150px}}

/* Raw delivery lines and per-account clipboard action */
.delivery-card{padding:20px}.delivery-card label{font-size:12px;font-weight:600;margin:0 0 12px}.delivery-line{display:block;width:100%;height:90px;min-height:90px;margin:0 0 14px;padding:12px;resize:vertical;overflow-wrap:anywhere;line-height:1.7;font-family:ui-monospace,Consolas,monospace;font-size:12px;word-break:break-all}.delivery-format{font-family:ui-monospace,Consolas,monospace;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.delivery-card button{min-width:92px}
@media(max-width:600px){.delivery-card{padding:16px}.delivery-line{font-size:12px}}

/* Left-aligned primary navigation */
header nav{flex:1;justify-content:flex-start;margin:0;gap:28px}header #my-orders-nav{margin-left:auto}header #login{flex-shrink:0}
@media(max-width:800px){header nav{flex-basis:100%;width:100%;justify-content:flex-start;gap:26px}}
@media(max-width:600px){header nav{gap:24px}}

/* Typography matched to the supplied reference */
body{font-family:'Signika',sans-serif}
h1,h2,h3,.brand,nav,button,.price,.metric,.code{font-family:'Signika Negative',sans-serif}
.hero h1{letter-spacing:-.7px;line-height:1.16;font-weight:700}
h2{letter-spacing:-.2px;font-weight:700}h3{font-weight:600}
.brand{letter-spacing:-.4px}.brand small{font-family:'Signika',sans-serif}
nav a{font-weight:500}.price,.metric{letter-spacing:0;font-weight:700}.price small{font-family:'Signika',sans-serif}
@media(max-width:800px){.hero h1{letter-spacing:-.5px}}
@media(max-width:600px){.hero h1{letter-spacing:-.4px}}

/* More compact sticky header */
header{min-height:76px;padding-top:12px;padding-bottom:12px;gap:32px}
header .brand{font-size:23px;gap:8px}header .brand .brandmark{flex-basis:32px;width:32px;height:36px}header .brandmark svg{width:30px;height:34px}header .brand .brand-copy{gap:5px}header .brand small{font-size:6.5px;letter-spacing:2px}
header nav{gap:24px}header #login{padding:10px 16px;font-size:12px}
html{scroll-padding-top:92px}
@media(max-width:800px){header{gap:10px 24px;padding-top:11px;padding-bottom:11px}header nav{gap:24px}html{scroll-padding-top:112px}}
@media(max-width:600px){header .brand{font-size:21px}header .brand .brandmark{flex-basis:28px;width:28px;height:32px}header .brandmark svg{width:27px;height:31px}header .brand small{font-size:6px;letter-spacing:1.7px}header #login{padding:9px 13px;font-size:11px}}

/* Purchased-mailbox chooser */
.mail-access-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-top:1px solid var(--line)}.mail-access-row b{font-size:13px;font-weight:600}.mail-access-row p{margin:7px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.mail-access-row>div{min-width:0}.mail-access-row a{flex-shrink:0}.mail-access-row button{padding:10px 18px}
@media(max-width:600px){header nav{gap:20px}.mail-access-row{align-items:flex-start}.mail-access-row button{padding:9px 12px}}

/* Per-account delivery actions */
.delivery-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.delivery-actions button{margin:0}

/* Login dialog footer */
.login-create-account{margin:20px 0 0;text-align:right;color:var(--gold);font-size:13px}
.auth-text-button{padding:0;background:transparent;color:var(--gold);font:inherit}.auth-text-button:hover{text-decoration:underline}

/* Wider order information dialog */
dialog.order-info-dialog{width:800px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:32px;overflow-y:auto}
.order-info-dialog .delivery-card{padding:24px}
.order-info-dialog .delivery-line{min-height:110px;height:110px;font-size:14px;padding:16px}
@media(max-width:600px){dialog.order-info-dialog{padding:20px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.order-info-dialog .delivery-card{padding:16px}.order-info-dialog .delivery-line{font-size:12px;padding:12px}}

/* Spacious purchase confirmation */
dialog.purchase-dialog{width:660px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:30px;border-radius:12px;background:#22262b;border-color:#49423b;overflow-y:auto}
.purchase-dialog>.close{position:absolute;top:17px;right:18px;float:none;font-size:22px}
.purchase-dialog .purchase-title{font-size:27px;line-height:1.25;letter-spacing:0;text-align:center;margin:0 28px 28px;font-weight:700}
.purchase-section-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin-bottom:10px}
.purchase-info{margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#1b1f23}
.purchase-info>div{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:start;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line)}.purchase-info>div:last-child{border-bottom:0}
.purchase-info dt{color:var(--muted);font-size:13px}.purchase-info dd{margin:0;text-align:right;font-size:14px;font-weight:600;overflow-wrap:anywhere}.purchase-info .purchase-stock{color:#b9d0ad}
.purchase-quantity-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0}
.purchase-dialog .purchase-quantity-label{display:block;margin:0;font-size:14px;font-weight:500}
.purchase-stepper{display:flex;align-items:center;background:#17191c;border:1px solid #55504b;border-radius:6px;overflow:hidden}
.purchase-stepper .quantity-step{border:0;border-radius:0;min-width:42px;min-height:42px;padding:8px;color:var(--text);background:transparent;font-size:20px;font-weight:500}
.purchase-stepper input{width:66px;min-width:0;padding:10px 3px;text-align:center;border:0;border-radius:0;background:transparent;font-size:16px;font-weight:600;appearance:textfield;-moz-appearance:textfield}
.purchase-stepper input::-webkit-inner-spin-button,.purchase-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.purchase-total-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0 4px;border-top:1px solid var(--line)}
.purchase-total-row>span{color:var(--muted);font-size:13px;font-weight:600;text-transform:uppercase}.purchase-total-row output{font-family:'Signika Negative',sans-serif;color:var(--gold);font-size:30px;font-weight:700;line-height:1.2;white-space:nowrap}
.purchase-note{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 22px}.purchase-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:12px}.purchase-actions button{min-height:48px;font-size:15px;font-weight:600}
.purchase-error{color:#ffbc91;font-size:12px;margin:0 0 16px;line-height:1.6}
@media(max-width:600px){dialog.purchase-dialog{padding:24px 19px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.purchase-dialog .purchase-title{font-size:23px;margin:0 20px 24px}.purchase-info>div{grid-template-columns:86px minmax(0,1fr);padding:12px;gap:9px}.purchase-info dt{font-size:12px}.purchase-info dd{font-size:13px}.purchase-actions{grid-template-columns:1fr 1.2fr;gap:10px}.purchase-actions button{font-size:14px;padding:12px}.purchase-total-row output{font-size:28px}}

/* Unified mail reader */
.admin-product-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-product-heading h3{margin:0}.admin-product-heading p{margin:8px 0}.admin-product-heading>button{flex-shrink:0}.admin-product-table{min-width:900px}.admin-product-table td{vertical-align:middle}.admin-product-table td:first-child{max-width:280px;white-space:normal;overflow-wrap:anywhere}.admin-product-table small{display:block;margin-top:6px;color:var(--muted)}.admin-product-table button{padding:8px 12px}.admin-product-table .row{flex-wrap:nowrap;gap:8px}
dialog.product-editor-dialog{width:660px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}.product-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.product-form-grid label{min-width:0}.product-form-grid input,.product-form-grid select{width:100%;min-width:0}.product-form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}#product-description{font:inherit;line-height:1.6;min-height:100px;resize:vertical}
@media(max-width:600px){.admin-product-heading{align-items:flex-start;flex-direction:column}.product-form-grid{grid-template-columns:1fr}.product-editor-dialog{padding:20px}.product-form-actions button{flex:1}}

.reader-panel{padding:24px}.reader-panel>label{font-size:18px;font-weight:600;margin:0}.reader-panel .subtle{margin:6px 0 12px}.reader-panel .notice{margin:12px 0}.reader-panel #reader-input{display:block;width:100%;min-height:220px;resize:vertical;line-height:1.7;font:13px/1.7 Consolas,monospace;background:#191c20;border:1px solid #56504a;border-radius:8px;padding:16px;overflow-wrap:anywhere}.reader-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:12px 0 22px}.reader-actions p{font-size:13px;color:var(--muted);margin:0}.reader-actions button{min-width:120px}.reader-all{font-size:18px;margin:0 0 14px}.reader-table{min-width:920px;width:100%;table-layout:fixed}.reader-table th:nth-child(1){width:23%}.reader-table th:nth-child(2){width:5%}.reader-table th:nth-child(3){width:16%}.reader-table th:nth-child(4){width:13%}.reader-table th:nth-child(5){width:33%}.reader-table th:nth-child(6){width:10%}.reader-table td{vertical-align:top;overflow-wrap:anywhere;padding:16px 12px}.reader-table p{font-size:13px;line-height:1.6;color:var(--muted);margin:6px 0}.reader-table .reader-detail{font-size:12px;padding:5px 10px;min-height:0}.reader-table .reader-code{font-family:Consolas,monospace;padding:7px;color:var(--gold)}.reader-table .reader-empty{text-align:center;padding:40px;color:var(--muted)}
@media(max-width:600px){.reader-panel{padding:16px}.reader-panel #reader-input{min-height:190px;font-size:12px}.reader-actions{align-items:flex-start}.reader-actions p{font-size:12px}.reader-actions button{min-width:100px;padding:12px}.reader-table{min-width:850px}}

/* Account inventory (admin) */
#admin-inventory #inventory-form{margin:18px 0 6px}
#admin-inventory #inventory-product{width:100%;max-width:420px}
#admin-inventory #inventory-lines{display:block;min-height:120px;font:12px/1.7 Consolas,monospace}
#admin-inventory code{font-family:Consolas,monospace;font-size:11px;color:var(--gold)}
.inventory-table{min-width:760px}
.inventory-table td:nth-child(2){max-width:360px}
.inventory-table .inventory-line{display:block;white-space:normal;overflow-wrap:anywhere;color:var(--text);font-size:11px}
.inventory-table a{color:var(--gold);text-decoration:underline}
#admin-inventory .product-form-actions{margin-top:12px}
@media(max-width:600px){#admin-inventory #inventory-product{max-width:100%}.inventory-table{min-width:680px}}

/* Admin order management */
.status-pending{background:#4a3a2566;color:#ffcf9e}
.status-paid{background:#3d493766;color:#b9d0ad}
.status-cancelled{background:#4a3a3c66;color:#e8b3ab}
#admin-orders .order-table{min-width:840px}
#admin-orders .order-table td{vertical-align:middle}
#admin-orders .order-table small{display:block;margin-top:6px;color:var(--muted)}
#admin-orders .order-table .row{flex-wrap:nowrap;gap:8px}
#admin-orders .order-table button{padding:8px 12px}
.admin-order-filters{margin:16px 0 12px}
dialog.order-admin-dialog{width:720px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:30px;overflow-y:auto}
.admin-order-lines{margin:10px 0 0;padding-left:22px}
.admin-order-lines li{margin:8px 0}
.admin-order-lines code{font-family:Consolas,monospace;font-size:11px;color:var(--gold);overflow-wrap:anywhere}
@media(max-width:600px){dialog.order-admin-dialog{padding:20px;max-width:calc(100vw - 24px)}#admin-orders .order-table{min-width:780px}.admin-order-lines{padding-left:18px}}

/* Mobile usability fixes (26/10/2026): keep desktop layout unchanged */

/* 1. A select placed directly in .row must shrink instead of overflowing its panel.
   (Originally added for #stockProduct, which the account inventory replaced; kept as a general guard.) */
@media(max-width:600px){.row>select{flex:1 1 180px;min-width:0;max-width:100%}}

/* 2. Short viewports (phone landscape, keyboard open): compact purchase dialog, keep close button reachable */
@media(max-height:600px){
 dialog.purchase-dialog{padding:14px 19px}
 .purchase-dialog .purchase-title{font-size:18px;margin:0 26px 10px}
 .purchase-section-label{margin-bottom:6px}
 .purchase-info>div{padding:6px 10px}
 .purchase-quantity-row{padding:8px 0}
 .purchase-total-row{padding:8px 0 2px}
 .purchase-total-row output{font-size:22px}
 .purchase-note{display:none}
 .purchase-actions button{padding:8px;font-size:14px}
 dialog.purchase-dialog>.close{position:sticky;top:0;float:right;margin:-4px -4px -33px 0;z-index:2}
 /* the order-information dialog scrolls the same way when the delivery lines are long */
 dialog.order-info-dialog{padding:18px}
 .order-info-dialog>.close{position:sticky;top:0;float:right;margin:-6px -6px -33px 0;z-index:2}
 .order-info-dialog .delivery-card{padding:14px}
 .order-info-dialog .delivery-line{min-height:76px;height:76px;padding:10px}
}

/* 3. Touch targets: navigation, buttons, chips, table actions, brand links, footer links.
   Short viewports (phone landscape) need them too; the width cap keeps wide desktop windows untouched. */
@media(max-width:800px),(max-height:600px) and (max-width:1024px){
 header nav{gap:18px}
 header nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
 button{min-height:44px}
 /* The dialog close "×" keeps its original box so the centred title keeps its space; an
    absolutely positioned pseudo-element widens only the tap area to 44x44. */
 .close{min-height:0;position:relative}
 .close::after{content:'';position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
 .demo-bar{padding:2px 5%}
 #reset{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;font-size:11px}
 .chip{min-height:44px;display:inline-flex;align-items:center}
 .toolbar select{min-height:44px}
 .auth-text-button{display:inline-flex;align-items:center;justify-content:flex-end;min-height:44px}
 /* Order-id links inside the admin tables were 15px tall; give them a real tap area. */
 #admin-inventory .inventory-table a{display:inline-flex;align-items:center;min-height:44px}
 .purchase-stepper .quantity-step{min-width:44px;min-height:44px}
 .purchase-stepper input{min-height:44px}
 .empty>a{display:inline-flex;align-items:center;min-height:44px}
 header .brand,footer .brand{display:inline-flex;align-items:center;min-height:44px}
 footer a:not(.brand){display:inline-flex;align-items:center;min-height:44px}
}

/* 4. Inputs at >=16px so iOS does not auto-zoom on focus (same breakpoints as the touch targets) */
@media(max-width:800px),(max-height:600px) and (max-width:1024px){
 input,select,textarea{font-size:16px}
 /* #product-description uses font:inherit (ID specificity) and would stay at 13px */
 #product-description{font-size:16px}
 /* #admin-inventory #inventory-lines sets font shorthand with two IDs, so it needs an explicit override */
 #admin-inventory #inventory-lines{font-size:16px}
 .reader-panel #reader-input{font-size:16px}
 .delivery-line{font-size:16px}
 .order-info-dialog .delivery-line{font-size:16px}
 .toolbar select{font-size:16px;padding:9px 10px}
 .reader-table .reader-detail{font-size:13px;min-height:44px;padding:8px 12px}
 .reader-table .reader-code{font-size:14px;min-height:44px;padding:8px 10px}
}

.brand .brandmark img{display:block;width:48px;height:48px;max-width:none;object-fit:contain;filter:drop-shadow(0 0 5px #ff8d3233)}
@media(max-width:600px){header .brand .brandmark img{width:40px;height:40px}}

.brand .brandmark,header .brand .brandmark{flex:0 0 48px;width:48px;height:48px}
@media(max-width:600px){header .brand .brandmark{flex-basis:40px;width:40px;height:40px}}
