:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e0e7;
  --panel: #ffffff;
  --surface: #f5f7fa;
  --brand: #08916f;
  --brand-dark: #05634e;
  --blue: #2357d9;
  --dark: #172033;
  --amber: #b7791f;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.product-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid #cfd8e3;
  background: #101828;
  color: #fff;
  padding: 24px;
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #10b981;
  color: #052e25;
  font-weight: 900;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup small {
  margin-top: 3px;
  color: #b8c4d5;
}

.nav-stack {
  display: grid;
  gap: 6px;
}

.nav-stack a {
  border-radius: 8px;
  color: #cbd5e1;
  font-weight: 800;
  padding: 12px 14px;
  text-decoration: none;
}

.nav-stack a.is-active,
.nav-stack a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.network-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #dbeafe;
  font-weight: 800;
  padding: 12px;
}

.network-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.main-stage {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 20px;
  align-items: stretch;
}

.topbar > div:first-child,
.wallet-cluster,
.metrics-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar > div:first-child {
  padding: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.wallet-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  padding: 18px;
}

.wallet-cluster .button {
  grid-column: 1 / -1;
}

.topbar-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.stack-chips {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stack-chips span {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 11px 10px;
  text-align: center;
}

.wallet-stat {
  min-width: 0;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.wallet-stat span,
.metrics-grid span,
.address-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wallet-stat strong,
.metrics-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-dark {
  background: var(--dark);
  color: #fff;
}

.button-soft {
  background: #eef4ff;
  color: #1d4ed8;
}

.button-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

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

.metrics-grid article {
  padding: 18px;
}

.metrics-grid strong {
  font-size: 1.35rem;
}

.deal-grid,
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 18px;
}

.lower-grid {
  margin-top: 18px;
}

.panel {
  padding: 22px;
}

.section-heading {
  margin-bottom: 18px;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

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

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 145, 111, 0.14);
}

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

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

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

.payment-actions {
  margin: 16px 0 18px;
}

.invoice-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.invoice-box span,
.passport-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.invoice-box strong,
.passport-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.invoice-box img {
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.invoice-box .button {
  grid-column: 1 / -1;
}

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

.feature-strip article,
.action-grid article,
.insight-box,
.credential-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 13px;
}

.feature-strip strong,
.action-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.feature-strip span,
.action-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-strip article span {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: none;
}

.address-strip {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.address-strip button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
  overflow-wrap: anywhere;
  padding: 0;
  text-align: left;
}

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

.split-planner {
  margin: 18px 0;
}

.insight-box,
.credential-box {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.insight-box.is-error {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff4f3;
  color: var(--danger);
}

.credential-box {
  margin-top: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.timeline-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e7f5ef;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline-step strong,
.pitch-list strong {
  display: block;
  margin-bottom: 5px;
}

.timeline-step p,
.pitch-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.timeline-step.is-complete {
  border-color: rgba(8, 145, 111, 0.45);
  background: #f2fbf7;
}

.timeline-step.is-complete > span {
  background: var(--brand);
  color: #fff;
}

.message-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
  padding: 14px 16px;
}

.message-box.is-error {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff4f3;
  color: var(--danger);
}

.message-box.is-success {
  border-color: rgba(8, 145, 111, 0.35);
  background: #effdf7;
  color: var(--brand-dark);
}

.verifier-result,
.receipt-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
  margin-top: 14px;
  padding: 14px;
}

.verifier-result.is-pass,
.receipt-box.is-issued {
  border-color: rgba(8, 145, 111, 0.35);
  background: #effdf7;
  color: var(--brand-dark);
}

.verifier-result.is-review {
  border-color: rgba(183, 121, 31, 0.35);
  background: #fff8eb;
  color: var(--amber);
}

.passport-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(118px, 0.32fr) minmax(118px, 0.32fr) minmax(100px, 0.26fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.passport-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font-weight: 900;
}

.transaction-log,
.pitch-list,
.architecture-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tx-row,
.pitch-list article,
.architecture-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.architecture-panel {
  margin-top: 18px;
}

.action-panel {
  margin-top: 18px;
}

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

.architecture-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.architecture-grid strong {
  display: block;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.architecture-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.tx-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.tx-row a {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar,
  .deal-grid,
  .lower-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-stage,
  .sidebar {
    padding: 14px;
  }

  .nav-stack,
  .metrics-grid,
  .form-row,
  .three-cols,
  .feature-strip,
  .action-grid,
  .wallet-cluster,
  .stack-chips,
  .invoice-box,
  .passport-card {
    grid-template-columns: 1fr;
  }

  .panel,
  .topbar > div:first-child,
  .wallet-cluster {
    padding: 16px;
  }

  .split-heading,
  .tx-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
