body {
  margin: 0;
}
.main {
  min-height: 100vh;
}
.accounts table {
  width: 100%;
}
.accounts th, td {
  white-space: normal;
}
.accounts td, th {
  padding: 8px 8px;
}
.accounts td.actions {
  white-space: nowrap;
  width: 1%;
}
.accounts td.actions .row {
  justify-content: end;
  gap: 4px;
  flex-wrap: nowrap;
}
.accounts .usage {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.accounts .bar {
  width: 100%;
  height: 6px;
  max-width: 160px;
  border-radius: 999px;
  overflow: hidden;
  background-color: var(--mat-sys-surface-container-high);
}
.accounts .bar span {
  display: block;
  height: 100%;
}
.accounts .bar span.ok {
  background-color: var(--mat-sys-primary);
}
.accounts .bar span.over {
  background-color: var(--mat-sys-error);
}
.accounts .plan-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.accounts .plan-cell select {
  padding: 4px 8px;
}
.apps table {
  width: 100%;
}
.apps td, th {
  padding: 8px 8px;
  white-space: normal;
}
.apps td.actions {
  white-space: nowrap;
  width: 1%;
}
.apps td.actions .row {
  justify-content: end;
  gap: 4px;
  flex-wrap: nowrap;
}
.devices table {
  width: 100%;
}
.devices th, td {
  white-space: normal;
}
.devices td, th {
  padding: 8px 8px;
}
.devices td {
  vertical-align: middle;
}
.devices td.device-id .mono {
  word-break: break-all;
}
.devices td.actions {
  white-space: nowrap;
  width: 1%;
}
.devices td.actions .row {
  justify-content: end;
  gap: 4px;
  flex-wrap: nowrap;
}
.devices .detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
}
.devices .detail-grid dt {
  color: var(--mat-sys-on-surface-variant);
}
.devices .detail-grid dd {
  margin: 0;
  word-break: break-all;
}
.devices .toolbar {
  row-gap: 6px;
}
.keys table {
  width: 100%;
}
.keys th, td {
  white-space: normal;
}
.keys td, th {
  padding: 8px 8px;
}
.keys td {
  vertical-align: middle;
}
.keys td.app-ids {
  word-break: break-word;
}
.keys td.actions {
  white-space: nowrap;
  width: 1%;
}
.keys .actions-row {
  display: flex;
  justify-content: end;
  gap: 4px;
  flex-wrap: nowrap;
}
.keys .actions-row .btn {
  padding-left: 8px;
  padding-right: 8px;
}
.keys .key-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.keys .key-cell .mono {
  white-space: nowrap;
}