/* Compact financial overview; desktop keeps its original density. */
.hero-breakdown-toggle,
.group-count-mobile,
.group-mobile-secondary { display: none; }

@media (max-width: 760px) {
  html, body { min-width: 0 !important; width: 100% !important; }
  .app-shell, .app-shell .workspace { min-width: 0 !important; width: 100% !important; }
  .app-shell .summary-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .app-shell .summary-snapshot-grid .snapshot-card {
    min-height: 0;
    min-width: 0;
    padding: 13px 12px;
    border-radius: 14px;
    gap: 0;
  }
  .app-shell .snapshot-card > div { min-width: 0; width: 100%; }
  .app-shell .snapshot-card .snapshot-icon { display: none; }
  .app-shell .snapshot-card p { font-size: 12px; line-height: 1.35; margin-bottom: 7px; }
  .app-shell .snapshot-card strong { font-size: clamp(16px, 4.3vw, 21px); line-height: 1.2; overflow-wrap: anywhere; }
  .app-shell .snapshot-card small { font-size: 11px; line-height: 1.4; margin-top: 8px; }
  .app-shell .snapshot-value-row { gap: 5px; }
  .app-shell .snapshot-value-row .pill { font-size: 10px; min-height: 0; padding: 3px 6px; }
  .app-shell .snapshot-split { grid-template-columns: 1fr; gap: 0; }
  .app-shell .snapshot-card:nth-child(3) small { display: none; }
  .app-shell .snapshot-card-split { grid-template-columns: 1fr; align-content: start; gap: 10px; }
  .app-shell .snapshot-card-split > div + div { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .app-shell .hero-main { padding: 18px !important; }
  .app-shell .hero-main > strong { font-size: clamp(28px, 8vw, 36px) !important; margin: 7px 0 10px; }
  .app-shell .hero-change-copy { margin-top: 8px; }
  .app-shell .hero-change-copy span { font-size: 13px; line-height: 1.5; }
  .app-shell .hero-change-copy small { font-size: 12px; line-height: 1.5; }
  .app-shell .hero-breakdown-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 44px; padding: 8px 0; margin-top: 5px;
    background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.18);
    color: inherit; font: inherit; font-size: 12px; font-weight: 700; text-align: left;
  }
  .app-shell .hero-breakdown-collapsible { display: none !important; }
  .app-shell .show-breakdown .hero-breakdown-collapsible { display: grid !important; }
  .app-shell .rent-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .app-shell .rent-card { min-height: 0; padding: 14px; border-radius: 14px; min-width: 0; }
  .app-shell .rent-card:first-child { grid-column: 1 / -1; }
  .app-shell .rent-card h3 { font-size: 12px; line-height: 1.4; margin: 0 0 7px; }
  .app-shell .rent-card > small { display: none; }
  .app-shell .rent-card > strong { font-size: 25px; line-height: 1.2; margin: 0 0 7px; }
  .app-shell .rent-card > span { font-size: 11px; line-height: 1.4; }
  .app-shell #view-posicoes .group-head { padding: 14px; gap: 12px; grid-template-columns: 1fr 1fr; background: var(--surface); }
  .app-shell #view-posicoes .group-name { display: flex; align-items: center; gap: 7px; font-size: 17px; }
  .app-shell #view-posicoes .group-count-mobile { display: inline; margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
  .app-shell #view-posicoes .group-head .group-count,
  .app-shell #view-posicoes .group-head .group-change,
  .app-shell #view-posicoes .group-head .group-allocation,
  .app-shell #view-posicoes .group-head .group-column-btn { display: none; }
  .app-shell #view-posicoes .group-head .group-stat { padding: 0; background: transparent; border: 0; border-radius: 0; font-size: 11px; }
  .app-shell #view-posicoes .group-head .group-stat strong { font-size: 16px; line-height: 1.3; }
  .app-shell #view-posicoes .group-return { text-align: right; justify-items: end; }
  .app-shell #view-posicoes .group-return .metric-info { display: none; }
  .app-shell #view-posicoes .group-mobile-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
  .group-mobile-secondary > div { display: grid; gap: 5px; min-width: 0; }
  .group-mobile-secondary span { color: var(--muted); font-size: 11px; line-height: 1.4; }
  .group-mobile-secondary strong { font-size: 13px; }
  .group-mobile-secondary button { grid-column: 1 / -1; min-height: 44px; }
  .hero-breakdown-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
}
