.fb-workspace{--fb-ink:#203549;--fb-muted:#697888;--fb-line:#dce3e9;--fb-orange:#2f6dc5;color:var(--fb-ink);max-width:1500px;margin:0 auto;padding:4px 0 32px}.fb-workspace *{box-sizing:border-box}.fb-workspace h1,.fb-workspace h2,.fb-workspace h3,.fb-workspace p{margin:0}.fb-workspace button,.fb-workspace input,.fb-workspace textarea,.fb-workspace select{font:inherit}.fb-workspace button:focus-visible,.fb-workspace input:focus-visible,.fb-workspace textarea:focus-visible,.fb-workspace select:focus-visible{outline:3px solid #7bb1f1;outline-offset:3px}.fb-workspace button{cursor:pointer}.fb-workspace button:disabled{cursor:not-allowed;opacity:.5}.fb-workspace svg{height:18px;width:18px;vertical-align:middle;flex-shrink:0}.fb-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.fb-eyebrow{display:block;color:var(--fb-orange);font-size:11px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}.fb-header h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.035em;line-height:1.15}.fb-header p{font-size:14px;line-height:1.6;color:var(--fb-muted);margin-top:9px;max-width:600px}.fb-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fb-workspace .fb-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid var(--fb-line);border-radius:7px;background:#fff;color:var(--fb-ink);font-size:12px;font-weight:650;box-shadow:none;text-decoration:none}.fb-workspace .fb-button:hover:not(:disabled){background:#f3f6f8;border-color:#bbc8d2}#app .fb-workspace .fb-primary{background:#2f6dc5;border-color:#2f6dc5;color:white}#app .fb-workspace .fb-primary:hover:not(:disabled){background:#2155a9;border-color:#2155a9}.fb-workspace .fb-danger{color:#323da4}.fb-workspace .fb-quiet{border-color:transparent;background:transparent}.fb-icon-button{min-width:42px}.fb-tabs{display:flex;gap:24px;border-bottom:1px solid var(--fb-line);margin-bottom:22px}.fb-workspace .fb-tab{position:relative;border:0;background:transparent;padding:14px 0;font-size:14px;color:var(--fb-muted);font-weight:600;box-shadow:none}.fb-workspace .fb-tab[aria-selected=true]{color:var(--fb-ink)}.fb-tab[aria-selected=true]:after{content:"";height:3px;background:var(--fb-orange);position:absolute;left:0;right:0;bottom:-1px;border-radius:3px}.fb-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;flex-wrap:wrap}.fb-toolbar .fb-input{max-width:390px}.fb-count{font-size:12px;color:var(--fb-muted)}.fb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.fb-card{border:1px solid var(--fb-line);border-radius:10px;padding:20px;background:#fff;min-width:0}.fb-card h2,.fb-card h3{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.fb-card p{font-size:12px;line-height:1.6;color:var(--fb-muted);margin-top:9px;white-space:pre-wrap;overflow-wrap:anywhere}.fb-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.fb-card .fb-actions{margin-top:19px}.fb-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;background:#edf2f5;color:#53697a;font-size:10px;font-weight:650;line-height:1.4}.fb-badge--published,.fb-badge--completed{background:#e8f3ec;color:#296c45}.fb-badge--draft{background:#fff1df;color:#2c6298}.fb-badge--archived{background:#f0f1f3;color:#697483}.fb-meta{font-size:11px;color:var(--fb-muted);line-height:1.6;overflow-wrap:anywhere}.fb-empty{padding:50px 20px;text-align:center;border:1px dashed #cbd7df;border-radius:10px;background:#f9fbfc}.fb-empty h2{font-size:20px;margin:12px 0}.fb-empty p{font-size:13px;line-height:1.6;color:var(--fb-muted);max-width:520px;margin:0 auto 20px}.fb-notice{padding:13px 16px;border:1px solid #d4e1ec;background:#eef5fb;border-radius:7px;color:#3a5c78;font-size:12px;line-height:1.6;margin-bottom:18px}.fb-error{border-color:#e9bfb6;background:#fff3ef;color:#36469d}.fb-notice[hidden]{display:none}.fb-loading{padding:60px 20px;text-align:center;color:var(--fb-muted);font-size:14px}.fb-section{background:white;border:1px solid var(--fb-line);border-radius:9px;padding:22px;margin-bottom:17px}.fb-section h2{font-size:18px;margin-bottom:17px}.fb-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.fb-section-head h2{margin:0}.fb-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.fb-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0!important}.fb-field>span,.fb-field>label{font-size:12px;font-weight:650;color:var(--fb-ink)}.fb-field>small,.fb-help{color:var(--fb-muted);font-size:11px;line-height:1.5}.fb-wide{grid-column:1/-1}.fb-workspace .fb-input{width:100%;min-width:0;min-height:43px;border:1px solid #cdd7df;background:#fff;border-radius:6px;padding:10px 12px;font-size:13px;color:var(--fb-ink);box-shadow:none;margin:0}.fb-workspace textarea.fb-input{min-height:100px;resize:vertical;line-height:1.5}.fb-workspace select.fb-input{padding-right:30px}.fb-workspace .fb-input:disabled{background:#f4f6f8;color:#5e6e7d;opacity:1}.fb-check{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;min-height:42px;margin:0}.fb-workspace input[type=checkbox]{width:19px;height:19px;accent-color:var(--fb-orange);flex-shrink:0;margin:0}.fb-editor{display:grid;grid-template-columns:210px minmax(280px,1fr) 310px;gap:18px;align-items:start}.fb-palette,.fb-properties{background:#fff;border:1px solid var(--fb-line);border-radius:9px;padding:16px}.fb-palette h2,.fb-properties h2{font-size:14px;margin-bottom:13px}.fb-palette p{font-size:11px;line-height:1.5;color:var(--fb-muted);margin-bottom:12px}.fb-palette-buttons{display:grid;gap:7px}.fb-workspace .fb-palette-button{justify-content:flex-start;width:100%;font-size:12px;background:#f8fafb}.fb-canvas{min-width:0}.fb-canvas-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:12px;color:var(--fb-muted)}.fb-field-card{border:1px solid var(--fb-line);border-radius:8px;background:#fff;margin-bottom:10px;overflow:hidden}.fb-field-card--selected{border-color:var(--fb-orange);box-shadow:0 0 0 1px var(--fb-orange)}.fb-field-card-main{display:flex;align-items:center;gap:12px;padding:15px}.fb-workspace .fb-field-select{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;padding:0;text-align:left;color:var(--fb-ink)}.fb-field-select strong{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.fb-field-select small{display:block;font-size:10px;line-height:1.5;color:var(--fb-muted);margin-top:3px}.fb-field-number{font-size:10px;background:#f0f4f6;color:#758897;border-radius:5px;min-width:29px;height:29px;display:flex;align-items:center;justify-content:center}.fb-field-card-actions{display:flex;gap:3px;padding:0 10px 10px;justify-content:flex-end}.fb-workspace .fb-field-card-actions button{min-height:32px;min-width:32px;padding:5px 8px;font-size:11px}.fb-field-card-children{padding:5px 12px 12px;background:#f7f9fb;border-top:1px solid #e7edf2}.fb-properties .fb-field{margin-bottom:14px!important}.fb-properties .fb-check{font-size:12px}.fb-properties .fb-input{font-size:12px}.fb-properties hr{border:0;border-top:1px solid var(--fb-line);margin:18px 0}.fb-properties h3{font-size:12px;margin-bottom:10px}.fb-condition{background:#f5f8fa;border-radius:6px;padding:10px;margin-bottom:9px}.fb-condition .fb-input{margin-bottom:7px}.fb-condition .fb-button{min-height:32px;padding:5px 9px;font-size:11px}.fb-savebar{position:sticky;bottom:10px;z-index:3;background:#203549;color:#fff;box-shadow:0 6px 22px #11263825;padding:13px 17px;border-radius:9px;display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px}.fb-savebar p{font-size:12px;line-height:1.5}.fb-savebar .fb-meta{color:#bacbd8}.fb-savebar .fb-button{border-color:#55697b}.fb-runner{max-width:880px;margin:0 auto}.fb-runner .fb-section{padding:25px}.fb-run-fields{display:grid;gap:21px}.fb-required{color:#295eb8;margin-left:4px}.fb-validation{font-size:12px;color:#3340a6;margin-top:5px}.fb-input[aria-invalid=true]{border-color:#4859b8}.fb-repeat{border:1px solid var(--fb-line);border-radius:8px;padding:18px;background:#fafcfd}.fb-repeat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.fb-repeat-header h3{font-size:15px}.fb-repeat-row{border:1px solid #dfe6ec;background:#fff;border-radius:7px;padding:17px;margin:12px 0}.fb-repeat-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px;font-size:12px;font-weight:650}.fb-repeat-row .fb-run-fields{gap:16px}.fb-run-heading{font-size:18px;padding-top:8px;border-bottom:1px solid var(--fb-line);padding-bottom:12px}.fb-read-value{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;min-height:30px}.fb-history{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.fb-history .fb-button{font-size:11px;min-height:35px;padding:6px 10px}.fb-entry-list{display:grid;gap:11px}.fb-entry-row{display:flex;align-items:center;justify-content:space-between;gap:17px;padding:19px 21px;border:1px solid var(--fb-line);background:#fff;border-radius:9px}.fb-entry-row h2{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.fb-entry-row .fb-meta{margin-top:4px}.fb-entry-row .fb-actions{flex-shrink:0}.fb-file-list{display:grid;gap:7px}.fb-file{display:flex;gap:8px;align-items:center;min-width:0;font-size:12px}.fb-file a{overflow-wrap:anywhere;color:#315f84}.fb-workspace .fb-file button{min-height:34px;min-width:34px}.fb-signature{border:1px solid #cdd7df;border-radius:7px;background:#fff;overflow:hidden}.fb-signature canvas{display:block;width:100%;height:180px;touch-action:none}.fb-signature-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid var(--fb-line);background:#f8fafb;font-size:11px;color:var(--fb-muted)}.fb-signature-image{max-height:180px;max-width:100%;object-fit:contain;border:1px solid var(--fb-line);border-radius:6px}.fb-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1250px){.fb-editor{grid-template-columns:170px minmax(250px,1fr)}.fb-properties{grid-column:1/-1}.fb-properties-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.fb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.fb-header{flex-direction:column}.fb-header>.fb-actions{width:100%;justify-content:flex-end}.fb-editor{grid-template-columns:1fr}.fb-palette-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.fb-palette p{margin-bottom:10px}.fb-properties-grid{grid-template-columns:1fr}.fb-grid{grid-template-columns:1fr}.fb-entry-row{align-items:flex-start;flex-direction:column}.fb-entry-row .fb-actions{width:100%;justify-content:flex-end}.fb-savebar{align-items:flex-start;flex-direction:column}.fb-savebar .fb-actions{width:100%;justify-content:flex-end}}
@media(max-width:760px){.fb-header{gap:15px;margin-bottom:18px}.fb-header h1{font-size:27px}.fb-header p{font-size:12px}.fb-workspace .fb-button{min-height:44px;font-size:12px;padding:10px 13px}.fb-tabs{gap:22px;margin-bottom:17px}.fb-tabs .fb-tab{min-height:44px;font-size:13px}.fb-fields{grid-template-columns:1fr}.fb-section,.fb-runner .fb-section{padding:17px}.fb-workspace .fb-input{min-height:46px;font-size:16px}.fb-properties .fb-input{font-size:16px}.fb-field>span,.fb-field>label{font-size:13px}.fb-check{min-height:44px;font-size:14px}.fb-palette-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.fb-workspace .fb-palette-button{font-size:11px}.fb-field-card-main{padding:13px}.fb-workspace .fb-field-card-actions button{min-height:40px;min-width:40px}.fb-repeat{padding:12px}.fb-repeat-row{padding:13px}.fb-repeat-header{align-items:flex-start}.fb-savebar{position:static;padding:15px;margin-top:18px}.fb-savebar .fb-actions{justify-content:stretch}.fb-savebar .fb-actions .fb-button{flex:1}.fb-card{padding:17px}.fb-entry-row{padding:16px}.fb-toolbar .fb-input{max-width:none}.fb-history .fb-button{min-height:44px}.fb-runner .fb-header h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.fb-workspace *{scroll-behavior:auto!important}}

/* Preserve legible published templates and field alignment inside the app shell. */
#app .fb-workspace .fb-input:disabled,#app #content .fb-workspace .fb-input:disabled{background:#f3f5f7;color:#30485d;-webkit-text-fill-color:#30485d;border-color:#d4dde5;opacity:1}
#app .fb-workspace .fb-field-select,#app #content .fb-workspace .fb-field-select{display:block;justify-content:flex-start;align-items:flex-start;text-align:left;background:transparent;color:var(--fb-ink)}
#app .fb-workspace .fb-field-select strong,#app .fb-workspace .fb-field-select small{text-align:left}
.fb-completion{padding:20px;border:1px solid #86b7e4;border-radius:9px;background:#fff5e9;margin:18px 0;color:#213b5e}.fb-completion>p{font-size:14px;font-weight:650;line-height:1.6;margin-bottom:15px}.fb-completion .fb-actions{justify-content:flex-end}.fb-completion:focus{outline:3px solid #7eb1e9;outline-offset:3px}@media(max-width:760px){.fb-completion{padding:17px}.fb-completion .fb-actions{flex-direction:column-reverse;align-items:stretch}.fb-completion .fb-button{min-height:46px}}
.fb-offline{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:13px;padding:16px 18px;background:#edf4f8;border:1px solid #cadce8;border-radius:9px;margin-bottom:18px;color:#294a62}.fb-offline strong{font-size:13px}.fb-offline p{font-size:12px;line-height:1.5;margin-top:5px}.fb-offline .fb-help{max-width:650px;font-size:10px}.fb-offline .fb-actions{flex-shrink:0}.fb-offline>.fb-validation{width:100%}@media(max-width:760px){.fb-offline{padding:13px}.fb-offline .fb-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.fb-offline .fb-button{font-size:11px;min-height:44px}}
