@font-face {
font-family: "Pretendard";
src: url("/assets/fonts/pretendard-subset.c68adb75ff.woff2") format("woff2");
font-weight: 400 700;
font-style: normal;
font-display: swap;
}
:root {
--brand: #d32f2f; --brand-strong: #c62828; --brand-soft: #fff4f3;
--support: #1f6feb; --support-soft: #eef4fe;
--ok: #15803d; --ok-soft: #f0fdf4; --warn: #92400e; --warn-soft: #fffbeb;
--ink: #1d1d1f; --ink-2: #4a4a4f; --muted: #636366; --line: #e4e4e7; --bg-alt: #fafafa; --paper-2: #f4f4f5;
--radius: 16px; --radius-btn: 999px;
--shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(17 24 39 / .06);
--font: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
--mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg-alt); word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--support); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; flex: none; }
.review-banner { background: #fef9c3; color: #713f12; font-size: .85rem; padding: 6px 16px; text-align: center; }
.app-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.app-header .app-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo-mark { display: block; width: 30px; height: 30px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-sub { font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.app-user { display: flex; align-items: center; gap: 10px; font-size: .92rem; flex-wrap: wrap; }
.app-main { padding: 20px 0 40px; min-height: 60vh; }
.app-footer { border-top: 1px solid var(--line); background: var(--paper-2); font-size: .85rem; color: var(--muted); }
.app-footer .app-wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 16px; }
.app-footer a { color: var(--muted); }
.app-title { font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -0.03em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 0 0 16px; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.lead { color: var(--ink-2); }
.hint { color: var(--muted); font-size: .88rem; }
.notice { border-radius: 10px; padding: 10px 12px; background: var(--support-soft); color: #1e3a8a; font-size: .92rem; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err, .banner { background: var(--brand-soft); color: #7f1d1d; }
.test-result { margin: 10px 0 0; padding-left: 1.2em; font-size: .92rem; }
.test-result:empty { display: none; }
.test-result .warn, .friend-hint { color: var(--warn); }
.banner { border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.banners { margin: 0 0 12px; }
label, .label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=search], input[type=date], input[type=number], input[type=tel], select, textarea {
width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; min-height: 46px; }
textarea { min-height: 90px; resize: vertical; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 12px 0; }
.check input { width: 20px; height: 20px; }
.field-err { color: #b91c1c; font-size: .88rem; min-height: 0; margin: 4px 0 0; }
.field-err:empty { display: none; }
.form-status { margin: 10px 0 0; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.err { color: #b91c1c; }
.form-status.ok { color: var(--ok); }
.mono, .key { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.row2 { display: grid; gap: 0 14px; }
.ts-box { margin: 14px 0 4px; min-height: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
td .actions { margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-btn);
border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: #fff; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-support { background: var(--support); color: #fff; }
.btn-outline { border-color: var(--ink); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-danger { border-color: #fecaca; color: #b91c1c; background: #fff; }
.btn-sm { min-height: 36px; padding: 0 10px; font-size: .88rem; }
.btn-block { width: 100%; margin-top: 16px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 16px; scrollbar-width: thin; }
.tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.count-badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; text-align: center; margin-left: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 12px; }
.toolbar > * { flex: 1 1 140px; }
.toolbar .btn { flex: 0 0 auto; }
.toolbar label { margin-top: 0; font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; min-height: 40px; }
.filters button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 700; background: #f1f5f9; color: var(--ink-2); white-space: nowrap; }
.badge.new, .badge.paused, .badge.failed { background: var(--brand-soft); color: #991b1b; }
.badge.contacted, .badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.completed, .badge.active, .badge.sent, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.disabled { background: #e5e7eb; color: #374151; }
.badge.manual, .badge.reissued { background: var(--support-soft); color: #1e40af; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f1f5f9; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #fafafa; }
table.data td.num { font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }
@media (max-width: 767px) {
table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
table.data thead { position: absolute; left: -9999px; }
table.data tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 6px 4px; background: #fff; }
table.data td { border: 0; padding: 4px 10px; display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; }
table.data td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; }
table.data td.wide { grid-template-columns: 1fr; }
table.data td.wide::before { display: none; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; }
.pager span { color: var(--muted); font-size: .9rem; }
.keys { display: grid; gap: 10px; margin: 12px 0; }
.keyrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.keyrow.first { border-color: #fca5a5; background: var(--brand-soft); }
.keyrow .k-label { font-weight: 700; }
.keyrow .k-sub { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.keyrow .key { font-size: 2.25rem; letter-spacing: .08em; font-weight: 700; grid-column: 1; }
.keyrow .btn { grid-column: 2; grid-row: 1 / span 2; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
.once { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .06em; padding: 12px; background: var(--bg-alt); border: 1px dashed #94a3b8; border-radius: 10px; text-align: center; user-select: all; }
.codes { columns: 2; font-family: var(--mono); padding-left: 1.2em; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 24px 48px -12px rgb(17 24 39 / .35); }
dialog::backdrop { background: rgb(15 23 42 / .5); }
dialog .dlg { padding: 18px; }
dialog .dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
dialog .dlg-head h2 { margin: 0; }
.close-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; padding: 6px 10px; cursor: pointer; min-height: 44px; min-width: 44px; }
.history-item { border-top: 1px solid var(--line); padding: 10px 0; }
.history-item:first-child { border-top: 0; }
.qr { width: 200px; height: 200px; background: #fff; display: block; margin: 8px auto; }
.connect .steps { padding-left: 1.3em; margin: 12px 0; }
.connect .steps li { margin: 6px 0; }
.connect .btn-block { margin-top: 4px; }
.link-once { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; max-width: calc(100vw - 32px); }
.toast:empty { display: none; }
.split { display: grid; gap: 16px; }
.up-cards { display: grid; gap: 0 16px; }
progress.up-meter { display: block; width: 100%; max-width: 360px; height: 10px; accent-color: var(--ok); margin: 6px 0; }
.up-done { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.up-done progress.up-meter { margin: 0; width: 90px; }
#up-sum > h2 { margin-top: 22px; }
#up-sum > .card { margin-top: 18px; }
#p-update table.data td > .badge { justify-self: start; }
#k-stats > h2 { margin-top: 22px; }
#k-stats .toolbar > div { flex: 1 1 220px; max-width: 320px; }
table.data td > .linkish { justify-self: start; text-align: left; }
table.data tr.total td { font-weight: 700; background: var(--bg-alt); }
@media (min-width: 768px) { table.data td.num, table.data th.num { text-align: right; } }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table.matrix { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.matrix th, table.matrix td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; background: #fff; }
table.matrix thead th { background: var(--paper-2); font-size: .8rem; color: var(--ink-2); vertical-align: bottom; }
table.matrix th:first-child, table.matrix td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
table.matrix .yr { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
table.matrix td.zero { color: var(--muted); }
table.matrix .sum { font-weight: 700; }
table.matrix tr.total th, table.matrix tr.total td { font-weight: 700; background: var(--bg-alt); border-bottom: 0; }
@media (min-width: 768px) {
.row2 { grid-template-columns: 1fr 1fr; }
.up-cards { grid-template-columns: 1fr 1fr; }
h1 { font-size: 1.7rem; }
}
@media (min-width: 1024px) {
.split { grid-template-columns: 420px 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
