:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #172033;
  font-size: 14px;
}

body {
  margin: 0;
  line-height: 1.4;
}

a {
  color: #1f5eff;
}

.site-header {
  align-items: center;
  background: #172033;
  color: #ffffff;
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: minmax(24rem, auto) minmax(0, 1fr);
  padding: 1.5rem 2rem;
}

.site-header-left {
  min-width: 0;
}

.site-header-right {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  min-width: 0;
}

.site-header h1 {
  font-size: 1.45rem;
  margin: 0.2rem 0 0;
}

.build-identity {
  color: #c9d3e6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  line-height: 1.25;
  margin: 0.6rem 0 0;
  max-width: 100%;
}

.build-identity strong,
.build-identity span,
.build-identity code {
  font-size: 0.78rem;
}

.build-identity code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.build-identity-value {
  display: inline-block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dirty-marker {
  color: #ffd57a;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.site-header a.active {
  border-bottom: 2px solid #ffffff;
  padding-bottom: 0.2rem;
}

.admin-navigation {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  justify-content: flex-end;
  min-width: 0;
}

.admin-resource-summary {
  color: #c9d3e6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.75rem;
  max-width: 100%;
}

.admin-resource-summary > span:not(.admin-resource-separator) {
  overflow-wrap: anywhere;
}

.admin-user-menu {
  flex: 0 0 auto;
  position: relative;
}

.admin-user-menu > summary {
  list-style: none;
}

.admin-user-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-user-chip {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 0.55rem;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  min-width: 7rem;
  padding: 0.42rem 0.58rem;
  user-select: none;
}

.admin-user-chip:hover,
.admin-user-menu[open] > .admin-user-chip {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.42);
}

.admin-user-chip-text {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.admin-user-chip-text strong {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-chip-text small {
  color: #aeb8cc;
  font-size: 0.68rem;
  margin-top: 0.2rem;
}

.admin-recovery-badge {
  background: #ffd57a;
  border-radius: 999px;
  color: #172033;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.22rem 0.38rem;
  white-space: nowrap;
}

.admin-user-dropdown {
  background: #ffffff;
  border: 1px solid #dce2ef;
  border-radius: 0.65rem;
  box-shadow: 0 12px 32px rgb(23 32 51 / 0.22);
  color: #172033;
  min-width: 17rem;
  padding: 0.75rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 50;
}

.admin-user-meta {
  border-bottom: 1px solid #e4e9f3;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  padding: 0 0 0.65rem;
}

.admin-user-meta div {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.admin-user-meta dt {
  color: #60708f;
  font-size: 0.72rem;
}

.admin-user-meta dd {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
}

.admin-user-actions {
  display: grid;
  gap: 0.12rem;
}

.site-header .admin-user-actions a,
.admin-user-action-disabled,
.admin-user-logout {
  border-radius: 0.4rem;
  box-sizing: border-box;
  color: #172033;
  display: flex;
  font-size: 0.8rem;
  font-weight: 650;
  justify-content: space-between;
  margin: 0;
  padding: 0.48rem 0.55rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.site-header .admin-user-actions a:hover,
.admin-user-logout:hover {
  background: #edf2fb;
  color: #172033;
}

.admin-user-action-disabled {
  color: #8794aa;
  cursor: default;
}

.admin-user-action-disabled small {
  font-size: 0.65rem;
  font-weight: 600;
}

.admin-user-actions form {
  border-top: 1px solid #e4e9f3;
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
}

@media (max-width: 1200px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header-right {
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .admin-navigation {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 1.15rem;
  }

  .site-header-right {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-menu {
    align-self: flex-start;
  }
}

.admin-user-logout {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.eyebrow {
  color: #aeb8cc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.content {
  margin: 0 auto;
  padding: 2rem;
}

.change-password-form {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  max-width: 28rem;
}

.change-password-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.change-password-form label > span {
  font-weight: 650;
}

.change-password-form input {
  box-sizing: border-box;
  width: 100%;
}

.change-password-form button {
  align-self: flex-start;
}

.change-password-signout {
  margin-top: 0.8rem;
}

.panel {
  background: #ffffff;
  border: 1px solid #dce2ef;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(23 32 51 / 0.06);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.panel h2 {
  margin-top: 0;
}

.status-grid,
.nav-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.status-grid div,
.nav-grid li {
  border: 1px solid #e4e9f3;
  border-radius: 0.5rem;
  list-style: none;
  min-width: 0;
  padding: 1rem;
}

.status-card {
  min-width: 0;
}

.status-card-wide {
  grid-column: span 2;
}

.status-card-full {
  grid-column: 1 / -1;
}

.status-grid dt,
.nav-grid span,
.muted {
  color: #60708f;
}

.deleted-reference {
  color: #60708f;
}

.status-grid dd {
  display: block;
  font-weight: 700;
  min-width: 0;
  margin: 0.3rem 0 0;
  white-space: normal;
}

.appliance-version {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.metadata-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metadata-value code {
  font-family: inherit;
  font-size: inherit;
}

.metadata-value-compact {
  font-size: 0.75rem;
  line-height: 1.3;
}

.build-meta-value {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.build-meta-value code {
  display: block;
  font-family: inherit;
  font-size: inherit;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: inherit;
  word-break: inherit;
}

.status-grid-admin {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.health-identity-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.status-card-build {
  min-width: 0;
}

.host-resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.host-resource-group {
  border: 1px solid #e4e9f3;
  border-radius: 0.5rem;
  min-width: 0;
  padding: 1rem;
}

.host-resource-group h3 {
  margin: 0 0 0.8rem;
}

.host-resource-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.host-resource-metrics div {
  min-width: 0;
}

.host-resource-metrics dt {
  color: #60708f;
}

.host-resource-metrics dd {
  font-weight: 700;
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .status-card-wide,
  .status-card-full {
    grid-column: auto;
  }

  .host-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nav-grid {
  padding: 0;
}

.nav-grid a {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.table-wrap {
  overflow-x: auto;
}

.content-wide .table-wrap {
  width: 100%;
}

.data-table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e4e9f3;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #40506d;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.profile-create-form,
.profile-editor-form,
.profile-delete-form {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56rem;
  width: 100%;
}

.profile-create-form .profile-create-section,
.profile-editor-form .profile-editor-section,
.profile-delete-form {
  width: 100%;
}

.is-hidden {
  display: none !important;
}

.customer-editor-form {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
  width: 100%;
}

.customer-editor-form label {
  width: 100%;
}

.customer-editor-form input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
}

.customer-editor-help {
  box-sizing: border-box;
  display: block;
  margin: -0.15rem 0 0;
  width: 100%;
}

.customer-editor-form button {
  justify-self: start;
}

.filter-form label {
  color: #40506d;
  display: grid;
  font-weight: 700;
  gap: 0.25rem;
}

.filter-form input,
.filter-form select {
  border: 1px solid #cbd5e6;
  border-radius: 0.4rem;
  font: inherit;
  padding: 0.45rem 0.55rem;
}

.form-section {
  background: #f8fafc;
  border: 1px solid #e4e9f3;
  border-radius: 0.6rem;
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 1rem;
}

.form-section h3 {
  color: #40506d;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.form-section label {
  color: #40506d;
  display: grid;
  font-weight: 700;
  gap: 0.25rem;
}

.form-section input:not([type="checkbox"]),
.form-section select {
  border: 1px solid #cbd5e6;
  border-radius: 0.4rem;
  box-sizing: border-box;
  font: inherit;
  padding: 0.45rem 0.55rem;
}

.profile-config-control {
  max-width: 360px;
  width: 100%;
}

.checkbox-label {
  align-items: center;
  display: flex !important;
  gap: 0.5rem !important;
}

.checkbox-label input[type="checkbox"] {
  height: 1rem;
  width: 1rem;
}

.notice {
  border-radius: 0.4rem;
  font-weight: 700;
  padding: 0.65rem 0.8rem;
}

.notice.success {
  background: #e5f7ed;
  color: #126b38;
}

.notice.error {
  background: #fdecec;
  color: #9f1f1f;
}

.actions-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0;
}

.confirm-dialog {
  border: 1px solid #dce2ef;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgb(23 32 51 / 0.2);
  max-width: 32rem;
  padding: 1rem 1rem 0.9rem;
  width: min(92vw, 32rem);
}

.confirm-dialog.confirm-dialog-global-force {
  max-width: 960px;
  width: min(960px, calc(100vw - 48px));
}

.confirm-dialog.confirm-dialog-force-rollout {
  box-sizing: border-box;
  max-width: 48rem;
  width: min(48rem, calc(100vw - 2rem));
}

.confirm-dialog[data-release-target-dialog] {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.release-target-identity code {
  display: block;
  max-width: 100%;
  white-space: normal;
  user-select: text;
}

.confirm-dialog-force-rollout select {
  max-width: 100%;
  width: 100%;
}

.confirm-dialog-force-rollout code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.confirm-dialog-force-rollout .confirm-dialog-actions {
  flex-wrap: wrap;
}

.confirm-dialog-global-force .global-force-technical-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.confirm-dialog::backdrop {
  background: rgba(36, 55, 95, 0.706);
}

.confirm-dialog h3 {
  margin: 0 0 0.5rem;
}

.confirm-dialog p {
  color: #40506d;
  margin: 0 0 1rem;
}

.confirm-dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.action-button-form {
  margin: 0;
}

button,
.profile-save-button,
.button-primary {
  appearance: none;
  -webkit-appearance: none;
  background: #1f5eff;
  border: 0;
  border-radius: 0.4rem;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.button-primary {
  background: #1f5eff;
}

button:hover,
.profile-save-button:hover,
.button-primary:hover {
  background: #1749c6;
  color: #ffffff;
}

.button-secondary,
.filter-form .button-secondary {
  appearance: none;
  -webkit-appearance: none;
  background: #f6f8fc;
  border: 1px solid #cbd5e6;
  border-radius: 0.4rem;
  color: #172033;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.button-secondary:hover,
.filter-form .button-secondary:hover {
  background: #dbe5f5;
  border-color: #9eafca;
  color: #172033;
}

.button-secondary:focus-visible,
.filter-form .button-secondary:focus-visible {
  outline: 2px solid #1f5eff;
  outline-offset: 2px;
}

.image-upload-file-field {
  display: grid;
  gap: 0.35rem;
}

.image-upload-file-label {
  font-weight: 700;
}

.image-upload-file-picker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.visually-hidden-file-input {
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.visually-hidden-file-input:focus-visible + .image-upload-file-button {
  outline: 2px solid #1f5eff;
  outline-offset: 2px;
}

button:disabled,
.profile-save-button:disabled,
.button-primary:disabled,
.button-secondary:disabled,
.filter-form .button-secondary:disabled {
  background: #cbd5e6;
  border-color: #aebbd0;
  color: #40506d;
  cursor: not-allowed;
  opacity: 1;
}

.profile-save-button {
  width: fit-content;
}

.profile-create-form .form-section a,
.profile-delete-form a {
  width: fit-content;
}

.cluster-bulk-actions {
  box-sizing: border-box;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
  padding-right: 0.75rem;
}

.selection-cell {
  text-align: center;
  width: 2.75rem;
}

.selection-cell input {
  margin: 0;
}

.force-rollout-select-column {
  text-align: center !important;
  white-space: nowrap;
  width: 1%;
}

col.force-rollout-select-column {
  width: 4.5rem;
}

th.force-rollout-select-column [data-force-rollout-all] {
  display: block;
  margin: 0.35rem auto 0;
}

.cluster-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.cluster-actions-cell .action-button-form {
  display: flex;
  justify-content: flex-end;
}

.customers-table thead th,
.clusters-table thead th,
.profiles-table thead th,
.cluster-appliances-table thead th {
  text-align: center;
}

.customers-table thead th a,
.clusters-table thead th a,
.profiles-table thead th a,
.cluster-appliances-table thead th a {
  align-items: center;
  display: inline-flex;
  gap: 0.2rem;
  justify-content: center;
}

.customers-table .status-cell,
.customers-table .count-cell,
.customers-table .license-summary-cell,
.customers-table .timestamp-cell,
.customers-table .actions-cell,
.clusters-table .status-cell,
.clusters-table .count-cell,
.clusters-table .timestamp-cell,
.clusters-table .actions-cell,
.profiles-table .status-cell,
.profiles-table .mode-cell,
.profiles-table .target-device-cell,
.profiles-table .storage-cell,
.profiles-table .version-cell,
.profiles-table .timestamp-cell,
.profiles-table .actions-cell,
.cluster-appliances-table .status-cell,
.cluster-appliances-table .timestamp-cell,
.cluster-appliances-table .selection-cell {
  text-align: center;
}

.customers-table {
  min-width: 1416px;
  table-layout: fixed;
  width: 100%;
}

.customers-table .customers-col-timestamp {
  min-width: 203px;
}

.customers-table th,
.customers-table td {
  overflow-wrap: normal;
  vertical-align: top;
}

.customers-table th a {
  overflow-wrap: normal;
}

.customers-table .subhead {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.customers-table .timestamp-cell {
  white-space: nowrap;
}

.customers-table .customers-col-notes,
.customers-table td:nth-child(8) {
  overflow-wrap: anywhere;
}

.customers-table .actions-cell {
  white-space: nowrap;
}

.clusters-table {
  min-width: 1366px;
  table-layout: fixed;
  width: 100%;
}

.clusters-table th,
.clusters-table td {
  overflow-wrap: normal;
  vertical-align: top;
}

.clusters-table th a {
  overflow-wrap: normal;
}

.clusters-table .clusters-col-notes,
.clusters-table td:nth-child(7) {
  overflow-wrap: anywhere;
}

.clusters-table .actions-cell {
  white-space: nowrap;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1rem 0;
}

.pagination-links {
  display: flex;
  gap: 0.75rem;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
}

.badge-good {
  background: #e5f7ed;
  color: #126b38;
}

.badge-neutral {
  background: #eef2f8;
  color: #40506d;
}

.badge-amber {
  background: #fff3cd;
  color: #8a5a00;
}

.badge-bad {
  background: #fdecec;
  color: #9f1f1f;
}

.security-summary {
  background: #f8fafc;
  border: 1px solid #e4e9f3;
  border-radius: 0.5rem;
  padding: 0.85rem;
}

.security-summary p {
  margin: 0 0 0.35rem;
}

.security-summary p:last-child {
  margin-bottom: 0;
}

.security-summary h4 {
  margin: 0 0 0.75rem;
}

.security-details,
.profile-advanced-details {
  border: 1px solid #e4e9f3;
  border-radius: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.security-details summary,
.profile-advanced-details summary {
  color: #40506d;
  cursor: pointer;
  font-weight: 700;
  margin: -0.15rem 0 0;
}

.security-details[open] summary,
.profile-advanced-details[open] summary {
  margin-bottom: 0.85rem;
}

.profile-export-dialog {
  max-width: 38rem;
  width: min(92vw, 38rem);
}

.profile-export-option {
  border: 1px solid #e4e9f3;
  border-radius: 0.5rem;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem;
}

.profile-export-option p {
  margin: 0;
}

.secure-boot-envelope-form {
  display: grid;
  gap: 0.75rem;
}

.secure-boot-envelope-error {
  margin: 0;
}

.secure-boot-envelope-field-row {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.secure-boot-envelope-field {
  display: grid;
  flex: 1 1 18rem;
  gap: 0.35rem;
  margin: 0;
  min-width: 14rem;
}

.secure-boot-envelope-field .profile-config-control {
  width: 100%;
}

.secure-boot-envelope-field-row button {
  flex: 0 0 auto;
}

.detail-list div {
  border-bottom: 1px solid #e4e9f3;
  padding: 0.75rem 0;
}

.detail-list dt {
  color: #60708f;
  font-weight: 700;
}

.detail-list dd {
  margin: 0.25rem 0 0;
}

.json-block {
  background: #0f172a;
  border-radius: 0.5rem;
  color: #e2e8f0;
  overflow-x: auto;
  padding: 1rem;
}

.progress-meter {
  background: #eef2f8;
  border-radius: 999px;
  height: 0.7rem;
  min-width: 8rem;
  overflow: hidden;
}

.progress-meter span {
  background: #1f5eff;
  display: block;
  height: 100%;
}

.image-upload-form {
  align-items: start;
  display: grid;
  gap: 0.9rem;
  max-width: 48rem;
}

.upload-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.image-upload-runtime {
  border: 1px solid #e4e9f3;
  border-radius: 0.6rem;
  margin-top: 1rem;
  padding: 1rem;
}

.image-upload-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.image-upload-progress {
  margin-bottom: 0.85rem;
  width: 100%;
}

.image-upload-metrics {
  margin: 0;
}

.upload-resume-panel h3 {
  margin-top: 0;
}

.upload-session-list {
  margin: 0;
  padding-left: 1.2rem;
}

.upload-session-list li {
  margin-bottom: 0.45rem;
}

.profile-page { max-width: 48rem; }
.profile-identity { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 1.25rem 0 1.5rem; }
.profile-identity div { border: 1px solid #e4e9f3; border-radius: 0.5rem; padding: 0.8rem 0.9rem; }
.profile-identity dt { color: #60708f; font-size: 0.72rem; }
.profile-identity dd { font-weight: 700; margin: 0.25rem 0 0; }
.profile-actions { display: grid; gap: 0.8rem; }
.profile-action-card { align-items: center; border: 1px solid #dce2ef; border-radius: 0.75rem; display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 1.1rem; }
.profile-action-card h3, .profile-action-card p { margin: 0; }
.profile-action-card p { color: #60708f; margin-top: 0.3rem; }
.button-link { border: 1px solid #cfd8e8; border-radius: 0.45rem; flex: 0 0 auto; font-size: 0.82rem; font-weight: 700; padding: 0.55rem 0.7rem; text-decoration: none; }
.button-link-disabled { color: #8794aa; cursor: default; opacity: 0.75; }

.credential-username-context {
  height: 1px;
  left: -10000px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.password-input-wrap {
  display: block;
  position: relative;
  width: 100%;
}

.password-input-wrap input {
  box-sizing: border-box;
  padding-right: 2.6rem;
  width: 100%;
}

.password-visibility-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #60708f;
  cursor: pointer;
  display: flex;
  font-size: 0.85rem;
  height: 100%;
  justify-content: center;
  padding: 0 0.75rem;
  position: absolute;
  right: 0;
  top: 0;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  color: #1f2d46;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  max-width: 28rem;
}

.login-field > input,
.login-field > .password-input-wrap {
  box-sizing: border-box;
  width: 100%;
}

.back-link {
  font-weight: 650;
  text-decoration: none;
}


.users-table th,
.users-table td {
  white-space: nowrap;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7) {
  white-space: normal;
  overflow-wrap: anywhere;
}


.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  min-width: 145px;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  min-width: 232px;
}


.users-create {
  margin: 1rem 0;
}
.users-inline-form,
.users-row-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.users-row-form {
  margin-top: 0.35rem;
}
.users-row-form input,
.users-row-form select {
  max-width: 12rem;
}
.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  min-width: 145px;
}
.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  min-width: 232px;
}
.credential-secret {
  margin: 1rem 0;
  padding: 1rem;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}


.user-detail-actions {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.user-detail-actions section {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.user-detail-actions h3 {
  margin-top: 0;
}

.credential-secret { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.password-policy-hint { max-width: 48rem; }
