/* Shared theme controls come from base.css and style.css; workspace rules stay scoped to form pages. */
.ff-source-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:10px;align-items:start}
.ff-source-editor{min-width:0}
.ff-source-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
.ff-source-columns{overflow:auto;max-height:360px;margin:10px 0}
.ff-source-columns table{min-width:450px;font-size:13px;margin:0}
.ff-source-columns th,.ff-source-columns td{vertical-align:middle}
.ff-source-columns .theme-input{margin-top:0}
.ff-source-columns td:first-child{width:45px;text-align:center}
.ff-source-columns td:nth-child(2){width:25%}
.ff-source-columns td:last-child{width:160px}
.ff-source-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}
.ff-source-role-list{display:flex;gap:6px 18px;flex-wrap:wrap;margin:10px 0}
.ff-source-role-list .ff-checkbox{margin:0}
.ff-source-parameter{display:grid;grid-template-columns:1fr .7fr 1.3fr 1fr auto 26px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--bs-gray-300)}
.ff-source-filter{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 26px;gap:10px;align-items:center;margin:10px 0}
.ff-source-test-params{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}
.ff-source-binding{border:1px solid var(--ff-border);border-radius:4px;padding:9px;margin:10px 0}
.ff-source-binding>label{margin-bottom:8px}
@media(max-width:1000px){.ff-source-parameter,.ff-source-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.ff-source-parameter>.ff-icon-btn,.ff-source-filter>.ff-icon-btn{justify-self:end}}
@media(max-width:650px){.ff-source-workspace,.ff-source-two{grid-template-columns:minmax(0,1fr)}.ff-source-list{position:static;max-height:none}.ff-source-list .ff-variable-list{max-height:240px}}
.ff-page{--ff-ink:var(--bs-gray-800);--ff-muted:var(--bs-gray-600);--ff-border:var(--bs-gray-400);--ff-primary:var(--primary-color);color:var(--ff-ink);padding:0 10px 10px;background:var(--page-background);font-family:var(--font-theme);font-size:var(--size-theme)}
.ff-page button,.ff-page input,.ff-page select,.ff-page textarea{font-family:inherit}
.ff-page h1{font-size:19px;margin:0;font-weight:700;overflow-wrap:anywhere}
.ff-page h2{font-size:16px;font-weight:650;margin:0}
.ff-page h3{font-size:17px}
.ff-page p{color:var(--ff-muted);margin:0;line-height:1.6}
.ff-page-header{display:flex;align-items:stretch;justify-content:space-between;gap:16px;margin:0 -10px 10px;color:var(--bs-white);min-height:50px}
.ff-heading,.ff-header-actions{display:flex;align-items:center;gap:10px;padding:10px;min-width:0}
.ff-save-state{font-size:12px;color:rgba(255,255,255,.85);white-space:nowrap}
.ff-btn:disabled,.ff-icon-btn:disabled{opacity:.4;cursor:default}
.ff-icon-btn{border:0;background:transparent;color:var(--ff-muted);width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}
.ff-icon-btn:hover{background:#edf2f5;color:var(--ff-primary)}
.ff-text-btn{border:0;background:none;color:var(--ff-primary);font-size:12px;display:inline-flex;align-items:center;gap:6px;padding:5px 0;text-decoration:none;cursor:pointer}
.ff-alert{padding:11px 16px;border-radius:4px;margin:12px 0;font-size:13px}
.ff-alert-error{background:var(--bs-danger-bg-subtle);border:1px solid var(--bs-danger-border-subtle);color:var(--bs-danger-text-emphasis)}
.ff-alert-success{background:var(--bs-success-bg-subtle);border:1px solid var(--bs-success-border-subtle);color:var(--bs-success-text-emphasis)}
.ff-step-number{width:23px;height:23px;border-radius:4px;background:rgba(var(--primary-rgb),.06);color:var(--ff-primary);font-size:12px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.ff-setup{border:1px solid var(--ff-border);border-radius:4px;background:var(--bs-white);padding:12px;margin-bottom:10px}
.ff-setup-title{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.ff-setup-title strong{display:block;font-size:14px}
.ff-setup-title small{display:block;color:var(--ff-muted);margin-top:3px}
.ff-setup-fields{display:grid;grid-template-columns:2fr 1.3fr 1fr;gap:10px;margin-bottom:10px}
.ff-page label{font-size:13px;font-weight:500;display:block}
.ff-page .form-control,.ff-page .form-select{margin-top:5px;width:100%;min-width:0}
.ff-template-bar{display:flex;align-items:center;gap:10px}
.ff-upload{display:flex!important;align-items:center;gap:12px;position:relative;border:1px dashed #adc7ce;background:var(--bs-gray-100);border-radius:4px;padding:12px 16px;cursor:pointer;flex:1;min-width:230px;overflow:hidden}
.ff-upload>i{font-size:23px;color:var(--ff-primary)}
.ff-upload strong{display:block;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ff-upload small{display:block;color:var(--ff-muted);font-weight:400;margin-top:3px}
.ff-upload input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.ff-or{color:var(--ff-muted);font-size:12px}
.ff-template-select{flex:1;min-width:180px;margin:0!important}
.ff-template-note{margin-top:8px!important;font-size:12px}
.ff-page code{font-size:11px;color:var(--ff-muted);background:rgba(var(--primary-rgb),.06);border-radius:4px;padding:2px 5px}
.ff-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px;align-items:start}
.ff-panel{border:1px solid var(--ff-border);background:var(--bs-white);border-radius:4px;overflow:hidden;position:sticky;top:12px;max-height:calc(100vh - 24px)}
.ff-panel-title{display:flex;align-items:center;gap:8px;padding:10px;border-bottom:1px solid var(--ff-border);background:var(--bs-gray-100)}
.ff-panel-title h2{font-size:14px;flex:1}
.ff-panel-title>i{color:var(--ff-muted)}
.ff-count{font-size:10px;font-weight:650;color:var(--ff-muted);background:var(--bs-gray-100);border-radius:4px;padding:3px 7px;white-space:nowrap}
.ff-tabs{display:flex;padding:10px 10px 0;gap:5px}
.ff-tabs button{flex:1;border:1px solid var(--ff-border);background:var(--bs-gray-100);border-radius:4px 4px 0 0;color:var(--ff-ink);padding:6px 0;font-size:12px}
.ff-tabs button.active{background:var(--ff-primary);border-color:var(--ff-primary);color:var(--bs-white)}
.ff-variable-search{width:calc(100% - 20px)!important;margin:10px!important;font-size:12px}
.ff-variable-list{max-height:calc(100vh - 230px);overflow:auto;padding:0 10px 10px}
.ff-variable{display:flex;width:100%;border:1px solid transparent;border-radius:4px;background:var(--bs-white);text-align:left;gap:8px;padding:8px;align-items:center;margin:2px 0;cursor:grab!important}
.ff-variable:hover,.ff-variable.selected{background:rgba(var(--primary-rgb),.06);border-color:var(--ff-border)}
.ff-variable>i:first-child{font-size:10px;color:#b9c6cd}
.ff-variable>i:last-child{color:var(--ff-muted);font-size:11px}
.ff-variable span{flex:1;min-width:0}
.ff-variable strong{display:block;font-size:13px;font-weight:500;color:var(--ff-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff-variable code{display:inline-block;margin-top:3px;font-size:10px;background:none;padding:0}
.ff-panel-bottom{display:flex;width:calc(100% - 20px);margin:10px;font-size:12px}
.ff-panel-empty{padding:42px 20px;text-align:center;color:var(--ff-muted)}
.ff-panel-empty>i{font-size:28px;display:block;margin-bottom:16px}
.ff-panel-empty p{font-size:12px}
.ff-panel-note{padding:5px 4px 12px;line-height:1.6}
.ff-shared-variable{padding:12px 8px;border-bottom:1px solid var(--ff-border);cursor:grab}
.ff-shared-variable strong{display:block;font-size:12px;margin-bottom:4px}
.ff-shared-variable code{font-size:10px;word-break:break-all}
.ff-shared-value{display:block;margin-top:7px;color:var(--ff-muted);font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.ff-shared-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.ff-shared-actions button{font-size:10px!important}
.ff-canvas{min-width:0}
.ff-canvas-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;gap:12px}
.ff-canvas-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ff-canvas-toolbar strong{font-size:13px}
.ff-canvas-toolbar small{font-size:11px;color:var(--ff-muted);width:100%;padding-left:31px;margin-top:-3px}
.ff-canvas-toolbar .ff-btn{font-size:11px}
.ff-group{border:1px solid var(--ff-border);border-radius:4px;background:var(--bs-white);margin-bottom:10px;overflow:hidden}
.ff-group-header{display:flex;gap:6px;align-items:center;padding:8px 10px;background:var(--bs-gray-100);border-bottom:1px solid var(--ff-border)}
.ff-group-handle{color:var(--ff-muted);font-size:11px}
.ff-group-name{border:0!important;outline:0;background:transparent;flex:1;min-width:0;font-weight:650!important;color:var(--ff-primary)}
.ff-group-header .ff-icon-btn{font-size:10px;width:23px;height:23px}
.ff-fields-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;padding:12px}
.ff-width-12{grid-column:span 12}
.ff-width-6{grid-column:span 6}
.ff-width-4{grid-column:span 4}
.ff-width-3{grid-column:span 3}
.ff-design-field{border:0;border-radius:4px;padding:0;position:relative;min-width:0}
.ff-design-field:hover{outline:1px dashed var(--ff-border);outline-offset:4px}
.ff-design-field.selected{outline:1px solid var(--ff-primary);outline-offset:4px}
.ff-field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;min-width:0}
.ff-page .ff-field-label{margin:0;min-width:0;overflow-wrap:anywhere}
.ff-field-label-actions{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.ff-field-label-actions .ff-icon-btn{width:20px;height:20px;font-size:11px;padding:0}
.ff-field-config{color:var(--ff-primary)}
.ff-field-grip{cursor:grab;color:var(--bs-gray-500)}
.ff-field-grip:active{cursor:grabbing}
.ff-input-block{min-width:0}
.ff-help{display:block;color:var(--ff-muted);font-size:12px;line-height:1.5;margin-top:5px;font-weight:400}
.ff-checkbox{display:flex!important;gap:9px;align-items:center;margin:9px 0;font-weight:400!important}
.ff-checkbox input{accent-color:var(--ff-primary)}
.ff-field-warning{display:block;font-size:10px;color:#b58a31;margin-top:9px}
.ff-drop-tail{border:1px dashed var(--ff-border);color:var(--ff-muted);border-radius:4px;text-align:center;padding:12px;font-size:11px}
.ff-drop-tail i{margin-right:5px}
.ff-drop-active{outline:2px dashed var(--ff-primary)!important;outline-offset:2px;background:rgba(var(--primary-rgb),.06)!important}
.ff-properties{padding:12px;max-height:calc(100vh - 88px);overflow-y:auto}
.ff-properties>label{margin-bottom:10px}
.ff-property-heading{display:flex;flex-direction:column;gap:5px;margin:0 0 12px}
.ff-property-heading strong{font-size:14px}
.ff-property-heading code{align-self:flex-start}
.ff-property-row{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-bottom:10px}
.ff-property-divider{font-size:12px;font-weight:600;color:var(--ff-ink);border-top:1px solid var(--ff-border);padding-top:10px;margin:15px 0 10px}
.ff-choice-row{display:flex;gap:5px;align-items:center;margin-bottom:5px}
.ff-choice-row input{min-width:0;font-size:11px!important}
.ff-column-editor{border:1px solid var(--ff-border);border-radius:4px;padding:9px;margin-bottom:9px}
.ff-column-editor>div{display:flex;gap:5px;align-items:center}
.ff-column-editor input,.ff-column-editor select{font-size:11px!important;padding:7px!important}
.ff-value-preview{border:1px solid var(--ff-border);border-radius:4px;padding:12px;background:rgba(var(--primary-rgb),.06)}
.ff-value-preview small{font-size:8px;letter-spacing:1px;color:var(--ff-muted)}
.ff-value-preview p{color:var(--ff-primary);font-size:12px;word-break:break-word;margin-top:7px}
.ff-sql{font-family:Consolas,monospace!important;font-size:11px!important;line-height:1.7;resize:vertical}
.ff-query-summary{font-size:11px;color:var(--ff-primary);margin:12px 0}
.ff-query-preview,.ff-table-scroll{overflow:auto}
.ff-query-preview{margin:10px 0;border:1px solid var(--ff-border);border-radius:6px}
.ff-query-preview table{font-size:10px;margin:0}
.ff-query-preview td{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ff-field-order{display:flex;gap:9px}
.ff-field-order button{flex:1;font-size:11px!important}
.ff-preview-sheet{max-width:880px;width:100%;margin:10px auto;background:var(--bs-white);border:1px solid var(--ff-border);border-radius:4px;padding:24px}
.ff-preview-header{margin-bottom:28px}
.ff-preview-header h2{font-size:24px;margin:15px 0 8px}
.ff-preview-header p{font-size:13px}
.ff-preview-group h3{font-size:15px;margin:20px 0 0;padding-bottom:12px;border-bottom:1px solid var(--ff-border)}
.ff-preview-group .ff-fields-grid{padding:18px 0}
.ff-design-sheet{margin-top:0}
.ff-design-sheet .ff-group{border:0;border-radius:0;background:none;margin:0;overflow:visible}
.ff-design-sheet .ff-group-header{padding:20px 0 12px;background:none}
.ff-design-sheet .ff-group-name{font-size:15px;font-weight:500!important;color:var(--ff-ink);padding:0}
.ff-canvas-note{text-align:center;font-size:12px;margin:12px 0!important}
.ff-designer-guide{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin-bottom:12px;background:rgba(var(--primary-rgb),.06);border:1px solid #cbdfe2;border-radius:4px}
.ff-approval-config{border-top:1px solid var(--ff-border);margin-top:12px;padding-top:10px}
.ff-approval-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}
.ff-approval-heading>span{color:var(--ff-muted)}
.ff-approval-heading>button{margin-left:auto}
.ff-approval-config>label{max-width:460px;margin-top:12px}
.ff-approval-config .fc-policy-people{border:1px solid var(--ff-border);padding:12px;margin-top:12px;max-height:340px;overflow:auto}
.ff-approval-config .fc-policy-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ff-approval-config .fc-form-choice{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:12px}
.ff-designer-guide>i{color:var(--ff-primary);margin-top:3px}
.ff-designer-guide p{font-size:12px}
.ff-designer-guide strong{color:var(--ff-ink)}
.ff-group-add{font-size:12px;white-space:nowrap;padding:5px 8px;border:1px solid var(--ff-border);border-radius:4px;background:var(--bs-white)}
.ff-group-add:hover,.ff-drop-tail:hover{background:rgba(var(--primary-rgb),.06);color:var(--ff-primary)}
.ff-drop-tail{background:transparent;width:100%;cursor:pointer;text-align:center}
.ff-drop-tail span{font-weight:400}
.ff-field-source{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px;font-size:10px;color:var(--ff-muted)}
.ff-field-source code{font-size:10px;overflow-wrap:anywhere}
.ff-field-dialog.ff-variable-dialog{width:min(820px,calc(100% - 24px))}
.ff-variable-context{padding:10px 16px;font-size:12px;border-bottom:1px solid var(--ff-border);color:var(--ff-muted);overflow-wrap:anywhere}
.ff-picker-tabs{padding:12px 16px 0}
.ff-picker-tabs button{padding:9px 12px}
.ff-variable-body{padding:16px;overflow:auto;min-height:230px;max-height:48vh}
.ff-new-variable-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.ff-new-variable-form>label:first-child{grid-column:1/-1}
.ff-library-section{font-size:12px!important;color:var(--ff-muted);margin:20px 0 6px;font-weight:600}
.ff-library-item{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e3e9ec;padding:12px 0}
.ff-library-item>i{color:var(--ff-primary);width:18px;text-align:center;flex-shrink:0}
.ff-library-item>div{flex:1;min-width:0}
.ff-library-item strong{display:block;font-size:13px;overflow-wrap:anywhere}
.ff-library-item>div>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:5px 0;font-size:11px;color:var(--ff-muted)}
.ff-library-item code{overflow-wrap:anywhere}
.ff-library-item small{display:block;font-size:11px;color:var(--ff-muted);overflow-wrap:anywhere}
.ff-library-item>button{flex-shrink:0;font-size:12px}
.ff-library-status{padding:28px 10px;text-align:center;color:var(--ff-muted);font-size:13px}
.ff-library-status .ff-text-btn{margin-left:10px}
.ff-library-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;font-size:12px;color:var(--ff-muted)}
.ff-variable-sharing{padding:12px 16px;background:var(--bs-gray-100);border-top:1px solid var(--ff-border)}
.ff-variable-sharing .ff-checkbox{margin:0}
.ff-variable-sharing .ff-help{font-size:11px;margin-left:22px}
.ff-variable-dialog .ff-dialog-footer{justify-content:flex-end}
@media(max-width:600px){.ff-new-variable-form{grid-template-columns:1fr}.ff-variable-body{padding:12px;max-height:46vh}.ff-library-item{gap:8px}.ff-library-item>button{padding:6px 8px}.ff-designer .ff-group-header{flex-wrap:wrap}.ff-designer .ff-group-name{flex-basis:calc(100% - 48px)}.ff-drop-tail span{display:block;margin-top:5px}}
.ff-field-dialog{width:min(760px,calc(100% - 32px));max-width:none;max-height:85vh;padding:0;margin:auto;border:1px solid var(--ff-border);border-radius:6px;background:var(--bs-white);color:var(--ff-ink);box-shadow:0 16px 48px rgba(0,0,0,.2);overflow:hidden}
.ff-field-dialog[open]{display:flex;flex-direction:column}
.ff-field-dialog::backdrop{background:rgba(24,36,44,.45)}
.ff-dialog-header{flex-shrink:0;padding:12px 16px}
.ff-field-dialog .ff-properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;max-height:none;min-height:0;overflow-y:auto}
.ff-field-dialog .ff-properties>label{margin:0}
.ff-field-dialog .ff-property-heading,.ff-field-dialog .ff-property-divider,.ff-field-dialog .ff-properties>small,.ff-field-dialog .ff-properties>.ff-text-btn,.ff-field-dialog .ff-properties>.ff-checkbox,.ff-field-dialog .ff-properties>label:has(textarea),.ff-field-dialog .ff-source-binding,.ff-field-dialog .ff-choice-row,.ff-field-dialog .ff-column-editor,.ff-field-dialog .ff-query-summary,.ff-field-dialog .ff-query-preview,.ff-field-dialog .ff-field-order,.ff-field-dialog .ff-value-preview{grid-column:1/-1}
.ff-field-dialog .ff-property-heading,.ff-field-dialog .ff-property-row,.ff-field-dialog .ff-source-binding,.ff-field-dialog .ff-choice-row,.ff-field-dialog .ff-column-editor,.ff-field-dialog .ff-query-summary,.ff-field-dialog .ff-query-preview{margin:0}
.ff-field-dialog .ff-property-divider{margin:4px 0 0}
.ff-dialog-footer{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--ff-border);flex-shrink:0}
.ff-dialog-footer .ff-help{margin:0 0 0 auto;font-size:11px}
.ff-remove-field{color:var(--bs-danger)}
.ff-field-dialog .ff-alert{margin:8px 16px 0;flex-shrink:0}
.ff-confirm-dialog{width:min(480px,calc(100% - 32px))}
.ff-confirm-body{padding:16px}
.ff-confirm-body>label{margin-top:14px}
.ff-confirm-dialog .ff-dialog-footer{justify-content:flex-end}
.ff-confirm-body .ff-alert{margin:12px 0 0}
.ff-card-footer .ff-card-delete{color:var(--bs-danger);padding-left:8px;padding-right:8px;white-space:nowrap;font-size:12px}
.ff-card-footer .ff-card-delete:hover{background:var(--bs-danger);color:var(--bs-white);border-color:var(--bs-danger)}
.ff-data-table{font-size:11px;min-width:280px;margin-bottom:4px}
.ff-data-table th{font-weight:600;color:var(--ff-ink);background:var(--bs-gray-100);white-space:nowrap}
.ff-data-table .form-control{margin:0;font-size:12px;min-width:80px}
.ff-number-input{text-align:right;font-variant-numeric:tabular-nums}
.ff-table-empty{text-align:center;color:var(--ff-muted);padding:20px!important}
.ff-row-actions{width:22px}
.ff-badge{font-size:10px;color:var(--ff-muted);background:var(--bs-gray-100);border-radius:4px;padding:5px 10px;display:inline-block}
.ff-badge-green{color:var(--bs-success-text-emphasis);background:var(--bs-success-bg-subtle)}
.ff-empty{text-align:center;border:1px dashed var(--ff-border);background:var(--bs-white);border-radius:4px;padding:60px 20px;color:var(--ff-muted)}
.ff-empty>i{font-size:38px;margin-bottom:18px;display:block}
.ff-empty h2{margin:10px 0}
.ff-empty p{margin:12px 0 22px}
.ff-list-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.ff-list-toolbar input{margin:0!important;max-width:380px}
.ff-list-toolbar .ff-text-btn{margin-left:auto}
.ff-list-toolbar .ff-catalog-filter{width:280px;max-width:100%;margin:0;font-size:13px}
.ff-form-list{background:var(--bs-white);border:1px solid var(--ff-border);border-radius:4px;min-width:0}
.ff-form-table-wrap{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ff-form-table-wrap:focus-visible{outline:2px solid var(--ff-primary);outline-offset:-2px}
.ff-form-table{width:100%;min-width:960px;border-collapse:collapse;font-size:13px}
.ff-form-table th{background:var(--bs-gray-200);color:var(--ff-ink);font-weight:600;white-space:nowrap}
.ff-form-table th,.ff-form-table td{padding:9px 10px;border-bottom:1px solid var(--ff-border);vertical-align:middle}
.ff-form-table tbody tr:last-child td{border-bottom:0}
.ff-form-row:hover{background:rgba(var(--primary-rgb),.035)}
.ff-form-name{min-width:210px;max-width:330px;overflow-wrap:anywhere;font-weight:600}
.ff-form-name a{color:var(--ff-primary);text-decoration:none}
.ff-form-name a:hover{text-decoration:underline}
.ff-form-template{min-width:140px;max-width:240px;overflow-wrap:anywhere;color:var(--ff-muted)}
.ff-form-number{text-align:center;white-space:nowrap}
.ff-form-date{white-space:nowrap;color:var(--ff-muted)}
.ff-form-catalogs{display:flex;flex-wrap:wrap;gap:4px;min-width:130px;max-width:220px}
.ff-form-catalog{border:1px solid var(--ff-border);border-radius:3px;padding:2px 6px;font-size:11px;line-height:1.5;background:var(--bs-gray-100)}
.ff-form-muted{color:var(--ff-muted);font-size:12px}
.ff-form-table .ff-badge{font-size:11px;white-space:nowrap;padding:4px 7px}
.ff-form-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}
.ff-form-actions .ff-btn{font-size:12px;min-height:30px;padding:5px 8px}
.ff-form-actions .ff-form-delete{color:var(--bs-danger,#b42318)}
.ff-form-list-empty{text-align:center;padding:40px 15px!important;color:var(--ff-muted)}
.ff-form-list-empty>i,.ff-form-list-empty>strong,.ff-form-list-empty>span{display:block;margin:6px 0}
.ff-form-list-empty>i{font-size:28px}
.ff-form-list-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 10px;border-top:1px solid var(--ff-border);font-size:12px;color:var(--ff-muted)}
@media(max-width:950px){.ff-list-toolbar{flex-wrap:wrap}.ff-list-toolbar input{flex:1 1 240px}.ff-list-toolbar .ff-catalog-filter{flex:1 1 220px}.ff-list-toolbar .ff-text-btn{margin-left:0}}
@media(max-width:600px){.ff-list-page .ff-list-toolbar input,.ff-list-page .ff-list-toolbar .ff-catalog-filter{flex:1 1 100%;width:100%;max-width:none;min-width:0}.ff-form-list-footer{align-items:flex-start}.ff-form-list-footer>div{margin-left:auto}}
.ff-form-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.ff-form-card{border:1px solid var(--ff-border);border-radius:4px;background:var(--bs-white);padding:15px}
.ff-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.ff-doc-icon{padding:10px 13px;background:rgba(var(--primary-rgb),.06);border-radius:4px;color:var(--ff-primary);font-size:20px}
.ff-form-card h2{margin-bottom:9px}
.ff-form-card p{font-size:12px;margin:13px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff-card-meta{display:flex;justify-content:space-between;color:var(--ff-muted);font-size:11px;margin:17px 0}
.ff-card-footer{display:flex;gap:10px;padding-top:17px;border-top:1px solid var(--ff-border)}
.ff-card-footer a{flex:1;font-size:12px}
.ff-fill-actions{display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--ff-border);padding-top:23px;margin-top:23px}
.ff-source-note{font-size:10px;color:var(--ff-muted);margin-top:5px}
.ff-fill-source-button{font-size:10px!important;margin:4px 0}
.ff-fill-subtitle{display:flex;align-items:center;gap:12px;margin-top:10px;color:var(--ff-muted);font-size:12px}

@media(min-width:1600px){.ff-workspace{grid-template-columns:255px minmax(0,1fr)}
}

@media(max-width:1199px){.ff-workspace{grid-template-columns:195px minmax(0,1fr);gap:12px}
.ff-setup-fields{gap:10px}
.ff-header-actions{gap:8px}
.ff-save-state{display:none}
}

@media(max-width:950px){.ff-workspace{grid-template-columns:190px minmax(0,1fr)}
.ff-template-bar{flex-wrap:wrap}
.ff-upload{flex:1 1 100%}
.ff-template-select{flex:1}
.ff-or{display:none}
.ff-width-3,.ff-width-4{grid-column:span 6}
}

@media(max-width:600px){.ff-page-header{flex-direction:column;align-items:stretch;gap:15px}
.ff-header-actions{justify-content:flex-end}
.ff-page h1{font-size:21px}
.ff-setup{padding:14px}
.ff-setup-fields{grid-template-columns:1fr}
.ff-workspace{grid-template-columns:minmax(0,1fr)}
.ff-panel{position:static;max-height:none}
.ff-variable-list{max-height:260px}
.ff-variables-panel{grid-column:1}
.ff-group-header{padding:12px}
.ff-fields-grid{padding:12px;gap:11px}
.ff-width-3,.ff-width-4,.ff-width-6{grid-column:span 12}
.ff-preview-sheet{padding:20px 15px}
.ff-field-dialog .ff-properties{grid-template-columns:minmax(0,1fr)}
.ff-dialog-footer{flex-wrap:wrap}
.ff-dialog-footer .ff-help{order:3;flex-basis:100%;margin:0}
.ff-dialog-footer>.ff-btn{margin-left:auto}
.ff-list-toolbar{flex-wrap:wrap}
.ff-list-toolbar input{flex:1}
.ff-list-toolbar .ff-text-btn{width:100%;margin-left:0}
.ff-form-cards{grid-template-columns:1fr}
}

.ff-entity-search{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.ff-entity-search input{min-width:0;margin-top:0!important}
.ff-entity-search .ff-btn{flex-shrink:0}


.ff-page-header .ff-heading{background:rgba(255,255,255,.08)}

.ff-page-header p{color:rgba(255,255,255,.85);font-size:12px}

.ff-page-header .ff-eyebrow{color:rgba(255,255,255,.8)}

.ff-page-header .ff-icon-btn{color:var(--bs-white)}

.ff-page-header .ff-icon-btn:hover{background:rgba(255,255,255,.15)}

.ff-page-header>.button-theme{align-self:center;margin:10px}

.ff-header-actions{gap:8px}

.ff-page .button-theme:disabled{cursor:default!important}


@media(max-width:950px){.ff-page-header{flex-wrap:wrap;gap:0}
.ff-header-actions{margin-left:auto;flex-wrap:wrap}
}


@media(max-width:600px){.ff-header-actions{padding-top:0;margin-left:0}
.ff-page h1{font-size:18px}
}
