:root{--canvas:#f4f7fb;--text:#475569;--text-muted:#7b8798;--text-strong:#101827;--accent:#0f766e;--border:#dbe3ed;--border-soft:#edf1f6;--shadow-subtle:0 12px 36px #0f172a0f;--sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--mono:"SFMono-Regular", Consolas, "Liberation Mono", "Menlo", ui-monospace, monospace;font-family:var(--sans);color:var(--text);background:var(--canvas);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:15px;line-height:1.45}html{background:var(--canvas)}body{min-width:320px;min-height:100svh;margin:0}button,input,textarea,select{letter-spacing:0}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:2px solid #14b8a68c}#root{min-height:100svh}:root{color:#111827;background:#eef8f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(#0b1220 0 164px,#0000 164px),radial-gradient(circle at 12% 0,#54f5e52e,#0000 30%),#f3f8f9;min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background-color .16s,border-color .16s,color .16s,transform .16s}button:hover{transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.62;transform:none}.boot-screen,.auth-shell{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-panel{background:#fffffff2;border:1px solid #94a3b847;border-radius:8px;width:100%;max-width:440px;padding:28px;box-shadow:0 24px 80px #0f172a29}.brand{align-items:center;gap:12px;display:flex}.brand-mark{color:#07131f;background:linear-gradient(135deg,#75f3ed,#f3ff7a);border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;font-weight:900;display:flex}.brand strong{font-size:18px;display:block}.brand span,.topbar p,.metric-card span,.info-row span,.product-card span,.agent-row span,.ledger-row span,td span{color:#64748b;font-size:13px}.auth-form,.form-grid{gap:14px;margin-top:22px;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.single{grid-template-columns:1fr;max-width:440px}label{color:#334155;gap:8px;font-size:13px;display:grid}.checkbox-line{align-items:center;gap:8px;display:flex}.checkbox-line input{width:16px;height:16px;min-height:0}input,select,textarea{color:#111827;background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;outline:none;width:100%;min-height:42px;padding:10px 12px}textarea{resize:vertical;min-height:130px}input:focus,select:focus,textarea:focus{border-color:#14b8a6;box-shadow:0 0 0 3px #14b8a61f}.span-2{grid-column:1/-1}.form-help{color:#64748b;margin:-2px 0 0;font-size:12px;line-height:1.6}.primary-button,.ghost-button,.icon-text-button,.portal-switch button,.side-nav button,.agent-nav button{border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 16px;display:inline-flex}.primary-button{color:#07131f;background:#36ded3;font-weight:800;box-shadow:0 10px 20px #14b8a629}.primary-button.small,.ghost-button.tiny{min-height:34px;padding:0 12px}.ghost-button,.icon-text-button{color:#111827;background:#fff;border:1px solid #dbe4ee}.ghost-button:hover,.icon-text-button:hover{color:#0f766e;border-color:#a7f3d0}.danger-button{color:#b91c1c;border-color:#fecaca}.portal-switch{background:#eef6f7;border-radius:8px;grid-template-columns:1fr 1fr;gap:6px;margin-top:24px;padding:6px;display:grid}.portal-switch button{background:0 0}.portal-switch button.active{color:#fff;background:#111827}.notice{color:#0f766e;background:#ecfeff;border:1px solid #a5f3fc;border-radius:8px;margin:16px 0;padding:12px 14px}.shell{grid-template-columns:248px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#fff;background:#0b1220;flex-direction:column;gap:22px;height:100vh;padding:22px 18px;display:flex;position:sticky;top:0}.sidebar .brand span{color:#a7b1c2}.side-nav{gap:8px;display:grid}.side-nav button{color:#a7b1c2;background:0 0;justify-content:flex-start;min-height:44px;padding:0 13px}.side-nav button.active,.side-nav button:hover{color:#fff;background:#36ded324}.sidebar-card{background:#ffffff0f;border:1px solid #ffffff14;border-radius:8px;align-items:flex-start;gap:10px;margin-top:auto;padding:14px;display:flex}.sidebar-card span{color:#a7b1c2;overflow-wrap:anywhere;margin-top:4px;font-size:12px;display:block}.workspace{min-width:0;padding:24px 28px 38px}.topbar,.agent-header{justify-content:space-between;align-items:center;max-width:1280px;margin:0 auto 20px;display:flex}.topbar h1{color:#fff;margin:0;font-size:26px}.topbar p{color:#b8c3d4;margin:6px 0 0}.topbar-actions,.agent-header-actions{gap:10px;display:flex}.metric-grid,.two-column,.panel{max-width:1280px;margin-left:auto;margin-right:auto}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px;display:grid}.metric-card,.panel,.product-card{background:#fff;border:1px solid #94a3b833;border-radius:8px;min-width:0;box-shadow:0 10px 26px #0f172a0e}.metric-card{gap:10px;min-height:118px;padding:17px 18px;display:grid}.metric-card div{color:#0f766e;background:#ecfeff;border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.metric-card strong{color:#0f172a;overflow-wrap:anywhere;font-size:26px;line-height:1.05}.two-column{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px;display:grid}.two-column.wide-left{grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr)}.admin-overview-layout{grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:18px;max-width:1280px;margin-left:auto;margin-right:auto;display:grid}.admin-overview-layout .panel{width:100%;max-width:none;margin:0}.admin-overview-side{align-content:start;gap:18px;min-width:0;display:grid}.admin-orders-panel table{min-width:560px}.panel{margin-bottom:18px;padding:20px}.narrow-panel{max-width:560px;margin-left:0}.panel-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.panel-title h2{color:#0f172a;letter-spacing:0;margin:0;font-size:18px}.panel-title>div{color:#64748b;font-size:13px;font-weight:700}.info-list,.channel-list,.product-mini-list,.ledger-list,.agent-list,.permission-list{gap:10px;display:grid}.channel-card{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;gap:10px;padding:12px;display:grid}.channel-card>div:first-child{min-width:0}.channel-card strong,.channel-card span{overflow-wrap:anywhere}.inline-edit{border-top:1px solid #edf2f7;padding-top:8px}.inline-edit summary{color:#0f766e;cursor:pointer;font-size:13px;font-weight:800}.compact-form{margin-top:10px}.info-row,.ledger-row,.agent-row,.permission-row,.toggle-line{border:1px solid #edf2f7;border-radius:8px;justify-content:space-between;align-items:center;min-width:0;padding:12px;display:flex}.info-row,.ledger-row,.permission-row,.toggle-line{background:#fbfdfe}.agent-row{text-align:left;background:#fbfdfe;width:100%}.agent-row.active{border-color:#14b8a6;box-shadow:0 0 0 3px #14b8a61a}.product-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:14px;display:grid}.product-card{grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;padding:16px;display:grid}.product-card>div:first-child{min-width:0}.product-card>div:first-child strong{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.product-card>div:first-child span{overflow-wrap:anywhere;margin-top:4px;line-height:1.5;display:block}.product-card p{color:#475569;margin:0}.product-edit-panel{border-top:1px solid #edf2f7;min-width:0;padding-top:10px}.product-edit-panel summary{color:#0f766e;cursor:pointer;font-size:13px;font-weight:800}.product-edit-form{grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;max-width:100%;margin-top:10px;display:grid}.product-edit-form label,.product-edit-form input,.product-edit-form select{min-width:0}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.chip-row span,.api-line span,.status{border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.chip-row span{color:#334155;background:#f1f5f9}.status.running,.status.submitted{color:#0369a1;background:#e0f2fe}.status.done{color:#15803d;background:#dcfce7}.status.failed{color:#b91c1c;background:#fee2e2}.status.unknown{color:#475569;background:#f1f5f9}.status.voided{color:#4b5563;background:#f3f4f6}.ghost-button.danger{color:#b91c1c;border-color:#fecaca}.key-box,.code-block{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;margin-bottom:14px;padding:12px}.key-box span{color:#64748b;margin-bottom:6px;font-size:12px;display:block}code,.key-box code{color:#0f766e;overflow-wrap:anywhere}.permission-row{gap:12px}.permission-row label{flex:1;align-items:center;gap:8px;display:flex}.permission-row input[type=checkbox],.toggle-line input{width:auto;min-height:16px}.permission-row input[type=number]{max-width:130px}.balance-form{grid-template-columns:110px 1fr 1fr auto;gap:10px;margin-top:16px;display:grid}.pricing-form{grid-template-columns:minmax(0,1fr) 110px auto;gap:10px;display:grid}.upload-field-form,.upload-field-editor,.upload-field-list{gap:10px;display:grid}.upload-field-form{border-top:1px solid #edf2f7;margin-top:4px;padding-top:12px}.upload-field-header{justify-content:space-between;align-items:center;display:flex}.upload-field-row{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) 118px 72px 42px;align-items:end;gap:10px;padding:10px;display:grid}.upload-field-editor.compact .upload-field-row{grid-template-columns:minmax(110px,1fr) minmax(110px,1fr) 108px 70px 40px}.field-required{align-items:center;gap:8px;min-height:42px;display:flex}.field-required input{width:auto;min-height:16px}.option-group{flex-wrap:wrap;gap:10px;display:flex}.option-group label{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;align-items:center;gap:8px;padding:9px 10px;display:flex}.option-group input{width:auto;min-height:16px}.qr-upload-control{gap:8px;display:grid}.qr-upload-control input[type=file]{background:#fff}.qr-upload-control span{color:#64748b;font-size:12px}.link-qr-control{gap:8px;display:grid}.code-list{gap:10px;margin-top:16px;display:grid}.code-row{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px;display:grid}.code-row strong{color:#0f172a;letter-spacing:0;font-size:16px;display:block}.code-row span{color:#64748b;margin-top:3px;font-size:12px;display:block}.code-row-meta{place-items:end;gap:5px;min-width:120px;display:grid}.code-row-meta small{color:#64748b;white-space:nowrap;font-size:12px}.code-row .status{margin-top:0;display:inline-flex}.code-row-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.redeem-shell{color:#34170f;background:radial-gradient(circle at 50% 0,#ffcb7861,#0000 340px),#fff7ee;min-height:100vh;padding:0}.redeem-theme-festival-orange{background:radial-gradient(circle at 50% 0,#ffcb7861,#0000 340px),#fff7ee}.redeem-theme-premium-gold{background:radial-gradient(circle at 50% 0,#edb54647,#0000 340px),#fff8e9}.redeem-theme-fresh-member{background:radial-gradient(circle at 50% 0,#56cc8f38,#0000 340px),#f3fff7}.redeem-theme-brand-color{background:radial-gradient(circle at 50% 0,#9b5eff33,#0000 340px),#f8f5ff}.redeem-page{max-width:480px;min-height:100vh;margin-left:auto;margin-right:auto;overflow:hidden}.redeem-hero-stage{color:#fff;text-align:center;background-color:#ff5b12;background-position:top;background-size:cover;min-height:330px;padding:72px 24px;position:relative}.redeem-hero-stage:after{content:"";background:linear-gradient(#0000 0,#fff7ee0a 62%,#fff7ee 100%);height:105px;position:absolute;bottom:0;left:0;right:0}.redeem-hero-content{z-index:1;position:relative}.redeem-brand-line{color:#ffffffe6;justify-content:space-between;align-items:center;gap:10px;max-width:260px;margin:0 auto 22px;font-size:13px;font-weight:900;display:flex}.redeem-brand-line span{background:#ffffffc7;width:34px;height:1px}.redeem-hero-stage h1{text-shadow:0 6px 14px #a7240042;margin:0;font-size:42px;font-weight:950;line-height:1.12}.redeem-hero-stage h1.short{white-space:nowrap}.redeem-hero-stage h1.medium{text-wrap:balance;font-size:36px}.redeem-hero-stage h1.long{text-wrap:balance;font-size:30px}.redeem-hero-stage p{color:#fffffff5;margin:14px 0 0;font-size:17px;font-weight:900;line-height:1.5}.redeem-body{z-index:2;margin-top:-58px;padding:0 18px 28px;position:relative}.redeem-card,.redeem-feed{background:#fffffffa;border:1px solid #ffe2c9;border-radius:24px;padding:22px;box-shadow:0 20px 44px #d64c091f}.redeem-action-card{min-height:244px}.redeem-step-head{align-items:center;gap:11px;margin-bottom:17px;display:flex}.redeem-step-number{color:#fff;background:linear-gradient(135deg,#ff9b17,#ff3c16);border-radius:50%;flex:none;justify-content:center;align-items:center;width:30px;height:30px;font-size:15px;font-weight:950;display:flex}.redeem-step-head strong{color:#34170f;font-size:19px;display:block}.redeem-step-head small{color:#9b786f;margin-top:2px;font-size:12px;display:block}.redeem-secure{color:#eb5b1d;background:#fff4e9;border:1px solid #ffd6b8;border-radius:999px;align-items:center;gap:4px;margin-left:auto;padding:7px 10px;font-size:12px;font-weight:900;display:inline-flex}.redeem-announcement{color:#b64b1d;background:#fff6ed;border:1px solid #ffd9bd;border-radius:12px;margin:0 0 15px;padding:12px;font-size:13px;line-height:1.65}.redeem-notice{color:#c2410c;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;margin:0 0 14px;padding:12px;font-size:13px}.redeem-notice.success{color:#15803d;background:#ecfdf5;border-color:#bbf7d0}.redeem-form{gap:14px;display:grid}.redeem-code-field{color:#ff4a17;background:#fffaf6;border:1px solid #ffd5b8;border-radius:16px;align-items:center;gap:12px;min-height:62px;padding:0 16px;display:flex}.redeem-code-field input{color:#34170f;background:0 0;border:0;outline:0;min-height:0;padding:0;font-size:18px;font-weight:800}.redeem-code-field input::placeholder{color:#a4938d}.redeem-primary-button{color:#fff;cursor:pointer;background:linear-gradient(90deg,#ff9c17 0,#ff4b17 56%,#f2112d 100%);border:0;border-radius:999px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:58px;padding:14px 18px;font-size:20px;font-weight:950;text-decoration:none;display:flex;box-shadow:0 12px 24px #ef3d163d,inset 0 2px #ffffff61}.redeem-primary-button:disabled{cursor:not-allowed;filter:grayscale(.25);opacity:.72}.guide-launch-stack{gap:8px;width:100%;display:grid}.wechat-open-tag{width:100%;display:block}.guide-launch-notice{color:#9b786f;font-size:12px;line-height:1.6;display:block}.redeem-code-summary{color:#ef5b1d;background:#fff4e9;border:1px solid #ffd5b8;border-radius:14px;align-items:center;gap:9px;padding:12px;display:flex}.redeem-code-summary span{color:#34170f;flex:1;font-weight:900}.redeem-code-summary button{color:#ef5b1d;cursor:pointer;background:#fff;border:1px solid #ffd5b8;border-radius:999px;padding:6px 12px;font-weight:900}.redeem-order-status{gap:14px;display:grid}.redeem-status-head{background:#fffaf6;border:1px solid #ffd8bd;border-radius:16px;justify-content:space-between;align-items:center;padding:14px;display:flex}.redeem-status-head span:first-child{color:#9b786f;font-size:12px;font-weight:800;display:block}.redeem-status-head strong{color:#34170f;margin-top:4px;font-size:22px;display:block}.redeem-progress{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.redeem-progress-step{text-align:center;background:#fffaf6;border:1px solid #ffdfc8;border-radius:16px;justify-items:center;gap:6px;min-height:118px;padding:13px 8px;display:grid}.redeem-progress-step>span{color:#ef5b1d;background:#ffe9d9;border-radius:999px;justify-content:center;align-items:center;width:28px;height:28px;font-size:13px;font-weight:950;display:flex}.redeem-progress-step strong{color:#5e2b20;font-size:15px}.redeem-progress-step small{color:#9b786f;font-size:11px;line-height:1.5}.redeem-progress-step.complete,.redeem-progress-step.current{border-color:#ff9c17;box-shadow:0 10px 20px #ff70181c}.redeem-progress-step.complete>span,.redeem-progress-step.current>span{color:#fff;background:linear-gradient(135deg,#ff9c17,#ff4016)}.redeem-progress.failed .redeem-progress-step.current{border-color:#fecaca}.redeem-progress.failed .redeem-progress-step.current>span{background:#ef4444}.redeem-order-meta{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.redeem-status-tip{color:#9b786f;text-align:center;margin:0;font-size:12px;line-height:1.65}.redeem-status-tip.failed{color:#b91c1c}.redeem-dynamic-field{color:#5e4038;gap:8px;font-size:14px;font-weight:800;display:grid}.redeem-dynamic-field>span b{color:#ff4016;margin-left:3px}.redeem-dynamic-field input,.redeem-dynamic-field textarea,.redeem-dynamic-field select,.redeem-dynamic-field .link-qr-control input,.redeem-dynamic-field .qr-upload-control input[type=file]{background:#fffaf6;border-color:#ffd8bd}.redeem-form-tip{color:#9b786f;text-align:center;margin:13px 4px 0;font-size:12px;line-height:1.65}.redeem-guide-card{margin-top:16px}.redeem-section-title{color:#34170f;align-items:center;gap:9px;font-size:19px;display:flex}.redeem-section-title svg{color:#f56b1d}.redeem-guide-steps{grid-template-columns:1fr 24px 1fr 24px 1fr;align-items:start;gap:8px;margin-top:20px;display:grid}.redeem-guide-step{text-align:center;min-width:0;position:relative}.redeem-guide-step>span{color:#fff;z-index:1;background:linear-gradient(135deg,#ff9b17,#ff4016);border-radius:50%;justify-content:center;align-items:center;width:25px;height:25px;font-size:13px;font-weight:950;display:flex;position:absolute;top:-10px;left:calc(50% + 19px)}.redeem-guide-step div{color:#f46b1d;background:#fff6ed;border:1px solid #ffd9bd;border-radius:16px;justify-content:center;align-items:center;width:68px;height:68px;margin:0 auto;display:flex}.redeem-guide-step strong{color:#4a2219;margin-top:9px;font-size:13px;display:block}.redeem-guide-arrow{color:#f2a56d;align-self:center;margin-top:20px}.redeem-guide-tip{color:#7d554a;background:#fff6ed;border-radius:14px;align-items:center;gap:10px;margin-top:19px;padding:13px;font-size:13px;line-height:1.6;display:flex}.redeem-guide-tip svg{color:#f46b1d;flex:none}.redeem-feed{margin-top:16px;overflow:hidden}.redeem-feed strong{color:#4a2219;margin-bottom:12px;display:block}.feed-marquee{white-space:nowrap;gap:28px;width:max-content;animation:24s linear infinite feed-scroll;display:flex}.feed-marquee span{color:#9b786f;font-size:13px}.redeem-done-dialog{text-align:center;max-width:520px;padding:24px}.redeem-success-mark{color:#ff531b;background:#fff1e5;border-radius:50%;justify-content:center;align-items:center;width:74px;height:74px;margin:0 auto 12px;display:flex}.redeem-done-dialog>span{color:#9b786f;font-size:13px;display:block}.redeem-done-dialog>strong{color:#34170f;margin-top:5px;font-size:22px;display:block}.redeem-done-dialog p{color:#6b514b;overflow-wrap:anywhere;text-wrap:pretty;margin:14px 0 18px;line-height:1.7}.redemption-hero-settings{border:1px solid #dbe4ee;border-radius:8px;gap:14px;margin:0;padding:14px;display:grid}.redemption-hero-settings legend{color:#0f172a;padding:0 6px;font-weight:900}.redeem-theme-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.redeem-theme-picker label{cursor:pointer;border:2px solid #0000;border-radius:10px;gap:8px;padding:6px;transition:border-color .18s,transform .18s;display:grid}.redeem-theme-picker label.selected{border-color:#ff5a1d}.redeem-theme-picker input{opacity:0;width:0;height:0;min-height:0;position:absolute}.redeem-theme-picker img{aspect-ratio:16/10;object-fit:cover;border-radius:8px;width:100%}.redeem-theme-picker span{line-height:1.35;display:block}.redeem-theme-picker strong,.redeem-theme-picker small{display:block}.redeem-theme-picker small{color:#64748b;margin-top:2px;font-size:12px}.redemption-hero-upload{grid-template-columns:minmax(220px,1fr) minmax(240px,1fr);gap:14px;display:grid}.redemption-hero-preview{aspect-ratio:16/9;color:#fff;text-align:center;background-position:50%;background-size:cover;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;padding:16px;display:flex;position:relative;overflow:hidden}.redemption-hero-preview:after{content:"";background:linear-gradient(#0000000a,#0000001f);position:absolute;inset:0}.redemption-hero-preview strong,.redemption-hero-preview span{text-shadow:0 4px 12px #6a1c0052;z-index:1;position:relative}.redemption-hero-preview strong{font-size:22px;font-weight:950}.redemption-hero-preview span{margin-top:6px;font-size:13px;font-weight:800}.redemption-hero-upload>div:last-child{flex-wrap:wrap;align-content:start;gap:9px;display:flex}.redemption-hero-upload p,.image-upload-notice{color:#64748b;flex-basis:100%;margin:2px 0 0;font-size:12px;line-height:1.55}.image-upload-button{cursor:pointer}.image-upload-button input{display:none}@keyframes feed-scroll{0%{transform:translate(0)}to{transform:translate(-50%)}}@media (prefers-reduced-motion:reduce){.feed-marquee{animation:none}}.form-note{color:#0f766e;background:#f0fdfa;border:1px solid #99f6e4;border-radius:8px;padding:12px}.form-note.compact{margin-bottom:12px;padding:10px 12px;font-size:12px;line-height:1.55}.form-section-title{color:var(--text);padding-top:6px;font-size:13px;font-weight:800}.table-wrap{background:#fff;border:1px solid #edf2f7;border-radius:8px;width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #edf2f7;padding:11px 12px}th{color:#475569;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:900}tbody tr:hover{background:#fbfdfe}tbody tr:last-child td{border-bottom:0}td strong,td span{text-overflow:ellipsis;white-space:nowrap;max-width:360px;display:block;overflow:hidden}.table-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.order-time-cell{gap:4px;min-width:145px;display:grid}.order-time-cell span{color:#64748b;white-space:nowrap;font-size:12px}.dialog-backdrop{z-index:50;background:#0f172a7a;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.dialog-panel{background:#fff;border:1px solid #dbe4ee;border-radius:8px;width:min(980px,100%);max-height:calc(100vh - 36px);overflow:auto;box-shadow:0 24px 80px #0f172a3d}.order-detail-panel{padding:18px}.dialog-title{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;display:flex}.dialog-title span,.json-title,.detail-item span{color:#64748b;font-size:12px;display:block}.dialog-title strong{color:#111827;margin-top:3px;font-size:18px;display:block}.order-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px;display:grid}.detail-item{background:#f8fafc;border:1px solid #edf2f7;border-radius:8px;min-width:0;padding:10px}.detail-item strong{color:#111827;overflow-wrap:anywhere;margin-top:4px;font-size:13px;display:block}.json-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.json-block{color:#d1fae5;white-space:pre-wrap;word-break:break-word;background:#0f172a;border-radius:8px;max-height:360px;margin:6px 0 0;padding:12px;font-size:12px;line-height:1.6;overflow:auto}.positive{color:#15803d}.negative{color:#b91c1c}.empty-text{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;padding:18px}.agent-shell{grid-template:"nav header""nav main"1fr/224px minmax(0,1280px);justify-content:center;gap:18px 24px;min-height:100vh;padding:20px 24px 34px;display:grid}.agent-header,.agent-main{width:100%;min-width:0;max-width:1280px}.agent-header{color:#fff;grid-area:header;margin-bottom:0}.agent-header .brand span{color:#b8c3d4}.agent-main{grid-area:main;margin:0 auto}.agent-hero{color:#fff;background:linear-gradient(135deg,#14b8a63d,#0f172a0d),#10202d;border:1px solid #5eead429;border-radius:8px;justify-content:space-between;align-items:center;min-height:116px;margin-bottom:18px;padding:20px 22px;display:flex;box-shadow:0 18px 40px #0f172a24}.agent-hero span,.agent-hero p{color:#b8c3d4}.agent-hero strong{margin:5px 0;font-size:32px;line-height:1;display:block}.agent-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.agent-main>.metric-grid,.agent-main>.panel,.agent-main>.agent-home-layout,.agent-main>.agent-redemption-layout,.agent-main>.agent-center-layout,.agent-main>.notice{max-width:none;margin-left:0;margin-right:0}.agent-home-layout{grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"status side""orders side";align-items:start;gap:18px;display:grid}.agent-status-panel{grid-area:status}.agent-orders-panel{grid-area:orders}.agent-home-side{grid-area:side;align-content:start;gap:18px;min-width:0;display:grid}.agent-home-layout .panel{width:100%;max-width:none;margin:0}.agent-status-grid,.agent-action-list{gap:10px;display:grid}.agent-status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.agent-status-panel .info-row{flex-direction:column;align-items:flex-start;gap:8px;min-height:78px}.agent-status-panel .info-row strong{color:#0f172a;overflow-wrap:anywhere;font-size:20px;line-height:1.25}.agent-action-list span{color:#475569;background:#f8fafc;border:1px solid #edf2f7;border-radius:8px;padding:12px;line-height:1.55}.product-mini-list>div{background:#f8fafc;border:1px solid #edf2f7;border-radius:8px;min-width:0;padding:11px 12px}.product-mini-list strong{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.product-mini-list span{margin-top:4px;display:block}.agent-orders-panel table{min-width:640px}.agent-orders-panel td strong,.agent-orders-panel td span{max-width:240px}.agent-redemption-layout{grid-template-columns:minmax(340px,.9fr) minmax(0,1.1fr);align-items:start;gap:16px;display:grid}.agent-redemption-layout .panel:last-child{grid-column:1/-1}.agent-redemption-layout.codes-only .panel:last-child{grid-column:auto}.redemption-entry-grid{grid-template-columns:1fr;gap:10px;margin-bottom:14px;display:grid}.redemption-entry-grid .key-box{gap:8px;margin-bottom:0;display:grid}.code-bulk-actions{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}.code-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}.batch-strip{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-bottom:14px;display:grid}.batch-strip button,.agent-center-tabs button{color:#334155;background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px}.batch-strip button{text-align:left;justify-items:start;gap:4px;min-height:58px;padding:10px 12px;display:grid}.batch-strip button.selected,.agent-center-tabs button.active{color:#0f766e;background:#ecfeff;border-color:#5eead4}.batch-strip span{color:#64748b;font-size:12px}.code-filter-grid{grid-template-columns:minmax(210px,1.35fr) repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px;display:grid}.code-search-control{color:#64748b;background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;align-items:center;gap:8px;min-height:42px;padding:0 10px;display:flex}.code-search-control:focus-within{border-color:#14b8a6;box-shadow:0 0 0 3px #14b8a61f}.code-search-control input{box-shadow:none;background:0 0;border:0;min-height:0;padding:0}.code-search-control input:focus{box-shadow:none}.code-search-control button{color:#0f766e;background:#fff;border:1px solid #dbe4ee;border-radius:999px;flex:none;min-height:28px;padding:0 10px;font-size:12px}.agent-center-layout{grid-template-columns:260px minmax(0,1fr);align-items:start;gap:16px;display:grid}.agent-center-menu{position:sticky;top:18px}.agent-center-tabs{gap:8px;display:grid}.agent-center-tabs button{justify-content:flex-start;align-items:center;gap:8px;min-height:44px;padding:0 12px;display:flex}.agent-center-content{min-width:0}.agent-center-content>.panel{max-width:none;margin-left:0;margin-right:0}.agent-nav{background:#111827;border-radius:8px;grid-area:nav;grid-auto-rows:minmax(46px,max-content);align-content:start;gap:8px;height:calc(100vh - 36px);padding:14px;display:grid;position:sticky;top:18px;box-shadow:0 14px 44px #0f172a38}.agent-nav button{color:#94a3b8;background:0 0;justify-content:flex-start;align-items:center;width:100%;min-height:46px;padding:0 12px}.agent-nav button.active,.agent-nav button:hover{color:#55eee4;background:#36ded31f}.agent-nav span{font-size:13px;font-weight:800}.api-doc-grid{gap:10px;margin-bottom:14px;display:grid}.api-line{align-items:center;gap:10px;display:flex}.api-line span{color:#15803d;text-align:center;background:#dcfce7;min-width:54px}.api-line code{background:#ecfeff;border:1px solid #a5f3fc;border-radius:8px;padding:7px 10px}.code-block{color:#0f172a;white-space:pre-wrap;overflow-x:auto}.log-table{min-width:980px}.log-detail summary{color:#0f766e;cursor:pointer;font-weight:800}.log-detail pre{color:#d7fbff;white-space:pre-wrap;background:#0f172a;border-radius:8px;max-width:520px;max-height:260px;padding:10px;overflow:auto}.upstream-result{max-height:320px;overflow:auto}@media (width<=980px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.side-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column,.two-column.wide-left,.admin-overview-layout,.product-grid,.agent-redemption-layout,.agent-center-layout{grid-template-columns:1fr}.agent-redemption-layout .panel:last-child{grid-column:auto}.agent-shell{grid-template-columns:190px minmax(0,1fr);justify-content:stretch;gap:16px 18px;padding:16px}.agent-header,.agent-main{max-width:none}.agent-nav{height:calc(100vh - 32px);top:16px}.agent-nav button{min-height:44px;padding:0 10px}.agent-home-layout{grid-template-columns:1fr;grid-template-areas:"status""side""orders"}.agent-home-side{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-center-menu{position:static}.agent-center-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){body{background:linear-gradient(#0b1220 0 170px,#0000 170px),#eaf7f8}.workspace{padding:12px}.agent-shell{padding:12px 12px calc(132px + env(safe-area-inset-bottom));display:block}.agent-main{scroll-padding-bottom:calc(118px + env(safe-area-inset-bottom));padding-bottom:36px}.agent-center-content>.panel:last-child,.agent-redemption-layout>.panel:last-child{margin-bottom:36px}.topbar,.agent-header,.agent-hero{flex-direction:column;align-items:stretch;gap:12px}.topbar-actions,.agent-header-actions{grid-template-columns:1fr 1fr;display:grid}.topbar h1{font-size:22px}.form-grid,.balance-form,.pricing-form,.product-edit-form,.upload-field-row,.upload-field-editor.compact .upload-field-row,.metric-grid,.code-filter-grid,.order-detail-grid,.json-grid,.redeem-progress,.redeem-theme-picker,.redemption-hero-upload{grid-template-columns:1fr}.agent-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-home-side,.agent-status-grid{grid-template-columns:1fr}.code-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-metrics .metric-card{gap:7px;min-height:132px;padding:14px}.agent-metrics .metric-card strong{font-size:26px}.code-row{grid-template-columns:1fr;align-items:stretch}.code-row-meta{place-items:start}.code-row-actions{justify-content:flex-start}.code-bulk-actions .ghost-button{flex:100px}.side-nav{grid-template-columns:1fr 1fr}.agent-nav{bottom:calc(8px + env(safe-area-inset-bottom));z-index:1000;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:4px;width:calc(100dvw - 24px);height:auto;min-height:64px;padding:7px;display:grid;position:fixed;top:auto;left:12px;right:auto}@supports (height:100dvh){.agent-nav{bottom:auto;top:calc(100dvh - 72px - env(safe-area-inset-bottom))}}.agent-nav button{grid-template-rows:22px 14px;align-content:center;place-items:center;gap:4px;min-height:50px;padding:4px 2px;display:grid}.agent-nav svg{width:20px;height:20px}.agent-nav span{text-align:center;white-space:nowrap;font-size:11px;line-height:1.1;display:block}.agent-hero strong{font-size:36px}.agent-hero .primary-button{width:100%}.panel{padding:14px}.redeem-shell{background:#fff7ee}.redeem-page{max-width:none}.redeem-hero-stage{min-height:300px;padding:62px 20px 68px}.redeem-hero-stage h1{font-size:34px}.redeem-hero-stage h1.medium{font-size:30px}.redeem-hero-stage h1.long{font-size:26px}.redeem-body{padding-left:14px;padding-right:14px}.redeem-card,.redeem-feed{border-radius:22px;padding:18px}.redeem-secure{display:none}.redeem-guide-steps{grid-template-columns:1fr 16px 1fr 16px 1fr;gap:5px}.redeem-guide-step div{border-radius:14px;width:58px;height:58px}.redeem-guide-step strong{font-size:12px}.redeem-guide-arrow{margin-top:17px}.redeem-primary-button{font-size:18px}.redeem-theme-picker{grid-template-columns:1fr 1fr}}
