*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#182c38;font-family:'Malgun Gothic','맑은 고딕',sans-serif;font-size:14px}header{height:78px;background:white;border-bottom:1px solid #e0e7e9;display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{text-decoration:none;color:#167869;font-size:27px;font-weight:bold;display:flex;gap:14px;align-items:center}.brand span{font-size:18px;color:#203b42}.badge{background:#edf6f2;color:#447666;border-radius:20px;padding:9px 13px;font-size:12px}main{max-width:1440px;margin:auto;padding:45px 5%}.intro small,aside small{letter-spacing:2px;font-size:10px;font-weight:bold;color:#458c7f}h1{font-size:34px;line-height:1.35;letter-spacing:-1px;margin:14px 0}p{line-height:1.7}.intro p,.muted{color:#75838d}.toolbar{display:flex;align-items:center;justify-content:space-between;margin:30px 0 18px;font-size:12px;color:#64777f}.toolbar b{padding:0 14px;color:#9eafb2}.workspace{display:grid;grid-template-columns:minmax(320px,1fr) minmax(400px,1.1fr);gap:26px;align-items:start}section,aside{background:white;border:1px solid #e0e6e9;border-radius:12px}section{padding:25px;margin-bottom:18px}.sectiontitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}h2{font-size:17px;margin:0}.sectiontitle span{font-size:12px;color:#8b9c9f}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.wide{grid-column:1/-1}label{display:block;font-size:12px;font-weight:bold;color:#4f626b;margin-bottom:14px}input,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #dbe3e6;border-radius:6px;background:#fff;color:#233d46;font:14px 'Malgun Gothic','맑은 고딕',sans-serif;margin-top:8px}textarea{resize:vertical;line-height:1.6}input:focus,textarea:focus{outline:2px solid #a8d5c9;border-color:#368875}button{cursor:pointer;font:inherit;border:0;border-radius:6px;padding:12px 17px;background:#177565;color:white;font-weight:bold}button:disabled{opacity:.5;cursor:wait}.secondary{background:#fff;border:1px solid #d9e2e5;color:#4e6871;font-size:12px}.full{width:100%;margin-bottom:22px}.material{padding:18px;border:1px solid #e0e7e9;background:#fbfcfc;border-radius:8px;margin-bottom:14px}.materialhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.remove{padding:4px 8px;color:#aa6464;background:transparent;font-size:12px}.thumbs{display:flex;gap:8px;flex-wrap:wrap}.thumbs img{width:65px;height:65px;object-fit:cover;border-radius:5px}aside{position:sticky;top:20px;overflow:hidden}.previewhead{display:flex;justify-content:space-between;align-items:center;padding:25px}.previewhead h2{margin-top:8px}.dot{font-size:11px;color:#278271}.dot:before{content:'●';margin-right:5px}nav{display:flex;padding:0 20px;border-bottom:1px solid #e4e9eb;gap:5px}nav button{background:transparent;color:#7a8a92;border-radius:0;font-size:12px;padding:14px}nav button.active{color:#177565;border-bottom:2px solid #177565}#preview{padding:26px;background:#edf0f2;max-height:710px;overflow:auto}.paper{background:white;padding:30px 24px;min-height:570px;box-shadow:0 3px 12px #1b344515;color:#192d3c;font-size:10px;line-height:1.9;overflow-wrap:anywhere}.paper h3{text-align:center;letter-spacing:5px;font-size:17px;margin:10px 0 30px}.paper h4{font-size:13px;text-align:center}.paper .rule{border-bottom:2px solid #324f59;margin:20px 0}.paper .signature{text-align:right;letter-spacing:6px;margin-top:80px;font-size:16px}.paper table{border-collapse:collapse;width:100%;table-layout:fixed}.paper td,.paper th{border:1px solid #85949a;padding:7px;white-space:pre-wrap}.paper th{background:#f7f9fa}.paper img{max-width:100%;max-height:160px}.paper .blank{height:90px}.export{padding:20px 25px}.export p{font-size:12px;margin-top:0}.export span{font-size:11px;color:#84919a}.export button{width:100%}#status{font-size:12px;margin-top:10px;color:#227461}footer{color:#89979e;font-size:11px;margin:20px 0}@media(max-width:950px){.workspace{grid-template-columns:1fr}aside{position:static}.badge{display:none}h1{font-size:28px}main{padding:25px 5%}}@media(max-width:480px){.fields{grid-template-columns:1fr}.wide{grid-column:auto}.toolbar span{font-size:10px}.toolbar b{padding:0 3px}section{padding:18px}#preview{padding:12px}}
.document-frame{background:white;box-shadow:0 3px 12px #1b344515}.document-frame svg{display:block;width:100%;height:auto}.document-frame div{box-sizing:border-box}#preview{max-height:850px}#sealstatus{font-size:11px}
dialog{font-family:'Malgun Gothic','맑은 고딕',sans-serif;max-width:540px;width:90%;border:1px solid #dbe3e6;border-radius:12px;padding:28px;color:#203b42}dialog::backdrop{background:#132f4280}#seal-result{display:block;max-width:110px;max-height:120px;margin:18px 0;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 0/12px 12px}#seal-result[hidden]{display:none}#seal-message{font-size:13px;min-height:45px}
.photo-card{width:calc(50% - 4px);min-width:130px;border:1px solid #dbe3e6;border-radius:6px;padding:10px;background:white}.photo-thumb{height:125px;display:flex;align-items:center;justify-content:center;background:#f2f4f5}.thumbs .photo-thumb img{width:auto;height:auto;object-fit:contain;border-radius:0}.photo-card label{margin:10px 0 0;font-size:11px}.photo-card output{float:right;color:#177565}.photo-card input[type=range]{padding:0;accent-color:#177565}
.photo-reset{margin-top:12px;width:100%;font-size:10px;padding:8px}
