.shell{min-height:100vh}.appbar{display:flex;gap:32px;align-items:center;padding:16px clamp(16px,3vw,40px);border-bottom:1px solid var(--border);background:var(--surface)}.brand{font-size:16px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:12px;text-decoration:none}.brand-dot{display:block;width:12px;height:12px;background:var(--accent);border:1px solid var(--text)}.appbar nav{display:flex;align-items:center;gap:8px}.nav{border:0;background:transparent;white-space:nowrap}.nav.active{background:var(--accent-tint)}.account{margin-left:auto;display:flex;gap:20px;align-items:center}.account>span{font-weight:500}.account small{display:block;color:var(--muted);margin-top:4px}.settings,.history-nav,.export-options,.req-options{position:relative}.settings summary,.history-nav summary,.export-options summary,.req-options summary{white-space:nowrap;list-style:none}.settings summary::after,.history-nav summary::after,.export-options summary::after,.req-options summary::after{content:'⌄';margin-left:8px}.settings>div,.history-nav>div,.export-options>div,.req-options>div{position:absolute;right:0;top:100%;z-index:5;min-width:160px;padding:8px;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);box-shadow:0 8px 24px #17171518}.history-nav>div{left:0;right:auto}.settings button,.history-nav button,.export-options button,.req-options button{display:block;width:100%;text-align:left;border:0;background:transparent}.main{max-width:1840px;margin:auto;padding:16px 24px 48px;min-width:0}.top{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.top p{margin:4px 0 0}.eyebrow{font-size:12px;color:var(--secondary);margin-bottom:12px;letter-spacing:.04em}.workspace{display:grid;gap:20px}.with-tree{grid-template-columns:232px minmax(0,1fr)}.req-tree{padding:12px;border:1px solid var(--border);border-radius:var(--radius-panel);height:fit-content;background:var(--surface)}.tree-caption{display:flex;justify-content:space-between;padding:12px;font-weight:600;color:var(--secondary)}.tree-caption span{font-weight:400;font-family:ui-monospace,monospace}.tree-node{border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;margin:4px 0;padding:12px}.tree-node.active{background:var(--accent-tint)}.tree-node span{min-width:0;overflow-wrap:anywhere}.tree-node small{display:block;color:var(--muted);margin-top:4px}.tree-node b{font-family:ui-monospace,monospace;font-size:12px;font-weight:400;padding:2px 6px;background:var(--subtle);border-radius:4px}.tree-add{margin-top:12px;width:100%;background:transparent;border-style:dashed;text-align:left}.record-area{min-width:0}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;min-height:44px}.list-heading h2{font-size:16px;margin:0;overflow-wrap:anywhere}.list-heading #toggle-tree{font-size:12px;padding:8px 10px}.stage-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--border);padding-bottom:12px}.stage-tabs button{flex-shrink:0;border:0;background:transparent;padding:10px 12px;color:var(--secondary)}.stage-tabs button.active{color:var(--text);background:var(--accent-tint);font-weight:600}.stage-tabs span{margin-left:8px;font-size:12px;font-weight:400;font-family:ui-monospace,monospace}.toolbar{display:flex;align-items:center;gap:8px;margin:16px 0}.toolbar input{max-width:500px;margin-right:auto;min-width:0}.toolbar button,.toolbar details{flex-shrink:0}.records{overflow:hidden}.records th:first-child,.records td:first-child{width:44px;padding:12px}.records th:first-child input,.records td:first-child input{margin:0}.records td{vertical-align:middle}.records .title{min-width:210px;max-width:360px}.text-button{border:0;background:transparent;text-align:left;padding:8px 0;line-height:1.6;font-weight:600;max-width:100%;overflow-wrap:anywhere}.text-button:hover{background:transparent;text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:5px}.title .muted{margin-top:4px}.req-cell{min-width:110px;max-width:220px;overflow-wrap:anywhere}.time{white-space:nowrap;color:var(--secondary)}.priority{font-family:ui-monospace,monospace;font-size:12px}.row-actions{display:flex;gap:8px;align-items:flex-start;min-width:160px}.row-actions button{white-space:nowrap;min-height:44px;padding:8px 10px;font-size:12px}.more summary{font-size:12px;padding:12px 8px;list-style:none;white-space:nowrap}.more summary::after{content:' ···'}.more>div{display:flex;flex-direction:column;gap:4px;margin-top:4px;padding:6px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.more button{border:0;text-align:left;background:transparent}.list-footer{padding:14px 16px;display:flex;gap:16px;justify-content:space-between;font-size:12px;color:var(--muted);border-top:1px solid var(--border)}.batch-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--accent-tint)}.batch-bar strong{font-size:13px;margin-right:auto}.batch-bar button{font-size:12px}.case-preview{border:1px solid var(--border);padding:12px;background:var(--canvas);border-radius:var(--radius);margin-top:16px}.case-preview summary{padding:8px}.diff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.diff-grid small{color:var(--secondary)}.related-list{display:flex;flex-direction:column;gap:8px}.related-list button{text-align:left}.sync-label{font-size:13px;color:var(--secondary)}.sync-panel{border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface);margin-bottom:24px;padding:16px 20px}.sync-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.sync-heading strong{font-size:15px}.sync-panel p{margin:8px 0 0;font-size:13px}.sync-panel details{margin-top:8px}.sync-panel summary{padding:8px 0}.sync-list{margin:0;padding:0;list-style:none;max-height:240px;overflow:auto}.sync-list li{padding:10px 0;border-top:1px solid var(--border);display:flex;gap:12px;justify-content:space-between}.sync-list span{min-width:0;overflow-wrap:anywhere}.sync-list small{flex-shrink:0}.import-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:20px 0}.import-preview td{vertical-align:top}.import-preview th:first-child{width:48px}.import-preview select{min-width:160px;max-width:260px}.import-preview .error{margin:0}.import-preview .warning{color:var(--warning);font-size:12px}.import-preview details{max-width:340px}.import-preview pre{white-space:pre-wrap;overflow-wrap:anywhere}.checkbox-label{display:flex;gap:12px;align-items:center;font-size:14px}.field-help{font-size:12px;color:var(--muted);margin:6px 0}.record-advanced{grid-column:1/-1;border-top:1px solid var(--border);margin-top:20px}.record-advanced>summary{padding:12px 0}.record-advanced .formgrid{padding-bottom:16px}@media(max-width:1100px){.with-tree{grid-template-columns:190px minmax(0,1fr)}.appbar{gap:16px}.account{gap:12px}}@media(max-width:850px){.with-tree{grid-template-columns:minmax(0,1fr)}.req-tree{max-height:260px;overflow:auto}.top{gap:16px}.appbar{flex-wrap:wrap}.appbar nav{order:3;width:100%;border-top:1px solid var(--border);padding-top:8px}.account{margin-left:auto}.main{padding-top:8px}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none;flex:1 0 100%}.diff-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.appbar{padding-top:12px;padding-bottom:12px;gap:12px}.brand{font-size:14px;gap:8px}.account{gap:4px}.account>span{font-size:12px}.account small{font-size:11px}.settings summary{padding:12px 8px;font-size:12px}.top{align-items:flex-start;flex-direction:column;margin-bottom:24px}.top>.actions{width:100%}.top>.actions button{flex:1}.main{padding-left:16px;padding-right:16px}.workspace{gap:16px}.list-footer{flex-direction:column;gap:4px}.sync-heading{align-items:flex-start;flex-wrap:wrap}.sync-heading .actions{width:100%}.sync-heading .actions button{flex:1}.sync-panel{padding:16px}.sync-list li{flex-direction:column;gap:4px}}
.text-button>span{display:block}.text-button>.muted{font-weight:400}.records td{padding-top:12px;padding-bottom:12px}
.list-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px;color:var(--muted);font-size:13px}.list-pager[hidden]{display:none}
.overview{display:grid;gap:24px}.overview>p{margin:0}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:16px}.overview-card,.overview-section{padding:24px;border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface);min-width:0}.overview-card h2,.overview-card h3{font-size:14px;color:var(--secondary);margin:0 0 16px}.overview-card strong{font-size:32px;font-variant-numeric:tabular-nums}.overview-section h2{font-size:18px;margin:0 0 16px}.overview-sync-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.overview-sync-heading p{margin:0}.overview-section>.muted{margin-bottom:0}@media(max-width:600px){.overview-card,.overview-section{padding:16px}.overview-sync-heading button{width:100%}}

/* Context menus escape table overflow and never participate in row sizing. */
.settings summary::after,.export-options summary::after,.req-options summary::after{content:'';margin-left:8px}
.more summary{display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:var(--radius)}
.more summary::after{content:none}
.more[open]>summary::after{transform:none;margin:0}
.more[open]>summary{background:var(--subtle);border-color:var(--border)}
.more>div.context-menu,.settings>div.context-menu,.export-options>div.context-menu,.req-options>div.context-menu{position:fixed;inset:auto;margin:0;width:max-content;min-width:180px;max-width:calc(100vw - 16px);padding:6px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 8px 28px #17171520;z-index:20}
.context-menu:not(:popover-open){display:none}
.context-menu:popover-open{display:flex;flex-direction:column;gap:2px}
.context-menu button{width:100%;flex-shrink:0;border:0;text-align:left;padding:10px 12px;font-size:13px;background:transparent;border-radius:6px}
.context-menu button:hover{background:var(--subtle)}
.export-options summary,.req-options summary,.settings summary{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.appbar nav{overflow-x:auto;flex-shrink:0}
.daily-statistics-button{white-space:nowrap}
.personal-daily-text{font-family:inherit;font-size:14px;line-height:1.9;min-height:260px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}.todo-text{font-family:inherit;font-size:14px;line-height:1.9;min-height:320px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.daily-statistics-rules{margin-top:16px;font-size:13px;line-height:1.7;color:var(--muted)}
/* Selection actions float below the list without shifting its header or rows. */
.batch-bar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:6;max-width:calc(100vw - 32px);width:max-content;flex-wrap:nowrap;overflow-x:auto;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-panel);box-shadow:0 8px 28px #17171520}
.batch-bar strong,.batch-bar button{flex-shrink:0;white-space:nowrap}
.batch-bar strong{margin-right:12px}
.records tr.selected-row{background:var(--accent-tint)}
.main{padding-bottom:112px}
@media(max-width:600px){.batch-bar{bottom:12px;max-width:calc(100vw - 24px);padding:8px;gap:6px}.batch-bar strong{margin-right:6px}.batch-bar button{padding:8px}.appbar nav{gap:4px}.nav{padding:10px 12px}}
.appbar{flex-wrap:wrap}.appbar nav{min-width:0;max-width:100%;flex-shrink:1}
.toolbar{flex-wrap:wrap}.toolbar input{flex:1 1 200px}

#test-status-filter{width:auto;max-width:180px;flex-shrink:0}.test-state{white-space:nowrap}.test-state.running{color:var(--info);background:var(--info-bg)}.test-state.passed{color:var(--success);background:var(--success-bg)}.test-state.blocked{color:var(--error);background:var(--error-bg)}select.test-state{min-width:110px;width:auto;font-size:13px;padding:8px 10px}

#report-frame{display:block;width:100%;height:max(780px,calc(100vh - 250px));border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface)}
@media(max-width:600px){#report-frame{height:calc(100dvh - 180px);min-height:640px}}

.report-workspace>.top{display:none}.report-workspace{padding-top:16px}#report-frame{height:900px;min-height:0;border:0;border-radius:0;background:transparent}

/* Workspace navigation: stable primary row, contextual secondary row. */
.appbar{gap:20px;padding:8px 24px;min-height:60px}
.appbar .workspace-navigation{gap:4px;order:initial;width:auto;padding:0;border:0}
.workspace-navigation .nav{font-weight:600;padding:10px 12px}
.workspace-navigation .nav.active{background:var(--accent-tint);color:var(--text);box-shadow:inset 0 -2px var(--text)}
.subnav-shell{background:var(--surface);border-bottom:1px solid var(--border)}
.workspace-subnav{display:flex;gap:8px;align-items:center;max-width:1840px;margin:auto;padding:4px clamp(16px,3vw,40px);overflow-x:auto;scrollbar-width:thin}
.subnav-button{flex:0 0 auto;position:relative;border:0;background:transparent;color:var(--secondary);border-radius:6px;min-height:44px;padding:10px 16px}
.subnav-button.active{background:var(--accent-tint);color:var(--text);font-weight:600}
.main{padding-top:8px}
.top{margin-bottom:24px;gap:16px}.top h1{font-size:24px;letter-spacing:-.02em}.top p{margin-top:6px}
.toolbar{padding:12px;border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface)}
.toolbar #search{background:var(--canvas)}
.toolbar #draft-kind-filter{width:auto;max-width:200px}
.clear-filters{color:var(--secondary);font-size:12px;background:transparent}
.draft-choices{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0}
.draft-choices button{min-height:64px;font-weight:600}
.report-workspace{padding-top:16px;padding-bottom:24px}
@media(max-width:1100px){.appbar{gap:16px}.workspace-navigation .nav{padding:10px 14px}}
@media(max-width:850px){.appbar .workspace-navigation{order:3;width:100%;padding-top:8px;border-top:1px solid var(--border)}.workspace-subnav{padding-left:16px;padding-right:16px}.main{padding-top:20px}}
@media(max-width:600px){.top h1{font-size:22px}.workspace-navigation .nav{padding:10px 12px}.workspace-subnav{gap:4px}.subnav-button{padding:10px 12px}.toolbar{gap:8px}.toolbar #test-status-filter,.toolbar #draft-kind-filter{max-width:none;flex:1}.draft-choices{grid-template-columns:minmax(0,1fr)}}
@media(forced-colors:active){.workspace-navigation .nav.active,.subnav-button.active{outline:2px solid Highlight}}

.report-workspace #sync-panel{display:none}

@media(min-width:851px){
 .records th:last-child,.records td:last-child{position:sticky;right:0;background:var(--surface);box-shadow:-1px 0 0 var(--border);z-index:1}
 .records th:last-child{background:var(--subtle);z-index:2}
 .records tr.selected-row td:last-child{background:var(--accent-tint)}
}
.workspace-subnav[aria-busy="true"]{opacity:.65;cursor:progress}
.execution-images{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}.execution-images figure{margin:0;max-width:180px}.execution-images img{display:block;width:180px;max-width:100%;height:120px;object-fit:contain;background:var(--subtle);border:1px solid var(--border);border-radius:var(--radius)}.execution-images figcaption{font-size:12px;overflow-wrap:anywhere;margin:8px 0}.execution-images button{font-size:12px}#execution-form fieldset{border:0;padding:0;margin:0;min-width:0}
.list-heading:empty{display:none}
.record-area>.stage-tabs{margin-top:0}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.toolbar-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.toolbar .toolbar-tools select{width:auto;max-width:260px;flex:0 1 auto;margin:0}
.toolbar #search{width:clamp(220px,24vw,380px);max-width:380px;flex:1 1 220px;margin:0 0 0 auto}
@media(max-width:850px){
 .toolbar-tools{width:100%}
 .toolbar #search{width:100%;max-width:none;flex-basis:100%;margin:0}
 .with-tree .req-tree{max-height:280px;overflow:auto}
}
@media(max-width:480px){.toolbar .toolbar-tools select{flex:1 1 140px;max-width:none}}

/* Case and execution lists share a stable column grid and desktop density. */
.case-records table{table-layout:fixed;width:100%;min-width:1340px;font-size:13px;line-height:1.5}
.case-records .col-outcome{width:96px}.execution-outcome small{display:block;margin-top:4px}
/* Shared visual language for outcome and both synchronization columns. */
.badge.status-chip{justify-content:center;min-width:70px;min-height:28px;padding:3px 10px;border:1px solid currentColor;border-radius:8px;font-size:12px;font-weight:500;line-height:20px}
.badge.status-chip.approved{color:var(--info);background:var(--info-bg)}
.badge.status-chip.unsynced,.badge.status-chip.changed,.badge.status-chip.pending,.badge.status-chip.warning{color:var(--warning);background:var(--warning-bg)}
.badge.status-chip.synced{color:var(--success);background:var(--success-bg)}
.badge.status-chip.failed{color:var(--error);background:var(--error-bg)}
.badge.status-chip.draft,.badge.status-chip.unfilled,.badge.status-chip.skipped{color:var(--secondary);background:var(--subtle);border-color:var(--border)}
@media(min-width:900px){
 .case-records th:last-child,.case-records td:last-child{position:sticky;right:0;z-index:2;background:var(--surface);box-shadow:-1px 0 0 var(--border)}
}
.case-records .col-select{width:48px}.case-records .col-requirement{width:128px}
.case-records .col-sync{width:116px}
.case-records .col-state{width:116px}.case-records .col-owner{width:96px}
.case-records .col-updated{width:184px}.case-records .col-actions{width:184px}
.case-records th{height:48px;padding:4px 10px;font-size:13px;font-weight:600}
.case-records td{padding:10px;font-size:13px;vertical-align:middle}
.case-records td.time{white-space:nowrap;overflow:visible;text-overflow:clip;font-variant-numeric:tabular-nums}
.case-records th:first-child,.case-records td:first-child{padding:4px 6px;width:auto}
.case-records tbody tr{height:72px}
.case-records .title{min-width:0;max-width:none}
.case-records .text-button{display:block;width:100%;padding:0;min-height:44px;font-size:13px;line-height:18px}
.case-records .text-button>span:first-child,.case-records .cell-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.case-records .text-button>.muted{display:block;margin-top:2px;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-records .badge,.case-records .priority,.case-records .time,.case-records .row-actions button,.case-records .more summary{font-size:13px}
.case-records .row-actions{min-width:0;align-items:center}
.case-records .row-actions button,.case-records .more summary{height:44px;padding:8px 10px;line-height:18px}
.case-records .more summary{padding-left:8px;padding-right:8px}
.case-records select.test-state{width:92px;min-width:0;height:44px;min-height:44px;margin:0;padding:8px 6px;font-size:13px;line-height:18px}
.with-tree .toolbar-tools>button,.with-tree .toolbar-tools>select,.with-tree .toolbar-tools>details>summary,.with-tree .toolbar #search{height:44px;min-height:44px;padding:8px 12px;font-size:13px;line-height:20px}

/* Overview separates current inventory, synchronization, daily activity and people. */
.overview-daily-scroll{max-width:100%;border:1px solid var(--border);border-radius:8px}.overview-daily-table{width:100%;min-width:520px;border-collapse:collapse;table-layout:fixed;font-size:13px}.overview-daily-table th,.overview-daily-table td{padding:10px 16px;border-bottom:1px solid var(--border);vertical-align:middle;text-align:left;overflow-wrap:anywhere}.overview-daily-table thead th{background:var(--subtle);font-size:12px;font-weight:600}.overview-daily-table thead th:nth-child(1){width:28%}.overview-daily-table thead th:nth-child(2){width:48%}.overview-daily-table thead th:nth-child(3){width:24%;text-align:center}.overview-daily-table th[scope="rowgroup"]{background:var(--subtle);font-weight:600}.overview-daily-table th[scope="row"]{font-weight:400;background:transparent}.overview-daily-table .mono{text-align:center;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}.overview-daily-table td.muted{font-size:12px;line-height:1.8}.overview-daily-table tbody:last-child tr:last-child>*{border-bottom:0}/* tbody section divider (collapsed borders drop the previous row bottom) */.overview-daily-table tbody+tbody tr:first-child>*{border-top:1px solid var(--border)}
.overview-v2,.overview-v2>section{min-width:0}.overview-caption,.overview-section-heading,.overview-section-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.overview-caption p,.overview-section-heading p,.overview-section-footer p{margin:0}.overview-date{font-size:12px;color:var(--secondary);white-space:nowrap}
.overview-section-heading{margin-bottom:20px}.overview-section-heading h2{margin:4px 0 8px}.overview-eyebrow{font-size:11px;color:var(--muted);letter-spacing:.08em}
.overview-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.overview-kpis .overview-card{padding:20px}.overview-kpis h3{margin-bottom:12px;font-size:13px}.overview-kpis strong{font-size:28px}
.overview-metrics{grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:10px}.overview-metrics .overview-card{padding:16px;border:0;background:var(--subtle);border-radius:8px}.overview-metrics h3{margin:0 0 10px;font-size:12px;font-weight:500}.overview-metrics strong{font-size:24px}
.overview-sync{border-left:3px solid var(--accent)}.overview-section-footer{margin-top:16px}.overview-section-footer p{flex:1 1 360px;font-size:12px}.overview-section-footer .actions{flex-wrap:wrap}
.overview-distributions{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.overview-distributions>div{min-width:0}.overview-distributions h3{font-size:13px;margin:0 0 12px}
.overview-rule,.overview-rules{font-size:12px;line-height:1.8;margin-top:18px}.overview-rules summary{cursor:pointer;color:var(--secondary)}.overview-rules p{color:var(--muted);margin:10px 0 0}
.overview-team-scroll{max-width:100%;border:1px solid var(--border);border-radius:8px}.overview-team-table{width:100%;min-width:1120px;border-collapse:collapse;font-size:13px;table-layout:fixed}.overview-team-table th,.overview-team-table td{padding:14px 12px;border-bottom:1px solid var(--border);vertical-align:middle;overflow-wrap:anywhere}.overview-team-table thead th{background:var(--subtle);font-size:12px;line-height:1.6;text-align:center;font-weight:600}.overview-team-table th:first-child{width:120px;text-align:left}.overview-team-table th:nth-child(2){width:210px}.overview-team-table td.mono{text-align:center;font-variant-numeric:tabular-nums}.overview-team-table tbody th{font-weight:500}.overview-team-table small{display:block;color:var(--muted);font-size:11px}.overview-team-table tfoot{background:var(--subtle);font-weight:600}.overview-team-table tfoot th,.overview-team-table tfoot td{border-bottom:0}/* tbody-to-tfoot divider (collapsed borders drop the previous row bottom) */.overview-team-table tfoot tr:first-child>*{border-top:1px solid var(--border)}
@media(max-width:1200px){.overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.overview-distributions{grid-template-columns:1fr;gap:20px}.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-section-heading{align-items:flex-start}.overview-kpis .overview-card{padding:16px}.overview-sync .overview-section-heading>button{width:100%}}

/* Shared sync state keeps evidence secondary and local table scrolling intact. */
.sync-evidence{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:16px;color:var(--muted,#667085);margin-top:4px}
.sync-check-list .detail{margin:12px 0}.sync-check-list pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto}
.sync-history-entry{display:block;width:100%;text-align:left;margin:8px 0}

.toast{pointer-events:none}

.case-records td.title{padding-top:8px;padding-bottom:8px}
/* Keep feedback local to the changed region; dense tables do not slide. */
.records{transition:opacity var(--motion-fast)}.records[aria-busy="true"]{opacity:.65}
.records tbody tr:hover>td{background-color:var(--subtle)}.records tbody tr.selected-row>td{background-color:var(--accent-tint)}
#modal-error:not(:empty){padding:12px 14px;border:1px solid currentColor;border-radius:var(--radius);margin:16px 0 0}
#unsaved-confirm{margin:16px 0;padding:16px;border-radius:var(--radius);border:1px solid var(--border)}
@keyframes wb-updated{from{background-color:var(--accent-tint)}to{background-color:transparent}}
@media(prefers-reduced-motion:no-preference){.record-updated>td{animation:wb-updated 420ms ease-out}.main>.top{animation:wb-reveal var(--motion-fast) ease-out}}
@media(prefers-reduced-motion:reduce){.record-updated>td,.main>.top{animation:none!important}}

/* Keep fixed actions distinct while retaining local table scrolling. */
.tablewrap{scroll-padding-inline:12px 196px}
.tablewrap.can-scroll-right{border-right:3px solid var(--accent);position:relative}
.tablewrap.can-scroll-right::after{content:'左右滚动查看完整字段';display:block;position:sticky;left:0;padding:4px 12px;color:var(--secondary);font-size:12px;background:var(--surface)}
.case-records .col-owner{width:112px}
.case-records td:last-child,.case-records th:last-child{border-left:1px solid var(--border)}

/* Task-focused desktop layout; shared tokens remain the source of color. */
.main>.top{margin-bottom:16px}.main>.top h1{font-size:24px}.main>.top p{max-width:72ch;margin-bottom:0}
.drawer .dialog{width:min(1280px,96vw)}
.dialogbody{scrollbar-gutter:stable}.dialog footer{box-shadow:0 -6px 18px #17171505}
.editor-section{display:block;grid-column:1/-1;min-width:0;margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}
.editor-section h3{font-size:15px;margin:0 0 4px}.editor-section summary{font-size:14px;min-height:44px;padding:12px 0;cursor:pointer;font-weight:600}.section-summary{font-size:12px;font-weight:400;color:var(--muted)}
#fields{display:block}.editor-section .formgrid{align-items:start}.editor-section:has(#f-steps):not(:has(#bug-files-steps)) .wide:has(#f-steps),.editor-section:has(#f-steps):not(:has(#bug-files-steps)) .wide:has(#f-expected){grid-column:auto}
.editor-section textarea{min-height:160px;resize:vertical}.editor-section textarea#f-remarks{min-height:88px}.editor-section textarea#f-precondition{min-height:240px}
[aria-invalid="true"]{border-color:var(--error);outline-color:var(--error)}
.cell-meta{display:block;margin-top:6px;color:var(--muted);font-size:11px;white-space:nowrap}.sync-pair>div{display:flex;align-items:center;gap:8px}.sync-pair>div+div{margin-top:2px}.sync-pair small{color:var(--muted);font-size:11px}
.case-records table{min-width:1050px}.case-records .col-title{width:auto}.case-records .col-requirement{width:145px}.case-records .col-sync{width:152px}.case-records .col-owner{width:146px}
.records td{vertical-align:middle}.records:not(.case-records) table{min-width:1020px;table-layout:fixed}.records:not(.case-records) th:first-child{width:46px}.records:not(.case-records) th:nth-child(2){width:26%}.records:not(.case-records) th:last-child{width:180px}
.filter-more{position:relative}.filter-more>summary{padding:11px 14px;min-height:44px;border:1px solid var(--border);border-radius:8px;cursor:pointer;background:var(--surface)}.filter-more>div{display:flex;gap:8px;flex-wrap:wrap;padding:12px;position:absolute;top:100%;left:0;z-index:4;min-width:280px;max-width:80vw;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #17171516}.filter-more select{max-width:100%}
.active-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}.active-filters:empty{display:none}.active-filters span{font-size:12px;padding:6px 10px;border-radius:6px;background:var(--subtle);overflow-wrap:anywhere;max-width:100%}
.empty button{margin-top:20px}.batch-help{font-size:12px;color:var(--secondary);flex-basis:100%;margin:4px 0 0}.batch-bar{flex-wrap:wrap}
.overview-card:has(.metric-link){position:relative}.metric-link{all:unset;cursor:pointer;display:block;min-height:44px;width:100%;color:inherit}.metric-link:focus-visible{outline:2px solid var(--focus);outline-offset:4px}.overview-card:has(.metric-link):hover{border-color:var(--text)}
.execution-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;align-items:start}.execution-layout>.case-preview{position:sticky;top:0;max-height:65vh;overflow:auto}.execution-layout>#execution-form{min-width:0}.execution-layout>.execution-images{grid-column:2}.execution-layout .formgrid{display:block}
.sync-heading strong{font-size:14px}.sync-heading .actions{gap:6px}.sync-panel{padding:16px 20px}.sync-panel [role=status]{margin:8px 0}.auth{box-shadow:0 16px 50px #17171506}
@media(max-width:1100px){.workspace.with-tree{grid-template-columns:190px minmax(0,1fr)}.toolbar{flex-wrap:wrap}.toolbar #search{flex:1 1 260px}}
@media(max-width:700px){.execution-layout{display:block}.execution-layout>.case-preview{position:static;max-height:none}.editor-section .wide{grid-column:1/-1!important}.editor-section .formgrid{grid-template-columns:1fr}}
@media(max-width:600px){.drawer .dialog{width:100vw}.filter-more>div{position:static;min-width:0}.workspace.with-tree{grid-template-columns:minmax(0,1fr)}.dialog footer{padding:12px 16px}.main>.top h1{font-size:24px}}
@media(forced-colors:active){.active-filters span,.editor-section,.filter-more>summary{border:1px solid CanvasText}.metric-link:focus-visible{outline-color:Highlight}}
.import-steps{list-style:none;display:flex;gap:8px;padding:0;margin:20px 0;counter-reset:import-step;flex-wrap:wrap}.import-steps li{counter-increment:import-step;padding:10px 12px;background:var(--subtle);border-radius:8px;font-size:13px}.import-steps li::before{content:counter(import-step) ' · '}.import-steps [aria-current=step]{background:var(--accent-tint);font-weight:600}
.filter-more>div.context-menu{position:fixed;inset:auto;margin:0;width:max-content;min-width:280px;max-width:calc(100vw - 16px);padding:12px;overflow:auto;z-index:20}.filter-more>div.context-menu:popover-open{display:flex;gap:8px}.filter-more select{min-height:44px}

/* Keep secondary editing separate from the shared save / submit / close group. */
.dialog footer #execution-edit-case{margin-right:auto}
@media(max-width:600px){.dialog footer:has(#execution-edit-case){display:grid;grid-template-columns:minmax(0,1fr) auto auto}.dialog footer #execution-edit-case{grid-column:1/-1;justify-self:start}.dialog footer #save-execution{justify-self:end}.dialog footer:has(#execution-edit-case) button{white-space:nowrap}}
.req-directory{border-top:1px solid var(--border);margin-top:8px;padding-top:4px}
.req-directory>summary{padding:12px 4px;cursor:pointer;overflow-wrap:anywhere;font-weight:600;min-height:44px}
.req-directory>summary small{color:var(--muted);font-weight:400}
.req-children{padding-left:12px;border-left:2px solid var(--border);margin-left:6px}
.directory-actions{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 8px}
.directory-actions button{font-size:12px;min-height:44px;padding:4px}
/* Stays above table sticky cells (1-2) and filter popovers (4), but must remain
   below the modal layer (.modal at 100) so list headers never paint over drawers. */
.list-top-sticky{position:sticky;top:0;z-index:20;background:var(--canvas);padding:12px 0;border-bottom:1px solid var(--border)}

/* Task surfaces: a single navigation row and compact, readable work area. */
.account{gap:8px}.account-role{font-size:11px;color:var(--muted);font-weight:400}.account summary{gap:8px}.appbar .brand{color:var(--text)}
.list-heading:empty{display:none}.toolbar{padding:8px 12px;margin-bottom:8px}.stage-tabs{margin-bottom:8px}.stage-tabs button{padding:8px 12px}
.records th{height:44px;padding:8px 12px}.records td{height:72px;padding:8px 12px}.records .title .text-button>span:first-child{font-size:14px;font-weight:600}.records .cell-meta{font-size:12px;margin-top:2px}.sync-pair .status-chip{min-height:22px;line-height:18px;padding:1px 8px;border-radius:4px}.sync-pair small{font-size:12px}
.case-records .col-actions{width:160px}.case-records .col-state{width:110px}.case-records .col-sync{width:140px}.case-records .col-requirement{width:132px}.case-records table{min-width:1030px}
.dialoghead{padding:14px 24px}.dialog footer{padding:12px 24px}.dialogbody label{margin-top:12px}.editor-section h3{font-size:14px}.execution-layout{gap:20px}.execution-layout>.case-preview{max-height:72vh}
.overview-grid{gap:12px}.overview-card{padding:16px}.overview-section{padding:20px;margin-top:16px}.overview-section-heading{margin-bottom:12px}.overview-section-heading p{margin:4px 0}.sync-panel{padding:12px 16px}.auth{border-top:4px solid var(--accent)}
@media(max-width:1100px){.appbar{gap:12px;flex-wrap:wrap}.account{margin-left:auto}.appbar .workspace-navigation{order:3;width:100%;overflow-x:auto}.workspace.with-tree{grid-template-columns:180px minmax(0,1fr)}.main{padding-left:16px;padding-right:16px}}
@media(max-width:600px){.workspace.with-tree{grid-template-columns:minmax(0,1fr)}.account-role{display:none}.dialoghead{padding:12px 16px}}

.main>.top{padding:0;margin:0 0 8px;min-height:44px}.main>.top p{display:none}.record-area>.stage-tabs{padding:0;margin:0 0 8px;min-height:44px}
