*{box-sizing:border-box}html,body,#app{height:100%}body{margin:0;min-width:1180px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#172033;background:#f5f7fb;overflow:hidden}button,input,select,textarea{font:inherit}.admin-shell{height:100vh;display:flex;overflow:hidden}.login-page{min-height:100vh;display:grid;place-items:center;padding:32px;background:#eef2f8}.login-card{width:380px;padding:30px;border-radius:12px;background:#fff;box-shadow:0 18px 50px #12182b1f}.login-brand{margin-bottom:28px;display:flex;align-items:center;gap:12px}.login-brand strong,.login-brand span{display:block}.login-brand span{margin-top:4px;font-size:12px;color:#7b8496}.login-error{margin:-4px 0 14px;color:#b42318;font-size:14px}.sidebar{flex:0 0 248px;width:248px;height:100vh;padding:24px 18px;overflow-y:auto;background:#12182b;color:#fff}.brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}.brand-logo{width:42px;height:42px;border-radius:8px;object-fit:contain;background:#fff}.brand strong,.brand span{display:block}.brand span{margin-top:4px;font-size:12px;color:#98a2b8}.nav-btn{width:100%;height:44px;margin-bottom:8px;padding:0 14px;border:0;border-radius:8px;display:flex;align-items:center;gap:10px;color:#b9c2d6;background:transparent;cursor:pointer}.nav-btn.active,.nav-btn:hover{color:#fff;background:#27314d}.main{flex:1;min-width:0;height:100vh;display:flex;flex-direction:column;overflow:hidden;padding:28px}.topbar{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}h1,h2,p{margin:0}h1{font-size:28px}.topbar p{margin-top:8px;color:#7b8496}.refresh,.primary,.secondary,.actions button{border:0;border-radius:8px;background:#6f54e8;color:#fff;cursor:pointer}.refresh{height:40px;padding:0 18px}.topbar-actions{display:flex;align-items:center;gap:10px}.admin-user{color:#596276}.logout{height:40px;padding:0 16px;border:0;border-radius:8px;color:#5b43cf;background:#eef0ff;cursor:pointer}.panel{min-height:0;padding:22px;border-radius:14px;background:#fff;box-shadow:0 10px 30px #202d520f}.main>.list-panel,.main>.settings-layout{flex:1;min-height:0;overflow:hidden}.main>.list-panel{display:flex;flex-direction:column}.alert{margin-bottom:16px;padding:12px 16px;border-radius:10px;color:#a34b00;background:#fff4e5}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card{padding:22px;border-radius:12px;background:#f7f8ff}.stat-card span{color:#7b8496}.stat-card strong{display:block;margin-top:14px;font-size:30px}table{width:100%;border-collapse:collapse}th,td{padding:14px 12px;border-bottom:1px solid #edf0f6;text-align:left;white-space:nowrap}th{position:sticky;top:0;z-index:1;color:#697386;font-weight:600;background:#f8f9fc}.actions{display:flex;gap:8px}.actions button{padding:7px 10px;background:#eef0ff;color:#5b43cf}.actions button.danger{background:#fff0f0;color:#c03636}.filter-tabs{margin-bottom:16px;display:flex;gap:10px;flex-wrap:wrap}.list-tools{flex:0 0 auto;margin-bottom:14px;display:flex;gap:10px;align-items:center}.list-tools input{flex:1;margin-top:0}.list-tools button,.pager button{height:38px;padding:0 16px;border:0;border-radius:8px;color:#fff;background:#6f54e8;cursor:pointer}.list-tools h2{font-size:18px}.tool-spacer{flex:1}.list-tools .tool-primary{background:#172033}.pager{flex:0 0 auto;margin-top:14px;display:flex;justify-content:flex-end;align-items:center;gap:12px;color:#697386}.pager button:disabled{cursor:not-allowed;color:#98a2b8;background:#edf0f6}.filter-tabs button{height:34px;padding:0 14px;border:0;border-radius:999px;color:#596276;background:#f2f4f8;cursor:pointer}.filter-tabs button.active{color:#fff;background:#6f54e8}.tag{padding:4px 8px;border-radius:999px;background:#edf0f6}.tag.approved{color:#137a4b;background:#e7f8ef}.tag.pending{color:#a66200;background:#fff4d8}.tag.rejected{color:#a12626;background:#ffe9e9}.tag.pending_pay,.tag.paid,.tag.deploying{color:#5b43cf;background:#eef0ff}.tag.paying{color:#9a5b00;background:#fff0d6}.tag.failed{color:#a12626;background:#ffe9e9}.tag-note{margin-top:4px;font-size:12px;color:#697386}.tag.deployed,.tag.online{color:#137a4b;background:#e7f8ef}.tag.after_sale,.tag.abnormal{color:#a12626;background:#ffe9e9}.tag.published{color:#137a4b;background:#e7f8ef}.tag.offline{color:#697386;background:#edf0f6}.tag.enabled{color:#137a4b;background:#e7f8ef}.tag.disabled{color:#697386;background:#edf0f6}.two-col{display:grid;grid-template-columns:360px 1fr;gap:24px;align-items:start}.editor{padding:18px;border-radius:12px;background:#f8f9fc}.editor h2{margin-bottom:16px;font-size:18px}.income-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:block;margin-bottom:14px;color:#596276}input,select,textarea{width:100%;margin-top:8px;padding:10px 12px;border:1px solid #dfe3ec;border-radius:8px;background:#fff}textarea{min-height:110px;resize:vertical}.primary{width:100%;height:42px}.secondary{width:100%;height:38px;margin-top:10px;background:#eef0ff;color:#5b43cf}.secondary.compact{width:fit-content;min-width:96px;padding:0 14px}.user-picker{margin:-6px 0 14px}.user-picker select{margin-top:0;margin-bottom:10px}.user-search-row{display:flex;gap:8px}.user-search-row input{margin-top:0}.user-search-row button{width:108px;flex-shrink:0;border:0;border-radius:8px;color:#fff;background:#6f54e8;cursor:pointer;white-space:nowrap}.selected-user{margin-top:10px;padding:10px 12px;border-radius:8px;color:#137a4b;background:#e7f8ef}.selected-user span{margin-left:8px;color:#526071}.user-candidates{margin-top:10px;display:grid;gap:8px}.user-candidates button{padding:10px 12px;border:1px solid #dfe3ec;border-radius:8px;text-align:left;color:#172033;background:#fff;cursor:pointer}.user-candidates button.active{border-color:#6f54e8;background:#eef0ff}.user-candidates strong,.user-candidates span{display:block}.user-candidates span{margin-top:4px;color:#697386;font-size:12px}.settings-layout{display:grid;grid-template-columns:340px 1fr;gap:24px;align-items:start}.permission-layout{display:grid;grid-template-columns:320px 320px 1fr;gap:24px;align-items:start}.records{min-width:0}.table-scroll{flex:1;min-width:0;min-height:0;overflow:auto;border:1px solid #edf0f6;border-radius:10px}.records h2{margin-bottom:16px;font-size:18px}.settings-layout .records{height:100%;min-height:0;display:flex;flex-direction:column}.settings-layout .editor{max-height:100%;overflow:auto}.records .list-tools h2{margin-bottom:0}.permission-panel{gap:0}.permission-tables{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:18px}.permission-tables .records{min-height:0;display:flex;flex-direction:column}.permission-tables .records h2{flex:0 0 auto}.content-cell{max-width:420px;overflow:hidden;text-overflow:ellipsis}.product-thumb{width:64px;height:46px;display:block;border-radius:8px;object-fit:cover;background:#f2f4f8}.image-empty{color:#98a2b8}.image-uploader{margin:-6px 0 14px;display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;align-items:center}.image-preview{height:120px;display:grid;place-items:center;border:1px dashed #cfd6e6;border-radius:10px;color:#98a2b8;background:#f8f9fc;overflow:hidden}.image-preview img{width:100%;height:100%;object-fit:cover}.image-actions{display:grid;gap:10px;color:#697386}.image-actions input{margin-top:0}.permission-checks{margin-bottom:14px;display:grid;gap:8px}.sub-record-title{margin-top:24px}.checkbox{display:flex;gap:8px;align-items:center}.checkbox input{width:auto;margin:0}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a7a}.modal-panel{width:min(1080px,100%);max-height:86vh;overflow:auto;border-radius:12px;background:#fff;box-shadow:0 24px 80px #0f172a47}.form-modal{width:min(680px,100%)}.earnings-modal{display:flex;flex-direction:column;width:min(1240px,100%);height:min(960px,94vh);max-height:94vh;overflow:hidden;border-radius:16px}.modal-head{position:sticky;top:0;z-index:1;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f6;background:#fff}.modal-head h2{font-size:20px}.modal-head p{margin-top:6px;color:#697386}.modal-close{border:0;border-radius:8px;cursor:pointer;padding:8px 16px;background:#eef0ff;color:#5b43cf}.modal-form{padding:20px 24px 24px;border-radius:0;background:#fff}.modal-actions{margin-top:8px;display:flex;justify-content:flex-end;gap:10px}.modal-actions .primary,.modal-actions .secondary{width:auto;min-width:112px;margin-top:0;padding:0 18px}.detail-groups{padding:20px 24px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.detail-group{border:1px solid #edf0f6;border-radius:10px;padding:16px;background:#fbfcff}.detail-group h3{margin-bottom:14px;font-size:16px}.detail-group dl{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px 14px}.detail-group dt{color:#697386}.detail-group dd{min-width:0;color:#101828;word-break:break-word}.pre-line{white-space:pre-line}.earnings-head{flex:0 0 auto;padding:14px 24px}.earnings-head h2{font-size:18px;letter-spacing:.01em}.earnings-head-main{display:flex;align-items:baseline;gap:12px;min-width:0}.earnings-user{display:flex;align-items:center;gap:8px;min-width:0}.earnings-user-name{overflow:hidden;color:#475467;font-size:13px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.earnings-user-uid{flex:0 0 auto;padding:2px 8px;border-radius:999px;background:#f2f4f9;color:#98a2b8;font-size:11px}.earnings-stats{display:grid;flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #edf0f6;background:#fbfcfe}.stat{display:flex;flex-direction:column;gap:4px;padding:12px 24px;border-left:1px solid #eef1f7}.stat:first-child{border-left:0}.stat-label{color:#98a2b8;font-size:12px}.stat-value{color:#172033;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em}.stat-value.muted{color:#475467}.stat-accent .stat-value{color:#6f54e8}.stat-note{color:#a7b0c0;font-size:11px}.earnings-body{display:flex;flex:1;gap:18px;min-height:0;overflow:hidden;padding:14px 24px 0}.earnings-aside{display:flex;flex:0 0 auto;flex-direction:column;gap:10px;width:326px;min-height:0;padding-bottom:14px;overflow-y:auto}.earnings-main{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}.calendar{width:100%;flex:0 0 auto;padding:14px;border:1px solid #e8ecf4;border-radius:14px;background:#fff}.cal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.cal-title{color:#172033;font-size:15px;font-weight:600;letter-spacing:.02em}.cal-subtitle{margin-top:3px;color:#98a2b8;font-size:12px;font-variant-numeric:tabular-nums}.cal-nav-group{display:flex;gap:4px}.cal-nav{width:26px;height:26px;padding:0;border:0;border-radius:8px;background:#f4f6fb;color:#697386;font-size:14px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.cal-nav:hover{background:#e8ecf6;color:#172033}.cal-week,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal-grid{align-content:start}.cal-week{margin-bottom:8px;color:#a7b0c0;font-size:11px;font-weight:500;letter-spacing:.06em;text-align:center}.cal-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:34px;padding:4px 1px;border:1px solid transparent;border-radius:9px;background:#fafbfd;text-align:center;transition:background .15s ease,border-color .15s ease}.cal-cell.blank{border-color:transparent;background:transparent;cursor:default}.cal-cell:not(.blank):not(.future):hover{background:#eef1f8}.cal-day{color:#475467;font-size:12px;line-height:1;font-variant-numeric:tabular-nums}.cal-cell.has{border-color:#dcefe4;background:#f4faf7}.cal-cell.has .cal-day{color:#172033;font-weight:600}.cal-amount{color:#137a4b;font-size:10px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.cal-cell.future{background:transparent;cursor:default}.cal-cell.future .cal-day{color:#cbd2e1}.cal-cell.today{border-color:#c3cbdc}.cal-cell.today .cal-day{color:#172033;font-weight:600}.cal-cell.selected{border-color:#172033;background:#172033}.cal-cell.selected:hover{background:#172033}.cal-cell.selected .cal-day,.cal-cell.selected .cal-amount{color:#fff}.cal-legend{display:flex;gap:14px;margin-top:12px;padding-top:11px;border-top:1px solid #f2f4f9;color:#a7b0c0;font-size:11px}.cal-legend span{display:inline-flex;align-items:center;gap:5px}.cal-legend .dot{width:7px;height:7px;border-radius:50%}.dot-has{background:#137a4b}.dot-selected{background:#172033}.dot-today{border:1px solid #c3cbdc;background:#fff}.filter-card{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #e8ecf4;border-radius:12px;background:#fafbfd}.filter-label{color:#a7b0c0;font-size:11px;letter-spacing:.06em}.filter-value{color:#172033;font-size:15px;font-weight:600}.filter-meta{color:#697386;font-size:12px;font-variant-numeric:tabular-nums}.filter-btns{display:flex;gap:8px}.ghost-btn{height:32px;padding:0 14px;border:1px solid #e2e7f0;border-radius:8px;background:#fff;color:#475467;font-size:13px;cursor:pointer;transition:border-color .15s ease,color .15s ease,background .15s ease}.ghost-btn:hover{border-color:#c3cbdc;background:#f8fafc;color:#172033}.filter-hint{margin:0;color:#a7b0c0;font-size:12px;line-height:1.7}.trend-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 14px;border:1px solid #e8ecf4;border-radius:12px;background:#fafbfd}.trend-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.trend-total{color:#172033;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.trend-bars{display:flex;flex:1;align-items:stretch;gap:8px;min-height:62px;padding-bottom:4px}.trend-bars{justify-content:space-between}.trend-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:0;max-width:54px}.trend-track{display:flex;flex:1;align-items:flex-end;width:100%;background:transparent}.trend-track i{display:block;width:100%;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#d5dbeb,#c2cadc);transition:background .15s ease}.trend-item:hover .trend-track i{background:#a8b2c7}.trend-item.active .trend-track i{background:#6f54e8}.trend-label{color:#a7b0c0;font-size:11px;white-space:nowrap}.trend-item.active .trend-label{color:#172033;font-weight:600}.earnings-table-head{display:flex;flex:0 0 auto;align-items:baseline;justify-content:space-between;margin-bottom:10px}.earnings-table-head strong{color:#172033;font-size:14px;font-weight:600}.earnings-table-head span{color:#98a2b8;font-size:12px;font-variant-numeric:tabular-nums}.earnings-table{flex:1;min-height:140px;max-height:none;border-color:#e8ecf4;border-radius:12px}.earnings-table th,.earnings-table td{padding:9px 12px;font-size:13px}.earnings-body .pager{flex:0 0 auto;margin-top:0;padding:10px 0 14px}.earnings-table table{border-collapse:separate;border-spacing:0}.earnings-table thead th{position:sticky;top:0;z-index:1;background:#f8fafc;box-shadow:inset 0 -1px #e8ecf4;color:#697386;font-size:12px;font-weight:500;white-space:nowrap}.earnings-table tbody tr:hover{background:#fafbfe}.earnings-table .col-num,.earnings-table .amount{font-variant-numeric:tabular-nums;white-space:nowrap}.earnings-table .amount{color:#172033;font-weight:600}.empty-row{text-align:center;color:#697386}
