@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800.ttf') format('truetype')}
:root { color-scheme:light; --bg:#f6f7f9; --surface:#fff; --surface-2:#f0f2f5; --line:#e5e7eb; --ink:#0b0e13; --muted:#6b7280; --accent:#65a30d; --ok:#16a34a; --warn:#a85c05; --bad:#dc2626; --shadow:0 4px 10px -3px #0b0e1310,0 2px 4px -2px #0b0e130a; font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; font-synthesis:none; }
:root[data-theme=dark] {color-scheme:dark; --bg:#0b0e13; --surface:#11151c; --surface-2:#171c24; --line:#1c222c; --ink:#e8eaf0; --muted:#8a93a6; --accent:#c6ff3d; --ok:#4ade80; --warn:#fbbf24; --bad:#fb7185; --shadow:0 4px 12px -4px #0006;}
* {box-sizing:border-box} body {margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5;min-height:100dvh} h1,h2,h3,p,dl,ol {margin:0} button,input,textarea {font:inherit;color:inherit} button,a { -webkit-tap-highlight-color:transparent} button {cursor:pointer} a {color:inherit;text-decoration:none} button:disabled {opacity:.5;cursor:not-allowed} button, input, textarea {transition:background-color .15s,border-color .15s,box-shadow .15s} :focus-visible {outline:2px solid var(--accent);outline-offset:3px} ::selection {background:color-mix(in srgb,var(--accent) 25%,transparent)} input,textarea {caret-color:var(--accent)} [hidden]{display:none!important} .icon {width:16px;height:16px;flex:none;vertical-align:middle} .muted {color:var(--muted)} .mono {font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace}
.redeem-header {max-width:512px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:20px 16px 0;gap:12px;min-height:56px} .redeem-brand {display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800;letter-spacing:-.025em;white-space:nowrap} .brand-mark {width:36px;height:36px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent)} .brand-mark svg {width:18px;height:18px}.header-controls{display:flex;gap:8px;align-items:center} .redeem-tabs,.theme-controls{display:flex;padding:3px;border-radius:999px;background:var(--surface-2)} .redeem-tabs button {border:0;background:none;border-radius:999px;font-size:12px;font-weight:600;padding:4px 12px;min-height:28px;color:var(--muted)} .theme-controls button {border:0;background:none;border-radius:50%;display:grid;place-items:center;width:28px;height:28px;color:var(--muted)} .theme-controls svg {width:14px;height:14px} .redeem-tabs [aria-pressed=true],.theme-controls [aria-pressed=true] {background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.redeem-layout {max-width:512px;margin:auto;padding:24px 16px 64px}.redeem-panel {background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow);min-width:0;animation:enter .35s ease-out}.redeem-panel.batch-mode {background:none;border:0;box-shadow:none;padding:0;animation:none}.lookup-card {background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)} .lookup-card + .lookup-card {margin-top:16px}.redeem-panel h2 {font-size:22px;font-weight:800;letter-spacing:-.025em;line-height:1.5}.redeem-description {font-size:13px;color:var(--muted);line-height:1.6;margin-top:4px} .redeem-steps {display:flex;align-items:center;gap:8px;list-style:none;padding:0;margin-bottom:24px;font-size:12.5px;font-weight:600;color:var(--muted)}.redeem-steps span{display:flex;align-items:center;gap:8px;white-space:nowrap}.redeem-steps b{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:11px;background:var(--surface-2);font-weight:700}.redeem-steps i{flex:1;height:1px;background:var(--line)}.redeem-steps .current{color:var(--ink)}.redeem-steps .current b{background:var(--ink);color:var(--bg)}.redeem-steps .complete b{background:var(--ok);color:var(--surface)}.redeem-steps .complete .icon{width:12px;height:12px}
.field {display:block;margin-top:16px}.field>span{display:block;font-size:13px;margin-bottom:8px}.key-input {display:flex;align-items:center;gap:8px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:0 12px;margin-top:20px;color:var(--muted)}.key-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)}.key-input input{height:48px;width:100%;min-width:0;background:none;border:0;outline:none;font-size:15px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.05em;text-transform:uppercase;color:var(--ink)}input::placeholder,textarea::placeholder {color:var(--muted);opacity:1}.key-input input::placeholder{letter-spacing:normal;text-transform:none}.session-input,.lookup-input {display:block;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px;width:100%;resize:vertical;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;margin-top:16px;min-height:144px}.session-input{height:160px}.session-input:focus,.lookup-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:13px;font-weight:600;white-space:nowrap}.button:hover:not(:disabled){background:var(--surface-2)}.button:active:not(:disabled){transform:scale(.98)}.button-primary{background:var(--ink);border-color:var(--ink);color:var(--bg);box-shadow:0 6px 16px -8px color-mix(in srgb,var(--ink) 60%,transparent)}.button-primary:hover:not(:disabled){background:var(--ink);opacity:.9}.full-width{width:100%;margin-top:16px;min-height:44px;font-size:14px}.redeem-actions{display:flex;gap:8px;margin-top:16px}.redeem-actions .button{min-height:44px}.redeem-actions .button-primary{flex:1}.redeem-error{color:var(--bad);background:color-mix(in srgb,var(--bad) 7%,var(--surface));border-radius:10px;padding:10px 12px;font-size:13px;margin-top:12px;overflow-wrap:anywhere}.redeem-error:empty{display:none}.heading-row {display:flex;justify-content:space-between;align-items:center;gap:12px}.plan-badge,.status-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;color:var(--ok);background:color-mix(in srgb,var(--ok) 10%,transparent);padding:3px 8px;border-radius:999px}.status-badge[data-tone=review]{color:var(--warn);background:color-mix(in srgb,var(--warn) 10%,transparent)}.status-badge[data-tone=danger]{color:var(--bad);background:color-mix(in srgb,var(--bad) 10%,transparent)}.session-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.session-feedback{min-height:20px;margin-top:8px;font-size:12.5px;color:var(--muted)}.session-feedback.valid{color:var(--ok)}.session-feedback.invalid{color:var(--bad)}.redeem-disclosure{display:flex;align-items:flex-start;gap:8px;background:var(--surface-2);padding:12px;border-radius:12px;color:var(--muted);font-size:12.5px;line-height:1.65;margin-top:16px}.redeem-disclosure .icon{color:var(--accent);margin-top:2px}.redeem-account{margin-top:16px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.redeem-account>div{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;font-size:13px}.redeem-account>div+div{border-top:1px solid var(--line)}.redeem-account dt{color:var(--muted);flex:none}.redeem-account dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere;min-width:0}
.redeem-result{text-align:center}.result-meta {display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11.5px;overflow-wrap:anywhere;text-align:left}.result-orbit {width:176px;height:176px;margin:16px auto;position:relative;display:grid;place-items:center;color:var(--accent)}.result-orbit>svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.orbit-track{stroke:var(--line)}.orbit-motion{stroke:currentColor;transform-origin:60px 60px;animation:turn 1.4s linear infinite}.orbit-core{display:grid;place-items:center;gap:4px;position:relative;z-index:1}.orbit-core strong{font:800 30px/1 ui-monospace,monospace;color:var(--ink);font-variant-numeric:tabular-nums}.orbit-core small{font-size:11.5px;color:var(--muted)}.orbit-core em{font-size:13px;font-style:normal;color:var(--muted)}.result-orbit[data-tone=success]{color:var(--ok)}.result-orbit[data-tone=danger]{color:var(--bad)}.result-orbit[data-tone=review]{color:var(--warn)}.result-symbol{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:currentColor}.result-symbol .icon{width:40px;height:40px;color:var(--surface);stroke-width:2.5}.result-statusline{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:16px;color:var(--muted);font-size:12px}.redeem-spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:turn 1s linear infinite}.result-controls{justify-content:center;flex-wrap:wrap}.result-controls .button{flex:none;min-height:36px;font-size:12px}.redeem-order-id{color:var(--muted);font-size:11.5px;overflow-wrap:anywhere;margin-top:16px}.lookup-toolbar,.lookup-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.lookup-counter{font-size:12px;color:var(--muted)}.lookup-filters{display:flex;gap:2px;flex-wrap:wrap;background:var(--surface-2);border-radius:999px;padding:3px}.lookup-filters button{border:0;border-radius:999px;background:none;font-size:12px;padding:5px 9px;color:var(--muted)}.lookup-filters [aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.lookup-list{margin-top:16px;display:grid;gap:8px}.lookup-item{border:1px solid var(--line);border-radius:12px;padding:12px}.lookup-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.lookup-item code{font-size:12.5px;word-break:break-all}.lookup-item p{font-size:12px;color:var(--muted);margin-top:8px}.lookup-item .button{margin-top:10px;min-height:32px;font-size:12px}.lookup-empty{padding:24px 0;text-align:center;color:var(--muted);font-size:13px}.redeem-environment{max-width:480px;margin:16px auto 0;padding:8px 12px;background:color-mix(in srgb,var(--warn) 10%,var(--surface));color:var(--warn);border-radius:10px;font-size:12px;text-align:center}.redeem-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-size:13px;box-shadow:var(--shadow);max-width:90vw;z-index:10}.skip-link{position:fixed;top:8px;left:8px;transform:translateY(-200%);z-index:20;background:var(--surface);padding:8px}.skip-link:focus{transform:none}.no-script{text-align:center;margin:40px}
@keyframes turn{to{transform:rotate(360deg)}}@keyframes enter{from{transform:translateY(8px)}to{transform:none}}@media(max-width:639px){.redeem-panel,.lookup-card{padding:20px}.redeem-header{gap:8px}.header-controls{gap:4px}.redeem-brand{gap:7px}.redeem-environment{margin-left:16px;margin-right:16px}.lookup-toolbar{flex-wrap:wrap}}@media(max-width:359px){.redeem-header{flex-wrap:wrap}.header-controls{margin-left:auto}.redeem-tabs button{padding:4px 9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.lookup-item{padding:0}.lookup-item-head{padding:10px 12px;align-items:center;cursor:pointer;list-style:none}.lookup-item-head::-webkit-details-marker{display:none}.lookup-item-head code{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lookup-item-head>.icon:last-child{width:14px;height:14px;color:var(--muted);transition:transform .15s}.lookup-item[open] .lookup-item-head>.icon:last-child{transform:rotate(180deg)}.lookup-item-body{border-top:1px solid var(--line);padding:4px 12px 12px}
.lookup-list{grid-template-columns:minmax(0,1fr);min-width:0}.lookup-card,.lookup-item{min-width:0}.lookup-item-head{min-width:0}.lookup-item-head .status-badge{flex-shrink:0}
