/* HALO 로드맵 사이트 공통 스타일. halolabs 사이트(clinical-light)와 같은 색을 쓴다. */
:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #132238;
  --secondary: #526379;
  --dim: #61738a;
  --line: #dce5ed;
  --accent: #245cdb;
  --accent-soft: #e9f0fd;
  --mint: #0d7c6c;
  --mint-soft: #e3f4f0;
  --clay: #a34728;
  --clay-soft: #fbeee8;
  --violet: #7354ad;
  --violet-soft: #f0ebf8;
  --gray-soft: #eef2f6;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { font-weight: 700; letter-spacing: 0.08em; font-size: 14px; color: var(--text); }
.brand span { color: var(--dim); font-weight: 500; letter-spacing: 0.02em; margin-left: 8px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--secondary);
}
.site-nav a:hover { background: var(--gray-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--text); color: #fff; }
.site-nav .sep { width: 1px; background: var(--line); margin: 6px 6px; }
.site-nav a.in { color: var(--clay); }
.site-nav a.in[aria-current="page"] { background: var(--clay); color: #fff; }

/* 한국어/영어 전환 (assets/lang.js). 글은 <t-ko>…</t-ko><t-en>…</t-en> 짝으로 들어 있다. */
html:not(.en) t-en, html.en t-ko { display: none; }
.lang-switch {
  margin-left: 8px; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--secondary); border: 1px solid var(--line); cursor: pointer;
}
.lang-switch:hover { background: var(--gray-soft); }

.internal-bar {
  background: var(--clay); color: #fff; font-size: 13px; font-weight: 600;
  text-align: center; padding: 7px 16px; letter-spacing: 0.02em;
}

/* 페이지 머리 */
.page-head { padding: 64px 0 36px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.internal .eyebrow { color: var(--clay); }
h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.22; letter-spacing: -0.02em;
  margin: 0 0 18px; font-weight: 700;
}
.lead { font-size: 18px; color: var(--secondary); max-width: 760px; margin: 0; }
.meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
  font-size: 13px; color: var(--dim);
}
.meta span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

section { padding: 34px 0; border-top: 1px solid var(--line); }
h2 { font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 8px; }
h3 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
h4 { font-size: 15px; margin: 0 0 4px; }
.sub { color: var(--secondary); margin: 0 0 22px; max-width: 780px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 4px; }
small, .small { font-size: 13px; color: var(--dim); }
.src { font-size: 12.5px; color: var(--dim); margin-top: 10px; }

/* 격자와 카드 */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; margin-bottom: 8px; }
.card.link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card.link .go { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 10px; display: inline-block; }
.card.t-blue { border-top: 3px solid var(--accent); }
.card.t-mint { border-top: 3px solid var(--mint); }
.card.t-clay { border-top: 3px solid var(--clay); }
.card.t-violet { border-top: 3px solid var(--violet); }
.big { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.big small { font-size: 15px; font-weight: 500; }

/* 상태 표시 */
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle;
}
.pill.done { background: var(--mint-soft); color: var(--mint); }
.pill.now  { background: var(--accent-soft); color: var(--accent); }
.pill.next { background: var(--violet-soft); color: var(--violet); }
.pill.open { background: var(--clay-soft); color: var(--clay); }
.pill.hold, .pill.na { background: var(--gray-soft); color: var(--secondary); }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; font-weight: 600; color: var(--dim); background: #fbfcfd; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.id { font-weight: 700; white-space: nowrap; color: var(--secondary); }
td.nowrap { white-space: nowrap; }
tr.total td { font-weight: 700; background: #fbfcfd; }

/* 강조 상자 */
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 16px 0;
}
.callout.warn { border-color: var(--clay); background: var(--clay-soft); }
.callout.ok { border-color: var(--mint); background: var(--mint-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 2px; }

/* 흐름 칩 */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; padding: 0; list-style: none; }
.flow li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; font-weight: 600; font-size: 14.5px; margin: 0;
}
.flow li + li::before { content: "→"; color: var(--dim); margin: 0 10px 0 -24px; position: relative; left: -4px; }
.flow li + li { margin-left: 18px; }

/* 단계(Phase) */
.phase { position: relative; padding: 0 0 26px 34px; border-left: 2px solid var(--line); margin-left: 9px; }
.phase:last-child { padding-bottom: 0; border-left-color: transparent; }
.phase::before {
  content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--dim);
}
.phase.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.phase .head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.phase .head h3 { margin: 0; }
.phase .goal { color: var(--secondary); margin-bottom: 12px; }
.phase .donewhen { margin-top: 12px; font-size: 14.5px; }
.phase .donewhen b { color: var(--mint); }

/* 구조 그림 */
.diagram { display: grid; gap: 10px; }
.zone { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.zone.cloud { border-color: #b9cdf5; background: #f5f8ff; }
.zone.clinic { border-color: #b3ddd4; background: #f3faf8; }
.zone .zl { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 10px; }
.zone .zl b { color: var(--text); }
.boxes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-weight: 600; text-align: center;
}
.box small { display: block; font-weight: 400; margin-top: 2px; }
.arrow { text-align: center; color: var(--dim); font-size: 13px; line-height: 1.3; }

/* 누적 막대 */
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--gray-soft); min-width: 140px; }
.bar i { display: block; height: 100%; }
.bar .b-done { background: var(--mint); }
.bar .b-rec { background: var(--accent); }
.bar .b-plan { background: #9db8ee; }
.bar .b-none { background: #e2b6a4; }
.bar .b-na { background: #cfd8e1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--secondary); margin: 12px 0 0; padding: 0; list-style: none; }
.legend li { margin: 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }

/* 내부용 잠금 화면 */
.lock { max-width: 460px; padding: 72px 0 60px; }
.lock-form { max-width: 460px; }
.lock-form > label:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--secondary); margin: 22px 0 6px; }
.lock-row { display: flex; gap: 8px; }
.lock-row input {
  flex: 1; min-width: 0; font: inherit; padding: 11px 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.lock-row input:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.lock-row button {
  font: inherit; font-weight: 600; padding: 11px 20px; cursor: pointer;
  color: #fff; background: var(--clay); border: 0; border-radius: 10px;
}
.lock-row button:hover { filter: brightness(1.08); }
.lock-keep { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--secondary); margin-top: 10px; cursor: pointer; }
.lock-msg { min-height: 1.7em; margin: 8px 0 0; font-size: 14px; color: var(--clay); }

/* 메모 */
.memo { border-top: 0; padding-top: 0; }
.memo-panel { background: #fffdf5; border: 1px solid #ecdfae; border-radius: 18px; padding: 20px 22px 16px; }
.memo-panel h2 { font-size: 20px; margin-bottom: 10px; }
.memo textarea {
  width: 100%; font: inherit; line-height: 1.7; color: var(--text); resize: vertical; min-height: 150px;
  background: #fff; border: 1px solid #e3d9b0; border-radius: 12px; padding: 12px 14px;
}
.memo textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.memo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.memo-row button {
  font: inherit; font-weight: 600; padding: 9px 20px; cursor: pointer;
  color: #fff; background: var(--clay); border: 1px solid var(--clay); border-radius: 10px;
}
.memo-row button.ghost { background: transparent; color: var(--secondary); border-color: var(--line); font-weight: 500; }
.memo-row button:disabled { opacity: 0.6; cursor: default; }
.memo-row span { font-size: 13px; color: var(--dim); }

/* 첫 화면 */
.page-head.compact { padding: 44px 0 26px; }
.page-head.compact h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.todos { border-top: 0; padding-top: 6px; }
.todos-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 28px 22px; box-shadow: 0 10px 30px rgba(19, 34, 56, 0.06);
}
.todos-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.todos-head h2 { margin: 0; font-size: 28px; }
.todos-foot { font-size: 13.5px; color: var(--dim); margin: 16px 0 0; }
.person { padding: 22px 22px 10px; }
.person.p-blue { border-top: 4px solid var(--accent); }
.person.p-violet { border-top: 4px solid var(--violet); }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.who h3 { margin: 0; font-size: 20px; }
.who small { display: block; }
.av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff;
}
.p-blue .av { background: var(--accent); }
.p-violet .av { background: var(--violet); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative; margin: 0;
  padding: 12px 0 12px 44px; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; background: var(--gray-soft); color: var(--secondary);
}
.steps li:first-child { background: linear-gradient(90deg, rgba(36, 92, 219, 0.06), transparent); margin: 0 -22px; padding-left: 66px; padding-right: 22px; }
.steps li:first-child::before { left: 22px; color: #fff; }
.p-blue .steps li:first-child::before { background: var(--accent); }
.p-violet .steps li:first-child { background: linear-gradient(90deg, rgba(115, 84, 173, 0.07), transparent); }
.p-violet .steps li:first-child::before { background: var(--violet); }
.steps b { display: block; font-size: 16px; line-height: 1.45; }
.steps li > span { display: block; font-size: 13.5px; color: var(--secondary); line-height: 1.6; margin-top: 2px; }
.steps em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--dim); background: var(--gray-soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

.jump { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jump a {
  display: flex; flex-direction: column; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 20px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.jump a:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(19, 34, 56, 0.08); }
.jump .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.jump h3 { font-size: 22px; margin: 0 0 4px; }
.jump .st { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.jump p { font-size: 14px; color: var(--secondary); margin: 0 0 16px; flex: 1; }
.jump .go { font-weight: 600; font-size: 14px; }
.jump .j-dev { border-top: 4px solid var(--accent); } .jump .j-dev .tag, .jump .j-dev .go { color: var(--accent); }
.jump .j-reg { border-top: 4px solid var(--violet); } .jump .j-reg .tag, .jump .j-reg .go { color: var(--violet); }
.jump .j-sales { border-top: 4px solid var(--clay); } .jump .j-sales .tag, .jump .j-sales .go { color: var(--clay); }
.jump-sub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 14px; }
.jump-sub a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--secondary); font-weight: 500; }
.jump-sub a:hover { border-color: var(--clay); color: var(--clay); text-decoration: none; }
@media (max-width: 860px) { .jump { grid-template-columns: 1fr; } .todos-panel { padding: 20px 16px 16px; } }

/* 요건 점검표 */
.req { list-style: none; margin: 0; padding: 0; }
.req li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); margin: 0; align-items: start; }
.req li:first-child { border-top: 0; }
.req .s { font-size: 12px; font-weight: 700; text-align: center; border-radius: 8px; padding: 5px 0; line-height: 1.2; }
.req .s.ok { background: var(--mint-soft); color: var(--mint); }
.req .s.part { background: var(--accent-soft); color: var(--accent); }
.req .s.draft { background: #eef3fd; color: #5b7fd1; }
.req .s.miss { background: var(--clay-soft); color: var(--clay); }
.req .s.na { background: var(--gray-soft); color: var(--secondary); }
.req b { display: block; font-size: 15px; line-height: 1.45; }
.req span.d { display: block; font-size: 13.5px; color: var(--secondary); line-height: 1.6; }
.req span.gap { display: block; font-size: 13.5px; color: var(--clay); line-height: 1.6; margin-top: 2px; }
.permit { padding: 22px 24px; }
.permit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.permit-head .no { font-size: 13px; font-weight: 700; color: var(--dim); letter-spacing: 0.08em; }
.permit-head h3 { margin: 0; font-size: 20px; }
.permit-meta { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.tally { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tally span { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.tally .ok { background: var(--mint-soft); color: var(--mint); }
.tally .part { background: var(--accent-soft); color: var(--accent); }
.tally .draft { background: #eef3fd; color: #5b7fd1; }
.tally .miss { background: var(--clay-soft); color: var(--clay); }

.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 50px; font-size: 13px; color: var(--dim); }

@media (max-width: 860px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 26px; }
  .lead { font-size: 16.5px; }
  h2 { font-size: 22px; }
  .flow li + li { margin-left: 0; }
  .flow li + li::before { content: none; }
}
@media print {
  .site-header { position: static; }
  section { break-inside: avoid; }
}

/* 내부용으로 가는 단추 */
.btn-in {
  display: inline-block; font-weight: 600; font-size: 15px; padding: 10px 20px;
  color: #fff; background: var(--clay); border-radius: 10px;
}
.btn-in:hover { text-decoration: none; filter: brightness(1.08); }

/* 개발 계획의 제품 탭 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.tabs a {
  padding: 9px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  color: var(--secondary); background: var(--surface); border: 1px solid var(--line);
}
.tabs a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 메모 여러 칸, 최근 바뀐 것 */
.memo .grid { align-items: start; }
.memo-panel textarea { margin-top: 2px; }
.changes-card { border-left: 4px solid var(--accent); }
.changes-card ul { margin: 6px 0 0; }
.changes-card li { font-size: 14.5px; }
details.changes { margin-top: 14px; background: #fbfcfd; }
details.changes li { font-size: 14px; }

/* 할 일의 체크와 메모 */
.todo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.todo-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.todo-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--mint); cursor: pointer; }
.todo-check i { font-style: normal; }
.todo-note {
  flex: 1; min-width: 140px; font: inherit; font-size: 13.5px; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 3px 2px;
}
.todo-note::placeholder { color: #a9b6c4; }
.todo-note:hover { border-bottom-color: var(--dim); }
.todo-note:focus { outline: 0; border-bottom: 1px solid var(--accent); background: #fff; }
.todo-status { font-size: 12px; color: var(--dim); }
.person .steps li.done { counter-increment: none; background: none; }
.person .steps li.done::before { content: "\2713"; background: var(--mint-soft); color: var(--mint); }
.steps li.done > b, .rt-list li.done > b { text-decoration: line-through; color: var(--dim); font-weight: 500; }
.steps li.done > span, .rt-list li.done > span { display: none; }
.steps li.done .todo-check, .rt-list li.done .todo-check { color: var(--mint); }

/* 정기 업무 */
.routine { border-top: 1px solid var(--line); margin-top: 4px; padding: 16px 0 6px; }
.routine h4 { font-size: 15px; margin-bottom: 2px; }
.routine > .small { margin-bottom: 8px; }
.rt-list { list-style: none; margin: 0; padding: 0; }
.rt-list li { margin: 0; padding: 10px 0 10px 12px; border-top: 1px solid var(--line); border-left: 3px solid var(--line); }
.rt-list li:first-child { border-top: 0; }
.rt-list li.soon { border-left-color: var(--accent); }
.rt-list li.late { border-left-color: var(--clay); }
.rt-list li.done { border-left-color: var(--mint-soft); }
.rt-list b { display: block; font-size: 15px; line-height: 1.45; }
.rt-list li > span { display: block; font-size: 13px; color: var(--secondary); line-height: 1.6; margin-top: 2px; }
.rt-list em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--secondary); background: var(--gray-soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.rt-list li.soon em { background: var(--accent-soft); color: var(--accent); }
.rt-list li.late em { background: var(--clay-soft); color: var(--clay); }
details.rt-later { margin: 10px 0 0; padding: 8px 12px; background: #fbfcfd; font-size: 13px; }
details.rt-later summary { font-weight: 500; color: var(--secondary); }
details.rt-later ul { margin: 0; color: var(--secondary); }

/* 돈: 들어올 돈은 왼쪽, 나갈 돈은 오른쪽 */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ledger-col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 16px; }
.ledger-col.in { border-top: 4px solid var(--mint); }
.ledger-col.out { border-top: 4px solid var(--clay); }
.ledger-head h2 { font-size: 22px; margin-bottom: 6px; }
.ledger-sum { margin-bottom: 8px; }
.ledger-sum b { display: block; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.ledger-col.in .ledger-sum b { color: var(--mint); }
.ledger-col.out .ledger-sum b { color: var(--clay); }
.ledger-sum small { display: block; margin-top: 2px; }
.ledger-k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); margin: 18px 0 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.rows li > div:first-child { min-width: 0; }
.rows b { font-size: 15px; }
.rows small { display: block; line-height: 1.55; margin-top: 2px; }
.rows .amt { flex: none; text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .amt.q { font-weight: 500; color: var(--clay); }
.rows li.total { border-top: 2px solid var(--text); }
.ledger .callout { margin-bottom: 0; font-size: 14.5px; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rows li { flex-direction: column; gap: 2px; } .rows .amt { text-align: left; } }
