.word-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,44%);gap:18px;align-items:start;margin-top:18px}
.word-actions,.word-template-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.word-template-bar{margin:14px 0 16px}
.word-template-bar select{width:auto;max-width:100%}
.word-template-bar label{font-weight:650}
.word-sidebar{display:grid;gap:16px;min-width:0}
.word-template-gallery{overflow:hidden;border-color:#dce4e0}
.word-gallery-head{padding:16px;border-bottom:1px solid #e8eeeb}
.word-gallery-head h2{margin:0;font-size:17px}
.word-gallery-head small{color:#667973;text-align:right}
.word-gallery-head small b{color:#146653;font-weight:650}
.word-gallery-tools,.word-export-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.word-gallery-tools{margin-top:14px;flex-wrap:nowrap}
.word-gallery-tabs{display:flex;flex:none;border:1px solid #dbe5e0;border-radius:7px;overflow:hidden}
.word-gallery-tabs button,.word-gallery-filters button{font-size:13px;white-space:nowrap;box-shadow:none}
.word-gallery-tabs button{border:0;border-radius:0;padding:7px 14px;background:#fff}
.word-gallery-tabs button.active{background:#146653;color:#fff}
.word-gallery-tools input{flex:1;min-width:0;font-size:13px;padding:7px 10px;border-radius:7px}
.word-gallery-body{display:grid;grid-template-columns:78px minmax(0,1fr)}
.word-gallery-body.personal{grid-template-columns:minmax(0,1fr)}
.word-gallery-filters{display:flex;flex-direction:column;gap:7px;padding:12px 8px;background:#f7f9f8;border-right:1px solid #e8eeeb}
.word-gallery-filters button{padding:6px 4px;border:1px solid transparent;border-radius:6px;background:transparent;color:#52645d}
.word-gallery-filters button.active{background:#e5f2ed;color:#145e4d;border-color:#b9d8cc}
.word-template-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
.word-template-cards>.hint{grid-column:1/-1;margin:8px 0}
.word-template-card{position:relative;min-width:0;overflow:hidden;border:1px solid #dce4e0;border-radius:8px;background:#fff}
.word-template-card:hover{border-color:#93b9aa;box-shadow:0 3px 10px #153b2b12}
.word-template-card.selected{border-color:#187463;box-shadow:inset 0 0 0 1px #187463}
.word-template-card .word-template-choose{display:block;width:100%;padding:0;border:0;border-radius:0;text-align:left;background:transparent}
.word-template-caption{display:grid;gap:3px;padding:9px 9px 10px}
.word-template-caption strong{font-size:13px;overflow-wrap:anywhere}
.word-template-caption small{font-size:11px;color:#62756c;line-height:1.4}
.word-template-card .word-card-preview{position:absolute;top:8px;right:8px;padding:3px 9px;border:1px solid #ffffff70;border-radius:12px;background:#18392ddd;color:white;font-size:11px;line-height:1.4}
.word-sample{--sample-ink:#284f45;--sample-wash:#edf4f1;--sample-tint:#c1d7ce;display:flex;align-items:center;justify-content:center;gap:5px;aspect-ratio:1.34;overflow:hidden;padding:10px 6px;background:var(--sample-wash)}
.word-sample[data-tone="large"]{--sample-ink:#244b6c;--sample-wash:#e9f0f7;--sample-tint:#bfd2e3}
.word-sample[data-tone="small"]{--sample-ink:#426c61;--sample-wash:#eaf4ef;--sample-tint:#c4ddd0}
.word-sample[data-tone="refined"]{--sample-ink:#675330;--sample-wash:#f6f0e4;--sample-tint:#ded0ae}
.word-sheet{position:relative;flex:1;min-width:0;max-width:138px;aspect-ratio:210/297;overflow:hidden;background:#fff;box-shadow:0 2px 8px #20392a25;color:#2e4139}
.word-sample-cover{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-bottom:3px solid var(--sample-ink)}
.word-cover-rule{position:absolute;inset:0 0 auto;height:24%;background:linear-gradient(152deg,var(--sample-tint) 30%,var(--sample-wash) 30% 58%,#fff 58%)}
.word-cover-title{display:grid;gap:3px;margin-top:8%;color:var(--sample-ink)}
.word-cover-title b{font:700 clamp(8px,.85vw,13px)/1.15 "Noto Serif CJK SC","SimSun",serif}
.word-cover-title span{font-size:5px;letter-spacing:.08em}
.word-cover-details{display:grid;gap:3px;width:76%;margin-top:13%;text-align:left;font-size:4.5px}
.word-cover-details span,.word-sample-contents div{display:flex;align-items:baseline;gap:2px;white-space:nowrap}
.word-cover-details i,.word-sample-contents i{flex:1;border-bottom:1px solid var(--sample-tint)}
.word-sample-contents{padding:15% 6% 0}
.word-sample-contents b{display:block;text-align:center;font-size:8px;color:var(--sample-ink);margin:2px 0 8px}
.word-sample-contents div,.word-sample-contents small{font-size:5px;margin-bottom:3px}
.word-sample-body{padding:6% var(--sample-inset);font-family:"Noto Serif CJK SC","SimSun",serif}
.word-sample-header{display:block;border-bottom:1px solid var(--sample-tint);font-size:4px;text-align:right;margin-bottom:5px}
.word-sample-body b{display:block;font-size:var(--sample-heading);line-height:1.15;color:var(--sample-ink);white-space:nowrap;margin-bottom:3px}
.word-sample-body strong{display:block;font-size:5px;white-space:nowrap;margin:3px 0}
.word-sample-lines{display:grid;gap:2px}
.word-sample-lines i{height:1px;background:#aab8b3}
.word-sample-lines i:nth-child(3n){width:77%}
.word-sample-table{display:grid;grid-template-columns:.8fr 1.2fr;gap:1px;background:var(--sample-tint);border:1px solid var(--sample-tint);margin-top:4px;font-size:4.5px}
.word-sample-table span{background:#fff;white-space:nowrap;text-align:center;overflow:hidden}
.word-sample-table.header_shaded span:nth-child(-n+2){background:var(--sample-wash);font-weight:700}
.word-sample-table.plain{border-inline:0}
.word-sample-page{position:absolute;bottom:4%;left:0;right:0;text-align:center;font-size:5px;color:var(--sample-ink)}
.word-template-preview .word-sample{aspect-ratio:1.9;padding:14px;gap:12px}
.word-template-preview .word-sheet{max-width:176px}
.word-template-preview .word-sample-body b,.word-template-preview .word-cover-title b{font-size:15px}
.word-template-preview .word-sample-header,.word-template-preview .word-sample-body strong,.word-template-preview .word-sample-table,.word-template-preview .word-cover-details,.word-template-preview .word-cover-title span{font-size:8px}
.word-template-preview .word-sample-lines{gap:4px}
.word-export-actions{margin-top:14px}
.word-settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px;border-bottom:1px solid #e8eeeb}
.word-settings-tabs button{padding:8px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#52645d;font-size:13px}
.word-settings-tabs button[aria-pressed=true]{border-bottom-color:#187463;color:#146653;font-weight:650}
.word-group{border:1px solid #dbe6df;border-radius:10px;padding:12px;margin:0 0 12px;min-width:0}
.word-group legend{padding:0 6px;color:#235544;font-weight:700}
.word-form-body{border:0;margin:0;padding:0;min-width:0}
.word-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.word-field label{display:block;margin-bottom:4px;font-size:13px}
.word-field input[type=checkbox]{width:18px;height:18px;accent-color:#187463}
.word-field small{display:block;width:max-content;margin-top:4px}
.word-status h3{margin:20px 0 8px}
.word-job{border:1px solid #dbe6df;border-radius:10px;padding:12px;margin:8px 0}
.word-job p,.word-job code{overflow-wrap:anywhere}
.word-mandatory{margin-top:12px}
.word-plan-link{color:#116d58;font-weight:650}
.word-preview-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}
.word-preview-canvas{overflow:auto;max-height:65vh;background:#edf2ef;padding:12px}
.word-preview-canvas img{display:block;height:auto;max-width:none;margin:0 auto}
#word-preview-error{color:#9c2f24}
@media(max-width:1100px){.word-workspace{grid-template-columns:minmax(0,1fr)}.word-sidebar{grid-row:1}}
@media(max-width:660px){.word-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.word-gallery-body{grid-template-columns:1fr}.word-gallery-filters{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid #e8eeeb}.word-gallery-filters button{padding-inline:8px}}
