/* ─────────────────────────────────────────────────────
   MIDDLEMARK — design system extracted from escrow.com
   navy #01426a / #002b49 · green CTA #3cb95d · azure #08f
   Montserrat headings · Roboto body · 4px radii
   ───────────────────────────────────────────────────── */

:root {
  --navy: #01426a;          /* header, hero, primary brand */
  --navy-dark: #002b49;     /* footer, darkest */
  --heading: #2b3340;       /* section/heading text */
  --text: #4f5759;          /* body text */
  --muted: #7f8c8d;         /* secondary text */
  --link: #0088ff;          /* azure links + info */
  --green: #3cb95d;         /* CTA / success */
  --green-dark: #217f2d;
  --green-tint: #eefbf3;
  --red: #ec1010;
  --red-tint: #fdeeee;
  --amber: #b7791f;
  --amber-tint: #fdf5e4;
  --blue-tint: #e9f4ff;
  --line: #e8eef2;          /* borders, dividers */
  --line-strong: #d4d9db;
  --bg-alt: #f5f7f9;        /* light sections / app bg */
  --gray-tint: #eef1f3;
  --head-font: 'Montserrat', Helvetica, Arial, sans-serif;
  --body-font: 'Roboto', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --card-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(0, 136, 255, 0.18); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

b, strong { color: var(--heading); font-weight: 500; }

.mono { font-family: var(--mono); font-size: 0.92em; }
.gold { color: var(--navy); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.cap { text-transform: capitalize; }
.inline-form { display: inline; }

/* ── header — navy bar like escrow.com ───── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--head-font);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.seal { width: 27px; height: 27px; color: #fff; flex: none; }

/* mobile menu toggle — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
.nav-toggle-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--navy);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-dot { display: none; }

.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-mod { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.queue-badge {
  font-size: 0.7rem;
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-weight: 700;
}

.nav-user {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  padding: 7px 14px;
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  transition: background 0.15s, border-color 0.15s;
}
.nav-user:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.nav-user-out { color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; }
.nav-user:hover .nav-user-out { color: #fff; }

/* ── flash ───────────────────────────────── */
.flash-stack { max-width: 1200px; margin: 16px auto 0; padding: 0 clamp(20px, 4vw, 48px); width: 100%; }
.flash {
  border: 1px solid;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.93rem;
  background: #fff;
  animation: rise-in 0.3s ease both;
}
.flash-good { border-color: #b3e3c3; color: var(--green-dark); background: var(--green-tint); }
.flash-bad { border-color: #f3bcbc; color: #a30b0b; background: var(--red-tint); }
.flash-warn { border-color: #eed9a9; color: #7a5310; background: var(--amber-tint); }

/* ── buttons — escrow.com spec ───────────── */
.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  min-height: 36px;
  padding: 9px 19px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.1s linear;
  text-align: center;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

/* primary = escrow.com green CTA */
.btn-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: #35a854; border-color: #35a854; }

/* ghost = escrow.com default button (white gradient) */
.btn-ghost {
  border-color: var(--muted);
  color: var(--text);
  background: linear-gradient(180deg, #fff 0, var(--line));
}
.btn-ghost:hover { border-color: var(--text); color: var(--heading); }

.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-quiet { background: none; border: none; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; padding: 8px 0; min-height: 0; }
.btn-quiet:hover { color: var(--red); }

.btn-sm { min-height: 30px; padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* large hero buttons */
.btn-lg { min-height: 46px; padding: 12px 24px; font-size: 17px; min-width: 180px; }

/* ── type ────────────────────────────────── */
/* eyebrow = escrow.com sectionHero-tag */
.eyebrow {
  display: inline-block;
  background: rgba(1, 66, 106, 0.12);
  border-radius: 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 14px;
}

.page-title, .section-title, .card-title {
  font-family: var(--head-font);
  color: var(--heading);
  letter-spacing: 0;
}
.page-title { font-size: clamp(1.5rem, 2.8vw, 1.9rem); font-weight: 600; line-height: 1.2; }
.section-title { font-size: clamp(1.55rem, 2.9vw, 2.125rem); font-weight: 500; line-height: 1.18; }
.card-title { font-size: 1.45rem; font-weight: 600; margin-bottom: 16px; }

/* ── layout ──────────────────────────────── */
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 48px) 72px;
  flex: 1;
}
.page-narrow { max-width: 560px; }
.page-mid { max-width: 820px; }
.page-wide { max-width: 1280px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── landing ─────────────────────────────── */
.landing { flex: 1; background: #fff; }

/* hero — navy like escrow.com sectionHero */
.hero { background: var(--navy); color: #fff; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 84px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }

.hero-title {
  font-family: var(--head-font);
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.07;
  color: #fff;
  margin-bottom: 14px;
}
.hero-title em { font-style: normal; color: #fff; }
.hero-sub {
  font-size: 1.19rem;
  line-height: 1.47;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

/* hollow white secondary on navy */
.hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.hero-points { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-points span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding-left: 24px;
}
.hero-points span::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* hero widget — live deal calculator (escrow.com heroCard treatment) */
.hero-card-wrap { position: relative; }
.calc-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 4px;
  padding: 26px 28px 22px;
  box-shadow: var(--card-shadow);
  color: var(--text);
  animation: rise-in 0.6s ease both 0.15s;
}
.calc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 16px;
}
.calc-head .icon { color: var(--green); }
.calc-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.calc-role {
  border: none;
  background: #fff;
  padding: 10px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: 0.12s linear;
}
.calc-role + .calc-role { border-left: 1px solid var(--line-strong); }
.calc-role:hover { color: var(--heading); }
.calc-role.active { background: var(--navy); color: #fff; font-weight: 600; }
.calc-price { display: flex; gap: 8px; }
.calc-price select { width: 96px; flex: none; }
.calc-rows { margin: 18px 0 14px; }
.calc-rows > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}
.calc-rows b { font-weight: 500; color: var(--heading); }
.calc-total { border-bottom: none !important; padding-top: 14px !important; }
.calc-total span { color: var(--heading); font-weight: 700; }
.calc-total b { color: var(--green-dark); font-size: 1.12rem; font-weight: 700; }
.calc-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* status badges */
.stamp {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid;
  border-radius: 3px;
  white-space: nowrap;
}
.stamp-lg { font-size: 12px; padding: 7px 16px; }
.stamp-good { color: var(--green-dark); background: var(--green-tint); border-color: #b3e3c3; }
.stamp-bad { color: #a30b0b; background: var(--red-tint); border-color: #f3bcbc; }
.stamp-warn { color: #7a5310; background: var(--amber-tint); border-color: #eed9a9; }
.stamp-info { color: var(--navy); background: var(--blue-tint); border-color: #bcdcf8; }
.stamp-muted { color: var(--muted); background: var(--gray-tint); border-color: var(--line-strong); }

/* trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  flex-wrap: wrap;
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-strip span {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-left: 22px;
}
.trust-strip span::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* sections — centered headings like escrow.com */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) clamp(20px, 4vw, 48px);
}
.section-head { margin: 0 auto 44px; max-width: 780px; text-align: center; }
.section-head .section-title { margin-bottom: 8px; }

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.section-split .muted { margin-top: 16px; font-size: 1.02rem; line-height: 1.5; }

.ledger-steps { list-style: none; }
.ledger-steps li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: clamp(14px, 3vw, 28px);
  align-items: start;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
}
.ledger-steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.ledger-steps h3 { font-family: var(--head-font); font-size: 1.05rem; font-weight: 600; color: var(--heading); margin-bottom: 5px; }
.ledger-steps p { color: var(--text); font-size: 0.96rem; line-height: 1.5; max-width: 58ch; }
.ledger-steps em { color: var(--navy); font-style: normal; font-weight: 500; }

.who {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9px;
  margin-top: 10px;
}
.who-buyer { color: var(--navy); background: var(--blue-tint); }
.who-seller { color: #7a5310; background: var(--amber-tint); }
.who-escrow { color: #fff; background: var(--green); }
.who-both { color: var(--muted); background: var(--gray-tint); }

.fee-card {
  background: #fff;
  border-radius: 4px;
  padding: 26px 30px;
  box-shadow: var(--card-shadow);
}
.fee-facts { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.fee-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.fee-facts .icon { margin-top: 2px; }
.fee-table-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: 14px;
}
.fee-table-head .icon { color: var(--green); }
.fee-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fee-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 8px 0 8px 10px;
  border-bottom: 1px solid var(--line-strong);
}
.fee-table th:first-child, .fee-table td:first-child { text-align: left; padding-left: 0; }
.fee-table td {
  text-align: right;
  padding: 11px 0 11px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--heading);
  white-space: nowrap;
}
.fee-table tr:last-child td { border-bottom: none; }
.fee-table .fee-net { color: var(--green-dark); font-weight: 600; }
.fee-min-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--gray-tint);
  border-radius: 9px;
  padding: 2px 7px;
  vertical-align: 1px;
}
.fee-table-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

/* fees section gets the light band */
#fees { max-width: none; background: var(--bg-alt); border-block: 1px solid var(--line); }
#fees > div { max-width: 1080px; margin: 0 auto; }
.section-split#fees {
  display: grid;
  padding-left: max(calc((100% - 1080px) / 2 + 20px), 20px);
  padding-right: max(calc((100% - 1080px) / 2 + 20px), 20px);
}

/* disputes — rulings card + evidence list */
.mini-head {
  font-family: var(--head-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 22px;
}
.ruling-list { list-style: none; }
.ruling-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.ruling-list li:last-child { border-bottom: none; }
.ruling-list .pill { margin-top: 2px; min-width: 68px; text-align: center; }
.ruling-list b { display: block; font-size: 0.95rem; color: var(--heading); }
.ruling-list small { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.45; margin-top: 1px; }

/* closing CTA — navy band like escrow.com */
.cta-band {
  max-width: none;
  background: var(--navy);
  text-align: center;
  padding: clamp(48px, 8vh, 80px) 20px;
  margin: 0;
}
.cta-band .section-title { color: #fff; }
.cta-band .muted { color: rgba(255, 255, 255, 0.8); margin: 12px 0 26px; }

/* ── stats ───────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.stat-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat {
  background: #fff;
  border-radius: 4px;
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
}
.stat-hot { box-shadow: inset 0 3px 0 var(--green), var(--card-shadow); }
.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.stat-value { font-family: var(--head-font); font-size: 1.6rem; font-weight: 700; color: var(--heading); }
.stat-value.mono { font-family: var(--head-font); font-size: 1.45rem; }
.stat-hot .stat-value { color: var(--green-dark); }

/* ── ledger table ────────────────────────── */
.ledger {
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 0.9fr 1.4fr 0.7fr;
  gap: 14px;
  align-items: center;
  padding: 13px 20px;
}
.ledger-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.ledger-row {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background 0.1s;
  font-size: 0.93rem;
}
.ledger-row:last-child { border-bottom: none; }
a.ledger-row:hover { background: #fafcfd; text-decoration: none; }
.row-action { box-shadow: inset 3px 0 0 var(--green); background: var(--green-tint); }
.cell-deal { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-deal b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.cell-deal small { color: var(--muted); font-size: 0.78rem; }
.cell-deal small.mono { font-family: var(--body-font); }

/* pills */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9px;
  white-space: nowrap;
}
.pill-good { color: var(--green-dark); background: var(--green-tint); }
.pill-bad { color: #a30b0b; background: var(--red-tint); }
.pill-warn { color: #7a5310; background: var(--amber-tint); }
.pill-info { color: var(--navy); background: var(--blue-tint); }
.pill-muted { color: var(--muted); background: var(--gray-tint); }
.pill-gold { color: #fff; background: var(--navy); }
.pill-act { color: #fff; background: var(--green); margin-left: 6px; }
a.pill:hover { text-decoration: none; filter: brightness(0.95); }

/* ── steps progress ──────────────────────── */
.steps {
  list-style: none;
  display: flex;
  margin-bottom: 26px;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.step:last-child { border-right: none; }
.step-dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  background: #fff;
}
.step-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step-done .step-name { color: var(--green-dark); }
.step-now { background: var(--blue-tint); }
.step-now .step-dot { border-color: var(--navy); color: var(--navy); }
.step-now .step-name { color: var(--navy); }

/* ── deal page ───────────────────────────── */
.deal-head { align-items: center; }
.deal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.deal-main, .deal-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.panel {
  background: #fff;
  border-radius: 4px;
  padding: 24px 26px;
  box-shadow: var(--card-shadow);
}
.panel-title {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.panel p { line-height: 1.5; }
.panel-action { box-shadow: inset 0 3px 0 var(--navy), var(--card-shadow); }
.panel-action .btn { margin-top: 8px; }
.panel-mod { box-shadow: inset 0 3px 0 var(--link), var(--card-shadow); }
.panel-done { box-shadow: inset 0 3px 0 var(--green), var(--card-shadow); }

.banner {
  border-radius: 4px;
  border: 1px solid;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.banner p { margin-top: 6px; }
.banner-bad { border-color: #f3bcbc; background: var(--red-tint); color: var(--text); }
.banner-bad b { color: var(--red); }
.banner-muted { border-color: var(--line-strong); background: var(--bg-alt); }

.code-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 20px;
  background: var(--blue-tint);
  border: 1px dashed #9cc7ea;
  border-radius: 4px;
}
.code-big { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.1em; color: var(--navy); font-weight: 600; }

.agree-state { display: flex; gap: 10px; margin-top: 16px; }

.pay-instructions {
  font-family: var(--mono);
  font-size: 0.84rem;
  white-space: pre-wrap;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 12px 0 18px;
  color: var(--heading);
  line-height: 1.7;
}

/* payment / payout callout — key details highlighted */
.pay-callout {
  background: var(--blue-tint);
  border: 1px solid #bcdcf8;
  border-radius: 6px;
  padding: 6px 18px;
  margin: 14px 0 16px;
}
.pay-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(1, 66, 106, 0.1);
  font-size: 0.92rem;
}
.pay-line:last-child { border-bottom: none; }
.pay-line span { color: var(--muted); flex: none; }
.pay-line b { color: var(--navy); text-align: right; word-break: break-word; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-bottom: 20px; }
.kv-list { display: flex; flex-direction: column; }
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-word; }

.terms-block { margin: 10px 0 20px; }
.terms-text {
  white-space: pre-wrap;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 0 4px 4px 0;
  padding: 15px 18px;
  margin-top: 10px;
}

/* chat */
.chat-scroll {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 14px;
}
.chat-empty { font-size: 0.9rem; }
.msg { max-width: 82%; align-self: flex-start; }
.msg-mine { align-self: flex-end; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 0.78rem; margin-bottom: 3px; }
.msg-mine .msg-meta { justify-content: flex-end; }
.msg-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 9px;
}
.tag-buyer { color: var(--navy); background: var(--blue-tint); }
.tag-seller { color: #7a5310; background: var(--amber-tint); }
.tag-escrow { color: #fff; background: var(--navy); }
.msg-body {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px 6px 6px 2px;
  padding: 10px 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--heading);
}
.msg-mine .msg-body {
  background: var(--blue-tint);
  border-color: #cbe2f7;
  border-radius: 6px 6px 2px 6px;
}
.chat-form { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.chat-form input[name='body'] { flex: 1; }

/* timeline */
.timeline { list-style: none; position: relative; padding-left: 4px; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: #fff;
  margin-top: 4px;
  z-index: 1;
}
.timeline li:last-child .tl-dot { background: var(--green); }
.timeline b { font-size: 0.9rem; font-weight: 500; }
.timeline .muted { font-size: 0.82rem; }
.tl-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 10px;
  margin: 4px 0;
}

/* danger zone */
.danger-zone {
  border: 1px solid #f3bcbc;
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}
.danger-zone summary {
  cursor: pointer;
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 500;
}
.danger-zone details[open] summary { margin-bottom: 14px; }

/* ── forms ───────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.85rem; font-weight: 500; color: var(--heading); }
.field-hint { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

input, select, textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--heading);
  font-family: var(--body-font);
  font-size: 0.95rem;
  padding: 10px 13px;
  width: 100%;
  transition: border-color 0.1s, box-shadow 0.1s;
}
/* escrow.com focus: green ring */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
input::placeholder, textarea::placeholder { color: #a4b0b1; }
textarea { resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237f8c8d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.input-code { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.16em; text-align: center; text-transform: uppercase; }

/* captcha */
.captcha-box { display: flex; align-items: center; gap: 12px; }
.captcha-img { display: inline-flex; line-height: 0; border-radius: 6px; overflow: hidden; flex: none; }
.captcha-img svg { display: block; }
.captcha-refresh {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.captcha-refresh:hover { color: var(--navy); border-color: var(--navy); text-decoration: none; }
.input-captcha { letter-spacing: 0.14em; text-transform: uppercase; }

.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-opt { position: relative; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 14px 17px;
  background: #fff;
  transition: border-color 0.1s, box-shadow 0.1s;
}
.role-opt small { color: var(--muted); font-size: 0.82rem; }
.role-opt input:checked + span {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  background: var(--green-tint);
}

/* ── auth / empty / error ────────────────── */
.auth-card {
  background: #fff;
  border-radius: 4px;
  padding: clamp(28px, 5vw, 40px);
  box-shadow: var(--card-shadow);
  margin-top: 4vh;
}
.auth-card .muted { margin-bottom: 20px; line-height: 1.5; }
.auth-alt { margin-top: 22px; font-size: 0.92rem; color: var(--muted); text-align: center; }

.empty-state {
  text-align: center;
  border-radius: 4px;
  padding: 60px 30px;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.empty-join { display: flex; gap: 10px; max-width: 360px; margin: 22px auto 0; }
.empty-join .input-code { font-size: 1rem; letter-spacing: 0.12em; }
.empty-join .btn { flex: none; }
.empty-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 18px auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.empty-divider::before, .empty-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.empty-state h2 { font-family: var(--head-font); font-weight: 600; color: var(--heading); font-size: 1.3rem; margin-bottom: 6px; }
.empty-state .muted { margin-bottom: 24px; }
.empty-state .page-actions { justify-content: center; }

.error-card { text-align: center; padding: 60px 20px; }
.error-code {
  font-family: var(--head-font);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.error-title { font-family: var(--head-font); font-weight: 600; color: var(--heading); font-size: 1.4rem; margin-bottom: 8px; }
.error-card .muted { margin-bottom: 28px; }

/* ── admin ───────────────────────────────── */
.subnav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 28px;
  overflow-x: auto;
}
.subnav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 18px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.subnav a:hover { color: var(--heading); text-decoration: none; }
.subnav a.active { color: var(--navy); border-bottom-color: var(--green); font-weight: 700; }

.queue-section { margin-bottom: 36px; }
.queue-title {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.queue-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 20px;
  padding: 2px 9px;
}
.queue-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
}
.queue-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 0.9rem; }
.queue-deal { color: var(--heading); }
.queue-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.queue-actions input { width: 200px; padding: 7px 12px; font-size: 0.85rem; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.ledger-row-static { font-size: 0.92rem; }

/* ── footer — navy dark like escrow.com ──── */
.footer { margin-top: auto; background: var(--navy-dark); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px clamp(20px, 4vw, 48px) 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer-brand .seal { width: 23px; height: 23px; color: #fff; }
.footer-note { color: #a4b0b1; font-size: 0.88rem; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  font-family: var(--head-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7d92aa;
  margin-bottom: 4px;
}
.footer-col a { color: #c3d0de; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-plain { color: #8fa2b7; font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 20px;
  color: #a4b0b1;
  font-size: 0.84rem;
}
.footer-fine { color: #687282; font-size: 0.76rem; line-height: 1.5; max-width: 58ch; }

/* ── animation ───────────────────────────── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise-in 0.5s ease both; }
.hero-copy .rise:nth-child(1) { animation-delay: 0.04s; }
.hero-copy .rise:nth-child(2) { animation-delay: 0.09s; }
.hero-copy .rise:nth-child(3) { animation-delay: 0.14s; }
.hero-copy .rise:nth-child(4) { animation-delay: 0.19s; }
.hero-copy .rise:nth-child(5) { animation-delay: 0.24s; }

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

/* ── icons ───────────────────────────────── */
.icon { display: inline-block; vertical-align: middle; flex: none; }
.stamp .icon { vertical-align: -2px; margin-right: 3px; }
.danger-zone summary .icon { vertical-align: -2.5px; margin-right: 4px; }
.nav-mod .icon { margin-right: 2px; }
.panel-title .mono { margin: 0 2px; }
.ic-green { color: var(--green); }
.ic-navy { color: var(--navy); }
.ic-red { color: var(--red); }
.ic-muted { color: var(--muted); }
.panel-title .icon, .queue-title .icon { color: var(--navy); margin-right: 2px; }
.panel-done .panel-title .icon { color: var(--green); }
.btn .icon { vertical-align: -3.5px; margin-right: 7px; }
.btn-sm .icon { vertical-align: -3px; margin-right: 5px; }
.stat-label { display: flex; align-items: center; gap: 6px; }
.stat-label .icon { color: var(--navy); opacity: 0.75; }
.stat-hot .stat-label .icon { color: var(--green-dark); opacity: 1; }

/* hero points / trust strip with real icons */
.hero-points span, .trust-strip span {
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points span::before, .trust-strip span::before { content: none; display: none; }

/* how-it-works step icons with number badge */
.step-no { position: relative; overflow: visible; }
.step-num {
  position: absolute;
  top: -5px;
  right: -7px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

/* flash with icons */
.flash { display: flex; align-items: flex-start; gap: 10px; }
.flash .icon { margin-top: 1px; }

/* ── expensive touches ───────────────────── */

/* scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.68, 0.3, 1), transform 0.7s cubic-bezier(0.16, 0.68, 0.3, 1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* button micro-interactions */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 43, 73, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: 0.05s; }
.btn-quiet:hover { transform: none; box-shadow: none; }

/* shine sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::after { animation: shine 0.65s ease; }
@keyframes shine { to { left: 130%; } }

/* card hover lifts */
.stat, .queue-card, .fee-card, .auth-card, .panel, .ledger, .steps {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat:hover, .queue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 43, 73, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}
a.ledger-row { transition: background 0.12s ease, box-shadow 0.12s ease; }
a.ledger-row:hover { box-shadow: inset 3px 0 0 var(--navy); }
a.ledger-row.row-action:hover { box-shadow: inset 3px 0 0 var(--green); }

/* hero card: float after entering */
.cert-card {
  animation: rise-in 0.6s ease both 0.15s, floaty 7s ease-in-out 1.8s infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.cert-stamp { animation: stamp-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both 1s; }
@keyframes stamp-pop {
  from { opacity: 0; transform: scale(0.5) rotate(-5deg); }
  to { opacity: 1; transform: none; }
}

/* current-step pulse */
.step-now .step-dot { animation: pulse-navy 2.4s ease-out infinite; }
@keyframes pulse-navy {
  0% { box-shadow: 0 0 0 0 rgba(1, 66, 106, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(1, 66, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(1, 66, 106, 0); }
}
.pill-act { animation: pulse-green 2.4s ease-out infinite; }
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(60, 185, 93, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(60, 185, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 185, 93, 0); }
}

/* new chat messages pop in */
.msg-new { animation: msg-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* timeline entries cascade on load */
.timeline li { animation: rise-in 0.45s ease both; }
.timeline li:nth-child(1) { animation-delay: 0.05s; }
.timeline li:nth-child(2) { animation-delay: 0.12s; }
.timeline li:nth-child(3) { animation-delay: 0.19s; }
.timeline li:nth-child(4) { animation-delay: 0.26s; }
.timeline li:nth-child(5) { animation-delay: 0.33s; }
.timeline li:nth-child(6) { animation-delay: 0.4s; }
.timeline li:nth-child(7) { animation-delay: 0.47s; }
.timeline li:nth-child(n+8) { animation-delay: 0.54s; }

/* nav links underline slide */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  transition: right 0.22s ease;
}
.nav-link:hover::after { right: 0; }

/* copy button feedback */
[data-copy] .icon { transition: transform 0.2s ease; }
[data-copy].copied .icon { transform: scale(1.15); color: var(--green); }

/* ── responsive ──────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-wrap { max-width: 440px; }
  .deal-grid { grid-template-columns: 1fr; }
  .stat-row, .stat-row-5 { grid-template-columns: repeat(2, 1fr); }
  .section-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-wrap: wrap; }
  .step { flex: 1 1 33%; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  /* ── mobile nav: brand + hamburger, links collapse to a dropdown ── */
  .nav { padding: 0 16px; }
  .brand { font-size: 1.16rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 16px 14px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { display: flex; animation: nav-drop 0.18s ease both; }
  .nav-link {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .nav-link::after { display: none; }
  .nav-mod { justify-content: flex-start; }
  .nav .btn-primary { width: 100%; margin-top: 12px; padding: 12px; font-size: 0.95rem; }
  .nav-user {
    align-self: stretch;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .nav-user-out { display: inline; }

  /* ── hero: tighter vertical rhythm ── */
  .hero-inner { padding: 34px 20px 40px; gap: 28px; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.35rem); }
  .hero-sub { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 12px; }

  /* ── sections: tighter ── */
  .section { padding: 40px 20px; }
  .section-head { margin-bottom: 28px; }
  .cta-band { padding: 44px 20px; }
  .cta-band .btn { width: 100%; max-width: 320px; }

  /* ── how-it-works steps: keep the heading full-width, badge below ── */
  .ledger-steps li { grid-template-columns: 46px 1fr; column-gap: 16px; row-gap: 0; padding: 20px 2px; }
  .step-no { width: 40px; height: 40px; grid-column: 1; grid-row: 1; }
  .ledger-steps li > div { grid-column: 2; grid-row: 1; }
  .ledger-steps .who { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 12px; }

  /* ── deal progress bar: dots only, one clean row ── */
  .steps { flex-wrap: nowrap; }
  .step { flex: 1 1 0; flex-direction: column; gap: 6px; padding: 12px 4px; border-bottom: none; }
  .step-name { display: none; }

  /* ── tables & layout ── */
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr auto; grid-auto-flow: row dense; }
  .ledger-row > span:nth-child(2), .ledger-row > span:nth-child(5) { display: none; }
  .form-grid, .role-picker, .kv-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .queue-card { flex-direction: column; align-items: stretch; }
  .queue-actions { width: 100%; }
  .queue-actions input { flex: 1; width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }

  /* fee schedule: tighten so wide amounts don't collide at 375px */
  .fee-card { padding: 20px 18px; }
  .fee-table { font-size: 0.8rem; }
  .fee-table td { font-size: 0.8rem; }
  .fee-table th { font-size: 9.5px; letter-spacing: 0.5px; padding-left: 6px; }
  .fee-table td:not(:first-child) { padding-left: 6px; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
