:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#213c37;background:#f6f5ef;font-size:14px;line-height:1.7;--teal:#137e76;--line:#d6ded7}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #bdcbc3;background:#fff;color:#213c37;border-radius:5px;padding:9px 15px;font-weight:600}button:hover{background:#eaf2ec}button:disabled{opacity:.45;cursor:default}.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.primary:hover{background:#0f6861}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d17a44;outline-offset:3px}.top{padding:19px 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;gap:13px;align-items:center}.brand b{font-size:24px;letter-spacing:.12em}.brand small{display:block;font-size:10px;letter-spacing:.08em}.brand-mark{display:grid;place-items:center;border:2px solid var(--teal);color:var(--teal);font-size:28px;width:48px;height:48px;border-radius:3px}.file-actions{display:flex;gap:8px}main{max-width:1500px;margin:auto;padding:0 4% 50px}.intro{padding:42px 0 24px;display:flex;justify-content:space-between;align-items:end;gap:25px}.eyebrow{font-size:11px;letter-spacing:.18em;color:#49685b;font-weight:bold}.intro h1{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:34px;line-height:1.45;letter-spacing:.1em;margin:7px 0 13px}.intro p{margin:10px 0;color:#536b60}.intro-note{max-width:340px;border-left:2px solid #b9c9b8;padding-left:24px;font-size:13px}.intro-note b{font-size:15px}.text-button{background:none;border:none;padding:4px 0;border-bottom:1px solid #8eaaa0;border-radius:0;color:#1b675e}#status{background:#e8eee5;border-left:3px solid #567c66;padding:11px 15px;margin:0 0 26px;color:#355247;font-size:13px;min-height:45px}#status.error{background:#fff0e5;border-color:#b95724;color:#873b16}.workspace{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:36px}.editor section{padding-bottom:24px;margin-bottom:22px;border-bottom:1px solid var(--line)}h2{font-size:16px;margin:0 0 18px;letter-spacing:.02em}h2 span{font-size:11px;margin-right:8px;color:var(--teal);letter-spacing:.12em}h2 small{float:right;font-size:12px;color:#60746c;font-weight:400}label{display:block;font-size:12px;font-weight:600;margin:0 0 14px}label small{font-weight:400;color:#63766a;margin-left:4px}input,textarea,select{width:100%;display:block;border:1px solid #bdcbc3;border-radius:4px;background:#fff;color:#253c34;padding:10px;margin-top:5px;min-height:42px}textarea{resize:vertical}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.drop{text-align:center;border:1px dashed #8ea79a;background:#eef2e9;padding:25px 12px;border-radius:5px}.drop.over{background:#d8e8dc;border:2px solid var(--teal)}.drop p{font-size:12px;margin:10px 0 4px}.drop small,.hint{font-size:11px;color:#51665b}.hint{line-height:1.8}.photo-editor{background:#fff;margin-top:18px;border:1px solid var(--line);border-radius:5px;padding:13px}.photo-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}.photo-top img{width:88px;height:66px;object-fit:contain;background:#eff1ed}.photo-top b{font-size:12px}.photo-top small{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.photo-tools{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}.photo-tools button{font-size:11px;padding:5px 8px}.photo-editor label:last-child{margin-bottom:0}.preview{background:#e8ebe3;padding:20px;min-width:0;border-radius:5px;align-self:start}.preview-label{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:20px;letter-spacing:.03em}.empty{text-align:center;padding:90px 10px;color:#566e61}.empty-frame{display:grid;place-items:center;border:1px solid #9dae9f;margin:0 auto 22px;width:85px;height:65px;font-size:25px}.empty h2{font-size:16px}.empty p{font-size:12px;margin-bottom:22px}.sheet{background:#fff;color:#263931;width:100%;aspect-ratio:210/297;padding:5.7%;margin-bottom:24px;container-type:inline-size;display:flex;flex-direction:column;overflow:hidden}.sheet:last-child{margin-bottom:0}.report-top{display:flex;justify-content:space-between;align-items:start;gap:8px;border-top:5px solid var(--teal);padding-top:14px}.report-top h2{font-size:clamp(13px,3.7cqw,25px);line-height:1.5;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.report-date{font-size:clamp(8px,1.8cqw,12px);white-space:nowrap}.report-meta{font-size:clamp(8px,2cqw,13px);padding:12px 0;line-height:1.7;border-bottom:1px solid #cbd5ce;white-space:pre-wrap;overflow-wrap:anywhere}.report-note{font-size:clamp(8px,1.8cqw,12px);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.report-grid{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));flex:1;min-height:0;gap:16px;margin:10px 0}.report-grid.four{grid-template-columns:1fr 1fr}.report-photo{display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-height:0;align-content:start;margin:0;overflow:hidden}.report-photo img{width:100%;height:100%;min-height:0;object-fit:contain;background:#f5f6f2}.report-photo h3{font-size:clamp(8px,2cqw,13px);line-height:1.55;margin:6px 0 2px;overflow-wrap:anywhere}.report-photo h3 span{display:inline;color:#326253;font-weight:400;margin-left:7px}.report-photo p{font-size:clamp(7px,1.8cqw,12px);line-height:1.6;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.report-footer{display:flex;justify-content:space-between;font-size:clamp(7px,1.7cqw,11px);border-top:1px solid #cbd5ce;padding-top:8px;gap:10px;overflow-wrap:anywhere}.app-footer{text-align:center;color:#63736a;font-size:11px;padding:25px;border-top:1px solid var(--line)}dialog{max-width:430px;width:90%;border:1px solid #bdcbc3;border-radius:8px;padding:28px}dialog::backdrop{background:#173b3555}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:25px}body.busy .editor,body.busy .file-actions,body.busy .intro,body.busy #sample-empty{pointer-events:none;opacity:.6}
@media(max-width:900px){.workspace{grid-template-columns:1fr;gap:16px}.intro h1{font-size:29px}.intro-note{max-width:270px}.preview{padding:18px}.editor{display:grid;grid-template-columns:1fr}.sheet{max-width:720px;margin:0 auto 24px}}
@media(max-width:580px){.top{flex-wrap:wrap;padding:15px 5%}.file-actions{width:100%}.file-actions button{flex:1;padding:9px 5px;font-size:11px}.intro{display:block;padding:24px 0}.intro-note{margin-top:22px;max-width:none}.intro h1{font-size:28px}main{padding:0 5% 25px}.preview{padding:10px}.fields{grid-template-columns:1fr}.sheet{padding:5%}.report-top{padding-top:8px;border-top-width:3px}.report-meta{padding:7px 0}.report-note{margin:7px 0}.report-grid{gap:10px;margin:7px 0}.report-footer{padding-top:4px}}
@page{size:A4 portrait;margin:0}
@media print{html,body{background:#fff;margin:0!important;padding:0!important}.top,.intro,#status,.editor,.preview-label,.app-footer,dialog{display:none!important}main,.workspace,.preview,#pages{display:block!important;margin:0!important;padding:0!important;background:none!important;max-width:none!important;width:auto!important}.sheet{width:210mm!important;height:297mm!important;aspect-ratio:auto!important;padding:12mm!important;margin:0!important;break-after:page;page-break-after:always;overflow:hidden!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sheet:last-child{break-after:auto;page-break-after:auto}.report-top h2{font-size:18pt}.report-date{font-size:9pt}.report-meta{font-size:10pt}.report-note{font-size:9pt}.report-photo h3{font-size:10pt}.report-photo p{font-size:9pt}.report-footer{font-size:8pt}.empty{display:none}}

[hidden]{display:none!important}
