:root{--bg:#f6f8fb;--ink:#121824;--muted:#637083;--line:rgba(30,41,59,0.12);--panel:rgba(255,255,255,0.88);--primary:#2563eb;--primary-dark:#1e40af;--mint:#0f9f8f;--rose:#e54866;--amber:#b97911;--shadow:0 24px 80px rgba(30,41,59,0.14)}*{box-sizing:border-box}body,html{margin:0;min-height:100%;color:var(--ink);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}body{min-height:100vh}button,input,select,textarea{font:inherit}a,button{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}.spin{animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.redeem-page{min-height:100vh;padding:40px 20px;background:linear-gradient(115deg,rgba(37,99,235,.12),transparent 42%),radial-gradient(circle at 82% 18%,rgba(15,159,143,.18),transparent 28%),#f6f8fb}.redeem-shell{width:min(1080px,100%);margin:0 auto}.redeem-hero{display:grid;gap:18px;padding:54px 0 32px}.brand-mark{display:inline-flex;align-items:center;gap:8px;width:fit-content;color:var(--primary-dark);font-weight:800;letter-spacing:0}.redeem-hero h1{margin:0;font-size:clamp(44px,8vw,86px);line-height:.96;letter-spacing:0}.redeem-hero p{width:min(620px,100%);margin:0;color:var(--muted);font-size:18px;line-height:1.7}.trust-row{display:flex;flex-wrap:wrap;gap:10px}.status-pill,.trust-row span{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.72);color:#243043;padding:9px 13px;font-size:13px;font-weight:700}.data-panel,.delivery-section,.login-panel,.redeem-panel{background:var(--panel);border:1px solid rgba(255,255,255,.86);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.redeem-panel{padding:22px;border-radius:8px}.input-label{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#334155;font-weight:800}.input-label span{margin-left:auto;color:var(--muted);font-size:12px;font-weight:800}.redeem-input-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:stretch}.admin-form input,.admin-form select,.edit-dialog input,.edit-dialog select,.login-panel input,.redeem-input-row input,.redeem-input-row textarea,.toolbar-controls select{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:15px 16px;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.redeem-input-row input{font-size:20px}.redeem-input-row input,.redeem-input-row textarea{font-weight:800;letter-spacing:0;text-transform:uppercase}.redeem-input-row textarea{min-height:126px;resize:vertical;font-size:15px;line-height:1.55}.admin-form input:focus,.admin-form select:focus,.edit-dialog input:focus,.edit-dialog select:focus,.login-panel input:focus,.redeem-input-row input:focus,.redeem-input-row textarea:focus,.toolbar-controls select:focus{border-color:rgba(37,99,235,.62);box-shadow:0 0 0 4px rgba(37,99,235,.12)}.admin-form button,.export-actions button,.header-actions button,.import-form button,.inline-actions a,.inline-actions button,.login-panel button,.oauth-actions button,.redeem-input-row button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:var(--primary);color:#fff;padding:14px 18px;font-weight:800;text-decoration:none;white-space:nowrap}.notice{margin-top:14px;border-radius:8px;padding:12px 14px;font-weight:800}.notice.success{background:rgba(15,159,143,.12);color:#087466}.notice.error{background:rgba(229,72,102,.12);color:#b42342}.delivery-section{margin-top:18px;border-radius:8px;padding:22px}.redeem-results-panel{margin-bottom:18px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px}.redeem-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.redeem-results-head strong{color:#111827;font-size:15px}.redeem-results-head span{color:var(--muted);font-size:12px;font-weight:900}.redeem-result-list{display:grid;gap:8px;max-height:220px;overflow:auto}.redeem-result-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border-radius:8px;padding:10px 12px;font-size:12px}.redeem-result-item span{min-width:0;overflow:hidden;color:#263244;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;text-overflow:ellipsis;white-space:nowrap}.redeem-result-item strong{font-size:12px;white-space:nowrap}.redeem-result-item.success{background:rgba(15,159,143,.1)}.redeem-result-item.success strong{color:#087466}.redeem-result-item.error{background:rgba(229,72,102,.1)}.redeem-result-item.error strong{color:#b42342}.section-title{display:flex;justify-content:space-between;gap:16px;align-items:center}.section-title span{color:var(--muted);font-size:13px;font-weight:800}.section-title strong{display:block;margin-top:4px;font-size:26px}.export-actions,.header-actions,.inline-actions,.oauth-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-user-chip{min-width:148px;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 11px;box-shadow:0 10px 28px rgba(30,41,59,.07)}.admin-user-chip span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#eff6ff;color:#1d4ed8}.admin-user-chip em,.admin-user-chip strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-user-chip strong{color:#111827;font-size:13px;line-height:1.15}.admin-user-chip em{margin-top:2px;color:#64748b;font-size:11px;font-style:normal;font-weight:800}.export-actions button,.header-actions button,.inline-actions a,.inline-actions button,.oauth-actions button{background:#eff6ff;color:#1d4ed8;border:1px solid rgba(37,99,235,.14);padding:11px 13px;font-size:13px}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin-top:18px}.account-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:16px}.account-card-top{display:flex;justify-content:space-between;align-items:center}.account-card-top span{color:var(--mint);font-size:13px;font-weight:900}.account-card-top div{display:flex;gap:6px}.account-card-top button,.icon-action{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#334155}.account-card h3{margin:12px 0;font-size:18px;word-break:break-word}.quota-box{display:flex;align-items:center;gap:9px;border:1px solid rgba(15,159,143,.22);border-radius:8px;background:rgba(15,159,143,.08);color:#087466;padding:10px;margin-bottom:12px}.quota-box.warning{border-color:rgba(185,121,17,.28);background:rgba(185,121,17,.1);color:#9a5b00}.quota-box span,.quota-box strong{display:block}.quota-box strong{font-size:13px}.quota-box span{margin-top:2px;font-size:12px;opacity:.78}.account-card dl{display:grid;gap:10px;margin:0}.account-card dl div{display:grid;gap:2px}.account-card dt{color:var(--muted);font-size:12px}.account-card dd{margin:0;color:#1f2937;font-size:13px;font-weight:800;word-break:break-word}.admin-login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,rgba(37,99,235,.12),transparent 44%),radial-gradient(circle at 76% 22%,rgba(15,159,143,.16),transparent 30%),#f6f8fb}.login-panel{width:min(420px,100%);border-radius:8px;padding:30px}.login-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:8px;background:#2563eb;color:#fff}.login-panel h1{margin:18px 0 6px;font-size:32px}.login-footnote,.login-panel p{color:var(--muted)}.admin-form label,.login-panel label{display:grid;gap:8px;margin-top:14px;color:#334155;font-size:13px;font-weight:800}.login-panel button{width:100%;margin-top:18px}.login-footnote{display:flex;align-items:center;gap:7px;margin-top:14px;font-size:12px}.admin-page{min-height:100vh;display:grid;grid-template-columns:260px 1fr;background:#f5f7fb;overflow-x:hidden}.admin-sidebar{position:sticky;top:0;height:100vh;padding:22px;background:#fff;color:#111827;border-right:1px solid var(--line)}.admin-brand{display:flex;align-items:center;gap:10px;margin-bottom:26px;font-weight:900}.admin-brand div{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:#2563eb;color:#fff}.admin-sidebar nav{display:grid;gap:8px}.admin-sidebar button{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:8px;background:transparent;color:#64748b;padding:12px 13px;font-weight:800;text-align:left}.admin-sidebar button.active,.admin-sidebar button:hover{background:#eff6ff;color:#1d4ed8}.admin-main{min-width:0;padding:28px}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.admin-header p{margin:0 0 4px;color:var(--muted);font-size:13px;font-weight:800}.admin-header h1{margin:0;font-size:30px}.toast{position:fixed;right:24px;top:24px;z-index:10;border-radius:8px;background:#111827;color:#fff;padding:12px 16px;box-shadow:var(--shadow);font-weight:800}.panel-grid{display:grid;gap:18px;min-width:0}.panel-grid.two-col{grid-template-columns:minmax(320px,420px) 1fr;align-items:start}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px}.data-panel,.metric-card{border-radius:8px}.metric-card{border:1px solid rgba(255,255,255,.82);background:#fff;padding:18px;box-shadow:0 12px 40px rgba(30,41,59,.08)}.metric-card span{color:var(--muted);font-size:12px;font-weight:800}.metric-card strong{display:block;margin-top:12px;font-size:34px}.metric-card p{margin:4px 0 0;color:#334155;font-weight:800}.data-panel{min-width:0;padding:18px;background:#fff;box-shadow:0 12px 38px rgba(30,41,59,.08)}.inventory-panel{padding:14px}.full-height-panel,.inventory-panel{min-height:calc(100vh - 166px);display:flex;flex-direction:column}.full-height-panel .table-wrap,.inventory-panel .table-wrap{flex:1 1 auto}.account-inventory-table{table-layout:fixed;min-width:0}.account-inventory-table td:first-child,.account-inventory-table th:first-child{width:30px}.account-inventory-table td:nth-child(2),.account-inventory-table th:nth-child(2){width:220px}.account-inventory-table td:nth-child(3),.account-inventory-table td:nth-child(4),.account-inventory-table th:nth-child(3),.account-inventory-table th:nth-child(4){width:64px;white-space:nowrap}.account-inventory-table td:nth-child(5),.account-inventory-table th:nth-child(5){width:86px}.account-inventory-table td:nth-child(6),.account-inventory-table th:nth-child(6){width:155px}.account-inventory-table td:nth-child(7),.account-inventory-table th:nth-child(7){width:48px;white-space:nowrap}.account-inventory-table td:nth-child(8),.account-inventory-table th:nth-child(8){width:92px}.account-inventory-table td:nth-child(10),.account-inventory-table td:nth-child(9),.account-inventory-table th:nth-child(10),.account-inventory-table th:nth-child(9){width:78px;white-space:nowrap}.account-inventory-table td:nth-child(11),.account-inventory-table th:nth-child(11){width:88px}.account-inventory-table td:nth-child(12),.account-inventory-table th:nth-child(12){width:150px}.account-inventory-table td,.account-inventory-table th{overflow:hidden;padding:10px 6px;font-size:11px}.account-inventory-table td strong{overflow:hidden;color:#1f2937;font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.account-inventory-table td span{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.code-table{table-layout:fixed;min-width:1180px}.code-table td:first-child,.code-table th:first-child{width:42px}.code-table td:nth-child(2),.code-table th:nth-child(2){width:310px}.code-table td:nth-child(3),.code-table th:nth-child(3){width:96px}.code-table td:nth-child(4),.code-table th:nth-child(4){width:90px}.code-table td:nth-child(5),.code-table th:nth-child(5){width:72px}.code-table td:nth-child(6),.code-table th:nth-child(6){width:120px}.code-table td:nth-child(7),.code-table td:nth-child(8),.code-table td:nth-child(9),.code-table th:nth-child(7),.code-table th:nth-child(8),.code-table th:nth-child(9){width:110px}.panel-title{display:flex;align-items:center;gap:9px;margin-bottom:14px}.panel-title h2{margin:0;font-size:18px}.admin-form{display:grid;gap:4px}.admin-form button,.import-form button{margin-top:12px}.generated-box{margin-top:18px}.generated-box pre{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#0f172a;color:#dbeafe;padding:14px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}td,th{border-bottom:1px solid var(--line);padding:13px 12px;text-align:left;vertical-align:top}th{color:var(--muted);font-size:12px;font-weight:900}td{color:#243043;font-size:13px}td span,td strong{display:block}td span{margin-top:3px;color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.nowrap{white-space:nowrap}.ua{max-width:360px}.account-detail-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(37,99,235,.16);border-radius:8px;background:#eff6ff;color:#1d4ed8;padding:7px 10px;font-size:12px;font-weight:900;white-space:nowrap}.delivered-dialog{width:min(620px,calc(100vw - 32px))}.dialog-title>div{min-width:0}.dialog-title span{display:block;margin-top:4px;overflow:hidden;color:#64748b;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.delivered-account-list{display:grid;gap:9px;max-height:min(58vh,520px);overflow:auto}.delivered-account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5edf6;border-radius:8px;background:#f8fafc;padding:10px 12px}.delivered-account-row div{min-width:0}.delivered-account-row span,.delivered-account-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.delivered-account-row strong{color:#1f2937;font-size:13px}.delivered-account-row span{margin-top:4px;color:#64748b;font-size:12px}.delivered-account-row em{flex:0 0 auto;border-radius:999px;background:#e0f2fe;color:#0369a1;padding:5px 9px;font-size:12px;font-style:normal;font-weight:900}.quota-cell span,.quota-cell strong{display:block}.quota-cell strong{color:#087466}.quota-cell.warning strong{color:#9a5b00}.quota-bars{display:grid;gap:7px;min-width:0}.quota-progress{display:grid;gap:4px}.quota-progress-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.quota-progress-head span,.quota-progress-head strong{margin:0;font-size:10.5px;line-height:1.2}.quota-progress-head strong{color:#263244}.quota-progress-head span{color:#0f172a;font-weight:900}.quota-track{width:100%;height:6px;overflow:hidden;border-radius:999px;background:#e6ebf2}.quota-track i{display:block;height:100%;border-radius:inherit}.quota-progress.green .quota-track i{background:linear-gradient(90deg,#16a34a,#22c55e)}.quota-progress.yellow .quota-track i{background:linear-gradient(90deg,#d97706,#f59e0b)}.quota-progress.red .quota-track i{background:linear-gradient(90deg,#dc2626,#ef4444)}.quota-progress.neutral .quota-track i{background:#94a3b8}.quota-progress em{color:#6b7280;font-size:10px;font-style:normal;line-height:1.25}.icon-action{display:inline-grid;place-items:center;padding:0}.account-inventory-table .icon-action{width:24px;height:24px;border-radius:7px}.account-inventory-table .icon-action svg{width:13px;height:13px}.status-pill{padding:4px 7px;background:#edf2f7;min-width:46px}.category-badge,.status-pill{font-size:11px;justify-content:center;white-space:nowrap}.category-badge{display:inline-flex;max-width:100%;align-items:center;overflow:hidden;border-radius:999px;background:#eef2ff;color:#3730a3;padding:4px 8px;font-weight:900;text-overflow:ellipsis}.category-badge.muted{background:#f1f5f9;color:#64748b}.category-badge.deleted{background:rgba(229,72,102,.1);color:#b42342}.plan-cell,.source-cell{max-width:100%}.actor-cell,.plan-cell,.source-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-pill.active,.status-pill.available,.status-pill.delivery-available,.status-pill.health-available,.status-pill.success{background:rgba(15,159,143,.12);color:#087466}.status-pill.delivered,.status-pill.delivery-delivered,.status-pill.used{background:rgba(37,99,235,.12);color:#1d4ed8}.status-pill.disabled,.status-pill.error,.status-pill.failed,.status-pill.health-error{background:rgba(229,72,102,.12);color:#b42342}.status-pill.expired{background:rgba(185,121,17,.14);color:#9a5b00}.file-drop{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;border:1px dashed rgba(37,99,235,.42);border-radius:8px;background:rgba(37,99,235,.06);color:#1e40af;padding:16px;font-weight:900}.file-drop:hover{border-color:rgba(37,99,235,.72);background:rgba(37,99,235,.09)}.file-drop.dragging{border-color:rgba(15,159,143,.8);background:rgba(15,159,143,.1);color:#087466}.file-drop span{flex:1 1 220px;color:#1e3a8a;font-size:14px}.file-drop button{margin:0;background:#2563eb;color:#fff}.file-drop input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:.01;pointer-events:none}.account-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.account-toolbar .panel-title{margin-bottom:0}.toolbar-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.code-list-panel .account-toolbar{align-items:center}.code-list-panel .toolbar-controls{flex-wrap:wrap;align-items:center}.code-list-panel{min-width:0}.code-list-panel td,.code-list-panel th{white-space:nowrap}.list-pager select,.toolbar-controls select,.toolbar-search{width:auto;min-width:128px;padding:10px 12px;color:#334155;font-weight:800}.toolbar-controls a{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(37,99,235,.14);border-radius:8px;background:#eff6ff;color:#1d4ed8;padding:10px 12px;font-size:13px;font-weight:900;text-decoration:none}.toolbar-search{min-width:min(280px,100%);border:1px solid var(--line);border-radius:8px;background:#fff;outline:none}.dialog-actions button,.dialog-title button,.list-pager button,.toolbar-controls button{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(37,99,235,.14);border-radius:8px;background:#eff6ff;color:#1d4ed8;padding:10px 12px;font-size:13px;font-weight:900}.import-dialog{width:min(560px,calc(100vw - 32px))}.password-dialog{width:min(440px,calc(100vw - 32px))}.generate-dialog{width:min(620px,calc(100vw - 32px))}.compact-dialog{width:min(460px,calc(100vw - 32px))}.import-dialog .file-drop{margin:6px 0 2px}.task-progress{display:grid;gap:8px;margin:10px 0;border:1px solid #dbe7ff;border-radius:8px;background:#f8fbff;padding:10px 12px}.task-progress-head,.task-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.task-progress-head strong{color:#1f2937;font-size:13px}.task-progress-head span,.task-progress-meta span{color:#64748b;font-size:12px;font-weight:900;white-space:nowrap}.task-progress-track{height:8px;overflow:hidden;border-radius:999px;background:#e6edf8}.task-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0f9f8f);transition:width .18s ease}.task-progress-meta{justify-content:flex-start;flex-wrap:wrap}.list-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;color:#64748b;font-size:13px;font-weight:900}.list-pager.compact{margin-bottom:0}.list-pager>div{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.list-pager strong{color:#1f2937;white-space:nowrap}.list-pager select{min-width:104px;border:1px solid var(--line);border-radius:8px;background:#fff}.icon-action.danger,.toolbar-controls button.danger{border-color:rgba(229,72,102,.22);background:rgba(229,72,102,.08);color:#b42342}.selection-hint{margin:0 0 10px;border:1px solid rgba(37,99,235,.14);border-radius:8px;background:#eff6ff;color:#1d4ed8;padding:10px 12px;font-size:13px;font-weight:900}.settings-page{max-width:980px}.settings-page,.settings-panel{display:grid;gap:16px}.settings-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:14px}.settings-card-head .panel-title{margin-bottom:0}.toggle-switch{width:42px;height:24px;display:inline-flex;align-items:center;border:0;border-radius:999px;background:#cbd5e1;padding:3px;transition:background .18s ease}.toggle-switch span{width:18px;height:18px;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.22);transition:transform .18s ease}.toggle-switch.active{background:#3b82f6}.toggle-switch.active span{transform:translateX(18px)}.settings-form-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px;color:#334155;font-size:14px;font-weight:900}.settings-form-row>span{color:#334155}.settings-form-row input[type=time],.settings-form-row select{min-width:150px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#334155;padding:10px 12px;font-size:13px;font-weight:800;outline:none}.settings-form-row em{color:#94a3b8;font-size:12px;font-style:normal;font-weight:800}.radio-item{display:inline-flex;align-items:center;gap:8px;color:#475569}.radio-item input{width:15px;height:15px;accent-color:#3b82f6}.settings-meta{display:flex;flex-wrap:wrap;gap:12px 18px;color:#94a3b8;font-size:12px;font-weight:800}.settings-actions{display:flex;justify-content:flex-end}.settings-actions button{gap:7px;border:1px solid rgba(37,99,235,.16);border-radius:8px;background:#eff6ff;color:#1d4ed8;padding:10px 12px;font-size:13px;font-weight:900}.row-actions,.settings-actions button{display:inline-flex;align-items:center}.row-actions{gap:4px;white-space:nowrap}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;background:rgba(15,23,42,.32);padding:20px}.test-backdrop{background:rgba(17,24,39,.42);backdrop-filter:blur(5px)}.test-dialog{width:min(560px,calc(100vw - 28px));max-height:min(82vh,620px);display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;border:1px solid rgba(148,163,184,.38);border-radius:14px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.24)}.test-dialog-footer,.test-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px}.test-dialog-header{border-bottom:1px solid #e5e7eb}.test-dialog-header h3{margin:0;color:#111827;font-size:18px;line-height:1.25}.dialog-close{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#9ca3af}.test-dialog-body{display:grid;gap:12px;overflow:auto;padding:14px 18px}.test-account-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #e1e5eb;border-radius:10px;background:#f8fafc;padding:10px 12px}.test-play-badge{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,#1fc7b4,#0f9f8f);color:#fff}.test-account-card span,.test-account-card strong{display:block}.test-account-card strong{overflow-wrap:anywhere;color:#111827;font-size:14px;line-height:1.2}.test-account-card span{display:flex;align-items:center;gap:7px;margin-top:5px;color:#6b7280;font-size:12px}.test-account-card b{border-radius:5px;background:#e5e7eb;color:#6b7280;padding:3px 6px;font-size:11px}.test-account-card em{border-radius:999px;background:#dcfce7;color:#15803d;padding:5px 9px;font-size:12px;font-style:normal;font-weight:800}.test-model-select{display:grid;gap:6px;color:#374151;font-size:13px;font-weight:800}.test-model-select span{position:relative;display:block}.test-model-select select{width:100%;appearance:none;border:1px solid #d1d5db;border-radius:9px;background:#fff;color:#111827;padding:10px 36px 10px 12px;font-size:13px;outline:none}.test-model-select svg{position:absolute;right:12px;top:50%;color:#9ca3af;pointer-events:none;transform:translateY(-50%)}.test-output{min-height:152px;max-height:220px;overflow:auto;margin:0;border:1px solid #243046;border-radius:10px;background:#101827;color:#a7b0c2;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:600;line-height:1.55}.test-output.running{color:#dbeafe}.test-output.success{color:#9df5bd}.test-output pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.test-dialog-footer{justify-content:flex-end;border-top:1px solid #e5e7eb}.test-dialog-footer button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:86px;border:0;border-radius:9px;background:#f3f4f6;color:#374151;padding:9px 14px;font-size:13px;font-weight:800}.test-dialog-footer button.primary{background:#1fc7b4;color:#fff}.edit-dialog{width:min(520px,100%);display:grid;gap:13px;border:1px solid rgba(255,255,255,.86);border-radius:8px;background:#fff;box-shadow:var(--shadow);padding:20px}.edit-dialog label{display:grid;gap:8px;color:#334155;font-size:13px;font-weight:900}.dialog-actions,.dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-title h3{margin:0;font-size:20px}.dialog-actions{justify-content:flex-end;margin-top:4px}.dialog-actions button[type=submit]{background:#2563eb;color:#fff}.oauth-panel{max-width:920px}.auth-link-box{margin:14px 0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px;word-break:break-all}.auth-link-box a{color:var(--primary-dark);font-weight:800}@media (max-width:900px){.admin-page{grid-template-columns:1fr}.admin-sidebar{position:static;height:auto}.admin-sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr))}.admin-sidebar button{justify-content:center}.admin-sidebar button svg{flex:0 0 auto}.metric-grid,.panel-grid.two-col{grid-template-columns:1fr}}@media (max-width:620px){.admin-main,.redeem-page{padding:18px}.redeem-hero{padding-top:24px}.admin-header,.redeem-input-row,.section-title{grid-template-columns:1fr;display:grid}.login-panel button,.redeem-input-row button{width:100%}.redeem-result-item{grid-template-columns:1fr}.redeem-result-item strong{white-space:normal}.admin-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.test-dialog{border-radius:14px}.test-dialog-body,.test-dialog-footer,.test-dialog-header{padding:14px}.test-dialog-header h3{font-size:17px}.test-account-card{grid-template-columns:auto 1fr;gap:10px;padding:10px}.test-account-card em{grid-column:1/-1;width:fit-content;font-size:12px}.test-play-badge{width:36px;height:36px}.test-account-card strong,.test-dialog-footer button,.test-model-select,.test-model-select select,.test-output{font-size:12px}.test-account-card span{font-size:11px}.test-output{min-height:150px;padding:12px}}