/* Compact information hierarchy. No changes to navigation or financial styling. */
.main { max-width: 1160px; }
.screen > .top { margin-bottom: 18px; padding-bottom: 14px; }
#home .top { border: 0; padding-bottom: 0; margin-bottom: 12px; }
#home .top h1 { font-size: 26px; }
#home .subheading { margin-top: 4px; }
#home .notice { margin-bottom: 16px; }
.organization-heading { font-size: 16px; margin: 0 0 10px; }
#home .home-overview .grid4 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#home .home-overview .metric { padding: 16px; min-height: 0; gap: 10px; grid-column: auto; grid-row: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; }
#home .home-overview .metric-head { justify-content: space-between; gap: 8px; }
#home .home-overview .metric-icon { width: 28px; height: 28px; order: 0; }
#home .home-overview .metric .value { font-size: clamp(1.2rem,3.8vw,1.65rem); padding-left: 0; }
#home .home-overview .metric .metric-head { flex-direction: row; align-items: center; }
#home .home-overview .metric:first-child { box-shadow: var(--shadow); }
#home .assistant-banner { padding: 18px; }
#home .assistant-banner h2 { font-size: 16px; margin-bottom: 6px; }
#home .assistant-banner p { margin-top: 0; }
.organized-section { padding: 0; margin-bottom: 12px; min-width: 0; align-self: start; }
.organized-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 52px; cursor: pointer; font-size: 16px; font-weight: 650; list-style: none; }
.organized-section > summary::-webkit-details-marker { display: none; }
.organized-section > summary::after { content: '+'; color: var(--green2); font-size: 20px; flex: none; }
.organized-section[open] > summary::after { content: '−'; }
.organized-section[open] > summary { border-bottom: 1px solid var(--line); }
.organized-section > .organized-body { padding: 16px 18px; box-shadow: none; border: 0; background: transparent; }
.organized-body > .card { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.settings-wrap { max-width: 820px; gap: 0; }
.settings-wrap > .organized-section { width: 100%; }
.settings-wrap .organized-section > .card { margin: 0 18px 16px; padding: 0; border: 0; box-shadow: none; }
.settings-wrap .organized-body > h2, .settings-wrap .organized-body > .card > .section-heading h2 { display: none; }
.settings-wrap .organized-body > .setting-info[open] > summary { display: none; }
#transactions .period-summary { gap: 10px; margin-bottom: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
#transactions .period-summary > div { padding: 14px; }
#transactions .period-summary > div:last-child { grid-column: auto; }
#transactions .period-summary b { font-size: clamp(1rem,3.7vw,1.5rem); overflow-wrap: anywhere; }
#transactions > .filters { margin-bottom: 12px; }
#transactions .period-card { padding: 16px; margin-bottom: 16px; }
#transactions .ledger-surface { padding-top: 0; }
#assistant .suggestions { gap: 8px; flex-direction: row; flex-wrap: wrap; }
#assistant .suggestions button { min-height: 44px; padding: 8px 12px; font-size: 14px; }
#assistant .compose-heading { font-size: 14px; margin-bottom: 8px; }
#assistant .msg { padding: 14px; }
#reports .report-metric { padding: 16px; }
#reports .report-columns { gap: 12px; }
#reports .report-columns > .organized-section { align-self: start; }
/* Override #reports summary's zero inline padding only on the six card headers. */
#reports .organized-section > summary { padding: 16px 18px; }
#reports .report-section-head:empty { display: none; }
@media (max-width: 760px) {
  .main { padding-top: calc(18px + env(safe-area-inset-top)); }
  #home .top { align-items: flex-start; }
  #home .top h1 { font-size: 23px; }
  #home .top .pill { padding: 6px 9px; font-size: 12px; width: auto; }
  #home .home-overview .metric { padding: 12px; }
  #home .home-overview .label { font-size: 13px; }
  #home .home-overview .metric-icon { width: 24px; height: 24px; }
  #home .home-overview .metric:first-child .value { font-size: clamp(1.2rem,3.8vw,1.65rem); }
  #transactions .period-summary > div { padding: 10px; }
  #transactions .period-summary small { font-size: 12px; }
  .organized-section > summary { padding: 14px; }
  #reports .organized-section > summary { padding: 14px; }
  .organized-section > .organized-body { padding: 14px; }
  .settings-wrap .organized-section > .card { margin: 0 14px 14px; }
}
