/* Moneta V6 + V7. Content-first cards; no device-model media queries. */
.v67-card-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:13px;margin-bottom:16px; }
.v67-kpi { padding:20px;min-width:0;display:flex;flex-direction:column;gap:10px; }
.v67-kpi span {font-size:12px;color:var(--muted);font-weight:650;}
.v67-kpi strong {font-size:clamp(19px,2.2vw,29px);line-height:1.18;letter-spacing:-.03em;overflow-wrap:anywhere;}
.v67-kpi small {font-size:11px;line-height:1.45;color:var(--muted);}
.v67-kpi.v67-warn {border-color:#f4b845;}
.v67-two-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr));gap:16px;margin-bottom:16px;}
.v67-panel {padding:clamp(16px,2.2vw,26px);margin-bottom:16px;min-width:0;}
.v67-two-grid>.v67-panel {margin-bottom:0;}
.v67-panel .surface-head {margin-bottom:18px;}
.v67-panel h4 {font-size:13px;margin:20px 0 12px;}
.v67-panel button {touch-action:manipulation;}
.v67-empty {font-size:13px;color:var(--muted);line-height:1.6;padding:15px 0;}
.v67-list-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--divider);font-size:13px;min-width:0;}
.v67-list-row:last-child {border-bottom:0;}
.v67-list-row>span:first-child {min-width:0;overflow-wrap:anywhere;flex:1;}
.v67-list-row span small {display:block;color:var(--muted);margin-top:5px;font-size:11px;line-height:1.4;overflow-wrap:anywhere;}
.v67-list-row strong {overflow-wrap:anywhere;}
.v67-list-row strong.expense {color:#df687a;}.v67-list-row strong.income {color:#0bb79a;}
.v67-counts {text-align:right;white-space:nowrap;}
.v67-inline-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin-bottom:5px;}
.v67-amount-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;text-align:right;}
.v67-tiny-btn {font-size:11px;border:1px solid var(--line);background:var(--soft);color:var(--text);padding:9px 10px;border-radius:9px;min-height:34px;cursor:pointer;}
.v67-goal {padding-bottom:8px;margin-bottom:7px;border-bottom:1px solid var(--divider);}.v67-goal .progress-track {margin:0 0 9px;}
.v67-footnote {font-size:12px;color:var(--muted);line-height:1.6;margin-top:10px;}
.v67-insight-message {padding:15px;border-radius:12px;background:var(--soft);display:flex;flex-direction:column;gap:6px;margin-bottom:11px;}
.v67-insight-message strong {font-size:15px;}.v67-insight-message span {font-size:12px;color:var(--muted);line-height:1.5;}
.v67-insight-message.v67-warn {border-left:3px solid #eead37;}
.v67-calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:10px 0 18px;}
.v67-weekday {text-align:center;font-size:10px;font-weight:700;color:var(--muted);padding:5px 0;}
.v67-day {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0;min-height:52px;padding:5px 2px;color:var(--text);cursor:pointer;font-variant-numeric:tabular-nums;}
.v67-day small {color:var(--muted);font-size:9px;white-space:nowrap;}
.v67-day.chosen {outline:2px solid #4383f3;outline-offset:-2px;}
.v67-day-heading {display:flex;gap:10px;justify-content:space-between;align-items:center;padding:12px 0;color:var(--text);font-size:12px;border-top:1px solid var(--divider);flex-wrap:wrap;}
.v67-day-heading span {color:var(--muted);}
.v67-more-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;}
.v67-more-grid button {font:inherit;font-weight:700;text-align:left;padding:22px;display:flex;align-items:center;justify-content:space-between;color:var(--text);cursor:pointer;min-height:72px;}
.nav-mobile-more {display:none;}
.v67-bulk {display:flex;flex-wrap:wrap;align-items:center;gap:13px;padding:12px 16px;margin-bottom:12px;}
.v67-bulk>span {font-size:12px;color:var(--muted);margin-right:auto;}
.v67-check-label {display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;cursor:pointer;line-height:1.5;}
.v67-check-label input,.v67-row-select {width:18px;height:18px;accent-color:#2574f4;cursor:pointer;flex:0 0 auto;}
.ledger-table th.v67-checkbox-head,.ledger-table td.v67-checkbox-cell {width:34px;min-width:34px;text-align:center;padding-right:2px;}
.v67-purpose {display:block;color:var(--muted);font-size:10px;margin-top:6px;}
.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;}
@media(max-width:959px){
  .main-nav .nav-item[data-nav="budgets"],.main-nav .nav-item[data-nav="accounts"],.main-nav .nav-item[data-nav="settings"]{display:none;}
  .main-nav .nav-mobile-more{display:flex;}
  .main-nav .nav-item{flex-basis:20%;}
}
@media(max-width:599px){
  .v67-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .v67-kpi {padding:14px;gap:9px;}.v67-kpi strong{font-size:clamp(15px,4.2vw,21px);}.v67-kpi span{font-size:10px;}.v67-kpi small{font-size:10px;}
  .v67-two-grid {grid-template-columns:minmax(0,1fr);gap:12px;}
  .v67-panel {padding:15px;margin-bottom:12px;}
  .v67-list-row {align-items:flex-start;flex-wrap:wrap;gap:9px;}
  .v67-list-row .v67-amount-actions {width:100%;justify-content:flex-start;text-align:left;}
  .v67-calendar {gap:3px;}.v67-day {min-height:44px;border-radius:8px;}.v67-day small{font-size:8px;}
  .v67-bulk {padding:13px;}.v67-bulk .button{width:100%;}
  .ledger-table tbody tr:not(.empty-row){grid-template-columns:34px minmax(0,1fr) auto;}
  .ledger-table tbody td.v67-checkbox-cell{grid-column:1;grid-row:1;display:flex;align-items:center;min-height:35px;}
  .ledger-table tbody td.v67-checkbox-cell::before {display:none;}
  .ledger-table tbody td.ledger-identity {grid-column:2/-1;grid-row:1;padding-bottom:10px;}
  .ledger-table tbody td[data-label="Date"]{grid-column:1/3;}
  .ledger-table tbody td[data-label="Category"]{grid-column:3;}
  .ledger-table tbody td[data-label="Account"]{grid-column:1/-1;}
  .ledger-table tbody td.ledger-amount{grid-column:1/3;}
  .ledger-table tbody td.ledger-actions{grid-column:3;}
}
@media(max-width:359px){.v67-card-grid{grid-template-columns:minmax(0,1fr);} .v67-day{min-height:38px;} .v67-day small{font-size:7px;}}
@media print {.sidebar,.topbar,.v67-bulk,.v67-tiny-btn,.button,.toast {display:none!important;}.page{break-inside:avoid;}body{background:#fff;color:#111;}}

.v67-credit-detail[hidden] { display:none!important; }
