:root{color-scheme:light;--ink:#20201e;--muted:#73736e;--line:#e4e4e0;--background:#f7f7f5;--accent:#0d8a62;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--background);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:600;letter-spacing:-.025em}h2{font-size:18px}a{color:var(--accent);text-underline-offset:3px}a:hover{text-decoration:none}[hidden]{display:none!important}:focus-visible{outline:2px solid #4d84c4;outline-offset:3px}.muted{color:var(--muted);line-height:1.6}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:6px}.app-shell{display:grid;grid-template-columns:228px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;display:flex;flex-direction:column;padding:18px 12px;background:#f4f4f1;border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;height:42px;padding:0 8px;font-size:15px;font-weight:600}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--ink);color:white;font-size:11px;font-weight:700}.sidebar nav{display:grid;gap:4px;margin-top:28px}.nav-item{display:flex;align-items:center;gap:13px;min-height:43px;padding:10px 12px;border:0;border-radius:7px;color:#62625d;background:transparent;text-align:left;font-size:17px}.nav-item span{font-size:14px}.nav-item:hover{background:#eaeae6}.nav-item.active{background:#e5e5e1;color:var(--ink);font-weight:600}.sidebar-bottom{margin-top:auto;padding:14px 8px}.quiet{border:0;background:transparent;color:var(--muted);padding:10px 0}.quiet:hover{color:var(--accent)}main{grid-column:2;min-width:0}.topbar{height:90px;padding:18px 34px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fafaf9;position:sticky;top:0;z-index:2}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:500;background:#f0f0ed;color:#62625d;white-space:nowrap}.badge.good{background:#e8f4ed;color:#21714d}.badge.warn{background:#fff2d9;color:#856019}.badge.bad{background:#fbeaea;color:#a03430}.panel{padding:26px 34px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.toolbar>p{font-size:13px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--accent);background:var(--accent);color:white;border-radius:9px;min-height:36px;padding:8px 13px;font-size:13px;white-space:nowrap}.btn:hover{background:#087551}.btn.secondary{color:var(--accent);background:#fff}.btn.secondary:hover{background:#edf7ef}.btn.danger{background:#d92020;border-color:#d92020;color:white}.btn:disabled{background:#e5e7eb;border-color:#d1d5db;color:#737b84;cursor:not-allowed}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.metric-label{font-size:13px;color:var(--muted)}.metric-number{display:block;font-size:32px;font-weight:600;margin-top:15px;letter-spacing:-.04em}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.card h2{margin-bottom:16px}.card p+p{margin-top:12px}.card .badge{margin-top:8px}.section-title{margin:26px 0 14px;font-size:16px}.table-wrap{background:white;border:1px solid var(--line);border-radius:12px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{background:#f8f8f6;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600}th,td{padding:16px;border-bottom:1px solid var(--line);vertical-align:middle}td{max-width:380px;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfcfa}td .actions{min-width:145px}.primary-cell{font-weight:550}.secondary-line{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.45}.empty{padding:55px 25px;text-align:center;background:#fff;border:1px dashed #d8d8d1;border-radius:12px;color:var(--muted);line-height:1.7}.empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:7px}.notice{padding:12px 15px;border-radius:8px;background:#e8f4ed;color:#21714d;margin-bottom:18px;font-size:13px}.notice.error{background:#fbeaea;color:#a03430}.error{font-size:13px;color:#a03430;line-height:1.5;overflow-wrap:anywhere}.error:empty{display:none}.loading{color:var(--muted);padding:42px;text-align:center}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(440px,100%);display:grid;gap:20px;background:white;padding:36px;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 35px #20201e06}.login-card .eyebrow{margin-bottom:-14px}.login-card .brand-mark{width:44px;height:44px}.login-card>p{font-size:14px}label{display:grid;gap:8px;font-size:13px;font-weight:500}input,select{width:100%;padding:10px 12px;min-height:42px;border:1px solid #d9d9d4;border-radius:8px;background:white;color:var(--ink)}input:disabled,select:disabled{background:#f1f1ee}input::placeholder{color:#95958d}dialog{width:min(660px,calc(100vw - 32px));height:min(660px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:18px;background:#f5f5f7;color:var(--ink);box-shadow:0 28px 80px #0000003d;overflow:hidden}dialog::backdrop{background:#17262e6b}dialog form{display:flex;flex-direction:column;height:100%}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:white;border-bottom:1px solid var(--line);flex:none}.icon-button{background:transparent;border:0;font-size:26px;color:var(--muted);width:32px;height:32px}.dialog-body{padding:24px;display:grid;align-content:start;gap:19px;flex:1;overflow:auto;min-height:0}.dialog-footer{background:white;border-top:1px solid var(--line);padding:14px 22px;display:grid;gap:12px;flex:none}.dialog-footer .actions{justify-content:flex-end}.help{font-size:12px;color:var(--muted);line-height:1.5}.search{max-width:350px;margin-bottom:14px}.inline-check{display:flex;align-items:center;gap:10px}.inline-check p{font-size:12px}.connection-lines{display:grid;gap:12px;font-size:13px}.connection-lines>div{display:flex;justify-content:space-between;gap:15px}pre{white-space:pre-wrap;font:inherit;margin:0;max-height:150px;overflow:auto}#content[aria-busy=true]{opacity:.6}@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,1fr)}.panel{padding:22px}.topbar{padding:18px 22px}.toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:700px){.app-shell{display:block}.sidebar{position:static;width:auto;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar nav{display:flex;overflow:auto;margin-top:12px;gap:4px}.nav-item{flex:none;min-height:38px;padding:8px 10px}.nav-item span{font-size:12px}.sidebar-bottom{display:none}.topbar{position:static;height:78px;padding:16px}.panel{padding:18px 14px}.metrics{gap:10px}.card{padding:16px}.metric-number{font-size:28px}.toolbar{gap:12px}.actions .btn{font-size:12px}.login-card{padding:25px}.dialog-body{padding:18px}th,td{padding:13px}dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}
@media(max-width:700px){.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;padding:2px 8px 0}.sidebar-bottom .quiet{padding:6px 0}}

/* Оболочка и масштаб компонентов по примеру MaxBot. */
:root{font-size:14px;line-height:1.5}
body{height:100dvh;overflow:hidden}
.app-shell{height:100dvh;min-height:0}
.sidebar{padding:29px 15px 20px}
.brand{height:auto;padding:0;margin:0 10px 40px;gap:11px}
.brand-mark{width:39px;height:39px;border-radius:11px;flex:none}
.brand-name{font-size:22px;letter-spacing:-.7px;line-height:1.15}
.brand-sub{display:block;font-size:9px;letter-spacing:1.8px;font-weight:600;margin-top:4px;color:var(--muted)}
.sidebar nav{margin-top:0;gap:5px}
.nav-item{min-height:42px;padding:11px 13px;gap:11px;font-size:13px;font-weight:500;margin:0}
.nav-item span{font-size:13px}
.nav-item.active{background:white;box-shadow:0 1px 3px #20201e0a;font-weight:500}
.nav-item.active .icon{color:var(--accent)}
.icon{display:inline-flex;width:18px;height:18px;flex:none;vertical-align:middle}
.icon svg{width:100%;height:100%}
.brand-mark .icon{width:23px;height:23px}
.sidebar-bottom{border-top:1px solid var(--line);padding:14px 7px 0}
.sidebar-bottom .small{font-size:10px}
main{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:68px;min-height:68px;padding:0 36px;background:#ffffff70;position:static;flex:none}
.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#92928b}
.breadcrumb strong{color:#50504a;font-weight:500}
.panel{padding:34px 36px 24px;overflow:auto;min-height:0;flex:1;scrollbar-gutter:stable}
.toolbar{align-items:center;margin-bottom:29px;gap:20px}
h1{font-size:29px;letter-spacing:-.8px;font-weight:650;line-height:1.35}
h2{font-size:16px;font-weight:650}
.page-heading p{font-size:13px;margin-top:7px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:6px;padding:9px 13px;font-size:12px;font-weight:550}
.btn.secondary{border-color:#deded8;color:#363630}
.btn.secondary:hover{background:#f5f5f2;border-color:#bcbcb4}
.btn.danger{color:#b63c3c;background:#fff7f6;border-color:#efd4d0}
.card{border-radius:10px;padding:23px;box-shadow:0 2px 2px #20201e01}
.metrics{margin-bottom:25px}
.metric-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}
.metric-label .icon{color:#91918a;width:17px;height:17px}
.metric-number{font-size:33px;line-height:1.2;margin:19px 0 10px;font-weight:600;letter-spacing:-1px}
.card>h2{padding-bottom:10px;border-bottom:1px solid #efefeb;margin-bottom:20px}
.card>.muted{font-size:13px}
.table-wrap{border-radius:10px}
table{font-size:12px}th{text-transform:none;letter-spacing:0;font-size:10px;background:#fafaf8;font-weight:550;padding:13px 21px}td{padding:17px 21px;color:#66665f;border-color:#efefeb}.primary-cell{color:var(--ink)}
.badge{font-size:10px;padding:4px 7px;border-radius:4px;font-weight:550}
.badge.good{color:#0d8a62;background:#eaf5ee}.badge.bad{color:#b64b41;background:#fcf0ed}
input,select{font-size:12px;border-radius:6px}.search{max-width:320px}
.workspace-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 36px;color:#92928b;font-size:10px;flex:none;background:var(--background)}
:focus-visible{outline-color:#58b899}
@media(max-width:1000px){.panel{padding:28px 24px}.topbar{padding:0 24px}.toolbar{flex-direction:row;align-items:flex-start}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-footer{padding:12px 24px}}
@media(max-width:700px){.app-shell{display:flex;flex-direction:column}.sidebar{position:static;width:100%;padding:12px;flex:none}.brand{margin:0 4px 12px}.brand-mark{width:32px;height:32px}.brand-name{font-size:18px}.brand-sub{display:inline;font-size:12px;margin-left:5px}.sidebar nav{margin:0;display:flex;overflow:auto}.nav-item{width:auto;flex:none;padding:8px 10px;min-height:38px}.sidebar-bottom{display:none}main{height:auto;flex:1;min-height:0}.topbar{height:54px;min-height:54px;padding:0 16px}.breadcrumb{font-size:11px;gap:7px}.panel{padding:23px 16px}.toolbar{flex-wrap:wrap;gap:14px;margin-bottom:23px}h1{font-size:25px}.card{padding:16px}.metric-label{font-size:11px}.metric-number{font-size:29px}.workspace-footer{padding:10px 16px}.workspace-footer span:last-child{display:none}.sidebar-bottom:has(.quiet:not([hidden])){display:flex;padding:4px 7px}.sidebar-bottom:has(.quiet:not([hidden])) p{display:none}}

.table-wrap table{min-width:760px}

.sidebar-bottom:has(#logout[hidden]){display:none}

.suggestions{max-height:200px;overflow:auto;background:white;border:1px solid var(--line);border-radius:6px;padding:4px}.suggestions .btn.suggestion{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;background:white;color:var(--ink);font-weight:400}.suggestions .suggestion:hover,.suggestions [aria-selected="true"]{background:#eaf5ee!important}.suggestions p{padding:8px}
