@font-face { font-family: Paperlogy; font-weight: 400; font-display: swap; src: url(fonts/Paperlogy-Regular.ttf) format("truetype"); }
@font-face { font-family: Paperlogy; font-weight: 700; font-display: swap; src: url(fonts/Paperlogy-Bold.ttf) format("truetype"); }
:root {
  --brand: #137265; --brand-dark: #0B544A; --brand-soft: #E2F2EE; --rail: #0B2A27; --rail-fg: #9FB8B3; --bare-a: #0C5A50; --bare-b: #03211F;
  --bg: #F4F6F6; --surface: #fff; --line: #E2E7E6; --line-soft: #EEF2F1; --text: #16191D; --text-2: #41505B; --muted: #6B7680; --muted-2: #8A929A;
  --danger: #C0452F; --warn: #B4791C; --ok: #1F7A4D;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: Paperlogy, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 14px; color: var(--text); line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
input, button, select { font: inherit; }
h1, h2, h3 { font-weight: 700; }
b { font-weight: 700; }
.icon { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }
.mt { margin-top: 14px; }
.center { text-align: center; margin-top: 14px; }
.contents { display: contents; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: 56px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.brand:hover { color: var(--text); text-decoration: none; }
.logo { flex: none; display: block; }
.brand-name { font-size: 15px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand-sub { flex: none; padding-left: 10px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }
.top-right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 14px; }
.ext { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; }
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who b { font-size: 12.5px; }
.who small { font-size: 11px; color: var(--muted-2); }
.logout { display: flex; padding: 4px; border: 0; background: none; color: var(--muted-2); cursor: pointer; }
.logout:hover { color: var(--danger); }
.top form { margin: 0; }
.body { flex: 1; display: flex; min-height: 0; }
.rail { position: sticky; top: 56px; align-self: flex-start; flex: none; width: 84px; height: calc(100vh - 56px); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--rail); }
.rail-item { width: 72px; padding: 9px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 10px; color: var(--rail-fg); }
.rail-item span { font-size: 11px; text-align: center; line-height: 1.2; }
.rail-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.rail-item.on { background: var(--brand); color: #fff; }
.main { flex: 1; min-width: 0; padding: 22px 24px 40px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.title { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #D9DFDE; border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: #B5C1BF; text-decoration: none; color: var(--text); }
.btn-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-primary:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-ghost-danger:hover { border-color: #F0C4BB; background: #FDF2F0; color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.wide { width: 100%; height: 44px; font-size: 14px; }
.link { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card + .card { margin-top: 14px; }
.card-pad { padding: 18px 20px; }
.card-title { margin: 0 0 10px; font-size: 15px; }
.sub-title { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.notice { background: var(--brand-soft); border-color: #BFE0D8; margin-bottom: 14px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 6px; background: #EEF1F1; color: var(--text-2); font-size: 12px; }
.pill-brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill-ok { background: #E8F5EE; color: var(--ok); }
.pill-warn { background: #FBF2E2; color: var(--warn); }
.pill-bad { background: #FDECEA; color: var(--danger); }
.flash { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid; border-radius: 10px; }
.flash.ok { background: #EEF7F2; border-color: #C9E6D6; color: var(--ok); }
.flash.err { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.spacer { margin-left: auto; }
.input, .select { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); outline: none; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input:disabled { background: #F4F6F6; color: var(--muted-2); }
.select { max-width: 100%; }
.search { position: relative; display: inline-flex; align-items: center; }
.search .icon { position: absolute; left: 11px; color: #9AA3AB; pointer-events: none; }
.search .input { width: 200px; padding-left: 34px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #EEF1F1; }
.seg > button { padding: 5px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.seg > button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.status { font-size: 12.5px; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { height: 42px; padding: 0 12px; background: #FAFBFB; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; font-weight: 400; text-align: left; white-space: nowrap; }
.table td { height: 46px; padding: 6px 12px; border-bottom: 1px solid #F1F4F3; color: var(--text-2); vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ctr { text-align: center; }
.table .plus { color: var(--ok); font-weight: 600; }
.big-num { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.big-num b { font-size: 26px; font-weight: 700; color: var(--text); }
.table tfoot td { background: #FAFBFB; border-top: 1px solid var(--line); border-bottom: 0; color: var(--text); }
.table-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; font-size: 12.5px; color: var(--muted); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted-2); }
.table.edit { table-layout: fixed; }
.table.edit td { padding: 6px 8px; }
.table.edit th { padding: 0 8px; }
.table.edit .input { width: 100%; height: 34px; padding: 0 10px; }
.table.edit .input.num { text-align: right; font-variant-numeric: tabular-nums; }
.table.edit td.num { padding-right: 12px; }
.scroll-x { overflow-x: auto; }
.table.preview { width: max(1100px, 100%); white-space: nowrap; font-size: 12.5px; }
.table.preview th, .table.preview td { height: 36px; padding: 0 8px; text-align: center; border-right: 1px solid #F1F4F3; }
.table.preview td.on { color: var(--brand); font-weight: 700; }
.picker { position: absolute; z-index: 30; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }
.picker h4 { margin: 4px 8px 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.picker button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.picker button:hover { background: var(--brand-soft); }
.picker button.manual { color: var(--muted); }
.form { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.field .input, .field .select { width: 100%; }
input[type="file"] { max-width: 100%; color: var(--muted); font: inherit; font-size: 13px; }
input[type="file"]::file-selector-button { height: 36px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--brand); color: var(--brand); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.rate-grid .table { margin-bottom: 8px; border: 1px solid var(--line-soft); }
.note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.guide { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.75; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bigcode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
details.more summary { color: var(--muted); cursor: pointer; }
details.more[open] summary { margin-bottom: 10px; }
details.more ul { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.7; }
details.more li + li { margin-top: 6px; }
body.bare { min-height: 100vh; background: linear-gradient(160deg, var(--bare-a), var(--bare-b)) fixed; }
.bare-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 14px; }
.bare-main .flash { width: min(620px, 100%); }
.login-wrap { display: grid; grid-template-columns: minmax(0, 1fr) min(420px, 100%); gap: 56px; align-items: center; width: min(1100px, 100%); }
.login-wrap .login-card { width: 100%; }
.login-art { --art: #7FE3CB; color: #fff; }
.login-art h2 { margin: 0 0 22px; font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -.3px; }
.art-figure { display: block; width: 100%; height: auto; }
.art-panel { fill: #fff; fill-opacity: .07; stroke: #fff; stroke-opacity: .22; stroke-width: 1.5; }
.art-soft { fill: #fff; fill-opacity: .16; }
.art-white { fill: #fff; fill-opacity: .92; }
.art-dim { fill: #fff; fill-opacity: .45; }
.art-accent { fill: var(--art); }
.art-line { fill: none; stroke: #fff; stroke-opacity: .9; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-accent-line { fill: none; stroke: var(--art); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-arrow { fill: none; stroke: var(--art); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6.3%; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: art; }
.art-steps li { counter-increment: art; font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.art-steps b { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 700; color: #fff; }
.art-steps b::before { content: counter(art) '. '; color: var(--art); }
.login-card, .first { width: min(420px, 100%); padding: 26px; background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.first { width: min(620px, 100%); }
.first .card { border: 0; }
.first .card-pad { padding: 4px 0 0; }
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; width: min(420px, 100%); }
  .login-art { order: 2; }
  .login-art h2 { margin-bottom: 14px; font-size: 18px; text-align: center; }
}
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login-head h1 { margin: 0; font-size: 21px; }
.login-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.otp-input { height: 48px; font-size: 22px; letter-spacing: .3em; text-align: center; }
.progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.progress li { flex: 1 1 180px; padding: 8px 12px; border-radius: 8px; background: #EEF1F1; color: var(--muted); font-size: 13px; }
.progress li.now { background: var(--brand); color: #fff; font-weight: 700; }
.progress li.done { background: var(--brand-soft); color: var(--brand-dark); }
.steps { margin: 14px 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 16px 40px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; line-height: 28px; text-align: center; }
.steps > li > b { display: block; }
.steps p { margin: 4px 0 8px; color: var(--text-2); line-height: 1.65; }
.qr { display: block; width: fit-content; max-width: 100%; margin: 8px 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr svg { display: block; max-width: 100%; height: auto; }
.phone-only, .phone-inline { display: none; }
@media (pointer: coarse) { .phone-only { display: block; } .phone-inline { display: inline; } }
@media (max-width: 1023px) {
  .body { flex-direction: column; }
  .rail { position: sticky; top: 56px; z-index: 15; width: 100%; height: auto; align-self: stretch; flex-direction: row; justify-content: flex-start; padding: 6px 8px; overflow-x: auto; }
  .rail-item { width: auto; flex: none; flex-direction: row; gap: 6px; padding: 7px 12px; }
  .rail-item span { font-size: 12.5px; }
  .main { padding: 16px 12px 32px; }
  .brand-sub, .ext span { display: none; }
}
@media (max-width: 720px) {
  .top { padding: 0 12px; gap: 8px; }
  .who small { display: none; }
  .ext { display: none; }
  .main { padding: 12px 10px 86px; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 25; justify-content: space-around; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow: visible; }
  .rail-item { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; padding: 6px 2px; }
  .rail-item span { font-size: 11px; }
  .title { font-size: 18px; }
  .actions, .actions .btn { flex: 1 1 auto; }
  .toolbar { padding: 10px; }
  .toolbar .select, .search, .search .input, .toolbar .input { width: 100%; flex: 1 1 100%; }
  .toolbar .spacer { display: none; }
  .table.edit, .table.edit tbody, .table.edit tr, .table.edit td, .table.edit tfoot { display: block; width: 100%; }
  .table.edit colgroup, .table.edit thead { display: none; }
  .table.edit tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px; border-bottom: 6px solid var(--bg); }
  .table.edit td { height: auto; padding: 0; border: 0; }
  .table.edit td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 11.5px; }
  .table.edit td.num { padding: 0; text-align: left; }
  .table.edit .wide-cell { grid-column: 1 / -1; }
  .table.edit .input { height: 42px; padding: 0 10px; font-size: 16px; }
  .table.edit td.row-act { grid-column: 1 / -1; text-align: right; }
  .table tfoot tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px; }
  .table tfoot td { background: none; border: 0; }
  .table tfoot td:empty { display: none; }
  .table tfoot td.num { text-align: left; }
  .table tfoot td.sum-label { grid-column: 1 / -1; }
  .table tfoot td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11.5px; }
  .input { font-size: 16px; }
  .card-pad { padding: 14px; }
  .login-card, .first { padding: 20px; }
  .art-steps li span { display: none; }
  .art-steps b { font-size: 13.5px; text-align: center; }
}
.input-with-prefix { display: flex; align-items: center; gap: 4px; }
.input-with-prefix .input { flex: 1; min-width: 0; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-weight: 600; }
