:root {
  color-scheme: light;
  --bg: #edf7fb;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --ink: #172033;
  --ink-soft: #24314b;
  --muted: #66788f;
  --line: #d8e7ef;
  --line-strong: #c8dae6;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --amber: #b7791f;
  --red: #c0392b;
  --green-soft: rgba(13, 148, 136, 0.1);
  --amber-soft: rgba(183, 121, 31, 0.12);
  --red-soft: rgba(192, 57, 43, 0.1);
  --blue-soft: rgba(37, 99, 235, 0.1);
  --shadow: 0 22px 70px rgba(23, 32, 51, 0.12);
  --shadow-soft: 0 14px 34px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(13, 148, 136, 0.16), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #f5fcff 0%, var(--bg) 58%, #f8fbfd 100%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

body::before {
  top: 110px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0));
}

body::after {
  bottom: 60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.16), rgba(13, 148, 136, 0));
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(300px, 0.95fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 24px 26px;
  border: 1px solid rgba(216, 231, 239, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64)),
    linear-gradient(180deg, rgba(13, 148, 136, 0.08), rgba(37, 99, 235, 0.04));
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(23, 32, 51, 0.11);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 148, 136, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.hero-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(13, 148, 136, 0.22);
}

.hero-mark svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(200, 218, 230, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.05);
}

.hero-highlight-mark {
  min-width: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(37, 99, 235, 0.14));
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.server-state {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  justify-self: end;
}

.server-state.missing {
  color: var(--red);
  border-color: rgba(192, 57, 43, 0.3);
}

.hero-side {
  display: grid;
  gap: 12px;
  align-content: space-between;
}

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

.hero-metric {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(216, 231, 239, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 255, 0.88));
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-metric-wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(37, 99, 235, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 255, 0.88));
}

.hero-metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-metric-value {
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.1;
}

.hero-metric-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-metric:hover,
.summary-card:hover,
.queue-card:hover,
.surface:hover,
.final-card:hover {
  transform: translateY(-2px);
}

.redeem-card,
.query-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.redeem-card {
  padding: 28px;
}

.query-card {
  margin-top: 18px;
  padding: 26px;
}

.stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 231, 239, 0.82);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 252, 255, 0.86));
}

.step-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.step-circle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f8fbfe);
  box-shadow: 0 10px 18px rgba(23, 32, 51, 0.06);
}

.step-line {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}

.step-item.active,
.step-item.done {
  color: var(--teal-dark);
}

.step-item.active .step-circle,
.step-item.done .step-circle {
  color: #fff;
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #11a796);
}

.step-line.done {
  background: linear-gradient(90deg, var(--teal), #11a796);
}

.step-panel {
  display: none;
  min-height: 420px;
  animation: fadeUp 0.18s ease-out;
}

.step-panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-title,
.query-head,
.queue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

.badge,
.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.pending,
.status-pill.processing {
  color: var(--amber);
  border-color: rgba(183, 121, 31, 0.28);
  background: var(--amber-soft);
}

.status-pill.done {
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, 0.28);
  background: var(--green-soft);
}

.status-pill.failed {
  color: var(--red);
  border-color: rgba(192, 57, 43, 0.26);
  background: var(--red-soft);
}

.step-layout {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.validate-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.surface {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 254, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 32px rgba(23, 32, 51, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.field textarea {
  min-height: 164px;
  padding: 14px 52px 14px 14px;
  resize: vertical;
  line-height: 1.55;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.field textarea.masked-token {
  -webkit-text-security: disc;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(13, 148, 136, 0.8);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.input-wrap {
  position: relative;
  display: block;
}

.icon-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
}

.icon-button:hover {
  color: var(--ink);
  background: #edf5f8;
}

.ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.ghost-button:hover {
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, 0.36);
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #11a796);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--teal-dark), #118578);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover {
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, 0.42);
  background: rgba(13, 148, 136, 0.06);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.result-strip,
.result-box,
.guide-box,
.final-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.92));
}

.result-strip,
.result-box {
  min-height: 64px;
  display: grid;
  align-items: center;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.result-strip.ok,
.result-box.done {
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, 0.28);
  background: var(--green-soft);
}

.result-strip.warn,
.result-box.pending,
.result-box.processing {
  color: var(--amber);
  border-color: rgba(183, 121, 31, 0.28);
  background: var(--amber-soft);
}

.result-strip.error,
.result-box.failed {
  color: var(--red);
  border-color: rgba(192, 57, 43, 0.25);
  background: var(--red-soft);
}

.guide-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
  padding: 12px;
}

.guide-box div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(237, 245, 248, 0.74);
}

.guide-box strong {
  color: var(--ink);
}

.guide-box span {
  color: var(--muted);
  line-height: 1.5;
}

.guide-box code {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.account-preview.ready {
  border-color: rgba(13, 148, 136, 0.28);
  background: rgba(13, 148, 136, 0.08);
}

.account-preview-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-preview strong {
  font-size: 22px;
}

.confirm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

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

.summary-grid.compact {
  margin-top: 20px;
  margin-bottom: 0;
}

.summary-card {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.summary-card-wide {
  grid-column: span 2;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-card strong {
  font-size: 18px;
  line-height: 1.45;
}

.mono {
  font-family: "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}

.progress-block {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e6eef3;
  overflow: hidden;
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.24s ease, background 0.24s ease;
}

.queue-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.queue-spotlight {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 231, 239, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(37, 99, 235, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.94));
}

.queue-spotlight-label {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-spotlight-title {
  font-size: 22px;
  line-height: 1.2;
}

.queue-spotlight-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.queue-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.95));
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.queue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  opacity: 0.7;
}

.queue-card.loading,
.queue-card.empty {
  grid-column: 1 / -1;
  justify-items: center;
  color: var(--muted);
}

.queue-card.active {
  border-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(13, 148, 136, 0.18),
    0 18px 34px rgba(13, 148, 136, 0.09);
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.95);
}

.queue-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.queue-eta {
  color: var(--muted);
  font-size: 13px;
}

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

.queue-stat {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(237, 245, 248, 0.88), rgba(250, 253, 255, 0.9));
}

.queue-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.queue-stat strong {
  font-size: 20px;
}

.final-card {
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.final-card.pending,
.final-card.processing {
  border-color: rgba(183, 121, 31, 0.28);
  background: linear-gradient(180deg, rgba(183, 121, 31, 0.08), rgba(255, 255, 255, 0.92));
}

.final-card.done {
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.08), rgba(255, 255, 255, 0.92));
}

.final-card.failed {
  border-color: rgba(192, 57, 43, 0.25);
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.08), rgba(255, 255, 255, 0.92));
}

.final-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.final-state-mark {
  min-width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.final-card.pending .final-state-mark,
.final-card.processing .final-state-mark {
  color: var(--amber);
}

.final-card.done .final-state-mark {
  color: var(--teal-dark);
}

.final-card.failed .final-state-mark {
  color: var(--red);
}

.final-state strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.final-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.query-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

.query-input {
  margin-bottom: 0;
}

.query-input textarea {
  min-height: 170px;
  padding-right: 14px;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.query-actions {
  display: grid;
  gap: 10px;
}

.query-guard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.04);
}

.query-guard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.query-guard-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.captcha-box {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px dashed rgba(200, 218, 230, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.captcha-box img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
}

.query-captcha-field {
  margin-bottom: 0;
}

.query-table-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(23, 32, 51, 0.05);
}

.query-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

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

.query-table th {
  background: #f7fbfd;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.query-table tr:last-child td {
  border-bottom: 0;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-tag.pending,
.status-tag.processing,
.status-tag.reserved {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-tag.used,
.status-tag.done {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
}

.status-tag.unused {
  color: var(--teal-dark);
  background: var(--green-soft);
}

.status-tag.revoked,
.status-tag.failed,
.status-tag.invalid,
.status-tag.not_found {
  color: var(--red);
  background: var(--red-soft);
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-message.error {
  color: var(--red);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: auto 1fr;
  }

  .hero-side {
    grid-column: 1 / -1;
  }

  .hero-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .step-line {
    display: none;
  }

  .validate-layout,
  .query-layout,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .queue-summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card-wide {
    grid-column: span 1;
  }

  .guide-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 18px;
  }

  .hero,
  .redeem-card,
  .query-card {
    padding: 18px;
    border-radius: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-highlights {
    justify-content: center;
  }

  .hero-side {
    width: 100%;
  }

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

  .step-item span:last-child {
    font-size: 13px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .final-state {
    grid-template-columns: 1fr;
  }

  .final-state-mark {
    justify-self: start;
  }
}
