* {
  box-sizing: border-box;
}
body.auth-page {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 32px 20px;
  background: var(--md-sys-color-background, #f8f9ff);
  color: var(--md-sys-color-on-surface, #191c20);
  font:
    16px/1.6 system-ui,
    "PingFang SC",
    sans-serif;
}
.auth-panel,
.security-panel {
  width: 100%;
  min-width: 0;
  max-width: 420px;
  margin: auto;
  padding: clamp(20px, 5vw, 36px);
  border-radius: 24px;
  background: var(--md-sys-color-surface-container-lowest, white);
}
.security-panel {
  max-width: 1080px;
}
h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 12px;
}
p {
  color: var(--md-sys-color-on-surface-variant, #44474f);
}
label {
  display: block;
  margin: 24px 0 8px;
  font-weight: 600;
}
input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--md-sys-color-outline, #74777f);
  border-radius: 8px;
  padding: 12px;
  color: inherit;
  background: transparent;
  font: inherit;
}
button {
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  padding: 10px 22px;
  background: var(--md-sys-color-primary, #415f91);
  color: var(--md-sys-color-on-primary, #fff);
  font: inherit;
  cursor: pointer;
}
form button {
  width: 100%;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a {
  color: var(--md-sys-color-primary, #415f91);
  text-underline-offset: 4px;
}
.home-link {
  display: inline-block;
  margin-top: 24px;
}
:focus-visible {
  outline: 3px solid var(--md-sys-color-primary, #415f91);
  outline-offset: 4px;
}
#auth-feedback {
  min-height: 26px;
  overflow-wrap: anywhere;
}
#auth-feedback[data-error="true"] {
  color: #ba1a1a;
}
nav,
.security-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.security-actions {
  margin: 24px 0 0;
}
.record-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c6d0);
  vertical-align: top;
}
th {
  white-space: nowrap;
}
td:last-child {
  max-width: 360px;
  min-width: 160px;
  overflow-wrap: anywhere;
}
td:first-child {
  min-width: 145px;
}
::selection {
  background: #f2ee70;
  color: #202020;
}
