#referral-panel{margin:16px;padding:18px;border:1px solid #dce4d9;border-radius:16px;background:#fff}#referral-panel h2{font-size:20px;margin:0}#referral-panel h3{font-size:18px;margin:22px 0 12px}#referral-panel p{font-size:14px;line-height:1.65}.referral-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.referral-heading>span{font-size:12px;color:#2c6532;white-space:nowrap}.referral-actions{display:flex;gap:8px}.referral-actions>button{flex:1;font-size:14px}.referral-link{margin-top:10px;font-size:12px!important;color:#626a60;width:100%}.referral-welcome{padding:12px;background:#f4f8ec;border-radius:10px}.referral-coupon{display:flex;justify-content:space-between;gap:12px;border:1px solid #d6e3cd;border-radius:12px;padding:14px;margin:10px 0}.referral-coupon>div{display:flex;flex-direction:column;gap:5px}.referral-coupon strong{font-size:30px;color:#2f713b}.referral-coupon strong small{font-size:14px}.referral-coupon small{font-size:11px;color:#6c7666;overflow-wrap:anywhere}.referral-coupon span,.referral-coupon b{font-size:13px}.referral-coupon.used,.referral-coupon.expired{opacity:.65;background:#f6f6f3}.referral-rule{color:#626c5b;font-size:12px!important}.referral-admin-row{display:flex;flex-direction:column;gap:7px;padding:16px 0;border-bottom:1px solid #dce4d9;overflow-wrap:anywhere}.referral-admin-row small{color:#65705e;font-size:12px}#checkout-coupons{margin:20px 0}#simulation-login input{font-size:16px}#simulation-login label{display:block;margin:12px 0}.demo-shell{max-width:600px;margin:30px auto;padding:20px}.demo-shell h1{font-size:24px}.demo-shell p{line-height:1.7}.demo-shell button{margin:8px 0}.demo-shell input{font-size:16px}.demo-link{overflow-wrap:anywhere;display:block;padding:10px;background:#f2f5ec}.referral-admin-row span{font-size:14px}
/* Scoped invitation cards and accessible native dialog. */
#referral-panel{padding:0;border:0;background:transparent;margin:16px}#referral-panel .ref-entry{position:relative;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:22px;border:0;border-radius:20px;background:#edf7de;color:#173d22;overflow:hidden;min-height:180px;cursor:pointer}#referral-panel .ref-entry strong{font-size:25px;line-height:1.3;max-width:85%;letter-spacing:-.6px}#referral-panel .ref-entry>span{font-size:13px;z-index:1}#referral-panel .ref-entry>span.ref-entry-eyebrow{font-size:11px;letter-spacing:1px;text-transform:uppercase}#referral-panel .ref-entry>b{font-size:14px;margin-top:8px;background:#173d22;color:#fff;border-radius:24px;padding:10px 16px;z-index:1}#referral-panel .ref-entry img{position:absolute;width:88px;height:112px;object-fit:contain;right:10px;bottom:-7px;opacity:.92}#referral-panel .ref-wallet-entry{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;margin-top:12px;padding:17px 18px;border:1px solid #e3e7df;border-radius:16px;background:#fff;color:#233126;text-align:left;cursor:pointer}#referral-panel .ref-wallet-entry span{display:flex;flex-direction:column;gap:5px}#referral-panel .ref-wallet-entry b{font-size:15px}#referral-panel .ref-wallet-entry small{font-size:12px;color:#73796e}#referral-panel .ref-wallet-entry>strong{font-size:14px;white-space:nowrap;color:#216d3a}
.ref-modal{box-sizing:border-box;padding:0;border:0;width:min(480px,calc(100vw - 28px));max-height:min(900px,92dvh);border-radius:24px;background:#fff;color:#1e2e23;font:15px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;box-shadow:0 20px 80px #15251433;overscroll-behavior:contain;overflow-y:auto}.ref-modal::backdrop{background:rgb(12 23 16 / .5)}.ref-modal *{box-sizing:border-box}.ref-modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px 8px}.ref-brand{display:flex;align-items:center;gap:8px;color:#63705f;font-size:12px}.ref-brand img{width:28px;height:28px;border-radius:8px}.ref-close{border:0;border-radius:50%;background:#f0f3ec;color:#273b2b;font-size:24px;width:36px;height:36px;line-height:1;cursor:pointer}.ref-modal-body{padding:8px 24px 24px}.ref-modal h2{margin:10px 0 8px;font-size:27px;line-height:1.35;letter-spacing:-.6px}.ref-modal h3{font-size:15px;margin:18px 0 8px}.ref-modal p.ref-lead{font-size:14px;color:#64715f;margin:0 0 20px}.ref-modal-footer{position:sticky;bottom:0;padding:16px 24px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:9px;background:#fff;border-top:1px solid #eef0e9}.ref-primary,.ref-secondary{width:100%;min-height:48px;border-radius:14px;font-weight:650;font-size:15px;cursor:pointer;padding:12px 14px}.ref-primary{border:0;background:#174c2a;color:#fff}.ref-secondary{border:1px solid #dae1d3;background:#fff;color:#345033}.ref-primary:disabled{opacity:.6}.ref-modal button:focus-visible,.ref-modal input:focus-visible,.ref-entry:focus-visible,.ref-wallet-entry:focus-visible{outline:3px solid #1470ca;outline-offset:3px}.ref-hint{color:#737c6d;font-size:12px;line-height:1.6}.ref-empty{padding:28px 0;text-align:center;color:#71796b}.ref-gift-total{text-align:center;margin:8px 0 26px;display:flex;flex-direction:column;gap:3px}.ref-gift-total strong{font-size:64px;line-height:1.15;letter-spacing:-2px;color:#206538}.ref-gift-total strong small{font-size:21px;letter-spacing:0}.ref-gift-total>span{font-size:13px;color:#62725b}.ref-arrival-check{margin:0 auto 12px;width:46px;height:46px;background:#eaf6df;color:#276b36;border-radius:50%;display:grid;place-items:center;font-size:26px}
.ref-ticket-list{display:flex;flex-direction:column;gap:12px}.ref-ticket{display:flex;position:relative;border:1px solid #dce6d2;border-radius:14px;background:#f4faed;overflow:hidden;min-height:112px}.ref-ticket-value{display:flex;flex-direction:column;justify-content:center;align-items:center;width:116px;min-width:116px;border-right:1px dashed #bfd0b3;padding:14px 8px;color:#216237}.ref-ticket-value strong{font-size:42px;line-height:1.1;letter-spacing:-1px}.ref-ticket-value span{font-size:11px;margin-top:6px}.ref-ticket-detail{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:14px 16px;min-width:0}.ref-ticket-detail b{font-size:14px}.ref-ticket-detail small{font-size:11px;color:#69795e}.ref-ticket-detail button{margin-top:6px;padding:0;border:0;background:none;color:#216237;font-size:13px;font-weight:650;cursor:pointer}.ref-ticket.used,.ref-ticket.expired{background:#f4f5f1;border-color:#e1e3dd}.ref-ticket.used .ref-ticket-value,.ref-ticket.expired .ref-ticket-value{color:#72766e;border-color:#d5d8d0}.ref-rules{font-size:12px;color:#747d6a;margin-top:20px}.ref-rules summary{cursor:pointer;color:#526348}.ref-rules p{font-size:12px;line-height:1.75;margin:10px 0}.ref-wallet-tabs{display:flex;padding:4px;gap:4px;background:#f1f4eb;border-radius:12px;margin-bottom:20px}.ref-wallet-tabs button{flex:1;padding:9px 0;border:0;background:transparent;color:#6d7764;border-radius:9px;font-size:12px;cursor:pointer}.ref-wallet-tabs button[aria-selected=true]{background:#fff;color:#194c2a;box-shadow:0 2px 7px #2238170c}.ref-share-art img{display:block;width:100%;border-radius:14px}.ref-steps{display:flex;justify-content:space-between;gap:6px;margin:20px 0 24px}.ref-steps span{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px;color:#55694d}.ref-steps b{display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:#edf6e1;color:#285b32;font-size:12px}.ref-share-preview{background:#f2f4ef;padding:14px;border-radius:14px}.ref-share-preview>small{font-size:10px;color:#7a8570}.ref-message{display:flex;gap:12px;padding:16px;background:#fff;border:1px solid #e1e5dd;border-radius:13px;margin-top:9px}.ref-message img{width:58px;height:58px;border-radius:12px}.ref-message b{font-size:15px}.ref-message p{font-size:11px;color:#75826b;line-height:1.6;margin:5px 0 0}.ref-share-preview .ref-hint{margin:10px 0 0;font-size:10px}.ref-copy-label{display:block;margin-top:18px;font-size:11px;color:#78816d}.ref-copy-label input,.ref-copy-fallback{width:100%;padding:10px;border:1px solid #dce3d3;background:#f9fbf5;border-radius:9px;color:#506444;font-size:12px;margin-top:7px}.ref-copy-fallback{min-height:110px;font-size:16px}.ref-history{margin-top:18px;border-top:1px solid #edf0e7}.ref-history>p{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}.ref-history>p b{margin-left:auto;color:#296b37}.ref-history small{width:100%;font-size:10px;color:#839076}.ref-checkout-picker{display:flex;justify-content:space-between;gap:12px;padding:16px;width:100%;background:#f3f8eb;border:1px solid #dce6d1;border-radius:13px;color:#244b2e;font-size:14px;cursor:pointer}.ref-coupon-choice{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:13px}.ref-coupon-choice input{width:18px;height:18px;flex-shrink:0;accent-color:#205b2c}.ref-coupon-choice .ref-ticket{flex:1}.ref-coupon-choice .ref-ticket-value{width:95px;min-width:95px}.ref-coupon-choice .ref-ticket-value strong{font-size:35px}.ref-coupon-choice .ref-ticket-detail{padding:12px}.ref-coupon-choice:has(input:checked) .ref-ticket{outline:2px solid #317443;outline-offset:-2px}
@media(max-width:520px){.ref-modal{margin:auto auto 0;width:100%;max-height:94dvh;border-radius:24px 24px 0 0}.ref-modal-body{padding:8px 22px 22px}.ref-modal h2{font-size:25px}.ref-modal-footer{padding-left:22px;padding-right:22px}}
@media(prefers-reduced-motion:no-preference){.ref-modal[open]{animation:ref-in .18s ease-out}@keyframes ref-in{from{transform:translateY(14px);opacity:.4}to{transform:translateY(0);opacity:1}}}
.ref-modal{max-width:480px}.ref-ticket::before,.ref-ticket::after{content:'';position:absolute;left:108px;width:14px;height:14px;background:#fff;border:1px solid #dce6d2;border-radius:50%}.ref-ticket::before{top:-8px}.ref-ticket::after{bottom:-8px}.ref-coupon-choice .ref-ticket::before,.ref-coupon-choice .ref-ticket::after{left:87px}.ref-coupon-choice input{padding:0;min-height:0;height:18px}.ref-coupon-choice:has(input:disabled){opacity:.6}@media(max-width:520px){.ref-modal{max-width:100%}}
.ref-ticket,.ref-ticket.used,.ref-ticket.expired{background:#dcf227;border-color:#c9de1a;opacity:1}.ref-ticket-value,.ref-ticket.used .ref-ticket-value,.ref-ticket.expired .ref-ticket-value{color:#174c2a;border-color:#91aa32}.ref-ticket-detail small{color:#3c5b27}.ref-ticket::before,.ref-ticket::after{border-color:#c9de1a}.ref-ticket.used .ref-ticket-detail b::after{content:' · 已使用';font-size:11px}.ref-ticket.expired .ref-ticket-detail b::after{content:' · 已过期';font-size:11px}.ref-personal-card{display:block;width:100%;border-radius:16px}.ref-text-button{border:0;background:transparent;color:#4a663d;padding:7px;font-size:12px;cursor:pointer}.ref-coupon-choice:has(input:disabled){opacity:1}
.ref-modal [hidden]{display:none!important}

.ref-cover{display:flex;flex-direction:column;gap:9px;background:#dcf227;color:#174c2a;padding:22px;border-radius:16px;overflow:hidden}.ref-cover-brand{font-size:11px}.ref-cover>strong{font-size:21px;line-height:1.15}.ref-cover>strong>b{font-size:58px;letter-spacing:-2px}.ref-cover>strong>small{font-size:17px}.ref-cover>span:not(.ref-cover-brand){font-size:12px}.ref-cover-tickets{display:flex;gap:8px;margin-top:5px}.ref-cover-tickets>span{flex:1;display:flex;align-items:center;gap:9px;padding:12px 10px;background:#fff;border-radius:12px;min-width:0}.ref-cover-tickets b{font-size:28px;line-height:1}.ref-cover-tickets small{font-size:10px;line-height:1.5}.ref-modal .ref-copy-status{margin:0;text-align:center;color:#174c2a;font-size:13px;line-height:1.5}.ref-modal .ref-copy-error{color:#a23121}.ref-primary.ref-copy-done{background:#287143}.ref-modal-footer button:active{transform:scale(.97)}.ref-modal-footer button:disabled{cursor:wait}@media(max-width:360px){.ref-cover{padding:18px}.ref-cover>strong>b{font-size:52px}.ref-cover-tickets>span{gap:6px;padding:10px 8px}.ref-cover-tickets b{font-size:24px}.ref-cover-tickets small{font-size:9px}}

.ref-share-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.ref-share-dialog .ref-modal-head{flex-shrink:0}.ref-share-dialog .ref-modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.ref-share-dialog .ref-modal-footer{position:static;flex-shrink:0}

.ref-share-dialog[open]{height:92vh;height:min(900px,92dvh);max-height:92vh;max-height:min(900px,92dvh)}.ref-share-dialog .ref-modal-body{flex:1 1 0;min-height:0}@media(max-width:520px){.ref-share-dialog[open]{height:94vh;height:94dvh;max-height:94vh;max-height:94dvh}}
.ref-share-dialog .ref-modal-footer{max-height:45%;overflow-y:auto}

.ref-browser-guide{background:#eef5ff;border:1px solid #c8ddfa;border-radius:16px;padding:16px;margin:16px 0}.ref-browser-guide h3{font-size:19px;margin:0 0 6px;color:#174c2a}.ref-browser-guide p,.ref-browser-guide li{font-size:13px;line-height:1.7}.ref-browser-guide ol{padding-left:20px;margin:10px 0 14px}.ref-browser-guide [data-copy-status]{color:#174c2a;margin-bottom:0}.ref-browser-guide textarea{min-height:85px}.ref-browser-guide .ref-copy-error{color:#a23121}
