:root {
  color-scheme: dark;
  --bg: #070811;
  --panel: rgba(10, 12, 26, 0.94);
  --panel-strong: #101329;
  --ink: #f7f4ff;
  --muted: #a9a8c7;
  --line: #29284b;
  --line-strong: #474084;
  --accent: #54d7ff;
  --accent-strong: #f7a6ff;
  --violet: #9a75ff;
  --pink: #ff4fd8;
  --button: #54d7ff;
  --button-hover: #f06aff;
  --field: #0b0d1b;
  --field-focus: rgba(154, 117, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(84, 215, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(255, 79, 216, 0.12), transparent 28rem),
    linear-gradient(135deg, rgba(84, 215, 255, 0.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(247, 166, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0;
}

.panel {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45), 0 0 55px rgba(84, 215, 255, 0.08);
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 0.9rem;
}

.top-nav a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-link,
.secondary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
}

.primary-link {
  background: var(--button);
  color: #060917;
}

.secondary-link {
  border: 1px solid var(--line-strong);
  color: var(--accent-strong);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: 1.05rem;
}

.lede {
  max-width: 920px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}


.what-you-get {
  margin: 18px 0 24px;
  border: 1px solid rgba(84, 215, 255, 0.35);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 20px);
  background: linear-gradient(135deg, rgba(84, 215, 255, 0.09), rgba(255, 79, 216, 0.07));
}

.what-you-get .section-head {
  margin-top: 0;
}

.get-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.get-list article {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(154, 117, 255, 0.32);
  border-radius: 8px;
  background: rgba(8, 10, 24, 0.78);
}

.get-list strong {
  color: var(--ink);
  line-height: 1.25;
}

.get-list p {
  color: var(--muted);
  line-height: 1.4;
}

.compact-get .get-list {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.hero-strip div {
  display: grid;
  gap: 5px;
  min-height: 90px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(13, 16, 34, 0.9), rgba(8, 10, 24, 0.86));
}

.hero-strip strong {
  color: var(--ink);
}

.hero-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.section-head {
  display: grid;
  gap: 8px;
  margin: 34px 0 14px;
}

.section-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.section-head p:not(.eyebrow) {
  max-width: min(100%, 1080px);
  color: var(--muted);
  line-height: 1.5;
}

.workbench {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-grid,
.pager-grid,
.contact-panel,
.contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

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

.product-card,
.pager-card,
.contact-panel > div,
.contract-grid > article {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 33, 0.82);
  padding: 16px;
}

.product-card.commercial {
  border-color: rgba(255, 79, 216, 0.5);
  background: linear-gradient(145deg, rgba(84, 215, 255, 0.08), rgba(255, 79, 216, 0.1));
}

.product-card span,
.pager-card span,
.contact-panel span,
.contract-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3,
.pager-card h3,
.contact-panel h3,
.contract-grid h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-card p,
.pager-card p,
.contact-panel p,
.contract-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.contract-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.contract-grid code,
.section-head code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field);
  color: var(--accent-strong);
  padding: 1px 5px;
  font: 0.86em/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.paid-status,
.search-profile,
.pricing-panel,
.paid-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(84, 215, 255, 0.55), rgba(154, 117, 255, 0.55), rgba(255, 79, 216, 0.55));
  margin: 16px 0 20px;
}

.flow-rail div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  background: rgba(7, 8, 17, 0.9);
  padding: 11px 13px;
}

.flow-rail span {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 215, 255, 0.65);
  border-radius: 999px;
  color: var(--accent);
  font: 800 0.82rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.flow-rail strong {
  color: var(--ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.paid-status,
.search-profile,
.pricing-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 18, 40, 0.84), rgba(9, 11, 26, 0.78));
  padding: 18px;
}

.account-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.account-title-row strong {
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.account-title-row p,
.paid-status p {
  color: var(--muted);
  line-height: 1.45;
}

.account-actions,
.package-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.account-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  background: rgba(8, 10, 23, 0.74);
  padding: 12px;
}

.account-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-grid strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
}

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

.credit-breakdown div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.58);
  padding: 12px;
}

.credit-breakdown span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.credit-breakdown strong {
  color: var(--accent-strong);
  font-size: 1.35rem;
  text-align: right;
}

.credit-breakdown small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
}

.advanced-account {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.44);
  padding: 10px 12px;
}

.advanced-account summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.advanced-account .field {
  margin-top: 10px;
}

.advanced-account p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.billing-load {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

.billing-load > div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.58);
  padding: 12px;
}

.billing-load span,
.billing-load small {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.funds-action {
  display: flex;
  align-items: stretch;
}

.funds-action button {
  width: 100%;
  white-space: nowrap;
}

.package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.58);
  padding: 14px;
}

.package-row > div:first-child {
  display: grid;
  gap: 5px;
}

.package-row span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.package-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.package-row small {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.section-head.compact {
  margin: 30px 0 14px;
}

.section-head.compact:first-of-type {
  margin-top: 0;
}

.pricing-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.pricing-scale span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.56);
  color: var(--muted);
  padding: 10px;
  font-size: 0.84rem;
  line-height: 1.35;
}

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

.search-profile div {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.search-profile span,
.file-field span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-profile strong {
  color: var(--ink);
  font-size: 1rem;
}

.search-profile small,
.file-field {
  color: var(--muted);
  line-height: 1.35;
}

.file-field {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.56);
  padding: 12px;
}

.file-field input {
  max-width: 100%;
  color: var(--muted);
}

.file-field small,
.muted-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.result-library-panel {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.result-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.58);
  padding: 12px;
}

.result-card strong {
  overflow-wrap: anywhere;
  font: 800 0.92rem/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.result-card .human-title {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.result-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  line-height: 1.35;
}

.tag-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(84, 215, 255, 0.08);
  padding: 2px 7px;
  font-size: 0.76rem;
  font-weight: 800;
}

.result-card button,
.result-card a {
  min-height: 34px;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
}

.account-ledger-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.library-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.45fr) minmax(130px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.metrics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0 22px;
  background: rgba(7, 8, 17, 0.42);
}

.metrics-table-wrap > h3 {
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.metrics-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  background: rgba(11, 18, 23, 0.86);
}

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

.metrics-table th {
  color: var(--accent-strong);
  font-size: 0.86rem;
  text-transform: uppercase;
}

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

.site-footer {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.brief-panel .masthead {
  margin-top: 22px;
}

.brief-panel h1 {
  max-width: 980px;
}

.brief-grid article p {
  color: var(--muted);
  line-height: 1.45;
}

.status-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.74);
  padding: 14px;
}

.status-title {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stepper {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
}

.stepper li > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.stepper strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.stepper small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
}

.stepper li.is-active {
  border-color: var(--line-strong);
  background: rgba(154, 117, 255, 0.12);
}

.stepper li.is-active > span {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.stepper li.is-done > span {
  border-color: var(--button-hover);
  background: rgba(255, 79, 216, 0.14);
  color: var(--accent-strong);
}

.sample-card {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sample-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
}

.sample-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.step {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 33, 0.82);
  padding: 16px;
}

.step[data-step="1"],
.step[data-step="2"],
.step[data-step="3"],
.step[data-step="4"] {
  min-width: 0;
}

.step[data-step="1"],
.step[data-step="2"] {
  grid-column: span 1;
}

.step[data-step="3"],
.step[data-step="4"] {
  grid-column: span 1;
}

.step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.step-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-strong);
  background: #0d1024;
  font-weight: 900;
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.paid-form .source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-field {
  grid-column: 1 / -1;
}

.paid-form .file-field {
  min-height: 92px;
}

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

.field span {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.char-count {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
}

.query-tools {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.56);
  padding: 12px;
}

.is-hidden {
  display: none;
}

.live-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid rgba(84, 215, 255, 0.36);
  border-radius: 8px;
  background: rgba(18, 20, 48, 0.58);
  padding: 12px;
}

.live-card > span {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.live-card p,
.live-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.query-tools > span {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.query-tools div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.query-tools p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 12px;
  font: 0.88rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  outline: none;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--field-focus);
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--field-focus);
}

textarea[readonly] {
  color: #d4ebe4;
}

.field-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.action-row {
  justify-content: flex-end;
}

.auth-slot {
  min-height: 0;
}

.actions {
  margin-bottom: 2px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: #060917;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--button-hover);
}

.secondary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d1024;
  color: var(--accent-strong);
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.chip-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: #0d1024;
  color: var(--accent-strong);
  padding: 0 12px;
  font-size: 0.86rem;
}

.secondary-button:hover,
.chip-button:hover {
  background: #15183a;
}

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

.secondary-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#output {
  min-height: 278px;
}

#decode-output {
  min-height: 278px;
  color: var(--accent-strong);
}

.result-step {
  border-color: rgba(247, 166, 255, 0.36);
}

.mono-table {
  background: rgba(5, 8, 22, 0.72);
  border: 1px solid rgba(118, 198, 255, 0.24);
  border-radius: 8px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 18px 0 0;
  overflow-x: auto;
  padding: 16px;
  white-space: pre;
}

.trust-ladder {
  margin-bottom: 26px;
}

.trust-ladder article {
  min-height: 168px;
}

@media (max-width: 980px) {
  .masthead,
  .workbench,
  .core-form,
  .hero-strip,
  .product-grid,
  .pager-grid,
  .contact-panel,
  .contract-grid,
  .account-grid,
  .account-title-row,
  .credit-breakdown,
  .billing-load,
  .package-row,
  .account-ledger-panels,
  .library-controls,
  .pricing-scale,
  .search-profile {
    grid-template-columns: 1fr;
  }

  .account-actions,
  .package-actions,
  .action-row {
    justify-content: flex-start;
  }

  .status-panel {
    position: static;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .panel {
    padding: 18px;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .field-actions,
  .actions,
  .account-actions,
  .package-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .secondary-button {
    width: 100%;
  }
}

/* Paid-search hardening: keep controls readable and prevent card buttons from
   colliding with labels, receipts, and saved-result text. */
.paid-status,
.pricing-panel,
.paid-form,
.search-profile {
  min-width: 0;
}

.paid-status *,
.pricing-panel *,
.paid-form *,
.search-profile *,
.hero-strip *,
.flow-rail *,
.top-nav * {
  min-width: 0;
}

.paid-status p,
.pricing-panel p,
.paid-form p,
.search-profile p,
.hero-strip span,
.flow-rail strong,
.lede {
  overflow-wrap: anywhere;
}

.account-title-row,
.package-row {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  align-items: start;
}

.account-actions,
.package-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
}

.account-actions .secondary-button,
.package-actions .secondary-button {
  width: 100%;
}

.billing-load {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(160px, 0.45fr);
}

.account-ledger-panels {
  grid-template-columns: 1fr;
}

.library-controls {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.35fr) minmax(150px, 0.35fr) minmax(120px, 0.25fr);
}

.result-library {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.result-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.result-card small,
.tag-row {
  grid-column: auto;
}

.result-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  width: 100%;
}

.result-card-actions.compact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card button,
.result-card a,
.result-card-actions .secondary-button {
  width: 100%;
  justify-self: stretch;
  white-space: nowrap;
}

.paid-form .source-grid {
  align-items: start;
}

.paid-form .field textarea {
  min-height: 160px;
}

.paid-form .wide-field textarea {
  min-height: 88px;
}

.paid-form .action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-content: stretch;
  align-items: stretch;
}

.paid-form .action-row button,
.paid-form .action-row .secondary-button {
  width: 100%;
}

@media (max-width: 980px) {
  .account-title-row,
  .package-row,
  .billing-load,
  .library-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    width: 100vw;
    max-width: 100vw;
    padding: 10px 0;
  }

  .panel {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    margin: 0 auto;
    border-radius: 8px;
    padding: 14px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px 12px;
    font-size: 0.82rem;
  }

  .top-nav a {
    display: block;
    max-width: 100%;
  }

  .top-nav a:last-child {
    grid-column: 1 / -1;
  }

  .panel *,
  .hero-strip,
  .flow-rail,
  .paid-status,
  .pricing-panel,
  .paid-form,
  .search-profile {
    width: 100%;
    max-width: 100%;
  }

  .lede,
  .panel h1,
  .panel h2,
  .panel p:not(.eyebrow),
  .hero-strip span,
  .paid-status p,
  .pricing-panel p,
  .paid-form p,
  .search-profile p {
    display: block;
    max-width: 100%;
  }

  .flow-rail {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .flow-rail div {
    min-height: 48px;
  }

  .credit-breakdown div {
    grid-template-columns: 1fr;
  }

  .credit-breakdown strong {
    text-align: left;
    font-size: 1.12rem;
  }

  .package-actions,
  .account-actions,
  .result-card-actions,
  .result-card-actions.compact-actions {
    grid-template-columns: 1fr;
  }

  .library-controls {
    grid-template-columns: 1fr;
  }
}

/* Minimal homepage overhaul */
.home-shell {
  width: min(1180px, calc(100% - 24px));
}

.home-panel {
  padding: clamp(14px, 2.4vw, 24px);
}

.minimal-nav {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.minimal-nav a {
  color: var(--muted);
  text-decoration: none;
}

.minimal-nav a:hover {
  color: var(--accent);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: start;
  min-height: calc(100vh - 110px);
  padding: clamp(10px, 2vw, 18px) 0 22px;
}

.hero-copy {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding-top: clamp(8px, 3vw, 36px);
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 6.2vw, 5.5rem);
  line-height: 0.94;
}

.simple-boundary {
  display: grid;
  gap: 8px;
  max-width: 440px;
}

.simple-boundary span {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 12px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(84, 215, 255, 0.09), transparent);
}

.quiet-note {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.45;
}

.instant-search {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.instant-card,
.answer-panel,
.instant-details {
  border: 1px solid rgba(84, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 10, 24, 0.78);
  padding: clamp(12px, 1.8vw, 18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.instant-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.instant-head h2 {
  font-size: 1.15rem;
}

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

.compact-file {
  min-height: 72px;
  padding: 10px;
}

.compact-file input {
  font-size: 0.82rem;
}

.single-file {
  width: min(220px, 100%);
}

.instant-search textarea {
  width: 100%;
  resize: vertical;
}

.status-line,
.char-count {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.instant-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.instant-actions button {
  width: 100%;
  min-height: 44px;
}

.progress-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.progress-pills span {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}

.progress-pills span.is-active,
.progress-pills span.is-done {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(84, 215, 255, 0.12);
}

.instant-details summary {
  cursor: pointer;
  color: var(--accent-strong);
}

.compact-source-grid {
  margin-top: 12px;
}

.answer-panel textarea {
  min-height: 180px;
  font-size: 0.95rem;
}

.quick-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}

.quick-next a {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(13, 16, 34, 0.9), rgba(8, 10, 24, 0.82));
}

.quick-next a:hover {
  border-color: var(--accent);
}

.quick-next span {
  color: var(--muted);
  line-height: 1.35;
}

.plain-section {
  display: grid;
  gap: 12px;
  margin: 42px 0;
}

.plain-section h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.plain-section > p:not(.eyebrow) {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.5;
}

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

.plain-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(9, 11, 24, 0.72);
}

.plain-grid p {
  color: var(--muted);
  line-height: 1.4;
}

.boundary-table {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.boundary-table div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(8, 10, 24, 0.88);
}

.boundary-table span {
  color: var(--accent);
  font-weight: 800;
}

.boundary-table strong {
  overflow-wrap: anywhere;
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-links a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent-strong);
  text-decoration: none;
}

.small-links {
  margin: 0;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .home-hero,
  .plain-grid,
  .quick-next {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .upload-row,
  .instant-head,
  .instant-actions,
  .progress-pills,
  .boundary-table div {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }
}

/* Light-pattern UX pass: first screen should feel like one clear tool. */
.home-panel {
  background: rgba(7, 8, 17, 0.92);
}

.minimal-nav {
  justify-content: flex-end;
  align-items: center;
  margin-bottom: clamp(18px, 4vw, 44px);
}

.minimal-nav .brand-link {
  margin-right: auto;
  color: var(--ink);
  font-weight: 900;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 38px);
  width: min(980px, 100%);
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  align-content: center;
  padding: clamp(14px, 5vw, 54px) 0 clamp(24px, 6vw, 72px);
}

.hero-copy {
  position: static;
  justify-items: center;
  text-align: center;
  padding: 0;
}

.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 7.2vw, 6.4rem);
  line-height: 0.92;
}

.hero-copy .lede {
  max-width: 760px;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  color: #d7d2ff;
}

.search-console {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(84, 215, 255, 0.26);
  border-radius: 8px;
  padding: clamp(16px, 2.8vw, 28px);
  background:
    linear-gradient(135deg, rgba(84, 215, 255, 0.12), rgba(255, 79, 216, 0.065)),
    rgba(8, 10, 24, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), 0 0 44px rgba(84, 215, 255, 0.08);
}

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

.primary-load,
.search-console .secondary-button {
  min-height: 74px;
  border-color: rgba(84, 215, 255, 0.34);
  background: rgba(5, 7, 18, 0.62);
}

.primary-load span,
.search-console .secondary-button {
  font-size: 0.95rem;
  font-weight: 850;
}

.query-entry {
  display: grid;
  gap: 8px;
}

.query-entry > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.query-entry textarea {
  min-height: 112px;
  font-size: clamp(1.05rem, 1.45vw, 1.26rem);
  line-height: 1.35;
  border-color: rgba(154, 117, 255, 0.45);
  background: rgba(4, 5, 14, 0.78);
}

.hero-submit-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hero-submit-row button {
  min-height: 54px;
  width: 100%;
  font-size: 1.04rem;
  font-weight: 900;
}

.hero-submit-row .status-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.whisper-line {
  margin: 0;
  color: #c8c4ee;
  font-size: 0.93rem;
  line-height: 1.45;
}

.paste-details,
.instant-details {
  border: 1px solid rgba(154, 117, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(7, 9, 22, 0.58);
}

.paste-details summary,
.instant-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.paste-details textarea {
  width: 100%;
  margin-top: 12px;
  min-height: 160px;
}

.answer-panel {
  padding: clamp(14px, 2vw, 18px);
  background: rgba(4, 6, 16, 0.76);
}

.answer-panel textarea {
  min-height: 170px;
  background: rgba(3, 4, 12, 0.7);
}

.quick-next {
  margin-top: clamp(20px, 4vw, 44px);
}

@media (max-width: 760px) {
  .home-hero {
    min-height: auto;
    align-content: start;
  }

  .load-strip,
  .hero-submit-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }
}

/* Edge screenshot correction: prevent mobile horizontal clipping. */
.home-panel,
.home-hero,
.hero-copy,
.instant-search,
.search-console,
.answer-panel,
.paste-details,
.instant-details {
  min-width: 0;
}

.hero-copy h1,
.hero-copy .lede,
.whisper-line,
.hero-submit-row .status-line {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .home-shell {
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
  }

  .home-panel {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 14px;
    margin: 0 auto;
  }

  .minimal-nav {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    margin-bottom: 28px;
  }

  .minimal-nav .brand-link {
    margin-right: 0;
  }

  .home-hero {
    width: 100%;
    max-width: 100%;
    gap: 18px;
    padding: 20px 0 26px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.05rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .hero-copy .lede {
    width: 100%;
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .search-console {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .primary-load,
  .search-console .secondary-button {
    min-height: 66px;
  }

  .query-entry textarea {
    min-height: 104px;
    font-size: 1rem;
  }

  .answer-panel textarea {
    min-height: 150px;
  }

  .quick-next,
  .plain-grid,
  .boundary-table,
  .proof-links {
    width: 100%;
    max-width: 100%;
  }
}


.partner-chyron {
  display: grid !important;
  gap: 2px;
  min-width: min(420px, 42vw);
  border: 1px solid rgba(247, 166, 255, 0.34);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink) !important;
  background: linear-gradient(90deg, rgba(84, 215, 255, 0.12), rgba(255, 79, 216, 0.12));
  text-align: center;
}

.partner-chyron span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
}

.partner-chyron small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.partner-chyron:hover {
  border-color: var(--accent-strong);
  color: var(--ink) !important;
}

@media (max-width: 980px) {
  .partner-chyron {
    order: 3;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .partner-chyron {
    order: 2;
    grid-column: 1 / -1;
    padding: 8px 10px;
  }
}


/* Launch polish overrides */
.minimal-nav {
  align-items: center;
  justify-content: flex-start;
}
.brand-link {
  margin-right: auto;
  color: var(--ink);
  font-weight: 900;
}
.partner-chyron {
  display: grid;
  gap: 1px;
  min-width: min(420px, 100%);
  max-width: 520px;
  border: 1px solid rgba(84, 215, 255, 0.4);
  border-radius: 8px;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(84, 215, 255, 0.12), rgba(255, 79, 216, 0.1));
  color: var(--ink);
}
.partner-chyron span,
.partner-chyron small {
  overflow-wrap: anywhere;
}
.partner-chyron span {
  font-size: 0.82rem;
  font-weight: 900;
}
.partner-chyron small {
  color: var(--muted);
  font-size: 0.72rem;
}
.pricing-panel .account-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.pricing-scale {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pricing-scale span {
  min-height: 0;
}
@media (max-width: 760px) {
  .shell {
    width: min(100% - 16px, 1280px);
    padding: 8px 0;
  }
  .panel {
    padding: 14px;
  }
  .top-nav,
  .minimal-nav {
    gap: 8px;
  }
  .brand-link {
    width: auto;
    margin-right: 0;
  }
  .partner-chyron {
    order: 3;
    width: 100%;
    max-width: none;
  }
  .masthead,
  .account-title-row,
  .package-row,
  .credit-breakdown,
  .billing-load,
  .account-ledger-panels,
  .library-controls,
  .hero-strip,
  .flow-rail,
  .search-profile {
    grid-template-columns: 1fr;
  }
  .account-actions,
  .package-actions,
  .hero-actions {
    justify-content: stretch;
  }
  .account-actions > *,
  .package-actions > *,
  .hero-actions > * {
    flex: 1 1 100%;
  }
  .credit-breakdown div {
    grid-template-columns: 1fr;
  }
  .credit-breakdown strong {
    text-align: left;
  }
  .flow-rail {
    gap: 1px;
  }
}


/* Paid-search UX pass: make the human workflow lead, keep account mechanics compact. */
.paid-form {
  order: 1;
  margin-top: 22px;
}
.paid-status {
  order: 2;
}
.pricing-panel {
  order: 3;
}
.search-profile {
  order: 4;
}
.paid-form {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}
.paid-form .step {
  min-width: 0;
}
.paid-form .step:first-child {
  grid-row: span 2;
}
.paid-form .result-step {
  grid-column: 1 / -1;
}
.paid-form .source-grid {
  grid-template-columns: 1fr;
}
.paid-form textarea#paid-source-a {
  min-height: 240px;
}
.paid-form textarea#paid-source-b {
  min-height: 120px;
}
.paid-form #paid-output {
  min-height: 360px;
}
.paid-status,
.pricing-panel,
.search-profile,
.step {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}
.account-ledger-details {
  border: 1px solid rgba(84, 215, 255, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(7, 9, 22, 0.46);
}
.account-ledger-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}
.account-ledger-details[open] summary {
  margin-bottom: 12px;
}
#paid-search-form .file-field input {
  min-height: 34px;
}
@media (max-width: 980px) {
  .paid-form {
    grid-template-columns: 1fr;
  }
  .paid-form .step:first-child,
  .paid-form .result-step {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 760px) {
  .paid-form textarea#paid-source-a,
  .paid-form textarea#paid-output {
    min-height: 220px;
  }
  .paid-form textarea#paid-source-b {
    min-height: 110px;
  }
}


/* Free-credit and pseudoanonymous account signal. */
.hero-credit-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin: 20px auto 0;
}
.hero-credit-strip a {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(84, 215, 255, 0.36);
  border-radius: 8px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(84, 215, 255, 0.12), rgba(255, 79, 216, 0.09));
  text-align: left;
}
.hero-credit-strip strong {
  color: var(--ink);
  font-size: 0.95rem;
}
.hero-credit-strip span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .hero-credit-strip {
    grid-template-columns: 1fr;
  }
}


.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ledger-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 22, 0.72);
  padding: 14px;
}
.ledger-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.ledger-grid strong,
.ledger-grid small {
  overflow-wrap: anywhere;
}
.ledger-grid strong {
  color: var(--ink);
  line-height: 1.3;
}
.ledger-grid code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(84, 215, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 4, 12, 0.74);
  color: var(--accent-strong);
  padding: 10px;
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre;
}
.ledger-grid small {
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 760px) {
  .ledger-grid {
    grid-template-columns: 1fr;
  }
}


.encoder-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.encoder-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.68);
  padding: 12px;
  cursor: pointer;
}
.encoder-option.is-active {
  border-color: rgba(84, 215, 255, 0.66);
  background: linear-gradient(135deg, rgba(84, 215, 255, 0.12), rgba(255, 79, 216, 0.08));
}
.encoder-option.is-disabled {
  opacity: 0.68;
  cursor: not-allowed;
}
.encoder-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}
.encoder-option span,
.encoder-option small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.encoder-option span {
  color: var(--ink);
  font-weight: 900;
}
.encoder-option small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 760px) {
  .encoder-selector {
    grid-template-columns: 1fr;
  }
}


.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  background: rgba(12, 16, 32, 0.7);
  color: var(--muted);
  line-height: 1.45;
}
.notice.warning {
  border-color: rgba(255, 79, 216, 0.36);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.12), rgba(84, 215, 255, 0.07));
  color: var(--ink);
}
.checkbox-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 23, 0.68);
  color: var(--muted);
  line-height: 1.42;
}
.checkbox-line input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  margin-top: 2px;
}
.compact-strip {
  margin: 10px 0 12px;
}
.compact-strip div {
  min-height: 72px;
  padding: 12px;
}


.telemetry-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 4, 12, 0.58);
}
.telemetry-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.telemetry-table th,
.telemetry-table td {
  border-bottom: 1px solid rgba(84, 215, 255, 0.14);
  padding: 10px 11px;
  text-align: left;
  white-space: nowrap;
}
.telemetry-table th {
  color: var(--accent);
  text-transform: uppercase;
}
.telemetry-table td {
  color: #d8d6ff;
}
.telemetry-table tr:last-child td {
  border-bottom: 0;
}

/* Final responsive hardening for launch pages. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.shell,
.panel,
.home-panel,
.brief-panel,
.plain-section,
.paid-status,
.pricing-panel,
.search-profile,
.step,
.what-you-get,
.hero-strip,
.flow-rail,
.account-grid,
.credit-breakdown,
.billing-load,
.package-row,
.account-ledger-panels,
.library-controls,
.pricing-scale,
.source-grid,
.ledger-grid,
.contract-grid,
.brief-grid,
.get-list,
.telemetry-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.top-nav a,
.minimal-nav a,
button,
.secondary-button,
input,
select,
textarea,
code,
td,
th,
h1,
h2,
h3,
p,
span,
small,
strong {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .top-nav,
  .minimal-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
    justify-content: stretch;
  }

  .minimal-nav .brand-link {
    margin-right: 0;
  }

  .partner-chyron {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    border-radius: 8px;
  }

  .get-list,
  .plain-grid,
  .contract-grid,
  .brief-grid,
  .ledger-grid,
  .hero-strip,
  .flow-rail,
  .account-grid,
  .credit-breakdown,
  .billing-load,
  .package-row,
  .account-ledger-panels,
  .library-controls,
  .pricing-scale,
  .search-profile,
  .paid-form,
  .source-grid,
  .paid-form .source-grid,
  .encoder-selector,
  .hero-credit-strip {
    grid-template-columns: 1fr !important;
  }

  .panel,
  .home-panel,
  .brief-panel,
  .plain-section,
  .paid-status,
  .pricing-panel,
  .search-profile,
  .step {
    padding-left: 16px;
    padding-right: 16px;
  }

  .telemetry-table {
    min-width: 760px;
  }
}

/* Final narrow-screen readability pass. */
@media (max-width: 520px) {
  .home-panel,
  .panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-copy h1,
  .masthead h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.02;
    max-width: 10ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .lede,
  .masthead .lede {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.93rem;
    line-height: 1.46;
  }

  .home-hero,
  .hero-copy,
  .instant-search,
  .search-console,
  .paid-form,
  .step {
    overflow: hidden;
  }

  .partner-chyron {
    padding-left: 10px;
    padding-right: 10px;
  }

  .partner-chyron span {
    font-size: 0.82rem;
  }

  .partner-chyron small {
    font-size: 0.7rem;
  }
}

/* Ultra-narrow launch viewport guard. */
@media (max-width: 520px) {
  .shell,
  .home-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .home-panel,
  .panel {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy h1,
  .masthead h1 {
    max-width: 9ch;
    font-size: clamp(1.85rem, 9.2vw, 2.45rem);
  }

  .hero-copy .lede,
  .masthead .lede {
    max-width: 27ch;
  }
}

