:root{color-scheme:light;--ink:#243a34;--muted:#6f7c76;--green:#176453;--green-dark:#104c3e;--green-pale:#edf5ee;--cream:#f6f5ef;--border:#dfe4dc;--orange:#e79858;--white:#fff;--radius:18px;font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-size:15px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button,select,input{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #db8a47}button{transition:background .16s,border-color .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.app-header{height:88px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;max-width:1440px;padding:0 50px;margin:auto}.brand{display:flex;gap:12px;align-items:center;color:var(--green);text-decoration:none}.brand-mark{width:45px;height:45px;display:grid;grid-template-columns:1fr 1fr;background:var(--green);color:#fff9ed;border-radius:12px;padding:5px;gap:0;transform:rotate(-5deg);font:700 22px/17px Arial,sans-serif;text-align:center}.brand-name{font-size:16px;line-height:1.07;font-weight:800;letter-spacing:-.5px}.brand-name span{display:block}.header-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.header-label svg{width:19px;height:19px}.header-label svg,.generate-button svg,.download-button svg,.print-button svg,.page-navigation svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{max-width:1440px;margin:auto;padding:37px 50px 22px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:2.1px;font-weight:800;color:var(--green);margin:0 0 8px}h1{font-size:clamp(27px,3.1vw,42px);line-height:1.14;letter-spacing:-1.65px;margin:0;font-weight:800}.title-dot{color:var(--orange)}.intro-copy{color:var(--muted);font-size:15px;margin:11px 0 0}.a4-badge{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:700;color:#69796c;background:#eeeee5;padding:11px 14px;border-radius:10px}.small-page{font-size:9px;border:1.3px solid #9da994;border-radius:2px;padding:6px 3px;background:#fafaf5}.workspace{display:grid;grid-template-columns:355px minmax(0,1fr);gap:29px;align-items:start}.settings-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:25px;box-shadow:0 3px 4px #23372a03}.control-section{border:0;padding:0 0 21px;margin:0 0 21px;border-bottom:1px solid #edf0e9;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}h2,legend,.number-heading label{font-size:15px;letter-spacing:-.25px;font-weight:800;margin:0}.count-badge{font-size:10px;font-weight:700;color:var(--green);background:var(--green-pale);padding:5px 8px;border-radius:20px;white-space:nowrap}.quick-select{display:flex;gap:13px;margin:12px 0 14px}.quick-select button{font-size:11px;color:var(--muted);background:none;border:0;padding:2px 0;text-decoration:underline;text-decoration-color:#c9d3cb;text-underline-offset:3px}.quick-select button:hover{color:var(--green);text-decoration-color:var(--green)}.table-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.table-button{height:43px;border:1px solid var(--border);border-radius:9px;background:#fafbf8;font-size:16px;font-weight:700;color:#66776c;position:relative}.table-button:hover{background:#e9f1e9;border-color:#a1b5a4}.table-button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 2px 2px #164f3b12}.type-section legend{margin-bottom:13px;padding:0}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.type-option{position:relative;cursor:pointer;display:block}.type-option input{position:absolute;opacity:0;width:100%;height:100%;margin:0;inset:0;cursor:pointer}.type-content{border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:10px 9px;min-height:48px;background:#fdfefb;font-size:10.8px;font-weight:700;transition:.15s;white-space:nowrap}.type-icon{color:#869485;background:#f0f2eb;width:25px;height:25px;flex:0 0 25px;border-radius:6px;text-align:center;font:700 21px/25px Arial,sans-serif}.type-icon.paired{font-size:14px;letter-spacing:-1px}.type-option input:checked+.type-content{border-color:#79a88d;background:#eff6ef;box-shadow:0 0 0 1px #79a88d44}.type-option input:checked+.type-content .type-icon{color:var(--green);background:#dcecdc}.type-option input:focus-visible+.type-content{outline:3px solid #db8a47;outline-offset:3px}.mode-example{font-size:11px;color:var(--muted);margin:13px 0 0;min-height:15px}.mode-example span{letter-spacing:1px}.number-heading{display:flex;align-items:center;justify-content:space-between}.number-heading input{width:66px;height:38px;border:1px solid #cfdacf;border-radius:8px;padding:5px 5px 5px 12px;text-align:center;color:var(--ink);font-weight:700;background:#fcfdfa}.count-presets{display:flex;gap:7px;margin-top:12px}.count-presets button{flex:1;height:32px;border:1px solid var(--border);border-radius:7px;background:#fff;font-size:12px;color:var(--muted)}.count-presets button.active{border-color:#7eaa91;background:var(--green-pale);color:var(--green);font-weight:700}.count-presets button:hover{background:#f0f5ed}.fact-limit{display:flex;align-items:center;justify-content:space-between;margin-top:17px;gap:10px}.fact-limit label{font-size:12px;color:var(--muted)}.fact-limit select{font-size:12px;color:#4b6154;border:1px solid var(--border);background:#fafbf7;padding:7px 27px 7px 10px;border-radius:7px;max-width:156px}.number-section{margin-bottom:19px;padding-bottom:20px}.answer-option{margin-bottom:22px}.switch-label{display:flex;align-items:center;cursor:pointer;position:relative;gap:12px}.switch-label>span:first-child{flex:1}.switch-label strong{display:block;font-size:12px;font-weight:800}.switch-label small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.switch-label input{position:absolute;right:0;width:40px;height:25px;opacity:0;cursor:pointer}.switch{width:38px;height:23px;border-radius:20px;background:#cfd7ce;display:block;position:relative;transition:.18s}.switch:after{content:'';width:17px;height:17px;background:white;position:absolute;top:3px;left:3px;border-radius:50%;box-shadow:0 1px 3px #0002;transition:.18s}.switch-label input:checked+.switch{background:var(--green)}.switch-label input:checked+.switch:after{transform:translateX(15px)}.switch-label input:focus-visible+.switch{outline:3px solid #db8a47;outline-offset:4px}.generate-button{border:0;background:var(--green);color:white;width:100%;height:48px;border-radius:10px;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 3px 0 #0f483b}.generate-button svg{width:18px;height:18px}.generate-button:hover{background:var(--green-dark)}.generate-button:disabled{opacity:.45;box-shadow:none}.preview-panel{border:1px solid #dce2d8;border-radius:var(--radius);background:#e9ede5;overflow:hidden}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafbf7;padding:20px 23px}.preview-toolbar h2{font-size:16px}.preview-toolbar p{font-size:11px;color:var(--muted);margin:6px 0 0}.download-button{background:var(--ink);color:white;border:0;border-radius:9px;padding:11px 15px;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.download-button svg{height:17px;width:17px}.download-button:hover{background:#142820}.download-button:disabled{opacity:.4}.preview-controls{display:flex;align-items:center;justify-content:space-between;padding:14px 23px 2px}.preview-tabs{display:flex;gap:3px;background:#dce3d7;border-radius:8px;padding:3px}.preview-tabs button{border:0;border-radius:6px;background:transparent;color:#687762;font-size:11px;padding:7px 16px}.preview-tabs button.active{background:#fff;color:var(--green);font-weight:700;box-shadow:0 1px 3px #263a2710}.print-button{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:#65755f;font-size:11px;padding:8px}.print-button svg{width:15px;height:15px}.print-button:hover{color:var(--green)}.print-button:disabled{opacity:.4}.paper-stage{padding:22px 35px 24px;min-height:250px;position:relative;background-image:radial-gradient(#7e947a15 .8px,transparent .8px);background-size:9px 9px}.paper{max-width:635px;margin:auto;background:#fff;box-shadow:0 4px 20px #34463012,0 1px 3px #34463015;line-height:0;aspect-ratio:595.28/841.89}.paper svg{width:100%;height:auto;display:block}.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#e2e8dc;border-top:1px solid #dbe2d5;padding:11px 20px;font-size:10px;color:#6d7b65}.page-navigation{display:flex;align-items:center;gap:10px}.page-navigation>span{min-width:66px;text-align:center}.page-navigation button{width:25px;height:25px;border:1px solid #ced7c8;background:#f7f9f3;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--green);padding:4px}.page-navigation svg{width:13px;height:13px}.page-navigation button:disabled{opacity:.3}.app-footer{display:flex;justify-content:space-between;gap:12px;color:#8a9384;font-size:10px;margin-top:20px;padding:0 1px}.field-error{font-size:11px;color:#b74730;margin:10px 0 0;line-height:1.4}.empty-preview{max-width:635px;margin:auto;background:#fff;border:1px dashed #bdcbbc;min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;border-radius:8px}.empty-preview>span{font-size:58px;color:#95b49b}.empty-preview h3{font-size:20px;margin:14px 0 8px}.empty-preview p{font-size:13px;color:var(--muted);max-width:230px;line-height:1.6}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);background:var(--ink);color:#fff;padding:14px 20px;border-radius:12px;box-shadow:0 6px 24px #0002;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:calc(100vw - 32px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#print-content{display:none}
@media(min-width:1440px){.paper-stage{padding-left:55px;padding-right:55px}}@media(max-width:1100px){.app-header{padding:0 30px}.app-shell{padding:30px}.workspace{grid-template-columns:325px minmax(0,1fr);gap:20px}.settings-card{padding:21px}.preview-toolbar{padding:19px 18px}.preview-controls{padding-left:18px;padding-right:18px}.paper-stage{padding:20px}.a4-badge{display:none}.type-content{font-size:10px;padding:9px 7px;gap:7px}.preview-footer{font-size:9px;padding:10px 12px}.download-button{padding:10px 12px}.preview-toolbar h2{font-size:15px}.preview-toolbar p{font-size:10px}}@media(max-width:800px){.app-header{height:73px;padding:0 22px}.app-shell{padding:28px 22px 22px}.intro{margin-bottom:23px}.workspace{grid-template-columns:290px minmax(0,1fr);gap:16px}.settings-card{padding:17px}.table-button{height:39px}.table-grid{gap:6px}.section-heading h2,legend,.number-heading label{font-size:13px}.count-badge{font-size:9px;padding:5px 6px}.type-content{font-size:9px;padding:9px 6px;gap:5px}.type-icon{width:22px;height:22px;flex-basis:22px;line-height:22px}.preview-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.download-button{width:100%}.paper-stage{padding:15px}.preview-footer>span{display:none}.preview-footer{justify-content:center}.preview-controls{padding:12px 12px 2px}.preview-tabs button{padding:7px 10px;font-size:10px}.print-button{font-size:10px;padding:6px}.print-button svg{width:13px}.control-section{margin-bottom:18px;padding-bottom:18px}.app-footer{font-size:9px}}@media(max-width:620px){.app-header{padding:0 20px;height:70px}.header-label{font-size:11px;gap:5px}.header-label svg{width:16px}.brand-mark{width:37px;height:37px;font-size:19px;line-height:14px;border-radius:10px}.brand-name{font-size:14px}.brand{gap:9px}.app-shell{padding:25px 16px 20px}.intro{padding:0 4px}.eyebrow{font-size:9px;margin-bottom:8px}h1{font-size:29px;letter-spacing:-1.1px}.intro-copy{font-size:12px;margin-top:10px}.workspace{display:flex;flex-direction:column;gap:23px}.settings-card{width:100%;padding:22px}.section-heading h2,legend,.number-heading label{font-size:15px}.count-badge{font-size:10px;padding:5px 9px}.table-grid{grid-template-columns:repeat(7,1fr);gap:7px}.table-button{height:42px;font-size:15px}.quick-select{margin-bottom:15px}.type-content{font-size:12px;gap:10px;padding:10px 12px}.type-icon{width:27px;height:27px;flex-basis:27px;line-height:27px}.mode-example{font-size:11px}.control-section{padding-bottom:21px;margin-bottom:21px}.count-presets button{height:36px;font-size:13px}.fact-limit label,.fact-limit select{font-size:12px}.switch-label strong{font-size:13px}.switch-label small{font-size:11px}.generate-button{height:49px;font-size:14px}.preview-panel{width:100%}.preview-toolbar{flex-direction:row;align-items:center;padding:18px;gap:8px}.preview-toolbar h2{font-size:14px}.preview-toolbar p{font-size:9px}.download-button{width:auto;font-size:11px;gap:5px;padding:11px}.download-button svg{width:15px}.preview-controls{padding:12px 18px 0}.preview-tabs button{font-size:11px;padding:7px 13px}.print-button{font-size:11px}.paper-stage{padding:20px}.preview-footer>span{display:block;font-size:8px}.preview-footer{justify-content:space-between;padding:9px 12px}.app-footer{justify-content:center}.app-footer span:last-child{display:none}.toast{font-size:11px;width:max-content}.empty-preview{min-height:350px}}@media(max-width:370px){.table-grid{grid-template-columns:repeat(5,1fr)}.type-content{font-size:10px;padding:10px 8px}.header-label{display:none}.preview-toolbar p{font-size:8px}.preview-toolbar h2{font-size:13px}.download-button{font-size:10px}.paper-stage{padding:13px}.preview-footer>span{display:none}.preview-footer{justify-content:center}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}@page{size:A4;margin:0}@media print{html,body{margin:0!important;padding:0!important;background:white!important}.screen-only{display:none!important}#print-content{display:block!important}.print-page{display:block;width:210mm;height:297mm;margin:0;padding:0;break-after:page;page-break-after:always;overflow:hidden}.print-page:last-child{break-after:auto;page-break-after:auto}.print-page svg{display:block;width:210mm;height:297mm}}

.download-button{text-decoration:none;cursor:pointer}.download-button[aria-disabled=true]{opacity:.4;pointer-events:none}
#decimal-settings{margin-bottom:19px}.has-decimals #grouping-control .option-row,.has-decimals .decimal-match-row{flex-direction:column;align-items:stretch;gap:7px}.has-decimals #grouping-control .option-row label,.has-decimals .decimal-match-row label{max-width:none}.has-decimals #grouping-control select,.has-decimals .decimal-match-row select{max-width:none;width:100%}

.channel-link{display:flex;align-items:center;gap:9px;color:var(--muted);text-decoration:none}.channel-link img{display:block;border:1px solid var(--border);border-radius:4px}.channel-link strong{display:block;color:var(--green);font-size:11px;margin-bottom:4px}.channel-link span span{display:block;font-size:10px}.app-footer{align-items:center}.channel-link:hover strong{text-decoration:underline}.app-footer .channel-link>span{display:block}
.options-heading{display:block;font-size:15px;font-weight:800;margin:0 0 12px}.full-select{width:100%;min-width:0;height:43px;border:1px solid #cbd9cc;border-radius:9px;background:#f7faf4;color:var(--ink);font-size:13px;padding:8px 11px}.option-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.option-row label{font-size:12px;font-weight:700;line-height:1.4;max-width:130px}.option-row select{min-width:0;max-width:166px;border:1px solid var(--border);border-radius:7px;background:#fafcf7;padding:8px 23px 8px 9px;font-size:12px;color:var(--ink)}.option-spacing{margin-top:19px}.option-note{font-size:10.5px;line-height:1.6;color:var(--muted);margin:11px 0 0}.factor-grid{grid-template-columns:repeat(5,1fr)!important}.scaffold-option{padding-bottom:20px}.layout-note{border-left:2px solid #a9c3ac;padding-left:9px}.settings-error{margin:0 0 15px;line-height:1.5}.switch-label small{line-height:1.5}.scaffold-option .switch-label>span:first-child{max-width:calc(100% - 50px)}
@media(max-width:800px) and (min-width:621px){.option-row{gap:8px}.option-row label{font-size:11px;max-width:105px}.option-row select{font-size:11px;max-width:145px}.full-select{font-size:12px}.options-heading{font-size:13px}}
@media(max-width:620px){.options-heading{font-size:15px}.option-row label{font-size:13px;max-width:150px}.option-row select{font-size:12px;max-width:185px}.option-note{font-size:11px}.full-select{font-size:14px;height:46px}}
