:root{font-family:system-ui,"Noto Sans KR",sans-serif;color:#172c25;background:#f5f1e7;--forest:#274d40;--border:#d5d5c8;--ink:#172c25;--light:#fffcf4;--muted:#56665d}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,a,input{font:inherit}button{padding:9px 15px;border-radius:9px;cursor:pointer;white-space:nowrap;min-height:42px;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #a37329;outline-offset:2px}.primary{background:var(--forest);color:#fff;border:1px solid var(--forest);font-weight:700}.outline{border:1px solid var(--border);background:var(--light)}.top{display:flex;justify-content:space-between;align-items:center;padding:14px max(16px,calc((100vw - 1040px)/2));gap:12px;border-bottom:1px solid var(--border);background:var(--light)}.brand{color:var(--ink);font-weight:800;text-decoration:none;white-space:nowrap}.brand span{display:inline-grid;place-items:center;background:var(--forest);color:#f8f2dd;width:30px;height:30px;border-radius:8px;margin-right:3px}main{max-width:1030px;margin:auto;padding:20px 16px}.intro{position:relative;overflow:hidden;background:#e9ebd8;padding:clamp(26px,6vw,62px);border:1px solid #dce1cb;border-radius:22px;margin-top:clamp(12px,6vw,60px);isolation:isolate}h1{font-size:clamp(29px,6vw,62px);letter-spacing:-.05em;line-height:1.16;margin:0 0 18px}.intro p,.hint{color:var(--muted);line-height:1.65}.intro p{margin:0 0 23px}.intro button{margin-right:4px}.intro span{margin-left:12px}.privacy{text-align:center;color:var(--muted);font-size:.86rem}.illustration{position:absolute;right:9%;top:13%;width:30%;height:75%;z-index:-1}.illustration i{position:absolute;inset:10% 0 10% 14%;background:#c5d4a7;border:1px solid #9caf8e;border-radius:15px;transform:rotate(26deg)}.illustration i:nth-child(2){transform:rotate(-12deg);background:#f6e5b9}.illustration i:last-child{transform:rotate(9deg);background:#fff9e9;padding:25% 18%;display:grid;align-content:center;gap:13%}.illustration b{height:4px;border-radius:4px;background:#7e9a85}.illustration b:last-child{width:62%}.docbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.identity{min-width:0;flex:1}.identity strong,.identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity small{color:var(--muted);margin-top:3px}.identity strong{font-size:1.08rem}nav{display:flex;gap:4px;overflow:auto;background:#e9ebd8;padding:6px;border:1px solid var(--border);border-radius:11px 11px 0 0}nav button,.pager button{border:1px solid transparent;background:none;min-width:40px;padding:5px 9px}nav button:hover,.pager button:hover{background:var(--light)}.paper,.original{background:#fff;min-height:55vh;border:1px solid var(--border);border-top:0;border-radius:0 0 11px 11px;padding:clamp(14px,4vw,44px);overflow:auto;overflow-wrap:anywhere;color:#202720}.paper:focus{outline:2px solid #72876a;outline-offset:-2px}.paper table{border-collapse:collapse;max-width:100%}.paper td,.paper th{border:1px solid #a4ae9f;padding:5px;min-width:25px}.paper img,.original img{display:block;max-width:100%;height:auto}.pager{display:flex;align-items:center;justify-content:center;gap:12px}.original img{margin:auto}.hint,#status{font-size:.89rem}#status{min-height:1.3em;color:#365544}dialog{width:min(460px,calc(100% - 24px));border:1px solid var(--border);border-radius:17px;padding:20px;background:var(--light);color:var(--ink)}dialog::backdrop{background:#142c2380}dialog h2{margin:0 0 16px;font-size:1.22rem}dialog input[type=text]{display:block;width:100%;margin:6px 0 14px;padding:10px;border:1px solid var(--border);border-radius:8px}fieldset{border:1px solid var(--border);border-radius:8px;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}fieldset input{accent-color:var(--forest)}.actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:16px}@media(max-width:540px){.illustration{right:8%;top:36%;height:52%;width:29%;opacity:.43}main{padding-inline:11px}.top{padding:8px 12px}.intro{border-radius:15px}.docbar button{padding-inline:11px}}@media(min-width:700px){#workspace{margin-top:10px}}

#native-editor{height:max(520px,calc(100dvh - 160px));border:1px solid var(--border);border-radius:10px;overflow:hidden;background:white}
#native-editor iframe{display:block}
@media(max-width:540px){#native-editor{height:max(380px,calc(100dvh - 126px))}}

.zoom-controls{display:flex;gap:6px;margin-bottom:6px}
.zoom-controls button{min-width:42px;min-height:44px}
@media(max-width:720px){
  body:has(#native-editor:not([hidden])) .top{display:none}
  body:has(#native-editor:not([hidden])) main{padding:8px 8px 0}
  #native-editor{height:max(270px,calc(100dvh - 122px))}
}
