:root{color-scheme:light;--paper:#f6f8f7;--white:#fff;--ink:#182a28;--muted:#657672;--line:#dce5e1;--teal:#006b63;--teal-dark:#00534d;--soft:#e7f3ef;--warn:#a35629;--error:#ad3833;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;letter-spacing:0}
*{box-sizing:border-box}
body{margin:0;min-width:320px;min-height:100dvh;background:var(--paper);color:var(--ink)}
button,input,select,textarea{font:inherit;letter-spacing:0}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid #69bfb0;outline-offset:3px}
[hidden]{display:none!important}
.site-header{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1440px;padding:0 clamp(24px,5.5vw,88px);margin:auto}
.brand{display:inline-flex;align-items:center;gap:13px;font-size:19px;font-weight:750;color:var(--ink)}
.brand-mark{width:32px;height:32px;display:flex;align-items:center;justify-content:center;gap:3px;background:var(--teal);border-radius:7px;transform:rotate(-7deg)}
.brand-mark span{width:3px;height:10px;border-radius:3px;background:white}
.brand-mark span:nth-child(2){height:17px}
.brand-mark span:nth-child(3){height:7px}
.header-label,.header-link{font-size:13px;color:var(--muted);font-weight:550}
.header-actions{display:flex;align-items:center;gap:24px}
.header-support{font-size:13px;color:var(--muted);font-weight:550;white-space:nowrap}
.header-link:hover,.site-footer a:hover{color:var(--teal)}
.redeem-layout{max-width:1440px;margin:auto;padding:clamp(64px,10vh,118px) clamp(24px,5.5vw,88px) 92px;display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,520px);gap:clamp(70px,10vw,160px);align-items:start;min-height:calc(100dvh - 142px)}
.section-label{font-size:13px;font-weight:700;color:var(--teal);margin-bottom:22px}
h1,h2,p{margin-top:0}
h1{font-size:clamp(36px,3.4rem,54px);line-height:1.12;font-weight:730;margin-bottom:18px}
.entry-lede{font-size:16px;color:var(--muted);line-height:1.7;margin-bottom:62px}
.code-form label,.stack-form label{display:block;font-size:13px;font-weight:650;margin-bottom:10px}
.code-entry{display:flex;gap:10px;max-width:590px}
.code-entry input,.stack-form input,.stack-form select,.generated textarea{min-width:0;border:1px solid #cbd8d3;border-radius:6px;background:var(--white);color:var(--ink);height:48px;padding:0 16px;outline:none;transition:border-color .15s,box-shadow .15s}
.code-entry input:focus,.stack-form input:focus,.stack-form select:focus,.generated textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #c5e5dc}
.code-entry input{flex:1;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;text-transform:uppercase}
.code-entry input::placeholder{color:#7c8985;opacity:1}
.code-entry button,.primary-button{border:0;border-radius:6px;background:var(--teal);color:#fff;font-weight:650;padding:0 23px;height:48px;white-space:nowrap;transition:background .15s,transform .15s}
.code-entry button:hover:not(:disabled),.primary-button:hover:not(:disabled){background:var(--teal-dark);transform:translateY(-1px)}
.secondary-button{height:48px;border:1px solid #b8ccc5;background:#fff;color:var(--teal);font-weight:650;border-radius:6px;padding:0 21px;white-space:nowrap}
.secondary-button:is(a){display:inline-flex;align-items:center;justify-content:center}
.secondary-button:hover:not(:disabled){background:var(--soft)}
.get-code-link{height:42px;margin-top:18px;font-size:13px}
.text-button{padding:7px 2px;border:0;background:transparent;color:var(--teal);font-size:13px;font-weight:700;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.result-actions #replace{min-width:104px;text-align:left}
.quiet-note{color:#71807b;font-size:13px;line-height:1.6;margin:17px 0 0}
.inline-error{color:var(--error);font-size:14px;line-height:1.5;margin:16px 0 0}
.result{background:#fff;border:1px solid var(--line);border-radius:8px;min-height:405px;padding:30px 32px 32px;box-shadow:0 16px 38px rgba(24,42,40,.045)}
.result-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:26px}
.result-head .section-label{margin:0}
.state-indicator{font-size:12px;color:var(--muted);font-weight:650;text-align:right}
.state-indicator[data-status="active"],.state-indicator[data-status="completed"]{color:var(--teal)}
.state-indicator[data-status="needs_review"],.state-indicator[data-status="cancelled"]{color:var(--warn)}
.empty-state{min-height:300px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;color:#778681;font-size:14px}
.empty-symbol{width:86px;height:86px;display:flex;gap:8px;align-items:center;justify-content:center;margin:0 0 20px;background:#f0f6f3;border-radius:50%}
.empty-symbol span{display:block;width:6px;height:21px;border-radius:4px;background:#9ac8bb}
.empty-symbol span:nth-child(2){height:35px;background:var(--teal)}
.empty-symbol span:nth-child(3){height:13px}
.empty-state p{margin:0}
.detail-label{font-size:12px;font-weight:650;color:var(--muted);margin-bottom:10px}
.number-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.number-meta .detail-label{margin-bottom:0}
.wait-timer{font-size:12px;color:var(--muted);white-space:nowrap}
.wait-timer strong{display:inline-block;min-width:5ch;text-align:right;font:700 14px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--teal);font-variant-numeric:tabular-nums}
.number-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
.number-line strong,.sms-area strong{font:650 27px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.sms-area{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);margin-top:26px;padding-top:25px;flex-wrap:wrap}
.sms-area .detail-label{width:100%;margin-bottom:-8px}
.sms-area .waiting-sms{font:650 16px/1.5 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--muted)}
.status-note{font-size:13px;color:var(--muted);line-height:1.6;margin:26px 0 0}
.result-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:28px}
.redeem-layout{max-width:900px;min-height:calc(100dvh - 82px);padding:72px 32px 90px;display:block}
.steps{display:flex;align-items:center;gap:22px;margin:0 0 78px;color:var(--muted);font-size:13px;font-weight:650}
.step{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.step.current{color:var(--ink)}
.step-number{display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #bfcfc8;border-radius:50%;font-size:11px;font-variant-numeric:tabular-nums}
.step.current .step-number{background:var(--teal);border-color:var(--teal);color:#fff}
.step-rule{height:1px;width:42px;background:var(--line)}
.redeem-layout .entry{max-width:690px}
.redeem-layout h1{font-size:40px;line-height:1.15;margin:0 0 16px}
.redeem-layout .code-entry{max-width:none}
.redeem-layout .result{max-width:720px;min-height:0;padding:0;background:none;border:0;box-shadow:none}
.country-summary{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1fr);gap:30px;border-bottom:1px solid var(--line);padding:8px 0 30px}
.summary-field{min-width:0}
.summary-field .detail-label{display:block;margin-bottom:14px}
.summary-field strong,.summary-field h1{display:block;margin:0;font-size:34px;line-height:1.2;font-weight:720;overflow-wrap:anywhere}
.summary-field h1:focus{outline:none}
.redeem-layout .task-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:30px}
.redeem-layout .task-head .detail-label{margin:0}
.redeem-layout #number-area{margin-top:28px}
.redeem-layout .status-note{margin-top:28px}
.redeem-layout .result-actions{margin-top:30px}
.site-footer{max-width:1440px;margin:auto;padding:22px clamp(24px,5.5vw,88px);border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.admin-layout{max-width:1160px;margin:auto;padding:56px 32px 100px;min-height:calc(100dvh - 82px)}
.login-view{max-width:420px;margin:80px auto 0}
.login-view h1{font-size:42px;margin-bottom:38px}
.stack-form{display:flex;flex-direction:column;align-items:stretch;gap:0}
.stack-form input,.stack-form select{width:100%;margin-bottom:20px}
.stack-form button{align-self:flex-start;margin-top:3px}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:40px}
.dashboard-heading h1{font-size:35px;margin:0}
.dashboard-heading .section-label{margin-bottom:12px}
.heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dashboard-status{display:flex;align-items:center;gap:65px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:48px}
.dashboard-status>div{display:flex;flex-direction:column;gap:5px}
.dashboard-status strong{font-size:20px;font-weight:700}
.dashboard-status .text-button{margin-left:auto}
.admin-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:78px;margin-bottom:64px}
.admin-section h2,.records h2{font-size:20px;margin:0 0 28px}
.admin-section{min-width:0}
.card-link-settings{max-width:430px;border-top:1px solid var(--line);margin-top:42px;padding-top:38px}
.link-actions{display:flex;align-items:center;gap:22px}
.upstream-settings{max-width:430px}
.card-admin-layout .dashboard-heading{margin-bottom:44px}
.card-issue{padding-bottom:48px;border-bottom:1px solid var(--line);margin-bottom:46px}
.card-issue-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(170px,.72fr) 90px auto;align-items:start;gap:14px}
.card-issue-form>div{min-width:0}
.card-issue-form label{display:block;font-size:13px;font-weight:650;margin-bottom:10px}
.card-issue-form input,.card-issue-form select,.card-search input,.card-search select{width:100%;min-width:0;height:48px;border:1px solid #cbd8d3;border-radius:6px;background:var(--white);color:var(--ink);padding:0 13px;outline:none}
.card-issue-form :is(input,select):focus,.card-search :is(input,select):focus{border-color:var(--teal);box-shadow:0 0 0 3px #c5e5dc}
.card-issue-form .primary-button{margin-top:27px}
.price-hint{margin:7px 0 0;font-size:12px;line-height:1.35;color:var(--muted)}
.price-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:9px;max-height:146px;overflow-y:auto}
.price-options button{display:flex;justify-content:space-between;align-items:center;gap:4px;min-width:0;height:36px;border:1px solid #cbd8d3;border-radius:5px;background:#fff;color:var(--ink);padding:0 7px;font-size:12px;white-space:nowrap}
.price-options button strong{font-weight:650}
.price-options button span{color:var(--muted)}
.price-options button:is(:hover,[aria-pressed="true"]){border-color:var(--teal);background:var(--soft)}
.catalog-picker{position:relative}
.catalog-picker:focus-within{z-index:2}
.picker-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;max-height:250px;overflow-y:auto;background:var(--white);border:1px solid #cbd8d3;border-radius:6px;box-shadow:0 12px 30px rgba(24,42,40,.12);padding:5px;z-index:5}
.picker-menu button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:38px;padding:7px 10px;border:0;border-radius:4px;background:transparent;color:var(--ink);font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.picker-menu button:is(:hover,.active){background:var(--soft)}
.picker-menu .picker-code{flex:none;color:var(--muted);font-size:12px}
.picker-empty{padding:12px;color:var(--muted);font-size:13px}
.card-issue-form .primary-button{width:100%}
.card-issue .generated{max-width:680px}
.card-search{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap;align-items:center}
.card-search input{max-width:360px}
.card-search select{max-width:160px}
.card-search .text-button{margin-left:auto}
.card-search button:disabled{opacity:.45;cursor:not-allowed}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cards-table{min-width:980px}
.cards-table th:first-child,.cards-table td:first-child{width:38px}
.cards-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--teal);cursor:pointer}
.cards-table .card-code{font:650 12px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.cards-table .card-code-unavailable{font-family:inherit;color:var(--muted);font-weight:400}
.cards-table .card-actions{white-space:nowrap}
.cards-table .card-actions .text-button{margin-right:14px}
.cards-table .card-actions .text-button:last-child{margin-right:0}
.status-revoked{color:var(--muted)}
.status-code{display:block;margin-top:5px;font:700 13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--ink);overflow-wrap:anywhere}
.form-pair{display:grid;grid-template-columns:1fr 120px;gap:16px}
.form-pair>div{min-width:0}
.generated{margin-top:28px;background:#eaf4ef;padding:18px;border-radius:6px}
.generated-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:12px}
.generated textarea{width:100%;height:auto;resize:vertical;padding:12px;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.generated p,.admin-hint{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.5}
.records-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px}
.records-heading span{font-size:13px;color:var(--muted)}
.table-scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:650px;text-align:left}
th{font-size:12px;font-weight:650;color:var(--muted);border-bottom:1px solid var(--line);padding:14px 12px 14px 0}
td{font-size:13px;line-height:1.5;border-bottom:1px solid #e8eeeb;padding:16px 12px 16px 0;vertical-align:middle}
.table-empty{text-align:center;color:var(--muted);padding:42px}
.status-active,.status-completed{color:var(--teal);font-weight:700}
.status-needs_review,.status-cancelled{color:var(--warn);font-weight:700}
.resolve-form{border-top:1px solid var(--line);margin-top:25px;padding-top:24px;max-width:620px}
.resolve-form h3{font-size:17px;margin:0 0 8px}
.resolve-form p{color:var(--muted);font-size:13px;margin-bottom:18px}
.resolve-choice{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:22px;font-size:13px}
.resolve-choice label{display:flex;align-items:center;gap:6px}
.resolve-form .form-pair input{width:100%;height:42px;border:1px solid #cbd8d3;border-radius:6px;padding:0 12px;background:white}
.resolve-form .form-pair label{font-size:12px;font-weight:650;display:block;margin-bottom:8px}
.resolve-form .form-pair{grid-template-columns:1fr 1fr}
.resolve-actions{display:flex;align-items:center;gap:22px;margin-top:18px}
@media(max-width:900px){.redeem-layout{grid-template-columns:1fr;gap:48px;padding-top:58px;min-height:0}.entry-lede{margin-bottom:35px}.result{max-width:640px}.admin-columns{gap:36px}}
@media(max-width:1100px){.card-issue-form{grid-template-columns:repeat(2,minmax(0,1fr))}.card-issue-form .primary-button{width:auto;justify-self:start}}
@media(max-width:600px){.site-header{height:68px;padding:0 20px}.redeem-layout{padding:43px 20px 70px;gap:38px}h1{font-size:38px}.code-entry{display:grid;grid-template-columns:1fr}.code-entry button{width:100%}.result{padding:24px;min-height:360px}.empty-state{min-height:240px}.number-line strong,.sms-area strong{font-size:22px}.site-footer{padding:20px}.admin-layout{padding:40px 20px 80px}.dashboard-status{gap:26px;flex-wrap:wrap}.dashboard-status .text-button{margin-left:0}.admin-columns{grid-template-columns:1fr;gap:48px}.form-pair{grid-template-columns:1fr 110px}.dashboard-heading h1{font-size:29px}}
@media(max-width:600px){.heading-actions{width:100%}.card-issue-form{grid-template-columns:1fr 1fr}.card-issue-form>div:nth-child(-n+3){grid-column:1/-1}.card-issue-form .primary-button{grid-column:1/-1;width:100%;margin-top:0}.card-search{display:grid;grid-template-columns:1fr 110px}.card-search input,.card-search select{max-width:none}.card-search button[type=submit]{grid-column:1/-1}.card-search .text-button{margin-left:0}.card-admin-layout .dashboard-heading{margin-bottom:30px}}
@media(max-width:600px){.redeem-layout{min-height:calc(100dvh - 68px)}.redeem-layout h1{font-size:32px}.steps{gap:12px;margin-bottom:56px}.step-rule{width:22px}.country-summary{grid-template-columns:minmax(90px,.55fr) minmax(0,1fr);gap:18px}.summary-field strong,.summary-field h1{font-size:29px}}
@media(max-width:600px){.header-actions{flex-direction:column;align-items:flex-end;gap:2px}.header-support,.header-link{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
