.system-settings-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-pill);
  background: color-mix(in srgb, var(--theme-paper) 86%, transparent);
  color: var(--theme-muted);
  box-shadow: var(--theme-shadow-md);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.72;
  transition: opacity var(--theme-transition), transform var(--theme-transition), background var(--theme-transition);
}

.system-lock-fab {
  position: fixed;
  right: 18px;
  bottom: 118px;
  z-index: 900;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-pill);
  background: color-mix(in srgb, var(--theme-paper) 86%, transparent);
  color: var(--theme-muted);
  box-shadow: var(--theme-shadow-md);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  opacity: 0.72;
  transition: opacity var(--theme-transition), transform var(--theme-transition), background var(--theme-transition);
}

.identity-lock-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 18px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--theme-radius-pill);
  background: color-mix(in srgb, var(--theme-text) 6%, transparent);
  color: var(--theme-muted);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.58;
  pointer-events: none;
}

.system-lock-fab.has-lock-countdown .identity-lock-countdown {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  min-width: 42px;
  background: color-mix(in srgb, var(--theme-paper) 80%, transparent);
  box-shadow: var(--theme-shadow-sm);
}

.system-settings-fab:hover,
.system-lock-fab:hover {
  background: var(--theme-paper);
  opacity: 1;
  transform: translateY(-1px);
}

html[data-theme-resolved="dark"] .system-lock-fab {
  border-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-paper) 92%, transparent);
  color: var(--theme-text);
  box-shadow: var(--theme-shadow-md);
}

html[data-theme-resolved="dark"] .system-lock-fab:hover {
  background: var(--theme-paper-soft);
}

html[data-theme-resolved="dark"] .identity-lock-countdown {
  background: color-mix(in srgb, var(--theme-paper) 74%, transparent);
  color: var(--theme-muted);
}

html[data-theme-resolved="dark"] .system-lock-fab.has-lock-countdown .identity-lock-countdown {
  background: color-mix(in srgb, var(--theme-paper) 86%, transparent);
  box-shadow: var(--theme-shadow-md);
}

@media screen and (max-width: 640px) {
  .system-settings-fab {
    right: 16px;
    bottom: 92px;
  }

  .system-lock-fab {
    right: 16px;
    bottom: 144px;
  }
}

.system-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--theme-overlay);
}

.system-modal {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: var(--theme-radius-md);
  background: var(--theme-paper);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-lg);
  display: flex;
  flex-direction: column;
}

.system-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--theme-radius-xs);
  background: var(--theme-paper-soft);
  color: var(--theme-text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.system-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.system-settings-section {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  padding: 12px;
  margin-bottom: 12px;
  background: var(--theme-paper);
}

.system-settings-section:last-child {
  margin-bottom: 0;
}

.system-settings-title {
  margin-bottom: 12px;
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.system-settings-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--theme-primary);
  border-radius: var(--theme-radius-xs);
  background: var(--theme-primary);
  color: var(--theme-primary-text);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-settings-btn.secondary {
  background: var(--theme-paper-soft);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.system-settings-note {
  margin-top: 8px;
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 700;
}

.identity-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.identity-settings-field {
  display: grid;
  gap: 5px;
}

.identity-settings-field span {
  color: var(--theme-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-settings-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-xs);
  padding: 7px 9px;
  color: var(--theme-text);
  background: var(--theme-paper);
  font: inherit;
  outline: none;
}

.identity-settings-field input:focus {
  border-color: var(--theme-focus);
  box-shadow: var(--theme-focus-ring);
}

.identity-settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.identity-primary-actions {
  margin-top: 14px;
}

.identity-name-format-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-paper-soft);
  padding: 10px;
  color: var(--theme-text);
  cursor: pointer;
}

.identity-name-format-option input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--theme-primary);
}

.identity-name-format-copy {
  display: grid;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
}

.identity-name-format-copy small {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.identity-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-paper-soft);
  padding: 10px;
}

.identity-device-card.active {
  border-color: color-mix(in srgb, var(--theme-success) 42%, var(--theme-border));
  background: var(--theme-success-soft);
}

.identity-device-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.identity-device-copy strong {
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 850;
}

.identity-device-copy span {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.identity-device-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.identity-danger-action {
  color: var(--theme-danger-text) !important;
}

.system-history-list {
  display: grid;
  gap: 8px;
}

.system-history-item {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-paper-soft);
  padding: 10px 12px;
}

.system-history-title {
  color: var(--theme-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-history-meta {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.system-history-detail {
  color: var(--theme-muted);
  font-size: 11px;
  margin-top: 6px;
}

.system-history-empty {
  border: 1px dashed var(--theme-border);
  border-radius: var(--theme-radius-md);
  color: var(--theme-muted-soft);
  font-weight: 700;
  padding: 18px;
  text-align: center;
}

@media print {
  .system-settings-fab,
  .system-modal-backdrop,
  .identity-backdrop,
  .identity-lock-backdrop {
    display: none !important;
  }
}

html.identity-prelock,
html.identity-prelock body {
  min-height: 100%;
  background: var(--theme-bg);
}

html.identity-prelock body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: color-mix(in srgb, var(--theme-overlay) 92%, var(--theme-text) 8%);
  backdrop-filter: blur(10px);
}

html.identity-prelock body > *:not(.identity-lock-backdrop):not(.identity-backdrop) {
  visibility: hidden !important;
}

html.identity-prelock body > .identity-lock-backdrop,
html.identity-prelock body > .identity-backdrop {
  visibility: visible !important;
}

.identity-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: color-mix(in srgb, var(--theme-overlay) 88%, var(--theme-text) 12%);
}

.identity-lock-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: color-mix(in srgb, var(--theme-overlay) 86%, transparent);
  backdrop-filter: blur(12px);
}

body.identity-locked > *:not(.identity-lock-backdrop) {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.identity-modal {
  width: min(440px, 100%);
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-paper);
  box-shadow: var(--theme-shadow-lg);
}

.identity-lock-modal {
  width: min(292px, calc(100vw - 36px));
  border-color: color-mix(in srgb, var(--theme-border) 84%, transparent);
  box-shadow: var(--theme-shadow-lg);
}

.identity-lock-modal .identity-form {
  gap: 10px;
  overflow: visible;
  padding: 18px;
}

.identity-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-form {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.identity-field {
  display: grid;
  gap: 5px;
}

.identity-field label {
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 800;
}

.identity-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-xs);
  padding: 8px 10px;
  color: var(--theme-text);
  background: var(--theme-paper);
  font: inherit;
  outline: none;
}

.identity-field input:focus {
  border-color: var(--theme-focus);
  box-shadow: var(--theme-focus-ring);
}

.identity-note {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 700;
}

.identity-lock-modal .identity-note {
  text-align: center;
}

.identity-lock-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  background: var(--theme-text);
  color: var(--theme-paper);
}

.identity-lock-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.identity-lock-user {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-paper-soft);
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-align: center;
}

.identity-lock-title {
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.identity-unlock-methods {
  display: inline-grid;
  grid-template-columns: repeat(2, 34px);
  justify-content: center;
  gap: 5px;
  justify-self: center;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-pill);
  background: var(--theme-paper-soft);
  padding: 3px;
}

.identity-unlock-method {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--theme-radius-pill);
  background: transparent;
  color: var(--theme-muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.identity-unlock-method svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.identity-unlock-method.active {
  background: var(--theme-primary);
  color: var(--theme-primary-text);
  box-shadow: var(--theme-shadow-sm);
}

.identity-unlock-method:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.identity-unlock-method:disabled.active {
  background: transparent;
  color: var(--theme-muted);
  box-shadow: none;
}

.identity-unlock-panel[hidden] {
  display: none !important;
}

.identity-pin-input,
.identity-pin-box {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  text-align: center;
  -webkit-text-security: disc;
}

.identity-pin-code {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 42px));
  justify-content: center;
  gap: 8px;
  margin: 2px 0;
}

.identity-pin-code .identity-pin-box {
  width: 42px;
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-paper);
  color: var(--theme-text);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  outline: none;
  padding: 0;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.identity-pin-code .identity-pin-box:focus {
  border-color: var(--theme-focus);
  box-shadow: var(--theme-focus-ring);
}

.identity-device-auth {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 0;
  text-align: center;
}

.identity-device-auth-btn {
  width: 54px;
  height: 54px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-pill);
  background: var(--theme-paper-soft);
  color: var(--theme-text);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.identity-device-auth-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.identity-device-auth-btn.is-waiting {
  cursor: wait;
  opacity: 0.88;
}

.identity-device-auth-btn.is-waiting svg {
  animation: identity-device-pulse 1.1s ease-in-out infinite;
}

.identity-device-auth-btn:hover:not(:disabled),
.identity-device-auth-btn:focus-visible:not(:disabled) {
  border-color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-paper-soft) 72%, var(--theme-text) 8%);
}

.identity-device-auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.identity-device-auth-btn.is-waiting:disabled {
  cursor: wait;
  opacity: 0.88;
}

.identity-device-auth span {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes identity-device-pulse {
  0%, 100% {
    opacity: 0.56;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.identity-error {
  border: 1px solid color-mix(in srgb, var(--theme-danger) 34%, var(--theme-border));
  border-radius: var(--theme-radius-sm);
  background: var(--theme-danger-soft);
  color: var(--theme-danger-text);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
}

.identity-actions {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 4px -16px -16px;
  padding: 12px 16px;
  border-top: 1px solid var(--theme-border);
  background: var(--theme-paper);
  box-shadow: var(--theme-footer-shadow);
}

.identity-submit {
  min-height: 42px;
  border: 0;
  border-radius: var(--theme-radius-xs);
  background: var(--theme-primary);
  color: var(--theme-primary-text);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.license-device-card,
.license-generated-code,
.license-code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-paper-soft);
  padding: 10px;
}

.license-device-card > div,
.license-code-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.license-device-card strong,
.license-generated-code span,
.license-code-item strong {
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 850;
}

.license-device-card span,
.license-code-item span {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.license-generated-code {
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--theme-success-soft);
  border-color: color-mix(in srgb, var(--theme-success) 42%, var(--theme-border));
}

.license-generated-code strong {
  color: var(--theme-success-text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.license-inline-code {
  color: var(--theme-text) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}

.license-code-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.license-code-item.available {
  border-color: color-mix(in srgb, var(--theme-success) 34%, var(--theme-border));
  background: var(--theme-success-soft);
}

.license-code-item.used {
  opacity: 0.82;
}

.license-code-item.revoked {
  border-color: color-mix(in srgb, var(--theme-danger) 28%, var(--theme-border));
  background: var(--theme-danger-soft);
  opacity: 0.88;
}

.license-device-item.current {
  border-color: color-mix(in srgb, var(--theme-info) 38%, var(--theme-border));
  background: var(--theme-info-soft);
}

.license-device-item.revoked {
  border-color: color-mix(in srgb, var(--theme-danger) 28%, var(--theme-border));
  background: var(--theme-danger-soft);
  opacity: 0.88;
}

.license-device-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.license-disabled-collapse {
  background: color-mix(in srgb, var(--theme-paper-soft) 74%, transparent);
  border: 1px dashed color-mix(in srgb, var(--theme-border) 88%, transparent);
  border-radius: var(--theme-radius-md);
  padding: 8px;
}

.license-disabled-collapse summary {
  align-items: center;
  color: var(--theme-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  list-style: none;
}

.license-disabled-collapse summary::-webkit-details-marker {
  display: none;
}

.license-disabled-collapse summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-paper-subtle);
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 900;
}

.license-disabled-collapse[open] summary::before {
  content: '-';
}

.license-disabled-collapse summary:focus-visible {
  outline: none;
  border-radius: var(--theme-radius-xs);
  box-shadow: var(--theme-focus-ring);
}

.license-disabled-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.license-disabled-list .license-code-item {
  margin: 0;
}

.license-device-history-collapse {
  margin-top: 7px;
}

.license-device-history-collapse summary {
  align-items: center;
  color: var(--theme-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  list-style: none;
}

.license-device-history-collapse summary::-webkit-details-marker {
  display: none;
}

.license-device-history-collapse summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-paper-subtle);
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 900;
}

.license-device-history-collapse[open] summary::before {
  content: '-';
}

.license-device-history-collapse summary:focus-visible {
  outline: none;
  border-radius: var(--theme-radius-xs);
  box-shadow: var(--theme-focus-ring);
}

.license-device-history {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
}

.license-device-history-line {
  display: grid;
  gap: 2px;
}

.license-device-history-line strong {
  color: var(--theme-muted);
  font-size: 9px;
  font-weight: 850;
}

.license-device-history-line small,
.license-device-history-empty {
  color: var(--theme-muted-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.license-settings-status {
  margin-top: 10px;
}

html[data-theme-resolved="dark"] .identity-lock-user,
html[data-theme-resolved="dark"] .identity-pin-code .identity-pin-box,
html[data-theme-resolved="dark"] .identity-device-auth-btn,
html[data-theme-resolved="dark"] .identity-device-card,
html[data-theme-resolved="dark"] .license-device-card,
html[data-theme-resolved="dark"] .license-code-item,
html[data-theme-resolved="dark"] .identity-unlock-methods {
  border-color: var(--theme-border);
  background: var(--theme-paper-soft);
  color: var(--theme-text);
}

html[data-theme-resolved="dark"] .identity-lock-icon {
  background: var(--theme-text);
  color: var(--theme-paper);
}

html[data-theme-resolved="dark"] .identity-device-card.active {
  border-color: color-mix(in srgb, var(--theme-success) 42%, var(--theme-border));
  background: var(--theme-success-soft);
}

html[data-theme-resolved="dark"] .license-generated-code,
html[data-theme-resolved="dark"] .license-code-item.available {
  border-color: color-mix(in srgb, var(--theme-success) 42%, var(--theme-border));
  background: var(--theme-success-soft);
}

html[data-theme-resolved="dark"] .identity-lock-title {
  color: var(--theme-text);
}

html[data-theme-resolved="dark"] .identity-device-copy strong {
  color: var(--theme-text);
}

html[data-theme-resolved="dark"] .identity-device-copy span {
  color: var(--theme-muted-soft);
}

html[data-theme-resolved="dark"] .identity-unlock-method {
  color: var(--theme-muted-soft);
}

html[data-theme-resolved="dark"] .identity-unlock-method.active {
  background: var(--theme-primary);
  color: var(--theme-primary-text);
}

html[data-theme-resolved="dark"] .identity-pin-code .identity-pin-box:focus,
html[data-theme-resolved="dark"] .identity-device-auth-btn:hover:not(:disabled),
html[data-theme-resolved="dark"] .identity-device-auth-btn:focus-visible:not(:disabled) {
  border-color: var(--theme-focus);
  background: var(--theme-paper);
  box-shadow: var(--theme-focus-ring);
}

html[data-theme-resolved="dark"] .identity-device-auth span {
  color: var(--theme-muted-soft);
}

@media screen and (max-width: 640px) {
  .identity-settings-grid {
    grid-template-columns: 1fr;
  }

  .identity-device-card,
  .identity-device-actions,
  .license-device-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-device-actions > *,
  .license-device-actions > * {
    width: 100%;
  }

  .identity-pin-code {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .identity-pin-code .identity-pin-box {
    width: 100%;
  }
}
