/* Focused workflow authoring presentation. Shared editor controls retain ownership. */
#workflow-task-shell { background: var(--hs-color-bg, #1b1c1e); color: #f4f5f6; }
#workflow-task-shell .hivesync-shell__header { padding: 0; }
.workflow-task-header { position: relative; display: flex; align-items: center; gap: 24px; padding: 12px 4%; border-bottom: 1px solid #68717a; }
.workflow-task-header__context { padding-left: 24px; border-left: 1px solid #68717a; }
.workflow-task-header > a { margin-left: auto; color: #f4f5f6; min-height: 44px; display: flex; align-items: center; gap: 12px; z-index: 1; }
.workflow-task-header__ambient { position: absolute; inset: 0 0 0 auto; width: 160px; pointer-events: none; }
#workflow-task-shell .page-frame { max-width: 1500px; width: 92%; margin: 0 auto; padding: 24px 0; }
#workflow-task-shell .page-frame__header { margin: 0 0 24px; padding: 0; border: 0; }
#workflow-task-shell .page-frame h1 { font-size: 32px; line-height: 1.2; color: #f4f5f6; }
#workflow-task-shell .page-frame__heading p { margin: 8px 0 0; color: #bdc4ce; }
#workflow-task-shell .first-journey, #workflow-task-shell .workflow-example { max-width: none; margin: 0; padding: 0; }
#workflow-task-shell .workflow-example > fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.workflow-editor-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px; }
#workflow-task-shell .workflow-action-row { display: flex; gap: 16px; margin: 0; align-items: center; }
#workflow-task-shell :is(button, summary, input, textarea) { font: inherit; }
#workflow-task-shell .workflow-example :is(button, summary) { min-height: 44px; border: 1px solid #89939e; border-radius: 7px; padding: 10px 16px; color: #f4f5f6; background: #25282c; cursor: pointer; }
#workflow-task-shell .workflow-example button:disabled { opacity: .5; cursor: default; }
#workflow-task-shell .workflow-example .workflow-primary { background: var(--hs-color-honey); color: #171b20; font-weight: 700; display: inline-flex; gap: 12px; align-items: center; }
.workflow-more { position: relative; }
.workflow-more summary { list-style: none; }
.workflow-more[open] > button { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 170px; }
.workflow-storage-note { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 0 24px; margin-bottom: 24px; border-bottom: 1px solid #68717a; color: #bdc4ce; }
.workflow-storage-note > span + span { border-left: 1px solid #68717a; padding-left: 24px; }
#workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-structure-layout { grid-template-columns: minmax(260px,28%) minmax(0,1fr); gap: 28px; border: 0; background: transparent; }
#workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-outline { border: 0; background: transparent; margin: 0; padding: 0; }
#workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-work-plan__phase-pane,
#workflow-task-shell .workflow-studio-example__task { padding: 28px; border: 1px solid #89939e; border-radius: 12px; background: #202428; }
#workflow-task-shell .workflow-studio-example__task { background: #25282c; }
#workflow-task-shell .workflow-studio-example__task h2 { font-size: 28px; line-height: 1.3; margin: 16px 0 28px; color: #f4f5f6; }
.workflow-task-context { color: #bdc4ce; margin: 0; }
#workflow-task-shell .blueprint-field { margin: 0; gap: 8px; }
#workflow-task-shell .blueprint-field > span { color: #f4f5f6; }
#workflow-task-shell .workflow-example :is(input,textarea) { width: 100%; padding: 12px 16px; color: #f4f5f6; background: #202428; border: 1px solid #89939e; border-radius: 7px; box-sizing: border-box; }
#workflow-task-shell .workflow-example textarea { min-height: 150px; }
#workflow-task-shell .blueprint-field__hint { color: #bdc4ce; margin-top: 8px; }
.workflow-task-options { margin-top: 24px; }
.workflow-task-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #68717a; margin-top: 28px; padding-top: 24px; }
#workflow-task-shell .blueprint-phase-rail { background: transparent; border: 0; padding: 0; }
#workflow-task-shell .blueprint-phase-rail > header { margin-bottom: 24px; }
#workflow-task-shell .blueprint-phase-rail > header h2 { color: #f4f5f6; font-size: 24px; }
#workflow-task-shell .blueprint-phase-rail > header small,
#workflow-task-shell .blueprint-studio-desktop-outline-toggle,
#workflow-task-shell .blueprint-studio-section-name { display: none; }
#workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-phase-rail__heading { padding-right: 0; }
#workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-phase-rail__item { width: 100%; border: 0; background: transparent; padding: 12px; grid-template-columns: 16px minmax(0,1fr) 16px; }
#workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-phase-rail__item--active { background: #2a3036; }
#workflow-task-shell .blueprint-phase-rail__disclosure { display: block; }
#workflow-task-shell .blueprint-guided-task-outline { margin: 8px 0 24px; padding: 0; }
#workflow-task-shell .blueprint-guided-task-outline button { min-height: 48px; border: 0; background: transparent; padding: 12px 16px; }
#workflow-task-shell .blueprint-guided-task-outline strong { font-weight: 400; color: #f4f5f6; }
#workflow-task-shell .blueprint-guided-task-outline button[aria-current] { background: #1c3859; border-left: 6px solid #3384ff; }
#workflow-task-shell :is(button,summary,a,input,textarea):focus-visible { outline: 2px solid #f0bd45; outline-offset: 3px; }
.workflow-task-footer { width: 92%; max-width: 1500px; margin: 8px auto 0; padding: 24px 0; border-top: 1px solid #68717a; display: flex; gap: 24px; justify-content: space-between; color: #bdc4ce; }
.workflow-task-footer .bizmonger-legal-footer { margin: 0; padding: 0; border: 0; }
@media(max-width:760px) {
 .workflow-task-header { flex-wrap: wrap; gap: 8px 16px; }
 .workflow-task-header__context { display: none; }
 .workflow-editor-toolbar { grid-template-columns: 1fr; gap: 16px; }
 #workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-structure-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 #workflow-task-shell .blueprint-studio.blueprint-studio .blueprint-work-plan__phase-pane,
 #workflow-task-shell .workflow-studio-example__task { padding: 16px; }
 #workflow-task-shell .workflow-studio-example__task h2 { font-size: 24px; }
 .workflow-storage-note > span + span { border: 0; padding: 0; }
 .workflow-task-footer { flex-direction: column; }
}
#workflow-task-shell .workflow-action-row { position: static; padding: 0; background: transparent; }
#workflow-task-shell .workflow-example .blueprint-field { display: grid; gap: 8px; margin: 0; }
#workflow-task-shell .workflow-example .blueprint-field > small { font-size: 14px; color: #bdc4ce; }
#workflow-task-shell .workflow-example .blueprint-field > .blueprint-field__error { color: #ffb4ab; }
#workflow-task-shell .workflow-studio-example__task > [role=status]:empty { display: none; }

#workflow-task-shell { font: 20px/1.4 var(--hs-font-family-body); }
#workflow-task-shell .hivesync-shell__header { padding: 0; }
#workflow-task-shell .workflow-task-header { padding: 8px 4%; width: 100%; margin: 0; justify-content: flex-start; }
#workflow-task-shell .workflow-task-header > .hivesync-brand-lockup { margin: 0; }
#workflow-task-shell .workflow-task-header__ambient { position: absolute; inset: 0 0 0 auto; height: 100%; min-height: 0; width: 160px; }
#workflow-task-shell .page-frame { display: block; max-width: 1500px; width: 92%; padding: 24px 0; }
#workflow-task-shell .page-frame__header { display: block; border: 0; padding: 0; margin: 0 0 24px; }
#workflow-task-shell .page-frame h1 { font-size: 40px; margin: 0; }
#workflow-task-shell .page-frame__heading { gap: 0; }
#workflow-task-shell .blueprint-outline { height: auto; min-height: 0; max-height: none; display: block; box-shadow: none; }
#workflow-task-shell .blueprint-structure-layout { height: auto; min-height: 0; max-height: none; }
#workflow-task-shell .blueprint-phase-rail > header { padding: 0; }
#workflow-task-shell .blueprint-phase-rail > header h2 { margin: 0; font-size: 28px; }
#workflow-task-shell .blueprint-phase-rail__item strong { font-size: 20px; }
#workflow-task-shell .blueprint-studio-phase-count { font-size: 16px; }
#workflow-task-shell .blueprint-guided-task-outline { counter-reset: workflow-task; }
#workflow-task-shell .blueprint-guided-task-outline > li:not(.blueprint-studio-section-name) { counter-increment: workflow-task; }
#workflow-task-shell .blueprint-guided-task-outline__item > svg { display: none; }
#workflow-task-shell .blueprint-guided-task-outline__item::before { content: counter(workflow-task) "."; color: #f4f5f6; }
#workflow-task-shell .blueprint-guided-task-outline__item { grid-template-columns: 22px minmax(0,1fr); }
#workflow-task-shell .blueprint-guided-task-outline__item strong { font-size: 18px; line-height: 1.4; }
#workflow-task-shell .workflow-task-footer { font-size: 16px; align-items: start; }
#workflow-task-shell .workflow-task-footer > span { flex: 1; }
#workflow-task-shell .bizmonger-legal-footer { flex: 0 1 auto; display: block; text-align: right; min-width: 0; background: transparent; }
#workflow-task-shell .bizmonger-legal-footer nav { margin-top: 8px; font-size: 12px; }
@media(max-width:760px) {
 #workflow-task-shell { font-size: 16px; }
 #workflow-task-shell .page-frame h1 { font-size: 28px; }
 #workflow-task-shell .workflow-task-header { flex-wrap: wrap; }
 #workflow-task-shell .bizmonger-legal-footer { text-align: left; }
}
#workflow-task-shell .page-frame__heading p { font-size: 20px; line-height: 1.4; }
#workflow-task-shell .workflow-example :is(input,textarea), 
#workflow-task-shell .workflow-example .blueprint-field > span { font: 20px/1.4 var(--hs-font-family-body); }
#workflow-task-shell .workflow-example textarea { min-height: 128px; }
#workflow-task-shell .workflow-studio-example__task h2 { font: 650 32px/1.3 var(--hs-font-family-body); }
#workflow-task-shell .blueprint-phase-rail > header { margin: 0 0 16px; }
#workflow-task-shell .blueprint-guided-task-outline { margin: 8px 0 16px; gap: 0; }
#workflow-task-shell .blueprint-guided-task-outline__item { box-shadow: none; }
#workflow-task-shell .workflow-task-footer .bizmonger-legal-footer { width: auto; max-width: 60%; padding: 0; border: 0; margin: 0; }
#workflow-task-shell .workflow-task-footer > span { flex: 1 0 45%; }
#workflow-task-shell .workflow-task-footer .bizmonger-legal-footer p { margin: 0; font-size: 16px; font-weight: 400; }
@media(max-width:760px) {
 #workflow-task-shell .workflow-studio-example__task h2 { font-size: 24px; }
 #workflow-task-shell .workflow-task-footer .bizmonger-legal-footer { max-width: 100%; }
}
@media(min-width:761px) {
 #workflow-task-shell .workflow-task-header { padding-block: 4px; }
 #workflow-task-shell .page-frame { padding-top: 16px; }
 #workflow-task-shell .page-frame__header { margin-bottom: 16px; }
 #workflow-task-shell .page-frame__heading p { margin-top: 4px; }
 #workflow-task-shell .workflow-storage-note { padding-bottom: 16px; }
 #workflow-task-shell .blueprint-guided-task-outline button { padding-block: 8px; }
}

#workflow-task-shell .workflow-task-context::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 12px; background: var(--hs-color-blueprint); }
#workflow-task-shell .workflow-task-context--execute::before { background: var(--hs-color-execute); }
#workflow-task-shell .workflow-task-context--wrap::before { background: var(--hs-color-wrap); }
#workflow-task-shell .workflow-storage-note .oi { margin-right: 12px; }
#workflow-task-shell .workflow-task-options summary > span { margin-inline: 8px; }
#workflow-task-shell .hivesync-shell__header { min-height: 0; border-bottom: 0; }
#workflow-task-shell .workflow-example:has(> .workflow-preview) > fieldset { display: none; }
#workflow-task-shell .workflow-preview { padding: 28px; margin: 0; background: #25282c; }
#workflow-task-shell .workflow-preview h2 { color: #f4f5f6; margin-top: 0; overflow-wrap: anywhere; }
#workflow-task-shell .workflow-preview .first-journey-primary { background: var(--hs-color-honey); color: #171b20; }
#workflow-task-shell .workflow-preview h4 { margin-top: 24px; color: #f4f5f6; }
#workflow-task-shell .workflow-preview li { margin-block: 12px; }
/* Focused editor grows naturally; the header must not cover focused review content. */
#workflow-task-shell .hivesync-shell__header { position: static; }

/* Retain the mounted editor selection while exposing only the preview state. */
#workflow-task-shell .workflow-editor-state[hidden] { display: none; }
#workflow-task-shell .workflow-preview { max-width: 60rem; margin-inline: auto; }
#workflow-task-shell .workflow-preview-card { border: 1px solid var(--hs-color-border); border-radius: .75rem; padding: 1.25rem; margin-top: 1.25rem; }
#workflow-task-shell #workflow-preview-instructions { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.5rem; line-height: 1.5; margin-block: 1.25rem; }
#workflow-task-shell .workflow-preview-title { overflow-wrap: anywhere; }
#workflow-task-shell .workflow-preview select { min-height: 44px; font: inherit; }
@media (max-width: 760px) {
    #workflow-task-shell .workflow-preview { padding: 1rem; }
    #workflow-task-shell .workflow-preview-card { padding: 1rem; }
    #workflow-task-shell .workflow-task-navigation { gap: .5rem; }
    #workflow-task-shell .workflow-task-navigation button { flex: 1; margin: 0; }
}
