:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#233448;background:var(--legacy-soft,#f3f6fa);font-size:15px;--blue:#087ac3;--cyan:#00cde0;--line:#dce5ee;--muted:#61758a}
*{box-sizing:border-box}body{margin:0}a{color:#0873b4;text-underline-offset:3px}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:9px;background:#087ac3;color:#fff;padding:11px 18px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{background:#05629e}button.secondary{background:var(--legacy-soft,#edf3f9);color:#26435b}input:not([type=checkbox]):not([type=radio]),select,textarea{padding:10px 12px;border:1px solid #b7c8d8;border-radius:8px;background:var(--legacy-panel,white);max-width:100%;color:#233448}textarea{width:100%;min-height:90px}input[type=checkbox]{accent-color:var(--blue)}:focus-visible{outline:3px solid #008aab;outline-offset:3px}label{font-weight:600}form p label{display:block;margin-bottom:7px}form p{margin:0 0 16px}form{margin:16px 0}form button{margin-top:4px}form input,form select{margin:4px 0}h1{font-size:2rem;letter-spacing:-.7px;color:#172d42;margin:12px 0 22px}h2{font-size:1.25rem;color:#173d5a;margin:34px 0 16px;padding-top:5px;scroll-margin-top:90px}h3{font-size:1.05rem;margin-top:24px}p{line-height:1.65}small,.muted{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#111f30;color:#b7cadd;display:flex;flex-direction:column;padding:26px 18px;overflow:auto}.brand img{width:100%;border-radius:9px}.nav-label{font-size:.68rem;letter-spacing:1.8px;color:#8197ac;margin:30px 14px 10px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:13px;color:#bdcfe0;text-decoration:none;padding:12px 14px;border-radius:9px;font-size:.93rem}.sidebar nav a:hover{background:#20384e;color:white}.sidebar nav a[aria-current]{background:#123f59;color:#7deaf3;box-shadow:inset 3px 0 var(--cyan)}.nav-number{font-size:.75rem;opacity:.65;min-width:19px}.sidebar-footer{margin-top:auto;padding:30px 12px 0;font-size:.76rem;line-height:1.7;color:#8da5b9}.sidebar-footer img{width:155px;display:block;margin-top:18px;border-radius:7px}.app-area{margin-left:248px;min-width:0}.app-header{min-height:76px;background:var(--legacy-panel,white);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:14px 36px;gap:16px}.eyebrow{font-weight:800;color:#087ac3;letter-spacing:2px;font-size:.86rem}.header-caption{color:var(--muted);font-size:.83rem;margin-left:18px}.account{display:flex;align-items:center;gap:18px;font-size:.85rem}.account form{margin:0}.content{max-width:1520px;margin:auto;padding:30px 36px 64px}.content>nav{display:flex;gap:12px;flex-wrap:wrap;font-size:.86rem;margin-bottom:22px}.content>nav a{padding:6px 0}table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:11px;background:var(--legacy-panel,#fff);font-size:.87rem;margin:16px 0}th,td{text-align:left;vertical-align:top;padding:13px 15px;border-bottom:1px solid #e8eef4;line-height:1.5}th{font-size:.76rem;color:#526a80;background:var(--legacy-soft,#edf3f8);font-weight:700}tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--legacy-soft,#f6fafc)}.table-scroll,.scroll{overflow:auto;max-width:100%;margin-bottom:20px}.table-scroll table{min-width:650px}.panel,.card,.module-card{background:var(--legacy-panel,#fff);border:1px solid var(--line);border-radius:13px;box-shadow:0 3px 14px #193c5b05}.panel{padding:22px;margin-bottom:22px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;margin:20px 0 28px}.card{padding:20px}.card .label{font-size:.82rem;color:var(--muted)}.card .value{font-size:2rem;font-weight:750;color:#154a70;margin:10px 0}.card a{font-size:.82rem}.kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.chart{background:var(--legacy-panel,white);border:1px solid var(--line);border-radius:12px;padding:18px;overflow:auto}.chart svg{width:100%;min-width:720px;height:auto}.series-a,.series-b,.series-c,.series-d{fill:none;stroke-width:3}.series-a{stroke:#087ac3}.series-b{stroke:#00a2ab}.series-c{stroke:#7256b2}.series-d{stroke:#b88119}.axis{stroke:#d1dce7}.chart-label{font-size:11px;fill:#61758a}.legend{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0;font-size:.82rem}.legend i{display:inline-block;width:18px;border-top:3px solid;margin-right:6px}.legend .a{border-color:#087ac3}.legend .b{border-color:#00a2ab}.legend .c{border-color:#7256b2}.legend .d{border-color:#b88119}.filters form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.filter-field{display:flex;flex-direction:column;gap:5px}.filters label{font-size:.82rem}.scope{padding:12px 16px;border-left:3px solid #009bbb;background:var(--legacy-soft,#eaf6fa);border-radius:6px;color:#3b6077;font-size:.86rem}.badge{padding:4px 9px;border-radius:20px;background:var(--legacy-soft,#eaf2f8);font-size:.76rem}.filter-errors,.errorlist,[role=alert]{color:#a32727;background:var(--legacy-soft,#fff1f0);padding:12px 16px;border-radius:8px}.filter-errors{flex-basis:100%}[aria-invalid=true]{border-color:#be3333!important}.empty{padding:24px;color:var(--muted)}dl{display:grid;grid-template-columns:minmax(150px,230px) 1fr;background:var(--legacy-panel,white);border:1px solid var(--line);border-radius:11px;padding:18px 22px;gap:12px 24px}dt{color:#65798c;font-size:.88rem}dd{margin:0;overflow-wrap:anywhere}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.module-card{padding:25px;text-decoration:none;display:block;color:#223c53;transition:transform .15s,border-color .15s}.module-card:hover{transform:translateY(-3px);border-color:#69c8e6}.module-card h2{margin:15px 0 9px;padding:0}.module-card p{margin:0;color:var(--muted);font-size:.9rem}.module-card .module-icon{font-weight:750;color:#0889ba;font-size:.85rem}.module-card .module-link{display:block;color:#087ac3;margin-top:22px;font-size:.85rem;font-weight:600}.welcome{background:linear-gradient(115deg,#15364f,#0f526b);border-radius:16px;color:white;padding:30px;margin-bottom:28px}.welcome h1{color:white;margin:0 0 10px}.welcome p{color:#cae5ee;margin:0;max-width:750px}.section-nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.section-nav a{background:var(--legacy-panel,white);border:1px solid var(--line);border-radius:8px;padding:8px 12px;text-decoration:none;font-size:.8rem}.skip-link{position:fixed;top:-100px;left:12px;z-index:10;background:var(--legacy-panel,white);padding:12px}.skip-link:focus{top:12px}.access .app-area{margin:0}.access .content{max-width:620px;background:var(--legacy-panel,white);margin:45px auto 20px;border:1px solid var(--line);border-radius:16px;padding:32px 42px}.access-brand img{width:100%;border-radius:10px}.access .content>form label{display:block;margin-bottom:16px}.access .content>form label input{display:block;width:100%}.access .content>form button{width:100%}.access-footer{text-align:center;margin:24px}.access-footer img{width:160px;border-radius:7px}.pagination{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:.86rem}
@media(max-width:1050px){.sidebar{width:210px;padding:20px 12px}.app-area{margin-left:210px}.content{padding:24px}.app-header{padding:14px 24px}.kpi-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{position:static;width:100%;padding:14px}.brand img{width:160px}.nav-label,.sidebar-footer{display:none}.sidebar nav{display:flex;overflow:auto;margin-top:12px}.sidebar nav a{white-space:nowrap;padding:10px}.nav-number{display:none}.app-area{margin:0}.app-header{padding:12px 16px;flex-wrap:wrap}.header-caption{display:none}.content{padding:20px 16px}.account{gap:10px}.access .content{margin:20px 12px;padding:24px}.cards{grid-template-columns:1fr 1fr}.section-title{display:block}dl{grid-template-columns:1fr;gap:5px}dd{margin-bottom:12px}.welcome{padding:24px}h1{font-size:1.65rem}}
@media(prefers-reduced-motion:reduce){.module-card{transition:none}}
.copy-data{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--legacy-soft,#f3f6fa);padding:16px;border-radius:8px}.table-scroll td details{margin-top:8px}.table-scroll td form{min-width:220px}.table-scroll td label{display:block;margin:8px 0}.table-scroll td input,.table-scroll td select{width:100%}.table-scroll td small{display:inline-block;max-width:280px}.welcome .button{margin-top:18px}
.content>form,.content>section>form:not(.filters form){background:var(--legacy-panel,white);border:1px solid var(--line);border-radius:12px;padding:22px;max-width:850px}.content>form label{display:block;margin-bottom:12px}.content>form label input{display:block}details summary{cursor:pointer;font-weight:650;color:#174767;padding:5px}.content [role=alert]{margin:14px 0}.access .content>form{padding:0;border:0}.section-nav{position:sticky;top:0;background:#f3f6faf2;padding:12px 0;z-index:1}
.week-cards .card{padding:16px 20px}.week-cards .card p{font-size:.84rem;margin:12px 0 0}.week-cards .value small{font-size:1rem}.selected-week{border-color:#089aba;box-shadow:inset 0 3px #00bfd0}.capacity-warning{color:#a32727;font-size:.8rem}.filters form{margin:0}.production-table th:nth-child(1){min-width:125px}
/* Dados: grid with fixed column geometry and controls contained in each cell. */
.data-actions{display:flex;gap:10px;flex-wrap:wrap}.data-actions .secondary{background:var(--legacy-panel,white);color:#24638b;border:1px solid #d4dfe8}.data-actions a{white-space:nowrap;font-size:13px}
.data-filter{padding:12px 16px;margin:16px 0 0;border:1px solid #dce5ee;border-bottom:0;border-radius:12px 12px 0 0;box-shadow:none;background:var(--legacy-panel,white)}.data-filter form{display:flex;align-items:center;gap:10px;margin:0;padding:0!important;border:0!important}.data-filter label{font-size:12px;color:#60758a}.data-filter input[type=search]{width:340px;min-width:0;font-size:13px;padding:8px 12px}.data-filter button{font-size:13px;padding:9px 16px;margin:0}
.data-sheet{max-height:62vh;border:1px solid #dce5ee;background:var(--legacy-panel,white);scroll-margin-top:20px;scrollbar-color:#b6c7d5 #f3f6fa;scrollbar-width:thin}.data-sheet table{width:1595px;min-width:1595px;max-width:none;table-layout:fixed;border-collapse:separate;border-spacing:0;border:0;border-radius:0;margin:0;font:13px "Segoe UI",Arial,sans-serif}
.data-sheet th,.data-sheet td{box-sizing:border-box;border-right:1px solid #edf1f5;border-bottom:1px solid #e8eef4;padding:10px 12px;vertical-align:middle;line-height:1.4;overflow-wrap:anywhere;white-space:normal;font-family:"Segoe UI",Arial,sans-serif}
.data-sheet th{position:sticky;top:0;z-index:3;background:var(--legacy-soft,#f5f8fc);color:#536b80;text-transform:none;font-weight:600;font-size:12px;text-align:left;height:52px}
.data-sheet th:first-child,.data-sheet td:first-child{position:sticky;left:0;width:80px;min-width:80px;z-index:1;text-align:center}.data-sheet th:nth-child(2),.data-sheet td:nth-child(2){position:sticky;left:80px;width:170px;min-width:170px;z-index:1;box-shadow:2px 0 0 #dce5ee}.data-sheet th:first-child,.data-sheet th:nth-child(2){z-index:4;background:var(--legacy-soft,#eef4fa)}
.data-sheet th:nth-child(3),.data-sheet th:nth-child(4),.data-sheet th:nth-child(5){width:135px}.data-sheet th:nth-child(6){width:100px}.data-sheet th:nth-child(7),.data-sheet th:nth-child(8){width:240px}.data-sheet th:nth-child(9),.data-sheet th:nth-child(10){width:180px}
.data-sheet td{background:var(--legacy-panel,white);height:46px;color:#334b60}.data-sheet tbody:not(.data-entry) tr:nth-child(even) td{background:var(--legacy-panel,#fafcfe)}.data-sheet tbody:not(.data-entry) tr:hover td{background:var(--legacy-soft,#edf6ff)}.data-sheet td strong{color:#176aab;font-weight:600;font-variant-numeric:tabular-nums}.data-origin{display:inline-block;color:#71879a;font-size:10px;margin-top:3px}
.data-sheet td:nth-child(3),.data-sheet td:nth-child(4),.data-sheet td:nth-child(5){font-variant-numeric:tabular-nums;font-size:12px}.data-sheet .data-entry td{background:var(--legacy-soft,#f0f7ff);padding:6px;overflow:hidden}.data-sheet .data-entry td:focus-within{background:var(--legacy-soft,#e1f0ff);box-shadow:inset 0 0 0 2px #1689ce}
.data-sheet .data-entry input:not([type=checkbox]):not([type=radio]){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:36px;margin:0;padding:7px 4px;border:1px solid #d2deea;border-radius:5px;background:var(--legacy-panel,white);font:12px "Segoe UI",Arial,sans-serif;color:#243c51;outline-offset:-2px}.data-sheet .errorlist{font-size:11px;padding:4px;margin:0;white-space:normal}.data-form-link{display:none}.data-sheet #new-data-row{scroll-margin-top:55px}
.data-save-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--legacy-panel,white);border:1px solid #dce5ee;border-top:0;border-radius:0 0 12px 12px;font-size:12px;color:#728699}.data-save-bar button{flex-shrink:0;font-size:13px;padding:10px 16px}.data-save-bar strong{color:#2776ac}
.data-import{display:none;scroll-margin-top:20px}.data-import:target,.data-import.has-errors{display:block}.data-import h2{margin:0 0 10px}.data-import form{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:12px 0 0;padding:0!important;border:0!important}.data-import p{font-size:13px}.data-import .errorlist{flex-basis:100%}.data-history{margin:12px 0;font-size:13px}
@media(max-width:700px){.data-actions{margin:12px 0}.data-filter form{flex-wrap:wrap}.data-filter input[type=search]{width:100%}.data-save-bar{flex-wrap:wrap}.data-sheet{max-height:60vh}}
/* Only the header stays fixed vertically. Every column scrolls horizontally together. */
.data-sheet td:first-child,.data-sheet td:nth-child(2){position:static;left:auto;z-index:auto;box-shadow:none}
.data-sheet th:first-child,.data-sheet th:nth-child(2){left:auto;z-index:3;box-shadow:none;background:var(--legacy-soft,#f5f8fc)}
.data-sheet-title{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#326792;color:white;padding:11px 14px;font-size:13px}
.data-sheet-title span{font-size:12px;color:#deebf7}
.data-sheet th,.data-sheet th:first-child,.data-sheet th:nth-child(2){background:#6496c0;color:white;font-size:12px;border-right-color:#8ab1d1;border-bottom-color:#326792;height:48px}
.data-sheet td{padding:8px 12px;height:40px;border-right-color:#e9edf1;border-bottom-color:#e9edf1}
.data-sheet td:nth-child(3),.data-sheet td:nth-child(4),.data-sheet td:nth-child(5){background:var(--legacy-soft,#f5f7f9)}
.data-sheet tbody:not(.data-entry) tr:nth-child(even) td{background:var(--legacy-panel,#fbfcfd)}
.data-sheet tbody:not(.data-entry) tr:nth-child(even) td:nth-child(3),.data-sheet tbody:not(.data-entry) tr:nth-child(even) td:nth-child(4),.data-sheet tbody:not(.data-entry) tr:nth-child(even) td:nth-child(5){background:var(--legacy-soft,#f0f3f6)}
.data-sheet .data-entry td{background:var(--legacy-soft,#edf4fa)}
.content.data-workspace{max-width:none;width:100%;padding:24px 24px 48px}
.data-workspace .section-title{margin-bottom:12px}.data-workspace h1{margin:0 0 8px}.data-workspace .section-title p{margin:0}
.data-workspace .data-filter{background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 0 16px;margin:0}
.data-workspace .data-filter form{align-items:flex-end}
.data-workspace .data-filter label{display:flex;flex-direction:column;gap:6px;margin:0}
.data-workspace .data-filter label br{display:none}
.data-workspace .data-filter input[type=search]{height:40px;margin:0}
.data-workspace .data-filter button{height:40px;margin:0}
.data-workspace .data-sheet-title{background:transparent;color:#284d6b;padding:12px 0;border:0}.data-workspace .data-sheet-title span{color:#71869a}
.data-workspace .data-sheet{border:0;background:transparent;margin-bottom:0;outline-offset:2px}
.data-workspace .data-sheet table{width:100%;min-width:1595px;background:transparent}
.data-workspace .data-sheet th:last-child,.data-workspace .data-sheet td:last-child{border-right:0}
.data-workspace .data-save-bar{background:transparent;border:0;border-radius:0;padding:16px 0;box-shadow:none}
.data-workspace .pagination{margin-top:0}
@media(max-width:700px){.content.data-workspace{padding:20px 16px 40px}}
.data-workspace .data-import{background:transparent;border:0;border-radius:0;box-shadow:none;padding:16px 0 20px;margin:12px 0;outline:0}
.data-workspace .data-import form{background:transparent;max-width:none;border-radius:0}
.import-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.import-kicker{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#6c8aa1}.data-import .import-heading h2{margin:4px 0 0;padding:0;font-size:20px}.import-close{font-size:12px;text-decoration:none;color:#647e92;padding:8px}
.data-import form .import-file-area{flex:1 1 420px;min-width:0;padding:18px 20px;background:var(--legacy-soft,#eaf2f9);border-radius:10px}.import-file-area label{display:block;font-size:14px;color:#244a69}.import-file-hint{display:block;font-size:12px;color:#6a8499;margin:5px 0 12px}
.data-import .import-file-area input[type=file]{display:block;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;font-size:13px;color:#47677f;cursor:pointer}.import-file-area input[type=file]::file-selector-button{padding:10px 16px;margin-right:14px;border:1px solid #bed3e4;border-radius:7px;background:var(--legacy-panel,white);color:#21638f;font:600 13px "Segoe UI",sans-serif;cursor:pointer}.import-file-area input[type=file]::file-selector-button:hover{background:var(--legacy-soft,#f5faff)}
.import-submit-area{flex:0 1 310px;min-width:0;padding:0 8px}.data-import .import-submit-area p{font-size:12px;line-height:1.7;margin:0 0 10px;color:#6a8296}.import-submit-area strong{color:#375a75}.import-submit-area button{font-size:13px;margin:0}
@media(max-width:700px){.data-import form .import-file-area{flex-basis:100%}.import-submit-area{padding:0}}
.data-workspace .data-import form{background:var(--legacy-soft,#eaf2f9);border-radius:10px;padding:18px 20px!important;gap:20px;align-items:center}
.data-import form .import-file-area{background:transparent;border-radius:0;padding:0;flex:1 1 380px}
.import-step,.import-step-title .import-step{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;margin-right:5px;border-radius:50%;background:var(--legacy-soft,#d2e5f4);color:#245f8c;font-size:12px;font-weight:700;vertical-align:middle}
.import-step-title{display:block;font-size:14px;color:#244a69}.import-flow-arrow{font-size:24px;color:#769dbb}
.import-submit-area{flex:0 1 310px;padding:0}.data-import .import-submit-area p{margin:8px 0 10px}
.data-import form .import-outcome{flex-basis:100%;margin:0;padding-top:12px;border-top:1px solid #d3e2ee;font-size:12px;color:#5e7c92}
@media(max-width:700px){.import-flow-arrow{display:none}.import-submit-area{flex-basis:100%}.data-workspace .data-import form{padding:16px!important}}
/* Compact import toolbar, aligned with the schedule rather than a separate card. */
.content.data-workspace #import-data{padding:12px 0 16px;margin:8px 0 12px}
.content.data-workspace #import-data .import-heading{margin-bottom:12px}
.content.data-workspace #import-data .import-heading h2{font-size:14px;font-weight:600;color:#375a75;margin:0}
.content.data-workspace #import-data>form{display:grid;grid-template-columns:minmax(280px,1fr) 24px minmax(240px,310px);gap:12px 20px;width:100%;max-width:none;background:transparent;border:0!important;border-radius:0;box-shadow:none;padding:0!important;margin:0}
.content.data-workspace #import-data .import-file-area{display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;gap:8px 16px;padding:0;background:transparent}
.content.data-workspace #import-data .import-file-area label{font-size:12px;font-weight:600;white-space:nowrap}
.content.data-workspace #import-data .import-file-hint{grid-column:2;grid-row:2;margin:0;font-size:11px}
.content.data-workspace #import-data input[type=file]{grid-column:2;grid-row:1}
.content.data-workspace #import-data .import-step{width:19px;height:19px;font-size:10px;background:var(--legacy-soft,#e1eaf2);color:#557a97}
.content.data-workspace #import-data .import-submit-area{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.content.data-workspace #import-data .import-step-title{font-size:12px;font-weight:600;white-space:nowrap}
.content.data-workspace #import-data .import-submit-area p{display:none}
.content.data-workspace #import-data .import-submit-area button{font-size:12px;padding:9px 13px;white-space:nowrap}
.content.data-workspace #import-data .import-flow-arrow{font-size:18px;color:#a2b5c6}
.content.data-workspace #import-data .import-outcome{grid-column:1/-1;border:0;padding:0;margin:0;font-size:11px;color:#7a8fa1}
.content.data-workspace #import-data .errorlist{grid-column:1/-1}
@media(max-width:1050px){.content.data-workspace #import-data>form{grid-template-columns:1fr auto}.content.data-workspace #import-data .import-flow-arrow{display:none}.content.data-workspace #import-data .import-file-area{display:block}.content.data-workspace #import-data .import-file-area label{margin-bottom:8px}.content.data-workspace #import-data .import-file-hint{margin:6px 0}.content.data-workspace #import-data .import-step-title{display:none}}
@media(max-width:700px){.content.data-workspace #import-data>form{grid-template-columns:1fr}.content.data-workspace #import-data .import-submit-area{justify-content:flex-start}}
.content.data-workspace #import-data{max-width:900px;padding:14px 18px 16px;margin:18px 0 20px;background:var(--legacy-soft,#edf3f8);border-radius:9px}
.content.data-workspace #import-data>form{grid-template-columns:minmax(280px,1fr) 16px auto;gap:10px 16px}
.content.data-workspace #import-data .import-file-area{display:block}
.content.data-workspace #import-data .import-file-area label{margin-bottom:8px}
.content.data-workspace #import-data .import-file-hint{margin:6px 0 0}
.content.data-workspace #import-data .import-submit-area{display:block;align-self:start}
.content.data-workspace #import-data .import-step-title{display:block;margin-bottom:8px}
.content.data-workspace #import-data .import-flow-arrow{align-self:center}
.content.data-workspace #import-data .import-outcome{max-width:760px;line-height:1.6;margin-top:2px}
@media(max-width:700px){.content.data-workspace #import-data{padding:14px}.content.data-workspace #import-data>form{grid-template-columns:1fr}.content.data-workspace #import-data .import-flow-arrow{display:none}}
.import-modal{width:480px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e4ecf3;border-radius:18px;padding:28px;background:var(--legacy-panel,#fff);color:#244158;box-shadow:0 24px 80px #122c4940}
.import-modal::backdrop{background:#152b4659;backdrop-filter:blur(3px)}
.modal-heading{display:flex;align-items:center;justify-content:space-between}.modal-upload-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--legacy-soft,#e9f4fc);color:#1683bd;font-size:28px}
.modal-close{display:grid;place-items:center;width:32px;height:32px;font-size:25px;text-decoration:none;color:#8397a8;border-radius:8px}.modal-close:hover{background:var(--legacy-soft,#f1f5f9)}
.import-modal h2{margin:20px 0 8px;padding:0;font-size:22px;letter-spacing:-.4px}.modal-intro{font-size:13px;color:#7890a3;line-height:1.6;margin:0 0 22px}.import-modal form{margin:0}
.modal-file{padding:16px;background:var(--legacy-soft,#f4f8fc);border:1px solid #e5eef5;border-radius:11px}.modal-file label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:12px}.modal-file label span{color:#8da3b5;font-weight:400}
.import-modal input[type=file]{display:block;width:100%;min-width:0;border:0!important;background:transparent!important;padding:0!important;margin:0;font-size:12px;color:#637f94;border-radius:0!important}.import-modal input[type=file]::file-selector-button{background:var(--legacy-panel,white);color:#28759e;border:1px solid #cddde9;border-radius:7px;padding:9px 12px;margin-right:10px;font:600 12px "Segoe UI",sans-serif;cursor:pointer}
.modal-note{font-size:12px;line-height:1.6;color:#7890a3;margin:14px 0 24px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px}.modal-actions a{font-size:13px;color:#6e869a;text-decoration:none}.modal-actions button{font-size:13px;padding:11px 17px;margin:0;border-radius:8px}.modal-actions button span{margin-left:12px}.import-modal .errorlist{font-size:12px;color:#a22c37;padding-left:18px}
.import-modal .modal-heading{justify-content:flex-end;height:20px}.import-modal h2{margin-top:8px}
.data-row-tools{display:flex;align-items:center;gap:16px;font-size:12px;margin:8px 0;color:#728a9e}.data-row-tools a{cursor:pointer}.data-row-tools a[aria-disabled]{opacity:.4;pointer-events:none}.data-row-tools button{font-size:12px;padding:7px 12px}.data-row-tools button:disabled{opacity:.35;cursor:default}.data-sheet tr.selected-data-row td{background:var(--legacy-soft,#dfedfa)!important}.data-sheet .choose-data-row{width:auto!important;margin:0 7px 0 0;vertical-align:middle}.data-edit-modal{width:640px}.edit-row-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.edit-row-fields input{width:100%;font-size:13px}.edit-row-fields label{font-size:12px}.edit-row-fields .helptext{font-size:11px;color:#7890a3}.edit-row-fields .errorlist{grid-column:1/-1}.data-sheet .restore-row{min-width:0;padding:0;margin:6px 0;border:0;background:transparent}.restore-row button{padding:5px 8px;font-size:11px}@media(max-width:700px){.edit-row-fields{grid-template-columns:1fr}.data-row-tools{flex-wrap:wrap}}
.data-workspace .data-sheet table{border-spacing:4px 7px;background:transparent}
.data-workspace .data-sheet th{border-radius:5px;border:0}
.data-workspace .data-sheet tbody:not(.data-entry) td{border:1px solid #d8e2eb;border-radius:5px;background:var(--legacy-soft,#f8fafc)}
.data-workspace .data-sheet tbody:not(.data-entry) tr:nth-child(even) td{background:var(--legacy-soft,#f8fafc)}
.data-workspace .data-sheet tbody:not(.data-entry) tr:hover td{background:var(--legacy-soft,#edf4fa);border-color:#b7cee0}
.data-workspace .data-sheet tr.selected-data-row td{background:var(--legacy-soft,#e0eef9)!important;border-color:#81b3d7!important}
.selectable-data-row{cursor:pointer;outline-offset:2px}
.data-workspace .data-sheet .data-entry td{background:transparent;border:0;padding:0}
.data-workspace .data-sheet table{border-spacing:0;background:transparent}
.data-workspace .data-sheet th{border-radius:0;border:0}
.data-workspace .data-sheet tbody:not(.data-entry) td,.data-workspace .data-sheet tbody:not(.data-entry) tr:nth-child(even) td{background:transparent;border:0;border-bottom:1px solid #d4dfe9;border-radius:0;padding:13px 12px}
.data-workspace .data-sheet tbody:not(.data-entry) tr:hover td{background:var(--legacy-soft,#edf2f7);border:0;border-bottom:1px solid #c6d7e5}
.data-workspace .data-sheet tr.selected-data-row td{background:var(--legacy-soft,#e5eef6)!important;border:0!important;border-bottom:1px solid #89b0cd!important}
.data-workspace .data-sheet .data-entry td{background:transparent;padding:7px 6px;border:0;border-bottom:1px solid #d4dfe9;border-radius:0}
.data-workspace .data-sheet .data-entry input:not([type=checkbox]):not([type=radio]){background:transparent;border:0;border-radius:0;box-shadow:none}
.data-workspace .data-sheet .data-entry td:focus-within{background:var(--legacy-soft,#edf3f8);box-shadow:inset 0 -2px #1689ce}
.data-workspace .data-sheet table{border-spacing:6px 0}
.data-workspace .data-sheet tbody:not(.data-entry) td,.data-workspace .data-sheet tbody:not(.data-entry) tr:nth-child(even) td,.data-workspace .data-sheet .data-entry td{border-bottom-color:#aebfce}
.content.data-workspace #import-result{background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 0 16px;margin:12px 0}
.content.data-workspace #import-result .section-title{margin:0 0 10px;align-items:center}
.content.data-workspace #import-result h2{font-size:14px;margin:0;padding:0;overflow-wrap:anywhere}
.content.data-workspace #import-result .section-title>a{font-size:12px;padding:7px 10px;white-space:nowrap;text-decoration:none;background:var(--legacy-soft,#e7eef5);border-radius:6px}
.content.data-workspace #import-result p{font-size:13px;color:#657f94;margin:8px 0;line-height:1.6}
.content.data-workspace #import-result>form{background:transparent;border:0;border-radius:0;padding:0;max-width:none;margin:10px 0}
.content.data-workspace #import-result button{font-size:12px;padding:9px 13px}
.content.data-workspace #import-result table{border:0;border-radius:0;background:transparent;margin:8px 0}
.content.data-workspace #import-result th{background:var(--legacy-soft,#e7eef5);color:#385c78}
.content.data-workspace #import-result td{border-bottom:1px solid #aebfce;background:transparent;font-size:12px}
.content.data-workspace .scope{background:transparent;border:0;padding:4px 0;font-size:12px;color:#607f96}
.import-corrections input:not([type=checkbox]),.import-corrections select{background:transparent;border:0;border-bottom:1px solid #aebfce;border-radius:0;padding:8px;font-size:12px;max-width:260px}.import-corrections label{display:block;font-size:12px;margin:6px 0}.import-corrections input[type=checkbox]{width:auto}.import-corrections td{vertical-align:top}
.import-result-launch{display:flex;gap:16px;align-items:center;margin:14px 0 22px;font-size:12px;color:#6e869a}.import-result-launch a{color:#28759e;text-decoration:none}.import-analysis-modal{width:1000px;background:var(--legacy-soft,#f3f6fa);padding:0 26px 26px}.import-analysis-modal .analysis-heading{position:sticky;top:0;z-index:3;background:var(--legacy-soft,#f3f6fa);display:flex;align-items:center;justify-content:space-between;padding:22px 0 14px}.import-analysis-modal .analysis-heading h2{margin:0;font-size:20px}.import-analysis-modal .analysis-heading .modal-close{position:static}.content.data-workspace .import-analysis-modal #import-result{margin:0;padding:0}.import-analysis-modal #import-result .section-title{position:sticky;top:62px;z-index:2;background:var(--legacy-soft,#f3f6fa);padding:8px 0 14px;gap:14px}.import-analysis-modal #import-result .section-title h2{font-size:12px;font-weight:400;color:#657f94;min-width:0}.import-analysis-modal .table-scroll{max-width:100%}.import-analysis-modal table{width:100%}.import-analysis-modal th,.import-analysis-modal td{white-space:normal}.import-analysis-modal .import-corrections td:first-child{width:23%}.import-analysis-modal .import-corrections td:last-child{width:34%}@media(max-width:600px){.import-analysis-modal{padding:0 14px 18px}.import-analysis-modal .section-title{flex-wrap:wrap}.import-analysis-modal table{min-width:650px}.import-result-launch{flex-wrap:wrap}}
.analysis-footer-actions,#remove-import-modal .import-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}.analysis-footer-actions button,#remove-import-modal .import-modal-actions button{margin:0}#remove-import-modal .import-modal-actions button:first-child{background:var(--legacy-soft,#edf3f9);color:#26435b}
.import-analysis-modal .analysis-heading .modal-close{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;font-size:22px;line-height:1;color:#7890a3;text-decoration:none;flex-shrink:0}.import-analysis-modal .analysis-heading .modal-close:hover{background:var(--legacy-soft,#e7eef5);color:#244158}.import-analysis-modal .analysis-heading .modal-close:focus-visible{outline:2px solid #8ca8bd;outline-offset:2px}.analysis-waiting-modal{width:460px}.analysis-waiting-modal .analysis-timer{font-size:16px;font-variant-numeric:tabular-nums;margin:22px 0;color:#244158}.analysis-waiting-modal #import-result .section-title{position:static}
.issue-summary-row{cursor:pointer}.issue-summary-row:hover td{background:var(--legacy-soft,#eaf1f7)!important}.issue-view-button{background:transparent!important;color:#28759e!important;padding:0!important;font-weight:500}.issue-decision-summary{display:block;margin-top:6px;font-size:11px;color:#7890a3}.issue-detail-modal{width:760px;background:var(--legacy-soft,#f3f6fa)}.issue-full-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;margin:16px 0 24px}.issue-full-fields dt{font-size:11px;color:#7890a3}.issue-full-fields dd{margin:5px 0 0;font-size:13px;overflow-wrap:anywhere}.issue-decision-actions{display:flex;justify-content:space-between;gap:12px;margin:24px 0 12px;flex-wrap:wrap}.issue-correction-label input{display:block;width:100%}.issue-detail-modal .issue-reason{font-size:12px}.analysis-waiting-modal .analysis-heading{justify-content:center;padding-top:32px}.analysis-waiting-modal .analysis-heading .modal-close{position:absolute;right:0;top:18px}.analysis-waiting-modal #import-result .section-title,.analysis-waiting-modal #import-result>p:first-of-type{display:none}.analysis-waiting-modal .analysis-timer{text-align:center;font-size:64px;font-weight:600;line-height:1.1;letter-spacing:2px;margin:24px 0 8px!important}.analysis-waiting-modal .analysis-timer-caption{text-align:center;font-size:12px;margin:0 0 28px!important}@media(max-width:600px){.issue-full-fields{grid-template-columns:1fr}}
.content.data-workspace .analysis-waiting-modal #import-result .analysis-timer{font-size:64px;line-height:1.1}.content.data-workspace #import-result .issue-detail-modal h2{font-size:20px}.content.data-workspace #import-result .issue-detail-modal input[data-correction-name]{max-width:none}
.issue-decision-summary[data-decision]{display:inline-block;padding:5px 8px;border-radius:5px;background:var(--legacy-soft,#e5eee9);color:#3a6d55;font-weight:600}.issue-decision-summary[data-decision=defer]{background:var(--legacy-soft,#e7edf3);color:#55718a}.content.data-workspace #import-result .review-action-notice,.content.data-workspace #import-result .issue-action-notice{background:var(--legacy-soft,#e5eee9);color:#3a6d55;padding:10px 12px;border-radius:6px;font-size:12px}
.import-analysis-modal .analysis-heading h2:focus{outline:none}.import-analysis-modal .analysis-heading .modal-close{border-radius:4px;box-shadow:none;border:0}.import-analysis-modal .analysis-heading .modal-close:focus-visible{outline:1px solid #aebfce;outline-offset:2px}
.data-reset-control{display:flex;justify-content:flex-end;margin:-4px 0 10px}.data-reset-control button{background:transparent;color:#8b5555;font-size:12px;padding:5px 0;font-weight:500}#reset-data-modal label{display:block;font-size:12px;margin:14px 0}#reset-data-modal input{display:block;width:100%;margin-top:7px}#reset-data-modal .analysis-heading{display:flex;align-items:center;justify-content:space-between}#reset-data-modal .modal-close{background:transparent;color:#7890a3;border:0;padding:0;font-size:22px;position:static}#reset-data-modal p{font-size:13px;color:#657f94}
.data-reset-control button{background:var(--legacy-soft,#f8e9e9);border:1px solid #e7caca;color:#965252;border-radius:8px;padding:10px 16px;font-weight:600}.data-reset-control button:hover{background:var(--legacy-soft,#f1dddd)}.reset-progress-modal{width:460px;text-align:center;background:var(--legacy-soft,#f3f6fa);padding:32px}.reset-progress-modal h2{font-size:20px;margin:0}.reset-progress-modal .operation-countdown{font-size:64px;font-weight:600;line-height:1.1;letter-spacing:2px;margin:24px 0 8px;font-variant-numeric:tabular-nums}.reset-progress-modal .operation-caption{font-size:12px;color:#7890a3;margin:0}
.import-analysis-modal .issue-detail-modal .analysis-heading{position:static;z-index:auto;top:auto;background:transparent}
.issue-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:24px 0}.issue-edit-fields[hidden]{display:none}.issue-edit-fields label{font-size:12px;color:#55718a}.content.data-workspace #import-result .issue-edit-fields input{display:block;width:100%;max-width:none;margin-top:6px;background:transparent;border:0;border-bottom:1px solid #aebfce;border-radius:0;padding:10px 0;color:#244158}.issue-editor-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0 12px}.issue-row-editor>p{color:#657f94;font-size:13px}@media(max-width:600px){.issue-edit-fields{grid-template-columns:1fr}}
.new-data-modal .analysis-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.new-data-modal .analysis-heading h2{margin:0}.new-data-modal .modal-close{position:static;border:0;background:transparent;color:#7890a3;font-size:22px;line-height:1;padding:6px}.new-data-modal>p{font-size:13px;color:#657f94}.new-data-modal .edit-row-fields input{display:block;margin-top:6px}.new-data-modal .edit-row-fields .helptext{display:block;margin-top:5px}

/* Compact rows retain complete text for the selected-row viewer. */
.data-workspace .data-sheet .data-cell-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:18px;max-height:36px;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.data-workspace .data-sheet .data-cell-identity{height:36px;line-height:18px;overflow:hidden}
.data-workspace .data-sheet tr.selectable-data-row td{height:63px;box-sizing:border-box;vertical-align:middle}
.data-view-modal{width:760px;background:var(--legacy-soft,#f3f6fa)}
.data-view-modal .issue-full-fields dd{white-space:pre-wrap;line-height:1.6}
.data-view-modal .issue-full-fields>div{min-width:0}
.data-view-actions{display:flex;align-items:center;gap:16px}.data-view-actions .data-delete-action{background:var(--legacy-soft,#f8e9e9);color:#965252;border:1px solid #e7caca}.data-view-actions .data-delete-action:hover{background:var(--legacy-soft,#f1dddd)}.data-view-actions .button{font-size:13px}@media(max-width:480px){.data-view-modal .analysis-footer-actions{flex-wrap:wrap;gap:16px}.data-view-actions{gap:12px}}

/* Compact rows retain complete text for the selected-row viewer. */
.data-workspace .data-sheet .data-cell-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:18px;max-height:36px;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.data-workspace .data-sheet .data-cell-identity{height:36px;line-height:18px;overflow:hidden}
.data-workspace .data-sheet tr.selectable-data-row td{height:63px;box-sizing:border-box;vertical-align:middle}
.data-view-modal{width:760px;background:var(--legacy-soft,#f3f6fa)}
.data-view-modal .issue-full-fields dd{white-space:pre-wrap;line-height:1.6}
.data-view-modal .issue-full-fields>div{min-width:0}
.data-row-fixed-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.data-row-tools #row-selection-label{min-width:0;overflow-wrap:anywhere}.data-row-tools .data-row-fixed-actions button{min-width:91px}
/* Keep page actions and table controls in two aligned, compact groups. */
.data-workspace .data-page-heading{align-items:center;gap:24px;margin-bottom:16px}
.data-workspace .data-page-heading .data-actions{align-items:center;gap:10px;margin:0}
.data-workspace .data-page-heading .data-reset-control{margin:0 0 0 8px;padding-left:18px;border-left:1px solid #d4dfe9}
.data-workspace .data-page-heading .data-reset-control button{height:40px}
.data-workspace>.import-result-launch{margin:0 0 16px;padding:8px 0;border-bottom:1px solid #dce5ee}
.data-table-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;padding:12px 0 16px;border-bottom:1px solid #dce5ee}
.data-workspace .data-table-toolbar .data-filter{padding:0;margin:0}
.data-workspace .data-table-toolbar .data-row-tools{margin:0;min-height:40px;gap:16px;flex-wrap:wrap}
.data-workspace .data-table-toolbar .data-row-fixed-actions button{height:40px}
.data-workspace .data-table-toolbar #row-selection-label{width:230px;font-size:12px}
.data-workspace .data-sheet-title{padding:14px 0 8px}
.data-workspace .data-sheet table{margin-top:0}
@media(max-width:900px){.data-workspace .data-page-heading{align-items:flex-start;flex-wrap:wrap}.data-workspace .data-page-heading .data-actions{flex-wrap:wrap}.data-table-toolbar{gap:12px}.data-workspace .data-page-heading .data-reset-control{padding-left:12px;margin-left:0}}
@media(max-width:600px){.data-workspace .data-table-toolbar .data-filter{width:100%}.data-workspace .data-table-toolbar .data-filter label{flex:1}.data-workspace .data-table-toolbar .data-filter input[type=search]{width:100%}.data-workspace .data-table-toolbar #row-selection-label{width:auto}}
/* Unified tool strip directly above the sheet. */
.data-workspace .data-page-heading{align-items:flex-start;margin-bottom:22px}
.data-page-heading .import-result-launch{margin:10px 0 0;padding:0;border:0;gap:12px;font-size:11px}
.data-workspace .data-page-heading .data-actions{padding-top:4px}
.data-workspace .data-table-toolbar{justify-content:flex-start;align-items:center;gap:20px;padding:12px 16px;background:var(--legacy-soft,#eaf0f6);border:1px solid #dce5ee;border-radius:10px;margin-bottom:4px}
.data-workspace .data-table-toolbar .data-filter form{flex-wrap:nowrap}
.data-workspace .data-table-toolbar .data-filter input[type=search]{width:340px;height:38px;background:var(--legacy-soft,#f8fafc)}
.data-workspace .data-table-toolbar .data-filter button{height:38px}
.data-workspace .data-table-toolbar .data-row-tools{border-left:1px solid #ccd8e4;padding-left:20px;min-height:38px;flex-wrap:nowrap}
.data-workspace .data-table-toolbar .data-row-fixed-actions button{height:38px}
.data-workspace .data-table-toolbar #row-selection-label{width:230px;font-size:11px;color:#6e869a}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.data-workspace .data-table-toolbar{gap:12px}.data-workspace .data-table-toolbar .data-row-tools{border-left:0;padding-left:0;flex-wrap:wrap}.data-workspace .data-table-toolbar #row-selection-label{width:auto}}
@media(max-width:600px){.data-workspace .data-page-heading{gap:14px;margin-bottom:16px}.data-workspace .data-table-toolbar{padding:12px}.data-workspace .data-table-toolbar .data-filter input[type=search]{width:100%}.data-workspace .data-table-toolbar .data-filter form{width:100%}}
/* Open composition: actions near the title, controls attached to the sheet. */
.data-workspace .data-page-heading{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:28px}
.data-workspace .data-page-heading .data-actions{display:flex;width:100%;padding:0;gap:10px}
.data-workspace .data-page-heading .data-reset-control{margin-left:auto;border:0;padding:0}
.data-page-heading .import-result-launch{display:inline-flex;gap:10px;margin-top:10px;padding:5px 10px;background:var(--legacy-soft,#e6eef4);border-radius:6px}
.data-workspace .data-sheet-title{padding:0 0 10px;justify-content:flex-start;gap:12px}
.data-workspace .data-sheet-title strong{font-size:15px}
.data-workspace .data-sheet-title span{font-size:11px;padding:3px 8px;border-radius:5px;background:var(--legacy-soft,#e6eef4)}
.data-workspace .data-table-toolbar{background:transparent;border:0;border-top:1px solid #d4dfe9;border-radius:0;padding:12px 0;gap:24px;margin:0}
.data-workspace .data-table-toolbar .data-filter input[type=search]{width:360px;background:var(--legacy-panel,#fff)}
.data-workspace .data-table-toolbar .data-row-tools{padding:0;border:0;gap:14px;flex-wrap:wrap}
.data-workspace .data-table-toolbar #row-selection-label{width:230px;order:2}
.data-workspace .data-table-toolbar .data-row-fixed-actions{gap:14px}
.data-workspace .data-sheet{max-height:66vh}
@media(max-width:700px){.data-workspace .data-page-heading .data-actions{flex-wrap:wrap}.data-workspace .data-page-heading .data-reset-control{margin-left:0}.data-workspace .data-table-toolbar{gap:10px}.data-workspace .data-table-toolbar .data-filter input[type=search]{width:100%}.data-workspace .data-sheet-title{flex-wrap:wrap}}
/* Keep the master action within the action group rather than at the far edge. */
.data-workspace .data-page-heading{margin-bottom:20px}
.data-workspace .data-page-heading .data-actions{width:auto;justify-content:flex-start}
.data-workspace .data-page-heading .data-reset-control{margin:0 0 0 6px;padding-left:16px;border-left:1px solid #d4dfe9}
.data-workspace .data-page-heading .data-reset-control button{height:40px}
@media(max-width:600px){.data-workspace .data-page-heading .data-reset-control{margin-left:0;padding-left:10px}}
/* Only the page introduction changes; the approved sheet controls stay intact. */
.data-workspace .data-page-heading{gap:20px;margin-bottom:24px}
.data-workspace .data-page-heading h1{font-size:34px;letter-spacing:-1px;margin-bottom:7px}
.data-workspace .data-page-heading .data-action-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:14px;align-items:stretch}
.data-workspace .data-action-cards>button,.data-workspace .data-action-cards>a,.data-workspace .data-action-cards .data-reset-control button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;min-height:86px;height:auto;padding:18px 22px;border-radius:10px;text-align:left;white-space:normal;line-height:1.4;box-shadow:none}
.data-workspace .data-page-heading .data-action-cards .data-reset-control{display:flex;margin:0;padding:0;border:0}
.data-action-cards .data-action-title{display:block;font-size:17px;font-weight:650}
.data-action-cards .data-action-description{display:block;margin-top:5px;font-size:12px;font-weight:400;opacity:.85}
.data-workspace .data-action-cards>button.secondary{background:var(--legacy-panel,#fff);border:1px solid #d4dfe8;color:#24638b}
.data-workspace .data-action-cards .data-reset-control button{background:var(--legacy-soft,#f8eeee);border-color:#e7d5d5;color:#965252}
@media(min-width:1100px){.data-workspace .data-page-heading>div:first-child{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:24px}.data-workspace .data-page-heading h1,.data-workspace .data-page-heading>div:first-child>p{grid-column:1}.data-workspace .data-page-heading .import-result-launch{grid-column:2;grid-row:1/3;margin:0;padding:8px 12px}}
@media(max-width:700px){.data-workspace .data-page-heading .data-action-cards{grid-template-columns:1fr;gap:10px}.data-workspace .data-action-cards>button,.data-workspace .data-action-cards>a,.data-workspace .data-action-cards .data-reset-control button{min-height:72px;padding:14px 18px}.data-workspace .data-page-heading h1{font-size:30px}}
/* Lighter action blocks with a compact footprint. */
.data-workspace .data-page-heading .data-action-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1080px;gap:12px}
.data-workspace .data-action-cards>button,.data-workspace .data-action-cards>a,.data-workspace .data-action-cards .data-reset-control button{min-height:66px;padding:12px 16px;border-radius:8px}
.data-action-cards .data-action-title{font-size:14px;font-weight:600}
.data-action-cards .data-action-description{font-size:11px;margin-top:3px}
.data-workspace .data-action-cards>a.button{background:var(--legacy-soft,#e4eff8);color:#17638f;border:1px solid #c9deed}
.data-workspace .data-action-cards>a.button:hover{background:var(--legacy-soft,#d6e8f5)}
.data-workspace .data-action-cards .data-reset-control button{background:var(--legacy-soft,#f6f0f0);border-color:#e6dada;color:#966262}
@media(max-width:700px){.data-workspace .data-page-heading .data-action-cards{grid-template-columns:1fr;max-width:none}}
/* Explicit placement requested for the three page actions. */
.data-workspace .data-page-heading.data-header-positioned{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}
.data-workspace .data-header-positioned>div.data-heading-main{display:block}
.data-workspace .data-header-positioned .data-import-button{margin-top:14px;font-size:13px;padding:10px 18px}
.data-heading-status{display:flex;flex-direction:column;align-items:flex-end;gap:12px;padding-top:4px}
.data-workspace .data-header-positioned .data-reset-control{margin:0;padding:0;border:0}
.data-workspace .data-header-positioned .data-reset-control button{height:auto;padding:9px 14px;font-size:12px}
.data-workspace .data-header-positioned .import-result-launch{display:flex;margin:0;padding:7px 10px;font-size:11px}
.data-workspace .data-table-toolbar .data-toolbar-new{margin-left:auto;flex-shrink:0;height:38px;padding:9px 16px;font-size:13px;background:var(--legacy-panel,white);color:#24638b;border:1px solid #d4dfe8}
@media(max-width:700px){.data-workspace .data-page-heading.data-header-positioned{flex-wrap:wrap;gap:16px}.data-heading-status{align-items:flex-start}.data-workspace .data-table-toolbar .data-toolbar-new{margin-left:auto}}
/* Align the reset action with import, below the analysis status. */
.data-workspace .data-header-positioned .data-heading-status{align-self:stretch;padding-top:0;justify-content:flex-end;gap:14px}
.data-workspace .data-header-positioned .data-heading-status .import-result-launch{order:0}
.data-workspace .data-header-positioned .data-heading-status .data-reset-control{order:1}
.data-workspace .data-header-positioned .data-heading-status .data-reset-control button{min-height:40px}
@media(max-width:700px){.data-workspace .data-header-positioned .data-heading-status{align-self:auto}}
.weekly-workspace h1{margin-bottom:6px}.weekly-workspace .section-title p{margin:0}.weekly-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.weekly-overview>div{padding:18px 22px;border:1px solid #dce5ee;border-radius:10px;background:var(--legacy-panel,#fff);display:flex;flex-direction:column;gap:5px}.weekly-overview strong{font-size:30px;color:#244d6c}.weekly-overview span,.weekly-rule{font-size:13px;color:#6e869a}.weekly-settings form{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.weekly-settings form p{margin:0}.weekly-settings input{width:100px}.weekly-strip{display:flex;gap:12px;overflow:auto;padding:4px 0 16px}.weekly-week{display:flex;flex-direction:column;gap:10px;min-width:210px;padding:18px;background:var(--legacy-panel,white);border:1px solid #dce5ee;border-radius:10px;text-decoration:none;color:#54738a;font-size:12px}.weekly-week strong{font-size:26px;color:#244d6c}.weekly-week small{font-size:13px;font-weight:400}.weekly-week.active{border-color:#2489c5;background:var(--legacy-soft,#eaf3fa)}.weekly-week .weekly-alert{color:#9a5a39;font-size:11px}.weekly-workspace summary{cursor:pointer;color:#315974;font-size:14px;font-weight:600}.weekly-waiting{margin-top:24px}.priority-tag{display:inline-block;padding:4px 9px;border-radius:5px;font-size:12px;background:var(--legacy-soft,#e7eef5);color:#55718a}.priority-ALTA{background:var(--legacy-soft,#fff2d9);color:#8e6829}.priority-URGENTE{background:var(--legacy-soft,#fbe8dc);color:#99582c}.priority-CRITICA{background:var(--legacy-soft,#f9e2e2);color:#a44949}.data-priority-form{margin:16px 0 0;padding-top:16px;border-top:1px solid #dce5ee}.data-priority-form label{font-size:12px}.data-priority-form select{margin:0 12px;width:140px}.data-priority-form button{font-size:12px;padding:9px 13px}@media(max-width:650px){.weekly-overview{grid-template-columns:1fr}.data-priority-form select{margin:8px 0;display:block}}
.data-workspace .data-sheet table{min-width:1740px}.data-workspace .data-sheet th:nth-child(11){width:120px}
.weekly-workspace .weekly-streams a{padding:12px 18px}.weekly-workspace .table-scroll .weekly-orders{min-width:1100px}#weekly-row-modal{width:min(720px,calc(100vw - 32px));padding:24px}#weekly-row-modal form p{margin-bottom:12px}#weekly-row-modal .weekly-wide-field textarea{min-height:64px}#weekly-row-modal .modal-note{margin:10px 0;font-size:12px}#weekly-row-modal .analysis-footer-actions{margin-top:14px}
.weekly-streams{display:flex;gap:8px;margin:22px 0 8px}.weekly-streams a{padding:12px 18px;min-width:200px;display:flex;flex-direction:column;gap:4px;border:1px solid #dce5ee;border-radius:9px;background:var(--legacy-panel,#fff);text-decoration:none;color:#52718a}.weekly-streams a span{font-size:12px}.weekly-streams a.active{border-color:#1487b6;background:var(--legacy-soft,#e5f1f8);color:#195878}.weekly-orders{min-width:1100px}.weekly-orders td{vertical-align:top}.weekly-orders td small{display:block;margin-top:5px;color:#6e869a;font-size:11px;line-height:1.4}.weekly-orders td .weekly-alert{color:#99552f}.weekly-orders .weekly-note{max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.weekly-aged-row td{box-shadow:inset 0 -1px #e9c5ac}.weekly-flow-label{font-size:12px}.weekly-wide-field{grid-column:1/-1}.weekly-wide-field textarea{width:100%;resize:vertical}.weekly-streams a:focus-visible,.weekly-selectable-row:focus-visible{outline:2px solid #1487b6;outline-offset:2px}@media(max-width:650px){.weekly-streams a{min-width:0;flex:1;padding:10px}.weekly-reservation-actions{flex-wrap:wrap}.weekly-workspace .section-title{align-items:flex-start;flex-wrap:wrap}}
.weekly-week.current-week{min-width:290px;background:var(--legacy-soft,#e4eef6);border-color:#99bad1}.weekly-week.current-week strong{font-size:34px}.weekly-week.current-week b{font-size:14px;color:#245574}.weekly-visible-capacity form{margin:0}.weekly-visible-capacity form>div{display:flex;align-items:center;gap:10px;margin:8px 0}.weekly-visible-capacity input{width:85px;font-size:22px;padding:7px}.weekly-visible-capacity label{font-size:12px;color:#55718a}.weekly-visible-capacity small{font-size:11px;color:#7890a3}.weekly-control-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.weekly-specific-capacity{display:flex;align-items:center;gap:10px;margin:0;padding-right:16px;border-right:1px solid #d4dfe9}.weekly-specific-capacity label{font-size:12px}.weekly-specific-capacity input{width:70px;margin-left:6px}.weekly-control-row>span{font-size:12px;color:#7890a3}.weekly-control-row button:disabled{opacity:.4;cursor:default}.weekly-selectable-row{cursor:pointer}.weekly-selected-row td{background:var(--legacy-soft,#e2eef7)}.weekly-reservation-actions{display:flex;gap:12px}.weekly-workspace .section-title h2{margin:20px 0}.weekly-workspace .edit-row-fields select{width:100%;font-size:13px}
.production-week-card{display:block;text-decoration:none;color:#244d6c;transition:border-color .15s,background .15s}.production-week-card:hover{border-color:#2489c5;background:var(--legacy-soft,#edf5fb)}.production-week-card .production-week-date{font-size:13px;color:#28759e}.production-week-card:focus-visible{outline:2px solid #2489c5;outline-offset:3px}.production-other-week{margin:12px 0;color:#657f94;font-size:12px}.production-other-week summary{cursor:pointer}.production-other-week form{display:flex;align-items:center;gap:12px}
.weekly-summary-inline{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:18px 0 22px;padding:12px 0;border-bottom:1px solid #d4dfe9;color:#6e869a;font-size:13px}.weekly-summary-inline strong{color:#244d6c;font-size:16px;margin-right:4px}.weekly-workspace .weekly-strip{gap:10px;padding-bottom:12px}.weekly-workspace .weekly-week{min-width:190px;padding:14px 16px;gap:8px}.weekly-workspace .weekly-week.current-week{min-width:235px}.weekly-workspace .weekly-week strong{font-size:26px}.weekly-workspace .weekly-week.current-week strong{font-size:30px}.weekly-workspace .weekly-week .weekly-alert{font-size:10px}.weekly-workspace .weekly-control-row{background:transparent;border-bottom:1px solid #d4dfe9;padding:10px 0 14px;gap:12px}.weekly-capacity-readout{font-size:12px;color:#6e869a}.weekly-workspace .weekly-control-row button{font-size:12px;padding:9px 13px}.weekly-workspace .section-title h2{font-size:19px;margin:16px 0 8px}.weekly-workspace .weekly-rule{font-size:12px;margin:8px 0 14px}#weekly-capacity-form input[type=number],#weekly-capacity-form select{width:100%;margin-top:7px}

.people-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 28px}.people-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#6d8aa0}.people-heading h1{margin:8px 0;font-size:30px}.people-heading p{margin:0;color:#73899c;font-size:14px}.people-heading button{white-space:nowrap}.people-directory{border:1px solid #dce5ee;border-radius:13px;background:var(--legacy-panel,#fff);overflow:hidden}.people-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid #e5edf3}.people-toolbar h2{margin:0 0 5px;padding:0;font-size:17px}.people-toolbar .muted{font-size:12px}.people-filters{display:flex;gap:12px}.people-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#6d8498}.people-filters input{width:260px}.people-filters select{width:205px}.people-directory .table-scroll{margin:0}.people-directory .people-table{margin:0;border:0;border-radius:0;min-width:720px}.people-table th{background:var(--legacy-soft,#f5f8fb);padding:13px 24px}.people-table td{vertical-align:middle;padding:18px 24px;color:#536e83}.people-name{display:flex;align-items:center;gap:12px}.people-name strong{color:#233f56;font-size:14px}.people-name small{display:block;font-size:11px;margin-top:4px}.people-avatar{width:38px;height:38px;border-radius:11px;background:var(--legacy-soft,#eaf2f8);color:#297095;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0}.people-team-tag{display:inline-block;background:var(--legacy-soft,#eaf3fa);color:#356c8f;border-radius:6px;padding:5px 9px;font-size:12px;white-space:nowrap}.people-team-report{background:var(--legacy-soft,#f0edf8);color:#70618f}.people-status{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#8091a0}.people-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#a2afba}.people-status-active{color:#427a68}.people-status-active:before{background:#60a58e}.people-edit{font-size:12px;text-decoration:none;font-weight:600;white-space:nowrap}.people-footnote{font-size:12px;color:#7d91a2;margin:0;padding:16px 24px;border-top:1px solid #e5edf3}.people-modal{width:min(620px,calc(100vw - 32px));padding:26px}.people-modal .analysis-heading h2{margin:0}.people-modal .analysis-heading p{font-size:12px;margin:6px 0 0}.people-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.people-form-grid label{font-size:12px;color:#416078}.people-form-grid input,.people-form-grid select,.people-account select{width:100%}.people-full-field{grid-column:1/-1}.people-account{border-top:1px solid #e5edf3;padding-top:14px;margin:0 0 20px;font-size:12px}.people-account summary{cursor:pointer;color:#57788e}.people-account summary span{color:#91a0ad;margin-left:8px}.people-account p{margin-top:14px}.people-edit-page{max-width:760px}.people-edit-page>.people-heading{margin-top:24px}.people-edit-page form{margin:0}.people-edit-page .people-footnote{padding:14px 0}.people-workspace [hidden]{display:none!important}@media(max-width:850px){.people-toolbar{align-items:flex-start;flex-direction:column}.people-filters{width:100%}.people-filters label:first-child{flex:1}.people-filters input{width:100%}}@media(max-width:550px){.people-heading{align-items:flex-start;flex-direction:column;gap:16px}.people-filters{flex-direction:column}.people-filters select{width:100%}.people-form-grid{grid-template-columns:1fr}.people-full-field{grid-column:auto}.people-toolbar{padding:18px}}

.people-delete{background:transparent;color:#ac5656;padding:5px 8px;margin:0 0 0 12px;font-size:12px;font-weight:500}.people-delete:hover{background:var(--legacy-soft,#fbefef);color:#913e3e}.people-delete-confirm{background:#ad5151}.people-delete-confirm:hover{background:#913e3e}
.people-modal .analysis-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.people-modal .analysis-heading .modal-close{position:static;display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:#7890a3;font-size:24px;font-weight:400;line-height:1}.people-modal .analysis-heading .modal-close:hover{background:var(--legacy-soft,#edf3f8);color:#244158}

.people-role-guidance{display:flex;flex-direction:column;gap:5px;border-left:3px solid #bed6e7;padding:10px 14px;margin:0 0 18px;color:#6c8396;font-size:12px;line-height:1.55}.people-role-guidance strong{font-weight:600;color:#45667f}.people-meta-note{display:block;color:#7d91a2;font-size:11px;margin-top:5px}.people-form-grid input::placeholder{font-size:12px;color:#899eae}
.people-workspace .people-table{table-layout:fixed}.people-workspace .people-table th:nth-child(1){width:30%}.people-workspace .people-table th:nth-child(2){width:16%}.people-workspace .people-table th:nth-child(3){width:25%}.people-workspace .people-table th:nth-child(4){width:11%}.people-workspace .people-table th:nth-child(5){width:18%}.people-workspace .people-table .people-name>div{display:flex;flex-direction:column;gap:4px;min-width:0}.people-workspace .people-table .people-name small{display:block;margin:0;max-width:none;overflow-wrap:anywhere;font-size:11px;line-height:1.4}.people-workspace .people-table .people-meta-note{display:block;margin-top:6px;max-width:none;font-size:11px;line-height:1.4}.people-workspace .people-table .people-team-tag{white-space:normal}.people-workspace .people-table td:last-child{white-space:nowrap}.people-workspace .people-table .people-delete{margin-left:10px}@media(max-width:1050px){.people-workspace .people-table{min-width:880px}}
.people-workspace .people-table .people-team-tag{display:block;padding:0;background:transparent;border-radius:0;font-size:13px;line-height:1.5;color:#536e83}.people-workspace .people-table .people-meta-note{margin-top:4px}

.performance-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.performance-heading h1{margin:8px 0;font-size:30px}.performance-heading p{margin:0;color:#748b9e;font-size:14px}.performance-settings{font-size:12px;text-decoration:none}.performance-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:18px 20px;background:var(--legacy-panel,white);border:1px solid #dce5ee;border-radius:11px;margin:0 0 16px}.performance-filters label{display:block;font-size:11px;color:#637e94;margin-bottom:5px}.performance-filters input,.performance-filters select{margin:0;min-height:40px;max-width:240px;font-size:12px}.performance-filters button{margin:0;font-size:12px;min-height:40px}.performance-person-filter{margin-left:auto}.performance-period{display:flex;align-items:center;gap:18px;color:#71899d;font-size:12px;margin:18px 0}.performance-period strong{color:#395d77;font-size:13px}.performance-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.performance-metric{display:flex;flex-direction:column;gap:10px;padding:20px 22px;border:1px solid #dce5ee;border-radius:11px;background:var(--legacy-panel,white);text-decoration:none;color:#54738a}.performance-metric:hover{border-color:#7baecf}.performance-metric>span{font-size:12px}.performance-metric>strong{font-size:34px;font-weight:700;color:#245b7d;line-height:1.2}.performance-metric em{font-size:20px;font-style:normal}.performance-metric small{font-size:11px;color:#7b92a5}.performance-metric-report>strong{color:#008d96}.performance-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;margin:22px 0}.performance-panel{background:var(--legacy-panel,#fff);border:1px solid #dce5ee;border-radius:12px;overflow:hidden}.performance-panel-heading{padding:20px 22px 12px}.performance-panel-heading h2{margin:0;padding:0;font-size:17px}.performance-panel-heading p{margin:5px 0 0;font-size:12px;color:#7a90a2}.performance-tabs{display:flex;gap:8px;padding:0 22px 12px}.performance-tabs button{background:var(--legacy-soft,#f1f5f9);color:#70889b;padding:8px 14px;font-size:12px}.performance-tabs button[aria-selected=true]{background:var(--legacy-soft,#e6f1f9);color:#226a94}.performance-tabs span{margin-left:8px;font-weight:400}.performance-panel .table-scroll{margin:0}.performance-panel .performance-people{margin:0;min-width:540px;border:0;border-radius:0}.performance-people td{vertical-align:middle;font-size:12px}.performance-people th{font-size:11px;background:var(--legacy-soft,#f7f9fc)}.performance-workspace .performance-people small{display:block;margin-top:4px;color:#8a9cac;font-size:11px}.performance-units{font-weight:700;font-size:18px!important;color:#2b5977}.performance-neutral{color:#8a9cac;font-size:11px}.performance-attainment strong{font-size:12px;color:#3e789b}.performance-track{height:5px;background:var(--legacy-soft,#edf2f6);border-radius:4px;min-width:75px;margin-top:6px;overflow:hidden}.performance-track span{display:block;height:100%;background:#4b94bf;border-radius:4px}.performance-panel-note{padding:12px 22px;margin:0;font-size:11px;color:#8599aa;line-height:1.6}.performance-legend{display:flex;gap:18px;padding:2px 22px 14px;font-size:11px;color:#688399}.performance-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;background:#5498c4}.performance-legend .performance-dot-reports:before{background:#29a3a8}.performance-week-chart{padding:0 22px;max-height:310px;overflow:auto}.performance-week{display:grid;grid-template-columns:90px 1fr;gap:10px;margin-bottom:18px;align-items:center}.performance-week-label{font-size:12px;color:#476b86}.performance-week-label small{display:block;font-size:9px;margin-top:4px;color:#8a9eae}.performance-week-bars{display:grid;gap:6px}.performance-week-bars>div{display:flex;align-items:center;gap:7px;height:14px;padding-right:28px;position:relative;background:var(--legacy-soft,#f4f7fa);border-radius:3px}.performance-week-bars span{display:block;height:8px;border-radius:2px;background:#5498c4;flex-shrink:0}.performance-week-bars .performance-bar-reports{background:#29a3a8}.performance-week-bars b{position:absolute;right:5px;font-size:10px;color:#658299;font-weight:500}.performance-flow-items{display:grid;grid-template-columns:repeat(4,1fr);padding:8px 22px 22px;gap:18px}.performance-flow-items a{text-decoration:none;color:#758d9f;font-size:12px;border-right:1px solid #e5edf3}.performance-flow-items a:last-child{border:0}.performance-flow-items strong{display:block;margin-top:8px;font-size:24px;color:#3d647e}.performance-operational{display:flex;gap:22px;flex-wrap:wrap;padding:18px 0 4px;font-size:12px;color:#7b92a4}.performance-operational a{color:#718a9d;text-decoration:none}.performance-operational strong{color:#456a82}.performance-empty-note{font-size:12px;color:#69869d;background:var(--legacy-soft,#eaf2f8);border-radius:8px;padding:12px 16px;margin:0}.performance-workspace [hidden]{display:none!important}@media(max-width:1100px){.performance-main{grid-template-columns:1fr}.performance-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.performance-heading,.performance-period{align-items:flex-start;flex-direction:column;gap:12px}.performance-person-filter{margin-left:0}.performance-filters>div{flex:1 1 140px}.performance-filters input,.performance-filters select{width:100%}.performance-metrics{gap:10px}.performance-metric{padding:16px}.performance-flow-items{grid-template-columns:repeat(2,1fr)}}

.data-workspace .data-sheet table{min-width:3100px}.data-workspace .data-sheet th.data-execution-column{width:170px}.data-workspace .data-sheet td.data-execution-column{width:170px}
.data-column-navigation{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;color:#72899d;font-size:12px}.data-column-navigation button{padding:7px 12px;min-height:32px;font-size:12px;margin:0}.data-horizontal-scroll{overflow-x:scroll;overflow-y:hidden;width:100%;height:20px;margin-bottom:5px;scrollbar-color:#88a9c0 #e7eef5}.data-horizontal-scroll>div{height:1px}.data-horizontal-scroll:focus-visible{outline:2px solid #008eac;outline-offset:2px}
.data-scroll-controls{position:sticky;top:0;z-index:6;background:var(--legacy-soft,#f3f6fa);padding:4px 0 8px}.data-workspace input.data-horizontal-slider{display:block;width:100%;max-width:100%;height:20px;margin:0;padding:0;border:0;background:transparent;accent-color:#087ac3;cursor:ew-resize}
.data-scroll-controls{padding:2px 0 6px}.data-column-navigation{gap:4px;margin:3px 0 5px}.data-column-navigation>span{font-size:11px;margin-right:8px}.data-column-navigation button.secondary{background:transparent;border-radius:5px;padding:5px 10px;min-height:28px;color:#58758c;font-size:11px;font-weight:500}.data-column-navigation button.secondary:hover{background:var(--legacy-soft,#e5edf4);color:#245b7c}.data-workspace input.data-horizontal-slider{-webkit-appearance:none;appearance:none;height:14px;outline-offset:2px}.data-horizontal-slider::-webkit-slider-runnable-track{height:5px;background:var(--legacy-soft,#dfe7ee);border:0;border-radius:4px}.data-horizontal-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:96px;height:7px;margin-top:-1px;border:0;border-radius:4px;background:#94adbf}.data-horizontal-slider:hover::-webkit-slider-thumb{background:#708fa6}.data-horizontal-slider::-moz-range-track{height:5px;background:var(--legacy-soft,#dfe7ee);border:0;border-radius:4px}.data-horizontal-slider::-moz-range-progress{height:5px;background:var(--legacy-soft,#dfe7ee)}.data-horizontal-slider::-moz-range-thumb{width:96px;height:7px;border:0;border-radius:4px;background:#94adbf}
.data-group-tabs{display:flex;gap:24px;border-bottom:1px solid #d6e2ec;margin:10px 0 12px}.data-group-tabs button{background:transparent;color:#7a8fa1;border-radius:0;padding:10px 2px;margin:0;border-bottom:3px solid transparent;font-size:13px;font-weight:500}.data-group-tabs button:hover{color:#246d99;background:transparent}.data-group-tabs button[aria-selected=true]{color:#087ac3;border-bottom-color:#087ac3;font-weight:600}.data-workspace .data-sheet [hidden]{display:none!important}.data-workspace .data-sheet.data-group-general table{width:100%;min-width:1595px}.data-workspace .data-sheet.data-group-tests table{width:100%;min-width:1200px}.data-workspace .data-sheet.data-group-reports table{width:100%;min-width:1500px}.data-workspace .data-sheet.data-group-tests th,.data-workspace .data-sheet.data-group-tests td,.data-workspace .data-sheet.data-group-reports th,.data-workspace .data-sheet.data-group-reports td{width:auto}.data-workspace .data-sheet.data-group-tests th:first-child,.data-workspace .data-sheet.data-group-tests td:first-child,.data-workspace .data-sheet.data-group-reports th:first-child,.data-workspace .data-sheet.data-group-reports td:first-child{width:64px}.data-workspace .data-sheet.data-group-tests th:nth-child(2),.data-workspace .data-sheet.data-group-tests td:nth-child(2),.data-workspace .data-sheet.data-group-reports th:nth-child(2),.data-workspace .data-sheet.data-group-reports td:nth-child(2){width:170px}
.data-group-general tr>:nth-child(n+12){display:none}.data-group-tests tr>:nth-child(n+3):nth-child(-n+4),.data-group-tests tr>:nth-child(n+6):nth-child(-n+10),.data-group-tests tr>:nth-child(n+16){display:none}.data-group-reports tr>:nth-child(n+3):nth-child(-n+4),.data-group-reports tr>:nth-child(n+6):nth-child(-n+10),.data-group-reports tr>:nth-child(n+12):nth-child(-n+15){display:none}
.data-workspace .data-sheet tr.data-window-spacer>td{display:table-cell!important;padding:0!important;border:0!important;position:static!important;background:transparent!important;line-height:0;font-size:0;width:auto!important;min-height:0}.data-workspace .data-sheet{overflow-anchor:none}
.data-workspace .data-sheet thead th{font-size:12px;line-height:16px;height:48px;padding:8px 12px}.data-workspace .data-sheet tbody tr.selectable-data-row td{font-size:13px;line-height:18px;height:63px;padding:13px 12px}.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(3),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(4),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(5),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(13),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(14),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(15),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(17),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(18),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(19),.data-workspace .data-sheet tbody tr.selectable-data-row td:nth-child(20){font-size:12px;font-variant-numeric:tabular-nums}.data-workspace .data-sheet.data-group-tests th:first-child,.data-workspace .data-sheet.data-group-tests td:first-child,.data-workspace .data-sheet.data-group-reports th:first-child,.data-workspace .data-sheet.data-group-reports td:first-child{width:80px}
/* Completed import summary. */
.import-analysis-modal .import-success{margin:12px 0 8px;background:var(--legacy-panel,#fff);border:1px solid #dce7ed;border-radius:14px;overflow:hidden}
.import-success-heading{display:flex;align-items:flex-start;gap:18px;padding:26px 28px;background:linear-gradient(110deg,#edf7f5,#f8fbfd)}
.import-success-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:48px;border-radius:50%;background:var(--legacy-soft,#d9eee7);color:#287960;font-size:26px;font-weight:600}
.import-success-label{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#43816f}
.import-success-heading h3{margin:6px 0 8px;font-size:22px;line-height:1.3;color:#244b60}
.content.data-workspace .import-analysis-modal #import-result .import-success-heading p{margin:0;color:#627e8e;line-height:1.6;font-size:13px}
.import-success-summary{display:grid;grid-template-columns:1fr 1fr 1fr;padding:22px 28px;gap:24px;border-top:1px solid #e3eded}
.import-success-summary>div{display:flex;flex-direction:column;gap:10px;padding-right:20px;border-right:1px solid #e4ecf0}
.import-success-summary>div:last-child{border-right:0;padding-right:0}
.import-success-summary>div>span{font-size:12px;color:#718897}
.import-success-summary strong{font-size:25px;font-weight:600;color:#285b7c;font-variant-numeric:tabular-nums;line-height:1.2}
.import-success-summary .import-success-status strong{font-size:15px;color:#327b65;padding-top:7px}
.import-success-status strong span{font-size:10px;vertical-align:2px;margin-right:5px}
.import-analysis-modal:has(.import-success) .analysis-footer-actions{padding-top:18px;border-top:1px solid #dce5ed}
@media(max-width:600px){.import-success-heading{padding:20px 18px;gap:12px}.import-success-heading h3{font-size:19px}.import-success-summary{padding:18px;gap:18px;grid-template-columns:1fr 1fr}.import-success-summary>div:nth-child(2){border:0;padding:0}.import-success-summary>div:last-child{grid-column:1/-1;border-top:1px solid #e4ecf0;padding-top:14px}}
/* Team directory cards. */
.people-workspace .people-directory:has(.people-card-grid){background:transparent;border:0;overflow:visible}
.people-directory:has(.people-card-grid) .people-toolbar{padding:20px 0;border-top:1px solid #dce5ee;border-bottom:0;margin-bottom:4px}
.people-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.person-card{min-width:0;background:var(--legacy-panel,#fff);border:1px solid #dce6ee;border-radius:14px;padding:22px 24px 0;box-shadow:0 3px 12px #1d466305;transition:border-color .15s,box-shadow .15s}
.person-card:hover{border-color:#a8c4d8;box-shadow:0 5px 18px #1d46630a}
.person-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.person-card .people-avatar{width:48px;height:48px;border-radius:14px;font-size:20px;background:var(--legacy-soft,#eaf3fa);color:#367fa8}
.person-card .people-status{border-radius:20px;padding:6px 10px;background:var(--legacy-soft,#f3f6f8);font-size:11px}
.person-card .people-status-active{background:var(--legacy-soft,#edf7f2);color:#397c66}
.person-card h2{font-size:18px;line-height:1.4;margin:0 0 5px;padding:0;color:#25445c;overflow-wrap:anywhere}
.person-card-email{min-height:20px;margin:0 0 23px;font-size:12px;color:#8193a2;overflow-wrap:anywhere}
.person-card-activity{display:flex;align-items:flex-start;flex-direction:column;gap:9px;padding:17px 0 20px;border-top:1px solid #edf2f6}
.person-card-label{font-size:9px;font-weight:700;letter-spacing:1.3px;color:#8095a6}
.person-card .people-team-tag{font-size:12px;white-space:normal;background:var(--legacy-soft,#eaf3fa);color:#367598;padding:6px 10px}
.person-card .people-team-report{background:var(--legacy-soft,#f0edf9);color:#7762a0}.person-card .people-team-both{background:var(--legacy-soft,#e9f4f2);color:#3b8076}
.person-card-activity small{font-size:11px;color:#8899a6}
.person-card-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e9eff4;padding:16px 0}
.person-card-actions .people-edit{display:flex;align-items:center;gap:12px;color:#267cad;font-size:12px}
.person-card-actions .people-delete{margin:0;background:transparent;border:0;padding:5px 0;font-size:11px;color:#af7275}
.person-card-actions .people-delete:hover{color:#a32d35;background:transparent}
.person-card-empty{grid-column:1/-1;padding:36px 22px;text-align:center;background:var(--legacy-panel,#fff);border:1px dashed #cbdce7;border-radius:12px;color:#728899;font-size:13px}
.people-directory:has(.people-card-grid) .people-footnote{border:0;padding:18px 0;font-size:11px}
@media(max-width:1150px){.people-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.people-card-grid{grid-template-columns:1fr;gap:14px}.person-card{padding:20px 20px 0}}
.people-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.person-card{display:flex;flex-direction:column}.person-card-actions{margin-top:auto}.people-directory:has(.people-card-grid) .people-toolbar{flex-wrap:wrap}.people-directory:has(.people-card-grid) .people-toolbar>div:first-child{min-width:140px}.people-directory:has(.people-card-grid) .people-filters{flex-wrap:wrap;max-width:100%}.people-directory:has(.people-card-grid) .people-filters input,.people-directory:has(.people-card-grid) .people-filters select{max-width:100%}
.performance-tracking-note{font-size:12px;line-height:1.7;color:#476c84;background:var(--legacy-soft,#eaf2f8);border-left:3px solid #75a7c8;border-radius:7px;padding:13px 16px;margin:14px 0}.performance-metric strong.performance-untracked-value{font-size:19px;line-height:1.4;margin:12px 0}.performance-panel>.performance-tracking-note{margin:18px}
.temp-kpi-workspace{max-width:1100px;margin:0 auto}.temp-kpi-workspace>.panel{padding:24px;margin:20px 0;border-radius:13px;background:var(--legacy-panel,#fff);border:1px solid #dce5ee}.temp-kpi-workspace>.panel>h2{margin:0 0 14px;padding:0;font-size:18px}.temp-kpi-workspace p{font-size:13px;color:#5f798e}.temp-kpi-workspace .people-form-grid{gap:4px 22px}.temp-kpi-workspace .people-form-grid select,.temp-kpi-workspace .people-form-grid input{width:100%;font-size:12px}.temp-kpi-workspace form button.secondary{margin-left:8px}.temp-kpi-workspace details{padding:12px 0;color:#60798e;font-size:12px}.temp-kpi-workspace .people-heading p{font-size:14px}.temp-kpi-workspace .table-scroll table{min-width:650px;font-size:12px}

.section-navigation{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding-bottom:12px;border-bottom:1px solid #d9e5ef}.section-navigation a{padding:9px 14px;border-radius:8px;color:#52748e;text-decoration:none}.section-navigation a[aria-current="page"]{background:var(--legacy-soft,#e5f1fa);color:#007ec3;font-weight:600}.section-navigation a:hover{background:var(--legacy-soft,#edf4fa)}
.import-choice-modal{max-width:620px}.import-choice-options{display:grid;gap:12px;margin-top:24px}.import-choice-options>a{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid #d9e5ef;border-radius:12px;text-decoration:none;background:var(--legacy-panel,white)}.import-choice-options>a:hover{border-color:#0781c5;background:var(--legacy-soft,#f0f8fd)}.import-choice-options strong{font-size:16px;color:#173b55}.import-choice-options span{font-size:13px;color:#63829b}.import-choice-options small{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:5px;background:var(--legacy-soft,#fff2d9);color:#936516;font-size:11px}

/* Stable column sizes before the first paint, shared across all tabs. */
.data-workspace .data-sheet.data-group-general table{width:1787px;min-width:1787px}
.data-workspace .data-sheet.data-group-tests table{width:1199px;min-width:1199px}
.data-workspace .data-sheet.data-group-reports table{width:1581px;min-width:1581px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(1){width:80px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(2){width:170px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(3){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(4){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(5){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(6){width:100px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(7){width:240px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(8){width:240px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(9){width:180px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(10){width:180px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(11){width:120px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(12){width:200px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(13){width:170px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(14){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(15){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(16){width:200px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(17){width:170px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(18){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(19){width:135px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(20){width:170px}
.data-workspace .data-sheet:is(.data-group-general,.data-group-tests,.data-group-reports) thead th:nth-child(21){width:200px}

.import-choice-modal{width:540px;padding:28px;border-radius:16px;background:var(--legacy-panel,#fff)}
.import-choice-modal .analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.import-choice-modal .analysis-heading h2{margin:0;font-size:22px}
.import-choice-modal .modal-close{position:static;flex-shrink:0;background:transparent;color:#6e8596;padding:0;margin:0;border:0;font-size:24px;line-height:1}
.import-choice-modal .modal-close:hover{background:var(--legacy-soft,#edf3f8);color:#173b55}
.import-choice-modal>p{font-size:13px;line-height:1.5;margin:10px 0 22px}
.import-choice-modal .import-choice-options{gap:0;margin:0;border:1px solid #dae5ee;border-radius:12px;overflow:hidden}
.import-choice-modal .import-choice-options>a{position:relative;border:0;border-radius:0;padding:20px 42px 20px 20px;gap:6px}
.import-choice-modal .import-choice-options>a+a{border-top:1px solid #e3ebf2}
.import-choice-modal .import-choice-options>a::after{content:'›';position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:24px;color:#7191a9}
.import-choice-modal .import-choice-options strong{font-size:15px}
.import-choice-modal .import-choice-options span{font-size:12px;line-height:1.5}
.import-choice-modal .import-choice-options .import-file-tag{background:var(--legacy-soft,#e9f3fc);color:#2373a3}

/* Fill each monitor while retaining readable columns on smaller screens. */
.data-workspace .data-sheet.data-group-general table{width:100%;min-width:1400px}
.data-workspace .data-sheet.data-group-general thead th:nth-child(1){width:4.664723%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(2){width:9.912536%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(3){width:7.871720%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(4){width:7.871720%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(5){width:7.871720%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(6){width:5.830904%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(7){width:13.994169%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(8){width:13.994169%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(9){width:10.495627%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(10){width:10.495627%}
.data-workspace .data-sheet.data-group-general thead th:nth-child(11){width:6.997085%}
.data-workspace .data-sheet.data-group-tests table{width:100%;min-width:1100px}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(1){width:6.986900%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(2){width:14.847162%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(5){width:11.790393%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(11){width:10.480349%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(12){width:17.467249%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(13){width:14.847162%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(14){width:11.790393%}
.data-workspace .data-sheet.data-group-tests thead th:nth-child(15){width:11.790393%}
.data-workspace .data-sheet.data-group-reports table{width:100%;min-width:1400px}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(1){width:5.280528%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(2){width:11.221122%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(5){width:8.910891%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(11){width:7.920792%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(16){width:13.201320%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(17){width:11.221122%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(18){width:8.910891%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(19){width:8.910891%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(20){width:11.221122%}
.data-workspace .data-sheet.data-group-reports thead th:nth-child(21){width:13.201320%}
.import-choice-modal{width:850px;padding:30px}.import-choice-modal .import-choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;overflow:visible}.import-choice-modal .import-choice-options>a{display:flex;align-items:center;text-align:center;justify-content:flex-start;gap:12px;min-width:0;min-height:230px;padding:24px 18px;border:1px solid #d9e5ef;border-radius:14px;background:var(--legacy-soft,#f8fbfe);transition:background .15s,border-color .15s}.import-choice-modal .import-choice-options>a+a{border:1px solid #d9e5ef}.import-choice-modal .import-choice-options>a:hover{background:var(--legacy-soft,#eaf5fd);border-color:#087ac3}.import-choice-modal .import-choice-options>a::after{content:none}.import-choice-modal .import-option-icon{width:56px;height:56px;flex-shrink:0;padding:10px;color:#087ac3;background:var(--legacy-soft,#e6f2fb);border-radius:12px}.import-choice-modal .import-choice-options strong{font-size:16px;line-height:1.4;min-height:45px;display:flex;align-items:center;justify-content:center}.import-choice-modal .import-choice-options small{margin:0}.import-choice-modal .import-choice-options span{line-height:1.6}@media(max-width:640px){.import-choice-modal{padding:22px}.import-choice-modal .import-choice-options{grid-template-columns:1fr;gap:12px}.import-choice-modal .import-choice-options>a{min-height:0;padding:20px}.import-choice-modal .import-choice-options strong{min-height:0}}
.import-choice-modal{max-width:calc(100vw - 32px)}
.performance-workspace{max-width:none;width:100%}.performance-heading{margin-bottom:20px}.performance-heading h1{font-size:30px}.performance-heading p{font-size:14px}.performance-filters{max-width:none;width:100%;background:var(--legacy-panel,white);gap:18px;padding:18px 22px}.performance-period{font-size:13px;margin:18px 0}.performance-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.performance-metric{padding:22px;border:1px solid #dce6ef;border-top:4px solid #3485b5;min-height:144px;background:var(--legacy-panel,white);box-shadow:0 2px 8px #183d5810}.performance-metric>span{font-size:13px;font-weight:600;color:#31536c}.performance-metric>strong{font-size:36px;margin:12px 0}.performance-metric-report{border-top-color:#249e97}.performance-metric-stopped{border-top-color:#cb6868}.performance-metric-stopped>strong{color:#b95050}.performance-flow{margin:18px 0 26px;background:var(--legacy-soft,#eef5fa)}.performance-flow .performance-panel-heading{padding-bottom:8px}.performance-flow-items{padding-top:12px}.performance-flow-items strong{font-size:28px}.performance-flow-items a{font-size:13px;color:#456b84}.executive-section-title{margin:28px 0 16px}.executive-section-title h2{font-size:20px;margin:0 0 6px;color:#173b55}.executive-section-title p{font-size:13px;color:#718b9f;margin:0}.executive-week-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:18px}.executive-people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.executive-team-panel .performance-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--legacy-soft,#edf5fb);border-bottom:1px solid #dbe7ef;padding:20px}.executive-team-panel .people-eyebrow{font-size:10px}.executive-team-panel h2{font-size:20px;margin-top:5px}.executive-team-total{text-align:right;display:flex;flex-direction:column;gap:4px}.executive-team-total strong{font-size:28px;color:#22658c}.executive-team-total span{font-size:11px;color:#6b879c}.performance-panel .performance-people{min-width:510px;width:100%;table-layout:auto}.performance-people th{font-size:12px;padding:12px 16px}.performance-people td{font-size:13px;padding:12px 16px}.performance-people tbody tr:nth-child(even) td{background:var(--legacy-soft,#f8fbfd)}.performance-neutral{font-size:12px;color:#70879a}.performance-attainment{border-radius:7px;padding:8px 10px;background:var(--legacy-soft,#fff4e4)}.performance-attainment strong{color:#926625;font-size:13px}.attainment-met{background:var(--legacy-soft,#e8f5ee)}.attainment-met strong{color:#267953}.attainment-met .performance-track span{background:#3b9970}.attainment-below .performance-track span{background:#d1a047}.executive-weekly table{min-width:620px;width:100%;margin:0;border:0}.executive-weekly th{font-size:12px;background:var(--legacy-soft,#edf5fb);white-space:normal;padding:14px 12px}.executive-weekly td{font-size:13px;padding:14px 12px;text-align:center}.executive-weekly td:first-child{text-align:left;white-space:nowrap}.performance-panel-heading h2{font-size:17px}.performance-panel-heading p{font-size:12px;line-height:1.5}.performance-week-label{font-size:13px}.performance-week-chart{max-height:350px}.performance-week-bars>div{height:20px}.performance-week-bars span{height:12px}.performance-week-bars b{font-size:12px}.performance-week-label small{font-size:11px}.executive-reading-guide{display:flex;flex-wrap:wrap;gap:16px;padding:16px 0;font-size:12px}.executive-key:before{content:"";display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:2px}.executive-key.met:before{background:#3b9970}.executive-key.below:before{background:#d1a047}@media(max-width:1250px){.performance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.executive-week-grid,.executive-people-grid{grid-template-columns:1fr}}@media(max-width:700px){.performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-metric{padding:16px;min-height:130px}.performance-metric>strong{font-size:30px}.performance-flow-items{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-filters{padding:16px}.executive-week-grid{grid-template-columns:minmax(0,1fr)}.performance-metric .performance-untracked-value{font-size:16px}}
.director-people{margin-top:22px}.director-table{width:100%;min-width:850px;margin:0;border:0}.director-table th{background:var(--legacy-soft,#edf5fb);font-size:12px;padding:16px}.director-table td{padding:16px;font-size:13px;vertical-align:middle}.director-table tbody tr:nth-child(even) td{background:var(--legacy-soft,#f8fbfd)}.director-table td:first-child strong{font-size:14px}.director-table td:first-child small{display:block;color:#7a91a3;font-size:11px;margin-top:5px}.person-result-number{display:block;font-size:25px;color:#245b7c}.person-result-meta{display:block;color:#72899c;font-size:12px;margin:5px 0}.person-result-badge{display:inline-block;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:600}.person-result-badge.met{background:var(--legacy-soft,#e6f4eb);color:#27734c}.person-result-badge.below{background:var(--legacy-soft,#fff2db);color:#8c6321}.director-extra{margin-top:24px;border:1px solid #dce6ef;border-radius:12px;background:var(--legacy-panel,#fff);padding:20px}.director-extra>summary{cursor:pointer;font-size:15px;font-weight:600;color:#254a65}.director-extra>summary span{float:right;color:#72899c;font-weight:400;font-size:12px}.person-performance-modal{width:720px;max-width:calc(100vw - 32px)}.person-performance-modal .analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.person-performance-modal .modal-close{background:transparent;padding:0;color:#6b859a;font-size:24px;flex-shrink:0}.person-detail-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.person-detail-summary>div{padding:20px;background:var(--legacy-soft,#f1f7fc);border-radius:10px}.person-detail-summary>div>span:first-child{font-size:12px;color:#638198}.person-performance-modal table{width:100%;min-width:300px}.performance-metrics{margin-bottom:20px}.director-people .performance-panel-heading h2{font-size:20px}@media(max-width:650px){.director-extra{padding:16px}.director-extra>summary span{float:none;display:block;margin-top:8px}}
.director-people>.table-scroll{max-height:60vh;overflow:auto}.director-table thead th{position:sticky;top:0;z-index:2}.director-table td{padding:12px 16px}.director-table .person-result-number{font-size:21px}.director-table .person-result-meta{margin:3px 0;font-size:11px}

/* GOPE visual identity. Theme applied before first paint; no data or rules change. */
:root{--page:#f3f6f8;--surface:#fff;--surface-soft:#edf4f7;--text:#173c4c;--muted:#637f8d;--line:#d8e5eb;--brand:#087f9c;--brand-bright:#04bdd4;--blue:var(--brand);--cyan:var(--brand-bright);--shadow:0 5px 22px #143c4b08;color:var(--text);background:var(--page);color-scheme:light;font-family:"Segoe UI",Arial,sans-serif}
:root[data-theme=dark]{--page:#061d27;--surface:#0a2834;--surface-soft:#103541;--text:#e3f0f5;--muted:#93b0bf;--line:#1c4553;--brand:#36d3dc;--brand-bright:#23c1de;--shadow:0 5px 22px #0002;color-scheme:dark}
body{background:var(--page);color:var(--text)}a{color:var(--brand)}h1,h2,h3,h4{color:var(--text)}small,.muted{color:var(--muted)}p{line-height:1.6}
.sidebar{width:240px;padding:28px 14px 16px;background:var(--surface);color:var(--text);border-right:1px solid var(--line)}.sidebar .brand{padding:4px 10px 16px;display:block}.sidebar .brand img{border-radius:10px;max-height:90px;object-fit:contain}.nav-label{color:var(--muted);font-size:10px;letter-spacing:1.5px;margin:25px 12px 10px}.sidebar nav{gap:7px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:14px;min-height:46px}.sidebar nav a:hover{background:var(--surface-soft);color:var(--text)}.sidebar nav a[aria-current=page]{background:var(--surface-soft);border-color:var(--line);box-shadow:inset 3px 0 var(--brand-bright);color:var(--text);font-weight:600}.nav-number{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;background:var(--surface-soft);color:var(--brand);border-radius:7px;font-size:13px}.nav-number svg{width:18px;height:18px}
.sidebar-footer{margin-top:auto;padding:14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:11px;color:var(--muted)}.sidebar-user{display:flex;flex-direction:column;gap:5px;padding:14px 0;margin:12px 0;border-top:1px solid var(--line)}.sidebar-user small{font-size:9px;letter-spacing:1px}.sidebar-user strong{font-size:13px;color:var(--text)}.sidebar-user span{font-size:11px;overflow-wrap:anywhere}.sidebar-footer form{margin:0}.sidebar-footer form button{width:100%;margin:0;background:var(--brand);color:white}.theme-toggle{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;font-size:12px;background:transparent;color:var(--text);border:1px solid var(--line);border-radius:8px;white-space:nowrap}.theme-toggle:hover{background:var(--surface-soft);color:var(--brand)}.sidebar-footer>.theme-toggle{width:100%}.theme-toggle [data-theme-symbol]{font-size:17px}
.app-area{margin-left:240px;min-height:100vh;display:flex;flex-direction:column}.app-header{background:var(--surface);border-bottom:1px solid var(--line);height:70px;padding:0 30px;color:var(--text)}.eyebrow{color:var(--brand);letter-spacing:2px}.header-caption{color:var(--text);font-size:13px}.header-status{font-size:10px;letter-spacing:1px;font-weight:700;border:1px solid var(--line);border-radius:20px;background:var(--surface-soft);padding:6px 10px;color:var(--brand)}.content{width:100%;max-width:none;padding:30px;flex:1}.gope-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 30px 0;padding:18px 0;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.gope-footer>span:last-child{display:flex;align-items:center;gap:6px}.gope-footer img{width:58px;height:22px;object-fit:contain}
button,.button{background:var(--brand);border-radius:8px;color:white}button:hover,.button:hover{background:#076b83;color:white}button.secondary{background:var(--surface-soft);color:var(--text);border:1px solid var(--line)}:root[data-theme=dark] button:not(.secondary):not(.modal-close):not(.theme-toggle),:root[data-theme=dark] .button{color:#05212b}.content input:not([type=checkbox]):not([type=radio]),.content select,.content textarea{background:var(--surface);border-color:var(--line);color:var(--text)}:focus-visible{outline:2px solid var(--brand-bright);outline-offset:3px}
.panel,.card,.module-card,.person-card,.people-toolbar,.performance-panel,.performance-metric,.performance-filters,.welcome,.content>form,.content>section>form:not(.filters form),.weekly-week{background:var(--surface);border-color:var(--line);color:var(--text);box-shadow:var(--shadow)}.panel h2,.card h2,.module-card h2,.person-card h2{color:var(--text)}.section-navigation{border-color:var(--line)}.section-navigation a{color:var(--muted)}.section-navigation a[aria-current=page],.section-navigation a:hover{background:var(--surface-soft);color:var(--brand)}.people-eyebrow{color:var(--brand)}
.module-card{border-radius:12px;padding:24px;transition:border-color .15s,background .15s}.module-card:hover{border-color:var(--brand);background:var(--surface-soft)}.module-card .module-icon{color:var(--brand);background:var(--surface-soft);border-radius:7px;padding:5px 8px}.module-card p,.module-card .module-link,.people-heading p,.performance-heading p{color:var(--muted)}.welcome{background:transparent;border:0;border-bottom:1px solid var(--line);padding:0 0 22px;box-shadow:none}.welcome h1{color:var(--text);font-size:28px}.welcome p{color:var(--muted);max-width:800px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1100px}.module-card h2{margin:16px 0 10px}.home-heading .people-eyebrow{font-size:11px}.home-heading h1{margin-top:10px}
.import-modal{background:var(--surface);border-color:var(--line);color:var(--text);box-shadow:0 24px 80px #0004}.import-modal::backdrop{background:#02131c99;backdrop-filter:blur(4px)}.import-modal h2,.import-modal h3{color:var(--text)}.import-analysis-modal .analysis-heading,.import-analysis-modal #import-result .section-title{background:var(--surface)}.modal-close{color:var(--muted)}.import-choice-modal .import-choice-options>a{background:var(--surface-soft);border-color:var(--line)}.import-choice-modal .import-choice-options>a+a{border-color:var(--line)}.import-choice-modal .import-choice-options>a:hover{background:var(--surface);border-color:var(--brand)}.import-choice-modal .import-choice-options strong{color:var(--text)}.import-choice-modal .import-choice-options span{color:var(--muted)}.import-choice-modal .import-option-icon{color:var(--brand);background:var(--surface)}.import-choice-modal .modal-close,.person-performance-modal .modal-close{color:var(--muted)}
.access .app-area{margin-left:0}.access .content{background:var(--surface);border-color:var(--line);color:var(--text)}.access .content.login-workspace{margin:0;max-width:none;border:0;box-shadow:none;border-radius:0;background:transparent;padding:40px 30px}.login-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,420px);gap:90px;align-items:center;max-width:1100px;margin:40px auto}.login-logo{width:245px;padding:0;margin-bottom:38px}.login-logo img{width:100%;border-radius:12px}.login-intro h1{font-size:40px;line-height:1.2;letter-spacing:-1px;margin:16px 0 20px}.login-intro p{color:var(--muted);max-width:480px;font-size:15px}.login-intro ul{padding:0;list-style:none;color:var(--muted);font-size:13px;display:grid;gap:14px;margin-top:28px}.login-intro li:before{content:'✓';display:inline-grid;place-items:center;width:21px;height:21px;margin-right:12px;border-radius:5px;background:var(--surface-soft);color:var(--brand);font-weight:700}.login-card{padding:32px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:16px;box-shadow:var(--shadow)}.login-card h2{font-size:24px;margin:18px 0 10px}.login-card p{font-size:13px;color:var(--muted)}.login-card form{padding:0;background:transparent;border:0;margin:24px 0 16px}.login-card label{display:block;font-size:13px;margin-top:18px}.login-card input{display:block;width:100%;height:44px;margin-top:8px}.login-card form button{width:100%;margin-top:22px}.login-card>a{font-size:12px;display:block;margin-top:12px}.access{background:radial-gradient(ellipse at 15% 10%,var(--surface-soft),transparent 70%),var(--page)}.login-card [role=alert]{color:#b95353}
/* Existing operational surfaces use theme tokens without changing geometry. */
:root[data-theme=dark] .content .person-card .people-avatar{background:var(--surface-soft);color:var(--brand)}:root[data-theme=dark] .content .person-card .people-status{background:#173e36;color:#9ed7bd}:root[data-theme=dark] .content .person-card-activity,:root[data-theme=dark] .content .person-card-actions{border-color:var(--line)}:root[data-theme=dark] .content .person-card .people-team-tag{background:var(--surface-soft);color:var(--brand)}
:root[data-theme=dark] .content :is(p,small,label,summary,th,td,dt,dd){color:var(--muted)}:root[data-theme=dark] .content :is(h1,h2,h3,h4,strong,b){color:var(--text)}
:root[data-theme=dark] .content :is(.scope,.copy-data,.section-nav,.data-filter,.people-toolbar,.performance-tracking-note,.performance-empty-note,.director-extra,.person-detail-summary>div,.executive-team-panel .performance-panel-heading,.data-heading-status,.weekly-summary-inline){background:var(--surface-soft);border-color:var(--line);color:var(--muted)}
:root[data-theme=dark] .content :is(table,th,td){border-color:var(--line)}:root[data-theme=dark] .content table{background:var(--surface)}:root[data-theme=dark] .content th{background:var(--surface-soft);color:var(--text)}:root[data-theme=dark] .content tbody tr td{background:var(--surface);color:var(--muted)}:root[data-theme=dark] .content tbody tr:nth-child(even) td{background:#0c2c38}:root[data-theme=dark] .content tbody tr:hover td{background:#123c49}
:root[data-theme=dark] .data-workspace .data-sheet{background:var(--page);border-color:var(--line);scrollbar-color:#386371 var(--page)}:root[data-theme=dark] .data-workspace .data-sheet table{background:transparent}:root[data-theme=dark] .data-workspace .data-sheet th{background:#164759;color:var(--text)}:root[data-theme=dark] .data-workspace .data-sheet tbody tr.selectable-data-row td{background:transparent;border-bottom-color:var(--line);color:var(--muted)}:root[data-theme=dark] .data-workspace .data-sheet tbody tr.selectable-data-row:hover td,:root[data-theme=dark] .data-workspace .data-sheet tbody tr[aria-selected=true] td{background:var(--surface-soft)}:root[data-theme=dark] .content :is(.data-filter input[type=search],.data-toolbar-new){background:var(--surface);color:var(--text);border-color:var(--line)}
:root[data-theme=dark] .performance-week-bars>div,:root[data-theme=dark] .performance-track{background:var(--surface-soft)}:root[data-theme=dark] .performance-people tbody tr:nth-child(even) td{background:#0c2c38}:root[data-theme=dark] .person-result-badge.met,:root[data-theme=dark] .attainment-met{background:#16493b;color:#84e2b0}:root[data-theme=dark] .person-result-badge.below,:root[data-theme=dark] .attainment-below{background:#493b20;color:#f1d28b}:root[data-theme=dark] .person-result-badge{color:inherit}:root[data-theme=dark] .content :is(.priority-tag,.data-origin,.badge){background:var(--surface-soft);color:#aac8d6}:root[data-theme=dark] .content .weekly-streams a{background:var(--surface);color:var(--muted);border-color:var(--line)}:root[data-theme=dark] .content .weekly-streams a.active{background:var(--surface-soft);color:var(--brand)}:root[data-theme=dark] .content .import-success{background:var(--surface);border-color:var(--line)}:root[data-theme=dark] .content .import-success-heading{background:var(--surface-soft)}
:root[data-theme=dark] .content .data-group-tabs button{background:transparent;color:var(--muted)}:root[data-theme=dark] .content .data-group-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}:root[data-theme=dark] .content button:disabled{color:var(--muted);background:var(--surface-soft);opacity:.6}
:root[data-theme=dark] .content button:disabled:not(.modal-close):not(.theme-toggle){color:var(--muted);background:var(--surface-soft)}:root[data-theme=dark] .content .weekly-week .weekly-alert{color:#f0b476}
:root[data-theme=dark] .content .weekly-week.active,:root[data-theme=dark] .content .weekly-week.current-week{background:var(--surface-soft);border-color:var(--brand)}:root[data-theme=dark] .content .weekly-week span,:root[data-theme=dark] .content .weekly-week small{color:var(--muted)}:root[data-theme=dark] .content .weekly-alert{color:#f0b476}:root[data-theme=dark] .content .data-heading-status{background:transparent}:root[data-theme=dark] .content .import-result-launch{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}:root[data-theme=dark] .content .data-reset-control button{background:#422c32;color:#f4b1b9;border-color:#73434b}
:root[data-theme=dark] .content .person-card,:root[data-theme=dark] .content .person-card footer,:root[data-theme=dark] .content .person-card section{border-color:var(--line)}:root[data-theme=dark] .content .person-avatar{background:var(--surface-soft);color:var(--brand)}:root[data-theme=dark] .content .person-card button{color:#f3a3ae;background:transparent}:root[data-theme=dark] .content .people-toolbar{border-radius:12px;padding:20px}:root[data-theme=dark] .content .person-status{background:#173e36;color:#9ed7bd}:root[data-theme=dark] .content .person-team-tag{background:var(--surface-soft);color:var(--brand)}:root[data-theme=dark] .content .import-choice-options small{background:var(--surface);color:var(--brand)}:root[data-theme=dark] .content .import-choice-options small:not(.import-file-tag){background:#46391e;color:#f2ce85}
@media(max-width:1000px){.sidebar{width:210px}.app-area{margin-left:210px}.content{padding:24px}.login-layout{gap:35px}.login-intro h1{font-size:32px}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:12px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}.sidebar .brand{max-width:170px;padding:0 0 12px}.sidebar nav{display:flex;flex-wrap:wrap;gap:5px}.sidebar nav a{font-size:12px;min-height:36px;padding:7px}.sidebar nav .nav-label,.sidebar>.nav-label{display:none}.nav-number{width:22px;height:22px}.sidebar-footer{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px}.sidebar-footer .sidebar-user{display:none}.sidebar-footer>.theme-toggle{width:auto}.sidebar-footer form{margin-left:auto}.app-area{margin-left:0}.app-header{padding:12px 16px;height:auto;min-height:58px}.header-status{display:none}.header-caption{font-size:11px}.content{padding:20px 16px}.gope-footer{margin:10px 16px;flex-wrap:wrap}.module-grid{grid-template-columns:1fr}.login-layout{grid-template-columns:1fr;margin:10px auto;gap:26px}.login-intro h1{font-size:30px}.login-intro ul{display:none}.login-logo{width:180px;margin-bottom:22px}.access .content.login-workspace{padding:24px 18px}.login-card{padding:24px}}

/* Base actions share one row, with the destructive action at the far edge. */
:root[data-theme] .workspace .content.data-workspace .data-sheet-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 0 16px}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-base-import{display:flex;align-items:center;border-left:1px solid var(--line);padding-left:16px;margin-left:4px}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-import-button{margin:0;height:40px;padding:10px 16px;font-size:12px}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-reset-control{margin:0 0 0 auto;border:0;padding:0}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-reset-control button{height:40px;margin:0;padding:9px 14px;display:flex;align-items:center;font-size:12px}
:root[data-theme] .workspace .content.data-workspace .data-page-heading{padding-bottom:18px;margin-bottom:14px}
:root[data-theme] .workspace .content.data-workspace .data-title-line{margin-bottom:0}
.data-import-notice{font-size:12px;margin:0 0 12px}.data-import-notice a{display:inline-flex;align-items:center;text-decoration:none}
@media(max-width:600px){:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-count-badge{margin-left:0}:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-base-import{padding-left:12px;margin-left:0}}
/* Keep the two data actions on the same baseline. */
:root[data-theme] .workspace .content.data-workspace .data-page-heading.data-header-positioned .data-heading-status{align-self:stretch;justify-content:space-between}
:root[data-theme] .workspace .content.data-workspace .data-header-positioned :is(.data-import-button,.data-reset-control button){height:40px;min-height:40px;box-sizing:border-box;margin-bottom:0}
@media(max-width:700px){:root[data-theme] .workspace .content.data-workspace .data-page-heading.data-header-positioned .data-heading-status{align-self:auto;gap:12px}}
/* Manual entry follows the same colored, compact dialog language. */
.workspace .content #new-data-modal .new-record-heading{display:flex;align-items:center;gap:13px}
.workspace .content #new-data-modal .new-record-heading h2{margin:0;font-size:23px}
.workspace .content #new-data-modal .new-record-heading small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.workspace .content #new-data-modal .new-record-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e6f4eb;color:#236442;flex-shrink:0}
.workspace .content #new-data-modal .new-record-icon svg{width:23px;height:23px;margin:0}
:root[data-theme=dark] .workspace .content #new-data-modal .new-record-icon{background:#203e35;color:#a7edc4}
.workspace .content #new-data-modal .new-record-group{min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px 16px 16px;margin:18px 0 0}
.workspace .content #new-data-modal legend{padding:0 7px;font-size:13px;font-weight:600;color:var(--text)}
.workspace .content #new-data-modal legend small{font-size:10px;font-weight:400;color:var(--muted);margin-left:7px}
.workspace .content #new-data-modal .record-group-mark{font-size:10px;margin-right:7px}
.record-mark-blue{color:var(--brand)}.record-mark-amber{color:#b37b12}.record-mark-green{color:#4d8d36}
:root[data-theme=dark] .record-mark-amber{color:#ffc568}:root[data-theme=dark] .record-mark-green{color:#a4df41}
.workspace .content #new-data-modal .new-record-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.workspace .content #new-data-modal .new-record-dates{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace .content #new-data-modal .new-record-field{display:grid;align-content:start;gap:7px;min-width:0}
.workspace .content #new-data-modal .new-record-field label{font-size:12px;color:var(--muted);margin:0}
.workspace .content #new-data-modal .new-record-field input{box-sizing:border-box;width:100%;margin:0;min-width:0;padding:10px 12px}
.workspace .content #new-data-modal .new-record-field small{font-size:10px;color:var(--muted);line-height:1.5}
.workspace .content #new-data-modal .new-record-wide{grid-column:1/-1}
.workspace .content #new-data-modal .record-required{color:var(--brand)}
.workspace .content #new-data-modal .new-record-footer{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:600px){.workspace .content #new-data-modal .new-record-dates{grid-template-columns:1fr}.workspace .content #new-data-modal .new-record-fields{gap:12px}.workspace .content #new-data-modal .new-record-group{padding:12px}}
@media(max-width:400px){.workspace .content #new-data-modal .new-record-fields{grid-template-columns:1fr}}
/* Data heading and base identity. */
.workspace .content.data-workspace .data-title-line{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.workspace .content.data-workspace .data-title-line h1{margin:0 0 5px}
.workspace .content.data-workspace .data-title-line p{margin:0;font-size:14px}
.workspace .content.data-workspace .data-title-icon{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:14px;background:#e0eaff;border:1px solid #bdd0fa}
.workspace .content.data-workspace .data-title-icon svg{width:29px;height:29px}
:root[data-theme=dark] .workspace .content.data-workspace .data-title-icon{background:#203250;border-color:#344d79}
.workspace .content.data-workspace .data-base-icon{width:23px;height:23px;flex-shrink:0;color:#5c9630}
:root[data-theme=dark] .workspace .content.data-workspace .data-base-icon{color:#a4df41}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-count-badge{background:var(--surface-soft);color:var(--muted);padding:6px 12px;border:1px solid var(--line)}
.workspace .content.data-workspace .data-count-badge b{color:var(--text);font-size:12px;margin-right:4px}
.workspace .content.data-workspace .data-row-fixed-actions .data-archive-link{display:inline-flex;align-items:center;gap:3px;padding:8px;border-radius:7px;text-decoration:none}
.workspace .content.data-workspace .data-archive-link:hover{background:var(--surface-soft);color:var(--text)}
@media(max-width:600px){.workspace .content.data-workspace .data-title-line{gap:12px;align-items:flex-start}.workspace .content.data-workspace .data-title-line p{font-size:12px}.workspace .content.data-workspace .data-sheet-title{flex-wrap:wrap;gap:8px}.workspace .content.data-workspace .data-sheet-title .data-count-badge{margin-left:31px}}
 :root[data-theme] .workspace .content.data-workspace .analysis-status-pending{background:var(--surface-soft);color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace .analysis-status-review{background:#fff1cf;color:#815a08}
:root[data-theme=dark] .workspace .content.data-workspace .analysis-status-review{background:#493a20;color:#ffda86}
/* GOPE: electric blue, graphite and lime; horizontal operational workspace. */
:root[data-theme] .workspace .content.data-workspace .data-heading-status .import-result-launch{display:flex;align-items:center;gap:10px;padding:12px 15px;min-width:190px;background:var(--surface);border-radius:10px}
.workspace .content.data-workspace .import-result-launch>div{display:grid;gap:5px}.workspace .content.data-workspace .import-result-launch>div>span{font-size:11px}.workspace .content.data-workspace .import-result-launch a{font-size:12px;font-weight:600;text-decoration:none}
.workspace .content.data-workspace .analysis-status-icon{display:grid;place-items:center;width:30px;height:30px;background:#e6f4eb;color:#236442;border-radius:8px}.workspace .content.data-workspace .analysis-status-icon .action-icon{margin:0}
:root[data-theme=dark] .workspace .content.data-workspace .analysis-status-icon{background:#203e35;color:#a7edc4}
.workspace .content.data-workspace .data-heading-status .data-reset-control button{display:flex;align-items:center;gap:2px;border-radius:8px}
:root[data-theme] .workspace .content #view-row-modal .data-priority-form{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 18px;margin:20px 0 0;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px}
.workspace .content #view-row-modal .data-priority-form label{font-size:12px;letter-spacing:.2px;color:var(--muted)}
.workspace .content #view-row-modal .data-priority-form select{min-width:150px;margin:0}
.workspace .content #view-row-modal .data-priority-form button{margin:0 0 0 auto;font-size:12px}
.workspace .content #view-row-modal .record-footer{border:0;margin-top:16px;padding:16px 0 0;gap:14px}
.workspace .content #view-row-modal .record-footer .data-view-actions{gap:12px}
.workspace .content #view-row-modal .record-footer :is(button,a){font-size:13px;padding:11px 15px;white-space:nowrap}
:root[data-theme] .workspace .content #view-row-modal .record-footer #row-edit-link{background:var(--brand);color:white;border:1px solid var(--brand);border-radius:7px}
:root[data-theme=dark] .workspace .content #view-row-modal .record-footer #row-edit-link{color:#101622}
@media(max-width:520px){.workspace .content #view-row-modal .data-priority-form button{width:100%;margin:0}.workspace .content #view-row-modal .record-footer{flex-wrap:wrap}.workspace .content #view-row-modal .record-footer .data-view-actions{margin-left:auto}}
/* Refined data workspace: one action rail and a quiet, continuous sheet. */
.workspace .content.data-workspace .data-page-heading{padding:8px 0 22px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.workspace .content.data-workspace .data-heading-main h1{font-size:34px;letter-spacing:-1px;margin-bottom:6px}
.workspace .content.data-workspace .data-sheet-title{display:flex;align-items:center;gap:12px;padding:18px 2px 14px}
.workspace .content.data-workspace .data-sheet-title strong{font-size:15px}.workspace .content.data-workspace .data-sheet-title span{border-radius:20px;padding:5px 10px;font-size:11px}
.workspace .content.data-workspace .data-table-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.workspace .content.data-workspace .data-table-toolbar .data-filter{margin:0;padding:0;background:transparent;box-shadow:none;border:0}
.workspace .content.data-workspace .data-table-toolbar .data-filter form{gap:8px;margin:0}
.workspace .content.data-workspace .data-table-toolbar .data-filter input[type=search]{width:340px;background:var(--page);border-color:var(--line)}
.workspace .content.data-workspace .data-row-tools{margin:0;padding-left:18px;border-left:1px solid var(--line);gap:6px}
.workspace .content.data-workspace #row-selection-label{font-size:11px;color:var(--muted);width:auto}
.workspace .content.data-workspace .data-row-fixed-actions{gap:12px}
.workspace .content.data-workspace .data-row-fixed-actions a{font-size:12px;color:var(--muted)}
.workspace .content.data-workspace .data-toolbar-new{margin-left:auto}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs{border:0;gap:8px;margin:24px 0 12px}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button{display:flex;align-items:center;gap:9px;padding:10px 15px;border:1px solid transparent;border-radius:8px;color:var(--muted);background:transparent}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button[aria-selected=true]{background:var(--surface);border-color:var(--line);color:var(--text);box-shadow:var(--shadow)}
.data-section-icon{width:21px;height:21px;color:var(--brand)}.data-section-icon .icon-detail{stroke:var(--muted)}
:root[data-theme=dark] #data-tab-tests .data-section-icon{color:#a4df41}:root[data-theme=dark] #data-tab-reports .data-section-icon{color:#ffc568}
:root[data-theme] .workspace .content.data-workspace .data-sheet{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:auto}
.workspace .content.data-workspace .data-sheet table{border-collapse:separate;border-spacing:0;margin:0}
:root[data-theme] .workspace .content.data-workspace .data-sheet table thead th{background:var(--surface);color:var(--muted);padding:16px 12px;border:0;border-bottom:2px solid var(--line);font-size:12px;font-weight:600}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody tr.selectable-data-row td{background:var(--surface);border-bottom:1px solid var(--line)}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody tr.selectable-data-row:nth-child(even) td{background:var(--page)}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody tr.selectable-data-row:hover td{background:var(--surface-soft)}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody tr.selected-data-row td{background:#dce8ff!important;color:#20385d!important}
:root[data-theme=dark] .workspace .content.data-workspace .data-sheet table tbody tr.selected-data-row td{background:#293d61!important;color:#ecf1ff!important}
@media(max-width:800px){.workspace .content.data-workspace .data-table-toolbar{gap:12px;padding:14px}.workspace .content.data-workspace .data-row-tools{border:0;padding:0}.workspace .content.data-workspace .data-table-toolbar .data-filter{flex:1 1 100%}.workspace .content.data-workspace .data-table-toolbar .data-filter input[type=search]{width:100%}.workspace .content.data-workspace .data-group-tabs button{padding:9px 10px;font-size:12px}}
.action-icon{width:17px;height:17px;display:inline-block;vertical-align:-3px;margin-right:7px;flex-shrink:0}
:root[data-theme] .workspace .content button[data-action-tone=blue]:not(:disabled){background:var(--brand);color:#fff;border:1px solid var(--brand)}
:root[data-theme=dark] .workspace .content button[data-action-tone=blue]:not(:disabled){color:#101622}
:root[data-theme] .workspace .content button[data-action-tone=green]:not(:disabled){background:#e6f4eb;color:#236442;border:1px solid #8fc4a4}
:root[data-theme=dark] .workspace .content button[data-action-tone=green]:not(:disabled){background:#203e35;color:#a7edc4;border-color:#4b8a70}
:root[data-theme] .workspace .content button[data-action-tone=green]:not(:disabled):hover{background:#cee8da;color:#194e32}
:root[data-theme=dark] .workspace .content button[data-action-tone=green]:not(:disabled):hover{background:#2d5446;color:#e0ffee}
:root[data-theme=dark] .workspace .sidebar nav a[href='/']{--icon-color:#55dce5}
:root[data-theme=dark] .workspace .sidebar nav a[href='/data/']{--icon-color:#79aaff}
:root[data-theme=dark] .workspace .sidebar nav a[href='/weekly/']{--icon-color:#a4df41}
:root[data-theme=dark] .workspace .sidebar nav a[href='/kpi/']{--icon-color:#ffc568}
:root[data-theme=dark] .workspace .sidebar nav a[href='/ocp/']{--icon-color:#62d9b3}
:root[data-theme=dark] .workspace .sidebar nav a[href='/collaborators/']{--icon-color:#bd9cff}
:root[data-theme=dark] .workspace .sidebar nav a[href='/audit/']{--icon-color:#ef9eb8}
:root[data-theme=dark] .workspace .sidebar nav a .nav-number{color:var(--icon-color,var(--brand));opacity:1}
:root[data-theme=dark] .workspace .sidebar nav a .nav-number svg{stroke-width:1.9}
:root[data-theme=dark] .workspace .sidebar nav a .nav-number svg :is(rect,circle){fill:var(--icon-color,var(--brand));fill-opacity:.12}
:root[data-theme=dark] .gope-home-secondary a[href='/ocp/'] svg{color:#62d9b3}
:root[data-theme=dark] .gope-home-secondary a[href='/collaborators/'] svg{color:#bd9cff}
:root[data-theme=dark] .import-choice-options a:first-child .import-option-icon{color:#79aaff}
:root[data-theme=dark] .import-choice-options a[href*='kpi'] .import-option-icon{color:#ffc568}
:root[data-theme=dark] .import-choice-options a[href='/imports/'] .import-option-icon{color:#62d9b3}
.workspace .content .monthly-goals #monthly-roster-form{max-width:none;width:100%;padding:0;border:0;background:transparent;box-shadow:none}
.monthly-goals .goal-roster-table{table-layout:auto;min-width:1100px}.monthly-goals .goal-roster-table th:first-child{width:75px}.monthly-goals .goal-roster-table th:nth-child(2){min-width:180px}.monthly-goals .goal-roster-table th:nth-child(3){min-width:200px}
.goal-bulk-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-top:20px}.goal-bulk-tools strong{align-self:center}.goal-bulk-tools label{display:grid;gap:6px;font-size:12px}.goal-bulk-tools input{width:140px;margin:0}.goal-bulk-tools button{margin:0}.goal-roster-table{width:100%;min-width:850px;margin:0}.goal-roster-table th{font-size:12px}.goal-roster-table td{vertical-align:top;padding:14px 12px;font-size:13px}.goal-roster-table input[type=number]{width:110px;margin:0}.goal-roster-table select{width:180px;margin:0}.goal-roster-table small{display:block;margin-top:7px;color:var(--muted);font-size:11px}.goal-roster-table input[readonly]{opacity:.4}.goal-availability>summary{cursor:pointer;color:var(--brand);font-size:12px;white-space:nowrap}.goal-availability-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;min-width:290px}.goal-availability-fields label{display:grid;gap:5px;font-size:11px}.goal-availability-fields input{width:145px;margin:0;font-size:12px}.goal-save-bar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);margin-top:16px;font-size:13px;z-index:5}.goal-save-bar button{margin:0;white-space:nowrap}.goal-roster-table .errorlist{color:#d87484;padding-left:14px;font-size:12px}@media(max-width:650px){.goal-save-bar{align-items:stretch;flex-direction:column}.goal-bulk-tools input{width:120px}}
:root[data-theme=dark] .workspace .content :is(button.data-delete-action,.data-view-actions .data-delete-action){background:#422c32;color:#ffc4cc;border:1px solid #8c5361}
:root[data-theme=dark] .workspace .content :is(button.data-delete-action,.data-view-actions .data-delete-action):hover{background:#593743;color:#fff0f3;border-color:#c0798c}
:root[data-theme=dark] .workspace .content button.secondary{background:var(--surface-soft);color:var(--text);border-color:var(--line)}
:root[data-theme=dark] .workspace .content button.secondary:hover{background:#303f58;color:#fff;border-color:#79a2ff}
:root[data-theme=dark] .workspace .content button:disabled{color:#b0bacd!important;background:#263044!important;border-color:#45516a!important;opacity:.7}
:root[data-theme=dark]{--legacy-panel:var(--surface);--legacy-soft:var(--surface-soft)}
:root[data-theme=dark] .workspace .content dialog :is(.issue-full-fields,.issue-full-fields>div,.person-detail-summary>div,.modal-file){background:var(--surface-soft);border-color:var(--line)}
:root[data-theme=dark] .workspace .content dialog :is(dt,.issue-full-fields dt,.helptext){color:var(--muted)}
:root[data-theme=dark] .workspace .content dialog :is(dd,.issue-full-fields dd){color:var(--text)}
:root[data-theme=dark] .workspace .content .data-sheet tbody tr:is(.selected-data-row,[aria-selected=true])>td,
:root[data-theme=dark] .workspace .content .weekly-orders tbody tr:is(.weekly-selected-row,[aria-selected=true])>td{background:#293d61!important;color:#ecf1ff!important;border-bottom-color:#79a2ff}
:root[data-theme=dark] .workspace .content tr:is(.selected-data-row,.weekly-selected-row,[aria-selected=true]) :is(a,strong,small){color:#ecf1ff}
/* Dialogs share theme surfaces, including native file controls. */
:root[data-theme] .workspace .content dialog{background:var(--surface);color:var(--text);border-color:var(--line)}
:root[data-theme] .workspace .content dialog .modal-file{background:var(--surface-soft);border-color:var(--line)}
:root[data-theme] .workspace .content dialog :is(.modal-intro,.modal-note,.modal-file label,.modal-file label span,.modal-actions a,.analysis-timer-caption,.operation-caption){color:var(--muted)}
:root[data-theme] .workspace .content dialog input[type=file]{color:var(--text)}
:root[data-theme] .workspace .content dialog input[type=file]::file-selector-button{background:var(--surface);color:var(--brand);border-color:var(--line)}
:root[data-theme] .workspace .content dialog input[type=file]::file-selector-button:hover{background:var(--surface-soft)}
:root[data-theme] .workspace .content dialog :is(input:not([type=file]):not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface-soft);color:var(--text);border-color:var(--line)}
:root[data-theme] .workspace .content dialog :is(.analysis-heading,.modal-heading){background:transparent;color:var(--text)}
:root[data-theme] .workspace .content dialog :is(.modal-close,.modal-close:hover){background:transparent;color:var(--muted)}
:root[data-theme=dark] .workspace .content dialog .errorlist{color:#f4b1b9}
.monthly-goals{max-width:1350px;margin:auto}.monthly-goal-filter{display:flex;align-items:flex-end;gap:14px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.monthly-goal-filter label{display:grid;gap:6px;font-size:13px}.monthly-goal-filter input{margin:0}.monthly-goal-help{font-size:13px;color:var(--muted);line-height:1.7}.monthly-goal-list{display:grid;gap:10px;margin:20px 0}.monthly-goal-person{border:1px solid var(--line);border-radius:10px;background:var(--surface)}.monthly-goal-person>summary{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;list-style:none;padding:20px}.monthly-goal-person summary small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}.monthly-goal-summary{display:flex;gap:22px;align-items:center;font-size:13px;color:var(--muted)}.monthly-goal-edit{color:var(--brand)}.monthly-goal-form{padding:20px;border-top:1px solid var(--line);background:transparent}.monthly-goal-active{display:flex;gap:8px;align-items:center;margin-bottom:18px}.monthly-goal-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.monthly-goal-fields label{display:grid;gap:8px;font-size:13px}.monthly-goal-fields input,.monthly-goal-fields select{width:100%;margin:0}.monthly-goal-form .errorlist{color:#c45660}.monthly-goal-filter button{margin:0}@media(max-width:850px){.monthly-goal-person>summary{align-items:flex-start;flex-direction:column;gap:12px}.monthly-goal-summary{flex-wrap:wrap;gap:12px}.monthly-goal-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.monthly-goal-filter{flex-wrap:wrap}.monthly-goal-fields{grid-template-columns:1fr}}
/* Compact header: brand, navigation and account share one row. */
.workspace .sidebar>.brand{position:relative}
.workspace .sidebar>.brand::after{content:'';position:absolute;right:-12px;top:50%;transform:translateY(-50%);height:32px;width:2px;border-radius:2px;background:var(--brand-bright)}
@media(max-width:700px){.workspace .sidebar>.brand::after{display:none}}
.workspace .sidebar{grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:18px;padding:10px 28px;min-height:76px}
.workspace .sidebar>.brand{grid-column:1;grid-row:1;max-width:140px}
.workspace .sidebar .brand img{height:50px}
.workspace .sidebar>nav{grid-column:2;grid-row:1;align-items:center;gap:2px;flex-wrap:nowrap}
.workspace .sidebar nav a{padding:12px 10px;min-height:46px;gap:8px;font-size:13px}
.workspace .sidebar-footer{grid-column:3;grid-row:1;gap:14px}
@media(max-width:1250px){.workspace .sidebar{grid-template-columns:125px minmax(0,1fr) auto;padding:10px 20px;gap:12px}.workspace .sidebar-footer .sidebar-user{display:none}.workspace .sidebar nav a{padding:12px 8px}}
@media(max-width:700px){.workspace .sidebar{grid-template-columns:100px minmax(0,1fr);padding:10px 16px;gap:8px 12px;min-height:0}.workspace .sidebar .brand img{height:40px}.workspace .sidebar-footer{grid-column:2;grid-row:1}.workspace .sidebar>nav{grid-column:1/-1;grid-row:2}.workspace .sidebar nav a{padding:10px 9px;min-height:40px;font-size:12px}}
/* Operational sheet keeps the same page gutter and readable theme controls. */
.workspace main.content.data-workspace{padding:30px 36px 48px;min-width:0;box-sizing:border-box}
:root[data-theme] .workspace .content.data-workspace .data-heading-status{background:transparent;align-self:flex-start;padding:0;gap:12px}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button{background:transparent;color:var(--muted);border-radius:0}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace .data-reset-control button{background:#fff0f0;color:#a33643;border:1px solid #e9bcc3}
:root[data-theme=dark] .workspace .content.data-workspace .data-reset-control button{background:#422c32;color:#f4b1b9;border-color:#73434b}
:root[data-theme] .workspace .content.data-workspace .import-result-launch{background:var(--surface-soft);color:var(--muted);border:1px solid var(--line);border-radius:6px}
.workspace .content.data-workspace .import-result-launch a{color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title{color:var(--text);border-color:var(--line)}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title span{background:var(--surface-soft);color:var(--muted)}
.workspace .content.data-workspace .data-group-tabs{border-color:var(--line);margin-top:18px}
@media(max-width:1000px){.workspace main.content.data-workspace{padding:26px 22px 40px}}
@media(max-width:650px){.workspace main.content.data-workspace{padding:22px 16px 36px}}
:root{--page:#f4f6fa;--surface:#fff;--surface-soft:#edf1f8;--text:#1d2d49;--muted:#67758c;--line:#dce2ee;--brand:#235ee8;--brand-bright:#87c923;--shadow:0 8px 30px #243e6410}
:root[data-theme=dark]{--page:#101622;--surface:#192233;--surface-soft:#222e43;--text:#ecf1ff;--muted:#a5b0c7;--line:#303f58;--brand:#79a2ff;--brand-bright:#a4df41;--shadow:0 8px 30px #0002}
.sidebar{position:relative;inset:auto;width:100%;padding:16px 36px 0;display:grid;grid-template-columns:190px minmax(0,1fr);gap:10px 24px;background:var(--surface);border:0;border-bottom:1px solid var(--line);overflow:visible}.sidebar>.brand{grid-column:1;grid-row:1;margin:0;padding:0;display:flex;align-items:center;max-width:160px}.sidebar .brand img{height:58px;width:auto;max-width:100%;border-radius:8px}.sidebar>.nav-label{display:none}.sidebar>nav{grid-column:1/-1;grid-row:2;display:flex;gap:4px;overflow-x:auto;padding:0;min-width:0}.sidebar nav .nav-label{display:none}.sidebar nav a{white-space:nowrap;flex-shrink:0;padding:13px 16px;min-height:48px;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--muted);font-size:13px}.sidebar nav a[aria-current=page]{box-shadow:none;background:transparent;color:var(--brand);border-bottom-color:var(--brand);font-weight:700}.sidebar nav a:hover{background:var(--surface-soft)}.nav-number{background:transparent!important;color:inherit;width:20px;height:20px}.sidebar-footer{grid-column:2;grid-row:1;justify-self:end;display:flex;align-items:center;gap:18px;padding:0;margin:0;background:transparent;border:0;border-radius:0}.sidebar-footer>.theme-toggle{width:auto}.sidebar-user{padding:0;margin:0;border:0;text-align:right;gap:3px}.sidebar-user small{display:none}.sidebar-user strong{font-size:13px}.sidebar-user span{font-size:11px}.sidebar-footer form{margin:0}.sidebar-footer form button{background:var(--surface-soft);color:var(--text);border:1px solid var(--line);padding:9px 14px;width:auto;font-size:12px}.app-area,.access .app-area{margin-left:0}.workspace .app-header{display:none}.content{padding:30px 36px}.gope-footer{margin-left:36px;margin-right:36px}.theme-toggle{border-radius:20px;padding:7px 13px}.workspace button,.workspace .button{border-radius:6px}.panel,.person-card,.performance-panel,.module-card{border-radius:10px}.people-eyebrow{letter-spacing:1.5px}.section-navigation a{border-radius:5px}
.gope-home{max-width:1350px;margin:0 auto}.gope-home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;padding:34px 0 30px;border-bottom:1px solid var(--line);margin-bottom:32px}.gope-home-hero h1{font-size:40px;letter-spacing:-1.5px;margin:12px 0 10px}.gope-home-hero p{font-size:15px;color:var(--muted);max-width:650px;margin:0}.gope-home-mark{padding:12px 0 12px 22px;border-left:4px solid var(--brand-bright);min-width:175px;color:var(--muted);font-size:12px}.gope-home-mark strong{display:block;font-size:15px;color:var(--text);margin-top:7px}.gope-process-heading{margin:0 0 16px;font-size:18px}.gope-process{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.gope-process>a{display:flex;flex-direction:column;text-decoration:none;padding:28px;color:var(--text);position:relative;border-right:1px solid var(--line);min-height:260px}.gope-process>a:last-child{border:0}.gope-process>a:hover{background:var(--surface-soft)}.gope-process-number{font-size:42px;font-weight:300;color:var(--brand);letter-spacing:-2px;margin-bottom:18px}.gope-process h2{font-size:22px;margin:0 0 12px;padding:0}.gope-process p{font-size:13px;color:var(--muted);margin:0 0 22px;line-height:1.7}.gope-process .gope-process-link{margin-top:auto;color:var(--brand);font-size:13px;font-weight:600}.gope-home-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.gope-home-secondary>a{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid var(--line);border-radius:10px;color:var(--text);text-decoration:none;background:var(--surface)}.gope-home-secondary>a:hover{border-color:var(--brand)}.gope-home-secondary svg{width:27px;height:27px;color:var(--brand);flex-shrink:0}.gope-home-secondary strong{font-size:14px}.gope-home-secondary p{font-size:12px;margin:6px 0 0;color:var(--muted)}.gope-home-secondary .arrow{margin-left:auto;color:var(--brand)}
.access{background:var(--page)}.access .app-header{background:transparent;border:0}.login-layout{display:block;max-width:440px;margin:20px auto}.login-intro{display:none}.login-card{border-top:0;border-radius:18px;padding:36px;border:1px solid var(--line);box-shadow:var(--shadow)}.login-card:before{content:'';display:block;width:44px;height:5px;background:var(--brand-bright);margin-bottom:24px;border-radius:3px}.login-card .login-logo{width:185px;margin:0 auto 26px}.login-card .people-eyebrow{display:none}.login-card h2{text-align:center;font-size:25px}.login-card>p{text-align:center}.login-card form button{background:var(--brand);color:#fff;border-radius:6px}.access .content.login-workspace{padding:26px}.access .gope-footer{border:0}
:root[data-theme=dark] .content .data-workspace th,:root[data-theme=dark] .data-workspace .data-sheet th{background:var(--surface-soft)}:root[data-theme=dark] .content tbody tr:nth-child(even) td{background:#1b263a}:root[data-theme=dark] .content tbody tr:hover td{background:#25334d}:root[data-theme=dark] .performance-people tbody tr:nth-child(even) td{background:#1b263a}:root[data-theme=dark] .content .weekly-selected-row td{background:#293d61}:root[data-theme=dark] .content .weekly-week.active,:root[data-theme=dark] .content .weekly-week.current-week{background:var(--surface-soft)}:root[data-theme=dark] .content .person-status,:root[data-theme=dark] .content .person-card .people-status{background:#2a3b25;color:#b4dd96}
@media(max-width:1000px){.sidebar{padding:14px 22px 0}.content{padding:26px 22px}.sidebar nav a{padding:12px}.gope-process>a{padding:22px}.gope-home-hero h1{font-size:34px}.gope-footer{margin-left:22px;margin-right:22px}}@media(max-width:650px){.sidebar{grid-template-columns:100px minmax(0,1fr);padding:12px 14px 0;gap:10px}.sidebar .brand img{height:40px}.sidebar-footer{gap:8px;display:flex}.sidebar-footer .sidebar-user{display:none}.sidebar-footer form{margin:0}.sidebar-footer .theme-toggle{font-size:10px;padding:6px 8px}.sidebar nav{flex-wrap:nowrap}.sidebar nav a{font-size:12px;padding:11px 9px}.content{padding:22px 16px}.gope-home-hero{display:block;padding:16px 0 24px}.gope-home-mark{display:none}.gope-home-hero h1{font-size:30px}.gope-process{grid-template-columns:1fr}.gope-process>a{border-right:0;border-bottom:1px solid var(--line);min-height:0;padding:22px}.gope-process-number{font-size:30px;margin-bottom:10px}.gope-home-secondary{grid-template-columns:1fr}.gope-footer{margin-left:16px;margin-right:16px}.login-card{padding:26px}}
:root[data-theme=light] .brand img,:root[data-theme=light] .login-logo img,:root[data-theme=light] .access-brand img,:root[data-theme=light] .gope-footer img{filter:drop-shadow(0 1px 1px #273654)}.brand img,.login-logo img,.access-brand img,.gope-footer img{background:transparent!important;border:0!important;border-radius:0!important}.gope-footer img{width:78px;height:28px}.gope-process{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}

/* Subtle header surface; emphasis comes from the label color. */
:root[data-theme] .workspace .content.data-workspace .data-sheet table thead th{background:var(--surface);color:#315e98;font-weight:600;text-align:center;vertical-align:middle;border-bottom:2px solid var(--line);border-right:0}
:root[data-theme=dark] .workspace .content.data-workspace .data-sheet table thead th{color:#9dbdf2}

:root[data-theme] .workspace .content.data-workspace .data-sheet table thead th{text-transform:uppercase;letter-spacing:.35px}

/* Center compact values and justify longer descriptions in the data body. */
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td{text-align:center;vertical-align:middle}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td :is(.data-cell-preview,.data-cell-identity){text-align:center}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td:nth-child(7) .data-cell-preview,
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td:nth-child(9) .data-cell-preview,
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td:nth-child(10) .data-cell-preview{text-align:justify;text-align-last:left}

:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td:nth-child(2) .data-cell-identity{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:36px;height:auto;width:100%}
:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td:nth-child(2) .data-cell-identity br{display:none}

:root[data-theme] .workspace .content.data-workspace .data-sheet table tbody td:nth-child(n) .data-cell-preview.data-short-text{text-align:center;text-align-last:center}

:root[data-theme] .workspace .content.data-workspace .data-table-toolbar .data-clear-search{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted);text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}
:root[data-theme] .workspace .content.data-workspace .data-table-toolbar .data-clear-search .action-icon{margin:0;color:var(--brand);width:16px;height:16px}
:root[data-theme] .workspace .content.data-workspace .data-table-toolbar .data-clear-search:hover{color:var(--text);border-color:var(--brand)}

/* Import and search use the same restrained colored treatment as the other actions. */
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled),
:root[data-theme] .workspace .content.data-workspace .data-filter button[data-action-tone=blue]:not(:disabled){background:#e6eefc;color:#315a94;border:1px solid #a9c1e7;box-shadow:none}
:root[data-theme=dark] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled),
:root[data-theme=dark] .workspace .content.data-workspace .data-filter button[data-action-tone=blue]:not(:disabled){background:#203250;color:#b7d1ff;border-color:#466798}
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled):hover,
:root[data-theme] .workspace .content.data-workspace .data-filter button[data-action-tone=blue]:not(:disabled):hover{background:#d6e4fb;color:#214778;border-color:#648dcc}
:root[data-theme=dark] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled):hover,
:root[data-theme=dark] .workspace .content.data-workspace .data-filter button[data-action-tone=blue]:not(:disabled):hover{background:#2b4266;color:#e0ecff;border-color:#79a2ff}

/* A unified search field and a neutral import launcher. */
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:9px;background:var(--page);overflow:hidden;min-width:0}
:root[data-theme] .workspace .content.data-workspace .data-search-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 18%,transparent)}
.workspace .content.data-workspace .data-search-control label{display:flex;flex:1;min-width:0}
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control input[type=search]{border:0;border-radius:0;background:transparent;margin:0;outline:none;box-shadow:none}
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control button[data-action-tone=blue]:not(:disabled){background:transparent;color:var(--text);border:0;border-left:1px solid var(--line);border-radius:0;margin:6px 0;padding:4px 14px;box-shadow:none;font-size:12px}
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control button[data-action-tone=blue]:not(:disabled):hover{background:var(--surface-soft);color:var(--brand)}
.workspace .content.data-workspace .data-search-control button .action-icon{color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled){display:inline-flex;align-items:center;gap:10px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:5px 12px 5px 6px;box-shadow:none;font-weight:600}
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled):hover{background:var(--surface-soft);color:var(--text);border-color:var(--brand)}
.workspace .content.data-workspace .data-import-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#e0eaff;color:#315e98}
:root[data-theme=dark] .workspace .content.data-workspace .data-import-symbol{background:#263b5c;color:#a8c8ff}
.workspace .content.data-workspace .data-import-symbol .action-icon{margin:0;width:17px;height:17px}
.workspace .content.data-workspace .data-import-chevron{width:14px;height:14px;color:var(--muted);margin-left:6px}
@media(max-width:800px){.workspace .content.data-workspace .data-search-control{width:100%}:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control input[type=search]{width:100%}.workspace .content.data-workspace .data-filter form{flex-wrap:wrap}}

/* Center icon-label pairs inside the data actions. */
:root[data-theme] .workspace .content.data-workspace :is(button[data-action-tone],.data-clear-search,.data-archive-link,.data-reset-control button){display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2}
:root[data-theme] .workspace .content.data-workspace :is(button[data-action-tone],.data-clear-search,.data-archive-link,.data-reset-control button) .action-icon{display:block;margin:0;vertical-align:initial;flex-shrink:0}
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled){align-items:center;justify-content:center;gap:10px}
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control button[data-action-tone=blue]:not(:disabled){align-items:center;justify-content:center;gap:8px}

/* Import stays visually light until hover or keyboard focus. */
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled){background:transparent;border-color:transparent;color:var(--text);box-shadow:none;transition:background .15s,border-color .15s}
:root[data-theme] .workspace .content.data-workspace button.data-import-button[data-action-tone=blue]:not(:disabled):is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line);color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace .data-import-button .data-import-symbol{background:transparent;border:0;color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace .data-import-button>span:not(.data-import-symbol){background:transparent;border:0;border-radius:0;padding:0;color:inherit;font-size:12px}

/* Quiet data actions keep their semantic colors and reveal a surface on interaction. */
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-reset-control button{background:transparent;border-color:transparent;color:#ad4654;box-shadow:none;transition:background .15s,border-color .15s}
:root[data-theme=dark] .workspace .content.data-workspace .data-sheet-title .data-reset-control button{color:#efa9b4}
:root[data-theme] .workspace .content.data-workspace .data-sheet-title .data-reset-control button:is(:hover,:focus-visible){background:#fff0f0;border-color:#e9bcc3;color:#a33643}
:root[data-theme=dark] .workspace .content.data-workspace .data-sheet-title .data-reset-control button:is(:hover,:focus-visible){background:#422c32;border-color:#73434b;color:#ffc4cc}
:root[data-theme] .workspace .content.data-workspace button.data-toolbar-new[data-action-tone=green]:not(:disabled){background:transparent;border-color:transparent;color:#286d47;box-shadow:none;transition:background .15s,border-color .15s}
:root[data-theme=dark] .workspace .content.data-workspace button.data-toolbar-new[data-action-tone=green]:not(:disabled){color:#a7edc4}
:root[data-theme] .workspace .content.data-workspace button.data-toolbar-new[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:#e6f4eb;border-color:#8fc4a4;color:#236442}
:root[data-theme=dark] .workspace .content.data-workspace button.data-toolbar-new[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:#203e35;border-color:#4b8a70;color:#d3ffe5}

:root[data-theme] .workspace .content.data-workspace button#row-view-button[data-action-tone=blue]:not(:disabled){background:transparent;border-color:transparent;color:var(--text);box-shadow:none;transition:background .15s,border-color .15s}
:root[data-theme] .workspace .content.data-workspace button#row-view-button[data-action-tone=blue]:not(:disabled) .action-icon{color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace button#row-view-button[data-action-tone=blue]:not(:disabled):is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line);color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace button#row-view-button:disabled{background:transparent!important;border-color:transparent!important;color:var(--muted)!important;opacity:.45;box-shadow:none;cursor:default}

/* Dialog actions share the quiet action style of the data toolbar. */
:root[data-theme] .workspace .content.data-workspace dialog :is(button.secondary,button[data-action-tone],button.data-delete-action,a#row-edit-link){display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:1px solid transparent;color:var(--text);box-shadow:none;border-radius:8px;transition:background .15s,border-color .15s}
:root[data-theme] .workspace .content.data-workspace dialog :is(button.secondary,button[data-action-tone],button.data-delete-action,a#row-edit-link) .action-icon{margin:0;display:block}
:root[data-theme] .workspace .content.data-workspace dialog button[data-action-tone=green]:not(:disabled){color:#286d47}
:root[data-theme=dark] .workspace .content.data-workspace dialog button[data-action-tone=green]:not(:disabled){color:#a7edc4}
:root[data-theme] .workspace .content.data-workspace dialog :is(button[data-action-tone=red],button.data-delete-action){color:#ad4654}
:root[data-theme=dark] .workspace .content.data-workspace dialog :is(button[data-action-tone=red],button.data-delete-action){color:#efa9b4}
:root[data-theme] .workspace .content.data-workspace dialog a#row-edit-link{color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace dialog :is(button.secondary,a#row-edit-link):is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line);color:var(--text)}
:root[data-theme] .workspace .content.data-workspace dialog button[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:#e6f4eb;border-color:#8fc4a4;color:#236442}
:root[data-theme=dark] .workspace .content.data-workspace dialog button[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:#203e35;border-color:#4b8a70;color:#d3ffe5}
:root[data-theme] .workspace .content.data-workspace dialog :is(button[data-action-tone=red],button.data-delete-action):is(:hover,:focus-visible){background:#fff0f0;border-color:#e9bcc3;color:#a33643}
:root[data-theme=dark] .workspace .content.data-workspace dialog :is(button[data-action-tone=red],button.data-delete-action):is(:hover,:focus-visible){background:#422c32;border-color:#73434b;color:#ffc4cc}

/* Override older per-dialog button fills so resting actions match the import launcher. */
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.secondary,button[data-action-tone],button.data-delete-action,a#row-edit-link){background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px}
:root[data-theme] .workspace .content.data-workspace #view-row-modal a#row-edit-link{color:var(--text)}
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) button[data-action-tone=green]{color:#286d47}
:root[data-theme=dark] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) button[data-action-tone=green]{color:#a7edc4}
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.data-delete-action,button[data-action-tone=red]){color:#ad4654}
:root[data-theme=dark] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.data-delete-action,button[data-action-tone=red]){color:#efa9b4}
:root[data-theme] .workspace .content.data-workspace #view-row-modal a#row-edit-link .action-icon{color:var(--brand)}
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.secondary,button[data-action-tone],button.data-delete-action,a#row-edit-link):is(:hover,:focus-visible){background:var(--surface-soft)!important;border-color:var(--line)!important}
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) button[data-action-tone=green]:is(:hover,:focus-visible){background:#e6f4eb!important;border-color:#8fc4a4!important}
:root[data-theme=dark] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) button[data-action-tone=green]:is(:hover,:focus-visible){background:#203e35!important;border-color:#4b8a70!important}
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.data-delete-action,button[data-action-tone=red]):is(:hover,:focus-visible){background:#fff0f0!important;border-color:#e9bcc3!important}
:root[data-theme=dark] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.data-delete-action,button[data-action-tone=red]):is(:hover,:focus-visible){background:#422c32!important;border-color:#73434b!important}

/* Preserve semantic colors for dialog labels and icons, including hover. */
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) button[data-action-tone=green]{color:#286d47!important}
:root[data-theme=dark] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) button[data-action-tone=green]{color:#a7edc4!important}
:root[data-theme] .workspace .content.data-workspace #view-row-modal a#row-edit-link{color:#315e98!important}
:root[data-theme=dark] .workspace .content.data-workspace #view-row-modal a#row-edit-link{color:#a8c8ff!important}
:root[data-theme] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.data-delete-action,button[data-action-tone=red]){color:#ad4654!important}
:root[data-theme=dark] .workspace .content.data-workspace :is(#view-row-modal,#new-data-modal,#reset-data-modal) :is(button.data-delete-action,button[data-action-tone=red]){color:#efa9b4!important}

/* New-entry footer retains clear button shapes within the long form. */
:root[data-theme] .workspace .content.data-workspace #new-data-modal .new-record-footer button.secondary{background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--text)!important;padding:11px 17px;min-height:42px}
:root[data-theme] .workspace .content.data-workspace #new-data-modal .new-record-footer button[data-action-tone=green]{background:#e6f4eb!important;border-color:#8fc4a4!important;color:#236442!important;padding:11px 17px;min-height:42px}
:root[data-theme=dark] .workspace .content.data-workspace #new-data-modal .new-record-footer button[data-action-tone=green]{background:#203e35!important;border-color:#4b8a70!important;color:#a7edc4!important}
:root[data-theme] .workspace .content.data-workspace #new-data-modal .new-record-footer button.secondary:is(:hover,:focus-visible){border-color:var(--brand)!important}
:root[data-theme] .workspace .content.data-workspace #new-data-modal .new-record-footer button[data-action-tone=green]:is(:hover,:focus-visible){background:#cee8da!important;color:#194e32!important}
:root[data-theme=dark] .workspace .content.data-workspace #new-data-modal .new-record-footer button[data-action-tone=green]:is(:hover,:focus-visible){background:#2d5446!important;color:#e0ffee!important}

/* Date inputs share a baseline even when a label wraps. */
.workspace .content #new-data-modal .new-record-dates .new-record-field label{min-height:32px;line-height:16px;display:flex;align-items:flex-end}
@media(max-width:600px){.workspace .content #new-data-modal .new-record-dates .new-record-field label{min-height:0}}

/* Shared dialog language based on the approved new-entry form. */
:root[data-theme] .workspace .content dialog.unified-dialog{padding:28px;border-radius:18px;border:1px solid var(--line);background:var(--surface);color:var(--text);max-height:90vh}
.workspace .content .dialog-heading-title{display:flex;align-items:center;gap:13px;min-width:0;margin-bottom:12px}
.workspace .content .dialog-heading-title h2{margin:0;padding:0;font-size:23px;line-height:1.3;color:var(--text)}
.workspace .content .dialog-heading-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#e0eaff;color:#315e98}
.workspace .content .dialog-heading-icon .action-icon{width:22px;height:22px;margin:0}
.workspace .content .dialog-icon-green{background:#e6f4eb;color:#236442}.workspace .content .dialog-icon-red{background:#fff0f0;color:#a33643}
:root[data-theme=dark] .workspace .content .dialog-heading-icon{background:#263b5c;color:#a8c8ff}
:root[data-theme=dark] .workspace .content .dialog-icon-green{background:#203e35;color:#a7edc4}
:root[data-theme=dark] .workspace .content .dialog-icon-red{background:#422c32;color:#efa9b4}
.workspace .content .dialog-field-group{min-width:0;margin:20px 0;border:1px solid var(--line);border-radius:10px;padding:16px}
.workspace .content .dialog-field-group legend{padding:0 7px;color:var(--text);font-size:13px;font-weight:600}
.workspace .content .dialog-field-group .edit-row-fields{margin:0;gap:16px}
.workspace .content .dialog-field-group .edit-row-fields p{margin:0}
.workspace .content .dialog-field-group .edit-row-fields label{min-height:32px;display:flex;align-items:flex-end;line-height:16px;font-size:12px;color:var(--muted)}
.workspace .content .dialog-field-group :is(input,select,textarea){width:100%;box-sizing:border-box}
.workspace .content dialog.unified-dialog :is(.analysis-footer-actions,.modal-actions,.import-modal-actions){border-top:1px solid var(--line);padding-top:18px;margin-top:22px;gap:14px}
:root[data-theme] .workspace .content dialog.unified-dialog :is(button.secondary,button[data-action-tone],button.data-delete-action,a#row-edit-link){display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent!important;border:1px solid transparent!important;border-radius:8px;box-shadow:none!important;color:var(--text)!important}
:root[data-theme] .workspace .content dialog.unified-dialog button[data-action-tone=green]{color:#286d47!important}
:root[data-theme=dark] .workspace .content dialog.unified-dialog button[data-action-tone=green]{color:#a7edc4!important}
:root[data-theme] .workspace .content dialog.unified-dialog :is(button[data-action-tone=red],button.data-delete-action){color:#ad4654!important}
:root[data-theme=dark] .workspace .content dialog.unified-dialog :is(button[data-action-tone=red],button.data-delete-action){color:#efa9b4!important}
:root[data-theme] .workspace .content dialog.unified-dialog a#row-edit-link{color:var(--brand)!important}
:root[data-theme] .workspace .content dialog.unified-dialog :is(button.secondary,button[data-action-tone],button.data-delete-action,a#row-edit-link):is(:hover,:focus-visible){background:var(--surface-soft)!important;border-color:var(--line)!important}
.workspace .content dialog.unified-dialog .action-icon{margin:0}
@media(max-width:600px){:root[data-theme] .workspace .content dialog.unified-dialog{padding:20px}.workspace .content .dialog-heading-title h2{font-size:20px}.workspace .content .dialog-field-group .edit-row-fields label{min-height:0}}

/* Complete the shared form and action treatment in dynamically loaded dialogs. */
.workspace .content dialog.unified-dialog .dialog-fields-panel{border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0}
.workspace .content dialog.unified-dialog .dialog-field-group legend span{font-size:10px;margin-right:7px}
.workspace .content dialog.unified-dialog .dialog-field-group label{color:var(--muted);font-size:12px}
.workspace .content dialog.unified-dialog .dialog-field-group .new-record-field{display:grid;gap:7px;min-width:0}
.workspace .content dialog.unified-dialog .dialog-field-group .new-record-field input{margin:0}
.workspace .content dialog.unified-dialog :is(.issue-decision-actions,.issue-editor-actions){border-top:1px solid var(--line);padding-top:18px;margin-top:22px;gap:12px}
:root[data-theme] .workspace .content dialog.unified-dialog :is(.modal-actions,.import-modal-actions,.issue-decision-actions,.issue-editor-actions) :is(button,a){background:transparent!important;border:1px solid transparent!important;color:var(--brand)!important;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;text-decoration:none}
:root[data-theme] .workspace .content dialog.unified-dialog :is(.modal-actions,.import-modal-actions,.issue-decision-actions,.issue-editor-actions) :is(button,a):is(:hover,:focus-visible){background:var(--surface-soft)!important;border-color:var(--line)!important}
.workspace .content dialog.unified-dialog .dialog-field-group .people-form-grid p{margin-bottom:0}

/* Search input and action share one centered text baseline. */
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control{height:44px;align-items:center}
:root[data-theme] .workspace .content.data-workspace .data-search-control label{height:100%;align-items:center}
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control input[type=search]{height:100%;padding:0 12px;line-height:normal;font-size:12px}
:root[data-theme] .workspace .content.data-workspace .data-filter .data-search-control button[data-action-tone=blue]:not(:disabled){height:30px;margin:0;line-height:normal;align-self:center;padding:0 14px}

/* Data tabs reveal their surface on hover while retaining a subtle active marker. */
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button{background:transparent;border:1px solid transparent;border-bottom:2px solid transparent;box-shadow:none;border-radius:8px 8px 0 0;transition:background .15s,border-color .15s}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button[aria-selected=true]{background:transparent;border-color:transparent;border-bottom-color:var(--brand);color:var(--brand);box-shadow:none}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button:is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line);color:var(--text);box-shadow:none}
:root[data-theme] .workspace .content.data-workspace .data-group-tabs button[aria-selected=true]:is(:hover,:focus-visible){border-bottom-color:var(--brand);color:var(--brand)}

/* Shared workspace visuals follow the approved Data screen. */
.shared-page-title{display:flex;align-items:center;gap:14px;margin:10px 0 18px}.shared-page-title h1{margin:0;font-size:32px;line-height:1.25;color:var(--text)}
.shared-page-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:var(--surface-soft);color:var(--brand);border:1px solid var(--line)}.shared-page-icon svg{width:25px;height:25px}
.shared-area-planning .shared-page-icon{color:#548328}.shared-area-kpi .shared-page-icon{color:#9b6e15}.shared-area-people .shared-page-icon{color:#8660b2}.shared-area-ocp .shared-page-icon{color:#248773}
:root[data-theme=dark] .shared-area-planning .shared-page-icon{color:#a4df41}:root[data-theme=dark] .shared-area-kpi .shared-page-icon{color:#ffc568}:root[data-theme=dark] .shared-area-people .shared-page-icon{color:#bd9cff}:root[data-theme=dark] .shared-area-ocp .shared-page-icon{color:#62d9b3}
:root[data-theme] .workspace .content:not(.data-workspace) button:not(.modal-close){display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent!important;border:1px solid transparent!important;border-radius:8px;color:var(--text)!important;box-shadow:none!important;line-height:1.25;transition:background .15s,border-color .15s}
:root[data-theme] .workspace .content:not(.data-workspace) button:not(.modal-close):not(:disabled):is(:hover,:focus-visible){background:var(--surface-soft)!important;border-color:var(--line)!important}
:root[data-theme] .workspace .content:not(.data-workspace) button[data-action-tone=blue]{color:var(--brand)!important}
:root[data-theme] .workspace .content:not(.data-workspace) button[data-action-tone=green]{color:#286d47!important}
:root[data-theme=dark] .workspace .content:not(.data-workspace) button[data-action-tone=green]{color:#a7edc4!important}
:root[data-theme] .workspace .content:not(.data-workspace) button[data-action-tone=red]{color:#ad4654!important}
:root[data-theme=dark] .workspace .content:not(.data-workspace) button[data-action-tone=red]{color:#efa9b4!important}
:root[data-theme] .workspace .content:not(.data-workspace) button[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:#e6f4eb!important;border-color:#8fc4a4!important}
:root[data-theme=dark] .workspace .content:not(.data-workspace) button[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:#203e35!important;border-color:#4b8a70!important}
:root[data-theme] .workspace .content:not(.data-workspace) button[data-action-tone=red]:not(:disabled):is(:hover,:focus-visible){background:#fff0f0!important;border-color:#e9bcc3!important}
:root[data-theme=dark] .workspace .content:not(.data-workspace) button[data-action-tone=red]:not(:disabled):is(:hover,:focus-visible){background:#422c32!important;border-color:#73434b!important}
:root[data-theme] .workspace .content:not(.data-workspace) button:disabled{opacity:.4;cursor:default;background:transparent!important;border-color:transparent!important}
.workspace .content:not(.data-workspace) button .action-icon{margin:0;display:block;flex-shrink:0}
:root[data-theme] .workspace .content:not(.data-workspace) table{border:1px solid var(--line);border-radius:12px;border-spacing:0;background:var(--surface)}
:root[data-theme] .workspace .content:not(.data-workspace) table thead th{background:var(--surface);color:#315e98;text-transform:uppercase;letter-spacing:.35px;font-weight:600;text-align:center;vertical-align:middle;border:0;border-bottom:2px solid var(--line)}
:root[data-theme=dark] .workspace .content:not(.data-workspace) table thead th{color:#9dbdf2}
:root[data-theme] .workspace .content:not(.data-workspace) table tbody td{vertical-align:middle;border-bottom-color:var(--line)}
:root[data-theme] .workspace .content:not(.data-workspace) table tbody tr:nth-child(even)>td{background:var(--page)}
:root[data-theme] .workspace .content:not(.data-workspace) table tbody tr:hover>td{background:var(--surface-soft)}
:root[data-theme] .workspace .content :is(.section-navigation,.weekly-streams) a{background:transparent;border:1px solid transparent;box-shadow:none;border-radius:8px 8px 0 0;padding:10px 14px;text-decoration:none}
:root[data-theme] .workspace .content :is(.section-navigation,.weekly-streams) a[aria-current]{color:var(--brand);border-bottom:2px solid var(--brand)}
:root[data-theme] .workspace .content :is(.section-navigation,.weekly-streams) a:is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line)}
.workspace .content:not(.data-workspace) :is(.filters,.performance-filters,.monthly-goal-filter){border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;gap:16px}
.workspace .content:not(.data-workspace) dialog :is(.analysis-footer-actions,.modal-actions){display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}
@media(max-width:600px){.shared-page-title h1{font-size:26px}.shared-page-icon{flex-basis:42px;width:42px;height:42px}.workspace .content:not(.data-workspace) :is(.filters,.performance-filters,.monthly-goal-filter){padding:12px}}

:root[data-theme] .workspace .content:not(.data-workspace) table tbody td{text-align:center}
.workspace .content:not(.data-workspace) table tbody td :is(form,details,.goal-availability-fields){text-align:left}

/* Header account actions match the quiet workspace buttons. */
:root[data-theme] .workspace .sidebar .sidebar-footer :is(.theme-toggle,form button.secondary){display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:1px solid transparent;color:var(--text);box-shadow:none;border-radius:8px;transition:background .15s,border-color .15s}
:root[data-theme] .workspace .sidebar .sidebar-footer :is(.theme-toggle,form button.secondary):is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line);color:var(--text)}
:root[data-theme] .workspace .sidebar .sidebar-footer .theme-toggle [data-theme-symbol]{color:var(--brand)}

/* Light mode keeps the same colored identity with readable tones on pale surfaces. */
:root[data-theme=light]{--page:#f3f6fb;--surface:#ffffff;--surface-soft:#eaf0f8;--text:#233550;--muted:#62728a;--line:#d5dfec;--brand:#326bb5;--brand-bright:#548a24;--shadow:0 5px 20px #2845680c}
:root[data-theme=light] .workspace .sidebar nav a[href='/']{--icon-color:#168998}
:root[data-theme=light] .workspace .sidebar nav a[href='/data/']{--icon-color:#3975bd}
:root[data-theme=light] .workspace .sidebar nav a[href='/weekly/']{--icon-color:#588a28}
:root[data-theme=light] .workspace .sidebar nav a[href='/kpi/']{--icon-color:#a77819}
:root[data-theme=light] .workspace .sidebar nav a[href='/ocp/']{--icon-color:#22846d}
:root[data-theme=light] .workspace .sidebar nav a[href='/collaborators/']{--icon-color:#8660ad}
:root[data-theme=light] .workspace .sidebar nav a[href='/audit/']{--icon-color:#ad587c}
:root[data-theme=light] .workspace .sidebar nav a .nav-number{color:var(--icon-color,var(--brand));opacity:1}
:root[data-theme=light] .workspace .sidebar nav a .nav-number svg :is(rect,circle){fill:var(--icon-color,var(--brand));fill-opacity:.10}
:root[data-theme=light] .workspace .content .shared-area-planning .shared-page-icon{background:#edf4e6;border-color:#d6e5c5}
:root[data-theme=light] .workspace .content .shared-area-kpi .shared-page-icon{background:#fff4de;border-color:#f0dfbb}
:root[data-theme=light] .workspace .content .shared-area-people .shared-page-icon{background:#f0eafa;border-color:#ded3ee}
:root[data-theme=light] .workspace .content .shared-area-ocp .shared-page-icon{background:#e5f4ef;border-color:#cbe5dc}
:root[data-theme=light] .workspace .content .shared-area-audit .shared-page-icon{background:#faeaf1;border-color:#ead3de;color:#ad587c}
:root[data-theme=light] .workspace .content #data-tab-tests .data-section-icon{color:#588a28}
:root[data-theme=light] .workspace .content #data-tab-reports .data-section-icon{color:#a77819}
:root[data-theme=light] .workspace .content .import-choice-options a:first-child .import-option-icon{color:#3975bd}
:root[data-theme=light] .workspace .content .import-choice-options a[href*='kpi'] .import-option-icon{color:#a77819}
:root[data-theme=light] .workspace .content .import-choice-options a[href='/imports/'] .import-option-icon{color:#22846d}
:root[data-theme=light] .workspace .content .gope-home-secondary a[href='/ocp/'] svg{color:#22846d}
:root[data-theme=light] .workspace .content .gope-home-secondary a[href='/collaborators/'] svg{color:#8660ad}
:root[data-theme=light] .workspace .content table tbody tr:nth-child(even)>td{background:#f5f8fc}
:root[data-theme=light] .workspace .content table tbody tr:hover>td{background:#eaf0f8}

/* Header account group: identity, separator, theme and exit. */
:root[data-theme] .workspace .sidebar .sidebar-footer{display:flex;align-items:center;gap:10px}
:root[data-theme] .workspace .sidebar .sidebar-footer .sidebar-user{order:0;display:flex;flex-direction:column;text-align:right;justify-content:center;padding-right:18px;margin-right:6px;border-right:1px solid var(--line);min-height:36px;gap:2px;line-height:1.4}
:root[data-theme] .workspace .sidebar .sidebar-footer .theme-toggle{order:1;min-height:36px;padding:8px 10px;margin:0;white-space:nowrap}
:root[data-theme] .workspace .sidebar .sidebar-footer form{order:2;margin:0}
:root[data-theme] .workspace .sidebar .sidebar-footer form button{min-height:36px;padding:8px 10px;margin:0}
.account-exit-icon{width:17px;height:17px;flex-shrink:0;color:var(--muted)}
@media(max-width:700px){:root[data-theme] .workspace .sidebar .sidebar-footer{gap:4px}:root[data-theme] .workspace .sidebar .sidebar-footer .sidebar-user{display:none}:root[data-theme] .workspace .sidebar .sidebar-footer .theme-toggle{font-size:10px;padding:6px}:root[data-theme] .workspace .sidebar .sidebar-footer form button{font-size:11px;padding:6px}}

/* Bring the page content closer to the navigation. */
:root[data-theme] .workspace .content{padding-top:18px}
:root[data-theme] .workspace .content.data-workspace .data-page-heading{padding-top:0;padding-bottom:12px;margin-bottom:10px}
@media(max-width:650px){:root[data-theme] .workspace .content{padding-top:16px}}

/* Page headings follow Data: icon and title/description on a single aligned row. */
:root[data-theme] .workspace .content .shared-page-title{align-items:center;gap:16px;margin:0;padding:0 0 14px;border-bottom:1px solid var(--line)}
:root[data-theme] .workspace .content .shared-page-title .shared-page-icon{width:54px;height:54px;flex-basis:54px}
:root[data-theme] .workspace .content .shared-page-title h1{margin:0 0 5px;font-size:34px;letter-spacing:-1px;line-height:1.25}
:root[data-theme] .workspace .content .shared-title-copy p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
:root[data-theme] .workspace .content :is(.performance-heading,.people-heading){margin:0 0 12px;padding:0;border:0}
:root[data-theme] .workspace .content :is(.performance-heading,.people-heading)>div{flex:1;min-width:0}
:root[data-theme] .workspace .content :is(.performance-heading,.people-heading) .people-eyebrow{display:none}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title{margin:0 0 12px;align-items:center}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title>div{flex:1;min-width:0}
:root[data-theme] .workspace .content .section-navigation{margin:0 0 18px;padding-top:0}
@media(max-width:600px){:root[data-theme] .workspace .content .shared-page-title h1{font-size:28px}:root[data-theme] .workspace .content .shared-title-copy p{font-size:12px}}

.weekly-heading-actions{display:flex;align-items:center;gap:12px;margin-left:18px}
:root[data-theme] .workspace .content .weekly-data-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;padding:10px 14px;text-decoration:none;color:var(--text);font-size:13px}
:root[data-theme] .workspace .content .weekly-data-link:is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line)}
.workspace .content .weekly-heading-actions .action-icon{color:var(--brand)}
.workspace .content .planning-settings-modal{width:760px;max-width:calc(100vw - 32px)}
.workspace .content .planning-settings-modal h2:not(#planning-settings-title){font-size:16px;margin:22px 0 12px}
.workspace .content .planning-settings-modal form{padding:16px;border:1px solid var(--line);border-radius:10px;background:transparent}
.workspace .content .planning-settings-modal p{font-size:13px;color:var(--muted)}
@media(max-width:850px){.workspace .content.weekly-workspace>#weekly-panel>.section-title{flex-wrap:wrap}.weekly-heading-actions{margin-left:0;flex-wrap:wrap}}

/* Planning actions sit on their own right-aligned rail below the heading. */
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.weekly-heading-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 12px;padding:4px 0}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title{display:block;margin-bottom:10px}
@media(max-width:600px){:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.weekly-heading-actions{flex-wrap:wrap;gap:8px}}

.workspace .content.weekly-workspace .weekly-navigation-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
.workspace .content.weekly-workspace .weekly-navigation-row .weekly-streams{margin:0;flex:0 1 auto}
.workspace .content.weekly-workspace .weekly-navigation-row .weekly-heading-actions{margin:0 0 0 auto;flex-shrink:0;gap:12px}
@media(max-width:700px){.workspace .content.weekly-workspace .weekly-navigation-row{flex-wrap:wrap;gap:10px}.workspace .content.weekly-workspace .weekly-navigation-row .weekly-heading-actions{flex-wrap:wrap}}

/* Stage tabs use the same restrained interaction as Data, with their own colors. */
:root[data-theme] .workspace .content .weekly-streams{display:flex;gap:12px}
:root[data-theme] .workspace .content .weekly-streams a{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 16px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:8px 8px 0 0;background:transparent;box-shadow:none;text-decoration:none;color:var(--text)}
.workspace .content .weekly-streams a:first-child{--stage-color:#588a28}.workspace .content .weekly-streams a:last-child{--stage-color:#a77819}
:root[data-theme=dark] .workspace .content .weekly-streams a:first-child{--stage-color:#a4df41}:root[data-theme=dark] .workspace .content .weekly-streams a:last-child{--stage-color:#ffc568}
:root[data-theme] .workspace .content .weekly-streams a[aria-current]{border-bottom-color:var(--stage-color);color:var(--text);background:transparent}
:root[data-theme] .workspace .content .weekly-streams a:is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line)}
:root[data-theme] .workspace .content .weekly-streams a[aria-current]:is(:hover,:focus-visible){border-bottom-color:var(--stage-color)}
:root[data-theme] .workspace .content .weekly-streams .weekly-stage-icon{display:flex;align-items:center;justify-content:center;width:28px;flex-shrink:0}
:root[data-theme] .workspace .content .weekly-streams .weekly-stage-icon svg{width:25px;height:25px;color:var(--stage-color)}
:root[data-theme] .workspace .content .weekly-streams .weekly-stage-copy{display:flex;flex-direction:column;gap:4px}
.workspace .content .weekly-streams .weekly-stage-copy strong{font-size:13px;line-height:1.2}
.workspace .content .weekly-streams .weekly-stage-copy small{font-size:11px;line-height:1.3;color:var(--muted)}
@media(max-width:600px){:root[data-theme] .workspace .content .weekly-streams{gap:6px}:root[data-theme] .workspace .content .weekly-streams a{padding:10px;gap:8px}}

:root[data-theme] .workspace .content .weekly-navigation-row .weekly-streams a{flex-direction:row;align-items:center;justify-content:flex-start}
:root[data-theme] .workspace .content .weekly-navigation-row .weekly-streams .weekly-stage-icon{margin:0;align-self:center}

:root[data-theme] .workspace .content .performance-section-tabs{display:flex;gap:12px;border:0;margin:0 0 18px}
:root[data-theme] .workspace .content .performance-section-tabs a{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:62px;padding:10px 16px;background:transparent;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:8px 8px 0 0;color:var(--text)}
.workspace .content .performance-section-tabs a{--stage-color:#a77819}.workspace .content .performance-section-tabs a[href*='targets']{--stage-color:#548328}
:root[data-theme=dark] .workspace .content .performance-section-tabs a{--stage-color:#ffc568}:root[data-theme=dark] .workspace .content .performance-section-tabs a[href*='targets']{--stage-color:#a4df41}
:root[data-theme] .workspace .content .performance-section-tabs a[aria-current]{border-bottom-color:var(--stage-color);color:var(--text)}
:root[data-theme] .workspace .content .performance-section-tabs a:is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line)}
:root[data-theme] .workspace .content .performance-section-tabs a[aria-current]:is(:hover,:focus-visible){border-bottom-color:var(--stage-color)}
.performance-tab-icon{display:flex;align-items:center;justify-content:center;width:28px;color:var(--stage-color);flex-shrink:0}.performance-tab-icon svg{width:25px;height:25px}
.performance-tab-copy{display:flex;flex-direction:column;gap:4px}.performance-tab-copy strong{font-size:13px;line-height:1.2}.performance-tab-copy small{font-size:11px;line-height:1.3;color:var(--muted)}

/* Compact capacity settings, with aligned header and grouped controls. */
:root[data-theme] .workspace .content #planning-settings-modal>.analysis-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
.workspace .content #planning-settings-modal .dialog-heading-title{margin:0}
:root[data-theme] .workspace .content #planning-settings-modal>.analysis-heading .modal-close{position:static;margin:0;padding:6px;flex-shrink:0}
.workspace .content #planning-settings-status:empty{display:none}
.workspace .content .capacity-group{min-width:0;border:1px solid var(--line);border-radius:10px;margin:18px 0 0;padding:14px 16px}
.workspace .content .capacity-group legend{padding:0 7px;font-size:13px;font-weight:600;color:var(--text)}
.workspace .content .capacity-group legend span{font-size:10px;margin-right:7px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-inline-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;border:0;padding:0;margin:12px 0 4px}
.workspace .content .capacity-field{display:grid;gap:7px;flex:0 1 180px}
.workspace .content .capacity-field label{font-size:12px;color:var(--muted)}
.workspace .content .capacity-field input{width:100%;margin:0;height:42px}
.workspace .content .capacity-inline-form button{min-height:42px;margin:0 0 0 auto}
.workspace .content .capacity-help{display:block;margin-top:12px;color:var(--muted);font-size:11px;line-height:1.5}
.workspace .content .capacity-current{margin:0;font-size:12px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-saved-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0;border:0}
.workspace .content .capacity-saved-row input[type=number]{width:110px}
.workspace .content .capacity-group .table-scroll{margin-bottom:0}
@media(max-width:600px){.workspace .content .capacity-inline-form button{margin-left:0}.workspace .content .capacity-field{flex:1 1 140px}}

/* Capacity settings use a compact width and keep actions beside their inputs. */
:root[data-theme] .workspace .content #planning-settings-modal{width:620px;padding:24px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-inline-form{gap:12px;margin:10px 0 0}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-inline-form button{margin:0;min-height:42px;align-self:flex-end;white-space:nowrap}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-field{flex:1 1 145px;max-width:175px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-group{padding:12px 14px;margin-top:16px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-group legend{font-size:12px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-help{margin-top:9px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-group table{margin:8px 0 0}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-group table :is(th,td){padding:9px 12px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-saved-row{justify-content:center;gap:20px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-saved-row input[type=number]{height:36px;margin:0}
@media(max-width:600px){:root[data-theme] .workspace .content #planning-settings-modal{padding:20px}:root[data-theme] .workspace .content #planning-settings-modal .capacity-field{max-width:none}}

/* Use the width of the default-capacity group, rather than stacking on the left. */
.workspace .content #planning-settings-modal .capacity-default-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-default-row .capacity-current{margin:0;flex:1;font-size:12px;line-height:1.5}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-default-row .capacity-inline-form{margin:0;flex:0 1 auto;flex-wrap:nowrap;align-items:center}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-default-row .capacity-field{flex:0 0 100px;max-width:100px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-default-row .capacity-inline-form button{align-self:center}
@media(max-width:520px){.workspace .content #planning-settings-modal .capacity-default-row{flex-wrap:wrap;gap:12px}:root[data-theme] .workspace .content #planning-settings-modal .capacity-default-row .capacity-current{flex-basis:100%}}

/* Capacity settings: two modes and a compact editable list. */
:root[data-theme] .workspace .content #planning-settings-modal .capacity-mode-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-top:18px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-mode-tabs button{border-radius:8px 8px 0 0;border-bottom:2px solid transparent!important;margin:0;padding:11px 14px;font-size:13px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-mode-tabs button[aria-selected=true]{border-bottom-color:var(--brand)!important;color:var(--brand)!important}
.workspace .content #planning-settings-modal .capacity-mode-panel[hidden]{display:none}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:18px 0 8px;border:0;padding:0}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form .capacity-field{flex:1 1 150px;max-width:none}
.workspace .content #planning-settings-modal .capacity-field small{font-size:11px;color:var(--muted)}
.workspace .content #planning-settings-modal .capacity-clean-form button{margin:16px 0 0;padding:10px 12px}
.workspace .content #planning-settings-modal .capacity-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.workspace .content #planning-settings-modal .capacity-list-heading h3{font-size:14px;margin:0}.capacity-list-heading>span{font-size:11px;color:var(--muted)}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-list-row{display:flex;align-items:center;gap:12px;margin:0;padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.capacity-list-row>div{flex:1;min-width:0}.capacity-list-row strong{display:block;font-size:12px}.capacity-list-row small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
.workspace .content #planning-settings-modal .capacity-list-row label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.workspace .content #planning-settings-modal .capacity-list-row input[type=number]{width:76px;height:36px;margin:0}
.workspace .content #planning-settings-modal .capacity-list-row button{margin:0;padding:8px 10px;font-size:12px}
@media(max-width:480px){.workspace .content #planning-settings-modal .capacity-list-row{flex-wrap:wrap}.capacity-list-row>div{flex-basis:100%}.capacity-list-row small{display:none}}

/* Capacity uses the approved bordered groups and centered action alignment. */
.workspace .content #planning-settings-modal .capacity-standard-group{min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:20px 0 0}
.workspace .content #planning-settings-modal .capacity-standard-group legend{padding:0 7px;font-size:12px;font-weight:600;color:var(--text)}
.workspace .content #planning-settings-modal .capacity-standard-group legend span{font-size:10px;margin-right:7px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin:0}
:root[data-theme] .workspace .content #planning-settings-modal #capacity-week-panel .capacity-clean-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form .capacity-field{max-width:none;min-width:0;display:grid;gap:7px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form button{height:42px;margin:23px 0 0;align-self:start}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-list-heading{border:0;padding:0;margin:0 0 4px;justify-content:flex-end}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-list-row:last-child{border-bottom:0;padding-bottom:0}
:root[data-theme] .workspace .content #planning-settings-modal button[data-action-tone=green]{color:#286d47!important}
:root[data-theme=dark] .workspace .content #planning-settings-modal button[data-action-tone=green]{color:#a7edc4!important}
:root[data-theme] .workspace .content #planning-settings-modal button[data-action-tone=green]:is(:hover,:focus-visible){background:#e6f4eb!important;border-color:#8fc4a4!important}
:root[data-theme=dark] .workspace .content #planning-settings-modal button[data-action-tone=green]:is(:hover,:focus-visible){background:#203e35!important;border-color:#4b8a70!important}
@media(max-width:520px){:root[data-theme] .workspace .content #planning-settings-modal #capacity-week-panel .capacity-clean-form{grid-template-columns:1fr 1fr}:root[data-theme] .workspace .content #planning-settings-modal #capacity-week-panel .capacity-clean-form button{grid-column:1/-1;margin:0;justify-self:end}}

/* Both capacity modes reserve an identical action column. */
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form{grid-template-columns:minmax(0,1fr) 140px}
:root[data-theme] .workspace .content #planning-settings-modal #capacity-week-panel .capacity-clean-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 140px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form button{width:140px;height:42px;padding:10px 12px;font-size:13px;box-sizing:border-box;justify-self:end}
@media(max-width:520px){:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form{grid-template-columns:1fr}:root[data-theme] .workspace .content #planning-settings-modal #capacity-week-panel .capacity-clean-form{grid-template-columns:1fr 1fr}:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form button{grid-column:1/-1;margin-top:0;justify-self:end}}

/* One authoritative semantic palette for all workspace action buttons. */
:root[data-theme]{--action-save:#286d47;--action-edit:#315e98;--action-delete:#ad4654;--action-save-bg:#e6f4eb;--action-save-line:#8fc4a4;--action-delete-bg:#fff0f0;--action-delete-line:#e9bcc3}
:root[data-theme=dark]{--action-save:#a7edc4;--action-edit:#a8c8ff;--action-delete:#efa9b4;--action-save-bg:#203e35;--action-save-line:#4b8a70;--action-delete-bg:#422c32;--action-delete-line:#73434b}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone]{background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;line-height:1.2;border-radius:8px}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone=green]{color:var(--action-save)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone=blue]{color:var(--action-edit)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone=red]{color:var(--action-delete)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone=neutral]{color:var(--text)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone]:not(:disabled):is(:hover,:focus-visible){background:var(--surface-soft)!important;border-color:var(--line)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone=green]:not(:disabled):is(:hover,:focus-visible){background:var(--action-save-bg)!important;border-color:var(--action-save-line)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone=red]:not(:disabled):is(:hover,:focus-visible){background:var(--action-delete-bg)!important;border-color:var(--action-delete-line)!important}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone]:disabled{color:var(--muted)!important;opacity:.45;cursor:default}
:root[data-theme] .workspace #main-content#main-content button[data-action-tone] .action-icon{color:inherit;margin:0;flex-shrink:0}
/* Same panel geometry prevents the centered dialog shifting between modes. */
:root[data-theme] .workspace .content #planning-settings-modal .capacity-mode-panel{height:154px;box-sizing:border-box}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form .capacity-field label{height:16px;line-height:16px;margin:0}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form button{margin-top:23px;height:42px;width:140px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-field input{height:42px;margin:0}
@media(max-width:520px){:root[data-theme] .workspace .content #planning-settings-modal .capacity-mode-panel{height:auto;min-height:180px}:root[data-theme] .workspace .content #planning-settings-modal .capacity-clean-form button{margin-top:0}}

.workspace .content.weekly-workspace .weekly-navigation-row .weekly-heading-actions{margin-left:auto;justify-content:flex-end}

.capacity-archive{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.capacity-archive summary{cursor:pointer;font-size:12px;color:var(--brand)}

.capacity-stream-tabs{display:flex;gap:12px;margin-top:18px}.capacity-stream-tabs button{gap:8px}.capacity-stream-tabs button[aria-pressed=true]{border-bottom:2px solid var(--brand)!important;color:var(--brand)!important}.capacity-stream-tabs .data-section-icon{width:20px;height:20px}

/* Stable capacity dialog and unmistakable active-stage markers. */
:root[data-theme] .workspace .content #planning-settings-modal{height:min(740px,90dvh);overflow-y:auto;scrollbar-gutter:stable;box-sizing:border-box}
:root[data-theme] .workspace .content #planning-settings-modal #planning-settings-status{position:absolute;right:24px;bottom:10px;margin:0;font-size:11px;background:var(--surface);color:var(--muted);padding:3px 8px;border-radius:6px;z-index:2}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs{border-bottom:1px solid var(--line);gap:10px}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs button{border:1px solid transparent!important;border-bottom:2px solid transparent!important;border-radius:8px 8px 0 0;margin:0;padding:10px 14px;background:transparent!important}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs button[data-capacity-stream=ENSAIOS]{--capacity-stage:#588a28}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs button[data-capacity-stream=RELATORIO]{--capacity-stage:#a77819}
:root[data-theme=dark] .workspace .content #planning-settings-modal .capacity-stream-tabs button[data-capacity-stream=ENSAIOS]{--capacity-stage:#a4df41}
:root[data-theme=dark] .workspace .content #planning-settings-modal .capacity-stream-tabs button[data-capacity-stream=RELATORIO]{--capacity-stage:#ffc568}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs button[aria-pressed=true]{border-bottom-color:var(--capacity-stage)!important;color:var(--capacity-stage)!important}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs button .data-section-icon{color:var(--capacity-stage)}
:root[data-theme] .workspace .content #planning-settings-modal .capacity-stream-tabs button:is(:hover,:focus-visible){background:var(--surface-soft)!important}

.weekly-status-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:22px 0;padding-top:16px;border-top:1px solid var(--line)}
.weekly-status-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:3px 7px;border-radius:14px;background:var(--surface-soft);font-size:11px;color:var(--text)}
:root[data-theme] .workspace .content .weekly-status-modal{width:1100px;max-width:calc(100vw - 32px)}
:root[data-theme] .workspace .content .weekly-status-modal>.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.workspace .content .weekly-status-modal .table-scroll{max-height:55vh;overflow:auto}

.workspace .content.weekly-workspace .weekly-summary-inline{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.workspace .content.weekly-workspace .weekly-summary-inline .weekly-status-actions{margin:0 0 0 auto;padding:0;border:0;gap:8px}
@media(max-width:700px){.workspace .content.weekly-workspace .weekly-summary-inline .weekly-status-actions{width:100%;justify-content:flex-end}}

/* Week cards share the available width while keeping their content readable. */
.workspace .content.weekly-workspace .weekly-strip{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;overflow:visible;width:100%;box-sizing:border-box}
.workspace .content.weekly-workspace .weekly-strip .weekly-week{flex:1 1 200px;min-width:200px;max-width:none;box-sizing:border-box;padding:18px;gap:9px;overflow-wrap:anywhere}
.workspace .content.weekly-workspace .weekly-strip .weekly-week.current-week{flex:1.3 1 260px;min-width:260px;border-width:2px;padding:20px}
.workspace .content.weekly-workspace .weekly-strip .weekly-week strong{font-size:28px;line-height:1.2}
.workspace .content.weekly-workspace .weekly-strip .weekly-week.current-week strong{font-size:34px}
@media(max-width:520px){.workspace .content.weekly-workspace .weekly-strip .weekly-week,.workspace .content.weekly-workspace .weekly-strip .weekly-week.current-week{flex-basis:100%;min-width:0}.workspace .content.weekly-workspace .weekly-strip .weekly-week.current-week{padding:22px}}

:root[data-theme] .workspace .content.weekly-workspace .weekly-summary-inline{background:transparent;border:0;box-shadow:none}

/* Readable supporting text in weekly planning, in both themes. */
:root[data-theme] .workspace .content.weekly-workspace{--weekly-copy:#52647d;--weekly-risk:#9b520d}
:root[data-theme=dark] .workspace .content.weekly-workspace{--weekly-copy:#bac7dc;--weekly-risk:#ffc17c}
:root[data-theme] .workspace .content.weekly-workspace .weekly-strip .weekly-week{font-size:13px;line-height:1.45}
:root[data-theme] .workspace .content.weekly-workspace .weekly-strip .weekly-week span,
:root[data-theme] .workspace .content.weekly-workspace .weekly-strip .weekly-week small{color:var(--weekly-copy)}
:root[data-theme] .workspace .content.weekly-workspace .weekly-strip .weekly-week .weekly-alert{font-size:12px;font-weight:600;color:var(--weekly-risk)}
:root[data-theme] .workspace .content.weekly-workspace .weekly-rule{font-size:13px;line-height:1.6;color:var(--weekly-copy)}
:root[data-theme] .workspace .content.weekly-workspace .weekly-streams .weekly-stage-copy small{font-size:12px;color:var(--weekly-copy);line-height:1.4}
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row>span{font-size:13px;color:var(--weekly-copy)}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders td small{font-size:12px;line-height:1.5;color:var(--weekly-copy)}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders td .weekly-alert{color:var(--weekly-risk);font-weight:600}

/* Quiet separators between planning summary and action groups. */
:root[data-theme] .workspace .content.weekly-workspace .weekly-summary-inline>span+span{border-left:1px solid var(--line);padding-left:16px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row .weekly-capacity-readout{border-right:1px solid var(--line);padding-right:16px;margin-right:4px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row #weekly-selection-label{border-left:1px solid var(--line);padding-left:16px;margin-left:4px}
@media(max-width:800px){
:root[data-theme] .workspace .content.weekly-workspace .weekly-summary-inline>span+span,
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row .weekly-capacity-readout,
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row #weekly-selection-label{border:0;padding-left:0;padding-right:0;margin-left:0;margin-right:0}
}

@media(min-width:801px){:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row #weekly-execution-button{position:relative;margin-left:12px}:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row #weekly-execution-button::before{content:"";position:absolute;left:-13px;top:50%;transform:translateY(-50%);height:20px;width:1px;background:var(--line);pointer-events:none}}

.workspace .content.weekly-workspace .weekly-control-row .weekly-help-button{margin-left:auto}
:root[data-theme] .workspace .content.weekly-workspace .weekly-help-modal{width:620px;max-width:calc(100vw - 32px)}
.workspace .content.weekly-workspace .weekly-help-modal>.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.workspace .content.weekly-workspace .weekly-help-modal .weekly-rule{margin:18px 0}

/* Unboxed data toolbar and order count. */
:root[data-theme] .workspace .content .data-table-toolbar{background:transparent!important;border:0!important;box-shadow:none!important;padding-left:0;padding-right:0}
:root[data-theme] .workspace .content .data-table-toolbar .data-filter{background:transparent!important;border:0!important;box-shadow:none!important}
:root[data-theme] .workspace .content .data-count-badge{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;padding:0}

/* Open data table: horizontal rules, with feedback only on interaction. */
:root[data-theme] .workspace .content.data-workspace #data-table{background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
:root[data-theme] .workspace .content.data-workspace #data-table table{background:transparent;border-spacing:0}
:root[data-theme] .workspace .content.data-workspace #data-table table thead th{background:var(--page)!important;border:0;border-bottom:2px solid var(--line);border-radius:0;box-shadow:none}
:root[data-theme] .workspace .content.data-workspace #data-table table tbody tr.selectable-data-row td{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0;box-shadow:none}
:root[data-theme] .workspace .content.data-workspace #data-table table tbody tr.selectable-data-row:hover td{background:var(--surface-soft)!important}
:root[data-theme] .workspace .content.data-workspace #data-table table tbody tr.selected-data-row td{background:#dce8ff!important;color:#20385d!important}
:root[data-theme=dark] .workspace .content.data-workspace #data-table table tbody tr.selected-data-row td{background:#293d61!important;color:#ecf1ff!important}

/* Stable identity, date and priority widths across the three data tabs. */
:root[data-theme] .workspace .content.data-workspace #data-table table{table-layout:fixed;width:100%;min-width:1500px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:is(th,td){width:auto;box-sizing:border-box}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(1){width:64px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(2){width:180px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(13),:nth-child(14),:nth-child(15),:nth-child(17),:nth-child(18),:nth-child(19),:nth-child(20)){width:155px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(6){width:80px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(11){width:110px}

/* All data tabs start their records at the same vertical position. */
:root[data-theme] .workspace .content.data-workspace #data-table table thead tr{height:84px}
:root[data-theme] .workspace .content.data-workspace #data-table table thead th{height:84px;padding:12px;box-sizing:border-box;vertical-align:middle;line-height:16px;white-space:normal;overflow-wrap:normal}

/* Share remaining stage width evenly instead of stretching the responsible field. */
:root[data-theme] .workspace .content.data-workspace #data-table.data-group-tests table tr>:nth-child(n+12),
:root[data-theme] .workspace .content.data-workspace #data-table.data-group-reports table tr>:nth-child(n+16){width:auto}

/* Slightly roomier shared columns, with the stage fields sharing the balance. */
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(1){width:80px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(2){width:220px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:is(:nth-child(3),:nth-child(4),:nth-child(5)){width:175px}
:root[data-theme] .workspace .content.data-workspace #data-table table tr>:nth-child(11){width:135px}

/* Planning tables follow the open table appearance approved for Data. */
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders-scroll,
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders{background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders{border-spacing:0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders thead th{background:var(--page)!important;border:0;border-bottom:2px solid var(--line);border-radius:0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders tbody tr td{background:transparent!important;border:0;border-bottom:1px solid var(--line);border-radius:0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders tbody tr:hover td{background:var(--surface-soft)!important}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders tbody tr.weekly-selected-row td{background:#dce8ff!important;color:#20385d!important}
:root[data-theme=dark] .workspace .content.weekly-workspace .weekly-orders tbody tr.weekly-selected-row td{background:#293d61!important;color:#ecf1ff!important}

:root[data-theme] .workspace .content.weekly-workspace .weekly-orders .weekly-deadline-cell{min-width:170px;vertical-align:middle;text-align:center}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders .weekly-deadline-date{display:block;font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;line-height:1.4}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders .weekly-deadline-reference{display:block;margin-top:5px;font-size:12px;line-height:1.4;white-space:nowrap;color:var(--weekly-copy)}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders .weekly-deadline-risk{display:block;margin-top:6px;font-size:11px;line-height:1.4;font-weight:500;color:var(--weekly-risk);white-space:nowrap}

/* Keep weekly table geometry independent of the selected week's contents. */
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders{table-layout:fixed;width:100%;min-width:1200px;font-size:13px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders th{font-size:12px;height:54px;box-sizing:border-box;vertical-align:middle}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders td{font-size:13px;line-height:1.5;overflow-wrap:anywhere;vertical-align:middle}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders td strong:not(.weekly-deadline-date){font-size:13px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders td .weekly-flow-label{font-size:13px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders td small{font-size:12px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-orders .weekly-deadline-risk{font-size:11px}

/* Performance follows the lighter Data and Planning workspace. */
:root[data-theme] .workspace .content .performance-workspace .performance-filters{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;padding:14px 0;max-width:none;display:flex;align-items:flex-end;flex-wrap:wrap;gap:18px}
:root[data-theme] .workspace .content .performance-workspace .performance-filters>[hidden]{display:none!important}
:root[data-theme] .workspace .content .performance-workspace .performance-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:24px 0 30px}
:root[data-theme] .workspace .content .performance-workspace .performance-metric{background:transparent!important;box-shadow:none!important;border:0!important;border-left:1px solid var(--line)!important;border-radius:0;min-height:140px;padding:16px 22px;display:flex;flex-direction:column;gap:10px}
:root[data-theme] .workspace .content .performance-workspace .performance-metric:first-child{border-left:0!important;padding-left:0}
:root[data-theme] .workspace .content .performance-workspace .performance-metric>span{color:var(--muted);font-size:13px}
:root[data-theme] .workspace .content .performance-workspace .performance-metric>strong{color:var(--text);font-size:34px;line-height:1.2}
:root[data-theme] .workspace .content .performance-workspace .performance-metric>strong.performance-untracked-value{font-size:18px}
:root[data-theme] .workspace .content .performance-workspace .performance-metric>small{font-size:12px;color:var(--brand);line-height:1.5}
:root[data-theme] .workspace .content .performance-workspace a.performance-metric:hover{background:var(--surface-soft)!important}
:root[data-theme] .workspace .content .performance-workspace .director-people{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0}
:root[data-theme] .workspace .content .performance-workspace .director-people>.performance-panel-heading{background:transparent!important;padding:16px 0;border:0}
:root[data-theme] .workspace .content .performance-workspace .director-people>.table-scroll,:root[data-theme] .workspace .content .performance-workspace .director-table{background:transparent!important;border:0!important;border-radius:0;box-shadow:none}
:root[data-theme] .workspace .content .performance-workspace .director-table th{background:var(--page)!important;color:var(--brand);border:0;border-bottom:2px solid var(--line);font-size:12px}
:root[data-theme] .workspace .content .performance-workspace .director-table td{background:transparent!important;border:0;border-bottom:1px solid var(--line);font-size:13px}
:root[data-theme] .workspace .content .performance-workspace .director-table tr:hover td{background:var(--surface-soft)!important}
:root[data-theme] .workspace .content .performance-workspace .director-people>.performance-panel-note{padding-left:0;padding-right:0}
@media(max-width:1000px){:root[data-theme] .workspace .content .performance-workspace .performance-metrics{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}}
@media(max-width:600px){:root[data-theme] .workspace .content .performance-workspace .performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}:root[data-theme] .workspace .content .performance-workspace .performance-metric{padding:14px;min-height:130px}}

/* Shared open-table and toolbar appearance across all workspaces and dialogs. */
:root[data-theme] .workspace #main-content#main-content .table-scroll{background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
:root[data-theme] .workspace #main-content#main-content table{background:transparent!important;border:0;border-radius:0;box-shadow:none}
:root[data-theme] .workspace #main-content#main-content table thead th{background:var(--page)!important;color:var(--brand);border-left:0!important;border-right:0!important;border-top:0!important;border-bottom:2px solid var(--line);border-radius:0}
:root[data-theme] .workspace #main-content#main-content dialog table thead th{background:var(--surface)!important}
:root[data-theme] .workspace #main-content#main-content table tbody tr td{background:transparent!important;border-left:0!important;border-right:0!important;border-top:0!important;border-bottom:1px solid var(--line);border-radius:0}
:root[data-theme] .workspace #main-content#main-content table tbody tr:hover td{background:var(--surface-soft)!important}
:root[data-theme] .workspace #main-content#main-content table tbody tr:is(.selected-data-row,.weekly-selected-row,[aria-selected=true]) td{background:#dce8ff!important;color:#20385d!important}
:root[data-theme=dark] .workspace #main-content#main-content table tbody tr:is(.selected-data-row,.weekly-selected-row,[aria-selected=true]) td{background:#293d61!important;color:#ecf1ff!important}
:root[data-theme] .workspace #main-content#main-content :is(.filters,.people-toolbar,.monthly-goal-filter,.performance-filters){background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;padding-left:0;padding-right:0}
:root[data-theme] .workspace #main-content#main-content :is(.performance-panel,.executive-team-panel,.director-extra){background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
:root[data-theme] .workspace #main-content#main-content :is(.performance-panel-heading,.executive-team-panel .performance-panel-heading){background:transparent!important;border:0;padding-left:0;padding-right:0}
:root[data-theme] .workspace #main-content#main-content table tr.data-window-spacer td{background:transparent!important;border:0!important}

.kpi-stage-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:24px 0}.kpi-stage-panel h3{padding-bottom:12px;border-bottom:1px solid var(--line)}
:root[data-theme] .workspace #main-content#main-content .kpi-person-bar{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);padding:14px 0;color:var(--text);border-radius:0;box-shadow:none}
:root[data-theme] .workspace #main-content#main-content .kpi-person-bar:hover{background:var(--surface-soft)}
.kpi-person-label{display:flex;justify-content:space-between;gap:16px;font-size:13px}.kpi-person-label>span,.kpi-person-bar small{color:var(--muted);font-size:12px}.kpi-bar-track{display:block;background:var(--surface-soft);height:8px;border-radius:5px;margin:10px 0;overflow:hidden}.kpi-bar-track>span{display:block;height:100%;background:var(--brand);border-radius:5px}.kpi-bar-track>span.met{background:#63b98b}.kpi-bar-track>span.below{background:#d6a553}
:root[data-theme] .workspace .content .kpi-detail-modal{width:1100px;max-width:calc(100vw - 32px)}.kpi-detail-modal .analysis-heading{display:flex;justify-content:space-between;align-items:center}.kpi-detail-modal .table-scroll{max-height:65vh;overflow:auto}
@media(max-width:800px){.kpi-stage-grid{grid-template-columns:1fr}.kpi-person-label{flex-wrap:wrap}}

.kpi-reference-layout{display:grid;grid-template-columns:minmax(500px,1fr) minmax(400px,1fr);gap:32px;margin-top:28px}.kpi-team-table{width:100%;table-layout:fixed}.kpi-team-table th:first-child{width:34%}.kpi-team-table td{text-align:center;padding:12px}.kpi-team-table td:first-child{text-align:left}.kpi-person-name{background:transparent!important;border:0!important;color:var(--brand)!important;padding:0!important;box-shadow:none!important;font-size:13px!important}.kpi-table-progress{font-size:12px}.kpi-balance{margin:20px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.kpi-balance>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.kpi-balance span{font-size:12px;color:var(--muted);text-align:center;flex:1}.kpi-balance strong{display:block;font-size:26px;color:var(--text);margin-top:10px}.kpi-chart-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--muted);margin:22px 0}.kpi-chart-weeks{display:flex;gap:22px;overflow:auto;padding:20px 0}.kpi-chart-week{flex:1;min-width:120px;text-align:center}.kpi-chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:10px;height:260px;border-bottom:1px solid var(--line);margin-bottom:12px}.kpi-chart-bars>div{height:100%;width:25%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.kpi-chart-bars b{font-size:12px}.kpi-chart-bars span{display:block;width:100%;max-width:34px;min-height:2px;background:var(--brand);border-radius:4px 4px 0 0}.kpi-chart-bars .reports{background:#63b98b}.kpi-chart-bars .previous{background:#d6a553}.kpi-chart-bars .pending{background:#a28cde}
@media(max-width:1100px){.kpi-reference-layout{grid-template-columns:1fr}.kpi-balance>div{flex-wrap:wrap}}

.kpi-reference-layout{display:block}.kpi-team-overview>.kpi-stage-panel{margin-top:26px}.kpi-team-table{min-width:600px}.performance-workspace .executive-week-grid{grid-template-columns:1fr}

.kpi-stage-panel[hidden]{display:none!important}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs{display:flex;gap:12px;margin:18px 0 0;border-bottom:1px solid var(--line)}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button{display:inline-flex;align-items:center;gap:9px;background:transparent;color:var(--muted);padding:12px 16px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:8px 8px 0 0;box-shadow:none;font-size:13px}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand);font-weight:600}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button:is(:hover,:focus-visible){background:var(--surface-soft);border-color:var(--line)}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button[aria-selected=true]:is(:hover,:focus-visible){border-bottom-color:var(--brand)}
.kpi-team-tabs .data-section-icon{width:20px;height:20px}.kpi-team-overview>.kpi-stage-panel{margin-top:12px}

.kpi-settings-actions{display:flex;justify-content:flex-end;margin:12px 0}
:root[data-theme] .workspace .content .kpi-target-modal{width:1200px;max-width:calc(100vw - 32px);padding:24px}
.kpi-target-modal .analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.kpi-target-modal iframe{display:block;width:100%;height:70vh;border:0;margin-top:12px;background:var(--page)}

.kpi-balance>div>a{flex:1;text-align:center;text-decoration:none;padding:12px;border-radius:8px;color:var(--text)}.kpi-balance>div>a:hover{background:var(--surface-soft)}.kpi-balance>div>a>span{font-size:12px;color:var(--muted)}

#team-target-content{max-height:72vh;overflow:auto;margin-top:20px}.kpi-target-modal .monthly-goals{padding:0}

:root[data-theme] .workspace #main-content#main-content .kpi-goals-launch{display:inline-flex;align-items:center;gap:12px;padding:10px 16px;text-align:left}
:root[data-theme] .workspace #main-content#main-content .kpi-goals-launch>.action-icon{width:24px;height:24px;color:var(--lime)}
.kpi-goals-copy{display:flex;flex-direction:column;gap:4px}.kpi-goals-copy strong{font-size:13px;color:var(--text)}.kpi-goals-copy small{font-size:11px;font-weight:400;color:var(--muted)}

:root[data-theme] .workspace #main-content#main-content button.kpi-goals-launch>svg.kpi-goals-icon{display:block;width:20px;height:20px;flex:0 0 20px;color:var(--lime)!important;stroke:currentColor;fill:none;stroke-width:1.7}

.kpi-target-heading-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;background:transparent;border:0}.kpi-target-heading-icon svg{width:32px;height:32px}

.kpi-target-heading-icon{flex-basis:44px;width:44px;height:44px}.kpi-target-heading-icon svg{width:40px;height:40px}

.productivity-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.productivity-cards section{border:1px solid var(--line);border-radius:8px;overflow:hidden;text-align:center}.productivity-cards h3{font-size:11px;text-transform:uppercase;background:var(--surface-soft);margin:0;padding:8px;color:var(--brand)}.productivity-cards a{display:block;text-decoration:none;padding:8px;color:var(--text)}.productivity-cards a>span{font-size:12px}.productivity-cards a>strong{display:block;font-size:28px;line-height:1.3}.productivity-cards a:hover{background:var(--surface-soft)}.productivity-split{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}.productivity-split span{padding:7px;font-size:11px;color:var(--muted)}.productivity-split span+span{border-left:1px solid var(--line)}.productivity-split b{display:block;margin-top:4px;color:var(--text);font-size:18px}.productivity-cards p{font-size:12px;margin:8px}.productivity-cards small{font-size:10px;color:var(--muted)}.productivity-stopped strong{color:#efa9b4}.performance-workspace .kpi-balance{margin:12px 0;padding:8px 0}.kpi-balance h3{font-size:12px;text-align:center;margin:0 0 5px}.kpi-balance>div>a{padding:5px}.kpi-balance strong{font-size:22px;margin-top:4px}
.performance-workspace .kpi-reference-layout{display:grid;grid-template-columns:minmax(440px,1fr) minmax(400px,1fr);gap:24px;margin-top:12px}.kpi-reference-layout h2{font-size:16px;margin:8px 0}.kpi-reference-layout .kpi-team-table{min-width:0}.kpi-reference-layout .kpi-team-table th,.kpi-reference-layout .kpi-team-table td{padding:5px 8px;font-size:12px}.kpi-reference-layout .kpi-bar-track{margin:4px 0;height:5px}.kpi-reference-layout .kpi-team-tabs{margin:4px 0!important}.kpi-reference-layout .kpi-team-tabs button{padding:7px 12px!important}.kpi-reference-layout .kpi-stage-panel{margin-top:4px}.kpi-reference-layout .kpi-chart-bars{height:210px}.kpi-reference-layout .kpi-chart-legend{margin:8px 0;gap:10px;font-size:10px}.kpi-chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;background:var(--brand);margin-right:4px}.kpi-chart-legend span:nth-child(2):before{background:#63b98b}.kpi-chart-legend span:nth-child(3):before{background:#d6a553}.kpi-chart-legend span:nth-child(4):before{background:#a28cde}.kpi-reference-layout .kpi-chart-weeks{padding:10px 0;gap:12px}.kpi-reference-layout .kpi-chart-week{min-width:90px}.performance-workspace .performance-filters{padding:4px 0!important;margin:0!important}.performance-workspace .performance-period{margin:6px 0 12px;font-size:11px}.performance-workspace .kpi-settings-actions{margin:0}.performance-workspace .performance-heading{margin-bottom:8px}.performance-workspace .performance-heading .people-eyebrow{display:none}
@media(max-width:1000px){.performance-workspace .kpi-reference-layout{grid-template-columns:1fr}.productivity-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Match the chart baseline to the active employee table. */
.performance-workspace .kpi-reference-layout{align-items:stretch}
.performance-workspace .kpi-production-chart{display:flex;flex-direction:column;min-height:0}
.performance-workspace .kpi-production-chart .kpi-chart-weeks{flex:1;min-height:260px;align-items:stretch;box-sizing:border-box;padding-bottom:0}
.performance-workspace .kpi-production-chart .kpi-chart-week{display:flex;flex-direction:column}
.performance-workspace .kpi-production-chart .kpi-chart-bars{height:auto;flex:1;min-height:210px;position:relative}
.performance-workspace .kpi-production-chart .kpi-chart-bars>div{position:relative;height:auto;align-self:stretch;padding-top:22px;box-sizing:border-box}
.performance-workspace .kpi-production-chart .kpi-chart-bars>div>span{flex-shrink:0;max-height:calc(100% - 22px)}
.performance-workspace .kpi-production-chart .kpi-chart-week>small{padding-bottom:6px}

/* Measure intrinsic table height; never feed the stretched grid height back. */
.performance-workspace .kpi-reference-layout{align-items:start}
.performance-workspace .kpi-production-chart .kpi-chart-weeks{flex:none}

/* KPI cards share the same visual language as the weekly planning cards. */
:root[data-theme] .workspace .content .productivity-cards{gap:12px}
:root[data-theme] .workspace .content .productivity-cards>section{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 16px;text-align:left;box-sizing:border-box}
:root[data-theme] .workspace .content .productivity-cards h3{background:transparent;color:var(--text);padding:0;margin:0 0 10px;font-size:12px;font-weight:600;text-transform:none}
:root[data-theme] .workspace .content .productivity-cards a{padding:0 0 10px;text-align:left;border-radius:6px}
:root[data-theme] .workspace .content .productivity-cards a>span{color:var(--muted);font-size:12px}
:root[data-theme] .workspace .content .productivity-cards a>strong{font-size:30px;color:var(--text);margin-top:6px;line-height:1.2}
:root[data-theme] .workspace .content .productivity-cards .productivity-split{border-top:1px solid var(--line);margin-top:4px;padding-top:8px;gap:12px}
:root[data-theme] .workspace .content .productivity-cards .productivity-split>span{padding:0;font-size:11px;line-height:1.4;text-align:left}
:root[data-theme] .workspace .content .productivity-cards .productivity-split>span+span{border:0}
:root[data-theme] .workspace .content .productivity-cards .productivity-split b{font-size:18px;margin-top:3px}
:root[data-theme] .workspace .content .productivity-cards p{margin:0 0 10px;color:var(--muted);text-align:left}
:root[data-theme] .workspace .content .productivity-cards small{display:block;margin-top:8px;text-align:left}
:root[data-theme] .workspace .content .productivity-cards .productivity-stopped a>strong{color:var(--action-red)}
:root[data-theme] .workspace .content .productivity-cards section:has(a):hover{border-color:var(--brand)}

/* Compact monitor layout for the productivity dashboard. */
@media(min-width:1100px){
:root[data-theme] .workspace .content:has(.performance-workspace){padding-top:10px;padding-bottom:10px}
.performance-workspace .performance-heading{margin:0!important;padding-bottom:8px!important}
.performance-workspace .shared-page-title h1{font-size:26px}
.performance-workspace .shared-page-icon{width:40px;height:40px;flex-basis:40px}
.performance-workspace .shared-title-copy p{font-size:12px;margin-top:3px}
.performance-workspace .kpi-settings-actions{float:right;margin:4px 0 0}
.performance-workspace .performance-filters{gap:12px!important;padding:8px 0 4px!important}
.performance-workspace .performance-filters label{font-size:11px;margin-bottom:3px}
.performance-workspace .performance-filters :is(input,select){padding:7px 10px;min-height:32px;height:32px;font-size:12px}
.performance-workspace .performance-period{margin:4px 0 8px!important}
:root[data-theme] .workspace .content .productivity-cards>section{padding:10px 12px}
:root[data-theme] .workspace .content .productivity-cards h3{margin-bottom:6px;font-size:11px}
:root[data-theme] .workspace .content .productivity-cards a{padding-bottom:5px}
:root[data-theme] .workspace .content .productivity-cards a>strong{font-size:26px;margin-top:3px}
:root[data-theme] .workspace .content .productivity-cards .productivity-split{padding-top:5px;margin-top:2px}
:root[data-theme] .workspace .content .productivity-cards .productivity-split b{font-size:16px}
.performance-workspace .kpi-balance{margin:8px 0;padding:4px 0}
.performance-workspace .kpi-balance h3{margin-bottom:2px;font-size:11px}
.performance-workspace .kpi-balance strong{font-size:20px;margin-top:2px}
.performance-workspace .kpi-reference-layout{margin-top:6px;gap:20px}
.performance-workspace .kpi-reference-layout h2{font-size:14px;margin:4px 0}
:root[data-theme] .workspace #main-content#main-content .kpi-team-table :is(th,td){padding:4px 8px;font-size:12px;line-height:1.25}
:root[data-theme] .workspace #main-content#main-content .kpi-team-table button{font-size:12px!important;line-height:1.25}
.performance-workspace .kpi-team-table .kpi-bar-track{margin:2px 0}
.performance-workspace .kpi-production-chart .kpi-chart-week>small{font-size:10px}
}

/* Balance indicators use the same card surfaces as the production groups. */
:root[data-theme] .workspace .content .performance-workspace .kpi-balance{border:0;padding:0;margin:10px 0}
.performance-workspace .kpi-balance h3{margin:0 0 6px}
.performance-workspace .kpi-balance>div{gap:8px;align-items:stretch}
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;text-align:left;box-sizing:border-box}
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a:hover{border-color:var(--brand);background:var(--surface-soft)}
.performance-workspace .kpi-balance>div>a>span{display:block;font-size:11px;color:var(--muted)}
.performance-workspace .kpi-balance>div>a>strong{font-size:24px;line-height:1.2;margin-top:6px}
.performance-workspace .kpi-balance>div>b{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:16px;flex:0 0 12px}
@media(min-width:1100px){:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a{padding:8px 12px}.performance-workspace .kpi-balance>div>a>strong{font-size:22px;margin-top:4px}}

:root[data-theme] .workspace .content .productivity-cards .productivity-split>a{padding:4px;margin:-4px;border-radius:6px;font-size:11px;line-height:1.4}
:root[data-theme] .workspace .content .productivity-cards .productivity-split>a>span{font-size:11px;color:var(--muted)}
:root[data-theme] .workspace .content .productivity-cards .productivity-split>a>b{display:block;font-size:18px;color:var(--text);margin-top:3px}

/* Center dashboard values within their respective card sections. */
:root[data-theme] .workspace .content .productivity-cards a>strong,
:root[data-theme] .workspace .content .productivity-cards .productivity-split b,
:root[data-theme] .workspace .content .productivity-cards .productivity-split>a>b,
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a>strong{display:block;width:100%;text-align:center}

/* Card legends echo the grouped fields used in the dialogs. */
:root[data-theme] .workspace .content .productivity-cards>.productivity-card-group{min-width:0;margin:0;padding:10px 14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-sizing:border-box;text-align:left}
:root[data-theme] .workspace .content .productivity-card-group>legend{padding:0 7px;margin-left:0;color:var(--text);font-size:12px;line-height:1.4;font-weight:600}
:root[data-theme] .workspace .content .productivity-card-group:has(a):hover{border-color:var(--brand)}
:root[data-theme] .workspace .content .productivity-card-group>a{background:transparent;border-radius:6px;padding:4px 0 8px}
:root[data-theme] .workspace .content .productivity-card-group>a:hover{background:var(--surface-soft)}
@media(min-width:1100px){:root[data-theme] .workspace .content .productivity-cards>.productivity-card-group{padding:7px 12px 9px}}

/* Compact metric cards with an icon heading and distinct numeric hierarchy. */
:root[data-theme] .workspace .content .productivity-cards>.productivity-card-group{padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.productivity-card-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.productivity-card-heading svg{width:19px;height:19px;flex:0 0 19px}
:root[data-theme] .workspace .content .productivity-card-heading h3{margin:0;padding:0;font-size:12px;color:var(--text);font-weight:600}
.tone-blue svg{color:var(--brand)}.tone-green svg{color:#63b98b}.tone-amber svg{color:#d6a553}.tone-red svg{color:#efa9b4}
:root[data-theme] .workspace .content .productivity-card-group>a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px 0 9px;text-align:center}
:root[data-theme] .workspace .content .productivity-card-group>a>strong{font-size:30px;line-height:1.1;margin:0}
:root[data-theme] .workspace .content .productivity-card-group>a>span{font-size:11px}
:root[data-theme] .workspace .content .productivity-card-group .productivity-split{gap:0;padding-top:8px;margin-top:2px}
:root[data-theme] .workspace .content .productivity-card-group .productivity-split>:is(span,a){margin:0;padding:0 8px;text-align:center;border-radius:0}
:root[data-theme] .workspace .content .productivity-card-group .productivity-split>:is(span,a)+:is(span,a){border-left:1px solid var(--line)}
:root[data-theme] .workspace .content .productivity-card-group .productivity-split b{font-size:17px;margin-top:5px}
:root[data-theme] .workspace .content .productivity-card-group p{text-align:center}
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a{border-top:2px solid var(--brand);text-align:center;padding:8px 12px}
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a:nth-of-type(2){border-top-color:#63b98b}
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a:nth-of-type(3){border-top-color:#d6a553}
:root[data-theme] .workspace .content .performance-workspace .kpi-balance>div>a:nth-of-type(4){border-top-color:#a28cde}

:root[data-theme] .workspace .content .productivity-cards>.productivity-stopped{display:flex;flex-direction:column}
:root[data-theme] .workspace .content .productivity-cards>.productivity-stopped>a{flex:1;justify-content:center;padding:8px 0}

.kpi-dashboard-toolbar{display:flex;align-items:center;gap:20px;margin-top:10px}
:root[data-theme] .workspace .content .performance-workspace .kpi-dashboard-toolbar .performance-filters{flex:1;margin:0;min-width:0}
.performance-workspace .kpi-dashboard-toolbar .kpi-settings-actions{float:none;margin:0;flex:0 0 auto;align-self:center}
@media(max-width:700px){.kpi-dashboard-toolbar{flex-wrap:wrap;gap:8px}.performance-workspace .kpi-dashboard-toolbar .kpi-settings-actions{margin-left:auto}}

.kpi-period-tabs,.kpi-date-navigation{display:flex;align-items:center;gap:6px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs button{background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;padding:9px 14px;font-size:13px;box-shadow:none}
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs button[aria-pressed=true]{border-bottom-color:var(--brand);color:var(--brand)}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation>button{background:transparent;color:var(--brand);border:0;box-shadow:none;font-size:24px;padding:3px 10px;line-height:1}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation input{background:transparent;border:1px solid var(--line);font-size:13px;min-width:175px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-navigation{align-items:center}

/* Period selector refinement; remove this block to restore the approved version. */
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs{gap:3px;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs button{border:0;border-radius:6px;padding:7px 14px;font-size:12px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs button[aria-pressed=true]{background:var(--surface-soft);color:var(--brand);font-weight:600;box-shadow:inset 0 0 0 1px var(--line)}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation{gap:8px}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation input{background:transparent!important;border:0!important;box-shadow:none!important;font-size:16px;font-weight:600;color:var(--text);padding:5px 4px;height:36px;cursor:pointer;min-width:205px}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation>button{font-size:27px;padding:4px 8px;border-radius:6px}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation>button:hover{background:var(--surface-soft)}

/* A single period navigation control beside familiar underline tabs. */
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs{background:transparent;border:0;border-radius:0;padding:0;gap:8px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs button{border-radius:6px 6px 0 0;border-bottom:2px solid transparent;background:transparent;padding:9px 14px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-tabs button[aria-pressed=true]{background:transparent;box-shadow:none;border-bottom-color:var(--brand)}
.kpi-period-picker{position:relative}
:root[data-theme] .workspace #main-content#main-content .kpi-period-picker input{position:absolute;width:1px;min-width:0;height:1px;opacity:0;padding:0;pointer-events:none}
:root[data-theme] .workspace #main-content#main-content .kpi-date-navigation{border:1px solid var(--line);border-radius:8px;gap:2px;padding:2px;background:var(--surface)}
:root[data-theme] .workspace #main-content#main-content .kpi-period-caption{border:0;background:transparent;color:var(--text);box-shadow:none;font-size:14px;font-weight:600;padding:7px 12px;min-width:190px;text-transform:none}

/* Unified period strip: same baseline and one quiet divider. */
:root[data-theme] .workspace #main-content#main-content .kpi-period-control{display:inline-flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:4px;gap:10px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-tabs{gap:2px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-tabs button{height:34px;padding:7px 13px;border-radius:5px;border:0;font-size:12px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-tabs button[aria-pressed=true]{background:var(--surface-soft);color:var(--brand);box-shadow:none}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-date-navigation{border:0;border-left:1px solid var(--line);background:transparent;border-radius:0;padding:0 0 0 8px;gap:0}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-caption{height:34px;padding:6px 10px;font-size:13px;min-width:185px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-date-navigation>button{height:34px;font-size:22px;padding:4px 9px}
.performance-workspace .performance-period{font-size:11px;color:var(--muted)}
@media(max-width:520px){:root[data-theme] .workspace #main-content#main-content .kpi-period-control{flex-wrap:wrap}:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-date-navigation{border-left:0;padding-left:0}}

/* Open period navigation with an underline for the active mode. */
:root[data-theme] .workspace #main-content#main-content .kpi-period-control{background:transparent;border:0;border-radius:0;padding:0;gap:12px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-tabs button{display:flex;align-items:center;justify-content:center;height:36px;padding:7px 13px;border-radius:0;border-bottom:2px solid transparent;background:transparent;box-sizing:border-box}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-tabs button[aria-pressed=true]{background:transparent;box-shadow:none;border-bottom-color:var(--brand);color:var(--brand)}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-date-navigation{display:flex;align-items:center;gap:4px}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-period-caption{display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;line-height:1}
:root[data-theme] .workspace #main-content#main-content .kpi-period-control .kpi-date-navigation>button{display:flex;align-items:center;justify-content:center;height:36px;width:30px;padding:0;line-height:1;font-size:22px}

:root[data-theme] .workspace #main-content#main-content #kpi-period-form .kpi-period-tabs button[data-period-mode]{background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;color:var(--muted)!important;outline-offset:2px}
:root[data-theme] .workspace #main-content#main-content #kpi-period-form .kpi-period-tabs button[data-period-mode][aria-pressed=true]{border-bottom-color:var(--brand)!important;color:var(--brand)!important}
:root[data-theme] .workspace #main-content#main-content #kpi-period-form .kpi-period-tabs button[data-period-mode]:hover{background:var(--surface-soft)!important}
.kpi-tracking-help{margin:4px 0 8px;font-size:11px;color:var(--muted)}.kpi-tracking-help summary{cursor:pointer;color:var(--brand)}.kpi-tracking-help p{margin:8px 0;line-height:1.5}

.performance-workspace .performance-period{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.performance-workspace .performance-period .kpi-tracking-help{margin:0;position:relative}
.performance-workspace .performance-period .kpi-tracking-help[open] p{position:absolute;top:20px;left:0;z-index:5;width:min(520px,75vw);padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-sizing:border-box}

/* Unmistakable active stage marker in the employee production table. */
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button[data-kpi-stage]{background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;color:var(--muted)!important;margin-bottom:-1px}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button[data-kpi-stage][aria-selected=true]{border-bottom-color:var(--brand)!important;color:var(--brand)!important;font-weight:600}
:root[data-theme] .workspace #main-content#main-content .kpi-team-tabs button[data-kpi-stage]:hover{background:var(--surface-soft)!important}

.performance-workspace .kpi-dashboard-toolbar{margin-top:3px;gap:16px}
:root[data-theme] .workspace #main-content#main-content .performance-workspace .kpi-dashboard-toolbar .performance-filters{padding-top:3px!important;padding-bottom:3px!important}

/* Team target configuration follows the grouped dialog layout. */
#kpi-target-modal #team-target-content{margin-top:16px}
#kpi-target-modal .dialog-field-group{margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;min-width:0}
#kpi-target-modal .dialog-field-group legend{padding:0 8px;font-size:13px;font-weight:600;color:var(--text)}
#kpi-target-modal .dialog-field-group legend>span{font-size:10px;margin-right:8px}
#kpi-target-modal .monthly-goal-filter{margin:0;padding:0!important;display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
#kpi-target-modal .goal-bulk-tools{margin:0;padding:0;background:transparent;border:0;display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
#kpi-target-modal .monthly-goal-help{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 0}
#kpi-target-modal .goals-team-group .table-scroll{max-height:none}
#kpi-target-modal .goal-roster-table th{padding:10px 8px;font-size:11px}
#kpi-target-modal .goal-roster-table td{padding:10px 8px;font-size:12px}
#kpi-target-modal .goal-save-bar{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 0;margin-top:4px;position:static;display:flex;justify-content:space-between;align-items:center;gap:16px}
#kpi-target-modal .goal-save-bar>span{font-size:12px;color:var(--muted)}

.team-goal-inputs{display:grid;grid-template-columns:1fr 1fr;gap:24px}.team-goal-inputs>div{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}.team-goal-inputs h3{width:100%;font-size:13px;margin:0}.team-goal-inputs label{font-size:12px;flex:1}.team-goal-inputs input{display:block;width:100%;margin-top:6px}.team-calendar-settings{margin-top:14px;font-size:12px}.team-calendar-settings summary{cursor:pointer;color:var(--brand)}.team-calendar-settings textarea{display:block;width:100%;margin-top:8px}.goal-hours{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:11px}.goal-hours input{width:65px!important}.goal-roster-table td select{margin-bottom:6px;width:100%}.goal-roster-table td textarea{width:100%}.goal-roster-table td input[readonly]{color:var(--muted)}
@media(max-width:700px){.team-goal-inputs{grid-template-columns:1fr}}

/* The active table determines chart height, including shorter report teams. */
.performance-workspace .kpi-production-chart .kpi-chart-weeks,.performance-workspace .kpi-production-chart .kpi-chart-bars{min-height:0}

/* Stage changes must not move the document scroll anchor. */
.performance-workspace .kpi-reference-layout{overflow-anchor:none}
.weekly-base-overview{display:flex;flex-wrap:wrap;gap:8px 24px;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:14px}
.weekly-base-overview button{display:flex;align-items:center;gap:10px;background:transparent;color:var(--muted);border:0;padding:4px 0;font-size:13px;box-shadow:none}
.weekly-base-overview button strong{color:var(--text);font-size:20px;font-variant-numeric:tabular-nums}
.weekly-base-overview button:hover{color:var(--brand)}
.weekly-overview-note{font-size:12px;line-height:1.6;margin:10px 0 18px}
#weekly-overview-list input{width:100%;margin:8px 0 16px}
#weekly-overview-list table{width:100%;table-layout:auto}
#weekly-overview-list th,#weekly-overview-list td{min-width:100px;overflow-wrap:normal;word-break:normal}
#weekly-overview-list td:last-child{min-width:200px}
#weekly-overview-list .weekly-table-wrap{overflow:auto;max-height:55vh}
#weekly-overview-list .analysis-footer-actions{flex-wrap:wrap;gap:10px;align-items:center}
.gope-home-summary{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px 24px;margin:24px 0}
.gope-home-summary h2{font-size:20px;margin:0 0 6px;color:var(--text)}
.gope-home-summary>.muted{font-size:13px;margin:0}
.gope-home-summary .weekly-base-overview{margin-top:12px}
.gope-home-summary .weekly-overview-note{margin-bottom:0}

/* General OS panorama: four aligned metrics and one compact action band. */
.gope-home-summary{padding:24px 28px}
.home-summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.home-summary-heading .muted{margin:5px 0 0;font-size:13px}
.home-summary-help{position:relative;font-size:12px;color:var(--muted);flex-shrink:0}
.home-summary-help summary{cursor:pointer;padding:5px 0;color:var(--brand)}
.home-summary-help p{position:absolute;right:0;top:24px;width:min(340px,75vw);padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);line-height:1.6;z-index:3;box-shadow:0 8px 24px #0002}
.gope-home-summary .weekly-base-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:22px 0;margin:12px 0 0;border-bottom:1px solid var(--line)}
.workspace .content .gope-home-summary .weekly-base-overview button{flex-direction:column-reverse;align-items:flex-start;justify-content:flex-end;gap:8px;padding:8px 24px;border-radius:0;border-left:1px solid var(--line)!important;min-height:82px;text-align:left;font-size:13px;font-weight:400;line-height:1.4}
.workspace .content .gope-home-summary .weekly-base-overview button:first-child{padding-left:0;border-left:0!important}
.gope-home-summary .weekly-base-overview button strong{font-size:34px;line-height:1.1;letter-spacing:-.8px;font-weight:700}
.gope-home-summary .weekly-base-overview button[data-weekly-group=open] strong{color:var(--brand)}
.gope-home-summary .weekly-status-count{font-size:16px;min-width:32px;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:900px){.gope-home-summary .weekly-base-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace .content .gope-home-summary .weekly-base-overview button:nth-child(3){padding-left:0;border-left:0!important}}
@media(max-width:540px){.gope-home-summary{padding:18px}.home-summary-heading{flex-direction:column;gap:6px}.home-summary-help p{left:0;right:auto}.gope-home-summary .weekly-base-overview button strong{font-size:28px}.workspace .content .gope-home-summary .weekly-base-overview button{padding:10px 14px}}

/* OS flow: compact overview, ordered work stages, delivery totals. */
.os-register-summary,.os-delivery-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.os-register-summary{padding:22px 0;border-bottom:1px solid var(--line)}
:root[data-theme] .workspace .content:not(.data-workspace) .os-flow :is(.os-register-summary,.os-delivery-summary)>button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:6px 18px;text-align:left;color:var(--text)!important;border-radius:0;border-left:1px solid var(--line)!important}
:root[data-theme] .workspace .content:not(.data-workspace) .os-flow :is(.os-register-summary,.os-delivery-summary)>button:first-child{padding-left:0;border-left:0!important}
.os-register-summary strong{font-size:32px;line-height:1.2;font-variant-numeric:tabular-nums}
.os-register-summary span,.os-delivery-summary span{color:var(--muted);font-size:13px;font-weight:400}
.os-pipeline-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 14px}
.os-pipeline-heading h3{margin:0;font-size:15px;color:var(--text)}
.os-pipeline-heading p{margin:5px 0 0;font-size:12px}
.os-pipeline-heading button{font-size:12px;white-space:nowrap}
.os-pipeline-heading button strong{font-size:19px;margin-right:7px}
.os-pipeline-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root[data-theme] .workspace .content:not(.data-workspace) .os-flow .os-pipeline-stages>button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px;text-align:left;background:var(--surface-soft)!important;border:1px solid var(--line)!important;border-top:2px solid var(--brand)!important;border-radius:8px;color:var(--text)!important}
.os-pipeline-stages small{font-size:12px;font-weight:400;line-height:1.4;color:var(--muted);padding-right:22px}
.os-pipeline-stages strong{font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.os-pipeline-step{position:absolute;right:12px;top:12px;font-size:11px;color:var(--muted);opacity:.7}
.os-flow-stopped{font-size:12px;color:#c86472}
.os-delivery-summary{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.os-delivery-summary strong{font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}
@media(max-width:800px){.os-pipeline-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.os-pipeline-heading{align-items:flex-start}}
@media(max-width:540px){.os-register-summary,.os-delivery-summary{grid-template-columns:1fr;gap:8px}:root[data-theme] .workspace .content:not(.data-workspace) .os-flow :is(.os-register-summary,.os-delivery-summary)>button{flex-direction:row;align-items:center;padding:6px 0;border-left:0!important;gap:12px}.os-pipeline-heading{flex-direction:column}.os-pipeline-stages{gap:8px}}

.os-general-pending{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0 0}
.os-general-pending h3{margin:0;font-size:16px;color:var(--text)}
.os-general-pending p{margin:6px 0 0;font-size:12px;line-height:1.5}
:root[data-theme] .workspace .content:not(.data-workspace) .os-general-pending>button{display:flex;align-items:center;gap:14px;padding:12px 18px;border:1px solid var(--line)!important;background:var(--surface-soft)!important;border-radius:9px;color:var(--brand)!important}
.os-general-pending strong{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}
.os-general-pending button span{font-size:12px;font-weight:400}
@media(max-width:540px){.os-general-pending{align-items:flex-start;flex-direction:column;gap:12px}}

.os-delivery-summary.os-delivery-with-pending{grid-template-columns:repeat(4,minmax(0,1fr))}
.os-delivery-with-pending button[data-weekly-group=pending_received] strong{color:var(--brand)}
@media(max-width:800px){.os-delivery-summary.os-delivery-with-pending{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.os-delivery-summary.os-delivery-with-pending{grid-template-columns:1fr}}

.overview-stage-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}
:root[data-theme] .workspace .content:not(.data-workspace) .overview-stage-options button{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line)!important;background:var(--surface-soft)!important;border-radius:8px}
.overview-stage-options strong{font-size:22px;font-variant-numeric:tabular-nums}
:root[data-theme] .workspace .content:not(.data-workspace) .overview-stage-options button[aria-pressed=true]{border-color:var(--brand)!important;color:var(--brand)!important}
@media(max-width:540px){.overview-stage-options{grid-template-columns:1fr}}

/* Three coherent groups for the general OS overview. */
.os-overview-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:24px}
.os-overview-group{padding:0 24px;border-left:1px solid var(--line);min-width:0}
.os-overview-group:first-child{padding-left:0;border-left:0}
.os-overview-group:last-child{padding-right:0}
.os-overview-group h3{display:flex;align-items:center;gap:9px;margin:0 0 16px;font-size:13px;font-weight:600;color:var(--muted)}
.os-overview-group h3>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:7px;font-size:10px;color:var(--muted)}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group button{color:var(--text)!important;text-align:left;min-width:0;border:1px solid transparent!important;border-radius:8px}
.os-overview-group :is(button,.os-overview-static) span{font-size:13px;line-height:1.5;font-weight:400;color:var(--muted)}
.os-overview-group :is(button,.os-overview-static) strong{font-variant-numeric:tabular-nums;line-height:1.15;letter-spacing:-.5px}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group :is(.os-overview-total,.os-overview-primary){display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;width:100%;height:116px;padding:14px 16px;background:var(--surface-soft)!important;border:1px solid var(--line)!important}
.os-overview-total strong,.os-overview-primary strong{font-size:34px}
.os-overview-primary small{font-size:11px;color:var(--muted);font-weight:400}
.os-overview-group .os-overview-primary[data-weekly-group=pending_received] strong{color:var(--brand)}
.os-overview-group .os-overview-done strong{color:#5ba783}
.os-overview-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-pair>:is(button,.os-overview-static){display:flex;align-items:flex-start;flex-direction:column;gap:6px;padding:8px 0}
.os-overview-pair strong{font-size:23px}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group .os-overview-secondary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;width:100%;margin-top:14px}
.os-overview-secondary strong{font-size:24px;flex-shrink:0}
.os-overview-attention strong{color:var(--brand)}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group button:is(:hover,:focus-visible){border-color:var(--brand)!important;background:var(--surface-soft)!important}
@media(max-width:900px){.os-overview-groups{grid-template-columns:1fr;gap:20px}.os-overview-group,.os-overview-group:last-child{padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}.os-overview-group:first-child{padding-top:0;border-top:0}.os-overview-pair{gap:20px}}

/* Refined hierarchy and consistent secondary indicators. */
.os-overview-groups{margin-top:20px}
.os-overview-group h3{font-size:14px;margin-bottom:12px}
.os-overview-group h3>.os-stage-symbol{width:30px;height:30px;border-radius:8px;background:var(--surface-soft);color:var(--brand)}
.os-stage-symbol svg{width:18px;height:18px}
.os-overview-group[aria-label=Entrega] .os-stage-symbol{color:#32825b}
:root[data-theme=dark] .os-overview-group[aria-label=Entrega] .os-stage-symbol{color:#75c99f}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group :is(.os-overview-total,.os-overview-primary){height:100px;padding:12px 16px;gap:5px}
.os-overview-total strong,.os-overview-primary strong{font-size:32px}
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group .os-overview-secondary{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:8px 0;margin-top:12px}
.os-overview-pair{margin-top:12px}
.os-overview-secondary strong,.os-overview-pair strong{font-size:23px}
:root[data-theme] .os-flow .os-overview-done strong,:root[data-theme] .os-flow [data-weekly-group=completed] strong{color:#32825b!important}
:root[data-theme=dark] .os-flow .os-overview-done strong,:root[data-theme=dark] .os-flow [data-weekly-group=completed] strong{color:#75c99f!important}
:root[data-theme] .os-flow .os-overview-attention strong{color:#946315!important}
:root[data-theme=dark] .os-flow .os-overview-attention strong{color:#e7b663!important}
:root[data-theme] .os-flow [data-weekly-group=pending_received] strong{color:var(--brand)!important}

/* Keep the original alignment, with room inside secondary hover/focus areas. */
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-group .os-overview-secondary,
:root[data-theme] .workspace .content:not(.data-workspace) .os-overview-pair>:is(button,.os-overview-static){padding:12px 14px;min-height:78px;gap:8px;align-items:flex-start;text-align:left}
.os-overview-group .os-overview-secondary>span,.os-overview-pair>:is(button,.os-overview-static)>span{line-height:1.5}

/* Text-led home experiment; dialogs keep their usual surfaces. */
.home-text-layout .gope-home-summary{background:transparent;border:0;border-radius:0;box-shadow:none;padding:24px 0;border-bottom:1px solid var(--line)}
:root[data-theme] .workspace .content:not(.data-workspace) .home-text-layout .os-overview-group :is(.os-overview-total,.os-overview-primary){background:transparent!important;border-color:transparent!important;box-shadow:none}
.home-text-layout .os-overview-group h3>.os-stage-symbol{background:transparent;border-color:transparent}
.home-text-layout .gope-process{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.home-text-layout .gope-process>a{background:transparent;border-radius:8px}
.home-text-layout .gope-home-secondary>a{background:transparent;border-color:transparent;border-radius:8px}
:root[data-theme] .workspace .content:not(.data-workspace) .home-text-layout .os-overview-group button:is(:hover,:focus-visible){background:transparent!important;border-color:var(--line)!important}
.home-text-layout .gope-process>a:hover,.home-text-layout .gope-home-secondary>a:hover{background:transparent;outline:1px solid var(--line)}
.home-text-layout .gope-process>a:focus-visible,.home-text-layout .gope-home-secondary>a:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:540px){.home-text-layout .gope-home-summary{padding:18px 0}}

/* Light framed groups with restrained colour accents. */
.home-text-layout .os-overview-groups{gap:16px}
.home-text-layout .os-overview-group{position:relative;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 42%,transparent);overflow:hidden}
.home-text-layout .os-overview-group:first-child,.home-text-layout .os-overview-group:last-child{padding:18px 20px;border:1px solid var(--line)}
.home-text-layout .os-overview-group:before{content:'';position:absolute;left:20px;top:0;width:44px;height:3px;border-radius:0 0 3px 3px;background:var(--brand)}
.home-text-layout .os-overview-group[aria-label=Entrega]:before{background:#62b58d}
.home-text-layout .os-overview-group h3{margin-bottom:8px}
:root[data-theme] .workspace .content:not(.data-workspace) .home-text-layout .os-overview-group :is(.os-overview-total,.os-overview-primary){padding:10px 12px}
.home-text-layout .gope-process{gap:16px}
.home-text-layout .gope-process>a{padding:22px 24px;border:1px solid var(--line);border-radius:12px;min-height:225px;background:color-mix(in srgb,var(--surface) 42%,transparent);transition:border-color .15s ease,background-color .15s ease}
.home-text-layout .gope-process>a:last-child{border:1px solid var(--line)}
.home-text-layout .gope-process>a:hover{outline:none;border-color:var(--brand);background:color-mix(in srgb,var(--surface-soft) 50%,transparent)}
.gope-process-symbol{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;color:var(--brand);margin-bottom:18px;background:transparent}
.gope-process-symbol svg{width:24px;height:24px}
.home-text-layout .gope-process h2{font-size:20px}
.home-text-layout .gope-process p{margin-bottom:18px}
.home-text-layout .gope-home-secondary>a{border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 25%,transparent);border-radius:10px}
.home-text-layout .gope-home-secondary>a:hover{outline:none;border-color:var(--brand)}
@media(max-width:900px){.home-text-layout .os-overview-group,.home-text-layout .os-overview-group:first-child,.home-text-layout .os-overview-group:last-child{padding:18px 20px}}
@media(prefers-reduced-motion:reduce){.home-text-layout .gope-process>a{transition:none}}

/* Subtle internal structure within the light overview cards. */
.home-text-layout .os-overview-pair{position:relative;padding-top:14px;margin-top:12px;border-top:1px solid var(--line)}
.home-text-layout .os-overview-pair:after{content:'';position:absolute;left:50%;top:24px;bottom:10px;width:1px;background:var(--line)}
:root[data-theme] .workspace .content:not(.data-workspace) .home-text-layout .os-overview-group .os-overview-secondary{padding-top:20px;margin-top:12px;border-top:1px solid var(--line)!important;border-radius:0 0 8px 8px}
.home-text-layout .os-overview-pair>:is(button,.os-overview-static){position:relative}

.weekly-stage-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.weekly-stage-shortcuts button{display:flex;align-items:center;gap:8px;font-size:12px}
.weekly-reservation-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.weekly-stage-shortcuts .weekly-status-count{font-size:11px;min-width:22px;padding:2px 6px}
@media(max-width:650px){.weekly-reservation-actions{justify-content:flex-start}.weekly-stage-shortcuts{gap:6px}}

.weekly-shortcuts-total{font-size:12px;color:var(--muted);padding-right:6px;white-space:nowrap}
.weekly-stage-shortcuts{gap:6px}
@media(max-width:800px){.weekly-shortcuts-total{flex-basis:100%;padding:0 0 4px}}

.os-overview-static{box-sizing:border-box;color:var(--text);text-align:left;border:1px solid transparent;border-radius:8px;font-weight:600}
.os-flow-count-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px 0}
.os-flow-count-summary>div{display:flex;flex-direction:column;align-items:center;gap:8px}
.os-flow-count-summary strong{font-size:32px;color:var(--brand)}
.os-flow-count-summary span{color:var(--muted)}

#os-flow-scheduled strong{color:var(--brand)}
/* Overview count dialog follows the shared dialog header and stage icons. */
.os-flow-count-dialog{width:520px;max-width:calc(100vw - 32px);padding:24px}
.os-flow-count-dialog>.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.os-flow-count-dialog .dialog-heading-title{display:flex;align-items:center;gap:12px}
.os-flow-count-dialog .dialog-heading-title h2{margin:0;font-size:20px}
.os-flow-count-dialog .dialog-heading-icon svg{width:22px;height:22px}
.os-flow-count-dialog .modal-close{position:static;margin:0;flex-shrink:0;align-self:center}
.os-flow-count-dialog .os-flow-count-summary{gap:16px;padding:24px 0 0}
.os-flow-count-dialog .os-flow-count-stage{padding:22px 12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;gap:10px}
.os-flow-count-dialog .os-flow-count-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:var(--brand);background:var(--surface)}
.os-flow-count-dialog .os-flow-count-icon svg{width:24px;height:24px}
.os-flow-count-dialog .os-flow-count-stage strong{font-size:36px;line-height:1.1;font-variant-numeric:tabular-nums}
.os-flow-count-dialog .os-flow-count-reports strong,.os-flow-count-dialog .os-flow-count-reports .os-flow-count-icon{color:#32825b}
:root[data-theme=dark] .os-flow-count-dialog .os-flow-count-reports strong,:root[data-theme=dark] .os-flow-count-dialog .os-flow-count-reports .os-flow-count-icon{color:#75c99f}
.theme-toggle [data-theme-symbol]{display:inline-flex;align-items:center;justify-content:center}
.theme-toggle [data-theme-symbol] svg{width:19px;height:19px;flex-shrink:0}
.theme-toggle .theme-sun{display:none}
.theme-toggle .theme-moon{display:block;color:var(--muted)}
:root[data-theme=dark] .theme-toggle .theme-sun{display:block;color:#e7b663}
:root[data-theme=dark] .theme-toggle .theme-moon{display:none}
.theme-toggle .theme-moon{color:#5875b5;fill:rgba(88,117,181,.12)}

:root[data-theme] .workspace .content .os-flow-count-dialog .modal-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;background:transparent;line-height:1;color:var(--muted);outline:none}
.os-flow-count-dialog .modal-close svg{display:block;width:18px;height:18px}
:root[data-theme] .workspace .content .os-flow-count-dialog .modal-close:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
:root[data-theme] .workspace .content #os-flow-show-scheduled{display:flex;flex-direction:column;background:var(--surface-soft)!important;border:1px solid var(--line)!important;border-radius:12px;padding:22px 12px;gap:10px}
.os-flow-count-dialog .os-flow-count-stage>span:last-child{text-align:center;line-height:1.5}
/* Consistent color accents on overview popup metrics and their SVG icons. */
:root[data-theme] .os-flow-count-dialog .os-flow-count-stage{--count-accent:#3165be}
:root[data-theme] .os-flow-count-dialog .os-flow-count-reports{--count-accent:#32825b}
:root[data-theme] .os-flow-count-dialog .os-flow-count-unscheduled{--count-accent:#946315}
:root[data-theme=dark] .os-flow-count-dialog .os-flow-count-stage{--count-accent:#7ea5ff}
:root[data-theme=dark] .os-flow-count-dialog .os-flow-count-reports{--count-accent:#75c99f}
:root[data-theme=dark] .os-flow-count-dialog .os-flow-count-unscheduled{--count-accent:#e7b663}
:root[data-theme] .workspace .content .os-flow-count-dialog .os-flow-count-stage strong,
:root[data-theme] .workspace .content .os-flow-count-dialog .os-flow-count-stage .os-flow-count-icon,
:root[data-theme] .workspace .content .os-flow-count-dialog .os-flow-count-stage .os-flow-count-icon svg{color:var(--count-accent)!important}
:root[data-theme] .workspace .content .os-flow-count-dialog .os-flow-count-stage .os-flow-count-icon{background:color-mix(in srgb,var(--count-accent) 13%,var(--surface))}
:root[data-theme] .workspace .content .os-flow-count-dialog .os-flow-count-stage .os-flow-count-icon svg .icon-detail{stroke:currentColor}
.weekly-grid-tools{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;margin:18px 0 14px}
.weekly-grid-tools label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}
.weekly-grid-tools input{width:300px;max-width:100%}.weekly-grid-tools select{width:290px;max-width:100%}
#weekly-grid-count{font-size:12px;color:var(--muted);padding-bottom:12px}
:root[data-theme] .workspace .content .priority-tag.priority-CRITICA{background:#fce2e2!important;color:#b12727!important;border:1px solid #efa4a4}
:root[data-theme] .workspace .content .priority-tag.priority-URGENTE{background:#ffead7!important;color:#a4490d!important;border:1px solid #edbb91}
:root[data-theme] .workspace .content .priority-tag.priority-ALTA{background:#fff3c2!important;color:#856207!important;border:1px solid #e5cf7f}
:root[data-theme=dark] .workspace .content .priority-tag.priority-CRITICA{background:#58272e!important;color:#ffaaaa!important;border-color:#94444f}
:root[data-theme=dark] .workspace .content .priority-tag.priority-URGENTE{background:#553923!important;color:#ffbf87!important;border-color:#916035}
:root[data-theme=dark] .workspace .content .priority-tag.priority-ALTA{background:#494023!important;color:#f0d374!important;border-color:#7c6b32}
/* Compact filters belong to the weekly action toolbar, leaving the grid clear. */
.weekly-control-row .weekly-grid-tools{margin:0 0 0 auto;gap:10px;align-items:center;flex-wrap:wrap}
.weekly-control-row .weekly-grid-tools label{position:relative}
.weekly-control-row .weekly-filter-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.weekly-control-row .weekly-grid-tools input{width:185px;height:36px;padding:8px 10px;font-size:12px}
.weekly-control-row .weekly-grid-tools select{width:225px;height:36px;padding:8px 10px;font-size:12px}
.weekly-control-row #weekly-grid-count{padding:0;white-space:nowrap;font-size:11px}
.workspace .content.weekly-workspace .weekly-control-row .weekly-help-button{margin-left:0}
.weekly-control-row #weekly-selection-label{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){.weekly-control-row .weekly-grid-tools{margin-left:0}}
@media(max-width:650px){.weekly-control-row .weekly-grid-tools{width:100%}.weekly-control-row .weekly-grid-tools label{flex:1 1 180px}.weekly-control-row .weekly-grid-tools input,.weekly-control-row .weekly-grid-tools select{width:100%}}
.weekly-control-row .weekly-search-field{display:flex;align-items:center;position:relative;background:var(--surface-soft);border:1px solid transparent;border-radius:8px}
.weekly-control-row .weekly-search-field>svg{position:absolute;left:10px;width:17px;height:17px;color:var(--muted);pointer-events:none}
:root[data-theme] .workspace .content .weekly-control-row .weekly-search-field input{background:transparent;border:0;padding-left:34px;width:210px;border-radius:8px}
.weekly-search-field:focus-within{border-color:var(--brand)}
.weekly-sort-menu{position:relative;flex-shrink:0}
.weekly-sort-menu summary{list-style:none;display:flex;align-items:center;gap:8px;padding:8px 10px;min-height:36px;box-sizing:border-box;border:1px solid transparent;border-radius:8px;font-size:12px;color:var(--text);cursor:pointer}
.weekly-sort-menu summary::-webkit-details-marker{display:none}
.weekly-sort-menu summary>svg{width:17px;height:17px;color:var(--brand)}
.weekly-sort-menu summary>.weekly-sort-chevron{width:13px;height:13px;color:var(--muted)}
.weekly-sort-menu summary:hover,.weekly-sort-menu[open] summary{background:var(--surface-soft);border-color:var(--line)}
.weekly-sort-options{position:absolute;top:calc(100% + 8px);right:0;z-index:20;min-width:265px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.16)}
:root[data-theme] .workspace .content .weekly-sort-options button{display:flex;width:100%;justify-content:flex-start;text-align:left;padding:10px 12px;font-size:12px;font-weight:400}
:root[data-theme] .workspace .content .weekly-sort-options button[aria-pressed=true]{color:var(--brand)!important;background:var(--surface-soft)!important;font-weight:600}
@media(max-width:650px){.weekly-control-row .weekly-search-field{flex:1 1 180px}.weekly-sort-options{right:auto;left:0}}
.weekly-control-row .weekly-search-field[hidden]{display:none!important}
:root[data-theme] .workspace .content #weekly-search-toggle{padding:8px 10px;min-height:36px;font-size:12px;color:var(--text)!important}
#weekly-search-toggle .action-icon{color:var(--brand)}
#weekly-search-toggle[aria-expanded=true]{border-color:var(--line)!important;background:var(--surface-soft)!important}
/* Search is identified by its toggle; the typing field stays uncluttered. */
:root[data-theme] .workspace .content .weekly-control-row .weekly-search-field input{padding:8px 12px;background:var(--surface);border:1px solid var(--line);height:36px;border-radius:8px;line-height:20px}
.weekly-control-row .weekly-search-field{background:transparent;border:0}
:root[data-theme] .workspace .content .weekly-control-row .weekly-search-field input:focus{outline:2px solid var(--brand);outline-offset:2px;border-color:var(--brand)}
/* Selected week: heading, base status, then table actions. */
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 0;padding:0 0 14px}
.weekly-week-heading h2{margin:0 0 6px;font-size:18px}
.weekly-week-heading .weekly-reservation-actions{margin-left:auto;flex-shrink:0}
.weekly-status-band{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.weekly-status-band .weekly-stage-shortcuts{justify-content:flex-start;gap:12px}
.weekly-status-band .weekly-shortcuts-total{padding-right:14px;border-right:1px solid var(--line)}
.weekly-responsible-note{margin:0 0 0 auto;font-size:12px;line-height:1.5;color:var(--muted);padding:4px 0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row{margin:0;padding:12px 0;gap:10px;border-bottom:1px solid var(--line);min-height:52px}
.weekly-control-row .weekly-grid-tools{gap:8px}
@media(max-width:1000px){.weekly-responsible-note{margin-left:0}.weekly-week-heading .weekly-reservation-actions{flex-shrink:1}}
@media(max-width:650px){:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading{align-items:flex-start;flex-direction:column;gap:8px}.weekly-week-heading .weekly-reservation-actions{margin-left:0}.weekly-status-band .weekly-stage-shortcuts{gap:6px}.weekly-status-band .weekly-shortcuts-total{flex-basis:100%;border-right:0;padding:0 0 4px}}
/* Keep week heading and confirmation together; compact all three toolbar rows. */
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin:6px 0 0;padding:0 0 8px;min-height:0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading>div{width:auto;min-width:0;flex-basis:auto;margin:0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading h2{margin:0 0 4px;font-size:17px;line-height:1.35}
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading p{margin:0;font-size:12px;line-height:1.4}
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading .weekly-reservation-actions{justify-self:end;align-self:start;padding:0;gap:6px}
:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading .weekly-reservation-actions button{padding:5px 10px;min-height:30px;font-size:12px}
.weekly-status-band{padding:4px 0;gap:4px 18px;min-height:36px}
.weekly-status-band .weekly-stage-shortcuts button{padding:6px 10px;min-height:30px}
.weekly-responsible-note{padding:2px 0}
:root[data-theme] .workspace .content.weekly-workspace .weekly-control-row{padding:6px 0;min-height:44px;gap:8px}
@media(max-width:650px){:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading{grid-template-columns:minmax(0,1fr);gap:4px}:root[data-theme] .workspace .content.weekly-workspace .weekly-week-heading .weekly-reservation-actions{justify-self:start}}
/* Override the older direct-child section-title rule for the selected week. */
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin:6px 0 0;padding:0 0 8px}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading>div{flex:initial;min-width:0;margin:0}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading>.weekly-reservation-actions{grid-column:2;grid-row:1;align-self:start;justify-self:end}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading>.weekly-reservation-actions button{min-height:24px;padding:3px 10px;margin:0;line-height:18px}
@media(max-width:650px){:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading{grid-template-columns:minmax(0,1fr)}:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading>.weekly-reservation-actions{grid-column:1;grid-row:2;justify-self:start}}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading>.weekly-reservation-actions{align-self:end;padding-bottom:0}
:root[data-theme] .workspace .content.weekly-workspace>#weekly-panel>.section-title.weekly-week-heading{padding-bottom:4px}
.weekly-reports-ready-label{margin:14px 0 4px;font-size:12px;color:var(--muted)}
.weekly-report-previews{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.weekly-report-previews>summary{display:flex;align-items:center;gap:10px;width:fit-content;padding:8px 0;font-size:13px;color:var(--muted);cursor:pointer}
.weekly-report-previews>summary::before{content:'›';font-size:18px;color:var(--brand);transition:transform .15s}
.weekly-report-previews[open]>summary::before{transform:rotate(90deg)}
.weekly-report-previews>p{font-size:12px;margin:4px 0 12px}
.goal-roster-table .goal-setup-warning{display:block;color:var(--muted);line-height:1.6;margin-top:8px;font-size:12px}.goal-setup-warning a{color:var(--brand)}

.person-card-statuses{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;min-width:0}.people-setup-pending{display:inline-flex;align-items:center;border-radius:20px;padding:6px 9px;font-size:11px;line-height:1.3;background:#fff3d6;color:#885800}:root[data-theme=dark] .people-setup-pending{background:#42351f;color:#f4c46b}


.monthly-goal-empty{padding:24px 0;display:flex;align-items:flex-start;flex-direction:column;gap:12px}.monthly-goal-empty h2,.monthly-goal-empty p{margin:0}.monthly-goal-setup{width:min(1180px,calc(100vw - 40px));max-height:85vh;overflow:auto}

:root[data-theme] .workspace .content #kpi-target-modal{width:min(600px,calc(100vw - 32px));padding:26px;max-height:88vh;box-sizing:border-box}
:root[data-theme] .workspace .content #kpi-target-modal.has-goal-table{width:min(1180px,calc(100vw - 40px))}
#kpi-target-modal>.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
:root[data-theme] .workspace .content #kpi-target-modal>.analysis-heading .modal-close,:root[data-theme] .workspace .content .monthly-goal-setup>.analysis-heading .modal-close{display:flex;align-items:center;justify-content:center;position:static;align-self:center;flex:0 0 32px;width:32px;height:32px;margin:0;padding:0;border:0;background:transparent;line-height:1;font-size:24px;color:var(--muted);outline:none}
:root[data-theme] .workspace .content #kpi-target-modal>.analysis-heading .modal-close:focus-visible,:root[data-theme] .workspace .content .monthly-goal-setup>.analysis-heading .modal-close:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
#kpi-target-modal .monthly-goal-empty{padding:16px 0 0;gap:10px;border-top:1px solid var(--line)}
#kpi-target-modal .monthly-goal-empty h2{font-size:17px;line-height:1.4}
#kpi-target-modal .monthly-goal-empty p{font-size:13px}
#kpi-target-modal .goals-period-group{margin-bottom:16px}
#kpi-target-modal .monthly-goal-filter label{font-size:12px}
@media(max-width:600px){:root[data-theme] .workspace .content #kpi-target-modal{padding:20px}#kpi-target-modal .monthly-goal-filter{gap:12px}}

.goal-availability-fields select{width:100%;min-width:145px}.goal-roster-table [data-mode-label]{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.goal-roster-table [data-available-days]{display:block;color:var(--brand);margin-bottom:6px}

:root[data-theme] .workspace .content #monthly-goal-setup{width:min(720px,calc(100vw - 40px))}.goal-roster-table td>strong,.goal-roster-table td>small{display:block}.goal-roster-table .data-group-tabs{margin-bottom:16px}.monthly-goal-setup [hidden]{display:none!important}


.monthly-business-days{font-size:13px;color:var(--muted);margin:12px 0 16px}.monthly-business-days strong{color:var(--text)}:root[data-theme] .workspace .content #monthly-goal-simulation{width:min(960px,calc(100vw - 40px))}


:root[data-theme] .workspace .content #monthly-goal-reset{width:min(480px,calc(100vw - 32px));padding:24px}#monthly-goal-reset p{font-size:13px;line-height:1.6}#monthly-goal-reset form{display:flex;justify-content:flex-end;gap:12px}.monthly-goal-saved h2{font-size:18px}.monthly-goal-saved p{font-size:13px}


:root[data-theme] .workspace .content #monthly-goal-simulation{width:min(1000px,calc(100vw - 40px));max-height:86vh;padding:22px 24px;overflow:auto;box-sizing:border-box}
#monthly-goal-simulation>.analysis-heading{margin:0 0 12px;gap:14px;align-items:center}
#monthly-goal-simulation .dialog-heading-title{gap:12px}
#monthly-goal-simulation .dialog-heading-title h2{font-size:21px;line-height:1.3;margin:0}
#monthly-goal-simulation .dialog-heading-title>span{width:36px;height:36px;flex:0 0 36px}
#monthly-goal-simulation>.muted{font-size:12px;line-height:1.5;margin:0 0 12px}
#monthly-goal-simulation .monthly-business-days{margin:0 0 12px;font-size:12px}
#monthly-goal-simulation>.data-group-tabs{margin:0 0 14px;gap:12px}
#monthly-goal-simulation .goals-team-group{padding:10px 12px;margin:0;border-color:var(--line);min-width:0}
#monthly-goal-simulation .goals-team-group legend{font-size:13px}
#monthly-goal-simulation .table-scroll{max-height:45vh;overflow:auto;margin:0}
#monthly-goal-simulation .goal-roster-table{width:100%;min-width:0;table-layout:auto;margin:0}
#monthly-goal-simulation .goal-roster-table th{padding:10px 12px;font-size:11px;position:sticky;top:0;background:var(--surface);z-index:1;white-space:nowrap}
#monthly-goal-simulation .goal-roster-table td{padding:10px 12px;font-size:13px;vertical-align:middle}
#monthly-goal-simulation .goal-roster-table th:first-child,#monthly-goal-simulation .goal-roster-table td:first-child{width:80px;text-align:center}
#monthly-goal-simulation .goal-roster-table th:nth-child(2),#monthly-goal-simulation .goal-roster-table td:nth-child(2){text-align:left}
#monthly-goal-simulation .goal-roster-table td[data-stage-column]{width:175px}
#monthly-goal-simulation .goal-roster-table td[data-stage-column] input{width:140px;max-width:100%;height:36px;padding:7px 10px;box-sizing:border-box;font-size:13px}
#monthly-goal-simulation .goal-roster-table [data-mode-label]{font-size:10px;margin:0 0 4px;white-space:nowrap}
#monthly-goal-simulation .goal-availability summary{font-size:12px;white-space:nowrap}
#monthly-goal-simulation .goal-save-bar{margin-top:12px;padding:12px 0 0;font-size:12px;gap:12px}
#monthly-goal-simulation .monthly-goal-help{font-size:11px;line-height:1.5;margin:10px 0 0;color:var(--muted)}
@media(max-width:650px){:root[data-theme] .workspace .content #monthly-goal-simulation{padding:16px;width:calc(100vw - 24px)}#monthly-goal-simulation .table-scroll{overflow-x:auto}#monthly-goal-simulation .goal-roster-table{min-width:580px}}

:root[data-theme] .workspace .content .monthly-person-adjust{width:min(540px,calc(100vw - 32px));padding:24px;max-height:84vh;overflow:auto;box-sizing:border-box;text-align:left}
.monthly-person-adjust .analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.monthly-person-adjust .analysis-heading h2{font-size:20px;margin:0 0 4px}
.monthly-person-adjust .analysis-heading small{font-size:12px;color:var(--muted)}
:root[data-theme] .workspace .content .monthly-person-adjust .modal-close{display:flex;align-items:center;justify-content:center;position:static;width:32px;height:32px;flex:0 0 32px;padding:0;margin:0;line-height:1;outline:none;background:transparent;border:0;color:var(--muted)}
:root[data-theme] .workspace .content .monthly-person-adjust .modal-close:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.monthly-person-adjust .goal-availability-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.monthly-person-adjust .goal-availability-fields label{font-size:12px;display:flex;flex-direction:column;gap:6px}
.monthly-person-adjust .goal-availability-fields label:first-child{grid-column:1/-1;flex-direction:row;align-items:center}
.monthly-person-adjust .goal-availability-fields input:not([type=checkbox]),.monthly-person-adjust .goal-availability-fields select,.monthly-person-adjust .goal-availability-fields textarea{width:100%;box-sizing:border-box}
.monthly-person-adjust-footer{display:flex;justify-content:flex-end;margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:520px){.monthly-person-adjust .goal-availability-fields{grid-template-columns:1fr}}

:root[data-theme] .workspace .content .monthly-person-adjust{width:min(580px,calc(100vw - 32px));padding:24px}
:root[data-theme] .workspace .content .monthly-person-adjust .analysis-heading{margin:0 0 20px}
:root[data-theme] .workspace .content .monthly-person-adjust .analysis-heading h2{font-size:20px;line-height:1.3}
:root[data-theme] .workspace .content .monthly-person-adjust .dialog-field-group{min-width:0;margin:0 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px}
:root[data-theme] .workspace .content .monthly-person-adjust .dialog-field-group legend{padding:0 8px;font-size:13px;font-weight:600;color:var(--text)}
:root[data-theme] .workspace .content .monthly-person-adjust .dialog-field-group legend span{font-size:10px;margin-right:6px}
:root[data-theme] .workspace .content .monthly-person-adjust .monthly-person-toggle{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0 0 14px;font-size:12px;line-height:1.5;text-align:left}
:root[data-theme] .workspace .content .monthly-person-adjust .monthly-person-toggle input{width:16px;height:16px;flex:0 0 16px;margin:0;padding:0}
:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin:0;padding:0}
:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields label,:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields label:first-child{display:flex;flex-direction:column;align-items:stretch;grid-column:auto;gap:6px;margin:0;font-size:12px;text-align:left;min-width:0}
:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields label.monthly-person-absence{grid-column:1/-1}
:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields input,:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields select{width:100%;min-width:0;height:38px;padding:8px 10px;font-size:13px;box-sizing:border-box}
:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields textarea{min-width:0;height:65px;min-height:65px;padding:8px 10px;font-size:12px;box-sizing:border-box}
:root[data-theme] .workspace .content .monthly-person-adjust-footer{margin-top:4px;padding-top:14px}
:root[data-theme] .workspace .content .monthly-person-adjust>.monthly-goal-help{margin:10px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
@media(max-width:520px){:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields{grid-template-columns:1fr}}


/* One layout system for the monthly goal workflow. */
.audit-filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
:root[data-theme] .workspace .content .audit-filter-bar p{margin:0;flex:0 1 180px}
:root[data-theme] .workspace .content .audit-filter-bar p input,:root[data-theme] .workspace .content .audit-filter-bar p select{width:100%;box-sizing:border-box}
:root[data-theme] .workspace .content .audit-event-dialog{width:min(800px,calc(100vw - 32px));padding:24px;max-height:85vh;overflow:auto;text-align:left}
.audit-event-dialog .analysis-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
:root[data-theme] .workspace .content .audit-event-dialog .modal-close{position:static;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;margin:0;border:0;background:transparent}
.audit-record-name{font-weight:700;font-size:18px}
.audit-readable-changes{overflow:auto;max-height:55vh;margin-top:20px}
.audit-readable-changes table{width:100%;table-layout:fixed}
.audit-readable-changes th,.audit-readable-changes td{text-align:left;vertical-align:top;white-space:pre-line;overflow-wrap:anywhere;padding:12px}
.audit-readable-changes tbody th{font-weight:600}

.ocp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 8px;padding:12px 0;border-bottom:1px solid var(--line)}
.ocp-toolbar form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.ocp-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}
:root[data-theme] .workspace .content .ocp-toolbar select{height:34px;padding:6px 9px;font-size:12px;min-width:150px}
:root[data-theme] .workspace .content .ocp-toolbar button{height:34px;padding:6px 10px;font-size:12px}
.ocp-pending-count{font-size:12px;color:var(--muted);white-space:nowrap;padding:8px 0}
.ocp-pending-count strong{color:var(--text)}
.ocp-settings-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
:root[data-theme] .workspace .content .ocp-settings-options label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
:root[data-theme] .workspace .content .ocp-settings-options input{width:16px;height:16px;margin:0;accent-color:var(--brand)}
.ocp-settings-footer{display:flex;justify-content:flex-end;padding-top:12px;border-top:1px solid var(--line)}
.ocp-toolbar-summary{display:flex;align-items:center;gap:16px;margin-left:auto}
:root[data-theme] .workspace .content .ocp-toolbar-summary .ocp-pending-count{order:-1;margin:0;padding:0}
:root[data-theme] .workspace .content .ocp-toolbar-summary .ocp-settings-trigger{border-left:1px solid var(--line);border-radius:0;padding-left:16px;background:transparent;color:var(--muted)}
:root[data-theme] .workspace .content .ocp-workspace .ocp-toolbar form label{display:flex;flex-direction:row;align-items:center;gap:8px}
:root[data-theme] .workspace .content .ocp-workspace .ocp-toolbar form{align-items:center;gap:16px}
:root[data-theme] .workspace .content .ocp-workspace .ocp-toolbar form select{min-width:130px;width:150px}
@media(max-width:800px){.ocp-toolbar-summary{margin-left:0}:root[data-theme] .workspace .content .ocp-workspace .ocp-toolbar{flex-wrap:wrap}:root[data-theme] .workspace .content .ocp-workspace .ocp-toolbar form label{flex-direction:column;align-items:flex-start}}
:root[data-theme] .workspace .content .ocp-workspace .ocp-toolbar{padding:10px 0;margin:12px 0 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;align-items:center}
:root[data-theme] .workspace .content .ocp-workspace .ocp-pending-count{display:flex;align-items:center;gap:6px;padding:8px 0;background:transparent;font-size:12px}
:root[data-theme] .workspace .content .ocp-workspace .ocp-pending-count strong{font-size:18px;font-weight:700}
.ocp-list{border:1px solid var(--line);border-radius:10px;overflow:auto;max-height:65vh;overscroll-behavior:contain}
:root[data-theme] .workspace .content .ocp-list table{width:100%;min-width:1050px;margin:0;border:0;table-layout:fixed}
:root[data-theme] .workspace .content .ocp-list th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--line)}
:root[data-theme] .workspace .content .ocp-list .ocp-product-column{width:32%}
.ocp-product-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-theme] .workspace .content .ocp-list th,:root[data-theme] .workspace .content .ocp-list td{text-align:center!important;padding:9px 12px!important;font-size:12px;vertical-align:middle}
:root[data-theme] .workspace .content .ocp-list th{font-size:10px;background:var(--surface)!important;white-space:nowrap}
:root[data-theme] .workspace .content .ocp-workspace .ocp-list{border-radius:12px}
:root[data-theme] .workspace .content .ocp-workspace .ocp-list th{padding:12px 10px!important;font-size:11px;letter-spacing:.02em;color:var(--muted)}
:root[data-theme] .workspace .content .ocp-workspace .ocp-list td{padding:10px!important;line-height:1.4}
:root[data-theme] .workspace .content .ocp-workspace .ocp-list tr[data-ocp-select-row]>td{background:transparent}
:root[data-theme] .workspace .content .ocp-workspace .ocp-list tr[data-ocp-select-row]:hover>td{background:color-mix(in srgb,var(--brand) 7%,var(--surface))}
:root[data-theme] .workspace .content .ocp-workspace .ocp-order{text-decoration:none;font-weight:700}
:root[data-theme] .workspace .content .ocp-workspace .ocp-order:hover{text-decoration:underline}
:root[data-theme] .workspace .content .ocp-workspace .ocp-update-state{display:inline-block;font-size:11px;padding:0;background:transparent;line-height:1.35}
.ocp-list td small{display:block;font-size:10px;color:var(--muted);margin-top:4px;max-width:240px}
.ocp-order{font-weight:600;white-space:nowrap}
.ocp-selection-status{font-size:11px;color:var(--muted);margin:0 0 8px}
.ocp-selection-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:10px}
.ocp-selection-toolbar .ocp-list-context{margin:0;flex-shrink:0}
.ocp-selection-toolbar #ocp-confirm-selected{margin-left:auto!important}
.ocp-selection-toolbar .ocp-selection-status{margin:0}
:root[data-theme] .workspace .content .ocp-selection-toolbar form{margin:0;padding:0;border:0;background:transparent}
:root[data-theme] .workspace .content .ocp-selection-toolbar button{font-size:12px;padding:7px 10px;margin:0}
.ocp-selection-toolbar button:disabled{opacity:.45;cursor:default}
:root[data-theme] .workspace .content .ocp-selection-toolbar button.has-selection{background:transparent;border:0;color:#75c99f}
:root[data-theme] .workspace .content .ocp-toolbar form{display:flex;align-items:flex-end;flex-wrap:nowrap;gap:10px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important}
:root[data-theme] .workspace .content .ocp-toolbar label{margin:0!important}
:root[data-theme] .workspace .content .ocp-selection-toolbar{min-height:34px;margin:0 0 8px;padding:0!important}
@media(max-width:650px){:root[data-theme] .workspace .content .ocp-toolbar form{flex-wrap:wrap}}
:root[data-theme] .workspace .content .ocp-list .ocp-select-column{width:32px;padding:9px 8px!important;text-align:center!important}
.ocp-select-column input{width:15px;height:15px;margin:0;vertical-align:middle;accent-color:var(--brand);cursor:pointer}
:root[data-theme] .workspace .content .ocp-list tr.ocp-selected>td{background:color-mix(in srgb,var(--brand) 12%,var(--surface))!important}
.ocp-list-context{display:flex;align-items:center;gap:7px;margin:0 0 10px;font-size:11px;color:var(--muted)}
.ocp-list-context strong{padding:4px 8px;background:var(--surface-soft);border:1px solid var(--line);border-radius:6px;color:var(--text)}
.ocp-update-state{font-size:11px}.ocp-update-state.pending{color:#e7b663}.ocp-update-state.done{color:#75c99f}
:root[data-theme] .workspace .content .ocp-workspace .ocp-update-state.dates-changed{color:var(--brand);font-weight:700}
:root[data-theme] .workspace .content .ocp-details-button{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;font-size:11px;white-space:nowrap}
.ocp-details-button svg{width:14px;height:14px}
.ocp-detail-row[hidden]{display:none!important}
.ocp-detail-content{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:8px 2px}
.ocp-detail-content>div{min-width:0;flex:1}.ocp-detail-content>div>strong{font-size:11px}
.ocp-detail-content .copy-data{white-space:pre-wrap;font-size:11px;line-height:1.6;padding:10px;margin:8px 0;border-radius:7px}
.ocp-detail-content form{flex-shrink:0}.ocp-detail-content button{font-size:12px}
:root[data-theme] .workspace .content .ocp-detail-dialog{width:min(560px,calc(100vw - 32px));padding:22px;max-height:85vh;overflow:auto;box-sizing:border-box}
:root[data-theme] .workspace .content .ocp-order-dialog{width:min(1000px,calc(100vw - 32px));padding:22px;max-height:88vh;overflow:hidden;box-sizing:border-box}
:root[data-theme] .workspace .content .ocp-order-dialog[open]{display:flex;flex-direction:column}
:root[data-theme] .workspace .content .ocp-order-dialog>.analysis-heading{flex-shrink:0}
:root[data-theme] .workspace .content .ocp-order-dialog [data-ocp-order-body]{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:8px}
:root[data-theme] .workspace .content .ocp-order-dialog .section-nav{position:static!important;top:auto!important;z-index:auto!important;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;background:transparent}
:root[data-theme] .workspace .content .ocp-order-dialog .section-nav a{padding:8px 10px;font-size:13px}
.ocp-detail-dialog .analysis-heading,.ocp-order-dialog .analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.ocp-detail-dialog h2,.ocp-order-dialog h2{font-size:20px;margin:0}
.ocp-detail-dialog .ocp-detail-content{flex-direction:column;gap:12px}
:root[data-theme] .workspace .content #ocp-detail-dialog{width:min(560px,calc(100vw - 32px))!important;padding:24px!important;min-height:0!important}
:root[data-theme] .workspace .content #ocp-detail-dialog>.analysis-heading{margin:0 0 20px!important;padding:0!important}
:root[data-theme] .workspace .content #ocp-detail-dialog .dialog-heading-title{display:flex;align-items:center;gap:12px}
:root[data-theme] .workspace .content #ocp-detail-dialog .dialog-heading-title>span{width:40px;height:40px;flex:0 0 40px;border-radius:12px}
:root[data-theme] .workspace .content #ocp-detail-dialog h2{font-size:22px!important;line-height:1.25;margin:0!important}
:root[data-theme] .workspace .content #ocp-detail-dialog .modal-close{position:static!important;display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;padding:0!important;margin:0!important;line-height:1;font-size:24px;background:transparent;border:0;outline:none;color:var(--muted)}
:root[data-theme] .workspace .content #ocp-detail-dialog .modal-close:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-detail-content{display:flex;align-items:stretch;gap:16px;padding:0!important;margin:0!important}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-detail-content>div{width:100%;box-sizing:border-box}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-copy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;width:100%;box-sizing:border-box;margin:0!important;padding:18px!important;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-copy-fields dt{font-size:12px!important;margin:0 0 5px!important;color:var(--muted)}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-copy-fields dd{font-size:14px!important;line-height:1.5;margin:0!important;color:var(--text)}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-copy-fields>div:first-child dd{font-weight:700;color:var(--brand)}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-detail-content form{align-self:stretch;display:flex;justify-content:flex-end;width:100%;box-sizing:border-box;padding:12px 0 0!important;margin:0!important;border-top:1px solid var(--line)}
:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-detail-content form button{margin:0!important;padding:8px 10px!important;font-size:13px!important}
@media(max-width:480px){:root[data-theme] .workspace .content #ocp-detail-dialog .ocp-copy-fields{grid-template-columns:1fr}}
.ocp-detail-dialog .ocp-detail-content>div>strong{display:none}
.ocp-detail-dialog .ocp-detail-content form{align-self:flex-end}
.ocp-copy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;max-width:760px;margin:12px 0}
.ocp-copy-fields>div{min-width:0}.ocp-copy-fields>div:nth-child(3){grid-column:1/-1}
.ocp-copy-fields dt{font-size:10px;color:var(--muted);margin-bottom:4px}
.ocp-copy-fields dd{font-size:12px;margin:0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.ocp-copy-fields{grid-template-columns:1fr}}
@media(max-width:650px){.ocp-toolbar{align-items:flex-start;flex-direction:column;gap:6px}.ocp-detail-content{flex-direction:column}}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary>div[data-person-stage]{display:block!important;padding:0!important;border:0!important;background:transparent!important}
.person-performance-modal .person-progress-summary{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
.person-performance-modal .person-progress-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.person-performance-modal .person-progress-top>div{display:flex;align-items:baseline;gap:9px}
.person-performance-modal .person-progress-top>div>strong{font-size:28px;line-height:1.2}
.person-performance-modal .person-progress-top>div>span{font-size:12px;color:var(--muted)}
.person-performance-modal .person-progress-percentage{font-size:20px;line-height:1.2}
.person-performance-modal .person-progress-percentage.met{color:#75c99f}
.person-performance-modal .person-progress-percentage.below{color:#e7b663}
.person-performance-modal .person-progress-caption{margin:7px 0 12px;font-size:11px;color:var(--muted)}
.person-performance-modal .person-progress-caption strong{color:var(--text)}
.person-performance-modal .person-progress-track{height:6px;border-radius:6px;overflow:hidden;background:var(--line)}
.person-performance-modal .person-progress-track>span{display:block;height:100%;border-radius:6px}
.person-performance-modal .person-progress-track>span.met{background:#75c99f}
.person-performance-modal .person-progress-track>span.below{background:#e7b663}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary>div[data-person-stage][hidden]{display:none!important}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary :is(.person-metric,.person-result-meta,.person-percent-metric){display:flex!important;flex-direction:column!important;justify-content:center;align-items:flex-start;gap:8px!important;min-width:0;min-height:82px;padding:12px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:9px;background:var(--surface-soft)!important;box-sizing:border-box;grid-column:auto!important}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary :is(.person-metric,.person-result-meta,.person-percent-metric)>span{font-size:11px;color:var(--muted)}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary :is(.person-result-number,.person-result-meta>strong,.person-result-badge){font-size:23px!important;font-weight:700;line-height:1.2;padding:0!important;margin:0!important;background:transparent!important;border-radius:0}
:root[data-theme] .workspace .content .person-performance-modal .person-percent-metric .met{color:#75c99f!important}
:root[data-theme] .workspace .content .person-performance-modal .person-percent-metric .below{color:#e7b663!important}
:root[data-theme] .workspace .content .person-performance-modal .analysis-heading{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:12px}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary>div{grid-template-columns:1fr 1fr auto;gap:12px;padding:14px 16px}
.person-performance-modal .person-detail-summary>div>span:first-child{display:none}
.person-performance-modal .person-metric{display:flex;flex-direction:column;gap:5px}
.person-performance-modal .person-metric>span,.person-performance-modal .person-result-meta>span{font-size:11px;color:var(--muted)}
:root[data-theme] .workspace .content .person-performance-modal .person-result-meta{display:flex;flex-direction:column;gap:5px;grid-column:2;padding-left:16px}
.person-performance-modal .person-result-meta>strong{font-size:22px;color:var(--text);line-height:1.2}
:root[data-theme] .workspace .content .person-performance-modal .person-result-number{font-size:26px;color:var(--text)}
:root[data-theme] .workspace .content .person-performance-modal .table-scroll{border:1px solid var(--line);border-radius:9px}
:root[data-theme] .workspace .content .person-performance-modal table{margin:0;border:0;min-width:0}
:root[data-theme] .workspace .content .person-performance-modal table th,:root[data-theme] .workspace .content .person-performance-modal table td{padding:9px 12px;text-align:left;font-size:12px}
:root[data-theme] .workspace .content .person-performance-modal table th{background:var(--surface-soft);font-size:10px}
:root[data-theme] .workspace .content .person-performance-modal table td:first-child{font-weight:600;color:var(--text)}
:root[data-theme] .workspace .content .person-performance-modal table tr:last-child td{border-bottom:0}
.person-performance-modal [data-person-stage][hidden]{display:none!important}
.person-performance-modal .person-detail-summary{grid-template-columns:minmax(0,1fr)}
:root[data-theme] .workspace .content .person-performance-modal{width:min(520px,calc(100vw - 32px));padding:22px;box-sizing:border-box;max-height:86vh;overflow:auto}
:root[data-theme] .workspace .content .person-performance-modal .analysis-heading{margin:0 0 16px;gap:12px;align-items:center}
:root[data-theme] .workspace .content .person-performance-modal h2{font-size:20px;line-height:1.3;margin:0}
.person-performance-modal .people-eyebrow{font-size:10px;display:block;margin-bottom:6px}
.person-performance-modal .dialog-heading-icon{width:36px;height:36px;flex:0 0 36px}
.person-performance-modal .dialog-heading-title{gap:12px}
:root[data-theme] .workspace .content .person-performance-modal .modal-close{position:static;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;margin:0;font-size:21px;background:transparent;border:0}
.person-performance-modal>p.muted{font-size:12px;margin:0 0 14px}
.person-performance-modal .person-detail-summary{margin:0 0 18px}
.person-performance-modal .person-detail-summary>div{padding:12px 14px;border:1px solid var(--line);border-radius:8px}
.person-performance-modal .person-detail-summary>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 16px}
.person-performance-modal .person-detail-summary>div>span:first-child{grid-column:1/-1;font-size:11px}
.person-performance-modal .person-detail-summary .person-result-number{grid-column:1;margin:0;line-height:1.2}
.person-performance-modal .person-detail-summary .person-result-meta{grid-column:2;margin:0;padding-left:16px;border-left:1px solid var(--line)}
.person-performance-modal .person-detail-summary .person-result-badge{grid-column:3;justify-self:end;white-space:nowrap}
@media(max-width:400px){.person-performance-modal .person-detail-summary>div{gap:6px 10px;grid-template-columns:auto 1fr}.person-performance-modal .person-detail-summary .person-result-badge{grid-column:2;justify-self:start}.person-performance-modal .person-detail-summary .person-result-meta{padding-left:10px}}
.person-performance-modal .person-result-number{font-size:24px}
.person-performance-modal h3{font-size:14px;margin:0 0 10px}
.person-performance-modal table th,.person-performance-modal table td{padding:9px 12px;font-size:12px;text-align:left}
.person-performance-modal .table-scroll{max-height:40vh;overflow:auto}
:root[data-theme] .workspace .content .person-performance-modal{padding:24px!important;border-radius:16px!important}
:root[data-theme] .workspace .content .person-performance-modal .analysis-heading{border:0;padding:0!important;margin:0 0 8px!important}
:root[data-theme] .workspace .content .person-performance-modal .people-eyebrow{font-size:9px!important;letter-spacing:.12em;margin-bottom:7px}
:root[data-theme] .workspace .content .person-performance-modal .dialog-heading-icon{width:32px;height:32px;flex-basis:32px;border-radius:9px}
:root[data-theme] .workspace .content .person-performance-modal>p.muted{margin:0 0 18px!important;padding-left:44px;font-size:11px!important}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary{margin:0 0 20px!important}
:root[data-theme] .workspace .content .person-performance-modal .person-detail-summary>div{padding:12px 14px!important;background:transparent!important;border:0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;border-radius:0!important}
:root[data-theme] .workspace .content .person-performance-modal h3{font-size:13px!important;margin:0 0 8px!important}
:root[data-theme] .workspace .content .person-performance-modal .table-scroll{max-height:36vh;border:0!important;border-radius:0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.person-performance-modal .table-scroll::-webkit-scrollbar{width:5px;height:5px}
.person-performance-modal .table-scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:10px}
.person-performance-modal .table-scroll::-webkit-scrollbar-track{background:transparent}
:root[data-theme] .workspace .content .person-performance-modal table th,:root[data-theme] .workspace .content .person-performance-modal table td{padding:8px 10px!important;text-align:left!important;background:transparent!important}
:root[data-theme] .workspace .content .person-performance-modal table th{font-size:10px!important;color:var(--muted)!important;position:sticky;top:0;background:var(--surface)!important}
:root[data-theme] .workspace .content .person-performance-modal table td:last-child{text-align:right!important;color:var(--muted)}
:root[data-theme] .workspace .content .person-performance-modal table th:last-child{text-align:right!important}
.monthly-person-adjust [data-adjust-stage][hidden]{display:none!important}
:root[data-theme] .workspace .content .monthly-person-adjust .goal-availability-fields .monthly-general-toggle{grid-column:1/-1;flex-direction:row;align-items:center;gap:8px}
:root[data-theme] .workspace .content .monthly-person-adjust .monthly-general-toggle input{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0}
#kpi-target-modal .monthly-goal-saved{display:flex;flex-direction:column;align-items:stretch}
#kpi-target-modal .monthly-goal-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 6px}
#kpi-target-modal .monthly-goal-totals>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px}
#kpi-target-modal .monthly-goal-totals span{font-size:12px;color:var(--muted)}
#kpi-target-modal .monthly-goal-totals strong{font-size:17px}
#kpi-target-modal .monthly-goal-saved-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:4px}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved-actions button{padding:7px 2px;font-size:11px;gap:4px;white-space:nowrap}
#kpi-target-modal .monthly-goal-saved-actions button svg{width:13px;height:13px;flex-basis:13px}
@media(max-width:370px){#kpi-target-modal .monthly-goal-saved-actions{flex-wrap:wrap;justify-content:flex-start;gap:4px 10px}}
:root[data-theme] .workspace .content #kpi-target-modal #team-target-content>.scope{font-size:11px;line-height:1.5;padding:8px 10px;margin:0 0 14px;border-radius:7px}
:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs>div+div,:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs>div+div{border-left:1px solid var(--line);padding-left:16px}
@media(max-width:420px){:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs>div+div,:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs>div+div{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:14px}}
:root[data-theme] .workspace .content #kpi-target-modal{width:min(390px,calc(100vw - 32px));padding:22px;box-sizing:border-box}
:root[data-theme] .workspace .content #kpi-target-modal>.analysis-heading{margin:0 0 22px;gap:12px;align-items:center}
:root[data-theme] .workspace .content #kpi-target-modal .dialog-heading-title{gap:12px}
:root[data-theme] .workspace .content #kpi-target-modal>.analysis-heading h2{font-size:20px;line-height:1.3;margin:0 0 4px}
:root[data-theme] .workspace .content #kpi-target-modal>.analysis-heading small{font-size:12px;color:var(--muted)}
:root[data-theme] .workspace .content #kpi-target-modal .kpi-target-heading-icon{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center}
:root[data-theme] .workspace .content #kpi-target-modal .kpi-target-heading-icon svg{width:30px;height:30px}
:root[data-theme] .workspace .content #kpi-target-modal #team-target-content{margin:0;overflow-x:hidden;min-width:0}
:root[data-theme] .workspace .content #kpi-target-modal .goals-period-group{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:transparent}
:root[data-theme] .workspace .content #kpi-target-modal .goals-period-group legend{padding:0 7px;font-size:12px;font-weight:600}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-filter{display:grid;grid-template-columns:minmax(0,210px) auto;gap:12px;align-items:end;margin:0;padding:0!important}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-filter label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:12px}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-filter input{width:100%;height:36px;min-height:36px;padding:7px 9px;margin:0;font-size:13px;box-sizing:border-box}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-filter button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:6px 0;margin:0;font-size:12px;white-space:nowrap}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-empty,:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved{border-top:1px solid var(--line);padding:16px 0 0;margin:18px 0 0;gap:8px}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-empty h2,:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved h2{font-size:15px;line-height:1.4;margin:0}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-empty p,:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved p{font-size:12px;margin:0;color:var(--muted)}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-empty button,:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved button{display:inline-flex;align-items:center;gap:6px;margin:4px 0 0;padding:7px 8px;font-size:12px}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved .monthly-goal-saved-actions{width:100%;min-width:0;display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap}
:root[data-theme] .workspace .content #kpi-target-modal .monthly-goal-saved .monthly-goal-saved-actions button{min-width:0;padding:7px 0;font-size:11px;gap:4px;box-sizing:border-box}
#kpi-target-modal .monthly-goal-totals>div{min-width:0;box-sizing:border-box}
:root[data-theme] .workspace .content #monthly-goal-setup,:root[data-theme] .workspace .content #monthly-goal-edit{width:min(460px,calc(100vw - 32px));padding:22px;box-sizing:border-box}
:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs,:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs>div,:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs>div{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;align-items:start}
:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs h3,:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs h3{grid-column:1/-1;width:auto;font-size:13px;margin:0 0 4px}
:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs label,:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs label{display:flex;flex-direction:column;gap:5px;font-size:11px;min-width:0;white-space:nowrap}
.monthly-number-stepper{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:middle}
.monthly-number-stepper input[type=number]{appearance:textfield;-moz-appearance:textfield;min-width:0}
.monthly-number-stepper input::-webkit-inner-spin-button,.monthly-number-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.monthly-number-controls{display:flex;flex-direction:column;gap:2px;flex:0 0 18px}
:root[data-theme] .workspace .content dialog .monthly-number-controls button{display:flex;align-items:center;justify-content:center;width:18px;height:15px;margin:0;padding:0;min-height:0;line-height:1;border:0;background:transparent;color:var(--muted)}
.monthly-number-controls svg{width:13px;height:12px;display:block}
:root[data-theme] .workspace .content #monthly-goal-setup .monthly-number-stepper,:root[data-theme] .workspace .content #monthly-goal-edit .monthly-number-stepper{width:100%}
:root[data-theme] .workspace .content #monthly-goal-setup .monthly-number-stepper input,:root[data-theme] .workspace .content #monthly-goal-edit .monthly-number-stepper input{flex:1;width:0!important;height:34px;min-height:34px;margin:0;padding:6px;text-align:center;font-size:13px;box-sizing:border-box}
:root[data-theme] .workspace .content #monthly-goal-setup .monthly-goal-help,:root[data-theme] .workspace .content #monthly-goal-edit .monthly-goal-help{font-size:11px;line-height:1.5;margin:14px 0 0}
:root[data-theme] .workspace .content #monthly-goal-setup #monthly-roster-form>button,:root[data-theme] .workspace .content #monthly-goal-edit>button{display:flex;align-items:center;gap:7px;margin:14px 0 0 auto;padding:7px 8px;font-size:12px}
:root[data-theme] .workspace .content #monthly-goal-simulation{width:min(700px,calc(100vw - 32px));padding:22px;max-height:86vh}
:root[data-theme] .workspace .content #monthly-goal-simulation[data-goal-stage=INDIVIDUAL]{width:min(820px,calc(100vw - 32px))}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table{table-layout:fixed;width:100%;min-width:0}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table th,:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table td{padding:8px;font-size:12px}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table th:first-child,:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table td:first-child{width:78px;white-space:normal}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table th:nth-child(2),:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table td:nth-child(2){width:180px;text-align:left}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table [data-stage-column]{width:110px;text-align:left}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table th:last-child,:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table td:last-child{width:90px;text-align:center}
:root[data-theme] .workspace .content #monthly-goal-simulation .goal-roster-table td[data-stage-column] input{width:64px;min-height:32px;height:32px;padding:5px 8px;text-align:center;font-size:13px}
#monthly-goal-simulation [data-goal-mode=DISTRIBUTE] [data-mode-label]{display:none}
#monthly-goal-simulation .table-scroll{max-height:45vh;overflow:auto}
.monthly-business-days{display:flex;align-items:center;gap:6px;font-size:12px}
.monthly-business-days svg{width:15px;height:15px;color:var(--brand)}
.monthly-goal-saved button,.monthly-person-adjust-button,.monthly-person-adjust-footer button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.monthly-goal-saved button svg,.monthly-person-adjust-button svg,.monthly-person-adjust-footer button svg{width:15px;height:15px;flex:0 0 15px}
#monthly-goal-simulation .data-group-tabs button{display:inline-flex;align-items:center;gap:6px;font-size:12px}
#monthly-goal-simulation .data-group-tabs svg{width:16px;height:16px}
:root[data-theme] .workspace .content #monthly-goal-simulation .data-group-tabs{border-bottom:0!important}
:root[data-theme] .workspace .content #monthly-goal-simulation .data-group-tabs button{border:0!important;border-bottom:2px solid transparent!important;border-radius:0;box-shadow:none!important;background:transparent!important;color:var(--muted)!important;padding:9px 10px}
:root[data-theme] .workspace .content #monthly-goal-simulation .data-group-tabs button[aria-pressed=true]{color:var(--brand)!important;border-bottom-color:var(--brand)!important;background:transparent!important;font-weight:600}
:root[data-theme] .workspace .content #monthly-goal-simulation .data-group-tabs button[aria-pressed=true] svg{color:var(--brand)!important}
:root[data-theme] .workspace .content .monthly-person-adjust{width:min(520px,calc(100vw - 32px));padding:22px}
:root[data-theme] .workspace .content #monthly-goal-edit .analysis-heading,:root[data-theme] .workspace .content #monthly-goal-setup .analysis-heading,:root[data-theme] .workspace .content #monthly-goal-simulation .analysis-heading{margin:0 0 18px;gap:12px;align-items:center}
:root[data-theme] .workspace .content #monthly-goal-edit h2,:root[data-theme] .workspace .content #monthly-goal-setup h2,:root[data-theme] .workspace .content #monthly-goal-simulation .analysis-heading h2{font-size:20px;line-height:1.3;margin:0}
:root[data-theme] .workspace .content .monthly-goal-setup .dialog-heading-icon{width:36px;height:36px;flex:0 0 36px}
:root[data-theme] .workspace .content #kpi-target-modal .modal-close,:root[data-theme] .workspace .content .monthly-goal-setup .modal-close{width:28px;height:28px;flex:0 0 28px;padding:0;margin:0;line-height:1;font-size:21px;align-self:center}
@media(max-width:420px){:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs,:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs{grid-template-columns:1fr;gap:16px}:root[data-theme] .workspace .content #monthly-goal-edit .team-goal-inputs>div,:root[data-theme] .workspace .content #monthly-goal-setup .team-goal-inputs>div{grid-template-columns:110px 110px}}

.audit-action-kind{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.audit-action-summary{margin:20px 0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.audit-action-summary h3{font-size:14px;margin:0 0 10px}
.audit-action-summary p{margin:8px 0;line-height:1.5}

:root[data-theme] .workspace .content form.audit-filter-strip{display:grid;grid-template-columns:minmax(115px,1fr) minmax(220px,1.65fr) minmax(115px,.85fr) minmax(115px,1fr) minmax(100px,.75fr) repeat(2,minmax(140px,.9fr)) auto;align-items:end;gap:12px;width:100%;max-width:none;box-sizing:border-box;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:16px 0;margin:0}
:root[data-theme] .workspace .content .audit-filter-field{min-width:0}
:root[data-theme] .workspace .content .audit-filter-field label{display:block;font-size:12px;margin:0 0 7px;color:var(--muted)}
:root[data-theme] .workspace .content .audit-filter-field input,:root[data-theme] .workspace .content .audit-filter-field select{width:100%;min-width:0;box-sizing:border-box;height:40px;margin:0;padding:8px 10px;font-size:13px}
:root[data-theme] .workspace .content .audit-filter-actions{display:flex;align-items:center;gap:12px;height:40px;white-space:nowrap}
:root[data-theme] .workspace .content .audit-filter-actions button{margin:0}
:root[data-theme] .workspace .content .audit-filter-actions a{font-size:13px}
.audit-filter-errors{grid-column:1/-1}
:root[data-theme] .workspace .content .audit-result-count{margin:14px 0;font-size:13px;color:var(--muted)}
:root[data-theme] .workspace .content .audit-action-kind{display:block;font-size:11px;line-height:1.4;margin-top:5px;color:var(--muted)}
@media(max-width:1500px){:root[data-theme] .workspace .content form.audit-filter-strip{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:750px){:root[data-theme] .workspace .content form.audit-filter-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){:root[data-theme] .workspace .content form.audit-filter-strip{grid-template-columns:minmax(0,1fr)}}

/* The analysis header stays outside the scrolling result, including on long imports. */
:root[data-theme] .workspace .content #import-analysis-modal{width:min(1200px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:88vh;padding:24px;box-sizing:border-box;overflow:hidden;background:var(--surface)}
:root[data-theme] .workspace .content #import-analysis-modal[open]{display:flex;flex-direction:column}
:root[data-theme] .workspace .content #import-analysis-modal>.analysis-heading{position:static;flex:0 0 auto;top:auto;z-index:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 18px;margin:0;border-bottom:1px solid var(--line);background:var(--surface)}
:root[data-theme] .workspace .content #import-analysis-modal>.analysis-heading h2{margin:0;font-size:24px}
:root[data-theme] .workspace .content #import-analysis-modal .import-analysis-heading-copy{min-width:0}
:root[data-theme] .workspace .content #import-analysis-modal .import-analysis-filename{margin:10px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
:root[data-theme] .workspace .content #import-analysis-modal>.analysis-heading .modal-close{position:static;flex:0 0 32px;margin:0;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--muted)}
:root[data-theme] .workspace .content #import-analysis-modal>#import-result{flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:18px 0 0;border:0;background:transparent}
:root[data-theme] .workspace .content #import-analysis-modal>#import-result .section-title{position:static;top:auto;background:transparent}
:root[data-theme] .workspace .content #import-analysis-modal>#import-result>.analysis-footer-actions{margin-top:20px;padding:16px 0 0;border-top:1px solid var(--line)}
@media(max-width:600px){:root[data-theme] .workspace .content #import-analysis-modal{padding:16px;max-height:90vh;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}:root[data-theme] .workspace .content #import-analysis-modal>.analysis-heading h2{font-size:20px}}

:root[data-theme] .workspace .content #import-analysis-modal>.analysis-footer-actions{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--line)}
.import-review-guide{margin:0 0 18px}.import-review-guide h3{font-size:16px;margin:0 0 10px}.import-review-guide p{line-height:1.6}.import-review-guide summary{cursor:pointer;color:var(--brand);font-size:13px}.import-review-guide dl{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px 16px;font-size:13px;margin:14px 0}.import-review-guide dt{font-weight:600}.import-review-guide dd{margin:0;color:var(--muted);line-height:1.5}
@media(max-width:600px){.import-review-guide dl{grid-template-columns:1fr}}

/* Mouse/touch focus should not draw a keyboard outline around scrollable tables. */
:root[data-input-mode=pointer] .workspace :focus{outline:none!important;outline-offset:0!important}
:root[data-input-mode=keyboard] .workspace :focus-visible{outline:2px solid var(--brand)!important;outline-offset:2px}

/* Shared framing; specialized table/progress layouts retain their own sizing. */
:root[data-theme] .workspace .content dialog.unified-dialog{box-sizing:border-box;max-width:calc(100vw - 32px);overflow-x:hidden}
:root[data-theme] .workspace .content dialog.unified-dialog>.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
:root[data-theme] .workspace .content dialog.unified-dialog>.analysis-heading .dialog-heading-title{margin-bottom:0}
:root[data-theme] .workspace .content dialog.unified-dialog>.analysis-heading .modal-close{position:static;display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;margin:0;padding:0;border:0;background:transparent;color:var(--muted);line-height:1;font-size:24px}
:root[data-theme] .workspace .content dialog.unified-dialog>.analysis-heading h2{line-height:1.3;overflow-wrap:anywhere}
:root[data-theme] .workspace .content dialog.unified-dialog .issue-full-fields{background:transparent;border:0;border-radius:0;padding:0;gap:14px 24px;margin:0}
:root[data-theme] .workspace .content dialog.unified-dialog .issue-full-fields>div{background:transparent;border:0;padding:0;min-width:0}
:root[data-theme] .workspace .content dialog.unified-dialog .issue-full-fields dt{font-size:12px;color:var(--muted)}
:root[data-theme] .workspace .content dialog.unified-dialog .issue-full-fields dd{font-size:14px;line-height:1.5;color:var(--text);white-space:pre-line;overflow-wrap:anywhere;margin:5px 0 0}
:root[data-theme] .workspace .content #view-row-modal{width:min(800px,calc(100vw - 32px))}
:root[data-theme] .workspace .content #view-row-modal .dialog-field-group{margin:18px 0;padding:16px;background:transparent}
:root[data-theme] .workspace .content #view-row-modal .data-priority-form{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;margin:18px 0 0}

.platform-company-banner{padding:12px 28px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--text);font-size:13px}
.platform-user-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.platform-user-filters label{display:grid;gap:6px;min-width:150px}
.account-messages p{padding:10px 0;color:var(--text)}

:root[data-theme] .content.platform-access form{width:100%;max-width:100%;box-sizing:border-box}
:root[data-theme] .content.platform-access form :is(input:not([type=checkbox]),select){display:block;width:100%!important;max-width:100%!important;box-sizing:border-box;margin-top:8px}
:root[data-theme] .content.platform-access form p[hidden]{display:none!important}
:root[data-theme] .content.platform-access h1{font-size:26px;line-height:1.3}
:root[data-theme] .content.platform-access>p{line-height:1.6}
:root[data-theme] .mfa-enrollment{display:flex;align-items:center;gap:28px;margin:24px 0}
:root[data-theme] .mfa-enrollment-code{flex:0 0 auto;background:#fff;border-radius:12px;padding:8px;line-height:0}
:root[data-theme] .mfa-setup-qr{display:block;width:224px;height:224px;max-width:100%}
:root[data-theme] .mfa-enrollment-steps{padding-left:22px;margin:0;line-height:1.7;max-width:420px}
:root[data-theme] .mfa-enrollment-steps li+li{margin-top:12px}
:root[data-theme] .mfa-enrollment-manual{margin:20px 0;line-height:1.6}
:root[data-theme] .mfa-enrollment-manual summary{cursor:pointer;color:var(--accent)}
:root[data-theme] .mfa-enrollment-manual code{overflow-wrap:anywhere}
:root[data-theme] .mfa-enrollment-privacy{color:var(--muted);font-size:13px}
@media(max-width:600px){:root[data-theme] .mfa-enrollment{flex-direction:column;align-items:flex-start;gap:20px}}
