/* Mobile layout corrections; preserve the existing shop design and original QR. */
:root{--safe-top:env(safe-area-inset-top,0px)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:110px}
body{overflow-wrap:break-word}
.shell,.detail-shell{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.template-poster,.detail-plan-art .template-poster.large{width:var(--poster-size)!important;height:var(--poster-size)!important;min-height:0!important;max-width:none}
.plan-visual-trigger{padding:0;flex-shrink:0;max-width:100%;line-height:normal}
.poster-title,.poster-charge{min-width:0;overflow-wrap:anywhere}
.poster-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.template-poster .poster-data.wide-value b{font-size:calc(var(--poster-size)*.15)}
.template-poster .poster-data.wide-value strong{font-size:calc(var(--poster-size)*.09)}
.poster-number>span{padding:0 2px}
.detail-plan-art,.detail-plan-facts,.card-plan-copy,.query-form,.order-row>span,.wechat-copy-row>div{min-width:0}
.tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.detail-plan,.package-description,.detail-text-section p,.manage-plan,.order-number,.order-row,.fact dd{overflow-wrap:anywhere}
.icon-button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.sheet{max-height:85vh;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-top:70px}
.sheet-head{position:sticky;top:-1px;z-index:3;background:#fff;padding:10px 0;border-bottom:1px solid #edf0e8}
.sheet-head h2{min-width:0;line-height:1.5;overflow-wrap:anywhere}
.sheet-head .icon-button{margin-left:auto}
.query-form input{min-width:0;flex:1 1 0;width:0}
.query-form .primary{flex-shrink:0}
.query-error{margin-top:12px;font-size:13px;line-height:1.7;color:#b34536;overflow-wrap:anywhere}
.manual-copy{font-size:16px}
.wechat-copy-row{flex-wrap:wrap}
.wechat-copy-row button{max-width:100%;min-height:44px}
.bottom-nav a,.header-tool,.carrier-tab,.detail-tabs button{min-height:44px}
.bottom-nav{padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
.order-head{flex-wrap:wrap;row-gap:6px}
.order-number{min-width:0;max-width:100%;display:flex;align-items:center;gap:4px}
.card-stat-value,.manage-numbers b{font-variant-numeric:tabular-nums}
.admin-header>div,.manage-title h2,.choice-label,.choice-result{min-width:0;overflow-wrap:anywhere}
.manage-tags span,.manage-links{overflow-wrap:anywhere;max-width:100%}
.manage-links{gap:12px;flex-wrap:wrap}
.choice-label input:disabled{cursor:not-allowed}
.manage-card:not(.selected) .choice-label:has(input:disabled){color:#7c897c;cursor:default}
.manage-card{content-visibility:auto;contain-intrinsic-size:auto 620px}
.admin-filters select{background:#fff;color:#466145}
.login-panel{width:calc(100% - 32px);margin:6vh auto;max-width:410px}
.admin-header p{max-width:62ch}
.login-error,.order-status{overflow-wrap:anywhere}
/* Order details keep the review reason and the next action visible together. */
.order-card-detailed{padding:22px;overflow:hidden}
.order-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.order-summary h2{min-width:0;flex:1;font-size:19px;line-height:1.65;font-weight:650;overflow-wrap:anywhere}
.order-card-detailed .order-badge{max-width:42%;padding:5px 9px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;flex-shrink:0;background:#edf5eb;color:#436747}
.order-card-detailed .order-badge.failed{background:#fff0e3;color:#985022}
.order-card-detailed .order-head{padding:8px 0 14px;border-bottom:0}
.order-card-detailed .order-number{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;font-size:12px;color:#667663;line-height:1.8}
.order-card-detailed .order-number>span{min-width:0;overflow-wrap:anywhere}
.order-progress{margin:0 0 18px;padding:15px 16px;border-left:3px solid #7da483;background:#f3f7f0}
.order-progress.needs-attention{border-left-color:#ca8753;background:#fff6ed}
.order-progress h3,.order-info-group h3,.order-extra-note h3{font-size:13px;line-height:1.6;font-weight:650;color:#345240;margin:0 0 10px}
.order-progress.needs-attention h3{color:#8a4a27}
.order-reason>span{font-size:11px;color:#8c6245}
.order-reason p{margin-top:3px;font-size:15px;font-weight:600;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.order-result-notes{margin:5px 0 0;padding-left:18px;font-size:14px;line-height:1.9}
.order-result-notes li{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.order-not-provided,.order-detail-notice{font-size:12px;line-height:1.9;color:#6f7e69;overflow-wrap:anywhere}
.order-detail-notice{margin-top:12px}
.order-actions{display:grid;gap:10px;margin-top:15px}
.order-action{display:flex;gap:8px;min-width:0;align-items:stretch}
.order-action .primary{flex:1;min-width:0;min-height:44px;gap:6px;padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.order-action .primary svg{width:16px;height:16px}
.order-copy-link{display:inline-flex;justify-content:center;align-items:center;gap:5px;flex:0 0 auto;min-height:44px;padding:8px 10px;border:1px solid #cddbc9;border-radius:8px;color:#385f46;background:#fff;font-size:12px;line-height:1.5}
.order-copy-link svg{width:15px;height:15px}
.order-info-group{margin:17px 0;padding-top:15px;border-top:1px solid #e7ebe1}
.order-info-group h3{margin-bottom:8px}
.order-card-detailed .order-row{grid-template-columns:92px minmax(0,1fr);gap:8px;margin:0;padding:8px 0;line-height:1.85;font-size:13px;border-bottom:1px solid #f0f2eb}
.order-card-detailed .order-row:last-child{border-bottom:0}
.order-card-detailed .order-row>span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.order-card-detailed .order-row>span:first-child{color:#75826b}
.order-extra-note{margin:18px 0}
.order-extra-note h3{margin-bottom:6px}
.order-extra-note p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.order-full-remark{margin:16px 0;border-top:1px solid #e7ebe1}
.order-full-remark summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;list-style:none;cursor:pointer;font-size:12px;color:#466c50}
.order-full-remark summary::-webkit-details-marker{display:none}
.order-full-remark summary svg{width:16px;height:16px}
.order-full-remark[open] summary svg{transform:rotate(180deg)}
.order-full-remark p{padding-bottom:12px;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#66755f}
.order-card-detailed .order-time{font-size:11px;line-height:1.8;padding-top:12px;color:#7c8973;overflow-wrap:anywhere}
.order-contact{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-top:3px;font-size:12px;color:#42634a}
.order-contact svg{width:15px;height:15px}
@media(max-width:720px){
 input,select,textarea,.searchbox input,.admin-filters input,.admin-filters select{font-size:16px}
 .admin-header{flex-wrap:wrap}.admin-header>div:first-child{flex:1 1 220px}
 .admin-header-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;min-height:44px}
 .admin-stats{flex-wrap:wrap;gap:10px 16px}
 .manage-card-head{gap:8px}.choice-label{flex-shrink:0}.choice-result{font-size:11px}
 .manage-numbers b{font-size:clamp(16px,5vw,21px);white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 .manage-facts>div{grid-template-columns:70px minmax(0,1fr)}
}
@media(max-width:650px){
 .order-card-detailed{padding:17px}
 .order-summary{gap:10px}.order-summary h2{font-size:17px;line-height:1.7}
 .order-card-detailed .order-badge{max-width:38%;font-size:11px}
 .order-progress{padding:13px 12px}.order-reason p{font-size:14px}
 .order-card-detailed .order-row{grid-template-columns:92px minmax(0,1fr);gap:8px;font-size:13px}
 .shell,.detail-shell{padding-bottom:calc(105px + env(safe-area-inset-bottom,0px))}
 .site-header{gap:10px}.brand{min-width:0;gap:8px}.brand-caption{letter-spacing:0}
 .header-tools{gap:12px;flex-shrink:0}.header-tool{min-width:44px}
 .promise-row{gap:8px;justify-content:space-between;flex-wrap:wrap;line-height:1.6}
 .promise-row span{gap:4px;min-width:0}
 .search-row{min-width:0}.searchbox{min-width:0;flex:1 1 0}.search-clear{min-width:32px;min-height:40px;padding:4px}
 .carrier-tabs{display:flex;gap:8px;justify-content:space-between}.carrier-tab{flex:1 1 0;text-align:center;white-space:nowrap;min-width:0}
 .list-toolbar{flex-wrap:wrap;gap:8px 12px;align-items:center}
 .list-title{flex:1 1 auto;flex-wrap:wrap;min-width:0;line-height:1.5}.list-title small{white-space:nowrap}
 .list-filter{min-height:36px;margin-left:auto;gap:12px}.reward-toggle,.sort-button{min-height:36px;font-size:12px}
 .product-card .gift-ribbon{flex-wrap:wrap;gap:6px;align-items:center;line-height:1.6}
 .product-card .gift-ribbon em{font-size:10px;max-width:none;margin-left:auto}
 .card-stat-value{font-size:clamp(18px,5.4vw,23px);line-height:1.35;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.4px}
 .package-overview .card-stat-value{font-size:clamp(18px,5.6vw,25px)}
 .card-stat-value small{font-size:11px;letter-spacing:0}.card-stat dt{padding:0 2px}
 .detail-tabs{position:sticky;top:0;z-index:4;background:var(--paper);gap:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .detail-tabs button{min-width:0;padding:14px 3px;line-height:1.5;white-space:normal}
 .info-list .fact{grid-template-columns:72px minmax(0,1fr);gap:10px}
 .detail-plan-art{gap:14px}.detail-plan-facts{line-height:1.8}
 .detail-actionbar{gap:12px;align-items:center;flex-wrap:wrap}.detail-actionbar>div{min-width:0}
 .detail-actionbar .apply-button{min-width:0;flex:0 0 auto;padding:0 20px}
 .detail-actionbar .price-value{white-space:nowrap}.detail-actionbar small{line-height:1.5}
 .overlay{padding-top:max(12px,env(safe-area-inset-top,0px));max-height:100vh;max-height:100dvh}
 .sheet{padding-left:18px;padding-right:18px;max-width:100%;border-radius:20px 20px 0 0}
 .sheet-head{padding:8px 0}
 .plan-zoom .template-poster.large{--poster-size:min(340px,calc(100vw - 64px))}
 .wechat-qr-expanded{max-width:100%;height:auto}
 .service-shortcuts a{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:360px){
 .order-card-detailed{padding:14px}.order-summary{flex-wrap:wrap;gap:7px}.order-summary h2{flex-basis:100%}
 .order-card-detailed .order-badge{max-width:100%}.order-card-detailed .order-row{grid-template-columns:92px minmax(0,1fr);gap:6px}
 .order-progress{padding:12px 10px}.order-action .primary{font-size:13px;padding-left:9px;padding-right:9px}.order-copy-link{padding-left:8px;padding-right:8px;font-size:11px}
 .site-header{gap:6px}.brand-name{font-size:21px}.brand-caption{font-size:9px}.header-tools{gap:8px}.header-tool{font-size:10px}
 .detail-plan-art{flex-direction:column;align-items:stretch;gap:14px}
 .detail-plan-art .plan-visual-trigger{align-self:center}
 .detail-plan-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px}
 .detail-plan-facts>b{grid-column:1/-1}.detail-plan-facts p{margin:0}
 .info-list .fact{grid-template-columns:62px minmax(0,1fr);gap:8px}
 .list-filter{width:100%;justify-content:flex-end}.list-title{font-size:16px}
 .product-card .gift-ribbon em{width:100%;text-align:left;margin-left:22px}
 .query-form{flex-wrap:wrap}.query-form input{flex-basis:140px}.query-form .primary{flex:1 1 100%}
 .wechat-copy-row button{width:100%;justify-content:center}
}
@media(max-height:550px){
 .sheet{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
 .admin-toolbar{position:static;backdrop-filter:none}
 .detail-tabs{position:static}
}

/* The shop keeps its leaf-green identity; key conditions carry the emphasis. */
.product-card .card-plan-row{align-items:flex-start;gap:16px}
.product-card .card-title{line-height:1.5;font-weight:700}
.product-card .card-plan-text{font-size:13px;line-height:1.75;color:#647460}
.card-stats{background:#f4f8f3;border-color:#e0e8dc;padding:13px 0}
.card-stat{display:flex;flex-direction:column;align-items:stretch}
.card-stat .card-stat-value{display:flex;flex:1;align-items:center;justify-content:center;flex-wrap:wrap;min-height:31px;gap:0 1px;font-size:24px;line-height:1.25}
.card-stat .card-stat-value small{font-size:11px;line-height:1.5;white-space:nowrap}
.card-stat.is-text .card-stat-value{font-size:15px;font-weight:600;letter-spacing:0}
.card-stat.is-rate .card-stat-value{font-size:20px;letter-spacing:0}
.card-stat dt,.package-overview .card-stat dt{font-size:12px;color:#65755e;line-height:1.5;margin-top:6px;padding:0 3px}
.price-context{margin:8px 2px 0;font-size:12px;line-height:1.7;color:#7e6447}
.product-card .card-age span{font-size:11px;color:#72816b}
.product-card .card-age b{font-size:12px;color:#4f664f}
.product-card .card-badges .tag{font-size:11px;line-height:1.6}
.product-card .more-badges{font-size:11px;min-height:30px}
.gift-ribbon em{color:#9a6652}
.active-filters{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:-2px 0 14px}
.filter-chip,.filter-reset{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;border-radius:7px;padding:6px 9px;font-size:12px;line-height:1.5}
.filter-chip{color:#355d43;background:#eaf2e5;border:1px solid #d6e3cc;max-width:100%;overflow-wrap:anywhere}
.filter-chip svg{width:13px;height:13px;flex:0 0 auto}
.filter-reset{margin-left:auto;color:#62765c;text-decoration:underline;text-underline-offset:3px}
.filter-explanation{font-size:12px;line-height:1.8;color:#6d7b62;margin:-7px 0 20px}
.filter-summary{font-size:13px;line-height:1.8}
.sheet-options .sheet-option{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.apply-product{font-size:19px;line-height:1.6;color:#284a36}
.apply-product .sheet-copy{font-size:14px;line-height:1.8;color:#6a795f;margin-top:7px;font-weight:400}
.apply-reward{background:#fff3eb;border:1px solid #f2dbce;border-radius:11px;padding:15px 16px;margin:17px 0;color:#a34532}
.apply-reward>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:14px;font-weight:600;line-height:1.6}
.apply-reward svg{width:18px;height:18px;flex-shrink:0}
.apply-reward strong{font-size:25px;line-height:1;font-variant-numeric:tabular-nums}
.apply-reward strong small{font-size:12px;margin-left:3px;font-weight:500}
.apply-reward p{font-size:12px;line-height:1.9;margin:8px 0 0;color:#976147}
.apply-checklist{margin:19px 0 21px}
.apply-checklist h3{font-size:14px;line-height:1.7;color:#35583c;margin:0 0 8px}
.apply-checklist dl{margin:0;border-top:1px solid #e7ecdf}
.apply-checklist dl>div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #e7ecdf;line-height:1.8;align-items:start}
.apply-checklist dt{font-size:12px;color:#768369}
.apply-checklist dd{font-size:14px;color:#36503a;white-space:pre-line;overflow-wrap:anywhere;margin:0}
.apply-tags{margin:16px 0}
.apply-before-link{font-size:13px;color:#6d7b62;margin:17px 0 13px}
.price-period-note{font-size:11px;line-height:1.6;color:#7e6849}
.detail-plan-facts{color:#506b4d}
.detail-plan-facts p{font-size:13px;line-height:1.75}
@media(max-width:650px){
 .site-header{height:64px}
 .promo-carousel{aspect-ratio:2.5/1;border-radius:14px}
 .promo-caption{width:55%;padding:12px 22px}
 .promo-caption h1,.promo-caption h2{font-size:24px;line-height:1.2}
 .promo-caption .promo-kicker{font-size:9px;line-height:1.5;margin:0 0 5px}
 .promo-caption p{font-size:10px;line-height:1.5;margin-top:6px}
 .promo-arrow{height:35px;width:22px}
 .promo-arrow svg{width:14px;height:14px}
 .promo-dots{bottom:5px}
 .promise-row{padding:10px 0 13px;font-size:10px;gap:6px;flex-wrap:nowrap;line-height:1.5}
 .promise-row span{white-space:nowrap;gap:3px}
 .promise-row svg{width:12px;height:12px;flex-shrink:0}
 .catalog-tools{padding-top:6px}
 .list-toolbar{margin:12px 0}
 .list-title small{font-size:11px;color:#79866f}
 .reward-toggle,.sort-button{font-size:12px}
 .list-filter{gap:10px}
 .product-card .card-inner{padding:16px}
 .product-card .card-plan-row{gap:13px;margin-bottom:15px}
 .product-card .card-title{font-size:18px;line-height:1.5}
 .product-card .card-plan-text{font-size:13px;line-height:1.7;margin-top:7px}
 .card-stat .card-stat-value,.package-overview .card-stat .card-stat-value{font-size:22px;letter-spacing:-.3px}
 .card-stat.is-text .card-stat-value,.package-overview .card-stat.is-text .card-stat-value{font-size:14px;letter-spacing:0}
 .card-stat.is-rate .card-stat-value,.package-overview .card-stat.is-rate .card-stat-value{font-size:19px;letter-spacing:0}
 .card-stat .card-stat-value small{font-size:10px}
 .card-stat dt,.package-overview .card-stat dt{font-size:11px;line-height:1.5;color:#65755e}
 .product-card .gift-ribbon em{font-size:10px}
 .product-card .card-actions{padding-top:14px}
 .product-card .card-age b{font-size:12px}
 .active-filters{gap:6px;margin-bottom:12px}
 .filter-chip,.filter-reset{font-size:11px;padding:5px 8px}
 .apply-checklist dl>div{grid-template-columns:70px minmax(0,1fr);gap:10px}
 .apply-checklist dd{font-size:13px}
}
@media(max-width:360px){
 .promo-carousel{aspect-ratio:2.4/1}
 .promo-caption{padding-left:19px}
 .promo-caption h1,.promo-caption h2{font-size:21px}
 .promo-caption .promo-kicker{font-size:8px}
 .promo-caption p{font-size:9px}
 .promise-row{font-size:9px;gap:5px}
 .promise-row svg{width:11px;height:11px}
 .product-card .card-inner{padding:14px}
 .product-card .card-plan-row{gap:11px}
 .product-card .card-title{font-size:17px}
 .product-card .card-plan-text{font-size:12px}
 .card-stat .card-stat-value,.package-overview .card-stat .card-stat-value{font-size:20px}
 .card-stat.is-rate .card-stat-value,.package-overview .card-stat.is-rate .card-stat-value{font-size:17px}
 .card-stat .card-stat-value small{font-size:9px}
 .card-stat dt,.package-overview .card-stat dt{font-size:11px;padding:0 1px}
 .product-card .gift-ribbon em{font-size:10px}
 .product-card .card-badges .tag{font-size:11px}
 .apply-checklist dl>div{grid-template-columns:64px minmax(0,1fr);gap:8px}
}
