:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#17243a;background:#f5f8f7;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}input,textarea{color:#17243a}input:focus,textarea:focus,button:focus-visible{outline:3px solid #9bdfc2;outline-offset:2px}
.app-screen[hidden],.login-screen[hidden],[hidden]{display:none!important}
.topbar{height:70px;background:#fff;border-bottom:3px solid #0b8d57;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1480px)/2));box-shadow:0 2px 12px #173a2a0a}
.brand{display:flex;align-items:center;gap:14px;font-size:20px;font-weight:760;letter-spacing:.02em}.brand-icon,.login-mark{display:grid;place-items:center;background:#0b8d57;color:#fff;font-size:27px;font-weight:700;border-radius:13px;width:39px;height:39px;line-height:1}.brand-sep{color:#9aaba6;padding:0 4px}.top-actions{display:flex;align-items:center;gap:22px;color:#677588;font-size:13px}.text-button{border:0;background:transparent;color:#287e56;padding:8px 0;font-weight:650}
.shell{max-width:1480px;margin:0 auto;padding:29px 28px 50px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 24px}.page-head h1{font-size:29px;line-height:1.2;margin:0 0 8px;letter-spacing:-.02em}.page-head p{margin:0;color:#667485;font-size:13px}.rule-note{font-size:12px;color:#697b72;text-align:right;max-width:420px;line-height:1.5}
.search-bar{display:flex;align-items:center;gap:11px;background:#fff;padding:15px 18px;border:1px solid #e4ebe8;border-radius:12px;box-shadow:0 3px 15px #1b413008;margin-bottom:18px}.search-bar label{white-space:nowrap;font-size:14px;font-weight:700;margin-right:4px}.search-bar input,.search-bar select{height:39px;border:1px solid #d6e0dc;border-radius:7px;padding:0 13px;font-size:13px;background:#fff}.search-bar input{width:min(420px,100%)}.search-bar select{min-width:180px;max-width:250px}.button{border-radius:7px;padding:9px 18px;min-height:39px;border:1px solid transparent;font-size:13px;font-weight:700;white-space:nowrap;transition:background .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:#0b8d57;color:#fff}.button.primary:hover:not(:disabled){background:#08764a}.button.secondary{background:#fff;color:#3f5b50;border-color:#cfded6}.button.secondary:hover:not(:disabled){background:#f1f8f4}.button.small{min-height:31px;padding:5px 12px;font-size:12px}.button.wide{width:100%}
.notice{background:#fff8e9;border:1px solid #f1d49d;color:#87621f;border-radius:8px;padding:10px 14px;font-size:13px;margin-bottom:16px}.notice.error{background:#fff1f0;border-color:#ffceca;color:#a3332c}.workspace{display:grid;grid-template-columns:222px minmax(0,1fr) 290px;gap:16px;align-items:start}.panel{background:#fff;border:1px solid #e2eae6;border-radius:11px;box-shadow:0 3px 13px #163c2909}.panel-heading{min-height:54px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1ef}.panel-heading h2{font-size:15px;margin:0;font-weight:750}.panel-heading p{font-size:12px;color:#819087;margin:5px 0 0}.panel-heading span{font-size:11px;color:#85918b}.customer-list,.records-panel{position:sticky;top:16px}.customer-items{max-height:calc(100vh - 250px);overflow:auto;padding:7px}.customer-item{width:100%;border:0;background:transparent;border-radius:8px;padding:11px 10px;text-align:left;display:flex;flex-direction:column;gap:5px}.customer-item:hover{background:#f0f7f3}.customer-item.active{background:#e8f5ed}.customer-item .customer-name{font-size:13px;font-weight:730;color:#233849;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-item .customer-qr{font-size:11px;color:#7a8983;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-item .customer-sum{font-size:13px;color:#078754;font-weight:750}.list-empty{padding:24px 12px;color:#8a9891;text-align:center;font-size:12px;line-height:1.6}
.main-column{min-width:0}.main-column .panel{margin-bottom:16px}.empty-state{padding:90px 18px;text-align:center;color:#839189;font-size:13px}.summary-panel .panel-heading{min-height:75px}.summary-panel .panel-heading h2{font-size:19px}.subtle{color:#809087;font-size:11px;margin-top:5px}.flag{background:#fff3dc;color:#9a6212;border-radius:5px;padding:5px 8px;font-size:11px!important}.summary-grid{display:grid;grid-template-columns:1.3fr .8fr .8fr 1.15fr;padding:21px 18px;gap:16px}.summary-grid>div{display:flex;flex-direction:column;gap:8px;border-right:1px solid #e9efec}.summary-grid>div:last-child{border-right:0}.metric-label{font-size:11px;color:#7b8d84}.summary-grid strong{font-size:17px;font-weight:750;white-space:nowrap}.summary-grid .primary-metric{color:#078b53;font-size:28px;letter-spacing:-.02em}.window-note{margin:0 18px 18px;background:#eff8f2;color:#56806b;border-radius:6px;padding:9px 12px;font-size:11px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{background:#f7f9f8;color:#65766d;font-weight:650;border-bottom:1px solid #e8edeb;padding:10px 14px}td{padding:11px 14px;border-bottom:1px solid #eff2f1;color:#263b49}tbody tr:last-child td{border-bottom:0}.rewards-table td:nth-child(1){font-weight:750;font-size:14px}.rewards-table td:nth-child(2){color:#486259}.rewards-table th:last-child,.rewards-table td:last-child{text-align:right}.progress-track{height:6px;background:#e8edea;border-radius:20px;width:100px;overflow:hidden;margin-top:6px}.progress-fill{height:100%;background:#0a9d62;border-radius:20px}.progress-text{font-size:10px;color:#7c8b83}.status{font-size:11px;font-weight:730;color:#a4aaa6}.status.eligible{color:#078d56}.status.done{color:#35785c}.status.review{color:#b97924}.first-rewards{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 18px}.first-reward{border:1px solid #e6ece9;border-radius:8px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.first-reward-title{font-size:13px;font-weight:720}.first-reward-detail{font-size:11px;color:#8a978f;margin-top:4px}.first-reward-actions{text-align:right}.first-reward-actions .status{display:block;margin-bottom:6px}.orders-panel td{font-size:11px}.orders-panel th{font-size:11px}
.record-list{max-height:calc(100vh - 250px);overflow:auto;padding:8px 12px}.record-item{padding:12px 4px;border-bottom:1px solid #edf1ef}.record-item:last-child{border-bottom:0}.record-top{display:flex;justify-content:space-between;gap:5px;align-items:center}.record-title{font-size:12px;font-weight:740}.record-date{font-size:10px;color:#96a29a;margin-top:5px}.record-gift{font-size:11px;color:#647a6f;margin-top:7px;overflow-wrap:anywhere}.record-footer{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.record-status{font-size:11px;color:#078d56;font-weight:740}.record-status.voided{color:#a0a9a4}.void-button{border:0;background:transparent;color:#8b9b91;font-size:11px;padding:2px}.void-button:hover{color:#b04338}
.login-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#eff8f1 0%,#f9fbfa 50%,#e4f3e9 100%);padding:20px}.login-card{width:min(410px,100%);background:#fff;border:1px solid #dce9e1;border-radius:15px;padding:38px;box-shadow:0 20px 60px #18543118}.login-mark{margin-bottom:22px;width:48px;height:48px;font-size:34px}.login-card h1{font-size:24px;margin:0 0 7px}.login-card p{color:#798a81;font-size:13px;margin:0 0 27px}.login-card label,.redeem-dialog label{display:block;font-size:12px;font-weight:700;margin:15px 0 7px}.login-card input,.redeem-dialog input,.redeem-dialog textarea{width:100%;border:1px solid #d8e2dc;border-radius:7px;padding:10px 12px;background:#fff;font-size:13px}.login-card .form-error{margin:10px 0;min-height:16px}.form-error{font-size:11px;color:#c34239!important;min-height:14px}.redeem-dialog{border:1px solid #d9e4de;border-radius:12px;box-shadow:0 24px 80px #183b2c3d;padding:0;width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 40px)}.redeem-dialog::backdrop{background:#17271f75}.redeem-dialog form{padding:0 22px 22px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9efeb;margin:0 -22px 18px;padding:16px 22px}.dialog-heading h2{font-size:17px;margin:0}.icon-button{border:0;background:transparent;color:#7e8c84;font-size:24px;line-height:1}.dialog-summary{background:#f1f8f3;border-radius:7px;padding:13px 15px;font-size:12px;display:grid;gap:8px;color:#647a6e}.dialog-summary>div{display:flex;justify-content:space-between;gap:8px}.dialog-summary strong{color:#263e33}.required{color:#b5463a}.redeem-dialog textarea{resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
@media(max-width:1180px){.workspace{grid-template-columns:200px minmax(0,1fr)}.records-panel{grid-column:2;position:static}.record-list{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}}
@media(max-width:760px){.topbar{padding:0 16px;height:62px}.brand{font-size:15px;gap:8px}.brand-icon{width:31px;height:31px;font-size:22px}.user-label{display:none}.shell{padding:20px 14px 32px}.page-head{display:block}.page-head h1{font-size:25px}.rule-note{display:block;text-align:left;margin-top:10px}.search-bar{flex-wrap:wrap;padding:13px}.search-bar label{width:100%}.search-bar input{flex:1;min-width:150px}.workspace{display:block}.customer-list{position:static;margin-bottom:14px}.customer-items{max-height:150px;display:flex;overflow-x:auto}.customer-item{min-width:145px}.main-column .panel,.records-panel{margin-bottom:14px}.summary-grid{grid-template-columns:repeat(2,1fr);gap:18px 8px}.summary-grid>div:nth-child(2){border:0}.summary-grid strong{font-size:15px}.summary-grid .primary-metric{font-size:23px}.first-rewards{grid-template-columns:1fr}.record-list{display:block;max-height:260px}.rewards-table th,.rewards-table td{padding:9px 10px}.progress-track{width:75px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.button.danger{background:#b84036;color:#fff}.button.danger:hover:not(:disabled){background:#9d3028}.void-warning{margin:14px 0 2px;padding:11px 13px;border-radius:7px;background:#fff4ec;color:#9b4b20;font-size:12px;line-height:1.6}
.active-tab{color:#075c39!important;border-bottom:2px solid #0b8d57}.settings-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px;align-items:start}.settings-body{padding:20px}.settings-body h3{font-size:14px;margin:24px 0 12px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 18px}.form-row label{display:grid;gap:7px;font-size:12px;font-weight:700}.settings-body input{width:100%;height:38px;padding:7px 10px;border:1px solid #d6e0dc;border-radius:7px;background:#fff;font-size:13px}.helper{color:#738379;font-size:12px;line-height:1.6;margin:0 0 16px}.settings-table{margin-bottom:22px}.settings-table input{min-width:95px}.settings-table td:last-child input{min-width:160px}.issuer-add{display:flex;gap:8px}.issuer-list{margin-top:12px}.issuer-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf1ef;font-size:13px}.issuer-actions{display:flex;gap:14px}.issuer-match{font-size:12px;color:#078d56;min-height:18px;margin-top:6px}@media(max-width:900px){.settings-grid{grid-template-columns:1fr}}@media(max-width:760px){.top-actions{gap:10px}.top-actions .text-button{font-size:11px}.settings-body{padding:14px}.form-row{grid-template-columns:1fr}}
