:root{color-scheme:light;font-family:Microsoft YaHei,PingFang SC,Noto Sans CJK SC,Helvetica Neue,sans-serif;color:#1d2a28;background:#f3f4f0;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #f3f4f0;--surface: #ffffff;--surface-muted: #f7f8f5;--surface-warm: #fbf8f2;--ink: #1d2a28;--muted: #69736f;--soft: #8b948f;--line: #dfe3dc;--line-strong: #cfd5cc;--brand: #146b65;--brand-dark: #0d504b;--brand-soft: #eaf3f1;--navy: #315472;--amber: #b27a2c;--red: #b25b44;--blue: #4a7598;--shadow: 0 12px 34px rgba(25, 42, 39, .07)}*{box-sizing:border-box}html{min-width:320px;background:var(--bg)}body{margin:0;min-width:320px;min-height:100vh;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit;letter-spacing:0}button{color:inherit}button,select{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid rgba(20,107,101,.28);outline-offset:2px}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:30;min-height:68px;padding:0 26px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;background:#fffffffa;border-bottom:1px solid var(--line);box-shadow:0 1px #1e2f2c05}.brand{display:inline-flex;align-items:center;gap:11px;padding:0;border:0;background:transparent;text-align:left}.brand-mark{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#fff;background:var(--brand-dark)}.brand-copy{display:flex;flex-direction:column;gap:1px;white-space:nowrap}.brand-copy strong{font-size:15px;line-height:1.25;font-weight:700}.brand-copy small{color:var(--muted);font-size:11px;line-height:1.25}.main-nav{display:flex;align-items:center;justify-content:center;gap:4px}.main-nav button{height:38px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;font-weight:600}.main-nav button:hover{color:var(--ink);background:#f4f6f2}.main-nav button.is-active{color:var(--brand-dark);background:var(--brand-soft)}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.month-select{height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface)}.month-select select{min-width:110px;padding:0 20px 0 0;border:0;outline:0;color:var(--ink);background:transparent;font-size:13px}.role-switch{height:38px;display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:8px;background:#edf0eb}.role-switch button{height:31px;padding:0 10px;display:inline-flex;align-items:center;gap:5px;border:0;border-radius:6px;color:var(--muted);background:transparent;font-size:12px;font-weight:600}.role-switch button.is-active{color:var(--ink);background:var(--surface);box-shadow:0 1px 4px #1b2a271f}.btn{min-height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:650;white-space:nowrap}.btn-primary{border-color:var(--brand-dark);color:#fff;background:var(--brand-dark)}.btn-primary:hover{background:#0a4641}.btn-secondary{border-color:var(--line-strong);color:var(--ink);background:var(--surface)}.btn-secondary:hover{border-color:#b8c0b7;background:var(--surface-muted)}.btn-ghost{border-color:transparent;color:var(--muted);background:transparent}.btn-ghost:hover{color:var(--ink);background:var(--surface-muted)}.btn-small{min-height:32px;padding:0 10px;font-size:12px}.top-export{padding-inline:12px}.app-main{width:min(100%,1460px);margin:0 auto;padding:28px 30px 42px;flex:1}.page-stack{display:flex;flex-direction:column;gap:20px}.page-heading{min-height:78px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}.eyebrow{display:inline-flex;align-items:center;gap:6px;margin-bottom:6px;color:var(--brand);font-size:12px;font-weight:700}.page-heading h1{margin:0;font-size:30px;line-height:1.2;font-weight:720}.page-heading p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.heading-meta{min-width:150px;padding-left:22px;display:flex;flex-direction:column;gap:4px;border-left:1px solid var(--line-strong);text-align:right}.heading-meta span{color:var(--soft);font-size:11px}.heading-meta strong{font-size:14px;font-weight:650}.filter-bar{min-height:38px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.filter-anchor{position:relative}.filter-trigger.has-filters{border-color:#b9d5ce;color:var(--brand-dark);background:#f2f8f5}.filter-count{min-width:18px;height:18px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;background:var(--brand-dark);font-size:10px;font-style:normal}.filter-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:48;width:min(620px,calc(100vw - 60px));max-height:min(72vh,680px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);box-shadow:0 22px 58px #16262333}.filter-popover-head{padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.filter-popover-head>div{min-width:0;display:flex;flex-direction:column;gap:3px}.filter-popover-head strong{font-size:14px}.filter-popover-head span{color:var(--soft);font-size:10px}.filter-popover-body{min-height:0;flex:1;padding:14px 16px;overflow:auto}.filter-condition-list{display:flex;flex-direction:column;gap:10px}.filter-condition{padding:12px;border:1px solid var(--line);border-radius:7px;background:#fbfcfa}.filter-condition-head{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:8px}.filter-field-select{width:100%;min-height:38px;padding:0 10px;border:1px solid var(--line-strong);border-radius:6px;outline:0;color:var(--ink);background:var(--surface);font-size:12px}.filter-values{margin-top:10px;padding-top:10px;border-top:1px solid #edf0eb}.filter-value-search{min-height:34px;margin-bottom:8px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;color:var(--soft);background:var(--surface)}.filter-value-search input{min-width:0;flex:1;border:0;outline:0;color:var(--ink);background:transparent;font-size:11px}.filter-values-head{min-height:25px;margin-bottom:7px;display:flex;align-items:center;justify-content:space-between;gap:12px}.filter-values-head>span{color:var(--soft);font-size:10px}.filter-values-head>div{display:flex;align-items:center;gap:2px}.text-button{min-height:28px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border:0;border-radius:5px;color:var(--brand);background:transparent;font-size:10px;font-weight:650}.text-button:hover{background:var(--brand-soft)}.filter-option-grid{max-height:192px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:auto}.filter-option{min-width:0;min-height:34px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--surface);font-size:11px;text-align:left}.filter-option:hover{border-color:#b8c9c2;color:var(--ink)}.filter-option.is-selected{border-color:#afcdc5;color:var(--brand-dark);background:#eef6f3}.filter-option>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filter-option-check{width:16px;height:16px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:4px;color:#fff;background:var(--surface)}.filter-option.is-selected .filter-option-check{border-color:var(--brand);background:var(--brand)}.filter-value-empty{grid-column:1 / -1;min-height:48px;display:flex;align-items:center;justify-content:center;color:var(--soft);font-size:11px}.filter-empty{min-height:88px;display:flex;align-items:center;justify-content:center;color:var(--soft);font-size:11px}.filter-popover-foot{padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);background:#fbfcfa}.filter-chip{max-width:100%;height:32px;display:inline-flex;align-items:stretch;overflow:hidden;border:1px solid #c9ddd7;border-radius:6px;color:var(--brand-dark);background:#f0f7f4}.filter-chip-main,.filter-chip-remove{border:0;color:inherit;background:transparent}.filter-chip-main{min-width:0;padding:0 3px 0 9px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.filter-chip-main strong{margin-right:5px;font-size:10px}.filter-chip-remove{width:27px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}.filter-chip-main:hover,.filter-chip-remove:hover{background:#e4f1ed}.filter-clear-all{min-height:28px;padding:0 4px;border:0;color:var(--muted);background:transparent;font-size:10px}.filter-clear-all:hover{color:var(--ink)}.composite-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 32px;padding:26px 30px 21px;overflow:hidden;border:1px solid #1b4642;border-radius:8px;color:#f7fbf8;background:#163d39;box-shadow:var(--shadow)}.composite-panel:after{position:absolute;top:-72px;right:180px;width:220px;height:220px;border:1px solid rgba(255,255,255,.08);border-radius:50%;content:"";pointer-events:none}.composite-copy{position:relative;z-index:1}.section-kicker{display:block;color:var(--soft);font-size:11px;font-weight:650}.composite-copy .section-kicker{color:#a7c5bf}.composite-copy h2{margin:5px 0 6px;font-size:20px;line-height:1.3}.composite-copy p{margin:0;color:#b9cfcb;font-size:12px}.composite-number{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-end;gap:8px}.composite-value{display:flex;align-items:flex-start;gap:2px}.composite-value strong{font-size:48px;line-height:.92;font-weight:680;font-variant-numeric:tabular-nums}.composite-value span{padding-top:4px;color:#bad0cc;font-size:16px;font-weight:600}.composite-panel .status-pill{border-color:#ffffff24;color:#e3f3ee;background:#ffffff1a}.composite-track{position:relative;grid-column:1 / -1;height:7px;margin-top:2px;overflow:visible;border-radius:999px;background:#ffffff26}.composite-track>span{display:block;height:100%;border-radius:inherit}.composite-track>span.is-success{background:#79bdad}.composite-track>span.is-danger{background:#d39b72}.composite-track i{position:absolute;top:-4px;width:1px;height:15px;background:#f0c4a7}.composite-scale{grid-column:1 / -1;display:flex;justify-content:space-between;margin-top:-10px;color:#a9c1bd;font-size:10px}.status-pill{min-height:24px;padding:0 8px;display:inline-flex;align-items:center;gap:4px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap}.status-pill.is-success{border-color:#c9e1da;color:#1c6a5f;background:#eef7f4}.status-pill.is-danger{border-color:#ead0c9;color:#9c4c35;background:#fbf1ee}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kpi-card{min-width:0;padding:17px 18px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 3px 14px #1d2d2a06}.kpi-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.kpi-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px}.kpi-activity .kpi-icon{color:#98651f;background:#f8f0e3}.kpi-opinion .kpi-icon{color:var(--brand);background:var(--brand-soft)}.kpi-diversion .kpi-icon{color:var(--navy);background:#edf2f6}.kpi-visit .kpi-icon{color:#795c87;background:#f3eef5}.weight-chip{padding:4px 7px;border-radius:5px;color:var(--muted);background:var(--surface-muted);font-size:10px;font-weight:650}.kpi-card h3{margin:12px 0 0;font-size:14px;font-weight:650}.kpi-score-row{margin-top:10px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.kpi-score-value{display:flex;align-items:baseline;gap:4px}.kpi-score-row strong{font-size:31px;line-height:1;font-weight:690;font-variant-numeric:tabular-nums}.kpi-score-value span{color:var(--muted);font-size:11px}.kpi-score-label{padding-bottom:2px;color:var(--muted);font-size:11px;font-weight:600}.kpi-actual{min-height:34px;margin:9px 0 10px;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.kpi-progress{height:5px;overflow:hidden;border-radius:999px;background:#edf0eb}.kpi-progress span{display:block;height:100%;border-radius:inherit;background:var(--brand)}.kpi-activity .kpi-progress span{background:#b27a2c}.kpi-diversion .kpi-progress span{background:var(--navy)}.kpi-visit .kpi-progress span{background:#7d6389}.kpi-card-foot{min-height:27px;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.kpi-card-foot>span:first-child{min-width:0;overflow:hidden;color:var(--soft);font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,.8fr);gap:16px}.section-panel{min-width:0;padding:20px 22px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.section-heading h2{margin:4px 0 0;font-size:17px;line-height:1.35;font-weight:680}.legend-note{padding-top:3px;color:var(--soft);font-size:11px;line-height:1.4;text-align:right}.chart-wrap{width:100%;height:292px;margin-top:8px}.issue-summary{display:flex;flex-direction:column}.count-badge{min-width:28px;height:28px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#98513d;background:#f8ece8;font-size:12px;font-weight:700}.issue-stat-list{margin-top:13px}.issue-stat-list>div{min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #eef0eb}.issue-stat-list span{color:var(--muted);font-size:12px}.issue-stat-list strong{font-size:20px;font-weight:680;font-variant-numeric:tabular-nums}.summary-callout{margin-top:auto;padding:12px;display:flex;align-items:flex-start;gap:9px;border:1px solid #dce8e2;border-radius:7px;color:var(--brand-dark);background:#f2f7f4}.summary-callout svg{flex:0 0 auto;margin-top:1px}.summary-callout p{margin:0;font-size:12px;line-height:1.6}.summary-callout strong{margin-inline:2px;font-size:13px}.detail-panel{padding-bottom:8px}.calculation-panel{padding-bottom:0}.calculation-heading{align-items:center}.calculation-period{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:600}.logic-grid{margin:18px -22px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}.logic-item{min-width:0;padding:18px 22px 20px;border-bottom:1px solid var(--line)}.logic-item:nth-child(odd){border-right:1px solid var(--line)}.logic-item-head{display:flex;align-items:flex-start;gap:10px}.logic-icon{width:34px;height:34px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:var(--brand);background:var(--brand-soft)}.logic-item-head>div{min-width:0;flex:1}.logic-item-head h3{margin:1px 0 0;font-size:14px;font-weight:680}.logic-item-head>div>span{display:block;margin-top:4px;color:var(--soft);font-size:10px;line-height:1.4}.logic-weight{padding:4px 7px;flex:0 0 auto;border-radius:5px;color:var(--muted);background:var(--surface-muted);font-size:10px;font-weight:650}.formula-list{margin-top:13px;display:flex;flex-direction:column;gap:7px}.formula-row{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:start;gap:9px}.formula-row>span{color:var(--soft);font-size:10px;line-height:1.6}.formula-row code,.composite-formula code{color:#38504c;font-family:Cascadia Mono,Consolas,monospace;font-size:10px;line-height:1.6;overflow-wrap:anywhere;white-space:normal}.logic-result{min-height:38px;margin-top:13px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:6px;background:var(--surface-muted)}.logic-result span{min-width:0;color:var(--muted);font-size:10px;line-height:1.45}.logic-result strong{flex:0 0 auto;font-size:13px;font-variant-numeric:tabular-nums}.composite-formula{grid-column:1 / -1;min-width:0;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-bottom:1px solid var(--line);background:#f5f8f5}.composite-formula>div{min-width:0;display:flex;flex-direction:column;gap:4px}.composite-formula>div>span{color:var(--muted);font-size:11px;font-weight:650}.composite-formula>strong{flex:0 0 auto;color:var(--brand-dark);font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.table-scroll{width:100%;overflow:auto}.detail-panel .table-scroll,.entry-table-scroll{margin-top:15px}.entry-table-scroll{max-height:575px;border-top:1px solid var(--line)}.data-table{width:100%;min-width:830px;border-collapse:collapse;font-size:12px}.data-table th{position:sticky;top:0;z-index:2;padding:10px 12px;border-bottom:1px solid var(--line);color:var(--muted);background:#f6f7f4;text-align:left;font-size:11px;font-weight:650;white-space:nowrap}.data-table td{padding:11px 12px;border-bottom:1px solid #edf0eb;vertical-align:middle;color:#34413e}.data-table tbody tr:hover{background:#fafbf8}.compact-table{min-width:720px}.compact-table td{padding-block:10px}.nowrap{white-space:nowrap}.stacked-cell{min-width:150px;display:flex;flex-direction:column;gap:3px}.stacked-cell strong{overflow:hidden;color:var(--ink);font-size:12px;font-weight:650;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.stacked-cell span{max-width:280px;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.wide-cell{max-width:300px}.truncate-cell{max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type-dot{width:6px;height:6px;margin-right:8px;display:inline-block;border-radius:50%;vertical-align:1px}.type-dot.tone-red{background:var(--red)}.type-dot.tone-amber{background:var(--amber)}.state-tag,.type-label{padding:3px 7px;display:inline-flex;align-items:center;border:1px solid transparent;border-radius:5px;font-size:10px;font-style:normal;font-weight:650;line-height:1.4;white-space:nowrap}.type-label{border-color:#dfe5e8;color:#3c617f;background:#f1f5f8}.tone-green{border-color:#cfe3dc;color:#1e6a5e;background:#eff7f4}.tone-red{border-color:#ead2ca;color:#9d4e38;background:#fbf1ed}.tone-amber{border-color:#eadfc7;color:#8f641e;background:#fbf7ea}.tone-blue{border-color:#d6e1e9;color:#406786;background:#f1f5f8}.tone-neutral{border-color:#dde1db;color:#68716d;background:#f4f5f2}.actions-column{width:88px}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}.icon-button{width:30px;height:30px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;color:var(--muted);background:transparent}.icon-button:hover{border-color:var(--line);color:var(--ink);background:var(--surface-muted)}.icon-button.danger-hover:hover{border-color:#ecd4cc;color:#a64e36;background:#fcf2ef}.empty-row{min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:12px}.empty-row small{color:var(--soft);font-size:11px}.entry-heading{align-items:flex-end}.entry-workspace{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.entry-tabbar{min-height:58px;padding:0 18px;display:flex;align-items:stretch;gap:4px;border-bottom:1px solid var(--line)}.entry-tabbar button{position:relative;min-width:132px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;color:var(--muted);background:transparent;font-size:12px;font-weight:650}.entry-tabbar button:after{position:absolute;right:12px;bottom:-1px;left:12px;height:2px;background:transparent;content:""}.entry-tabbar button:hover{color:var(--ink)}.entry-tabbar button.is-active{color:var(--brand-dark)}.entry-tabbar button.is-active:after{background:var(--brand)}.entry-tabbar em{min-width:20px;height:20px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:var(--soft);background:#eff1ed;font-size:10px;font-style:normal}.entry-tabbar button.is-active em{color:var(--brand);background:var(--brand-soft)}.entry-toolbar{min-height:86px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fbfcfa}.entry-filter-row{padding:0 18px 14px;background:#fbfcfa}.entry-summary{display:flex;align-items:stretch;gap:0}.entry-summary>div{min-width:105px;padding:0 18px;display:flex;flex-direction:column;gap:5px;border-right:1px solid var(--line)}.entry-summary>div:first-child{padding-left:0}.entry-summary>div:last-child{border-right:0}.entry-summary span{color:var(--soft);font-size:10px}.entry-summary strong{color:var(--ink);font-size:17px;font-weight:680;font-variant-numeric:tabular-nums}.toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.records-note{min-height:38px;margin:0 18px 14px;padding:9px 11px;display:flex;align-items:center;gap:8px;border:1px solid #ece2cf;border-radius:6px;color:#7b5b25;background:var(--surface-warm);font-size:11px;line-height:1.5}.records-note svg{flex:0 0 auto}.inline-progress{min-width:125px;display:grid;grid-template-columns:auto 52px auto;align-items:center;gap:6px;font-size:10px;font-variant-numeric:tabular-nums}.inline-progress>div{height:4px;overflow:hidden;border-radius:999px;background:#e8ece7}.inline-progress i{display:block;height:100%;border-radius:inherit;background:var(--brand)}.inline-progress em{color:var(--muted);font-style:normal}.app-footer{min-height:50px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);color:var(--soft);background:#f9faf8;font-size:10px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;padding:20px;display:flex;align-items:center;justify-content:center;background:#121e1c85;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-panel{width:min(100%,640px);max-height:calc(100vh - 40px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(28,46,42,.1);border-radius:8px;background:var(--surface);box-shadow:0 26px 70px #0f1e1b3d}.modal-panel.modal-wide{width:min(100%,860px)}.modal-header{padding:19px 22px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.modal-header h2{margin:0;font-size:18px;line-height:1.35}.modal-header p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.modal-close{flex:0 0 auto}.modal-body{padding:21px 22px;overflow:auto}.modal-footer{padding:14px 22px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);background:#fbfcfa}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-field{min-width:0;display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px;font-weight:650}.form-field>span{display:flex;align-items:center;gap:6px}.form-field small{color:var(--soft);font-size:10px;font-weight:400}.form-field input,.form-field select,.form-field textarea,.problem-row input{width:100%;min-height:39px;padding:9px 10px;border:1px solid var(--line-strong);border-radius:6px;outline:0;color:var(--ink);background:var(--surface);font-size:12px;font-weight:400;transition:border-color .14s ease,box-shadow .14s ease}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.problem-row input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #146b6514}.span-2{grid-column:span 2}.problems-editor{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.problems-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.problems-editor-head h3{margin:0;font-size:14px}.problems-editor-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.problem-list{margin-top:12px;display:flex;flex-direction:column;gap:8px}.problem-row{padding:10px;display:grid;grid-template-columns:30px minmax(0,1fr) 156px 30px;align-items:end;gap:9px;border:1px solid #e7eae4;border-radius:7px;background:#fafbf8}.problem-index{align-self:center;color:var(--soft);font-size:10px;font-variant-numeric:tabular-nums}.problem-row label{min-width:0;display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:10px}.problem-row input{min-height:34px;padding-block:7px;background:#fff}.form-error{margin-top:14px;padding:9px 11px;display:flex;align-items:center;gap:7px;border:1px solid #ecd4cc;border-radius:6px;color:#984a34;background:#fcf2ef;font-size:11px}.upload-zone{min-height:156px;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px dashed #b8c5bd;border-radius:8px;color:var(--ink);background:#f8faf7;text-align:center;cursor:pointer}.upload-zone:hover{border-color:var(--brand);background:#f4f9f6}.upload-zone.has-file{border-style:solid;border-color:#c8ddd6;background:#f4f9f7}.upload-zone input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)}.upload-icon{width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--brand);background:var(--brand-soft)}.upload-zone strong{font-size:13px}.upload-zone small{color:var(--muted);font-size:10px}.import-summary{margin-top:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:7px;background:var(--surface-muted)}.import-summary>div{min-height:66px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center;gap:4px;border-right:1px solid var(--line)}.import-summary>div:last-child{border-right:0}.import-summary span{color:var(--soft);font-size:10px}.import-summary strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.month-chips{margin-top:12px;display:flex;flex-wrap:wrap;gap:7px}.month-chips span{padding:5px 8px;display:inline-flex;align-items:center;gap:7px;border-radius:5px;color:var(--muted);background:#eff2ed;font-size:10px}.month-chips strong{color:var(--brand-dark)}.preview-table-wrap{max-height:250px;margin-top:15px;overflow:auto;border:1px solid var(--line);border-radius:7px}.preview-table-wrap .data-table{min-width:640px}.toast{position:fixed;right:24px;bottom:24px;z-index:80;min-height:44px;max-width:min(420px,calc(100vw - 32px));padding:10px 14px;display:flex;align-items:center;gap:8px;border:1px solid #c8ded7;border-radius:7px;color:#174f48;background:#f1f8f5;box-shadow:0 16px 38px #152a2529;font-size:12px;font-weight:600}.toast-error{border-color:#e7c9c0;color:#91452e;background:#fff5f1}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-loading{min-height:100vh;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);background:var(--bg);text-align:center}.app-loading strong{color:var(--ink);font-size:17px}.app-loading span{max-width:440px;font-size:12px;line-height:1.6}.sync-indicator{height:38px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface);font-size:11px;font-weight:650;white-space:nowrap}.sync-offline{border-color:#e8d8d2;color:#984f39;background:#fff7f4}.sync-syncing svg{animation:soft-pulse .9s ease-in-out infinite alternate}@keyframes soft-pulse{to{opacity:.38}}.account-button{height:42px;padding:3px 9px 3px 4px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface);text-align:left}.account-button:hover{border-color:var(--line-strong);background:var(--surface-muted)}.account-button>span:first-child,.account-identity>span,.user-avatar{width:32px;height:32px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:#fff;background:var(--brand-dark);font-size:13px;font-weight:700}.account-button-copy{display:flex;flex-direction:column;gap:1px;white-space:nowrap}.account-button-copy strong{font-size:11px;line-height:1.25}.account-button-copy small{color:var(--soft);font-size:9px;line-height:1.25}.mobile-bottom-nav{display:none}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(440px,1.1fr);background:#f4f5f1}.auth-intro{min-height:100vh;padding:44px clamp(34px,6vw,84px);display:flex;flex-direction:column;justify-content:space-between;color:#f5faf7;background:#173f3b}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand .brand-mark{background:#ffffff1f}.auth-brand>div{display:flex;flex-direction:column;gap:2px}.auth-brand strong{font-size:16px}.auth-brand span{color:#b8cec9;font-size:11px}.auth-message{max-width:520px;margin-block:auto;padding-block:60px}.auth-kicker{display:block;margin-bottom:12px;color:#8fc2b9;font-size:11px;font-weight:700}.auth-message h1{max-width:520px;margin:0;font-size:clamp(30px,4vw,48px);line-height:1.16;font-weight:680}.auth-message p{max-width:440px;margin:18px 0 0;color:#b8cec9;font-size:14px;line-height:1.8}.auth-device-note{padding-top:20px;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.12);color:#b8cec9;font-size:11px}.auth-panel{min-height:100vh;padding:48px clamp(28px,8vw,112px);display:flex;flex-direction:column;justify-content:center}.auth-panel-head,.auth-form{width:min(100%,460px);margin-inline:auto}.auth-panel-head>span{color:var(--brand);font-size:11px;font-weight:700}.auth-panel-head h2{margin:7px 0 0;font-size:27px;line-height:1.25;font-weight:680}.auth-panel-head p{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.auth-form{margin-top:28px;display:flex;flex-direction:column;gap:16px}.auth-field{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px;font-weight:650}.auth-field>span{display:flex;align-items:center;gap:6px}.auth-field>input,.password-input{width:100%;min-height:46px;border:1px solid var(--line-strong);border-radius:7px;background:var(--surface)}.auth-field>input,.password-input input{padding:10px 12px;border:0;outline:0;color:var(--ink);background:transparent;font-size:14px;font-weight:400}.auth-field>input:focus,.password-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #146b6514}.password-input{display:flex;align-items:center}.password-input input{min-width:0;flex:1}.password-input .icon-button{margin-right:6px}.legacy-data-note{padding:12px;display:flex;align-items:flex-start;gap:9px;border:1px solid #cfe3dc;border-radius:7px;color:#1f6258;background:#eef7f4;font-size:11px;font-weight:400;line-height:1.6}.legacy-data-note svg{flex:0 0 auto;margin-top:1px}.auth-error{padding:10px 12px;border:1px solid #ecd4cc;border-radius:7px;color:#984a34;background:#fcf2ef;font-size:11px;line-height:1.5}.auth-submit{width:100%;min-height:46px;margin-top:2px}.modal-inline-error{margin-inline:22px}.account-body{display:flex;flex-direction:column;gap:22px}.account-identity{padding:15px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.account-identity>span{width:42px;height:42px;font-size:16px}.account-identity>div{display:flex;flex-direction:column;gap:4px}.account-identity strong{font-size:15px}.account-identity small{color:var(--muted);font-size:11px}.password-form{display:flex;flex-direction:column;gap:14px}.password-form>.btn{align-self:flex-start}.account-section-title{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:13px;font-weight:680}.account-footer{align-items:center;justify-content:space-between}.account-footer>div{display:flex}.users-body{display:flex;flex-direction:column;gap:20px}.new-user-form{padding:16px;display:flex;flex-direction:column;gap:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.new-user-form>.btn{align-self:flex-start}.user-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.user-list-head>span{color:var(--soft);font-size:10px}.user-list{overflow:hidden;border:1px solid var(--line);border-radius:8px}.user-list-row{min-height:62px;padding:10px 12px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #edf0eb}.user-list-row:last-child{border-bottom:0}.user-list-row.is-off{background:#fafbf8}.user-list-copy{min-width:0;margin-right:auto;display:flex;flex-direction:column;gap:3px}.user-list-copy strong{font-size:12px}.user-list-copy span{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}@media(max-width:1180px){.topbar{grid-template-columns:auto 1fr;gap:12px 20px;padding-block:11px}.main-nav{grid-column:1 / -1;grid-row:2;justify-content:flex-start;border-top:1px solid #f0f2ee;padding-top:8px}.topbar-actions{grid-column:2;grid-row:1}.dashboard-grid{grid-template-columns:minmax(0,1.55fr) minmax(270px,.8fr)}.entry-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%}}@media(max-width:920px){.auth-page{grid-template-columns:1fr}.auth-intro{min-height:auto;padding:28px 24px;gap:38px}.auth-message{padding-block:42px}.auth-message h1{max-width:620px;font-size:34px}.auth-panel{min-height:auto;padding:42px 24px 52px}.app-main{padding:22px 18px 34px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.summary-callout{margin-top:16px}.heading-meta{min-width:130px}}@media(max-width:720px){.topbar{display:flex;flex-wrap:wrap;padding:10px 14px}.brand{flex:1}.brand-copy small{display:none}.topbar-actions{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 38px 38px;gap:7px}.month-select{min-width:0}.month-select select{width:100%;min-width:0}.top-export span{display:none}.top-export{width:38px;padding:0}.main-nav{display:none}.sync-indicator{width:38px;padding:0;justify-content:center}.sync-indicator>span{display:none}.account-button{width:38px;height:38px;padding:2px;justify-content:center}.account-button>span:first-child{width:32px;height:32px}.account-button-copy{display:none}.mobile-bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:35;min-height:calc(62px + env(safe-area-inset-bottom));padding:6px 10px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);background:#fffffffa;box-shadow:0 -8px 22px #192a270f}.mobile-bottom-nav button{min-height:48px;padding:4px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:7px;color:var(--muted);background:transparent;font-size:10px;font-weight:650}.mobile-bottom-nav button.is-active{color:var(--brand-dark);background:var(--brand-soft)}.app-main{padding:18px 14px 96px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px}.page-heading h1{font-size:24px}.heading-meta{width:100%;padding:10px 0 0;border-top:1px solid var(--line);border-left:0;align-items:flex-start;text-align:left}.composite-panel{grid-template-columns:1fr;padding:22px 20px 18px}.composite-number{align-items:flex-start}.composite-value strong{font-size:44px}.kpi-grid{grid-template-columns:1fr}.section-panel{padding:17px 15px}.chart-wrap{height:270px}.legend-note{display:none}.entry-tabbar{padding:0 8px;overflow-x:auto}.entry-tabbar button{min-width:112px;padding-inline:8px}.entry-summary{width:100%}.entry-summary>div{min-width:0;padding-inline:10px;flex:1}.entry-summary>div:first-child{padding-left:0}.entry-summary strong{font-size:15px}.toolbar-actions{flex-wrap:wrap}.toolbar-actions .btn-primary{flex:1}.entry-filter-row{padding:0 12px 12px}.filter-popover{position:fixed;top:auto;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));left:12px;width:auto;max-height:min(72dvh,680px)}.filter-option-grid{grid-template-columns:1fr}.filter-chip{flex:1 1 180px}.logic-grid{margin-inline:-15px;grid-template-columns:1fr}.logic-item{padding-inline:15px}.logic-item:nth-child(odd){border-right:0}.composite-formula{padding-inline:15px;align-items:flex-start;flex-direction:column;gap:8px}.records-note{margin-inline:12px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.problem-row{grid-template-columns:24px minmax(0,1fr) 30px}.problem-row label:nth-of-type(2){grid-column:2}.problem-row>.icon-button{grid-column:3;grid-row:1}.modal-backdrop{padding:0;align-items:stretch}.modal-panel,.modal-panel.modal-wide{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0}.modal-panel form{min-height:0;flex:1;display:flex;flex-direction:column}.modal-header,.modal-body,.modal-footer{padding-inline:16px}.modal-body{flex:1;padding-bottom:24px}.modal-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom));background:#fbfcfafa}.modal-inline-error{margin-inline:16px}.import-summary{grid-template-columns:1fr}.import-summary>div{min-height:54px;border-right:0;border-bottom:1px solid var(--line)}.import-summary>div:last-child{border-bottom:0}.app-footer{margin-bottom:calc(62px + env(safe-area-inset-bottom));padding:12px 14px;align-items:flex-start;flex-direction:column;gap:4px}.toast{right:16px;bottom:calc(78px + env(safe-area-inset-bottom))}.auth-intro{padding:22px 18px 24px;gap:30px}.auth-message{padding-block:32px 22px}.auth-message h1{font-size:29px}.auth-message p{margin-top:12px;font-size:12px}.auth-device-note{display:none}.auth-panel{padding:32px 18px 48px}.auth-panel-head h2{font-size:23px}.auth-field>input,.password-input input,.form-field input,.form-field select,.form-field textarea,.problem-row input{font-size:16px}.auth-field>input,.password-input{min-height:48px}.user-form-grid{grid-template-columns:1fr}.user-list-row{flex-wrap:wrap}.user-list-copy{flex:1}.user-list-row>.btn{min-width:58px}}@media(max-width:420px){.topbar-actions{grid-template-columns:38px minmax(0,1fr) 38px 38px}.brand-mark{width:34px;height:34px}.composite-value strong{font-size:39px}.entry-summary>div{padding-inline:7px}.entry-summary span{font-size:9px}.entry-summary strong{font-size:14px}.toolbar-actions .btn{flex:1;padding-inline:8px;font-size:11px}}
