/* A calmer, more legible visual layer for the existing workspace. */
:root{--ink:#202b40;--subtle:#66748b;--line:#e5eaf2;--accent:#5a53c9;--accent-soft:#efedff;--surface:#fff;--canvas:#f4f6fa}
body{font-family:Inter,"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;font-size:15px;line-height:1.55;color:var(--ink);background:var(--canvas)}
button,input,select{font-size:14px}
button{min-height:38px;border-color:#dfe5ee;border-radius:8px;color:#45536a;background:#fff;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}
button:hover:not(:disabled){border-color:#c9c4f1;background:#f8f7ff;color:#5145b8}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b6aefb;outline-offset:2px}
button:disabled{opacity:.5;cursor:not-allowed}
button.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);box-shadow:0 3px 8px #5a53c91c}
button.primary:hover:not(:disabled){background:#4941b5;border-color:#4941b5;color:#fff}
input,select{min-height:40px;border-color:#dce3ed;border-radius:8px;padding:9px 12px;color:var(--ink);background:#fff}
input::placeholder{color:#a0aabc}input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--accent)}
.sidebar{width:224px;background:#fff;border-right:1px solid #e8edf5;box-shadow:2px 0 14px #263b5910}
.logo{height:74px;padding:23px 20px;font-size:16px;color:#1f2d47;letter-spacing:.2px}
.logo b{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:8px;color:#fff;background:#655bd2;font-size:14px;vertical-align:middle}
.nav{padding:10px 12px 24px}.nav .nav-entry{height:46px;border-radius:9px;color:#53627a;font-size:15px}.nav .nav-child{height:42px;font-size:14px;padding-left:30px}
.nav .nav-entry.active{background:var(--accent-soft);color:#5047bc;font-weight:600}.nav .nav-icon{width:19px;flex-basis:19px;font-size:17px;color:#8b99ad}.nav .active .nav-icon{color:#6258d3}
.sidebar-folded .sidebar{width:64px}.sidebar-folded .nav .nav-child{height:40px}
.top{height:74px;padding:0 28px;background:#fff;color:#344158;font-size:15px;font-weight:600;border-color:#edf0f5}.top>span:last-child{font-size:14px;font-weight:400;color:#66748b}.top button{font-weight:500}
.fold-button{min-height:36px;border-radius:8px}.tabs{height:54px;padding:0 24px;gap:8px;background:#fff;border-color:#edf0f5}.tab{min-height:34px;padding:6px 12px;font-size:13px;border-color:#edf0f5;color:#69788e;background:#fafbfd}.tab.active{background:#f3f1ff;border-color:#d8d3fa;color:#5146bb;font-weight:600}
.content{padding:24px 28px 40px}.banner{padding:12px 16px;margin-bottom:20px;border-radius:9px;background:#fffbef;border-color:#f6e7b8;color:#88641d;font-size:14px}
.card,.workbench,.home-panel,.home-filters{background:var(--surface);border:1px solid #e9edf4;border-radius:12px;box-shadow:0 5px 18px #273c5a0b}
.card,.workbench{padding:24px}.card h2,.home-heading h2{font-size:18px;font-weight:650;color:#26344b}.card h3,.home-section h3{font-size:16px;font-weight:600;color:#33425a}
.muted,.home-note{font-size:13px;line-height:1.65;color:#75839a}.filters{gap:10px 12px}.filters input{min-width:180px}
.workbench{min-height:470px}.wb-filters{gap:14px 18px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid #edf1f6}.wb-filters label{font-size:14px;color:#56657c;font-weight:500}.wb-filters input,.wb-filters select{width:165px;font-size:14px}.wb-tabs{gap:24px;border-color:#edf0f5}.wb-tabs button{min-height:42px;font-size:14px;color:#738096}.wb-tabs button.selected{color:#554bc2;border-color:#655bd2;font-weight:600}
.filter-actions{display:flex;gap:10px;align-items:center;white-space:nowrap}
.wb-toolbar{gap:12px;margin:16px 0}.wb-toolbar>span{font-size:16px;font-weight:600;color:#344258}.wb-pager{font-size:14px;color:#718098;flex-wrap:wrap}
.tablewrap{border:1px solid #e9edf4;border-radius:10px;overflow:auto}table{border-collapse:separate;border-spacing:0}th,td{border:0;border-bottom:1px solid #edf0f5;padding:14px 16px;font-size:14px;line-height:1.45}th{background:#f7f9fc;color:#64738a;font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fafbff}td{color:#344258}td button{min-height:30px;padding:3px 8px;color:#5b50c9;border:0;background:transparent;font-weight:500}td button:hover:not(:disabled){background:#f0edff}
.split{grid-template-columns:250px minmax(0,1fr);gap:18px}.room{min-height:42px;border-radius:8px;font-size:14px;color:#59687f}.room.active{background:#efedff;color:#554bc2;font-weight:600}.tag-group,.room-group{border-bottom:1px solid #f0f2f6;padding:3px 0 8px}.tag-group>button:not(.room),.room-group>button:not(.room){min-height:30px;padding:3px 7px;border:0;background:transparent;color:#7369ca;font-size:13px}
.home-filters,.home-panel{padding:24px;margin-bottom:20px}.home-filters{gap:22px}.home-heading{margin-bottom:22px}.home-heading .hint{font-size:13px;color:#7c899d}.home-heading .total{font-weight:600}.home-period button{font-size:14px;padding:8px 14px}.home-period button:first-child{border-radius:8px 0 0 8px}.home-period button:last-child{border-radius:0 8px 8px 0}.home-period button.selected{background:#efedff;color:#554ac4;font-weight:600}
.home-section{margin-top:24px}.home-section h3{margin-bottom:12px}.home-grid{gap:16px}.home-stat{min-height:120px;padding:18px 20px;border:1px solid #eef1f7;border-radius:10px;background:#f8f9fd}.home-stat .label{font-size:14px;color:#6a788e}.home-stat .value{font-size:25px;font-weight:650;letter-spacing:.2px;color:#273750;margin:10px 0}.home-stat .comparison{font-size:13px;color:#8190a5}.home-chart text{font-size:12px}.home-chart .line{stroke:#6d79e9;stroke-width:2.5}.home-chart circle{stroke:#6d79e9}
.dialog{z-index:100;background:#1c294766;backdrop-filter:blur(2px);padding:16px}.dialog form{width:min(520px,94vw);padding:28px;border-radius:14px;box-shadow:0 24px 70px #17243b38}.dialog h2{margin:0 0 20px;font-size:20px;color:#25344d}.dialog label{font-size:14px;font-weight:500;color:#4d5b72}.dialog .actions{padding-top:16px;border-top:1px solid #edf0f5}.dialog .checks label{font-size:14px}
.login{max-width:430px;margin:13vh auto;padding:40px;border:1px solid #e9edf4;border-radius:16px;box-shadow:0 20px 55px #263a5d16}.login:before{content:'●';display:grid;place-items:center;width:42px;height:42px;margin-bottom:24px;border-radius:13px;background:#6258d0;color:#fff}.login h1{font-size:23px;line-height:1.4}.login input,.login button{min-height:46px}.login .muted{color:#7b899e}
@media(max-width:900px){.sidebar{width:200px}.sidebar-folded .sidebar{width:64px}.content{padding:18px}.split{grid-template-columns:1fr}.home-filters,.home-grid{grid-template-columns:1fr}.top{padding:0 16px}.wb-filters input,.wb-filters select{width:145px}}

/* Consistent sizing and hierarchy across business and management screens. */
body{font-size:16px;line-height:1.6}
button,input,select,textarea{font-size:15px}
button{min-height:42px;padding:9px 16px}input,select{min-height:44px}
.sidebar{width:238px}.sidebar-folded .sidebar{width:68px}
.logo{height:76px;font-size:17px}.nav .nav-entry{height:48px;font-size:16px}.nav .nav-child{height:44px;font-size:15px}
.top{height:76px;font-size:16px}.top>span:last-child{font-size:15px}.tabs{height:58px}.tab{font-size:14px;min-height:38px}
.content{padding:26px 30px 44px}.banner{font-size:15px;padding:13px 18px}
.card,.workbench{padding:26px}.card h2,.home-heading h2{font-size:20px}.card h3,.home-section h3{font-size:17px}
.muted,.home-note{font-size:14px;color:#64748b}.badge{font-size:14px}
.wb-filters{gap:16px 20px}.wb-filters label{font-size:15px}.wb-filters input,.wb-filters select{width:170px;font-size:15px}.wb-tabs button{font-size:15px;min-height:46px}.wb-toolbar>span{font-size:17px}.wb-pager{font-size:15px}
th,td{font-size:15px;padding:15px 17px}td button{font-size:15px;min-height:34px}.tablewrap{max-width:100%}
.room{font-size:15px;min-height:46px}.tag-group>button:not(.room),.room-group>button:not(.room){font-size:14px;min-height:34px}
.home-heading .hint,.home-stat .comparison{font-size:14px}.home-section h3{font-size:17px}.home-stat .label{font-size:15px}.home-stat .value{font-size:27px}.home-period button{font-size:15px}.home-chart text{font-size:13px}
.metric{border:1px solid #eef1f7;border-radius:10px;background:#f8f9fd;padding:20px;min-width:0}.metric span{font-size:15px;color:#6a788e}.metric strong{font-size:27px;color:#273750}.report-note{border:1px solid #f6e7b8;border-radius:9px;padding:14px 16px;font-size:15px}
.dialog form{width:min(560px,94vw);padding:30px}.dialog h2{font-size:22px}.dialog label,.dialog .checks label{font-size:15px}.dialog input,.dialog select{min-height:44px}.dialog .checks input{min-height:0}.dialog .actions{position:sticky;bottom:-30px;background:#fff;padding:16px 0 4px;z-index:1}
.role-panel .section-heading{padding-bottom:12px}.role-panel .section-heading h2{margin-bottom:8px}.role-panel .section-heading p{margin:0}.role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;margin-top:18px}
.role-card{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #e8ecf4;border-radius:12px;background:#fcfdff;min-width:0}.role-card:hover{border-color:#d7d1f8;box-shadow:0 8px 24px #4f46a20d}.role-mark{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:12px;background:#eeecff;color:#5a50c6;font-weight:700}.role-info{min-width:0;flex:1}.role-info h3{margin:0 0 5px;font-size:17px}.role-info p{margin:3px 0;color:#63738b;font-size:14px}.scope-chip{display:inline-block;padding:2px 8px;border-radius:6px;color:#5d54bc;background:#f0eeff}.role-info .role-count{color:#7b899b;font-size:13px}.role-card>button{flex:none;white-space:nowrap}
.split{grid-template-columns:290px minmax(0,1fr)}.split>.card:first-child .wb-tabs{gap:14px}.split>.card:first-child .wb-tabs button{font-size:14px}.split>.card:first-child input:not([type=checkbox]):not([type=radio]){max-width:100%}
.login{max-width:450px}.login h1{font-size:25px}.login input,.login button{min-height:50px;font-size:16px}
@media(max-width:1100px){.sidebar{width:210px}.sidebar-folded .sidebar{width:68px}.content{padding:20px}.wb-filters input,.wb-filters select{width:150px}.role-grid{grid-template-columns:1fr}}
@media(max-width:900px){.split{grid-template-columns:1fr}}
@media(max-width:700px){.top{height:auto;min-height:70px;gap:8px;flex-wrap:wrap;padding:12px 14px}.content{padding:14px}.card,.workbench,.home-panel,.home-filters{padding:18px}.wb-filters label{flex-wrap:wrap}.wb-toolbar{flex-wrap:wrap}.wb-pager{justify-content:flex-start}.detail-grid{grid-template-columns:1fr}.role-card{padding:16px}.sidebar{width:185px}.sidebar-folded .sidebar{width:68px}}

/* The navigation uses one consistent set of vector icons, independent of system fonts. */
.nav .nav-entry{gap:12px}
.nav .nav-icon{width:22px;height:22px;flex:0 0 22px;color:#718199}
.nav .nav-icon svg{display:block;width:21px;height:21px}
.nav .nav-child .nav-icon svg{width:19px;height:19px}
.nav .nav-entry:hover .nav-icon{color:#6258cc}
.nav .nav-entry.active .nav-icon{color:#5a4fc9}
.nav .nav-parent.parent-active .nav-icon{color:#6e63c5}
.nav .nav-arrow{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;color:#9aa6b8;transition:transform .16s ease}
.nav .nav-arrow svg{width:15px;height:15px}
.nav .nav-arrow.expanded{transform:rotate(180deg)}
.sidebar-folded .nav .nav-entry{gap:0}
.sidebar-folded .nav .nav-arrow{display:none}
