/* Scoped presentation: retain command order, handlers, fields and navigation. */
html:has(body.workflow-designer-mode),body.workflow-designer-mode { overflow-x:clip; }
body:has(#workflowAdminView) .sys-module-banner { padding:8px 12px; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-dashboard-title { min-height:28px!important; }
body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-dashboard-title h2 { font-size:18px!important; }
#workflowAdminView .workflow-list-name small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
#workflowAdminView .workflow-detail-description { overflow-wrap:anywhere; }
#workflowAdminView .workflow-detail-actions { display:flex!important; flex-wrap:wrap; gap:6px; }
#workflowModalForm .workflow-modal-head { padding:8px 14px; }
#sysDashboardStudio .sysdash-import-dialog [hidden] { display:none!important; }
#sysDashboardStudio .sysdash-import-workspace .sysdash-dialog-head { min-height:44px; padding:6px 12px; }
#sysDashboardStudio .sysdash-import-dialog .sysdash-dialog-actions { padding:8px 12px; gap:8px; }
#sysDashboardStudio .sysdash-import-hero { padding:10px; gap:10px; }
#sysDashboardStudio .sysdash-import-hero h3 { font-size:16px; line-height:1.35; }
#sysDashboardStudio .sysdash-import-hero .sysdash-eyebrow { display:none; }
#sysDashboardStudio .sysdash-import-controls { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
#sysDashboardStudio .sysdash-import-controls label { text-transform:none; font-size:12px; font-weight:600; }
#sysDashboardStudio .sysdash-import-controls label>small { font-size:11px; font-weight:400; }
/* Source choices stay in context; advanced parsing does not compete with the destination. */
#sysDashboardStudio .sysdash-import-advanced { border:1px solid var(--sysdash-line); background:var(--sysdash-surface-2); }
#sysDashboardStudio .sysdash-import-advanced summary { min-height:34px; padding:8px 10px; cursor:pointer; color:var(--sysdash-text); font-size:12px; }
#sysDashboardStudio .sysdash-import-advanced summary span { margin-left:12px; color:var(--sysdash-muted-strong); }
#sysDashboardStudio .sysdash-import-advanced>.sysdash-import-controls { padding:0 10px 10px; }
#sysDashboardStudio .sysdash-import-next-hint { flex:1 1 220px; margin:0 auto 0 0; color:var(--sysdash-text); font-size:12px; line-height:1.5; text-align:left; overflow-wrap:anywhere; }
#sysDashboardStudio .sysdash-import-dialog .sysdash-dialog-actions { flex-wrap:wrap; align-items:center; }
#sysDashboardStudio .sysdash-import-workspace .sysdash-import-dialog { height:auto; max-height:100%; }
#sysDashboardStudio .sysdash-import-workspace { align-items:flex-start; }
#sysDashboardStudio .sysdash-import-dialog :is(button,summary,input,select):focus-visible { outline:2px solid var(--sysdash-accent); outline-offset:2px; }
@media(max-width:600px) {
 #sysDashboardStudio .sysdash-import-next-hint { flex-basis:100%; }
 #sysDashboardStudio .sysdash-import-advanced summary { min-height:44px; }
 #sysDashboardStudio .sysdash-import-advanced summary span { display:block; margin:4px 0 0; }
}
/* One vertical reading flow; a short viewport must not squeeze eight mappings
   into a single visible row. Wide data tables retain their own horizontal scroll. */
body[data-workspace-module="excel-import"] #sysDashboardStudio [data-import-panel="mapping"].is-active { display:block!important; }
body[data-workspace-module="excel-import"] #sysDashboardStudio [data-import-panel="import"].is-active { display:block!important; }
body[data-workspace-module="excel-import"] #sysDashboardStudio :is([data-import-review],[data-import-status],.sysdash-import-review>span) { min-width:0; max-width:100%; }
body[data-workspace-module="excel-import"] #sysDashboardStudio [data-import-panel="mapping"]>*+* { margin-top:10px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-grid { display:block; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-grid>section+section { margin-top:10px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-subdata:has(.sysdash-import-subdata-empty)>h4,
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-subdata-empty :is(i,small) { display:none; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-subdata-empty { display:block; min-height:0; padding:8px 10px; font-size:12px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-validation-hint { margin:10px 0; color:var(--sysdash-muted-strong); font-size:12px; line-height:1.5; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-correspondence>div { max-height:none; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-correspondence .is-warning td span { color:var(--sysdash-text); }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-review-notice { display:grid; gap:4px; margin:0 0 10px; padding:10px; border:1px solid var(--sysdash-line); border-left:3px solid var(--sysdash-accent); background:var(--sysdash-surface-2); color:var(--sysdash-text); font-size:12px; line-height:1.5; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope { min-width:0; margin-bottom:10px; border:1px solid var(--sysdash-line); border-left:3px solid var(--sysdash-warning); background:var(--sysdash-surface-2); color:var(--sysdash-text); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope summary { min-height:34px; padding:7px 10px; cursor:pointer; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope summary:focus-visible { outline:2px solid var(--sysdash-accent); outline-offset:-2px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope ul { margin:0; padding:0 10px 0 28px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope li { margin:6px 0; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope :is(b,span,small) { display:block; white-space:normal; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope small { color:var(--sysdash-muted-strong); font-size:11px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope p { margin:8px 10px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope:has(.sysdash-import-sheet-choices) { border-left-color:var(--sysdash-accent); }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope h4 { margin:8px 10px 0; font-size:13px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0 10px 10px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices label { min-width:0; margin:0; font-size:12px; text-transform:none; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices label>span { font-size:11px; margin:3px 0; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices select { width:100%; max-width:100%; min-width:0; min-height:34px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices .sysdash-import-sheet-error { color:var(--sysdash-text); border-left:3px solid var(--sysdash-danger); padding-left:6px; margin-top:6px; }
@media(max-width:600px) { body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices { grid-template-columns:minmax(0,1fr); } body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices select { min-height:44px; } }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-dropzone.has-error { border-color:var(--sysdash-danger); }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-dropzone.has-error [data-import-file-message] { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; color:var(--sysdash-text); }
@media(max-width:600px) { body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workbook-scope summary { min-height:44px; } }
body[data-workspace-module="excel-import"] #sysDashboardStudio :is(.sysdash-import-review,.sysdash-import-progress) :is(b,small) { white-space:normal; overflow-wrap:anywhere; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-review b { font-size:13px; line-height:1.4; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-progress>div { min-height:64px; align-items:start; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-progress b { font-size:12px; line-height:1.4; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-progress small { font-size:11px; line-height:1.4; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-plan>div { min-width:0; max-width:100%; overflow-x:auto; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-plan>div:focus-visible { outline:2px solid var(--sysdash-accent); outline-offset:-2px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio :is(.sysdash-import-subdata-card,.sysdash-import-related-file,.sysdash-import-relation-editor) { min-width:0; max-width:100%; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-subdata-card>div,
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-related-file>span { min-width:0; }
body[data-workspace-module="excel-import"] #sysDashboardStudio :is(.sysdash-import-subdata-card,.sysdash-import-related-file) :is(strong,b,small),
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-relation-editor>small { white-space:normal; overflow-wrap:anywhere; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-subdata-fields>span { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-relation-editor label span { font-size:11px; text-transform:none; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-relation-editor select { min-height:34px; font-size:12px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-subdata-ignore { justify-self:end; }
body[data-workspace-module="excel-import"] #sysDashboardStudio [data-import-mapping] { max-height:none; min-height:0; overflow-x:auto; overflow-y:visible; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-control :is(input,select) { min-height:34px; font-size:12px; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-control>span { font-size:11px; text-transform:none; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-validation-head :is(b,small),
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-validation-list span { white-space:normal; overflow-wrap:anywhere; }
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-row :is(input,select):focus-visible,
body[data-workspace-module="excel-import"] #sysDashboardStudio [data-import-preview]:focus-visible,
body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-correspondence>div:focus-visible { outline:2px solid var(--sysdash-accent); outline-offset:-2px; }
@layer sysimple-actions {
 html[data-brand-active] body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-preview th:first-child { position:sticky!important; left:0!important; z-index:3!important; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-tabs button.is-active { background:var(--sysdash-surface-2)!important; color:var(--sysdash-text)!important; border-bottom:3px solid var(--sysdash-accent)!important; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-tabs button.is-active :is(b,span,small) { color:var(--sysdash-text)!important; opacity:1!important; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-tabs button.is-active b { background:transparent!important; border-color:var(--sysdash-accent)!important; }
 html[data-brand-active] body #workflowAdminView .workflow-detail-actions { display:flex!important; flex-wrap:wrap!important; gap:6px!important; }
 html[data-brand-active] body #workflowAdminView .workflow-detail-actions>button { margin:0!important; }
 html[data-brand-active] body #workflowAdminView .workflow-list-head button[data-icon-command] { width:100%!important; max-width:none!important; font-size:12px!important; justify-content:space-between!important; }
 html[data-brand-active] body #workflowAdminView .workflow-list-head button[data-icon-command]>span { display:inline!important; }
 html[data-brand-active] body #workflowAdminView :is(.workflow-detail-actions,.workflow-admin-toolbar) [data-icon-command],
 html[data-brand-active] body #sysDashboardStudio .sysdash-import-dialog [data-icon-command] { width:34px!important; min-width:34px!important; max-width:34px!important; min-height:34px!important; flex:0 0 34px!important; padding:0!important; font-size:0!important; gap:0!important; }
 html[data-brand-active] body #workflowAdminView :is(.workflow-detail-actions,.workflow-admin-toolbar) [data-icon-command]>span,
 html[data-brand-active] body #sysDashboardStudio .sysdash-import-dialog [data-icon-command]>span { display:none!important; }
 html[data-brand-active] body #sysDashboardStudio .sysdash-import-dialog [data-icon-command]>i { font-size:14px!important; margin:0!important; }
 @media(max-width:600px) {
  html[data-brand-active] body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-relation-editor select { min-height:44px!important; height:44px!important; }
  html[data-brand-active] body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-sheet-choices select { min-height:44px!important; height:44px!important; }
  html[data-brand-active] body #workflowViewSwitcher { display:flex!important; flex-wrap:wrap!important; height:auto!important; min-height:0!important; overflow:visible!important; }
  html[data-brand-active] body #workflowModalForm button.btn,
  html[data-brand-active] body #workflowViewSwitcher button.btn { min-height:44px!important; min-width:44px!important; }
  html[data-brand-active] body #workflowAdminView [data-icon-command],
  html[data-brand-active] body #sysDashboardStudio .sysdash-import-dialog [data-icon-command] { width:44px!important; min-width:44px!important; max-width:44px!important; min-height:44px!important; flex-basis:44px!important; }
  #workflowAdminView .workflow-origin-options button { min-height:44px; }
 }
}
@media(max-width:600px) {
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-relation-editor select { min-height:44px; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-relation-editor>i { display:none; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-progress { grid-template-columns:minmax(0,1fr); }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-progress select { min-height:44px; max-width:100%; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-row { min-width:0; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px; padding:10px; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-source,
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-control:has([data-import-map-name]),
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-detect { grid-column:1 / -1; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-toggle { min-height:44px; font-size:12px; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-toggle input { width:18px; height:18px; flex:0 0 18px; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-control :is(input,select) { min-height:44px; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-map-row :is(b,strong,small,em) { white-space:normal; overflow-wrap:anywhere; }
 body #workflowViewSwitcher { display:flex!important; flex-wrap:wrap!important; height:auto!important; min-height:0!important; padding:6px 10px!important; gap:6px!important; overflow:visible!important; }
 body #workflowViewSwitcher .workflow-canvas-tools { display:flex; flex-basis:100%; margin:0; gap:6px; }
 body #workflowViewSwitcher .workflow-canvas-tools .btn { width:44px!important; min-width:44px!important; min-height:44px!important; padding:0!important; }
 body #workflowViewSwitcher .workflow-canvas-tools #btnCollapseAllNodes { margin-left:0; }
 body #workflowViewSwitcher .workflow-canvas-tools #zoomLabel { flex-basis:100%; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView { display:block!important; overflow:auto!important; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-main { display:flex!important; flex-direction:column; min-height:0!important; height:auto!important; gap:10px!important; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-main>* { flex-shrink:0; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-toolbar { height:auto!important; min-height:44px!important; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-list-shell { flex:none; min-height:300px!important; max-height:480px; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-admin-detail { margin-top:10px; height:auto!important; max-height:none!important; overflow:visible!important; }
 body:has(#workflowAdminView:not(.hidden)) #workflowAdminView .workflow-tab-panels { max-height:none!important; overflow:visible!important; }
 body[data-workspace-module="excel-import"] .workspace-content #sysDashboardStudio { height:100%!important; min-height:0!important; }
 body[data-workspace-module="excel-import"] #sysDashboardStudio .sysdash-import-workspace { height:100%!important; min-height:0!important; }
 #sysDashboardStudio .sysdash-import-controls { grid-template-columns:minmax(0,1fr); }
 #sysDashboardStudio .sysdash-import-dialog :is(input[type=search],select) { min-height:44px; }
 #sysDashboardStudio .sysdash-import-tabs button { min-height:44px; }
 #sysDashboardStudio .sysdash-import-browse-btn { justify-self:end; grid-column:2; }
}
