:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#252735;background:#f4f6f9;--red:#ed312c;--muted:#7b818d;--line:#e4e7ec}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 85% 5%,#ffe7e3 0,transparent 25%),#f4f6f9}button,input,select,textarea{font:inherit}a{text-decoration:none}.cards-header{height:70px;padding:0 max(24px,calc((100% - 1380px)/2));display:flex;align-items:center;justify-content:space-between;border-top:4px solid var(--red);background:#fff;box-shadow:0 2px 12px rgba(31,36,47,.05)}.cards-header>a{display:flex;align-items:center;gap:10px;color:#252735}.cards-header img{width:43px;height:43px}.cards-header span{display:flex;flex-direction:column}.cards-header small{color:var(--red);font-size:9px;letter-spacing:.12em}.cards-header nav{display:flex;gap:24px}.cards-header nav a{color:#5f6570}main{width:min(1380px,calc(100% - 36px));margin:32px auto 60px}.title-row{display:flex;align-items:flex-end;justify-content:space-between}.title-row>div>span,.dialog-heading span{color:var(--red);font-size:11px;font-weight:800;letter-spacing:.14em}.title-row h1{margin:7px 0 5px;font-size:34px}.title-row p{margin:0;color:var(--muted)}.title-row>button,.primary{padding:12px 20px;border:0;border-radius:9px;color:#fff;background:var(--red);cursor:pointer}.summary-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:25px 0 14px}.summary-grid article{padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(35,39,50,.04)}.summary-grid span{display:block;color:var(--muted);font-size:13px}.summary-grid b{display:block;margin-top:5px;font-size:27px}.guide{min-height:52px;display:flex;align-items:center;gap:15px;margin-bottom:14px;padding:10px 18px;border:1px solid #f4c8c4;border-radius:12px;color:#5e636d;background:#fff8f7;font-size:13px}.guide strong{color:var(--red)}.guide i{color:#c0a09d}.cards-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 12px 36px rgba(35,39,50,.05)}.toolbar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-bottom:1px solid var(--line)}.toolbar h2{display:inline;margin:0 9px 0 0}.toolbar>div span{color:var(--muted);font-size:12px}.toolbar form{display:flex;gap:7px}.toolbar input,.toolbar select{height:40px;padding:0 10px;border:1px solid #dce0e6;border-radius:8px;background:#fff;outline:none}.toolbar input{width:270px}.toolbar button{padding:0 12px;border:1px solid #dfe2e7;border-radius:8px;color:#626873;background:#fff;cursor:pointer}.toolbar button:first-of-type{color:#fff;border-color:var(--red);background:var(--red)}.table-wrap{overflow:auto}table{width:100%;min-width:1180px;border-collapse:collapse}th{height:48px;padding:0 13px;color:#6c727d;background:#f7f8fa;text-align:left;font-size:13px;font-weight:600}td{padding:13px;border-top:1px solid #edf0f3;vertical-align:middle}.code{display:inline-flex;align-items:center;padding:7px 9px;border:1px solid #f1cbc8;border-radius:7px;color:#a62f2a;background:#fff8f7;font:600 12px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.025em}.product strong,.batch strong,.redeemer strong{display:block}.product small,.batch small,.redeemer small,.expiry small{display:block;margin-top:4px;color:#969ba5}.grant-list{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.grant{padding:2px 6px;border-radius:9px;color:#52647a;background:#edf2f7;font-size:10px}.status{display:inline-flex;padding:4px 9px;border-radius:12px;font-size:11px}.status.active{color:#197047;background:#eaf8f0}.status.used{color:#235f9b;background:#eaf3fc}.status.disabled{color:#9a3b36;background:#fff0ef}.status.expired{color:#80652a;background:#fff6df}.actions{display:flex;gap:5px}.actions button{padding:6px 8px;border:1px solid #dfe2e7;border-radius:6px;color:#5f6570;background:#fff;cursor:pointer}.actions button:hover{color:var(--red);border-color:#f4aaa6}.empty{padding:75px;text-align:center;color:var(--muted)}dialog{width:min(750px,calc(100% - 24px));max-height:92vh;padding:0;border:0;border-radius:16px;box-shadow:0 28px 80px rgba(20,24,33,.28)}dialog::backdrop{background:rgba(25,28,37,.48);backdrop-filter:blur(2px)}dialog form,.result-content{padding:25px 28px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid var(--line)}.dialog-heading h2{margin:5px 0 0}.dialog-heading p{margin:5px 0 0;color:var(--muted)}.dialog-heading>button{width:34px;height:34px;border:0;border-radius:50%;color:#666;background:#f3f4f6;font-size:21px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 20px;margin-top:21px}.form-grid label{display:grid;gap:6px;color:#606671;font-size:13px}.form-grid input,.form-grid select{height:43px;padding:0 11px;border:1px solid #dce0e6;border-radius:7px;background:#fff}.form-grid small{color:#9297a1}.safety-note{margin-top:20px;padding:13px 15px;border-radius:10px;color:#6a5050;background:#fff5f4}.safety-note p{margin:5px 0 0;font-size:12px}.dialog-message{min-height:21px;margin-top:10px;color:#b23631}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{padding:10px 20px;border-radius:8px;cursor:pointer}.secondary{border:1px solid #dfe2e7;color:#626873;background:#fff}.result-actions{display:flex;gap:8px;margin:17px 0}.result-actions button{padding:9px 14px;border:1px solid #ef6d68;border-radius:7px;color:#df332e;background:#fff;cursor:pointer}.result-actions button:first-child{color:#fff;background:var(--red)}#generatedCodes{width:100%;height:300px;padding:13px;border:1px solid #dfe2e7;border-radius:8px;background:#f8f9fb;font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;resize:vertical}.delivery-note{color:#9a6a66;font-size:12px}@media(max-width:980px){.toolbar{align-items:flex-start;flex-direction:column}.toolbar form{width:100%;flex-wrap:wrap}.toolbar input{flex:1}.guide{align-items:flex-start;flex-wrap:wrap}.guide i{display:none}}@media(max-width:680px){.cards-header{height:auto;min-height:64px;padding:9px 12px}.cards-header nav a:not(:first-child){display:none}main{width:calc(100% - 18px);margin-top:20px}.title-row{align-items:flex-start;gap:12px}.title-row h1{font-size:27px}.title-row p{font-size:12px}.title-row>button{padding:10px;white-space:nowrap}.summary-grid{grid-template-columns:repeat(2,1fr);gap:8px}.summary-grid article{padding:13px}.summary-grid b{font-size:22px}.guide span{width:100%}.toolbar form select,.toolbar input{width:100%;flex-basis:100%}.form-grid{grid-template-columns:1fr}dialog form,.result-content{padding:20px 16px}}
