:root{
--navy:#10213b;
--navy2:#183353;
--blue:#2862d5;
--blue-soft:#eaf1ff;
--bg:#f4f7fb;
--surface:#fff;
--line:#e5eaf1;
--ink:#17263d;
--muted:#748198;
--green:#12805c;
--amber:#9b5c00;
--red:#bd3e36;
--shadow:0 12px 36px rgba(19,39,71,.12)}
*{
box-sizing:border-box}
body{
margin:0;
background:var(--bg);
color:var(--ink);
font:14px/1.5 Inter,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
button,input,select{
font:inherit}
button{
cursor:pointer}
.hidden{
display:none!important}
.app-shell{
min-height:100vh;
display:grid;
grid-template-columns:238px minmax(0,1fr)}
.sidebar{
background:var(--navy);
color:#d7e2f0;
display:flex;
flex-direction:column;
padding:20px 14px;
min-height:100vh}
.brand{
display:flex;
align-items:center;
gap:11px;
padding:5px 10px 26px;
color:#fff;
font-size:16px;
font-weight:720}
.brand small{
display:block;
font-size:11px;
font-weight:450;
color:#a9bad0;
margin-top:3px}
.brand-icon{
display:grid;
place-items:center;
width:36px;
height:36px;
border-radius:10px;
background:#2d63c5;
font-size:18px}
.sidebar nav a{
display:flex;
align-items:center;
gap:12px;
padding:10px 12px;
border-radius:8px;
margin:3px 0;
color:#c2d0e1;
text-decoration:none}
.sidebar nav a span{
width:18px;
text-align:center;
font-size:16px}
.sidebar nav a:hover,.sidebar nav a.active{
background:#203a5b;
color:#fff}
.nav-label{
padding:18px 12px 5px;
color:#8298b5;
text-transform:uppercase;
font-size:10px;
letter-spacing:.09em}
.sidebar-foot{
margin-top:auto;
padding:14px 12px;
color:#c7d5e6;
font-size:12px;
border-top:1px solid rgba(255,255,255,.12)}
.sidebar-foot small{
display:inline-block;
margin:5px 0 0 15px;
color:#8da2bc}
.online-dot{
display:inline-block;
width:7px;
height:7px;
border-radius:50%;
background:#36c890;
margin-right:7px}
.main{
min-width:0;
padding:24px 32px 26px}
.topbar{
display:flex;
align-items:center;
justify-content:space-between;
gap:18px;
margin-bottom:18px}
.breadcrumb{
color:#8390a3;
font-size:12px}
.breadcrumb span{
padding:0 8px;
color:#bbc5d1}
.breadcrumb strong{
color:#293a53;
font-weight:600}
.topbar p{
margin:5px 0 0}
.top-actions{
display:flex;
align-items:center;
gap:12px}
.demo-badge{
padding:6px 10px;
border-radius:20px;
background:#fff2d9;
color:#865200;
font-size:11px;
font-weight:650}
.user-chip{
color:#52637a}
.quiet{
border:0;
background:transparent;
color:#66768b;
padding:7px 9px}
.quiet:hover{
color:var(--blue)}
.simulation-banner{
display:flex;
align-items:center;
gap:12px;
background:#fff9e9;
border:1px solid #efda9c;
color:#765411;
border-radius:10px;
padding:11px 14px;
margin:0 0 18px;
font-size:12px}
.simulation-banner strong{
white-space:nowrap;
font-size:12px}
h1,h2,h3,p{
margin-top:0}
h1{
font-size:23px;
margin:0 0 5px}
h2{
font-size:17px;
margin:0}
h3{
font-size:14px;
margin:0 0 10px}
.muted{
color:var(--muted)}
.page-heading{
display:flex;
align-items:end;
justify-content:space-between;
gap:16px;
margin:4px 0 17px}
.page-heading p{
margin:5px 0 0;
color:var(--muted)}
.primary,.secondary,.danger{
border:0;
border-radius:8px;
padding:9px 13px;
font-weight:650}
.primary{
background:var(--blue);
color:#fff}
.primary:hover{
background:#1e52b4}
.secondary{
background:#eef3fb;
color:#315274}
.secondary:hover{
background:#e2ebf8}
.danger{
background:#fff0ef;
color:#ac3d35}
.danger:hover{
background:#ffe0de}
.wide{
width:100%;
padding:11px}
.metric-grid{
display:grid;
grid-template-columns:repeat(6,minmax(110px,1fr));
gap:12px;
margin-bottom:14px}
.metric-card,.panel,.table-card{
background:var(--surface);
border:1px solid var(--line);
border-radius:12px}
.metric-card{
padding:15px 16px}
.metric-label{
color:var(--muted);
font-size:11px}
.metric-value{
font-size:25px;
font-weight:730;
margin-top:7px;
letter-spacing:-.03em}
.metric-foot{
font-size:11px;
color:#9aa5b4;
margin-top:1px}
.dashboard-grid{
display:grid;
grid-template-columns:1.25fr .75fr;
gap:14px}
.panel{
padding:17px}
.panel-title{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:12px}
.panel-title a{
color:var(--blue);
font-size:12px;
text-decoration:none}
.bar-row{
display:grid;
grid-template-columns:105px 1fr 34px;
align-items:center;
gap:9px;
margin:10px 0;
color:#5f6f83;
font-size:12px}
.bar-track{
height:8px;
background:#edf1f6;
border-radius:8px;
overflow:hidden}
.bar-fill{
height:100%;
background:#4f7fe1;
border-radius:8px}
.activity-list{
list-style:none;
margin:0;
padding:0}
.activity-list li{
display:flex;
gap:10px;
align-items:flex-start;
padding:9px 0;
border-bottom:1px solid #f0f2f6}
.activity-list li:last-child{
border-bottom:0}
.activity-mark{
width:8px;
height:8px;
background:#75a0f2;
border-radius:50%;
margin:6px 2px 0}
.activity-title{
font-weight:600}
.activity-meta{
color:#8b98aa;
font-size:11px;
margin-top:2px}
.table-card{
overflow:hidden}
.toolbar{
display:flex;
gap:9px;
align-items:center;
padding:14px;
border-bottom:1px solid var(--line);
flex-wrap:wrap}
.search{
flex:1;
min-width:200px;
position:relative}
.search input,.toolbar select{
width:100%;
padding:9px 11px;
border:1px solid #dbe2ec;
border-radius:8px;
background:#fff;
color:var(--ink);
outline:none}
.toolbar select{
width:auto;
min-width:125px}
.search input:focus,.field input:focus,.field select:focus{
border-color:#78a0e9;
box-shadow:0 0 0 3px #e8efff}
.checkline{
display:flex;
align-items:center;
gap:6px;
color:var(--muted);
font-size:12px;
white-space:nowrap}
.checkline input{
accent-color:var(--blue)}
.table-scroll{
overflow:auto}
table{
width:100%;
border-collapse:collapse;
white-space:nowrap}
th,td{
text-align:left;
padding:11px 12px;
border-bottom:1px solid #edf0f4;
vertical-align:middle}
th{
font-size:11px;
color:#687991;
background:#fafbfd;
font-weight:650}
td{
font-size:12px;
color:#34445b}
tbody tr:hover{
background:#fafcff}
.td-primary{
font-weight:620;
color:#1f3048}
.muted-cell{
color:#99a4b2}
.status-pill{
display:inline-block;
padding:4px 8px;
border-radius:20px;
font-size:10px;
background:#edf1f6;
color:#54647a}
.status-pill.good{
background:#e7f6ef;
color:#16704f}
.status-pill.warn{
background:#fff4dc;
color:#8a5a08}
.status-pill.bad{
background:#fff0ee;
color:#a63830}
.status-edit{
display:flex;
gap:5px;
align-items:center}
.status-edit select{
max-width:136px;
padding:5px;
border:1px solid #dce4ee;
border-radius:6px;
background:#fff;
font-size:11px}
.status-edit button,.row-action{
border:0;
background:transparent;
color:var(--blue);
padding:5px 7px;
font-size:11px}
.status-edit button:hover,.row-action:hover{
text-decoration:underline}
.row-actions{
display:flex;
align-items:center;
gap:2px}
.table-foot{
padding:10px 14px;
color:#8794a5;
font-size:11px}
.empty-state{
padding:36px 18px;
text-align:center;
color:#7c899b}
.empty-state strong{
display:block;
color:#52637a;
margin-bottom:4px}
.record-dialog{
width:min(680px,calc(100vw - 28px));
max-height:90vh;
border:0;
border-radius:14px;
padding:0;
box-shadow:var(--shadow)}
.record-dialog::backdrop{
background:rgba(9,21,39,.4)}
.dialog-head{
padding:20px 22px 15px;
border-bottom:1px solid var(--line);
display:flex;
justify-content:space-between;
align-items:start}
.dialog-head h2{
font-size:18px}
.eyebrow{
text-transform:uppercase;
letter-spacing:.08em;
font-size:10px;
color:#8291a4;
margin:0 0 4px}
.icon-button{
border:0;
border-radius:50%;
width:30px;
height:30px;
background:#f2f5f8;
color:#66768b;
font-size:20px;
line-height:1}
.dialog-body{
padding:18px 22px 20px;
display:grid;
grid-template-columns:1fr 1fr;
gap:13px;
overflow:auto}
.field{
display:block}
.field.full{
grid-column:1/-1}
.field label,.auth-card label{
display:block;
font-size:11px;
color:#66768b;
margin-bottom:5px}
.field input,.field select,.field textarea,.auth-card input{
width:100%;
padding:9px 10px;
border:1px solid #dbe2ec;
border-radius:8px;
background:#fff;
outline:none}
.field textarea{
min-height:74px;
resize:vertical}
.form-actions{
grid-column:1/-1;
display:flex;
justify-content:flex-end;
gap:8px;
margin-top:7px}
.toast{
position:fixed;
right:24px;
bottom:22px;
padding:11px 15px;
border-radius:9px;
background:#183353;
color:#fff;
box-shadow:var(--shadow);
opacity:0;
transform:translateY(8px);
transition:.2s;
pointer-events:none;
z-index:10}
.toast.show{
opacity:1;
transform:translateY(0)}
.toast.error-toast{
background:#9b3730}
.auth-shell{
position:fixed;
inset:0;
background:linear-gradient(135deg,#edf3fc,#f8fafc);
display:grid;
place-items:center;
padding:20px;
z-index:20}
.auth-card{
width:min(400px,100%);
background:#fff;
border:1px solid var(--line);
border-radius:16px;
padding:30px;
box-shadow:var(--shadow)}
.brandmark{
font-weight:760;
font-size:20px;
color:#16365f}
.auth-card h1{
font-size:23px;
margin-top:16px}
.auth-card .muted{
font-size:13px}
.auth-card form{
margin-top:21px}
.auth-card label{
margin:14px 0;
font-size:12px}
.auth-card input{
display:block;
margin-top:6px;
font-size:14px}
.security-note{
font-size:11px;
color:#8a96a7;
margin:14px 0 0}
.error{
background:#fff1ef;
color:#a83b33;
padding:9px;
border-radius:8px;
font-size:12px}
.auth-card .error{
margin:8px 0}
.auth-card .eyebrow{
margin:3px 0 0;
color:#7688a1}
footer{
padding:20px 2px 0;
color:#97a2b1;
font-size:10px}

@media(max-width:1150px){
.metric-grid{
grid-template-columns:repeat(3,1fr)}
}
@media(max-width:840px){
.app-shell{
grid-template-columns:1fr}
.sidebar{
min-height:auto;
padding:10px;
position:sticky;
top:0;
z-index:3}
.brand{
padding:3px 8px 10px}
.sidebar nav{
display:flex;
overflow:auto;
gap:3px}
.sidebar nav a{
white-space:nowrap}
.nav-label,.sidebar-foot{
display:none}
.main{
padding:18px}
.dashboard-grid{
grid-template-columns:1fr}
.topbar{
align-items:flex-start}
.simulation-banner{
align-items:flex-start}
.simulation-banner span{
line-height:1.45}
}
@media(max-width:540px){
.main{
padding:14px}
.metric-grid{
grid-template-columns:repeat(2,1fr);
gap:8px}
.metric-card{
padding:12px}
.metric-value{
font-size:22px}
.page-heading{
align-items:flex-start;
flex-direction:column}
.toolbar select{
flex:1}
.dialog-body{
grid-template-columns:1fr}
.field.full{
grid-column:auto}
.form-actions{
grid-column:auto}
.top-actions{
gap:5px}
.user-chip{
display:none}
}

.heading-actions{
display:flex;
gap:8px}
.loading{
padding:30px;
color:#748198;
text-align:center}

.pager{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px}
.pager button{
padding:5px 10px;
font-size:11px}
.pager button:disabled{
opacity:.45;
cursor:not-allowed}
.user-create{
display:grid;
grid-template-columns:1fr 1.4fr 130px auto;
gap:9px;
margin-top:14px}
.user-create input,.user-create select,.user-table select{
padding:8px 10px;
border:1px solid #dbe2ec;
border-radius:8px;
background:#fff;
color:var(--ink)}
.user-table{
margin-top:14px}
.user-table td{
vertical-align:middle}
.user-table .checkline{
color:var(--ink)}
@media(max-width:700px){
.user-create{
grid-template-columns:1fr}
.pager{
align-items:flex-start;
flex-direction:column}
}

.ops-good{
color:#12805c}
.ops-bad{
color:#bd3e36}
.table-toolbar-title{
display:flex;
justify-content:space-between;
align-items:center;
gap:12px;
padding:15px 14px;
border-bottom:1px solid var(--line)}
.table-toolbar-title h2{
font-size:14px}
.table-toolbar-title .muted{
font-size:11px}
.ops-table{
margin-top:14px}
.ops-grid .metric-value{
font-size:20px;
letter-spacing:0;
overflow-wrap:anywhere}

.topbar-actions{
display:flex;
align-items:center;
gap:12px}
.global-search-trigger{
display:flex;
align-items:center;
justify-content:space-between;
gap:22px;
min-width:205px;
padding:7px 9px 7px 12px;
border:1px solid #dbe2ec;
border-radius:9px;
background:#fff;
color:#758299;
text-align:left}
.global-search-trigger:hover{
border-color:#9bb6e9;
color:#315da9}
.global-search-trigger kbd,.global-search-foot kbd{
padding:2px 6px;
border:1px solid #dfe5ed;
border-radius:5px;
background:#f7f9fc;
color:#758299;
font:inherit;
font-size:10px;
line-height:1.6}
.global-search-dialog{
width:min(620px,calc(100vw - 24px));
max-height:min(76vh,680px);
padding:0;
border:1px solid #dfe5ed;
border-radius:14px;
box-shadow:0 24px 80px rgba(16,33,59,.24);
overflow:hidden}
.global-search-dialog::backdrop{
background:rgba(11,25,45,.48);
backdrop-filter:blur(2px)}
.global-search-head{
display:grid;
grid-template-columns:1fr auto;
gap:6px 10px;
align-items:center;
padding:17px 18px;
border-bottom:1px solid var(--line)}
.global-search-head label{
grid-column:1/-1;
color:#52637a;
font-size:11px;
font-weight:650}
.global-search-head input{
width:100%;
min-width:0;
padding:11px 12px;
border:1px solid #dbe2ec;
border-radius:9px;
outline:none;
font-size:14px}
.global-search-head input:focus{
border-color:#78a0e9;
box-shadow:0 0 0 3px #e8efff}
.global-search-results{
max-height:min(54vh,480px);
overflow:auto;
padding:7px}
.global-search-hint{
padding:25px 15px;
text-align:center;
color:var(--muted);
font-size:12px}
.global-search-result{
display:flex;
width:100%;
align-items:center;
justify-content:space-between;
gap:15px;
padding:11px 12px;
border:0;
border-radius:9px;
background:#fff;
color:var(--ink);
text-align:left}
.global-search-result:hover,.global-search-result:focus-visible{
outline:none;
background:#f1f5fc}
.global-result-main{
display:grid;
gap:3px;
min-width:0}
.global-result-main strong{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
font-size:13px}
.global-result-main small{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
color:var(--muted);
font-size:10px}
.global-result-type{
flex:none;
padding:4px 8px;
border-radius:20px;
background:#edf3ff;
color:#4165a1;
font-size:10px}
.global-search-foot{
display:flex;
align-items:center;
justify-content:space-between;
padding:9px 16px;
border-top:1px solid var(--line);
color:#8a96a7;
font-size:10px}
@media(max-width:840px){
.topbar-actions{
align-items:flex-end;
flex-direction:column-reverse;
gap:4px}
.global-search-trigger{
min-width:0;
padding:5px 8px;
gap:10px}
.global-search-trigger span{
font-size:11px}
.topbar{
align-items:flex-start}
}
@media(max-width:540px){
.topbar-actions{
align-items:flex-end}
.global-search-trigger{
border:0;
background:transparent;
padding:3px 0;
color:var(--blue)}
.global-search-trigger kbd{
display:none}
.global-search-head{
padding:12px}
.global-search-result{
padding:10px 8px}
}

.view-switch{
display:flex;
gap:2px;
padding:3px;
border:1px solid var(--line);
border-radius:9px;
background:#f6f8fb}
.view-switch button{
border:0;
border-radius:6px;
background:transparent;
color:#708097;
padding:6px 10px;
font-size:11px}
.view-switch button.selected{
background:#fff;
color:#2858ae;
box-shadow:0 1px 4px rgba(20,40,70,.12)}
.board-wrap{
padding:13px;
background:#f8fafd;
border:1px solid var(--line);
border-radius:12px}
.board-note{
padding:2px 3px 12px;
color:var(--muted);
font-size:11px}
.board-columns{
display:grid;
grid-auto-columns:minmax(245px,1fr);
grid-auto-flow:column;
gap:12px;
overflow:auto;
align-items:start;
padding-bottom:6px}
.board-column{
min-width:245px;
border:1px solid #e5eaf1;
border-radius:10px;
background:#eef2f8}
.board-column>header{
display:flex;
align-items:center;
justify-content:space-between;
padding:11px 12px;
border-bottom:1px solid #e0e6ef;
color:#465872;
font-size:12px}
.board-column>header span{
display:grid;
place-items:center;
min-width:22px;
height:22px;
padding:0 5px;
border-radius:20px;
background:#fff;
color:#728198;
font-size:10px}
.board-column-body{
display:grid;
gap:9px;
min-height:100px;
padding:9px}
.board-card{
padding:11px;
background:#fff;
border:1px solid #e6ebf2;
border-radius:9px;
box-shadow:0 2px 7px rgba(30,49,77,.04)}
.board-card-head{
display:flex;
align-items:start;
justify-content:space-between;
gap:8px}
.board-card-head>strong{
font-size:12px;
line-height:1.4}
.board-card p{
margin:6px 0;
color:#718096;
font-size:10px;
line-height:1.45}
.board-card-meta{
margin:7px 0;
color:#96a1b1;
font-size:10px}
.board-card-actions{
display:grid;
gap:6px;
border-top:1px solid #f0f2f6;
padding-top:7px}
.board-card-actions .status-edit{
justify-content:space-between}
.board-card-actions .status-edit select{
flex:1;
max-width:none;
min-width:0}
.board-links{
display:flex;
gap:2px}
.board-empty{
padding:17px 5px;
text-align:center;
color:#a1abba;
font-size:10px}
.board-wrap>.pager{
margin-top:5px}
@media(max-width:700px){
.board-wrap{
padding:9px}
.board-columns{
grid-auto-columns:minmax(230px,82vw)}
.view-switch button{
padding:5px 8px}
}

.resource-detail-grid{
grid-template-columns:repeat(2,minmax(0,1fr));
gap:14px 18px}
.detail-cell{
min-width:0}
.detail-cell small{
display:block;
color:var(--muted);
font-size:10px;
margin-bottom:4px}
.detail-cell>div{
overflow-wrap:anywhere;
font-size:12px}
.detail-grid .detail-cell.full{
grid-column:1/-1}
.relation-link{
padding:0;
border:0;
background:transparent;
color:var(--blue);
font:inherit;
text-align:left;
cursor:pointer}
.relation-link:hover{
text-decoration:underline}
.detail-actions{
display:flex;
gap:8px;
margin-top:17px;
padding-top:13px;
border-top:1px solid var(--line)}
.detail-actions button{
font-size:11px}
@media(max-width:540px){
.resource-detail-grid{
grid-template-columns:1fr}
.detail-grid .detail-cell.full{
grid-column:auto}
}

.nav-home{
margin-bottom:10px!important;
color:#fff!important;
background:rgba(255,255,255,.07)}
.nav-section{
margin:6px 0}
.nav-group-toggle{
display:flex;
width:100%;
align-items:center;
justify-content:space-between;
padding:10px 12px;
border:0;
border-radius:8px;
background:transparent;
color:#91a6c1;
text-align:left;
font-size:10px;
font-weight:700;
letter-spacing:.08em;
cursor:pointer}
.nav-group-toggle:hover,.nav-group-toggle:focus-visible{
background:rgba(255,255,255,.06);
color:#e7effa;
outline:none}
.nav-chevron{
font-size:14px;
letter-spacing:0;
transition:transform .16s}
.nav-group-toggle[aria-expanded="false"] .nav-chevron{
transform:rotate(-90deg)}
.nav-items{
display:grid;
gap:2px}
.nav-items.collapsed{
display:none}
.nav-items a{
margin:1px 0!important;
padding:9px 12px 9px 16px!important;
font-size:12px}
.nav-badge{
display:grid;
place-items:center;
min-width:19px;
height:19px;
margin-left:auto;
padding:0 5px;
border-radius:20px;
background:#f1b94c;
color:#392b0a;
font-size:10px;
font-weight:750;
letter-spacing:0}
.nav-badge.hidden{
display:none!important}
@media(max-width:840px){
.sidebar nav{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
align-items:start;
overflow:visible}
.nav-home{
grid-column:1/-1;
white-space:nowrap}
.nav-section{
position:static;
min-width:0;
margin:0 2px}
.nav-group-toggle{
width:100%;
gap:8px;
padding:9px 10px;
border-radius:8px;
background:rgba(255,255,255,.04);
white-space:nowrap}
.nav-items{
display:none;
position:static;
min-width:0;
max-height:none;
overflow:visible;
padding:4px;
border:1px solid rgba(255,255,255,.1);
border-radius:9px;
background:#132842;
box-shadow:none}
.nav-items:not(.collapsed){
display:grid}
.nav-items a{
white-space:nowrap}
.sidebar{
overflow:visible}
.sidebar nav{
overflow:visible}
}

.quick-create-button{
display:flex;
align-items:center;
justify-content:space-between;
width:calc(100% - 8px);
margin:0 4px 12px;
padding:9px 11px;
border:1px solid rgba(133,169,222,.28);
border-radius:9px;
background:#1b3657;
color:#f5f8fd;
text-align:left}
.quick-create-button:hover{
background:#25456d;
border-color:#527cb9}
.quick-create-button span{
font-size:12px;
font-weight:650}
.quick-create-button small{
color:#9fb3cd;
font-size:9px}
.quick-create-dialog{
width:min(540px,calc(100vw - 24px));
max-height:86vh;
padding:0;
border:1px solid #dfe5ed;
border-radius:14px;
box-shadow:0 24px 80px rgba(16,33,59,.24);
overflow:auto}
.quick-create-dialog::backdrop{
background:rgba(11,25,45,.48);
backdrop-filter:blur(2px)}
.quick-create-head{
display:flex;
align-items:center;
justify-content:space-between;
padding:18px 20px 13px;
border-bottom:1px solid var(--line)}
.quick-create-head h2{
font-size:17px}
.quick-create-body{
padding:15px 20px 20px}
.quick-create-body h3{
margin:2px 0 9px;
color:#728198;
font-size:10px;
letter-spacing:.05em}
.quick-create-body h3:not(:first-child){
margin-top:18px}
.quick-create-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:9px}
.quick-create-grid button{
display:grid;
gap:3px;
padding:12px;
text-align:left;
border:1px solid #e4eaf2;
border-radius:9px;
background:#fff;
color:var(--ink)}
.quick-create-grid button:hover,.quick-create-grid button:focus-visible{
outline:none;
border-color:#9bb6e9;
background:#f5f8ff}
.quick-create-grid strong{
font-size:12px}
.quick-create-grid small{
color:var(--muted);
font-size:10px}
@media(max-width:540px){
.quick-create-button{
width:calc(100% - 16px);
margin:0 8px 8px}
.quick-create-button small{
display:none}
.quick-create-head{
padding:13px 15px}
.quick-create-body{
padding:13px 15px 16px}
.quick-create-grid{
gap:7px}
.quick-create-grid button{
padding:10px}
}

.nav-badge[data-menu-todo]{
cursor:pointer}
.nav-badge[data-menu-todo]:hover{
background:#ffd169}
.todo-filter.active{
background:#fff2d9;
color:#79510b;
box-shadow:inset 0 0 0 1px #efda9c}

.todo-row{
width:100%;
display:grid;
grid-template-columns:1fr auto auto;
gap:12px;
align-items:center;
text-align:left;
padding:11px 4px;
border:0;
border-bottom:1px solid var(--line);
background:transparent;
color:var(--ink)}
.todo-row strong{
font-size:11px;
color:var(--blue)}
.todo-row:hover{
background:#f8faff}
.dashboard-recent{
margin-top:14px}
.row-highlight{
background:#fff7d9!important;
outline:2px solid #edcf6c}
.bulk-toolbar{
display:flex;
align-items:center;
gap:9px;
flex-wrap:wrap;
padding:10px 14px;
border-bottom:1px solid var(--line);
background:#fbfcfe}
.bulk-toolbar select,.heading-actions select{
padding:8px 10px;
border:1px solid #dbe2ec;
border-radius:8px;
background:#fff;
color:var(--ink)}
.bulk-toolbar button{
padding:7px 10px;
font-size:11px}
.mapping-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:9px}
.mapping-grid label{
font-size:11px;
color:#66768b}
.mapping-grid select{
display:block;
width:100%;
margin-top:4px;
padding:7px;
border:1px solid #dbe2ec;
border-radius:7px;
background:#fff}
.import-errors{
max-height:120px;
overflow:auto;
color:#a63830;
font-size:11px;
padding-left:20px}
.detail-body{
display:block;
max-height:68vh;
overflow:auto}
.detail-body h3{
margin-top:18px}
.detail-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px}
.detail-grid small{
color:var(--muted)}
.detail-grid p{
margin:4px 0 0;
overflow-wrap:anywhere}
.log-list{
padding-left:22px}
.log-list li{
display:flex;
align-items:center;
gap:10px;
padding:8px 0;
border-bottom:1px solid #edf0f4}
.history-entry{
padding:10px 0;
border-bottom:1px solid var(--line)}
.history-entry>strong,.history-entry>small{
display:block;
margin-bottom:5px}
.history-entry>small{
color:var(--muted);
font-size:11px}
.report-bars{
max-height:380px;
overflow:auto}
.report-bar-row{
display:grid;
grid-template-columns:90px minmax(50px,1fr) 35px 100px;
gap:8px;
align-items:center;
margin:8px 0;
font-size:11px;
color:#66768b}
.report-bar-row small{
color:#8995a5}
.config-form{
display:grid;
grid-template-columns:1fr 1fr;
gap:14px;
margin-bottom:14px}
.config-form>h2,.config-form>.config-status-grid,.config-form>.form-actions{
grid-column:1/-1}
.config-form .field textarea{
min-height:90px}
.config-form .field small{
display:block;
margin-top:4px}
.config-status-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px}
.config-check{
display:flex;
align-items:center;
gap:8px;
color:#52637a}
.demo-control{
display:flex;
justify-content:space-between;
align-items:center;
gap:18px;
margin-bottom:14px}
.demo-control p{
margin:5px 0 0}
.demo-steps{
color:#64748b;
line-height:2}
.demo-table{
margin-bottom:14px}
.report-lower{
margin-top:14px}
@media(max-width:700px){
.mapping-grid,.config-form,.config-status-grid{
grid-template-columns:1fr}
.config-form>h2,.config-form>.config-status-grid,.config-form>.form-actions{
grid-column:auto}
.demo-control{
align-items:flex-start;
flex-direction:column}
.report-bar-row{
grid-template-columns:66px 1fr 28px}
.report-bar-row small{
grid-column:2/-1}
.log-list li{
align-items:flex-start;
flex-wrap:wrap}
}


/* Product review polish */
.nav-icon{
width:18px;
height:18px;
flex:none;
fill:none;
stroke:currentColor;
stroke-width:1.7;
stroke-linecap:round;
stroke-linejoin:round;
opacity:.92}
.brand-icon svg{
width:22px;
height:22px;
fill:none;
stroke:currentColor;
stroke-width:1.8;
stroke-linecap:round;
stroke-linejoin:round}
.sidebar nav a.active{
box-shadow:inset 3px 0 0 #76a5ff}
.sidebar-foot strong{
font-weight:600;
color:#e6effa;
font-size:11px}
.offline-dot{
display:inline-block;
width:7px;
height:7px;
border-radius:50%;
background:#e16b65;
margin-right:7px}
.metric-link{
width:100%;
text-align:left;
color:inherit;
cursor:pointer;
transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.metric-link:hover{
transform:translateY(-2px);
border-color:#bfd0ef;
box-shadow:0 8px 20px rgba(19,39,71,.08)}
.metric-link:focus-visible{
outline:2px solid #6b91e5;
outline-offset:2px}
.search-icon{
width:17px;
height:17px;
fill:none;
stroke:currentColor;
stroke-width:1.8;
stroke-linecap:round;
stroke-linejoin:round;
vertical-align:-4px;
margin-right:7px}


/* Sidebar readability */
.nav-items a{
font-size:14px!important;
line-height:1.45;
padding-top:10px!important;
padding-bottom:10px!important}
.nav-group-toggle{
font-size:12px}
.nav-home{
font-size:14px}
@media(max-width:840px){
.nav-items a,.nav-home{
font-size:13px!important}
.nav-group-toggle{
font-size:11px}
}


/* Larger sidebar type after readability feedback */
.nav-items a{
font-size:16px!important;
line-height:1.5;
padding-top:11px!important;
padding-bottom:11px!important}
.nav-group-toggle{
font-size:13px}
.nav-home{
font-size:16px}
@media(max-width:840px){
.nav-items a,.nav-home{
font-size:14px!important}
.nav-group-toggle{
font-size:12px}
}


/* Balanced hierarchy across every sidebar level */
.app-shell{
grid-template-columns:252px minmax(0,1fr)}
.brand{
font-size:17px}
.brand small{
font-size:12px}
.quick-create-button{
padding:10px 11px}
.quick-create-button span{
font-size:14px}
.quick-create-button small{
font-size:11px}
.nav-home{
font-size:16px!important;
font-weight:700;
padding-top:12px!important;
padding-bottom:12px!important}
.nav-section{
margin:8px 0}
.nav-group-toggle{
padding:11px 12px;
color:#b5c5d9;
font-size:15px;
font-weight:650;
letter-spacing:0}
.nav-chevron{
font-size:16px}
.nav-items a{
font-size:16px!important;
font-weight:500;
line-height:1.5;
padding-top:11px!important;
padding-bottom:11px!important}
.nav-icon{
width:20px;
height:20px}
.nav-badge{
min-width:21px;
height:21px;
font-size:11px}
.sidebar-foot strong{
font-size:12px}
.sidebar-foot small{
font-size:11px}
@media(max-width:840px){
.app-shell{
grid-template-columns:1fr}
.brand{
font-size:16px}
.brand small{
font-size:11px}
.quick-create-button span{
font-size:13px}
.nav-home{
font-size:14px!important}
.nav-group-toggle{
font-size:14px;
padding:10px}
.nav-items a{
font-size:14px!important;
padding-top:9px!important;
padding-bottom:9px!important}
.nav-icon{
width:18px;
height:18px}
.nav-badge{
min-width:19px;
height:19px;
font-size:10px}
}


/* Requested secondary navigation size */
.nav-items a{
font-size:14px!important}
@media(max-width:840px){
.nav-items a{
font-size:14px!important}
}


/* Workspace readability: tables, filters, actions and supporting text */
th,td{
padding:13px 14px}
th{
font-size:13px}
td{
font-size:14px}
.toolbar{
gap:10px}
.toolbar input,.toolbar select,.toolbar button,.checkline{
font-size:14px}
.checkline{
gap:8px}
.status-pill{
font-size:12px;
padding:5px 9px}
.status-edit select{
font-size:13px;
padding:6px 7px}
.status-edit button,.row-action{
font-size:13px;
padding:6px 8px}
.row-actions{
gap:4px}
.table-foot{
font-size:12px;
padding:12px 15px}
.breadcrumb{
font-size:13px}
.top-actions,.user-chip,.quiet{
font-size:13px}
.page-heading p{
font-size:14px}
.muted,.muted-cell{
font-size:13px}
.empty-state{
font-size:14px}
.toolbar input::placeholder{
font-size:14px}


/* Keep desktop navigation anchored while the workspace scrolls */
.sidebar{
position:sticky;
top:0;
height:100vh;
min-height:100vh;
align-self:start;
overflow-y:auto;
overscroll-behavior:contain}
@media(max-width:840px){
.sidebar{
height:auto;
max-height:none;
min-height:auto;
overflow:visible}
}


/* Collapsible sidebar and responsive table density */
.sidebar-collapse-toggle{
flex:none;
width:28px;
height:28px;
border:1px solid rgba(219,232,249,.22);
border-radius:7px;
background:rgba(255,255,255,.06);
color:#e8f0fa;
font-size:22px;
line-height:20px;
padding:0}
.sidebar-collapse-toggle:hover{
background:rgba(255,255,255,.14)}
.app-shell.is-sidebar-collapsed{
grid-template-columns:82px minmax(0,1fr)}
.app-shell.is-sidebar-collapsed .sidebar{
padding-inline:8px}
.app-shell.is-sidebar-collapsed .brand{
justify-content:space-between;
gap:4px;
padding:5px 0 20px}
.app-shell.is-sidebar-collapsed .brand>span:not(.brand-icon){
display:none}
.app-shell.is-sidebar-collapsed .brand-icon{
width:36px;
height:36px}
.app-shell.is-sidebar-collapsed .nav-home,.app-shell.is-sidebar-collapsed .nav-items a{
position:relative;
justify-content:center;
gap:0;
padding:12px 0!important;
font-size:0!important}
.app-shell.is-sidebar-collapsed .nav-icon{
width:20px;
height:20px}
.app-shell.is-sidebar-collapsed .nav-badge{
position:absolute;
top:3px;
right:3px;
min-width:15px;
height:15px;
padding:0 3px;
font-size:9px}
.app-shell.is-sidebar-collapsed .nav-group-toggle{
justify-content:center;
padding:8px 0;
font-size:0}
.app-shell.is-sidebar-collapsed .nav-group-toggle>span:first-child{
display:none}
.app-shell.is-sidebar-collapsed .nav-chevron{
font-size:15px}
.app-shell.is-sidebar-collapsed .nav-section{
margin:7px 0}
.app-shell.is-sidebar-collapsed .quick-create-button{
width:46px;
height:42px;
margin:0 auto 12px;
padding:0;
justify-content:center}
.app-shell.is-sidebar-collapsed .quick-create-button span{
font-size:0}
.app-shell.is-sidebar-collapsed .quick-create-button span:before{
content:'＋';
font-size:22px}
.app-shell.is-sidebar-collapsed .quick-create-button small,.app-shell.is-sidebar-collapsed .sidebar-foot strong,.app-shell.is-sidebar-collapsed .sidebar-foot small{
display:none}
.app-shell.is-sidebar-collapsed .sidebar-foot{
padding:12px 0;
text-align:center}
.app-shell.is-sidebar-collapsed .sidebar-foot .online-dot,.app-shell.is-sidebar-collapsed .sidebar-foot .offline-dot{
margin:0}
.table-density-toggle{
white-space:nowrap;
padding:8px 10px;
font-size:12px}
@media(max-width:1200px){
body:not(.table-density-comfortable):not(.table-density-compact) th,body:not(.table-density-comfortable):not(.table-density-compact) td{
padding:9px 10px}
body:not(.table-density-comfortable):not(.table-density-compact) th{
font-size:12px}
body:not(.table-density-comfortable):not(.table-density-compact) td{
font-size:13px}
}
body.table-density-compact th,body.table-density-compact td{
padding:8px 10px}
body.table-density-compact th{
font-size:12px}
body.table-density-compact td{
font-size:13px}
body.table-density-compact .status-pill{
font-size:11px;
padding:4px 7px}
body.table-density-comfortable th,body.table-density-comfortable td{
padding:15px 16px}
body.table-density-comfortable th{
font-size:14px}
body.table-density-comfortable td{
font-size:15px}
@media(max-width:840px){
.sidebar-collapse-toggle{
display:none}
.app-shell.is-sidebar-collapsed{
grid-template-columns:1fr}
.app-shell.is-sidebar-collapsed .brand{
justify-content:flex-start}
.app-shell.is-sidebar-collapsed .brand>span:not(.brand-icon){
display:block}
.app-shell.is-sidebar-collapsed .nav-home,.app-shell.is-sidebar-collapsed .nav-items a{
justify-content:flex-start;
gap:10px;
padding:9px 10px!important;
font-size:14px!important}
.app-shell.is-sidebar-collapsed .nav-group-toggle{
justify-content:space-between;
padding:10px;
font-size:14px}
.app-shell.is-sidebar-collapsed .nav-group-toggle>span:first-child{
display:inline}
.app-shell.is-sidebar-collapsed .quick-create-button{
width:calc(100% - 16px);
height:auto;
margin:0 8px 8px;
padding:10px}
.app-shell.is-sidebar-collapsed .quick-create-button span{
font-size:13px}
.app-shell.is-sidebar-collapsed .quick-create-button span:before{
content:none}
.app-shell.is-sidebar-collapsed .quick-create-button small{
display:none}
.app-shell.is-sidebar-collapsed .sidebar-foot{
display:none}
.table-density-toggle{
font-size:11px;
padding:6px 8px}
}


/* Wide-format operational dashboards */
.big-screen{
min-height:calc(100vh - 150px);
padding:24px;
border:1px solid #173b62;
border-radius:16px;
background:radial-gradient(ellipse at 50% -20%,#153b68 0%,#0b1a2c 54%,#081421 100%);
color:#e5f1ff;
box-shadow:0 18px 48px rgba(5,17,31,.18)}
.big-screen:fullscreen{
min-height:100vh;
border:0;
border-radius:0;
padding:30px 3vw;
overflow:auto}
.screen-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding-bottom:20px;
border-bottom:1px solid rgba(114,173,230,.2);
margin-bottom:20px}
.screen-header>div:first-child>span{
color:#63caff;
font-size:13px;
letter-spacing:.16em}
.screen-header h1{
margin:8px 0;
font-size:28px;
color:#f4f9ff}
.screen-header small{
color:#94abc4;
font-size:13px}
.screen-tools{
display:flex;
align-items:center;
gap:14px;
color:#9db6d1;
font-size:13px}
.screen-fullscreen{
padding:9px 13px;
border:1px solid #28628f;
border-radius:8px;
background:#102c48;
color:#cdeaff}
.screen-fullscreen:hover{
background:#17416b}
.screen-metrics{
display:grid;
grid-template-columns:repeat(6,minmax(120px,1fr));
gap:14px;
margin-bottom:16px}
.screen-metric{
position:relative;
display:grid;
gap:7px;
padding:17px;
border:1px solid rgba(87,151,210,.28);
border-radius:12px;
background:linear-gradient(145deg,rgba(20,52,83,.92),rgba(11,31,51,.92));
overflow:hidden}
.screen-metric:after{
content:'';
position:absolute;
right:-20px;
bottom:-35px;
width:100px;
height:100px;
border:1px solid rgba(60,168,225,.15);
border-radius:50%}
.screen-metric span{
color:#9eb6d0;
font-size:13px}
.screen-metric strong{
color:#70d5ff;
font-size:30px;
line-height:1.15}
.screen-metric small{
color:#7996b3;
font-size:12px}
.screen-columns{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:14px}
.screen-panel{
min-width:0;
padding:18px;
border:1px solid rgba(87,151,210,.24);
border-radius:12px;
background:rgba(10,29,48,.82)}
.screen-panel h2{
margin-bottom:16px;
color:#d8edff;
font-size:16px}
.screen-wide{
grid-column:1/-1}
.screen-bar-row{
display:grid;
grid-template-columns:minmax(85px,150px) 1fr 52px;
align-items:center;
gap:12px;
margin:12px 0;
color:#adc5dd;
font-size:13px}
.screen-bar-row strong{
text-align:right;
color:#e6f4ff;
font-size:13px}
.screen-bar-track{
height:10px;
overflow:hidden;
border-radius:10px;
background:#17334d}
.screen-bar-track i{
display:block;
height:100%;
border-radius:10px;
background:linear-gradient(90deg,#1888c9,#48d8db);
box-shadow:0 0 12px rgba(57,197,235,.3)}
.screen-list-row{
display:grid;
grid-template-columns:minmax(110px,1.1fr) minmax(90px,1fr) auto;
align-items:center;
gap:12px;
padding:10px 0;
border-bottom:1px solid rgba(106,147,183,.14);
color:#e0effd;
font-size:13px}
.screen-list-row:last-child{
border-bottom:0}
.screen-list-row small{
overflow:hidden;
color:#8faac4;
text-overflow:ellipsis;
white-space:nowrap;
font-size:12px}
.screen-state{
padding:4px 9px;
border:1px solid rgba(81,190,222,.25);
border-radius:20px;
background:rgba(29,126,157,.15);
color:#83e2eb;
font-size:11px;
font-weight:600}
.screen-empty{
padding:24px 10px;
color:#8da6bf;
text-align:center;
font-size:13px}
.big-screen>footer{
padding:18px 2px 0;
color:#718ca8;
font-size:12px}
.big-screen .loading{
color:#a8c0da}
@media(max-width:1150px){
.screen-metrics{
grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
.big-screen{
padding:14px}
.screen-header{
align-items:flex-start;
flex-direction:column}
.screen-header h1{
font-size:22px}
.screen-tools{
width:100%;
justify-content:space-between}
.screen-metrics{
grid-template-columns:repeat(2,minmax(0,1fr));
gap:8px}
.screen-metric{
padding:12px}
.screen-metric strong{
font-size:24px}
.screen-columns{
grid-template-columns:1fr}
.screen-wide{
grid-column:auto}
.screen-list-row{
grid-template-columns:1fr auto}
.screen-list-row small{
grid-column:1/-1;
grid-row:2}
.screen-bar-row{
grid-template-columns:75px 1fr 38px;
gap:7px;
font-size:12px}
}


/* Selectable data-screen templates */
.screen-template-picker{
display:flex;
align-items:center;
gap:7px;
color:#9db6d1;
font-size:12px}
.screen-template-picker select{
padding:7px 9px;
border:1px solid #28628f;
border-radius:7px;
background:#102c48;
color:#d5ebff;
font:inherit}
.screen-template-business{
background:linear-gradient(145deg,#edf3fa,#e5edf7);
border-color:#d5e0ee;
color:#203650}
.screen-template-business .screen-header{
border-color:#d3dfed}
.screen-template-business .screen-header>div:first-child>span{
color:#2a70c9}
.screen-template-business .screen-header h1{
color:#17375d}
.screen-template-business .screen-header small,.screen-template-business .screen-tools,.screen-template-business .screen-template-picker{
color:#60758f}
.screen-template-business .screen-template-picker select{
background:#fff;
color:#294765;
border-color:#c9d7e8}
.screen-template-business .screen-fullscreen{
background:#fff;
color:#285b94;
border-color:#bfd0e4}
.screen-template-business .screen-metric,.screen-template-business .screen-panel{
background:#fff;
border-color:#d8e2ee;
box-shadow:0 5px 16px rgba(41,72,108,.06)}
.screen-template-business .screen-metric span,.screen-template-business .screen-metric small,.screen-template-business .screen-list-row small{
color:#6d8098}
.screen-template-business .screen-metric strong{
color:#2368c5}
.screen-template-business .screen-panel h2,.screen-template-business .screen-list-row,.screen-template-business .screen-bar-row strong{
color:#263f5c}
.screen-template-business .screen-bar-track{
background:#e9eff6}
.screen-template-business .screen-bar-track i{
background:linear-gradient(90deg,#3479d3,#54b9d5);
box-shadow:none}
.screen-template-business .screen-state{
background:#edf5ff;
color:#2864ab;
border-color:#d7e7f7}
.screen-template-business>footer,.screen-template-business .screen-empty{
color:#7387a0}
.screen-template-command{
background-color:#071512;
background-image:linear-gradient(rgba(49,218,151,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(49,218,151,.035) 1px,transparent 1px),radial-gradient(ellipse at 50% -20%,#12352a,#071512 62%);
background-size:28px 28px,28px 28px,auto;
border-color:#225b42}
.screen-template-command .screen-header{
justify-content:center;
text-align:center;
border-color:#1d513b}
.screen-template-command .screen-header>div:first-child>span,.screen-template-command .screen-metric strong{
color:#63efb0}
.screen-template-command .screen-tools{
position:absolute;
right:calc(3vw + 24px);
top:30px}
.screen-template-command .screen-metric,.screen-template-command .screen-panel{
background:rgba(7,29,22,.9);
border-color:rgba(73,226,156,.23)}
.screen-template-command .screen-bar-track{
background:#123226}
.screen-template-command .screen-bar-track i{
background:linear-gradient(90deg,#19a86c,#69efb4);
box-shadow:0 0 12px rgba(80,239,172,.3)}
.screen-template-command .screen-state{
background:#103b2a;
color:#83f1b9;
border-color:#236b48}
.screen-template-command .screen-columns{
grid-template-columns:repeat(3,minmax(0,1fr))}
.screen-template-command .screen-wide{
grid-column:span 2}
.screen-template-command .screen-header h1{
letter-spacing:.12em}
.screen-template-amber{
background:radial-gradient(ellipse at 50% -25%,#59331b,#1b1714 60%,#120f0d);
border-color:#674322}
.screen-template-amber .screen-header>div:first-child>span,.screen-template-amber .screen-metric strong{
color:#ffbf66}
.screen-template-amber .screen-metric,.screen-template-amber .screen-panel{
background:rgba(42,30,21,.88);
border-color:rgba(229,158,75,.25)}
.screen-template-amber .screen-bar-track{
background:#463222}
.screen-template-amber .screen-bar-track i{
background:linear-gradient(90deg,#cb7627,#ffd27d);
box-shadow:0 0 10px rgba(255,183,83,.28)}
.screen-template-amber .screen-state{
background:#4b311e;
color:#ffd18d;
border-color:#80552c}
.screen-template-amber .screen-fullscreen,.screen-template-amber .screen-template-picker select{
background:#382719;
border-color:#77502d;
color:#ffe0b4}
@media(max-width:1100px){
.screen-template-command .screen-columns{
grid-template-columns:repeat(2,minmax(0,1fr))}
.screen-template-command .screen-wide{
grid-column:1/-1}
}
@media(max-width:700px){
.screen-template-command .screen-tools{
position:static}
.screen-template-command .screen-header{
align-items:flex-start;
text-align:left}
.screen-template-command .screen-columns{
grid-template-columns:1fr}
}


.big-screen{
position:relative}


/* Business layout selector, separate from color theme */
.screen-layout-picker{
display:flex;
align-items:center;
gap:7px;
color:#9db6d1;
font-size:12px}
.screen-layout-picker select{
padding:7px 9px;
border:1px solid #28628f;
border-radius:7px;
background:#102c48;
color:#d5ebff;
font:inherit}
.screen-template-business .screen-layout-picker{
color:#60758f}
.screen-template-business .screen-layout-picker select{
background:#fff;
color:#294765;
border-color:#c9d7e8}
.screen-template-amber .screen-layout-picker select{
background:#382719;
border-color:#77502d;
color:#ffe0b4}
.screen-template-command .screen-metrics{
grid-template-columns:repeat(4,minmax(0,1fr))}
.screen-template-command .screen-wide{
grid-column:1/-1}
@media(max-width:1100px){
.screen-template-command .screen-metrics{
grid-template-columns:repeat(2,minmax(0,1fr))}

}


/* Navigation alignment and dashboard control formatting */
.nav-items a{
gap:10px}
.nav-badge{
flex:0 0 auto;
margin-left:auto;
line-height:1}
.nav-chevron{
width:8px;
height:8px;
flex:0 0 8px;
border-right:1.7px solid currentColor;
border-bottom:1.7px solid currentColor;
font-size:0;
transform:rotate(45deg);
transition:transform .16s ease}
.nav-group-toggle[aria-expanded='false'] .nav-chevron{
transform:rotate(-45deg)}
.screen-tools{
flex-wrap:wrap;
justify-content:flex-end;
align-items:flex-end;
gap:12px}
.screen-layout-picker,.screen-template-picker{
flex-direction:column;
align-items:flex-start;
gap:4px;
font-size:13px}
.screen-layout-picker select,.screen-template-picker select{
min-width:116px;
padding:8px 10px;
font-size:13px}
.screen-tools time{
align-self:center;
font-size:13px;
white-space:nowrap}
.screen-fullscreen{
white-space:nowrap}
@media(max-width:700px){
.screen-tools{
justify-content:flex-start;
align-items:flex-end;
gap:9px}
.screen-layout-picker select,.screen-template-picker select{
min-width:104px}
.screen-tools time{
font-size:11px}
}

.app-shell.is-sidebar-collapsed .nav-group-toggle{
display:none!important}

.app-shell.is-sidebar-collapsed .nav-items.collapsed{
display:grid!important}

.app-shell.is-sidebar-collapsed .nav-section{
padding-top:5px;
border-top:1px solid rgba(255,255,255,.09)}

.app-shell.is-sidebar-collapsed .nav-items a{
min-height:44px;
overflow:visible}

.app-shell.is-sidebar-collapsed .nav-items a .nav-icon{
display:block;
visibility:visible;
opacity:1}

.app-shell.is-sidebar-collapsed .nav-badge{
top:2px;
right:2px;
width:auto;
min-width:15px;
height:15px;
line-height:15px;
padding:0 3px;
border:1px solid #10213b}

.app-shell.is-sidebar-collapsed .nav-home{
min-height:44px}

#content{
min-width:0}

.page-heading{
align-items:center;
flex-wrap:wrap}

.heading-actions{
display:flex;
align-items:center;
justify-content:flex-end;
gap:8px;
flex-wrap:wrap}

.heading-actions>*{
flex:0 0 auto}

.toolbar{
align-items:center;
gap:10px}

.toolbar input,.toolbar select,.toolbar button{
min-height:40px}

.toolbar select{
max-width:min(230px,100%)}

.toolbar .search{
flex:1 1 280px;
min-width:min(240px,100%)}

.checkline{
min-height:38px}

.table-scroll{
max-width:100%;
overscroll-behavior-x:contain}

table{
min-width:max-content}

th,td{
line-height:1.45}

.row-actions{
display:flex;
align-items:center;
justify-content:flex-start;
gap:4px;
flex-wrap:wrap}

.row-action{
white-space:nowrap}

.status-edit{
min-width:142px;
gap:7px;
flex-wrap:nowrap}

.status-edit select{
min-height:34px;
max-width:150px}

.field label{
font-size:13px;
font-weight:600;
color:#586a81}

.field input,.field select,.field textarea{
min-height:42px;
font-size:14px;
line-height:1.45}

.field textarea{
min-height:96px}

.form-actions{
position:sticky;
bottom:-20px;
padding:12px 0 0;
background:#fff}

.record-dialog .dialog-head,.record-dialog .dialog-body{
padding-left:24px;
padding-right:24px}

.detail-cell small{
display:block;
margin-bottom:5px;
color:#748198;
font-size:12px}

.detail-cell>div{
line-height:1.55;
overflow-wrap:anywhere}

.board-note{
font-size:13px;
line-height:1.5}

.board-card-meta,.board-empty{
font-size:12px;
line-height:1.5}

.board-card-actions .row-action{
font-size:13px}

.table-toolbar-title h2{
line-height:1.4}

.table-toolbar-title .muted{
font-size:13px}

.bulk-toolbar{
gap:8px}

.bulk-toolbar>*{
min-height:36px}

.screen-list-row{
line-height:1.5}

@media(max-width:840px){
.page-heading{
align-items:flex-start}
.heading-actions{
width:100%;
justify-content:flex-start}
.toolbar .search{
min-width:100%;
flex-basis:100%}
.toolbar select{
flex:1 1 140px;
max-width:100%}
.table-toolbar-title{
align-items:flex-start;
flex-direction:column}
.record-dialog .dialog-head,.record-dialog .dialog-body{
padding-left:18px;
padding-right:18px}
}

@media(max-width:540px){
.page-heading h1{
font-size:21px}
.heading-actions>*{
flex:1 1 auto}
.toolbar{
padding:10px}
.toolbar>*{
flex:1 1 100%}
.toolbar select,.toolbar button{
width:100%;
max-width:none}
.checkline{
flex:0 1 auto}
.status-edit{
min-width:125px}
.row-actions{
gap:2px}
.bulk-toolbar>*{
flex:1 1 auto}
.dialog-body{
gap:11px}
}


/* Proportionate navigation badges */
.nav-badge{
min-width:18px;
height:18px;
padding:0 4px;
font-size:10px;
line-height:18px;
font-weight:700}
.app-shell.is-sidebar-collapsed .nav-badge{
min-width:14px;
height:14px;
line-height:14px;
padding:0 2px;
font-size:9px}


/* Smaller, content-sized navigation badges */
.nav-badge{
min-width:14px;
height:14px;
padding:0 3px;
font-size:9px;
line-height:14px;
font-weight:700}
.app-shell.is-sidebar-collapsed .nav-badge{
min-width:12px;
height:12px;
line-height:12px;
padding:0 2px;
font-size:8px}


/* Override generic nav span sizing so badge digits use the badge scale */
.sidebar nav a .nav-badge{
width:auto!important;
min-width:14px;
height:14px;
padding:0 2px;
font-size:9px!important;
line-height:14px;
letter-spacing:0;
text-align:center;
box-sizing:border-box}
.app-shell.is-sidebar-collapsed .sidebar nav a .nav-badge{
min-width:12px;
height:12px;
padding:0 2px;
font-size:8px!important;
line-height:12px}

.topbar{
flex-wrap:wrap}

.topbar>div:first-child{
flex:1 1 260px;
min-width:240px}

.topbar-actions{
min-width:0;
flex-wrap:wrap;
justify-content:flex-end}

.top-actions{
flex-wrap:wrap;
justify-content:flex-end;
margin-left:auto}

.big-screen{
container-type:inline-size;
container-name:big-screen}

.screen-metric{
min-height:110px;
padding:14px}

.screen-metric strong{
font-size:28px}

.screen-panel{
padding:16px}

.screen-header{
padding-bottom:16px;
margin-bottom:16px}

.screen-bar-row{
margin:9px 0}

.screen-bar-track{
height:8px}

.screen-list-row{
padding:8px 0}

.screen-template-command .screen-tools{
position:static}

@container big-screen (max-width:1050px){
.screen-header{
align-items:flex-start;
flex-direction:column}
.screen-tools{
position:static;
width:100%;
justify-content:flex-start;
align-items:flex-end}
.screen-template-command .screen-header{
align-items:flex-start;
text-align:left}
.screen-template-command .screen-tools{
position:static}
.screen-metrics{
grid-template-columns:repeat(3,minmax(0,1fr))}
}

@container big-screen (max-width:680px){
.screen-tools{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
justify-content:stretch;
align-items:end}
.screen-tools time{
grid-column:1/-1;
grid-row:2;
justify-self:start}
.screen-fullscreen{
grid-column:2;
grid-row:2;
justify-self:end}
.screen-layout-picker select,.screen-template-picker select{
width:100%;
min-width:0}
.screen-metrics{
grid-template-columns:repeat(2,minmax(0,1fr))}
.screen-columns{
grid-template-columns:1fr}
.screen-wide{
grid-column:auto}
.screen-header h1{
font-size:24px}
}

@media(max-width:1100px){
.topbar{
align-items:flex-start}
.topbar-actions{
width:100%;
justify-content:flex-end}
.top-actions{
margin-left:auto}
.global-search-trigger{
min-width:170px}
}

@media(min-width:1201px) and (max-height:900px){
.big-screen{
padding:18px}
.screen-metric{
min-height:100px;
padding:12px}
.screen-metric strong{
font-size:25px}
.screen-panel{
padding:14px}
.screen-header{
padding-bottom:12px;
margin-bottom:12px}
.screen-metrics{
gap:10px;
margin-bottom:12px}
.screen-columns{
gap:10px}
.screen-list-row{
padding:6px 0}
}

.control-metrics{
margin:0 0 18px}
.control-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:16px;
margin:0 0 16px}
.control-form{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
align-items:end}
.control-form label{
display:grid;
gap:6px;
color:var(--muted);
font-size:13px}
.control-form input,.control-form select,.control-form textarea{
width:100%;
min-width:0}
.control-form textarea{
resize:vertical}
.control-form button{
justify-self:start}
.control-grid>.panel,.panel+.panel{
min-width:0}
.table-sub{
display:block;
margin-top:4px;
color:var(--muted);
font-size:12px}
.control-metrics article{
min-width:0}
@media(max-width:1100px){
.control-grid{
grid-template-columns:1fr}
}
@media(max-width:700px){
.control-form{
grid-template-columns:1fr}
.control-metrics{
grid-template-columns:repeat(2,minmax(0,1fr))}
}

.control-metrics article{
display:grid;
gap:5px;
padding:15px 16px;
background:var(--surface);
border:1px solid var(--line);
border-radius:12px}
.control-metrics article span{
color:var(--muted)}
.control-metrics article strong{
font-size:24px;
color:var(--ink)}
.control-grid+.panel,.panel+.control-grid{
margin-top:16px}
.control-grid .panel{
height:100%}
.control-form input,.control-form select,.control-form textarea{
border:1px solid var(--line);
border-radius:8px;
padding:9px 10px;
background:#fff;
color:var(--ink)}


/* Keep navigation stable and prevent dense pages from compressing their content. */
@media(min-width:841px){

  .sidebar{
position:sticky;
top:0;
align-self:start;
height:100vh;
overflow-y:auto;
overscroll-behavior:contain}

  .sidebar::-webkit-scrollbar{
width:6px}

  .sidebar::-webkit-scrollbar-thumb{
background:rgba(196,214,237,.28);
border-radius:8px}

  .main{
padding-inline:clamp(20px,2.2vw,32px)}

}

@media(min-width:841px) and (max-width:1050px){

  .dashboard-grid{
grid-template-columns:minmax(0,1fr)}

  .panel-title{
align-items:flex-start;
gap:10px;
flex-wrap:wrap}

  .control-grid{
gap:12px}

}

.dashboard-grid>*{
min-width:0}

.panel table{
max-width:100%;
font-size:12px}

@media(max-width:840px){

  .sidebar{
height:auto;
max-height:42vh;
overflow-y:auto;
overscroll-behavior:contain}

  .sidebar nav{
scrollbar-width:thin}

  .sidebar nav a{
flex:0 0 auto}

  .main{
padding-inline:clamp(14px,3vw,22px)}

}

@media(max-width:540px){

  .sidebar{
max-height:38vh}

  .topbar>div:first-child{
min-width:0;
flex-basis:100%}

  .topbar-actions{
width:100%;
justify-content:space-between}

  .panel{
padding:14px}

  .panel-title .muted{
line-height:1.45}

  .metric-grid,.control-metrics{
grid-template-columns:repeat(2,minmax(0,1fr))}

  .control-metrics article{
padding:12px}

  .control-metrics article strong{
font-size:21px}

  .global-search-dialog{
max-height:84vh}

}

.extension-panel{
margin-top:16px;
min-width:0}

.extension-panel .control-form{
margin:12px 0 16px}

.extension-panel .control-form label{
min-width:0}

.extension-panel .control-form input,.extension-panel .control-form select{
min-height:40px}

.extension-panel .control-form select[multiple]{
height:auto;
min-height:120px}

.extension-panel .table-scroll{
margin-top:10px}

.permission-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:10px;
padding:12px;
border:1px solid var(--line);
border-radius:9px;
background:#fafbfd}

.permission-grid .checkline{
white-space:normal;
color:var(--ink);
font-size:13px}

.upload-field input{
display:block;
margin-top:6px;
width:100%;
padding:9px;
border:1px dashed #b9c8dc;
border-radius:8px;
background:#f8fafd}

.upload-field small{
display:block;
margin-top:6px;
overflow-wrap:anywhere}

.runtime-result{
grid-column:1/-1;
min-width:0;
background:#f7f9fc}

.runtime-result pre{
max-height:320px;
overflow:auto;
margin:8px 0 0;
padding:12px;
border-radius:8px;
background:#101d2d;
color:#d8e6f5;
white-space:pre-wrap;
overflow-wrap:anywhere;
font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}

/* Final layout pass: show every reporting interval without nested scrolling. */
.report-bars{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:4px 16px;
max-height:none;
overflow:visible}
.report-bar-row{
grid-template-columns:minmax(72px,90px) minmax(34px,1fr) 28px minmax(82px,100px);
gap:7px;
margin:5px 0;
font-size:12px}
.report-bar-row small{
font-size:12px;
white-space:nowrap}
.table-scroll{
scrollbar-width:thin;
scrollbar-color:#aebbd0 #eef2f7}
.table-scroll::-webkit-scrollbar{
height:9px}
.table-scroll::-webkit-scrollbar-track{
background:#eef2f7;
border-radius:8px}
.table-scroll::-webkit-scrollbar-thumb{
background:#aebbd0;
border:2px solid #eef2f7;
border-radius:8px}
.metric-label,.metric-foot,.activity-meta,.detail-cell small,.table-sub,
.board-card-meta,.history-entry>small{
font-size:12px}
.metric-label,.table-sub,.detail-cell small{
line-height:1.45}
.screen-tools,.screen-template-picker,.screen-layout-picker{
font-size:13px}
.screen-bar-row,.screen-bar-row strong{
font-size:13px}
@media(max-width:1200px){
.report-bars{
grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
.report-bars{
grid-template-columns:1fr}
.report-bar-row{
grid-template-columns:minmax(66px,78px) minmax(40px,1fr) 28px}
.report-bar-row small{
grid-column:2/-1;
white-space:normal}
}

@media(max-width:700px){
.permission-grid{
grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:480px){
.permission-grid{
grid-template-columns:1fr}
.extension-panel .control-form{
grid-template-columns:1fr}
}

/* Keep each reporting day together; only the row internals use columns. */
.report-bars{
display:flex;
flex-direction:column;
gap:2px;
max-height:none;
overflow:visible}
.report-bar-row{
width:100%;
box-sizing:border-box;
grid-template-columns:minmax(82px,110px) minmax(56px,1fr) 32px minmax(120px,160px);
gap:10px}
@media(max-width:700px){
.report-bar-row{
grid-template-columns:minmax(72px,86px) minmax(45px,1fr) 28px}
.report-bar-row small{
grid-column:2/-1;
white-space:normal}
}

/* Master platform: separately scoped subsystem workspaces */
.subsystem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 22px}
.subsystem-card{min-width:0;display:flex;flex-direction:column;gap:12px;padding:20px}
.subsystem-card-top,.subsystem-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.subsystem-index{font-size:12px;font-weight:750;letter-spacing:.1em;color:var(--muted,#64748b);background:#eef3fb;border-radius:8px;padding:5px 9px}
.subsystem-card h2{font-size:17px;line-height:1.4;margin:0}
.subsystem-card p{color:var(--muted,#64748b);line-height:1.65;margin:0;min-height:48px}
.subsystem-card-foot{border-top:1px solid var(--line,#e5eaf1);padding-top:12px;color:var(--muted,#64748b);font-size:13px}
.subsystem-card-foot .primary{white-space:nowrap;text-decoration:none}
.subsystem-account-panel{margin:20px 0}
.subsystem-account-form{grid-template-columns:1.5fr 1fr 1fr 1fr auto;align-items:center}
.topbar-actions>a#return-master{display:inline-flex;align-items:center;text-decoration:none}
@media(max-width:1050px){.subsystem-account-form{grid-template-columns:repeat(2,minmax(0,1fr))}.subsystem-account-form button{grid-column:span 2}}
@media(max-width:720px){.subsystem-grid{grid-template-columns:1fr}.subsystem-card p{min-height:0}.subsystem-card-foot{align-items:flex-start;flex-direction:column}.subsystem-account-form{grid-template-columns:1fr}.subsystem-account-form button{grid-column:auto}}
