/* Staged document preparation shares Library's geometry and design tokens. */
.sw-workbench{min-width:0;width:100%;font-size:14px;line-height:1.5}
.sw-workbench .breadcrumb{margin-bottom:16px}.sw-workbench .breadcrumb .btn{padding:0;border:0;background:transparent;color:var(--color-accent)}
.sw-project-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.sw-project-header>div{min-width:0}.sw-project-header h1{font-size:22px;line-height:30px;margin:4px 0 6px;max-width:900px}.sw-project-header .eyebrow{font-size:11px;margin:0}.sw-hint{font-size:12px;line-height:19px;color:var(--color-muted);margin:8px 0 12px}
.sw-stepper{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--color-accent-line);background:var(--color-accent-soft);border-radius:10px;margin-bottom:24px}
.sw-stepper button{display:flex;align-items:center;gap:7px;min-width:0;min-height:52px;padding:7px 9px;border:0;background:transparent;color:var(--color-accent);border-radius:7px;font-size:12px;text-align:left}.sw-stepper button>span{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:var(--color-surface);font-variant-numeric:tabular-nums}.sw-stepper svg{width:14px;height:14px}.sw-stepper b{font-weight:500;overflow-wrap:anywhere}.sw-stepper .is-current{background:var(--color-accent);color:var(--color-surface)}.sw-stepper .is-current>span{color:var(--color-accent)}
.sw-workbench .btn{font-size:13px;min-height:36px;padding:7px 11px;font-weight:500;white-space:normal}.sw-primary{background:var(--color-accent-soft);border:1px solid var(--color-accent-line);color:var(--color-accent)}.sw-primary:hover{background:var(--color-accent-soft);border-color:var(--color-accent);color:var(--color-accent)}
.sw-panel{padding:20px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;min-width:0}.sw-panel h2{font-size:18px;line-height:26px;margin:0 0 8px}.sw-panel h3{font-size:15px;line-height:23px;margin:0 0 12px}.sw-panel p{margin:0 0 12px}.sw-panel>form{margin-top:18px}.sw-reading{max-width:780px;margin-inline:auto}.sw-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.sw-section-heading>div{min-width:0}.sw-section-heading>div>p{font-size:13px;color:var(--color-muted);margin:4px 0 0}.sw-section-heading h3{margin:0}
.sw-badge{display:inline-flex;align-items:center;border-radius:999px;background:var(--color-surface-muted);padding:3px 8px;font-size:11px;line-height:18px;color:var(--color-muted);max-width:100%}.sw-badge.success{background:var(--color-success-soft);color:var(--color-success)}.sw-badge.warning{background:var(--color-warning-soft);color:var(--color-warning)}
.sw-two-pane{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;margin:16px 0;align-items:start}.sw-pane{min-width:0}.sw-section-nav{display:flex;flex-direction:column;gap:5px;max-height:650px;overflow-y:auto;scrollbar-width:thin}.sw-section-nav>.btn{display:block;text-align:left;width:100%;min-width:0;padding:10px;background:var(--color-surface-muted);border-color:transparent}.sw-section-nav b{font-weight:500;font-size:12px;display:block}.sw-section-nav small{display:block;margin-top:5px;font-size:11px;line-height:17px;color:var(--color-muted)}.sw-section-nav .is-current{background:var(--color-accent-soft);border-color:var(--color-accent-line);color:var(--color-accent)}
.sw-source-scope{display:flex;gap:3px;padding:3px;border:1px solid var(--color-accent-line);border-radius:8px;background:var(--color-accent-soft);width:fit-content}.sw-source-scope .btn{border-color:transparent;background:transparent;color:var(--color-accent)}.sw-source-scope .is-selected{background:var(--color-accent);color:var(--color-surface)}.sw-collections{display:flex;gap:10px 18px;flex-wrap:wrap;padding:14px 0}.sw-collections label{display:flex;gap:8px;align-items:center;font-size:12px}.sw-collections input{accent-color:var(--color-accent)}
.sw-source-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sw-source-tools .search-input{flex:1 1 100%;min-width:0;height:44px}.sw-source-tools .search-input input{height:44px}.sw-source-tools select{width:auto;max-width:100%;min-height:36px;padding:6px 10px;font-size:12px}.sw-list-actions,.sw-inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sw-source-list{max-height:470px;overflow:auto;border:1px solid var(--color-border);border-radius:8px;scrollbar-width:thin}.sw-source-row{display:flex;align-items:flex-start;gap:10px;padding:12px;border-bottom:1px solid var(--color-border);cursor:pointer}.sw-source-row:last-child{border-bottom:0}.sw-source-row:has(input:checked){background:var(--color-accent-soft)}.sw-source-row>input{margin:4px 0 0;accent-color:var(--color-accent);flex:0 0 auto}.sw-source-row>span{min-width:0}.sw-source-row b{font-size:13px;font-weight:500}.sw-source-row small{display:block;font-size:12px;color:var(--color-muted);margin-top:4px}.sw-source-revision{font-size:11px;color:var(--color-muted);margin-left:auto;flex:0 0 auto}
.sw-stage-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--color-border);padding-top:16px;margin-top:20px}.sw-stage-footer>span{font-size:12px;color:var(--color-muted);flex:1 1 220px}.sw-stage-footer>div{display:flex;gap:8px;flex-wrap:wrap}.sw-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.sw-span{grid-column:1/-1}.sw-form-group{border-top:1px solid var(--color-border);padding-top:18px;margin-top:18px}.sw-template-tools{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin:18px 0}.sw-template-tools>.form-field{flex:1 1 240px;margin:0}.sw-oks-selected{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.sw-oks-tree summary{cursor:pointer;color:var(--color-accent);margin-bottom:12px}.sw-oks-tree label{display:flex;gap:8px;margin:10px 0;font-size:12px}.sw-oks-tree input{accent-color:var(--color-accent)}
.sw-matrix-scroll{overflow-x:auto;border:1px solid var(--color-border);border-radius:8px;margin-top:16px}.sw-matrix-table{width:100%;min-width:640px;border-collapse:collapse;text-align:left}.sw-matrix-table th{padding:10px 12px;background:var(--color-surface-muted);font-size:11px;color:var(--color-muted);font-weight:500}.sw-matrix-table td{padding:12px;vertical-align:top;border-top:1px solid var(--color-border);font-size:12px;line-height:19px}.sw-matrix-table th:nth-child(1){width:22%}.sw-matrix-table th:nth-child(2){width:40%}.sw-matrix-table th:nth-child(3){width:20%}.sw-matrix-table th:nth-child(4){width:18%}.sw-matrix-table small{display:block;font-size:11px;color:var(--color-muted);margin-top:5px}.sw-matrix-table p{margin:0 0 8px}.sw-workbench .sw-row-link{background:transparent;border:0;padding:0;text-align:left;color:var(--color-accent);min-height:24px;justify-content:flex-start;font-size:12px}.sw-row-link:hover{text-decoration:underline}.sw-inclusion{display:flex;gap:7px;align-items:center;font-size:11px;margin:0 0 10px}.sw-inclusion input{width:18px;height:18px;accent-color:var(--color-accent)}
.sw-operations{position:relative}.sw-operations>summary{display:flex;align-items:center;gap:8px;list-style:none;padding:7px 11px;border:1px solid var(--color-border);border-radius:8px;cursor:pointer;font-size:13px;min-height:36px}.sw-operations svg{width:16px;height:16px}.sw-operations>div{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);margin-top:6px}.sw-operations .btn{text-align:left;justify-content:flex-start}
.sw-text-editor{min-height:480px;line-height:1.75;font-size:14px;padding:16px;resize:vertical}.sw-progress{border:1px solid var(--color-accent-line);border-radius:10px;padding:16px;background:var(--color-surface);margin-bottom:20px}.sw-progress p{font-size:13px;margin:5px 0 0;color:var(--color-muted)}.sw-progress .sw-section-heading{margin-bottom:10px}.sw-progress .sw-section-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.sw-progress progress{width:100%;height:7px;accent-color:var(--color-accent);display:block;margin:12px 0}.sw-progress small{color:var(--color-muted);font-size:11px;font-variant-numeric:tabular-nums}
.sw-quality-list{margin:18px 0}.sw-quality-list>div{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--color-border)}.sw-quality-list svg{width:18px;height:18px;flex-shrink:0;color:var(--color-accent)}.sw-quality-list span:first-of-type{flex:1}.sw-release-errors,.sw-preview{margin:16px 0}.sw-release-errors summary,.sw-preview summary{cursor:pointer;font-weight:500}.sw-release-errors ul{font-size:12px;line-height:1.7;padding-left:20px}.sw-preview pre,.sw-version{font-family:inherit;white-space:pre-wrap;font-size:12px;line-height:1.65;max-height:460px;overflow:auto;padding:16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-muted)}.sw-evidence{font-size:14px;line-height:1.7;margin:16px 0;padding:12px 16px;border-left:3px solid var(--color-accent-line);white-space:pre-line}
.sw-workbench button:focus-visible,.sw-workbench summary:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.sw-workbench button:disabled{cursor:not-allowed;opacity:.5}
@container workspace (max-width:1000px){.sw-stepper{grid-template-columns:repeat(3,minmax(0,1fr))}.sw-two-pane{grid-template-columns:160px minmax(0,1fr);gap:14px}.sw-panel{padding:16px}}
@container workspace (max-width:680px){.sw-two-pane{grid-template-columns:1fr}.sw-section-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:210px}.sw-field-grid{grid-template-columns:1fr}.sw-stage-footer>div{width:100%}.sw-stepper button{padding:6px;font-size:11px;gap:5px}.sw-stepper button>span{width:19px;height:19px;flex-basis:19px}.sw-project-header{flex-wrap:wrap}.sw-project-header h1{font-size:20px;line-height:28px}.sw-source-revision{display:none}.sw-text-editor{min-height:340px}.sw-quality-list>div{flex-wrap:wrap}}
/* Compact project cards and sequential wizard states. */
.compact-sto-card{position:relative;display:flex;flex-direction:column;gap:0;padding:20px;min-height:0!important}.compact-sto-card .project-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.project-kind-tag{display:inline-flex;font-size:12px;line-height:20px;padding:3px 9px;border-radius:7px;color:var(--color-accent);background:var(--color-accent-soft)}.project-kind-tag.is-ready{color:var(--color-success);background:var(--color-success-soft)}.project-card-tools{display:flex;gap:8px;position:relative;z-index:2}.compact-sto-card .project-card-tools button{width:36px;height:36px;min-height:36px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);display:grid;place-items:center}.compact-sto-card h3{font-size:17px;line-height:25px;font-weight:500;margin:0 0 8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:0}.compact-sto-card .project-meta{font-size:12px;margin:0;color:var(--color-muted)}.project-stage-status{display:flex;align-items:center;gap:7px;min-height:20px;font-size:12px;margin:18px 0;color:var(--color-muted)}.project-stage-status svg{width:15px;height:15px;color:var(--color-success)}.project-stage-caption{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-top:auto;color:var(--color-muted)}.project-stage-segments{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:9px 0 16px}.project-stage-segments span{height:5px;border-radius:999px;background:var(--color-surface-muted)}.project-stage-segments .is-done{background:var(--color-accent)}.project-stage-segments .is-current{background:var(--color-accent-line)}.compact-sto-card .project-continue{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:8px 12px;color:var(--color-accent);background:var(--color-accent-soft);border:1px solid var(--color-accent-line);font-size:13px}.compact-sto-card .project-card-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--color-border)}.compact-sto-card .project-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%}.compact-sto-card .project-impact{margin-right:auto}.compact-sto-card .project-actions>button{height:36px;min-height:36px}.project-spinner{width:12px;height:12px;border:2px solid var(--color-accent-line);border-top-color:var(--color-accent);border-radius:50%;animation:sto-spin 1s linear infinite}@keyframes sto-spin{to{transform:rotate(360deg)}}
.sw-title-row{display:flex;align-items:baseline;gap:8px}.sw-workbench .sw-edit-title{width:30px;height:30px;min-height:30px;padding:6px;flex-shrink:0;border-color:var(--color-border);background:var(--color-surface);color:var(--color-muted)}.sw-edit-title svg{width:16px;height:16px}.sw-rename{display:grid;gap:10px}.sw-rename>div{display:flex;gap:8px}.sw-rename label{font-size:12px;display:flex;align-items:center;gap:8px}.sw-stepper .is-locked{opacity:.55;cursor:not-allowed}.sw-stepper .is-locked>span{background:var(--color-surface-muted)}.sw-space{margin-top:20px!important}.sw-issues{list-style:none;padding:0}.sw-issues li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--color-border);font-size:13px}.sw-found{padding:16px 0;border-bottom:1px solid var(--color-border)}.sw-found p{white-space:pre-wrap;line-height:1.6}.sw-found h3{font-size:14px}.sw-panel .sw-section-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.sw-workbench .sw-text-editor{font-family:inherit}.sw-workbench .sw-preview pre{white-space:pre-wrap;overflow-wrap:anywhere}.sw-issues .btn{flex-shrink:0}.sw-release-errors li{margin-bottom:8px}@media(prefers-reduced-motion:reduce){.project-spinner{animation:none}}@container workspace (max-width:520px){.compact-sto-card .project-actions{flex-wrap:wrap}.compact-sto-card .project-impact{flex:1 1 auto}.sw-stepper{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Inline project guidance, using the same restrained form scale. */
.sw-project-form .sw-field-note{margin-top:-8px;margin-bottom:8px}.sw-field-help{margin:0 0 16px;padding:0}.sw-field-help>summary{display:flex;align-items:center;gap:6px;width:fit-content;list-style:none;font-size:12px;color:var(--color-accent);cursor:pointer;padding:4px 0}.sw-field-help>summary::-webkit-details-marker{display:none}.sw-field-help>summary svg{width:15px;height:15px;flex-shrink:0}.sw-field-help[open]>summary{margin-bottom:10px}.sw-field-help p,.sw-field-help dl{font-size:13px;line-height:1.6}.sw-field-help dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px 12px;margin:12px 0}.sw-field-help dt{color:var(--color-muted)}.sw-field-help dd{margin:0;overflow-wrap:anywhere}.sw-scope-examples{display:grid;gap:12px;margin:12px 0}.sw-scope-examples>div{padding:12px;background:var(--color-surface-muted);border-radius:8px}.sw-scope-examples p{margin:0 0 8px}.sw-suggestion small{font-size:12px;color:var(--color-muted)}.sw-suggestion p{padding:12px;background:var(--color-surface-muted);border-radius:8px;margin:6px 0 16px;white-space:pre-wrap;overflow-wrap:anywhere}.sw-field-help .btn{min-height:36px}
/* Detailed field instructions transcribed from the supplied reference screens. */
.sw-guide-instructions{margin-top:12px;overflow-wrap:anywhere}.sw-guide-instructions h4{font-size:14px;line-height:1.5;font-weight:500;margin:18px 0 10px}.sw-guide-example{padding:14px;margin:12px 0;background:var(--color-surface-muted);border-radius:8px;font-size:13px;line-height:1.6}.sw-guide-example h4{margin:0 0 10px}.sw-guide-example dl{margin:0}.sw-guide-instructions ul{font-size:13px;line-height:1.6;padding-left:20px;margin:12px 0 18px}.sw-guide-instructions li{margin-bottom:6px}.sw-guide-instructions blockquote{font-size:13px;line-height:1.7;margin:16px 0;padding:14px 16px;background:var(--color-surface-muted);border-left:3px solid var(--color-accent);border-radius:0 8px 8px 0;color:var(--color-text)}
/* A single stage rail and a stable source-selection workspace. */
.sw-line-stepper{grid-template-columns:repeat(6,minmax(0,1fr));gap:0;border:0;background:transparent;padding:0;margin:4px 0 24px}
.sw-line-stepper button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:8px 3px;min-height:98px;text-align:center;border-radius:0;color:var(--color-muted);background:transparent!important;isolation:isolate}
.sw-line-stepper button:not(:last-child)::after{content:"";position:absolute;top:23px;left:calc(50% + 18px);width:calc(100% - 36px);height:2px;background:var(--color-border);z-index:-1}
.sw-line-stepper button.is-complete::after{background:var(--color-success)}
.sw-line-stepper button>.sw-step-dot{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;background:var(--color-surface-muted);color:var(--color-muted);border:1px solid var(--color-border);border-radius:50%;font-size:12px}
.sw-line-stepper button b{font-size:12px;line-height:17px;max-width:115px;font-weight:500;overflow-wrap:normal}.sw-line-stepper button small{font-size:10px;line-height:14px;min-height:14px}
.sw-line-stepper button.is-complete>.sw-step-dot{background:var(--color-success-soft);border-color:var(--color-success);color:var(--color-success)}
.sw-line-stepper button.is-current{color:var(--color-accent)}.sw-line-stepper button.is-current>.sw-step-dot{color:white;background:var(--color-accent);border-color:var(--color-accent);box-shadow:0 0 0 4px var(--color-accent-soft)}
.sw-line-stepper button.needs-review>.sw-step-dot{background:var(--color-warning-soft);color:var(--color-warning);border-color:var(--color-warning)}.sw-line-stepper button.is-locked{opacity:.65}
.sw-step-spinner{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sto-spin 1s linear infinite}
.sw-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}.sw-field-heading>label{font-size:13px;font-weight:500}.sw-workbench .sw-help-trigger{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:3px 0;border:0;background:transparent;color:var(--color-accent);font-size:12px;white-space:nowrap}.sw-help-trigger svg{width:14px;height:14px}.sw-project-field>input,.sw-project-field>textarea{display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-border);border-radius:8px;padding:11px 12px;background:var(--color-surface);color:var(--color-text);font:inherit;min-height:44px}.sw-project-field>textarea{min-height:130px;resize:vertical}.sw-project-form .sw-project-field .sw-field-note{margin:7px 0 12px}.sw-field-help[hidden]{display:none}.sw-project-tool{min-height:36px!important}
.sw-sources-workspace{grid-template-columns:170px minmax(0,1fr);gap:20px;align-items:start}.sw-sources-workspace>.sw-section-nav{position:sticky;top:16px;max-height:min(650px,calc(100vh - 48px));display:flex;gap:2px;padding-right:5px;scrollbar-color:var(--color-border) transparent;scrollbar-width:thin}
.sw-section-nav>.btn{background:transparent;border:0;border-left:2px solid transparent;border-radius:0}.sw-section-nav>.btn.is-current{border-left-color:var(--color-accent);background:var(--color-accent-soft)}
.sw-plain-navigation>.btn{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:8px 9px;font-size:12px;line-height:18px}.sw-plain-navigation>.btn.is-child{padding-left:19px}.sw-nav-title{min-width:0}.sw-nav-count{flex:0 0 auto;display:grid;place-items:center;min-width:21px;height:21px;padding:0 4px;border-radius:999px;background:var(--color-surface-muted);font-size:11px;font-variant-numeric:tabular-nums}.is-current .sw-nav-count{background:var(--color-surface);color:var(--color-accent)}
.sw-source-controls{min-width:0}.sw-source-control-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;min-height:38px}.sw-source-control-heading h3{margin:0;font-size:14px}.sw-source-control-heading .sw-hint{flex-shrink:0;margin:0}.sw-source-controls .sw-collections{max-height:112px;overflow:auto}.sw-recommendation-status{display:flex;align-items:center;gap:7px;font-size:12px;line-height:18px;color:var(--color-muted);margin:12px 0;min-height:36px}.sw-recommendation-status svg{width:14px;height:14px;color:var(--color-success);flex-shrink:0}
.sw-search-field{display:flex;align-items:center;gap:9px;flex:1 1 100%;height:44px;padding:0 12px;box-sizing:border-box;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface)}.sw-search-field:focus-within{outline:2px solid var(--color-accent-line);border-color:var(--color-accent)}.sw-search-field>svg{width:17px;height:17px;flex:0 0 17px;color:var(--color-muted)}.sw-search-field>input{border:0;outline:0;box-shadow:none;background:transparent;width:100%;min-width:0;height:40px;padding:0;font:inherit;font-size:13px;color:var(--color-text)}
.sw-source-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.sw-source-list-heading>label{display:flex;align-items:center;gap:8px;font-size:12px}.sw-source-list-heading input{accent-color:var(--color-accent)}.sw-source-list-heading .sw-operations>div{position:absolute;right:0;top:100%;width:245px;z-index:4;box-shadow:0 6px 20px #00000012}.sw-source-list-heading .sw-operations>summary{min-height:36px;box-sizing:border-box}.sw-source-controls .sw-source-list{max-height:390px;scrollbar-color:var(--color-border) transparent}.sw-source-reason{color:var(--color-success)!important;font-size:11px!important}.sw-source-reason svg{width:12px;height:12px;vertical-align:middle}.sw-selection-note{margin-bottom:0!important}
#sw-job-host:empty{display:none}.sw-job-complete,.sw-job-disclosure>summary{display:flex;align-items:center;gap:7px;font-size:12px;line-height:20px;margin-top:8px;color:var(--color-muted)}.sw-job-complete svg{width:14px;height:14px;color:var(--color-success)}.sw-job-disclosure>summary{width:fit-content;cursor:pointer;list-style:none;color:var(--color-accent)}.sw-job-disclosure>summary::-webkit-details-marker{display:none}.sw-job-disclosure>summary svg{width:14px;height:14px;flex-shrink:0}.sw-job-detail{margin:10px 0 0;padding:12px 14px;background:var(--color-accent-soft);border-radius:8px;max-width:540px}.sw-job-detail p{font-size:12px;margin:0 0 8px}.sw-job-detail progress{display:block;width:100%;height:6px;accent-color:var(--color-accent);margin:8px 0}.sw-job-detail small{font-size:11px;color:var(--color-muted)}.sw-job-detail .sw-list-actions{margin-bottom:0}
@container workspace (max-width:680px){.sw-line-stepper{grid-template-columns:repeat(6,minmax(0,1fr))}.sw-line-stepper button{min-height:104px;padding:8px 2px}.sw-line-stepper button b{font-size:11px}.sw-sources-workspace{grid-template-columns:150px minmax(0,1fr);gap:12px}.sw-sources-workspace>.sw-section-nav{display:flex}.sw-source-revision{display:none}.sw-source-list-heading{flex-wrap:wrap}.sw-field-heading{gap:8px}}
@container workspace (max-width:480px){.sw-line-stepper{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:12px}.sw-line-stepper button:nth-child(3)::after{display:none}.sw-sources-workspace{grid-template-columns:1fr}.sw-sources-workspace>.sw-section-nav{position:static;display:flex;flex-direction:row;overflow:auto;max-height:100px}.sw-plain-navigation>.btn{flex:0 0 140px}.sw-field-heading{align-items:flex-start;flex-wrap:wrap}.sw-source-control-heading{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.sw-step-spinner{animation:none}}
/* Requisites and source controls follow the common Library control geometry. */
.sw-workbench .form-field>input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.sw-workbench .form-field>select{width:100%;min-width:0;height:44px;min-height:44px;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:13px;box-sizing:border-box}
.sw-workbench .form-field>textarea{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:13px;resize:vertical}
.sw-workbench input:focus-visible,.sw-workbench select:focus-visible,.sw-workbench textarea:focus-visible{outline:2px solid var(--color-accent-line);outline-offset:1px;border-color:var(--color-accent)}
.sw-template-tools{align-items:flex-end;gap:8px}.sw-template-tools>.sw-template-field{flex:1 1 250px;min-width:0;margin:0}.sw-template-field>label{display:block;font-size:13px;font-weight:500;margin-bottom:7px}.sw-template-tools>.btn{height:44px;min-height:44px;white-space:nowrap}.sw-template-picker{position:relative}.sw-template-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;height:44px;padding:0 12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);font-size:13px;list-style:none;cursor:pointer}.sw-template-picker>summary::-webkit-details-marker{display:none}.sw-template-picker>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sw-template-picker>summary svg{width:16px;height:16px}.sw-template-picker[open]>summary{border-color:var(--color-accent)}.sw-template-options{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:8;max-height:300px;overflow:auto;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);box-shadow:0 6px 20px #00000016;padding:5px}.sw-template-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;border-radius:6px}.sw-template-option>.btn:first-child{display:block;text-align:left;min-width:0;border:0;background:transparent;overflow-wrap:anywhere;font-weight:400}.sw-template-option:has([aria-pressed=true]){background:var(--color-accent-soft);color:var(--color-accent)}.sw-template-option:hover{background:var(--color-surface-muted)}.sw-workbench .sw-template-trash{width:32px;height:32px;min-height:32px;padding:7px;border:1px solid transparent;background:transparent;color:var(--color-muted)}.sw-workbench .sw-template-trash:hover{border-color:var(--color-danger);background:var(--color-danger-soft);color:var(--color-danger)}.sw-template-trash svg{width:16px;height:16px}.sw-template-options>.sw-hint{margin:8px;padding:0}
.sw-plain-navigation>.btn{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;column-gap:8px;padding-inline-end:9px}.sw-section-name{min-width:0;text-align:left;overflow-wrap:normal}.sw-plain-navigation .sw-nav-count{justify-self:end;width:24px;min-width:24px;height:24px;padding:0;font-size:11px;line-height:24px}
.sw-line-stepper button.is-locked>.sw-step-dot{background:var(--color-surface-muted);color:var(--color-muted);border:1px solid var(--color-border);box-shadow:none}.sw-line-stepper button.is-locked{color:var(--color-muted);background:transparent!important;opacity:.65}
.sw-source-scope.library-source-switch{display:block;width:100%;padding:0;border:0;background:transparent;margin:8px 0 16px}.library-source-switch .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;height:44px;padding:4px;gap:4px;border:0;border-radius:8px;background:var(--color-accent-soft)}.sw-workbench .library-source-switch .tab{min-width:0;min-height:36px;height:36px;padding:0 8px;border:0;background:var(--color-accent-soft);color:var(--color-accent);font-size:13px;border-radius:5px}.sw-workbench .library-source-switch .tab.active{background:var(--color-accent);color:var(--color-surface)}.library-source-switch .tab-label{display:inline-flex;align-items:center;gap:7px}.library-source-switch svg{width:16px;height:16px}
.sw-source-controls .catalog-result-count{font-size:12px;margin:8px 0}.sw-source-controls .active-filters{margin:8px 0}.sw-source-controls .filter-chip{max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left}.sw-source-controls .sw-recommendation-status{margin:12px 0}
.sw-source-topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;min-width:0}.sw-source-topbar .library-source-switch{flex:0 1 320px;width:320px;max-width:100%;min-width:0;margin:0}.sw-source-topbar .library-source-switch .tab{font-size:12px;gap:6px}.sw-source-topbar .tab-label{gap:6px}
.sw-collection-picker{position:relative;min-width:0;flex:0 1 auto}.sw-workbench .sw-collection-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;height:44px;max-width:100%;padding:0 10px;border:1px solid var(--color-border);background:var(--color-surface);white-space:nowrap;font-size:12px}.sw-collection-trigger svg{width:14px;height:14px}.sw-collection-trigger[aria-expanded=true]{border-color:var(--color-accent);background:var(--color-accent-soft);color:var(--color-accent)}
.sw-collection-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:12;width:min(380px,calc(100vw - 48px));max-height:calc(100dvh - 100px);overflow:auto;padding:12px;border:1px solid var(--color-border);border-radius:10px;background:var(--color-surface);box-shadow:0 8px 28px #0000001a}.sw-collection-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:13px}.sw-workbench .sw-picker-close{display:grid;place-items:center;width:28px;min-height:28px;height:28px;padding:5px;border:0;background:transparent}.sw-picker-close svg{width:16px;height:16px}.sw-collection-options{display:flex;flex-direction:column;max-height:240px;overflow:auto;margin:8px 0;scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}.sw-collection-choice{display:grid;grid-template-columns:16px minmax(0,1fr) 24px;gap:10px;align-items:center;padding:9px 6px;border-radius:6px;font-size:12px;cursor:pointer}.sw-collection-choice:hover{background:var(--color-surface-muted)}.sw-collection-choice:has(input:checked){background:var(--color-accent-soft)}.sw-collection-choice input{width:16px;height:16px;margin:0;accent-color:var(--color-accent)}.sw-collection-choice small{text-align:right;font-size:11px;color:var(--color-muted);font-variant-numeric:tabular-nums}.sw-collection-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--color-border);padding-top:10px;font-size:12px;color:var(--color-muted)}.sw-collection-picker-footer>div{display:flex;gap:6px}.sw-collection-picker-footer .btn{height:36px;min-height:36px}
.sw-source-list-heading{gap:8px}.sw-source-list-heading>label{flex:1 1 auto}.sw-selection-count{font-size:11px;color:var(--color-muted);white-space:nowrap}.sw-source-controls .sw-recommendation-status{min-height:24px;margin:10px 0}.sw-source-controls .catalog-result-count{margin:6px 0;font-size:12px}
@container workspace (max-width:600px){.sw-source-topbar{flex-wrap:wrap;justify-content:flex-start}.sw-source-topbar .library-source-switch{flex-basis:320px}.sw-collection-picker{flex:0 1 auto}.sw-source-list-heading{flex-wrap:wrap}}

@container workspace (max-width:480px){.sw-collection-picker{flex:1 1 100%}.sw-collection-popover{width:100%;max-width:380px;left:0;right:auto}}
/* One quiet command surface, with unboxed full-width rows. */
.sw-source-list-heading .sw-source-commands>div{width:260px;max-width:calc(100vw - 48px);gap:2px;padding:5px;border:1px solid var(--color-border);border-radius:10px;box-shadow:0 8px 28px #00000018;background:var(--color-surface)}
.sw-workbench .sw-source-commands .sw-command-row{display:flex;align-items:flex-start;justify-content:flex-start;gap:9px;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:6px;box-shadow:none;background:transparent;color:var(--color-text);font-size:12px;font-weight:400;line-height:18px;text-align:left}
.sw-workbench .sw-source-commands .sw-command-row:hover:not(:disabled){background:var(--color-surface-muted)}.sw-source-commands .sw-command-row svg{width:15px;height:15px;margin-top:1px;flex-shrink:0;color:var(--color-muted)}.sw-source-commands .sw-command-row>span{min-width:0}.sw-source-commands>summary::-webkit-details-marker{display:none}
.sw-source-controls .sw-recommendation-status{align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;line-height:18px}.sw-recommendation-status>svg{flex-shrink:0}.sw-workbench .sw-recommendations-show{min-height:28px;padding:3px 6px;border:0;background:transparent;color:var(--color-accent);font-size:12px;text-decoration:underline;text-underline-offset:3px}.sw-workbench .sw-recommendations-show:hover{background:var(--color-accent-soft)}
.sw-source-group-caption{padding:8px 12px;font-size:11px;font-weight:500;color:var(--color-muted);background:var(--color-surface-muted);border-bottom:1px solid var(--color-border)}.sw-source-row.is-recommended{box-shadow:inset 2px 0 var(--color-success)}.sw-source-list .sw-source-row:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}

/* Independent source-tool layout: never inherit Library's .toolbar flex rules. */
.sw-document-tools{display:grid;grid-template-columns:minmax(0,1fr) 252px;grid-template-rows:44px;gap:8px;align-items:start;justify-items:stretch;width:100%;min-width:0;margin:0 0 10px;padding:0}
.sw-document-search{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:100%;min-width:0;height:44px;margin:0;padding:0}
.sw-document-search .search-input{display:block;position:relative;flex:1 1 0;min-width:0;width:100%;max-width:none;height:44px;min-height:44px;margin:0;padding:0}
.sw-document-search .search-input>input[type=text]{display:block;box-sizing:border-box;min-width:0;width:100%;height:44px;min-height:44px;margin:0;padding:10px 12px 10px 40px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:13px}
.sw-document-search .search-input>svg{position:absolute;left:12px;top:22px;transform:translateY(-50%);width:17px;height:17px;pointer-events:none;color:var(--color-muted)}
.sw-document-search>.filter-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
.sw-document-options{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;align-items:start;width:100%;min-width:0;height:44px;margin:0;padding:0}
.sw-document-options>label{display:block;min-width:0;height:44px;margin:0;padding:0}.sw-document-options select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;padding:0 10px;margin:0;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:12px}

/* Selected sources remain visible independently of search and collection scope. */
.sw-source-controls{container-type:inline-size;container-name:sto-sources}.sw-selected-sources{margin:12px 0 14px;min-width:0}.sw-selected-heading{font-size:11px;color:var(--color-muted);margin-bottom:7px}.sw-source-chips{display:flex;flex-wrap:wrap;gap:6px}.sw-source-chip{display:inline-flex;align-items:stretch;max-width:100%;border:1px solid var(--color-accent-line);border-radius:7px;background:var(--color-accent-soft);overflow:hidden}.sw-workbench .sw-chip-label{display:block;min-width:0;max-width:calc(100% - 28px);min-height:30px;padding:5px 8px;border:0;border-radius:0;background:transparent;color:var(--color-accent);font-size:11px;line-height:18px;overflow-wrap:anywhere;text-align:left}.sw-workbench .sw-chip-remove{display:grid;place-items:center;flex:0 0 28px;width:28px;min-height:30px;padding:6px;border:0;border-radius:0;background:transparent;color:var(--color-accent)}.sw-chip-remove svg{width:13px;height:13px}.sw-workbench .sw-chip-label:hover,.sw-workbench .sw-chip-remove:hover{background:var(--color-accent-line)}.sw-source-row.is-located{animation:sw-source-locate 2s ease-out;outline:2px solid var(--color-accent);outline-offset:-2px}@keyframes sw-source-locate{from{background:var(--color-accent-line)}to{background:var(--color-accent-soft)}}
.sw-collection-summary{font-size:12px;line-height:19px;color:var(--color-muted);margin:0 0 12px;overflow-wrap:anywhere}.sw-collections-empty{padding:24px 16px;border:1px solid var(--color-border);border-radius:8px;text-align:center;color:var(--color-muted)}.sw-collections-empty>svg{width:24px;height:24px;margin-bottom:8px;color:var(--color-accent)}.sw-collections-empty h3{font-size:14px;margin:0 0 6px}.sw-collections-empty p{font-size:12px;line-height:20px;margin-bottom:12px}.sw-source-chips .sw-hint{margin:0}
@container sto-sources (max-width:500px){.sw-document-tools{grid-template-columns:minmax(0,1fr);grid-template-rows:44px 44px}.sw-document-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.sw-source-row.is-located{animation:none}}

.sw-source-chip:focus-within{outline:2px solid var(--color-accent);outline-offset:2px}
/* Inline collection browser shares Library's list rhythm without extra popovers. */
.sw-collections-browser{padding:0;min-width:0}.sw-collections-browser .sw-collection-options{max-height:360px;margin:12px 0;border:1px solid var(--color-border);border-radius:8px;gap:0}.sw-collections-browser .sw-collection-choice{grid-template-columns:16px 18px minmax(0,1fr) 48px;gap:10px;min-height:48px;padding:10px 12px;border-radius:0;border-bottom:1px solid var(--color-border)}.sw-collections-browser .sw-collection-choice:last-child{border-bottom:0}.sw-collections-browser .sw-collection-choice>svg{width:17px;height:17px;color:var(--color-accent)}.sw-collections-browser .sw-collection-choice small{font-size:11px}.sw-collections-browser .sw-collection-picker-footer{border-top:0;padding-top:0;flex-wrap:wrap}.sw-collections-browser .sw-collection-picker-footer .btn{height:40px;min-height:40px}.sw-source-topbar>.sw-primary{height:44px;min-height:44px;padding:0 10px;font-size:12px;white-space:nowrap}
.sw-workbench .sw-draft-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:8px;height:44px;min-height:44px;white-space:nowrap;padding:0 14px;border-radius:8px}.sw-draft-button svg{width:17px;height:17px}.sw-draft-button span{white-space:nowrap}
.sw-oks-tree>.sw-oks-trigger{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0 0 12px;padding:8px 12px;list-style:none;border:1px solid var(--color-accent-line);border-radius:8px;background:var(--color-accent-soft);color:var(--color-accent);font-size:13px;font-weight:500;cursor:pointer}.sw-oks-trigger::-webkit-details-marker{display:none}.sw-oks-trigger svg{width:16px;height:16px}.sw-oks-tree[open]>.sw-oks-trigger{background:var(--color-accent);color:var(--color-surface);border-color:var(--color-accent)}.sw-oks-tree[open]>.sw-oks-trigger>svg:last-child{transform:rotate(180deg)}
.sw-matrix-status{padding:14px 16px;margin:0 0 16px;border:1px solid var(--color-accent-line);border-radius:10px;background:var(--color-accent-soft)}.sw-matrix-status>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;line-height:20px}.sw-matrix-status>div>svg{width:16px;height:16px;color:var(--color-accent)}.sw-matrix-status>div>span:last-child{margin-left:auto;font-size:12px;color:var(--color-muted);font-variant-numeric:tabular-nums}.sw-matrix-status progress{display:block;width:100%;height:6px;accent-color:var(--color-accent);margin:10px 0}.sw-matrix-status p{font-size:12px;line-height:20px;margin:6px 0}.sw-matrix-status small{font-size:11px;color:var(--color-muted)}.sw-matrix-status>.btn{margin:10px 0 0}.sw-matrix-status.is-ready{background:var(--color-success-soft);border-color:var(--color-success)}.sw-matrix-status.is-ready>div>svg{color:var(--color-success)}.sw-matrix-error{color:var(--color-danger)}
.sw-section-nav>.sw-matrix-nav-row{display:flex;align-items:flex-start;gap:8px;padding:10px 8px;min-width:0}.sw-matrix-nav-icon{display:grid;place-items:center;flex:0 0 18px;width:18px;min-height:18px;margin-top:1px}.sw-matrix-nav-icon>svg{width:15px;height:15px}.sw-matrix-nav-row>span:last-child{min-width:0}.sw-matrix-nav-row.state-ready .sw-matrix-nav-icon,.sw-matrix-nav-row.state-ready small{color:var(--color-success)}.sw-matrix-nav-row.state-building .sw-matrix-nav-icon,.sw-matrix-nav-row.state-building small{color:var(--color-accent)}.sw-matrix-nav-row.state-error .sw-matrix-nav-icon,.sw-matrix-nav-row.state-error small{color:var(--color-danger)}.sw-matrix-nav-row.state-stale .sw-matrix-nav-icon,.sw-matrix-nav-row.state-stale small{color:var(--color-warning)}.sw-matrix-nav-row.state-queued .sw-matrix-nav-icon,.sw-matrix-nav-row.state-paused .sw-matrix-nav-icon{color:var(--color-muted)}
/* Collection chips describe the selection scope; blue chips remain document sources. */
.sw-selected-collections{margin:12px 0 14px}.sw-collection-chip{background:#f3effb;border-color:#dcd0ef}.sw-workbench .sw-collection-chip>.sw-chip-label,.sw-workbench .sw-collection-chip>.sw-chip-remove{color:#6b46a5}.sw-workbench .sw-collection-chip>.sw-chip-label{display:inline-flex;align-items:center;gap:6px}.sw-collection-chip .sw-chip-label>svg{width:14px;height:14px;flex-shrink:0}.sw-collection-chip .sw-chip-label>span{min-width:0;overflow-wrap:anywhere}.sw-workbench .sw-collection-chip>.sw-chip-label:hover,.sw-workbench .sw-collection-chip>.sw-chip-remove:hover{background:#e7def5}.sw-collection-chip:focus-within{outline-color:#6b46a5}
.sw-matrix-section-header{align-items:flex-start;gap:12px;margin-bottom:14px}.sw-matrix-section-header>h3{flex:1 1 180px;margin:7px 0}.sw-matrix-section-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}.sw-workbench .sw-matrix-section-actions>.btn,.sw-section-menu>summary{height:36px;min-height:36px;font-size:12px;white-space:nowrap}.sw-matrix-section-actions>.btn>svg{width:15px;height:15px}.sw-section-menu>summary{padding:7px 10px;list-style:none;background:var(--color-surface)}.sw-section-menu>summary::-webkit-details-marker{display:none}.sw-section-menu>div{position:absolute;top:calc(100% + 5px);right:0;z-index:12;width:240px;max-width:calc(100vw - 48px);padding:5px;gap:2px;border:1px solid var(--color-border);border-radius:9px;box-shadow:0 8px 28px #00000018;background:var(--color-surface);margin:0}.sw-workbench .sw-section-menu .sw-section-command{display:block;width:100%;min-height:36px;padding:8px 10px;border:0;border-radius:5px;background:transparent;text-align:left;font-size:12px;font-weight:400;line-height:18px}.sw-workbench .sw-section-menu .sw-section-command:hover:not(:disabled){background:var(--color-surface-muted)}.sw-command-separator{height:1px;background:var(--color-border);margin:4px 6px}
@container workspace (max-width:680px){.sw-matrix-section-header{display:block}.sw-matrix-section-header>h3{margin:0 0 10px}.sw-section-menu>div{right:0}}
.sw-panel.sw-matrix-panel>.sw-section-heading>.sw-matrix-heading-copy{display:block;min-width:0}.sw-matrix-section-header>.sw-matrix-section-actions{display:flex}

/* Airy matrix: quiet horizontal structure, full requirements and compact source links. */
.sw-matrix-panel .sw-matrix-title{display:flex;align-items:center;gap:12px;padding:4px 0 20px;min-width:0}
.sw-matrix-panel .sw-matrix-section-number{display:grid;place-items:center;flex:none;min-width:42px;height:42px;padding:0 8px;border-radius:11px;background:var(--color-accent);color:#fff;font-size:18px;font-weight:500}
.sw-matrix-panel .sw-matrix-title>div{min-width:0;flex:1}
.sw-matrix-panel .sw-matrix-eyebrow{display:block;color:var(--color-muted);font-size:10px;letter-spacing:.07em;line-height:16px;margin-bottom:3px}
.sw-matrix-panel .sw-matrix-title h3{font-size:18px;line-height:26px;font-weight:500;margin:0}
.sw-matrix-panel .sw-matrix-title>.sw-badge{flex:none}
.sw-matrix-panel .sw-matrix-section-header{align-items:center;padding:0 0 16px;margin:0;gap:10px}
.sw-matrix-panel .sw-matrix-row-count{font-size:12px;color:var(--color-muted)}
.sw-matrix-panel .sw-matrix-section-actions{margin:0;gap:8px;align-items:center}
.sw-matrix-panel .sw-matrix-section-actions>.btn,.sw-matrix-panel .sw-section-menu>summary{font-size:12px;min-height:36px}
.sw-matrix-panel .sw-matrix-scroll{container:matrix-sheet / inline-size;overflow:visible;border:0;border-radius:0;margin:0}
.sw-matrix-panel .sw-matrix-table{min-width:0;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.sw-matrix-panel .sw-matrix-table th{padding:11px 8px;border:0;background:var(--color-surface-muted);font-size:11px;font-weight:500;line-height:17px;vertical-align:middle}
.sw-matrix-panel .sw-matrix-table th:first-child{border-radius:8px 0 0 8px;width:24%}
.sw-matrix-panel .sw-matrix-table th:nth-child(2){width:42%}
.sw-matrix-panel .sw-matrix-table th:nth-child(3){width:24%}
.sw-matrix-panel .sw-matrix-table th:last-child{border-radius:0 8px 8px 0;width:10%;text-align:center}
.sw-matrix-panel .sw-matrix-table td{padding:24px 8px;border:0;border-bottom:1px solid var(--color-border);font-size:13px;line-height:21px;overflow-wrap:anywhere;vertical-align:top}
.sw-matrix-panel .sw-matrix-table td:last-child{text-align:center;padding-inline:2px}
.sw-workbench .sw-matrix-table .sw-matrix-indicator{display:inline;min-height:0;padding:0;border:0;background:transparent;color:var(--color-text);font-size:13px;font-weight:500;line-height:21px;text-align:left;overflow-wrap:anywhere}
.sw-workbench .sw-matrix-table .sw-matrix-indicator:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}
.sw-matrix-panel .sw-matrix-table .sw-matrix-norm{font-size:13px;line-height:21px;font-weight:500;margin:0}
.sw-matrix-panel .sw-matrix-table .sw-matrix-conditions{font-size:12px;line-height:19px;color:var(--color-muted);margin:8px 0 0}
.sw-matrix-panel .sw-matrix-table .sw-badge{font-size:10px;line-height:16px;padding:3px 6px;border-radius:5px;margin-top:10px}
.sw-workbench .sw-matrix-table .sw-matrix-source{display:inline;min-height:0;padding:0;line-height:19px;font-size:12px;font-weight:400;text-align:left;overflow-wrap:anywhere}
.sw-matrix-panel .sw-matrix-own{font-size:12px;color:var(--color-muted)}
.sw-matrix-panel .sw-matrix-table small{margin-top:7px;font-size:11px;line-height:17px}
.sw-matrix-panel .sw-inclusion{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:32px;gap:0;margin:0;vertical-align:top}
.sw-matrix-panel .sw-inclusion input{position:absolute;inset:0;opacity:0;width:36px;height:32px;margin:0;cursor:pointer;z-index:1}
.sw-matrix-panel .sw-switch-track{display:block;width:32px;height:20px;border-radius:20px;background:var(--color-border);padding:3px;pointer-events:none;transition:background .15s}
.sw-matrix-panel .sw-switch-track:after{content:'';display:block;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}
.sw-matrix-panel .sw-inclusion input:checked+.sw-switch-track{background:var(--color-success)}
.sw-matrix-panel .sw-inclusion input:checked+.sw-switch-track:after{transform:translateX(12px)}
.sw-matrix-panel .sw-inclusion input:focus-visible+.sw-switch-track{outline:2px solid var(--color-accent);outline-offset:3px}
.sw-workbench .sw-matrix-table .sw-matrix-row-edit{display:inline-flex;align-items:center;justify-content:center;width:28px;min-height:28px;padding:5px;border:1px solid var(--color-border);border-radius:7px;background:var(--color-surface);color:var(--color-muted);margin-top:6px}
.sw-matrix-row-edit svg{width:14px;height:14px}
.sw-matrix-panel .sw-matrix-footnote{margin:14px 0 0;font-size:11px;line-height:18px}
@container matrix-sheet (max-width:460px){
.sw-matrix-panel .sw-matrix-table,.sw-matrix-panel .sw-matrix-table tbody{display:block}
.sw-matrix-panel .sw-matrix-table thead{display:none}
.sw-matrix-panel .sw-matrix-table tr{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:20px 0;border-bottom:1px solid var(--color-border)}
.sw-matrix-panel .sw-matrix-table td{display:block;padding:0;border:0}
.sw-matrix-panel .sw-matrix-table td:first-child{grid-column:1;grid-row:1}
.sw-matrix-panel .sw-matrix-table td:nth-child(2){grid-column:1;grid-row:2}
.sw-matrix-panel .sw-matrix-table td:nth-child(3){grid-column:1;grid-row:3;margin-top:4px}
.sw-matrix-panel .sw-matrix-table td:last-child{grid-column:2;grid-row:1 / span 3;padding:0}
.sw-matrix-panel .sw-matrix-table td:first-child small{display:inline;margin-left:8px}
}
@container workspace (max-width:680px){.sw-matrix-panel .sw-matrix-title{flex-wrap:wrap}.sw-matrix-panel .sw-matrix-title>.sw-badge{margin-left:54px}.sw-matrix-panel .sw-matrix-section-header{display:flex}.sw-matrix-panel .sw-matrix-section-actions{flex-wrap:wrap}}
@media(pointer:coarse){.sw-matrix-panel .sw-inclusion,.sw-matrix-panel .sw-inclusion input{width:44px;height:44px}.sw-workbench .sw-matrix-table .sw-matrix-row-edit{width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.sw-matrix-panel .sw-switch-track,.sw-matrix-panel .sw-switch-track:after{transition:none}}
.sw-matrix-panel .sw-matrix-status.is-ready{padding:12px 0;background:transparent;border:0;border-bottom:1px solid var(--color-border);border-radius:0}
.sw-matrix-panel .sw-matrix-status.is-ready progress{display:none}
.sw-matrix-panel .sw-matrix-status.is-ready p{margin-bottom:0;color:var(--color-muted)}
.sw-matrix-panel .sw-section-nav>.sw-matrix-nav-row{background:transparent;border:0;border-radius:8px}
.sw-matrix-panel .sw-section-nav>.sw-matrix-nav-row.is-current{background:var(--color-accent-soft);color:var(--color-accent)}

/* Consistent navigation, local row actions and asynchronous text preparation. */
.sw-workbench .sw-two-pane>.sw-section-nav{border:1px solid var(--color-border);border-radius:10px;padding:7px;background:var(--color-surface);box-sizing:border-box;scrollbar-width:thin}
.sw-workbench .sw-section-nav>.sw-grid-nav-row{display:grid;grid-template-columns:16px 25px minmax(0,1fr);gap:7px;align-items:start;min-height:62px;padding:10px 5px;border:0;border-radius:7px;background:transparent;text-align:left}
.sw-workbench .sw-section-nav>.sw-grid-nav-row.is-current{background:var(--color-accent-soft);color:var(--color-accent)}
.sw-nav-status-icon{display:grid;place-items:center;width:16px;height:19px;color:var(--color-muted)}.sw-nav-status-icon svg,.sw-nav-status-icon .project-spinner{width:14px;height:14px}
.sw-nav-number{font-size:12px;line-height:19px;font-variant-numeric:tabular-nums}.sw-nav-copy{min-width:0}
.sw-workbench .sw-nav-copy b{font-size:12px;line-height:19px;font-weight:500;margin:0;overflow-wrap:normal}.sw-workbench .sw-nav-copy small{font-size:11px;line-height:17px;margin:5px 0 0}
.sw-grid-nav-row.state-ready .sw-nav-status-icon{color:var(--color-success)}.sw-grid-nav-row.state-building .sw-nav-status-icon,.sw-grid-nav-row.state-building small{color:var(--color-accent)}.sw-grid-nav-row.state-stale .sw-nav-status-icon{color:var(--color-warning)}.sw-grid-nav-row.state-error .sw-nav-status-icon{color:var(--color-danger)}
.sw-matrix-panel .sw-matrix-table th:first-child{width:22%}.sw-matrix-panel .sw-matrix-table th:nth-child(2){width:38%}.sw-matrix-panel .sw-matrix-table th:nth-child(3){width:22%}.sw-matrix-panel .sw-matrix-table th:last-child{width:18%;text-align:right;padding-right:8px}
.sw-matrix-row-actions{display:grid;grid-template-columns:36px 28px;gap:6px;align-items:center;justify-content:end}.sw-workbench .sw-matrix-table .sw-matrix-row-edit{margin:0}
.sw-matrix-panel .sw-matrix-indicator{display:inline;font-size:13px;line-height:21px;font-weight:500;color:var(--color-text)}
.sw-text-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}.sw-text-section-header h3{flex:1 1 140px;margin:5px 0}.sw-text-section-header>.btn{flex:none}.sw-text-panel .sw-text-section-state{font-size:12px;color:var(--color-muted);margin:0 0 16px}
.sw-text-status{padding:14px 16px;background:var(--color-accent-soft);border-radius:9px;margin:0 0 20px}.sw-text-status>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px}.sw-text-status>div>span:last-child{margin-left:auto;color:var(--color-muted);font-size:12px}.sw-text-status svg{width:16px;height:16px;color:var(--color-accent)}.sw-text-status progress{display:block;width:100%;height:6px;margin:10px 0;accent-color:var(--color-accent)}.sw-text-status p{margin:8px 0 0;font-size:12px;line-height:19px}.sw-text-status small{display:block;font-size:11px;line-height:18px;color:var(--color-muted);margin-top:6px}.sw-text-status>.btn{margin-top:12px}.sw-text-status.is-ready{background:transparent;border-radius:0;border-bottom:1px solid var(--color-border);padding:12px 0}.sw-text-status.is-ready progress{display:none}.sw-text-status.is-ready svg{color:var(--color-success)}
.sw-indicator-progress{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:center;padding:24px 0}.sw-indicator-progress p{margin:0}.sw-indicator-progress small{grid-column:2;font-size:12px;color:var(--color-muted)}
.sw-collection-pick-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;border-bottom:1px solid var(--color-border);min-height:52px;padding:4px 10px}.sw-collection-pick-row:last-child{border-bottom:0}.sw-collection-pick-row>label{display:grid;place-items:center;min-height:36px}.sw-collection-pick-row input{accent-color:var(--color-accent)}
.sw-workbench .sw-collection-content{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-height:44px;border:0;background:transparent;padding:7px 0;text-align:left;font-weight:400;color:var(--color-text)}.sw-collection-content>svg{width:17px;height:17px;color:var(--color-accent)}.sw-collection-content>span{min-width:0;overflow-wrap:anywhere}.sw-collection-content>small{font-size:11px;color:var(--color-muted);white-space:nowrap}.sw-collection-content:hover>span{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.sw-collection-chip .sw-chip-label small{font-size:11px;white-space:nowrap}
@container matrix-sheet (max-width:460px){.sw-matrix-panel .sw-matrix-table tr{grid-template-columns:minmax(0,1fr) 74px}}
@media(pointer:coarse){.sw-matrix-row-actions{grid-template-columns:44px 44px;gap:4px}.sw-matrix-panel .sw-matrix-table th:last-child{width:22%}.sw-matrix-panel .sw-matrix-table th:nth-child(2){width:34%}@container matrix-sheet (max-width:460px){.sw-matrix-panel .sw-matrix-table tr{grid-template-columns:minmax(0,1fr) 96px}}}
/* One forward action per stage, using the consultant execution accent. */
.sw-workbench .btn.sw-next-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 1 auto;min-height:44px;max-width:100%;margin-left:auto;padding:11px 16px;border:0;border-radius:14px;background:var(--color-agent);color:#fff;font-size:13px;font-weight:500;line-height:22px;text-align:center;box-shadow:none;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.sw-workbench .btn.sw-next-action:hover:not(:disabled),.sw-workbench .btn.sw-next-action:active:not(:disabled){background:var(--color-agent-hover);color:#fff}
.sw-workbench .btn.sw-next-action:focus-visible{outline:2px solid var(--color-agent);outline-offset:3px}
.sw-workbench .btn.sw-next-action:disabled{opacity:1;background:var(--color-agent-disabled);color:var(--color-agent-disabled-ink);cursor:not-allowed}
.sw-workbench .btn.sw-next-action>svg{width:18px;height:18px;flex:none}
.sw-project-footer{display:flex;justify-content:flex-end;margin-top:24px}
.sw-workbench .sw-stage-footer>div:not(.sw-source-gate),.sw-workbench .sw-profile-footer-actions{justify-content:flex-end;margin-left:auto}
@media(prefers-reduced-motion:reduce){.sw-workbench .btn.sw-next-action{transition:none}}

.sw-workbench .sw-profile-footer-actions>.btn{height:44px;min-height:44px;padding-block:0}
.sw-text-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}
.sw-text-comparison pre{margin:0;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border:1px solid var(--color-border);border-radius:8px;font:inherit;font-size:13px;line-height:1.6}
.sw-text-comparison>div:last-child pre{background:var(--color-accent-soft)}
@media(max-width:650px){.sw-text-comparison{grid-template-columns:1fr}.sw-text-comparison pre{max-height:180px}}

.sw-line-stepper button.is-complete:disabled{opacity:1;cursor:default}
