:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#e9e9f7;background:#0c0e17;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{background:#8a6cfa;border:1px solid #aa95ff;color:white;border-radius:8px;padding:10px 16px;cursor:pointer;font-weight:600}button:hover{filter:brightness(1.13)}button:disabled{opacity:.5;cursor:wait}.ghost{background:#191d2c;border-color:#30364c;color:#c5c9df}input,select,textarea{width:100%;padding:11px 12px;background:#111521;border:1px solid #353c55;border-radius:7px;color:#eee;outline:none}input:focus,textarea:focus,select:focus{border-color:#a085ff}label{display:block;color:#adb4cc;margin:16px 0 8px;line-height:2}textarea{min-height:90px}h1{font-size:30px;letter-spacing:-1px;margin:8px 0 16px}h2{font-size:19px}p{color:#8994b0;line-height:1.7}.brand{font-size:18px;font-weight:800;color:#c6b7ff;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#66718f;margin:10px 0}#login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 25%,#282042 0,transparent 55%)}#login form{width:min(450px,94vw);padding:40px;border:1px solid #39314e;border-radius:18px;background:#131622;box-shadow:0 30px 100px #0006}#login button{width:100%;margin-top:24px}aside{position:fixed;inset:0 auto 0 0;width:240px;background:#10131e;border-right:1px solid #242a3c;padding:30px 20px;display:flex;flex-direction:column}nav{margin-top:38px;display:grid;gap:8px}nav button{text-align:left;background:none;border:0;color:#8e99b7;padding:13px 17px}nav button.active{background:#28213e;color:#cabaef;border-left:3px solid #a48cff}aside footer{margin-top:auto;display:grid;gap:16px;color:#96a0bb;padding:16px;font-size:12px}main{margin-left:240px;padding:38px 44px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:#6c7590;margin:0}.head-actions{display:flex;gap:12px;align-items:center}.live{font-size:11px;color:#6bcda8}#notice{color:#e4cc88;margin-bottom:18px}#notice:empty{display:none}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.metric,.card,.panel{border:1px solid #282e43;border-radius:12px;background:#151927;padding:22px}.metric small{color:#8994b0}.metric strong{display:block;font-size:32px;margin:14px 0 4px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(295px,1fr));gap:20px}.card-top{display:flex;justify-content:space-between;align-items:center}.card h2{margin:0}.card .meta{font-family:monospace;font-size:11px;color:#737f9e;margin-top:8px}.tag{font-size:11px;border-radius:20px;background:#243c35;color:#8bdec3;padding:5px 10px}.tag.dim{background:#343043;color:#b9a1d9}.tag.bad{background:#462b30;color:#e79a9f}.card dl{display:grid;grid-template-columns:80px 1fr;margin:24px 0;font-size:12px;gap:10px}.card dt{color:#6f7c9c}.card dd{margin:0;word-break:break-all;color:#abb5ce}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.actions button{font-size:12px;padding:8px 11px}.table-wrap{overflow:auto;border:1px solid #293046;border-radius:10px}table{width:100%;border-collapse:collapse;background:#151927;text-align:left;font-size:12px}th{background:#1c2031;color:#8c99b5;font-weight:500;white-space:nowrap}th,td{padding:15px;border-bottom:1px solid #252c3e}td{max-width:340px;overflow-wrap:anywhere}.empty{text-align:center;padding:60px;color:#7d8aa8;border:1px dashed #333951;border-radius:12px}.toolbar{display:flex;gap:12px;margin-bottom:24px}.toolbar select{max-width:290px}.toolbar input{max-width:250px}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.resource img{height:170px;width:100%;object-fit:contain;background:#0b0d15;border-radius:8px;margin-top:20px}.error{color:#ef9097}dialog{border:1px solid #414762;border-radius:14px;background:#191d2b;color:white;max-width:680px;width:94vw;max-height:90vh;padding:28px}dialog::backdrop{background:#05060cbf;backdrop-filter:blur(4px)}.dialog-head,.dialog-footer{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-footer{justify-content:flex-end;margin-top:26px}.hint{font-size:12px;color:#838eaa}.small{font-size:11px}a{color:#b6a4ff}#fields .split{gap:16px}#app[hidden],#login[hidden]{display:none}@media(max-width:950px){aside{width:185px;padding:24px 10px}main{margin-left:185px;padding:25px 20px}.metrics{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start;flex-direction:column}.live{display:none}}@media(max-width:620px){aside{position:static;width:100%;height:auto;padding:15px}nav{display:flex;overflow:auto;margin-top:14px;gap:4px}nav button{white-space:nowrap;padding:8px 12px}aside footer{display:none}main{margin-left:0;padding:22px 14px}.split{grid-template-columns:1fr}.head-actions{flex-wrap:wrap}}

#instance-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:#211b38;border:1px solid #4c3c73;border-radius:12px;padding:18px;margin-bottom:28px;box-shadow:0 8px 25px #0004}#instance-bar label{margin:0;min-width:260px;flex:1}#instance-bar .actions{margin:0}#instance-bar span{color:#c9b9f1}.check{display:inline-flex;align-items:center;gap:8px;margin:8px 16px 8px 0}.check input{width:auto}fieldset{border:1px solid #414762;border-radius:10px;padding:12px;margin-top:18px}.metric strong{font-size:24px;overflow-wrap:anywhere}
.instance-manager{display:grid;gap:24px}.instance-manager h2{margin:0 0 10px;color:#d6c5ff}.instance-manager .panel{padding:22px}.instance-form{display:flex;align-items:end;flex-wrap:wrap;gap:14px}.instance-form label{flex:1 1 180px;margin:0}.instance-form label:first-child{flex-basis:240px}.instance-form .check{flex:0 0 auto;min-height:42px}.instance-form>button{margin-bottom:1px;min-height:42px}.instance-form input,.instance-form select{min-height:42px}.instance-form .check input{min-height:auto}.instance-manager .table-wrap{margin-top:24px}.instance-manager td,.instance-manager th{padding:16px 12px}.instance-cell{display:flex;align-items:center;gap:7px;min-width:220px}.instance-cell input{min-width:100px}.instance-cell select{min-width:150px}.instance-cell button{white-space:nowrap;padding:9px 10px;flex-shrink:0}.instance-manager th:nth-child(1){min-width:245px}.instance-manager th:nth-child(2){min-width:225px}.instance-manager th:nth-child(3){min-width:230px}.instance-manager input:disabled,.instance-manager select:disabled{opacity:.65;cursor:not-allowed}.sandbox-cell{margin:0;justify-content:center;display:flex}.sandbox-cell input{width:20px;height:20px;accent-color:#a38aff;cursor:pointer}.instance-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:145px}.instance-actions button,.button-link{font-size:12px;padding:8px 10px;white-space:nowrap}.button-link{border:1px solid #aa95ff;background:#8a6cfa;border-radius:8px;text-decoration:none;color:white;font-weight:600}.instance-actions details{width:100%;color:#b6a4ff}.instance-actions summary{cursor:pointer;padding:6px 0}.instance-actions .actions{margin:6px 0}.instance-manager .hint{margin:0}.instance-manager .tag{white-space:nowrap}@media(min-width:1500px){body:has(.instance-manager) main{padding-left:28px;padding-right:28px}body:has(.instance-manager) aside{width:210px}body:has(.instance-manager) main{margin-left:210px}}@media(max-width:620px){.instance-form label{flex-basis:100%}.instance-form>button{width:100%}.instance-manager .panel{padding:16px}}
.config-field{display:flex;flex-direction:column;align-items:stretch}.config-field>input,.config-field>select{flex:1}.config-publish{margin-top:5px;padding:6px 10px;font-size:12px;white-space:nowrap}.config-check{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.config-check>input[type=checkbox]{width:20px;height:20px;flex:0 0 auto;accent-color:#a38aff}.config-check>span{flex:1}.config-check .check-state{display:block;color:#a9a0c9;font-size:12px;font-style:normal}.config-check>.config-publish{flex-basis:100%}
.caps-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid;border-radius:10px;padding:15px 18px;margin:16px 0}.caps-status strong{font-size:17px}.caps-status span{font-weight:600}.caps-status.is-on{background:#163128;border-color:#427a62;color:#a7e9c4}.caps-status.is-off{background:#322329;border-color:#79505d;color:#f2bdc5}#hard-caps .table-wrap{margin:14px 0 24px}#hard-caps .hint{line-height:1.6}
.activity-panel{padding:26px}.activity-panel h2{margin:0;color:#d9cbff}.activity-panel p{margin:10px 0 20px}.activity-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0}.activity-toolbar input{max-width:340px}.activity-toolbar select{max-width:190px}.activity-toolbar button{white-space:nowrap}.activity-panel .table-wrap{max-width:100%;overflow-x:auto}.activity-panel table{min-width:900px}.activity-panel th,.activity-panel td{white-space:nowrap}.activity-panel td:first-child{font-weight:600}.activity-id{display:block;color:#8390ad;font-size:11px;font-weight:400;margin-top:4px}.activity-win{color:#71dab0}.activity-loss{color:#ff9da4}.activity-more{margin-top:18px}.activity-detail{margin-top:24px;padding:22px;border:1px solid #504565;border-radius:12px;background:#1c2031}.activity-detail h3{margin:0;color:#e5d9ff}.activity-detail h4{margin:20px 0 10px}.activity-detail p{margin:10px 0 16px}.activity-detail .table-wrap{max-width:580px}.activity-detail table{min-width:0}.activity-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.activity-breakdown>div{padding:14px;border:1px solid #333d55;border-radius:9px;background:#141b2c}.activity-breakdown small{display:block;color:#97a5bf}.activity-breakdown strong{display:block;margin-top:6px;font-size:18px;color:#f1eaff}@media(max-width:620px){.activity-panel{padding:16px}.activity-toolbar input,.activity-toolbar select{max-width:none;width:100%}.activity-toolbar button{width:100%}}
.activity-tabs{display:flex;gap:10px;flex-wrap:wrap}.activity-tabs button.active{box-shadow:0 0 0 2px #c7b5ff inset}.activity-period{color:#aab5cd;font-size:13px}.activity-panel table{min-width:1500px}
aside nav{overflow-y:auto;min-height:0;scrollbar-width:thin}@media(max-width:620px){aside nav{overflow-x:auto;overflow-y:hidden}}
.spin-round-link{padding:2px 0;background:none;border:0;color:#cdbaff;text-decoration:underline;text-underline-offset:3px}.spin-round-link:hover{color:#fff}.round-winners .table-wrap{max-width:100%}
.fruit-wheel-panel h2{margin-top:0}.fruit-wheel-panel .table-wrap{margin:18px 0}.fruit-wheel-panel table{min-width:1340px}.fruit-wheel-panel th,.fruit-wheel-panel td{padding:12px;vertical-align:middle}.fruit-wheel-panel td:nth-child(1){width:90px}.fruit-wheel-panel td:nth-child(2){min-width:90px}.fruit-wheel-panel td:nth-child(3){min-width:170px}.fruit-wheel-panel td:nth-child(4),.fruit-wheel-panel td:nth-child(5){min-width:120px}.fruit-wheel-panel td:nth-child(6),.fruit-wheel-panel td:nth-child(7){min-width:100px}.fruit-wheel-panel td:nth-child(8){min-width:190px}.fruit-wheel-panel td:nth-child(9){min-width:190px}.fruit-wheel-panel input{min-width:95px}.fruit-preview{width:66px;height:66px;object-fit:contain;background:#20283a;border-radius:9px}.fruit-path{display:block;overflow-wrap:anywhere}.fruit-wheel-panel td small{display:block;color:#8e9bb5;margin-top:5px}.fruit-actions{display:grid;gap:6px}.fruit-actions label{margin:0;line-height:1.2}.fruit-actions input[type=file]{width:175px;min-width:0;padding:5px}.fruit-actions button,.fruit-actions select{font-size:12px;padding:7px}.fruit-math{font-size:15px;font-weight:700;color:#adf0cb}.fruit-wheel-panel .actions{margin-top:18px}details.panel>summary{cursor:pointer;font-size:18px;font-weight:700}details.panel>.grid{margin-top:18px}
.tenant-pool-status{margin:16px 0;padding:14px;border:1px solid #43566b;border-radius:10px;background:#192534}.tenant-pool-status strong{color:#a9e8c7}.tenant-pool-status p{margin:8px 0}.tenant-pool-status small{color:#a2afc9}.tenant-pool-status.is-low{border-color:#ec936b;background:#312529}.tenant-pool-status.is-low strong{color:#ffbb92}
.tenant-pool-events{margin-top:12px;min-width:0}.tenant-pool-events summary{cursor:pointer;color:#d5dff1;line-height:1.5}.tenant-pool-event-list{list-style:none;display:grid;gap:10px;margin:12px 0 0;padding:0}.tenant-pool-event{min-width:0;border:1px solid #344057;border-radius:10px;background:#151b29;padding:12px}.tenant-pool-event-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 10px}.tenant-pool-event-head time{color:#a6b3cc;font-size:11px;overflow-wrap:anywhere}.tenant-pool-event-badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#473129;color:#ffc7a0;font-size:11px;font-weight:700}.tenant-pool-event.recovered .tenant-pool-event-badge{background:#234033;color:#a9e8c7}.tenant-pool-event.disabled .tenant-pool-event-badge{background:#33384b;color:#c2cbe0}.tenant-pool-event .tenant-pool-event-state{display:block;margin-top:9px;font-size:14px;color:#ffbb92}.tenant-pool-event.recovered .tenant-pool-event-state{color:#a9e8c7}.tenant-pool-event.disabled .tenant-pool-event-state{color:#c2cbe0}.tenant-pool-event dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0}.tenant-pool-event dl>div{min-width:0}.tenant-pool-event dt{font-size:11px;color:#8e9bb5}.tenant-pool-event dd{margin:2px 0 0;color:#e5ebfa;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.tenant-pool-event .event-balance dd{color:#c6b7ff;font-weight:700}
.tenant-pool-stop-state{display:grid;gap:7px;margin-top:10px;padding:12px;border:1px solid #4c6659;border-radius:9px;background:#182a25}.tenant-pool-stop-state strong{color:#a9e8c7}.tenant-pool-stop-state span{color:#c1cbe0;font-size:12px;line-height:1.5}.tenant-pool-stop-state.is-stopped{border-color:#e18679;background:#392428}.tenant-pool-stop-state.is-stopped strong{color:#ffd0c7}.tenant-pool-stop-state.is-disabled{border-color:#424a5d;background:#202531}.tenant-pool-stop-state.is-disabled strong{color:#c4cbda}.tenant-pool-stop-state button{justify-self:start;margin-top:4px;background:#f0a082;border-color:#ffd0bc;color:#26141b}.tenant-pool-event.stopped .tenant-pool-event-badge{background:#5b3032;color:#ffd0c7}.tenant-pool-event.resumed .tenant-pool-event-badge{background:#234033;color:#a9e8c7}.tenant-pool-event.stopped .tenant-pool-event-state{color:#ffd0c7}.tenant-pool-event.resumed .tenant-pool-event-state{color:#a9e8c7}
.control-overview{border:2px solid #9b83f0;border-radius:14px;background:#1c1b31;padding:22px;margin:18px 0 24px}.control-overview h2{font-size:22px;margin:0}.control-overview>p{margin:6px 0 16px}.control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.control-card{border:1px solid;border-radius:11px;padding:18px;display:flex;flex-direction:column;gap:10px}.control-card small{font-size:14px;font-weight:700}.control-card strong{font-size:22px;line-height:1.25}.control-card p{margin:0;flex:1}.control-card button{align-self:flex-start}.control-card.is-on,.pool-mail-state.is-on{background:#173229;border-color:#428262;color:#aaf0c8}.control-card.is-off,.pool-mail-state.is-off{background:#32242b;border-color:#986272;color:#ffd1d6}.pool-mail-state{display:grid;gap:5px;border:1px solid;border-radius:9px;padding:12px;margin-top:10px}.pool-mail-state strong{color:inherit}.pool-mail-state span{font-size:12px}.control-switch{display:flex;align-items:center;gap:14px;border:1px solid #65518d;border-radius:10px;padding:13px 16px;background:#241e38;color:#f0eaff;margin:16px 0}.control-switch>span{flex:1;line-height:1.45}.control-switch strong{display:block;font-size:16px}.control-switch small{display:block;color:#b7afd0;font-size:12px}.control-switch input[type=checkbox]{width:24px;height:24px;flex:none;accent-color:#8a6cfa}.control-switch button{flex:none}@media(max-width:1250px){.control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.control-grid{grid-template-columns:1fr}}@media(max-width:620px){.control-switch{flex-wrap:wrap}.control-switch>span{flex-basis:100%}}
.mail-draft-ready{color:#a9e8c7}
