@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  color-scheme: dark;
  --bg: #090b0d;
  --surface: #12161a;
  --line: #293137;
  --text: #f4f5f6;
  --muted: #b8c0c6;
  --gold: #e8ba62;
  --red: #ffaba9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--gold);
  text-underline-offset: 4px;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1240px;
  margin: auto;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}
.account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  line-height: 1.15;
  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.account-brand b {
  color: var(--gold);
}
.account-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  margin-top: 7px;
  color: var(--muted);
}
.account-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.account-header nav a {
  font-size: 15px;
  text-decoration: none;
}
.account-main {
  max-width: 1180px;
  margin: auto;
  padding: 56px 32px 80px;
}
.page-heading {
  max-width: 720px;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 12px;
  color: var(--gold);
  font-weight: 750;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(130deg, #171c20, var(--surface));
  margin-bottom: 24px;
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  padding: 44px;
}
.auth-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-intro h2 {
  font-size: 2.25rem;
  max-width: 360px;
  margin-top: 26px;
}
.security-note {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 34px;
  font-size: 14px;
}
.security-note > span {
  color: var(--gold);
}
.security-note p {
  margin: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6b5734;
  border-radius: 30px;
  padding: 5px 12px;
  background: #e8ba620b;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 11px 20px;
  font-weight: 650;
}
.tabs .selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120b;
}
form label {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  border: 1px solid #45515a;
  border-radius: 9px;
  padding: 13px 14px;
  background: #090d10;
  color: var(--text);
  font-size: 17px;
}
input::placeholder {
  color: #88939c;
  font-size: 15px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 94px;
}
.password-field button {
  position: absolute;
  right: 9px;
  top: 7px;
  background: none;
  border: none;
  color: var(--gold);
  padding: 9px;
  font-size: 13px;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 9px;
  padding: 12px 20px;
  min-height: 48px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.primary {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #17120b;
}
.secondary {
  border: 1px solid #58646c;
  background: transparent;
  color: var(--text);
}
.text-button {
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 14px;
  padding: 10px 0;
}
.auth-form-area form > .primary {
  width: 100%;
  margin-top: 4px;
}
.auth-form-area form > .text-button {
  display: block;
  margin: 10px auto;
}
.field-hint {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}
.notice {
  padding: 17px 20px;
  border: 1px solid #706043;
  background: #33291b;
  border-radius: 12px;
  color: #f8e0b3;
  margin-bottom: 24px;
}
.notice[data-error="true"] {
  border-color: #803f40;
  background: #351c21;
  color: var(--red);
}
.welcome-line,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title h2,
.welcome-line h2 {
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.item-list {
  display: grid;
  gap: 14px;
}
.item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.item p {
  font-size: 14px;
  margin-bottom: 12px;
}
.item .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.item .secondary,
.item .primary {
  padding: 9px 14px;
  min-height: 42px;
  font-size: 13px;
}
.empty {
  padding: 30px 0;
  font-size: 15px;
}
.offer-prompt,
.help-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.offer-prompt h2 {
  margin-bottom: 8px;
}
.offer-prompt p,
.help-card p {
  margin-bottom: 0;
}
.offer-prompt .eyebrow {
  margin-bottom: 8px;
}
.offer-prompt .primary,
.help-card a {
  flex-shrink: 0;
}
.account-footer {
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  margin: auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.mfa-card {
  max-width: 640px;
}
.mfa-card h2 {
  margin-top: 18px;
}
.mfa-card > button {
  margin-bottom: 20px;
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 14px;
}
details form {
  margin-top: 18px;
}
.upload-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0 20px;
  align-items: end;
}
.upload-grid .primary {
  margin-bottom: 18px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
}
td {
  max-width: 300px;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 2;
  padding: 20px;
  background: #090d10;
  border-radius: 9px;
}
.danger {
  color: var(--red) !important;
}
.user-id {
  font-size: 11px !important;
  overflow-wrap: anywhere;
}
.file-field input {
  font-size: 14px;
}
.file-field input::file-selector-button {
  background: #293239;
  border: 0;
  border-radius: 5px;
  color: var(--text);
  padding: 8px;
  margin-right: 10px;
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .account-header {
    padding: 20px;
    align-items: flex-start;
  }
  .account-header nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .account-brand {
    font-size: 17px;
  }
  .account-brand img {
    width: 30px;
    height: auto;
  }
  .account-brand small {
    font-size: 7px;
  }
  .account-main {
    padding: 36px 20px 60px;
  }
  .auth-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .auth-intro h2 {
    font-size: 1.8rem;
    margin-top: 18px;
  }
  .security-note {
    padding-top: 0;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 24px;
    border-radius: 14px;
  }
  .offer-prompt,
  .help-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .offer-prompt .primary,
  .help-card a {
    width: 100%;
  }
  .upload-grid {
    grid-template-columns: 1fr;
  }
  .account-footer {
    padding: 24px 20px;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tabs button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .welcome-line {
    align-items: flex-start;
  }
  .welcome-line .secondary {
    padding: 10px 12px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .primary,
  .secondary,
  .tabs button {
    transition:
      background 0.18s,
      border-color 0.18s;
  }
  .primary:hover {
    background: #f3cb80;
  }
  .secondary:hover {
    border-color: var(--gold);
    background: #e8ba620b;
  }
  .card {
    animation: appear 0.28s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
