#accountingIntegrationContent, #accountingAuditContent, #accountingTelegramPanel { min-width: 0; }
#accountingOfdPanel[hidden], #accountingKeeperPanel[hidden], #accountingTelegramPanel[hidden], #accountingAuditGeneral[hidden] { display: none !important; }
[data-accounting-tab][hidden], [data-delete-reporting-month][hidden] { display:none !important; }
.accounting-audit-view .accounting-tabs { display:none; }
.accounting-audit-view .accounting-shell { grid-template-columns:minmax(0,1fr); }
#accountingSection .object-switch { grid-template-columns:repeat(3,minmax(0,1fr)); }
#accountingGlobalAudit { overflow-wrap:anywhere; }
.audit-findings-table td:first-child { white-space:nowrap; }
.audit-findings-table .audit-finding-link { background:transparent; border:0; padding:0; color:#1559ac; text-decoration:underline; font:inherit; text-align:left; white-space:normal; }
.audit-finding-dialog { width:760px; max-width:calc(100vw - 32px); }
.audit-finding-fields { margin:16px 0; }
.audit-finding-fields > div { display:grid; grid-template-columns:180px minmax(0,1fr); gap:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.audit-finding-fields dt { color:var(--muted); }
.audit-finding-fields dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:600px) { .audit-finding-fields > div { grid-template-columns:minmax(0,1fr); gap:4px; } }
#tgInbox { min-width: 960px; }
#tgInbox input { width: 110px; min-width: 0; }
#tgInbox select { width: 180px; min-width: 0; }
#tgInbox .tg-message-text { min-width: 220px; max-width: 380px; white-space: pre-wrap; overflow-wrap: anywhere; }
#tgRules input:not([type="checkbox"]), #tgRules select { width: 100%; min-width: 120px; box-sizing: border-box; }
#accountingMarketGroups .founder-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-accounting-pane="founder"] .founder-summary-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) {
  #accountingSection > .section-head { flex-direction: column; align-items: stretch; }
  #accountingSection .accounting-month-toolbar { justify-content: flex-start; }
  #accountingSection .object-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #accountingSection .object-switch button { min-width: 0; padding: 10px; overflow-wrap: anywhere; }
  #accountingMarketGroups .founder-summary-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .accounting-shell { transition: none; }
  .accounting-tabs { min-width: 0; }
}
