/* ATLAS 서버판 공통 스타일.
   색·간격은 아래 변수만 쓴다. 화면은 폰 너비를 먼저 맞추고 넓은 화면에서 늘린다. */

:root {
    color-scheme: light dark;

    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f0f2f5;
    --border: #e1e4ea;
    --border-strong: #c9ced8;
    --text: #1a1d23;
    --text-subtle: #5b6370;
    --text-muted: #8a919c;

    --accent: #3451d1;
    --accent-hover: #2a42b0;
    --accent-soft: #e9edfc;
    --on-accent: #ffffff;

    --ok: #18794e;
    --ok-soft: #e3f4ea;
    --warn: #a15c07;
    --warn-soft: #fdf1dc;
    --danger: #c22f2f;
    --danger-soft: #fce8e8;

    --radius: 10px;
    --radius-small: 6px;
    --shadow: 0 1px 2px rgba(20, 24, 33, 0.06);
    --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
            "Noto Sans KR", "Malgun Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14161a;
        --surface: #1c1f25;
        --surface-soft: #23272e;
        --border: #2e333c;
        --border-strong: #434a55;
        --text: #f1f3f5;
        --text-subtle: #b0b7c0;
        --text-muted: #868e99;

        --accent: #8098ff;
        --accent-hover: #9db0ff;
        --accent-soft: #252d4d;
        --on-accent: #10131c;

        --ok: #5fd39a;
        --ok-soft: #173327;
        --warn: #f0b458;
        --warn-soft: #3a2c12;
        --danger: #ff8a8a;
        --danger-soft: #3d1c1c;

        --shadow: none;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.subtle { color: var(--text-subtle); }
.muted { color: var(--text-muted); font-size: 0.875rem; }
.number { font-variant-numeric: tabular-nums; }

/* ── 로고: 흰색 한 가지인 SVG 를 틀로 써서 글자색을 따라가게 한다 */
.logo {
    display: block;
    width: 92px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("atlas_logo_vector.svg") left center / contain no-repeat;
    mask: url("atlas_logo_vector.svg") left center / contain no-repeat;
}

/* ── 위쪽 띠 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.topbar .spacer { flex: 1; }

/* ── 부원 화면: 가운데 한 줄 */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}
.page-header { margin-bottom: 20px; }
.page-header p { margin-top: 4px; color: var(--text-subtle); }

.stack { display: grid; gap: 16px; }

/* ── 관리 화면: 좁으면 메뉴가 위에서 옆으로 밀리고, 넓으면 왼쪽에 선다 */
.admin-nav {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a,
.admin-nav span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-small);
    color: var(--text-subtle);
    text-decoration: none;
    white-space: nowrap;
}
.admin-nav a:hover { background: var(--surface-soft); color: var(--text); }
.admin-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.admin-nav span { color: var(--text-muted); }
.admin-nav small { font-size: 0.6875rem; }
.admin-main { max-width: 1080px; padding: 20px 16px 48px; }

@media (min-width: 900px) {
    .admin-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); align-items: start; }
    .admin-nav {
        position: sticky;
        top: 56px;
        flex-direction: column;
        height: calc(100vh - 56px);
        padding: 16px 12px;
        overflow-y: auto;
        border-bottom: 0;
        border-right: 1px solid var(--border);
    }
    .admin-nav span { justify-content: space-between; }
    .admin-main { padding: 28px 32px 64px; }
}

/* ── 카드 */
.card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card > h2 { margin-bottom: 12px; }

.empty {
    padding: 20px 12px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-small);
    color: var(--text-subtle);
    text-align: center;
    font-size: 0.9375rem;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat .label { color: var(--text-subtle); font-size: 0.875rem; }
.stat .value { margin-top: 2px; font-size: 1.625rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── 버튼. 손가락으로 누르기 좋게 높이 44px */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--surface-soft); color: var(--text); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.button.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--on-accent); }
.button.danger { border-color: var(--danger); color: var(--danger); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 상태 표시 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-subtle);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* ── 알림 */
.notice {
    padding: 12px 14px;
    border-radius: var(--radius-small);
    background: var(--accent-soft);
    color: var(--text);
}
.notice.ok { background: var(--ok-soft); }
.notice.warn { background: var(--warn-soft); }
.notice.danger { background: var(--danger-soft); }

/* ── 입력 */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { color: var(--text-muted); font-size: 0.8125rem; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"],
select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--text);
    font: inherit;   /* 16px 아래면 아이폰이 입력할 때 화면을 확대한다 */
}
textarea { min-height: 96px; resize: vertical; }

/* ── 표. 좁은 화면에서는 표만 옆으로 밀린다 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 10px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
th { background: var(--surface-soft); color: var(--text-subtle); font-size: 0.8125rem; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.amount, th.amount { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 로그인·안내 화면: 좁은 한 장 */
.page.narrow { max-width: 420px; padding-top: 40px; }
.login-card { padding: 24px 20px; }
.login-card h1 { margin-bottom: 6px; }
.login-footer { margin-top: 16px; text-align: center; }
.flashes { margin-bottom: 16px; }

/* 카카오 로그인 버튼. 색과 모양은 카카오 디자인 가이드를 따른다 */
.button.kakao { border-color: #fee500; border-radius: 12px; background: #fee500; color: rgba(0, 0, 0, 0.85); }
.button.kakao:hover { border-color: #f2d900; background: #f2d900; color: rgba(0, 0, 0, 0.85); }

.account-name { max-width: 9em; overflow: hidden; color: var(--text-subtle); font-size: 0.875rem; text-overflow: ellipsis; white-space: nowrap; }
.topbar form { display: flex; }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.inline-form select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 0.875rem; }
input[type="password"] {
    width: 100%; min-height: 44px; padding: 8px 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-small);
    background: var(--surface); color: var(--text); font: inherit;
}

/* ── 화면 머리: 제목 옆에 버튼 */
.page-header.with-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.breadcrumb { margin-bottom: 6px; color: var(--text-muted); font-size: 0.875rem; }
.breadcrumb a { color: var(--text-subtle); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.badges { margin-top: 8px; gap: 6px; }

/* ── 화면 안의 탭 */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tabs a {
    flex: none; padding: 10px 14px; margin-bottom: -1px;
    border-bottom: 2px solid transparent; color: var(--text-subtle); text-decoration: none; white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ── 검색 줄 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.toolbar input[type="search"] { flex: 1 1 240px; width: auto; }
.toolbar select { flex: 0 1 160px; width: auto; }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }

/* ── 표 안 */
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover, .sort-link.active { color: var(--text); }
.row-link { color: var(--text); font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--accent); text-decoration: underline; }
td .muted { font-size: 0.8125rem; }
.table-wrap.flat { border: 0; border-radius: 0; margin: 0 -16px; }
.table-wrap.flat th:first-child, .table-wrap.flat td:first-child { padding-left: 16px; }
input.compact { min-height: 34px; min-width: 140px; padding: 4px 8px; font-size: 0.875rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.button[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; text-decoration: underline; }
.button.link:hover { background: none; color: var(--danger); }

/* 행의 관리 메뉴: 누르면 펼쳐진다 */
.row-actions summary { list-style: none; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions[open] summary { background: var(--surface-soft); }
.row-actions-panel { margin-top: 8px; gap: 8px; }

/* ── 상세 화면: 넓으면 오른쪽에 곁다리 */
.detail-grid { display: grid; gap: 16px; align-items: start; }
.detail-grid > * { min-width: 0; }
@media (min-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--text-subtle); font-size: 0.875rem; }
.facts dd { margin: 0; }

.stats.compact .value { font-size: 1.25rem; }
.stat .value small { color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; }

.note-list, .log-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.note-list li { padding-bottom: 12px; border-bottom: 1px solid var(--border); white-space: pre-wrap; }
.note-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; white-space: normal; }
.log-list li { padding-left: 12px; border-left: 2px solid var(--border); font-size: 0.9375rem; }

.add-row { margin-top: 12px; }
.inline-form.spread { justify-content: space-between; }
.form-card { max-width: 720px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
input[type="file"] { font: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 가입 신청 */
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend, .field .label { margin-bottom: 6px; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 400px) { .choice-row { grid-template-columns: repeat(4, 1fr); } }
.choice { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-small); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.choice.consent { align-items: flex-start; font-size: 0.9375rem; }
.choice.consent input { margin-top: 3px; flex: none; }
.field.invalid input[type="text"], .field.invalid input[type="tel"], .field.invalid .choice { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8125rem; }

.terms-box { border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface-soft); }
.terms-box summary { padding: 10px 12px; color: var(--text-subtle); font-size: 0.875rem; cursor: pointer; }
.terms-box .terms { max-height: 260px; overflow-y: auto; padding: 0 12px 12px; }
.terms { font-size: 0.875rem; line-height: 1.6; }
.terms h3 { margin: 14px 0 4px; font-size: 0.875rem; }
.terms ul { margin: 0; padding-left: 18px; }
.terms p { margin: 0; }

/* ── 계정 승인 카드 */
.applicant { display: grid; gap: 14px; }
.applicant-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.applicant h3 { font-size: 1.0625rem; }
.approve-form .choice { align-items: flex-start; }
.approve-form .choice input { margin-top: 3px; flex: none; }
.approve-form fieldset { display: grid; gap: 8px; }
a.account-name { text-decoration: none; }
a.account-name:hover { color: var(--text); text-decoration: underline; }
.card h2 + p { margin-top: 4px; }

/* ── 통장 거래 */
.money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.money.in { color: var(--ok); }
.money.out { color: var(--danger); }
h1 .money { font-size: 1.25rem; margin-left: 6px; }
.undo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }

.review-item { display: grid; gap: 10px; }
.review-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 1.0625rem; }
.review-hints { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9375rem; }
.review-actions { gap: 6px; }

.picker > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.picker[open] > summary { margin-bottom: 10px; }
.picker-list { display: grid; gap: 6px; max-height: 360px; overflow-y: auto; }
.picker-option { align-items: flex-start; }
.picker-option input { margin-top: 3px; flex: none; }
input.picker-search { min-height: 40px; }

/* ── 이벤트 */
.choice-row.three { grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-row.three { grid-template-columns: repeat(3, 1fr); } }
.choice small { display: block; color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; }
.choice-row.three .choice { align-items: flex-start; }
.choice-row.three .choice input { margin-top: 3px; flex: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.picker-list.tall { max-height: 480px; }

/* ── 홈 */
.event-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-small); }
.event-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.event-card-head h3 { font-size: 1.0625rem; }
.event-card-head a { color: var(--text); text-decoration: none; }
.event-card-when { margin-top: 4px; font-size: 0.9375rem; }
.dday { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 700; }
.event-card-meta { margin-top: 2px; color: var(--text-subtle); font-size: 0.9375rem; }
.event-card-meta strong { margin-left: 6px; color: var(--warn); font-weight: 600; }
.event-card-desc { margin-top: 6px; color: var(--text-subtle); font-size: 0.875rem; white-space: pre-wrap; }
.sub-title { margin-top: 4px; color: var(--text-subtle); font-size: 0.875rem; }
.owed-card h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.owed-list { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.owed-list li { display: flex; justify-content: space-between; gap: 12px; }

.calendar { width: 100%; table-layout: fixed; border-collapse: collapse; }
.calendar th { padding: 6px 2px; background: none; border: 0; text-align: center; font-size: 0.75rem; }
.calendar th:first-child { color: var(--danger); }
.calendar td { height: 72px; padding: 4px; vertical-align: top; white-space: normal; border: 1px solid var(--border); }
.calendar td.out { background: var(--surface-soft); }
.calendar td.out .cal-day { color: var(--text-muted); }
.calendar td.today .cal-day { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.cal-day { font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.cal-event { display: block; margin-top: 2px; padding: 1px 4px; overflow: hidden; border-radius: 4px; font-size: 0.6875rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-soft); color: var(--text-subtle); }
.cal-event.event { background: var(--accent); color: var(--on-accent); }
.cal-event.payment { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-muted); }
.cal-event.mine { font-weight: 700; }
.cal-more { font-size: 0.6875rem; }
.cal-label { min-width: 6.5em; text-align: center; align-self: center; }
.cal-legend { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cal-legend .cal-event { display: inline-block; margin: 0; }
@media (max-width: 480px) { .calendar td { height: 56px; padding: 2px; } .cal-event { font-size: 0.625rem; padding: 0 2px; } }
td.wrap { white-space: normal; min-width: 220px; }
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answer-row .button { min-height: 52px; font-size: 1.0625rem; }
.event-desc { white-space: pre-wrap; color: var(--text-subtle); }
.event-card-head h3 a:hover { color: var(--accent); }
.name-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
#share-url { min-height: 34px; font-size: 0.8125rem; }
.join-button { width: 100%; min-height: 56px; font-size: 1.125rem; }

/* ── 회의록·공지 */
.post-row { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.post-row:hover { border-color: var(--accent); color: var(--text); }
.post-row h2 { font-size: 1.0625rem; }
.post-preview { color: var(--text-subtle); font-size: 0.9375rem; white-space: pre-line; }
.post-body { white-space: pre-wrap; line-height: 1.7; }
.post-view { max-width: 820px; }

/* ── 개요 대시보드. 차트 색: 수입·지출은 검증한 두 색(파랑·주황), 납부 상태는 상태색 */
.dash { display: grid; gap: 16px; }
.dash-hero .stat .muted { margin-top: 2px; font-size: 0.75rem; }
.dash-pair { display: grid; gap: 16px; }
@media (min-width: 900px) { .dash-pair { grid-template-columns: 1fr 1fr; } }
.viz {
    --series-income: #2a78d6; --series-expense: #eb6834;
    --status-good: #0ca30c; --status-warning: #fab219; --status-critical: #d03b3b;
    --viz-grid: var(--border);
}
@media (prefers-color-scheme: dark) { .viz { --series-income: #3987e5; --series-expense: #d95926; } }

.todo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.todo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.todo .label { color: var(--text-subtle); font-size: 0.875rem; }
.todo strong { font-size: 1.375rem; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.todo.has strong { color: var(--text); }
.todo.has { border-left: 3px solid var(--accent); }
.todo:hover { border-color: var(--accent); color: var(--text); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--text-subtle); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.swatch.income { background: var(--series-income); }
.swatch.expense { background: var(--series-expense); }
.swatch.paid { background: var(--status-good); }
.swatch.partial { background: var(--status-warning); }
.swatch.unpaid { background: var(--status-critical); }

.month-chart { display: block; width: 100%; height: auto; max-height: 260px; }
.month-labels { display: grid; margin-top: 4px; text-align: center; color: var(--text-muted); font-size: 0.8125rem; }
.month-labels .current { color: var(--text); font-weight: 600; }
.month-chart .axis { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.month-chart .bar.income { fill: var(--series-income); }
.month-chart .bar.expense { fill: var(--series-expense); }
.month-chart .hit { fill: transparent; }
.month-chart .month:hover .hit { fill: var(--surface-soft); }
.table-view { margin-top: 8px; }
.table-view > summary { cursor: pointer; color: var(--text-subtle); font-size: 0.875rem; }
.table-view[open] > summary { margin-bottom: 8px; }

.hero-number { margin: 4px 0 10px; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-number small { margin-left: 4px; color: var(--text-subtle); font-size: 0.9375rem; font-weight: 400; }
.stack-bar { display: flex; gap: 2px; height: 14px; margin-bottom: 10px; }
.stack-bar .seg { min-width: 4px; border-radius: 4px; }
.stack-bar .seg.paid { background: var(--status-good); }
.stack-bar .seg.partial { background: var(--status-warning); }
.stack-bar .seg.unpaid { background: var(--status-critical); }
.status-legend { margin-bottom: 10px; }
.status-legend strong { color: var(--text); }

.progress-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.9375rem; }
.progress-head a { color: var(--text); font-weight: 600; text-decoration: none; }
.progress-head a:hover { color: var(--accent); }
.progress { height: 8px; margin-top: 6px; border-radius: 4px; background: var(--surface-soft); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 4px; background: var(--series-income); }
.notice-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notice-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
