*{box-sizing:border-box}body{margin:0;color:#20352f;background:#f3f5f2;font-family:"Microsoft JhengHei","微軟正黑體",system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer;transition:background .16s,box-shadow .16s}button:disabled{cursor:default;opacity:.42}input,select{width:100%;border:1px solid #d8e0db;background:#fff;border-radius:7px;padding:10px;color:#233c32;min-width:0}input:focus,select:focus,button:focus-visible{outline:2px solid #4c8e76;outline-offset:2px}button{border:0;border-radius:7px}h1,h2,p{margin:0}.topbar{height:82px;background:#fff;border-bottom:1px solid #dfe5df;display:flex;align-items:center;justify-content:space-between;padding:0 32px}.brand{display:flex;gap:12px;align-items:center}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:#174b3c;color:#fff;border-radius:12px;font-size:23px;font-weight:700}.brand strong{font-size:18px;letter-spacing:.05em}.brand small{display:block;font-size:9px;letter-spacing:.16em;color:#7c8e85;margin-top:5px}.local-badge{font-size:12px;color:#527362;background:#f2f7f2;padding:9px 13px;border-radius:24px}.local-badge span{display:inline-block;width:6px;height:6px;border-radius:100%;background:#5b9b79;margin-right:7px}.workspace{display:grid;grid-template-columns:370px minmax(0,1fr);align-items:start}.controls{background:#fff;border-right:1px solid #dfe5df;min-height:calc(100vh - 82px);padding:28px 24px}.intro{padding-bottom:25px}.eyebrow{color:#668577;font-size:10px;letter-spacing:.16em;font-weight:700}.intro h1{font-size:27px;line-height:1.55;letter-spacing:.02em;margin:8px 0}.intro p{font-size:12px;line-height:1.8;color:#7c8c84}.panel{border-top:1px solid #e7ece7;padding:22px 0}.panel h2{font-size:14px;display:flex;align-items:center;gap:9px;margin:0 0 15px}.step{font-size:10px;color:#54856d;background:#eaf3ec;border-radius:5px;padding:5px}.dropzone{border:1.5px dashed #b5cbbd;border-radius:10px;background:#f7faf6;min-height:142px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;cursor:pointer;position:relative}.dropzone:hover,.dropzone.drag{background:#eaf4eb;border-color:#477c5f}.dropzone strong{font-size:13px}.dropzone small{color:#819186;font-size:10px}.upload-icon{font-size:26px;color:#547b60}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-info{font-size:11px;color:#5c7e68;word-break:break-all;margin-top:10px}.field{display:block;font-size:11px;font-weight:700;color:#64796e;margin-top:13px;line-height:1.5}.field input,.field select{display:block;margin-top:5px;font-weight:400;font-size:12px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.summary{display:flex;justify-content:space-between;background:#eff6f0;border-radius:8px;margin-top:14px;padding:13px;color:#577461;font-size:11px}.summary strong{font-size:19px;color:#234e3a;margin-right:3px}.hint{font-size:11px;line-height:1.8;color:#7b8b82;margin:9px 0 12px}.section-line{display:flex;justify-content:space-between;align-items:baseline}.text-button{background:none;color:#4d7a61;font-size:11px;padding:0}.group-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow:auto}.group{display:flex;gap:10px;border:1px solid #e1e7e0;border-radius:8px;padding:11px;background:white;align-items:center}.group.active{border-color:#729d80;background:#f2f8f0}.group input{width:15px;height:15px;flex-shrink:0;accent-color:#306d4b}.group button{flex:1;background:none;text-align:left;padding:0;min-width:0;color:#2a4837}.group strong{display:block;font-size:12px;line-height:1.6}.group small{display:block;color:#839287;font-size:10px;line-height:1.7}.group b{font-size:13px;white-space:nowrap;color:#4e795c}.empty-hint{font-size:12px;color:#8a978e;padding:12px 0}.segment{display:flex;background:#f1f4ef;padding:4px;border-radius:8px;gap:4px}.segment button{width:50%;font-size:11px;padding:9px 3px;background:transparent;color:#748374}.segment button.active{background:#fff;color:#285b3e;box-shadow:0 1px 4px #0000000e}.secondary{background:white;border:1px solid #cbd8cf;color:#315d43;padding:11px 16px;font-weight:700;font-size:12px}.secondary:hover:not(:disabled){background:#f0f6f1}.primary{background:#245c40;color:#fff;padding:12px 20px;font-weight:700;font-size:12px}.primary:hover:not(:disabled){background:#17472f}.full{width:100%;margin-top:2px}.icon-button{background:none;color:#406d50;padding:10px;font-size:11px}.footnote{font-size:10px;line-height:1.9;color:#8a978f;padding-top:6px}.preview-area{padding:28px 36px 110px;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center}.preview-toolbar h2{font-size:18px;margin-top:6px;line-height:1.5}.paper-badge{font-size:11px;color:#7a8a7f;border:1px solid #d7e1d8;padding:7px 10px;border-radius:5px;white-space:nowrap}.page-nav{display:flex;justify-content:center;align-items:center;gap:16px;font-size:12px;color:#728174;margin:24px 0 18px}.page-nav button{background:#fff;border:1px solid #dbe3da;color:#4c6856;padding:6px 13px}.page-nav #roomLabel{font-size:11px;color:#95a191}.paper-wrap{position:relative;width:min(100%,650px);margin:auto;box-shadow:0 5px 25px #1e3e2514;line-height:0;background:#fff}#preview{width:100%;height:auto}#demoBadge{position:absolute;bottom:60px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#f4f7f2;color:#91a08e;font-size:11px;line-height:1.4;border-radius:4px;padding:8px 12px}.export-bar{position:fixed;bottom:0;right:0;left:370px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid #dee7db;padding:19px 30px;z-index:3}.export-bar strong{font-size:13px;display:block}.export-bar small{font-size:10px;color:#7c8c7e;display:block;margin-top:6px}.export-actions{display:flex;gap:8px;align-items:center}.notice,.error{font-size:11px;line-height:1.7;padding:10px 12px;border-radius:7px;margin-top:12px;white-space:pre-line;max-height:150px;overflow:auto}.notice{background:#fff7e5;color:#896d32}.error{background:#fff0ec;color:#a44232}.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#173e2e;color:#fff;border-radius:8px;padding:12px 22px;z-index:5;font-size:12px;box-shadow:0 5px 15px #0002}.hidden{display:none!important}@media(min-width:1500px){.preview-area{padding-top:36px}.paper-wrap{width:680px}}@media(max-width:1100px){.workspace{grid-template-columns:330px minmax(0,1fr)}.controls{padding:24px 20px}.preview-area{padding:24px 20px 145px}.export-bar{left:330px;flex-wrap:wrap;padding:16px 20px}.paper-badge{display:none}}@media(max-width:760px){.topbar{padding:0 18px;height:70px}.local-badge{font-size:9px;padding:7px}.workspace{display:block}.controls{border-right:0;min-height:0;padding:24px}.intro h1{font-size:25px}.preview-area{padding:24px 12px 165px}.export-bar{left:0;padding:14px 16px}.preview-toolbar{padding:0 10px}.export-actions{width:100%;justify-content:space-between}.primary,.secondary{padding:11px 14px}}
/* Keep the additional seven-column export available at desktop and narrow widths. */
.export-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.export-actions{justify-content:space-between}.export-actions button{flex:1 1 auto}}
.page-numbers{border-top:1px solid #e7ece7;margin-top:18px;padding-top:17px}
.page-numbers h3{font-size:12px;margin:0;color:#355d45}
.page-number-list{max-height:260px;overflow:auto;border:1px solid #e3ebe3;border-radius:8px;background:#fbfdfb}
.page-number-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid #e9eee9;font-size:11px}
.page-number-row:last-child{border-bottom:0}
.page-number-row span{line-height:1.5}
.page-number-row input{width:78px;padding:6px 8px;text-align:center;font-size:12px}
