@font-face{font-family:unused;src:local('Microsoft YaHei')}
:root{font-family:Inter,'Segoe UI','Microsoft YaHei',sans-serif;color:#233a32;background:#f3f5f0;font-synthesis:none;--green:#216650;--ink:#233a32;--muted:#77837c;--line:#dce3dc;--paper:#fff;--tint:#edf3eb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px 14px;color:var(--ink);font-size:13px;font-weight:550;transition:background .15s,border-color .15s}button:hover{background:#eef3ed;border-color:#aabdb0}button:disabled{cursor:not-allowed;opacity:.48}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:#164e3c}button.quiet{background:transparent;border-color:transparent}button.small{padding:5px 9px;font-size:12px}button.danger{color:#a04535}a{color:var(--green);text-decoration:none}input,textarea,select{width:100%;border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px 11px;color:var(--ink);font-size:13px;line-height:1.65}textarea{resize:vertical;min-height:108px}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #79a88b;outline-offset:2px}input[type=checkbox]{width:auto;accent-color:var(--green)}[hidden]{display:none!important}.topbar{height:76px;display:flex;align-items:center;gap:32px;padding:0 30px;border-bottom:1px solid var(--line);background:#fbfcf8}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:700;white-space:nowrap;color:var(--ink)}.brandmark{font-family:serif;font-size:25px;background:#dfe9d7;color:#2f644b;width:37px;height:39px;border-radius:10px 3px 10px 3px;display:grid;place-items:center}.brand small{font-size:12px;color:#77837c;font-weight:400;margin-left:7px}#document-bar{display:flex;gap:12px;align-items:center;min-width:0;flex:1}#document-title{border-color:transparent;background:transparent;max-width:300px;font-weight:600;text-overflow:ellipsis}#save-status{font-size:11px;color:var(--muted);white-space:nowrap}.top-actions{display:flex;gap:8px;margin-left:auto}.home{max-width:1180px;margin:0 auto;padding:58px 28px}.eyebrow{font-size:11px;letter-spacing:2.5px;color:#72876d;text-transform:uppercase;font-weight:650}.home h1{font-size:38px;font-weight:550;letter-spacing:-1px;line-height:1.5;margin:13px 0 15px}.home .intro{font-size:14px;line-height:1.9;color:#6b7970;max-width:660px}.hero{display:grid;grid-template-columns:1.6fr 1fr;gap:55px;align-items:center;padding-bottom:40px}.hero-note{border-left:2px solid #bdcdb3;padding:16px 22px;font-size:13px;line-height:2.1;color:#61745f}.hero-note strong{display:block;color:#3d5645;font-size:17px;font-weight:500}.create-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:10px 0 44px}.create-card{text-align:left;padding:26px;min-height:168px;border:1px solid var(--line);border-radius:12px;background:#fafbf8;position:relative}.create-card:first-child{background:#e8efe2;border-color:#d5e0ce}.create-card .symbol{font-size:24px;display:block;color:#62865d;height:38px}.create-card strong{display:block;font-size:17px;margin:8px 0;font-weight:600}.create-card p{color:#738071;font-size:12px;line-height:1.8;margin:0}.section-label{display:flex;align-items:center;justify-content:space-between;margin:12px 0 16px}.section-label h2{font-size:17px;font-weight:600;margin:0}.count{font-size:11px;color:#84907f}.documents{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.doc-card{text-align:left;padding:21px;background:#fff;min-height:116px}.doc-card strong{display:block;font-size:14px;line-height:1.65;margin-bottom:12px}.doc-card span{color:#7e887f;font-size:11px}.empty{padding:30px;border:1px dashed #cbd6c8;border-radius:10px;color:#859080;font-size:13px;line-height:1.9}.footnote{font-size:11px;line-height:1.9;color:#83907f;margin-top:28px}.workspace{display:grid;grid-template-columns:410px minmax(0,1fr);height:calc(100vh - 76px)}.editor{background:#fafbf8;border-right:1px solid var(--line);overflow:auto;min-width:0}.tabbar{position:sticky;top:0;background:#fafbf8;z-index:2;display:flex;gap:5px;border-bottom:1px solid var(--line);padding:15px 20px 0}.tabbar button{border:0;border-radius:0;background:none;flex:1;padding:10px 0 15px;font-size:12px;color:#82907f}.tabbar button[aria-selected=true]{color:var(--green);border-bottom:2px solid var(--green);font-weight:700}.panel{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-head h2{font-size:17px;font-weight:600;margin:0}.caption{font-size:12px;line-height:1.9;color:#7b887b;margin:4px 0 20px}.block{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:13px;overflow:hidden}.block[open]{border-color:#bbcdbd}.block summary{cursor:pointer;list-style:none;display:flex;gap:10px;align-items:center;padding:17px;font-size:14px;font-weight:600}.block summary::-webkit-details-marker{display:none}.block summary:before{content:'+';font-weight:400;font-size:17px;color:#80967a}.block[open] summary:before{content:'−'}.block summary span{margin-left:auto;font-size:10px;color:#93a08e;font-weight:400}.block-body{padding:0 16px 16px;border-top:1px solid #eff2ec}.block-tools{display:flex;align-items:center;gap:3px;padding:10px 0}.block-tools label{display:flex;align-items:center;gap:5px;font-size:11px;color:#7a8876;margin-right:auto}.item{border-top:1px dashed var(--line);padding-top:13px;margin-top:9px}.item-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7b8978;margin-bottom:10px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field{display:block;font-size:11px;color:#7c877a;margin:10px 0}.field input,.field textarea,.field select{display:block;margin-top:5px}.wide{grid-column:1/-1}.field textarea{font-size:12px;line-height:1.9}.block-title{font-weight:600}.add-wide{width:100%;border-style:dashed;margin-top:8px;background:transparent}.preview-area{overflow:auto;padding:0 32px 44px;background:#e9ede7;position:relative}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;max-width:796px;margin:0 auto;padding:21px 0;font-size:11px;color:#7a8878;position:sticky;top:0;background:#e9ede7;z-index:1}.preview-toolbar strong{font-size:12px;letter-spacing:.5px;color:#667563}.preview-pages{max-width:796px;margin:auto;display:flex;align-items:center;flex-direction:column;gap:20px}.pdf-page{width:100%;box-shadow:0 3px 22px #334b3020;display:block;background:white}.preview-placeholder{width:100%;aspect-ratio:210/297;background:#fff;display:grid;place-items:center;color:#8a9785;font-size:13px;box-shadow:0 3px 22px #334b3020}.preview-meta{max-width:796px;margin:20px auto 0;color:#8a9585;font-size:11px;text-align:center;line-height:1.8}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}.template-card{padding:12px;text-align:left;position:relative}.template-card.selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green);background:#f0f5eb}.template-mini{height:132px;background:#fff;border:1px solid #e2e6dc;padding:16px 11px;display:flex;gap:10px;margin-bottom:12px}.mini-col{flex:1}.mini-col i{display:block;height:2px;background:#d9dfd4;margin-bottom:5px;width:100%}.mini-col b{display:block;height:5px;background:#7b9680;width:54%;margin:6px 0 9px}.mini-col i:last-child{width:70%}.template-card strong{display:block;font-size:12px;font-weight:600}.template-card small{font-size:10px;color:#899482;display:block;margin-top:4px}.template-mini.compact i{margin-bottom:3px}.template-mini.section-focus b{background:#ceddc4;height:10px;width:100%}.divider{border:0;border-top:1px solid var(--line);margin:24px 0}.review-summary{background:#edf3e7;border:1px solid #dce6d4;padding:17px;border-radius:9px;font-size:12px;line-height:1.9;margin:18px 0}.review-summary h3{font-size:13px;margin:0 0 10px}.dimension{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:11px;border-bottom:1px solid #dfe7d9}.dimension:last-child{border:0}.suggestion{border:1px solid var(--line);border-radius:9px;background:white;margin:14px 0;padding:16px}.suggestion h3{font-size:12px;line-height:1.8;margin:0 0 12px}.diff{white-space:pre-wrap;font-size:12px;line-height:1.95;overflow-wrap:anywhere;padding:10px;border-radius:6px;margin:7px 0}.diff.before{background:#f5f0e9;color:#8b7765}.diff.after{background:#ebf3e7;color:#42653d}.diff-label{font-size:10px;color:#8f9a87;margin-top:10px}.suggestion-actions{display:flex;gap:6px;margin-top:12px}.history-item{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;padding:16px 0}.history-item strong{display:block;font-size:12px;font-weight:500}.history-item small{display:block;font-size:10px;color:#8c9785;margin-top:6px}.review-list{padding-left:20px;font-size:12px;line-height:1.9;color:#677b5d}.mobile-preview{display:none}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#253e32;color:white;border-radius:9px;box-shadow:0 3px 16px #0002;max-width:min(90vw,600px);padding:13px 20px;font-size:13px;line-height:1.7;z-index:10}dialog{border:1px solid var(--line);border-radius:14px;max-width:500px;width:calc(100vw - 36px);padding:28px;color:var(--ink);box-shadow:0 20px 100px #0002}dialog::backdrop{background:#1b2b2260;backdrop-filter:blur(3px)}dialog h2{font-size:18px;margin:0 0 15px}dialog p{font-size:13px;line-height:1.9;color:#71806c}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.loading{padding:80px;text-align:center;color:#85947a;font-size:13px}.error-panel{padding:30px;background:#fff3ee;border:1px solid #edcbbf;line-height:2}.busy{pointer-events:none;opacity:.65}.recovery{padding:14px;background:#fff5df;font-size:12px;line-height:1.8;border:1px solid #eadfc4;margin-bottom:14px}.analysis-buttons{display:flex;gap:8px}.status-note{font-size:11px;color:#8a977f;line-height:1.8}.top-actions select{width:auto;font-size:12px;padding:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1600px){.workspace{grid-template-columns:450px minmax(0,1fr)}.panel{padding:28px 30px}}@media(max-width:1100px){.topbar{gap:16px;padding:0 18px}.brand small{display:none}.workspace{grid-template-columns:360px minmax(0,1fr)}.preview-area{padding:0 20px 30px}#document-title{max-width:220px}.top-actions{gap:3px}.top-actions button{padding:8px 10px}.panel{padding:20px}}@media(max-width:760px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:14px 16px;gap:10px}.brand{font-size:17px}.brandmark{width:30px;height:32px;font-size:22px}#document-bar{order:3;flex-basis:100%;gap:2px}#document-title{max-width:none;width:100%;padding:4px}#save-status{font-size:10px}.top-actions{gap:1px}.top-actions button{font-size:11px;padding:7px}.top-actions select{max-width:75px;font-size:11px}.home{padding:30px 20px}.hero{grid-template-columns:1fr;gap:10px;padding-bottom:20px}.home h1{font-size:29px}.hero-note{display:none}.create-cards{grid-template-columns:1fr;gap:10px;margin-bottom:30px}.create-card{min-height:100px;padding:18px 20px}.create-card .symbol{float:right;font-size:27px;margin:8px}.create-card strong{font-size:15px}.documents{grid-template-columns:1fr}.workspace{height:auto;display:block}.editor{border:0;min-height:calc(100vh - 110px)}.tabbar{top:0}.preview-area{display:none;min-height:calc(100vh - 112px);padding:0 16px 25px}.workspace.show-preview .editor{display:none}.workspace.show-preview .preview-area{display:block}.mobile-preview{display:inline-block}.preview-toolbar{font-size:10px}.preview-pages{gap:12px}.panel{padding:22px}.template-mini{height:160px}.footnote{margin-top:20px}}

.native-draft{background:#f7faf6;border:1px solid #cbdcce;border-radius:8px;padding:12px 16px;margin-bottom:12px}.native-draft>strong{display:block;font-size:12px;color:#587763;margin-bottom:7px}.draft-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:135px;overflow:auto;line-height:1.5}#preview-message{margin-bottom:12px}
.native-sections{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 18px}.native-sections button{padding:7px 10px;font-size:12px;background:transparent}.native-sections button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.native-field-choices{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:16px;border-bottom:1px solid var(--line)}.native-field-choices button{font-size:12px;padding:7px 10px;text-align:left}.native-field-choices button[aria-pressed=true]{background:#e4eedf;border-color:#8ca990;color:#1a6047}.native-field-heading{margin:19px 0 12px}.native-field-heading small{color:#6d8368;font-size:11px}.native-field-heading h2{font-size:19px;margin:5px 0 8px}.native-field-heading p{font-size:11px;color:#7b8874;line-height:1.7;margin:0}.field-styles{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}.field-styles summary{font-size:12px;color:#62765a;cursor:pointer}.native-page{position:relative;width:100%;flex-shrink:0}.native-live-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.native-hit{position:absolute;border:1px solid transparent;border-radius:2px;background:transparent;padding:0;min-width:0;min-height:0;cursor:text;transition:none}.native-hit:hover,.native-hit.selected{background:transparent;border-color:#459372;box-shadow:0 0 0 2px #45937224}.native-hit:focus-visible{outline:2px solid #216650;outline-offset:2px}.native-hit:hover:after{content:attr(title);position:absolute;left:0;bottom:100%;width:max-content;max-width:240px;padding:5px 8px;border-radius:4px;background:#233a32;color:white;font-size:11px;pointer-events:none;z-index:4}
.library-section{margin:38px 0 28px;padding-top:24px;border-top:1px solid var(--line)}.library-controls{display:grid;grid-template-columns:minmax(240px,520px) 180px;gap:12px;align-items:end;margin-bottom:18px}.library-controls .field{margin:0}.library-acceptance{padding:12px 14px;margin:0 0 16px;border:1px solid #eadfc4;border-radius:8px;background:#fff8e8;color:#6f6246}.library-acceptance.enforced{border-color:#bdd3c5;background:#edf5ee;color:#315b45}.library-acceptance strong{display:block;font-size:12px}.library-acceptance p{margin:5px 0 0;font-size:11px;line-height:1.7}.library-card{display:flex;flex-direction:column}.library-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.library-card-head strong{margin:0}.acceptance-badge{flex:none;border-radius:999px;padding:3px 7px;background:#fff1ce;color:#806530;font-size:10px;font-style:normal}.acceptance-approved .acceptance-badge{background:#e4f1e7;color:#276044}.acceptance-unsupported .acceptance-badge{background:#f8e1dc;color:#914d41}.library-card>span{display:block;margin:7px 0}.acceptance-reason{min-height:36px;margin:0 0 14px;color:#6f7d73;font-size:11px;line-height:1.65}.library-card button{margin-top:auto;align-self:flex-start}.library-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px;color:var(--muted);font-size:12px}
.native-warnings{padding:12px 14px;background:#fff5df;border:1px solid #eadfc4;border-radius:8px;margin-bottom:14px;color:#6f6246}.native-warnings summary{cursor:pointer;font-size:12px;font-weight:650}.native-warnings[open] summary{margin-bottom:7px}.native-warnings strong{display:block;font-size:12px;margin-bottom:7px}.native-warnings p{font-size:11px;line-height:1.75;margin:4px 0}.generic-intro{margin:0 0 9px}.generic-sections,.generic-section-fields{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px 1px 8px}.generic-sections button,.generic-section-fields button{white-space:nowrap;padding:7px 10px;font-size:11px}.generic-section-fields button{max-width:220px;overflow:hidden;text-overflow:ellipsis}.generic-sections button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.generic-section-fields{border-bottom:1px solid var(--line);margin-bottom:4px}.generic-section-fields button[aria-pressed=true]{background:#e4eedf;border-color:#8ca990;color:#1a6047}.semantic-editor,.structure-note{border:1px solid var(--line);border-radius:8px;margin:11px 0;background:#fff}.semantic-editor>summary,.structure-note>summary{cursor:pointer;padding:10px 12px;font-size:11px;color:#526b5b}.semantic-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 12px}.semantic-fields .field{margin:4px 0 8px}.semantic-actions{display:flex;align-items:center;gap:7px;padding:0 8px 8px}.semantic-actions span{font-size:10px;color:var(--muted)}.semantic-evidence{margin:0 12px 11px;border-top:1px dashed var(--line);padding-top:8px}.semantic-evidence summary{cursor:pointer;font-size:10px;color:#6e816f}.semantic-evidence p,.structure-note p{font-size:10px;color:#718074;line-height:1.7;margin:7px 0}.structure-note p{padding:0 12px 10px}.structure-option{background:#edf3e7;border:1px solid #d7e3d2;border-radius:8px;padding:8px 12px;margin:11px 0}.structure-option .field{display:flex;align-items:center;gap:8px;margin:0;color:#526b5b}.structure-option .field input{order:-1;margin:0;width:auto}.structure-option p{font-size:10px;line-height:1.7;color:#718074;margin:6px 0 0}.generic-divider{margin:18px 0 12px}.generic-blank-toggle{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin:3px 0 8px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#66766b;font-size:11px;cursor:pointer}.generic-blank-toggle input{margin:0}.generic-result-count{font-size:11px;color:var(--muted);margin:8px 0}.generic-field-list{display:flex;flex-direction:column;gap:8px;max-height:170px;overflow:auto;padding:2px 3px 12px}.generic-field-card{display:block;width:100%;text-align:left;padding:12px;background:#fff}.generic-field-card[aria-pressed=true]{border-color:#6f9b7e;box-shadow:0 0 0 1px #6f9b7e;background:#f1f6ee}.generic-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.generic-card-head strong{font-size:12px;min-width:0;overflow-wrap:anywhere}.generic-card-head em{font-size:10px;font-style:normal;color:#856b3f;background:#fff1ce;border-radius:10px;padding:2px 7px}.generic-card-head em.locator{color:#526b5b;background:#e7efe3}.generic-card-head em.unknown{color:#8b5046;background:#f9dfd8}.generic-location{display:block;margin:5px 0 9px;font-size:10px;color:#738277}.generic-copy{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px;font-size:11px;line-height:1.55;color:#42564b}.generic-copy+ .generic-copy{margin-top:4px}.generic-copy small{color:#8b978d}.generic-copy span{overflow-wrap:anywhere}.read-only-note{font-size:11px;line-height:1.8;color:#745f3f;background:#fff5df;border:1px solid #eadfc4;border-radius:7px;padding:10px 12px}.field textarea:disabled{background:#f2f3ef;color:#6f7971;cursor:not-allowed}.preview-warning{padding:14px 16px;background:#fff5df;border:1px solid #ddc995;border-radius:8px;color:#675c42;line-height:1.7}.preview-warning strong{display:block;font-size:12px}.preview-warning p{font-size:11px;margin:5px 0}
@media(max-width:760px){.generic-field-list{max-height:260px}.semantic-fields{grid-template-columns:1fr}.library-section{margin-top:28px}.library-controls{grid-template-columns:1fr}.library-pager{gap:6px}}

.generic-images{border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0 18px}.generic-images h2{font-size:15px;margin:0 0 10px}.generic-image-controls .field{margin:8px 0}.generic-image-thumb{display:block;width:88px;height:88px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50% / 12px 12px}.generic-image-controls input[type=file]{width:100%;font-size:12px}.generic-image-controls .status-note{font-size:11px;margin:8px 0}

.rich-field{min-width:0}.rich-field .item-head{flex-wrap:wrap;justify-content:flex-start;gap:6px}.rich-field .item-head .caption{flex-basis:100%;margin:0;font-size:10px}.color-controls{display:flex;align-items:center;gap:6px;margin-top:5px}.color-controls input[type=color]{width:38px;height:38px;padding:3px;flex:none;margin:0}.color-controls input:not([type=color]){min-width:0;margin:0}.color-controls button{flex:none;font-size:10px;padding:4px}.color-field{grid-column:1/-1}

/* Structured workbench: calm paper canvas, a focused entry editor, clear controls. */
:root{--muted:#59695f}.topbar{gap:20px;background:#fff;box-shadow:0 1px 8px #243d3210;position:relative;z-index:5}.brand small,#save-status,.count,.caption,.field,.status-note,.footnote,.preview-meta,.preview-toolbar,#preview-status,.doc-card span{color:#59695f}.workspace{grid-template-columns:minmax(560px,1.13fr) minmax(380px,.87fr);height:calc(100dvh - 76px)}.editor{background:#f8faf8}.tabbar{padding:10px 16px 0;gap:4px;background:#f8faf8}.tabbar button{font-size:12px;color:#53665a;font-weight:600;padding:14px 5px;white-space:nowrap}.tabbar button[aria-selected=true]{color:#175a42;background:#edf5ef;border-radius:8px 8px 0 0}.panel{padding:25px 22px 32px}.panel-head{margin-bottom:8px;gap:15px}.panel-head h2{font-size:21px;letter-spacing:-.4px;margin-top:7px}.eyebrow{color:#52715d;font-size:10px;letter-spacing:1.7px}.caption{font-size:12px;line-height:1.8;margin-bottom:16px}.module-tabs{display:flex;overflow-x:auto;gap:7px;padding:4px 1px 13px;margin-bottom:12px;scrollbar-width:thin;scroll-snap-type:x proximity}.module-tab{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:9px 11px;border-radius:8px;font-size:12px;scroll-snap-align:nearest;flex:none}.module-tab small{font-size:10px;color:#5c7162;background:#edf2ed;padding:2px 5px;border-radius:4px}.module-dot{width:5px;height:5px;border-radius:50%;background:#718f77}.module-tab[aria-selected=true]{background:#e6f2e9;color:#175a42;border-color:#5a9270;box-shadow:0 0 0 1px #5a927030}.module-tab.is-hidden .module-dot{background:#a8b0aa}.module-tab.is-hidden{border-style:dashed}.module-editor{border:1px solid #dbe5dc;border-radius:12px;background:#fff;box-shadow:0 2px 8px #26423004;overflow:hidden}.module-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e6ede6;padding:12px 16px;background:#fbfdfb}.module-heading .field{font-size:11px;margin:0;min-width:100px;max-width:180px}.module-heading input:not([type=checkbox]){font-size:14px;font-weight:650;padding:6px 8px}.module-actions{display:flex;align-items:center;justify-content:flex-end;gap:1px;flex-wrap:wrap}.module-actions label,.entry-actions label{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;color:#465d4e}.module-actions input,.entry-actions input{margin:0}.module-actions button,.entry-actions button{font-size:11px;padding:6px 7px}.entry-workspace{display:grid;grid-template-columns:170px minmax(0,1fr);min-height:370px}.entry-rail{background:#f4f7f3;border-right:1px solid #e6ede6;padding:14px 10px}.entry-list-heading{display:flex;justify-content:space-between;gap:6px;font-size:12px;color:#506552;padding:0 2px 10px}.entry-list-heading span{font-size:11px}.entry-card{width:100%;text-align:left;padding:12px 10px;margin:0 0 8px;border-color:#dce5dc;border-radius:8px;background:#fff;overflow-wrap:anywhere}.entry-card strong{display:block;font-size:12px;line-height:1.6;font-weight:650}.entry-card small{display:block;font-size:11px;line-height:1.7;margin-top:4px;color:#5a6c60}.entry-card.selected{border-color:#5c9876;box-shadow:0 0 0 1px #5c987650;background:#edf6ef}.entry-card.is-hidden{border-style:dashed}.entry-hidden{display:inline-block;font-size:10px;line-height:1.5;color:#795c2e;border-radius:3px;background:#fbf1dd;margin-top:6px;padding:2px 5px}.entry-rail .add-wide{font-size:12px;background:#edf5ed;color:#245c43;padding:10px 5px}.entry-editor{padding:14px 16px 20px;min-width:0}.entry-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.entry-editor-heading>strong{font-size:13px;color:#294d37}.entry-actions{display:flex;gap:2px;align-items:center;flex-wrap:wrap}.fields{column-gap:12px;row-gap:0}.entry-fields .field{margin:8px 0;font-size:12px;color:#526657}.entry-fields input{min-width:0;line-height:1.5;font-size:13px;background:#fcfdfb}.hidden-note{font-size:12px;color:#725a2c;line-height:1.8;background:#fff6e3;border-bottom:1px solid #ece1c8;padding:9px 16px;margin:0}.entry-editor>.hidden-note{border:1px solid #ece1c8;border-radius:7px;padding:8px 10px;margin:10px 0}.rich-field{margin:16px 0;border:1px solid #dbe4dc;border-radius:9px;overflow:hidden;background:#fff}.rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:7px;background:#f1f5f0;border-bottom:1px solid #dbe4dc}.rich-toolbar button{font-size:11px;padding:6px 7px;min-height:31px}.bold-tool{font-weight:750;background:#fff}.text-counter{font-size:10px;color:#5c6f61;margin-left:auto;padding:0 4px}.rich-field>.field{font-size:12px;color:#526657;margin:10px 12px 0}.rich-field textarea{border-color:transparent;padding:8px 0;margin-top:4px;min-height:155px;line-height:1.9;font-size:13px;border-radius:3px;background:#fff;resize:vertical}.rich-field textarea:focus{outline-offset:1px}.rich-status{display:block;font-size:11px;line-height:1.7;color:#5a6b5d;margin:5px 12px 9px}.emphasis-preview{background:#f8faf7;border-top:1px solid #e2e9df;padding:9px 12px}.emphasis-preview summary{font-size:11px;font-weight:600;color:#526657;cursor:pointer}.formatted-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:12px;color:#4b5f51;max-height:170px;overflow:auto;margin-top:8px}.formatted-preview strong{font-weight:750;color:#1b4d34}.formatted-preview:empty:after{content:'填写后可查看段落和加粗效果';color:#5b6e61}.custom-field{display:flex;align-items:flex-end;gap:7px}.custom-field .field{flex:1;min-width:0}.custom-field button{margin-bottom:11px;white-space:nowrap}.preview-area{padding:0 22px 35px;background:#e8ece8}.preview-toolbar{background:#e8ece8;font-size:12px;padding:21px 0 13px}.preview-toolbar strong{font-size:13px;color:#425b48}.preview-meta{font-size:11px;line-height:1.9;text-align:left;color:#566c5b}.layout-notice{color:#4e6555;font-size:11px}.error-panel{font-size:13px;color:#734938}.recovery{border-radius:9px;padding:13px 15px}.recovery strong{display:block;font-size:13px;color:#725b2d}.recovery p{margin:5px 0 10px;font-size:12px}.recovery button{margin:3px 4px 0 0}.busy-note{font-size:12px;color:#546958}.top-actions{flex-wrap:wrap;align-items:center}.top-actions button{white-space:nowrap}.top-actions #save-copy,.top-actions #save-reload{font-size:11px;padding:7px;border-color:#e0cfa7;background:#fff5df;color:#705720}#save-status[data-cache-error=true]{color:#8a4927;font-weight:600}.create-cards{grid-template-columns:repeat(4,1fr)}.topbar button,.topbar select{min-height:35px}dialog .field{color:#526657;font-size:12px}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(660px,1fr) minmax(500px,1fr)}.panel{padding:28px 30px}.entry-workspace{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:1190px){.workspace{grid-template-columns:minmax(530px,1.2fr) minmax(320px,.8fr)}.entry-workspace{grid-template-columns:146px minmax(0,1fr)}.entry-editor{padding:13px 12px}.panel{padding:20px 15px}.topbar{gap:12px;padding:0 16px}.top-actions{gap:2px}.top-actions button{font-size:11px;padding:8px}.preview-area{padding:0 16px 30px}.topbar #document-title{max-width:210px}.brand small{display:none}}
@media(max-width:960px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;padding:12px 16px;gap:8px}.top-actions{margin-left:auto}.topbar #document-bar{order:3;flex-basis:100%;justify-content:space-between}.topbar #document-title{max-width:none;width:60%;padding:4px}.workspace{display:block;height:auto}.editor{border:0;min-height:calc(100dvh - 125px);overflow:visible}.tabbar{position:sticky;top:0}.preview-area{display:none;min-height:calc(100dvh - 125px);padding:0 18px 30px}.workspace.show-preview .editor{display:none}.workspace.show-preview .preview-area{display:block}.mobile-preview{display:inline-block}.panel{max-width:850px;margin:auto;padding:22px}.entry-workspace{grid-template-columns:190px minmax(0,1fr)}.create-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.brand{font-size:16px}.topbar{padding:10px 12px}.brandmark{width:29px;height:32px}.top-actions{gap:0}.top-actions button{padding:7px 5px;font-size:11px}.top-actions select{max-width:74px;padding:6px 3px}.top-actions .danger{display:none}.topbar #document-title{max-width:none;font-size:12px}.topbar #save-status{font-size:10px;white-space:normal;text-align:right;max-width:42%}.tabbar{padding:5px 7px 0;gap:0;overflow:auto}.tabbar button{font-size:11px;min-width:67px;padding:13px 5px;min-height:45px}.panel{padding:20px 12px}.panel-head h2{font-size:19px}.panel-head .small{font-size:11px;padding:7px}.module-tabs{gap:5px}.module-tab{font-size:12px;padding:9px}.module-heading{padding:10px 12px;gap:7px;align-items:flex-end}.module-heading .field{max-width:145px}.module-actions{gap:0;max-width:190px}.module-actions button{font-size:10px;padding:5px}.module-actions label{font-size:11px;flex-basis:100%;justify-content:flex-end;margin-bottom:5px}.entry-workspace{display:block}.entry-rail{display:flex;gap:7px;overflow:auto;padding:11px;border-right:0;border-bottom:1px solid #e1e9df;align-items:stretch}.entry-list-heading{display:none}.entry-card{width:165px;min-width:165px;flex:none;margin:0;padding:9px}.entry-card strong{font-size:12px}.entry-card small{font-size:10px}.entry-rail .add-wide{width:115px;min-width:115px;margin:0;flex:none}.entry-editor{padding:14px 12px}.entry-editor-heading{align-items:center;margin-bottom:6px}.entry-actions button{min-height:33px;font-size:11px}.entry-actions label{font-size:11px}.entry-fields .field{font-size:12px}.entry-fields{gap:8px}.entry-fields input{font-size:13px;padding:9px 8px}.rich-toolbar button{min-height:36px;padding:6px;font-size:11px}.rich-toolbar{gap:1px;padding:5px}.rich-field textarea{font-size:14px}.text-counter{flex-basis:100%;margin-left:0;text-align:right;padding:0 5px}.formatted-preview{font-size:12px}.custom-field{align-items:flex-end}.create-cards{grid-template-columns:1fr}.preview-toolbar{position:static}.recovery button{min-height:35px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.editing-surface[inert]{opacity:.5;filter:saturate(.65)}.capability-note{font-size:12px;line-height:1.8;color:#5c6f60;background:#f3f6f0;border-radius:7px;padding:10px 12px;grid-column:1/-1;margin:9px 0}#document-title:read-only{color:#67776a}
.current-template{display:flex;align-items:center;gap:5px;font-size:11px;color:#5a6d5e;margin:-7px 0 16px}.current-template button{color:#205c41;text-align:left;font-weight:600;font-size:11px;padding:3px 5px}.startup-error{margin:32px auto;max-width:700px}.startup-error h1{font-size:22px}

/* Interactive paper stays in the same A4 coordinate system at every CSS zoom. */
.preview-sheet{position:relative;margin:0 auto 22px;max-width:100%;width:100%}
.preview-sheet .pdf-page{display:block;width:100%;height:auto;margin:0}
.preview-hit-layer{position:absolute;inset:0;pointer-events:none}
.preview-hit-target{position:absolute;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;pointer-events:auto;min-height:0;min-width:0;box-shadow:none;cursor:text}
.preview-hit-target:hover,.preview-hit-target:focus-visible{border-color:#247966;background:rgba(36,121,102,.07);outline:2px solid rgba(36,121,102,.16);outline-offset:2px}
.module-tab[draggable=true],.entry-card[draggable=true]{cursor:grab}
.module-tab.drag-target,.entry-card.drag-target{outline:2px solid #247966;outline-offset:2px}

/* A stale page remains visible but cannot target a newer field state. */
.preview-pages[data-stale=true] .pdf-page{opacity:.76}
.preview-pages[data-stale=true] .preview-hit-target{pointer-events:none}
.preview-page-loading{display:flex;align-items:center;justify-content:center;background:#fff;color:#66776a;font-size:12px;width:100%;box-shadow:0 2px 12px #243d3212}
.appearance-actions{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 14px}
