:root{font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:#243d37;background:#fff;font-size:15px}*{box-sizing:border-box}body{margin:0}a{color:#245f52;text-decoration:none}header{max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 38px;border-bottom:1px solid #edf0ed}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:800;letter-spacing:-1px}.brand img{width:42px;height:42px;object-fit:contain}header>span{font-size:12px;color:#87928c}header>a:last-child{font-size:12px}main{max-width:1380px;margin:auto;padding:36px}.intro{padding:12px 0 20px}.intro p{font-size:13px;color:#7c8982;line-height:1.7}.intro h1{font-size:34px;font-weight:600;letter-spacing:-1.6px;margin:10px 0}nav{display:flex;gap:26px;border-bottom:1px solid #e6ebe7;margin-bottom:20px}button,.upload{font:inherit;cursor:pointer;border:0;border-radius:5px;background:#f2f5f2;padding:11px 15px;color:#315b4e;transition:background .15s}button:hover{background:#e4eee7}nav button{border-radius:0;background:transparent;padding:14px 2px;border-bottom:2px solid transparent;color:#8c9891;font-size:14px}nav button.selected{background:transparent;color:#174c43;border-bottom-color:#174c43;font-weight:700}.primary{background:#174c43;color:#fff}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start}section{margin:0 0 34px;padding:18px 0 26px;border:0;border-bottom:1px solid #edf0ed;background:transparent;border-radius:0}h2{font-size:18px;font-weight:700;letter-spacing:-.5px;margin:0 0 24px}section p,.hint{font-size:12px;color:#809086;line-height:1.8}.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 24px}.wide{grid-column:1/-1}label{display:block;font-size:13px;font-weight:600;color:#486156}input,select,textarea{display:block;width:100%;border:0;border-bottom:1px solid #cbd7cf;border-radius:0;background:transparent;padding:12px 2px;margin-top:7px;font:inherit;font-size:15px;color:#203e32;min-width:0;box-shadow:none}input::placeholder,textarea::placeholder{font-weight:400;font-size:13px;color:#9aa69d}textarea{min-height:66px;resize:vertical}input:focus,textarea:focus,select:focus{outline:none;border-bottom:2px solid #246d57;background:#f7fbf8}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #a7d6bd;outline-offset:3px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.upload{display:block;font-size:12px;font-weight:400}.upload input{border:0;padding:8px 0;max-width:260px;font-size:12px}canvas{width:100%;height:150px;border:0;border-bottom:1px solid #acbfb3;border-radius:0;background:#fafcfb;touch-action:none;display:block}small{display:inline-block;color:#27805a;font-size:10px;margin:0 0 4px 8px}.worker-field{padding:10px 0;border:0;border-radius:0;background:transparent;animation:none}.worker-field input,.worker-field canvas{border-bottom:2px solid #36b980;box-shadow:0 5px 9px -6px #26bc7a;animation:underlineGlow 2s ease-in-out infinite}.worker-field.done input,.worker-field.done canvas{border-bottom-color:#b9cbbf;box-shadow:none;animation:none}.worker-field.done small{color:#698475}.worker-field:focus-within{background:#f6fcf8}.consent{display:flex;gap:10px;margin:20px 0;line-height:1.7}.consent input{width:20px;flex:0 0 20px;margin-top:4px}#status{color:#23694f;min-height:20px;font-size:13px;margin-bottom:12px}#preview{background:#f4f6f3;border-radius:2px;padding:24px;position:sticky;top:18px}.previewHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:12px}.previewHead h2{margin:0;font-size:14px;color:#6f8176;font-weight:500}.previewHead button{background:white;font-size:12px}#paper{background:#fff;padding:28px;color:#222;line-height:1.8;font-size:12px;overflow-wrap:anywhere;box-shadow:0 4px 20px #2d493108}#paper h1{text-align:center;font-size:21px;letter-spacing:1px;font-weight:600;margin:16px 0}#paper h3{font-size:13px;margin:18px 0 3px}#paper p{margin:5px 0;white-space:pre-wrap}.document-brand{display:flex;align-items:center;gap:6px;color:#174c43;font-size:10px;font-weight:700;letter-spacing:-.3px;padding-bottom:10px;border-bottom:1px solid #e6eae6}.document-brand img{width:25px;height:25px;object-fit:contain}.signature{display:flex;justify-content:space-between;margin-top:20px;align-items:center}.signature img{width:130px;height:55px;object-fit:contain}footer{display:flex;justify-content:space-between;font-size:11px;padding:30px 0;color:#8d9990}#progress{font-weight:700;color:#247456}.insurance-options{margin:14px 0;padding:0;border:0}.insurance-options legend{font-size:13px;font-weight:600;padding:0;margin-bottom:10px}.check-option{display:flex;align-items:center;gap:10px;min-height:43px;cursor:pointer;font-weight:500}.check-option input[type=checkbox],.consent input[type=checkbox]{width:19px;height:19px;flex:0 0 19px;margin:0;accent-color:#23644d}.all-insurance{padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid #edf1ed}.insurance-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 18px}.tax-option{padding:10px 0;border:0;border-top:1px solid #edf1ed;border-radius:0}.wage-result{padding:15px 0;border:0;border-top:1px solid #dce9dd;border-bottom:1px solid #dce9dd;border-radius:0;background:transparent;line-height:1.8}.wage-result strong{font-size:13px}.wage-result p{font-size:16px;color:#285b43;font-weight:600}.wage-result small{margin:0;font-size:11px;color:#89998d}.contract-storage>label{margin:18px 0}.contract-storage button{margin:4px 0 8px}@keyframes underlineGlow{50%{box-shadow:0 6px 10px -5px #26bc7a99}}@media(prefers-reduced-motion:reduce){.worker-field input,.worker-field canvas{animation:none}}@media(max-width:900px){.layout{gap:30px}main{padding:26px}header{padding:20px 26px}header>span{display:none}}@media(max-width:800px){header{padding:17px 20px}.brand{font-size:20px}.brand img{width:34px;height:34px}main{padding:22px 20px}.intro h1{font-size:28px}.layout{display:block}#preview{position:static;margin-top:28px;padding:16px}nav{position:sticky;top:0;background:white;z-index:2;gap:20px}nav button{font-size:13px}section{padding:16px 0 22px}footer{flex-direction:column;gap:10px}.grid{gap:22px 18px}}@media(max-width:420px){.grid{grid-template-columns:1fr}.wide{grid-column:auto}header>a:last-child{font-size:10px}.insurance-grid{grid-template-columns:1fr 1fr}#paper{padding:20px 16px}}@media print{@page{size:A4;margin:15mm}body{background:#fff}header,.intro,nav,#status,#editor,footer,.previewHead,.hint{display:none!important}main{padding:0;max-width:none}.layout{display:block}#preview{display:block!important;background:#fff;padding:0;position:static}#paper{padding:0;box-shadow:none;font-size:11pt}.signature{break-inside:avoid}#paper h3{break-after:avoid}.document-brand{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.brand{display:flex;align-items:center;gap:8px;letter-spacing:-1px}
header .brand-name{display:inline;font-size:24px;color:#174c43;font-weight:800}
.brand img{object-fit:contain}
@media(max-width:800px){header .brand-name{font-size:20px}.brand img{width:36px;height:36px}}
button,.upload{border:0;border-radius:5px;min-height:44px;padding:12px 18px;background:#edf2ee;font-weight:500;font-size:13px;line-height:1.5;touch-action:manipulation;transition:background .15s}
button:hover,.upload:hover{background:#e0ebe3}
button:active{background:#d1e4d7}
button:focus-visible,.upload:focus-within{outline:2px solid #5e9d7d;outline-offset:4px}
button.selected,.primary{background:#245e49;color:#fff}
.actions{gap:12px;margin:20px 0;align-items:start}
.actions>button,.actions>.upload{margin:0}
nav{gap:12px}
nav button{background:transparent;border-radius:0;border-bottom:2px solid transparent;min-height:48px;padding:12px 14px}
nav button.selected{background:transparent;color:#245e49;border-bottom-color:#245e49;font-weight:700}
nav button:hover{background:#f2f7f3}
.contract-storage{display:grid;grid-template-columns:1fr;gap:12px}
.contract-storage>label{margin:0 0 8px}
.contract-storage button{justify-self:start;margin:0 0 8px}
.check-option{min-height:48px;padding-top:10px;padding-bottom:10px}
.insurance-grid{gap:8px 18px}
.previewHead button{min-height:44px}
@media(max-width:800px){
 .actions{gap:12px}
 .actions>button{flex:1 1 160px}
 .actions>.upload{flex:1 1 220px;min-width:0}
 .upload input{max-width:100%}
 .contract-storage button{justify-self:stretch;min-height:48px}
 nav{gap:12px}
 nav button{flex:1 1 0;min-width:0;padding:12px 4px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.brand-wordmark{display:flex;flex-direction:column;gap:2px}
header .brand-wordmark{display:flex}
header .brand-description{display:block;margin:0;font-size:10px;color:#74897b;letter-spacing:1px;font-weight:500}
header .brand-name{display:block;line-height:1.3}
@font-face{font-family:Pretendard;src:url("fonts/Pretendard-Regular.woff2") format("woff2");font-weight:100 500;font-display:swap}
@font-face{font-family:Pretendard;src:url("fonts/Pretendard-SemiBold.woff2") format("woff2");font-weight:600 900;font-display:swap}
:root{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;letter-spacing:-.2px}
body,input,textarea,select,button{font-family:inherit}
input,textarea,select{border-top:0;border-left:0;border-right:0;border-radius:0;box-shadow:none}
section{border-top:0;border-left:0;border-right:0;border-radius:0}
label{font-weight:500}
h1,h2,h3{font-weight:600}

#preview{max-height:calc(100vh - 36px);display:flex;flex-direction:column}
#paper{max-height:calc(100vh - 160px);overflow-y:auto;scrollbar-width:thin;scroll-padding-top:16px}
.contract-clause{border-radius:2px;transition:background .2s}
.active-clause{background:#edf6ef;box-shadow:-3px 0 0 #7bb18e}
@media(max-width:800px){
 .layout{display:flex;flex-direction:column;gap:20px}
 #preview{order:-1;position:sticky;top:54px;z-index:1;width:100%;margin:0;padding:10px 12px;max-height:245px}
 #paper{max-height:165px;padding:14px 16px}
 #preview .hint{display:none}
 .previewHead{margin-bottom:8px}
 .previewHead button{min-height:36px;padding:8px 12px}
 #editor{width:100%}
 nav{z-index:3}
}
@media print{
 #preview{max-height:none!important;display:block!important}
 #paper{max-height:none!important;overflow:visible!important}
 .active-clause{background:transparent;box-shadow:none}
}
@media(prefers-reduced-motion:reduce){.contract-clause{transition:none}}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;outline-offset:0;border-bottom:2px solid #246d57}

.layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
#editor,#preview{min-width:0;width:100%}
.brand{gap:12px;align-items:center}
.brand img{width:60px;height:42px;object-fit:contain;flex:0 0 60px}
.brand-wordmark{height:42px;justify-content:center;gap:4px}
header .brand-name{font-size:23px;line-height:1.05;letter-spacing:-.8px}
header .brand-description{font-size:10px;line-height:1.1;letter-spacing:.1px}
.document-brand img{width:38px;height:25px}
@media(max-width:800px){
 .brand{gap:9px}
 .brand img{width:52px;height:38px;flex-basis:52px}
 .brand-wordmark{height:38px}
 header .brand-name{font-size:20px}
 header .brand-description{font-size:9px}
 .layout{gap:20px}
}

.brand img{width:34px;height:48px;flex:0 0 34px;object-fit:contain}
.brand-wordmark{height:48px;gap:5px}
header .brand-name{font-size:24px;line-height:1.1}
header .brand-description{font-size:10px;line-height:1.2}
.document-brand img{width:21px;height:31px}
@media(max-width:800px){
 .brand img{width:30px;height:44px;flex-basis:30px}
 .brand-wordmark{height:44px}
 header .brand-name{font-size:22px}
 header .brand-description{font-size:9px}
}
