:root {
  --bg0: #0f1419;
  --bg1: #161d27;
  --panel: #1a2330;
  --line: #2a3648;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #3d9bfd;
  --accent-2: #2ee59d;
  --danger: #ff6b7a;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, #1e3a5f 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 0%, #163a32 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.shell-with-nav {
  padding-top: 1.25rem;
}

.is-hidden {
  display: none !important;
}

/* —— Top navigation —— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  border: none;
  background: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: auto;
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(26, 35, 48, 0.9);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(22, 29, 39, 0.98);
}

.navbar.menu-open .nav-mobile {
  display: flex;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.page-title {
  margin-bottom: 1.5rem;
}

.page-title h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.page-title .muted {
  margin: 0;
}

.page[hidden] {
  display: none !important;
}

.user-label {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .user-label {
    display: none;
  }
}

.auth-page {
  min-height: 100vh;
}

/* —— Landing —— */
.landing-page {
  min-height: 100vh;
  --display: "Sora", "DM Sans", system-ui, sans-serif;
}

.landing-bg {
  background:
    radial-gradient(1000px 560px at 12% -8%, #1a4a3a 0%, transparent 55%),
    radial-gradient(900px 520px at 92% 8%, #1e3a5f 0%, transparent 50%),
    radial-gradient(700px 400px at 70% 100%, #163028 0%, transparent 45%),
    linear-gradient(180deg, #0c1117, #121a24 45%, #0f1419);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(12, 17, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.landing-links a:hover {
  color: var(--text);
  background: rgba(26, 35, 48, 0.55);
}

.landing-cta {
  margin-left: 0.4rem;
  padding: 0.5rem 0.95rem !important;
  color: #041018 !important;
}

.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 0.98rem;
}

/* Full-bleed hero composition */
.hero-plane {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.35rem 4rem;
  position: relative;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
  max-width: 12ch;
}

.hero-sub {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 34rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-stage {
  position: relative;
  width: min(100%, 420px);
}

.hero-glow {
  position: absolute;
  inset: 10% -8% -8% -8%;
  background: radial-gradient(circle at 50% 40%, rgba(46, 229, 157, 0.18), transparent 60%);
  filter: blur(8px);
  animation: pulseGlow 5.5s ease-in-out infinite;
}

.status-board {
  position: relative;
  border: 1px solid rgba(42, 54, 72, 0.95);
  background: linear-gradient(165deg, rgba(22, 29, 39, 0.95), rgba(15, 20, 25, 0.88));
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: floatBoard 7s ease-in-out infinite;
}

.status-board-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-board-top .mono {
  font-family: var(--mono);
  color: var(--accent-2);
  text-transform: none;
  letter-spacing: 0;
}

.status-line {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.45rem;
  border-top: 1px solid rgba(42, 54, 72, 0.7);
  font-size: 0.9rem;
}

.status-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-line.ok i { background: var(--accent-2); box-shadow: 0 0 10px rgba(46, 229, 157, 0.45); }
.status-line.fail i { background: var(--danger); }
.status-line.pending i {
  background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}

.status-line em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-line.ok em { color: var(--accent-2); }
.status-line.fail em { color: var(--danger); }
.status-line.pending em { color: var(--accent); }

.landing-section {
  max-width: 1100px;
  padding-top: 1.5rem;
  padding-bottom: 3.25rem;
}

.landing-section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.025em;
}

.landing-section-lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  line-height: 1.5;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.trust-row strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.trust-row p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.trust-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.how-steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  padding-top: 0.15rem;
}

.how-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
}

.how-steps p {
  margin: 0;
  font-size: 0.92rem;
}

.price-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.price-item {
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 20, 25, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.price-item:hover {
  border-color: rgba(61, 155, 253, 0.45);
  transform: translateY(-2px);
}

.price-item.featured {
  border-color: rgba(46, 229, 157, 0.45);
  background: linear-gradient(165deg, rgba(22, 58, 50, 0.35), rgba(15, 20, 25, 0.7));
}

.price-range {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.price-amount {
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: rgba(15, 20, 25, 0.4);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.7rem 0 0;
  line-height: 1.55;
}

.faq-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cta-band {
  margin: 1rem 0 0;
  padding: 4rem 1.35rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(46, 229, 157, 0.1), transparent 60%),
    rgba(15, 20, 25, 0.35);
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 0 1.25rem;
}

.landing-footer {
  max-width: 1100px;
  padding: 2rem 1.35rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.landing-footer a:hover {
  text-decoration: underline;
}

.landing-footer .tiny {
  margin-top: 0.45rem;
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes floatBoard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 900px) {
  .hero-plane {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.25rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 320px;
    order: -1;
  }

  .trust-row,
  .price-stage {
    grid-template-columns: 1fr;
  }

  .landing-links a:not(.landing-cta):not([href="/login"]):not([href="/register"]) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .status-board,
  .hero-glow,
  .status-line.pending i {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: min(100%, 420px);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-card .brand {
  margin-bottom: 1.25rem;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form label span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-form input {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 46px;
}

.auth-form input[type="password"] {
  font-size: 0.95rem;
  letter-spacing: normal;
}

.auth-footer {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.history {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.history-head .label {
  margin: 0;
}

.history-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}

.hist-card {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hist-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.hist-card-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.hist-card-stats {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-2);
}

.hist-card-form {
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-detail-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.hist-detail {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.hist-detail-meta {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-family: var(--mono);
  word-break: break-all;
}

.result-badge.partial {
  color: #041018;
  background: #f0c14b;
  border-color: transparent;
}

.result-badge.ok {
  color: #041018;
  background: var(--accent-2);
  border-color: transparent;
}

.result-badge.fail {
  color: #fff;
  background: var(--danger);
  border-color: transparent;
}

.result-badge.pending {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.help-footer {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  text-align: center;
}

.help-footer .label {
  margin-bottom: 0.35rem;
}

.help-footer a,
.auth-help a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.help-footer a:hover,
.auth-help a:hover {
  text-decoration: underline;
}

.auth-help {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.hist-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.hist-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
}

.header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sub a {
  color: var(--accent);
}

.panel {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  scroll-margin-top: 80px;
}

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.row {
  display: flex;
  gap: 0.6rem;
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  background: var(--bg0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

input[type="password"] {
  font-family: var(--font);
  letter-spacing: 0.04em;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  letter-spacing: normal;
  opacity: 1;
}

/* Keep autofill looking like the dark fields */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg0) inset;
  transition: background-color 9999s ease-out;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-color: var(--accent);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn.primary {
  background: var(--accent);
  color: #041018;
}

.btn.wide {
  width: 100%;
  margin-top: 1rem;
}

.status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.status.err {
  color: var(--danger);
}

.status.ok {
  color: var(--accent-2);
}

.form-meta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.q {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.q-title {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.q-meta {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.req {
  color: var(--danger);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.pricing-panel .label {
  margin-bottom: 0.75rem;
}

.price-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.tier {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tier span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.tier strong {
  font-size: 1.15rem;
  color: var(--accent-2);
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding: 0.85rem 0 0;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}

.price-line strong {
  font-size: 1.35rem;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.price-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.run-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.run-grid label span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.results-panel {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.results-head .label {
  margin: 0;
}

.results-summary {
  margin: 0;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow: auto;
}

.result-row {
  display: grid;
  grid-template-columns: 3rem 5.5rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.result-id {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.result-badge {
  display: inline-flex;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.result-row.ok .result-badge {
  color: #041018;
  background: var(--accent-2);
  border-color: transparent;
}

.result-row.fail .result-badge {
  color: #fff;
  background: var(--danger);
  border-color: transparent;
}

.result-row.pending .result-badge {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.result-detail {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .row {
    flex-direction: column;
  }
  .run-grid,
  .price-tiers {
    grid-template-columns: 1fr;
  }
  .result-row {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .result-detail {
    grid-column: 1 / -1;
    white-space: normal;
  }
}
