.fd-root{--fd-ink:#183b59;--fd-blue:#175aa8;--fd-line:#dce4ec;--fd-muted:#65768a;color:var(--fd-ink);min-width:0;padding-bottom:24px;font-size:14px}.fd-root *{box-sizing:border-box}.fd-root button,.fd-root input,.fd-root textarea,.fd-root select{font:inherit}.fd-root button{min-height:40px;padding:9px 15px;border:1px solid var(--fd-line);border-radius:9px;background:white;color:var(--fd-ink);cursor:pointer;font-weight:600}.fd-root button:disabled{opacity:.45;cursor:default}.fd-root button.fd-primary{background:var(--fd-blue);border-color:var(--fd-blue);color:white}.fd-root button.fd-danger{color:#a52437}.fd-root label{display:flex;flex-direction:column;gap:7px;font-weight:600}.fd-root input:not([type=checkbox]),.fd-root select,.fd-root textarea{width:100%;border:1px solid #b8c7d7;border-radius:7px;padding:10px;background:white;color:var(--fd-ink);min-height:42px;font-weight:400}.fd-root textarea{resize:vertical;line-height:1.6}.fd-root p{line-height:1.6}.fd-root h2{font-size:21px;line-height:1.5;margin:0 0 5px}.fd-root h3{font-size:16px;line-height:1.5;margin:0 0 12px}.fd-root small,.fd-root p{color:var(--fd-muted)}.fd-local{background:#fff7df;border:1px solid #f3dfab;border-radius:9px;padding:10px 14px;display:flex;flex-wrap:wrap;gap:10px;font-size:12px;margin-bottom:22px}.fd-home-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.fd-home-head p{margin:0}.fd-tabs{display:flex;gap:20px;border-bottom:1px solid var(--fd-line);margin-bottom:22px}.fd-root .fd-tabs button{border:0;border-radius:0;padding:12px 3px;color:var(--fd-muted)}.fd-root .fd-tabs button[aria-selected=true]{border-bottom:3px solid var(--fd-blue);color:var(--fd-blue)}.fd-tabs b{margin-left:6px}.fd-card-list{display:grid;gap:12px}.fd-root .fd-card{width:100%;display:flex;align-items:center;gap:16px;padding:20px;text-align:left;border:1px solid var(--fd-line);border-radius:12px;background:white;min-width:0}.fd-card>div:nth-child(2){flex:1;min-width:0}.fd-card h3,.fd-card p{margin:4px 0;overflow-wrap:anywhere}.fd-file-icon{display:grid;place-items:center;background:#edf4fc;border-radius:10px;width:48px;height:58px;font-size:29px;flex-shrink:0}.fd-card-actions{display:flex;gap:8px}.fd-state{background:#eaf1ff;color:#175aa8;border-radius:18px;font-size:12px;padding:7px 12px;white-space:nowrap}.fd-state.done{background:#e8f6ef;color:#21714e}.fd-empty{text-align:center;padding:65px 15px;background:white;border:1px dashed #bdccdb;border-radius:12px}.fd-empty>span{font-size:42px;color:#b0bfd2}.fd-empty h3{margin:16px 0 8px}.fd-panel{border:1px solid var(--fd-line);border-radius:12px;padding:20px;background:white;min-width:0}.fd-panel form{display:grid;gap:16px}.fd-panel label{margin-bottom:16px}.fd-panel p{margin:5px 0 16px}.fd-panel [data-fd-request-form]{grid-template-columns:1fr 1fr}.fd-panel [data-fd-request-form]>p,.fd-panel [data-fd-request-form]>button{grid-column:1/-1}.fd-root [data-fd-issue-panel]:not(:empty){margin-top:22px;scroll-margin-top:20px}.fd-steps{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--fd-muted);margin-bottom:20px}.fd-steps b{font-size:13px}.fd-editor-settings{display:grid;grid-template-columns:1fr 230px 100px;gap:16px;align-items:end;margin-bottom:12px}.fd-root .fd-check{flex-direction:row;align-items:flex-start;gap:9px;font-size:13px;font-weight:400;line-height:1.6}.fd-check input{margin-top:3px;min-width:18px;min-height:18px;accent-color:var(--fd-blue)}.fd-root .fd-note{font-size:12px;line-height:1.7}.fd-upload{padding:65px 20px;border:2px dashed #b8c9db;border-radius:14px;text-align:center;align-items:center;background:#f9fbfe;margin:24px 0}.fd-upload input{max-width:360px;margin:20px 0}.fd-field-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:15px 0}.fd-field-tools span{font-size:12px;color:var(--fd-muted)}.fd-editor-grid,.fd-document-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.fd-preview{min-width:0;border:1px solid var(--fd-line);border-radius:12px;background:#e9eef4;overflow:hidden}.fd-preview-bar{display:flex;justify-content:space-between;align-items:center;background:white;padding:10px 14px;border-bottom:1px solid var(--fd-line);gap:8px}.fd-preview-bar>div{display:flex;gap:4px;align-items:center}.fd-root .fd-preview-bar button{padding:5px 9px;min-height:32px}.fd-preview-bar output{font-size:12px;min-width:45px;text-align:center}.fd-pages{padding:16px;overflow-x:auto}.fd-paper{position:relative;background:white;box-shadow:0 2px 10px #16354c18;width:calc(100% * var(--fd-zoom,1));margin:0 auto 16px;flex-shrink:0;touch-action:pan-y}.fd-paper:last-child{margin-bottom:0}.fd-paper>canvas{display:block;width:100%;height:100%}.fd-overlay{position:absolute;inset:0;pointer-events:none}.fd-root .fd-field{position:absolute;border:1px solid #3184da;background:#eaf3ffb8;border-radius:2px;min-height:0;padding:1px 3px;font-size:clamp(7px,.85vw,11px);line-height:1.2;text-align:left;pointer-events:auto;overflow:hidden;white-space:normal;overflow-wrap:anywhere;color:#164b86;touch-action:none}.fd-root .fd-field.selected{outline:2px solid #165aa8;background:#dcecffd9}.fd-field [data-fd-resize]{position:absolute;right:0;bottom:0;width:10px;height:10px;background:#165aa8;cursor:nwse-resize}.fd-root .fd-field-value{border:0;border-radius:0;background:transparent;color:#142f44;display:flex;align-items:center;pointer-events:none}.fd-root .fd-field-value.fd-mask{background:white}.fd-field-value img{object-fit:contain;width:100%;height:100%}.fd-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.fd-coordinates label{font-size:12px}.fd-actions{position:sticky;bottom:0;z-index:6;display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid var(--fd-line);padding:15px 0;margin-top:20px;}.fd-actions>span{font-size:12px;color:var(--fd-muted)}.fd-message{padding:12px;background:#fff0ed;border:1px solid #f1c8bf;border-radius:8px;color:#a33d2c!important;overflow-wrap:anywhere}.fd-detail-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.fd-detail-head>div{flex:1}.fd-detail-head small{font-size:12px}.fd-sign-progress{display:flex;align-items:center;gap:10px;margin:20px 0;color:var(--fd-muted);font-size:13px}.fd-sign-progress span{background:#eef2f6;padding:9px 15px;border-radius:8px}.fd-sign-progress .current{background:#e9f1ff;color:#155ca5}.fd-sign-progress .done{background:#e9f6ef;color:#21704d}.fd-sign-box{border-top:1px solid var(--fd-line);margin-top:22px;padding-top:22px}.fd-sign-box canvas{width:100%;height:auto;aspect-ratio:640/220;display:block;border:1px solid #b9cadc;border-radius:8px;background:#fbfdff;touch-action:none}.fd-sign-box>button{margin:8px 0 15px}.fd-panel details{margin:20px 0;font-size:12px;overflow-wrap:anywhere}.fd-panel details summary{cursor:pointer;font-weight:600}.fd-panel code{word-break:break-all;font-size:10px}.fd-summary{display:grid;grid-template-columns:80px 1fr;gap:10px;font-size:13px}.fd-summary dt{color:var(--fd-muted)}.fd-summary dd{margin:0;overflow-wrap:anywhere}.fd-field-error,.fd-required{color:#aa293a!important}.fd-fill-panel{align-self:start}.fd-root .fd-field-error:empty{display:none}
@media(max-width:1100px){.fd-editor-grid,.fd-document-grid{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.fd-editor-settings{grid-template-columns:1fr 210px}.fd-editor-settings>.fd-check{grid-column:1/-1}.fd-card-actions{flex-direction:column}}
@media(max-width:800px){.fd-root{font-size:14px;padding-bottom:70px}.fd-home-head{display:block}.fd-home-head button{width:100%;margin-top:14px}.fd-root h2{font-size:20px}.fd-local{margin-bottom:18px}.fd-card-list{gap:10px}.fd-root .fd-card{padding:15px;flex-wrap:wrap;gap:12px}.fd-card-actions{width:100%;flex-direction:row}.fd-card-actions button{flex:1;padding:9px}.fd-root .fd-card h3{font-size:15px}.fd-card p{font-size:12px}.fd-file-icon{width:36px;height:46px;font-size:24px}.fd-steps{gap:8px}.fd-steps b{font-size:11px}.fd-editor-settings{grid-template-columns:1fr;gap:12px}.fd-editor-grid,.fd-document-grid{grid-template-columns:1fr;gap:18px}.fd-panel{padding:17px}.fd-panel [data-fd-request-form]{grid-template-columns:1fr}.fd-root input:not([type=checkbox]),.fd-root textarea,.fd-root select{font-size:16px}.fd-preview-bar{padding:9px}.fd-preview-bar>b{font-size:12px}.fd-preview-bar>div{gap:2px}.fd-pages{padding:9px}.fd-inspector{position:static}.fd-field-tools{gap:6px}.fd-root .fd-field-tools button{padding:7px 10px;min-height:36px;font-size:12px}.fd-root .fd-field{font-size:6px;padding:0 1px}.fd-root .fd-field-value{font-size:6px}.fd-actions{bottom:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap}.fd-actions>span{font-size:11px;flex:1}.fd-actions>.fd-primary{flex:1;min-width:180px}.fd-detail-head{gap:10px}.fd-detail-head>button{padding:6px 9px;min-height:34px;font-size:12px}.fd-detail-head .fd-state{width:max-content}.fd-sign-progress{font-size:12px;gap:8px}.fd-sign-progress span{padding:8px 12px}.fd-preview-bar button{font-size:12px}.fd-document-grid .fd-preview{max-width:100%}}

/* Template editor only: original WORK shell and employee signing surface stay shared. */
.fd-root.fd-editor-view{display:flex;flex-direction:column;gap:12px;padding-bottom:0}
.fd-editor-view>.fd-local{margin:0;padding:6px 12px}
.fd-editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;position:sticky;top:0;z-index:10;background:#fff;padding:10px 0;border-bottom:1px solid var(--fd-line)}
.fd-editor-header>div:first-child{min-width:0;flex:1}.fd-editor-header small{font-size:12px}.fd-editor-header h2{font-size:20px;overflow-wrap:anywhere;margin:2px 0}.fd-editor-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.fd-editor-header .fd-message{flex-basis:100%;margin:0}.fd-editor-header [data-fd-save-status]{font-size:12px;color:var(--fd-muted)}.fd-editor-header [data-state=error]{color:#a33d2c}.fd-editor-header [data-state=saved]{color:#21714e}.fd-editor-header [data-state=saving]{color:var(--fd-blue)}
.fd-editor-view .fd-editor-settings{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0}.fd-editor-settings>.fd-template-name{flex:1 1 200px;min-width:180px}.fd-editor-settings>.fd-signing-mode{flex:0 1 300px;min-width:300px}.fd-editor-settings>.fd-signing-order{flex:0 1 210px;min-width:210px}.fd-editor-settings>.fd-editor-checks{flex:0 0 auto;display:grid;gap:8px;padding-bottom:6px}.fd-editor-view>.fd-note{margin:0}
.fd-editor-tools{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding:8px 0;border-block:1px solid var(--fd-line)}.fd-editor-tools>div{display:flex;gap:5px;flex-wrap:wrap}.fd-root .fd-editor-tools button{padding:6px 9px;min-height:34px;font-size:12px}.fd-editor-tools button[aria-pressed=true]{background:#e8f1ff;border-color:var(--fd-blue);color:var(--fd-blue)}.fd-editor-tools>[data-fd-add-hint]{flex:1 1 340px;font-size:12px;color:var(--fd-muted)}.fd-editor-tools output{font-size:12px;white-space:nowrap}
.fd-editor-view .fd-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:stretch;flex:1;min-height:0}.fd-editor-view .fd-preview{display:flex;flex-direction:column;min-height:0}.fd-editor-view .fd-pages{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.fd-editor-view .fd-preview-bar{flex-shrink:0}.fd-editor-view .fd-inspector{min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}.fd-editor-view .fd-panel label{margin-bottom:10px}.fd-selection-head{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:10px}.fd-selection-head h3{margin:0}.fd-selected-name{font-weight:700;overflow-wrap:anywhere;color:var(--fd-ink)!important}.fd-field-list{margin-top:20px}.fd-field-list summary{cursor:pointer;font-weight:600;margin-bottom:10px}.fd-field-list label span{min-width:0;overflow-wrap:anywhere}.fd-field-list small{display:block;font-size:11px;margin-top:3px}
.fd-editor-view .fd-field{font-size:11px;line-height:1.25;overflow:visible;white-space:nowrap;padding:0;cursor:move}.fd-field-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 3px;pointer-events:none}.fd-editor-view .fd-field.primary{z-index:5}.fd-editor-view .fd-field.primary>.fd-field-label{position:absolute;bottom:calc(100% + 3px);left:0;max-width:280px;width:max-content;white-space:normal;overflow:visible;overflow-wrap:anywhere;background:#175aa8;color:white;border-radius:4px;padding:4px 7px;box-shadow:0 2px 6px #16354c20}
@media(min-width:801px){.fd-root.fd-editor-view{height:calc(100dvh - 214px);min-height:550px}.fd-editor-view .fd-editor-grid{min-height:260px}}
@media(max-width:1100px) and (min-width:801px){.fd-editor-view .fd-editor-grid{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:800px){.fd-root.fd-editor-view{height:auto;min-height:0;padding-bottom:80px}.fd-editor-view .fd-editor-settings{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.fd-editor-settings>.fd-template-name,.fd-editor-settings>.fd-signing-mode,.fd-editor-settings>.fd-signing-order{min-width:0;width:100%}.fd-editor-settings>.fd-editor-checks{grid-column:auto}.fd-editor-header{top:0}.fd-editor-header h2{font-size:18px}.fd-editor-actions{width:100%}.fd-editor-actions button{flex:1}.fd-editor-view .fd-editor-grid{grid-template-columns:minmax(0,1fr)}.fd-editor-view .fd-preview{height:min(70dvh,620px);min-height:300px}.fd-editor-view .fd-inspector{overflow:visible;max-height:none}.fd-editor-view .fd-field{font-size:11px}.fd-editor-tools .fd-check{width:100%}}

/* Editor viewport only; shared WORK shell and employee document styles stay unchanged. */
@media(min-width:801px){
 .shell>main:has(.fd-root.fd-editor-view){height:100dvh;overflow:hidden;min-width:0}
 .desktop-page:has(>.fd-editor-view){height:100dvh;min-height:0;overflow:hidden;padding:12px 20px;display:flex;flex-direction:column;gap:0}
 .desktop-page:has(>.fd-editor-view)>header{display:none}
 .fd-root.fd-editor-view{height:100%;min-height:0;gap:8px;overflow:hidden}
 .fd-editor-view .fd-editor-grid{min-height:0;flex:1 1 0;grid-template-columns:minmax(0,1fr) 280px;gap:12px}
 .fd-editor-view .fd-editor-header{position:static;padding:0 0 6px;flex:0 0 auto}
 .fd-editor-header h2{font-size:16px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}
 .fd-editor-header small{display:none}
 .fd-editor-view .fd-editor-settings{display:grid;grid-template-columns:minmax(170px,1fr) 300px 210px auto;gap:8px;flex:0 0 auto}
 .fd-editor-settings>.fd-template-name{min-width:0}
 .fd-editor-view .fd-editor-settings label{font-size:12px;gap:3px}
 .fd-editor-view .fd-editor-settings input:not([type=checkbox]),.fd-editor-view .fd-editor-settings select{min-height:36px;padding:6px 9px}
 .fd-editor-view .fd-editor-checks{gap:2px;padding:0}
 .fd-editor-tools{padding:5px 0;gap:4px 8px;flex-shrink:0}
 .fd-editor-tools>[data-fd-add-hint]{flex:1 1 auto;font-size:11px}
 .fd-editor-view .fd-preview,.fd-editor-view .fd-inspector{height:100%;min-height:0}
 .fd-editor-view .fd-pages{flex:1 1 0;min-width:0;min-height:0;overflow:auto;scrollbar-gutter:stable;position:relative}
 .fd-editor-view .fd-paper{max-width:none;flex:none;margin:0 auto 16px}
 .fd-editor-view .fd-inspector{overflow:auto}
}
@media(min-width:801px) and (max-width:1250px){.fd-editor-view .fd-editor-settings{grid-template-columns:minmax(160px,1fr) 300px 210px}.fd-editor-checks{grid-column:1/-1;display:flex!important;gap:16px!important}}
.fd-editor-view [hidden]{display:none!important}
.fd-editor-view .fd-paper{max-width:none}

/* Interaction controls are scoped to the template editor, never the output PDF. */
.fd-editor-view .fd-editor-tools{position:sticky;top:0;z-index:12;background:#fff}
.fd-editor-view .fd-editor-tools .fd-check{margin:0;white-space:nowrap;align-items:center}
.fd-editor-view .fd-editor-tools .fd-preflight{font-size:11px;color:#8a5300;background:#fff9e8;border-color:#e5d59f;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fd-editor-view .fd-inspector{padding:12px;font-size:12px;scrollbar-gutter:stable;align-self:stretch}
.fd-editor-view .fd-inspector input:not([type=checkbox]),.fd-editor-view .fd-inspector select{min-height:34px;padding:6px 8px;font-size:13px}
.fd-editor-view .fd-inspector label{gap:4px;margin-bottom:8px}
.fd-editor-view .fd-selected-name{font-size:12px;margin-bottom:8px}
.fd-editor-view .fd-selection-head h3{font-size:14px}
.fd-editor-view .fd-property-details,.fd-editor-view .fd-signing-help{margin:10px 0;border-top:1px solid var(--fd-line);padding-top:8px;font-size:12px}
.fd-editor-view .fd-property-details>summary,.fd-editor-view .fd-signing-help>summary{cursor:pointer;font-weight:600;margin-bottom:8px}
.fd-editor-view .fd-signing-help{background:#fffaec;padding:8px;border:1px solid #eedfb9;border-radius:7px}
.fd-editor-view .fd-signing-help p{font-size:12px;margin:0 0 7px}
.fd-editor-view .fd-signing-help button{font-size:12px;padding:5px 8px;min-height:32px;margin:2px}
.fd-editor-view .fd-error-target{outline:2px solid #b74332;outline-offset:2px}
.fd-editor-view .fd-editor-header .fd-message{font-size:12px;line-height:1.4;padding:6px 10px;max-height:46px;overflow:auto;flex-basis:100%}
.fd-editor-view .fd-type-icon{display:inline-grid;place-items:center;min-width:14px;margin-right:3px;font-size:11px;font-style:normal}
.fd-editor-view .fd-field[data-fd-type=date]{background:#edf8f4c9;border-color:#38826c}
.fd-editor-view .fd-field[data-fd-type=checkbox]{background:#fff5ddc9;border-color:#a77b25}
.fd-editor-view .fd-field[data-fd-type=signature]{background:#f2ebffc9;border-color:#7c56b2}
.fd-editor-view .fd-field.selected{outline:2px solid #175aa8;z-index:4}
.fd-editor-view .fd-field.primary{z-index:5}
.fd-editor-view .fd-field [data-fd-resize]{position:absolute;width:10px;height:10px;border:1px solid #fff;border-radius:2px;background:#175aa8;z-index:7;touch-action:none}
.fd-editor-view [data-fd-resize=nw]{left:-5px;top:-5px;right:auto;bottom:auto;cursor:nwse-resize}
.fd-editor-view [data-fd-resize=n]{left:calc(50% - 5px);top:-5px;right:auto;bottom:auto;cursor:ns-resize}
.fd-editor-view [data-fd-resize=ne]{right:-5px;top:-5px;left:auto;bottom:auto;cursor:nesw-resize}
.fd-editor-view [data-fd-resize=e]{right:-5px;top:calc(50% - 5px);left:auto;bottom:auto;cursor:ew-resize}
.fd-editor-view [data-fd-resize=se]{right:-5px;bottom:-5px;left:auto;top:auto;cursor:nwse-resize}
.fd-editor-view [data-fd-resize=s]{left:calc(50% - 5px);bottom:-5px;right:auto;top:auto;cursor:ns-resize}
.fd-editor-view [data-fd-resize=sw]{left:-5px;bottom:-5px;right:auto;top:auto;cursor:nesw-resize}
.fd-editor-view [data-fd-resize=w]{left:-5px;top:calc(50% - 5px);right:auto;bottom:auto;cursor:ew-resize}
.fd-editor-view .fd-marquee{position:absolute;border:1px solid #175aa8;background:#175aa81a;z-index:15;pointer-events:none}
.fd-editor-view .fd-smart-guide{position:absolute;background:#c02d98;z-index:14;pointer-events:none}
.fd-editor-view .fd-guide-x{top:0;bottom:0;width:1px}
.fd-editor-view .fd-guide-y{left:0;right:0;height:1px}
.fd-editor-view .fd-control-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px dashed #175aa8;pointer-events:none;background:transparent}
@font-face{font-family:FreeDocInput;src:url('../assets/free-documents/NotoSansKR-Korean.ttf') format('truetype');font-display:swap}
.fd-editor-view .fd-type-icon svg,.fd-editor-view [data-fd-add-type] svg,.fd-editor-view .fd-field-list svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.4;vertical-align:middle;flex-shrink:0}
.fd-editor-view .fd-editor-modes{display:flex;gap:3px;flex-shrink:0}
.fd-editor-view .fd-editor-modes [aria-pressed=true]{background:#e8f1ff;color:var(--fd-blue);border-color:var(--fd-blue)}
.fd-editor-view .fd-tool-group{position:relative;flex-shrink:0;margin:0;min-width:0}
.fd-editor-view .fd-tool-group>div{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.fd-editor-view .fd-editor-tools{align-items:center;gap:8px;padding:6px 0}
.fd-editor-view .fd-tool-status{display:flex;align-items:center;gap:8px;flex:1 1 100%;font-size:11px;color:var(--fd-muted);min-width:0}
.fd-editor-view .fd-tool-status>[data-fd-add-hint]{flex:1;min-width:0}
.fd-editor-view .fd-tool-status output{white-space:nowrap}
.fd-editor-view .fd-tool-group[inert]{opacity:.45}
.fd-editor-view .fd-preview-notice{font-size:12px;padding:8px;border:1px solid #d9e5ef;background:#f1f6fc;border-radius:7px}
.fd-editor-view [data-fd-write-preview] form{display:grid;gap:10px}
.fd-editor-view [data-fd-write-preview] label{display:block;line-height:1.5}
.fd-editor-view [data-fd-write-preview] label>textarea,.fd-editor-view [data-fd-write-preview] label>input{display:block;margin-top:5px}
.fd-editor-view [data-fd-write-preview] label>.fd-required{display:inline;margin-left:3px}
.fd-editor-view [data-fd-write-preview] .fd-field-error{display:block}
.fd-editor-view [data-fd-write-preview] .fd-sign-box{margin-top:14px;padding-top:12px}
.fd-editor-view [data-fd-write-preview] .fd-field-error{font-size:11px;line-height:1.4}
.fd-editor-view.fd-writing-preview .fd-field-value{overflow:hidden;white-space:pre-wrap;border:0;outline:1px dashed #9aaebe;outline-offset:-1px;background:transparent;box-shadow:none;pointer-events:none;cursor:default}
.fd-editor-view.fd-writing-preview .fd-field-value.fd-mask{background:white}
.fd-editor-view.fd-writing-preview .fd-field-value[data-fd-fit=false]{outline:2px solid #b74332}
.fd-editor-view.fd-writing-preview .fd-field-value img{max-width:100%;max-height:100%}
@media(min-width:801px){.fd-editor-view .fd-editor-grid{align-items:stretch}.fd-editor-view .fd-inspector{height:100%}.fd-editor-tools [data-fd-add-hint]{flex:1 1 260px;min-width:0}}

/* Editor Workspace: permanent tools beside PDF. No popup layers or shared Shell changes. */
.fd-editor-view .fd-editor-grid{grid-template-columns:minmax(0,1fr) clamp(320px,31%,560px);gap:12px}
.fd-editor-view .fd-tool-panel{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 12px;background:#fff;display:flex;flex-direction:column;gap:10px}
.fd-editor-view .fd-tool-title{font-size:12px;letter-spacing:.06em;margin:0;color:var(--fd-muted)}
.fd-editor-view .fd-editor-tools{display:flex;flex-direction:column;align-items:stretch;position:static;padding:0;border:0;gap:8px;z-index:auto}
.fd-editor-view .fd-tool-group{margin:0;min-width:0}
.fd-editor-view .fd-tool-group h3{font-size:12px;margin:0 0 5px;color:var(--fd-ink)}
.fd-editor-view .fd-tool-group>div{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.fd-editor-view [data-fd-tool-group=insert]>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.fd-editor-view [data-fd-tool-group=insert] .fd-check{grid-column:1/-1}
.fd-editor-view .fd-editor-tools button{min-height:32px;padding:5px 6px;font-size:11px;border-radius:6px;min-width:0}
.fd-editor-view [data-fd-add-type]{cursor:grab;display:flex;align-items:center;justify-content:center;gap:4px}
.fd-editor-view [data-fd-add-type]:active{cursor:grabbing}
.fd-editor-view [data-fd-add-type][aria-pressed=true]{outline:2px solid #175aa8;outline-offset:-2px}
.fd-editor-view [data-fd-tool-group=edit]>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.fd-editor-view [data-fd-tool-group=arrange] .fd-align-buttons{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.fd-editor-view .fd-editor-tools .fd-check{margin:0;font-size:11px;min-height:23px}
.fd-editor-view .fd-tool-status{display:flex;flex-wrap:wrap;gap:4px;margin:0;font-size:11px;line-height:1.4;flex:none}
.fd-editor-view .fd-tool-status>[data-fd-add-hint]{flex:1 1 100%}
.fd-editor-view .fd-tool-status .fd-preflight{font-size:11px;padding:3px 6px;min-height:27px;max-width:none}
.fd-editor-view .fd-inspector{height:auto;min-height:0;overflow:visible;align-self:auto;padding:10px 0 0;border-top:1px solid var(--fd-line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;font-size:12px}
.fd-editor-view .fd-inspector>.fd-selection-head,.fd-editor-view .fd-inspector>.fd-coordinates,.fd-editor-view .fd-inspector>details,.fd-editor-view .fd-inspector>.fd-note,.fd-editor-view .fd-inspector>[data-fd-remove-field],.fd-editor-view .fd-inspector>[data-fd-write-preview]{grid-column:1/-1}
.fd-editor-view .fd-inspector label{margin:0;gap:3px;font-size:12px;min-width:0}
.fd-editor-view .fd-inspector input:not([type=checkbox]),.fd-editor-view .fd-inspector select{min-height:32px;padding:5px 6px;font-size:12px;min-width:0}
.fd-editor-view .fd-inspector .fd-check{align-items:center}
.fd-editor-view .fd-inspector .fd-selected-name,.fd-editor-view .fd-selection-head [data-fd-duplicate],.fd-editor-view .fd-inspector>[data-fd-remove-field]{display:none}
.fd-editor-view .fd-selection-head{margin:0}.fd-editor-view .fd-selection-head h3{font-size:13px}
.fd-editor-view .fd-inspector details{margin:0;padding-top:6px}.fd-editor-view .fd-coordinates{gap:6px 8px}
.fd-editor-view .fd-property-details>label{margin-top:7px}
.fd-editor-view .fd-template-settings{border-top:1px solid var(--fd-line);padding-top:8px;margin:0;font-size:12px}
.fd-editor-view .fd-template-settings>summary{cursor:pointer;font-weight:600;padding:4px 0}
.fd-editor-view .fd-template-settings .fd-editor-settings{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-top:8px}
.fd-editor-view .fd-template-settings .fd-editor-settings>*{min-width:0;width:100%;grid-column:auto}
.fd-editor-view .fd-template-settings .fd-editor-checks{display:flex!important;gap:8px!important;flex-wrap:wrap}
.fd-editor-view .fd-drop-preview{position:absolute;z-index:16;pointer-events:none;border:2px dashed #175aa8;background:#e8f1ffcf;color:#175aa8;font-size:11px;line-height:1.3;padding:2px;overflow:hidden}
.fd-editor-view.fd-writing-preview .fd-tool-panel>.fd-editor-tools{display:none}
.fd-editor-view .fd-preview-bar .fd-editor-modes button{font-size:12px;padding:5px 8px;min-height:32px}
.fd-editor-view .fd-editor-modes{flex:none}
@media(min-width:801px){
 .fd-root.fd-editor-view{gap:6px}
 .fd-editor-view .fd-editor-header{padding:0 0 5px;min-height:48px}
 .fd-editor-view .fd-editor-header h2{font-size:16px;margin:0}
 .fd-editor-view .fd-editor-actions button{min-height:34px;padding:6px 10px}
 .fd-editor-view .fd-editor-header output{font-size:11px}
}
@media(min-width:801px) and (max-width:1100px){.fd-editor-view .fd-editor-grid{grid-template-columns:minmax(0,1fr) 300px;gap:8px}.fd-editor-view .fd-tool-panel{padding:8px}.fd-editor-view .fd-preview-bar{flex-wrap:wrap}}
@media(max-width:800px){
 .fd-editor-view .fd-editor-grid{grid-template-columns:minmax(0,1fr)}
 .fd-editor-view .fd-tool-panel{height:auto;overflow:visible;max-height:none}
 .fd-editor-view .fd-preview-bar{flex-wrap:wrap}
 .fd-editor-view .fd-editor-modes{flex:none}
 .fd-editor-view .fd-editor-header .fd-editor-actions{flex-wrap:wrap}
 .fd-editor-view .fd-editor-settings{grid-template-columns:minmax(0,1fr)}
}

.fd-editor-view details:not([open])>:not(summary){display:none!important}
@media(max-width:800px){.fd-editor-view .fd-field [data-fd-resize]{width:12px;height:12px}}

.fd-editor-view .fd-tool-panel>*{flex:0 0 auto}
/* Field UX v2: scoped cards and annotated placement aids; no Worker/PDF output styles. */
.fd-editor-view .fd-tool-group,.fd-editor-view .fd-inspector,.fd-editor-view .fd-template-settings{background:#f5f8fc;border:1px solid #cddae7;border-radius:8px;padding:9px;margin:0}
.fd-editor-view .fd-tool-group h3,.fd-editor-view .fd-selection-head h3{border-left:3px solid #2868ad;padding-left:7px;font-weight:750;color:#183b59}
.fd-editor-view .fd-tool-panel{gap:8px}
.fd-editor-view .fd-editor-tools{gap:8px}
.fd-editor-view .fd-editor-tools button:not(:disabled){box-shadow:0 1px 2px #183b5914;border-color:#a7bfd7;background:#fff}
.fd-editor-view .fd-editor-tools [aria-pressed=true]{background:#e2edfc!important;border-color:#175aa8!important;color:#124d91}
.fd-editor-view [data-fd-tool-group=edit] button:not(:disabled){background:#eaf1fa;border-color:#8eaccb;color:#154d88}
.fd-editor-view [data-fd-tool-group=edit] [data-fd-delete]:not(:disabled){color:#a12d3b;border-color:#d9a3ab;background:#fff3f4}
.fd-editor-view [data-fd-date-preset]{grid-column:span 2}
.fd-editor-view .fd-date-help,.fd-editor-view .fd-snap-help{grid-column:1/-1;display:block;width:100%;font-size:10px;line-height:1.4;color:#506780}
.fd-editor-view .fd-tool-status{padding:5px 7px;border:1px solid #d5e0eb;border-radius:6px;background:#edf3fa;color:#254b70}
.fd-editor-view .fd-tool-status [data-fd-editor-count]{font-weight:700}
.fd-editor-view [data-fd-snap-status]:not(:empty){display:block;width:100%;color:#7c258b;font-weight:700}
.fd-editor-view .fd-field.selected{outline:3px solid #175aa8;box-shadow:0 0 0 2px #ffffffb3}
.fd-editor-view .fd-field.primary{outline-color:#094a9a}
.fd-editor-view .fd-smart-guide{background:#bb2d96}
.fd-editor-view .fd-smart-guide[data-kind=center]{background:transparent;border-color:#16817f;border-style:dashed;border-width:0}
.fd-editor-view .fd-guide-x[data-kind=center]{border-left-width:2px}
.fd-editor-view .fd-guide-y[data-kind=center]{border-top-width:2px}
.fd-editor-view .fd-smart-guide[data-kind=gap]{background:#b7660c}
.fd-editor-view .fd-smart-guide[data-kind=baseline]{background:#7755a6}
.fd-editor-view .fd-smart-guide>span{position:absolute;display:block;width:max-content;max-width:170px;padding:3px 5px;border-radius:4px;font-size:10px;font-style:normal;font-weight:650;background:#8c2374;color:white;white-space:nowrap;box-shadow:0 1px 4px #183b5926}
.fd-editor-view .fd-guide-x>span{left:4px}.fd-editor-view .fd-guide-y>span{top:4px}
.fd-editor-view .fd-smart-guide[data-kind=center]>span{background:#126e6c}
.fd-editor-view .fd-smart-guide[data-kind=gap]>span{background:#965308}
.fd-editor-view .fd-gap-guide{position:absolute;pointer-events:none;z-index:15;border:1px solid #b7660c}
.fd-editor-view .fd-gap-x{height:5px;border-top:0;transform:translateY(-50%)}
.fd-editor-view .fd-gap-y{width:5px;border-left:0;transform:translateX(-50%)}
.fd-editor-view .fd-fix-card{background:#fffdf4;border:1px solid #e3cc91;border-radius:5px;padding:7px;margin:6px 0}
.fd-editor-view .fd-fix-card>b{display:block;color:#785000}.fd-editor-view .fd-fix-card small{display:block;color:#72572a;line-height:1.6}
.fd-editor-view .fd-editor-header .fd-message{display:flex;align-items:center;gap:6px;max-height:56px;margin:0;flex-wrap:wrap}
.fd-editor-view .fd-editor-header .fd-message>b{color:#9e2938;white-space:nowrap}
.fd-editor-view .fd-inspector label:has([data-fd-prop=name]){grid-column:1/-1}
.fd-editor-view [data-fd-write-preview] form>label{background:#fff;border:1px solid #d5e0eb;border-radius:6px;padding:8px;font-weight:650;color:#183b59}
/* Persistent compact field manager: only name inputs participate in sequential Tab navigation. */
.fd-editor-view .fd-field-manager{background:#f5f8fc;border:1px solid #c1d2e4;border-radius:8px;padding:8px;margin:0}
.fd-editor-view .fd-template-settings>summary,.fd-editor-view .fd-field-manager>summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;list-style:none;font-size:13px;font-weight:750;color:#183b59;background:#eaf1fa;border:1px solid #c3d5e7;border-radius:6px;padding:9px;min-height:38px;cursor:pointer}
.fd-editor-view .fd-template-settings>summary::-webkit-details-marker,.fd-editor-view .fd-field-manager>summary::-webkit-details-marker{display:none}
.fd-editor-view .fd-template-settings>summary::before,.fd-editor-view .fd-field-manager>summary::before{content:'▸';color:#175aa8;font-size:14px;flex:none}
.fd-editor-view .fd-template-settings[open]>summary::before,.fd-editor-view .fd-field-manager[open]>summary::before{content:'▾'}
.fd-editor-view .fd-signing-state{display:inline-block;color:#8c5100;background:#fff4d9;border:1px solid #e2c483;padding:2px 5px;border-radius:5px;font-size:11px;font-weight:650}
.fd-editor-view .fd-list-help{font-size:10px;line-height:1.5;margin:7px 0;color:#536d87}
.fd-editor-view [data-fd-field-rows]{max-height:min(266px,33dvh);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:auto;border:1px solid #d2deeb;border-radius:6px;background:#fff;min-width:0}
.fd-editor-view .fd-manager-row{display:grid;grid-template-columns:18px 20px 18px minmax(0,1fr) 28px;gap:4px;align-items:center;min-height:37px;padding:3px 5px;border-bottom:1px solid #e4ebf3;min-width:0;cursor:pointer}
.fd-editor-view .fd-manager-row:last-child{border-bottom:0}
.fd-editor-view .fd-manager-row.selected{background:#e9f2ff;box-shadow:inset 3px 0 #477db7}
.fd-editor-view .fd-manager-row.primary{background:#e1edfe;box-shadow:inset 3px 0 #175aa8}
.fd-editor-view .fd-manager-row:focus-within{background:#f0f6ff;outline:1px solid #719bc8;outline-offset:-1px}
.fd-editor-view .fd-manager-row input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;margin:0;accent-color:#175aa8;cursor:pointer}
.fd-editor-view .fd-manager-row [data-fd-list-name]{width:100%;min-width:0;min-height:29px;height:29px;padding:4px 6px;font-size:12px;border:1px solid #c5d3e2;border-radius:4px;text-overflow:ellipsis;background:#fff}
.fd-editor-view .fd-manager-row [data-fd-list-name]:focus{outline:2px solid #477db7;outline-offset:-1px;border-color:#477db7}
.fd-editor-view .fd-manager-row [data-fd-locate]{min-height:28px;width:28px;padding:0;border-radius:4px;font-size:17px;border-color:#c5d3e2}
.fd-editor-view .fd-row-number{font-size:10px;font-weight:650;text-align:center;color:#65788b}
.fd-editor-view .fd-row-type{display:grid;place-items:center;color:#175aa8;font-size:12px}
.fd-editor-view .fd-row-type svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4}
.fd-editor-view .fd-template-settings [data-fd-signing-guidance] .fd-signing-help{margin:8px 0 0}
.fd-editor-view.fd-writing-preview .fd-field-manager{display:none}
.fd-editor-view .fd-field.fd-located{animation:fd-field-locate 1.4s ease-out}
@keyframes fd-field-locate{0%,40%{outline:4px solid #cf850b;box-shadow:0 0 0 7px #f9df9d99}100%{outline:3px solid #175aa8}}
.fd-editor-view [data-fd-mode-status]{font-size:11px;font-weight:700;color:#265b87;white-space:nowrap;padding:4px 6px;background:#edf4fc;border:1px solid #bdd1e6;border-radius:5px}
.fd-editor-view [data-fd-mode-status][data-mode=insert]{background:#fff1d4;color:#805000;border-color:#d5ad5a}
.fd-editor-view .fd-tool-title{display:flex;align-items:center;justify-content:space-between;gap:6px}
.fd-editor-view [data-fd-select-mode],.fd-editor-view [data-fd-group-select]~span{grid-column:1/-1}
.fd-editor-view .fd-preview-bar{flex-wrap:wrap}
.fd-editor-view .fd-editor-header [data-fd-save-status],.fd-editor-view .fd-editor-header [data-fd-recovery-status]{display:block;overflow-wrap:anywhere;line-height:1.5}
.fd-editor-view [data-fd-recovery-status]{font-size:11px;color:#61758a}
.fd-editor-view .fd-current-tool{padding:7px 9px;border:1px solid #bccfe3;background:#eef4fb;border-radius:7px;display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.fd-editor-view .fd-current-tool h3{margin:0;font-size:12px}.fd-editor-view .fd-current-tool [data-fd-add-hint]{flex-basis:100%;font-size:11px;line-height:1.5}
.fd-editor-view .fd-order-note{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.fd-editor-view .fd-exit-choice{display:flex;gap:6px;flex-wrap:wrap;font-size:12px;flex-basis:100%;padding:6px;background:#fff8ec;border:1px solid #e6d5b0;border-radius:6px}.fd-editor-view .fd-exit-choice[hidden]{display:none}
.fd-editor-view .fd-group-box{position:absolute;border:2px dashed #175aa8;z-index:7;pointer-events:none;box-sizing:border-box}
.fd-editor-view .fd-group-box [data-fd-resize]{position:absolute;width:12px;height:12px;background:#fff;border:2px solid #175aa8;pointer-events:auto;z-index:9;box-sizing:border-box}
.fd-editor-view .fd-group-box [data-fd-resize=n],.fd-editor-view .fd-group-box [data-fd-resize=s]{cursor:ns-resize}.fd-editor-view .fd-group-box [data-fd-resize=e],.fd-editor-view .fd-group-box [data-fd-resize=w]{cursor:ew-resize}.fd-editor-view .fd-group-box [data-fd-resize=ne],.fd-editor-view .fd-group-box [data-fd-resize=sw]{cursor:nesw-resize}.fd-editor-view .fd-group-box [data-fd-resize=nw],.fd-editor-view .fd-group-box [data-fd-resize=se]{cursor:nwse-resize}
.fd-editor-view .fd-tool-status:empty{display:none}
@media(max-width:800px){.fd-editor-view .fd-editor-header>div{min-width:0;max-width:100%}.fd-editor-view .fd-editor-actions{width:100%;gap:4px}.fd-editor-view .fd-editor-actions button{padding:5px 7px;min-width:0}.fd-editor-view .fd-current-tool{min-width:0}.fd-editor-view .fd-editor-checks{flex-wrap:wrap}}
@media(max-width:800px){.fd-editor-view .fd-editor-actions button{font-size:12px;white-space:nowrap;padding:6px;min-width:32px;flex:0 1 auto}}
.fd-editor-view .fd-template-activation{grid-column:1/-1;display:grid;gap:5px;border-top:1px solid #d5e0eb;padding-top:7px;font-size:12px}.fd-editor-view .fd-template-activation label{margin:0}
/* Cursor state is presentation-only; PDF coordinates and input contracts are unchanged. */
.fd-editor-view .fd-paper,.fd-editor-view .fd-overlay{cursor:default}
.fd-editor-view .fd-field{cursor:default}.fd-editor-view .fd-field.selected{cursor:move}
.fd-editor-view[data-fd-tool=insert] .fd-paper,.fd-editor-view[data-fd-tool=insert] .fd-overlay{cursor:crosshair}
.fd-editor-view input:not([type=checkbox]):not([type=file]),.fd-editor-view textarea{cursor:text}
.fd-editor-view .fd-group-box:focus-visible{outline:2px solid #175aa8;outline-offset:3px}
@media(max-width:800px){.fd-editor-view [data-fd-repeat]{white-space:nowrap}}
.fd-editor-view [data-fd-tool-group=edit] [data-fd-repeat]{grid-column:1/-1;white-space:nowrap;min-height:30px}
.fd-editor-view .fd-current-tool[hidden]{display:none}.fd-editor-view .fd-current-tool{padding:5px 7px;gap:5px;font-size:11px}.fd-editor-view .fd-current-tool button{min-height:27px;padding:3px 7px;font-size:11px}
.fd-draft-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.fd-root .fd-draft-actions button{font-size:12px;padding:7px 9px}.fd-recovery-link{border-top:1px solid #dce4ec;padding-top:7px;margin-top:7px}
/* Worker writing flow only; Editor, Shell and completed-document rendering unchanged. */
.fd-worker-writing [hidden]{display:none!important}
.fd-worker-writing{min-width:0;padding-bottom:22px;scroll-margin-top:72px}
.fd-worker-writing .fd-worker-head{display:flex;align-items:flex-start;gap:12px;margin:12px 0}
.fd-worker-writing .fd-worker-head>div{min-width:0;flex:1}
.fd-worker-writing .fd-worker-head h2{font-size:19px;line-height:1.45;margin:0 0 3px;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-head small{font-size:12px;color:var(--fd-muted)}
.fd-worker-writing button{min-height:40px;border:1px solid var(--fd-line);border-radius:8px;background:#fff;color:var(--fd-ink);padding:8px 12px;font:inherit;cursor:pointer}
.fd-worker-writing button.fd-primary{background:var(--fd-blue,#185bb0);color:#fff;border-color:var(--fd-blue,#185bb0)}
.fd-worker-writing button:disabled{opacity:.55;cursor:wait}
.fd-worker-writing .fd-worker-steps{display:flex;gap:5px;margin:10px 0;flex-wrap:wrap}
.fd-worker-writing .fd-worker-steps button{flex:1 1 70px;min-width:0;padding:8px 5px;font-size:12px;white-space:nowrap}
.fd-worker-writing .fd-worker-steps [aria-current=step]{background:#eaf3ff;border-color:#2164ba;color:#154a90;font-weight:700}
.fd-worker-writing .fd-worker-save{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f2f6fb;border:1px solid var(--fd-line);border-radius:9px;padding:8px;margin:10px 0}
.fd-worker-writing [data-fw-save-status]{flex:1;min-width:120px;font-size:12px;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-recovery,.fd-worker-writing .fd-worker-help{font-size:12px;color:var(--fd-muted);line-height:1.6;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-message,.fd-worker-writing .fd-worker-conflict{background:#fff5e7;color:#76420a;border:1px solid #ebcd96;border-radius:8px;padding:10px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-conflict dl{max-height:220px;overflow:auto}
.fd-worker-writing .fd-worker-conflict dd{margin:0 0 8px}
.fd-worker-writing [data-fw-viewer]{min-width:0;border:1px solid var(--fd-line);border-radius:10px;overflow:hidden;background:#edf2f7}
.fd-worker-writing .fd-preview-bar{display:flex;gap:8px;flex-wrap:wrap;background:white}
.fd-worker-writing .fd-preview-bar>b{font-size:12px}
.fd-worker-writing [data-fw-pages]{height:min(65svh,720px);min-height:250px;overflow:auto;overscroll-behavior:contain;scroll-padding:40px;min-width:0;--fd-zoom:1}
.fd-worker-writing .fd-paper{width:calc(100% * var(--fd-zoom,1));max-width:none;touch-action:pan-x pan-y}
.fd-worker-writing .fd-overlay{pointer-events:none}
.fd-worker-writing .fd-worker-location{position:absolute;outline:3px solid #d14c12;background:#ffb95740;z-index:3;scroll-margin:70px 25px;min-width:8px;min-height:8px}
.fd-worker-writing .fd-worker-location span{position:absolute;left:0;bottom:100%;background:#803508;color:#fff;font-size:12px;line-height:1.4;padding:3px 5px;max-width:220px;min-width:90px;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-input-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.fd-worker-writing .fd-worker-input-head h3{font-size:17px;margin:12px 0}
.fd-worker-writing [data-fw-progress]{font-size:13px;color:#245482;white-space:nowrap}
.fd-worker-writing .fd-worker-field-card{border:1px solid var(--fd-line);border-radius:10px;background:white;padding:14px;margin-bottom:12px}
.fd-worker-writing .fd-worker-field-card label{display:block;margin:0;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-field-card textarea,.fd-worker-writing .fd-worker-field-card input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:16px;margin-top:8px;border:1px solid #b9cadc;border-radius:7px;padding:11px;font-family:inherit;font-weight:400;line-height:1.5}
.fd-worker-writing .fd-worker-field-card textarea{resize:vertical;overflow:hidden;min-height:70px}
.fd-worker-writing .fd-worker-field-meta{display:flex;justify-content:space-between;align-items:center;margin-top:7px;gap:8px;font-size:12px;color:var(--fd-muted)}
.fd-worker-writing .fd-worker-field-meta button{font-size:12px;min-height:36px;padding:6px 10px}
.fd-worker-writing .fd-field-error{display:block;margin-top:4px;font-size:12px;font-weight:400}
.fd-worker-writing .fd-worker-actions{display:flex;gap:10px;flex-wrap:wrap;padding:12px;background:white}
.fd-worker-writing .fd-worker-actions>button{flex:1;min-width:100px}
.fd-worker-writing [data-fw-sign]{border:1px solid var(--fd-line);border-radius:10px;background:white;padding:14px}
.fd-worker-writing [data-fw-sign] ul{padding-left:20px;font-size:13px}
.fd-worker-writing [data-fw-sign] li{margin-bottom:8px;overflow-wrap:anywhere}
.fd-worker-writing [data-fw-sign]>p{font-size:13px;line-height:1.6}
.fd-worker-writing .fd-sign-box canvas{touch-action:none}
.fd-worker-writing input,.fd-worker-writing textarea,.fd-worker-writing button{scroll-margin-top:80px;scroll-margin-bottom:100px}
@media(min-width:801px){.fd-worker-writing [data-fw-input],.fd-worker-writing [data-fw-sign]{max-width:760px;margin:auto}.fd-worker-writing .fd-worker-head h2{font-size:22px}}
/* Worker-only mobile position navigator; no document/state or Editor styles. */
.fd-worker-writing .fd-worker-map-open{display:none}
.fd-worker-writing .fd-worker-current-field{position:absolute;outline:2px solid #2871c8;background:#4789d415;pointer-events:none}
.fd-worker-writing .fd-worker-field-card.current{border-color:#2871c8;box-shadow:inset 3px 0 #2871c8}
.fd-worker-writing .fd-worker-map{box-sizing:border-box;width:min(360px,calc(100vw - 24px));max-height:80svh;padding:12px;border:1px solid #b7c9dc;border-radius:14px;color:var(--fd-ink);background:#f6f8fc;overflow:hidden}
.fd-worker-writing .fd-worker-map::backdrop{background:#172b46a8}
.fd-worker-writing .fd-worker-map header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fd-worker-writing .fd-worker-map p{font-size:12px;margin:8px 0;overflow-wrap:anywhere}
.fd-worker-writing .fd-worker-map-legend{display:flex;gap:10px;font-size:11px;margin:8px 0;flex-wrap:wrap}
.fd-worker-map-legend span:nth-child(1){color:#175bb5}.fd-worker-map-legend span:nth-child(2){background:#fff3a3}.fd-worker-map-legend span:nth-child(3){background:#d8f0dd}
.fd-worker-writing .fd-worker-map-pages{max-height:48svh;overflow:auto;overscroll-behavior:contain;padding:10px;display:flex;flex-direction:column;align-items:center;gap:14px}
.fd-worker-writing .fd-worker-map-sheet{position:relative;width:180px;flex-shrink:0;box-shadow:0 1px 6px #879bb0;background:white}
.fd-worker-writing .fd-worker-map-sheet canvas{display:block;width:100%;height:100%}
.fd-worker-writing .fd-worker-map-target{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;padding:0;border-radius:0}
.fd-worker-writing .fd-worker-map-field{position:absolute;min-height:5px;min-width:5px;border:1px solid #74879d;background:#dce5ef80;border-radius:1px;padding:0}
.fd-worker-writing .fd-worker-map-field.complete{background:#b3e8c4b0;border-color:#45865c}
.fd-worker-writing .fd-worker-map-field.next{background:#ffeb60c0;border-color:#a68104;box-shadow:0 0 0 2px #ffdc6370}
.fd-worker-writing .fd-worker-map-field.current{background:#367bd4b0;border:2px solid #175bb5;z-index:2}
.fd-worker-writing .fd-worker-map-viewport{position:absolute;border:2px dashed #234361;background:#6684a510;pointer-events:none;box-sizing:border-box;z-index:3}
.fd-worker-writing .fd-worker-map footer{display:grid;gap:6px;padding-top:8px}.fd-worker-writing .fd-worker-map footer small{font-size:11px;line-height:1.5}
@media(max-width:800px){.fd-worker-writing .fd-worker-map-open{display:block;position:fixed;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:12;box-shadow:0 2px 9px #243c6230;font-size:12px;padding:7px 10px;min-height:40px;background:#eff6ff;border-color:#85add8}.fd-worker-writing [data-fw-input]{padding-bottom:52px}}
.fd-worker-writing .fd-worker-map-number{position:absolute;left:3px;top:3px;z-index:4;background:#ffffffdf;color:#42576e;padding:1px 4px;border-radius:3px;font-size:10px;pointer-events:none}
/* Editor TOOL refinement: intrinsic button width, compact groups, unchanged field coordinates. */
.fd-editor-view .fd-tool-panel{container-type:inline-size}
.fd-editor-view .fd-tool-panel .fd-editor-tools button{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;font-size:12px;min-height:34px;padding:6px 8px;line-height:1.4;box-sizing:border-box}
.fd-editor-view [data-fd-tool-group=insert]>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.fd-editor-view [data-fd-date-preset]{grid-column:1/-1;justify-self:start}
.fd-editor-view [data-fd-tool-group=edit]>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr));gap:6px}
.fd-editor-view [data-fd-tool-group=edit] [data-fd-repeat]{grid-column:auto;min-height:34px}
.fd-editor-view [data-fd-tool-group=arrange] .fd-align-buttons{grid-template-columns:repeat(auto-fit,minmax(min(100%,86px),1fr));gap:6px}
.fd-editor-view .fd-tool-group{padding:9px}
.fd-editor-view .fd-selected-tool-section{background:#f5f8fc;border:1px solid #cddae7;border-radius:8px;padding:9px;min-width:0}
.fd-editor-view .fd-selected-tool-section>.fd-inspector,.fd-editor-view .fd-selected-tool-section>[data-fd-tool-group=edit]{padding:0;border:0;background:transparent;border-radius:0;margin:0}
.fd-editor-view .fd-selected-tool-section>[data-fd-tool-group=edit]{margin-top:9px;padding-top:8px;border-top:1px solid var(--fd-line)}
.fd-editor-view .fd-selected-tool-section>[data-fd-tool-group=edit]>h3{font-size:11px;border:0;padding:0;color:var(--fd-muted)}
.fd-editor-view .fd-tool-panel>.fd-preflight{white-space:normal;word-break:keep-all;font-size:12px;text-align:left;min-height:34px;background:#fff8e7;border-color:#e5d59f;color:#795100}
.fd-editor-view .fd-tool-status{background:transparent;border:0;padding:0}
.fd-editor-view .fd-tool-status [data-fd-editor-count]{display:none}
.fd-editor-view .fd-tool-status:has([data-fd-snap-status]:empty){display:none}
.fd-editor-view .fd-template-use-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:3px 0;font-size:11px;line-height:1.5;color:#365470}
.fd-editor-view .fd-template-use-bar button{min-height:28px;padding:3px 7px;font-size:11px;white-space:nowrap}
.fd-editor-view [data-fd-save-help]{display:block;font-size:11px;line-height:1.5;color:var(--fd-muted);overflow-wrap:anywhere}
.fd-editor-view.fd-writing-preview .fd-tool-panel>.fd-editor-tools{display:flex}
.fd-editor-view.fd-writing-preview .fd-editor-tools [data-fd-tool-group],.fd-editor-view.fd-writing-preview .fd-editor-tools .fd-tool-status{display:none}
@container(max-width:350px){.fd-editor-view [data-fd-tool-group=insert]>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.fd-editor-view .fd-template-use-bar{font-size:12px}.fd-editor-view .fd-editor-actions button{white-space:nowrap;flex:1 1 auto}}
.fd-editor-view .fd-selected-tool-section .fd-note{margin:3px 0 4px;line-height:1.5}
.fd-editor-view [data-fd-tool-group=edit]>div{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Document-owned navigation and existing WORK attention-card presentation. */
.worker-main .fd-document-task{position:static;box-sizing:border-box;width:100%;margin:0 0 14px;min-width:0}
.fd-document-task b,.fd-document-task p{overflow-wrap:anywhere;word-break:keep-all}
.fd-document-task .record-action{display:block;box-sizing:border-box;width:100%;min-height:44px;text-align:center;padding:11px 14px;background:#175aa8;color:#fff;border:1px solid #175aa8;border-radius:8px;text-decoration:none;font-weight:650;font-size:14px}
.fd-root .fd-open-state{padding:14px;margin:10px 0;background:#f0f6fd;border:1px solid #bdcfe2;border-radius:9px;overflow-wrap:anywhere}
.fd-root .fd-open-state button{margin-right:8px;min-height:40px}
.fd-root .fd-template-issue-help{font-size:12px;line-height:1.6;max-width:260px;color:var(--fd-muted);overflow-wrap:anywhere}
.fd-root .fd-card-actions:has(.fd-template-issue-help){flex-wrap:wrap;max-width:280px}
.fd-root .fd-card-actions .fd-template-issue-help{flex:1 1 100%}
@media(max-width:800px){.fd-root .fd-card-actions:has(.fd-template-issue-help){max-width:none}.fd-root .fd-template-issue-help{max-width:none}}

/* Covers stay below all editable inputs, even while selected. */
.fd-editor-view .fd-field[data-fd-type=mask]{z-index:1;background:transparent;border:1px dashed #738396;color:#465a70}
.fd-editor-view .fd-field:not([data-fd-type=mask]){z-index:2}
.fd-editor-view .fd-field[data-fd-type=mask] .fd-field-label{background:#ffffffd9;width:max-content;max-width:100%}
.fd-cover-help{grid-column:1/-1;line-height:1.4;color:#596d82}
.fd-editor-view .fd-field[data-fd-type=mask].selected{background:transparent;outline:2px solid #165aa8}
