/* 暖居手册 · A precise paper workbench for forms used on site. */
.fe-root{--fe-paper:#F6F2EA;--fe-sheet:#FFFCF6;--fe-ink:#342E28;--fe-accent:#AE4B2C;--fe-olive:#63715A;--fe-line:#E2DACF;--fe-sub:#756B60;color:var(--fe-ink);font-family:var(--font-body,'PingFang SC','Microsoft YaHei',sans-serif);font-size:14px;line-height:1.6;container-type:inline-size;overflow-wrap:anywhere}
.fe-root *,.fe-root *::before,.fe-root *::after{box-sizing:border-box}
.fe-root h3{font-size:14px;line-height:1.5;font-weight:600;margin:0}
.fe-root button,.fe-root input,.fe-root select,.fe-root textarea{font:inherit;min-width:0}
.fe-root button{min-height:44px;border:1px solid var(--fe-line);border-radius:6px;background:var(--fe-sheet);color:var(--fe-ink);padding:9px 14px;line-height:1.4;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
.fe-root button:hover:not(:disabled){background:#F0E9DE;border-color:#BFAF9A}
.fe-root button:disabled{cursor:not-allowed;color:#8A8074;border-color:#DAD2C6;background:#EFEAE1;opacity:1}
.fe-root :focus-visible{outline:2px solid var(--fe-accent);outline-offset:3px}
.fe-root input,.fe-root select,.fe-root textarea{width:100%;max-width:100%;min-height:44px;padding:10px 11px;border:1px solid #CFC4B4;border-radius:5px;background:var(--fe-sheet);color:var(--fe-ink);line-height:1.55;box-shadow:none}
.fe-root input:hover:not(:disabled),.fe-root select:hover:not(:disabled),.fe-root textarea:hover:not(:disabled){border-color:#B8A690}
.fe-root input:focus,.fe-root select:focus,.fe-root textarea:focus{border-color:var(--fe-accent)}
.fe-root textarea{min-height:90px;resize:vertical}
.fe-root input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;min-height:17px;padding:0;margin:0;accent-color:var(--fe-accent)}
.fe-root input:disabled,.fe-root select:disabled,.fe-root textarea:disabled{color:#776C5D;background:#EFEAE1;border-color:var(--fe-line);opacity:1;cursor:not-allowed}
.fe-root .fe-primary{background:var(--fe-accent);border-color:var(--fe-accent);color:#FFFCF6;font-weight:600}
.fe-root .fe-primary:hover:not(:disabled){background:#903C23;border-color:#903C23}
.fe-root .fe-primary:disabled{background:#E8DDD2;border-color:#DDD0C1;color:#8C7969}
.fe-root .fe-save{border-color:#BFAE98;background:transparent}
.fe-root .fe-text-button{background:transparent;border-color:transparent;color:var(--fe-accent)}
.fe-root .fe-text-button:hover:not(:disabled){background:#F1E5DA;border-color:transparent}

/* Template identity and publishing precede the editing surface. */
.fe-toolbar{display:flex;align-items:center;gap:24px;padding:19px 0;border-top:1px solid #988674;border-bottom:1px solid var(--fe-line)}
.fe-form-picker{flex:0 1 310px;min-width:180px}
.fe-form-picker>label{display:block;margin-bottom:6px;color:var(--fe-sub);font-size:11px;letter-spacing:.08em}
.fe-form-picker select{font-size:18px;font-weight:600;min-height:45px;padding:7px 33px 7px 10px;border-color:transparent;background-color:transparent;margin-left:-10px;width:calc(100% + 10px)}
.fe-form-picker select:hover:not(:disabled){background:var(--fe-sheet);border-color:var(--fe-line)}
.fe-version-note{display:flex;flex:1;flex-direction:column;gap:5px;min-width:155px;padding-left:22px;border-left:1px solid var(--fe-line);font-size:11px}
.fe-version-note strong{font-weight:500;color:var(--fe-olive)}
.fe-version-note strong::before{content:'';display:inline-block;width:5px;height:5px;margin:0 7px 2px 0;border-radius:50%;background:var(--fe-olive)}
.fe-version-note>span{color:var(--fe-sub)}
.fe-form-context{display:flex;flex-wrap:wrap;gap:6px 22px;padding:10px 0;color:var(--fe-sub);font-size:11px;line-height:1.7;border-bottom:1px solid var(--fe-line)}
.fe-form-context strong{font-weight:500;color:var(--fe-ink)}
.fe-toolbar-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.fe-toolbar-actions .fe-primary span{margin-left:9px}
.fe-editor-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:13px 0 18px;min-height:24px}
.fe-editor-intro p{margin:0;color:var(--fe-sub);font-size:12px}
.fe-view-switch{display:none;flex-shrink:0;gap:2px;padding:3px;border:1px solid var(--fe-line);border-radius:6px;background:#ECE5DA}
.fe-view-switch button{border:0;background:transparent;padding:7px 13px;font-size:12px;min-height:36px}
.fe-view-switch button[aria-pressed=true]{background:var(--fe-sheet);color:var(--fe-ink);box-shadow:0 1px 3px #342E2810}
.fe-message:empty{display:none}
.fe-message{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 15px;margin-top:13px;border-left:3px solid var(--fe-accent);background:#F4E4DA;color:#7B3320;font-size:13px}

/* Component tray: visible before the long form, with every existing action. */
.fe-library{padding:0 13px;margin:0 0 20px;border:1px solid var(--fe-line);border-radius:7px;background:#EFE8DD}
.fe-root summary{min-height:44px;padding:11px 0;cursor:pointer;list-style:none;font-size:13px;line-height:1.6;font-weight:500}
.fe-root summary::-webkit-details-marker{display:none}
.fe-library>summary{display:flex;align-items:center;gap:9px;color:var(--fe-accent)}
.fe-library>summary>span{font-size:21px;font-weight:400;line-height:1;transition:transform .16s ease}
.fe-library[open]>summary>span{transform:none}
.fe-library>summary small{font-size:11px;font-weight:400;color:var(--fe-sub);margin-left:auto}
.fe-library-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;padding-bottom:12px}
.fe-root .fe-library-grid button{font-size:12px;min-height:42px;padding:7px 5px;white-space:normal;background:var(--fe-sheet);border-color:#DDD2C3;border-radius:4px}
.fe-root .fe-library-grid button:hover:not(:disabled){background:#FAEDE1;border-color:#AE4B2C;color:var(--fe-accent)}

/* Numbered paper columns: order, properties, and a working form preview. */
.fe-workspace{display:grid;grid-template-columns:minmax(540px,1fr) minmax(275px,330px);gap:22px;align-items:start}
.fe-compose{display:grid;grid-template-columns:minmax(255px,1fr) minmax(255px,1fr);min-width:0;background:var(--fe-sheet);border:1px solid var(--fe-line);border-radius:7px;overflow:hidden}
.fe-outline{min-width:0;padding:0 14px;border-right:1px solid var(--fe-line)}
.fe-section-title{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:57px;border-bottom:1px solid var(--fe-line);margin-bottom:0}
.fe-section-title>div{display:flex;gap:10px;align-items:baseline;min-width:0}
.fe-section-title>span{font-size:11px;color:var(--fe-sub);white-space:nowrap}
.fe-section-index{font:italic 15px/1 Georgia,'Times New Roman',serif;color:#9F795C;letter-spacing:.03em}
.fe-component-list{list-style:none;padding:0;margin:0;max-height:438px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#CDBFAB transparent;overscroll-behavior:contain}
.fe-component{display:flex;align-items:center;min-width:0;position:relative;border-bottom:1px solid #EAE3D8}
.fe-component:last-child{border-bottom:0}
.fe-component.is-selected{background:#F3E7DA;box-shadow:inset 2px 0 var(--fe-accent)}
.fe-root .fe-select-component{display:flex;flex:1;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:58px;padding:10px 7px;border:0;background:transparent;text-align:left;border-radius:0}
.fe-root .fe-select-component:hover:not(:disabled){background:#F4EEE4}
.fe-root .is-selected .fe-select-component:hover:not(:disabled){background:#F0E0CF}
.fe-component-number{flex:0 0 19px;font:12px/1.5 Georgia,'Times New Roman',serif;color:#A38E78;text-align:center}
.fe-component-text{display:flex;min-width:0;flex-direction:column;gap:3px}
.fe-component-text strong{font-size:13px;line-height:1.5;font-weight:500}
.fe-component-text small{font-size:10px;line-height:1.45;color:var(--fe-sub)}
.fe-order-actions{display:flex;flex:0 0 auto;gap:0;margin-right:2px}
.fe-root .fe-order-actions button{width:29px;min-height:38px;padding:0;border:0;background:transparent;border-radius:4px;font-size:15px;color:#8F7E6B}
.fe-root .fe-order-actions button:hover:not(:disabled){background:#E7D9C7;color:var(--fe-accent)}
.fe-root .fe-order-actions button:disabled{color:#C9BFAF;opacity:1}
.fe-hidden{border-top:1px solid var(--fe-line);margin-top:0}
.fe-hidden summary{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--fe-sub)}
.fe-hidden summary::before{content:'+';font-size:16px;font-weight:400;width:12px;text-align:center;color:#93816B}
.fe-hidden[open] summary::before{content:'−'}
.fe-hidden summary>span{font:11px/20px Georgia,serif;min-width:20px;padding:0 5px;text-align:center;background:var(--fe-paper);border-radius:3px;margin-left:auto}
.fe-hidden>p{font-size:11px;line-height:1.7;color:var(--fe-sub);margin:0 0 10px}
.fe-hidden .fe-component-list{max-height:230px;margin-bottom:10px}
.fe-component.is-hidden .fe-component-text{color:#827565}
.fe-root .fe-open-properties{display:none}
.fe-properties{padding:0 19px 18px;min-width:0;max-height:620px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#CDBFAB transparent;align-self:start}
.fe-properties>[data-fe-properties]{padding-top:19px}
.fe-property-heading{margin-bottom:18px}
.fe-property-heading>span{display:block;font-size:11px;color:var(--fe-accent);margin-bottom:7px}
.fe-property-heading>strong{display:block;font-family:var(--font-display,'Songti SC','SimSun',serif);font-weight:500;font-size:21px;line-height:1.5;letter-spacing:.02em}
.fe-property-summary{padding:23px 17px;background:var(--fe-paper);border:1px solid var(--fe-line);border-radius:5px}
.fe-fixed-mark{display:block;font:italic 30px/1.2 Georgia,serif;color:#A8957E;margin-bottom:17px}
.fe-property-summary p{font-size:12px;color:var(--fe-sub);line-height:1.9;margin:0}
.fe-input-label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;font-size:12px}
.fe-input-label>span{color:var(--fe-sub)}
.fe-check-row{display:flex;gap:9px;align-items:center;min-height:39px;padding:5px 0;font-size:12px;cursor:pointer;line-height:1.6}
.fe-two-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}
.fe-sources{border:0;border-top:1px solid var(--fe-line);padding:11px 0 0;margin:13px 0 0}
.fe-sources legend{font-size:12px;color:var(--fe-sub);padding:0 8px 0 0}
.fe-lock{padding:10px 12px;margin:15px 0;border-left:2px solid #AC8A69;background:#F4EFE7;color:#796B59;font-size:11px;line-height:1.9}
.fe-muted{color:var(--fe-sub);font-size:12px;line-height:1.8}
.fe-footnote{color:var(--fe-sub);font-size:11px;line-height:1.9;border-top:1px solid var(--fe-line);padding-top:13px;margin:19px 0 0}
.fe-details{border-top:1px solid var(--fe-line);margin-top:14px}
.fe-details>summary{font-size:12px;color:var(--fe-sub)}
.fe-details>summary::after{content:'+';float:right;color:#A28C73;margin-left:8px}
.fe-details[open]>summary::after{content:'−'}
.fe-details pre{font:11px/1.9 var(--font-body,'PingFang SC','Microsoft YaHei',sans-serif);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;background:var(--fe-paper);padding:12px;margin:0;border-radius:4px}
.fe-details p{font-size:11px;line-height:1.85}

.fe-preview-area{position:sticky;top:22px;min-width:0}
.fe-preview-caption{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:43px;margin-bottom:14px}
.fe-preview-caption>div{display:flex;align-items:baseline;gap:10px;flex-shrink:0}
.fe-preview-caption strong{font-size:14px;font-weight:600}
.fe-preview-caption>span{font-size:10px;color:var(--fe-sub);text-align:right;max-width:130px}
.fe-phone{max-width:370px;margin:auto;border:1px solid #CFBEA8;border-radius:12px;overflow:hidden;background:var(--fe-paper);box-shadow:0 5px 15px #6D573408}
.fe-phone-top{display:flex;align-items:center;justify-content:space-between;padding:13px 18px 9px;border-bottom:1px solid var(--fe-line);font-size:11px;color:#6B5C4B}
.fe-phone-top i{font-style:normal;font-size:9px;color:#9F8E79;margin-left:5px;padding-left:7px;border-left:1px solid #CFC1AE}
.fe-preview-title{padding:18px 19px 20px;border-bottom:1px solid var(--fe-line)}
.fe-preview-title>span{font-size:9px;letter-spacing:.08em;color:var(--fe-accent)}
.fe-preview-title h3{font-family:var(--font-display,'Songti SC','SimSun',serif);font-size:25px;font-weight:500;line-height:1.4;letter-spacing:.02em;margin-top:7px}
.fe-preview-title p{font-size:11px;color:var(--fe-sub);margin:7px 0 0}
.fe-phone-fields{display:block;width:100%;min-width:0;max-height:430px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#CDBFAB transparent;overscroll-behavior:contain;padding:0 18px;margin:0;border:0;background:var(--fe-sheet)}
.fe-preview-field{padding:17px 0;border-bottom:1px solid var(--fe-line)}
.fe-preview-field:last-child{border:0}
.fe-preview-field>label{display:block;font-size:12px;font-weight:500;margin-bottom:9px;line-height:1.6}
.fe-preview-field>label>b{font-weight:500;color:var(--fe-accent);margin-left:2px}
.fe-preview-hint{font-size:11px;color:var(--fe-sub);line-height:1.85;margin:0 0 10px;white-space:pre-wrap}
.fe-preview-fixed{font-size:12px;color:#8A7963;padding:11px 12px;background:var(--fe-paper);border-radius:4px;white-space:pre-wrap}
.fe-root .fe-preview-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;min-height:88px;padding:13px;border:1px dashed #BCAB94;border-radius:5px;background:#F5EFE5;color:#796A56;text-align:center;font-size:12px}
.fe-preview-upload>span{font:26px/1 Georgia,serif;color:#9C6D49}
.fe-preview-upload>small{font-size:10px;color:var(--fe-sub)}
.fe-root .fe-preview-upload-sources{gap:0;padding:0;overflow:hidden}
.fe-preview-source-options{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%}
.fe-preview-source{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:88px;padding:14px 8px;line-height:1.6}
.fe-preview-source+.fe-preview-source{border-left:1px solid #D8CDBD}
.fe-preview-source-icon{display:flex;align-items:center;justify-content:center;color:#9C6D49}
.fe-preview-source-icon svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fe-preview-upload-sources>small{width:100%;padding:7px 8px;border-top:1px solid #E2DACF}
.fe-preview-source-empty{padding:20px 10px;color:var(--fe-sub)}
.fe-preview-checks{padding:0;list-style:none;font-size:11px;line-height:2;color:var(--fe-sub);margin:0}
.fe-preview-options{max-height:210px;overflow:auto;scrollbar-width:thin}
.fe-preview-table{padding:12px;background:var(--fe-paper);border-radius:4px}
.fe-preview-bottom{padding:12px 8px;border-top:1px solid var(--fe-line);font-size:10px;letter-spacing:.02em;text-align:center;color:#8C7D69;background:var(--fe-paper)}
.fe-preview-bottom span{color:#C0AF97;padding:0 5px}
.fe-history{display:flex;align-items:flex-start;gap:24px;border-top:1px solid var(--fe-line);margin-top:25px;padding:19px 0 2px}
.fe-history>div:first-child{flex:0 1 235px}
.fe-history h3{display:flex;align-items:baseline;gap:10px;font-size:13px}
.fe-history p{font-size:11px;color:var(--fe-sub);line-height:1.8;margin:7px 0 0}
.fe-history-list{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:1;min-width:0}
.fe-root .fe-history-list button{font-size:11px;min-height:39px;padding:8px 11px;background:transparent;border-radius:4px}
.fe-history-list button>strong{font:14px/1.4 Georgia,serif;color:var(--fe-accent)}
.fe-history-list button>span{color:var(--fe-sub);margin-left:7px}
.fe-scope-note{font-size:10px;color:#877A69;line-height:1.8;margin:15px 0 0}
.fe-empty{padding:45px 20px;text-align:center;color:var(--fe-sub);font-size:13px}
.fe-empty button{display:block;margin:16px auto 0}
.fe-root .fe-publish-dialog{width:calc(100% - 40px);max-width:480px;padding:30px;border:1px solid var(--fe-line);border-top:3px solid var(--fe-accent);border-radius:8px;background:var(--fe-sheet);color:var(--fe-ink);box-shadow:0 18px 70px #342E2830}
.fe-publish-dialog::backdrop{background:#342E286B}
.fe-dialog-kicker{display:block;font-size:10px;letter-spacing:.1em;color:var(--fe-accent);margin-bottom:15px}
.fe-publish-dialog h3{font-family:var(--font-display,'Songti SC','SimSun',serif);font-size:26px;font-weight:500;line-height:1.6}
.fe-publish-dialog p{font-size:13px;line-height:1.9;color:var(--fe-sub);margin:15px 0 25px}
.fe-dialog-actions{display:flex;justify-content:flex-end;gap:9px}

@container(max-width:980px){
 .fe-workspace{display:block}.fe-preview-area{display:none;position:static}.fe-view-switch{display:flex}
 .fe-show-preview .fe-compose,.fe-show-preview .fe-library{display:none}.fe-show-preview .fe-preview-area{display:block;max-width:420px;margin:0 auto}
 .fe-toolbar{gap:17px;flex-wrap:wrap}.fe-form-picker{flex:1;min-width:190px}.fe-version-note{flex:1;min-width:155px}.fe-toolbar-actions{margin-left:auto}
 .fe-library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.fe-compose{grid-template-columns:minmax(245px,1fr) minmax(245px,1fr)}
 .fe-component-list{max-height:438px}.fe-phone-fields{max-height:590px}.fe-properties{padding-left:22px;padding-right:22px}
}
@container(max-width:620px){
 .fe-toolbar{padding:15px 0;gap:13px}.fe-form-picker{flex:1 1 100%;min-width:0}.fe-form-picker select{font-size:20px}
 .fe-version-note{flex:1 1 100%;flex-direction:row;gap:11px;border-left:0;padding-left:0;font-size:11px}.fe-toolbar-actions{width:100%;margin:0;gap:8px}.fe-toolbar-actions button{flex:1}
 .fe-editor-intro{display:block;margin:13px 0 15px}.fe-editor-intro p{line-height:1.8}.fe-view-switch{width:100%;margin-top:13px}.fe-view-switch button{flex:1;min-height:42px}
 .fe-library{padding-left:11px;padding-right:11px;margin-bottom:16px}.fe-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.fe-root .fe-library-grid button{min-height:44px;font-size:12px}
 .fe-compose{display:block}.fe-outline{border-right:0;border-bottom:1px solid var(--fe-line);padding:0 12px 13px}.fe-section-title{min-height:53px}.fe-component-list{max-height:292px}.fe-hidden .fe-component-list{max-height:200px}
 .fe-root .fe-order-actions button{width:44px;min-height:44px}.fe-root .fe-open-properties{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:10px;font-size:12px;color:var(--fe-accent);background:var(--fe-paper)}
 .fe-properties{padding:0 16px 18px;max-height:none;overflow-y:visible;scroll-margin-top:20px}.fe-properties>[data-fe-properties]{padding-top:17px}.fe-property-summary{padding:19px 16px}
 .fe-root input,.fe-root textarea,.fe-root select{font-size:16px}.fe-two-inputs{grid-template-columns:1fr 1fr}.fe-check-row{min-height:44px;font-size:13px}.fe-phone-fields{max-height:510px}
 .fe-history{display:block;padding-top:17px}.fe-history-list{margin-top:13px}.fe-root .fe-history-list button{min-height:44px}.fe-dialog-actions{flex-wrap:wrap}.fe-dialog-actions button{flex:1}.fe-root .fe-publish-dialog{padding:23px}
}
@media(any-pointer:coarse){.fe-root .fe-order-actions button{min-width:44px;min-height:44px}.fe-root .fe-check-row,.fe-root .fe-library-grid button,.fe-root .fe-history-list button,.fe-root .fe-view-switch button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.fe-root button,.fe-library>summary>span{transition:none}}

.fe-quantity-unit{display:flex;gap:10px;align-items:center}.fe-quantity-unit input{flex:1;min-width:0}.fe-quantity-unit select{flex:0 0 110px;width:110px}

.fe-text-selection-options{max-height:300px;overflow-y:auto}.fe-text-selection-options .fe-check-row{min-height:44px;overflow-wrap:anywhere}.fe-preview-multiselect summary{overflow-wrap:anywhere}
