/* 草木茶室 / hierarchy follows the brand poster, membership and merchandise. */
:root{--paper:#f7eedf;--surface:#fffaf0;--ink:#392c23;--muted:#716252;--line:#dfcfb4;--tea:#392c23;--gold:#a98a5d;--display:"Songti SC","STSong","SimSun",serif}
#phone{background:#f2e7d3;font-family:"PingFang SC","Microsoft YaHei",sans-serif;isolation:isolate}
@media(min-width:901px){#phone{max-height:calc(100dvh - 100px)}body.public-mode #phone{max-height:calc(100dvh - 160px)}}
#phone .screen{background:#f2e7d3;padding-bottom:28px}
#phone .brandbar{background:#f7eedf;color:#392c23;height:50px;border:0}
#phone .brandname{font-family:var(--display);font-size:20px;letter-spacing:2px}
#phone .home-intro{display:none}
#phone .hero-carousel{width:calc(100% - 28px);margin:10px 14px 14px;border:0;border-radius:12px;aspect-ratio:3/4;background:#e5d2b2}
#phone .hero-slide{padding:0;border:0;border-radius:0}
#phone .hero-slide .landscape-art{object-position:center}
#phone .landscape-copy{top:25px;left:23px;right:45%;gap:0}
#phone .hero-slide .art-mark{color:#fff9df;border-color:#f5efd899;font-size:10px;border-radius:0;margin-bottom:12px}
#phone .landscape-copy strong{font-size:28px;line-height:1.55;letter-spacing:3px;color:#fff9e5;max-width:none;white-space:pre-line;text-shadow:0 1px 8px #392c2355}
#phone .hero-slide .landscape-copy small{font-size:11px;color:#f5f2dc;line-height:1.7;margin-top:12px;text-shadow:0 1px 8px #392c2366}
#phone .hero-slide .art-note{display:none}
#phone .slide-dots{bottom:25px;right:20px;left:auto;width:auto;gap:9px}
#phone .slide-dots button{background:#f8f9ed;box-shadow:0 0 0 1px #76523933}
#phone .slide-dots [aria-pressed=true]{background:#765239}
#phone .home-membership{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 14px 0;padding:18px 17px;background:#fffaf0;border:1px solid #e4d5bc;border-radius:14px}
#phone .home-membership .welcome{display:flex;gap:10px;align-items:center;min-width:0}
#phone .tea-seal{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;background:#efe0c4;border:1px solid #d4ba94;border-radius:50%;font:22px var(--display);color:#806043}
#phone .home-membership strong{display:block;font-size:14px;font-weight:600;color:#392c23}
#phone .home-membership small{display:block;font-size:10px;margin-top:5px;color:#716252}
#phone .home-membership button{border:0;padding:8px 0 8px 8px;background:transparent;font-size:11px;color:#765239;min-height:44px;white-space:nowrap}
#phone .category-section{margin:0 14px 16px;padding:8px 10px 17px;background:#fffaf0;border-radius:0 0 14px 14px;border:1px solid #e4d5bc;border-top:0}
#phone .cats{gap:4px}
#phone .cat{gap:8px;padding:8px 0 0;min-height:82px}
#phone .category-medallion,#phone .cat img{width:48px;height:48px;border-radius:18px 18px 22px 6px;background:#efe2ca;border:0;box-shadow:none;color:#806043;object-fit:cover}
#phone .category-medallion{line-height:48px;font-size:23px}
#phone .cat:nth-child(2n) .category-medallion{background:#ebdbc0;color:#8a6748}
#phone .cat strong{font-size:12px;color:#48382b;letter-spacing:.5px}
#phone .promo-banner{margin:0 14px 16px;width:calc(100% - 28px);border-radius:12px;overflow:hidden}
#phone .member-invitation{display:none}
#phone .goods-section{padding:8px 14px 22px}
#phone .chapter{margin:16px 2px 18px;gap:8px}
#phone .chapter h3{font-size:23px;letter-spacing:2px;color:#392c23}
#phone .chapter p{font-size:11px;margin-top:6px;color:#716252}
#phone .chapter-link{font-size:11px;color:#765239}
#phone .grid{gap:12px}
#phone .product{border-radius:12px;background:#fffaf0;overflow:hidden;border:1px solid #e4d5bc;box-shadow:none}
#phone .photo{height:auto;border:0;border-radius:0;background:#eee2ce;aspect-ratio:1}
#phone .detailphoto .photo{aspect-ratio:1;height:auto}
#phone .photo img{transition:none}
#phone .info{padding:12px}
#phone .info b{font-size:13px;line-height:1.55;min-height:40px;color:#392c23}
#phone .info p{font-size:10px;line-height:1.6;color:#716252;margin:3px 0 10px}
#phone .price{color:#8b5f39;font-size:18px}
#phone .price{gap:6px;flex-wrap:wrap}
#phone .price button{background:#765239;color:#fff8eb;border:0;box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;max-height:44px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:20px}
#phone .bottomnav{background:#fffaf0;border-color:#dfcfb4;box-shadow:0 -5px 18px #392c2305;padding-top:7px;min-height:68px}
#phone .bottomnav button{color:#716252;background:transparent;font-size:10px;min-width:0}
#phone .bottomnav [data-go] .navicon{height:48px}
#phone .bottomnav button.active{color:#765239;background:transparent}
#phone .bottomnav [data-go].active{color:#765239}
#phone .bottomnav:not(.detail-actions) [data-go]{padding-bottom:10px}
#phone .bottomnav [data-go].active:after{top:auto;bottom:2px;background:#a98a5d;border-radius:2px;pointer-events:none}
#phone .bottomnav button.active:after{background:#a98a5d;width:14px;height:2px;left:calc(50% - 7px)}
#phone .bottomnav .vip-nav .navicon{border:4px solid #fffaf0;border-radius:50%;width:48px;height:48px;background:#a38b71;box-shadow:none}
#phone .bottomnav .vip-nav.active .navicon{background:#765239}
#phone .bottomnav .vip-nav .navicon img{width:27px;height:27px}
#phone .membercard{border:1px solid rgba(211,180,127,.28);border-radius:16px;background-color:#453225;background-image:radial-gradient(ellipse at 0% 0%,rgba(195,157,94,.10) 0%,rgba(195,157,94,0) 64%),linear-gradient(180deg,#6c5039 0%,#59402f 42%,#453225 74%,#35291f 100%);padding:25px 22px;color:#f5f3e4;box-shadow:inset 0 1px 0 rgba(246,221,174,.18),0 7px 16px rgba(53,41,31,.12);overflow:hidden}
#phone .membercard:after{width:160px;height:160px;right:-70px;top:-55px;border-radius:50%;border:1px solid rgba(231,199,146,.22);background:radial-gradient(circle at 32% 32%,rgba(233,205,158,.06),rgba(233,205,158,0) 70%);transform:none;box-shadow:0 0 0 22px rgba(223,193,151,.035),0 0 0 48px rgba(223,193,151,.025);pointer-events:none}
#phone .membercard h2{font-size:24px;letter-spacing:2px;line-height:1.5;margin:20px 0}
#phone .membercard small,#phone .membercard p{color:#e7d5b6;font-size:11px}
#phone .member-metrics{padding:17px 0;margin:20px 0;border-color:#dfc19744}
#phone .member-metrics strong{font-family:var(--display);font-size:26px;color:#faf7e6}
#phone .membercard button{background:#f3e4c9;color:#59402f;border:0;border-radius:22px;font-size:12px;padding:12px 18px}
#phone .points-balance-card{background:#59402f;border:0;border-radius:18px;box-shadow:none;padding:24px}
#phone .points-balance-card>strong{font-family:var(--display);font-weight:400;font-size:58px}
#phone .points-card,#phone .panel,#phone .box,#phone .cartitem{background:#fffaf0;border:1px solid #dfcfb4;border-radius:14px;box-shadow:none}
#phone .points-card{padding:19px;margin-top:12px}
#phone .points-rate{color:#765239}
#phone .points-page{background:#f2e7d3}
#phone .points-card summary{min-height:30px;align-items:center;color:#59402f}
#phone .points-card .note{color:#716252}
#phone .listbutton{background:#fffaf0;border-color:#dfcfb4;border-radius:8px;color:#59402f}
#phone .gift-empty{background:#f5ead7;border-color:#d4ba94;border-radius:14px;color:#796044}
#phone .search{background:#fffaf0;border:1px solid #dac9ac;border-radius:25px;color:#392c23}
#phone .filter.active,#phone .filters .active{background:#765239;color:#fff8eb}
#phone .detailhero{border-radius:0}
#phone .store-signature{border-color:#dac9ac;color:#88745e;font-size:15px}
#phone .launch-poster{position:absolute;inset:0;z-index:100;background:#eadbc1;overflow:hidden;border-radius:30px}
#phone .launch-poster>img{display:block;width:100%;height:100%;object-fit:cover}
#phone .splash-skip{position:absolute;right:18px;bottom:30px;min-width:88px;min-height:44px;border:1px solid #ffffff66;border-radius:30px;background:#392c23aa;color:white;font-size:13px;backdrop-filter:blur(8px);padding:10px 16px}
#phone .splash-skip span{margin-left:7px;font-variant-numeric:tabular-nums}
.splash-editor .splash-duration{border:1px solid #dac9ac;border-radius:30px;color:#765239;padding:10px 18px;white-space:nowrap}
.splash-editor .assetpreview{max-height:260px;width:auto;max-width:100%;object-fit:contain}
.splash-switch{display:flex!important;align-items:center;gap:10px;margin:18px 0!important}.splash-switch input{width:auto!important}
@media(prefers-reduced-motion:reduce){#phone *{scroll-behavior:auto;transition:none!important}}
/* Management fields keep image requirements beside each upload control. */
.size-hint{display:block;font-size:12px;line-height:1.7;color:#716252;margin:8px 0}
.asset-field{margin:16px 0;padding-top:10px;border-top:1px solid #e4d5bc}
.asset-field input[type=file]{max-width:100%}
.admin-gift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}
.admin-gift-card{padding:20px;border:1px solid #dfcfb4;border-radius:16px;background:#fffaf0;min-width:0}
.admin-gift-card .assetpreview{width:100%;max-width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.gift-create{padding:20px;background:#f3e8d4;border-radius:16px;margin-top:18px}
button.danger{color:#924731;border-color:#cfae9c;background:#fffaf6}
#phone .gift-points{color:#765239;font-size:20px;line-height:1.4;margin:10px 0}
#phone .gift-points small{font-size:12px}
#phone .gift-grid .photo{aspect-ratio:1}
@media(max-width:700px){.admin-gift-grid{grid-template-columns:minmax(0,1fr)}}

/* 宣纸米黄 · 茶褐：管理端与商城共用的最终配色层。 */
:root{--paper:#f2e7d3;--surface:#fffaf0;--ink:#392c23;--muted:#716252;--line:#dfcfb4;--tea:#765239;--gold:#a98a5d}
body{background:#f2e7d3;color:#392c23}
.top{background:#f7eedf;border-color:#dfcfb4}.top .seal{background:#765239;color:#fff8eb}.top .badge{background:#efe0c4;color:#765239;border-color:#d4ba94}
a{color:#765239}.muted,.note,.preview .caption,.catalog-heading p,.editor-heading p,.admin-product-content p{color:#716252}
button{background:#f5ead7;color:#68492f;border-color:#dac9ac}
button.primary,#admin-login button.primary,.workspace button.primary{background:#765239!important;color:#fff8eb!important;border-color:#765239!important}
button.primary:hover,.workspace button.primary:hover{background:#5d3e2b!important;border-color:#5d3e2b!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.workspace button:focus-visible,#phone button:focus-visible{outline-color:#a07849}
.workspace>h1{color:#392c23;border-color:#a98a5d}.workspace>.savebar{background:#f7eedf;border-color:#dac9ac}
.workspace>.tabs{border-color:#dac9ac}.workspace .tabs button{color:#716252}.workspace .tabs button.active{background:#e7d4b4;color:#59402f;border-left-color:#765239}
.workspace .box,.admin-product-card,.asset-dialog,#admin-login{background:#fffaf0;border-color:#dfcfb4;color:#392c23}
.workspace .stats .stat{background:#f7eedf;border-color:#d4ba94}.workspace .stats strong{color:#765239}
.workspace label{color:#59402f}.workspace input:not([type=checkbox]):not([type=radio]):not([type=color]),.workspace select,.workspace textarea,#admin-login input{background:#fffcf5;border-color:#d4c0a0;color:#392c23}
.workspace input[type=file]{background:#f5ead7!important}.workspace input::file-selector-button{background:#e7d4b4;color:#59402f}
.workspace input[type=checkbox]{accent-color:#765239}.product-state.on{background:#eee0c7;color:#68492f;border-color:#dac9ac}
.editor-sections a{background:#efe0c4;color:#765239}.admin-kicker,.product-metrics b{color:#8b5f39}
.admin-product-card>img,.admin-image-empty,.workspace .assetpreview{background:#f2e7d3;border-color:#dfcfb4}
#phone .status{background:#f7eedf;color:#392c23}#phone .bottomnav{background:#fffaf0!important}
#phone .cat{background:transparent}#phone .filters button{background:#f5ead7;border-color:#dac9ac;color:#765239}#phone .filters button.active{background:#765239;color:#fff8eb}
#phone .info p,#phone .note,#phone .muted,#phone .points-card .note{color:#716252}
#phone .membercard p,#phone .membercard small{color:#e7d5b6}#phone .membercard button{color:#59402f;background:#f3e4c9}
#phone .points-card-footer{color:#f3e4c9}#phone .points-card summary{color:#59402f}
#phone .hero-slide .landscape-art{filter:sepia(.18) saturate(.85)}
#phone .bottomnav button:not(.active) .navicon img{filter:none;opacity:1}
button.danger{background:#fff3e8;color:#924731;border-color:#cfae9c}
/* Membership prices: quiet copper label, clear transaction price, secondary original. */
.member-price{display:flex;flex-direction:column;gap:5px;min-width:0;align-items:flex-start;line-height:1.25;color:#765239}
.price-amount{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.price-amount small{font-size:12px;margin-right:2px;font-weight:500}
.price-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font:11px/1.5 sans-serif;color:#807264;letter-spacing:0}
.price-label{font-size:10px;font-weight:400;color:#765239;background:#F1E4CF;border:1px solid #DCC6A7;border-radius:3px;padding:1px 4px}
.price-meta del{font-size:11px;font-weight:400;color:#807264;text-decoration-thickness:1px}
#phone .detail-price{padding:14px 0 18px;border-bottom:1px solid #E4D5BF;margin-bottom:16px}
#phone .detail-price .price-amount{font-size:32px}
#phone .detail-price .member-price{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:8px 14px}
#phone .product .price{gap:6px;align-items:center}
#phone .product [data-add]{flex:0 0 44px;width:44px;height:44px;aspect-ratio:1;border-radius:50%}
.tier-progress{display:flex;flex-direction:column;gap:6px;margin:16px 0;font-size:13px;line-height:1.65}
.tier-progress small{font-size:11px;opacity:.85}
.tier-guide{margin:16px 0 24px;padding:16px;background:#FFFAF0;border:1px solid #E4D5BF;border-radius:14px}
.tier-guide summary{cursor:pointer;color:#765239;font-size:14px}
.tier-rules{margin:14px 0}.tier-rules>div{display:grid;grid-template-columns:1fr 1.2fr .6fr;gap:8px;padding:10px 0;border-bottom:1px solid #EAE0D0;font-size:12px;align-items:center}
.tier-rules b{font-weight:500}.tier-rules strong{text-align:right;color:#765239}.tier-rules span{color:#716252}
.member-rules-dialog{width:min(780px,calc(100vw - 32px));max-height:88vh;border:1px solid #DEC9AC;border-radius:20px;background:#FFFAF0;color:#392C23;padding:28px;box-sizing:border-box;box-shadow:0 24px 80px #392C2340}
.member-rules-dialog::backdrop{background:#30282066}.member-rules-dialog h2{margin:5px 0 14px;font-family:serif}.member-rules-dialog p{font-size:13px;line-height:1.8;color:#716252}.rules-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}
.rules-table fieldset{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;border:1px solid #E3D3BA;border-radius:10px;padding:12px 16px;margin:12px 0}.rules-table legend{font-size:12px;color:#765239;padding:0 6px}.rules-table label{font-size:12px;display:grid;gap:6px}.rules-table input{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #DECDB5;border-radius:7px;background:#FFFDF8;color:#392C23}.rules-table input[readonly]{background:#F0E7D8;color:#857561}.rules-impact{background:#F2E7D3;border-radius:10px;padding:14px;margin:18px 0}.rules-impact p{margin:6px 0}.member-rules-dialog .rules-error{color:#9C3228}.member-rules-dialog .actions{display:flex;justify-content:flex-end;gap:10px}
#member-spend,#member-level,#point-adjust{margin:20px 0;padding:18px;background:#F8EFDF;border:1px solid #E4D5BF;border-radius:12px}
@media(max-width:520px){.member-rules-dialog{padding:18px}.rules-table fieldset{grid-template-columns:1fr 1fr}.rules-table label:first-of-type{grid-column:1/-1}}

/* Compact product purchase row; keep the add button beside the current price. */
#phone .product .info{padding:10px 12px 12px}
#phone .product .info>b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:20px;line-height:20px}
#phone .product .info>p{margin:2px 0 6px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#phone .product .price{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px auto;column-gap:4px;row-gap:0;align-items:center}
#phone .product .price>.member-price{display:contents}
#phone .product .price-amount{grid-column:1;grid-row:1;font-size:20px;letter-spacing:-.6px;white-space:nowrap}
#phone .product .price-meta{grid-column:1/-1;grid-row:2;gap:4px 7px;min-width:0}
#phone .product .price [data-add]{grid-column:2;grid-row:1;justify-self:end}
#phone .product .price-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Visual review: quieter home structure and consistent touch dimensions. */
#phone .home-membership{margin:-10px 16px 20px;padding:14px 16px;border-radius:14px;gap:10px}
#phone .home-membership small{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#phone .home-membership .welcome>div{min-width:0}
#phone .promo-banner{margin:0 16px 8px;width:calc(100% - 32px);display:block;padding:0;border:0}
#phone .goods-section{padding:0 16px 24px}
#phone .chapter{margin:20px 0 14px;align-items:center}
#phone .chapter h3{font-size:22px;line-height:1.4;letter-spacing:1px;margin:0}
#phone .chapter p{font-size:11px;line-height:1.6;margin:5px 0 0}
#phone .chapter-link{min-height:44px;padding:8px 0 8px 10px;white-space:nowrap;background:transparent;border:0}
#phone .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#phone .product .info>b{font-size:14px;font-weight:500}
#phone .product .info>p{font-size:11px}
#phone .bottomnav:not(.detail-actions){padding:6px 4px 10px;min-height:72px;align-items:center}
#phone .bottomnav:not(.detail-actions) button{font-size:11px;line-height:1.4}
#phone .bottomnav [data-go] .navicon{height:44px}
#phone .vip-section{padding:18px 16px 24px}
#phone .vip-card{padding:22px 20px}
#phone .vip-card h2{font-size:22px;margin:12px 0 18px;letter-spacing:1px}
#phone .vip-card .member-metrics{margin:14px 0;padding:14px 0;gap:16px;align-items:start}
#phone .vip-card .member-metrics>div{min-width:0;flex:1}
#phone .vip-card .member-metrics strong{font-family:inherit;font-size:24px;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#phone .vip-card .tier-progress{font-size:12px;line-height:1.6;margin:12px 0}
#phone .vip-card button{min-height:44px;position:relative;z-index:1}
#phone .tier-guide{margin:14px 0 20px;padding:4px 14px}
#phone .tier-guide summary{min-height:44px;align-content:center;font-size:13px}
#phone .tier-guide[open]{padding-bottom:12px}
#phone .detail-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;min-height:64px;padding:10px 16px;background:#fffaf0;box-shadow:none}
#phone .detail-actions button{height:44px;min-height:44px;border-radius:10px;font-size:14px;font-weight:500;letter-spacing:.5px;background:#F0E3CE;color:#765239;border:1px solid #E2CFB1;padding:0 8px}
#phone .detail-actions .primary{background:#765239;color:#FFFAF0;border-color:#765239}
#phone .detail-actions button:disabled{opacity:.5;cursor:default}
/* A phone browser shows the shop itself, without a second phone frame. */
@media(max-width:480px){body.public-mode{margin:0;overflow:hidden}body.public-mode>.top,body.public-mode .caption{display:none}body.public-mode main{display:block;margin:0;padding:0;max-width:none}body.public-mode .preview{position:static;padding:0;width:100%}body.public-mode #phone{width:100%;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none}body.public-mode #phone .bottomnav{padding-bottom:calc(10px + env(safe-area-inset-bottom))}body.public-mode #phone .detail-actions{padding-bottom:calc(10px + env(safe-area-inset-bottom))}}
/* Screenshot review: centered actions, welcome line and product-linked cart photos. */
#phone .home-membership{padding:14px;gap:8px}
#phone .home-membership .welcome{flex:1;gap:8px}
#phone .home-membership strong{white-space:nowrap;line-height:1.5}
#phone .home-membership button{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:0;height:44px;line-height:1.4;padding:0 0 0 4px;margin:0;font-weight:500}
#phone .membercard button,#phone button.primary,#phone .detail-actions button{display:flex;align-items:center;justify-content:center;min-height:44px;line-height:1.4;text-align:center;box-sizing:border-box}
#phone .membercard button{width:100%;height:44px;padding:0 12px;font-size:13px;font-weight:500}
#phone .cartitem{display:flex;align-items:flex-start;gap:12px;padding:14px}
#phone .cart-photo{display:flex;align-items:center;justify-content:center;flex:0 0 80px;width:80px;height:80px;border-radius:10px;overflow:hidden;background:#fff;color:#716252;font-size:11px}
#phone .cart-photo img{display:block;width:100%;height:100%;object-fit:contain}
#phone .cartitem-body{flex:1;min-width:0}
#phone .cartitem h4{font-size:14px;line-height:1.5;font-weight:500;margin:0 0 8px;overflow-wrap:anywhere}
#phone .cartitem .note{margin:0 0 6px}
#phone .cartitem .price-amount{font-size:18px;line-height:1.3}
#phone .cartitem .row{gap:0;flex-wrap:wrap}
#phone .cartitem .qty{gap:0;font-size:13px}
#phone .cartitem .qty button{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:8px;background:#f5ead7;line-height:1;color:#59402f}
#phone .cartitem .qty button:first-child{margin-right:10px}
#phone .cartitem .qty button:last-child{margin-left:10px}
#phone .cartitem [data-remove]{min-height:44px;padding:0 4px;margin-left:auto;background:transparent;border:0;color:#716252;font-size:11px}
@media(max-width:359px){#phone .home-membership strong{font-size:12px}#phone .home-membership .tea-seal{width:30px;height:30px}#phone .cart-photo{flex-basis:68px;width:68px;height:68px}}
#phone .member-points-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:14px 0;padding:14px 16px;border:1px solid #dfcfb4;border-radius:14px;font-size:13px;line-height:1.5;background:#fffaf0;color:#59402f}
#phone .cart-summary>.primary{width:100%;margin-top:14px;border-radius:10px}

/* Keep member names readable when a saved nickname is longer than the default greeting. */
#phone .home-membership strong{white-space:normal;overflow-wrap:anywhere}

/* Match native product-card framing and contiguous detail artwork. */
#phone .product .photo,#phone .gift-grid .photo{aspect-ratio:3/4;height:auto}
#phone .product-details img{display:block;width:100%;height:auto;margin:0;padding:0;border:0;border-radius:0}
.admin-product-card>img,.admin-product-card>.admin-image-empty{aspect-ratio:1/1;height:auto;object-fit:cover}
#phone[data-view="home"] .product .photo{aspect-ratio:1/1;height:auto}
#phone .detailphoto .photo{aspect-ratio:3/4;height:auto}
#phone .detailphoto .photo img{width:100%;height:100%;object-fit:contain}
#product-cover-editor .assetpreview{aspect-ratio:3/4;height:auto;object-fit:contain}

#product-home-image-editor .assetpreview{aspect-ratio:1/1;height:auto;object-fit:contain}
#product-detail-main-editor{margin-top:24px;padding-top:20px;border-top:1px solid #dfcfb4}
/* Gift editing: use available workspace width and keep images in their own ratio. */
.admin-gift-grid{grid-template-columns:minmax(0,1fr)}
.admin-gift-card form,.gift-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.admin-gift-card .actions,.gift-create .note{grid-column:1/-1}
.admin-gift-card input[type=checkbox],.gift-create input[type=checkbox]{width:auto}
.admin-gift-card .assetpreview{aspect-ratio:3/4;max-width:240px;object-fit:contain}
@media(max-width:700px){.admin-gift-card form,.gift-create{grid-template-columns:minmax(0,1fr)}}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.permission-choice{display:flex;align-items:center;gap:10px}.permission-choice input[type=checkbox]{width:auto;flex:0 0 auto}.box{overflow-wrap:anywhere}dialog#tracking-dialog{max-height:80vh;overflow:auto}[hidden]{display:none!important}@media(max-width:700px){.permission-grid{grid-template-columns:1fr}}
