* { box-sizing: border-box; }
:root {
  --navy: #132a35; --teal: #087f75; --teal-dark: #086a62; --mint: #eaf5f2;
  --canvas: #f4f6f8; --ink: #20333c; --muted: #60747d; --line: #e2e9ed;
  --negative: #aa5140; --side: 238px;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink); background: var(--canvas); color-scheme: light;
}
body { margin: 0; min-width: 310px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #edf3f3; }
.login-card { width: min(420px,100%); border: 1px solid var(--line); border-radius: 16px; padding: 25px 32px 32px; background: white; box-shadow: 0 10px 45px #173d4210; text-align: center; }
.login-card img { object-fit: contain; border-radius: 12px; }
.login-card h1 { font-size: 24px; margin-top: 12px; }
.login-card p { font-size: 14px; }
.login-card form { display: grid; gap: 15px; margin-top: 23px; text-align: left; }
.login-card input { height: 42px; }
.login-card .primary { height: 42px; }
#login-error { margin: 0; color: var(--negative); font-size: 13px; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #69bdb5; outline-offset: 2px; }
button, a { -webkit-tap-highlight-color: transparent; }
.sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; width: var(--side); background: var(--navy); color: white; display: flex; flex-direction: column; padding: 26px 23px; overflow-y: auto; }
.brand { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #ffffff1b; }
.brand-logo { display: block; width: 100%; height: auto; border-radius: 10px; background: #faf7f2; }
.brand b { display: none; letter-spacing: 1px; font-size: 20px; }
.brand small { display: block; color: #b0c8d1; font-size: 12px; letter-spacing: 2px; }
nav { display: grid; gap: 6px; margin-top: 25px; }
.mobile-menu { display: none; }
nav button { border: 0; border-radius: 8px; background: transparent; padding: 13px 15px; text-align: left; color: #c3d1d8; font-size: 15px; white-space: nowrap; }
nav button:hover { background: #ffffff0c; }
nav button.active { color: #fff; background: #ffffff13; box-shadow: inset 3px 0 #43c7b0; }
.side-foot { margin-top: auto; padding: 15px 12px 2px; color: #b0c8d1; border-top: 1px solid #ffffff1b; }
.side-foot span { color: #75cdbb; font-size: 12px; }
.side-foot p { margin: 8px 0 0; font-size: 12px; }
main { margin-left: var(--side); }
.topbar { height: 64px; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.topbar strong { color: var(--ink); }
.divider { color: #a3b3ba; margin: 0 11px; }
.health { font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.health::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ca68d; }
.health.warn::before { background: #c37555; }
.workspace { margin: auto; max-width: 1400px; padding: 26px 34px 50px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
h1 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.5px; }
.page-head p, .muted { color: var(--muted); }
.page-head p { margin: 0; font-size: 14px; line-height: 1.7; }
.tools, .buttons, .account-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.period-tools { flex-shrink: 0; }
.period-control { display: inline-flex; align-items: stretch; gap: 2px; border: 1px solid #d6e2e5; border-radius: 7px; background: #fff; padding: 2px; }
.period-control input { border: 0; min-width: 128px; padding: 5px 4px; }
.period-control input[type="date"] { min-width: 138px; }
.period-button { border: 0; background: #edf5f4; color: var(--teal-dark); width: 29px; padding: 0; border-radius: 5px; font-size: 24px; line-height: 1; }
.period-button:hover { background: #d8eee8; }
.card, .stats { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 13px #162b3504; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 17px 0; margin-bottom: 18px; }
.stats section { padding: 0 19px; min-width: 0; border-right: 1px solid var(--line); }
.stats section:last-child { border: 0; }
.stats span { color: var(--muted); font-size: 13px; display: block; }
.stats b { display: block; margin-top: 7px; font-size: clamp(16px, 2.4vw, 26px); font-weight: 660; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.negative { color: var(--negative) !important; }
.accent { color: var(--teal-dark); }
.layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(244px, 302px); gap: 17px; align-items: start; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 19px; }
.card-head p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.card-body { padding: 16px 18px; }
.card-body > :first-child { margin-top: 0; }
.primary, .secondary, .quiet { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; padding: 9px 13px; min-height: 35px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.primary:hover:not([disabled]) { background: var(--teal-dark); }
.secondary { background: #fff; border: 1px solid #d6e2e5; color: #355260; }
.secondary:hover:not([disabled]) { border-color: #7ab1a8; background: #f6fcfa; }
.quiet { border: 0; background: transparent; color: var(--teal-dark); }
.quiet.danger { color: var(--negative); }
input, select { width: 100%; min-width: 0; border-radius: 6px; border: 1px solid #d5e1e6; background: #fff; color: var(--ink); padding: 7px 8px; min-height: 34px; }
input[type=month], input[type=date] { width: auto; min-width: 132px; font-size: 13px; }
input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
input:disabled { background: #f4f6f8; color: var(--muted); }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.field input, .field select { font-size: 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; background: #eef4f6; color: #415b66; font-weight: 620; }
th, td { border-bottom: 1px solid #edf1f3; padding: 7px 10px; vertical-align: middle; }
tbody tr:nth-child(even) { background: #f8fbfc; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-table .qty { width: 78px; }
.ledger-table .price { width: 94px; }
.ledger-table .total-col { width: 78px; }
.ledger-table input { min-height: 34px; padding: 4px 6px; font-size: 15px; }
.ledger-scroll { max-height: min(50vh, 565px); min-height: 235px; }
.ledger-scroll thead { position: sticky; top: 0; z-index: 1; }
.section-row th { background: #e7f3ef; color: #215d53; padding: 8px 10px; font-size: 14px; border-top: 2px solid #a9cfc4; }
.custom-daily-details { border-top: 1px solid var(--line); padding: 14px 18px; }
.custom-daily-details summary { cursor: pointer; color: var(--teal-dark); font-size: 15px; font-weight: 600; }
.custom-daily-form { display: grid; grid-template-columns: minmax(0,2fr) minmax(110px,1fr) auto; gap: 12px; align-items: end; margin-top: 14px; }
.custom-daily-form .footnote { grid-column: 1/-1; margin: 0; padding: 0; }
@media(max-width:620px){ .custom-daily-form { grid-template-columns: minmax(0,1fr); } .custom-daily-form input { font-size: 16px; min-height: 44px; } .custom-daily-form button { min-height: 44px; } }
.card-actions { border-top: 1px solid var(--line); padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-total { font-size: 13px; color: var(--muted); }
.preview-total b { color: var(--teal-dark); margin-left: 8px; font-size: 19px; white-space: nowrap; }
.month-title { font-size: 13px; color: var(--muted); }
.live-result { margin: 11px; padding: 11px 12px; border-radius: 8px; border: 1px solid #d3e8e1; background: #f1f8f6; }
.live-result strong { display: block; margin: 7px 0; font-size: 23px; font-variant-numeric: tabular-nums; }
.live-head { display: flex; flex-wrap: wrap; gap: 5px 8px; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 650; }
.live-result p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.calendar { max-height: 446px; overflow: auto; }
.calendar table { font-size: 14px; }
.calendar thead { position: sticky; top: 0; z-index: 1; }
.calendar th, .calendar td { padding: 0; }
.calendar th { padding: 9px 12px; }
.day-cell { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 8px 12px; width: 100%; text-align: left; background: transparent; border: 0; }
.day-cell:hover { background: #edf8f5; }
.day-cell.selected { background: #e1f3ed; color: #145c53; box-shadow: inset 3px 0 var(--teal); font-weight: 650; }
.calendar .amount { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.calendar .day-label { white-space: nowrap; }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(256px,312px); gap: 17px; align-items: start; }
.chart-header, .chart-row { display: grid; grid-template-columns: 47px minmax(0,1fr) minmax(0,1fr) minmax(80px,110px); align-items: center; gap: 6px; }
.chart-header { background: #eef4f6; color: #47616e; padding: 9px 16px; font-size: 13px; }
.chart-header span:nth-child(2) { text-align: right; }
.chart-header span:last-child { text-align: right; }
.daily-chart { max-height: 430px; overflow: auto; }
.chart-row { background: #fff; border: 0; border-bottom: 1px solid #eaf0f2; padding: 6px 16px; width: 100%; text-align: left; min-height: 35px; font-size: 14px; }
.chart-row:nth-child(even) { background: #f8fbfc; }
.chart-row:hover { background: #eef8f4; }
.chart-row.selected { background: #e4f3ed; box-shadow: inset 3px 0 var(--teal); }
.chart-row strong { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-row progress { appearance: none; width: 100%; height: 9px; border: 0; border-radius: 3px; overflow: hidden; background: #e8eef1; }
.chart-row progress.loss { direction: rtl; accent-color: #c57766; }
.chart-row progress.gain { accent-color: #319b87; }
.chart-row progress::-webkit-progress-bar { background: #e8eef1; }
.chart-row progress.loss::-webkit-progress-value { background: #c57766; }
.chart-row progress.gain::-webkit-progress-value { background: #319b87; }
.report-breakdown { margin-top: 17px; }
.report-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dce8ea; border-radius: 8px; background: #f1f6f7; }
.report-switch button { border: 0; background: transparent; border-radius: 5px; padding: 7px 9px; white-space: nowrap; font-size: 13px; color: #47616b; }
.report-switch button[aria-pressed="true"] { background: #d9eee8; color: #145c52; font-weight: 650; }
.curve-frame { padding: 8px 9px 0; }
#income-curve { display: block; width: 100%; height: 260px; cursor: crosshair; touch-action: pan-y; }
.curve-empty { min-height: 190px; display: grid; place-items: center; color: var(--muted); padding: 13px; font-size: 14px; }
.curve-card .card-head, .report-breakdown .card-head { flex-wrap: wrap; }
.curve-list { border-top: 1px solid var(--line); }
.curve-list summary { cursor: pointer; color: var(--teal-dark); padding: 11px 15px; font-size: 13px; }
.skill-share { min-width: 752px; }
.skill-share th, .skill-share td { text-align: right; white-space: nowrap; }
.skill-share th:first-child { text-align: left; min-width: 105px; position: sticky; left: 0; z-index: 1; }
.skill-share tbody th { background: #f4f8f9; }
.skill-share td:last-child, .skill-share thead th:last-child { background: #edf5f3; }
.skill-share tfoot th, .skill-share tfoot td { background: #e5f3ee; border-top: 1px solid #a9cfc4; }
.share-cell strong, .share-cell small { display: block; font-variant-numeric: tabular-nums; }
.share-cell strong { font-size: 16px; color: var(--teal-dark); }
.share-cell small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.share-none { color: #78909a; }
.day-totals { margin: 13px 0; }
.day-totals div { display: flex; justify-content: space-between; gap: 9px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.day-totals dd { margin: 0; text-align: right; font-weight: 650; }
.review-items { display: grid; gap: 7px; list-style: none; padding: 0; margin: 12px 0 16px; }
.review-items li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.review-items b { white-space: nowrap; }
.footnote { font-size: 12px; line-height: 1.7; color: var(--muted); padding: 12px 15px; margin: 0; }
.account-pick { margin-bottom: 12px; }
.account-pick button.active { background: var(--mint); border-color: #78b3a9; color: #135c52; }
.reminder-card { margin-bottom: 17px; }
.reminder-main { flex-wrap: wrap; }
.reminder-clock { display: grid; justify-items: center; gap: 2px; min-width: 132px; }
.reminder-clock strong { color: var(--teal-dark); font-size: 24px; font-variant-numeric: tabular-nums; }
.reminder-clock span { font-size: 12px; color: var(--muted); }
.timer-adjust { display: flex; align-items: center; gap: 7px; }
.timer-adjust strong { min-width: 68px; text-align: center; }
.timer-adjust button { font-size: 12px; min-height: 31px; padding: 5px 8px; }
.reminder-tools { padding: 7px 18px 10px; display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.reminder-duration { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.reminder-duration select { width: auto; min-width: 77px; padding: 4px 6px; }
.reminder-tools b { color: var(--ink); }
.reminder-tools details > summary { cursor: pointer; color: var(--teal-dark); }
.reminder-tools details[open] { flex-basis: 100%; }
.reminder-audio-form { display: grid; grid-template-columns: minmax(160px,360px) minmax(90px,130px); gap: 8px 12px; margin-top: 10px; align-items: end; }
.reminder-audio-form input[type="file"] { font-size: 13px; }
.reminder-audio-form p { grid-column: 1/-1; margin: 0; }
.reminder-audio-form .buttons { grid-column: 1/-1; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.settings-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.settings-table input { max-width: 140px; }
.settings-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.record-list { margin-top: 16px; }
.record-list td:first-child { white-space: nowrap; }
.record-list summary { cursor: pointer; color: var(--teal-dark); }
.record-details p { margin: 4px 0; font-size: 12px; }
.status-pill { display: inline-flex; background: var(--mint); color: #146155; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.status-pill.warn { background: #fff3e9; color: #965036; }
.path { overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #45616c; }
.backup-card { margin-bottom: 15px; }
.backup-card p { line-height: 1.7; }
.backup-location { padding: 10px 0; border-bottom: 1px solid var(--line); }
.backup-location:last-child { border-bottom: 0; }
.backup-location b { margin-right: 8px; }
.service-settings { display: grid; gap: 12px; }
.service-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.service-row:last-child { border: 0; padding-bottom: 0; }
.service-row p { margin: 4px 0 0; font-size: 13px; }
.market-accounts { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; margin: 14px 0; }
.market-shortcuts { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.market-account { text-align: left; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 13px; display: grid; gap: 8px; font-size: 13px; }
.market-account.selected { border-color: #329888; box-shadow: inset 0 3px #329888; background: #f1faf7; }
.account-heading { display: flex; justify-content: space-between; gap: 8px; }
.account-heading b { font-size: 16px; }
.market-account small { color: var(--muted); }
.market-account strong { font-size: 19px; color: var(--teal-dark); }
.market-account-maintenance { margin-bottom: 15px; }
.market-account-maintenance summary { cursor: pointer; padding: 12px 18px; color: var(--teal-dark); }
.market-layout { display: grid; grid-template-columns: minmax(310px,.9fr) minmax(0,1.25fr); gap: 16px; align-items: start; }
.market-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: end; }
.market-fields input[type="date"] { width: 100%; }
.market-wide { grid-column: 1/-1; }
.market-fields .footnote { padding: 0; }
.listing-duration { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.listing-duration input { width: 88px; }
.listing-duration span { white-space: nowrap; }
#listing-deadline-preview { line-height: 1.7; }
.listing-countdown { color: var(--teal-dark) !important; font-weight: 650; }
.market-records { min-width: 420px; }
.market-records td { vertical-align: top; }
.market-records td:first-child { min-width: 160px; overflow-wrap: anywhere; max-width: 340px; }
.market-records small { display: block; color: var(--muted); margin-top: 5px; }
#market-filter { max-width: 115px; }
#expense-account-filter { max-width: 200px; }
.household-entries { display: grid; gap: 12px; }
.household-user-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.household-user-bar .status-pill { gap: 5px; padding: 8px 12px; }
.household-person { white-space: nowrap; color: var(--teal-dark); }
.household-entry { display: grid; grid-template-columns: minmax(145px,1fr) minmax(115px,.85fr) minmax(110px,.8fr) minmax(180px,2fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfc; }
.household-row-head { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; min-height: 32px; font-size: 14px; color: var(--teal-dark); }
.household-entry input[type=date] { width: 100%; min-width: 0; }
.household-reports { display: grid; grid-template-columns: minmax(290px,.8fr) minmax(0,1.5fr); align-items: start; gap: 16px; }
.household-reports .card-head { flex-wrap: wrap; }
.household-records { min-width: 490px; }
.household-records small { display: block; color: var(--muted); padding-left: 13px; }
.household-records .household-record-note { min-width: 100px; max-width: 300px; overflow-wrap: anywhere; }
.household-selected { background: #eff8f5 !important; }
@media(max-width:1150px){ .household-reports { grid-template-columns: minmax(0,1fr); } .household-entry { grid-template-columns: repeat(3,minmax(0,1fr)); } .household-note { grid-column: 1/-1; } }
@media(max-width:600px){ .household-entry { grid-template-columns: repeat(2,minmax(0,1fr)); } .household-note { grid-column: auto; } }
@media(max-width:600px){
  .household-entry .field input,.household-entry .field select { font-size: 16px; min-height: 44px; }
  #household-form button,.household-records button { min-height: 44px; }
  .household-user-bar { font-size: 14px; line-height: 1.6; }
  .household-records { min-width: 0; display: block; }
  .household-records thead { display: none; }
  .household-records tbody { display: grid; gap: 12px; padding: 12px; }
  .household-records tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
  .household-records td { display: block; border: 0; padding: 0; }
  .household-records td:first-child .quiet { padding-left: 0; }
  .household-records small { padding-left: 0; }
  .household-records .household-person { align-self: start; border-radius: 5px; background: var(--mint); padding: 5px 9px; margin-top: 5px; }
  .household-records .household-record-note { grid-column: 1/-1; max-width: none; }
  .household-records td:nth-child(4) { font-size: 20px; font-weight: 650; text-align: left; align-self: center; }
  .household-records td:last-child { display: flex; gap: 6px; }
  .household-records td[colspan] { grid-column: 1/-1; }
}
@media(max-width:1050px){ .market-layout { grid-template-columns: minmax(0,1fr); } }
@media(max-width:420px){ .market-fields { grid-template-columns: minmax(0,1fr); } }
.danger-button { color: var(--negative); border-color: #e6ccc6; }
.loading, .fatal { font-size: 14px; color: var(--muted); }
.notice { padding: 13px 15px; margin: 0 0 14px; border-radius: 7px; color: #735038; background: #fff3e8; font-size: 13px; }
#toast { position: fixed; z-index: 6; bottom: 22px; right: 24px; width: min(390px,calc(100vw - 32px)); color: #fff; background: var(--navy); padding: 12px 15px; border-radius: 9px; box-shadow: 0 4px 20px #142e3730; font-size: 13px; line-height: 1.6; }
#toast:empty { display: none; }
#toast.error { background: #8f4135; }
@media (max-width: 1050px) {
  :root { --side: 184px; }
  .sidebar { padding: 25px 16px; }
  .brand b { font-size: 16px; }
  .workspace { padding: 22px 20px; }
  .topbar { padding: 0 20px; }
  .layout { grid-template-columns: minmax(0,1fr) 215px; gap: 12px; }
  .review-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 12px; }
  .card-head, .card-body { padding-left: 12px; padding-right: 12px; }
  .ledger-table th, .ledger-table td { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: 100%; display: block; padding: 14px 14px 9px; overflow-y: visible; }
  .brand { flex-direction: row; padding: 0; border: 0; }
  .brand-logo { width: 54px; border-radius: 7px; }
  .brand b { display: block; }
  .brand small { margin-top: 3px; }
  nav { display: flex; gap: 4px; overflow-x: auto; margin: 11px 0 0; }
  nav button { padding: 9px 10px; font-size: 12px; }
  .sidebar nav { display: none; }
  .mobile-menu { display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 12px; color: #c3d1d8; font-size: 14px; }
  .mobile-menu select { font-size: 16px; min-height: 44px; }
  .side-foot { display: none; }
  main { margin: 0; }
  .topbar { height: 46px; }
}
@media (max-width: 620px) {
  .workspace { padding: 18px 12px 32px; }
  .topbar { padding: 0 12px; font-size: 12px; }
  .page-head { display: grid; gap: 10px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 14px 0; padding: 12px 0; }
  .stats section { padding: 0 12px; }
  .stats section:nth-child(even) { border: 0; }
  .layout, .panel-grid, .review-layout { grid-template-columns: minmax(0,1fr); }
  .calendar { max-height: 315px; }
  .card-head { flex-wrap: wrap; }
  .ledger-table { min-width: 345px; }
  .ledger-table .qty { width: 65px; }
  .ledger-table .price, .ledger-table .total-col { width: 70px; }
  .reminder-audio-form { grid-template-columns: minmax(0,1fr); }
  #income-curve { height: 224px; }
}
