:root{--navy:#0c1627;--blue:#08a5fc;--orange:#fd9501;--bg:#f2f5f9;--card:#fff;--text:#16233a;--muted:#63738c;--border:#dde5ee;--danger:#c62f3b;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:var(--blue)}button{font:inherit;cursor:pointer}input,select,textarea{font:inherit;border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;padding:8px 10px}code{background:#eef3f9;border-radius:4px;padding:0 4px}.layout{min-height:100vh;display:flex}.sidebar{background:var(--navy);color:#e8eef7;flex-direction:column;flex-shrink:0;gap:18px;width:250px;height:100vh;padding:18px 14px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;display:flex}.brand-mark{background:var(--blue);color:#fff;border-radius:10px;place-items:center;width:40px;height:40px;font-weight:800;display:grid}.brand small{color:#9db1cc;display:block}.sidebar nav{flex-direction:column;gap:4px;display:flex}.nav-item{text-align:left;color:#c9d6ea;background:0 0;border:0;border-radius:8px;padding:9px 12px}.nav-item:hover{background:#ffffff14}.nav-item.active{background:var(--blue);color:#fff;font-weight:600}.info-card{background:#ffffff12;border:1px solid #ffffff24;border-radius:10px;margin-top:auto;padding:12px;font-size:.88rem}.info-card p{color:#b8c7dd}.info-card a{color:var(--orange);font-weight:600}.content{flex-direction:column;flex:1;gap:18px;max-width:1020px;padding:22px;display:flex}.panel{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px}.panel-head{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.panel-head h2{margin:0;font-size:1.1rem}.muted{color:var(--muted);font-size:.9rem}.error{color:var(--danger);background:#fdeef0;border-radius:8px;padding:10px 12px}.ok{color:#146c2e;background:#e8f6ec;border-radius:8px;padding:10px 12px}.warn-text{color:var(--danger);font-weight:600}.notice-pending{background:#fff6e8;border:1px solid #ffd9a0;border-radius:10px;padding:12px 14px}.notice-pending p{color:#7a5a17;margin:6px 0 0}.btn{background:var(--orange);color:#fff;border:0;border-radius:9px;padding:9px 18px;font-weight:700}.btn:disabled{opacity:.6;cursor:default}.btn-danger{background:var(--danger)}.btn-ghost{border:1px solid var(--border);color:var(--text);background:0 0;border-radius:8px;padding:6px 12px}.btn-ghost.danger{color:var(--danger);border-color:#f0c4c8}.chip{color:var(--muted);background:#eef3f9;border-radius:999px;padding:1px 9px;font-size:.78rem;display:inline-block}.chip-ok{color:#146c2e;background:#e2f4e7}.chip-warn{color:#9a6206;background:#fdeeda}.rule-list,.card-list,.top-list,.mini-list{margin:0;padding:0;list-style:none}.rule-list>li{border-bottom:1px solid var(--border);justify-content:space-between;gap:14px;padding:12px 0;display:flex}.rule-list>li:last-child{border-bottom:0}.card-list>li{border-bottom:1px solid var(--border);padding:8px 0}.card-list>li:last-child{border-bottom:0}.mini-list>li{padding:3px 0;font-size:.9rem}.row-actions{flex-shrink:0;align-items:flex-start;gap:8px;display:flex}.detail-box{border:1px solid var(--border);background:#f7fafd;border-radius:10px;margin-top:10px;padding:10px 12px}.rule-form{grid-template-columns:1fr 1fr;gap:12px;display:grid}.rule-form label{flex-direction:column;gap:5px;font-size:.9rem;font-weight:600;display:flex}.rule-form label.check{flex-direction:row;align-items:center;gap:8px}.rule-form label.check input{width:auto}.rule-form .span2{grid-column:span 2}.chat-wrap{flex-direction:column;gap:12px;height:calc(100vh - 44px);display:flex}.chat-log{flex-direction:column;flex:1;gap:10px;padding:4px;display:flex;overflow-y:auto}.bubble{background:var(--card);border:1px solid var(--border);border-radius:14px;max-width:78%;padding:10px 14px}.bubble p{margin:4px 0}.bubble.user{background:var(--blue);color:#fff;border-color:var(--blue);align-self:flex-end}.bubble.bot{align-self:flex-start}.chat-form{gap:10px;display:flex}.chat-form input{flex:1}.cmd-list{flex-direction:column;gap:8px;display:flex}.cmd-chip{text-align:left;color:var(--text);background:#f2f8fe;border:1px solid #cfe8fd;border-radius:10px;padding:8px 12px}.cmd-chip small{color:var(--muted);display:block}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;display:grid}.stat-card{border:1px solid var(--border);background:#f7fafd;border-radius:12px;flex-direction:column;gap:2px;padding:14px;display:flex}.stat-value{color:var(--navy);font-size:1.5rem;font-weight:800}.stat-label{color:var(--muted);font-size:.85rem}.delta.up{color:#146c2e;font-size:.82rem}.delta.down{color:var(--danger);font-size:.82rem}.chart{width:100%;height:auto}.dot{border-radius:50%;width:9px;height:9px;display:inline-block}.dot-blue{background:var(--blue)}.dot-orange{background:var(--orange)}.top-list>li{border-bottom:1px solid var(--border);padding:9px 0}.top-list>li:last-child{border-bottom:0}.cal-head{align-items:center;gap:14px;margin-bottom:10px;display:flex}.cal-grid{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.cal-dow{text-align:center;color:var(--muted);font-size:.82rem;font-weight:700}.cal-cell{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:3px;min-height:74px;padding:5px;display:flex}.cal-empty{background:#fafcfe;border-style:dashed}.cal-day{font-size:.82rem;font-weight:700}.cal-item{color:#075e9e;white-space:nowrap;text-overflow:ellipsis;background:#e8f4fe;border-radius:5px;padding:1px 5px;font-size:.72rem;overflow:hidden}.cal-more{color:var(--muted);font-size:.72rem}.page-note{padding:0 4px}@media (width<=760px){.layout{flex-direction:column}.sidebar{width:100%;height:auto;position:static}.sidebar nav{flex-flow:wrap}.content{padding:14px}.rule-form{grid-template-columns:1fr}.rule-form .span2{grid-column:span 1}.bubble{max-width:94%}.chat-wrap{height:auto;min-height:60vh}}.brand-logo{object-fit:contain;background:#fff;border-radius:10px;width:40px;height:40px}.operator-wrap{flex-direction:column;gap:18px;width:100%;display:flex}.operator-wrap h1{margin:0;font-size:1.3rem}.operator-page{width:100%;max-width:1020px;margin:0 auto}
