/* AttendScope P109 · Quiet desktop visual system · single authoritative stylesheet */
:root{

 --topbar:46px;--sidebar:176px;--matrix-name:70px;--matrix-cell:21px;--matrix-row:21px;--matrix-grid:721px;--matrix-frame:737px;--analysis-min:400px;
 --canvas:#f3f7fb;--surface:#fff;--surface-muted:#f6fafe;
 --ink:#192c40;--secondary:#496077;--muted:#8397a9;--line:#e0eaf2;
 --accent:#197fd0;--accent-wash:#e8f3fc;
 --normal:#85cca3;--suspect:#e8c777;--problem:#e39792;--overtime:#b1d9ee;
 --shadow:0 5px 22px rgba(34,72,108,.045)

}
*{box-sizing:border-box}
html,body{
margin:0;min-height:100%;background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;font-size:13.5px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility
}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.35}
button:focus-visible{outline:2px solid rgba(76,137,178,.55);outline-offset:2px}
.hidden{display:none!important}
.topbar{
height:var(--topbar);position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 18px 0 16px;background:#fff;border-bottom:1px solid #e2ebf2;box-shadow:0 1px 4px rgba(30,70,108,.015)
}
.brand{display:flex;align-items:center;gap:9px;flex:0 0 auto;min-width:0;height:100%}
.logo{
width:26px;height:26px;border-radius:8px;background:linear-gradient(145deg,#208fea,#1666b5);position:relative;flex:none;box-shadow:0 3px 9px rgba(40,127,209,.13)
}
.logo span:before,.logo span:after{content:"";position:absolute;left:7px;right:7px;height:2px;background:#fff;border-radius:2px}
.logo span:before{top:8px}.logo span:after{top:15px}
.brand-title{
font-size:13.5px;letter-spacing:-.2px;font-weight:760;line-height:1;white-space:nowrap;color:#18324c
}
.brand-mode{
font-size:10px;font-weight:550;color:#93a7b9;margin-left:4px;padding-left:11px;border-left:1px solid #e1eaf0
}
.top-actions{height:100%;display:flex;align-items:center;justify-content:flex-end;gap:2px;min-width:0;white-space:nowrap;margin-left:auto}
.top-actions button{flex:0 0 auto}
.text-btn,.primary-btn,.quiet-link,.icon-btn{
background:transparent;border:0;border-radius:8px;min-height:29px;padding:0 11px;color:#57718a;font-size:11px;font-weight:615;transition:background .16s ease,color .16s ease
}
.text-btn:hover,.quiet-link:hover,.icon-btn:hover{background:#edf3f7;color:#365e7b}
.primary-btn{
background:#e6f3fd;color:#197dcc;font-weight:720;padding:0 15px;border:1px solid #cfe6f6
}
.primary-btn:hover{background:#dbeaf4}
.action-divider{height:16px;width:1px;background:#e3e9ee;margin:0 5px}
.save-state{display:flex;align-items:center;gap:6px;margin:0 12px 0 0;color:#8996a2;font-size:9.5px;font-weight:540}
.save-state i{width:6px;height:6px;border-radius:50%;background:#d7b77c}
.save-state.saved i{background:#80ba9d}
.save-state.dirty i{background:#ddb767}
.import-anchor{position:relative}
.import-popover,.month-popover{
  position:absolute;z-index:120;top:calc(100% + 8px);right:0;
  background:#fff;border:1px solid #dce6ec;border-radius:11px;
  box-shadow:0 14px 38px rgba(42,74,97,.13);padding:8px;
  opacity:0;visibility:hidden;transform:translateY(-5px);
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
  pointer-events:none
}
.import-popover{width:244px}
.import-popover.open,.month-popover.open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.import-menu-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 6px;color:#5b7184;font-size:10px}
.import-menu-row>div{display:flex;gap:4px}
.import-menu-row button,.import-reset{border:0;border-radius:6px;padding:6px 7px;background:#edf4f8;color:#477895;font-size:9px;font-weight:630}
.import-menu-row button:hover,.import-reset:hover{background:#e1eef6}
.import-divider{height:1px;background:#e7edf1;margin:5px 0}
.import-reset{width:100%;background:transparent;color:#83929e}
.layout{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:calc(100vh - var(--topbar))}
.sidebar{
position:sticky;top:var(--topbar);height:calc(100vh - var(--topbar));overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;background:#f1f8fd;border-right:1px solid #e0eaf2;padding:17px 12px 18px 13px
}
.side-section{
padding:0 0 18px;margin:0 0 20px;border-bottom:1px solid #dce9f2
}
.side-section:last-child{border-bottom:0}
.side-label{
display:block;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:.025em;color:#8298aa;margin:0 0 10px
}
.month-navigation .side-label{margin:0 0 5px}
.month-anchor{position:relative}
.month-button{
width:100%;min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 11px;border:1px solid #cfe0ed;border-radius:9px;background:#fff;text-align:left;font-size:13px;font-weight:730;letter-spacing:-.15px;color:#264861;box-shadow:0 2px 7px rgba(47,89,126,.025);transition:border-color .17s ease,background .17s ease
}
.month-button:hover,.month-button[aria-expanded="true"]{border-color:#b9d0df;background:#f8fbfd}
.chevron{display:block;width:7px;height:7px;border-right:1.6px solid #7791a4;border-bottom:1.6px solid #7791a4;transform:rotate(45deg) translateY(-2px)}
.month-popover{left:0;right:auto;top:calc(100% + 6px);width:min(210px,calc(var(--sidebar) - 28px));padding:11px}
.month-popover-head{font-size:10px;font-weight:670;color:#506579;margin-bottom:10px}
.month-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.month-choice{border:0;border-radius:6px;height:30px;background:#f3f6f8;color:#8193a0;font-size:10px}
.month-choice.active{background:#e0edf6;color:#356e92;font-weight:700;opacity:1}
.month-popover p{font-size:9px;line-height:1.6;color:#98a6b1;margin:11px 1px 1px}
.calendar-caption{
display:flex;align-items:center;justify-content:space-between;margin:17px 1px 10px;font-size:10.5px;color:#688198;font-weight:675
}
.quiet-link{font-size:9px;min-height:24px;padding:0 6px;color:#6795b1}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.cal-head{
height:23px;display:grid;place-items:center;font-size:10px;color:#8ca0b1
}
.cal-day{
width:100%;height:25px;border:0;border-radius:6px;background:transparent;color:#486378;font-size:11px;font-variant-numeric:tabular-nums;transition:background .14s ease,color .14s ease
}
.cal-day:hover{background:#edf3f7}
.cal-day.rest{background:#f0f3f5;color:#97a5b0}
.cal-day.holiday{background:#e9eef1;color:#8b9ca7}
.cal-day.adjust{background:#f7efd8;color:#997d39}
.cal-day.selected{background:#e6f1f8;color:#357fac;box-shadow:inset 0 0 0 1px #88b1cc;font-weight:700}
.calendar-key{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:11px;color:#98a5af;font-size:8px}
.calendar-key span{display:flex;align-items:center;gap:4px}
.calendar-key i{width:6px;height:6px;border-radius:2px;background:#bac9d3}
.calendar-key i.rest{background:#dce3e8}.calendar-key i.holiday{background:#c3cfd8}.calendar-key i.adjust{background:#e6c978}
.meta-row{
display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:29px;font-size:10.8px;color:#71889c
}
.meta-row b{
font-size:11px;color:#405e77;font-weight:660;white-space:nowrap
}
.meta-row b.ok{color:#739e86}.meta-row b.muted{color:#9cabb5}
.side-legend{display:grid;gap:2px}
.legend-filter{
display:flex;align-items:center;gap:10px;width:100%;height:33px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#627d92;text-align:left;font-size:11px;transition:background .14s ease,color .14s ease
}
.legend-filter:hover{background:#edf3f6}
.legend-filter.active{
background:#dfeefa;color:#1978c4;font-weight:720
}
.legend-filter i,.matrix-legend i{flex:none;width:9px;height:9px;border-radius:3px;display:inline-block;background:#c2ced6}
.legend-filter i.normal,.matrix-legend i.normal{background:var(--normal)}
.legend-filter i.suspect,.matrix-legend i.suspect{background:var(--suspect)}
.legend-filter i.problem,.matrix-legend i.problem{background:var(--problem)}
.legend-filter i.overtime,.matrix-legend i.overtime{background:var(--overtime)}
.workspace{
min-width:0;padding:14px 17px 14px 16px;overflow:auto
}
.workbench{
width:100%;min-width:calc(var(--matrix-frame) + var(--analysis-min) + 18px);display:grid;grid-template-columns:var(--matrix-frame) minmax(var(--analysis-min),1fr);gap:18px;align-items:stretch;height:calc(100vh - var(--topbar) - 28px);min-height:540px
}
.matrix-zone{display:flex;flex-direction:column;width:var(--matrix-frame);min-width:var(--matrix-frame);max-width:var(--matrix-frame);min-height:0}
.matrix-wrap{
width:var(--matrix-frame);min-width:var(--matrix-frame);max-width:var(--matrix-frame);min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#cbdfe9 transparent;padding:5px 6px;border:1px solid #dfeaf1;border-radius:16px;background:#fff;box-shadow:var(--shadow)
}
.matrix{display:grid;align-items:center;width:var(--matrix-grid);min-width:var(--matrix-grid);max-width:var(--matrix-grid);--cell:var(--matrix-cell);--row:var(--matrix-row);--name:var(--matrix-name)}
.m-corner,.m-name{
height:var(--row);min-height:var(--row);max-height:var(--row);border:0;border-right:1px solid #edf2f6;padding:0 5px;display:flex;align-items:center;justify-content:center;color:#445d73;text-align:left;overflow:hidden
}
.m-corner{
  top:0;z-index:15;height:28px;display:flex;align-items:center;justify-content:flex-start;
  padding-left:6px;border-bottom:1px solid #e9eef2;
  font-size:9px;font-weight:650;color:#9babb6
}
.m-date{
  position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:center;
  width:var(--cell);min-width:var(--cell);max-width:var(--cell);height:28px;
  padding:0;border:0;border-bottom:1px solid #e9eef2;background:#fff;
  font-variant-numeric:tabular-nums
}
.m-date b{font-size:8px;font-weight:620;line-height:1;color:#7d8c99}
.m-date.rest,.m-date.holiday{background:#f1f4f6}
.m-date.rest b,.m-date.holiday b{color:#adb9c1}
.m-date.adjust{background:#faf5e7}
.m-date:hover,.m-date.selected{background:#eaf3f8}
.m-date.selected b{color:#477f9d}
.m-name{
  height:var(--row);min-height:var(--row);max-height:var(--row);
  border:0;border-right:1px solid #e8eef1;border-bottom:0;
  padding:0 5px;display:flex;align-items:center;justify-content:center;
  color:#617488;text-align:left;overflow:hidden
}
.name-letters{display:flex;align-items:center;justify-content:space-between;width:43px;max-width:43px;white-space:nowrap}
.name-letters>span{
display:block;line-height:1;font-size:10px;font-weight:625;letter-spacing:0
}
.m-name:hover,.m-name.selected{background:#edf5f9;color:#3e748f}
.m-cell{width:var(--cell);height:var(--row);min-height:var(--row);display:flex;align-items:center;justify-content:center;background:transparent;padding:0;border:0}
.m-cell button{
  width:15px;height:15px;min-width:15px;min-height:15px;
  display:block;position:relative;padding:0;border:0;border-radius:3px;
  box-shadow:inset 0 0 0 1px rgba(62,85,96,.045);
  transition:transform .14s ease,box-shadow .14s ease,opacity .14s ease
}
.m-cell button.s-normal,.m-cell button.s-excused{background:var(--normal)}
.m-cell button.s-suspect{background:var(--suspect)}
.m-cell button.s-problem{background:var(--problem)}
.m-cell button.s-overtime{background:var(--overtime)}
.m-cell button.s-rest{background:#f1f4f6;box-shadow:inset 0 0 0 1px #e8edf1}
.m-cell button:hover{transform:scale(1.14);z-index:4;box-shadow:0 0 0 1px #fff,0 2px 7px rgba(38,74,100,.16)}
.m-cell button.selected{transform:scale(1.08);z-index:5;box-shadow:0 0 0 2px #477f9d,0 1px 4px rgba(38,74,100,.12)}
.m-cell.row-focus{background:rgba(95,154,185,.055)}
.m-cell.col-focus{background:rgba(95,154,185,.035)}
.m-cell.row-focus.col-focus{background:rgba(95,154,185,.085)}
.corner-mark{position:absolute;top:-1px;right:-1px;width:4px;height:4px;border:1px solid #536c7e;border-radius:50%;background:#fff}
.matrix-footer{
min-height:37px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 7px;color:#8498aa;font-size:10px;white-space:nowrap
}
.matrix-footnote i{font-style:normal;margin:0 3px;color:#b8c3cb}
#filterNote{margin-left:5px;color:#588aa7}
.matrix-legend{display:flex;align-items:center;gap:12px}
.matrix-legend span{display:flex;align-items:center;gap:4px}
.matrix-legend i{width:8px;height:8px;border-radius:2px}
.analysis-panel{
display:flex;flex-direction:column;min-width:var(--analysis-min);min-height:0;border:1px solid #e0eaf2;border-radius:17px;background:#fff;box-shadow:var(--shadow);overflow:hidden;container-type:inline-size
}
.analysis-head{
min-height:79px;padding:17px 24px 13px;display:flex;align-items:center;justify-content:space-between;gap:16px
}
.analysis-eyebrow{
color:#8199ac;font-size:10.5px;margin:0 0 7px;line-height:1.25
}
.analysis-head h2{
margin:0;color:#18324d;font-weight:760;font-size:20px;letter-spacing:-.45px;line-height:1.12
}
.selection-status{align-self:center}
.selection-chip{
display:inline-flex;align-items:center;gap:8px;padding:7px 10px;background:#f2f7fb;color:#60798e;border-radius:9px;font-size:10px;max-width:230px;font-weight:635
}
.selection-chip i{width:7px;height:7px;border-radius:2px;background:var(--normal)}
.selection-chip.problem i{background:var(--problem)}
.selection-chip.suspect i{background:var(--suspect)}
.analysis-tabs{
display:flex;gap:25px;margin:0;padding:0 24px;border-bottom:1px solid #e7eef4
}
.analysis-tabs button{
height:39px;position:relative;background:transparent;border:0;padding:0;color:#8298aa;font-size:12px;font-weight:580;white-space:nowrap
}
.analysis-tabs button:hover{color:#587b95}
.analysis-tabs button.active{
color:#167dcd;font-weight:735
}
.analysis-tabs button.active:after{
content:"";position:absolute;left:0;right:0;bottom:-1px;height:2.5px;border-radius:2px;background:#248ee0
}
.analysis-body{
flex:1;min-height:0;overflow:auto;padding:19px 24px 23px;scrollbar-width:thin;scrollbar-color:#d7e5ef transparent
}
.analysis-panel{container-type:inline-size}
.overview-grid{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(300px,1.12fr);gap:29px;align-items:start}
.overview-summary,.overview-attention{min-width:0}
.overview-section-title{height:29px;display:flex;align-items:center;font-size:11px;color:#5a6d7e;font-weight:660}
.overview-attention .analysis-subhead{height:29px;margin:0;align-items:center}
.overview-trend{margin-top:25px;padding-top:16px;border-top:1px solid #e9eef1}
.overview-trend-chart{
width:100%;height:232px
}
@container(max-width:750px){
  .overview-grid{grid-template-columns:1fr;gap:15px}
  .overview-trend{margin-top:20px}
}
.overview-status{padding:4px 0 15px;border-bottom:1px solid #e9eef1}
.status-title{display:flex;align-items:center;gap:9px}
.status-title strong{font-size:15px;font-weight:680;color:#3b5163}
.status-dot{width:8px;height:8px;border-radius:3px;background:var(--normal)}
.status-dot.problem{background:var(--problem)}
.status-dot.suspect{background:var(--suspect)}
.overview-status p{margin:8px 0 0 17px;font-size:10px;line-height:1.6;color:#96a2ac}
.overview-rows{display:grid}
.overview-row{
min-height:41px;border-bottom:1px solid #eef2f6;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#60788c;font-size:11px
}
.overview-row strong{
font-size:12.5px;color:#2d4a65;font-weight:700;font-variant-numeric:tabular-nums
}
.overview-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.soft-action,.btn{border:0;border-radius:7px;padding:7px 10px;background:#edf4f8;color:#527c95;font-size:10px;font-weight:620;transition:background .15s ease}
.soft-action:hover,.btn:hover{background:#deebf3}
.soft-action.danger,.btn.danger{background:#f9f0ef;color:#ac6c69}
.analysis-subhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:22px 2px 10px}
.analysis-subhead span{
font-size:12px;color:#3b566e;font-weight:735
}
.analysis-subhead small{font-size:9px;color:#9ca9b4}
.compact-issue-list{display:grid;gap:3px}
.compact-issue-list button{
width:100%;border:0;background:transparent;border-radius:8px;display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px 9px;text-align:left;transition:background .15s ease,transform .15s ease
}
.compact-issue-list button:hover{background:#f0f5f8;transform:translateX(2px)}
.compact-issue-list i{width:7px;height:7px;border-radius:2px;background:var(--problem)}
.compact-issue-list i.suspect{background:var(--suspect)}
.compact-issue-list span{display:grid;gap:2px}
.compact-issue-list b{
font-weight:690;color:#344f65;font-size:11px
}
.compact-issue-list small{
color:#8299aa;font-size:10px
}
.compact-issue-list em{font-size:15px;font-style:normal;color:#b1bdc5}
.analysis-empty{min-height:190px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;font-size:11px;color:#92a1ac}
.analysis-empty strong{font-size:11px;color:#637b8e;font-weight:640}
.analysis-empty small{font-size:9px;color:#9aa8b3}
.timeline-empty{min-height:330px}
.empty-rail{position:relative;width:164px;height:40px;background:linear-gradient(180deg,transparent 19px,#d4e1e9 19px,#d4e1e9 20px,transparent 20px)}
.empty-rail:after{content:"";position:absolute;left:72px;top:16px;width:8px;height:8px;border-radius:50%;background:#9ac4dc}
.echarts-timeline-shell,.date-echarts-shell,.echarts-stat-stack{min-width:0}
.timeline-window-head{min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 1px 8px}
.timeline-title-stack{display:grid;gap:4px}
.timeline-title-stack span{font-size:9px;font-weight:600;color:#9caab6}
.timeline-title-stack strong{font-size:14px;letter-spacing:-.2px;color:#40586a;font-weight:700;font-variant-numeric:tabular-nums}
.timeline-facts{display:flex;align-items:center;gap:14px;font-size:9px;color:#8a9ba7}
.timeline-facts span{display:flex;align-items:center;gap:5px}
.timeline-facts b{font-weight:680;font-size:10px;color:#506778;font-variant-numeric:tabular-nums}
.fact-dot{width:7px;height:7px;border-radius:50%;background:#8db2c8}
.fact-dot.first{background:#3698c9}.fact-dot.last{background:#e29355}
.echarts-timeline-frame,.echarts-date-frame{
background:#fafcfe;border:1px solid #e8eef4;border-radius:11px;overflow:hidden
}
.echarts-timeline-chart{
width:100%;height:313px
}
.echarts-date-chart{width:100%;min-height:430px}
.timeline-footline{min-height:33px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e9eef1}
.timeline-footline>small{font-size:8.7px;color:#9ca9b5;text-align:right}
.echarts-timeline-legend{display:flex;align-items:center;flex-wrap:wrap;gap:11px;padding:6px 0;color:#8798a5;font-size:9px}
.echarts-timeline-legend span{display:flex;align-items:center;gap:5px}
.echarts-timeline-legend i{position:relative;width:12px;height:2px;background:#3698c9;border-radius:1px}
.echarts-timeline-legend i.out{background:#e29355}
.echarts-timeline-legend i:after{content:"";position:absolute;right:0;top:-2px;border-left:4px solid #3698c9;border-top:3px solid transparent;border-bottom:3px solid transparent}
.echarts-timeline-legend i.out:after{border-left-color:#e29355}
.echarts-timeline-legend b{border-radius:5px;padding:2px 5px;background:#e9f0f4;color:#668397;font-size:8px}
.timeline-evidence,.record-evidence{
min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px 2px;font-size:10px;color:#8095a7
}
.timeline-evidence strong,.record-evidence strong{
font-size:10.5px;font-weight:655;color:#5d7890
}
.record-enter{animation:proof-in .22s ease}
@keyframes proof-in{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.evidence-main{display:flex;gap:8px;align-items:center}
.evidence-main strong{font-size:16px;color:#405c70;font-variant-numeric:tabular-nums}
.evidence-main small{font-size:9px;color:#92a2ad}
.evidence-direction{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#e8f3ef;color:#428967;font-weight:720}
.evidence-direction.out{background:#f9eee4;color:#c28754}
.evidence-source{display:grid;gap:3px;text-align:right;min-width:0}
.evidence-source span{font-size:9.5px;color:#5d7487;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.evidence-source small{font-size:8.5px;color:#9caab5}
.echarts-stat-stack{display:grid;gap:18px}
.echarts-stat-section{min-width:0;padding-bottom:18px;border-bottom:1px solid #e9eef2}
.echarts-stat-section.secondary{border-bottom:0;padding-bottom:0}
.chart-head{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}
.chart-head strong{
font-size:12px;color:#344f68;font-weight:735
}
.chart-head small{
font-size:10px;color:#8da1b1
}
.echarts-stat-chart{width:100%;height:250px}
.echarts-stat-chart.compact{height:205px}
.records-list{display:grid;gap:3px}
.records-list button{width:100%;min-height:42px;padding:5px 8px;border:0;border-radius:7px;background:transparent;text-align:left;display:grid;grid-template-columns:82px 22px 55px minmax(0,1fr);gap:8px;align-items:center}
.records-list button:hover,.records-list button.selected{background:#edf4f8}
.records-list time{font-size:9px;color:#688094;font-variant-numeric:tabular-nums}
.records-list b{display:grid;place-items:center;width:21px;height:21px;background:#e5f1eb;color:#488d68;font-size:9px;border-radius:6px}
.records-list b.out{background:#faf0e8;color:#bf8252}
.records-list span{font-size:10px;color:#60788b}
.records-list small{font-size:9px;color:#9eaab5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toast{position:fixed;right:16px;bottom:16px;z-index:200;max-width:460px;padding:11px 15px;border-radius:9px;box-shadow:0 12px 32px rgba(22,40,55,.14);font-size:11px;color:#fff}

/* Daily analysis studio. MATQ-inspired hierarchy with restrained DavBridge surfaces. */
.daily-studio{display:flex;flex-direction:column;gap:17px;min-width:0}
.daily-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:13px 0 16px;border-bottom:1px solid #e7eef4}
.daily-fact{min-width:0;display:flex;flex-direction:column;gap:6px;padding:2px 17px;border-right:1px solid #edf1f6}
.daily-fact:first-child{padding-left:1px}
.daily-fact:last-child{border-right:0;padding-right:0}
.daily-fact small{font-size:10.5px;font-weight:610;color:#879aac}
.daily-fact strong{color:#182e45;font-size:25px;line-height:1;font-variant-numeric:tabular-nums;font-weight:735;letter-spacing:-.65px;white-space:nowrap}
.daily-fact strong.fact-blue{color:#1d8ccc}
.daily-fact strong.fact-orange{color:#d68a50}
.daily-fact strong em{font-style:normal;font-size:12px;letter-spacing:0;font-weight:590;color:#8495a5}
.daily-fact>span{font-size:9.5px;color:#96a6b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chart-surface{background:#fff;border:1px solid #e7eef4;border-radius:14px;padding:15px 17px 11px;min-width:0;box-shadow:0 3px 13px rgba(43,86,123,.018)}
.chart-surface-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 2px 12px}
.eyebrow{display:block;font-size:9px;letter-spacing:1.15px;font-weight:750;color:#93aabd;margin-bottom:5px}
.chart-surface-title h3{font-size:14px;font-weight:745;color:#18354e;letter-spacing:-.2px;margin:0}
.chart-window{display:flex;align-items:center;gap:9px;white-space:nowrap}
.chart-window span{font-size:10px;color:#899faf}
.chart-window strong{font-size:12px;font-weight:725;color:#335f83;font-variant-numeric:tabular-nums}
.daily-studio .echarts-timeline-frame{background:#fff;border:0;border-radius:0;overflow:hidden}
.daily-studio .echarts-timeline-chart{height:300px}
.daily-studio .timeline-footline{min-height:31px;border-top:1px solid #eff3f6;border-bottom:0;padding:3px 2px 0}
.daily-studio .timeline-footline>small{font-size:10px;color:#8197a9}
.daily-bottom{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(265px,.84fr);gap:17px;align-items:stretch}
.daily-record-panel,.daily-findings-panel{border:1px solid #e6edf3;border-radius:13px;background:#fbfdff;padding:15px 16px;min-width:0;min-height:140px}
.mini-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.mini-section-head h3{margin:0;color:#24445f;font-size:12px;font-weight:740}
.mini-section-head>span{font-size:10px;color:#91a4b4;white-space:nowrap}
.punch-chips{display:flex;flex-wrap:wrap;gap:7px;min-height:35px;align-items:flex-start}
.punch-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe9f1;border-radius:8px;padding:6px 8px;background:#fff;font-size:10px;color:#456b86;transition:background .16s ease,transform .16s ease}
.punch-chip:hover{background:#eaf5fc;transform:translateY(-1px)}
.punch-chip span{font-size:10px;font-weight:720;color:#2388c2}
.punch-chip.out span{color:#cd8859}
.punch-chip b{font-weight:730;font-variant-numeric:tabular-nums;font-size:11px;color:#2a4358}
.punch-chip.more{color:#497992}
.quiet-empty{font-size:11px;color:#9aabba}
.daily-record-panel .timeline-evidence{margin-top:8px;min-height:35px;border-top:1px solid #ecf1f5;padding-top:11px;gap:9px}
.daily-record-panel .evidence-main strong{font-size:15px}
.finding-severity{border-radius:7px;padding:5px 8px;font-size:10px!important;background:#edf6f0;color:#378260!important}
.finding-severity.suspect{background:#fff6e8;color:#a68037!important}
.finding-severity.problem{background:#fff1f0;color:#b55e58!important}
.finding-copy{margin:0;min-height:34px;color:#576f82;font-size:11px;line-height:1.75}
.daily-findings-panel .overview-actions{margin-top:13px}
.daily-findings-panel .soft-action{border:1px solid #dfeaf2;background:#fff;font-size:10.5px;white-space:nowrap}
.daily-findings-panel .soft-action:hover{background:#eaf5fc}
.date-summary{display:flex;align-items:center;gap:20px;border-bottom:1px solid #e8eef4;padding:7px 1px 15px;margin-bottom:16px;color:#71899a;font-size:11px}
.date-summary b{color:#2c4c64;font-size:12px;margin-left:3px}
.date-summary small{margin-left:auto;color:#9babb7;font-size:10px}
.mini-dot{display:inline-block;width:7px;height:7px;background:var(--normal);border-radius:50%;margin-right:4px}
.mini-dot.bad{background:var(--problem)}
.mini-dot.warn{background:var(--suspect)}
.echarts-stat-section{padding:13px 17px 20px;border:1px solid #e7eef4;border-radius:13px;background:#fff}
.echarts-stat-section.secondary{border:1px solid #e7eef4;padding:13px 17px 20px}
.echarts-stat-stack{gap:17px}
.echarts-stat-section .chart-head{padding:0 2px 8px}
.overview-trend{margin-top:23px;padding-top:18px;border-top:1px solid #e8eef4}
.overview-trend .chart-head{padding:0 2px 5px}
.overview-grid{gap:31px}
.overview-section-title{font-size:12px;font-weight:740;color:#35526a}
@container(max-width:765px){
 .daily-bottom{grid-template-columns:1fr}
 .daily-fact{padding:2px 9px}
 .daily-fact strong{font-size:20px}
 .overview-grid{grid-template-columns:1fr;gap:12px}
}
@container(max-width:700px){
 .daily-facts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}
 .daily-fact:nth-child(2){border-right:0}
 .daily-fact:nth-child(3){padding-left:1px}
 .date-summary{flex-wrap:wrap;gap:8px 18px}
 .date-summary small{margin-left:0}
 .timeline-footline{flex-wrap:wrap}
}


/* Matrix-first composition with legible controls and compact analysis. */
.sidebar{padding:16px 10px}
.workspace{padding:12px 14px 12px 12px}
.workbench{gap:14px;min-width:calc(var(--matrix-frame) + var(--analysis-min) + 14px);height:calc(100vh - var(--topbar) - 24px)}
.m-corner{height:31px;font-size:11px;color:#647b8e}
.m-date{height:31px}
.m-date b{font-size:10px;font-weight:670;color:#667d90}
.name-letters{width:56px;max-width:56px}
.name-letters>span{font-size:12px;font-weight:640}
.m-cell button{width:19px;height:19px;min-width:19px;min-height:19px}
.matrix-footer{font-size:11.5px}
.brand-title{font-size:15px}
.brand-mode{font-size:11.5px}
.text-btn,.primary-btn,.quiet-link,.icon-btn{font-size:12px}
.save-state{font-size:11px}
.side-label{font-size:12px;color:#647f94}
.calendar-caption{font-size:12px}
.cal-head{font-size:11px}
.cal-day{font-size:12px}
.calendar-key{font-size:10.5px}
.meta-row,.meta-row b{font-size:12px}
.legend-filter{font-size:12px}
.analysis-head{min-height:73px;padding:13px 20px 10px}
.analysis-eyebrow{font-size:12px;margin-bottom:5px;color:#69869b}
.analysis-head h2{font-size:22px}
.selection-chip{font-size:12px}
.analysis-tabs{gap:23px;padding:0 20px}
.analysis-tabs button{font-size:13px;font-weight:610}
.analysis-body{padding:15px 20px 19px}
.overview-grid{gap:20px}
.overview-row{font-size:12.5px}
.overview-row strong{font-size:13.5px}
.overview-section-title{font-size:14px}
.compact-issue-list b{font-size:12.5px}
.compact-issue-list small{font-size:11px}
.analysis-subhead span,.chart-head strong{font-size:13px}
.soft-action,.btn{font-size:12px}
.daily-studio{gap:12px}
.daily-facts{padding:7px 0 13px}
.daily-fact{padding:3px 13px;gap:6px}
.daily-fact small{font-size:12px;color:#687f93}
.daily-fact strong{font-size:26px;line-height:1.2}
.chart-surface{border-radius:13px;padding:13px 14px 9px}
.chart-surface-title{margin-bottom:7px}
.chart-surface-title h3{font-size:15px}
.chart-window strong{font-size:13px}
.daily-studio .echarts-timeline-chart{height:260px}
.daily-studio .timeline-footline{min-height:27px;padding:2px 1px 0}
.echarts-timeline-legend{font-size:11px}
.daily-bottom{grid-template-columns:minmax(0,1.25fr) minmax(250px,.85fr);gap:12px}
.daily-record-panel,.daily-findings-panel{padding:13px 14px;min-height:120px}
.mini-section-head{margin-bottom:10px}
.mini-section-head h3{font-size:14px}
.mini-section-head>span{font-size:11px}
.punch-chip{font-size:12px;padding:7px 9px}
.punch-chip span,.punch-chip b{font-size:12px}
.finding-copy{font-size:12.5px;line-height:1.6;min-height:28px}
.daily-findings-panel .soft-action{font-size:12px}
.daily-record-panel .timeline-evidence:empty{display:none}
.daily-record-panel .timeline-evidence:not(:empty){margin-top:10px}
.evidence-main small,.evidence-source small{font-size:11px}
.evidence-source span{font-size:11.5px}
.timeline-title-stack span{font-size:11px}
.timeline-title-stack strong{font-size:14px}
.timeline-footline>small{font-size:11px}
.chart-head small{font-size:11px}
.date-summary{font-size:12px}
.records-list time,.records-list small{font-size:11px}
.records-list span{font-size:12px}
@container(max-width:765px){
 .daily-bottom{grid-template-columns:1fr}
 .daily-fact strong{font-size:24px}
}
@container(max-width:700px){
 .daily-facts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}
 .daily-fact:nth-child(2){border-right:0}
 .daily-fact:nth-child(3){padding-left:1px}
}
@container(max-width:520px){
 .daily-fact strong{font-size:23px}
 .analysis-head{padding:11px 14px 9px}
 .analysis-body{padding:12px 14px 15px}
 .analysis-tabs{padding:0 14px}
 .chart-surface{padding:12px 10px 7px}
}

@media(max-width:1450px){
 :root{--sidebar:168px;--matrix-cell:20px;--matrix-row:20px;--matrix-grid:690px;--matrix-frame:706px;--analysis-min:405px}
 .m-cell button{width:18px;height:18px;min-width:18px;min-height:18px}
}
@media(max-width:1320px){
 :root{--sidebar:166px;--matrix-cell:19px;--matrix-row:19px;--matrix-grid:659px;--matrix-frame:675px;--analysis-min:390px}
 .m-cell button{width:17px;height:17px;min-width:17px;min-height:17px}
  .workspace{padding-right:11px}
  .workbench{gap:14px;min-width:calc(var(--matrix-frame) + var(--analysis-min) + 14px)}
  .brand-mode{display:none}
  .text-btn{padding:0 7px}
  .timeline-facts{gap:8px}
  .timeline-footline{align-items:flex-start;flex-direction:column;gap:0;padding-bottom:8px}
}
@media(max-width:1000px){
  .layout{grid-template-columns:170px minmax(0,1fr)}
  :root{--sidebar:170px}
}

/* P109 matrix-first working surface / upper plots / lower raw Tabulator. */
:root{--sidebar:212px;--matrix-name:76px;--matrix-cell:25.5px;--matrix-row:24px;--matrix-grid:866.5px;--matrix-frame:883px;--analysis-min:570px}
.sidebar{padding:16px 15px}
.workspace{padding:12px}
.workbench{grid-template-columns:var(--matrix-frame) minmax(var(--analysis-min),1fr);gap:12px;min-width:calc(var(--matrix-frame) + var(--analysis-min) + 12px)}
.matrix-zone,.matrix-wrap{width:var(--matrix-frame);min-width:var(--matrix-frame);max-width:var(--matrix-frame)}
.matrix-wrap{flex:1;padding:5px 7px;border-radius:14px}
.matrix{width:var(--matrix-grid);min-width:var(--matrix-grid);max-width:var(--matrix-grid)}
.m-date,.m-corner{height:33px}
.m-date{background:#fff;border-bottom:1px solid #e6edf3}
.m-date b{font-size:11px;color:#657d90}
.m-date.rest,.m-date.holiday{background:#f6f8fa}
.m-date.rest b,.m-date.holiday b{color:#8ca1af}
.m-date.adjust{background:#f7f9fb}
.m-date.adjust b{color:#567b95}
.m-corner{position:sticky;top:0;z-index:18;background:#fff;color:#506a80;font-size:12px}
.m-name{background:#fff;border-right:1px solid #e8eff5}
.m-name.row-alt{background:#fbfdff}
.name-letters{width:61px;max-width:61px}
.name-letters>span{font-size:12px}
.m-cell{position:relative;transition:background .12s ease,box-shadow .12s ease;background:#fff}
.m-cell.row-alt{background:#fbfdff}
.m-cell.day-rest,.m-cell.day-holiday{background:#f7f9fb}
.m-cell.day-adjust{background:#fcfdff}
.m-cell button{width:23px;height:21px;min-width:23px;min-height:21px;border-radius:4px;z-index:1}
.m-cell button.s-rest{background:#e8edf1;box-shadow:inset 0 0 0 1px #e1e9ee}
.m-cell.row-focus,.m-cell.col-focus{background:#eaf5fe;box-shadow:inset 0 1px 0 #b5dafa,inset 0 -1px 0 #b5dafa;z-index:2}
.m-cell.row-focus.col-focus,.m-cell.cell-focus{background:#d5ecff;box-shadow:inset 0 0 0 2px #70b9f2,0 0 12px rgba(21,128,229,.30);z-index:8}
.m-cell.row-focus button,.m-cell.col-focus button{filter:saturate(1.1)}
.m-cell button.selected{z-index:10;transform:scale(1.04);box-shadow:0 0 0 2px #fff,0 0 0 4px #1888e8,0 0 15px 5px rgba(22,129,223,.52)!important}
.m-name.selected,.m-date.selected{background:#dff0ff;box-shadow:inset 0 0 0 1.5px #77baf0,0 0 12px rgba(29,128,223,.28);color:#176faf;z-index:10}
.m-name.selected .name-letters>span,.m-date.selected b{color:#176faf;font-weight:750}
.m-name.hover-row,.m-date.hover-col,.m-cell.hover-row,.m-cell.hover-col{background:#eef7ff;box-shadow:inset 0 0 0 1px rgba(79,162,233,.18)}
.m-cell.row-focus.hover-col,.m-cell.col-focus.hover-row{background:#d8edff}
.analysis-panel{min-width:var(--analysis-min);border-radius:14px}
.analysis-head{min-height:67px;padding:12px 18px 10px}
.analysis-head h2{font-size:20px}
.analysis-eyebrow{font-size:11px;margin-bottom:4px}
.analysis-body{padding:12px;display:grid;grid-template-rows:minmax(230px,53%) minmax(250px,1fr);gap:12px;overflow:hidden}
.inspector-top{display:grid;grid-template-columns:minmax(0,3fr) minmax(155px,1fr);gap:10px;min-height:0}
.inspector-plot,.inspector-insight,.inspector-bottom{background:#fff;border:1px solid #e0eaf2;border-radius:12px;min-width:0;min-height:0}
.inspector-plot{display:flex;flex-direction:column;padding:12px 12px 8px;overflow:hidden}
.plot-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;margin:0 2px 5px;min-height:26px}
.plot-heading strong{font-size:14px;color:#24485f;font-weight:740}
.plot-heading b{font-size:11px;color:#467caa;white-space:nowrap}
.plot-axis{flex:1;min-height:140px}
.plot-axis .echarts-timeline-chart{width:100%;height:100%;min-height:160px}
.inspector-plot .overview-trend-chart{flex:1;min-height:140px;height:100%}
.plot-legend{display:flex;flex:none;gap:18px;padding:0 0 3px;font-size:11px;color:#6e879a}
.plot-legend span{display:flex;align-items:center;gap:6px}
.plot-legend i{display:block;width:11px;height:3px;border-radius:2px;background:#208ece}
.plot-legend i.out{background:#d98950}
.plot-day-scroller{flex:1;overflow:auto;min-height:0;scrollbar-width:thin}
.plot-day-scroller .echarts-date-chart{width:100%;min-height:530px}
.inspector-insight{padding:12px;overflow:auto;scrollbar-width:thin;background:#fbfdff}
.insight-heading{font-size:12px;color:#6e889c;font-weight:720;margin-bottom:9px}
.insight-state{display:inline-flex;font-size:11px;line-height:1.4;padding:4px 7px;border-radius:6px;margin-bottom:9px;background:#eaf5ec;color:#2c805b;font-weight:730}
.insight-state.problem{background:#fff0ef;color:#b65c57}
.insight-state.suspect{background:#fff5e3;color:#9b7531}
.insight-metrics{display:grid;gap:2px}
.insight-row{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:6px 0;border-bottom:1px solid #edf1f5}
.insight-row span{font-size:11px;color:#678097}
.insight-row strong{font-size:13px;font-weight:725;color:#2a455c;white-space:nowrap;font-variant-numeric:tabular-nums}
.insight-row strong.tone-in{color:#167ec6}
.insight-row strong.tone-out{color:#ce8148}
.insight-row strong.tone-problem{color:#b76c69}
.insight-row strong.tone-warn{color:#a9853c}
.insight-row strong.tone-ok{color:#438c70}
.insight-issue{font-size:11px;line-height:1.55;color:#8f693e;margin:9px 0}
.insight-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.insight-actions button,.insight-next{padding:5px 7px;font-size:11px;color:#326f9c;background:#e7f2fa;border:1px solid #d4e7f5;border-radius:6px}
.insight-actions button.danger{background:#fff4f3;color:#ac6b69;border-color:#f0dedc}
.insight-next{margin-top:12px;text-align:left;max-width:100%}
.insight-evidence{font-size:11px;line-height:1.65;min-width:0}
.insight-evidence:not(:empty){border-top:1px solid #dfebf4;padding-top:8px;margin-top:8px}
.insight-evidence .evidence-main{display:flex;gap:5px;flex-wrap:wrap}
.insight-evidence .evidence-main strong{font-size:13px}
.insight-evidence .evidence-source{display:block;text-align:left;overflow-wrap:anywhere}
.insight-evidence .evidence-source span,.insight-evidence .evidence-source small{display:block;white-space:normal;max-width:100%;font-size:10px}
.inspector-bottom{display:flex;flex-direction:column;overflow:hidden;padding:0}
.raw-toolbar{display:flex;align-items:center;gap:12px;flex:none;min-height:45px;padding:7px 12px;border-bottom:1px solid #e6eef5;white-space:nowrap}
.raw-toolbar>strong{font-size:14px;color:#24465f}
.raw-tabs{display:flex;align-items:center;gap:3px;margin-left:4px}
.raw-tabs button{font-size:12px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:#698497}
.raw-tabs button.active{background:#e9f4fc;color:#177ec8;font-weight:740}
.raw-count{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums;color:#7a91a4}
.raw-table{flex:1;min-height:0;font-family:inherit}
.raw-table.tabulator{background:#fff;border:0;font-size:12px;color:#345067}
.raw-table .tabulator-header{background:#f6f9fc;border-bottom:1px solid #dde9f2}
.raw-table .tabulator-col{background:#f6f9fc!important;border-right:1px solid #ebf0f4}
.raw-table .tabulator-col-title{color:#617d90;font-weight:720;font-size:12px}
.raw-table .tabulator-row{background:#fff;min-height:33px;border-bottom:1px solid #eff3f7}
.raw-table .tabulator-row.tabulator-row-even{background:#fbfdff}
.raw-table .tabulator-row:hover{background:#e8f5ff}
.raw-table .tabulator-cell{border-right:1px solid #f0f3f6;padding:8px 10px;white-space:nowrap}
.raw-table .tabulator-footer{padding:5px 10px;background:#fbfdff;border-top:1px solid #e6eef4;color:#71899e}
.raw-table .tabulator-page{border:1px solid #dce8f1;background:#fff;color:#467d9d;border-radius:5px}
.raw-table .tabulator-page.active{background:#ddebfa}
@media(max-width:1620px){
 .analysis-body{grid-template-rows:minmax(220px,52%) minmax(240px,1fr)}
 .inspector-top{grid-template-columns:minmax(0,3fr) minmax(145px,1fr)}
 .inspector-insight{padding:10px}
}
@media(max-width:1450px){
 :root{--sidebar:202px;--matrix-name:75px;--matrix-cell:24.5px;--matrix-row:23px;--matrix-grid:834.5px;--matrix-frame:851px;--analysis-min:520px}
 .m-cell button{width:22px;height:20px;min-width:22px;min-height:20px}
 .analysis-head{padding:10px 15px}
}
@media(max-width:1320px){
 :root{--sidebar:200px;--matrix-name:72px;--matrix-cell:23.5px;--matrix-row:22px;--matrix-grid:800.5px;--matrix-frame:817px;--analysis-min:500px}
 .m-cell button{width:21px;height:19px;min-width:21px;min-height:19px}
 .layout{grid-template-columns:var(--sidebar) minmax(0,1fr)}
}
@media print{
 .analysis-body{display:block;overflow:visible}
 .inspector-top{display:block}
 .inspector-bottom{height:350px;margin-top:18px}
}

.m-corner{height:33px;min-height:33px;max-height:33px}
@media print{
  .topbar,.sidebar,.matrix-footer,.analysis-tabs{display:none!important}
  .layout{display:block}.workspace{padding:0}
  .workbench{height:auto;display:block;min-width:0}.analysis-panel{margin-top:18px;min-height:400px;overflow:visible}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}


/* P109 R12: month workspace, sticky matrix axes, continuous focus outline, unified inspector. */
:root{
 --sidebar:212px;--matrix-name:66px;--matrix-cell:25.5px;--matrix-grid:856.5px;--matrix-frame:873px;--analysis-min:545px;
}
.topbar{justify-content:flex-start;gap:13px}
.top-month{flex:0 0 155px;z-index:80}
.top-month .month-button{height:32px;min-height:32px;font-size:12.5px;background:#f8fbfd;border-color:#e0eaf2}
.top-month .month-popover{width:240px;max-width:none;top:37px;left:0;right:auto}
.month-popover-head{display:flex;align-items:center;justify-content:space-between;font-size:15px;margin-bottom:9px}
.month-popover-head button{border:0;border-radius:6px;background:#edf5fa;color:#487e9e;width:30px;height:26px;font-size:19px}
.month-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.month-choice{font-size:12px;height:34px;color:#46657b}
.month-choice.new-month{background:#f9fbfd;border:1px dashed #ccdce8;color:#9ba9b5}
.month-choice.has-data{background:#edf5fa;color:#3a7195}
.month-choice.active{background:#dceeff;box-shadow:inset 0 0 0 1px #88bbdf;color:#176ca7}
.month-popover p{font-size:11px;line-height:1.5}
.top-actions{margin-left:auto;gap:3px}
.save-state{margin-right:7px}
.sidebar{padding:11px 13px;scrollbar-width:thin}
.calendar-caption{margin:2px 0 12px;font-size:13px;color:#375d79}
.calendar-grid{gap:3px}
.cal-head{height:28px;font-size:12px}
.cal-day{height:30px;font-size:13px;border-radius:7px}
.calendar-key{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 5px;margin-top:12px;color:#70879b;font-size:11px}
.calendar-key i{height:9px;width:9px}
.month-meta .side-label,.side-legend .side-label{font-size:12px}
.meta-row{font-size:12px;min-height:32px}
.meta-row b{font-size:12px}
.matrix-zone{min-width:var(--matrix-frame);width:var(--matrix-frame);max-width:var(--matrix-frame)}
.matrix-wrap{width:var(--matrix-frame);min-width:var(--matrix-frame);max-width:var(--matrix-frame);padding:0!important;position:relative;isolation:isolate;overflow:auto;overscroll-behavior:contain}
.matrix{width:var(--matrix-grid);min-width:var(--matrix-grid);max-width:var(--matrix-grid);align-items:stretch}
.m-corner,.m-date{height:33px!important;min-height:33px!important;max-height:33px!important}
.m-corner{position:sticky;left:0;top:0;z-index:40;background:#fff!important;border-right:1px solid #dfeaf3;border-bottom:1px solid #dce6ef;color:#43667c}
.m-date{position:sticky;top:0;z-index:30;background:#fff!important;border-bottom:1px solid #dae5ee;box-shadow:0 2px 2px rgba(44,87,111,.045)}
.m-date b{font-size:12px;font-weight:700;color:#53728b}
.m-date.rest b,.m-date.holiday b{color:#859aa9}
.m-date.adjust b{color:#66849e}
.m-date.selected{background:#ebf7ff!important;box-shadow:inset 2px 0 #2b9cea,inset -2px 0 #2b9cea,0 0 9px #2d8dd63d}
.m-date.inactive{background:#fff!important;color:transparent}
.m-name{position:sticky;left:0;z-index:20;padding:0 2px;background:#fff!important;border-right:1px solid #e3edf4}
.m-name.row-alt{background:#fbfdff!important}
.name-letters{width:58px;max-width:58px}
.name-letters>span{font-size:12.5px}
.m-name.selected{background:#e8f6ff!important}
.m-cell.inactive{background:#f9fbfd}
.m-cell.day-rest,.m-cell.day-holiday{background:#f6f8fb}
.m-cell.day-adjust{background:#fafbfd}
.m-cell{box-shadow:none!important}
.m-cell.row-focus,.m-cell.col-focus{background:#eaf5fd;z-index:5}
.m-cell.row-focus{border-top:2px solid #2496e4;border-bottom:2px solid #2496e4;filter:drop-shadow(0 0 3px rgba(30,142,230,.33))}
.m-name.selected{border:2px solid #2496e4;border-right:0;box-shadow:0 0 12px rgba(40,150,234,.36)}
.m-cell.row-focus[data-day="31"]{border-right:2px solid #2496e4}
.m-cell.col-focus{border-left:2px solid #2496e4;border-right:2px solid #2496e4;filter:drop-shadow(0 0 3px rgba(30,142,230,.34))}
.m-cell.col-focus[data-emp="E050"]{border-bottom:2px solid #2496e4}
.m-date.selected{border-left:2px solid #2496e4;border-right:2px solid #2496e4;border-top:2px solid #2496e4}
.matrix:has(.cell-focus) .m-cell.row-focus:not(.cell-focus),
.matrix:has(.cell-focus) .m-cell.col-focus:not(.cell-focus){
 background:#f0f7fd;border-color:#a9cee7;filter:none;opacity:.89
}
.matrix:has(.cell-focus) .m-name.selected,.matrix:has(.cell-focus) .m-date.selected{
 border-color:#a9cee7;box-shadow:none
}
.m-cell.cell-focus{z-index:19;overflow:visible;background:#d8f0ff;opacity:1!important;border:0!important;filter:none!important}
.m-cell.cell-focus button.selected{transform:translateY(-3px) scale(1.19)!important;z-index:45!important;box-shadow:0 0 0 2px #fff,0 0 0 4px #168ae7,0 6px 18px rgba(22,137,223,.5)!important;filter:saturate(1.12)}
.m-name.hover-row,.m-date.hover-col{background:#ebf5fe!important}
.matrix-wrap::-webkit-scrollbar{width:8px;height:8px}
.matrix-wrap::-webkit-scrollbar-thumb{background:#ccdae5;border-radius:6px}
.analysis-panel{background:#fff;container-type:inline-size;overflow:hidden}
.analysis-head{min-height:49px!important;height:49px;padding:0 16px!important;border-bottom:1px solid #dfe9f0;flex:none}
.analysis-head h2{font-size:14px;display:flex;align-items:center;gap:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}
.analysis-head h2 strong{font-size:16px;color:#183c57}
.analysis-head .head-date{color:#5c7890;font-size:13px}
.analysis-head .head-group{padding:4px 7px;border:0;border-radius:5px;background:#f1f7fc;color:#447c9f;font-size:12px}
.analysis-head .head-group:hover{background:#e1f0fb}
.analysis-body{padding:0!important;display:grid;grid-template-rows:minmax(230px,52%) minmax(200px,1fr);gap:0!important;overflow:hidden}
.inspector-top{grid-template-columns:minmax(0,3fr) minmax(145px,1fr);gap:0!important;min-height:0;border-bottom:1px solid #e1eaf1}
.inspector-plot,.inspector-insight,.inspector-bottom{border:0!important;box-shadow:none!important;border-radius:0!important;background:#fff!important}
.inspector-plot{padding:0 13px 7px;overflow:hidden}
.inspector-insight{padding:12px;border-left:1px solid #e1eaf1;overflow-y:auto;overflow-x:hidden}
.inspector-bottom{min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
.chart-mode-tabs{display:flex;align-items:center;gap:22px;border-bottom:1px solid #eef2f6;min-height:39px;flex:none}
.chart-mode-tabs button{position:relative;height:39px;padding:0 2px;background:transparent;border:0;color:#7b8fa1;font-size:12.5px}
.chart-mode-tabs button.active{color:#197fce;font-weight:750}
.chart-mode-tabs button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#228de0;border-radius:2px}
.plot-heading{min-height:33px;margin:2px 0 1px}
.plot-heading strong{font-size:13px;color:#3b5d73}
#timelineDayPicker{background:#f5f9fc;border:1px solid #dce9f3;border-radius:6px;padding:3px 7px;color:#376a8b;font-size:11px}
.plot-chart{flex:1;height:100%;min-height:120px}
.plot-stats{display:grid;grid-template-rows:1fr 1fr;gap:4px;overflow:hidden}
.plot-stats .echarts-stat-chart{height:100%!important;min-height:100px}
.plot-empty{display:grid;place-items:center;flex:1;color:#9babb7;font-size:12px}
.plot-legend{display:flex;align-items:center;padding:0 0 4px;min-height:22px}
.plot-legend b{margin-left:auto;font-size:10px;color:#63829b}
.insight-heading{font-size:12px;white-space:nowrap}
.insight-row{gap:4px}
.insight-row span{font-size:11px}
.insight-row strong{font-size:12.5px}
.insight-issue-list{display:flex;flex-direction:column;margin-top:9px;gap:3px}
.insight-issue-list button{border:0;background:#f7fafe;color:#587589;font-size:11px;text-align:left;border-radius:5px;padding:5px}
.raw-toolbar{border-bottom:1px solid #e3edf4;min-height:42px;padding:4px 10px;gap:9px;overflow:hidden}
.raw-toolbar>strong{font-size:13px}
.raw-tabs{gap:2px}
.raw-tabs button{padding:5px 7px;font-size:11.5px}
.raw-count{margin:0 4px 0 auto;font-size:11px}
.raw-page-controls{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:10.5px;color:#607e93}
.raw-page-controls label{display:flex;align-items:center;gap:3px;margin-right:6px}
.raw-page-controls select{max-width:53px;border:1px solid #d9e7ef;border-radius:4px;background:#fff;color:#3f6884;font-size:11px;padding:3px 1px}
.raw-page-controls button,.raw-float-btn{background:#f5f9fc;border:1px solid #e0ebf3;border-radius:5px;color:#4d7797;min-width:24px;height:24px;font-size:13px}
.raw-float-btn{font-size:16px;margin-left:3px}
.raw-page-controls button:disabled{opacity:.25}
.raw-table{flex:1;min-height:0;overflow:hidden!important}
.raw-table.tabulator{border:0!important;max-width:100%;overflow:hidden}
.raw-table .tabulator-tableholder{overflow-x:hidden!important}
.raw-table .tabulator-footer{display:none!important}
.raw-table .tabulator-header{border-bottom:1px solid #dde8f1!important}
.raw-table .tabulator-row{min-height:29px}
.raw-table .tabulator-cell{padding:6px 7px}
.raw-table .tabulator-col{padding:0}
.raw-table .tabulator-col-title{font-size:11px}
.inspector-insight,.plot-day-scroller,.raw-table .tabulator-tableholder{scrollbar-width:thin;scrollbar-color:transparent transparent}
.inspector-insight:hover,.plot-day-scroller:hover,.raw-table:hover .tabulator-tableholder{scrollbar-color:#9eb6c8 transparent}
.inspector-insight::-webkit-scrollbar,.plot-day-scroller::-webkit-scrollbar,.raw-table .tabulator-tableholder::-webkit-scrollbar{width:7px}
.inspector-insight::-webkit-scrollbar-thumb,.plot-day-scroller::-webkit-scrollbar-thumb,.raw-table .tabulator-tableholder::-webkit-scrollbar-thumb{background:transparent;border-radius:5px}
.inspector-insight:hover::-webkit-scrollbar-thumb,.plot-day-scroller:hover::-webkit-scrollbar-thumb,.raw-table:hover .tabulator-tableholder::-webkit-scrollbar-thumb{background:#aebfcc}
.raw-dialog-overlay{position:fixed;inset:0;background:rgba(18,38,56,.30);z-index:900;pointer-events:auto}
.raw-dialog{position:absolute;min-width:470px;min-height:300px;max-width:98vw;max-height:98vh;resize:both;overflow:hidden;border:1px solid #b8d1e3;border-radius:12px;background:white;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(20,52,80,.23)}
.raw-dialog-title{height:38px;flex:none;background:#edf6fd;display:flex;align-items:center;gap:10px;padding:0 12px;cursor:move;user-select:none;border-bottom:1px solid #dbe8f2}
.raw-dialog-title strong{font-size:13px;color:#2c5a78}
.raw-dialog-title span{font-size:10px;color:#7d96a9}
.raw-dialog-title button{margin-left:auto;border:0;background:transparent;font-size:22px;color:#54758b}
.raw-dialog .inspector-bottom{flex:1;min-height:0}
@media(max-width:1450px){
 :root{--sidebar:202px;--matrix-name:62px;--matrix-cell:24.5px;--matrix-grid:821.5px;--matrix-frame:838px;--analysis-min:500px}
 .top-month{flex-basis:144px}
 .name-letters{width:54px;max-width:54px}
 .analysis-head h2{font-size:13px}
}
@media(max-width:1320px){
 :root{--sidebar:200px;--matrix-name:60px;--matrix-cell:23.5px;--matrix-grid:788.5px;--matrix-frame:805px;--analysis-min:480px}
 .name-letters{width:53px;max-width:53px}
}
@media print{
 .raw-dialog-overlay{display:none!important}
 .matrix-wrap{overflow:visible}
 .inspector-top{display:block}
}


/* R13 visual contract: restraint in neutrals, purple selection exclusively, no tinted row/column fills. */
:root{
 --focus:#8050d5;--focus-soft:rgba(135,89,219,.19);
 --status-absent:#e8c576;--status-anomaly:#e99392;--status-leave:#e5a87d;
 --status-trip:#6ec2b7;--status-outing:#dda55e;--status-overtime:#83bedb;
 --ui-scale:1;
}
html,body{font-family:"Inter","Segoe UI Variable","Noto Sans SC","PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;font-size:calc(13.5px * var(--ui-scale));letter-spacing:-.1px;color:#243d53}
.brand-title{font-size:15px;letter-spacing:-.35px;font-weight:760}
.topbar{gap:10px}
.month-actions{display:flex;align-items:center;gap:2px;height:100%;white-space:nowrap}
.month-actions .text-btn,.top-actions .text-btn{font-size:12px;font-weight:630;color:#526e85}
.top-actions{margin-left:auto}
.settings-toggle{display:grid;place-items:center;border:1px solid #d8e6f1;border-radius:8px;width:31px;height:30px;background:#f7fbff;color:#456785;font-size:19px}
.settings-toggle:hover{background:#e9f2fb}
.month-actions .primary-btn{color:#227eac}
.calendar-caption{margin:1px 0 10px}
.calendar-key{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:3px!important;width:100%;font-size:10.5px!important}
.calendar-key span{white-space:nowrap;gap:4px}
.calendar-key i{width:8px;height:8px;flex:none}
.calendar-grid{gap:2px;justify-items:center}
.cal-head{width:100%;font-size:11.5px}
.cal-day{display:grid!important;place-items:center!important;aspect-ratio:1 / 1!important;width:100%!important;height:auto!important;min-height:0;line-height:1;border-radius:7px;padding:0;margin:0;font-size:12px;font-variant-numeric:tabular-nums}
.cal-day span{display:grid;place-items:center;line-height:1;width:100%;height:100%;text-align:center}
.cal-day.selected{background:#f3edff!important;box-shadow:inset 0 0 0 1.5px #925fd7,0 0 7px rgba(132,84,214,.20)!important;color:#7544c2!important}
.cal-day:hover{background:#f5f1fa}
.cal-day.rest,.cal-day.holiday{background:#f1f4f8;color:#899eaf}
.cal-day.adjust{background:#e9f3fb;color:#467c9f}
#statusFilter{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='urn:svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23627d94' stroke-width='2' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center;background-size:16px;width:100%;height:38px;border:1px solid #d5e4ef;border-radius:9px;padding:0 28px 0 11px;color:#38586f;font-weight:625;font-size:11.5px}
#statusFilter:focus{outline:2px solid rgba(126,83,206,.2);border-color:#a986dc}
.state-select-wrap{margin-bottom:0}
.m-corner{font-weight:760!important;font-size:12px;cursor:pointer}
.m-date b{font-family:"Segoe UI Variable","Inter",sans-serif;font-size:12px;letter-spacing:.1px}
.m-name.selected,.m-date.selected,.m-corner:hover{color:var(--focus)!important;background:#fff!important;filter:none!important}
.m-name.selected .name-letters>span,.m-date.selected b{color:var(--focus)!important;font-weight:780!important}
.m-name.selected{outline:0!important;border:0!important;border-right:1px solid #e3edf4!important;box-shadow:none!important}
.m-date.selected{border:0!important;border-bottom:1px solid #e1e9f0!important;box-shadow:none!important}
.m-date.selected b{display:grid;place-items:center;border:1px solid rgba(135,89,219,.4);width:21px;height:22px;border-radius:6px;transform:scale(1.14);background:#f5efff;box-shadow:0 0 9px rgba(135,89,219,.18)}
.m-name.selected .name-letters{transform:scale(1.075);transition:transform .2s ease}
.m-cell.row-focus,.m-cell.col-focus,.m-cell.row-focus.col-focus,.m-cell.cell-focus,
.m-cell.hover-row,.m-cell.hover-col,.m-cell.row-focus.hover-col,.m-cell.col-focus.hover-row,
.matrix:has(.cell-focus) .m-cell.row-focus:not(.cell-focus),
.matrix:has(.cell-focus) .m-cell.col-focus:not(.cell-focus){
  background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;opacity:1!important;
}
.m-cell.day-rest,.m-cell.day-holiday{background:#f8fafc!important}
.m-cell.day-adjust{background:#fff!important}
.m-cell.row-alt{background:#fff!important}
.matrix{position:relative}
.matrix-selection-frame{position:absolute;pointer-events:none;z-index:23;border:2px solid rgba(139,90,226,.85);border-radius:6px;box-shadow:0 0 0 2px rgba(255,255,255,.75),0 0 13px 3px rgba(128,79,215,.26),inset 0 0 11px rgba(138,94,212,.09)}
.matrix-selection-frame.focus-row{left:-2px;top:calc(33px + var(--focus-row) * var(--matrix-row) - 2px);width:calc(var(--matrix-grid) + 4px);height:calc(var(--matrix-row) + 4px)}
.matrix-selection-frame.focus-col{top:31px;left:calc(var(--matrix-name) + var(--focus-col) * var(--matrix-cell) - 2px);height:calc(50 * var(--matrix-row) + 4px);width:calc(var(--matrix-cell) + 4px)}
.matrix:has(.cell-focus) .matrix-selection-frame{opacity:.33}
.m-cell.cell-focus button.selected{transform:translateY(-2px) scale(1.19)!important;filter:none!important;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--focus),0 6px 20px 4px rgba(135,89,219,.36)!important}
.m-cell button:not(.selected):hover{box-shadow:0 0 0 2px rgba(135,89,219,.28)!important}
.m-cell button.s-normal{background:#84cda6}
.m-cell button.s-absent{background:var(--status-absent)}
.m-cell button.s-anomaly{background:var(--status-anomaly)}
.m-cell button.s-overtime{background:var(--status-overtime)}
.m-cell button.s-leave{background:var(--status-leave)}
.m-cell button.s-trip{background:var(--status-trip)}
.m-cell button.s-outing{background:var(--status-outing)}
.m-cell button.s-rest{background:#eef1f5}
.m-cell button{transition:opacity .20s ease,transform .20s cubic-bezier(.17,.65,.25,1.20),filter .20s ease,box-shadow .20s ease}
.m-cell button.filtered-out{opacity:.055!important;transform:scale(.76);filter:blur(.6px);pointer-events:auto}
.m-cell button:not(.filtered-out){opacity:1!important;transform:scale(1)}
.reduce-animations .m-cell button,.reduce-animations .m-date b,.reduce-animations .m-name .name-letters{transition:none!important}
.analysis-head h2{font-weight:670;font-size:14px;letter-spacing:-.15px}
.chart-mode-tabs button{font-size:13px;font-weight:630}
.chart-mode-tabs button.active{color:#306da4}
.inspector-insight{border-left:1px solid #dbe6ef!important}
.insight-heading{font-size:12.5px;color:#53718a}
.insight-row span{font-size:11.5px}
.insight-row strong{font-size:13.5px}
.raw-toolbar{gap:7px}
.raw-tabs button{padding:5px 7px}
.raw-count{margin-left:auto!important}
.raw-page-controls{display:none!important}
.raw-table .tabulator-footer{display:none!important}
.raw-table .tabulator-tableholder{overflow-y:auto!important;scroll-behavior:smooth;overscroll-behavior:contain}
.raw-table .tabulator-row{min-height:32px}
.raw-table .tabulator-col-title{font-size:12px;font-weight:650}
.raw-table .tabulator-cell{font-size:12px}
.timeline-top-legend{display:flex;flex-wrap:wrap;gap:12px;min-height:24px;align-items:center;color:#687f94;font-size:11px}
.timeline-top-legend .event-in{color:#227dbc}
.timeline-top-legend .event-out{color:#d07c48}
.timeline-top-legend .event-duplicated{color:#927b58}
.timeline-top-legend .event-window{margin-left:auto;color:#56748e}
.plot-axis{position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.plot-axis .echarts-timeline-chart{flex:1;min-height:0;height:100%}
.timeline-mini{display:flex;align-items:center;gap:5px;padding:0 2px 1px;min-height:30px}
.timeline-mini>span{font-size:10px;font-variant-numeric:tabular-nums;color:#71879a}
.timeline-mini .mini-frame{height:24px;position:relative;flex:1;background:#eef1f3;overflow:hidden;border-radius:5px;border:1px solid #d8dee5}
.timeline-mini svg{height:100%;width:100%;fill:#aab4be}
.timeline-mini .mini-selection{position:absolute;top:0;bottom:0;background:rgba(85,94,108,.28);border-left:2px solid #656b76;border-right:2px solid #656b76;pointer-events:none}
.settings-overlay{position:fixed;inset:0;background:rgba(20,38,57,.32);z-index:800;display:grid;place-items:center}
.settings-modal{width:min(420px,92vw);background:#fff;border-radius:14px;box-shadow:0 18px 60px rgba(30,45,65,.22);padding:20px 23px;display:flex;flex-direction:column;gap:10px}
.settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.settings-heading strong{font-size:19px;color:#29475c}
.settings-heading button{border:0;background:#f3f7fa;border-radius:6px;width:28px;height:28px;font-size:19px}
.settings-heading.secondary{color:#57728b;font-size:12px;margin-top:10px}
.settings-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#53718a;gap:15px}
.settings-row input,.settings-row select{font-size:12px;padding:6px;border:1px solid #d7e4ed;border-radius:6px;background:#fff;color:#29475c;min-width:120px}
.settings-row input[type=checkbox]{min-width:auto;width:17px;height:17px;accent-color:var(--focus)}
.settings-save{border:0;border-radius:8px;background:#337bb5;color:white;padding:10px;font-weight:700;margin-top:10px}
@media(max-width:1450px){.month-actions .text-btn{padding-inline:7px}.top-actions .text-btn{padding-inline:8px}}
