/* The free studio: library first, focused editing once a procedure exists. */
.ed-page { max-width: 1480px; padding-top: 36px; padding-bottom: 72px; }
.ed-page-heading { display: grid; grid-template-columns: 1fr auto; gap: 22px; margin-bottom: 32px; }
.ed-back-link { grid-column: 1 / -1; font-size: .82rem; text-decoration: none; }
.ed-page-heading h1 { margin: 10px 0 14px; font-size: clamp(2rem, 3.7vw, 3.25rem); letter-spacing: -.04em; }
.ed-page-heading p { max-width: 670px; color: var(--ink-3); font-size: 1rem; }
.ed-free-badge { align-self: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--brand); font-size: .88rem; font-weight: 700; text-align: center; }
.ed-free-badge small { color: var(--ink-3); font-weight: 400; }
.ed-page.is-editing .ed-page-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.ed-page.is-editing .ed-page-heading h1, .ed-page.is-editing .ed-page-heading p, .ed-page.is-editing .ed-free-badge { display: none; }
#free-builder { font-size: 14px; line-height: 1.5; scroll-margin-top: 88px; }
#free-builder [hidden] { display: none !important; }
#free-builder button, #free-builder input, #free-builder select, #free-builder textarea { font-family: var(--font); }
#free-builder button { cursor: pointer; }
#free-builder button:disabled { opacity: .35; cursor: default; }
.ed-kicker { display: block; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ed-notice { position: sticky; top: 76px; z-index: 10; margin-bottom: 12px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--brand-soft); color: var(--ink); box-shadow: var(--shadow); }
.ed-notice.is-error { background: var(--surface); border-color: var(--coral); color: var(--coral); }
.ed-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); font: 650 12px/1.3 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ed-button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ed-primary { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.ed-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.ed-library { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.ed-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.ed-library-heading h2 { margin: 6px 0 8px; font-size: 1.6rem; }
.ed-library-heading p { color: var(--ink-3); }
.ed-library-actions { display: flex; gap: 8px; }
.ed-search { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); }
.ed-search > svg { flex-shrink: 0; color: var(--ink-3); }
.ed-search input { width: 100%; min-width: 0; padding: 14px 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.ed-search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ed-search input:focus-visible { outline: none; }
.ed-search > span { flex-shrink: 0; color: var(--ink-3); font-size: 11px; }
.ed-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 21px; }
.ed-filter { min-height: 34px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-3); font-size: 12px; }
.ed-filter.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.ed-library-count { margin-bottom: 13px; color: var(--ink-3); font-size: 12px; }
.ed-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.ed-template-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; transition: border-color .18s, box-shadow .18s, transform .18s; }
.ed-template-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.ed-template-top { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11px; }
.ed-template-icon { display: grid; flex-shrink: 0; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.ed-recommended { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font-size: 10px; }
.ed-template-card h3 { font-size: 18px; line-height: 1.2; }
.ed-template-card > p { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: auto; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.ed-template-facts { display: flex; flex-wrap: wrap; gap: 6px 11px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 10px; }
.ed-template-open { display: flex; align-items: center; justify-content: space-between; color: var(--brand); font-size: 12px; font-weight: 700; }
.ed-show-more { display: flex; min-width: 200px; margin: 24px auto 0; }
.ed-library-footnote { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 27px; color: var(--ink-3); font-size: 11px; text-align: center; }
.ed-library-footnote svg { flex-shrink: 0; }
.ed-empty-search { padding: 35px; color: var(--ink-3); text-align: center; }
.ed-resume { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 20px; padding: 15px; border: 1px solid var(--brand); border-radius: 11px; background: var(--brand-soft); color: var(--brand); text-align: left; }
.ed-resume span { flex: 1; font-size: 11px; }
.ed-resume strong { display: block; font-size: 14px; }
.ed-workspace { scroll-margin-top: 84px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.ed-workspace-head { display: flex; align-items: center; gap: 16px; padding: 17px 20px; }
.ed-back { font-size: 11px; background: var(--paper); }
.ed-workspace-title { flex: 1; min-width: 0; }
.ed-workspace-title h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.ed-workspace-title > span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 10px; }
.ed-save { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.ed-save i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.ed-toolbar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px; border-block: 1px solid var(--line); background: var(--paper); }
.ed-undo-group { display: flex; gap: 2px; }
.ed-icon-button { display: grid; place-items: center; width: 32px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink-2); }
.ed-icon-button:hover { border-color: var(--line); background: var(--surface); }
.ed-redo svg { transform: scaleX(-1); }
.ed-view-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.ed-view-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 33px; padding: 5px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font-size: 11px; font-weight: 650; }
.ed-view-tabs button.is-active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.ed-view-tabs b.has-errors { color: var(--coral); }
.ed-export-menu { position: relative; }
.ed-export-menu summary { list-style: none; font-size: 11px; }
.ed-export-menu summary::-webkit-details-marker { display: none; }
.ed-export-menu > div { position: absolute; right: 0; top: 45px; z-index: 6; display: grid; width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lg); }
.ed-export-menu button { display: flex; align-items: center; gap: 9px; padding: 11px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 12px; text-align: left; }
.ed-export-menu button:hover { background: var(--brand-soft); }
.ed-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr) 295px; grid-template-rows: minmax(0, 1fr); height: 610px; min-height: 0; }
.ed-layout > * { min-height: 0; }
.ed-outline { overflow-y: auto; padding: 13px 10px; border-right: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.ed-overview, .ed-outline-step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-2); text-align: left; }
.ed-overview { margin-bottom: 15px; padding-block: 12px; border: 1px solid var(--line); }
.ed-overview svg { flex-shrink: 0; }
.ed-overview span, .ed-outline-step > span:last-child { min-width: 0; font-size: 11px; font-weight: 650; line-height: 1.35; }
.ed-overview small, .ed-outline-step small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 9px; font-weight: 400; }
.ed-overview.is-selected, .ed-outline-step.is-selected { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft); color: var(--brand); }
.ed-outline-step:hover { background: var(--paper); }
.ed-outline ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.ed-outline-label { display: flex; justify-content: space-between; margin: 0 8px 9px; color: var(--ink-3); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.ed-outline-label > span { font-weight: 400; letter-spacing: 0; }
.ed-step-symbol { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink-3); font-size: 10px; }
.ed-step-symbol.is-decision { border-color: #cba85d; background: #fff4d5; color: #7b581c; }
.ed-add-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 15px; padding: 10px 4px; border-top: 1px solid var(--line); }
.ed-add-actions .ed-button { justify-content: flex-start; min-height: 34px; font-size: 10px; }
.ed-stage { position: relative; min-width: 0; overflow: auto; background: var(--paper); scrollbar-width: thin; }
.ed-canvas-hint { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink-3); font-size: 10px; }
.ed-canvas-hint > div { display: flex; gap: 3px; margin-left: auto; }
.ed-canvas-hint .ed-button { min-height: 26px; padding: 3px 7px; border-radius: 5px; font-size: 9px; }
.ed-flow-scroll { min-height: calc(100% - 50px); overflow-x: auto; background-image: radial-gradient(var(--line-strong) .8px, transparent .8px); background-size: 17px 17px; }
.ed-flow-scale { max-width: 100%; margin: auto; }
.ed-flow-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.ed-flow-line { fill: none; stroke: var(--brand); stroke-width: 1.7; color: var(--brand); opacity: .65; }
.ed-flow-line.no { stroke: var(--coral); color: var(--coral); }
.ed-flow-edge-label { fill: var(--ink-2); font-size: 11px; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; }
.ed-flow-node { cursor: pointer; }
.ed-flow-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .04)); }
.ed-flow-node:hover rect, .ed-flow-node.is-selected rect { stroke: var(--brand); stroke-width: 2.5; }
.ed-flow-node.is-decision rect { fill: color-mix(in srgb, var(--marker) 15%, var(--surface)); stroke: #c19b45; }
.ed-flow-node text { fill: var(--ink); font-size: 12px; font-weight: 650; pointer-events: none; }
.ed-flow-node .ed-flow-role { fill: var(--ink-3); font-size: 9px; font-weight: 400; }
.ed-flow-finish { fill: var(--brand); }
.ed-flow-end-label { fill: var(--brand-ink); font-size: 12px; font-weight: 700; }
.ed-inspector { overflow-y: auto; padding: 21px 18px; border-left: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.ed-inspector-heading { margin-bottom: 20px; }
.ed-inspector-heading h3 { margin: 5px 0 7px; font-size: 18px; }
.ed-inspector-heading p { color: var(--ink-3); font-size: 11px; }
.ed-field { display: grid; gap: 6px; margin-bottom: 15px; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.ed-field input, .ed-field textarea, .ed-field select { width: 100%; min-width: 0; min-height: 38px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 400; line-height: 1.55; }
.ed-field textarea { min-height: 115px; resize: vertical; }
.ed-field input:focus, .ed-field textarea:focus, .ed-field select:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; border-color: var(--brand); }
.ed-disclosure { margin: 10px 0 15px; border-block: 1px solid var(--line); }
.ed-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; color: var(--ink-2); font-size: 11px; font-weight: 650; cursor: pointer; }
.ed-disclosure summary::after { content: '+'; color: var(--ink-3); }
.ed-disclosure[open] summary::after { content: '−'; }
.ed-disclosure summary span { margin-left: auto; color: var(--ink-3); font-size: 10px; }
.ed-disclosure > p { margin: 0 0 13px; color: var(--ink-3); font-size: 11px; }
.ed-disclosure > .ed-button { margin-bottom: 13px; }
.ed-route-label { display: block; margin: 15px 0 5px; color: var(--brand); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.ed-route-label.no { color: var(--coral); }
.ed-step-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.ed-step-tools .ed-button { min-height: 31px; padding: 6px 9px; font-size: 10px; }
.ed-step-tools [data-action="delete"] { color: var(--coral); }
.ed-workspace-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 9px; }
.ed-workspace-foot span:first-child { display: flex; align-items: center; gap: 7px; }
.ed-mobile-tools { display: none; }
.ed-document { max-width: 740px; min-height: 100%; margin: 0 auto; padding: 30px; background: var(--surface); }
.ed-document > h2 { margin: 8px 0 14px; font-size: 24px; }
.ed-document > p { color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.ed-document-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ed-document-facts span { padding: 5px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-3); font-size: 10px; }
.ed-document > details { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.ed-document > details summary { font-weight: 650; cursor: pointer; }
.ed-document > details p, .ed-document > details ul { margin-top: 10px; color: var(--ink-3); }
.ed-document > ol { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.ed-document > ol > li { border: 1px solid var(--line); border-radius: 9px; }
.ed-document > ol > li.is-selected { border-color: var(--brand); }
.ed-doc-step { display: flex; gap: 12px; width: 100%; padding: 15px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; }
.ed-doc-step:hover { background: var(--paper); }
.ed-doc-step > span { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 10px; }
.ed-doc-step h3 { font-size: 15px; }
.ed-doc-step small { display: block; margin: 4px 0 8px; color: var(--brand); font-size: 10px; }
.ed-doc-step p { color: var(--ink-2); font-size: 11px; line-height: 1.8; white-space: pre-line; }
.ed-confirmation { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; color: var(--brand); font-size: 10px; }
.ed-confirmation svg { flex-shrink: 0; margin-top: 2px; }
.ed-document > ol > .ed-document-decision { display: grid; gap: 7px; padding: 15px; background: color-mix(in srgb, var(--marker) 9%, var(--surface)); border-color: #cba85d; }
.ed-document-decision > span { display: flex; gap: 7px; color: var(--ink-3); font-size: 10px; }
.ed-document-decision strong { font-size: 13px; }
.ed-document-decision small { color: var(--ink-3); font-size: 11px; }
.ed-check-row { display: flex; align-items: flex-start; gap: 13px; padding: 16px; cursor: pointer; }
.ed-check-row input { flex-shrink: 0; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--brand); }
.ed-check-row > span { font-size: 12px; }
.ed-check-row small { display: block; margin-top: 5px; color: var(--ink-3); font-size: 10px; }
.ed-check-row input:checked + span { text-decoration: line-through; color: var(--ink-3); }
.ed-preview-note { padding: 13px; border-radius: 9px; background: var(--paper); color: var(--ink-3); font-size: 11px !important; line-height: 1.7; }
.ed-review { padding: 30px; }
.ed-review h2 { margin: 8px 0 12px; font-size: 25px; }
.ed-review > p { color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.ed-review-status { display: flex; gap: 13px; align-items: center; margin: 24px 0; padding: 18px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.ed-review-status > svg { flex-shrink: 0; }
.ed-review-status strong { font-size: 13px; }
.ed-review-status p { margin-top: 4px; color: var(--ink-3); font-size: 11px; }
.ed-review-status.has-errors { border-color: var(--coral); background: var(--surface); color: var(--coral); }
.ed-review h3 { margin-bottom: 13px; font-size: 16px; }
.ed-review-errors { padding-left: 18px; color: var(--coral); font-size: 12px; line-height: 1.8; }
.ed-suggestions { padding: 0; list-style: none; }
.ed-suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 6px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 11px; text-align: left; }
.ed-suggestions button svg { flex-shrink: 0; }
.ed-review-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0 15px; }
.ed-teaser { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.ed-teaser-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ed-teaser-top > span { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; }
.ed-teaser-top a { display: flex; align-items: center; gap: 7px; font-size: 12px; text-decoration: none; }
.ed-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px; gap: 14px; }
.ed-teaser-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); text-decoration: none; }
.ed-teaser-card:hover { border-color: var(--brand); color: var(--ink); }
.ed-teaser-card h3 { font-size: 18px; }
.ed-teaser-card p { margin-top: auto; color: var(--ink-3); font-size: 11px; }
.ed-teaser-card > span:last-child { display: flex; align-items: center; gap: 7px; color: var(--brand); font-size: 12px; font-weight: 650; }
.ed-teaser-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 24px; border-top: 1px solid var(--line); }
.ed-teaser-footer p { font-size: 13px; }
.ed-teaser-footer small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 11px; }
.ed-teaser-footer .btn { padding: 12px 17px; font-size: 13px; }
@media (min-width: 1051px) and (max-width: 1250px) { .ed-layout { grid-template-columns: 205px minmax(0, 1fr) 265px; } .ed-save { display: none; } }
@media (max-width: 1050px) {
  .ed-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .ed-inspector { display: none; }
  #free-builder[data-mobile-panel="inspector"] .ed-layout { grid-template-columns: 1fr; height: 610px; }
  #free-builder[data-mobile-panel="inspector"] .ed-inspector { display: block; max-width: 650px; width: 100%; height: 100%; max-height: 100%; margin: 0 auto; border: 0; }
  #free-builder[data-mobile-panel="inspector"] .ed-outline, #free-builder[data-mobile-panel="inspector"] .ed-stage { display: none; }
  .ed-mobile-tools { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
  .ed-mobile-tools .ed-button { min-height: 31px; padding: 5px 10px; font-size: 10px; }
  .ed-mobile-tools [data-action="mobile-close"] { margin-left: auto; }
  .ed-save { display: none; }
  .ed-template-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .ed-page { padding-top: 21px; padding-inline: 12px; }
  .ed-page-heading { gap: 17px; margin-bottom: 22px; }
  .ed-page-heading h1 { font-size: 32px; }
  .ed-page-heading p { font-size: 13px; }
  .ed-free-badge { display: none; }
  .ed-page-heading > div { grid-column: 1 / -1; }
  .ed-library { padding: 20px 15px; border-radius: 14px; }
  .ed-library-heading { display: block; margin-bottom: 20px; }
  .ed-library-heading h2 { font-size: 24px; }
  .ed-library-heading p { font-size: 12px; }
  .ed-library-actions { margin-top: 18px; }
  .ed-library-actions .ed-button { flex: 1; font-size: 11px; }
  .ed-search { gap: 9px; padding-inline: 11px; }
  .ed-search input { font-size: 16px; }
  .ed-search > span { display: none; }
  .ed-filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; }
  .ed-filter { flex-shrink: 0; }
  .ed-template-grid { grid-template-columns: 1fr; gap: 12px; }
  .ed-template-card { padding: 18px; }
  .ed-template-card > p { -webkit-line-clamp: 2; line-clamp: 2; }
  .ed-template-card h3 { font-size: 20px; }
  .ed-workspace-head { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .ed-workspace-title { order: -1; flex: 1 1 100%; }
  .ed-workspace-title h2 { font-size: 20px; }
  .ed-workspace-head > .ed-primary { margin-left: auto; font-size: 11px; }
  .ed-toolbar { flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
  .ed-view-tabs { order: 2; justify-content: space-between; width: 100%; gap: 1px; }
  .ed-view-tabs button { flex: 1; gap: 4px; min-height: 37px; padding: 5px 4px; font-size: 10px; }
  .ed-view-tabs svg { width: 15px; }
  .ed-layout, #free-builder[data-mobile-panel="inspector"] .ed-layout { display: grid; grid-template-columns: 1fr; height: 560px; }
  .ed-outline { display: none; }
  #free-builder[data-mobile-panel="outline"] .ed-outline { display: block; border: 0; }
  #free-builder[data-mobile-panel="outline"] .ed-stage, #free-builder[data-mobile-panel="outline"] .ed-inspector { display: none; }
  .ed-outline-step > span:last-child { font-size: 13px; }
  .ed-outline-step small { font-size: 11px; }
  .ed-outline-step { min-height: 52px; }
  .ed-add-actions { grid-template-columns: 1fr 1fr; }
  .ed-add-actions .ed-button { min-height: 42px; font-size: 12px; }
  .ed-inspector { padding: 22px; }
  .ed-field { font-size: 12px; }
  .ed-field input, .ed-field select, .ed-field textarea { min-height: 45px; font-size: 16px; }
  .ed-field textarea { font-size: 14px; }
  .ed-canvas-hint { font-size: 9px; padding-inline: 10px; }
  .ed-flow-scale { max-width: none; }
  .ed-workspace-foot { display: block; font-size: 9px; }
  .ed-workspace-foot > span:last-child { display: block; margin-top: 5px; }
  .ed-document, .ed-review { padding: 24px 17px; }
  .ed-document > h2, .ed-review h2 { font-size: 23px; }
  .ed-doc-step { padding: 12px; gap: 9px; }
  .ed-doc-step p { font-size: 12px; }
  .ed-doc-step h3 { font-size: 16px; }
  .ed-teaser-top { padding: 15px; }
  .ed-teaser-top > span { font-size: 12px; }
  .ed-teaser-top a { font-size: 10px; }
  .ed-teaser-grid { grid-template-columns: 1fr; padding: 15px; }
  .ed-teaser-card { display: grid; grid-template-columns: 43px 1fr; gap: 7px 13px; padding: 15px; }
  .ed-teaser-card .ed-template-icon { grid-row: span 3; }
  .ed-teaser-card h3 { font-size: 17px; }
  .ed-teaser-card > span:last-child { font-size: 11px; }
  .ed-teaser-footer { display: block; padding: 17px; }
  .ed-teaser-footer .btn { width: 100%; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ed-template-card { transition: none; } }
@media print {
  body.printing-free-builder .site-header, body.printing-free-builder .site-footer, body.printing-free-builder .ed-page-heading, body.printing-free-builder .ed-notice, body.printing-free-builder .ed-workspace-head, body.printing-free-builder .ed-toolbar, body.printing-free-builder .ed-mobile-tools, body.printing-free-builder .ed-outline, body.printing-free-builder .ed-inspector, body.printing-free-builder .ed-workspace-foot { display: none !important; }
  body.printing-free-builder .ed-page, body.printing-free-builder .ed-workspace, body.printing-free-builder .ed-stage { max-width: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: white; color: black; }
  body.printing-free-builder .ed-layout { display: block; height: auto; }
  body.printing-free-builder .ed-document { max-width: none; color: black; }
  body.printing-free-builder .ed-document > ol > li { break-inside: avoid; }
}
.ed-outline ol > li { display:flex; position:relative; align-items:stretch; }
.ed-drag-handle { flex:0 0 25px; padding:0; border:0; border-radius:6px; background:transparent; color:#9a9387; cursor:grab; touch-action:none; }
.ed-drag-handle:hover,.ed-drag-handle:focus-visible { color:var(--ed-brand,#205f50); background:#e4eee9; }
.ed-outline ol > li .ed-outline-step { flex:1; min-width:0; }
.ed-flow-node { cursor:grab; touch-action:none; user-select:none; }
.ed-flow-node:active,.ed-drag-handle:active { cursor:grabbing; }
.ed-dragging { opacity:.35; pointer-events:none; }
li.ed-drop-before::before,li.ed-drop-after::after { content:''; position:absolute; height:3px; background:#216853; left:0; right:0; border-radius:3px; z-index:2; }
li.ed-drop-before::before { top:-3px; } li.ed-drop-after::after { bottom:-3px; }
.ed-flow-node.ed-drop-before rect,.ed-flow-node.ed-drop-after rect { stroke:#216853; stroke-width:4; stroke-dasharray:6 3; }
.ed-drag-ghost { position:fixed; z-index:1000; padding:13px 18px; max-width:270px; border:2px solid #216853; border-radius:10px; background:white; color:#153e32; box-shadow:0 8px 35px #182b2926; font:600 13px/1.5 sans-serif; pointer-events:none; }
.ed-block-library { padding:15px 0; border-top:1px solid #e4dacb; margin-top:14px; }
.ed-block-library summary { cursor:pointer; font-size:12px; font-weight:650; }
.ed-block-library p { font-size:11px; line-height:1.6; color:#817a70; margin:10px 0; }
.ed-block-library .ed-button { width:100%; margin:4px 0; justify-content:flex-start; font-size:11px; }
.ed-role-row { display:flex; align-items:center; gap:7px; }.ed-role-row .ed-field { flex:1; min-width:0; }.ed-role-row > .ed-button { margin-top:6px; padding:8px; }
@media(max-width:700px) { .ed-drag-handle { flex-basis:44px; } }
/* Image handling and tutorials use the same calm, readable studio surfaces. */
.ed-learning-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 18px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:var(--brand-soft)}.ed-learning-bar>div{flex:1;min-width:220px}.ed-learning-bar strong,.ed-learning-bar span{display:block}.ed-learning-bar span{font-size:12px;color:var(--ink-3);margin-top:3px}.ed-media{border:1px dashed var(--line-strong);border-radius:10px;padding:12px;margin-top:16px;min-width:0;background:var(--paper)}.ed-media-heading{display:flex;justify-content:space-between;gap:8px}.ed-media-heading span,.ed-media p,.ed-media small{color:var(--ink-3);font-size:11px}.ed-media p{margin:6px 0 10px}.ed-image-picker{position:relative;overflow:hidden;cursor:pointer}.ed-image-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.ed-image-picker:focus-within{outline:2px solid var(--brand);outline-offset:3px}.ed-media-grid{display:grid;gap:12px;margin:12px 0}.ed-image-card{border:1px solid var(--line);border-radius:8px;padding:10px;display:grid;gap:9px;background:var(--surface);min-width:0}.ed-image-preview{height:135px;position:relative;background:var(--paper);border-radius:6px;overflow:hidden}.ed-image-preview img{width:100%;height:100%}.ed-media-handle{position:absolute;bottom:5px;left:5px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;padding:5px 9px;min-height:36px;cursor:grab;touch-action:none}.ed-image-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ed-image-options label{font-size:11px;font-weight:600;display:grid;gap:4px;min-width:0}.ed-image-options select{width:100%;min-width:0;padding:8px 4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}.ed-image-card .ed-field{margin:0}.ed-image-buttons{display:flex;gap:4px;flex-wrap:wrap}.ed-image-buttons .ed-button{padding:6px 8px;font-size:11px}.ed-image-drop{outline:3px solid var(--brand)!important;outline-offset:-3px;background:var(--brand-soft)!important}.ed-image-moving{cursor:grabbing}.ed-procedure-images{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.ed-procedure-image{grid-column:1/-1;margin:0;min-width:0}.ed-procedure-image.is-half{grid-column:auto}.ed-procedure-image img{display:block;width:100%;height:230px;border-radius:8px;background:var(--paper)}.ed-procedure-image figcaption{font-size:12px;line-height:1.5;color:var(--ink-3);padding:7px 0;overflow-wrap:anywhere}.ed-tutorial-dialog{position:fixed;inset:0;border:1px solid var(--line);border-radius:18px;padding:30px;background:var(--surface);color:var(--ink);width:min(640px,calc(100% - 28px));max-height:85dvh;margin:auto;box-shadow:0 30px 100px #0003;overflow:auto;font:inherit}.ed-tutorial-dialog::backdrop{background:#14292099;backdrop-filter:blur(3px)}.ed-tutorial-dialog h2{font-size:1.65rem;margin:8px 24px 10px 0}.ed-tutorial-dialog p{color:var(--ink-3);font-size:14px}.ed-tutorial-dialog ol{list-style:none;padding:0;margin:24px 0;display:grid;gap:16px}.ed-tutorial-dialog li{display:flex;align-items:flex-start;gap:14px}.ed-tutorial-dialog li>span{flex:none;display:grid;place-items:center;width:28px;height:28px;background:var(--brand-soft);border-radius:50%;color:var(--brand);font-weight:700}.ed-tutorial-dialog li p{margin:0}.ed-tutorial-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:18px}.ed-guide-close{position:absolute;top:12px;right:12px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);width:36px;height:36px;font-size:22px;cursor:pointer}.tutorial-page{padding:42px 0 72px}.tutorial-intro{max-width:760px;margin-bottom:30px}.tutorial-intro h1{font-size:clamp(2rem,4vw,3.1rem);margin:10px 0 16px;line-height:1.1}.tutorial-intro p{color:var(--ink-3);line-height:1.7}.tutorial-start{padding:24px;background:var(--brand-soft);border:1px solid var(--line);border-radius:16px;margin-bottom:28px;display:flex;flex-wrap:wrap;align-items:center;gap:20px}.tutorial-start>div{flex:1;min-width:220px}.tutorial-start h2{font-size:1.3rem;margin:0 0 8px}.tutorial-start p{margin:0;color:var(--ink-3)}.tutorial-topics{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.tutorial-topics a{padding:10px 14px;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-size:13px;background:var(--surface)}.tutorial-lessons{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tutorial-lessons article{padding:clamp(20px,3vw,30px);border:1px solid var(--line);border-radius:16px;background:var(--surface);scroll-margin-top:95px;min-width:0}.tutorial-lessons h2{font-size:1.4rem;margin:8px 0 10px}.tutorial-lessons p{color:var(--ink-3)}.tutorial-lessons ol{padding-left:20px;line-height:1.75;font-size:14px}.tutorial-lessons li{padding-left:5px;margin:14px 0}.tutorial-lessons article>a{font-weight:650}.tutorial-language{font-size:13px;color:var(--ink-3)}@media(max-width:700px){.tutorial-lessons{grid-template-columns:1fr}.ed-learning-bar{padding:12px}.ed-learning-bar>div{flex-basis:100%}.ed-tutorial-dialog{padding:24px 18px}.ed-tutorial-dialog footer>a{font-size:12px}.ed-procedure-image img{height:170px}}@media print{.ed-learning-bar,.ed-media,.ed-tutorial-dialog{display:none!important}.ed-procedure-images{break-inside:avoid}.ed-procedure-image img{height:auto;max-height:300px;object-fit:contain!important}}

/* Separate routes stay distinct, even when they cross or enter the same step. */
.ed-flow-scale{max-width:none}.ed-flow-route{cursor:pointer;opacity:.72;transition:opacity .12s}.ed-flow-line{opacity:1;stroke-width:1.8;pointer-events:none}.ed-flow-bridge{fill:none;stroke:var(--paper);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.ed-flow-hit{fill:none;stroke:transparent;stroke-width:13;pointer-events:stroke}.ed-flow-route.is-return .ed-flow-line{stroke-dasharray:6 4}.ed-flow-route.is-related,.ed-flow-route:hover,.ed-flow-route:focus,.ed-flow-route.is-traced{opacity:1}.ed-flow-route.is-related .ed-flow-line,.ed-flow-route.is-traced .ed-flow-line{stroke-width:2.7}.ed-flow-svg.has-traced-route .ed-flow-route:not(.is-traced){opacity:.2}.ed-arrow-next,.ed-arrow-yes{fill:var(--brand)}.ed-arrow-no{fill:var(--coral)}.ed-flow-route-label rect{fill:var(--paper);stroke:var(--line);stroke-width:.7}.ed-flow-route-label text{fill:var(--brand);font-size:10px;font-weight:700;pointer-events:none}.ed-flow-route.no .ed-flow-route-label text{fill:var(--coral)}.ed-flow-route:focus{outline:none}.ed-flow-route:focus .ed-flow-route-label rect{stroke:var(--brand);stroke-width:2}.ed-flow-routing-note{margin:0;padding:8px 14px;border-bottom:1px solid var(--line);font-size:10px;color:var(--ink-3);background:var(--paper)}.ed-flow-route:focus .ed-flow-line{stroke-width:3}

/* Editor controls stay legible at the same scale as the instructions. */
.tutorial-lessons summary{position:relative;display:block;list-style:none;padding-right:28px}.tutorial-lessons summary::-webkit-details-marker{display:none}.tutorial-lessons summary::after{content:"+";position:absolute;right:0;top:0;font-size:24px;color:var(--brand)}.tutorial-lessons details[open]>summary::after{content:"−"}
.ed-button { min-height:40px; font-size:13px; }
.ed-field { font-size:13px; }
.ed-field input,.ed-field textarea,.ed-field select { font-size:14px; min-height:42px; }
.ed-kicker,.ed-outline-label,.ed-route-label { font-size:11px; }
.ed-inspector-heading p,.ed-disclosure p,.ed-workspace-foot { font-size:12px; }
.ed-view-tabs button { font-size:13px; min-height:40px; }
.ed-icon-button { width:40px; height:40px; cursor:pointer; }
.ed-add-actions .ed-button,.ed-step-tools .ed-button,.ed-block-library .ed-button { font-size:12px; min-height:40px; }
.ed-learning-bar span,.ed-media-heading span,.ed-media p,.ed-media small,.ed-image-options label,.ed-image-buttons .ed-button { font-size:13px; }
.ed-canvas-hint { font-size:12px; }
.ed-canvas-hint .ed-button { min-height:36px; font-size:12px; }
.ed-flow-routing-note { font-size:12px; }
.ed-image-options select { min-height:42px; font:inherit; }
.ed-page.is-editing .ed-learning-bar { padding:8px 14px; }
.ed-page.is-editing .ed-learning-bar>div>span { display:none; }
.ed-page.is-editing .ed-learning-bar strong { font-size:13px; }
.tutorial-page { padding-inline:20px; }
.tutorial-lessons { grid-template-columns:1fr; gap:12px; max-width:980px; }
.tutorial-lessons article { padding:20px 24px; }
.tutorial-lessons summary { cursor:pointer; }
.tutorial-lessons summary h2 { display:inline; font-size:1.35rem; }
.tutorial-lessons summary .eyebrow { display:block; font-size:12px; margin-bottom:8px; }
.tutorial-lessons summary p { margin-top:8px; font-size:15px; }
.tutorial-lessons ol { font-size:16px; }
.tutorial-lessons details>a { display:inline-block; margin-top:10px; font-weight:600; }
.tutorial-topics a { min-height:44px; display:inline-flex; align-items:center; }
@media(max-width:1050px) { .ed-mobile-tools .ed-button { min-height:44px; font-size:13px; } }
@media(max-width:700px) {
 .ed-library-actions .ed-button,.ed-workspace-head>.ed-primary { font-size:13px; }
 .ed-view-tabs button { font-size:12px; min-height:44px; }
 .ed-button,.ed-add-actions .ed-button,.ed-step-tools .ed-button,.ed-icon-button,.ed-media-handle { min-height:44px; }
 .ed-field input,.ed-field select,.ed-field textarea,.ed-image-options select { font-size:16px; min-height:44px; }
 .ed-doc-step p { font-size:14px; }
 .ed-learning-bar>div { min-width:0; }
 .ed-page.is-editing .ed-learning-bar>div { display:none; }
 .ed-learning-bar span { font-size:14px; }
 .ed-workspace-foot { font-size:12px; }
 .ed-canvas-hint { flex-wrap:wrap; }
 .ed-mobile-tools { flex-wrap:wrap; }
 .ed-tutorial-dialog footer { flex-wrap:wrap; }
 .tutorial-lessons article { padding:18px; }
 .tutorial-start>div { min-width:0; }
}

