/* Compatibility layer: reuse approved workspace brand/layout, retain real API forms. */
#yx-flow .case-batch-toolbar{padding:12px;margin:12px 0;background:#f4f7fc;border:1px solid #dde6f1;border-radius:8px}
#yx-flow .case-batch-toolbar label{margin:0;align-items:center}
#editor .checklist details{padding:9px 0;border-bottom:1px solid #e2e9f3}
#yx-flow .status[class*="status--"],#editor .status[class*="status--"]{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--status-border);background:var(--status-bg);color:var(--status-text);padding:4px 9px;border-radius:6px;font-weight:600;line-height:1.5;white-space:nowrap}
.status--pending{--status-bg:#fff7e6;--status-text:#925000;--status-border:#f3ce86}
.status--approval{--status-bg:#f3edff;--status-text:#6b21a8;--status-border:#d8b4fe}
.iteration-plan-file{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;margin:16px 0;background:#f5f8ff;border:1px solid #d8e3f4;border-radius:8px}.iteration-plan-file>div:first-child{min-width:0;overflow-wrap:anywhere}.iteration-plan-file small{display:block;margin-top:6px;color:#64748b}.iteration-plan-file .actions{gap:10px}.plan-document-preview>.preserve{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:20px;border:1px solid #e1e8f3;border-radius:8px}dialog:has(.plan-document-preview){width:min(1100px,94vw);max-width:94vw}
.requirement-iteration-context{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:20px 0;background:#edf4ff;border:1px solid #c8d9f4;border-radius:10px}.requirement-iteration-context p{margin:6px 0 0;font-size:14px;color:#526b8c}.requirement-iteration-context button{flex-shrink:0}
.iteration-workspace-tools{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.iteration-workspace-tools label{margin:0;min-width:240px}.iteration-workflow-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:22px 0}.iteration-workflow-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:90px;padding:14px 8px;white-space:normal;border:1px solid #d8e3f4;background:#fff;color:#334d70}.iteration-workflow-nav button small{display:block;font-size:14px;color:#64748b}.iteration-workflow-nav button.done{background:#f0faf4;border-color:#b5dec3}.iteration-workflow-nav button.done small{color:#166534}.iteration-workflow-nav button.now{background:#fff8ec;border-color:#edbb66}.iteration-workflow-nav button.now small{color:#925000}.iteration-workflow-nav button.viewing{outline:2px solid #3263ee;outline-offset:2px}.iteration-progress-summary{display:flex;gap:16px 40px;flex-wrap:wrap;padding-top:14px;border-top:1px solid #e1e8f3;color:#526b8c}.iteration-progress-summary strong{margin-left:10px;color:#203e65;font-size:18px}.iteration-stage-content{margin-top:18px}.iteration-stage-content .table-scroll{margin-top:18px}.iteration-stage-content td small{display:block;margin-top:6px}.iteration-stage-content td{vertical-align:middle}.iteration-stage-content .row h2{margin:0}.iteration-stage-content .row{gap:16px;flex-wrap:wrap}.iteration-plan-meta{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;margin:20px 0;color:#526b8c}.iteration-blockers{padding:14px 16px;margin-top:12px;border:1px solid #ecd9b9;background:#fffbf3;border-radius:8px}.iteration-blockers ul{margin:10px 0 0;padding-left:22px}.iteration-stage-content details{margin-top:20px;padding:16px;border:1px solid #dce5f3;border-radius:8px}.iteration-stage-content .preserve{overflow-wrap:anywhere}
@media(max-width:1100px){.iteration-workflow-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.iteration-workflow-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.requirement-iteration-context{align-items:flex-start;flex-direction:column}.iteration-workspace-tools label{min-width:0;width:100%}.iteration-stage-content .table-scroll table{min-width:700px}}
.status--success{--status-bg:#eaf8ef;--status-text:#166534;--status-border:#a7d9b6}
.status--danger{--status-bg:#fff0f0;--status-text:#b42318;--status-border:#f0b6b1}
.status--active{--status-bg:#edf4ff;--status-text:#1d4ed8;--status-border:#b8cdf5}
.status--neutral{--status-bg:#f1f3f6;--status-text:#526071;--status-border:#d3dae3}
#editor .task-reference{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0 12px}
#editor .task-reference small{color:#62748a;line-height:1.6}
#editor .task-publish-actions{margin-top:18px;padding-top:14px;border-top:1px solid #e2e9f3}
/* Shared action spacing. Keep table cells as table cells and avoid altering navigation/login. */
/* Native choices must not inherit text-field padding/min-height from the brand layer. */
#yx-flow input:is([type="checkbox"],[type="radio"]),#editor input:is([type="checkbox"],[type="radio"]){display:inline-block;flex:0 0 16px;width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;padding:0;margin:0;vertical-align:middle;accent-color:#3466e8}
#yx-flow label:has(>input:is([type="checkbox"],[type="radio"])):not([hidden]),#editor label:has(>input:is([type="checkbox"],[type="radio"])):not([hidden]){display:flex;align-items:flex-start;gap:8px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#yx-flow label>input:is([type="checkbox"],[type="radio"]),#editor label>input:is([type="checkbox"],[type="radio"]){margin-block-start:calc((1.6em - 16px)/2)}
#yx-flow label:has(>input:is([type="checkbox"],[type="radio"]))>span,#editor label:has(>input:is([type="checkbox"],[type="radio"]))>span{min-width:0}
#yx-flow label:has(>input:is([type="checkbox"],[type="radio"]):disabled),#editor label:has(>input:is([type="checkbox"],[type="radio"]):disabled){cursor:default}
:root{--yx-action-gap:10px}
/* Style the native file-picker button without hiding filenames or replacing input behavior. */
:is(#yx-flow main,#editor) input[type=file]{padding:6px;min-height:48px;max-width:100%;font-size:14px;line-height:1.5;color:#62748a;cursor:pointer;text-overflow:ellipsis}
:is(#yx-flow main,#editor) input[type=file]::file-selector-button{font:inherit;font-weight:500;line-height:1.5;padding:8px 16px;margin:0 12px 0 0;border:1px solid #3464ed;border-radius:6px;background:#3464ed;color:#fff;cursor:pointer;vertical-align:middle}
:is(#yx-flow main,#editor) input[type=file]:not(:disabled)::file-selector-button:hover{background:#2553d0;border-color:#2553d0}
:is(#yx-flow main,#editor) input[type=file]:focus-visible{outline:3px solid #7ca9ff;outline-offset:2px}
:is(#yx-flow main,#editor) input[type=file]:disabled{cursor:not-allowed}
:is(#yx-flow main,#editor) input[type=file]:disabled::file-selector-button{background:#e9eef7;border-color:#d8e2f0;color:#8796ac;cursor:not-allowed}
/* Separate list footers from the table; horizontal button gaps alone do not do this. */
#yx-flow main .table-scroll+:is(button,.actions,.button-group),#editor .table-scroll+:is(button,.actions,.button-group){margin-block-start:16px}
:where(#yx-flow main,#editor) :is(.actions,.button-group){display:flex;align-items:center;flex-wrap:wrap;gap:var(--yx-action-gap)}
/* Older views used a plain div for an otherwise button-only toolbar. */
:where(#yx-flow main,#dialog-content) div:has(>button):not(:has(>:not(button,a))):not(.row):not(.actions):not(.tabs):not(.workflow-nav):not(.pagination){display:flex;align-items:center;flex-wrap:wrap;gap:var(--yx-action-gap)}
:where(#yx-flow main,#dialog-content) td:has(>button~button)>button{margin:3px var(--yx-action-gap) 3px 0;vertical-align:middle}
:where(#yx-flow main,#dialog-content) td:has(>button~button)>button:last-child{margin-inline-end:0}
/* Inline action pairs in mixed-content dialogs need a gap without reflowing their prose. */
#dialog-content>button:has(+button){margin-inline-end:var(--yx-action-gap)}
#dialog-content>button{margin-block:5px}
:where(#yx-flow main,#editor) :is(.actions,.button-group)>:is(button,a){margin:0;max-width:100%;white-space:normal}
/* Action layout contract: 10px inside a group, 12px between flow sections.
   Scope to workspace content/dialogs, never login, navigation, directory trees or prototype iframes. */
:is(#yx-flow main,#editor) :is(.actions,.button-group):empty{display:none}
:is(#yx-flow main,#editor) :is(.actions,.button-group)+:is(.actions,.button-group){margin-block-start:12px}
:is(#yx-flow main,#editor) :is(.panel,form,#dialog-content)>:is(.actions,.button-group):not(:first-child):not(:empty){margin-block-start:12px}
:is(#yx-flow main,#editor) :is(.actions,.button-group,form,button)+:is(p,h2,h3,h4,form,.table-scroll,.checklist){margin-block-start:12px}
:is(#yx-flow main,#editor) :where(.panel,form,#dialog-content)>button{margin-block:6px;margin-inline-end:var(--yx-action-gap);max-width:100%;white-space:normal}
:is(#yx-flow main,#editor) form>:is(label,.form-grid,.checklist,details,textarea,input,select)+button{margin-block-start:12px}
/* Old inline controls must also keep space when wrapping onto a second line. */
:is(#yx-flow main,#editor) :is(td,p):has(>button)>:is(button,a){display:inline-block;vertical-align:middle;margin:5px var(--yx-action-gap) 5px 0;max-width:100%;white-space:normal}
:is(#yx-flow main,#editor) :is(td,p)>:is(.status,small)+button{margin-inline-start:var(--yx-action-gap)}
:is(#yx-flow main,#editor) :is(.actions,.button-group,.row,.pagination){gap:var(--yx-action-gap);row-gap:var(--yx-action-gap);flex-wrap:wrap}
:is(#yx-flow main,#editor) :is(.actions,.button-group,.row,.pagination)>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
/* Allow grid panels to shrink so tables scroll inside, rather than stretching action rows. */
:is(#yx-flow main,#editor) :is(.grid,.form-grid)>*{min-width:0}
#yx-flow .row>.actions{justify-content:flex-end}
@media(max-width:760px){#yx-flow .row>.actions{justify-content:flex-start}}
#yx-flow{--yx-paper:#fff;--yx-line:#e8edf4;--yx-bg:#f4f6fa;--yx-ink:#24334d;--yx-soft:#edf3ff;--yx-accent:#3466e8;--yx-muted:#6d7d95}
#yx-flow .layout{display:grid;min-height:calc(100dvh - 76px)}
#yx-flow .top .brand>.logo{padding:0;background:#fff}
#yx-flow aside{height:calc(100dvh - 76px);border-right:1px solid #e8edf4}
#yx-flow .workspace-build{border-top:1px solid #e8edf4;margin:30px 10px 0;padding-top:16px;font-size:13px;color:#657b99}
#yx-flow .workspace-build small{font-size:12px}
#yx-flow .connection-dot{display:inline-block;width:7px;height:7px;background:#24a88b;border-radius:50%;margin-right:5px}
#yx-flow .pending-dot{margin-left:6px;color:#9aa9bd}
#yx-flow .compact-context-nav{margin-top:0}
#yx-flow .workflow-nav{display:grid}
#yx-flow .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#yx-flow .metric b{display:block}
#yx-flow .split{display:grid}
#yx-flow .workspace-empty{padding:36px 18px;text-align:center;color:#657b99}
#yx-flow .workspace-empty h3{margin:12px 0}
#yx-flow .table-scroll{max-height:none;overflow-x:auto}
#yx-flow .table-scroll th{position:static}
#yx-flow .table-scroll td{padding:10px 12px}
#yx-flow .panel{margin-top:14px}
#yx-flow .pagination{margin:12px 0}
#yx-flow .brand strong{font-size:20px}
#yx-flow .primary{background:#3466e8;color:#fff;border-color:#3466e8}
#yx-flow .tabs button{border:0;border-bottom:2px solid transparent;background:transparent}
#yx-flow .tabs button.active{border-bottom-color:#3466e8}
#yx-flow .notification-bell{position:relative;overflow:visible;border:1px solid #e4ebf5;background:#fff;margin-right:10px}
#yx-flow .notification-count{position:absolute;top:-7px;right:-9px;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:12px;background:#dc2626;color:#fff;font-size:12px;font-weight:700;line-height:16px;box-sizing:border-box;text-align:center;pointer-events:none}
#yx-flow #account{display:flex;align-items:center;gap:8px}
#yx-flow aside button{border:0;background:transparent;text-align:left}
#yx-flow .notification-bell svg{display:block;width:19px;height:19px}
#yx-flow .form-grid{gap:14px}
.artifact-source{max-height:40vh;overflow:auto;padding:10px;border:1px solid #e1e8f3;border-radius:8px}
#yx-flow .capacity-status{display:inline-block;padding:3px 8px;border-radius:5px;font-size:14px}
#yx-flow .capacity-status.unknown{background:#edf0f4;color:#657185}
#yx-flow .capacity-status.danger{background:#fff0f1;color:#b62d43}
#yx-flow .capacity-status.warning{background:#fff5db;color:#875400}
#yx-flow .capacity-status.normal{background:#e9f7f0;color:#176744}
.login-screen>.layout{display:block}
body:not(#yx-flow) #compact-menu-button{display:none}
@media(max-width:1150px){#yx-flow .workflow-nav{display:flex}#yx-flow .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#yx-flow .layout{display:block}#yx-flow aside{height:auto}#yx-flow .brand strong{font-size:18px}#yx-flow #account .actions{gap:6px}#yx-flow .metrics{gap:10px}#yx-flow .workspace-build{display:none}}
#yx-flow .project-overview-table{table-layout:fixed;min-width:1060px;width:100%}
#yx-flow .project-overview-table .project-name-col{width:18%}
#yx-flow .project-overview-table .project-region-col{width:7%}
#yx-flow .project-overview-table .project-owner-col{width:10%}
#yx-flow .project-overview-table .project-demand-col{width:23%}
#yx-flow .project-overview-table .project-task-col{width:32%}
#yx-flow .project-overview-table .project-action-col{width:10%}
#yx-flow .project-overview-table td{vertical-align:middle;padding:18px 12px}
#yx-flow .project-overview-table th{padding:14px 12px}
#yx-flow .project-overview-table th:nth-child(4),#yx-flow .project-overview-table th:nth-child(5){text-align:center}
#yx-flow .project-overview-table tbody tr:hover{background:#f8faff}
#yx-flow .project-stat-grid{display:grid;gap:0;margin:0;padding:2px 0}
#yx-flow .project-stat-grid--requirements{grid-template-columns:repeat(3,minmax(0,1fr))}
#yx-flow .project-stat-grid--tasks{grid-template-columns:repeat(5,minmax(0,1fr))}
#yx-flow .project-stat-item{text-align:center;min-width:0;padding:0 6px}
#yx-flow .project-stat-item+.project-stat-item{border-left:1px solid #e8edf4}
#yx-flow .project-stat-item dt{font-size:14px;line-height:1.5;color:#62738b;white-space:nowrap;font-weight:400}
#yx-flow .project-stat-item dd{margin:7px 0 0;font-size:20px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#183654}
#yx-flow .project-stat--empty dd{color:#8a98ab;font-weight:400}
#yx-flow .project-stat--pending dd{color:#a35b0b}
#yx-flow .project-stat--approval dd{color:#6b21a8}
#yx-flow .project-stat--active dd{color:#315bcd}
#yx-flow .project-stat--danger dd{color:#c33146}
#yx-flow .project-stat--success dd{color:#158060}
@media(max-width:1150px){#yx-flow .project-overview-table td{padding:14px 10px}#yx-flow .project-stat-item{padding:0 4px}}
#yx-flow .requirement-review-entry{padding:14px 0;border-top:1px solid #e5ebf4}
#yx-flow .requirement-review-entry h3{margin:0 0 10px;font-size:16px}
#yx-flow .requirement-review-entry p{margin:8px 0;overflow-wrap:anywhere}
#yx-flow .requirement-review-entry .status{margin-left:12px}
#yx-flow .requirement-list-summary{padding:18px 16px 12px}
#yx-flow .requirement-list-summary>p{margin:14px 0 0;font-size:13px}
#yx-flow .requirement-list-summary .project-stat-item dd{font-size:26px}
@media(max-width:600px){#yx-flow .requirement-list-summary .project-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}#yx-flow .requirement-list-summary .project-stat-item:nth-child(4){border-left:0}}
#editor .case-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:4px 0 16px}
#editor .case-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}
#editor .case-submit-actions{display:flex;gap:10px;margin-top:18px;padding-top:4px}
#editor .case-review-result{padding:14px 16px;margin:16px 0;border:1px solid #dfe6f1;border-radius:8px;background:#f8faff}
#editor .case-review-result h3{margin-top:0}
#editor .case-review-history{margin:16px 0;padding:12px;border:1px solid #dfe6f1;border-radius:8px;max-height:280px;overflow:auto}
#yx-flow .case-review-counts{display:flex;flex-wrap:wrap;gap:20px;margin:16px 0;font-size:14px}
#yx-flow .case-review-counts strong{margin-left:8px;font-variant-numeric:tabular-nums}
#yx-flow .case-returned-count{color:#bc3448}
#yx-flow .requirement-task-cell{min-width:200px;width:240px}
#yx-flow .requirement-task-progress{display:grid;gap:8px;max-width:240px;font-size:14px}
#yx-flow .requirement-task-progress progress{display:block;width:100%;height:6px;border:0;border-radius:6px;accent-color:#315fe5;overflow:hidden}
#yx-flow .requirement-task-progress progress::-webkit-progress-bar{background:#edf1f7}
#yx-flow .requirement-task-progress progress::-webkit-progress-value{background:#315fe5;border-radius:6px}
#yx-flow .requirement-task-counts{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px}
#yx-flow .task-count--pending{color:#975409}#yx-flow .task-count--active{color:#315bcd}#yx-flow .task-count--danger{color:#bc3448}#yx-flow .task-count--success{color:#158060}
.release-items-scroll{max-height:420px;overflow:auto;margin-top:14px}.release-items-scroll table{min-width:760px}.release-items-scroll th{position:sticky;top:0;background:#f7f9ff;z-index:1}.release-items{margin:24px 0}.release-items .actions{gap:12px;flex-wrap:wrap}.release-dependencies{max-height:180px;overflow:auto}.release-dependencies label{display:flex;align-items:center;gap:10px;margin:10px 0}.release-dependencies input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0}
.cabinet-shell{padding:14px!important}.cabinet-toolbar{gap:10px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #e1e8f4}.cabinet-breadcrumb{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:12px 0}.cabinet-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px}.cabinet-tree{max-height:65vh;overflow:auto;background:#f6f8fc;border:1px solid #e1e8f4;border-radius:8px;padding:8px}.cabinet-tree ul{padding-left:12px;list-style:none;margin:4px 0}.cabinet-tree button{border:0;background:transparent;text-align:left;white-space:normal;padding:7px 4px}.cabinet-tree button.active{background:#e7eeff;color:#245be8}.cabinet-tree summary{display:flex;align-items:center}.cabinet-main{min-width:0}.cabinet-main>.actions{gap:10px}.cabinet-main #cabinet-sort{max-width:150px}.cabinet-table{max-height:55vh;overflow:auto}.cabinet-table table{min-width:820px}.cabinet-table th{position:sticky;top:0;background:#f7f9ff;z-index:1}.cabinet-table td{vertical-align:middle}.cabinet-table small,.cabinet-version-list small{display:block;overflow-wrap:anywhere}.cabinet-table input[type=checkbox]{width:16px;height:16px;margin:0}.cabinet-pager{justify-content:flex-end;gap:10px;margin-top:12px}.cabinet-version-list{max-height:55vh;overflow:auto;margin-top:16px}.cabinet-version-list .actions{gap:10px;flex-wrap:wrap}.cabinet-preview{width:100%;height:65vh;border:1px solid #dce4f1;margin-top:12px;background:white}@media(max-width:900px){.cabinet-layout{grid-template-columns:170px minmax(0,1fr)}}@media(max-width:620px){.cabinet-layout{grid-template-columns:1fr}.cabinet-tree{max-height:160px}.cabinet-toolbar button{padding:8px}.cabinet-main>.actions{flex-wrap:wrap}}
.cabinet-iteration-bar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 0 0}.cabinet-iteration-bar label{min-width:260px;margin:0}.cabinet-layout{grid-template-columns:280px minmax(0,1fr)}
.cabinet-tree{background:#fafbfe;padding:10px!important}.cabinet-tree ul{margin:0!important;padding:0 0 0 14px!important}.cabinet-tree>ul{padding-left:0!important}.cabinet-tree li{margin:0!important;padding:0!important;border:0!important}.cabinet-tree details{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.cabinet-tree summary{display:flex!important;align-items:center!important;list-style:none!important;padding:0!important;margin:0!important;min-height:36px}.cabinet-tree summary::-webkit-details-marker{display:none}.cabinet-tree summary::before,.cabinet-tree summary::after{display:none!important}.cabinet-tree summary>button,.cabinet-tree>button{display:flex!important;align-items:center;gap:8px;width:100%;min-height:36px;padding:6px 10px!important;margin:1px 0!important;border:0!important;border-radius:6px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:24px;background:transparent}.cabinet-tree summary>button.active{background:#e8efff;color:#2458d7;font-weight:600}.cabinet-folder-icon{display:inline-block;flex:none;width:16px;height:12px;border-radius:2px;background:#efbd53;box-shadow:inset 0 -1px #dca13a}.cabinet-table td button[data-cabinet-folder]{display:flex;align-items:center;gap:8px}.cabinet-tree details>ul{border-left:1px solid #e1e7f0;margin-left:17px!important}.cabinet-breadcrumb button{border:0;background:transparent;padding:3px 6px}.cabinet-tree button:hover{background:#eef2fa!important}
dialog:has(.cabinet-preview-stage){width:98vw;max-width:none;height:96dvh;max-height:96dvh;overflow:hidden;margin:auto;display:flex;flex-direction:column}dialog:has(.cabinet-preview-stage):not([open]){display:none}dialog:has(.cabinet-preview-stage) .dialog-head{flex:none;padding:10px 16px}dialog:has(.cabinet-preview-stage) #dialog-content{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 14px;gap:8px;overflow:hidden}.cabinet-preview-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;flex:none}.cabinet-preview-controls label{margin:0;min-width:120px}.cabinet-preview-controls .cabinet-entry-label{flex:1;min-width:200px;max-width:100%;overflow:hidden}.cabinet-entry-label select{width:100%;text-overflow:ellipsis}.cabinet-open-tab{padding:10px 12px;border:1px solid #dce5f3;border-radius:7px;color:#2458d7;white-space:nowrap}.cabinet-preview-help{margin:0!important;padding:0!important;border:0!important;font-size:14px;flex:none}.cabinet-preview-help summary{padding:0!important;color:#667e9e}.cabinet-preview-help p{margin:4px 0}.cabinet-preview-stage{flex:1;min-height:0;overflow:auto;background:#eef1f6;border:1px solid #dce3ef;border-radius:6px}.cabinet-preview-canvas{position:relative;margin:0 auto;overflow:hidden}.cabinet-preview-stage .cabinet-preview{position:absolute;top:0;left:0;max-width:none;min-height:0;border:0;border-radius:0;background:white;transform-origin:top left}
@media(max-width:1000px){.cabinet-layout{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:700px){.cabinet-layout{grid-template-columns:1fr}.cabinet-tree{max-height:180px}.cabinet-preview-controls{gap:6px}.cabinet-preview-controls .cabinet-entry-label{flex-basis:100%}}
#yx-flow .cabinet-tree{position:static;height:auto;min-height:260px;align-self:stretch}.cabinet-preview-stage .cabinet-preview{margin:0}.cabinet-tree summary{justify-content:flex-start!important}
#editor .file-drop-zone{display:flex;flex-direction:column;gap:12px;padding:20px;margin:8px 0 16px;border:2px dashed #c6d5ee;border-radius:10px;background:#f8faff;transition:background .15s,border-color .15s}#editor .file-drop-zone.drag-over{border-color:#3464ed;background:#eaf1ff}#editor .file-drop-hint{font-size:16px;font-weight:600;color:#315381}#editor .file-drop-zone input[type=file]{margin:0;background:#fff}#editor .file-drop-result{font-size:14px;overflow-wrap:anywhere;color:#57718e}#editor .file-drop-result.error{color:#b42318}#editor .file-drop-result:empty{display:none}
/* Shared sortable table headings: compact controls, not full-size action buttons. */
#yx-flow table th .table-sort-button {
  display:inline-flex; align-items:center; gap:6px; width:auto;
  min-height:32px; padding:4px 2px; margin:0; border:0; border-radius:5px;
  background:transparent; box-shadow:none; color:inherit; font:inherit;
  text-align:left; line-height:1.5; cursor:pointer;
}
#yx-flow table th .table-sort-button:hover { background:#eaf0ff; color:#2457d6; }
#yx-flow table th .table-sort-button:focus-visible { outline:2px solid #3563f3; outline-offset:2px; }
#yx-flow table th[aria-sort="ascending"], #yx-flow table th[aria-sort="descending"] { color:#2457d6; font-weight:600; }
#yx-flow .iteration-entry-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
/* Iteration workspace: filter fields, selection actions and paging are separate rows. */
#yx-flow .iteration-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:24px 0}
#yx-flow .iteration-page-head h1{margin:0 0 8px}
#yx-flow .iteration-page-head p{margin:0}
#yx-flow .iteration-page-head .iteration-project-field{width:260px;max-width:100%;flex-shrink:0;margin:0}
#yx-flow .iteration-panel{padding:20px}
#yx-flow .iteration-filters{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:end}
#yx-flow .iteration-filters>label,#yx-flow .iteration-project-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:14px}
#yx-flow .iteration-filters :is(input,select),#yx-flow .iteration-project-field select{box-sizing:border-box;height:44px;min-height:44px;width:100%;margin:0;padding:10px 12px}
#yx-flow .iteration-panel .iteration-help{margin:14px 0 0;padding:0;color:#627b9e;font-size:14px;line-height:1.6}
#yx-flow .iteration-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 0;margin:16px 0 0;border-top:1px solid #e2e9f3}
#yx-flow .iteration-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#yx-flow .iteration-actions:empty{display:none}
#yx-flow .iteration-panel .iteration-actions>button,#yx-flow .iteration-empty>button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:42px;margin:0;padding:10px 14px;line-height:20px;max-width:100%}
#yx-flow .iteration-selected{white-space:nowrap;color:#627b9e;font-size:14px}
#yx-flow .iteration-selected strong{color:#2457d6;font-variant-numeric:tabular-nums}
#yx-flow .demand-review-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 8px;padding:14px;background:#f7f9fd;border:1px solid #e0e7f3;border-radius:8px}
#yx-flow .demand-select-col{width:60px;text-align:center;vertical-align:middle}
/* Text, multi-line names, status badges and action controls share the row centre. */
#yx-flow main table :is(th,td),#editor table :is(th,td){vertical-align:middle}
#yx-flow .iteration-panel .iteration-demand-table{table-layout:fixed;min-width:920px;width:100%}
#yx-flow .iteration-col-select{width:60px}
#yx-flow .iteration-col-status{width:120px}
#yx-flow .iteration-col-count{width:110px}
#yx-flow .iteration-col-action{width:180px}
#yx-flow .iteration-demand-table :is(th,td){vertical-align:middle;padding:12px;overflow-wrap:anywhere}
#yx-flow .iteration-demand-table :is(th,td):first-child:not([colspan]){text-align:center}
#yx-flow .iteration-demand-table td:nth-child(2){line-height:1.7}
#yx-flow .iteration-demand-table td:nth-child(4),#yx-flow .iteration-demand-table td:nth-child(5){font-variant-numeric:tabular-nums}
#yx-flow .iteration-empty{text-align:center;padding:28px 16px;color:#627b9e}
#yx-flow .iteration-empty strong{color:#263f5c;font-size:16px}
#yx-flow .iteration-empty p{margin:8px 0 16px;line-height:1.6}
#yx-flow .iteration-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
@media(max-width:900px){#yx-flow .iteration-toolbar{align-items:flex-start}#yx-flow .iteration-selection{flex-basis:100%}}
@media(max-width:600px){#yx-flow .iteration-page-head{align-items:stretch;flex-direction:column;gap:16px}#yx-flow .iteration-page-head .iteration-project-field{width:100%}#yx-flow .iteration-panel{padding:14px}#yx-flow .iteration-filters{grid-template-columns:minmax(0,1fr)}#yx-flow .iteration-pagination{align-items:flex-start;flex-direction:column}}
:root{--feedback-gap:16px}
.feedback-page-head{gap:24px;margin-bottom:24px}.feedback-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:var(--feedback-gap);margin:0 0 24px}.feedback-filters label{flex:0 1 150px;margin:0;min-width:130px}.feedback-filters .feedback-search{flex:1 1 240px}.feedback-filters button{min-height:44px;margin:0}.feedback-summary{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;padding:16px 0 24px;border-top:1px solid #e1e8f4}.feedback-summary>span{display:inline-flex;align-items:center;gap:8px}.feedback-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}.feedback-panel td{vertical-align:middle}.feedback-panel td:first-child{min-width:230px;max-width:430px;overflow-wrap:anywhere}.feedback-panel td small{display:block;margin-top:6px}.feedback-form{display:grid;gap:18px;margin:20px 0}.feedback-form label{margin:0}.feedback-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.feedback-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}.feedback-history section{border-top:1px solid #e1e8f4;padding:18px 0}.feedback-detail .preserve{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-empty{padding:32px;text-align:center;color:#6980a4}.feedback-form textarea{min-height:120px}.feedback-panel .actions,.feedback-page-head .actions{gap:12px;flex-wrap:wrap}@media(max-width:700px){.feedback-form-row{grid-template-columns:1fr}.feedback-filters label{flex:1 1 140px}.feedback-summary{gap:12px}.feedback-page-head{align-items:flex-start;flex-direction:column}}
.cabinet-requirement-picker{width:100%;min-width:0;margin:16px 0}.cabinet-requirement-options{width:100%;max-height:min(320px,40vh);overflow-y:auto;border:1px solid #cad8f2;border-radius:8px;background:#fff;padding:6px;margin:8px 0;box-sizing:border-box}.cabinet-requirement-options[hidden]{display:none}.cabinet-requirement-options button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;white-space:normal;overflow-wrap:anywhere;text-align:left;width:100%;max-width:100%;min-height:60px;padding:12px 16px;margin:0;border:0;border-radius:6px;line-height:1.5}.cabinet-requirement-options button:hover,.cabinet-requirement-options button[aria-selected=true]{background:#edf3ff;color:#244de4}.cabinet-requirement-options button strong{white-space:normal;overflow:visible;text-overflow:clip}.cabinet-requirement-options button small{display:block;color:#6a80a3}.cabinet-requirement-options p{padding:12px 16px}.cabinet-requirement-picker>small{display:block;margin-top:8px}
.requirement-files{margin-bottom:24px}.requirement-files h2 small{font-weight:400;font-size:14px;color:#6b81a4}.requirement-files-list{max-height:440px;overflow:auto}.requirement-file{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-top:1px solid #e1e8f4}.requirement-file>div:first-child{min-width:0;flex:1}.requirement-file strong{overflow-wrap:anywhere}.requirement-file small{display:block;margin-top:6px;overflow-wrap:anywhere;color:#6b81a4}.requirement-file .actions{flex-shrink:0;gap:10px;flex-wrap:wrap}@media(max-width:900px){.requirement-file{align-items:flex-start;flex-direction:column}.requirement-file .actions{width:100%}}
