:root{--bg:#f8fafc;--card:#fff;--line:#dbe5f2;--text:#10213d;--muted:#6b7890;--blue:#4167b2;--green:#72c647;--orange:#f7941d;--accent:#2d72ff;--shadow:0 12px 28px rgba(11,27,54,.045)}
*{box-sizing:border-box}
html,body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text);font-weight:400}
body *{font-weight:400}
strong,b{font-weight:500}
a{text-decoration:none;color:inherit}

.login-body{min-height:100vh;display:grid;place-items:center;background:#eef2f7}
.login-card{width:min(420px,90vw);background:#fff;border:1px solid #d7e2f1;border-radius:20px;padding:32px;box-shadow:var(--shadow)}
.install-card{width:min(680px,92vw)}
.mio-logo{width:165px;height:auto;display:block;margin-bottom:18px}
.login-card h1{color:var(--blue);font-size:30px;margin:10px 0 6px;font-weight:500}
.login-card p{color:#34507d;margin:0 0 24px}
.login-card label,.form-panel label{display:block;margin:14px 0 8px;font-size:14px;font-weight:500}
.login-card input,.form-panel input{width:100%;height:52px;border:1px solid #cbd7e8;border-radius:11px;padding:0 14px;font-size:16px;background:#fff}
.login-card input:focus{outline:2px solid #0876ff;border-color:#0876ff}
.primary{border:0;background:var(--green);color:white;border-radius:11px;padding:15px 22px;font-weight:500;width:100%;cursor:pointer}
.alert{padding:12px;border-radius:10px;margin-bottom:15px}
.alert.bad{background:#ffe9e9;color:#a51616}

.sidebar{position:fixed;inset:0 auto 0 0;width:285px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);border-right:1px solid #d8e2ee;padding:34px 18px;display:flex;flex-direction:column}
.side-logo{width:150px;margin:0 0 34px 16px}
nav{display:flex;flex-direction:column;gap:10px}
nav a{height:52px;border:1px solid #d9e3ef;border-radius:10px;display:flex;align-items:center;gap:14px;padding:0 16px;font-weight:400;color:#233650;background:#fff}
nav a.active{background:#eaf3ff;border-color:#b7d1f8;color:#2459b5;font-weight:500}
.profile{margin-top:auto;border:1px solid #d9e3ef;border-radius:12px;background:#fff;padding:12px;display:flex;gap:12px;align-items:center}
.avatar,.round{width:42px;height:42px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:500}
.profile small{display:block;color:var(--muted)}

.main{margin-left:285px;min-height:100vh}
.top{height:62px;border-bottom:1px solid #d8e2ee;background:rgba(255,255,255,.78);display:flex;align-items:center;justify-content:space-between;padding:0 34px}
.hamb{font-size:24px}
.top-icons{display:flex;align-items:center;gap:22px}

.page-head{padding:34px 36px 18px}
.page-head h1{font-size:32px;margin:0;font-weight:500;letter-spacing:-.03em}
.page-head p{margin:8px 0 0;color:var(--muted)}

.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:24px;padding:0 36px 24px}
.card,.panel{background:var(--card);border:1px solid #dce5f0;border-radius:16px;box-shadow:var(--shadow)}
.metric{min-height:135px;padding:18px 20px;display:grid;grid-template-columns:58px 1fr;align-content:center;gap:0 16px}
.metric i{grid-row:1/4;width:52px;height:52px;border-radius:18px;display:grid;place-items:center;font-style:normal;font-size:24px}
.metric span{color:#52617a;font-weight:400}
.metric strong{font-size:29px;font-weight:500;letter-spacing:-.04em;color:#07162f}
.metric small{color:var(--muted)}
.blue{background:#e7f0ff;color:#3273ff}.green{background:#e5f9ec;color:#18aa48}.orange{background:#fff0df;color:#ff8500}.purple{background:#f0e9ff;color:#7c4dff}
.bar{grid-column:2;height:7px;background:#e8edf5;border-radius:20px;margin-top:8px}.bar em{display:block;height:100%;background:var(--green);border-radius:20px}

.grid{display:grid;grid-template-columns:2fr 1.2fr 1.2fr;gap:24px;padding:0 36px 28px}
.panel{padding:22px}
.wide{grid-column:span 2}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.panel h2{margin:0 0 15px;font-size:22px;font-weight:500;letter-spacing:-.02em}
.panel-head a,.button{border:1px solid #d6e2f1;border-radius:10px;padding:10px 15px;background:#fff;color:#1d58c7;font-weight:500}
.button.small{padding:7px 10px;font-size:13px}

table{width:100%;border-collapse:collapse}
th{font-size:12px;color:#7a879c;text-transform:uppercase;text-align:left;padding:14px 6px;border-bottom:1px solid #e1e7f0;font-weight:500}
td{padding:15px 6px;border-bottom:1px solid #e8edf4;color:#34435a}
.muted{color:var(--muted)!important}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}
.dot.ok{background:#35b65c}.dot.warn{background:#ff8a00}.dot.bad{background:#e44242}.dot.muted{background:#9aa5b5}

.status-list,.simple-list{list-style:none;margin:0;padding:0}
.status-list li,.simple-list li{display:flex;justify-content:space-between;border-bottom:1px solid #e8edf4;padding:14px 0;color:#3b4960}
.status-list b{color:#16a03d;font-weight:500}
.simple-list small{color:#66758e}

.donut{width:180px;height:180px;border-radius:50%;margin:18px auto;background:conic-gradient(#5a91ff 0 68%,#35b65c 68% 84%,#f7941d 84% 94%,#e2e8f0 94%);display:grid;place-items:center;position:relative}
.donut:before{content:"";position:absolute;inset:28px;background:#fff;border-radius:50%}
.donut strong,.donut span{position:relative;z-index:1}
.donut strong{font-weight:500}
.donut span{margin-top:42px;color:var(--muted)}

.empty{padding:30px;border:1px dashed #cbd7e8;border-radius:14px;color:var(--muted);background:#f8fbff}
footer{padding:0 36px 25px;color:#62708a;font-size:13px;display:flex;justify-content:space-between}
@media(max-width:1100px){.cards,.grid{grid-template-columns:1fr}.wide{grid-column:auto}.sidebar{position:static;width:auto}.main{margin-left:0}}.notice{margin:0 36px 20px;padding:13px 16px;border:1px solid #cfe0f4;border-radius:12px;background:#f7fbff;color:#244060}.notice.ok{border-color:#ccebd6;background:#f4fff7}.notice.warn{border-color:#ffd9a6;background:#fff8ee}.notice.bad{border-color:#ffd1d1;background:#fff4f4;color:#9b1c1c}.notice code{display:block;margin:10px 0;padding:12px;border:1px solid #e0e7f0;border-radius:10px;background:#fff;font-size:14px;word-break:break-all}
.narrow-panel{margin:0 36px 28px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}.form-panel select{width:100%;height:52px;border:1px solid #cbd7e8;border-radius:11px;padding:0 14px;font-size:16px;background:#fff}.fit{width:auto;min-width:180px;margin-top:14px}.detail-title{margin:0 36px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.detail-title h2{margin:0;font-size:26px;font-weight:500}.detail-title p{margin:6px 0 0;color:var(--muted)}.detail-actions{display:flex;gap:10px;align-items:center}.detail-actions form{margin:0}.cards-four{grid-template-columns:repeat(4,1fr)}.detail-grid{grid-template-columns:1.4fr 1fr}.data-list{display:grid;grid-template-columns:150px 1fr;gap:10px 18px;margin:0}.data-list dt{color:#6f7d92}.data-list dd{margin:0;color:#253652}.spaced{margin-top:18px}.danger-zone{margin:0 36px 28px;border-color:#ffd1d1}.button.danger{color:#b42318;border-color:#ffc7c7}.row-sub{display:block;color:var(--muted);font-size:12px;margin-top:3px}.pill{display:inline-block;border:1px solid #dce5f0;border-radius:999px;padding:4px 9px;font-size:12px}.pill.ok{background:#f1fff5;color:#16823a;border-color:#c8ecd2}.pill.warn{background:#fff7ec;color:#a85d00;border-color:#ffd9a6}.pill.bad{background:#fff3f3;color:#a51616;border-color:#ffd1d1}.pill.muted{background:#f7f9fc;color:#64748b}
@media(max-width:1100px){.cards-four,.form-grid,.detail-grid{grid-template-columns:1fr}.detail-title{display:block}.detail-actions{margin-top:14px;flex-wrap:wrap}}
