:root{color-scheme:light;--ink:#243354;--sub:#586681;--surface:#f9faff;--line:#dbe3f0;--accent:#5869b6;--radius:24px;font-family:'Segoe UI',Arial,sans-serif;font-size:14px;color:var(--ink);background:#e2e5f8}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 95% 10%,#e7bfe2 0,transparent 47%),radial-gradient(ellipse at 20% 100%,#ace0f1 0,transparent 58%),linear-gradient(135deg,#d4e6fa,#dedbf6 62%,#e9d8ee);min-height:100vh}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7189cd;outline-offset:3px}button{color:inherit}a{color:#5266af}input,select,textarea{border:1px solid #bdcbe4;background:#fff;color:var(--ink);padding:10px 12px;border-radius:12px;max-width:100%;min-width:0}label{display:flex;flex-direction:column;gap:6px;font-size:13px}textarea{min-height:80px;resize:vertical}.app{display:grid;grid-template-columns:190px minmax(0,1fr);max-width:1560px;margin:auto;min-height:100vh}.sidebar{background:linear-gradient(170deg,#eef2fc,#edecfa 65%,#e6f0f9);border-right:1px solid #fff;padding:32px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:29px;font-weight:600;letter-spacing:-1px}.orbit{display:inline-flex;width:29px;height:36px;border:1.5px solid #7988cf;border-radius:60% 40% 60% 40%;transform:rotate(28deg);align-items:center;justify-content:center;box-shadow:0 0 18px #9faaf67a}.orbit:after{content:'';width:11px;height:24px;border:1px solid #7988cf;border-radius:60% 40%;transform:rotate(55deg)}.demo-label{font-size:11px;letter-spacing:3px;margin:8px 0 35px 41px;color:var(--sub)}nav{display:grid;gap:7px}nav button{text-align:left;border:0;background:none;padding:12px 10px;display:flex;align-items:center;gap:10px;color:var(--sub);border-radius:14px}nav button.active{background:#fff;color:#4e5fa7;box-shadow:0 6px 22px #6a7aaf0c}.side-bottom{margin-top:auto;padding-top:90px;font-size:12px;color:var(--sub)}.avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#dee4f8;color:#5667a5}.quiet{display:block;border:0;background:transparent;padding:10px 0;font-size:12px;color:var(--sub)}main{padding:32px 34px;min-width:0}.topbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:36px}.topbar strong{font-weight:500;font-size:15px}.topbar small{display:block;color:var(--sub);font-size:12px;margin-top:4px}.badge{font-size:11px;border:1px solid #d5dff1;background:#f7f8fe;color:#586582;border-radius:20px;padding:5px 10px;display:inline-block}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:25px}h1{font-size:31px;font-weight:500;letter-spacing:-1px;margin:0 0 7px;line-height:1.2}.page-heading p{margin:0;font-size:13px;color:var(--sub)}h2{font-size:16px;font-weight:500;margin:0}h3{font-size:14px;font-weight:500;margin:10px 0}.period{font-size:11px;color:var(--sub)}.period select{background:#f8faff}.grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);gap:18px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;grid-column:1/-1}.panel{background:var(--surface);border:1px solid #fff;border-radius:var(--radius);padding:23px;box-shadow:0 0 20px #b5cafa45,0 8px 28px #5269a00b,inset 0 1px 0 #fff;min-width:0}.metric{text-align:left;position:relative;overflow:hidden}.metric.hero{background:radial-gradient(ellipse at 100% 5%,#aa7dc1 0,transparent 65%),linear-gradient(120deg,#4269af,#6c68b3);color:white}.metric.hero:after{content:'';position:absolute;width:140px;height:95px;right:-42px;bottom:-35px;border:1px solid #dbe8ff70;border-radius:50%;transform:rotate(-25deg);box-shadow:0 0 0 15px #dbe8ff0c,0 0 0 35px #dbe8ff08}.metric-label{font-size:12px;color:var(--sub);display:flex;justify-content:space-between}.hero .metric-label,.hero .context{color:#fff}.number{display:block;font-size:clamp(25px,2.6vw,36px);font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:12px 0;white-space:nowrap;line-height:1.2}.context{font-size:11px;color:var(--sub)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.caption{font-size:12px;color:var(--sub)}.amount{font-variant-numeric:tabular-nums;white-space:nowrap}.account{display:flex;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}.account:last-child{border:0}.account small{display:block;color:var(--sub);font-size:11px;margin-top:3px}.account strong{font-weight:500}.rows{display:grid;gap:15px}.bar-label{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:7px}.track{height:6px;background:#e7ecf8;border-radius:9px;overflow:hidden}.track b{display:block;height:100%;background:linear-gradient(90deg,#79a8de,#a49cdb 75%,#c3a5d5);border-radius:9px}.pair{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.pair:last-child{border:0}.note{font-size:12px;color:var(--sub);padding-top:15px;margin:15px 0 0;border-top:1px solid var(--line);line-height:1.6}.full{grid-column:1/-1}.link{border:0;padding:0;background:none;color:var(--accent);text-align:left;font:inherit}.link:hover{text-decoration:underline}.primary,.secondary{border-radius:13px;padding:11px 16px;border:1px solid #bac9e7;background:#f9faff}.primary{background:#596eb5;color:white;border-color:#596eb5;box-shadow:0 5px 18px #6d80b725}.secondary{color:#405789}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.actions{display:flex;gap:9px;flex-wrap:wrap}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;margin-bottom:19px}.filters input,.filters select{width:100%}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:11px;font-weight:400;color:var(--sub);padding:11px 9px 13px}td{border-top:1px solid var(--line);padding:13px 9px;vertical-align:middle}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}td small{display:block;color:var(--sub);font-size:11px;max-width:300px}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}tfoot td{font-weight:500;background:#eef2fb}.chip{display:inline-block;font-size:11px;background:#e9edf9;color:#4f6399;border-radius:8px;padding:4px 7px;white-space:nowrap}.chip.warning{background:#f1e7f5;color:#794d91}.positive{color:#356f70}.negative{color:#76568b}.table-button{border:0;background:none;padding:4px;color:var(--accent);text-align:left}.table-button:hover{text-decoration:underline}.report-row{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.report-row.summary{font-size:16px;background:#edf2fc;margin:0 -12px;padding:15px 12px;border-radius:10px;border:0}.report-row .link{text-align:right;font-variant-numeric:tabular-nums}.report-group{margin:20px 0 12px;color:var(--sub);font-size:12px;text-transform:uppercase;letter-spacing:1px}.report-row.indent{padding-left:18px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tabs button{border:1px solid #c6d1e9;border-radius:12px;padding:9px 12px;background:#f9faff}.tabs button.selected{background:#5c6fb4;color:white;border-color:#5c6fb4}.empty{text-align:center;padding:35px 12px;color:var(--sub)}#notice:not(:empty){background:#f7f9ff;border:1px solid #bdcce5;border-radius:13px;padding:12px 16px;margin-bottom:17px}#notice.error{color:#9b3f56;background:#fff5f8}footer{font-size:11px;color:var(--sub);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:25px}dialog{border:1px solid #fff;border-radius:25px;background:#f7f9ff;color:var(--ink);width:min(720px,calc(100% - 24px));max-height:90vh;padding:25px;box-shadow:0 25px 100px #27365a4a}dialog::backdrop{background:#26335466;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.dialog-head h2{font-size:21px}.icon-button{border:0;background:none;font-size:26px;padding:0 7px;color:var(--sub)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.form-hint{font-size:12px;color:var(--sub);line-height:1.6}#form-error{color:#a33755;margin-top:12px}.chart{width:100%;height:210px;display:block}.chart-grid{stroke:#dce4f1;stroke-width:1}.chart text{fill:#586681;font-family:inherit;font-size:11px}.chart-line{fill:none;stroke:#6589cf;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.chart-out{fill:none;stroke:#a18ac9;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.legend{font-size:12px;color:var(--sub);display:flex;gap:20px;flex-wrap:wrap;margin-top:12px}.legend span:before{content:'';display:inline-block;width:15px;height:3px;background:#6589cf;vertical-align:middle;margin-right:6px;border-radius:3px}.legend span+span:before{background:#a18ac9}.login-body{display:grid;place-items:center;padding:24px}.login-panel{background:#fafbff;border:1px solid white;border-radius:28px;padding:40px;max-width:460px;width:100%;box-shadow:0 0 40px #c0d2fb66,0 30px 100px #50619418}.login-panel .brand{margin-bottom:25px}.login-panel h1{margin-top:25px;font-size:29px}.login-panel p{color:var(--sub);line-height:1.7}.login-panel form{display:grid;gap:17px;margin:25px 0}.login-panel small{font-size:11px;color:var(--sub)}#error{color:#a33755}code{font-size:12px}.guide-step{border-bottom:1px solid var(--line);padding:12px 0}.guide-step strong{font-weight:500}.inline-actions{display:flex;gap:8px;align-items:center}.pill-count{font-size:11px;background:#f1e7f5;padding:3px 7px;border-radius:10px;color:#794d91}[hidden]{display:none!important}@media(min-width:1400px){.number{font-size:36px}.chart{height:245px}}@media(max-width:1000px){.app{grid-template-columns:158px minmax(0,1fr)}.sidebar{padding:25px 13px}main{padding:26px 22px}.panel{padding:19px}.metrics{gap:12px}.number{font-size:26px}.filters{grid-template-columns:1fr 1fr}.grid{grid-template-columns:minmax(0,1.4fr) minmax(210px,1fr)}}@media(max-width:760px){.app{display:block}.sidebar{padding:17px 20px}.brand{font-size:26px}.demo-label,.side-bottom{display:none}nav{display:flex;gap:4px;flex-wrap:wrap;margin-top:15px}nav button{padding:9px;font-size:12px}main{padding:23px 16px}.topbar{margin-bottom:24px}.topbar small{max-width:200px}.topbar .badge{max-width:125px}.page-heading h1{font-size:28px}.grid{display:flex;flex-direction:column}.metrics{grid-template-columns:1fr}.number{font-size:34px}.metric{padding:23px}.filters{grid-template-columns:1fr 1fr}table{font-size:12px}td,th{padding-left:6px;padding-right:6px}.report-row{grid-template-columns:minmax(0,1fr) 135px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.period select,input,textarea,select{font-size:16px}.chart{height:210px}.login-panel{padding:30px 24px}.actions button{flex-grow:1}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .16s,box-shadow .16s}.panel{transition:box-shadow .2s}.metric:hover{box-shadow:0 0 27px #a5c2f97a}}
:root .allocation-section{border:1px solid #d2dcef;background:#eef2fc;border-radius:16px;padding:17px}.allocation-section h3{margin:0}.allocation-row{display:grid;grid-template-columns:minmax(0,1fr) 125px 145px;gap:12px;align-items:start;padding:14px 0;border-top:1px solid var(--line)}.allocation-row strong{font-size:13px;font-weight:500}.allocation-row small{display:block;font-size:11px;color:var(--sub);margin-top:5px}.allocation-row input{width:100%;font-variant-numeric:tabular-nums}.allocation-row label{font-size:11px}.allocation-section .panel-head{margin-bottom:10px}.allocation-section .negative{color:#94445d}.allocation-section #allocation-summary{padding-top:12px;border-top:1px solid var(--line)}@media(max-width:680px){.allocation-row{grid-template-columns:1fr 1fr}.allocation-row>div{grid-column:1/-1}}
:root{--page-heading-height:94px}.brand-name{font-size:19px;font-weight:500;letter-spacing:-.5px;line-height:1.15;white-space:normal;max-width:110px}.page-heading{position:sticky;top:0;z-index:40;background:#e8e7f8;padding:14px 0;border-bottom:1px solid #d7def0}.panel>.panel-head{position:sticky;top:var(--page-heading-height);z-index:20;background:var(--surface);padding:10px 0;box-shadow:0 -8px 0 var(--surface),0 5px 0 var(--surface)}.floating-table-head{position:fixed;z-index:30;overflow:hidden;pointer-events:none;background:#f1f4fc;border-bottom:1px solid #bdcce5;box-shadow:0 5px 12px #3c51851a}.floating-table-head table{margin:0;border-collapse:collapse}.floating-table-head th{background:#f1f4fc;color:#405575;vertical-align:middle}.floating-table-head[hidden]{display:none}.document-filters{align-items:end}.document-filters label{font-size:11px}#new-user-access{min-height:125px;font-family:inherit}.side-bottom{overflow-wrap:anywhere}@media(max-width:760px){.side-bottom{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:14px;margin:0}.side-bottom .avatar{display:none}.side-bottom .quiet{padding:4px 0}.page-heading{padding:12px 0}.panel>.panel-head{top:var(--page-heading-height)}.brand-name{max-width:none;font-size:21px}}

.page-heading{flex-wrap:wrap;gap:16px}.page-heading>div{flex:1 1 240px}.period select{max-width:290px}.period{flex:0 1 auto}@media(max-width:700px){.period,.period select{max-width:100%;width:100%}}

/* Built-in lightweight CRM */
.crm-main{overflow:hidden}.crm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.crm-tabs{margin:0}.crm-metrics{margin-bottom:18px}.crm-board{display:grid;grid-auto-columns:minmax(220px,1fr);grid-auto-flow:column;gap:12px;overflow-x:auto;padding:2px 2px 14px}.crm-lane{min-width:0;border:1px solid #e0e6f2;background:#f4f6fc;border-radius:16px;padding:12px}.crm-lane-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-size:12px}.crm-lane-head span{background:#e4e9f5;border-radius:10px;padding:3px 8px;color:var(--sub)}.crm-deal-card{display:grid;width:100%;gap:7px;text-align:left;border:1px solid #e4e8f2;background:#fff;border-radius:13px;padding:12px;margin-bottom:9px;box-shadow:0 4px 12px #5269a00b}.crm-deal-card:hover{border-color:#aab9dd;box-shadow:0 6px 16px #5269a01b}.crm-deal-card strong{font-weight:500;line-height:1.4}.crm-deal-card>span,.crm-deal-card small{font-size:11px;color:var(--sub);line-height:1.45}.crm-deal-card>b{font-size:15px;font-weight:500;color:#405789}.crm-deal-card .crm-project{color:#658078}.crm-lane-empty{font-size:12px;color:var(--sub);padding:12px 3px}.crm-boundary{margin-bottom:20px}.crm-table-note{margin-top:0}.crm-main .panel-head{align-items:flex-start}@media(max-width:760px){.crm-toolbar{align-items:stretch}.crm-toolbar>.actions{width:100%}.crm-board{grid-auto-columns:minmax(235px,78vw)}.crm-metrics{grid-template-columns:1fr}.crm-deal-card{padding:14px}}

/* Keep the CRM section heading in normal flow under the sticky page heading. */
.crm-main{overflow:visible}
.crm-main>.panel-head{position:static;top:auto;z-index:auto;background:transparent;padding:0;box-shadow:none;margin-bottom:20px}
.crm-revenue-box{border:1px solid #d2dcef;background:#eef2fc;border-radius:16px;padding:16px}
.crm-revenue-box h3{margin:0 0 10px}
.crm-checkbox{display:flex;flex-direction:row;align-items:center;gap:10px}
.crm-checkbox input{width:auto;padding:0;accent-color:var(--accent)}
#deal-revenue-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
#deal-revenue-fields .form-hint{grid-column:1/-1}
@media(max-width:760px){#deal-revenue-fields{grid-template-columns:1fr}}
#deal-revenue-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
#deal-revenue-fields .form-hint{grid-column:1/-1}
.crm-deal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.crm-deal-metrics>div{background:#fff;border:1px solid #dce4f3;border-radius:12px;padding:12px;min-width:0}
.crm-deal-metrics small,.crm-deal-metrics strong{display:block}
.crm-deal-metrics small{color:#62718c;margin-bottom:6px}
.crm-deal-metrics strong{font-size:16px;color:#293c67;overflow-wrap:anywhere}
.crm-revenue-box h4{margin:20px 0 8px}
.crm-execution-row{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(200px,.8fr);gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #e6ebf5}
.crm-execution-row .link{text-align:left;white-space:normal}
@media(max-width:760px){.crm-deal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-execution-row{grid-template-columns:1fr auto}.crm-execution-row>span:last-child{grid-column:1/-1}}

/* CRM board and large deal lists */
.crm-filters{display:grid;grid-template-columns:minmax(260px,1fr) minmax(170px,230px) auto;gap:12px;align-items:end;margin:0 0 16px;padding:14px;background:#f1f4fc;border:1px solid #e0e6f2;border-radius:15px}
.crm-filters label{gap:6px;font-size:11px;color:var(--sub)}
.crm-filters input,.crm-filters select{width:100%;height:42px}
.crm-result-count{margin:0 0 11px;font-size:12px;color:var(--sub);white-space:nowrap}
.crm-result-count strong{color:var(--ink);font-weight:600}
.crm-board{grid-auto-columns:minmax(260px,290px);align-items:stretch;max-height:min(74vh,790px);overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-color:#9ba8c6 #e9edf7;scrollbar-width:thin}
.crm-lane{display:flex;flex-direction:column;min-height:310px;height:min(70vh,740px);max-height:740px;padding:11px 10px 10px}
.crm-lane-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center;flex:none;padding:2px 2px 11px;border-bottom:1px solid #dce3f0}
.crm-lane-head strong{font-size:13px;font-weight:600;min-width:0}
.crm-lane-head span{color:var(--sub);font-size:11px;white-space:nowrap}
.crm-lane-head b{grid-column:1/-1;color:#405789;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.crm-lane-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:10px 4px 2px 0;overscroll-behavior:contain;scrollbar-color:#aab6d0 #edf0f8;scrollbar-width:thin}
.crm-deal-card{gap:6px;margin-bottom:8px;padding:11px;border-radius:11px}
.crm-deal-card strong{font-size:13px}
.crm-deal-card>b{font-size:14px;font-variant-numeric:tabular-nums}
.crm-load-more{width:100%;border:1px dashed #aab7d2;border-radius:10px;background:#f9faff;color:#465b91;padding:10px;margin:2px 0 6px;font-size:12px}
.crm-load-more:hover{background:#e8eefb;border-color:#7187bc}
.crm-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 2px;color:var(--sub);font-size:12px}
.crm-pagination>div{display:flex;align-items:center;gap:10px}
.crm-pagination button{padding:8px 12px}
.crm-pagination button:disabled{cursor:default;opacity:.45}
@media(max-width:760px){.crm-filters{grid-template-columns:1fr 1fr;gap:10px}.crm-search-label{grid-column:1/-1}.crm-result-count{margin:0 0 11px;align-self:end}.crm-board{grid-auto-columns:minmax(250px,78vw);max-height:66vh}.crm-lane{height:60vh;min-height:290px;max-height:620px}.crm-pagination{align-items:flex-start;flex-direction:column}.crm-pagination>div{width:100%;justify-content:space-between}}

/* Light contour: navigation and overview hierarchy. */
.app {
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  padding: 23px 14px 14px;
  gap: 20px;
  color: #f7f8ff;
  background: radial-gradient(ellipse at 12% 0%, #4a6093 0, transparent 52%),
    linear-gradient(162deg, #293a63, #303052 63%, #39325a);
  border-right: 1px solid #636e9c;
  scrollbar-color: #7384ac transparent;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 4px 4px 0;
}

.sidebar .brand {
  color: #fff;
  gap: 9px;
}

.sidebar .brand-name {
  max-width: none;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 650;
}

.sidebar .orbit {
  width: 25px;
  height: 31px;
  border-color: #c2d9ff;
  box-shadow: 0 0 16px #a4c8ff57;
}

.sidebar .orbit::after {
  width: 10px;
  height: 21px;
  border-color: #d8d2ff;
}

.sidebar .demo-label {
  display: inline-flex;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #9badd185;
  border-radius: 999px;
  color: #e5edff;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
}

.sidebar nav {
  display: grid;
  gap: 13px;
  margin: 0;
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-caption {
  padding: 0 11px 3px;
  color: #c5d2f1;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sidebar [data-page] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  text-align: left;
  color: #f7f8ff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 550;
}

.sidebar [data-page] svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #bbcbf2;
}

.sidebar [data-page]:hover, .sidebar .quiet:hover {
  background: #ffffff18;
}

.sidebar [data-page].active {
  background: #e8edff;
  color: #25365e;
  border-color: #f4f6ff;
  font-weight: 650;
  box-shadow: 0 4px 14px #151c3938;
}

.sidebar [data-page].active svg {
  color: #435b9c;
}

.sidebar :focus-visible {
  outline-color: #b9d5ff;
  outline-offset: 2px;
}

.sidebar .side-bottom {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  color: #e0e8ff;
  border-top: 1px solid #b9c8f04a;
}

.sidebar-identity, .sidebar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.sidebar .sidebar-identity {
  padding: 0 6px;
}

.sidebar .quiet {
  color: #e0e8ff;
  border-radius: 7px;
  padding: 6px;
  min-height: 30px;
}

.panel {
  border-color: #e1e6f3;
  box-shadow: 0 5px 18px #3146750a;
}

.panel.metric.hero {
  background: radial-gradient(ellipse at 100% 0%, #8064aa 0, transparent 70%),
    linear-gradient(120deg, #365a99, #53549a);
  border-color: #e5e6fc;
  box-shadow: 0 8px 20px #425a9e23;
}

.metric-label, .context {
  font-size: 12px;
}

.metric-label, .panel-head h2 {
  font-weight: 600;
}

.primary {
  background: #5263a8;
  border-color: #5263a8;
}

.overview-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 15px 19px;
}

.overview-actions h2 {
  font-weight: 650;
  margin: 0 0 5px;
}

.overview-actions p, .overview-ready {
  font-size: 12px;
  color: var(--sub);
}

.overview-actions p {
  margin: 0;
  line-height: 1.5;
}

.overview-actions .actions {
  align-items: center;
}

.action-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8edfb;
  color: #374d87;
  font-variant-numeric: tabular-nums;
}

.chart-out {
  stroke: #8264a5;
  stroke-dasharray: 6 4;
}

.legend span + span::before {
  background: repeating-linear-gradient(to right, #8264a5 0 5px, transparent 5px 8px);
}

@media (max-width: 1050px) {
  .app { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .sidebar .brand-name { font-size: 16px; }
  .sidebar-brand { gap: 6px; }
}

@media (max-width: 760px) {
  .sidebar { position: static; height: auto; overflow: visible; gap: 13px; padding: 14px; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .nav-group { align-content: start; }
  .sidebar .side-bottom { margin: 0; }
  .sidebar [data-page] { min-height: 40px; gap: 8px; padding-inline: 8px; font-size: 13px; }
  .sidebar .brand-name { font-size: 18px; }
  .overview-actions .actions { width: 100%; }
}

#import-bulk-apply:disabled, #import-bulk-project-apply:disabled { cursor: default; }

/* Money register and contextual settlement feedback. */
.money-actions{margin-bottom:18px}.money-actions button,.money-search button,.money-search input{min-height:44px}
.money-search input{flex:1;min-width:min(100%,230px)}.money-search{margin-bottom:10px}
.money-review{padding:12px 16px;border-radius:12px;background:#eef2fc;margin-bottom:16px}
.money-review p{margin:4px 0 0;font-size:14px;color:var(--sub)}.money-review label{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%}.money-review input{width:auto}
.money-filters{margin-bottom:12px}.money-filters summary,.money-row-details summary{cursor:pointer;color:#405789}.money-filters summary{padding:8px 0}.money-filters .filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));margin:6px 0 0}
.money-results table{font-size:15px}.money-results th,.money-results .chip{font-size:13px}.money-results .table-button{font-size:inherit;font-weight:600;padding:0}.money-row-details{font-size:13px;margin-top:3px}.money-row-details div{display:grid;gap:2px;color:var(--sub);padding-top:5px}
#operation-form .allocation-section h3{font-size:16px}#operation-form .allocation-row strong,#operation-form .allocation-row label{font-size:14px}#operation-form .allocation-row small,#operation-form #allocation-summary{font-size:14px}
#operation-form .allocation-empty{padding:9px 14px;background:#f7f9ff}#operation-form .allocation-empty #allocation-summary{padding:0;border:0}
.money-filters summary:focus-visible,.money-row-details summary:focus-visible,.money-results button:focus-visible{outline:2px solid #405789;outline-offset:3px}
@media(max-width:620px){.money-results table{font-size:14px}.money-results .chip{white-space:normal}.money-results th:first-child,.money-results td:first-child{min-width:65px}}

.crm-allocation-assignment{display:grid;gap:8px;padding:14px 15px;margin:0 0 16px;background:#f8faff;border:1px solid #dce4f3;border-radius:13px}
.crm-allocation-assignment label{font-size:13px;font-weight:500}
.crm-allocation-assignment select{width:100%;margin-top:2px}
.crm-allocation-assignment small{display:block;font-size:12px;color:var(--sub);line-height:1.5}
.crm-settlement-title{padding:0 0 8px;margin:0 0 10px;border-bottom:1px solid var(--line)}
.crm-settlement-title h3{margin:0;font-size:15px}
.crm-no-settlements{margin:4px 0 12px;line-height:1.5}
@media(max-width:760px){.crm-allocation-assignment{padding:12px}.crm-allocation-assignment select{font-size:16px}}
.staff-page{display:grid;gap:18px}
.staff-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap}
.staff-toolbar .tabs{margin:0}
.staff-toolbar input{background:var(--surface)}
.staff-table{overflow-x:auto}
.staff-table:focus-visible{outline:2px solid #405789;outline-offset:3px}
.staff-table table{min-width:480px}
.staff-table .table-button{min-height:28px;text-align:left}
.staff-table td small{display:block;color:var(--sub);margin-top:3px}
.staff-page .number{font-size:clamp(21px,2.5vw,35px);white-space:normal;overflow-wrap:anywhere}
.staff-page .note{margin-bottom:0}
.staff-calendar-person{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 18px;font-size:16px}
.staff-calendar-person span{color:var(--sub);font-size:13px}
.staff-calendar-hint{margin:8px 0 16px}
.staff-workdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:10px;border:1px solid var(--line);border-radius:18px;background:#fafbff}
.staff-weekday{text-align:center;padding:4px 0 6px;font-size:12px;color:var(--sub)}
.staff-workday{position:relative;display:grid;place-items:center;min-height:42px;border-radius:11px;color:var(--ink);font-size:15px;font-variant-numeric:tabular-nums}
.staff-workday input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.staff-workday span{display:grid;place-items:center;width:100%;height:100%;min-height:42px;border:1px solid transparent;border-radius:inherit}
.staff-workday:hover span{background:#eef1fc}
.staff-workday input:checked+span{background:#e5e9fa;border-color:#a9b5e3;color:#263b80;font-weight:650}
.staff-workday input:focus-visible+span{outline:2px solid #405789;outline-offset:1px}
.staff-workday-out{color:#7e899d}
.staff-calendar-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.staff-calendar-footer [role=status]{padding:7px 11px;border-radius:12px;background:#e9edfa;color:#364678;font-size:13px;font-weight:600}
@media(max-width:480px){.staff-workdays{gap:3px;padding:6px}.staff-workday,.staff-workday span{min-height:38px}}
@media(max-width:760px){.staff-page{gap:14px}.staff-page .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-page .metric.hero{grid-column:1/-1}.staff-page .metric{padding:14px}.staff-page .panel-head .actions{flex-wrap:wrap}}
.staff-history-link{display:block;margin-top:3px;min-height:26px;font-size:12px}
.staff-sheet-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#staff-workdays-batch-form{display:grid;gap:16px}
#staff-workdays-batch-form .caption{margin:0}
#staff-workdays-batch-form fieldset{min-width:0;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:14px}
#staff-workdays-batch-form legend{font-weight:600;padding:0 5px}
.staff-batch-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:4px 8px;max-height:180px;overflow:auto;padding:4px}
.staff-batch-people label,.staff-batch-all{flex-direction:row;align-items:center;gap:8px;min-height:30px}
.staff-batch-people input,.staff-batch-all input{accent-color:var(--accent);width:16px;height:16px;flex:none}
.staff-batch-days{max-width:500px}
.staff-batch-days>span{font-size:12px;color:var(--sub);text-align:center}
.staff-batch-days button{border:1px solid transparent;background:none;align-content:center;gap:1px;padding:5px 0;min-height:44px}
.staff-batch-days button:disabled{cursor:default}
.staff-batch-days button b{font-weight:600}
.staff-batch-days button small{font-size:10px;line-height:1;color:var(--sub)}
.staff-batch-days button[data-attendance="all"]{background:#e5e9fa;border-color:#a9b5e3;color:#263b80}
.staff-batch-days button[data-attendance="some"]{background:#eef1fa;border-color:#dbe3f0}
.staff-batch-days button:enabled:hover{box-shadow:inset 0 0 0 1px var(--accent)}
.staff-batch-days button[data-operation="add"]{border-color:#548879}
.staff-batch-days button[data-operation="remove"]{border-color:#9c6596}
.staff-batch-days .staff-batch-mark{position:absolute;top:1px;right:3px;display:block;width:auto;height:auto;min-height:0;border:0;font-size:12px;line-height:1}
.staff-batch-days [data-operation="add"] .staff-batch-mark{color:#356f62}
.staff-batch-days [data-operation="remove"] .staff-batch-mark{color:#884781}
[data-batch-inspect] summary{cursor:pointer;color:var(--accent);margin-bottom:8px}
[data-batch-inspect] label{max-width:200px}
[data-batch-inspect-result]{max-height:180px;overflow:auto}
.staff-batch-actions{display:flex;justify-content:flex-end}
.staff-sheet-status{display:inline-flex;align-items:center;gap:6px;color:var(--sub);font-size:12px}
.staff-sheet-status::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent)}
#editor:has(.staff-journal){position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100%);height:100dvh;max-width:none;max-height:none;border-radius:24px 0 0 24px}
.staff-journal{display:grid;gap:14px}
.staff-journal>.caption{margin:0}
.staff-journal-list{display:grid;gap:10px}
.staff-journal-action{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px 14px}
.staff-journal-action summary{cursor:pointer;color:var(--ink);padding:3px 0}
.staff-journal-action summary span{display:block;color:var(--sub);font-size:12px;margin:5px 0 0 17px}
.staff-journal-action summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.staff-journal-change h3{margin:14px 0 4px}
.staff-journal-change .pair{gap:12px;font-size:13px}
.staff-journal-change .pair strong{text-align:right}
@media(max-width:600px){#editor:has(.staff-journal){inset:0;width:100%;border-radius:0;padding:18px}}

/* MAKERP-23: date balance, using existing panel and typography tokens. */
.balance-page{display:grid;gap:20px}.balance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.balance-summary .number{font-size:clamp(22px,2.4vw,34px);margin:12px 0;overflow-wrap:anywhere}.balance-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.balance-columns>div{display:grid;gap:20px}.balance-row,.balance-source{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e8e7ed;align-items:baseline}.balance-row button{text-align:left}.balance-row strong,.balance-source>strong{white-space:nowrap;font-variant-numeric:tabular-nums}.balance-total{border:0;font-size:18px}.balance-attention{border-color:#dac998}.balance-check{padding:12px 0;border-bottom:1px solid #e8e7ed}.balance-check h3{font-size:16px}.balance-source small{display:block;margin-top:6px;overflow-wrap:anywhere}.balance-source>div{min-width:0}.balance-page details{margin-top:16px}.balance-page summary{cursor:pointer}.balance-page label{max-width:240px}
@media(max-width:900px){.balance-summary,.balance-columns{grid-template-columns:1fr}.balance-row,.balance-source{flex-wrap:wrap}.balance-page .toolbar{flex-wrap:wrap}.balance-page .actions{flex-wrap:wrap}}

.debt-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.debt-total{display:grid;align-content:start;gap:8px;min-width:0;padding:16px 18px;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:16px}
.debt-total:hover,.debt-total[aria-pressed="true"]{border-color:var(--accent)}
.debt-total[aria-pressed="true"]{background:#eef2ff;box-shadow:inset 0 0 0 1px var(--accent)}
.debt-total:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.debt-total span{font-weight:600;color:var(--sub)}
.debt-total strong{font-size:clamp(21px,3vw,32px);line-height:1.12;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.debt-advances,.debt-due-filters{flex-wrap:wrap}
@media(max-width:520px){.debt-totals{gap:8px}.debt-total{padding:12px;gap:6px}}
