/* 公告/财务/账户删除/审计层：含 620px 响应式表格堆叠 */
/* 由 styles.css 按层切分（Phase 2a），层叠顺序与原文件一致，视觉不应变化。 */

/* Account, finance and announcement workflows */
.public-announcement { position: absolute; top: 24px; width: min(400px, calc(100% - 40px)); padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-subtle); }
.login-panel { position: relative; }
.public-announcement strong, .app-announcement strong { display: block; color: var(--ink); font-size: 13px; }
.public-announcement p, .app-announcement p { margin: 4px 0 0; color: var(--text-3); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.app-announcement { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-subtle); }
.announcement-info { border-color: var(--line); background: var(--bg-subtle); }.announcement-success { border-color: #cde9dc; background: #f1fbf6; }.announcement-warning { border-color: #f1dbad; background: #fff9ec; }.announcement-critical { border-color: #efc8c8; background: #fff5f5; }
.announcement-dialog-body { min-height: 100px; color: #44536a; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-preview { min-height: 86px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; }
.announcement-preview strong { color: var(--ink); font-size: 13px; }.announcement-preview p { margin: 6px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }

.wallet-summary { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; }
.wallet-summary > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--pill-bg); }
.wallet-summary > div small { display: block; }.wallet-summary > div strong { margin: 5px 0 0; font-size: 23px; white-space: nowrap; }
.wallet-summary > p { grid-column: 1 / -1; }

.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.account-settings-grid > .panel { min-width: 0; }
#account.customer-account .account-mfa-panel { grid-column: 1 / -1; }
#account.administrator-account .account-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-form { display: grid; gap: 0; padding: 20px 22px; }
.account-form label { min-width: 0; margin-bottom: 14px; }
.account-form .dialog-actions { padding: 4px 0 0; }
.account-wide { margin-bottom: 16px; box-shadow: var(--shadow); }
.danger-zone { margin-top: 16px; border-color: #efcaca; }
.danger-zone .panel-head { background: #fff8f8; }
.danger-zone-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 24px; padding: 20px 22px; }
.danger-zone-body ul { margin: 0; padding: 4px 0 4px 20px; color: #6f4c4c; font-size: 12px; line-height: 1.9; }
.danger-zone-body .account-form { padding: 0; }
.report-filters { justify-content: flex-start; align-items: end; }
.report-filters > label { width: min(230px, 100%); }
.report-filters > button { min-width: 88px; }
#upstreamPackageDialog select { min-height: 46px; }

@media (max-width: 1024px) {
  .account-settings-grid { grid-template-columns: 1fr; }
  #account.customer-account .account-mfa-panel { grid-column: auto; }
  #account.administrator-account .account-settings-grid { grid-template-columns: 1fr; }
  .danger-zone-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .wallet-summary { grid-template-columns: 1fr; }
  .wallet-summary > p { grid-column: auto; }
  .public-announcement { position: static; width: 100%; margin-bottom: 14px; }
  .report-filters > label { width: 100%; }
  .health-operation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .table-wrap { overflow-x: visible; }
  table { display: block; white-space: normal; }
  table thead { display: none; }
  table tbody { display: grid; }
  table tr { display: grid; gap: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table tr:last-child { border-bottom: 0; }
  table td { min-width: 0; display: grid; grid-template-columns: minmax(86px, 34%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  table td::before { content: attr(data-label); color: var(--text-3); font-size: 10px; font-weight: 700; text-align: left; }
  table td > strong, table td > small, table td > span { justify-self: end; }
  table td small { display: block; }
  table td.right { display: block; padding-top: 10px; }
  .right::before { display: none; }
  .right .row-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .right > button, .right > a { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dd { margin-bottom: 8px; text-align: left; }
  .subsection-head { align-items: stretch; flex-direction: column; }
  .filter-toolbar { align-items: stretch; }
  .filter-toolbar .search, .filter-toolbar > input, .filter-toolbar > select, .filter-toolbar > label:not(.search), .filter-toolbar > button, .filter-toolbar > a { width: 100%; }
  .inline-filter { align-items: stretch; flex-direction: column; }
  .inline-filter select, .inline-filter button { width: 100%; }
  .pager { align-items: stretch; flex-direction: column; }
  .pager > div { display: grid; grid-template-columns: 1fr 1fr; }
  .pager button { width: 100%; }
}

