:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #1f4fd6;
  --brand-2: #0f2f84;
  --ok: #0f8f4e;
  --warn: #b76e00;
  --bad: #b42318;
  --soft: #eef4ff;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--ink);
  color: white;
  padding: .6rem .9rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 282px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #0d1426;
  color: white;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6ea8fe, #1f4fd6);
  font-weight: 800;
  color: white;
}

.logo h1 {
  font-size: 1.02rem;
  line-height: 1.1;
  margin: 0;
}

.logo small {
  display: block;
  color: #a8b3cf;
  margin-top: 3px;
}

.nav-label {
  margin: 20px 10px 8px;
  font-size: .72rem;
  color: #8d99b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #c7d0e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 4px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-item .pill {
  font-size: .68rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #c7d0e8;
}

.sidebar-footer {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.sidebar-footer strong {
  display: block;
  margin-bottom: 6px;
}

.sidebar-footer span {
  color: #a8b3cf;
  font-size: .86rem;
  line-height: 1.35;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(246, 247, 251, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,.9);
}

.topbar h2 {
  margin: 0;
  font-size: 1rem;
}

.topbar span {
  color: var(--muted);
  font-size: .88rem;
}

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

.content {
  max-width: 1220px;
  padding: 28px;
  margin: 0 auto 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

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

.hero-card {
  padding: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-2);
  background: #dbeafe;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: clamp(2.05rem, 4vw, 3.55rem);
  line-height: .95;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}

.hero p {
  color: #475467;
  font-size: 1.03rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 22px;
}

.hero-actions,
.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-stack {
  display: grid;
  gap: 12px;
}

.metric {
  padding: 22px;
}

.metric strong {
  font-size: 1.55rem;
  display: block;
}

.metric span {
  color: var(--muted);
  line-height: 1.4;
  font-size: .9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.btn.dark {
  background: #0d1426;
  border-color: #0d1426;
  color: white;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 7px 10px;
  font-size: .86rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header h3,
.card h4 {
  margin: 0 0 6px;
}

.panel-header p,
.card p,
.help-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.card {
  padding: 18px;
}

.card h4 {
  font-size: 1rem;
}

.card .tag-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 5px 8px;
  font-size: .76rem;
  font-weight: 700;
}

.tag.blue {
  background: #dbeafe;
  color: #1e3a8a;
}

.tag.green {
  background: #dcfce7;
  color: #166534;
}

.tag.orange {
  background: #ffedd5;
  color: #9a3412;
}

.tag.red {
  background: #fee2e2;
  color: #991b1b;
}

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

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

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

label {
  font-size: .84rem;
  font-weight: 800;
  color: #344054;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,79,214,.12);
}

.output {
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #0b1220;
  color: #dbeafe;
  padding: 16px;
  min-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.48;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .88rem;
}

.output.light {
  background: #f8fafc;
  color: var(--ink);
  font-family: inherit;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  background: #94a3b8;
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.warn {
  background: var(--warn);
}

.status-dot.bad {
  background: var(--bad);
}

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

.step {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.step b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  margin-bottom: 9px;
}

.step span {
  display: block;
  color: #475467;
  line-height: 1.35;
  font-size: .88rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: white;
}

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

th {
  background: #f8fafc;
  font-size: .78rem;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: .05em;
}

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

.market-page {
  display: none;
}

.market-page.active,
.tool-page.active {
  display: block;
}

.tool-page {
  display: none;
}

.callout {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 16px;
  padding: 16px;
  color: #1e3a8a;
  line-height: 1.45;
}

.callout.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.callout.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.loading {
  opacity: .7;
  pointer-events: none;
}

.empty {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
  background: #f8fafc;
}

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

.partner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
}

.checklist input {
  width: auto;
  margin-top: 2px;
}

.kbd {
  display: inline-block;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 8px;
  padding: 2px 6px;
  background: #f8fafc;
  font-size: .75rem;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .nav-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .content,
  .topbar {
    padding: 18px;
  }
  .hero-card {
    padding: 24px;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .partner-card {
    grid-template-columns: 1fr;
  }
}

/* ===== v2 Layout (5-tab + paste box landing) ===== */
.app-shell { display: block; min-height: 100vh; }

.topnav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(23,32,51,0.03);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
}
.brand {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.brand .logo-mark {
  background: var(--brand); color: white;
  border-radius: 10px; padding: 6px 10px;
  font-weight: 700; letter-spacing: 0.5px;
}
.brand-name { font-size: 1.05rem; }
.primary-nav { display: flex; gap: 4px; flex: 1; }
.nav-tab {
  background: transparent; border: 0;
  padding: 11px 18px; border-radius: 10px;
  color: var(--muted); font-weight: 600;
  font-size: 1.18rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-tab:hover { background: var(--soft); color: var(--ink); }
.nav-tab.active { background: var(--soft); color: var(--brand-2); }
.topnav-actions { display: flex; align-items: center; gap: 12px; }
.nav-tagline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 28px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.usage-pill {
  background: var(--soft); color: var(--brand-2);
  padding: 5px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
}
.usage-pill.green { background: #ecfdf5; color: var(--ok); }
.usage-pill.orange { background: #fff7ed; color: var(--warn); }
.usage-pill.red { background: #fef2f2; color: var(--bad); }

main#main {
  max-width: 1200px; margin: 0 auto; padding: 36px 28px 80px;
}

.hero-paste {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .hero-paste { grid-template-columns: 1fr 1.4fr; align-items: center; }
}
.hero-copy h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 12px; }
.hero-copy .hero-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.paste-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.paste-card textarea {
  width: 100%; min-height: 220px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}
.paste-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}

.result-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 900px) { .result-grid { grid-template-columns: 1fr 1fr; } }

.btn-link {
  background: transparent; border: 0; color: var(--brand);
  text-decoration: underline; padding: 0; cursor: pointer;
}

/* Account drawer */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer.open { pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(13,20,38,0.4);
  opacity: 0; transition: opacity 180ms ease;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 100%);
  background: #fff; box-shadow: -8px 0 30px rgba(13,20,38,0.18);
  transform: translateX(100%); transition: transform 220ms ease;
  display: flex; flex-direction: column;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; }
.drawer-body {
  padding: 18px 22px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.card.subtle {
  background: #fafbff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.card.subtle input[type="email"],
.card.subtle input[type="password"],
.card.subtle input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; margin-top: 8px;
}

/* Modals (email gate, paywall) */
.modal { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.modal.open { pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(13,20,38,0.5);
  opacity: 0; transition: opacity 180ms ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; max-width: 560px; margin: 8vh auto;
  background: #fff; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0; transition: opacity 200ms ease, transform 200ms ease;
}
.modal.open .modal-panel { transform: translateY(0); opacity: 1; }
.modal-panel h3 { margin-top: 0; }

.pricing-card { display: flex; flex-direction: column; }
.pricing-card .price { font-size: 2rem; margin: 8px 0 14px; }
.pricing-card .price strong { font-size: 2.4rem; }
.pricing-card .price span { color: var(--muted); margin-left: 4px; font-size: 0.95rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.pricing-card ul li {
  padding: 8px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 0.95rem;
}
.pricing-card ul li:last-child { border-bottom: 0; }

.empty {
  text-align: center; color: var(--muted); padding: 30px;
  border: 1px dashed var(--line); border-radius: 14px;
}

@media (max-width: 680px) {
  .topnav-inner { flex-wrap: wrap; padding: 12px 16px; }
  .primary-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-top: 6px; }
  main#main { padding: 18px; }
  .hero-copy h1 { font-size: 1.6rem; }
}

/* ===== EDI-AI brand polish ===== */
.logo-mark-img {
  width: 200px; height: 178px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--soft);
  padding: 6px;
  flex: 0 0 auto;
}

.brand-stack { display: inline-flex; flex-direction: column; line-height: 1.1; align-items: center; text-align: center; }
.brand-stack .brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.3px; }
.brand-stack .brand-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.3px; }

.nav-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  font-size: 0.92rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px; margin-right: 0;
  background: var(--soft); color: var(--brand-2);
  flex: 0 0 auto;
}
.nav-tab.active .nav-num { background: var(--brand); color: #fff; }

/* Step labels and intro blocks */
.step-eyebrow {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--brand-2); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.4px; text-transform: uppercase;
  margin-bottom: 10px;
}
.page-intro {
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.page-intro h2 { margin: 6px 0 8px; }
.page-intro p { color: var(--muted); margin: 0 0 12px; }
.bullet-clean {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.bullet-clean li { color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.bullet-clean li strong { color: var(--brand-2); }

.info-strip {
  margin-top: 18px; padding: 14px 18px;
  background: #f0f7ff; border: 1px dashed #c7dbf7; border-radius: 14px;
  color: var(--brand-2); font-size: 0.95rem;
}

/* Window numbers (callouts inside panel headers) */
.window-num {
  display: inline-block;
  padding: 2px 9px; border-radius: 999px;
  background: var(--soft); color: var(--brand-2);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  margin-right: 8px; text-transform: uppercase;
}
.window-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 0.85rem; color: var(--muted);
}
.window-head .window-title { font-weight: 600; color: var(--ink); }

/* ===== Panel color variants (subtle tints per section) ===== */
/* Step 1 — Validate (blue) */
.section-validate .panel-validate {
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
  border-left: 4px solid #3b82f6;
}
.section-validate .panel-explain {
  background: linear-gradient(180deg, #faf7ff, #ffffff);
  border-left: 4px solid #8b5cf6;
}
.section-validate .paste-card {
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
  border-left: 4px solid #3b82f6;
}

/* Step 2 — Explain (purple) */
.section-explain .panel-explain {
  background: linear-gradient(180deg, #faf7ff, #ffffff);
  border-left: 4px solid #8b5cf6;
}
.section-explain .panel-explain-soft {
  background: linear-gradient(180deg, #fdfcff, #ffffff);
  border-left: 4px solid #a78bfa;
}

/* Step 3 — Map (green/teal) */
.section-map .panel-map {
  background: linear-gradient(180deg, #f3fbf6, #ffffff);
  border-left: 4px solid #10b981;
}
.section-map .panel-map-soft {
  background: linear-gradient(180deg, #f7fdf9, #ffffff);
  border-left: 4px solid #34d399;
}

/* Step 4 — Partners (amber) */
.section-partners .panel-partners {
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  border-left: 4px solid #f59e0b;
}
.section-partners .panel-partners-soft {
  background: linear-gradient(180deg, #fffcf5, #ffffff);
  border-left: 4px solid #fbbf24;
}

/* Step 5 — Resources (rose/coral) */
.section-resources .panel-resources {
  background: linear-gradient(180deg, #fff5f7, #ffffff);
  border-left: 4px solid #f43f5e;
}
.section-resources .panel-resources-soft {
  background: linear-gradient(180deg, #fff8f9, #ffffff);
  border-left: 4px solid #fb7185;
}
.section-resources .panel-pricing {
  background: linear-gradient(180deg, #fdf4ff, #ffffff);
  border-left: 4px solid #c026d3;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  background: #fff; margin-top: 60px;
}
.foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.9rem;
}
.foot-inner a { color: var(--brand); text-decoration: none; }
.foot-inner a:hover { text-decoration: underline; }
.foot-sub { font-style: italic; }

@media (max-width: 680px) {
  .foot-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ===== Privacy chip (Bring-your-own-key state indicator) ===== */
.privacy-chip {
  margin-top: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  font-size: 0.92rem; line-height: 1.45;
}
.privacy-chip:empty { display: none; }
.privacy-chip .lock { font-size: 1.2rem; flex: 0 0 auto; line-height: 1.2; }
.privacy-chip strong { color: inherit; }
.privacy-chip .btn-link { font-weight: 600; }
.privacy-chip.on {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.privacy-chip.on .lock { filter: drop-shadow(0 0 0 #991b1b); }
.privacy-chip.on .btn-link { color: #991b1b; }
.privacy-chip.off {
  background: #f0f7ff;
  border: 1px dashed #bdd6fb;
  color: var(--brand-2);
}

/* BYO card highlight when active (private mode) */
.card.byo-card.on {
  background: linear-gradient(180deg, #fef2f2, #ffffff);
  border-color: #fecaca;
}

/* Usage pill — private mode */
.usage-pill.private {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
