:root {
  --navy-950: #08131f;
  --navy-900: #0d1b2a;
  --navy-800: #14283c;
  --navy-700: #1e3a54;
  --ink: #142235;
  --ink-soft: #25364c;
  --muted: #68778a;
  --muted-strong: #526176;
  --line: #dfe5ec;
  --line-soft: #edf1f5;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --mint: #63e6be;
  --mint-strong: #1fc9a1;
  --teal: #0f9f86;
  --blue: #4385db;
  --amber: #d9942f;
  --danger: #d45b56;
  --shadow-sm: 0 1px 2px rgba(16, 34, 53, 0.04);
  --shadow-md: 0 16px 45px rgba(16, 34, 53, 0.08);
  --shadow-lg: 0 28px 80px rgba(8, 19, 31, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "Avenir Next", "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: var(--teal);
}

/* Shared brand */

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--mint);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  place-items: center;
}

.brand-symbol svg {
  width: 27px;
  height: 27px;
}

.brand-wordmark {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-wordmark span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 600;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted-strong);
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(20, 34, 53, 0.06);
}

.icon-button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(67, 133, 219, 0.3);
  outline-offset: 2px;
}

/* Login */

.login-page {
  overflow-x: hidden;
  background: #f5f7f8;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(460px, 0.94fr) minmax(510px, 1.06fr);
  min-height: 100svh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(30px, 4.3vw, 66px) clamp(34px, 5vw, 76px) 38px;
  color: #fff;
  background:
    radial-gradient(circle at 77% 22%, rgba(99, 230, 190, 0.14), transparent 28%),
    radial-gradient(circle at 20% 87%, rgba(67, 133, 219, 0.18), transparent 28%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 48%, #10283d 100%);
  isolation: isolate;
}

.brand-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom right, black, transparent 78%);
}

.brand-panel::after {
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -23%;
  width: 64%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(99, 230, 190, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(99, 230, 190, 0.025),
    0 0 0 150px rgba(99, 230, 190, 0.018);
}

.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.environment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.environment-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(99, 230, 190, 0.1);
}

.brand-message {
  width: min(100%, 620px);
  margin: auto 0;
  padding: clamp(68px, 10vh, 128px) 0 clamp(60px, 9vh, 110px);
}

.overline,
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overline {
  color: var(--mint);
}

.overline span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.brand-message h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.brand-message h1 span {
  position: relative;
  color: var(--mint);
  font-weight: 500;
}

.brand-message h1 span::after {
  position: absolute;
  right: 4%;
  bottom: -3px;
  left: 3%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(99, 230, 190, 0.7), transparent);
}

.brand-description {
  max-width: 505px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.49);
  font-size: 14px;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(50px, 9vh, 92px);
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
  display: flex;
  gap: 11px;
  min-width: 0;
}

.feature-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--mint);
  border: 1px solid rgba(99, 230, 190, 0.18);
  border-radius: 9px;
  background: rgba(99, 230, 190, 0.05);
  place-items: center;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item div {
  min-width: 0;
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  margin: 1px 0 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.feature-item div span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 1.45;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.network-line {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}

.network-line::before,
.network-line::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(99, 230, 190, 0.26));
}

.network-line::after {
  background: linear-gradient(90deg, rgba(99, 230, 190, 0.26), transparent);
}

.network-line span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(99, 230, 190, 0.5);
}

.brand-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-footer p span {
  margin: 0 5px;
  color: rgba(255, 255, 255, 0.16);
}

.brand-footer p strong {
  color: rgba(255, 255, 255, 0.47);
  font-weight: 500;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 32px clamp(34px, 5vw, 82px) 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(15, 159, 134, 0.045), transparent 20%),
    #f8f9fa;
}

.auth-topbar,
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #8b97a5;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.system-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7b8794;
}

.system-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(31, 201, 161, 0.09);
}

.auth-content {
  display: grid;
  flex: 1;
  width: 100%;
  padding: 42px 0;
  place-items: center;
}

.login-card {
  width: min(100%, 430px);
  animation: card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-brand {
  display: none;
}

.section-label {
  margin-bottom: 16px;
  color: var(--teal);
}

.section-label span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  color: var(--teal);
  border: 1px solid rgba(15, 159, 134, 0.22);
  border-radius: 50%;
  font-size: 8px;
  place-items: center;
}

.login-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.login-intro {
  margin: 13px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  color: #9b3e3a;
  border: 1px solid #f0d1cf;
  border-radius: 10px;
  background: #fff8f7;
  font-size: 12px;
  line-height: 1.55;
}

.form-alert[data-tone="success"] {
  color: #176956;
  border-color: #c6e8df;
  background: #f3fbf8;
}

.form-alert[data-tone="warning"] {
  color: #8a641d;
  border-color: #ebdcb8;
  background: #fffbf0;
}

.form-alert svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 9px;
}

.field-group > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.field-group > label span {
  color: #a0aab6;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #8e9aa8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-shell input {
  width: 100%;
  height: 51px;
  padding: 0 48px 0 45px;
  color: var(--ink);
  border: 1px solid #dce2e9;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-shell input::placeholder {
  color: #a7b0bb;
}

.input-shell input:hover {
  border-color: #c7d0da;
}

.input-shell input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 159, 134, 0.09);
}

.input-shell:focus-within > svg {
  color: var(--teal);
}

.password-toggle {
  position: absolute;
  right: 7px;
  width: 36px;
  height: 36px;
  color: #8793a0;
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -2px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  display: grid;
  width: 17px;
  height: 17px;
  color: #fff;
  border: 1px solid #ccd4dd;
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
  place-items: center;
}

.custom-checkbox svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.checkbox-label input:checked + .custom-checkbox {
  border-color: var(--teal);
  background: var(--teal);
}

.checkbox-label input:checked + .custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label input:focus-visible + .custom-checkbox {
  outline: 3px solid rgba(67, 133, 219, 0.28);
  outline-offset: 2px;
}

.encrypted-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #99a3af;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.encrypted-note svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 53px;
  margin-top: 4px;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.17);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 38%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.primary-button:hover:not(:disabled) {
  background: #13293e;
  box-shadow: 0 13px 29px rgba(13, 27, 42, 0.22);
  transform: translateY(-1px);
}

.primary-button:hover::before {
  left: 125%;
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.82;
}

.button-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.primary-button:hover .button-arrow {
  transform: translateX(3px);
}

.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: block;
}

.primary-button.is-loading .button-arrow {
  display: none;
}

.login-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.login-footnote svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #91a0ad;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-footnote p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.login-footnote strong {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 600;
}

.login-footnote span {
  color: #9ca6b1;
  font-size: 9px;
}

.auth-footer {
  padding-top: 15px;
  border-top: 1px solid #e6eaee;
}

.auth-footer i {
  margin: 0 5px;
  font-style: normal;
  color: #bdc5cd;
}

/* Dashboard shell */

.dashboard-page {
  min-height: 100vh;
  background: var(--paper);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100vh;
  padding: 24px 18px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(99, 230, 190, 0.08), transparent 28%),
    var(--navy-900);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.sidebar-brand .brand-symbol {
  width: 35px;
  height: 35px;
}

.sidebar-brand .brand-symbol svg {
  width: 24px;
  height: 24px;
}

.sidebar-brand .brand-wordmark {
  font-size: 13px;
}

.sidebar-close {
  display: none;
  color: rgba(255, 255, 255, 0.64);
}

.sidebar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.workspace-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 29px 0 24px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.workspace-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: var(--navy-900);
  border-radius: 8px;
  background: var(--mint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  place-items: center;
}

.workspace-chip div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.workspace-chip strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-chip div span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-chip > svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.3);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-label {
  margin: 0 0 7px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.27);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.47);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link span:nth-child(2) {
  flex: 1;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.active {
  color: #fff;
  background: rgba(99, 230, 190, 0.1);
}

.nav-link.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -18px;
  width: 2px;
  content: "";
  border-radius: 0 2px 2px 0;
  background: var(--mint);
}

.nav-link.active svg {
  color: var(--mint);
}

.nav-badge {
  flex: 0 0 auto !important;
  padding: 3px 6px;
  color: rgba(99, 230, 190, 0.72);
  border: 1px solid rgba(99, 230, 190, 0.16);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7px;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-health {
  margin: 13px 4px 17px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.health-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.35);
  font-size: 8px;
}

.health-heading strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(99, 230, 190, 0.75);
  font-weight: 500;
}

.health-heading i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.health-meter {
  height: 3px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.health-meter span {
  display: block;
  width: 99.8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-strong), var(--mint));
}

.sidebar-health p {
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.user-avatar,
.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  color: var(--navy-900);
  border-radius: 10px;
  background: var(--mint);
  font-weight: 700;
  place-items: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.sidebar-user-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.sidebar-user-copy strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.83);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy span {
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-mono);
  font-size: 8px;
}

.sidebar-user .icon-button {
  width: 31px;
  height: 31px;
  color: rgba(255, 255, 255, 0.33);
}

.sidebar-user .icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.dashboard-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(22px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions,
.breadcrumb,
.sync-status {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 9px;
  color: #9aa5b1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.breadcrumb i {
  color: #c4ccd4;
  font-style: normal;
}

.breadcrumb strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.topbar-actions {
  gap: 9px;
}

.sync-status {
  gap: 7px;
  margin-right: 8px;
  color: #8b97a4;
  font-size: 9px;
}

.sync-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-strong);
  transition: background 0.2s ease;
}

.sync-status[data-state="loading"] i {
  background: var(--blue);
  animation: pulse 1s infinite;
}

.sync-status[data-state="error"] i {
  background: var(--danger);
}

.topbar-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: #fff;
}

.topbar-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s ease;
}

.topbar-button.is-spinning svg {
  animation: spin 0.8s linear infinite;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 12px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.logout-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logout-button:hover {
  color: var(--danger);
  border-color: #ebcecc;
  background: #fffafa;
}

.mobile-menu {
  display: none;
  margin-right: 5px;
}

.dashboard-content {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3.5vw, 48px) 22px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-label {
  margin-bottom: 11px;
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.heading-dot {
  color: var(--mint-strong);
}

.page-heading > div:first-child > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.page-heading > div:first-child > p strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.heading-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
}

.date-chip,
.env-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border-radius: 8px;
  font-size: 9px;
}

.date-chip {
  gap: 7px;
  padding: 0 11px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.date-chip svg {
  width: 14px;
  height: 14px;
  color: #8995a2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.env-badge {
  padding: 0 10px;
  color: #17735e;
  border: 1px solid #c6e8df;
  background: #ecfaf6;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  min-height: 169px;
  overflow: hidden;
  padding: 18px 18px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover {
  box-shadow: 0 13px 30px rgba(16, 34, 53, 0.07);
  transform: translateY(-2px);
}

.stat-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--card-accent);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.accent-teal { --card-accent: var(--teal); --card-tint: #e7f8f4; --card-color: #168871; }
.accent-blue { --card-accent: var(--blue); --card-tint: #edf4fd; --card-color: #3879c9; }
.accent-green { --card-accent: #5da83b; --card-tint: #f0f8eb; --card-color: #568f39; }
.accent-amber { --card-accent: var(--amber); --card-tint: #fdf5e7; --card-color: #b77b23; }

.stat-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon {
  display: grid;
  width: 35px;
  height: 35px;
  color: var(--card-color);
  border-radius: 10px;
  background: var(--card-tint);
  place-items: center;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-badge {
  padding: 4px 7px;
  color: #85919e;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trend-badge.live {
  color: #1b7a64;
  border-color: #d3eee7;
  background: #f0fbf7;
}

.trend-badge.warn {
  color: #a8731f;
  border-color: #f0e0bf;
  background: #fffaf0;
}

.stat-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: 17px;
}

.stat-content > span {
  color: var(--muted);
  font-size: 10px;
}

.stat-content strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.stat-content small {
  margin-top: 7px;
  color: #a2acb7;
  font-size: 8px;
}

.stat-watermark {
  position: absolute;
  right: 13px;
  bottom: 7px;
  color: rgba(16, 34, 53, 0.025);
  font-family: var(--font-mono);
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.09em;
  pointer-events: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(310px, 0.87fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.activity-panel {
  padding: 22px 22px 10px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-header.compact {
  align-items: center;
}

.panel-kicker {
  margin: 0 0 5px;
  color: #99a4b0;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-header h2,
.security-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.text-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s ease;
}

.text-button:hover {
  color: var(--teal);
}

.text-button.is-spinning svg {
  animation: spin 0.8s linear infinite;
}

.activity-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 20px 0 17px;
  padding: 12px 13px;
  border: 1px solid #e0f1ec;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4fbf9, #fbfdfc);
}

.activity-summary-icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: var(--teal);
  border-radius: 8px;
  background: #e4f7f2;
  place-items: center;
}

.activity-summary-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-summary strong {
  display: block;
  color: #315a51;
  font-size: 10px;
  font-weight: 600;
}

.activity-summary p {
  margin: 3px 0 0;
  color: #7c958f;
  font-size: 8px;
  line-height: 1.5;
}

.activity-items {
  border-top: 1px solid var(--line-soft);
}

.activity-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  border-bottom: 1px solid var(--line-soft);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
}

.activity-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-item.success .activity-icon {
  color: var(--teal);
  background: #e8f8f4;
}

.activity-item.failed .activity-icon {
  color: var(--danger);
  background: #fdf0ef;
}

.activity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.activity-copy strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
}

.activity-copy span {
  overflow: hidden;
  color: #9aa4af;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item time {
  color: #9aa4af;
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.activity-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 10px;
  text-align: center;
}

.activity-empty strong {
  color: var(--ink-soft);
  font-size: 11px;
}

.activity-empty span {
  color: #9aa4af;
  font-size: 9px;
}

.activity-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 180px;
}

.activity-loading span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9d1d9;
  animation: loading-dot 1s ease-in-out infinite;
}

.activity-loading span:nth-child(2) { animation-delay: 0.14s; }
.activity-loading span:nth-child(3) { animation-delay: 0.28s; }

.dashboard-side {
  display: grid;
  gap: 18px;
}

.account-panel,
.system-panel {
  padding: 20px;
}

.verified-badge {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--teal);
  border-radius: 8px;
  background: #e9f8f4;
  place-items: center;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-avatar {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 15px;
}

.profile-block div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-block strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-block span {
  color: #929ca7;
  font-family: var(--font-mono);
  font-size: 8px;
}

.detail-list {
  display: grid;
  gap: 11px;
  margin: 0;
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 9px;
}

.detail-list dt {
  color: #99a3ae;
}

.detail-list dd {
  color: var(--muted-strong);
  font-weight: 500;
  text-align: right;
}

.session-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.pulse-dot {
  position: relative;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--mint-strong);
}

.pulse-dot::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 1px solid rgba(31, 201, 161, 0.25);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.session-note div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-note strong {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 600;
}

.session-note span {
  color: #9aa4af;
  font-size: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #277460;
  border: 1px solid #d5eee7;
  border-radius: 999px;
  background: #f1fbf8;
  font-family: var(--font-mono);
  font-size: 7px;
}

.status-chip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint-strong);
}

.system-list {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}

.system-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border-bottom: 1px solid var(--line-soft);
}

.system-row:last-child {
  border-bottom: 0;
}

.system-symbol {
  display: grid;
  width: 29px;
  height: 29px;
  color: #718091;
  border-radius: 8px;
  background: #f3f6f8;
  place-items: center;
}

.system-symbol svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.system-row strong {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 600;
}

.system-row div span {
  color: #a1aab4;
  font-size: 7px;
}

.row-status {
  color: #2b8a71;
  font-family: var(--font-mono);
  font-size: 7px;
}

.security-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  gap: 42px;
  align-items: center;
  margin-top: 18px;
  padding: 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 230, 190, 0.13), transparent 28%),
    var(--navy-900);
  scroll-margin-top: 80px;
}

.security-copy .panel-kicker {
  color: rgba(99, 230, 190, 0.6);
}

.security-copy h2 {
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.security-copy > p:last-child {
  max-width: 600px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.75;
}

.security-factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.security-factors > div {
  display: flex;
  flex-direction: column;
  min-height: 88px;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.security-factors > div:last-child {
  border-right: 0;
}

.security-factors span {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 7px;
}

.security-factors strong {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-weight: 500;
}

.security-factors small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 7px;
}

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 3px 3px;
  color: #a2abb5;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.anchor-section {
  scroll-margin-top: 84px;
}

.nav-backdrop {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(13, 27, 42, 0.94);
  box-shadow: var(--shadow-lg);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-tone="error"] {
  background: rgba(135, 48, 44, 0.96);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

@keyframes pulse-ring {
  0% { opacity: 0.8; transform: scale(0.65); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes loading-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */

@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 156px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  }

  .security-panel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 1050px) {
  .login-shell {
    grid-template-columns: minmax(390px, 0.83fr) minmax(490px, 1.17fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .feature-item div span {
    white-space: nowrap;
  }

  .brand-description {
    max-width: 440px;
  }
}

@media (max-width: 920px) {
  .login-shell {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .auth-panel {
    min-height: 100svh;
    background:
      radial-gradient(circle at 88% 5%, rgba(15, 159, 134, 0.08), transparent 24%),
      radial-gradient(circle at 5% 95%, rgba(67, 133, 219, 0.05), transparent 22%),
      #f8f9fa;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
  }

  .mobile-brand .brand-symbol {
    color: var(--mint);
    border-color: transparent;
    background: var(--navy-900);
  }

  .mobile-brand .brand-wordmark {
    color: var(--ink);
  }

  .mobile-brand .brand-wordmark span {
    color: #98a3af;
  }

  .dashboard-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 270px;
    height: 100dvh;
    transform: translateX(-101%);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-menu {
    display: grid;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    visibility: hidden;
    padding: 0;
    border: 0;
    background: rgba(8, 19, 31, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(2px);
  }

  .nav-open .nav-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-panel {
    padding: 24px 22px 18px;
  }

  .auth-topbar {
    display: none;
  }

  .auth-content {
    padding: 28px 0;
  }

  .login-card {
    width: min(100%, 440px);
  }

  .auth-footer {
    font-size: 8px;
  }

  .topbar {
    height: 60px;
    padding: 0 16px;
  }

  .sync-status {
    display: none;
  }

  .logout-button {
    width: 35px;
    padding: 0;
    justify-content: center;
  }

  .logout-button svg {
    width: 16px;
    height: 16px;
  }

  .logout-button {
    font-size: 0;
    gap: 0;
  }

  .dashboard-content {
    padding: 26px 16px 18px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .heading-meta {
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid {
    gap: 11px;
  }

  .stat-card {
    min-height: 150px;
    padding: 15px;
  }

  .stat-content strong {
    font-size: 30px;
  }

  .activity-panel {
    padding: 18px 16px 7px;
  }

  .activity-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 0;
  }

  .activity-item time {
    grid-column: 2;
    margin-top: -6px;
  }

  .activity-copy span {
    white-space: normal;
  }

  .dashboard-side {
    grid-template-columns: 1fr;
  }

  .security-panel {
    padding: 22px;
  }

  .security-factors {
    grid-template-columns: 1fr;
  }

  .security-factors > div {
    min-height: 68px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .security-factors > div:last-child {
    border-bottom: 0;
  }

  .security-factors strong {
    margin-top: 10px;
  }
}

@media (max-width: 500px) {
  .login-card h2 {
    font-size: 36px;
  }

  .login-intro {
    margin-bottom: 27px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 139px;
  }

  .stat-content {
    margin-top: 13px;
  }

  .heading-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .panel-header {
    align-items: center;
  }

  .account-panel,
  .system-panel {
    padding: 17px;
  }

  .security-copy h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
