/* Accounts chrome — mirrors white.sypchenko.me / GRAB / 2fa */

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

button,
input {
  font-family: inherit;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 3vw, 2rem) 3.5rem;
}

.app__shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.app__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.app__brand-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.app__brand-accent {
  color: var(--accent);
}

.app__brand-pipe {
  margin-top: 1.15rem;
}

.app__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.app__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.auth-gate {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.auth-stage {
  width: 100%;
  max-width: 34rem;
}

.auth-panel {
  width: 100%;
}

.auth-panel--card {
  padding: 1.35rem 1.25rem 1.2rem;
}

.auth-create-shell {
  width: 100%;
  padding: 1.7rem 1.35rem 1.25rem;
  border-radius: 1.55rem;
  text-align: center;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 52%,
    rgba(236, 246, 241, 0.92) 100%
  );
  border: 1px solid rgba(16, 24, 20, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 48px -30px rgba(16, 24, 20, 0.32);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.auth-create-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.95rem;
  border-radius: 1.1rem;
  color: var(--grab-brand-dark);
  background: linear-gradient(180deg, rgba(236, 246, 241, 0.98) 0%, rgba(220, 240, 231, 0.9) 100%);
  border: 1px solid rgba(12, 143, 94, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 22px -14px rgba(12, 143, 94, 0.35);
}

.auth-create-title {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.auth-login-form {
  width: 100%;
}

.auth-key-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 4.35rem;
  padding: 0.35rem 0.45rem 0.35rem 1.05rem;
  border-radius: 1.45rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 55%,
    rgba(236, 246, 241, 0.9) 100%
  );
  border: 1px solid rgba(16, 24, 20, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 48px -30px rgba(16, 24, 20, 0.35),
    0 0 0 1px rgba(12, 143, 94, 0.04);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition:
    border-color 0.22s var(--grab-ease),
    box-shadow 0.28s var(--grab-ease),
    transform 0.28s var(--grab-ease);
}

.auth-key-shell:focus-within {
  border-color: rgba(12, 143, 94, 0.28);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 26px 52px -28px rgba(12, 143, 94, 0.35),
    0 0 0 4px rgba(12, 143, 94, 0.12);
}

.auth-key-icon {
  display: inline-flex;
  color: rgba(12, 143, 94, 0.55);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.auth-key-shell:focus-within .auth-key-icon {
  color: var(--grab-brand);
}

.auth-key-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 0.85rem 0.15rem;
}

.auth-key-input::placeholder {
  color: rgba(69, 86, 78, 0.55);
  font-weight: 500;
}

.auth-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--grab-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.auth-icon-btn:hover {
  background: rgba(12, 143, 94, 0.08);
  color: var(--grab-brand-dark);
}

.auth-enter-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0 0.35rem 0 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(16, 24, 20, 0.1);
  border-bottom-width: 2px;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  color: var(--grab-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s var(--grab-ease);
}

.auth-enter-hint:hover {
  color: var(--grab-brand-dark);
  border-color: rgba(12, 143, 94, 0.28);
  background: #fff;
  transform: translateY(-1px);
}

.auth-enter-hint:active {
  transform: translateY(0);
}

.auth-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.auth-create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 0.7rem;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--grab-soft);
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.auth-create-link:hover {
  color: var(--grab-brand-dark);
  background: rgba(255, 255, 255, 0.55);
}

.auth-lead {
  margin: 0 auto 1.15rem;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--grab-soft);
  text-align: center;
}

.auth-create-shell .auth-footer {
  margin-top: 0.55rem;
}

.auth-generate-btn {
  display: flex;
  width: fit-content;
  min-width: 14.5rem;
  margin: 0.15rem auto 0;
  padding: 0.78rem 1.35rem;
  font-size: 0.92rem;
}

.auth-submit {
  width: 100%;
  margin-top: 1rem;
}

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

.auth-warning {
  margin-bottom: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(180, 120, 20, 0.22);
  background: #fffbeb;
  color: #92400e;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.auth-key-card {
  text-align: left;
}

.auth-key-card .setup-card__value {
  font-size: 0.78rem;
  word-break: break-all;
}

.auth-reveal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.auth-reveal-actions .btn-ghost {
  flex: 1;
  justify-content: center;
  display: inline-flex;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi-card {
  padding: 0.9rem 1rem;
}

.kpi-card__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-card__value {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpi-card__hint {
  margin-top: 0.35rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  line-height: 1.35;
}

.kpi-card--ok {
  border-color: rgba(12, 143, 94, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 246, 241, 0.78) 100%);
}

.kpi-card--danger {
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(254, 242, 242, 0.85) 100%);
}

.kpi-card--warn {
  border-color: rgba(180, 120, 20, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 251, 235, 0.88) 100%);
}

.kpi-card--danger .kpi-card__value {
  color: var(--grab-warn);
}

.kpi-card--warn .kpi-card__value {
  color: #9a6700;
}

.kpi-card--ok .kpi-card__value {
  color: var(--grab-brand-dark);
}

.kpi-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.kpi-dot--ok { background: var(--grab-brand); box-shadow: 0 0 0 3px rgba(12, 143, 94, 0.15); }
.kpi-dot--danger { background: var(--grab-warn); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.kpi-dot--warn { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14); }

.grab-panel {
  overflow: hidden;
}

.controls-bar {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 252, 250, 0.92) 0%, rgba(243, 248, 246, 0.55) 100%);
}

.controls-bar__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .controls-bar__row {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.2rem 0.45rem 0.2rem 0.85rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 252, 250, 0.96) 100%);
  border: 1px solid rgba(16, 24, 20, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 18px -16px rgba(16, 24, 20, 0.22);
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s var(--grab-ease);
}

.search-field:focus-within {
  border-color: rgba(12, 143, 94, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 22px -14px rgba(12, 143, 94, 0.25),
    0 0 0 3px rgba(12, 143, 94, 0.1);
}

.search-field__icon {
  display: inline-flex;
  color: rgba(12, 143, 94, 0.55);
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.search-field:focus-within .search-field__icon {
  color: var(--grab-brand);
}

.search-field__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 0.65rem 0.55rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.search-field__input::placeholder {
  color: rgba(69, 86, 78, 0.58);
  font-weight: 500;
}

.search-field__input::-webkit-search-decoration,
.search-field__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-field__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--grab-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.search-field__clear:hover {
  background: rgba(16, 24, 20, 0.06);
  color: var(--ink);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.filter-chip {
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(16, 24, 20, 0.08);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  color: var(--grab-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s var(--grab-ease);
}

.filter-chip:hover {
  border-color: rgba(12, 143, 94, 0.28);
  color: var(--grab-brand-dark);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  border-color: rgba(12, 143, 94, 0.22);
  background: linear-gradient(180deg, #14ad74 0%, #0c8f5e 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 16px -12px rgba(12, 143, 94, 0.45);
}

.app__toolbar-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.58rem 0.95rem;
  border: 1px solid rgba(16, 24, 20, 0.08);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px -12px rgba(16, 24, 20, 0.18);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s var(--grab-ease),
    box-shadow 0.18s ease;
}

.btn-ghost:hover {
  border-color: rgba(12, 143, 94, 0.28);
  background: rgba(255, 255, 255, 0.95);
  color: var(--grab-brand-dark);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 16px -12px rgba(16, 24, 20, 0.2);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--grab-brand);
  outline-offset: 2px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.62rem 1rem;
  border: none;
  border-radius: 0.7rem;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  cursor: pointer;
  background: linear-gradient(180deg, #14ad74 0%, #0c8f5e 55%, #0a7f56 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 18px -12px rgba(12, 143, 94, 0.45),
    0 0 0 1px rgba(8, 107, 70, 0.14);
  transition:
    transform 0.18s var(--grab-ease),
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-cta:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-cta:focus-visible {
  outline: 2px solid var(--grab-brand);
  outline-offset: 3px;
}

.btn-cta:not(:disabled):hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 10px 20px -12px rgba(12, 143, 94, 0.5),
    0 0 0 1px rgba(8, 107, 70, 0.18);
}

.btn-cta:not(:disabled):active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-cta.btn-add-account {
  padding: 0.62rem 1rem 0.62rem 0.85rem;
}

.btn-add-account__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.btn-danger {
  border-color: rgba(180, 35, 24, 0.14);
  color: var(--grab-warn);
}

.btn-danger:hover {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fef2f2;
  color: #912018;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.state-block {
  padding: 3.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.state-block strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.state-block--error {
  color: var(--grab-warn);
}

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

.accounts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.accounts-table th {
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 248, 246, 0.65);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.accounts-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}

.accounts-table tr:last-child td {
  border-bottom: none;
}

.accounts-table tbody tr {
  transition: background-color 0.18s ease;
}

.accounts-table tbody tr:hover {
  background: rgba(12, 143, 94, 0.035);
}

.accounts-table tbody tr.row-banned {
  background: rgba(254, 242, 242, 0.72);
}

.accounts-table tbody tr.row-banned:hover {
  background: rgba(254, 226, 226, 0.85);
}

.accounts-table tbody tr.row-pinned {
  background: rgba(236, 246, 241, 0.72);
}

.accounts-table tbody tr.row-pinned:hover {
  background: rgba(220, 240, 231, 0.85);
}

.accounts-table tbody tr.row-pinned.row-banned {
  background: linear-gradient(90deg, rgba(236, 246, 241, 0.55), rgba(254, 242, 242, 0.72));
}

.cell-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.pin-mark {
  display: inline-flex;
  color: var(--grab-brand);
  flex-shrink: 0;
}

.cell-slug {
  margin-top: 0.15rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.ping-stale {
  color: #c2410c;
  font-weight: 600;
}

.cell-nums {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cell-ping {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--grab-soft);
  white-space: nowrap;
}

.ads-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.ads-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.ads-chip strong {
  font-variant-numeric: tabular-nums;
}

.ads-chip--ok {
  background: rgba(12, 143, 94, 0.1);
  color: var(--grab-brand-dark);
}

.ads-chip--review {
  background: rgba(217, 119, 6, 0.12);
  color: #9a6700;
}

.ads-chip--bad {
  background: rgba(180, 35, 24, 0.1);
  color: var(--grab-warn);
}

.ads-chip--total {
  background: rgba(16, 24, 20, 0.05);
  color: var(--muted);
  font-weight: 550;
}

.cell-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
}

.btn-row {
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(16, 24, 20, 0.08);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s var(--grab-ease);
}

.btn-row:hover {
  border-color: rgba(12, 143, 94, 0.28);
  color: var(--grab-brand-dark);
  background: #fff;
  transform: translateY(-1px);
}

.btn-row--danger {
  border-color: rgba(180, 35, 24, 0.14);
  color: var(--grab-warn);
}

.btn-row--danger:hover {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fef2f2;
  color: #912018;
}

.btn-row--pinned {
  border-color: rgba(12, 143, 94, 0.22);
  color: var(--grab-brand-dark);
  background: rgba(236, 246, 241, 0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
}

.badge::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: currentColor;
}

.badge-active {
  background: #ecf6f1;
  border-color: rgba(12, 143, 94, 0.16);
  color: var(--grab-brand-dark);
}

.badge-banned {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 16px -12px rgba(185, 28, 28, 0.55);
}

.badge-banned::before {
  background: #fff;
}

.badge-pending {
  background: #f3f8f6;
  border-color: rgba(16, 24, 20, 0.06);
  color: var(--grab-soft);
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 24, 20, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 40rem;
  max-height: min(90dvh, 52rem);
  overflow: auto;
  animation: fade-up 0.35s var(--grab-ease) both;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.modal__head p {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.modal__close:hover {
  background: rgba(16, 24, 20, 0.05);
  color: var(--ink);
}

.modal__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: calc(1.15rem - 1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 250, 0.96) 100%);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    inset 0 1px 2px rgba(16, 24, 20, 0.03);
}

.field-input::placeholder {
  color: rgba(116, 133, 124, 0.72);
  font-weight: 400;
}

.field-input:focus {
  outline: none;
  background: #fff;
}

.form-error {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--grab-warn);
}

.form-error.auth-error {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(180, 35, 24, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(254, 242, 242, 0.9) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  color: #912018;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  text-align: center;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.setup-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .setup-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.setup-card {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(16, 24, 20, 0.07);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.setup-card__label {
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grab-brand-dark);
}

.setup-card__value {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-all;
}

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

.script-toolbar label {
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.script-box {
  margin: 0;
  max-height: 18rem;
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(16, 24, 20, 0.08);
  border-radius: 1rem;
  background: #101814;
  color: #d7ebe1;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.setup-steps {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  list-style: none;
  border: 1px dashed rgba(16, 24, 20, 0.1);
  border-radius: 1rem;
  background: rgba(243, 248, 246, 0.72);
  font-size: 0.84rem;
  color: var(--grab-soft);
}

.setup-steps li + li {
  margin-top: 0.35rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  transform: translateX(-50%);
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -16px rgba(16, 24, 20, 0.45);
  pointer-events: none;
}

.specs-guide {
  margin-top: 1rem;
  padding: 1.25rem 1.25rem 1.15rem;
}

@media (min-width: 640px) {
  .specs-guide {
    padding: 1.5rem 1.5rem 1.35rem;
  }
}

.how-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .how-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 960px) {
  .how-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.how-tile {
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(16, 24, 20, 0.06);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 252, 250, 0.78) 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.22s var(--grab-ease);
}

@media (hover: hover) {
  .how-tile:hover {
    border-color: rgba(12, 143, 94, 0.22);
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(236, 246, 241, 0.9) 100%
    );
    transform: translateY(-1px);
  }

  .how-tile:hover .how-tile__num {
    color: var(--grab-brand-dark);
  }

  .how-tile:hover .how-tile__title {
    color: var(--grab-brand-dark);
  }
}

.how-tile__num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--grab-brand);
}

.how-tile__title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s ease;
}

.how-tile__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--grab-soft);
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .accounts-table th:nth-child(4),
  .accounts-table td:nth-child(4) {
    min-width: 9rem;
  }
}
