/* Workspace only: the deployed compact homepage remains unchanged before upload. */
.document-workspace .workspace-heading {display:none}
.document-workspace .upload-card {padding:20px 24px}
.document-workspace .hero-grid {max-width:1240px}
.document-workspace .wf-workspace {margin:0;padding:0;border:0;background:transparent}
.wf-steps ol {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0 0 16px;gap:10px}
.wf-step {display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;width:100%;padding:10px 12px;background:#f4f6ee;border:1px solid #dce5d3;border-radius:9px;font-size:14px;font-weight:600}
.wf-step[aria-current=step] {background:#154e3a;color:#fff;border-color:#154e3a}
.wf-step-number {display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e4ebda;color:#154e3a;font-size:12px}
.wf-step:disabled:not([aria-current=step]) {opacity:.6}
.wf-progress {display:flex;gap:12px;align-items:center;padding:12px 16px;background:#f0f4e9;border:1px solid #dce5d3;border-radius:9px;min-height:72px;margin-bottom:16px}
.wf-progress strong {font-size:15px;line-height:1.4}
.wf-progress p {font-size:13px;line-height:1.5;margin:3px 0 0;color:#52664e}
.wf-progress.is-error {background:#fff7e8;border-color:#d9bb80}
.wf-spinner {display:block;flex:none;width:20px;height:20px;border:2px solid #a5ba96;border-top-color:#154e3a;border-radius:50%}
.wf-progress.is-working .wf-spinner {animation:wf-spin 1.2s linear infinite}
@keyframes wf-spin {to{transform:rotate(360deg)}}
.wf-step-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:16px 0}
.wf-kicker {font-size:11px;font-weight:650;letter-spacing:1px;color:#58744d;margin:0 0 5px}
.wf-step-heading h2 {font-size:26px;letter-spacing:-.6px;margin:0 0 5px;line-height:1.25}
#wf-next {font-size:14px;line-height:1.5;margin:0;color:#5d7057}
#saved-document.wf-workspace .document-filebar {padding:10px 0;margin:0;border-bottom:1px solid #e1e7da;align-items:center}
#saved-document.wf-workspace #saved-details,#saved-document.wf-workspace .saved-heading {display:none}
#saved-document.wf-workspace #saved-name {font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.wf-document-menu {position:relative;font-size:13px;flex:none}
.wf-document-menu summary {cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 12px;border:1px solid #d7e0cd;border-radius:8px}
.wf-document-menu[open] .sft-file-actions {position:absolute;right:0;top:48px;z-index:8;background:#fff;padding:12px;border:1px solid #d7e0cd;box-shadow:0 5px 20px #142c2220;min-width:210px}
#saved-document.wf-workspace .sft-document-options {margin-top:12px}
#saved-document.wf-workspace .sft-document-options legend {font-size:16px}
#saved-document.wf-workspace .sft-document-options small {font-size:13px;line-height:1.5}
.wf-workspace #extraction-status-panel,.wf-workspace #composition-progress,.wf-workspace #preview-status,.wf-workspace .workspace-template-controls .chosen-template button,.wf-workspace .preview-payment-note {display:none!important}
.wf-workspace:not([data-wf-step="1"]) #wf-reading,.wf-workspace:not([data-wf-step="2"]) #wf-design,.wf-workspace:not([data-wf-step="3"]) #wf-review,.wf-workspace:not([data-wf-step="4"]) #sft-purchase {display:none!important}
.wf-workspace #wf-design[hidden],.wf-workspace #wf-review[hidden] {display:none!important}
.document-workspace .sample-row,.document-workspace+.benefit-strip {display:none}
.wf-gallery {display:block;position:static;max-width:none;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;box-shadow:none;max-height:none;overflow:visible}
.wf-gallery .template-dialog-head {position:static;padding:0;background:transparent;border:0}
.wf-gallery .template-dialog-title {display:none}
.wf-gallery .template-filters {display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px}
.wf-gallery .template-filter {min-height:42px;font-size:13px;padding:8px 12px;border:1px solid #d4dfc9;background:#fff;border-radius:8px;white-space:normal}
.wf-gallery .template-filter[aria-pressed=true] {background:#e4edda;color:#154e3a;border-color:#79976b}
.wf-gallery .template-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:0}
.wf-gallery .template-card {border:1px solid #dce5d3;border-radius:12px;overflow:hidden;background:#fff;min-width:0;box-shadow:none}
.wf-gallery .template-card.is-selected {border:2px solid #154e3a;background:#f7faf2}
.wf-gallery .template-thumbnail {position:relative;aspect-ratio:210/220;height:auto;padding:12px;overflow:hidden;background:#edf0e6}
.wf-gallery .template-thumbnail img {display:block;width:100%;height:auto;object-fit:contain;object-position:top;filter:none;box-shadow:0 2px 8px #18342212}
.wf-gallery .template-selected-badge {position:absolute;right:8px;top:8px;background:#154e3a;color:white;font-size:12px;padding:4px 8px;border-radius:6px}
.wf-gallery .template-card-body {padding:14px}
.wf-gallery .template-card-body small {font-size:11px;line-height:1.4;color:#58744d}
.wf-gallery .template-card-body h3 {font-size:19px;margin:6px 0}
.wf-gallery .template-card-body p {font-size:13px;line-height:1.5;margin:0 0 10px;color:#5d7057}
.wf-gallery .template-card-body button {min-height:42px;font-size:13px;width:100%;margin-top:6px;padding:9px 10px;border-radius:7px;border:1px solid #d1ddc4;background:#fff;color:#154e3a}
.wf-gallery .template-card.is-selected .template-card-body button:first-of-type {border-color:#154e3a;color:#154e3a;background:#fff}
.wf-gallery .wf-sample-button {background:transparent!important;border-color:transparent!important;text-decoration:underline;text-underline-offset:3px}
.wf-gallery .template-dialog-foot {font-size:12px;padding:12px 0;background:transparent}
.document-workspace .workspace-template-controls {display:flex;align-items:center;gap:18px;margin:20px 0;padding:16px;background:#f0f4e9;border:1px solid #dbe4cf;border-radius:9px;flex-wrap:wrap}
.document-workspace .workspace-template-controls .chosen-template {display:flex;flex:1;padding:0;border:0;background:none;min-width:170px}
.document-workspace #selected-template-description {display:none}
.document-workspace #generate-preview {width:auto;margin:0;min-height:46px;white-space:normal}
.wf-action-note {font-size:13px;line-height:1.5;margin:10px 0;color:#5d7057}
.workspace-template-controls .wf-action-note {flex-basis:100%;margin:0}
.wf-amounts {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 24px;margin:14px 0;font-size:15px;line-height:1.5}
.wf-amounts dt {color:#52664e}
.wf-amounts dd {margin:0;font-weight:650;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.wf-workspace #extraction-quote {margin:16px 0;padding:18px 20px;border-radius:10px}
.wf-workspace .sft-limit-detail {font-size:13px;line-height:1.65}
.wf-workspace #text-review summary {font-size:14px;min-height:44px;cursor:pointer}
.wf-workspace #text-review>p {font-size:13px;line-height:1.6}
.wf-workspace .sft-text-tools {display:none}
.wf-workspace #real-preview {padding:0;border:0;margin:12px 0}
.wf-workspace .sft-viewer-toolbar {position:static;padding:10px;gap:8px;flex-wrap:wrap}
.wf-workspace .sft-viewer-toolbar button {min-height:40px;font-size:13px}
.wf-workspace [data-view=delete],.wf-workspace .sft-viewer-heading,.wf-workspace .sft-viewer-help {display:none}
.wf-workspace .sft-viewer-layout {height:clamp(280px,36vh,500px);min-height:280px}
.wf-workspace .sft-viewer-stage {height:100%;min-height:0}
.wf-workspace #wf-to-download {min-height:46px;margin-top:14px}
.wf-workspace .sft-purchase {background:#fff;border:1px solid #d7e2cd;padding:20px;margin:12px 0}
.wf-workspace .sft-consent {font-size:14px;line-height:1.7}
.wf-workspace .sft-consent input {width:18px;height:18px;margin-top:4px}
.wf-workspace .wf-entitlement {font-size:14px;line-height:1.6}
.wf-input-disclosure {font-size:13px;line-height:1.6;color:#52664e;margin:12px 0}
.wf-sample-dialog {width:min(1000px,96vw);max-height:94vh;padding:0;border:1px solid #cbd8bf;border-radius:14px;color:#233a31;background:#f8f8f2}
.wf-sample-dialog::backdrop {background:#122b2299}
.wf-sample-dialog header {display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:16px;background:#fff;border-bottom:1px solid #dce5d3}
.wf-sample-dialog h2 {font-size:24px;margin:0}
.wf-sample-dialog header button {font-size:26px;min-width:44px;min-height:44px;background:#eef3e8;border-radius:8px}
.wf-sample-tools {display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;background:#eef3e8}
.wf-sample-tools button {min-height:40px;padding:8px 12px;border-radius:7px;background:#fff;border:1px solid #cbd8bf}
.wf-sample-pages {max-height:70vh;overflow:auto;padding:20px}
.wf-sample-pages figure {margin:0 auto 24px;max-width:850px}
.wf-sample-pages img {display:block;width:100%;height:auto;margin:auto;max-width:none}
.wf-sample-pages details {max-width:850px;margin:10px auto}
@media(max-width:1000px){.wf-gallery .template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .document-workspace .hero-grid{width:calc(100% - 24px)}
 .document-workspace .upload-card{padding:14px}
 .wf-steps ol{gap:5px;margin-bottom:12px}
 .wf-step{flex-direction:column;gap:5px;padding:8px 2px;font-size:12px;line-height:1.3;min-height:65px}
 .wf-progress{padding:10px;min-height:80px}
 .wf-progress strong{font-size:14px}.wf-progress p{font-size:12px}
 .wf-step-heading h2{font-size:23px}.wf-step-heading{gap:10px}
 .wf-gallery .template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .wf-gallery .template-card-body{padding:10px}.wf-gallery .template-card-body p{display:none}
 .wf-gallery .template-thumbnail{padding:7px}.wf-gallery .template-card-body h3{font-size:17px}
 .wf-gallery .template-filter{font-size:12px;padding:8px}
 .document-workspace .workspace-template-controls{flex-direction:column;align-items:stretch;padding:12px}
 .document-workspace .workspace-template-controls .chosen-template{min-width:0}
 .document-workspace #generate-preview{width:100%}
 .wf-amounts{font-size:14px;gap:10px 12px}
 .wf-workspace .sft-purchase{padding:14px}
 .wf-workspace .sft-viewer-layout{height:50vh;min-height:280px}
 .wf-workspace .sft-viewer-toolbar{gap:8px;padding:8px}
 .wf-document-menu[open] .sft-file-actions{min-width:180px}
 .wf-sample-pages{padding:10px}
}
@media(prefers-reduced-motion:reduce){.wf-progress.is-working .wf-spinner{animation:none}html{scroll-behavior:auto}.wf-workspace *{scroll-behavior:auto!important}}

.document-workspace .sft-wallet-strip{display:none}
#saved-document.wf-workspace .document-filebar{padding:8px 0;margin:0;border:0;border-bottom:1px solid #e1e7da;box-shadow:none;border-radius:0;background:none;flex-direction:row}
#saved-document.wf-workspace #saved-name{font-size:14px;margin:0;line-height:1.5}
.wf-design-chip{display:block;font-size:12px;color:#58744d;margin-top:3px}
.wf-options summary{font-size:14px;min-height:40px;cursor:pointer;padding:8px 0;color:#52664e}
.wf-workspace[data-wf-step="3"] #wf-next{display:none}
body:has(.document-workspace) main>.benefit-strip,body:has(.document-workspace) main>.comparison-section,body:has(.document-workspace) main>.how-section,body:has(.document-workspace) main>.tools-section{display:none}

body:has(.document-workspace) .preview-payment-note,body:has(.document-workspace) main>.bottom-cta{display:none}
.wf-step:focus-visible,.workspace-secondary:focus-visible,.wf-sample-button:focus-visible{outline:3px solid #b47c45;outline-offset:3px}
/* Override the retired modal's ID-level sizing: inline gallery uses page flow. */
#template-dialog.wf-gallery{width:100%;max-width:none;max-height:none;overflow:visible;border:0;border-radius:0;background:none;padding:0;margin:0}
.wf-gallery .template-thumbnail img{max-width:none}
/* Review refinement: keep the user's task above repeated workspace chrome. */
body:has(.document-workspace) .header-cta{display:none}
.document-workspace .upload-card{padding:14px 20px}
.wf-steps ol{gap:8px;margin:0 0 8px}
.wf-step{min-height:38px;padding:6px 10px;font-size:13px}
.wf-step-number{width:21px;height:21px}
.wf-progress{min-height:0;padding:8px 12px;margin-bottom:4px;gap:9px}
.wf-progress>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 9px}
.wf-progress strong{font-size:14px}.wf-progress p{margin:0;font-size:13px}
.wf-spinner{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:0;border-radius:50%;font-weight:750;font-size:15px;line-height:1;color:#154e3a}
.wf-progress.is-working .wf-spinner{border:2px solid #a5ba96;border-top-color:#154e3a}
.wf-progress[data-state=error] .wf-spinner{color:#8a491c;background:#f7dfb4}
.wf-progress[data-state=complete] .wf-spinner{background:#dce9d0}
#saved-document.wf-workspace .document-filebar{padding:6px 0;gap:12px;flex-wrap:wrap}
#saved-document.wf-workspace .filebar-info{display:flex;align-items:baseline;gap:5px 14px;flex:1;min-width:0;flex-wrap:wrap}
#saved-document.wf-workspace #saved-name{font-size:13px;max-width:52ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-design-chip{display:inline;font-size:12px;margin:0}
.wf-account-bar{display:flex;gap:12px;font-size:12px;align-items:center;flex-wrap:wrap}
.wf-account-bar a{text-decoration:underline;text-underline-offset:3px;min-height:36px;display:inline-flex;align-items:center}
.wf-balance{white-space:nowrap;color:#52664e}
.wf-document-menu summary{min-height:36px;padding:6px 9px;font-size:12px}
.wf-step-heading{margin:8px 0;align-items:center;gap:8px}
.wf-step-heading h2{font-size:23px;margin:0;line-height:1.3}
#wf-kicker,#wf-next{display:none}
#wf-back{min-height:36px;padding:6px 12px}
.document-workspace .workspace-template-controls{margin:8px 0 10px;padding:0;border:0;background:none;gap:8px 14px;align-items:center}
.document-workspace .workspace-template-controls .chosen-template{display:none}
.workspace-template-controls .wf-action-note{flex:1;margin:0;font-size:13px;line-height:1.45}
.document-workspace #generate-preview{min-height:42px;padding:10px 17px}
.wf-gallery .template-filters{gap:6px;margin:0 0 10px}
.wf-gallery .template-filter{min-height:36px;padding:6px 10px;font-size:12px}
.wf-category-select{display:none}
.wf-gallery .template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wf-gallery .template-thumbnail{aspect-ratio:auto;height:300px;padding:14px 20px}
.wf-gallery .template-card-body{padding:10px 14px}
.wf-gallery .template-card-body small{display:none}
.wf-gallery .template-card-body h3{margin:0 0 4px;font-size:20px}
.wf-gallery .template-card-body p{display:block;font-size:13px;line-height:1.45;margin:0 0 7px;flex:none}
.wf-gallery .template-card-body button{min-height:42px;margin:4px 0 0}
.wf-gallery .template-card.is-selected{box-shadow:0 0 0 2px #154e3a}
.wf-gallery .template-card.is-selected .template-card-body button:first-of-type{background:#154e3a;color:#fff}
.wf-workspace #text-review{margin:4px 0 8px;padding:0 10px}
.wf-workspace #text-review summary{min-height:36px;padding:6px 0}
.wf-workspace #sft-preview-review,.wf-workspace #ai-review-notice{padding:8px 12px!important;margin:4px 0 8px!important}
.wf-workspace .sft-viewer-layout{height:60vh;min-height:330px}
.wf-workspace .sft-purchase{margin:6px 0;padding:14px 18px}
.wf-amounts{gap:6px 18px;margin:8px 0;font-size:14px}
.wf-workspace .wf-entitlement{margin:10px 0;font-size:13px;line-height:1.5}
@media(max-width:700px){
 .document-workspace .upload-card{padding:10px 12px}
 .wf-step{min-height:38px;flex-direction:row;gap:4px;padding:6px 2px;font-size:12px}
 .wf-step-number{display:none}
 .wf-steps ol{gap:4px;margin-bottom:6px}
 .wf-progress{padding:7px 9px}
 .wf-progress>div{display:block}.wf-progress strong{font-size:13px}.wf-progress p{font-size:12px;line-height:1.4}
 #saved-document.wf-workspace .document-filebar{gap:2px 8px}
 #saved-document.wf-workspace .filebar-info{flex-basis:65%;gap:2px 8px}
 #saved-document.wf-workspace #saved-name{max-width:100%;white-space:normal;font-size:12px}
 .wf-document-menu summary{font-size:11px;padding:5px 7px;min-height:36px}
 .wf-account-bar{width:100%;justify-content:space-between;gap:4px;font-size:12px}
 .wf-account-bar a{min-height:30px}
 .wf-step-heading{margin:6px 0}.wf-step-heading h2{font-size:21px}
 .document-workspace .workspace-template-controls{flex-direction:row;flex-wrap:wrap;margin:6px 0 8px;gap:5px}
 .document-workspace #generate-preview{width:auto;min-height:42px}
 .workspace-template-controls .wf-action-note{flex-basis:100%;font-size:12px;line-height:1.4}
 .wf-gallery .template-filters{display:none}
 .wf-category-select{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:10px}
 .wf-category-select select{flex:1;min-width:0;width:100%;max-width:100%;min-height:40px;border:1px solid #c7d5bf;border-radius:7px;background:#fff;padding:7px;font:inherit;color:#233a31}
 .wf-gallery .template-grid{grid-template-columns:1fr;gap:14px}
 .wf-gallery .template-thumbnail{height:260px;padding:12px 24px}
 .wf-gallery .template-card-body{padding:10px 12px;display:grid;grid-template-columns:1fr 1fr;gap:4px 8px}
 .wf-gallery .template-card-body h3,.wf-gallery .template-card-body p{grid-column:1/-1}
 .wf-gallery .template-card-body p{font-size:13px;margin:0}
 .wf-workspace .sft-viewer-layout{height:65vh;min-height:300px}
 .wf-workspace .sft-viewer-toolbar{padding:6px;gap:5px}
 .wf-workspace .sft-purchase{padding:12px}
 .wf-amounts{font-size:13px;gap:8px}
 .wf-workspace .sft-consent{font-size:14px}
}
@media(max-width:700px){
 #saved-document.wf-workspace .document-filebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
 #saved-document.wf-workspace .filebar-info{display:block;min-width:0;width:auto}
 #saved-document.wf-workspace .wf-design-chip{display:block}
 .wf-account-bar{grid-column:1/-1;min-width:0}
 .document-workspace .workspace-template-controls .wf-action-note{flex:1;flex-basis:0;min-width:105px}
}

.wf-sample-label{display:inline-flex;align-items:center;min-height:36px;font-size:12px;color:#52664e;margin-right:4px}

/* Initial processing authorisation: scoped to the document workspace. */
.wf-options{margin:4px 0 10px}.wf-options>summary{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:15px;font-weight:650;cursor:pointer}.wf-change{font-size:13px;text-decoration:underline;font-weight:400;color:#315e4b}
.wf-workspace .sft-document-options{margin:0;padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.wf-workspace .sft-document-options legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wf-workspace .sft-document-options label{margin:0;padding:12px;display:flex;align-items:flex-start;gap:10px;border:1px solid #c6d2c2;border-radius:9px;background:#fff}.wf-workspace .sft-document-options label:has(input:checked){border:2px solid #225b42;padding:11px;background:#f2f7ee}.wf-workspace .sft-document-options input{margin-top:4px;flex-shrink:0}.wf-workspace .sft-document-options strong{font-size:16px}.wf-workspace .sft-document-options small{display:block;font-size:13px;line-height:1.5;margin-top:5px}
.wf-workspace #extraction-quote{margin:8px 0;padding:16px 18px}.wf-workspace #extraction-quote h2{font-size:21px;margin:4px 0 10px}.wf-workspace #extraction-quote p{font-size:13px;line-height:1.5;margin:8px 0}.wf-workspace #extraction-quote .wf-charge-now{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin:8px 0 12px;font-size:15px}.wf-charge-now strong{font-size:25px;white-space:nowrap}.wf-workspace #extraction-quote .sft-limit-label{font-size:11px}
.wf-credit-secondary{background:transparent!important;color:#315e4b!important;box-shadow:none!important;border:0!important;text-decoration:underline;padding:8px!important}.wf-credit-warning{font-weight:650;color:#79441e}.wf-workspace #accept-extraction{white-space:normal;line-height:1.4}.wf-workspace .saved-next{font-size:13px;margin:6px 0}
@media(max-width:700px){.wf-workspace .sft-document-options{grid-template-columns:1fr}.wf-workspace #extraction-quote{padding:12px}.wf-workspace #extraction-quote .sft-limit-actions{display:flex;flex-direction:column;align-items:stretch}.wf-workspace #extraction-quote .wf-charge-now{font-size:14px}.wf-charge-now strong{font-size:23px}.wf-options>summary{font-size:14px}}

.wf-workspace #extraction-quote .wf-charge-now{max-width:none;width:100%}

/* Focused task surface: compact authorisation, gallery first, collapsed text. */
.wf-workspace #extraction-quote{padding:12px 16px;max-width:780px;margin:6px 0}
.wf-workspace #extraction-quote .sft-limit-label{display:none}
.wf-workspace #extraction-quote h2{font-size:18px;margin:0 0 8px}
.wf-workspace #extraction-quote .wf-charge-now{font-size:14px;margin:6px 0;line-height:1.5}
.wf-workspace #extraction-quote .wf-charge-now strong{font-size:19px}
.wf-workspace #extraction-quote .wf-amounts{margin:6px 0;gap:5px 14px;font-size:14px}
.wf-workspace #extraction-quote p{max-width:none;font-size:13px;line-height:1.45;margin:7px 0}
.wf-price-details{font-size:13px;margin-top:8px}.wf-price-details summary{cursor:pointer;min-height:34px;display:flex;align-items:center;text-decoration:underline;color:#315e4b}
.wf-workspace #extraction-quote .sft-limit-actions{margin:8px 0 0;gap:10px}
.wf-workspace #extraction-quote .sft-limit-actions .button{min-height:42px;padding:9px 14px;font-size:13px}
.wf-workspace .wf-design-chip{display:none!important}
.wf-workspace .wf-step-heading{margin:8px 0}
.wf-gallery .template-dialog-head{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.wf-gallery .template-filters{margin:0 0 4px;order:0}
.wf-gallery .workspace-template-controls{order:2;display:flex;gap:8px 12px;margin:4px 0 8px;padding:8px 10px;border:1px solid #dce5d3;background:#f6f8f1;border-radius:8px}
.wf-content-tools{order:1;min-width:0}
.wf-workspace #text-review{padding:0;margin:0;font-size:13px}
.wf-workspace #text-review summary{padding:4px 0;min-height:30px;font-size:13px;color:#315e4b}
.wf-active-design{font-size:14px;font-weight:650;flex:1}
.workspace-template-controls .wf-action-note{font-size:12px;flex-basis:100%;margin:0}
.wf-design-summary{display:flex;gap:12px;align-items:center;padding:6px 0;margin:0 0 8px;border-bottom:1px solid #e1e7da;font-size:14px}
.wf-design-summary[hidden]{display:none!important}.wf-design-summary img{width:34px;height:46px;object-fit:cover;object-position:top;border:1px solid #d7e0cd}.wf-design-summary strong{flex:1}.wf-design-summary button{min-height:36px;padding:6px 10px;font-size:13px}
.wf-content-warnings p{font-size:13px;line-height:1.5;margin:5px 0;color:#72501d}.wf-content-warnings[hidden]{display:none}
@media(min-width:701px){.wf-account-bar>a{display:none}.wf-account-bar{width:auto}.wf-gallery .workspace-template-controls .wf-action-note{flex-basis:auto;flex:1;max-width:300px}}
@media(max-width:700px){
 .wf-workspace #extraction-quote{padding:11px 12px}.wf-workspace #extraction-quote .wf-amounts{font-size:13px}.wf-workspace #extraction-quote .wf-charge-now{font-size:13px}.wf-workspace #extraction-quote .wf-charge-now strong{font-size:18px}
 .wf-gallery .wf-category-select{order:0;margin:0 0 4px}.wf-content-tools{order:1}.wf-gallery .workspace-template-controls{order:2;gap:5px 8px;padding:6px 8px;margin:2px 0 8px}.wf-active-design{font-size:13px}
 .document-workspace .wf-gallery #generate-preview{min-height:38px;padding:8px 10px;font-size:13px}.wf-gallery .workspace-template-controls .wf-action-note{flex-basis:100%;font-size:12px}.wf-gallery .template-thumbnail{height:280px}
}
/* The compact selected-design row owns this action; full-screen keeps its own. */
.wf-workspace #real-preview [data-view=template]{display:none}
.wf-gallery .template-dialog-foot{display:none}

/* A main task canvas and one compact, non-sticky action area. */
.wf-workspace #extraction-quote{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:4px 24px;max-width:none;padding:18px 20px}
.wf-workspace #extraction-quote[hidden]{display:none!important}
.wf-workspace #extraction-quote h2{grid-column:1;font-size:15px;margin:0 0 6px}
.wf-workspace #extraction-quote-description,.wf-workspace #extraction-quote-balance,.wf-workspace #wf-processing-disclosure,.wf-workspace #wf-price-details{grid-column:1}
.wf-workspace #extraction-quote .wf-charge-now{font-size:15px}.wf-workspace #extraction-quote .wf-charge-now strong{font-size:26px}
.wf-workspace #extraction-quote .sft-limit-actions{grid-column:2;grid-row:1/7;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;margin:0;padding-left:20px;border-left:1px solid #d7e0cd}
.wf-workspace #extraction-quote #wf-authorise-note{font-size:14px;line-height:1.5;margin:0 0 2px}
.wf-workspace #extraction-quote .sft-limit-actions .button{font-size:15px;min-height:44px}
#wf-design{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:12px 20px;align-items:start}
.wf-content-tools{grid-column:1/-1;min-width:0}.wf-workspace #text-review summary{font-size:14px;font-weight:400;background:none;border:0;min-height:32px}
.wf-workspace #text-review{border:0;background:transparent}
#wf-design>.wf-content-tools{grid-row:1}
#wf-design>.wf-gallery{grid-column:1;grid-row:2;min-width:0}
.document-workspace #wf-design>.workspace-template-controls{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:stretch;margin:0;padding:16px;border:1px solid #d7e0cd;border-radius:10px;background:#f3f6ed;gap:14px}
#wf-design .wf-active-design{flex:none;font-size:16px;line-height:1.4}
#wf-design .workspace-template-controls .wf-action-note{flex:none;max-width:none;font-size:14px;line-height:1.5}
.document-workspace #wf-design #generate-preview{width:100%;font-size:15px;min-height:44px}
.wf-gallery .template-filters{display:none}.wf-gallery .wf-category-select{display:flex;font-size:14px;gap:12px;align-items:center;margin:0 0 12px}
.wf-category-select select{width:auto;max-width:100%;min-width:0;flex:1;padding:9px;border:1px solid #c7d5bf;border-radius:7px;background:#fff;font:inherit;color:#233a31;min-height:42px}
.wf-gallery .template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.wf-gallery .template-card{display:flex;flex-direction:column}
.wf-gallery .template-card-body{order:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:14px}
.wf-gallery .template-card-body small{display:block;grid-column:1;font-size:13px;color:#52664e;line-height:1.4}
.wf-gallery .template-card-body h3{grid-column:1;grid-row:1;font-size:21px;margin:0}
.wf-gallery .template-card-body p{display:none}
.wf-gallery .template-card-body button:first-of-type{grid-column:2;grid-row:1/3;width:auto;font-size:14px;padding:8px 10px;margin:0;min-height:44px}
.wf-gallery .template-card-body .wf-sample-button{grid-column:1/-1;width:auto;justify-self:start;margin:0;padding:4px 0;min-height:32px;font-size:14px}
.wf-gallery .template-thumbnail{order:1;height:350px;padding:14px 24px}
.wf-gallery .template-selected-badge{display:none!important}
#wf-review{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:10px 20px;align-items:start}
#wf-review>#text-review,#wf-review>#sft-preview-review,#wf-review>#sft-invoice-check,#wf-review>#ai-review-notice{grid-column:1/-1}
#wf-review>#real-preview{grid-column:1;margin:0;min-width:0}
.wf-review-actions{grid-column:2;display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #d7e0cd;border-radius:10px;background:#f3f6ed}
.wf-review-actions p{font-size:14px;line-height:1.5;margin:0}.wf-review-actions #wf-to-download{margin:0;width:100%;font-size:15px;min-height:44px}
.wf-viewer-identity{display:flex;align-items:center;gap:8px;margin-right:auto}.wf-viewer-identity strong{font-size:15px}
.wf-workspace #real-preview .wf-viewer-identity [data-view=template]{display:inline-flex}
.wf-workspace .sft-viewer-toolbar{gap:8px;padding:8px}
.wf-workspace .sft-viewer-layout{height:65vh;min-height:360px}
.wf-workspace #sft-purchase:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:10px 24px;align-items:start;padding:18px 20px}
.wf-workspace #sft-purchase>*{grid-column:1}.wf-workspace #sft-purchase .sft-purchase-controls{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px;border:1px solid #d7e0cd;border-radius:10px;background:#f3f6ed}
.wf-workspace #sft-purchase .sft-purchase-controls .button{width:100%;font-size:15px;white-space:normal}
@media(max-width:850px){
 .wf-workspace #extraction-quote{grid-template-columns:1fr;padding:14px}.wf-workspace #extraction-quote .sft-limit-actions{grid-column:1;grid-row:auto;border:0;border-top:1px solid #d7e0cd;padding:12px 0 0}
 #wf-design{grid-template-columns:1fr;gap:8px}#wf-design>.wf-content-tools{grid-row:1}#wf-design>.wf-gallery{grid-column:1;grid-row:3}
 .document-workspace #wf-design>.workspace-template-controls{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px}
 #wf-design .workspace-template-controls .wf-action-note{grid-column:1/-1;font-size:14px}#wf-design .wf-active-design{font-size:15px}#wf-design #generate-preview{grid-column:2;grid-row:1}
 .wf-gallery .template-grid{grid-template-columns:1fr}.wf-gallery .template-thumbnail{height:300px}.wf-gallery .template-card-body{padding:12px}
 #wf-review{grid-template-columns:1fr}.wf-review-actions{grid-column:1;grid-row:auto;padding:12px}#wf-review>#real-preview{grid-column:1}.wf-workspace .sft-viewer-layout{height:62vh;min-height:340px}
 .wf-workspace #sft-purchase:not([hidden]){grid-template-columns:1fr;padding:14px}.wf-workspace #sft-purchase .sft-purchase-controls{grid-column:1;grid-row:auto}
}

.wf-gallery .template-card.is-selected .template-card-body button:first-of-type{background:#e8f0e1;color:#154e3a;border-color:#59815d}
.wf-workspace #real-preview [data-view=fullscreen]{font-size:23px;min-width:44px;min-height:40px;padding:4px 10px}
@media(max-width:850px){
 .wf-workspace #real-preview .sft-viewer-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px}
 .wf-workspace #real-preview .wf-viewer-identity{grid-column:1;grid-row:1;margin:0;gap:6px}
 .wf-workspace #real-preview .sft-viewer-actions{grid-column:2;grid-row:1;display:flex}
 .wf-workspace #real-preview .sft-viewer-nav{grid-column:1/-1;grid-row:2}
 .wf-workspace #real-preview .sft-viewer-zoom{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;gap:5px}
}

/* Sample viewing is separate from selection and document processing. */
.wf-gallery .template-thumbnail img[role=button]{cursor:zoom-in}.wf-gallery .template-thumbnail img[role=button]:focus-visible{outline:3px solid #b58149;outline-offset:4px}
html.wf-sample-open{overflow:hidden}
.wf-sample-dialog[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:min(92vh,1050px);max-height:94vh;overflow:hidden}
.wf-sample-dialog header{padding:14px 18px;align-items:flex-start}.wf-sample-dialog header h2{font-size:25px}.wf-sample-dialog header p{margin:4px 0;font-size:14px;line-height:1.45}.wf-sample-dialog header button{font-size:15px;padding:8px 13px;flex:none;min-height:44px}
.wf-sample-dialog .wf-sample-tools{padding:8px;gap:10px}.wf-sample-dialog .wf-sample-pages{max-height:none;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}
.wf-sample-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 18px;background:#fff;border-top:1px solid #d7e0cd}.wf-sample-dialog footer p{font-size:14px;line-height:1.4;margin:0}.wf-sample-dialog footer button{min-height:44px;white-space:nowrap;font-size:15px}
@media(max-width:850px){
 #wf-design>.wf-gallery{grid-row:2}.document-workspace #wf-design>.workspace-template-controls{grid-row:3}
 .wf-sample-dialog[open]{width:100%;max-width:100%;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0}
 .wf-sample-dialog header{padding:12px}.wf-sample-dialog header h2{font-size:23px}.wf-sample-dialog footer{padding:10px 12px;flex-wrap:wrap;gap:8px}.wf-sample-dialog footer p{font-size:13px}.wf-sample-dialog footer button{width:100%}
}
/* One persistent, backend-driven progress surface below the step navigation. */
.wf-progress{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px 12px;align-items:center}
.wf-progress .wf-indeterminate{grid-column:1/-1;width:100%;height:6px;border-radius:4px;overflow:hidden;background:#ffffff55;margin-top:6px}
.wf-progress .wf-indeterminate[hidden]{display:none!important}.wf-indeterminate span{display:block;width:35%;height:100%;background:#c6e7d4;border-radius:4px;animation:wf-travel 1.6s ease-in-out infinite}
.wf-progress.is-working{background:#154e3a;border-color:#154e3a;color:#fff;padding:14px 16px;box-shadow:0 3px 10px #154e3a18}
.wf-progress.is-working strong{color:#fff;font-size:16px}.wf-progress.is-working p{color:#f0f6ee;font-size:14px;line-height:1.5}
.wf-progress.is-working .wf-spinner{border-color:#ffffff77;border-top-color:#fff;background:transparent}
.wf-progress[data-state=delayed]{background:#324d45;border-color:#324d45}.wf-progress[data-state=reconnecting]{background:#254b5c;border-color:#254b5c}
.wf-progress.is-error{background:#fff0df;border-color:#ae7333;color:#633c15}.wf-progress.is-error strong,.wf-progress.is-error p{color:#633c15}
@keyframes wf-travel{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}
@media(prefers-reduced-motion:reduce){.wf-progress.is-working .wf-spinner,.wf-indeterminate span{animation:none!important}.wf-indeterminate span{width:35%;margin:auto;background:repeating-linear-gradient(110deg,#c6e7d4 0,#c6e7d4 10px,#8bb9a0 10px,#8bb9a0 20px)}}

@media(max-width:850px){.document-workspace .wf-gallery .template-grid>.workspace-template-controls{order:0;grid-column:1;grid-row:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px;margin:0;border:1px solid #d7e0cd;border-radius:10px;background:#f3f6ed;align-items:center}.wf-gallery .template-grid>.workspace-template-controls .wf-action-note{grid-column:1/-1}}

.wf-sample-dialog :focus-visible{outline:3px solid #b58149;outline-offset:3px}

/* Renderer-led design showroom: compact footers, actual sample pages. */
#wf-design{grid-template-columns:minmax(0,1fr) 236px;gap:18px}
.wf-gallery .template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.wf-gallery .template-card{overflow:hidden;border:1px solid #d7ded3;border-radius:9px;background:#fff;box-shadow:0 2px 8px #243e3010}
.wf-gallery .template-card.is-selected{border:2px solid #285744;box-shadow:0 0 0 1px #28574415}
.wf-gallery .template-thumbnail{order:0;height:auto;aspect-ratio:210/260;padding:15px 16px;background:#eeeee7;position:relative;overflow:hidden}
.wf-gallery .template-thumbnail img{width:100%;height:100%;object-fit:cover;object-position:top;box-shadow:0 2px 6px #23352c22}
.wf-gallery .template-selected-badge:not([hidden]){display:grid!important;place-items:center;position:absolute;right:8px;top:8px;width:25px;height:25px;border-radius:50%;background:#285744;color:white;font-size:15px}
.wf-gallery .template-card-body{order:1;padding:11px;gap:3px 6px;grid-template-columns:minmax(0,1fr)}
.wf-gallery .template-card-body h3{font-size:20px;grid-row:1}
.wf-gallery .template-card-body small{font-size:13px;grid-row:2}
.wf-gallery .template-card-body button:first-of-type{display:none}
.wf-gallery .template-card-body .wf-sample-button{grid-row:3;grid-column:1;padding:3px 0;min-height:36px;font-size:14px;color:#285744}
#wf-selection-pricing{font-size:14px;line-height:1.5}#wf-selection-pricing p{font-size:13px;margin:9px 0 0}#wf-selection-pricing .wf-amounts{display:grid;grid-template-columns:1fr;gap:3px;margin:12px 0}#wf-selection-pricing dd{margin:0 0 7px;font-weight:600}
.wf-sample-dialog[open]{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1180px,96vw);background:#f1f0e8}
.wf-sample-dialog header{grid-column:2;grid-row:1;background:#fff;display:flex;flex-wrap:wrap}
.wf-sample-dialog .wf-sample-tools{grid-column:1;grid-row:1}
.wf-sample-dialog .wf-sample-pages{grid-column:1;grid-row:2/4;padding:0 18px 12px}
.wf-sample-dialog footer{grid-column:2;grid-row:2/4;align-self:stretch;flex-direction:column;justify-content:flex-start;background:white}
.wf-sample-pages>figure{margin:0 auto;text-align:center}.wf-sample-pages>figure[hidden]{display:none}.wf-sample-pages>figure img{object-fit:contain;max-width:100%;display:inline-block}.wf-sample-navigation{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 8px}.wf-sample-navigation button{font-size:13px;min-height:36px}.wf-sample-pages details{margin:10px 0}
@media(max-width:1000px) and (min-width:851px){#wf-design{grid-template-columns:minmax(0,1fr) 215px}.wf-gallery .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){#wf-design{grid-template-columns:1fr}.wf-gallery .template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.document-workspace #wf-design>.workspace-template-controls{grid-row:3;display:flex;flex-direction:column;align-items:stretch}#wf-selection-pricing .wf-amounts{grid-template-columns:1fr auto;gap:6px}#wf-selection-pricing dd{margin:0}.wf-sample-dialog[open]{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto}.wf-sample-dialog header{grid-column:1;grid-row:1;flex-wrap:nowrap}.wf-sample-dialog .wf-sample-tools{grid-row:2}.wf-sample-dialog .wf-sample-pages{grid-row:3}.wf-sample-dialog footer{grid-column:1;grid-row:4;padding:8px 12px}.wf-sample-dialog footer p{display:none}.wf-gallery .template-card-body h3{font-size:19px}}
@media(max-width:359px){.wf-gallery .template-grid{grid-template-columns:1fr}}
#wf-selection-pricing .wf-amounts{grid-template-columns:minmax(0,1fr) auto;gap:10px 8px}#wf-selection-pricing dd{margin:0;white-space:nowrap}#wf-selection-pricing dt{font-size:13px}#wf-design>.workspace-template-controls{gap:10px!important}#wf-selection-pricing p{line-height:1.45}
.wf-sample-dialog .wf-sample-navigation button:disabled{opacity:.45;cursor:default}
@media(min-width:851px){.wf-sample-dialog[open]{grid-template-rows:60px minmax(0,1fr) auto}.wf-sample-dialog header{grid-row:1/3;align-self:start;z-index:1}.wf-sample-dialog footer{grid-row:3;padding-top:16px}.wf-sample-dialog .wf-sample-tools{align-self:start}}

/* Finishing: dialog-wide close, concise prices and reserved mobile action dock. */
.wf-sample-dialog header{padding-right:64px}
.wf-sample-dialog header .wf-sample-close{position:absolute;top:8px;right:8px;z-index:5;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #cbd8c6;border-radius:50%;background:#fff;color:#204c39;font-size:30px;line-height:1;box-shadow:0 2px 7px #18382a16}
.wf-sample-close:focus-visible{outline:3px solid #b58149;outline-offset:3px}
.wf-sample-navigation[hidden],.wf-mobile-action[hidden]{display:none!important}
.wf-mobile-action{display:none}
html.wf-docked{scroll-padding-bottom:var(--wf-dock-space,0px)}
html.wf-docked body{padding-bottom:var(--wf-dock-space,0px)}
html.wf-docked #wf-design :is(button,input,select,summary,img[role=button]){scroll-margin-bottom:var(--wf-dock-space,0px)}
@media(max-width:850px){
 .wf-sample-dialog header{padding-right:66px}
 .document-workspace #wf-design>.workspace-template-controls{display:none}
 .wf-mobile-action{position:fixed;z-index:40;bottom:0;left:0;right:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#f7f8f1;border-top:1px solid #afc3a7;box-shadow:0 -3px 14px #173f2e12;color:#204c39}
 #wf-mobile-design{grid-column:1;grid-row:1;font-size:16px;align-self:center;overflow-wrap:anywhere}
 .document-workspace #wf-design .wf-mobile-action #generate-preview{grid-column:2;grid-row:1;width:auto;max-width:190px;min-height:44px;margin:0;padding:9px 12px;font-size:14px}
 .wf-mobile-action p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
 #wf-mobile-credit{color:#52664e}
}

@media(max-width:850px){.wf-mobile-identity{grid-column:1;grid-row:1;align-self:center;min-width:0}#wf-mobile-design{display:block}.wf-mobile-formats{display:block;font-size:13px;line-height:1.35;color:#52664e}}

/* Focused post-RC5 presentation candidate: segment always remains in track. */
.wf-progress .wf-indeterminate{display:block;position:relative;height:8px;min-height:8px;background:#ffffff55}
.wf-progress .wf-indeterminate>span{display:block;height:8px;min-height:8px;width:35%;margin:0;animation:wf-visible-travel 1.6s ease-in-out infinite}
@keyframes wf-visible-travel{0%,100%{transform:translateX(0)}50%{transform:translateX(180%)}}
.wf-quote-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.wf-quote-selection button{font-weight:400;text-decoration:underline;min-height:44px}
@media(prefers-reduced-motion:reduce){.wf-progress .wf-indeterminate>span{animation:none!important;transform:none!important;background:repeating-linear-gradient(110deg,#c6e7d4 0,#c6e7d4 10px,#8bb9a0 10px,#8bb9a0 20px)}}

.wf-preview-progress .wf-indeterminate{display:none!important}.wf-progress.is-working .wf-milestones li[data-state=waiting]{color:#c9ded2}.wf-progress.is-working .wf-milestones li[data-state=complete]{color:#e6f3eb}.wf-progress.is-working .wf-milestones li[data-state=complete]::before{color:#e6f3eb}.wf-progress.is-working .wf-elapsed{color:#e6f3eb}.wf-milestones{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:8px 0 0;padding:0;font-size:14px}.wf-milestones li[data-state=complete]::before{content:"✓ ";color:#24543d}.wf-milestones li[data-state=current]{font-weight:700;text-decoration:underline;text-underline-offset:4px}.wf-milestones li[data-state=waiting]{color:#637267}.wf-elapsed{grid-column:1/-1;font-size:14px;margin:6px 0 0;color:#405d4c}@media(prefers-reduced-motion:reduce){.wf-indeterminate span,.wf-spinner{animation:none!important}}

/* Free extraction controls remain available without composing or purchasing. */
.wf-workspace .sft-text-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:12px 0}
.wf-workspace .sft-text-tools #document-offer-summary,.wf-workspace .sft-text-tools .sft-plan-note{width:100%;margin:0;color:#405148;font-size:14px}
.wf-workspace #text-review textarea{font-size:15px;line-height:1.5}
/* Free text is a complete outcome; design browsing requires an explicit choice. */
#saved-document[data-text-ready=true] #wf-design .wf-gallery,#saved-document[data-text-ready=true] #wf-design>.workspace-template-controls,#saved-document[data-text-ready=true] #wf-mobile-action{display:none!important}
#saved-document[data-text-ready=true] #wf-content-tools{max-width:900px;margin:0 auto}
#saved-document[data-text-ready=true] #text-review{display:block}
#saved-document[data-text-ready=false] #wf-choose-design{display:none}
#upgrade-document{display:none!important}
#wf-choose-design,#wf-to-download,#sft-buy,#sft-download{min-height:56px;padding:14px 22px;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:normal;text-align:center;font-size:16px;line-height:1.4}
#sft-buy[hidden],#sft-download[hidden],#wf-to-download[hidden]{display:none!important}
#wf-choose-design{margin:14px 0}
@media(max-width:640px){#wf-choose-design,#wf-to-download,#sft-buy,#sft-download{width:100%;box-sizing:border-box}}

#sft-checkout-balance[hidden]{display:none!important}

#saved-document[data-text-ready=true] .sft-text-tools .sft-plan-note,#saved-document[data-text-ready=true] #document-offer-summary{display:none}

/* Ready text has one focused action area; pricing remains at checkout. */
#saved-document[data-text-ready=true] #wf-design{display:block}
#saved-document[data-text-ready=true] #wf-content-tools{width:100%;max-width:none;margin:0}
#saved-document[data-text-ready=true] #wf-next{display:block;margin-top:6px;color:#405148}
.document-workspace #sft-checkout-balance:not([hidden]){display:flex}

.document-workspace #wf-design #generate-preview,.wf-review-actions #generate-preview{min-height:56px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal}
#saved-document[data-wf-step="3"][data-preview-ready="true"] #generate-preview{display:none!important}

.wf-workspace #wf-to-download{min-height:56px;font-size:16px;line-height:1.4;padding:14px 22px;text-align:center;white-space:normal}

.document-workspace #wf-design .wf-mobile-action #generate-preview{min-height:56px;font-size:16px;line-height:1.4;text-align:center;white-space:normal}
