:root{--bg:#f6f7f9;--fg:#1d2330;--muted:#6b7280;--border:#e3e6eb;--accent:#2f5d8a;--danger:#c0392b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button{font:inherit;border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:6px;padding:6px 12px}button:hover{border-color:var(--muted)}button:disabled{opacity:.5;cursor:default}button.danger{color:var(--danger)}input,select{font:inherit;border:1px solid var(--border);background:#fff;border-radius:6px;padding:6px 8px}input[type=color]{width:36px;height:28px;padding:0}input[type=checkbox]{width:16px;height:16px}table{border-collapse:collapse;background:#fff;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:6px 8px}th{color:var(--muted);font-size:12px;font-weight:600}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f0f4f8}code{font-size:12px}.shell{min-height:100vh;display:flex}aside{border-right:1px solid var(--border);background:#fff;flex-direction:column;flex:none;gap:2px;width:220px;height:100vh;padding:16px 10px;display:flex;position:sticky;top:0}aside a{color:var(--fg);border-radius:6px;padding:7px 10px;text-decoration:none}aside a.active{color:var(--accent);background:#e8eef5;font-weight:600}aside .spacer{flex:1}.brand{padding:4px 10px 14px;font-weight:700}main{flex:1;min-width:0;padding:20px 24px}.section{border:1px solid var(--border);background:#fff;border-radius:10px;margin-bottom:16px;padding:16px}.section-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.section-head h2{margin:0;font-size:17px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.between{justify-content:space-between}.col{flex-direction:column;gap:8px;display:flex}.muted{color:var(--muted)}.small{font-size:12px}.err-text{color:var(--danger)}.tiles{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin-bottom:16px;display:grid}.tile{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.tile span{color:var(--muted);font-size:12px}.tile b{font-size:22px}.tile small{color:var(--muted)}.chart{margin:12px 0}.chart-title{margin-bottom:4px;font-size:13px}.bars{border-bottom:1px solid var(--border);align-items:flex-end;gap:2px;height:90px;display:flex}.bar{background:var(--accent);opacity:.8;border-radius:2px 2px 0 0;flex:1;min-height:1px}.cards{flex-wrap:wrap;gap:12px;display:flex}.card{border:1px solid var(--border);cursor:pointer;border-radius:8px;flex-direction:column;gap:6px;padding:10px;display:flex}.card:hover{border-color:var(--accent)}.badge{color:var(--accent);background:#e8eef5;border-radius:4px;padding:1px 6px;font-size:11px}.badge.off{color:var(--danger);background:#fbe9e7}.editor{border:1px dashed var(--border);border-radius:8px;flex-wrap:wrap;align-items:flex-start;gap:24px;margin-bottom:12px;padding:12px;display:flex}.panel{border:1px solid var(--accent);background:#fbfcfe;border-radius:8px;margin:12px 0;padding:12px}.login{border:1px solid var(--border);text-align:center;background:#fff;border-radius:12px;max-width:420px;margin:60px auto;padding:24px}.login form{flex-direction:column;align-items:center;gap:10px;display:flex}.flash{background:var(--fg);color:#fff;border-radius:8px;max-width:420px;padding:10px 14px;position:fixed;bottom:20px;right:20px}.flash.err{background:var(--danger)}.modal-back{z-index:50;background:#141a2673;justify-content:center;align-items:flex-start;padding:4vh 16px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:12px;width:min(980px,100%);max-height:92vh;padding:16px 20px;overflow:auto;box-shadow:0 12px 40px #00000040}.modal-head{z-index:1;background:#fff;justify-content:space-between;align-items:center;gap:12px;padding:4px 0 8px;display:flex;position:sticky;top:-16px}.modal-head h3{margin:0}.modal h4{margin:18px 0 6px}.scroll-box{border:1px solid var(--border);border-radius:6px;max-height:214px;overflow:auto}.scroll-box table{border:0}.scroll-box th{z-index:1;background:#fff;position:sticky;top:0}.kv td:first-child{color:var(--muted);width:180px}.text-input{width:min(420px,100%)}
