@font-face{font-family:Montserrat;src:url('montserrat-bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{color-scheme:dark;--canvas:#08121f;--sidebar:#0b1625;--surface:#101e30;--surface-raised:#14243a;--surface-hover:#192c43;--line:#26364b;--line-soft:#1c2d42;--text:#f2f6fc;--muted:#a7b7ca;--quiet:#8e9fb6;--blue:#3778ef;--blue-hover:#4b89ff;--blue-soft:#142e55;--green:#86dfbb;--amber:#f0cd82;--red:#ffb0b4;--radius:14px;--shadow:0 24px 80px #0005}
*{box-sizing:border-box}
html{min-width:320px;min-height:100%;background:var(--canvas);scrollbar-color:#3e526d var(--canvas)}
body{margin:0;min-height:100vh;color:var(--text);background:var(--canvas);font:14px/1.55 'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
button:disabled:hover{transform:none}
a{color:#a9caff;text-underline-offset:3px}
a:hover{color:#d6e6ff}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #83b4ff;outline-offset:3px}
::selection{background:#2459a3;color:#fff}
[hidden]{display:none!important}
img,svg{max-width:100%}
img{display:block}
svg{flex:none;vertical-align:middle}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4{line-height:1.25;letter-spacing:-.025em}
h1{font-family:Montserrat,'Segoe UI',sans-serif;font-size:30px;font-weight:700;margin-bottom:9px}
h2{font-size:19px;font-weight:650;margin-bottom:8px}
h3{font-size:16px;font-weight:650;margin-bottom:8px}
p{margin-bottom:16px}
small{font-size:12px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;z-index:200;top:10px;left:10px;padding:11px 17px;border:1px solid #b5d3ff;border-radius:8px;background:#173861;color:#fff;transform:translateY(-160%);text-decoration:none;font-weight:600}
.skip-link:focus{transform:translateY(0)}
.brand-logo{display:block;width:164px;max-width:100%;height:auto;object-fit:contain}
.eyebrow{display:block;color:#92baff;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;margin-bottom:13px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface-raised);color:var(--text);font-size:13px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn:hover:not(:disabled){background:var(--surface-hover);border-color:#48627f;color:#fff}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 4px 15px #1250b822}
.btn.primary:hover:not(:disabled){background:var(--blue-hover);border-color:var(--blue-hover)}
.btn.secondary{background:transparent}
.btn.danger{background:#331d2b;border-color:#6c3443;color:#ffc1c5}
.btn.danger:hover:not(:disabled){background:#482332;border-color:#a64b5e}
.btn.icon{width:42px;padding:10px;flex:none}
.btn svg{width:17px;height:17px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#d7e2f0;font-size:13px;font-weight:500}
.field>label,.field>span:first-child{font-size:13px;font-weight:600;color:#d7e2f0}
input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-width:0;min-height:44px;border:1px solid #34475e;border-radius:8px;padding:10px 12px;background:#0b1727;color:var(--text);font-weight:400;line-height:1.45;transition:border-color .15s,background .15s}
input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{border-color:#536d8c}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:#79aaff;background:#101f33}
input::placeholder,textarea::placeholder{color:#8295ae;opacity:1}
input[readonly]{color:var(--muted);background:#0c1726}
input[type=checkbox],input[type=radio]{width:17px;height:17px;flex:none;margin:0;accent-color:var(--blue)}
input[type=search]::-webkit-search-cancel-button{cursor:pointer}
textarea{min-height:96px;resize:vertical}
select{padding-right:32px}
option{background:#101e30;color:#f2f6fc}
label{cursor:pointer}
fieldset{border:0;padding:0;margin:0;min-width:0}
.form-hint,.cell-secondary,.page-subtitle{color:var(--muted);font-size:13px;line-height:1.6}
.form-hint{margin:0;font-size:12px}
.inline-check{display:inline-flex;align-items:center;gap:9px;min-height:42px;color:var(--muted);font-size:13px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.form-grid>.full,.form-grid>.wide,.form-grid>fieldset,.form-grid>.notice,.form-grid>.form-error{grid-column:1/-1}
.form-error,.inline-error{color:#ffbdc2;background:#341e2b;border:1px solid #633443;border-radius:8px;padding:12px 14px;line-height:1.55;font-size:13px}
.form-error:empty,.inline-error:empty{display:none}
.notice{display:flex;align-items:flex-start;gap:12px;padding:14px 17px;border:1px solid #304564;background:#12243b;border-radius:10px;color:#bed1ea;font-size:13px;line-height:1.6;margin-bottom:22px}
.notice p:last-child{margin-bottom:0}
.notice:has(>strong){display:block}
.notice>strong{display:block;color:#d6e6fc;font-weight:600;margin-bottom:4px}
.notice>p{margin:4px 0 0}
.notice>div{min-width:0}
.notice>div>strong{display:block;margin-bottom:3px;font-weight:600;color:#d6e6fc}
.notice>div>p{margin:0}
.notice.warning{background:#30291b;border-color:#594c2d;color:#f0d99f}
.notice.danger{background:#311e2a;border-color:#633443;color:#ffbdc2}
.notice.success{background:#142e2b;border-color:#2b5147;color:#a4e5cb}
.badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 9px;border:1px solid #355376;border-radius:5px;background:#132b47;color:#b8d6ff;font-size:11px;font-weight:600;line-height:1.35;white-space:nowrap}
.badge.success{background:#14352d;border-color:#2b5346;color:var(--green)}
.badge.warning{background:#352d1d;border-color:#5b4c2c;color:var(--amber)}
.badge.danger{background:#38202d;border-color:#65404c;color:var(--red)}
.badge.muted{background:#1a2637;border-color:#344153;color:#bcc8d7}
.status-dot{display:inline-block;width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.login-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);min-height:100vh;min-height:100dvh;background:#0b1625}
.login-story{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;overflow:hidden;min-height:100vh;padding:55px clamp(40px,5.5vw,90px);background:radial-gradient(ellipse at 15% 40%,#15376c 0,transparent 62%),linear-gradient(145deg,#10294a,#081421 80%);border-right:1px solid #253b55}
.login-story::before{content:'';position:absolute;inset:0;background-image:linear-gradient(#aecbff05 1px,transparent 1px),linear-gradient(90deg,#aecbff05 1px,transparent 1px);background-size:72px 72px;pointer-events:none;mask-image:linear-gradient(0deg,#000,transparent)}
.login-story::after{content:'';position:absolute;width:550px;height:550px;right:-350px;bottom:-200px;border:1px solid #729fff20;border-radius:50%;box-shadow:0 0 0 70px #729fff07,0 0 0 140px #729fff05;pointer-events:none}
.login-story>*{position:relative;z-index:1}
.login-story .brand-logo{width:182px;margin-bottom:64px}
.login-story h1{font-size:clamp(32px,3.8vw,58px);line-height:1.13;max-width:600px;letter-spacing:-.045em;margin-bottom:24px}
.login-story p{max-width:455px;color:#b8c9e1;font-size:16px;line-height:1.8}
.hero-mark{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border:1px solid #6e9cd24d;border-radius:16px;background:#316ac126;box-shadow:inset 0 1px #ffffff10;margin-bottom:28px;color:#91bcff}
.hero-mark svg{width:32px;height:32px}
.hero-points{display:flex;flex-wrap:wrap;gap:24px;list-style:none;padding:0;margin:34px 0 0;color:#c7d5e7;font-size:12px}
.hero-points li{display:flex;gap:8px;align-items:center}
.hero-points>span{display:flex;align-items:center;gap:8px}
.hero-points>span::before{content:'';display:block;flex:none;width:5px;height:5px;border-radius:50%;background:#7dadf4}
.hero-points svg{width:16px;height:16px;color:#87b4fa}
.login-footer{color:#91a7c2;font-size:12px;margin-top:56px}
.login-footer>span{display:block;margin-top:5px;color:#7f96b2;font-size:11px}
.login-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;min-width:0}
.login-panel>div,.login-panel>section,.login-panel>form,.login-panel>.login-form{width:100%;max-width:390px}
.login-panel h1,.login-panel h2{font-family:Montserrat,'Segoe UI',sans-serif;font-size:29px;line-height:1.3;letter-spacing:-.035em;margin-bottom:10px}
.login-panel .page-subtitle,.login-panel>p{font-size:14px;color:var(--muted);margin-bottom:30px;max-width:390px}
.login-form{display:flex;flex-direction:column;gap:21px}
.hosted-workspace .login-form [hidden]{display:none}
.hosted-workspace #login-panel,.hosted-workspace #account-panel,.hosted-workspace #sign-in{display:grid;gap:18px}
.hosted-workspace #login-panel[hidden],.hosted-workspace #account-panel[hidden]{display:none}
.login-panel>.login-form{display:block}
.login-form>form{display:grid;gap:19px}
.login-form>h2{margin-bottom:11px}
.login-form>.page-subtitle{margin-bottom:28px}
.login-form>.form-hint{margin-top:19px;line-height:1.7}
.login-form>.notice{display:block;position:relative;margin:27px 0 0;padding:13px 15px 13px 30px;font-size:11px;color:#bfd0e7}
.login-form>.notice>.status-dot{position:absolute;top:19px;left:15px;background:#92aacc}
.login-form>.notice>p{font-size:11px;color:#91a7c3;line-height:1.6}
.login-story-content .hero-mark{margin:30px 0 0}
.login-story-content .hero-points{margin-top:24px;gap:15px 20px}
.login-form .btn.primary{width:100%;min-height:46px;margin-top:5px}
.login-form .form-error{margin:0}
.login-panel .login-footer{max-width:390px;line-height:1.7;text-align:left;color:#91a5bf;margin-top:25px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}
.sidebar{position:sticky;top:0;z-index:30;display:flex;flex-direction:column;width:248px;height:100vh;height:100dvh;padding:31px 17px 17px;overflow-y:auto;background:var(--sidebar);border-right:1px solid var(--line-soft)}
.sidebar>.brand-logo,.sidebar>a>.brand-logo{width:158px;margin:0 14px 32px}
.company-switch{display:flex;align-items:center;gap:10px;min-width:0;margin:0 6px 25px;padding:13px 10px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);color:#d8e3f1;font-size:12px}
.company-switch>div{min-width:0}
.company-switch strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.company-switch small{display:block;color:var(--quiet);font-size:11px;margin-top:3px}
.nav-group{display:block;margin:24px 14px 9px;color:#7e93ae;font-size:10px;font-weight:600;line-height:1.5;letter-spacing:.14em;text-transform:uppercase}
.sidebar nav>.nav-group:first-child{margin-top:0}
.sidebar nav>.nav-link{margin-bottom:4px}
.nav-group>.eyebrow,.nav-group>h2{margin:0 13px 8px;color:#7e93ae;font:600 10px/1.5 'Segoe UI',sans-serif;letter-spacing:.14em;text-transform:uppercase}
.nav-link{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:11px 14px;border:1px solid transparent;border-radius:8px;background:transparent;color:#a5b6ce;font-size:13px;font-weight:500;text-decoration:none;text-align:left;transition:color .15s,background .15s,border-color .15s}
.nav-link:hover{background:#13253b;color:#ecf3ff}
.nav-link[aria-current=page]{background:#18345a;border-color:#284c79;color:#eff5ff;font-weight:600}
.nav-link[aria-current=page] .nav-icon{color:#86b4ff}
.nav-icon{display:flex;align-items:center;justify-content:center;width:19px;height:19px;flex:none;color:#849bb8}
.nav-icon svg{width:18px;height:18px}
.sidebar-footer{margin-top:auto;padding-top:24px}
.sidebar-footer .notice{display:block;margin:0 5px 17px;padding:10px 12px;background:#122137;border-color:#283c57;font-size:10px;color:#9bb2d1;line-height:1.65}
.sidebar-footer .badge{font-size:9px;letter-spacing:.06em;text-transform:uppercase}
.sidebar-footer>p{margin:9px 4px 0;font-size:10px;line-height:1.6;color:#7f97b6}
.account{display:flex;align-items:center;gap:11px;min-width:0;padding:15px 7px 3px;border-top:1px solid var(--line-soft)}
.account>div{min-width:0;flex:1}
.account strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.account small{display:block;color:var(--quiet);font-size:11px;margin-top:2px}
.account .btn{background:transparent;border-color:transparent;color:var(--muted);min-height:36px;width:36px;padding:8px}
.avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:35px;height:35px;background:#1e3552;border:1px solid #36506f;border-radius:50%;color:#b8d4ff;font-size:12px;font-weight:600;letter-spacing:.025em}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:100vh;background:radial-gradient(ellipse at 70% 0,#10213b55,transparent 50%),var(--canvas)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:18px 36px;border-bottom:1px solid var(--line-soft);background:#0a1522a6;color:var(--muted);font-size:12px}
.topbar>div{display:flex;align-items:center;gap:12px;min-width:0}
.topbar .badge{font-size:10px}
.topbar .account{padding:0;border:0;flex:none;gap:11px}
.topbar .account .cell-primary{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.topbar .account .cell-secondary{font-size:10px;margin-top:1px}
.topbar .account .btn{width:auto;min-width:76px;min-height:38px;margin-left:5px;padding:8px 12px;border-color:#30445e;border-radius:7px;font-size:11px}
.topbar .account .btn:hover{border-color:#4b698f;background:#172a43}
.menu-toggle{display:none;align-items:center;justify-content:center;min-width:42px;min-height:42px;background:transparent;border:1px solid var(--line);border-radius:8px;color:#d1e3fb}
.menu-toggle svg{width:20px;height:20px}
.sidebar .drawer-close{position:absolute;top:25px;right:9px;width:34px;min-width:34px;min-height:34px;padding:7px;border-color:transparent;background:transparent}
.sidebar .drawer-close:hover{background:#203955;border-color:#3a5575}
.sidebar .drawer-close svg{width:17px;height:17px}
.sidebar-backdrop{display:none}
.workspace>main,.page-content,#page{min-width:0;max-width:1720px;width:100%;padding:32px 36px 48px;margin:0 auto}
.workspace>main{flex:1}
.workspace>main #page{padding:0}
.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 36px;border-top:1px solid var(--line-soft);color:#7089a9;font-size:10px}
.workspace-footer>span{color:#7890ae}
.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:27px}
.page-header>div:first-child{min-width:0}
.page-header .eyebrow{margin-bottom:7px;color:#829fc4;font-size:10px}
.page-header h1{font-size:29px;margin-bottom:7px}
.page-header .page-subtitle{margin:0;max-width:680px}
.page-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;padding-top:4px;flex:none}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}
.stat-card{position:relative;min-width:0;padding:21px 23px 20px;background:linear-gradient(125deg,#13253b,#101e30);border:1px solid #263a54;border-radius:var(--radius);overflow:hidden}
.stat-card>svg,.stat-card>.nav-icon{position:absolute;right:21px;top:21px;width:19px;height:19px;color:#7f9fc9}
.stat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}
.stat-top>.stat-label{padding:0;margin:0}
.stat-top>.nav-icon{width:18px;height:18px;color:#7f9fc9}
.stat-label{color:#a6b9d2;font-size:12px;font-weight:500;margin-bottom:10px;padding-right:23px}
.stat-value{font-size:34px;line-height:1.2;font-weight:600;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:#f2f7ff;margin-bottom:9px}
.stat-trend{display:flex;align-items:center;gap:6px;min-height:17px;color:#8fa9ca;font-size:11px;line-height:1.5}
.stat-card>.stat-trend{margin-bottom:0}
.stat-trend.success{color:var(--green)}
.stat-trend.warning{color:var(--amber)}
.split-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);align-items:start;gap:22px;margin-bottom:23px}
.panel{min-width:0;background:#0e1b2c;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px;overflow:hidden}
.split-grid>.panel{margin-bottom:0}
.panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:21px 23px;border-bottom:1px solid var(--line-soft)}
.panel-header h2{font-size:16px;letter-spacing:-.015em;margin:0}
.panel-header p{margin:5px 0 0;color:var(--muted);font-size:12px}
.panel-header>.btn{min-height:34px;padding:7px 11px;font-size:12px}
.panel-header .eyebrow{font-size:9px;letter-spacing:.11em;color:#7f9bc0;margin:0 0 7px}
.text-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;font-size:11px;font-weight:500;color:#a8caff;text-decoration:none;white-space:nowrap}
.text-link:hover{text-decoration:underline}
.text-link .nav-icon{width:14px;height:14px;color:inherit}
.panel-body{padding:23px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px 23px;border-bottom:1px solid var(--line-soft)}
.toolbar>div{display:flex;align-items:center;gap:10px;min-width:0}
.toolbar .inline-check{min-height:36px}
.search-field{position:relative;min-width:180px;width:min(100%,340px);flex:1}
.search-field>svg{position:absolute;left:12px;top:13px;width:17px;height:17px;color:#819bbd;pointer-events:none}
.search-field input{padding-left:38px;min-height:40px}
.filter-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:19px 23px;border-bottom:1px solid var(--line-soft)}
.filter-form .field{flex:1;min-width:135px;font-size:11px;color:#9cb0ca;font-weight:500}
.filter-form .field>label{font-size:11px;color:#9cb0ca;font-weight:500}
.filter-form input,.filter-form select{min-height:40px;font-size:12px;padding:9px 11px}
.filter-form .btn{min-height:40px}
.filter-form .form-error{flex-basis:100%;margin:0}
.filter-form .search-field{min-width:180px;max-width:none}
.filter-actions{display:flex;gap:8px;align-items:center;padding-top:19px}
.catalogue-filters{display:flex;align-items:flex-end;flex:1;flex-wrap:wrap;gap:13px;min-width:0}
.catalogue-filters>.field{flex:1;min-width:180px;max-width:320px;font-size:11px;color:#9cb0ca;font-weight:500}
.catalogue-filters>.field>input{min-height:40px;font-size:12px}
.catalogue-filters>.inline-check{min-height:40px;font-size:12px;white-space:nowrap}
.catalogue-filters>.btn{min-height:40px}
.toolbar>.btn{align-self:flex-end;min-height:40px}
.table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.data-table,table{width:100%;min-width:650px;border-collapse:collapse;text-align:left;font-size:13px}
.data-table th,table th{height:44px;padding:12px 23px;background:#0c1828;color:#8fa6c4;font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;border-bottom:1px solid var(--line)}
.data-table td,table td{padding:15px 23px;border-bottom:1px solid var(--line-soft);color:#c7d5e7;vertical-align:middle;line-height:1.5}
.data-table tbody tr:last-child td,table tbody tr:last-child td{border-bottom:0}
.data-table tbody tr:hover,table tbody tr:hover{background:#12243a}
.data-table td:first-child,table td:first-child{color:#ebf1fa}
.data-table th:last-child,.data-table td:last-child,table th:last-child,table td:last-child{padding-right:23px}
.data-table .btn,table .btn{min-height:34px;padding:7px 10px;font-size:11px}
.cell-primary{display:block;color:#e8f0fc;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.cell-secondary{display:block;margin-top:3px;font-size:11px;color:#8fa6c4;overflow-wrap:anywhere}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:15px 23px;border-top:1px solid var(--line-soft);color:#93a9c5;font-size:12px}
.pagination>div{display:flex;align-items:center;gap:8px}
.pagination .btn{min-height:34px;padding:7px 11px;font-size:11px}
.tabs{display:flex;align-items:center;gap:24px;overflow-x:auto;border-bottom:1px solid var(--line);padding:0 23px;scrollbar-width:thin}
.tab{position:relative;flex:none;min-height:49px;padding:12px 0;border:0;background:none;color:#9db2ce;font-size:13px;font-weight:500;white-space:nowrap}
.tab:hover{color:#d7e7fd}
.tab[aria-selected=true],.tab[aria-pressed=true]{color:#b2d2ff}
.tab[aria-selected=true]::after,.tab[aria-pressed=true]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:#629dff;border-radius:2px}
.empty-state,.loading-state,.page-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px;padding:46px 24px;text-align:center;color:#9db1cb}
.empty-state>svg{width:36px;height:36px;color:#6386b3;margin-bottom:18px}
.empty-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;margin-bottom:18px;border:1px solid #2b4564;border-radius:13px;background:#142940;color:#80a7db}
.empty-icon .nav-icon{width:24px;height:24px;color:inherit}
.empty-state h2,.empty-state h3{color:#dce8f7;font-size:16px;margin:0 0 8px}
.empty-state p{max-width:410px;font-size:13px;line-height:1.7;margin:0 0 19px}
.empty-state p:last-child{margin-bottom:0}
.empty-state .btn{margin-top:4px}
.page-loading{min-height:400px;gap:17px}
.loading-state{gap:15px}
.spinner{width:24px;height:24px;flex:none;border:2px solid #2c4362;border-top-color:#78aaff;border-radius:50%;animation:spin .8s linear infinite}
.btn .spinner{width:16px;height:16px;border-color:#ffffff45;border-top-color:#fff}
@keyframes spin{to{transform:rotate(360deg)}}
.sync-list{list-style:none;padding:0;margin:0}
.sync-list>li{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 23px;border-bottom:1px solid var(--line-soft)}
.sync-list>li:last-child{border-bottom:0}
.sync-list>li>div{min-width:0}
.sync-list p{font-size:12px;color:var(--muted);margin:5px 0 0}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.detail-list{display:block;font-size:13px;margin:0 0 23px}
.detail-list>div{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);gap:12px 22px;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.detail-list>div:first-child{padding-top:0}
.detail-list>div:last-child{border-bottom:0;padding-bottom:0}
.detail-list dt{color:#9db0c9}
.detail-list dd{color:#e0eaf7;margin:0;overflow-wrap:anywhere}
.detail-list .badge{vertical-align:middle}
.panel-body>.detail-list{padding:0}
.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:21px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.detail-heading h3{margin:0;font-size:19px}
.modal-body>.field{margin-bottom:19px;font-size:13px;color:#d7e2f0;font-weight:500}
.modal-body>.field:last-child{margin-bottom:0}
.modal-body>.form-grid{margin-bottom:19px}
.modal-body>.inline-check{margin-top:0}
.modal-body>.form-hint{margin-top:5px;margin-bottom:18px}
.modal-body>.form-hint:last-child{margin-bottom:0}
dialog.modal{width:min(640px,calc(100% - 40px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow-y:auto;color:var(--text);background:#101e30;border:1px solid #38506e;border-radius:16px;box-shadow:var(--shadow)}
dialog.modal::backdrop{background:#020811bd;backdrop-filter:blur(5px)}
dialog.modal.wide{width:min(860px,calc(100% - 40px))}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 27px 21px;border-bottom:1px solid var(--line)}
.modal-header h2{font-size:21px;margin:0 0 5px}
.modal-header p{color:var(--muted);font-size:13px;margin:0}
.modal-header .btn.icon{margin:-5px -7px 0 0;min-height:36px;width:36px;border-color:transparent;background:transparent}
.modal-body{padding:25px 27px}
.modal-body>.notice:last-child,.modal-body>p:last-child{margin-bottom:0}
.modal-body>.form-error{margin-top:20px;margin-bottom:0}
.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:18px 27px;border-top:1px solid var(--line);background:#0c192a}
.modal-footer .btn{min-width:92px}
.toast{position:fixed;z-index:100;right:25px;bottom:25px;display:flex;align-items:center;gap:12px;max-width:min(450px,calc(100vw - 40px));padding:15px 18px;background:#18382f;color:#d7f8eb;border:1px solid #3a705c;border-radius:11px;box-shadow:0 12px 45px #0007;font-size:13px;line-height:1.6}
.toast.danger{background:#3b2231;border-color:#815063;color:#ffd5da}
.toast .btn{margin:-4px -7px -4px 0;background:transparent;border:0;min-width:32px;min-height:32px;padding:6px;color:inherit}
@media(min-width:1600px){.workspace>main,.page-content,#page{padding-left:48px;padding-right:48px}.topbar{padding-left:48px;padding-right:48px}.stats-grid{gap:20px}.stat-card{padding:24px 27px}.stat-value{font-size:38px}}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split-grid{grid-template-columns:minmax(0,1fr)}.workspace>main,.page-content,#page{padding:27px 26px 40px}.topbar{padding-left:26px;padding-right:26px}.login-story{padding:44px}.login-panel{padding:36px}.login-story h1{font-size:40px}}
@media(max-width:960px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .2s ease;box-shadow:20px 0 60px #0005}.app-shell.nav-open .sidebar{transform:translateX(0)}.app-shell.nav-open .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:25;width:100%;height:100%;background:#020811b3;border:0;padding:0;cursor:default}.menu-toggle{display:inline-flex}.topbar{min-height:71px;padding-top:14px;padding-bottom:14px}.login-shell{grid-template-columns:minmax(0,1fr) minmax(360px,1fr)}.login-story{padding:38px 32px}.login-story h1{font-size:35px}.login-story p{font-size:14px}.hero-points{flex-direction:column;gap:12px}.login-panel{padding:30px}.login-panel h1,.login-panel h2{font-size:26px}}
@media(max-width:740px){.login-shell{display:flex;flex-direction:column}.login-story{min-height:0;padding:26px 28px 30px;border-right:0;border-bottom:1px solid #29415d}.login-story .brand-logo{width:145px;margin-bottom:34px}.login-story h1{max-width:520px;font-size:30px;margin-bottom:12px}.login-story p{max-width:520px;margin-bottom:0;font-size:13px;line-height:1.7}.hero-mark,.hero-points,.login-story>.login-footer{display:none}.login-story .eyebrow{font-size:9px;margin-bottom:10px}.login-panel{align-items:stretch;padding:31px 28px 35px}.login-panel>div,.login-panel>section,.login-panel>form,.login-panel>.login-form,.login-panel>p,.login-panel .login-footer{max-width:100%}.login-panel h1,.login-panel h2{font-size:24px}.login-panel .page-subtitle{margin-bottom:23px}.login-footer{margin-top:25px}.page-header{gap:18px;margin-bottom:23px}.page-header h1{font-size:25px}.page-actions{gap:7px}.page-actions .btn{padding:9px 12px}.detail-grid{grid-template-columns:minmax(0,1fr);gap:23px}.form-grid{gap:16px}.filter-form{gap:12px;padding:17px 20px}.filter-form .field{min-width:calc(50% - 12px)}.filter-form>.btn{flex:1}.panel-header{padding:18px 20px}.toolbar{padding:16px 20px}.data-table th,.data-table td,table th,table td{padding-left:20px;padding-right:20px}.pagination{padding:14px 20px}.modal-header{padding:22px}.modal-body{padding:22px}.modal-footer{padding:17px 22px}}
@media(max-width:540px){body{font-size:14px}.workspace>main,.page-content,#page{padding:24px 17px 35px}.topbar{padding:12px 17px;gap:10px}.topbar>div{gap:9px}.topbar .badge{font-size:9px;padding:4px 6px}.topbar .account .avatar{width:30px;height:30px}.page-header{flex-direction:column;gap:16px}.page-header h1{font-size:25px}.page-header .page-subtitle{font-size:12px;line-height:1.7}.page-actions{width:100%;justify-content:flex-start;padding:0}.page-actions .btn{min-height:42px}.stats-grid{gap:10px;margin-bottom:20px}.stat-card{padding:17px 15px;border-radius:11px}.stat-card>svg,.stat-card>.nav-icon{right:14px;top:16px;width:15px;height:15px}.stat-label{font-size:11px;line-height:1.5;min-height:32px;margin-bottom:8px;padding-right:15px}.stat-value{font-size:29px;margin-bottom:7px}.stat-trend{font-size:10px;line-height:1.5}.notice{padding:12px 14px;font-size:12px;gap:9px;margin-bottom:20px}.panel{border-radius:11px;margin-bottom:20px}.panel-header{padding:17px}.panel-header h2{font-size:15px}.panel-header>.btn{font-size:11px}.panel-body{padding:18px}.toolbar{padding:14px 17px;align-items:stretch;gap:10px}.toolbar>div{flex-wrap:wrap;gap:8px}.search-field{width:100%;flex-basis:100%}.filter-form{padding:16px 17px;gap:13px 10px}.filter-form input,.filter-form select{font-size:16px;min-height:44px}.filter-form>.btn{min-height:44px}.filter-form .field{min-width:calc(50% - 10px)}.filter-form .search-field{flex-basis:100%}.data-table th,table th{font-size:9px;padding:12px 17px}.data-table td,table td{padding:14px 17px;font-size:12px}.data-table .btn,table .btn{min-height:40px}.data-table th:last-child,.data-table td:last-child,table th:last-child,table td:last-child{padding-right:17px}.cell-primary{font-size:12px}.cell-secondary{font-size:10px}.pagination{padding:13px 17px;font-size:11px}.pagination .btn{min-height:40px}.tabs{gap:21px;padding:0 17px}.tab{min-height:46px;font-size:12px}.empty-state,.loading-state{min-height:240px;padding:35px 21px}.empty-state p{font-size:12px}.sync-list>li{padding:16px 17px}.form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.form-grid>.full,.form-grid>.wide,.form-grid>fieldset,.form-grid>.notice,.form-grid>.form-error{grid-column:auto}.field input,.field select,.field textarea,.search-field input{font-size:16px;min-height:44px}.form-hint{font-size:11px}.detail-list{grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr);gap:13px 15px;font-size:12px}dialog.modal,dialog.modal.wide{width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.modal-header{padding:20px 19px 17px}.modal-header h2{font-size:19px}.modal-header p{font-size:12px}.modal-body{padding:20px 19px}.modal-footer{padding:15px 19px;flex-wrap:wrap}.modal-footer .btn{flex:1;min-height:44px}.toast{right:14px;left:14px;bottom:14px;max-width:none;padding:13px 15px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.spinner{border-color:#6ea7ff}}
@media(forced-colors:active){.btn,.badge,.nav-link[aria-current=page],.panel,.stat-card,.notice,.sidebar,.topbar,input,select,textarea{border-color:CanvasText}.nav-link[aria-current=page]{outline:2px solid Highlight}.status-dot{background:CanvasText}}
@media(min-width:1600px){.workspace-footer{padding-left:48px;padding-right:48px}}
@media(max-width:1200px){.workspace-footer{padding-left:26px;padding-right:26px}.toolbar{align-items:flex-end}.catalogue-filters{gap:10px}.catalogue-filters>.field{min-width:160px}}
@media(max-width:960px){.sidebar{visibility:hidden;transition:transform .2s ease}.app-shell.nav-open .sidebar{visibility:visible}.sidebar nav{padding-bottom:18px}}
@media(max-width:740px){.catalogue-filters{flex-basis:100%}.catalogue-filters>.field{max-width:none}.toolbar>.btn{margin-top:1px}.filter-actions{padding-top:0}.notice:has(>strong){font-size:12px}.notice>strong{margin-bottom:5px}}
@media(max-width:540px){.topbar-label{display:none}.topbar .account{gap:9px}.topbar .account .cell-primary{max-width:125px;font-size:11px}.topbar .account .cell-secondary{font-size:9px}.topbar .account .btn{min-width:68px;min-height:40px;margin-left:1px;padding:8px 10px;font-size:11px}.topbar .account .avatar{width:31px;height:31px;font-size:10px}.stat-top{gap:7px;margin-bottom:8px}.stat-top>.stat-label{padding:0}.stat-top>.nav-icon{width:15px;height:15px;margin-top:2px}.catalogue-filters{gap:12px 10px}.catalogue-filters>.field{min-width:100%;max-width:100%}.catalogue-filters>.field>input{min-height:44px;font-size:16px}.catalogue-filters>.inline-check{min-height:44px;flex:1}.catalogue-filters>.btn{min-height:44px}.toolbar>.btn{width:100%;min-height:44px;margin-top:2px}.filter-actions{width:100%;gap:10px}.filter-actions>.btn{flex:1;min-height:44px}.detail-list>div{grid-template-columns:minmax(88px,.8fr) minmax(0,1.2fr);gap:10px 15px;padding:11px 0}.detail-heading h3{font-size:17px}.detail-heading{padding-bottom:17px;margin-bottom:17px}.workspace-footer{padding:17px;flex-wrap:wrap;gap:4px 14px;font-size:9px}.workspace-footer>span{white-space:nowrap}.panel-header .text-link{min-height:40px}}
@media(max-width:360px){.topbar .account .avatar{display:none}.topbar .account .cell-primary{max-width:118px}.login-story{padding:24px}.login-panel{padding:28px 24px}.login-story h1{font-size:27px}.stat-value{font-size:27px}}
/* Protected hosted console. Keep the local development console's layout independent. */
.hosted-workspace .login-story .brand-logo{width:164px}
.hosted-workspace #message:empty{display:none}
.hosted-workspace #message{margin-top:20px;padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.hosted-workspace .hosted-connection{margin-top:16px;padding:13px 16px;border:1px solid #78653a;border-radius:8px;background:#30291b;color:#f0d99f}
.hosted-workspace.is-signed-in .login-shell{display:block;min-height:100dvh}
.hosted-workspace.is-signed-in .login-story{min-height:0;display:flex;flex-direction:row;align-items:center;padding:24px max(28px,calc((100vw - 1120px)/2));border-right:0;border-bottom:1px solid var(--line);background:#0b1625}
.hosted-workspace.is-signed-in .login-story .brand-logo{width:128px;margin:0}
.hosted-workspace.is-signed-in .login-story-content{display:none}
.hosted-workspace.is-signed-in .login-story .login-footer{display:block;margin:0;font-size:12px}
.hosted-workspace.is-signed-in .login-story::before,.hosted-workspace.is-signed-in .login-story::after{display:none}
.hosted-workspace.is-signed-in .login-panel{display:block;max-width:1176px;margin:0 auto;padding:40px 28px 64px}
.hosted-workspace.is-signed-in .login-panel>.login-form{max-width:none}
.hosted-workspace.is-signed-in #account-panel{gap:24px}
.hosted-account-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:4px}
.hosted-account-header>div:first-child{min-width:0}
.hosted-account-header h2{overflow-wrap:anywhere}
.hosted-account-header .eyebrow{margin-bottom:10px}
.hosted-account-actions{display:flex;flex-wrap:wrap;gap:10px;flex:none}
.hosted-account-actions .btn{min-height:44px}
.hosted-account-card{padding:24px 28px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.hosted-account-card h3{font-size:16px;margin-bottom:20px}
.hosted-account-card .detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 32px;margin-bottom:20px}
.hosted-account-card .detail-list>div{display:block;border:0;padding:0}
.hosted-account-card .detail-list dt{margin-bottom:5px}
.hosted-account-card .detail-list dd{font-size:16px;font-weight:600}
.hosted-workspace .ingress-billing{max-width:none}
.hosted-role-note{padding:18px 22px;border:1px solid var(--line);border-radius:10px}
@media(max-width:740px){.hosted-account-header{flex-direction:column;gap:20px}.hosted-workspace.is-signed-in .login-panel{padding:28px 20px 48px}.hosted-workspace.is-signed-in .login-story{padding:20px}.hosted-account-actions{width:100%}.hosted-account-actions .btn{flex:1}.hosted-account-card{padding:22px}.hosted-account-card .detail-list{grid-template-columns:1fr;gap:18px}}
@media(max-width:360px){.hosted-workspace.is-signed-in .login-panel{padding-left:16px;padding-right:16px}.hosted-workspace.is-signed-in .login-story .login-footer{font-size:10px}.hosted-account-card{padding:18px}}
/* Connected management portal: shared visual language, independent login and workspace layout. */
.portal-workspace.is-signed-in .login-story{display:none}
.portal-workspace #account-panel{gap:0}
.portal-workspace .sidebar-footer{margin-top:auto}
.portal-workspace .sidebar-footer p{font-size:11px;color:var(--muted);margin:10px 0 0}
.portal-workspace .topbar .btn{min-height:44px}
.portal-workspace .portal-site-field{min-width:230px;max-width:340px}
.portal-workspace .portal-site-field select{font-size:13px}
.portal-workspace .portal-checked{margin:-10px 0 23px;font-size:11px;color:var(--quiet)}
.portal-workspace .portal-messages{position:fixed;z-index:90;bottom:18px;right:22px;width:min(450px,calc(100vw - 36px));pointer-events:none}
.portal-workspace #message,.portal-workspace #connection{margin:8px 0 0;padding:14px 18px;border-radius:10px;background:#173251;border:1px solid #49739d;color:#e4f0ff;box-shadow:0 12px 35px #0005;font-size:13px}
.portal-workspace #connection{background:#30291b;border-color:#78653a;color:#f0d99f}
.portal-workspace .panel-header{gap:18px;align-items:center}
.portal-workspace .panel-header>div{min-width:0}
.portal-workspace .panel-header .btn{flex:none}
.portal-workspace .portal-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}
.portal-workspace .portal-stat{padding:22px 24px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(135deg,#13253c,#0e1b2c)}
.portal-workspace .portal-stat p{font-size:12px;color:var(--muted);margin-bottom:15px}
.portal-workspace .portal-stat strong{font-size:35px;letter-spacing:-.04em;color:#edf4ff;line-height:1.1}
.portal-workspace .portal-stat small{display:block;color:var(--quiet);font-size:10px;margin-top:10px}
.portal-workspace .portal-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.portal-workspace .portal-shortcut{display:block;padding:20px;border:1px solid var(--line);border-radius:10px;text-decoration:none;background:#101f32}
.portal-workspace .portal-shortcut>strong{display:block;margin:12px 0 7px;color:#e3eefc}
.portal-workspace .portal-shortcut>span{font-size:12px;color:var(--muted);line-height:1.6}
.portal-workspace .portal-shortcut svg{width:23px;height:23px;color:#95bcf7}
.portal-workspace .portal-date-range{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:17px 23px;border-bottom:1px solid var(--line)}
.portal-workspace .portal-date-range .field{flex:1;min-width:150px;max-width:220px}
.portal-workspace .portal-date-range .btn{min-height:44px}
.portal-workspace .role-explanation{grid-column:1/-1;padding:13px 15px;margin:0;background:#13253c;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--muted)}
.portal-workspace .panel .empty-state{border:0;margin:0}
.portal-workspace .portal-inline-note{padding:15px 23px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin:0}
.portal-workspace .table-wrap table{min-width:690px}
.portal-workspace #portal-dialog .full{grid-column:1/-1}
.portal-workspace #portal-dialog input:read-only{opacity:.8}
@media(max-width:1200px){.portal-workspace .portal-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-workspace .portal-shortcuts{grid-template-columns:1fr}}
@media(max-width:740px){.portal-workspace .portal-site-field{width:100%;max-width:none;min-width:0}.portal-workspace .page-header{flex-direction:column}.portal-workspace .panel-header{align-items:flex-start;flex-wrap:wrap}.portal-workspace .portal-checked{margin-top:-3px}.portal-workspace .portal-date-range{padding:17px}.portal-workspace .portal-date-range .field{max-width:none}}
@media(max-width:540px){.portal-workspace .portal-stat-grid{gap:10px}.portal-workspace .portal-stat{padding:17px}.portal-workspace .portal-stat p{min-height:36px;margin-bottom:9px}.portal-workspace .portal-stat strong{font-size:29px}.portal-workspace .portal-stat small{min-height:30px}.portal-workspace .portal-site-field select{font-size:16px}.portal-workspace .portal-messages{right:14px;bottom:14px;width:calc(100vw - 28px)}.portal-workspace .sidebar{max-width:calc(100vw - 42px)}.portal-workspace .portal-date-range .field{min-width:calc(50% - 12px)}.portal-workspace .portal-date-range .btn{width:100%}.portal-workspace .topbar .account .btn{min-height:44px}}
@media(max-width:540px){.portal-workspace .table-wrap table{min-width:0}.portal-workspace .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.portal-workspace .table-wrap tbody,.portal-workspace .table-wrap tr{display:block}.portal-workspace .table-wrap tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px 17px;border-bottom:1px solid var(--line)}.portal-workspace .table-wrap tbody tr:last-child{border-bottom:0}.portal-workspace .table-wrap td{display:block;min-width:0;padding:8px 0!important;border:0;overflow-wrap:anywhere}.portal-workspace .table-wrap td::before{content:attr(data-label);display:block;color:var(--quiet);font-size:9px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px}.portal-workspace .table-wrap td:first-child,.portal-workspace .table-wrap td:last-child{grid-column:1/-1}.portal-workspace .table-wrap td:last-child .btn{margin-right:8px;margin-top:4px}.portal-workspace .table-wrap td[data-label='']::before{display:none}.portal-workspace .portal-worker-lookup .btn{margin:9px 0}}
.portal-workspace #mfa-setup-key{display:block;overflow-wrap:anywhere;user-select:all;font-size:17px;letter-spacing:.04em;padding:14px 0}.portal-workspace #mfa-code-form{display:grid;gap:16px}.portal-workspace #mfa-notice .btn{margin-top:12px}
