@font-face{font-family:Geist;src:local('Geist')}*{box-sizing:border-box} :root{--navy:#182c3c;--ink:#243d4b;--muted:#687c86;--line:#dbe2e3;--gold:#d5bb84;--gold-deep:#8c713c;--paper:#f5f6f3;--teal:#588b88}body{margin:0;color:var(--ink);background:var(--paper);font-family:Geist,-apple-system,BlinkMacSystemFont,'PingFang TC','Noto Sans TC','Microsoft JhengHei',sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer;transition:background .18s,color .18s,box-shadow .18s,transform .18s}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #bba574;outline-offset:3px}button:not(:disabled):active{transform:translateY(1px)}input,select{min-width:0;color:var(--ink)}.topbar{height:88px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;flex-shrink:0}.brand svg{width:44px;height:44px}.brand svg rect{fill:var(--navy)}.brand svg path{stroke:var(--gold);stroke-width:1.5;fill:none}.brand svg .beads{stroke-width:5;stroke-linecap:round}.brand h1{font-size:23px;letter-spacing:2px;line-height:1.3;margin:0;color:var(--navy)}.brand p{font-size:11px;letter-spacing:1px;color:var(--muted);margin:5px 0 0}.button{min-height:39px;padding:9px 14px;border-radius:7px;border:1px solid transparent;font-weight:600;white-space:nowrap;font-size:12px}.button.light{background:white;border-color:var(--line);color:var(--ink)}.button.light:hover{background:#eff2ee}.button.dark{background:var(--navy);color:white}.button.dark:hover{background:#29475b}.button.gold{background:var(--gold);color:#2b302a}.button.gold:hover{background:#e0ca9c}.button.danger{background:#984b42;color:white}.text-button{background:none;border:0;font-size:12px;color:var(--muted);padding:8px}.text-button:hover{color:var(--navy);background:#ecf0ed;border-radius:5px}.icon-button{border:1px solid var(--line);background:white;border-radius:6px;width:32px;height:32px;font-size:22px;color:var(--ink);display:inline-grid;place-items:center}.icon-button:hover{background:#edf1ed}main{max-width:1800px;margin:auto;padding:27px 32px 16px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:20px}.eyebrow{font-size:11px;letter-spacing:1.2px;color:var(--muted);margin-bottom:8px}.title-row{display:flex;align-items:center;gap:12px}h2{font-size:26px;font-weight:600;letter-spacing:1px;margin:0}.outline-tag{border:1px solid #d0d8d5;border-radius:4px;padding:3px 6px;font-size:10px;color:#687d72}.scenario-wrap{display:flex;align-items:center;gap:12px;font-size:12px}.scenario-wrap label{color:var(--muted)}.scenario-wrap input{width:175px;border:0;border-bottom:1px solid #ccd6d3;padding:9px 0;background:transparent;font-weight:600;border-radius:0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;border:1px solid #d5dedd;border-radius:12px;overflow:hidden;box-shadow:0 10px 35px #17313e05;background:white;min-height:606px}.canvas-panel{min-width:0;display:flex;flex-direction:column}.canvas-toolbar{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);height:70px;background:#fff}.tool-actions{display:flex;align-items:center;gap:7px}.divider{height:18px;width:1px;background:var(--line);display:inline-block;margin:0 3px}.canvas-meta{padding:13px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center;height:53px;background:#f9faf7}.canvas-meta>span{font-size:11px;color:var(--muted)}.search-wrap{display:flex;align-items:center;gap:6px}.search-wrap svg{width:16px;height:16px;fill:none;stroke:#80909a;stroke-width:1.8}.search-wrap input{border:0;background:transparent;width:115px;font-size:12px;outline-offset:1px}.search-wrap button{border:0;background:transparent;color:var(--muted);padding:2px 5px}.canvas{flex:1;height:420px;min-height:360px;overflow:auto;position:relative;background-color:#f9faf7;background-image:radial-gradient(#c5d0ce80 .8px,transparent .8px);background-size:18px 18px;cursor:grab;scrollbar-width:thin;scrollbar-color:#ced7d4 transparent;overscroll-behavior:contain}.canvas.panning{cursor:grabbing;user-select:none}#tree-space{position:relative;margin:0 auto;min-width:100%;min-height:100%}#tree{position:absolute;left:0;top:0;transform-origin:0 0;transition:transform .2s ease;width:100%;height:100%}#connections{position:absolute;inset:0;overflow:visible;pointer-events:none}#connections path{fill:none;stroke:#a4b4b4;stroke-width:1.5}#connections path.highlight{stroke:#b99b61;stroke-width:2}.person{position:absolute;width:192px;min-height:100px;background:#fff;border:1px solid #d3deda;border-top:3px solid var(--teal);border-radius:8px;box-shadow:0 4px 9px #223d4410;cursor:default;transition:box-shadow .15s,border-color .15s}.person.sales{border-top-color:#a9b3bb}.person.selected{border:1.5px solid #b39a67;border-top:3px solid #b39a67;box-shadow:0 0 0 4px #cfb37b20,0 6px 16px #32453e14}.person.search-match{box-shadow:0 0 0 4px #5a9e9b30}.person-card{border:0;border-radius:6px 6px 0 0;background:transparent;text-align:left;padding:13px 14px 10px;display:block;width:100%;color:var(--ink)}.person-card:hover{background:#f5f8f4}.person-top{display:flex;align-items:center;gap:9px;margin-bottom:0}.avatar{width:31px;height:31px;border-radius:9px;background:#eef2ed;display:grid;place-items:center;font-size:13px;color:#617d75;flex-shrink:0;font-weight:600}.selected .avatar{background:#e8dfca;color:#776234}.person-name{display:block;font-size:14px;font-weight:650;line-height:1.3;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-rank{display:block;font-size:10px;color:var(--muted);margin-top:4px}.node-actions{display:flex;height:30px;border-top:1px solid #edf0ec}.node-actions button{background:none;border:0;color:#6e817c;font-size:10px;flex:1}.node-actions button:hover{background:#eef3ed;color:var(--navy)}.node-actions button+button{border-left:1px solid #edf0ec}.person.root .person-rank{color:#927642}.canvas-bottom{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:10px;border-top:1px solid var(--line);height:51px}.legend{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted)}.legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block;margin-left:7px}.legend-dot:first-child{margin-left:0}.selected-dot{background:#b39760}.team-dot{background:var(--teal)}.sales-dot{background:#a2afba}.zoom-tools{display:flex;align-items:center;gap:7px;font-size:10px;flex-shrink:0}.zoom-tools button{border:0;background:transparent;min-width:24px;height:27px;color:var(--ink);font-size:17px;border-radius:4px}.zoom-tools button:hover{background:#edf2ee}.zoom-tools .fit-button{font-size:11px;min-width:32px}#zoom-label{width:35px;text-align:center;font-variant-numeric:tabular-nums}.canvas-help{display:flex;justify-content:space-between;align-items:center;padding:3px 17px;font-size:10px;color:#788981;background:#fafbf8;min-height:38px}.canvas-help .text-button{font-size:10px;white-space:nowrap}.inspector{border-left:1px solid var(--line);padding:22px 20px;background:#fff;max-height:640px;overflow:auto;scrollbar-width:thin}.inspector-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-bottom:20px}.inspector-heading>span:last-child{color:var(--gold-deep);background:#f5f0e5;padding:4px 7px;border-radius:4px;font-size:10px}.inspector-person{display:flex;align-items:center;gap:11px;margin-bottom:23px}.inspector-person .avatar{width:43px;height:43px;font-size:18px;background:var(--navy);color:var(--gold)}.inspector-person h3{margin:0;font-size:19px;max-width:200px;overflow-wrap:anywhere}.inspector-person p{font-size:11px;color:var(--muted);margin:5px 0 0}.field{display:block;margin:0 0 13px}.field>span{display:block;font-size:11px;color:#65787f;margin:0 0 6px}.field input,.field select,.dialog-field{width:100%;padding:10px 11px;min-height:39px;border-radius:6px;border:1px solid var(--line);background:#fff;font-size:12px}.field select{padding-right:20px}.field input:disabled,.field select:disabled{background:#f3f5f1;color:#87948d}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-grid .field{min-width:0}.field small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.apply{width:100%;margin-top:4px}.relationship-note{font-size:10px;line-height:1.7;color:var(--muted);margin:0 0 14px}.edit-tools{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.edit-tools button{font-size:10px;padding:7px 9px;min-height:31px}.edit-tools .remove{color:#9a6157;border-color:#eadeda}.summary-bar{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px;padding:20px 0 16px;align-items:center;gap:18px}.summary-intro{display:flex;align-items:center;gap:12px}.small-icon{width:34px;height:34px;background:#e7ece5;border-radius:8px;display:grid;place-items:center;font-size:20px;color:#597267}.summary-intro strong{font-size:12px;font-weight:600}.summary-intro p{font-size:10px;color:var(--muted);margin:5px 0 0}.summary-item{border-left:1px solid var(--line);padding-left:22px}.summary-item>span{display:block;color:var(--muted);font-size:10px;margin-bottom:7px}.summary-item>strong{font-size:24px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.summary-item small{font-size:10px;letter-spacing:0;color:var(--muted);font-weight:400}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding-top:13px;font-size:10px;color:#7b8987}dialog{border:1px solid var(--line);border-radius:14px;width:min(460px,calc(100% - 32px));padding:24px;color:var(--ink);box-shadow:0 30px 90px #10273933}dialog::backdrop{background:#132b3c66;backdrop-filter:blur(3px)}.dialog-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-bottom:12px}dialog h2{font-size:22px;margin-bottom:20px}#dialog-body{font-size:13px;line-height:1.8}#dialog-body p{color:var(--muted)}#dialog-body label{display:block;margin:12px 0;font-size:12px}#dialog-body select,#dialog-body input{margin-top:6px}#dialog-body input[type=checkbox]{width:auto;min-height:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.dialog-warning{background:#f5f1e6;padding:12px;border-radius:6px;font-size:12px}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,12px);background:var(--navy);color:white;padding:12px 20px;border-radius:8px;box-shadow:0 8px 25px #182c3c33;z-index:10;opacity:0;pointer-events:none;transition:.2s;font-size:12px;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}#search-empty{position:absolute;top:12px;left:20px;padding:8px 12px;font-size:12px;background:white;border:1px solid var(--line);border-radius:5px}
@media(min-width:1400px){.workspace{grid-template-columns:minmax(0,1fr) 340px}.canvas{height:480px}.inspector{max-height:700px;padding:24px}.canvas-panel{min-height:690px}}
@media(max-width:1150px){.topbar{padding:0 22px;height:78px}main{padding:22px 22px 15px}.workspace{grid-template-columns:minmax(0,1fr) 280px}.inspector{padding:20px 16px}.canvas-toolbar{padding:12px}.tool-actions{gap:5px}.tool-actions .divider{display:none}.tool-actions .text-button{font-size:10px;padding:6px}.tool-actions .button{font-size:11px;padding:8px 10px}.legend{gap:5px;font-size:9px}.legend-dot{margin-left:4px}.summary-bar{gap:10px}.summary-item{padding-left:17px}.summary-intro p{max-width:90px;line-height:1.6}.canvas-help{padding:4px 12px}.canvas-help>span{max-width:260px;line-height:1.7}.canvas-bottom{padding:10px 12px}.scenario-wrap{gap:8px}.scenario-wrap input{width:145px}}
@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 265px}.tool-actions #expand-all{display:none}.canvas-meta{padding:12px}.canvas-meta>span{max-width:150px;line-height:1.6}.legend{display:none}.canvas-bottom{justify-content:flex-end}.summary-bar{grid-template-columns:minmax(0,1fr) 90px 90px}.summary-item{padding-left:10px}.scenario-wrap label{display:none}.title-row h2{font-size:23px}.outline-tag{display:none}.canvas-help>span{max-width:180px}.scenario-wrap input{width:125px}}
@media(max-width:700px){.topbar{height:76px;padding:0 16px;gap:10px}.brand{gap:8px}.brand svg{width:34px;height:34px}.brand h1{font-size:19px;letter-spacing:1px}.brand p{font-size:9px}main{padding:21px 12px 14px}.workspace-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:16px}.workspace-title{padding-left:4px}.scenario-wrap{width:100%;justify-content:space-between;padding-left:4px}.scenario-wrap label{display:block;font-size:11px}.scenario-wrap input{flex:1;width:130px;max-width:230px;font-size:12px}.workspace{display:flex;flex-direction:column;overflow:hidden}.canvas-toolbar{padding:10px;height:60px}.tool-actions .icon-button{width:29px;height:29px;font-size:19px}.tool-actions .button{font-size:10px;padding:7px}.canvas-meta{height:51px}.canvas-meta>span{max-width:180px;font-size:10px}.search-wrap input{width:83px;font-size:11px}.canvas{height:460px;flex:none;min-height:0}.canvas-bottom{height:44px}.canvas-help{font-size:9px;padding:3px 10px}.canvas-help>span{max-width:230px}.inspector{border-left:0;border-top:1px solid var(--line);padding:22px;max-height:none}.inspector-heading{margin-bottom:15px}.inspector-person{margin-bottom:18px}.summary-bar{padding-top:20px;gap:16px 8px}.summary-item>strong{font-size:23px}.summary-item>span{font-size:9px}footer{flex-direction:column;font-size:9px;gap:7px}.edit-tools button{min-height:35px}.canvas-help .text-button{font-size:9px}.field input,.field select{font-size:16px}#scenario{font-size:16px}.person-card:focus-visible{outline-offset:1px}}
.workspace{height:620px;min-height:0;grid-template-rows:minmax(0,1fr)}.canvas-panel{min-height:0}.canvas{min-height:0}.inspector{max-height:100%}
@media(min-width:1400px){.workspace{height:700px}.canvas-panel{min-height:0}}
@media(max-width:700px){.workspace{height:auto}.inspector{max-height:none}.canvas-panel{min-height:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.graph-title{margin:0;padding:7px 2px;color:var(--navy);font-size:14px;font-weight:650;letter-spacing:.5px;white-space:nowrap}
@media(max-width:700px){.graph-title{font-size:13px}}



.performance-section{margin:4px 0 24px;padding:24px 26px;border:1px solid var(--line);border-radius:12px;background:#fff}.performance-heading{display:flex;align-items:center;gap:12px}.performance-heading h2{font-size:20px;letter-spacing:.5px}.performance-heading .outline-tag{display:inline-block;background:#f7f5ef;color:var(--gold-deep);border-color:#e4ddcc}.performance-section>p{font-size:13px;color:var(--muted);line-height:1.8;margin:12px 0 18px}.performance-flow{display:flex;align-items:center;gap:18px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:#5f766e}.performance-flow [aria-hidden]{color:#adb8b2}
@media(max-width:700px){.performance-section{padding:20px}.performance-heading h2{font-size:18px}.performance-section>p{font-size:12px}.performance-flow{gap:12px;font-size:11px}.summary-intro{gap:8px}.summary-intro .small-icon{display:none}}

/* Ten independent annual snapshots. */
.promotion-rules{margin:0 0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.promotion-rules>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none;cursor:pointer;padding:17px 20px;min-height:60px}
.promotion-rules>summary::-webkit-details-marker{display:none}
.promotion-rules>summary:hover{background:#f9faf6}
.promotion-rules>summary:focus-visible{outline:3px solid var(--gold-deep);outline-offset:-3px}
.promotion-rules>summary>span:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px}
.promotion-rules>summary strong{font-size:15px;font-weight:600;color:var(--navy)}
.promotion-timing{font-size:12px;color:var(--gold-deep)}
.promotion-mark{margin-left:5px;color:var(--gold-deep);font-size:9px;font-weight:600}
.person-promotion-status{padding:10px 12px;background:#f6f1e5;color:var(--gold-deep);font-size:12px;line-height:1.7;border-radius:6px;margin:0 0 16px}
.promotion-toggle{font-size:12px;color:var(--muted);white-space:nowrap}
.promotion-toggle::before{content:'查看門檻 ＋'}
.promotion-rules[open] .promotion-toggle::before{content:'收合 −'}
.promotion-rules[open]>summary{border-bottom:1px solid var(--line);background:#fafbf8}
.promotion-content{padding:0 20px 18px;font-size:13px;line-height:1.8}
.promotion-intro{margin:16px 0;color:var(--muted)}
.promotion-intro strong{color:var(--ink);font-weight:600}
.promotion-table-wrap{overflow-x:auto;max-width:100%;scrollbar-width:thin;border:1px solid var(--line);border-radius:6px}
.promotion-table{width:100%;min-width:700px;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:13px;line-height:1.7}
.promotion-table th,.promotion-table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.promotion-table thead th{font-weight:500;font-size:12px;color:var(--muted);background:#f4f6f2}
.promotion-table th:first-child{width:27%}.promotion-table th:nth-child(2){width:33%}
.promotion-table tbody th{font-weight:500;color:var(--navy)}
.promotion-table tbody tr:last-child>*{border-bottom:0}
.promotion-table tbody tr:nth-child(even){background:#fcfcfa}
.promotion-table strong{color:var(--gold-deep);font-weight:600}
.promotion-table small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.promotion-attendance{padding:12px 14px;background:#f6f1e5;border-radius:6px;color:var(--gold-deep);margin:16px 0}
.promotion-definitions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;margin:20px 0}
.promotion-definitions dt{font-weight:600;margin-bottom:4px}
.promotion-definitions dd{margin:0;color:var(--muted);font-size:12px}
.promotion-status{padding-top:16px;border-top:1px solid var(--line)}
.promotion-status>strong{font-size:12px;font-weight:600}
.promotion-status p{font-size:12px;color:var(--muted);margin:5px 0 0}
.promotion-sources{font-size:11px;color:var(--muted);margin:16px 0 0}
.promotion-sources a{color:var(--muted);text-underline-offset:3px}.promotion-sources a:hover{color:var(--navy)}
.promotion-sources span{display:block;margin-top:4px}
@media(max-width:700px){.promotion-rules>summary{padding:14px}.promotion-rules>summary>span:first-child{flex-direction:column;align-items:flex-start}.promotion-content{padding:0 14px 16px}.promotion-definitions{grid-template-columns:1fr;gap:15px}.promotion-table th,.promotion-table td{padding:11px 12px}.promotion-intro{font-size:12px}.promotion-attendance{font-size:12px}.promotion-table{min-width:700px}}

[hidden]{display:none!important}
.year-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(88px,1fr);gap:6px;overflow-x:auto;padding:3px 3px 10px;margin:0 -3px 10px;scrollbar-width:thin}
.year-tabs button{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);padding:12px 8px;min-height:64px;text-align:center;white-space:nowrap}
.year-tabs button strong{display:block;font-size:13px;font-weight:600}.year-tabs button span{display:block;font-size:10px;margin-top:6px}
.year-tabs button:hover{border-color:#bba474;background:#faf8f2}.year-tabs button[aria-selected="true"]{background:var(--navy);border-color:var(--navy);color:#fff}.year-tabs button[aria-selected="true"] span{color:var(--gold)}
.year-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:15px 0 12px}.year-heading h3{font-size:17px;margin:0}.year-heading p{font-size:11px;line-height:1.7;color:var(--muted);margin:6px 0 0}.year-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.year-change{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:35px;margin-bottom:12px;font-size:11px;color:var(--muted)}.change-baseline{margin-right:3px}.change-item{display:inline-flex;align-items:center;gap:5px}.change-item strong{font-size:13px;font-variant-numeric:tabular-nums;font-weight:600}.change-item.has-change{color:var(--gold-deep);background:#f0eadc;border-radius:5px;padding:5px 8px}
.year-empty{border:1px dashed #c4d0c9;border-radius:12px;padding:70px 24px;text-align:center;background:#f9faf7;margin-bottom:24px}.year-empty h3{font-size:20px;font-weight:600;margin:0 0 14px}.year-empty p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}
@media(max-width:1150px){.year-tabs button strong{font-size:12px}}
@media(max-width:700px){.year-tabs{grid-auto-columns:88px}.year-heading{align-items:flex-start;gap:12px}.year-heading h3{font-size:16px}.year-heading p{font-size:10px}.year-actions>.button{font-size:10px;padding:8px}.year-actions{gap:4px}.year-actions>.icon-button{width:28px;height:30px}.year-heading{flex-wrap:wrap}.year-change{gap:7px 12px;font-size:10px}.change-baseline{flex-basis:100%}.year-empty{padding:48px 20px}.year-empty p{font-size:12px}.title-row h2{font-size:23px}}

.button.light.remove{color:#965c51;border-color:#dfc8c1}.button.light.remove:hover:not(:disabled){background:#faf0ed}.edit-tools #remove-person{flex-basis:100%;margin-top:5px;min-height:38px;font-size:12px}#removal-impact{line-height:1.9}#removal-impact strong{font-weight:650}

/* Annual product performance uses the existing organization palette. */
.performance-empty{display:flex;align-items:center;gap:18px;padding:24px;background:#f7f8f4;border:1px dashed #d4ddcf;border-radius:9px}
.performance-step{display:grid;place-items:center;width:45px;height:45px;flex-shrink:0;border-radius:12px;color:var(--gold-deep);background:#eee6d5;font-size:18px}
.performance-empty h3{font-size:16px;margin:0 0 8px}.performance-empty p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.performance-empty>.button{margin-left:auto}
.product-toolbar{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:24px 0 18px}.product-toolbar label{display:flex;align-items:center;gap:14px;font-size:12px;min-width:0;flex:1}.product-toolbar select{width:min(100%,420px);padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:13px}
.product-card{border:1px solid var(--line);border-radius:9px;overflow:hidden}.product-card-heading{padding:21px 22px;display:flex;align-items:start;justify-content:space-between;gap:16px;background:#fafbf8}.product-card-heading h3{font-size:18px;margin:0 0 9px;overflow-wrap:anywhere}.product-card-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.product-card-heading p span{margin-left:18px}.product-actions{display:flex;flex-shrink:0}.product-actions .remove{color:#965c51}.product-source{font-size:11px;color:var(--muted);line-height:1.8;padding:0 22px;overflow-wrap:anywhere}
.rank-table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px}.rank-table-heading strong{display:block;font-size:13px}.rank-table-heading span{display:block;font-size:11px;color:var(--muted);margin-top:7px}
.performance-table-wrap{overflow-x:auto;scrollbar-width:thin;max-width:100%}.performance-table{border-collapse:collapse;width:100%;text-align:right;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.performance-table thead th{font-weight:500;color:var(--muted);background:#f6f8f5;font-size:11px;border-block:1px solid var(--line)}.performance-table th,.performance-table td{padding:13px 22px;border-bottom:1px solid #edf0eb}.performance-table th:first-child{text-align:left}.performance-table tbody th{font-weight:500}.performance-table th small{font-size:10px;color:var(--muted);margin-left:9px;font-weight:400}.performance-table tbody tr:last-child>*{border-bottom:0}.performance-table tr.unoccupied-rank{color:#78898c}.performance-table tr.current-performance-year{background:#f5f0e5}.pending-value{font-size:12px;font-weight:400;color:#957a49}
.calculation-formula{font-size:11px;color:var(--muted);line-height:1.9;padding:14px 22px;margin:0;border-top:1px solid var(--line);background:#fbfcf9}
.performance-summary{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:22px;background:var(--navy);color:white;border-radius:9px;padding:24px;margin:22px 0}.performance-summary>div+div{border-left:1px solid #49606c;padding-left:24px}.performance-summary span{display:block;color:#c3cecb;font-size:11px;line-height:1.7}.performance-summary strong{display:block;font-size:26px;font-weight:550;margin:10px 0;font-variant-numeric:tabular-nums}.performance-summary>div:first-child strong{font-size:19px}.performance-summary small{display:block;font-size:10px;color:#b8c8c9;line-height:1.8}.performance-summary .pending-value{font-size:20px;color:var(--gold)}
.performance-details{border:1px solid var(--line);border-radius:8px;margin-top:12px;overflow:hidden}.performance-details summary{cursor:pointer;padding:16px 18px;font-size:13px;font-weight:550}.performance-details>p{padding:0 18px;font-size:11px;color:var(--muted);line-height:1.8}.performance-details summary:hover{background:#f6f8f4}.performance-details[open] summary{color:var(--gold-deep)}
.income-pending{font-size:11px;line-height:1.9;color:var(--muted);margin:18px 0 0}.target-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.target-fields label{min-width:0}#dialog-body .target-product-name{overflow-wrap:anywhere;color:var(--gold-deep);margin-top:0}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.commission-schedule{padding:18px 22px;border-block:1px solid var(--line);background:#fcfcfa}.commission-schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.commission-schedule-heading>span{font-size:10px;color:var(--muted)}.commission-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin:16px 0}.commission-strip>div{border:1px solid var(--line);border-radius:6px;background:#fff;padding:11px 5px;text-align:center}.commission-strip span{display:block;color:var(--muted);font-size:10px}.commission-strip strong{display:block;font-size:18px;font-weight:550;margin-top:8px;font-variant-numeric:tabular-nums}.commission-strip .pending-value{font-size:12px;font-weight:400}.commission-schedule>p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}.renewal-editor{border-block:1px solid var(--line);padding:13px 0;margin:14px 0}.renewal-editor summary{font-size:12px;cursor:pointer}.renewal-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px}.renewal-fields input{padding:8px;font-size:13px}
.service-allowance{padding:20px 22px;border-bottom:1px solid var(--line);background:#f8f5ee}.service-allowance-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.service-allowance-heading strong{display:block;font-size:13px}.service-allowance-heading span{display:block;font-size:15px;color:var(--gold-deep);margin-top:8px;font-weight:550}.service-allowance>p{font-size:10px;color:var(--muted);line-height:1.9;margin:10px 0 0;overflow-wrap:anywhere}.service-allowance>.service-formula{font-size:12px;color:var(--ink);margin-top:16px}
@media(max-width:700px){.service-allowance{padding:16px}.service-allowance-heading{align-items:flex-start;flex-wrap:wrap}.service-allowance-heading span{font-size:14px}.service-allowance-heading .button{font-size:11px}}
@media(max-width:900px){.commission-strip{grid-template-columns:repeat(5,minmax(0,1fr))}.commission-schedule-heading{align-items:flex-start;flex-direction:column;gap:7px}}
@media(max-width:700px){.commission-schedule{padding:16px}.commission-strip{gap:5px}.commission-strip strong{font-size:16px}.renewal-fields input{font-size:16px}}
@media(max-width:1150px){.performance-table th,.performance-table td{padding:12px 16px}.performance-summary{gap:16px;padding:20px}.performance-summary>div+div{padding-left:18px}.performance-summary strong{font-size:24px}}
@media(max-width:700px){.performance-empty{flex-wrap:wrap;padding:18px;gap:14px}.performance-empty>.button{width:100%;margin-left:0}.performance-step{display:none}.performance-heading{align-items:flex-start;flex-direction:column;gap:8px}.product-toolbar{align-items:stretch;flex-direction:column;gap:10px}.product-toolbar label{align-items:stretch;flex-direction:column;gap:8px}.product-toolbar select{width:100%;font-size:16px}.product-toolbar>.button{align-self:flex-end}.product-card-heading{padding:16px;flex-direction:column;gap:6px}.product-card-heading p span{display:block;margin-left:0}.product-actions{align-self:flex-end}.rank-table-heading{padding:16px;gap:8px}.rank-table-heading .button{font-size:11px;padding:9px}.performance-table th,.performance-table td{padding:12px}.performance-table th small{display:block;margin:5px 0 0}.calculation-formula{padding:12px 16px}.performance-summary{grid-template-columns:1fr;gap:16px;padding:20px}.performance-summary>div+div{border-left:0;border-top:1px solid #49606c;padding:15px 0 0}.performance-summary strong{font-size:26px;margin:6px 0}.performance-section{padding:20px 14px}.dialog-field{font-size:16px}}

/* Compact multi-product performance overview; detailed rules remain available on demand. */
body[data-page="performance"] #page-eyebrow,body[data-page="performance"] #page-tag,body[data-page="performance"] #year-note{display:none}
.compact-product-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 14px}
.compact-product-toolbar>span{font-size:12px;color:var(--muted)}
.compact-product-list{display:grid;gap:16px}
.compact-product{min-width:0;background:#fff}
.compact-product-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px 14px}
.compact-product-heading>div{min-width:0}
.compact-product-heading h3{font-size:16px;line-height:1.65;margin:6px 0 0;overflow-wrap:anywhere}
.compact-product-heading>.button{flex-shrink:0}
.product-number{font-size:11px;color:var(--muted);letter-spacing:.5px}
.compact-fyb-label{font-size:11px;color:var(--muted);padding:0 22px;margin:0 0 10px}
.compact-ranks{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;margin:0 22px 20px;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.compact-ranks>div{min-width:0;padding:12px 8px;text-align:center;background:#f8faf6}
.compact-ranks>div+div{border-left:1px solid var(--line)}
.compact-ranks dt{font-size:11px;color:var(--muted);line-height:1.5}
.compact-ranks dt small{display:block;font-size:10px;letter-spacing:.5px;color:var(--muted);margin-top:3px}
.compact-ranks dd{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;margin:9px 0 0;overflow-wrap:anywhere}
.product-settings{border-top:1px solid var(--line)}
.product-settings>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:13px 22px;font-size:12px;background:#fcfcfa}
.product-settings>summary::-webkit-details-marker{display:none}
.product-settings>summary::before{content:'＋';color:var(--muted)}
.product-settings[open]>summary::before{content:'−'}
.product-settings>summary:hover{background:#f2f5ef}
.product-settings>summary:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.product-rate-hint{margin-left:auto;font-size:11px;color:var(--muted)}
.product-settings-body{border-top:1px solid var(--line)}
.product-settings-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px 0}
.product-settings .service-allowance:last-child{border-bottom:0}
@media(max-width:1000px){.compact-ranks{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-ranks>div:nth-child(5){border-left:0}.compact-ranks>div:nth-child(n+5){border-top:1px solid var(--line)}}
@media(max-width:700px){.compact-product-heading{padding:16px;gap:12px;align-items:flex-start;flex-direction:column}.compact-product-heading>.button{align-self:flex-end}.compact-product-heading h3{font-size:15px}.compact-fyb-label{padding:0 16px}.compact-ranks{margin:0 16px 16px;grid-template-columns:repeat(2,minmax(0,1fr))}.compact-ranks>div:nth-child(odd){border-left:0}.compact-ranks>div:nth-child(n+3){border-top:1px solid var(--line)}.compact-ranks dd{font-size:17px}.product-settings>summary{padding:13px 16px;gap:7px;flex-wrap:wrap}.product-rate-hint{font-size:10px}.product-settings-actions{padding:14px 16px 0}}

/* One annual FYB input per product; rank and commission controls are secondary. */
.compact-product-toolbar>#quick-customers-help{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.quick-product-list{gap:0;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.quick-product-list>.quick-product{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0}
.quick-product-list>.quick-product:last-child{border-bottom:0}
.quick-product-row{display:grid;grid-template-columns:minmax(190px,1fr) 220px 170px 90px;align-items:center;gap:18px;padding:20px 22px}
.annual-performance-total{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;margin-bottom:18px;background:var(--navy);color:#fff;border-radius:9px}.annual-performance-total span{font-size:14px;font-weight:600}.annual-performance-total small{display:block;font-size:11px;line-height:1.6;color:#dce5e8;margin-top:5px}.annual-total-amount{text-align:right;min-width:0}.annual-total-amount strong{display:block;font-size:26px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.annual-total-amount #annual-total-preview{color:var(--gold)}.product-annual-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-top:10px}.product-annual-total span{font-size:11px;color:var(--muted)}.product-annual-total strong{font-size:17px;font-variant-numeric:tabular-nums;color:var(--navy);overflow-wrap:anywhere}
.quick-product-name{min-width:0}
.performance-defaults{background:#f5f7f2;border:1px solid #d7e0d8;border-radius:9px;padding:14px 18px;margin-bottom:18px}.performance-defaults strong{font-size:14px;color:var(--teal)}.performance-defaults p{font-size:12px;line-height:1.8;color:var(--muted);margin:5px 0 0}
.sales-example>span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.sales-example button{width:100%;text-align:left;background:#f8faf7;border:1px solid var(--line);border-radius:7px;padding:10px 12px;color:var(--ink);min-height:92px}.sales-example button:hover{border-color:var(--teal);background:#f0f5f1}.sales-example strong{display:block;font-size:15px;font-variant-numeric:tabular-nums}.sales-example small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}.example-edit{display:block;color:var(--teal);font-size:10px;margin-top:5px}.derived-performance{font-variant-numeric:tabular-nums;line-height:1.6}.compact-ranks dd small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}
.quick-product-name h3{font-size:15px;line-height:1.65;margin:5px 0 0;overflow-wrap:anywhere}
.quick-amount label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}
.quick-input-wrap{display:flex;align-items:center;gap:10px;border:1px solid #bccacb;border-radius:7px;padding:0 12px;background:#fafbf8}
.quick-input-wrap:focus-within{outline:2px solid var(--gold-deep);outline-offset:2px}
.quick-input-wrap input{width:100%;min-width:0;padding:10px 0;border:0;background:none;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;outline:0;appearance:textfield;-moz-appearance:textfield}
.quick-input-wrap input::-webkit-inner-spin-button,.quick-input-wrap input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.quick-input-wrap input::placeholder{font-size:14px;font-weight:400}
.quick-input-wrap>span{flex-shrink:0;font-size:12px;color:var(--muted)}
.quick-amount>small{display:block;margin-top:6px;font-size:10px;color:var(--gold-deep)}
.quick-advanced{min-height:40px;white-space:nowrap}
.quick-settings{border-top:0}
.quick-settings>summary{display:none}
.quick-settings[open]{border-top:1px solid var(--line)}
.quick-rank-heading{padding:18px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.quick-save-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px}
.quick-save-bar>label{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}
.quick-save-bar select{border:1px solid var(--line);border-radius:7px;padding:10px 32px 10px 12px;background:#fff;font-size:13px}
.quick-save-actions{display:flex;align-items:center;gap:12px}
#quick-save-status{font-size:12px;color:var(--gold-deep)}
#quick-reset[hidden]{display:none}
@media(max-width:1000px){.quick-product-row{grid-template-columns:minmax(180px,1fr) 170px 95px;gap:16px;padding:18px}.quick-product-name{grid-column:1/-1}.quick-product-name h3{font-size:14px}}
@media(max-width:700px){.annual-performance-total{align-items:flex-start;flex-direction:column;padding:18px}.annual-total-amount{text-align:left}.annual-total-amount strong{font-size:24px}.compact-product-toolbar{align-items:flex-start;gap:12px}.compact-product-toolbar>#quick-customers-help{font-size:11px;max-width:190px}.quick-product-row{grid-template-columns:minmax(0,1fr) 100px;gap:16px;padding:18px 16px}.quick-product-name{grid-column:1/-1}.sales-example{grid-column:1/-1}.quick-amount{max-width:210px}.quick-advanced{align-self:end;margin-bottom:4px}.quick-save-bar{flex-wrap:wrap;gap:16px}.quick-save-bar>label{width:100%;justify-content:space-between}.quick-save-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.quick-save-bar select{font-size:16px}.quick-rank-heading{padding:16px;flex-wrap:wrap}.quick-input-wrap input{font-size:22px}}

/* Separate organization planning and product calculations, sharing one scenario. */
.page-switcher{display:flex;width:fit-content;max-width:100%;gap:4px;padding:4px;background:#e7ece7;border:1px solid #d7dfd9;border-radius:10px;margin:0 0 24px}.page-switcher a{display:block;padding:11px 24px;border-radius:7px;color:var(--muted);font-size:13px;font-weight:600;text-decoration:none;transition:background .18s,color .18s}.page-switcher a:hover{background:#f5f6f3;color:var(--navy)}.page-switcher a[aria-current=page]{background:var(--navy);color:#fff;box-shadow:0 2px 6px #182c3c12}.page-switcher a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}#page-title:focus{outline:none}#calculation-view{margin-top:0}#year-panel{margin-bottom:20px}
@media(max-width:700px){.page-switcher{width:100%;margin-bottom:22px}.page-switcher a{flex:1;text-align:center;padding:12px 10px}.year-heading{gap:12px}#calculation-view{padding:20px 14px}}

/* Inputs and calculated results are presented on separate pages. */
#performance-view{margin-top:0}a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}a.text-button{text-decoration:none}.calculation-products .performance-table tbody th{white-space:normal;min-width:190px;overflow-wrap:anywhere}.calculation-products .performance-table th small{display:block;margin:6px 0 0}.result-product-name{font-size:13px;line-height:1.8;margin:0;padding:18px 22px;border-top:1px solid var(--line);background:#fafbf8;overflow-wrap:anywhere}#calculation-content>.performance-summary{margin-top:20px}
@media(max-width:700px){.page-switcher a{padding-inline:7px;font-size:12px}#performance-view{padding:20px 14px}.result-product-name{padding:14px 16px}.calculation-products .rank-table-heading{flex-wrap:wrap}}

/* Income only: keep calculations and source material out of the result flow. */
body[data-page="calculation"] #page-eyebrow,body[data-page="calculation"] #page-tag,body[data-page="calculation"] .year-heading,body[data-page="calculation"] footer>span:first-child{display:none}
body[data-page="calculation"] .workspace-heading{margin-bottom:22px}
#calculation-view{padding:24px 28px}
#calculation-view .performance-heading{justify-content:space-between}
#calculation-view .performance-heading h2{font-size:18px;margin:0}
#calculation-view #calculation-period{border:0;background:transparent;color:var(--muted);padding:0}
.income-filters{display:flex;gap:24px;margin:20px 0;align-items:center}
.income-filters label{display:flex;align-items:center;gap:12px;min-width:0;font-size:12px;color:var(--muted)}
.income-filters select{max-width:340px;min-width:170px;font-size:13px;color:var(--ink);background:#fff;padding:9px 30px 9px 12px;border:1px solid var(--line);border-radius:6px;min-height:40px}
.income-totals{display:grid;grid-template-columns:1.3fr 1fr 1fr;background:#f4f6f1;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:20px;font-variant-numeric:tabular-nums}
.income-totals>div{padding:24px 28px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.income-totals>div+div{border-left:1px solid var(--line)}
.income-totals span{font-size:12px;color:var(--muted)}
.income-totals strong{font-size:30px;font-weight:600;letter-spacing:-.5px;line-height:1.1}
.income-totals .income-grand{background:var(--navy);color:#fff}
.income-grand>span{color:#d1dace}
.income-grand strong{font-size:38px;color:#f5deb0}
.income-table-wrap{width:100%;overflow-x:auto}
.income-table{width:100%;border-collapse:collapse;text-align:right;table-layout:fixed;font-variant-numeric:tabular-nums;font-size:14px}
.income-table th,.income-table td{padding:12px 18px;border-bottom:1px solid #edf0eb}
.income-table th:first-child{text-align:left;width:31%}
.income-table thead th{font-size:12px;color:var(--muted);font-weight:500;background:#f7f8f5}
.income-table tbody th{font-weight:400}
.income-table td:last-child{font-weight:600;color:var(--navy)}
.income-table tfoot th,.income-table tfoot td{border-bottom:0;border-top:1px solid #cbd5cd;font-weight:600;background:#f7f8f5}
.income-na{color:#a1ada7}.income-unknown{font-size:12px;color:var(--gold-deep);font-weight:500}
.income-grand .income-unknown{font-size:24px;color:#f5deb0}
.income-years{margin-top:16px;border-top:1px solid var(--line)}
.income-years summary{padding:16px 0;font-size:13px;cursor:pointer;color:var(--ink)}
.income-current-year{background:#f6f1e5}
.income-assumption,.income-notice{margin:14px 0 0;font-size:11px;line-height:1.7;color:var(--muted)}
.income-notice{color:var(--gold-deep)}
.income-empty{padding:48px 0;text-align:center;font-size:14px;color:var(--muted)}
.income-empty a{display:block;margin-top:14px}
@media(max-width:900px){.income-totals>div{padding:22px}.income-totals strong{font-size:26px}.income-grand strong{font-size:32px}.income-filters{gap:16px}.income-filters select{max-width:270px}}
@media(max-width:700px){#calculation-view{padding:20px 14px}.income-filters{gap:12px;align-items:stretch}.income-filters label{flex:1;flex-direction:column;align-items:stretch;gap:6px}.income-filters select{width:100%;min-width:0;max-width:none;font-size:16px;padding:9px 22px 9px 8px}.income-totals{grid-template-columns:1fr 1fr;margin-bottom:16px}.income-totals>div{padding:18px 14px;gap:9px}.income-totals .income-grand{grid-column:1/-1}.income-totals>div:nth-child(2){border-left:0}.income-totals strong{font-size:24px}.income-grand strong{font-size:34px}.income-table{font-size:12px;table-layout:auto}.income-table th,.income-table td{padding:12px 7px;white-space:nowrap}.income-table th:first-child{width:auto}.income-table thead th{font-size:11px}.income-assumption{font-size:10px}}

/* Navigation back to the owning card group. */
.return-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}
.return-link:hover{background:#eff2ee}.return-link:focus-visible{outline:3px solid var(--gold-deep);outline-offset:3px}
@media(max-width:480px){.topbar{gap:10px}.return-link{padding:8px;font-size:11px}}
