:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1e1e22;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #ececee;
  --muted: #a0a0a8;
  --dim: #6c6c75;
  --white: #fafafa;

  --accent: #3ecf8e;
  --accent-ink: #062b1b;
  --accent-soft: rgba(62, 207, 142, 0.12);
  --danger: #f2706a;
  --danger-soft: rgba(242, 112, 106, 0.1);
  --warn: #e8b55a;
  --warn-soft: rgba(232, 181, 90, 0.1);
  --info: #7aa7ff;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1120px;
  color-scheme: dark;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: padding-box rgba(255, 255, 255, 0.09);
}
::-webkit-scrollbar-thumb:hover {
  background: padding-box rgba(255, 255, 255, 0.2);
}
::-webkit-scrollbar-button {
  display: none;
}
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  }
}
@media (pointer: coarse) {
  * {
    scrollbar-width: none;
  }
  ::-webkit-scrollbar {
    display: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}
p a,
li a,
.link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
p a:hover,
li a:hover,
.link:hover {
  text-decoration-color: var(--white);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(62, 207, 142, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.18s var(--ease),
    opacity 0.18s;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-primary {
  background: var(--white);
  color: #0a0a0b;
}
.btn-primary:hover:not(:disabled) {
  background: #dcdcdf;
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost {
  color: var(--muted);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.btn svg {
  width: 16px;
  height: 16px;
}

.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--white);
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.input::placeholder {
  color: var(--dim);
}
.input:focus {
  border-color: rgba(62, 207, 142, 0.6);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.12);
}
.input[aria-invalid='true'] {
  border-color: rgba(242, 112, 106, 0.7);
}

.field {
  display: grid;
  gap: 6px;
}
.field + .field {
  margin-top: 16px;
}
.field > label,
.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.field-error {
  min-height: 0;
  font-size: 12.5px;
  color: var(--danger);
}
.field-error:empty {
  display: none;
}

.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-right: 64px;
}
.toggle-visibility {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.toggle-visibility:hover {
  background: var(--surface-3);
  color: var(--text);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.spinner {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.critical {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge.high {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge.medium {
  background: rgba(122, 167, 255, 0.1);
  color: var(--info);
}
.badge.ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--muted);
}
.notice .spinner {
  margin-top: 4px;
}
.notice.error {
  border-color: rgba(242, 112, 106, 0.3);
  background: var(--danger-soft);
  color: #ffc8c4;
}
.notice.success {
  border-color: rgba(62, 207, 142, 0.3);
  background: var(--accent-soft);
  color: #b5f0d4;
}
.form-alert:not(:empty) {
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
}
[hidden] {
  display: none !important;
}

.hero {
  padding: clamp(64px, 12vh, 128px) 0 clamp(48px, 8vh, 88px);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.section {
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.results {
  display: grid;
  gap: 16px;
  animation: fade-up 0.3s var(--ease);
}
.result-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.result-summary.danger {
  border-color: rgba(242, 112, 106, 0.28);
  background: var(--danger-soft);
}
.result-summary.safe {
  border-color: rgba(62, 207, 142, 0.28);
  background: var(--accent-soft);
}
.result-count {
  flex: none;
  min-width: 64px;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}
.result-summary.danger .result-count {
  color: var(--danger);
}
.result-summary.safe .result-count {
  color: var(--accent);
}
.result-summary h3 {
  font-size: 18px;
}
.result-summary p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.result-actions {
  margin-top: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.stat .label {
  font-size: 12.5px;
  color: var(--dim);
}
.stat .value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
}

.results-heading {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.results-heading span:last-child {
  color: var(--dim);
  font-weight: 400;
}

.breach-list {
  display: grid;
  gap: 8px;
}
.breach {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color 0.2s;
}
.breach[open],
.breach:hover {
  border-color: var(--line-strong);
}
.breach summary {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}
.breach summary::-webkit-details-marker {
  display: none;
}
.breach-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.breach-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.breach-title {
  font-weight: 500;
  color: var(--white);
}
.breach-meta {
  font-size: 13px;
  color: var(--dim);
}
.breach-date {
  text-align: right;
  font-size: 14px;
  color: var(--text);
}
.breach-date small {
  display: block;
  font-size: 12px;
  color: var(--dim);
}
.breach-body {
  padding: 0 14px 14px 68px;
}
.breach-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.breach-more {
  justify-self: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  color: var(--muted);
}
.chip.sensitive {
  background: var(--danger-soft);
  color: var(--danger);
}

.recs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.rec {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.rec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.rec h4 {
  font-size: 15px;
}
.rec p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.attribution {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.guide {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.guide-tabs {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 2px;
}

.list,
.steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.list li {
  position: relative;
  padding-left: 16px;
}
.list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
}
.list strong,
.steps strong {
  color: var(--text);
  font-weight: 500;
}
.steps {
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 30px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 11px;
  color: var(--text);
}
.list code,
.steps code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}
.threat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.25s var(--ease);
}
.threat-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.threat-card h3 {
  font-size: 17px;
}
.threat-card p {
  flex: 1;
  margin: 6px 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.threat-card .more {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.auth-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 24px 16px 64px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  animation: fade-up 0.4s var(--ease);
}
.auth-card h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.auth-card .auth-sub {
  margin: 8px 0 28px;
  color: var(--muted);
}
.auth-card form .btn-block {
  height: 44px;
  margin-top: 20px;
}
.auth-card .check {
  margin-top: 16px;
}
.auth-switch {
  margin: 24px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.auth-small {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  text-align: center;
  color: var(--dim);
}

.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.strength i {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-3);
  transition: background 0.25s;
}
.strength[data-score='1'] i:nth-child(-n + 1) {
  background: var(--danger);
}
.strength[data-score='2'] i:nth-child(-n + 2) {
  background: var(--warn);
}
.strength[data-score='3'] i:nth-child(-n + 3) {
  background: #9ad46b;
}
.strength[data-score='4'] i {
  background: var(--accent);
}
.strength-label {
  font-size: 12.5px;
  color: var(--dim);
}

.center-page {
  max-width: 460px;
  text-align: center;
}
.center-page .code {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.center-page h1 {
  margin: 10px 0;
  font-size: 34px;
}
.center-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .guide {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .guide-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 0 24px;
  }
  .guide-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .guide-tabs {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .recs {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .result-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .breach summary {
    grid-template-columns: 36px 1fr;
  }
  .breach-date {
    grid-column: 2;
    text-align: left;
  }
  .breach-body {
    padding-left: 14px;
  }
}

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

.brand-mark.brand-ascii {
  position: relative;
  width: 48px;
  height: 41px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.14));
  transition: transform 0.5s var(--ease);
}
.brand-ascii .art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.brand:hover .brand-mark.brand-ascii {
  transform: scale(1.08);
}

.app-page {
  min-height: 100vh;
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.app-top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}
.app-nav {
  display: flex;
  gap: 2px;
}
.app-nav a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.app-nav a:hover,
.app-nav a[aria-current='page'] {
  color: var(--white);
  background: var(--surface-2);
}
.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.app-user-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.rise {
  animation: rise 0.7s var(--ease) both;
}
.rise:nth-child(2) {
  animation-delay: 0.06s;
}
.rise:nth-child(3) {
  animation-delay: 0.12s;
}
.rise:nth-child(4) {
  animation-delay: 0.18s;
}
.rise:nth-child(n + 5) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s;
}
.card:hover {
  border-color: var(--line-strong);
}
.card h2 {
  font-size: 19px;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.card > .btn {
  margin-top: auto;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.card-k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.muted {
  color: var(--dim);
  font-size: 13.5px;
}

.badge.soon {
  background: rgba(122, 167, 255, 0.1);
  color: var(--info);
}
.badge.soon::before {
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.account-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
}
.account-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.account-list div:last-child {
  border-bottom: 0;
}
.account-list dt {
  color: var(--dim);
}
.account-list dd {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stat-tile {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat-tile span {
  font-size: 13px;
  color: var(--dim);
}
.stat-tile b {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
}

.table-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--dim);
  transition: border-color 0.2s;
}
.search-box:focus-within {
  border-color: rgba(62, 207, 142, 0.55);
}
.search-box svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--white);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.users {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.users th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.users td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}
.users tbody tr {
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 25ms);
  transition: background 0.2s;
}
.users tbody tr:hover {
  background: var(--surface-2);
}
.users tbody.is-loading {
  opacity: 0.5;
}
.users .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.users .who b {
  display: block;
  font-weight: 500;
  color: var(--white);
}
.users .who small {
  font-size: 12.5px;
  color: var(--dim);
}
.users .avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-3);
  font-weight: 500;
  color: var(--text);
}
.users .avatar.online::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--accent);
}
.users .nowrap {
  white-space: nowrap;
}
.users .online-tag {
  color: var(--accent);
}
.users .actions {
  text-align: right;
  white-space: nowrap;
}
.users .empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--dim);
}

.invite-card {
  margin-bottom: 18px;
}
.invite-head {
  width: 100%;
  padding: 18px 16px 4px;
}
.invite-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.invite-head p {
  margin: 0;
  font-size: 13.5px;
}
.invite-form {
  display: grid;
  grid-template-columns: 90px 120px 140px minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
  padding: 14px 16px 16px;
  border-bottom: 1px solid var(--line);
}
.invite-form .field + .field {
  margin-top: 0;
}
.invite-form .input {
  height: 38px;
}
.invite-form .btn {
  height: 38px;
}
.invites .code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--white);
}
.invites .code small {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--dim);
}
.invites .copy {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.invites .copy:hover {
  border-color: var(--white);
  color: var(--white);
}
.invites .copy.is-done {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}
.invites tr.is-new {
  background: var(--accent-soft);
}
.invites .used-by {
  max-width: 220px;
  font-size: 13px;
}
.invites tr.is-dead td {
  opacity: 0.55;
}
@media (max-width: 760px) {
  .invite-form {
    grid-template-columns: 1fr 1fr;
  }
  .invite-form .invite-note,
  .invite-form .btn {
    grid-column: 1 / -1;
  }
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
}
.danger-text {
  color: var(--danger);
}
.danger-text:hover:not(:disabled) {
  background: var(--danger-soft);
  color: var(--danger);
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 8px;
}
.toast {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-3);
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  animation: rise 0.3s var(--ease);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.toast.is-out {
  opacity: 0;
  transform: translateY(6px);
}
.toast.error {
  border-color: rgba(242, 112, 106, 0.35);
  color: #ffc8c4;
}
.toast.success {
  border-color: rgba(62, 207, 142, 0.35);
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .app-top-inner {
    gap: 12px;
  }
  .app-top .brand-name,
  .app-user-name {
    display: none;
  }
  .users th:nth-child(3),
  .users td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-top-inner {
    padding: 0 14px;
  }
  .app-nav a {
    padding: 7px 9px;
  }
  .app-nav a[href='/security'] {
    display: none;
  }
  .app-main {
    padding: 32px 16px 64px;
  }
}

.label-note {
  font-weight: 400;
  color: var(--dim);
}
.name-check {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14px;
  cursor: text;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.name-check:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.name-check[data-state='ok'] {
  border-color: rgba(62, 207, 142, 0.6);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.1);
}
.name-check[data-state='bad'] {
  border-color: rgba(242, 112, 106, 0.7);
}
.name-input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 1px;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  color: var(--white);
}
.name-input::placeholder {
  color: #3c3c42;
}
.name-state {
  flex: none;
  font-size: 11.5px;
  color: var(--dim);
}
.name-check[data-state='ok'] .name-state {
  color: var(--accent);
}
.name-check[data-state='ok'] .name-state::before {
  content: '● ';
}
.name-check[data-state='bad'] .name-state {
  color: var(--danger);
}
.name-check[data-state='checking'] .name-state {
  animation: blink 0.9s ease-in-out infinite;
}
.lock-notice {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
}
.pw-rules li {
  transition: color 0.2s;
}
.pw-rules li::before {
  content: '[ ]';
  margin-right: 6px;
  white-space: pre;
}
.pw-rules li.is-ok {
  color: var(--accent);
}
.pw-rules li.is-ok::before {
  content: '[x]';
}

.closed-card {
  display: grid;
  gap: 12px;
}
.closed-card .badge {
  justify-self: start;
}
.closed-card .auth-sub {
  margin: 0 0 8px;
}
.closed-card .btn-block {
  height: 44px;
}
.closed-card .auth-switch {
  margin-top: 12px;
}
