.tenant-platform-section{padding:18px 18px 7px;font-size:11px;font-weight:800;letter-spacing:.08em;opacity:.65}
.tenant-company-chip{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tenant-login-panel{margin-top:14px}
.tenant-login-title{font-size:18px;font-weight:800;margin-bottom:6px}
.tenant-login-help{margin-bottom:12px}
.tenant-company-choice-list{display:grid;gap:9px}
.tenant-company-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left}
.tenant-company-choice span{font-size:12px;opacity:.75}
.platform-summary-cards{margin-bottom:16px}
.tenant-backup-list{display:grid;gap:7px;margin-top:12px;font-size:13px}
.nav-platform.role-hidden,.tenant-platform-section.role-hidden,.tenant-company-chip.role-hidden{display:none!important}
@media(max-width:900px){
  .tenant-company-chip{max-width:165px}
  .tenant-company-choice{align-items:flex-start;flex-direction:column;gap:4px}
}
@media(max-width:640px){
  .tenant-company-chip{max-width:130px}
  .platform-summary-cards{grid-template-columns:1fr}
}
.platform-restore-panel{border-top:3px solid var(--accent,#4b78ff)}
.platform-restore-note{line-height:1.5}
.platform-restore-area{margin-top:12px}
.platform-restore-preview-card{display:grid;gap:12px;margin-top:14px}
.platform-restore-counts{max-height:420px;overflow:auto}
.platform-restore-counts td:not(:first-child),.platform-restore-counts th:not(:first-child){text-align:right;white-space:nowrap}
.platform-restore-hash{overflow-wrap:anywhere}
.platform-restore-running{padding:16px}
.ok-note{border-left:4px solid currentColor}
@media(max-width:640px){
  .platform-restore-counts{max-height:360px}
  .platform-restore-counts table{min-width:620px}
}

/* v0.5.6-D — system-admin health dashboard */
.nav-system-health.role-hidden{display:none!important}
.health-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.health-summary-cards{margin-bottom:16px}
.health-summary-card{display:flex;flex-direction:column;gap:7px}
.health-summary-status{min-height:34px;display:flex;align-items:center}
.health-version{font-size:22px!important;line-height:1.2!important}
.health-badge{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;line-height:1}
.health-ok{background:rgba(28,166,92,.13);color:#168451}
.health-warning{background:rgba(224,151,24,.16);color:#a86505}
.health-error{background:rgba(212,65,65,.14);color:#bb2f2f}
.health-info{background:rgba(65,112,212,.14);color:#315fb8}
.health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.health-grid>.panel{margin:0;min-width:0}
.health-panel{min-width:0}
.health-panel-head{align-items:flex-start;gap:12px}
.health-panel-message{margin-top:4px;line-height:1.45}
.health-kv{display:grid;gap:0;margin-top:4px}
.health-kv-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);gap:18px;align-items:start;padding:9px 0;border-bottom:1px solid var(--border)}
.health-kv-row:last-child{border-bottom:0}
.health-kv-row>span{font-size:12px;color:var(--muted)}
.health-kv-row>b{font-size:13px;font-weight:700;min-width:0;overflow-wrap:anywhere;text-align:right}
.health-progress{height:9px;margin:12px 0 8px;border-radius:999px;background:var(--surface-2,#e9edf5);overflow:hidden}
.health-progress>span{display:block;height:100%;border-radius:inherit;background:currentColor;opacity:.75}
.health-subtitle{font-weight:800;margin:16px 0 8px}
.health-event-list{display:grid;gap:8px}
.health-event{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2,rgba(127,127,127,.05));font-size:13px;overflow-wrap:anywhere}
.health-event>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:4px}
.health-errors-table table,.health-integration-table table{min-width:820px}
.health-errors-table code{white-space:normal;overflow-wrap:anywhere}

@media(max-width:980px){
  .health-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .health-toolbar{align-items:stretch;flex-direction:column}
  .health-toolbar .btn{width:100%}
  .health-summary-cards{grid-template-columns:1fr}
  .health-panel-head{align-items:flex-start;flex-direction:column}
  .health-kv-row{grid-template-columns:1fr;gap:3px;padding:10px 0}
  .health-kv-row>b{text-align:left}
  .health-event>div:first-child{flex-direction:column;gap:2px}
}
