:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: #0f0f10;
  --panel-soft: rgba(255, 255, 255, 0.04);
  --text: #f4f1ea;
  --muted: #a8a39b;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ea5b1b;
  --accent-soft: #1f5d59;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    /* Left green glow */
    radial-gradient(circle at 0% 64%, rgba(31, 93, 89, 0.38), transparent 42%),
    /* Right orange glow */
    radial-gradient(circle at 90% 35%, rgba(234, 91, 27, 0.2), transparent 20%),
    linear-gradient(180deg, #060606 0%, #020202 100%);
  background-attachment: fixed, fixed, fixed;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: var(--text);
  text-decoration-color: rgba(244, 241, 234, 0.3);
}

.page {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.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;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(11, 16, 24, 0.58);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0;
  color: rgba(244, 241, 234, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-banner-text {
  margin: 0;
  color: rgba(220, 228, 227, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-banner-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 241, 234, 0.92);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner-button-muted {
  background: rgba(255, 255, 255, 0.03);
}

.cookie-banner-button-accept {
  border-color: rgba(227, 125, 73, 0.38);
  background: linear-gradient(180deg, rgba(242, 163, 99, 0.92), rgba(227, 125, 73, 0.92));
  color: #fff;
}

.landing {
  padding-bottom: 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
}

.landing .topbar {
  width: 100%;
  margin-inline: auto;
}

.brand-lockup {
  display: grid;
  gap: 10px;
}

.brand,
.signal,
.eyebrow,
.meta-kicker,
.service-index {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand,
.signal,
.eyebrow,
.meta-kicker,
.service-index {
  color: var(--accent);
}

.signal {
  margin: 0;
}

.session-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.header-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.92;
}

.header-link:hover,
.header-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.header-separator {
  color: rgba(244, 241, 234, 0.42);
}

.session-user {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.cta-link {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(234, 91, 27, 0.4);
  background: linear-gradient(135deg, #ea5b1b 0%, #a13b12 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.brand {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.brand-subtitle {
  margin: 0;
  max-width: none;
  color: var(--accent);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.35;
  text-transform: none;
}

.logo-lockup {
  --logo-wordmark-size: clamp(3rem, 7vw, 5rem);
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.logo-copy {
  display: grid;
  gap: 12px;
}

.brand-mark {
  width: calc(var(--logo-wordmark-size) * 0.78);
  height: calc(var(--logo-wordmark-size) * 0.78);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 0;
  margin-top: calc(var(--logo-wordmark-size) * 0.045);
  overflow: hidden;
}

.brand-mark-wave {
  width: 82%;
  height: 46%;
  display: block;
}

.brand-mark-wave-main,
.brand-mark-wave-echo {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark-wave-main {
  stroke-width: 2.4;
}

.brand-mark-wave-echo {
  stroke-width: 2;
  opacity: 0.14;
}

.logo-wordmark {
  color: #f4f1ea;
  font-size: var(--logo-wordmark-size);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

/* ─── Logo-as-home-link (job page) ────────────────────────── */

.logo-home-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

.logo-home-link:focus-visible {
  outline: 2px solid oklch(0.78 0.11 155);
  outline-offset: 6px;
}

.logo-home-link:hover .brand-mark {
  border-color: rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s;
}

.logo-home-cue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(210, 222, 221, 0.66);
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateX(-4px);
  transition: max-width 0.2s ease, opacity 0.18s ease, margin-left 0.2s ease, transform 0.2s ease;
}

.logo-home-link:hover .logo-home-cue,
.logo-home-link:focus-visible .logo-home-cue {
  max-width: 120px;
  opacity: 1;
  margin-left: 10px;
  transform: translateX(0);
}

.logo-home-cue-arrow { flex-shrink: 0; }
.logo-home-cue-label { text-transform: lowercase; }

@media (prefers-reduced-motion: reduce) {
  .logo-home-cue { transition: none; }
}

@media (max-width: 720px) {
  .logo-home-cue {
    max-width: 120px;
    opacity: 1;
    margin-left: 10px;
    transform: translateX(0);
    transition: none;
  }
}

.logo-subtitle {
  max-width: none;
  color: #cbc6bd;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.55;
  font-style: normal;
  white-space: nowrap;
}

.page-utility-footer {
  margin-top: 48px;
}

.page-copyright {
  margin: 28px 0 0;
  color: rgba(220, 228, 227, 0.6);
  font-size: 0.76rem;
  text-align: center;
}

.utility-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.utility-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.utility-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.utility-button {
  appearance: none;
}

.utility-meta,
.utility-separator {
  color: rgba(168, 163, 155, 0.8);
}

.utility-form {
  display: inline;
}

.about-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(640px, calc(100svh - 48px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: transparent;
  color: var(--text);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.about-modal::backdrop {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

.about-modal-body {
  display: grid;
  gap: 16px;
  padding: 24px 24px 22px;
  position: relative;
}

/* ─── About modal v2: two-column editorial layout ─────────── */

.about-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  height: 100%;
}

.about-v2-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 85%, rgba(234, 91, 27, 0.38) 0%, transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(180, 50, 20, 0.18) 0%, transparent 45%),
    linear-gradient(160deg, #1c0c08 0%, #0d0503 100%);
}

.about-v2-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: 32px;
  padding-top: 48px;
  background: #0c0e12;
  position: relative;
  overflow-y: auto;
}

.about-v2-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about-v2-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  overflow: hidden;
}

.about-v2-mark .brand-mark-wave {
  width: 82%;
  height: 46%;
  display: block;
}

.about-v2-logo-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f1ea;
  margin: 0;
}

.about-v2-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.about-v2-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 200, 190, 0.55);
  margin: 0;
}

.about-v2-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #f4f1ea;
  margin: 0;
}

.about-v2-accent {
  color: var(--accent);
  font-style: italic;
}

.about-v2-sub {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(210, 200, 190, 0.68);
  margin: 0;
}

.about-v2-taglines {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 200, 190, 0.38);
  margin: 0;
  line-height: 1.8;
}

.about-v2-rows {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-v2-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-v2-row:first-child { padding-top: 0; }

.about-v2-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 222, 221, 0.42);
  margin: 0;
  padding-top: 3px;
}

.about-v2-text {
  font-size: 0.86rem;
  line-height: 1.62;
  color: rgba(240, 238, 234, 0.84);
  margin: 0;
}

.about-v2-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.55;
  font-style: italic;
  color: rgba(240, 238, 234, 0.88);
  margin: 0;
}

.about-v2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(210, 222, 221, 0.36);
  font-family: monospace;
}

@media (max-width: 720px) {
  .about-modal {
    width: calc(100% - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 16px;
  }

  .about-v2 {
    grid-template-columns: 1fr;
    overflow-y: auto;
    height: auto;
  }

  .about-v2-left {
    padding: 24px;
    gap: 24px;
  }

  .about-v2-right {
    padding: 24px;
    padding-top: 48px;
    overflow-y: visible;
  }

  .about-v2-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.about-modal-body p,
.about-modal-body h2 {
  margin: 0;
}

.about-title {
  color: #f4f1ea;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.about-copy {
  font-weight: 400;
}

.about-copy-emphasis {
  color: #e46a57;
  font-weight: 700;
}

.about-heart {
  color: #e46a57;
  font-size: 1.42em;
  line-height: 0;
}

.about-note {
  color: rgba(199, 203, 200, 0.76);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
}

.comments-modal-body {
  gap: 18px;
}

.comments-intro {
  color: rgba(210, 222, 221, 0.8);
  line-height: 1.55;
}

.comments-form {
  display: grid;
  gap: 16px;
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comments-field {
  display: grid;
  gap: 8px;
}

.comments-field span {
  color: rgba(244, 241, 234, 0.92);
  font-size: 0.92rem;
}

.comments-field input,
.comments-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(10, 14, 20, 0.74);
  color: var(--text);
  font: inherit;
}

.comments-field textarea {
  resize: vertical;
  min-height: 144px;
}

.comments-field input::placeholder,
.comments-field textarea::placeholder {
  color: rgba(244, 241, 234, 0.42);
}

.comments-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comments-note {
  color: rgba(168, 163, 155, 0.92);
  font-size: 0.88rem;
  line-height: 1.5;
}

.comments-submit {
  border: 0;
  cursor: pointer;
}

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

.about-modal-head {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 16px;
  padding-right: 44px;
}

.about-close {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.about-close:hover,
.about-close:focus-visible {
  color: var(--text);
}

@media (max-width: 900px) {
  .logo-lockup {
    gap: 7px;
  }

  .logo-copy {
    gap: 10px;
  }

  .brand-mark {
    border-width: 1.8px;
  }

  .logo-subtitle {
    white-space: normal;
    max-width: 32rem;
  }

  .topbar {
    align-items: start;
    gap: 20px;
  }

  .header-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .comments-grid {
    grid-template-columns: 1fr;
  }

  .comments-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.inline-form {
  margin: 0;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.flash {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.45;
}

.flash-success {
  border-color: rgba(31, 93, 89, 0.8);
}

.flash-error {
  border-color: rgba(234, 91, 27, 0.8);
}

.flash-warning {
  border-color: rgba(234, 173, 91, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.7fr);
  gap: 40px;
  align-items: start;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero-side {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.job-summary {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 28px;
}

.job-summary .hero-side {
  max-width: 24rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 24px;
}

.section-head h2,
.meta h3,
.job-card h3 {
  margin: 0;
  font-weight: 500;
}

.section-head p,
.meta p,
.phase,
.muted,
table,
label span,
summary,
input,
button {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.section-head p,
.phase,
.muted,
.meta p,
.job-card-copy,
select {
  color: var(--muted);
}

.search-showcase {
  margin-bottom: 28px;
}

.search-section-head {
  display: block;
  margin-top: 0;
  margin-bottom: 18px;
}

.search-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(14, 18, 24, 0.56);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.search-form > * {
  min-width: 0;
}

.search-input-block {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.search-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 70px;
  font-size: 1.04rem;
}

.search-button {
  min-width: 330px;
  width: 100%;
  max-width: 100%;
  min-height: 86px;
  padding: 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 1.22rem;
  font-weight: 600;
  cursor: pointer;
}

.search-button:hover,
.search-button:focus-visible {
  border-color: rgba(234, 91, 27, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.search-results-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.search-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.search-results-head h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.search-clear-link {
  color: var(--text);
}

.search-results-list {
  display: grid;
  gap: 12px;
}

.search-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  min-width: 0;
  max-width: 100%;
}

.search-result-main {
  min-width: 0;
  max-width: 100%;
}

.search-result-head {
  justify-content: flex-start;
}

.search-result-card h3 {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.search-result-card .job-card-artist {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.search-result-stats {
  gap: 12px;
  font-size: 0.84rem;
}

.search-result-link {
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 80vw);
  gap: 22px;
  justify-content: center;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.showcase-card-c {
  min-height: 0;
  width: min(80vw, 1080px);
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(234, 91, 27, 0.18), rgba(255, 255, 255, 0.03) 32%, rgba(255, 255, 255, 0.02));
}

.homepage-showcase {
  grid-template-columns: 1fr;
}

.homepage-showcase-card {
  width: 100%;
}

.meta,
.form-shell {
  padding: 28px 28px 32px;
}

.meta h3 {
  font-size: 1.96rem;
  margin-top: 10px;
}

.meta p {
  max-width: 28ch;
  line-height: 1.45;
}

.form-shell h3 {
  margin-bottom: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-shell {
  display: flex;
  justify-content: center;
}

.auth-panel {
  width: min(520px, 100%);
}

.auth-panel h1 {
  margin: 10px 0 14px;
  font-weight: 500;
}

.auth-copy {
  max-width: none;
}

.results-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 24, 28, 0.96), rgba(14, 16, 20, 0.94));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

/* ─── Results table: edge-bar match indicator ─────────────────── */

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.results-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 222, 221, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-table tbody td {
  padding: 14px;
  vertical-align: middle;
  font-size: 14px;
  color: rgba(246, 249, 248, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-table .results-edge-col,
.results-table .results-edge {
  width: 3px;
  min-width: 3px;
  max-width: 3px;
  padding: 0;
}

.results-row.is-match .results-edge {
  background: oklch(0.78 0.11 155);
}

.results-row.is-no-match .results-edge {
  background: rgba(255, 255, 255, 0.06);
}

.results-row.is-no-match td {
  color: rgba(210, 222, 221, 0.38);
}

.results-row.is-no-match .link-chip {
  opacity: 0.7;
}

.col-track {
  min-width: 0;
}

.col-track-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.results-row.is-match .col-track-inner {
  font-weight: 500;
}

.no-match-label {
  color: rgba(210, 222, 221, 0.38);
  font-style: italic;
}

.cell-empty {
  color: rgba(210, 222, 221, 0.38);
}

.source-player-panel {
  margin-bottom: 22px;
  background:
    linear-gradient(180deg, rgba(22, 24, 28, 0.96), rgba(14, 16, 20, 0.94));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.source-player-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.source-player {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 18px;
}

.stack {
  display: grid;
  gap: 20px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select,
button {
  width: 100%;
  border-radius: 16px;
  padding: 18px 18px;
  font-size: 1.02rem;
}

input,
select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

input::placeholder {
  color: rgba(244, 241, 234, 0.36);
}

button {
  border: 1px solid rgba(234, 91, 27, 0.4);
  background: linear-gradient(135deg, #ea5b1b 0%, #a13b12 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

summary {
  cursor: pointer;
  color: var(--text);
}

.advanced {
  margin-top: 16px;
}

.details-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.submit-note {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: none;
  width: 100%;
}

.source-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.stat-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.toggle {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 0;
  width: 100%;
}

.settings-panel {
  display: grid;
  gap: 18px;
}

.settings-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.settings-copy {
  flex: 1;
}

.settings-copy p {
  max-width: none;
}

.info-toggle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(234, 91, 27, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.settings-info {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-panel .settings-info[hidden] {
  display: none;
}

.toggle-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: none;
  width: 100%;
}

.toggle p {
  max-width: none;
}

.toggle .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.field-title-url {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.range-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.range-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.range-summary {
  margin: 6px 0 0;
  font-size: 1.2rem;
  color: var(--text);
}

.range-head .muted {
  max-width: none;
}

.small {
  font-size: 0.9rem;
}

.range-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slider-stack {
  display: grid;
  gap: 14px;
}

.dual-range {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.dual-range-track,
.dual-range-fill {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 999px;
}

.dual-range-track {
  background: rgba(255, 255, 255, 0.12);
}

.dual-range-fill {
  background: linear-gradient(90deg, rgba(234, 91, 27, 0.85), rgba(255, 255, 255, 0.24));
}

.dual-range input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0;
  height: 32px;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  pointer-events: auto;
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  pointer-events: auto;
}

.dual-range input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
}

.job-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.job-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04)),
    rgba(14, 18, 24, 0.78);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.job-card-clickable {
  cursor: pointer;
}

.job-card-clickable:hover {
  border-color: rgba(234, 91, 27, 0.45);
  transform: translateY(-2px);
}

.job-card-clickable:focus-visible {
  outline: 2px solid rgba(234, 91, 27, 0.75);
  outline-offset: 3px;
}

.job-card h3 {
  font-size: 1.3rem;
  margin-top: 10px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.job-card-copy {
  margin: 10px 0 18px;
  line-height: 1.5;
  word-break: break-word;
}

.job-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-card-head-compact {
  justify-content: flex-end;
}

.job-card-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.job-card-time {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.job-card-artist {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
}

.job-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.job-card-stats span {
  white-space: nowrap;
}

.public-set-card {
  display: grid;
  min-height: 88px;
  padding: 12px 16px;
}

.public-set-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.14;
}

.public-set-title {
  margin-bottom: 4px;
}

.public-set-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.public-set-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-set-status-pill.status-pill-completed {
  border-color: rgba(31, 93, 89, 0.8);
  color: #8fd4cb;
  background: rgba(31, 93, 89, 0.16);
}

.public-set-status-pill.status-pill-failed {
  border-color: rgba(234, 91, 27, 0.8);
  color: #ffb493;
  background: rgba(234, 91, 27, 0.12);
}

.public-set-status-pill.status-pill-cancelled {
  border-color: rgba(144, 153, 170, 0.7);
  color: #d8dee8;
  background: rgba(144, 153, 170, 0.12);
}

.public-set-status-pill.status-pill-running,
.public-set-status-pill.status-pill-queued {
  border-color: rgba(234, 173, 91, 0.7);
  color: #f0d7a0;
  background: rgba(234, 173, 91, 0.12);
}

.public-set-artist {
  min-height: 1.3em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.public-set-artist-empty {
  visibility: hidden;
}

.public-set-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

.public-set-duration {
  white-space: nowrap;
}

.public-set-updated {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

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

.stat-panel {
  padding: 22px;
}

.dashboard-stat {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text);
}

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

.admin-table {
  min-width: 1080px;
}

.admin-source-cell strong {
  display: block;
  margin-bottom: 8px;
}

.admin-files-cell,
.admin-source-cell {
  min-width: 220px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-indicator {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.status-indicator::before,
.status-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
}

.status-indicator-completed::before {
  border-radius: 50%;
  background: rgba(73, 187, 145, 0.18);
  border: 1px solid rgba(100, 220, 174, 0.56);
}

.status-indicator-completed::after {
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #7de0b7;
  border-bottom: 2px solid #7de0b7;
  transform: rotate(45deg);
  inset: auto;
}

.status-indicator-running::before,
.status-indicator-queued::before {
  inset: 4px;
  border-radius: 50%;
  background: #f2a363;
  box-shadow: 0 0 0 3px rgba(242, 163, 99, 0.18);
}

.status-indicator-running::after,
.status-indicator-queued::after {
  inset: 1px;
  border-radius: 50%;
  border: 1px solid rgba(242, 163, 99, 0.34);
  animation: status-indicator-pulse 1.6s ease-in-out infinite;
}

.status-indicator-failed::before,
.status-indicator-cancelled::before {
  border-radius: 50%;
  background: rgba(234, 91, 27, 0.15);
  border: 1px solid rgba(255, 138, 96, 0.5);
}

.status-indicator-failed::after,
.status-indicator-cancelled::after {
  content: "!";
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb493;
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes status-indicator-pulse {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.danger-btn {
  width: auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 91, 27, 0.65);
  background: rgba(234, 91, 27, 0.12);
  color: #ffd5c3;
}

.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.link-stack {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px;
  align-items: center;
  min-width: max-content;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(246, 249, 248, 0.94);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s;
}

.link-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.link-chip:focus-visible {
  outline: 2px solid oklch(0.78 0.11 155);
  outline-offset: 2px;
}

.link-chip-arrow {
  opacity: 0.7;
  transition: opacity 0.15s, transform 0.15s;
}

.link-chip:hover .link-chip-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

.info-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
}

.info-chip-prefix {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.info-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 18, 0.96);
  color: #d8d4cc;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.info-chip:hover .info-tooltip,
.info-chip:focus-visible .info-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Track cell: play-icon prefix ────────────────────────── */

.track-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.track-preview-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 11px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(246, 249, 248, 0.94);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.track-preview-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.track-preview-btn:focus-visible {
  outline: 2px solid oklch(0.78 0.11 155);
  outline-offset: 2px;
}

.track-preview-icon-play  { display: inline-block; margin-left: 1px; }
.track-preview-icon-stop  {
  display: none;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
}

.track-preview-btn.is-playing {
  background: rgba(234, 91, 27, 0.14);
  border-color: rgba(234, 91, 27, 0.52);
  color: rgba(234, 91, 27, 0.98);
}
.track-preview-btn.is-playing .track-preview-icon-play { display: none; }
.track-preview-btn.is-playing .track-preview-icon-stop { display: inline-block; }

.track-title { font-weight: 500; }

.track-title,
.no-match-label {
  min-width: 0;
}

/* ─── Confidence: pip meter + label ───────────────────────── */

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.confidence-pips {
  display: inline-flex;
  gap: 3px;
}

.confidence-pip {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.confidence-pip.is-on {
  background: oklch(0.78 0.11 155);
}

.confidence[data-level="low"] .confidence-pip.is-on {
  background: oklch(0.82 0.12 78);
}

.confidence-label {
  font-size: 12px;
  color: rgba(210, 222, 221, 0.72);
}


.empty-card {
  min-height: 180px;
}

.job-hero .hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.rerun-panel {
  margin-bottom: 22px;
}

.rerun-form {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(180px, 220px);
  gap: 16px;
  align-items: end;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:hover td {
  background: var(--panel-soft);
}

@media (max-width: 1080px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .job-hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: 36rem;
  }

  .job-summary {
    justify-content: stretch;
  }

  .source-meta,
  .job-list,
  .four-up,
  .admin-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-button {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
    left: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
  }

  .cookie-banner-text {
    font-size: 0.9rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-button {
    flex: 1 1 0;
  }

  .page {
    width: min(100% - 28px, 1280px);
  }

  .grid,
  .four-up,
  .source-meta,
  .range-grid,
  .job-list,
  .admin-summary-grid,
  .rerun-form {
    grid-template-columns: 1fr;
  }

  .search-results-head,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .search-form {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    overflow: hidden;
  }

  .search-results-head {
    align-items: start;
  }

  .header-links,
  .utility-links {
    min-width: 0;
    white-space: normal;
  }

  .header-links {
    flex-wrap: wrap;
  }

  .utility-links {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .search-result-link,
  .job-card-time,
  .job-card-stats span {
    white-space: normal;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .range-head {
    flex-direction: column;
    align-items: start;
  }

  .results-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .results-table .results-edge-col,
  .results-table .results-edge {
    width: 6px;
    min-width: 6px;
    max-width: 6px;
    position: sticky;
    left: 0;
    z-index: 3;
  }

  .results-table .results-edge-col {
    background: rgba(19, 25, 34, 0.96);
  }

  .results-row.is-no-match .results-edge {
    background: rgba(255, 255, 255, 0.08);
  }

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