:root {
  --bg: #0c0c0c;
  --bg-alt: #141414;
  --surface: #161616;
  --surface-raised: #1c1c1c;
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f0f0f0;
  --text-muted: #8a8a8a;
  --accent: #ffffff;
  --link: #6eb5ff;
  --mythic: #c9a227;
  --radius: 6px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(680px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.92);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav__logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: #6eb5ff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav__links a:hover {
  text-decoration: underline;
}

.nav__cta {
  padding: 0.45rem 1rem !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  transition: background 0.15s, color 0.15s !important;
}

.nav__cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--surface-border);
}

.hero__inner {
  text-align: center;
}

.hero__banner-wrap {
  position: relative;
  width: min(1020px, 98vw);
  margin: 0 auto 1.75rem;
  line-height: 0;
}

.hero__banner-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 8%, transparent 72%, var(--bg) 100%);
  pointer-events: none;
}

.hero__banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__quote {
  max-width: 520px;
  margin: 1.25rem auto 2.5rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  border: none;
  padding: 0;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 2rem;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-card {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  text-align: center;
}

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-card__label {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.stat-card__meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #d9d9d9;
  border-color: #d9d9d9;
}

.btn--ghost {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface);
}

.btn--brand {
  gap: 0.55rem;
}

.btn__icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn__logo {
  display: block;
  height: 18px;
  width: auto;
  object-fit: contain;
}

.btn--raiderio {
  padding-inline: 1rem;
}

.btn--block {
  width: 100%;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--surface-border);
}

.section__header {
  margin-bottom: 2rem;
}

.section__header h2 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section__eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section__sub {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
}

.about-card--wide {
  max-width: none;
}

.rich-text :is(p, ul, blockquote) {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rich-text :is(p, ul, blockquote):last-child {
  margin-bottom: 0;
}

.rich-text blockquote {
  padding-left: 1rem;
  border-left: 2px solid var(--surface-border);
}

.rich-text ul {
  padding-left: 1.2rem;
}

.rich-text a {
  color: var(--link);
}

.rich-text a:hover {
  text-decoration: underline;
}

.status-banner {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #3a1f1f;
  color: #ffb4b4;
  text-align: center;
  font-size: 0.875rem;
}

.skeleton,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
}

.skeleton-line {
  height: 0.95rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

.skeleton-line--short {
  width: 70%;
}

.skeleton::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.priority-tag {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.priority-tag--high {
  color: var(--mythic);
}

.empty-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.apply-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-align: center;
}

.apply-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.link-card--reports {
  cursor: default;
}

.link-card--reports:hover {
  border-color: var(--surface-border);
  background: var(--surface);
}

.reports-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.reports-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.reports-list a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.88rem;
}

.reports-list a:hover {
  text-decoration: underline;
}

.reports-list span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

body.is-loading [data-field="about-html"] > :not(.skeleton-line) {
  visibility: hidden;
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.pillars {
  display: grid;
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
}

.pillar__index {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.progress-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.progress-card--featured {
  border-color: rgba(201, 162, 39, 0.3);
}

.progress-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.progress-card__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--mythic {
  background: rgba(201, 162, 39, 0.12);
  color: var(--mythic);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.progress-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--mythic);
}

.progress-bar__fill--complete {
  background: var(--accent);
}

.progress-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.progress-card__count {
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-card__ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.progress-card__ranks strong {
  color: var(--text);
  font-weight: 600;
}

.hall-of-fame {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.hall-of-fame h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--surface-border);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline li div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timeline li strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline li span:last-child {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline__tier {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.timeline__tier--hof {
  color: var(--mythic);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-align: center;
}

.schedule-card__day {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.schedule-card__time {
  font-size: 0.95rem;
  font-weight: 500;
}

.schedule-card__guild-night {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.schedule-card__duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.roster-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.roster-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.85rem;
}

.roster-chip__role {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.recruit-specs {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.recruit-specs h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--surface-border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.spec-chip__name {
  color: var(--text);
  font-weight: 500;
}

.spec-chip .priority-tag {
  margin-left: 0;
}

.spec-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.recruit-card--expect {
  display: flex;
  flex-direction: column;
}

.recruit-card--expect .btn {
  margin-top: auto;
}

.apply-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.apply-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.apply-form input,
.apply-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.apply-form input:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.link-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-raised);
}

.link-card__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.link-card__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.link-card__icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.link-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.link-card__logo {
  display: block;
  height: 22px;
  width: auto;
  object-fit: contain;
}

.link-card--raiderio {
  justify-content: center;
}

.link-card--placeholder {
  opacity: 0.6;
  cursor: default;
}

.link-card--placeholder:hover {
  border-color: var(--surface-border);
  background: var(--surface);
}

.link-card__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--surface-border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer__logo {
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__fine {
  font-size: 0.75rem;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero__stats,
  .about-grid,
  .progress-grid,
  .schedule-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(12, 12, 12, 0.98);
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    border-bottom: 1px solid var(--surface-border);
  }

  .nav__links li:last-child {
    border-bottom: none;
    padding-top: 0.5rem;
  }

  .nav__links a {
    display: block;
    padding: 0.65rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .nav__brand-text {
    font-size: 0.8rem;
  }
}

/* Officer access trigger (brand text becomes a hidden login button). */
.nav__brand-text--button {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.nav__brand-text--button:hover {
  color: var(--text);
}

/* Officer password modal. */
.admin-unlock__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 4, 8, 0.75);
  backdrop-filter: blur(4px);
}

.admin-unlock__panel {
  width: 100%;
  max-width: 22rem;
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.admin-unlock__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.admin-unlock__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-unlock__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.admin-unlock__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.admin-unlock__error {
  margin: 0;
  color: #f87171;
  font-size: 0.82rem;
}

.admin-unlock__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.admin-unlock__btn {
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.admin-unlock__btn--ghost {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text-muted);
}

.admin-unlock__btn--primary {
  background: var(--accent, #6366f1);
  color: #fff;
}

.admin-unlock__btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.apply-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.apply-form select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.apply-form .field-required {
  color: #f87171;
}

.apply-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.apply-status--ok {
  color: #4ade80;
}

.apply-status--err {
  color: #f87171;
}

.apply-form a:not(.btn) {
  color: var(--link);
}

.apply-form a:not(.btn):hover {
  text-decoration: underline;
}

.apply-form__field {
  display: grid;
  gap: 0.45rem;
}

.apply-form__label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.characters-field {
  display: grid;
  gap: 0.5rem;
}

.characters-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.characters-field__remove {
  background: transparent;
  border: 0;
  color: #f87171;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.35rem;
}

.characters-field__add {
  justify-self: start;
  background: transparent;
  border: 1px dashed var(--surface-border);
  color: var(--link);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.characters-field__add:hover {
  text-decoration: underline;
}

.file-upload {
  border: 2px dashed var(--surface-border);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  outline: none;
}

.file-upload--drag {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

.file-upload__input {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-upload__input::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.file-upload__input::file-selector-button:hover {
  text-decoration: underline;
}

.file-upload__status {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.file-upload__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.file-upload__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.file-upload__size {
  color: var(--text-muted);
  margin-left: auto;
}

.file-upload__list button {
  background: transparent;
  border: 0;
  color: #f87171;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.file-upload__total {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-upload__links {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.speedtest-field {
  display: grid;
  gap: 0.75rem;
}

.speedtest-field__run {
  display: grid;
  gap: 0.75rem;
}

.speedtest-field__progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.speedtest-field__progress-bar {
  height: 100%;
  background: var(--link);
  transition: width 0.2s ease;
}

.speedtest-field__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.speedtest-field__stat {
  display: grid;
  gap: 0.2rem;
}

.speedtest-field__stat dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.speedtest-field__stat dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
