:root {
  --bg: #0a0c10;
  --surface: #11141b;
  --surface-2: #171b24;
  --surface-hover: #1c212c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-text: #34d399;
  --accent-bg: rgba(16, 185, 129, 0.10);
  --accent-border: rgba(16, 185, 129, 0.28);
  --amber: #f59e0b;
  --amber-text: #fde68a;
  --amber-bg: rgba(245, 158, 11, 0.10);
  --amber-border: rgba(245, 158, 11, 0.28);
  --red: #ef4444;
  --red-text: #fecaca;
  --red-bg: rgba(239, 68, 68, 0.10);
  --red-border: rgba(239, 68, 68, 0.28);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Multi-page instant view switching before JS runs */
body[data-page="guide"] #page-activate,
body[data-page="guide"] #page-help,
body[data-page="activate"] #page-guide,
body[data-page="activate"] #page-help,
body[data-page="help"] #page-guide,
body[data-page="help"] #page-activate {
  display: none;
}

.shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* Header & Navigation */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 220px;
  min-width: 0;
}

.brand-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.active {
  color: var(--text);
  background: var(--accent-bg);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  font-weight: 600;
}

.nav-link:focus-visible,
.btn:focus-visible,
.lang-btn:focus-visible,
.guide-shot-btn:focus-visible,
.inline-link:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-pill.ok {
  color: #a7f3d0;
  border-color: var(--accent-border);
  background: var(--accent-bg);
}

.status-pill.warn {
  color: var(--amber-text);
  border-color: var(--amber-border);
  background: var(--amber-bg);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Persistent Code Bar */
.code-bar {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.code-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.code-bar-head .field-label {
  margin: 0;
}

.code-bar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.code-job-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: #a7f3d0;
  text-decoration: none;
}

.code-job-pill:hover {
  background: rgba(16, 185, 129, 0.18);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-head > div {
  flex: 1 1 260px;
  min-width: 0;
}

.page-head > a {
  flex-shrink: 0;
  white-space: nowrap;
}

.page-head h1 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 13.5px;
}

.mono {
  font-family: var(--mono);
}

.notice-banner {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 13px;
  line-height: 1.5;
}

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

.stats-row.stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-bottom: 2px;
}

.stat strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-block {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.input-row {
  display: flex;
  gap: 8px;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

#code-input {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  font-weight: 600;
}

input:focus {
  border-color: var(--accent);
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 15px;
  min-height: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

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

.btn-sm {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12.5px;
}

.btn-primary {
  width: 100%;
  margin-top: 10px;
  background: var(--accent);
  color: #03150e;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent-border);
  background: var(--surface-hover);
}

.btn-success {
  width: 100%;
  background: var(--accent);
  color: #03150e;
}

.btn-success:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.code-badge {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}

.code-badge.ok {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: #a7f3d0;
}

.code-badge.err {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red-text);
}

.alert {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red-text);
  font-size: 13px;
  line-height: 1.5;
}

/* Queue & Job Panel */
.job-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-bottom: 12px;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.job-badge.QUEUED,
.job-badge.SUBMITTING,
.job-badge.PROCESSING {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: #a7f3d0;
}

.job-badge.SUCCESS {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: #6ee7b7;
}

.job-badge.FAILED,
.job-badge.CANCELLED {
  background: var(--red-bg);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--red-text);
}

.job-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}

.queue-pill,
.eta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.queue-pill {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.eta-pill {
  font-weight: 700;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.progress-fill.FAILED,
.progress-fill.CANCELLED {
  background: var(--red);
}

.job-stage {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.queue-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.queue-note-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #a7f3d0;
}

.queue-note-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.job-fail {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 3px solid #f87171;
  color: var(--red-text);
  font-size: 13.5px;
  line-height: 1.6;
}

.job-fail p,
.history-item p {
  margin: 0;
}

.job-fail p + p,
.history-item p + p {
  margin-top: 6px;
}

.job-fail ul,
.history-item ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.job-fail li + li,
.history-item li + li {
  margin-top: 4px;
}

.job-actions {
  margin-top: 14px;
}

.history-panel {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
}

.history-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.history-stage {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Guide & Help Reading Layout */
.guide-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.guide-step:first-child {
  padding-top: 4px;
}

.guide-step:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.step-num {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.guide-step h3,
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.guide-step p,
.faq-item p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

#retry-sheerid,
#retry-pro3m-alt,
#retry-pro3m,
.faq-shared {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#retry-sheerid,
#retry-pro3m-alt,
#retry-pro3m {
  margin-bottom: 10px;
}

.faq-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-card:hover,
.faq-card[open] {
  border-color: var(--accent-border);
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

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

.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 10px;
}

.faq-q h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.faq-chevron {
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s, border-color 0.15s;
  margin-right: 2px;
}

.faq-card[open] .faq-chevron {
  transform: rotate(-135deg);
  border-color: var(--accent-text);
  margin-top: 4px;
}

.faq-a {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
}

.faq-a p,
.faq-a .guide-body {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: #a7f3d0;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
}

.ext-link:hover {
  background: rgba(16, 185, 129, 0.18);
}

.ext-link.video-link {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.25);
}

.ext-link.video-link:hover {
  background: rgba(59, 130, 246, 0.18);
}

.guide-cta-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.guide-cta-bar .btn-primary {
  width: auto;
  margin-top: 0;
  min-width: 240px;
}

.hidden { display: none !important; }

/* Account Form Grid */
.acct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.acct-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.paste-wrap {
  margin-bottom: 12px;
}

.checklist-box {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.checklist-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.chk-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 8px;
  cursor: pointer;
}

.chk-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

/* Inline Links & Rich Text */
.inline-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  word-break: break-word;
}

.inline-link:hover {
  color: #6ee7b7;
}

.job-fail .inline-link,
.alert .inline-link {
  color: var(--amber-text);
}

.job-fail .inline-link:hover,
.alert .inline-link:hover {
  color: #ffffff;
}

.notice-banner .inline-link,
.guide-shot-cap .inline-link {
  color: #fef08a;
}

.notice-banner .inline-link:hover,
.guide-shot-cap .inline-link:hover {
  color: #ffffff;
}

.guide-body {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-body .rich-p,
.notice-banner .rich-p,
.job-fail .rich-p,
.alert .rich-p {
  margin: 0 0 6px;
}

.guide-body .rich-p:last-child,
.notice-banner .rich-p:last-child,
.job-fail .rich-p:last-child,
.alert .rich-p:last-child {
  margin-bottom: 0;
}

.guide-body strong,
.notice-banner strong,
.hint strong {
  color: var(--text);
  font-weight: 600;
}

.guide-shot-cap strong {
  color: #fef3c7;
  font-weight: 700;
}

.guide-bullets {
  margin: 6px 0 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-bullets li::marker {
  color: var(--accent-text);
}

.guide-bullets strong {
  color: var(--text);
  font-weight: 600;
}

/* Screenshots & Lightbox */
.guide-shot-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.guide-shot-cap {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--amber-text);
  font-weight: 500;
  margin: 0;
}

.guide-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin-top: 8px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  position: relative;
}

.guide-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s, opacity 0.15s;
}

.guide-shot-btn:hover .guide-shot {
  border-color: var(--accent);
  opacity: 0.94;
}

.guide-shot-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(10, 12, 16, 0.86);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 12, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-dialog {
  position: relative;
  max-width: min(94vw, 1080px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #03150e;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto;
}

.lightbox-video {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 96px);
  width: min(88vw, 960px);
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  background: #000;
  outline: none;
}

.lightbox-cap {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  padding-right: 42px;
}

@media (max-width: 640px) {
  .topbar-row {
    align-items: flex-start;
  }
  .nav-link {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 12.5px;
  }
  .input-row {
    flex-direction: column;
  }
  .input-row .btn {
    width: 100%;
    min-height: 44px;
  }
  .acct-grid,
  .stats-row,
  .stats-row.stats-2 {
    grid-template-columns: 1fr;
  }
  .guide-cta-bar .btn-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.field-warn {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--red-text);
  font-size: 12px;
  line-height: 1.4;
}

input.input-invalid {
  border-color: var(--red) !important;
}


.faq-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6ee7b7;
  padding-left: 10px;
  border-left: 3px solid #34d399;
  margin: 4px 0 2px;
}

.faq-q h3 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
}


.history-left {
  width: 100%;
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.refund-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.history-stage {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  width: 100%;
}

.history-stage strong {
  color: var(--text);
  font-weight: 600;
}

.history-stage ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.history-stage li + li {
  margin-top: 5px;
}


.alert.field-warn {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 10px 14px;
  border-radius: 9px;
  border-left: 3px solid #f87171;
  font-size: 13px;
  line-height: 1.5;
}


.faq-a p {
  margin: 0;
  line-height: 1.6;
}

.faq-a p + p {
  margin-top: 12px;
}
