:root {
  --paper: #fbf9f4;
  --card: #ffffff;
  --ink: #1a1c19;
  --muted: #7c7a70;
  --line: #e7e1d5;
  --hair: #f1ece1;
  --forest: #1f6e43; /* gains */
  --clay: #b23a2e; /* losses */
  --gold: #b0832e;
  --slate: #8a9ba6; /* contributions / new capital (marketing chart) */
  --shadow: 0 1px 2px rgba(26, 28, 25, 0.04), 0 8px 24px rgba(26, 28, 25, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

/* ---- top nav ---- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px;
  margin-bottom: 6px;
}
.topnav .brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.topnav .navlinks {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Direct children only — the account cluster (.navacct) nests its own links
   (Sign up / Exit / Sign out) that must NOT inherit the tab-pill padding. */
.topnav .navlinks > a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.topnav .navlinks > a:hover {
  color: var(--ink);
}
.topnav .navlinks > a.active {
  background: var(--ink);
  color: var(--paper);
}
.topnav .navacct a {
  text-decoration: none;
}
.topnav .navacct a:hover {
  text-decoration: underline;
}

/* ---- masthead ---- */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.masthead h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
}
.asof {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
.asof .live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  margin-right: 6px;
  vertical-align: middle;
}

/* ---- KPI row ---- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.kpi .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.kpi .value {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 27px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.kpi .sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.pos {
  color: var(--forest);
}
.neg {
  color: var(--clay);
}
.flat {
  color: var(--muted);
}

/* ---- cards / grid ---- */
.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.grid-a {
  grid-template-columns: 1.55fr 1fr;
}
.grid-b {
  grid-template-columns: 1fr 1fr;
}
.grid-c {
  grid-template-columns: 1fr 1fr;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.card-head h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 15px;
  margin: 0;
}
.card-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* segmented period control */
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.segmented button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  padding: 4px 9px;
  cursor: pointer;
  border-left: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.segmented button:first-child {
  border-left: none;
}
.segmented button:hover {
  color: var(--ink);
}
.segmented button.active {
  background: var(--ink);
  color: var(--paper);
}
.card-foot {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 8px;
}
table.data tr.total td {
  border-top: 1px solid var(--line);
  border-bottom: none;
  font-weight: 600;
  padding-top: 9px;
}
.muted {
  color: var(--muted);
}
.chart {
  width: 100%;
  height: 300px;
}
.grid-b .chart {
  height: 280px;
}

/* ---- dividend income card (full-width, chart + recent list side by side) ---- */
.grid-d {
  grid-template-columns: 1fr;
}
.div-split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}
.div-split .chart {
  height: 280px;
}
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover {
  text-decoration: underline;
}

/* ---- tables ---- */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--hair);
}
table.data td.num,
table.data th.num {
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}
table.data tr:last-child td {
  border-bottom: none;
}
.ticker {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}
.tag {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---- colophon ---- */
.colophon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ---- entrance motion (restrained) ---- */
.kpi,
.card {
  animation: rise 0.5s ease both;
}
.kpis .kpi:nth-child(2) { animation-delay: 0.04s; }
.kpis .kpi:nth-child(3) { animation-delay: 0.08s; }
.kpis .kpi:nth-child(4) { animation-delay: 0.12s; }
.grid-a { animation-delay: 0.1s; }
.grid-b { animation-delay: 0.14s; }
.grid-c { animation-delay: 0.18s; }
.card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 2px 4px rgba(26, 28, 25, 0.06), 0 12px 32px rgba(26, 28, 25, 0.08);
  transform: translateY(-1px);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kpi,
  .card {
    animation: none;
  }
}

/* ---- upload page ---- */
.step {
  margin-bottom: 14px;
}
.step.hidden {
  display: none;
}
.hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 12px;
  line-height: 1.5;
}
.hint b {
  color: var(--ink);
  font-weight: 600;
}
.dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.over {
  border-color: var(--forest);
  background: rgba(31, 110, 67, 0.04);
}
.btn {
  appearance: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
  border-color: var(--muted);
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn.danger {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.thumb {
  position: relative;
}
.thumb img {
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.thumb-x {
  appearance: none;
  border: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 0;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.table-wrap {
  overflow-x: auto;
}
#review-table .cell {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  min-width: 64px;
}
#review-table input.cell { min-width: 56px; }
#review-table .num-in { text-align: right; }
#review-table .ticker-in { text-transform: uppercase; }
#review-table tr.row-skip {
  opacity: 0.4;
}
.cs-group {
  margin: 0 0 16px;
}
.cs-group h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 6px;
}
.synclog {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  margin-top: 10px;
}

/* ---- paste block (upload) ---- */
.paste-block {
  margin-top: 14px;
}
.paste-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.paste-area,
.chat-input textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.paste-area:focus,
.chat-input textarea:focus {
  outline: none;
  border-color: var(--forest);
}

/* ---- ask / chat ---- */
.chat-card {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 14px;
}
.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  max-width: 520px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.chip {
  appearance: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:hover {
  border-color: var(--forest);
  background: rgba(31, 110, 67, 0.05);
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}
.bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Sans", sans-serif;
}
.bubble.assistant {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.bubble.assistant.err {
  border-color: var(--clay);
  color: var(--clay);
}
.bubble.assistant ul {
  margin: 6px 0;
  padding-left: 20px;
}
.bubble.assistant code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  background: var(--hair);
  padding: 1px 5px;
  border-radius: 4px;
}
.bubble.thinking .dots {
  color: var(--muted);
  letter-spacing: 2px;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
.chat-input {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.chat-input textarea {
  resize: none;
  min-height: 40px;
}
.chat-foot {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  margin-top: 8px;
}

/* ---- chart header with selector ---- */
.head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend-paid,
.legend-upcoming {
  font-weight: 600;
}
.legend-paid {
  color: var(--forest);
}
.legend-upcoming {
  color: var(--gold);
}
#chart-div {
  height: 320px;
}
table.data tr.row-future td {
  color: var(--gold);
}
table.data tr.row-future td.num {
  color: var(--gold);
}

/* ---- ticker detail page ---- */
.masthead h1 .t-name {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-left: 10px;
}
.back-link {
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover {
  color: var(--ink);
}
.ticker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -6px 0 14px;
}
.news-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
.news-row:last-child {
  border-bottom: none;
}
.news-head a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
}
.news-head a:hover {
  text-decoration: underline;
}
.news-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.senti {
  font-family: "IBM Plex Mono", monospace;
  margin-left: 6px;
}
/* sortable / filterable tables */
table.data th.th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.12s ease;
}
table.data th.th-sort:hover {
  color: var(--ink);
}
table.data th.th-sort.active {
  color: var(--ink);
}
.sort-arrow {
  color: var(--forest);
  font-size: 10px;
}
.detail-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--forest);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 9px;
  transition: border-color 0.15s ease;
}
.detail-link:hover {
  border-color: var(--forest);
}
.month-chip {
  appearance: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--paper);
  background: var(--forest);
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
}
.month-chip.hidden {
  display: none;
}
.tbl-filter {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  width: 150px;
  transition: border-color 0.15s ease, width 0.15s ease;
}
.tbl-filter:focus {
  outline: none;
  border-color: var(--forest);
  width: 190px;
}

/* sector accordion (segment page holdings, "By sector" view) */
table.data tr.sector-row {
  cursor: pointer;
  user-select: none;
}
table.data tr.sector-row td {
  background: var(--hair);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 8px 10px;
}
table.data tr.sector-row:hover td {
  background: #ece5d6;
}
.sector-toggle {
  display: inline-block;
  width: 14px;
  color: var(--muted);
  font-size: 11px;
}
.sector-name {
  font-weight: 600;
  color: var(--ink);
}
.sector-meta {
  float: right;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
table.data tr.holding-row td:first-child {
  padding-left: 22px;
}

/* clickable tickers across the dashboard */
a.ticker-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}
a.ticker-link:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

/* ---- benchmarking card ("How you compare") ---- */
.bm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bm-sub {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--paper);
}
.bm-sub-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.bm-top {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 27px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.bm-sub-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.bm-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--hair);
  margin-top: 10px;
  overflow: hidden;
}
.bm-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--forest);
}
.bm-empty {
  font-size: 13px;
  padding: 18px 2px;
}
.bm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bm-share-btn {
  font-size: 12px;
  padding: 4px 10px;
}
.bm-share-btn.hidden {
  display: none;
}

/* histogram tooltip (hover a sub-card) */
.bm-tip {
  display: none;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  z-index: 20;
}
.bm-sub:hover .bm-tip {
  display: block;
}
.bm-tip-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.bm-hist {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 52px;
}
.bm-hist-bar {
  flex-basis: 0;
  display: flex;
  align-items: flex-end;
}
.bm-hist-bar div {
  width: 100%;
  background: rgba(31, 110, 67, 0.35);
  border-radius: 2px 2px 0 0;
}
.bm-hist-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clay);
}
.bm-tip-range {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* privacy note */
.bm-privacy-wrap {
  position: relative;
}
.bm-privacy-link {
  appearance: none;
  border: none;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.bm-privacy-link:hover {
  color: var(--ink);
}
.bm-privacy-tip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px 28px 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  z-index: 30;
}
.bm-privacy-tip.hidden {
  display: none;
}
.bm-privacy-tip a {
  color: var(--forest);
}
.bm-tip-x {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0;
}

/* share modal */
.bm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 25, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.bm-modal-backdrop.hidden {
  display: none;
}
.bm-modal {
  max-width: 420px;
  width: 100%;
}
.bm-modal h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 10px;
}
.bm-share-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.bm-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 880px) {
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-a,
  .grid-b,
  .grid-c {
    grid-template-columns: 1fr;
  }
  .bm-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- onboarding empty state ---------------------------------------------- */
/* When previewing, the data sections render a SAMPLE dashboard, ghosted (blurred
   + dimmed + inert) so the wizard reads as the focus and the numbers aren't
   mistaken for real data. */
.previewing .kpis,
.previewing section.grid,
.previewing .colophon {
  filter: blur(3px) saturate(0.85);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.preview-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 2px 9px;
}

.onboarding.hidden {
  display: none;
}
/* Float the wizard over the ghosted dashboard (spotlight), not in flow. */
.onboarding:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 24px;
  overflow-y: auto;
  pointer-events: none; /* clicks pass through except on the card */
}
.onboard-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 34px;
  pointer-events: auto;
  box-shadow: 0 18px 50px -12px rgba(26, 28, 25, 0.32), 0 4px 14px -6px rgba(26, 28, 25, 0.18);
}
.onboard-title {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.onboard-lead {
  color: #4a4a42;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.onboard-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.onboard-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.onboard-steps .step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-steps a {
  color: var(--forest);
  font-weight: 600;
}
.onboard-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--hair);
  padding-top: 22px;
}
.btn-lg {
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
}
.onboard-hint {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---- share-card button + modal (app.html masthead) ------------------------ */
.mast-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 25, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.share-modal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(26, 28, 25, 0.22);
  padding: 22px;
  width: min(460px, calc(100vw - 40px));
}
.share-modal h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 4px;
}
.share-modal .share-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.share-url {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.share-url input {
  flex: 1;
  min-width: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.share-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-links .btn:last-child {
  margin-left: auto;
}
