@charset "UTF-8";
:root{--green:#163e36;--accent:#dfed98;--ink:#273735;--muted:#667571;--line:#dde3df;--surface:#f4f6f3;--focus:#2a8069;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:#f8faf8}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button svg,.summary-icon svg,.print-tip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}
.app-header{height:88px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:20px}.brand{display:flex;align-items:center;gap:13px;color:var(--green);text-decoration:none;flex-shrink:0}.brand-mark{width:43px;height:43px;background:var(--green);color:var(--accent);display:grid;place-items:center;border-radius:12px}.brand-mark svg{width:29px;fill:none;stroke:currentColor;stroke-width:1.5}.brand-mark circle{fill:currentColor;stroke:none}.brand strong{display:block;font-size:19px;letter-spacing:.025em;font-weight:750}.brand small{display:block;font-size:10px;letter-spacing:.18em;margin-top:4px;font-weight:600}.header-actions{display:flex;gap:10px}.button{border:1px solid transparent;border-radius:8px;padding:12px 19px;min-height:45px;font-size:14px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:9px}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#205649}.button.secondary{background:white;border-color:var(--line)}.button.secondary:hover{background:var(--surface)}
.workspace{max-width:1460px;margin:0 auto;display:grid;grid-template-columns:350px minmax(0,1fr);gap:36px;padding:30px 40px 40px}.editor{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.editor-title{padding:24px 24px 22px;background:var(--green);color:white}.eyebrow{font-size:10px;letter-spacing:.13em;color:#d2dea7}.editor-title h1{font-size:21px;line-height:1.5;letter-spacing:.015em;font-weight:650;margin:6px 0 0}.settings-section{padding:23px 24px;border-top:1px solid var(--line)}.settings-section:first-of-type{border-top:0}h2{font-size:16px;display:flex;align-items:center;gap:10px;margin:0 0 21px;font-weight:700}.step{font-family:Georgia,serif;font-size:16px;color:#557168}.field{display:block;font-size:14px;font-weight:600;margin-bottom:17px;line-height:1.5}.field input,.field select{display:block;width:100%;height:43px;background:white;border:1px solid #ced8d1;border-radius:6px;margin-top:7px;color:var(--ink);padding:9px 11px;font-size:16px;min-width:0}.field select{font-size:14px;padding-right:5px}.field input:hover,.field select:hover{border-color:#8aaba0}.field-label{font-size:14px;font-weight:600;line-height:1.5}.denominations-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.text-button{border:0;background:none;font-size:14px;padding:3px 0;color:#386d5f;min-height:28px}.text-button:hover{text-decoration:underline}.denominations{display:flex;flex-wrap:wrap;gap:7px}.denomination-entry{position:relative;display:flex;align-items:center;width:calc(25% - 6px);min-width:52px}.denomination-entry input{width:100%;text-align:center;border:1px solid #d9e0da;background:#f8faf8;border-radius:6px;height:41px;padding:8px 15px 8px 4px;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}.denomination-entry button{position:absolute;right:1px;top:1px;border:0;background:none;color:#53685d;font-size:15px;padding:0;width:19px;height:20px}.hint{font-size:12px;line-height:1.8;color:var(--muted);margin:9px 0 0}
.template-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.template-option{background:white;border:1px solid var(--line);border-radius:7px;padding:10px 7px 9px;font-size:14px;display:grid;justify-items:center;gap:8px}.template-option.selected{border-color:#285c4d;box-shadow:0 0 0 1px #285c4d;background:#f3f8f3}.template-sample{width:64px;height:36px;color:#516c60;position:relative;display:flex;align-items:center;padding:5px;border:1px solid #81948b;background:white;font-family:Georgia,serif;font-size:19px}.classic-sample{outline:1px solid #b7c2ba;outline-offset:-4px}.template-sample i{width:19px;height:22px;border:1px solid #8c9e94;position:absolute;right:6px;border-radius:50%}.ticket-sample{border-style:dashed}.ticket-sample:after{content:"";position:absolute;right:17px;top:0;bottom:0;border-left:1px dashed #81948b}.minimal-sample{border:0;background:#edf1ee}.minimal-sample b{font-family:Arial,sans-serif}.segmented{display:flex;padding:4px;border:1px solid #dce3dc;background:#eef2ed;border-radius:8px;gap:3px}.segmented button{flex:1;border:0;background:transparent;border-radius:5px;min-height:35px;font-size:14px;padding:7px 10px;color:#63756d;font-weight:550;white-space:nowrap}.segmented button.active{background:white;color:var(--green);box-shadow:0 1px 4px #182e2415;font-weight:650}.color-mode{margin-bottom:19px}.palette-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 18px}.swatches{display:flex;gap:9px}.swatch{width:28px;height:28px;border-radius:50%;background:var(--swatch);border:3px solid white;outline:1px solid transparent}.swatch.selected{outline:2px solid var(--swatch)}.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}.optional{font-size:12px;color:#7b8b82;margin-left:7px;font-weight:400}.photo-upload{display:flex;align-items:center;gap:9px;min-height:46px;border:1px dashed #acbdb1;border-radius:7px;padding:10px 12px;cursor:pointer;font-size:14px;color:#51695d;background:#fbfcfa}.photo-upload:hover{background:#f0f5f0}.photo-upload svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.upload-plus{margin-left:auto;font-size:18px}.photo-adjustments{padding-top:10px}.photo-adjustments label{display:grid;grid-template-columns:86px 1fr;align-items:center;font-size:14px;gap:8px;margin-top:6px}.photo-adjustments input{width:100%;accent-color:var(--green)}
.copies-heading,.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.copies-heading{font-size:14px;color:var(--muted);border-bottom:1px solid var(--line);padding:0 0 8px}.quantity-row{font-size:14px;padding:8px 0;border-bottom:1px solid #edf1ed}.quantity-row strong{font-weight:550;overflow-wrap:anywhere}.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;overflow:hidden;flex-shrink:0}.stepper button{border:0;background:#f6f8f5;height:32px;width:30px;font-size:18px}.stepper input{border:0;width:40px;text-align:center;font-size:14px;padding:3px;appearance:textfield;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.checkbox-field{display:flex;gap:8px;font-size:14px;align-items:center;margin:17px 0 0}.checkbox-field input{width:17px;height:17px;accent-color:var(--green)}
.preview-column{min-width:0;padding-top:2px}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.view-switch{max-width:330px}.live-label{font-size:12px;color:#687c6f;white-space:nowrap}.preview-stage{border:1px solid #dbe3d9;border-radius:13px;min-height:425px;padding:23px 29px 25px;background-color:#edf1e9;background-image:radial-gradient(#acbaac55 .7px,transparent .7px);background-size:16px 16px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;overflow:hidden}.preview-topline{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;font-size:13px;color:#6a7b6d;letter-spacing:.03em}.preview-topline span:first-child{font-weight:650;color:#49634e}.note-display{width:100%;max-width:700px;margin:43px 0 34px;filter:drop-shadow(0 10px 17px #2638251c)}.note-display svg{display:block;width:100%;height:auto}.preview-caption{display:flex;gap:15px;align-items:center;color:#647961;justify-content:center;font-size:12px;margin:0 auto;width:75%}.caption-rule{height:1px;background:#becabc7a;width:43px}.denomination-picker{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:22px 0 27px}.preview-denom{border:1px solid var(--line);background:white;padding:9px 20px;border-radius:7px;font-size:14px;font-weight:550;min-height:39px;min-width:75px;display:flex;align-items:center;justify-content:center;gap:8px}.preview-denom.active{background:var(--green);color:white;border-color:var(--green)}.mini-photo{display:inline-block;width:18px;height:18px;border-radius:50%;object-fit:cover}.output-summary{display:flex;align-items:center;gap:14px;border:1px solid #dce5d9;padding:19px 21px;background:white;border-radius:9px}.summary-icon{width:42px;height:44px;border-radius:7px;background:#eff5e7;color:#5e7852;display:grid;place-items:center;flex-shrink:0}.summary-icon svg{width:22px;height:22px}.output-summary strong{font-size:16px;line-height:1.5;font-weight:650}.output-summary p{font-size:13px;line-height:1.6;color:#68776b;margin:3px 0 0}.paper-badge{margin-left:auto;white-space:nowrap;font-size:12px;border:1px solid #d4dece;border-radius:5px;padding:5px 8px;color:#6c7e60}.print-tip{display:flex;gap:9px;color:#68776d;margin:16px 3px 0;align-items:flex-start}.print-tip svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.print-tip p,.session-tip{font-size:12px;line-height:1.8;margin:0;max-width:660px}.session-tip{margin:12px 3px;color:#68776d}.workspace-footer{border-top:1px solid var(--line);padding:25px 0 0;margin-top:35px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#6c7c70;font-size:12px;line-height:1.8}.workspace-footer span:last-child{font-size:10px;letter-spacing:.13em;white-space:nowrap}
.sheet-display{margin:22px 0;width:100%;max-width:390px}.paper-preview{width:100%;background:white;box-shadow:0 7px 15px #24382418;aspect-ratio:210/297;padding:5.7%;position:relative}.sheet-grid{display:grid;gap:2.1%;width:100%;align-content:start;justify-content:center}.sheet-grid svg{display:block;width:100%;height:auto}.sheet-note{position:relative;min-width:0}.with-guides .sheet-note{outline:1px dashed #aaa;outline-offset:2px}.paper-caption{font-size:10px;text-align:center;color:#687264;margin-bottom:9px}.sheet-empty{font-size:14px;line-height:1.8;color:#6b7a70;display:flex;justify-content:center;align-items:center;height:90%;text-align:center}.sheet-page-picker{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px;font-size:13px;color:#576c5c}.sheet-page-picker button{width:32px;height:32px;border:1px solid #cbd6c6;background:white;border-radius:5px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(15px);background:var(--green);color:white;padding:13px 20px;border-radius:9px;box-shadow:0 4px 20px #132c2722;font-size:14px;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none;max-width:90vw;z-index:10}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}#printRoot{display:none}.print-page{width:210mm;height:296mm;position:relative;padding:12mm;box-sizing:border-box;break-after:page;page-break-after:always}.print-page:last-child{break-after:auto;page-break-after:auto}.print-page-heading{text-align:center;font-size:8pt;color:#606060;height:5mm;margin-bottom:2mm}.print-grid{display:grid;gap:4mm;justify-content:center;align-content:start}.print-note{position:relative}.print-note svg{width:100%;height:100%;display:block}.print-page.with-guides .print-note:before{content:"";position:absolute;inset:-1mm;border:.2mm dashed #999;pointer-events:none}.print-page-number{position:absolute;bottom:4mm;left:0;right:0;text-align:center;color:#666;font-size:7pt}
@media(min-width:1300px){.preview-column{padding-top:6px}.preview-stage{min-height:510px}.note-display{margin:52px 0 44px}}
@media(max-width:1050px){.app-header{padding:0 24px}.workspace{padding:25px 24px;gap:24px;grid-template-columns:320px minmax(0,1fr)}.settings-section,.editor-title{padding-left:20px;padding-right:20px}.live-label{display:none}.preview-stage{padding:19px;min-height:350px}.preview-denom{padding:8px 13px;min-width:65px}.paper-badge{display:none}.workspace-footer{display:block}.workspace-footer span:last-child{display:block;margin-top:9px}}
@media(max-width:760px){.app-header{height:76px;padding:0 16px;gap:8px}.brand{gap:9px}.brand-mark{width:35px;height:35px;border-radius:9px}.brand strong{font-size:16px}.brand small{font-size:8px;letter-spacing:.1em}.header-actions{gap:6px}.button{min-height:39px;padding:9px 10px;font-size:13px;gap:6px}.button.secondary{padding:9px}.button.secondary span{display:none}.button svg{width:17px;height:17px}.workspace{display:flex;flex-direction:column;padding:18px 16px 30px;gap:24px}.preview-column{order:0;padding:0}.editor{order:1}.preview-toolbar{margin-bottom:13px}.view-switch{width:100%;max-width:none}.view-switch button{font-size:14px}.preview-stage{padding:16px;min-height:245px}.preview-topline{font-size:12px}.note-display{margin:29px 0 22px;max-width:540px}.preview-caption{font-size:12px;width:90%}.denomination-picker{margin:15px 0 17px;gap:7px}.preview-denom{flex:1;max-width:105px;min-width:62px;font-size:13px;padding:8px 9px}.output-summary{padding:14px;gap:10px}.output-summary strong{font-size:14px}.output-summary p{font-size:12px}.summary-icon{width:34px;height:38px}.print-tip{margin-top:12px}.workspace-footer{display:none}.settings-section{padding:24px}.editor-title{padding:20px 24px}.editor-title h1{font-size:20px}.template-sample{width:75px;height:43px}.photo-upload{min-height:48px}.sheet-display{max-width:310px}.paper-caption{font-size:8px}}
@media(max-width:380px){.brand small{display:none}.brand strong{font-size:14px}.brand-mark{width:30px;height:30px}.app-header{padding:0 12px}.button{font-size:12px;padding:9px 8px}.workspace{padding:16px 12px}.template-sample{width:64px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{@page{size:A4 portrait;margin:0}html,body{margin:0;padding:0;background:white!important;width:210mm;font-size:12pt}body>*:not(#printRoot){display:none!important}#printRoot{display:block!important}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.print-page{overflow:hidden}}

/* Fixed layout classes keep inline styles disabled by the app CSP. */
.swatch[data-color="green"]{--swatch:#246454}.swatch[data-color="blue"]{--swatch:#31558c}.swatch[data-color="orange"]{--swatch:#a94b2c}.swatch[data-color="purple"]{--swatch:#725394}
.sheet-grid{column-gap:2.150537634409%;row-gap:0}
.sheet-grid-standard{grid-template-columns:repeat(2,48.387096774194%)}.sheet-grid-small{grid-template-columns:repeat(2,45.698924731183%)}.sheet-grid-large{grid-template-columns:repeat(1,69.892473118280%)}
.sheet-grid-standard .sheet-note{margin-bottom:4.444444444444%}.sheet-grid-small .sheet-note{margin-bottom:4.705882352941%}.sheet-grid-large .sheet-note{margin-bottom:3.076923076923%}
.print-grid-standard{grid-template-columns:repeat(2,90mm);grid-auto-rows:55mm}.print-grid-small{grid-template-columns:repeat(2,85mm);grid-auto-rows:40mm}.print-grid-large{grid-template-columns:repeat(1,130mm);grid-auto-rows:60mm}

/* Equal-height numerals and size-aware controls. */
.note-value{font-variant-numeric:lining-nums tabular-nums}
.auto-counts{margin-top:0;align-items:flex-start;font-size:12px;line-height:1.7}
.auto-counts input{flex-shrink:0;margin-top:2px}
.layout-label{margin-top:20px;margin-bottom:8px}
.layout-hint{margin-bottom:18px}

/* Match the physical print positions: 12 mm margins and a 7 mm heading. */
.paper-preview{padding:0;overflow:hidden}
.paper-caption{position:absolute;top:4.040404040404%;left:5.714285714286%;right:5.714285714286%;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.paper-preview .sheet-grid{position:absolute;top:6.397306397306%;left:5.714285714286%;right:5.714285714286%;width:auto}
.sheet-empty{position:absolute;inset:5.714285714286%}
.button.print-bottom{width:100%;min-height:44px;margin-top:16px}
