:root {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #20352f;
  background: #f7f8f5;
  --surface: #fff;
  --ink: #20352f;
  --muted: #5b6a60;
  --teal: #174c43;
  --line: #dce5da;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #6e9e76; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.layout { max-width: 1090px; margin: auto; padding: 26px 24px 54px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.brand { display: block; }
.brand img { display: block; width: 108px; height: auto; }
.heading { padding: 27px 0 22px; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 750; }
h1 { margin: 5px 0 8px; font-size: clamp(28px, 4vw, 38px); line-height: 1.25; letter-spacing: -.045em; }
h2 { font-size: 19px; letter-spacing: -.03em; }
.heading > p:last-child, .upload-panel > div > p, .panel-heading p, .state p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.upload-panel > div > p, .panel-heading p, .state p { margin-top: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.secondary { background: var(--surface); border-color: var(--line); }
.secondary:hover:enabled, a.secondary:hover { background: #edf4ed; border-color: #b6cabb; }
.primary { background: var(--teal); color: #fff; }
.primary:hover:enabled, a.primary:hover { background: #103e36; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 19px; }
.upload-panel, .lookup-panel { margin-bottom: 19px; }
.lookup-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto; gap: 9px; align-items: end; }
.lookup-panel .notice { margin: 12px 0 0; }
.lookup-panel .table-scroll { margin-top: 12px; }
.lookup-share { margin-top: 12px; }
.lookup-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 10px; }
.lookup-link-note, .lookup-link .notice { grid-column: 1 / -1; }
.lookup-link-note { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.lookup-link .notice { margin: 0; }
.deposit-summary { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.deposit-summary h3, .lookup-details-heading { margin: 0 0 10px; font-size: 16px; letter-spacing: -.025em; }
.lookup-details-heading { margin-top: 20px; }
.deposit-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
.deposit-overview { margin-bottom: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.calendar-kind { display: flex; gap: 8px; margin-bottom: 12px; }
.calendar-kind button[aria-pressed="true"], .calendar-kind button[aria-pressed="true"]:hover:enabled { background: var(--teal); color: #fff; border-color: var(--teal); }
.calendar-scroll-hint { display: none; }
.management-panel { margin-top: 20px; }
.management-panel > summary { cursor: pointer; padding: 15px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.management-panel[open] > summary { margin-bottom: 16px; }
#lookup-details-toggle { margin-top: 16px; }
.deposit-calendar, .deposit-totals { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf6; }
.calendar-nav { display: grid; grid-template-columns: 42px 1fr 42px; gap: 5px; align-items: center; margin-bottom: 8px; text-align: center; }
.calendar-nav .button { min-height: 36px; padding: 0; font-size: 21px; line-height: 1; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.calendar-grid > span { color: var(--muted); font-size: 12px; line-height: 25px; }
.calendar-day { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: relative; min-width: 0; min-height: 90px; padding: 7px 4px; border: 1px solid #e0e8df; border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 650; }
.day-number { text-align: left; padding-left: 3px; }
.day-project { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 3px; border-radius: 4px; padding: 3px 1px; font-size: 12px; line-height: 1.4; }
.day-count { white-space: nowrap; }
.day-project-amount { display: block; flex-basis: 100%; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.deposit-calendar { overflow-x: auto; }
.day-project.poel { background: #ede9fb; color: #57418b; }
.day-project.misc { background: #e1f3ed; color: #185e49; }
.day-amount { font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calendar-day:hover { background: #e8f0e6; }
.calendar-day[aria-current="date"] { border-color: #b6cabb; }
.calendar-day[aria-pressed="true"] { color: #fff; background: var(--teal); }
.deposit-total { font-weight: 800; margin: 10px 0; font-size: 20px; }
.deposit-totals { padding: 15px; }
.deposit-date { font-size: 14px; font-weight: 750; }
.deposit-totals dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.deposit-totals dl div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.deposit-totals dt, .deposit-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.deposit-totals dd { margin: 4px 0 0; color: var(--teal); font-size: clamp(18px, 3.5vw, 25px); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.file-field { display: grid; gap: 6px; max-width: 620px; margin-top: 15px; font-size: 14px; font-weight: 700; }
.file-field input { min-width: 0; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8f2; color: var(--ink); font-size: 13px; cursor: pointer; }
.file-field input::file-selector-button { min-height: 35px; margin-right: 9px; padding: 6px 12px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.file-field small { color: var(--muted); font-size: 12px; line-height: 1.55; font-weight: 500; }
.notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; color: var(--teal); background: #eff4ee; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.notice.error { color: #942a2a; background: #fbecea; }
.upload-panel .notice { margin: 12px 0 0; }
.project-switch { display: inline-grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 4px; max-width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #ebf0ea; }
.project-switch button { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 750; }
.project-switch button[aria-pressed="true"] { color: #fff; background: var(--teal); }
.metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 17px; }
.metric { flex: 1 1 145px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.metric dt { color: var(--muted); font-size: 13px; font-weight: 650; }
.metric dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin: 5px 0 0; }
.metric strong { font-size: clamp(20px, 3vw, 26px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric span { color: var(--muted); font-size: 13px; }
.paid-metric { background: #eef5ee; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.filters { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 1.4fr) auto; gap: 9px; align-items: end; margin-bottom: 13px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.field input, .field select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 9px; border: 1px solid #cfdbcf; border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 11px; vertical-align: top; }
th { color: var(--muted); background: #f4f7f2; font-size: 12px; white-space: nowrap; }
td { border-top: 1px solid var(--line); line-height: 1.55; overflow-wrap: anywhere; }
td small { display: block; color: var(--muted); font-size: 11px; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.numeric { font-weight: 750; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 5px; color: #4c6154; background: #eff1ed; font-size: 12px; font-weight: 730; white-space: nowrap; }
.badge.paid { color: #226046; background: #e8f5eb; }
.badge.warning { color: #77520a; background: #fbf1da; }
.state { padding: 23px 14px; text-align: center; }
.state > .button { margin-top: 12px; }
.empty { border: 1px dashed var(--line); border-radius: 8px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 13px; color: var(--muted); font-size: 13px; }
@media (max-width: 620px) {
  .layout { padding: 17px 12px 34px; }
  .header { padding-bottom: 15px; }
  .brand img { width: 92px; }
  .heading { padding: 21px 0 16px; }
  .panel, .metric { padding: 13px; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; }
  .filters > .field:first-child { grid-column: 1 / -1; }
  .lookup-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-fields > button { grid-column: 1 / -1; }
  .deposit-layout { grid-template-columns: minmax(0, 1fr); }
  .deposit-calendar { padding: 5px; }
  .calendar-day { padding: 5px 1px; min-height: 88px; gap: 3px; }
  .day-project, .day-amount { font-size: 10px; }
  .records-table, .records-table tbody { display: block; }
  .records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .records-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
  .records-table tr:last-child { border-bottom: 0; }
  .records-table td { min-width: 0; padding: 0; border: 0; text-align: left; white-space: normal; }
  .records-table td::before { display: block; content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 650; }
}
@media (max-width: 420px) {
  .calendar-scroll-hint { display: block; margin: 5px 0; color: var(--muted); font-size: 11px; }
  .deposit-calendar .calendar-grid { min-width: 560px; }
  .day-amount { display: block; }
}
