:root{--compact-bg:#edf0f4;--compact-paper:#f8f7f3;--compact-ink:#17202d;--compact-muted:#747e8c;--compact-line:#e7e4dc;--compact-orange:#ff5c35;--compact-orange-deep:#e9401e;--compact-blue:#315fe7;--compact-blue-deep:#2345bc}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0;background:var(--compact-bg);color:var(--compact-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
button,a{font:inherit;-webkit-tap-highlight-color:transparent}
a{text-decoration:none;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.compact-stage{width:100%;min-height:100vh;padding:24px 12px;display:flex;justify-content:center;align-items:flex-start}
.compact-page{width:min(100%,400px);min-height:700px;position:relative;overflow:hidden;border-radius:30px;background:radial-gradient(circle at 90% 18%,rgba(49,95,231,.06),transparent 22%),var(--compact-paper);box-shadow:0 24px 70px rgba(28,36,48,.18)}
.compact-ad{width:100%;aspect-ratio:1/1;overflow:hidden;background:#161616}
.compact-ad img{width:100%;height:100%;display:block;object-fit:cover}
.compact-taobao-notice{min-height:48px;margin:12px 14px 0;padding:10px 13px;display:flex;align-items:center;justify-content:center;border:1px solid #ffc3bd;border-radius:14px;background:#fff7f6;color:#dc2d24;font-size:13px;font-weight:800;line-height:1.5;text-align:center}
.compact-title{padding:18px 20px 17px;border-bottom:1px solid var(--compact-line);background:rgba(255,253,248,.94)}
.compact-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.compact-title h1{min-width:0;flex:1 1 auto;margin:0;overflow:visible;color:var(--compact-ink);font-size:clamp(18px,6vw,24px);font-weight:800;line-height:1.25;letter-spacing:-.025em;white-space:nowrap}
.compact-save{flex:0 0 auto;min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:5px 10px 5px 5px;border:0;border-radius:12px;background:#1d2532;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 7px 16px rgba(26,34,46,.15);transition:transform .18s ease,box-shadow .18s ease}
.compact-save:active{transform:scale(.96)}
.compact-save-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#ff7958,var(--compact-orange-deep));font-size:15px}
.compact-actions{padding:17px 16px 14px;border-bottom:1px solid var(--compact-line)}
.compact-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.compact-main-action{min-width:0;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:0;border-radius:15px;color:#fff;font-size:14px;font-weight:800;box-shadow:0 8px 18px rgba(22,35,58,.15);transition:transform .16s ease,filter .16s ease}
.compact-main-action:active{transform:scale(.97)}
.compact-main-action.is-register{background:linear-gradient(145deg,#ff7958,var(--compact-orange-deep))}
.compact-main-action.is-download{background:linear-gradient(145deg,#4e78f0,var(--compact-blue-deep))}
.compact-main-action.is-unavailable{filter:grayscale(.7);opacity:.65}
.compact-action-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.17);font-size:17px}
.compact-invite{min-width:0;min-height:54px;padding:9px 12px;border:1px solid rgba(111,73,207,.16);border-radius:15px;background:linear-gradient(145deg,#f3edff,#e8dcff);color:#5b36bc;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 8px 18px rgba(83,51,151,.12)}
.compact-sub-actions{margin-top:11px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.compact-sub-action{min-width:0;min-height:45px;padding:8px 6px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #e2e5ea;border-radius:13px;background:#fff;color:#485365;font-size:11px;font-weight:750;line-height:1.25;box-shadow:0 4px 12px rgba(25,34,48,.05)}
.compact-sub-action span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-sub-action:active{background:#f2f4f7}
.compact-welfare{padding:0 16px 14px}
.compact-ticket{min-height:56px;margin-top:10px;padding:9px 10px 9px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e8e4dc;border-radius:15px;background:#fff;box-shadow:0 5px 15px rgba(28,35,46,.045)}
.compact-ticket.is-benefit{align-items:start;grid-template-columns:auto minmax(0,1fr);padding-top:11px;padding-bottom:11px}
.compact-ticket-type{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;border-radius:8px;background:#fff0eb;color:var(--compact-orange-deep);font-size:10px;font-weight:800;white-space:nowrap}
.compact-ticket-type.is-benefit{margin-top:1px;background:#eaf1ff;color:var(--compact-blue);font-weight:700}
.compact-code-line{min-width:0;display:flex;align-items:baseline;gap:6px;overflow:hidden;white-space:nowrap}
.compact-code-line code{min-width:0;overflow:hidden;color:#303846;font-family:"SFMono-Regular",Consolas,monospace;font-size:15px;font-weight:700;letter-spacing:.045em;text-overflow:ellipsis;white-space:nowrap}
.compact-ticket-date{flex:0 0 auto;color:#9a8a82;font-size:9px;font-weight:500;letter-spacing:0;white-space:nowrap}
.compact-benefit-text{min-width:0;color:#596779;font-size:13px;font-weight:400;line-height:1.8;letter-spacing:.01em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.compact-copy{min-width:70px;min-height:36px;padding:7px 10px;border:1px solid #ffd0c3;border-radius:11px;background:#fff2ed;color:#d94a2d;font-size:12px;font-weight:700;box-shadow:0 3px 9px rgba(222,82,48,.07);transition:transform .16s ease,background .16s ease,border-color .16s ease}
.compact-copy:active{transform:scale(.96)}
.compact-copy.is-copied{border-color:#b9e5d4;background:#eaf8f3;color:#168660}
.compact-faq{padding:0 16px 14px}
.compact-faq-card{overflow:hidden;border:1px solid #e8e4dc;border-radius:16px;background:#fff;box-shadow:0 5px 15px rgba(28,35,46,.045)}
.compact-faq details+details{border-top:1px solid #efede7}
.compact-faq summary{min-height:48px;position:relative;padding:13px 40px 13px 14px;display:flex;align-items:center;color:#303a49;font-size:13px;font-weight:700;line-height:1.55;list-style:none;cursor:pointer}
.compact-faq summary::-webkit-details-marker{display:none}
.compact-faq summary:after{content:"+";position:absolute;right:15px;color:#8d96a2;font-size:20px;font-weight:400}
.compact-faq details[open] summary:after{content:"−";color:var(--compact-orange-deep)}
.compact-faq-answer{padding:0 14px 14px;color:#687382;font-size:12px;line-height:1.72;overflow-wrap:anywhere}
.compact-faq-answer>:first-child{margin-top:0}.compact-faq-answer>:last-child{margin-bottom:0}
.compact-more{padding:0 16px 12px}
.compact-more a{min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe3e9;border-radius:15px;background:#fff;color:#445064;font-size:13px;font-weight:800;box-shadow:0 5px 14px rgba(28,35,46,.045)}
.compact-legal{padding:4px 23px 78px;color:#9aa1aa;font-size:10px;line-height:1.65;text-align:center}
.compact-legal p{margin:3px 0}
.compact-service{width:52px;height:52px;position:fixed;z-index:45;right:max(14px,calc((100vw - 390px)/2 + 14px));bottom:16px;display:grid;place-items:center;padding:0;border:2px solid rgba(255,255,255,.88);border-radius:18px;background:linear-gradient(145deg,#5079f2,var(--compact-blue-deep));color:#fff;font-size:24px;box-shadow:0 11px 25px rgba(35,69,188,.30);transition:transform .18s ease}
.compact-service svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compact-service:active{transform:scale(.95)}
.compact-toast{max-width:calc(100% - 40px);position:fixed;z-index:90;left:50%;bottom:82px;transform:translate(-50%,12px);padding:9px 13px;border-radius:11px;background:rgba(21,27,38,.92);color:#fff;font-size:12px;line-height:1.45;text-align:center;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.compact-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.compact-modal{position:fixed;z-index:80;inset:0;padding:18px;display:flex;align-items:center;justify-content:center;background:rgba(16,22,32,.56);backdrop-filter:blur(4px)}
.compact-dialog{width:min(100%,350px);position:relative;overflow:hidden;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(12,18,27,.32)}
.compact-dialog-close{width:38px;height:38px;position:absolute;z-index:2;top:11px;right:11px;display:grid;place-items:center;padding:0 0 2px;border:0;border-radius:50%;background:#252c37;color:#fff;font-size:23px;font-weight:500;box-shadow:0 6px 14px rgba(20,27,38,.22)}
.compact-save-dialog{padding:25px 20px 20px;text-align:center}
.compact-save-dialog .dialog-mark{width:52px;height:52px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#e7f7ef;color:#14875f;font-size:25px;font-weight:900}
.compact-save-dialog h2,.compact-service-dialog h2,.compact-guard-dialog h2{margin:0;color:#202938;font-size:18px;font-weight:850}
.compact-save-dialog p{margin:8px 0 18px;color:#6c7683;font-size:13px}
.compact-primary{width:100%;min-height:44px;padding:10px 14px;border:0;border-radius:12px;background:linear-gradient(145deg,#4e78f0,var(--compact-blue-deep));color:#fff;font-size:13px;font-weight:800}
.compact-recharge-dialog{width:min(100%,390px);max-height:calc(100vh - 28px);display:flex;flex-direction:column;background:#f6f4ef}
.compact-dialog-head{min-height:62px;flex:0 0 auto;padding:16px 68px 14px 18px;display:flex;align-items:center;border-bottom:1px solid #e7e3da;background:#fff}
.compact-dialog-head h2{margin:0;font-size:18px;font-weight:850}
.compact-recharge-content{min-height:180px;overflow:auto;padding:10px;background:#222}
.compact-recharge-content img{width:100%;height:auto;display:block;margin:0 auto 10px;border-radius:9px;background:#fff}
.compact-recharge-content .rich-text{padding:15px;border-radius:10px;background:#fff;color:#3f4a59;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.compact-recharge-empty{padding:40px 20px;color:#d8dde5;font-size:13px;text-align:center}
.compact-service-dialog,.compact-guard-dialog{padding:28px 20px 20px;text-align:center}
.compact-service-icon,.compact-guard-icon{width:54px;height:54px;margin:0 auto 12px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,#edf2ff,#dce6ff);color:var(--compact-blue);font-size:26px}
.compact-service-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compact-service-row{margin:17px 0 12px;padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e3e7ed;border-radius:13px;background:#f8fafc;color:#667181;font-size:12px}
.compact-service-row strong{min-width:0;overflow:hidden;color:#263142;font-family:Consolas,monospace;font-size:17px;letter-spacing:.03em;text-overflow:ellipsis;white-space:nowrap}
.compact-guard-dialog p{margin:10px 0 14px;color:#647080;font-size:13px;line-height:1.65}
.compact-invite-code{display:block;margin:0 0 14px;padding:11px;border:1px dashed #bda8ee;border-radius:12px;background:#f5f0ff;color:#5b36bc;font-family:Consolas,monospace;font-size:22px;letter-spacing:.1em}
.compact-guard-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.compact-guard-actions a,.compact-guard-actions button{min-height:44px;padding:9px 10px;border:0;border-radius:12px;font-size:13px;font-weight:800}
.compact-guard-actions .is-primary{background:linear-gradient(145deg,#ff7250,var(--compact-orange-deep));color:#fff}
.compact-guard-actions .is-secondary{background:#edf1f6;color:#526073}
.compact-countdown{min-height:18px;margin:10px 0 0!important;color:#8a929d!important;font-size:11px!important}
.compact-countdown strong{color:var(--compact-orange-deep);font-size:13px}
@media(max-width:420px){.compact-stage{padding:0}.compact-page{width:100%;min-height:100vh;border-radius:0;box-shadow:none}.compact-recharge-dialog{max-height:100vh;border-radius:20px 20px 0 0}.compact-modal.is-sheet{align-items:flex-end;padding:0}}
@media(max-width:340px){.compact-title{padding-left:14px;padding-right:14px}.compact-title h1{font-size:clamp(17px,6vw,19px)}.compact-actions,.compact-welfare,.compact-faq,.compact-more{padding-left:12px;padding-right:12px}.compact-sub-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Confirmed Demo layout: the production template deliberately shares these exact visual rules. */
.compact-stage{padding:24px 12px}
.compact-page{background:radial-gradient(circle at 90% 18%,rgba(49,95,231,.06),transparent 22%),var(--compact-paper)}
.compact-title{padding:18px 20px 17px;background:rgba(255,253,248,.92)}
.compact-save:hover{background:#2a3444;box-shadow:0 9px 19px rgba(26,34,46,.19)}
.compact-save-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.compact-actions{padding:15px 16px 12px;border-bottom:0}
.compact-main-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.compact-main-action{min-width:0;min-height:62px;position:relative;overflow:hidden;display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;justify-content:initial;gap:10px;padding:11px 12px;border-radius:16px;text-align:left;box-shadow:0 10px 22px rgba(31,40,59,.12);transition:transform .18s ease,box-shadow .18s ease}
.compact-main-action:after{content:"";width:60px;height:60px;position:absolute;right:-22px;top:-24px;border:14px solid rgba(255,255,255,.10);border-radius:50%}
.compact-main-action:hover{transform:translateY(-2px);box-shadow:0 14px 26px rgba(31,40,59,.16)}
.compact-main-action:active{transform:scale(.985)}
.compact-main-action.is-register{background:linear-gradient(145deg,#ff7752,var(--compact-orange-deep))}
.compact-main-action.is-download{background:linear-gradient(145deg,#5079f2,var(--compact-blue-deep))}
.compact-action-icon{width:31px;height:31px;position:relative;z-index:1;border-radius:10px}
.compact-action-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.compact-action-copy{position:relative;z-index:1;min-width:0}
.compact-action-copy b{display:block;overflow:hidden;font-size:15px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.compact-invite{min-width:0;min-height:62px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:11px 8px;border:0;border-radius:16px;background:linear-gradient(145deg,#8b65e8,#5b36bc);color:#fff;text-align:center;box-shadow:0 10px 22px rgba(68,44,130,.15);transition:transform .18s ease,box-shadow .18s ease}
.compact-invite:after{content:"";width:60px;height:60px;position:absolute;right:-24px;top:-26px;border:14px solid rgba(255,255,255,.10);border-radius:50%}
.compact-invite b{position:relative;z-index:1;overflow:hidden;font-size:14px;font-weight:800;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.compact-invite:active{transform:scale(.985)}
.compact-sub-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.compact-sub-action{min-width:0;min-height:54px;position:relative;display:flex;align-items:center;justify-content:initial;gap:9px;padding:9px 28px 9px 10px;border:1px solid var(--compact-line);border-radius:14px;background:#fffdf8;color:var(--compact-ink);font-size:inherit;font-weight:inherit;line-height:normal;text-align:left;box-shadow:0 5px 13px rgba(31,40,59,.04);transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.compact-sub-action:after{content:"›";position:absolute;right:11px;top:50%;color:#a2a9b3;font-size:18px;font-weight:400;transform:translateY(-52%)}
.compact-sub-action:hover{border-color:rgba(49,95,231,.38);transform:translateY(-1px);box-shadow:0 8px 17px rgba(31,40,59,.07)}
.compact-sub-action span:last-child{min-width:0;max-width:100%;overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.compact-sub-action-icon{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:10px;background:#f0f3ff;color:var(--compact-blue)}
.compact-sub-action-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.compact-sub-action.is-recharge .compact-sub-action-icon{background:#fff0eb;color:var(--compact-orange)}
.compact-sub-action.is-unavailable{color:#7c8490;background:#f5f3ef;box-shadow:none}
.compact-sub-action.is-unavailable:after{color:#b4bac2}
.compact-sub-action.is-cdk .compact-sub-action-icon{background:#eaf8f3;color:#16a37a}
.compact-sub-action.is-custom-0 .compact-sub-action-icon{background:#fff5dc;color:#c47c00}
.compact-sub-action.is-custom-1 .compact-sub-action-icon{background:#f3edff;color:#6f49cf}
.compact-sub-action.is-custom-2 .compact-sub-action-icon{background:#fff0f5;color:#d64d7d}
.compact-cdk-method{min-height:38px;margin:0 16px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e3ddd2;border-radius:12px;background:#fffaf3;color:#7d6f65;font-size:11px;line-height:1.35}
.compact-cdk-method strong{flex:0 0 auto;color:var(--compact-orange-deep);font-size:12px;font-weight:800;white-space:nowrap}
.compact-welfare{display:grid;gap:8px;padding:12px 16px 16px}
.compact-ticket{min-height:52px;position:relative;overflow:hidden;margin-top:0;padding:7px 8px 7px 13px;grid-template-columns:auto minmax(0,1fr) auto auto;gap:7px;border:1px solid #e3ddd2;border-radius:15px;background:radial-gradient(circle at 0 50%,var(--compact-paper) 0 6px,transparent 6.5px),radial-gradient(circle at 100% 50%,var(--compact-paper) 0 6px,transparent 6.5px),#fffdf8;box-shadow:none}
.compact-ticket.is-benefit{min-height:0;display:block;padding:10px 13px;background:radial-gradient(circle at 0 50%,var(--compact-paper) 0 6px,transparent 6.5px),radial-gradient(circle at 100% 50%,var(--compact-paper) 0 6px,transparent 6.5px),#f8fbff;line-height:1.75}
.compact-ticket-type{min-width:56px;min-height:26px;padding:4px 7px;border-radius:8px;font-size:10px;font-weight:800;letter-spacing:.04em}
.compact-ticket-type.is-benefit{min-width:0;min-height:22px;margin:0 7px 0 0;padding:2px 6px;vertical-align:baseline;letter-spacing:0;line-height:1.4}
.compact-code-line code{color:#222a36;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}
.compact-copy{min-width:66px;min-height:36px;position:relative;padding-left:8px;padding-right:8px}
.compact-ticket-date{font-size:9px;color:#9b8b82}
.compact-benefit-text{display:inline;color:#596779;font-size:12px;font-weight:400;line-height:1.75;letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.compact-copy:hover{background:#ffe9e1}
.compact-faq{padding:0 16px 14px}
.compact-faq-card{border:1px solid var(--compact-line);border-radius:17px;background:#fffdf8;box-shadow:0 6px 16px rgba(31,40,59,.04)}
.compact-faq details+details{border-top:1px solid var(--compact-line)}
.compact-faq summary{min-height:48px;padding:12px 42px 12px 15px;color:#263140;line-height:normal}
.compact-faq summary:after{right:15px;top:50%;color:#8b95a3;font-size:19px;transform:translateY(-50%)}
.compact-faq-answer{margin:-2px 0 0;padding:0 15px 14px;color:#6c7582;font-size:12px;line-height:1.65}
.compact-faq-answer>:first-child,.compact-faq-answer>:last-child{margin:0}
.compact-more{padding:0 16px 12px}
.compact-more a{min-height:48px;gap:8px;padding:10px 16px;border:1px solid #d9e2f6;border-radius:15px;background:linear-gradient(135deg,#f7f9ff,#fffdf9);color:#3157bd;box-shadow:0 5px 14px rgba(31,40,59,.04)}
.compact-more svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.compact-legal{padding:0 24px 82px;color:#939ba7}
.compact-toast{min-width:178px;min-height:40px;position:fixed;z-index:110;left:50%;bottom:max(22px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;padding:9px 16px;border:1px solid rgba(116,126,140,.2);border-radius:13px;background:rgba(255,255,255,.9);color:#4d5868;font-weight:600;box-shadow:0 10px 28px rgba(22,31,45,.13);backdrop-filter:blur(12px)}
.compact-service svg{width:23px;height:23px}
.compact-service:active{box-shadow:0 7px 18px rgba(35,69,188,.25)}
.compact-modal{position:fixed!important;inset:0!important;overflow-y:auto;padding:22px;background:rgba(12,17,25,.58);overscroll-behavior:contain;backdrop-filter:blur(5px)}
.compact-modal-open,.compact-modal-open body{overflow:hidden}
.compact-dialog{width:min(100%,334px);overflow:hidden;border-radius:22px;background:#fffdf9;box-shadow:0 24px 70px rgba(10,15,24,.3)}
.compact-save-dialog{padding:0;text-align:center}
.compact-save-body{display:grid;justify-items:center;gap:13px;padding:26px 22px 22px;text-align:center}
.compact-save-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#e8f8f2;color:#16a37a}
.compact-save-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.compact-save-body h2{margin:0;color:var(--compact-ink);font-size:19px;line-height:1.3}
.compact-save-body p{margin:0;color:#5f6875;font-size:14px;line-height:1.7}
.compact-save-confirm{width:100%;min-height:50px;border:0;border-top:1px solid var(--compact-line);background:#fffdf9;color:var(--compact-orange-deep);font-weight:700}
.compact-save-confirm:active{background:#fff5f1}
.compact-recharge-dialog{width:min(100%,400px);height:min(88dvh,760px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;margin:auto;background:#fffdf9}
.compact-dialog-head{min-height:58px;position:sticky;z-index:3;top:0;flex:0 0 auto;padding:12px 14px 12px 18px;justify-content:space-between;gap:12px;border-bottom:1px solid var(--compact-line)}
.compact-dialog-head h2{font-size:18px}
.compact-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.compact-recharge-go{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border:1px solid #cbd8ff;border-radius:11px;background:#edf2ff;color:var(--compact-blue-deep);font-size:13px;font-weight:800;line-height:1;white-space:nowrap}
.compact-recharge-go:active{background:#dfe8ff;transform:scale(.97)}
.compact-recharge-close{min-width:68px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:7px 12px;border:0;border-radius:11px;background:linear-gradient(145deg,#ff7250,var(--compact-orange-deep));color:#fff;font-size:13px;font-weight:700;box-shadow:0 7px 15px rgba(233,64,30,.24);transition:transform .18s ease,box-shadow .18s ease}
.compact-recharge-close:active{transform:scale(.96);box-shadow:0 4px 10px rgba(233,64,30,.2)}
.compact-recharge-close b{font-size:18px;font-weight:400;line-height:1}
.compact-recharge-content{min-height:0;overflow-y:auto;flex:1 1 auto;padding:0;background:#f3f5f8;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.compact-recharge-guide{padding:16px 17px 18px;border-bottom:1px solid #e5e8ee;background:#fff}
.compact-recharge-guide h3{margin:0 0 10px;color:var(--compact-ink);font-size:16px;font-weight:850;line-height:1.4}
.compact-recharge-guide .rich-text{margin:0;padding:0;border-radius:0;background:transparent;color:#3f4a59;font-size:13px;line-height:1.75}
.compact-recharge-guide .rich-text>:first-child{margin-top:0}.compact-recharge-guide .rich-text>:last-child{margin-bottom:0}
.compact-recharge-images{min-height:180px;position:relative;background:#1b0b09}
.compact-recharge-loading{min-height:46px;position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;background:rgba(25,19,20,.92);color:#f4e9e7;font-size:12px;line-height:1.4;backdrop-filter:blur(6px)}
.compact-recharge-loading span{width:15px;height:15px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:compact-spin .8s linear infinite}
.compact-recharge-loading[hidden]{display:none!important}
.compact-recharge-image{width:100%;height:auto;display:block;margin:0;border-radius:0;background:linear-gradient(110deg,#241413 8%,#33201d 18%,#241413 33%);opacity:.08;transition:opacity .2s ease}
.compact-recharge-image.is-loaded{opacity:1}.compact-recharge-image.is-error{display:none}
@keyframes compact-spin{to{transform:rotate(360deg)}}
.compact-guard-dialog{position:relative;display:grid;justify-items:center;gap:12px;padding:26px 20px 20px;border:1px solid rgba(255,104,69,.16);background:radial-gradient(circle at 50% -18%,rgba(255,111,77,.13),transparent 36%),#fffdf9;text-align:center}
.compact-guard-dialog:before{content:"";height:4px;position:absolute;inset:0 0 auto;background:linear-gradient(90deg,#ff9a65,var(--compact-orange-deep))}
.compact-guard-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#fff2ed,#ffe2d8);color:var(--compact-orange-deep);box-shadow:inset 0 0 0 1px rgba(233,64,30,.08)}
.compact-guard-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9}
.compact-guard-dialog h2{margin:0;color:var(--compact-ink);font-size:19px}
.compact-guard-message{display:grid;gap:3px;width:100%;margin:0;padding:13px 12px;border:1px solid #f0d6c9;border-radius:13px;background:linear-gradient(145deg,#fff8f3,#fff1e9);color:#3b4656;font-size:15px;font-weight:700;line-height:1.55;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.compact-guard-message strong{color:#d94723;font-size:16px;font-weight:900}
.compact-guard-actions{width:100%;gap:9px}
.compact-guard-actions a,.compact-guard-actions button{min-height:46px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;line-height:1.2;text-align:center}
.compact-countdown{min-height:18px;margin:-3px 0 0!important;color:#747d89!important;font-size:12px!important;line-height:1.5}
.compact-dialog-close{width:34px;height:34px;top:12px;right:12px;padding:0 0 2px;border-radius:50%;background:#eef1f7;color:#6f7784;font-size:21px;box-shadow:none}
.compact-invite-dialog{border-color:rgba(111,73,207,.17);background:radial-gradient(circle at 50% -18%,rgba(125,87,219,.14),transparent 36%),#fffdf9}
.compact-invite-dialog:before{background:linear-gradient(90deg,#a580f4,#5b36bc)}
.compact-invite-dialog .compact-guard-icon{background:linear-gradient(145deg,#f4efff,#e7dcff);color:#6f49cf;box-shadow:inset 0 0 0 1px rgba(91,54,188,.08)}
.compact-invite-code{min-width:156px;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:10px 16px;border:1px dashed #bca7ed;border-radius:13px;background:#f7f3ff;color:#43228f;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:22px;font-weight:900;letter-spacing:.08em;line-height:1.2;white-space:nowrap}
.compact-invite-proceed{width:100%;min-height:47px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:13px;background:linear-gradient(145deg,#8b65e8,#5b36bc);color:#fff;font-size:14px;font-weight:800;line-height:1.2;text-align:center;box-shadow:0 8px 18px rgba(91,54,188,.24)}
.compact-service-dialog{width:min(100%,326px);position:relative;display:grid;justify-items:center;gap:14px;padding:26px 20px 20px;border:1px solid rgba(49,95,231,.15);background:radial-gradient(circle at 50% -18%,rgba(49,95,231,.14),transparent 36%),#fffdf9;text-align:center}
.compact-service-dialog:before{content:"";height:4px;position:absolute;inset:0 0 auto;background:linear-gradient(90deg,#6e92fa,var(--compact-blue-deep))}
.compact-service-icon{width:48px;height:48px;margin:0;border-radius:50%;background:#eaf0ff}
.compact-service-icon svg{width:25px;height:25px}
.compact-service-dialog h2{margin:0;color:var(--compact-ink);font-size:19px}
.compact-service-channel{width:100%;display:grid;gap:8px}
.compact-service-row{width:100%;margin:0;padding:11px 13px;display:grid;grid-template-columns:auto minmax(0,1fr);text-align:left;border:1px solid #dce5f7;background:#f7f9ff}
.compact-service-row span{padding:4px 7px;border-radius:8px;background:#e5edff;color:var(--compact-blue);font-size:11px;font-weight:800;white-space:nowrap}
.compact-service-row strong{color:#263650;font-family:inherit;font-size:17px;letter-spacing:0}
.compact-service-copy{width:100%;min-height:46px;border:0;border-radius:13px;background:linear-gradient(145deg,#5079f2,var(--compact-blue-deep));color:#fff;font-size:14px;font-weight:800;box-shadow:0 8px 18px rgba(35,69,188,.22)}
.compact-service-copy.is-wechat{background:linear-gradient(145deg,#39bc7a,#15945a);box-shadow:0 8px 18px rgba(21,148,90,.20)}
@media(max-width:420px){.compact-stage{padding:0}.compact-page{width:min(100%,400px);min-height:100vh;border-radius:0;box-shadow:none}.compact-modal.is-sheet{align-items:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.compact-recharge-dialog{max-height:calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));border-radius:22px}}
@media(max-width:350px){.compact-title h1{font-size:clamp(17px,6vw,19px)}.compact-save{gap:5px;padding-right:7px;font-size:11px}.compact-actions,.compact-welfare{padding-left:12px;padding-right:12px}.compact-cdk-method{margin-left:12px;margin-right:12px}.compact-ticket{padding-left:10px;gap:5px}.compact-ticket-type{min-width:51px;padding-left:5px;padding-right:5px}.compact-copy{min-width:60px}.compact-ticket-date{font-size:8px}}

/* Query-driven Taobao mode and the compact version/customer refinements. */
.compact-ad{position:relative}
.compact-version{position:absolute;z-index:2;inset:auto 11px 11px;padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;border:1px solid rgba(255,205,112,.92);border-radius:14px;background:rgba(255,250,239,.94);color:#3e342b;box-shadow:0 8px 22px rgba(76,42,8,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.compact-version-label{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:8px;background:#fff0d2;color:#a5410b;font-size:13px;font-weight:850;line-height:1.5;white-space:nowrap}
.compact-version-label:before{content:"!";width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#f26a1b;color:#fff;font-size:11px;font-weight:900;line-height:1}
.compact-version-copy{display:-webkit-box;max-height:3.2em;overflow:hidden;color:#493b30;font-size:13px;font-weight:550;line-height:1.6;text-align:left;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.compact-version-copy *{margin:0!important;color:inherit!important;font:inherit!important;line-height:inherit!important}
.compact-version-copy br{display:none}
.compact-service-hours{margin:-9px 0 0;color:#7a8492;font-size:12px;line-height:1.4}
.compact-service-channel{gap:0}
.compact-service-row{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 8px 8px 11px}
.compact-service-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-service-copy{width:auto;min-width:72px;min-height:34px;padding:6px 9px;border-radius:9px;font-size:11px;white-space:nowrap;box-shadow:none}
@media(max-width:350px){.compact-version{inset:auto 8px 8px;padding:9px 10px;gap:7px}.compact-version-label,.compact-version-copy{font-size:12px}.compact-version-label{padding-left:6px;padding-right:6px}.compact-service-row{grid-template-columns:auto minmax(0,1fr) auto;gap:5px;padding-left:8px}.compact-service-row span{padding-left:5px;padding-right:5px}.compact-service-row strong{font-size:15px}.compact-service-copy{min-width:62px;padding-left:6px;padding-right:6px}}
