/* Ouma Connect — single stylesheet. Tokens per design handoff. */

:root {
  --cream: #EFE9E2;
  --warm-white: #FBF8F5;
  --dark-teal: #0D3A38;
  --deep-teal: #155755;
  --teal: #23B1A6;
  --mint: #C8EAE4;
  --teal-tint: #EEF7F6;
  --terracotta: #C4836A;
  --terra-ink: #8A4E36;
  --terra-deep: #7A4A33;
  --blush: #E8C4B8;
  --hold-surface: #FBF1EC;
  --hold-tile: #F3DFD5;
  --amber-surface: #FDF6EC;
  --amber-border: #F0C47E;
  --amber-ink: #8A5A16;
  --amber-body: #6B4A15;
  --mid-gray: #6C757D;
  --body-slate: #4A5A58;
  --label-teal: #33514E;
  --hairline: rgba(13,58,56,0.1);
  --hairline-soft: rgba(13,58,56,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--dark-teal);
  font-size: 16px;
}
a { color: var(--teal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--dark-teal); }
button { font-family: inherit; cursor: pointer; }
.serif { font-family: 'Lora', serif; }
.num { font-variant-numeric: tabular-nums; }

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.28); opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  .halo, [class*="halo"] { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ============ pills / buttons ============ */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 22px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; border: none;
  transition: background .25s, box-shadow .25s, transform .15s, color .25s;
  white-space: nowrap;
}
.pill svg { flex: none; }
.pill-primary {
  background: var(--dark-teal); color: #fff;
  box-shadow: 0 6px 18px rgba(13,58,56,0.2);
}
.pill-primary:hover { background: var(--deep-teal); box-shadow: 0 8px 24px rgba(13,58,56,0.25); color:#fff; }
.pill-primary:active { transform: scale(0.97); }
.pill-primary .arrow { transition: transform .25s; }
.pill-primary:hover .arrow { transform: translateX(3px); }
.pill-outline {
  background: transparent; color: var(--dark-teal);
  border: 1.5px solid var(--dark-teal);
}
.pill-outline:hover { background: var(--dark-teal); color: #fff; }
.pill-terra {
  background: transparent; color: var(--terra-ink);
  border: 1.5px solid rgba(196,131,106,0.7);
}
.pill-terra:hover { background: rgba(196,131,106,0.12); color: var(--terra-ink); }
.pill[disabled], .pill.inert { cursor: not-allowed; opacity: .85; }

.eyebrow {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--terracotta);
}

/* ============ sign-in ============ */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--cream); padding: 44px 80px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-lockup { display: flex; align-items: baseline; gap: 10px; }
.auth-lockup img { height: 24px; }
.auth-lockup .word {
  font-family: 'Lora', serif; font-style: italic; font-size: 1.7rem;
  color: var(--terracotta); line-height: 1;
}
.auth-hero { max-width: 460px; }
.auth-hero h1 {
  font-family: 'Lora', serif; font-weight: 500; font-size: 2.5rem;
  line-height: 1.2; letter-spacing: -0.02em; margin: 14px 0 18px;
}
.auth-hero h1 em { font-style: italic; color: var(--terracotta); }
.auth-hero p { font-size: 1rem; line-height: 1.65; color: var(--body-slate); }
.auth-foot { font-size: 0.85rem; color: var(--mid-gray); }
.auth-right {
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 44px 40px;
}
.auth-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth-form h2 { font-family: 'Lora', serif; font-weight: 500; font-size: 2rem; letter-spacing: -0.02em; }
.auth-form .sub { font-size: 0.93rem; color: var(--mid-gray); margin-top: -8px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; height: 52px; border-radius: 14px; padding: 0 16px;
  border: 1px solid rgba(13,58,56,0.14); font-family: inherit; font-size: 0.95rem;
  color: var(--dark-teal); background: #fff;
}
.field input:focus { border: 1.5px solid var(--teal); outline-offset: 0; }

/* Activation form additions (2026-09-08).
   .hint already existed but only scoped under .pipeline-head, so these are new rules,
   not overrides — nothing above changes behaviour. */
.field .hint { font-size: 0.78rem; color: var(--mid-gray); margin-top: 6px; line-height: 1.45; }
.field label .opt { font-weight: 400; color: var(--mid-gray); }
/* The invited address is fixed: the invitation was issued TO it, so letting someone edit
   it here would turn the token into a bearer credential for any address. Styled as
   clearly inert rather than merely disabled-looking. */
.field input[readonly] {
  background: var(--cream); color: var(--mid-gray); cursor: default;
}
.field input[readonly]:focus { border: 1px solid var(--hairline); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; width: 40px; height: 40px; color: var(--mid-gray);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.87rem; }
.auth-row label { display: flex; align-items: center; gap: 8px; color: var(--body-slate); cursor: pointer; }
.auth-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--dark-teal); }
.auth-submit {
  height: 52px; width: 100%; border-radius: 100px; border: none;
  background: var(--dark-teal); color: #fff; font-size: 0.95rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(13,58,56,0.25);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .25s, transform .15s;
}
.auth-submit:hover { background: var(--deep-teal); }
.auth-submit:hover .arrow { transform: translateX(3px); }
.auth-submit .arrow { transition: transform .25s; }
.auth-error {
  background: var(--hold-surface); border: 1px solid rgba(196,131,106,0.45);
  color: var(--terra-ink); border-radius: 14px; padding: 12px 16px;
  font-size: 0.88rem; line-height: 1.5;
}
.auth-divider { height: 1px; background: var(--hairline-soft); }
.auth-invite { font-size: 0.89rem; color: var(--mid-gray); line-height: 1.6; }

/* ============ app shell ============ */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--dark-teal); padding: 26px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-top { display: flex; flex-direction: column; gap: 22px; }
.side-lockup { display: flex; align-items: baseline; gap: 10px; padding: 0 6px; }
.side-lockup img { height: 22px; }
.side-lockup .word {
  font-family: 'Lora', serif; font-style: italic; font-size: 1.5rem;
  color: var(--blush); line-height: 1;
}
.agency-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 13px 14px; display: flex; align-items: center; gap: 12px;
}
.agency-mono {
  width: 32px; height: 32px; border-radius: 9px; background: var(--mint);
  color: var(--dark-teal); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.agency-card .nm { font-size: 0.87rem; font-weight: 600; color: #fff; }
.agency-card .rl { font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav .nav-dis {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border-radius: 12px; font-size: 0.93rem; font-weight: 500;
  color: rgba(255,255,255,0.72); transition: background .25s, color .25s;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; }
.nav a.on svg { color: var(--mint); }
.nav .badge {
  margin-left: auto; min-width: 21px; height: 21px; border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; font-size: 0.72rem; font-weight: 700; color: #fff;
}
.badge-terra { background: var(--terracotta); }
.badge-teal { background: var(--teal); }
.nav .nav-dis { color: rgba(255,255,255,0.34); cursor: default; }
.nav .soon {
  margin-left: auto; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; padding: 2px 8px; color: rgba(255,255,255,0.45);
}
.side-foot { display: flex; flex-direction: column; gap: 14px; }
.standing-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 14px 15px; display: flex; flex-direction: column; gap: 8px;
}
.standing-card .t { font-size: 0.82rem; font-weight: 700; color: #fff; }
.standing-card .d { font-size: 0.76rem; line-height: 1.5; color: rgba(255,255,255,0.6); }
.standing-card button {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none;
  color: var(--mint); font-size: 0.79rem; font-weight: 600; padding: 0;
}
.signout-row {
  display: flex; align-items: center; gap: 13px; padding: 10px 14px;
  color: rgba(255,255,255,0.6); font-size: 0.9rem; border-radius: 12px;
}
.signout-row:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* topbar */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 72px; background: #fff; border-bottom: 1px solid rgba(13,58,56,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; gap: 20px; position: sticky; top: 0; z-index: 40;
}
.search-pill {
  width: 420px; max-width: 40vw; height: 42px; background: var(--cream);
  border: 1px solid rgba(13,58,56,0.07); border-radius: 100px;
  display: flex; align-items: center; gap: 10px; padding: 0 18px; color: var(--mid-gray);
}
.search-pill input {
  border: none; background: none; flex: 1; font-family: inherit;
  font-size: 0.9rem; color: var(--dark-teal); outline: none; min-width: 0;
}
.search-pill input::placeholder { color: var(--mid-gray); }
.mob-lockup { display: none; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; min-width: 0; }
.crumbs a { color: var(--mid-gray); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.crumbs a:hover { color: var(--dark-teal); }
.crumbs .sep { color: rgba(13,58,56,0.25); }
.crumbs .here { font-weight: 600; color: var(--dark-teal); white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 18px; }
.bell-wrap { position: relative; }
.bell-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream);
  border: none; display: flex; align-items: center; justify-content: center;
  color: var(--dark-teal); position: relative;
}
.bell-count {
  position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px;
  background: var(--terracotta); color: #fff; border: 2px solid #fff;
  border-radius: 100px; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.bell-panel {
  position: absolute; right: 0; top: 52px; width: 400px; max-width: 88vw;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(13,58,56,0.16);
  z-index: 60; display: none; overflow: hidden;
}
.bell-panel.open { display: block; }
.bell-head {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: baseline; justify-content: space-between;
}
.bell-head .t { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.bell-row {
  display: flex; gap: 13px; align-items: center; padding: 14px 24px;
  border-bottom: 1px solid var(--hairline-soft);
}
.bell-row:last-child { border-bottom: none; }
.bell-row:hover { background: rgba(13,58,56,0.02); }
.bell-tile {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.bell-tile.stage { background: var(--mint); color: var(--dark-teal); }
.bell-tile.hold { background: var(--hold-tile); color: var(--terra-ink); }
.bell-row .bt { font-size: 0.88rem; font-weight: 600; color: var(--dark-teal); }
.bell-row .bm { font-size: 0.78rem; color: var(--mid-gray); }
.bell-empty { padding: 26px 24px; font-size: 0.88rem; color: var(--mid-gray); }
.avatar-wrap { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--mint);
  color: var(--dark-teal); font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.avatar-wrap .nm { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.avatar-wrap .rl { font-size: 0.76rem; color: var(--mid-gray); }

.content {
  padding: 32px 36px 40px; display: flex; flex-direction: column; gap: 24px;
  max-width: 1440px; width: 100%; min-width: 0;
}

/* page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head h1 {
  font-family: 'Lora', serif; font-weight: 500; font-size: 2rem;
  line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 6px;
}
.page-head h1 em { font-style: italic; color: var(--terracotta); }
.page-head .context { font-size: 0.92rem; color: var(--mid-gray); }
.page-actions { display: flex; gap: 12px; flex: none; }

/* ============ stat panel ============ */
.stat-panel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: 22px; overflow: hidden;
}
.stat-tile { background: #fff; padding: 24px 26px; }
.stat-num {
  font-size: 3rem; font-weight: 200; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--dark-teal);
}
.stat-num .suffix { font-size: 1.2rem; font-weight: 400; color: var(--mid-gray); letter-spacing: 0; }
.stat-label { font-size: 0.84rem; font-weight: 600; color: var(--label-teal); margin-top: 6px; }
.stat-label .short { display: none; }
.stat-sub { font-size: 0.8rem; color: var(--mid-gray); margin-top: 3px; }
.stat-sub.up { color: var(--teal); font-weight: 600; }

/* ============ pipeline strip ============ */
.card {
  background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.pipeline { padding: 22px 26px; }
.pipeline-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.pipeline-head .t { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.pipeline-head .hint { font-size: 0.82rem; color: var(--mid-gray); }
.pipeline-row { display: flex; align-items: stretch; gap: 12px; }
.stage-chip {
  flex: 1; border-radius: 16px; padding: 16px 18px; text-align: left;
  background: var(--cream); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 5px; font-family: inherit;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.stage-chip .cnt-row { display: flex; align-items: center; gap: 9px; }
.stage-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.stage-chip.final .dot { background: var(--dark-teal); }
.stage-chip .cnt { font-size: 1.7rem; font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1; color: var(--dark-teal); }
.stage-chip .lbl { font-size: 0.79rem; font-weight: 600; color: var(--label-teal); line-height: 1.3; }
.stage-chip:hover { border-color: rgba(35,177,166,0.5); }
.stage-chip.sel {
  background: var(--teal-tint); border: 1.5px solid var(--teal);
  box-shadow: 0 4px 14px rgba(35,177,166,0.14); padding: 15px 17px;
}
.pipe-divider { width: 1px; background: var(--hairline); flex: none; }
.stage-chip.holdchip { flex: none; width: 132px; background: var(--hold-surface); border: 1px solid rgba(196,131,106,0.4); }
.stage-chip.holdchip .dot { background: var(--terracotta); }
.stage-chip.holdchip .cnt, .stage-chip.holdchip .lbl { color: var(--terra-ink); }
.stage-chip.holdchip:hover { border-color: rgba(196,131,106,0.75); }
.stage-chip.holdchip.sel { border: 1.5px solid var(--terracotta); box-shadow: 0 4px 14px rgba(196,131,106,0.18); }

/* ============ referrals table ============ */
.table-card { overflow: hidden; }
.table-head {
  padding: 22px 26px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.table-head .t { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 500; }
.table-head .meta { font-size: 0.85rem; color: var(--mid-gray); margin-top: 3px; }
.table-head .meta b { color: var(--dark-teal); font-weight: 600; }
.table-head .clear-link { margin-left: 6px; font-weight: 600; }
.table-tools { display: flex; align-items: center; gap: 12px; }
.seg-track {
  display: flex; padding: 3px; background: var(--cream); border-radius: 100px;
  border: 1px solid rgba(13,58,56,0.07);
}
.seg-track button {
  border: none; background: none; padding: 8px 16px; border-radius: 100px;
  font-size: 0.84rem; font-weight: 500; color: var(--mid-gray);
  transition: background .25s, color .25s;
}
.seg-track button.on { background: var(--dark-teal); color: #fff; font-weight: 600; }
.export-pill {
  height: 40px; padding: 0 18px; border-radius: 100px; background: transparent;
  border: 1.5px solid var(--dark-teal); color: var(--dark-teal);
  font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.export-pill:hover { background: var(--dark-teal); color: #fff; }

.tgrid { display: grid; grid-template-columns: 266px 1fr 118px 210px 128px; align-items: center; }
.thead {
  padding: 11px 26px; background: var(--cream);
  border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft);
}
.thead span {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--mid-gray);
}
.thead span:last-child { text-align: right; }
.trow {
  padding: 18px 26px; border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer; transition: background .25s; color: inherit; display: grid;
}
.trow:hover { background: rgba(13,58,56,0.02); }
.cand { display: flex; flex-direction: column; gap: 4px; padding-right: 20px; }
.cand .nm-row { display: flex; align-items: center; gap: 8px; }
.cand .nm { font-size: 0.98rem; font-weight: 600; color: var(--dark-teal); }
.chip-new {
  padding: 2px 9px; border-radius: 100px; background: var(--teal); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.chip-hold-sm {
  padding: 2px 9px; border-radius: 100px; background: var(--hold-surface);
  border: 1px solid rgba(196,131,106,0.45); color: var(--terra-ink);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.cand .by { font-size: 0.8rem; color: var(--mid-gray); }
.prog { display: flex; flex-direction: column; gap: 9px; padding-right: 24px; min-width: 0; }

/* the rail */
.rail { display: flex; align-items: center; }
.rail .dot { flex: none; width: 11px; height: 11px; border-radius: 50%; position: relative; }
.rail .dot.up { background: #fff; border: 2px solid rgba(13,58,56,0.2); }
.rail .dot.done { background: var(--teal); }
.rail .dot.cur { background: var(--teal); }
.rail .dot.cur .halo {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(35,177,166,0.45);
  animation: haloPulse 3.6s ease-in-out infinite;
}
.rail .dot.final {
  width: 13px; height: 13px; background: var(--dark-teal);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.rail .dot.hold {
  background: var(--hold-surface); border: 3px solid var(--terracotta);
  width: 11px; height: 11px;
}
.rail .conn { flex: 1; height: 2px; background: rgba(13,58,56,0.14); }
.rail .conn.done { background: var(--teal); }
.rail .conn.tohold { background: rgba(196,131,106,0.5); }
.rail-cap { font-size: 0.82rem; color: var(--mid-gray); line-height: 1.45; }
.rail-cap b { font-weight: 700; color: var(--dark-teal); }
.rail-cap.heldcap { color: var(--terra-ink); }
.rail-cap.heldcap b { color: var(--terra-ink); }

.dstage { font-size: 0.9rem; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--dark-teal); }
.dstage.dim { color: var(--mid-gray); font-weight: 400; }
.dstage.held { color: var(--terra-ink); }
.appt { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.appt .a1 { font-size: 0.87rem; font-weight: 600; color: var(--dark-teal); }
.appt .a2 { font-size: 0.79rem; color: var(--mid-gray); }
.repcell { display: flex; justify-content: flex-end; }
.repcell .none { font-size: 0.82rem; color: rgba(108,117,125,0.7); }
.tfoot {
  background: var(--cream); border-top: 1px solid var(--hairline-soft);
  padding: 16px 26px; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--mid-gray);
}
.table-empty { padding: 44px 48px; text-align: center; color: var(--mid-gray); font-size: 0.92rem; display:none; }
.table-empty .te-t { font-family: 'Lora', serif; font-size: 1.3rem; color: var(--dark-teal); margin-bottom: 8px; }

/* mobile referral cards */
.mcards { display: none; flex-direction: column; gap: 12px; }
.mcard {
  background: #fff; border-radius: 18px; border: 1px solid rgba(13,58,56,0.07);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 11px; color: inherit;
}
.mcard.held { border: 1px solid rgba(196,131,106,0.4); }
.mcard .r1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcard .nm { font-size: 0.96rem; font-weight: 700; color: var(--dark-teal); display: flex; align-items: center; gap: 8px; }
.mcard .chev { color: rgba(13,58,56,0.35); }
.mcard .rail .dot { width: 9px; height: 9px; }
.mcard .rail .dot.hold, .mcard .rail .dot.final { width: 11px; height: 11px; }
.mcard .r3 .st { font-size: 0.82rem; font-weight: 700; color: var(--dark-teal); }
.mcard.held .r3 .st { color: var(--terra-ink); }
.mcard .r3 .mt { font-size: 0.79rem; color: var(--mid-gray); margin-top: 2px; }

/* ============ empty state (dashboard) ============ */
.empty-board { padding: 44px 48px; display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.empty-board h2 { font-family: 'Lora', serif; font-size: 1.7rem; font-weight: 500; line-height: 1.3; }
.empty-board h2 em { font-style: italic; color: var(--terracotta); }
.empty-board p { font-size: 0.95rem; line-height: 1.65; color: var(--body-slate); margin: 14px 0 22px; }
.empty-stages { background: var(--cream); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.empty-stages .es-row { display: flex; gap: 13px; align-items: flex-start; }
.empty-stages .es-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); flex: none; margin-top: 4px; }
.empty-stages .es-row:last-child .es-dot { background: var(--dark-teal); }
.empty-stages .es-nm { font-size: 0.88rem; font-weight: 700; color: var(--dark-teal); }
.empty-stages .es-d { font-size: 0.8rem; color: var(--mid-gray); line-height: 1.5; }

/* ============ referral detail ============ */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.detail-id { display: flex; align-items: center; gap: 18px; }
.mono-tile {
  width: 64px; height: 64px; border-radius: 20px; background: var(--mint);
  color: var(--dark-teal); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.mono-tile.held { background: var(--hold-tile); color: var(--terra-ink); }
.detail-id h1 { font-family: 'Lora', serif; font-weight: 500; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.15; }
.detail-id .meta { font-size: 0.87rem; color: var(--mid-gray); margin-top: 5px; }
.status-chip {
  display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--teal-tint); border: 1px solid rgba(35,177,166,0.35); color: var(--dark-teal);
  vertical-align: 4px; margin-left: 10px;
}
.status-chip.held { background: var(--hold-surface); border-color: rgba(196,131,106,0.45); color: var(--terra-ink); }
.status-chip.donechip { background: var(--dark-teal); border-color: var(--dark-teal); color: #fff; }

.detail-body { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.dcol { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.tracker-card { overflow: hidden; }
.accent-top { height: 4px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.tracker-in { padding: 24px 28px 26px; }
.tracker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.tracker-head h2 { font-family: 'Lora', serif; font-size: 1.44rem; font-weight: 500; margin-top: 6px; }
.tracker-head h2 em { font-style: italic; color: var(--terracotta); }
.tracker-head .day { font-size: 0.85rem; color: var(--mid-gray); white-space: nowrap; margin-top: 8px; }

.vrail-row { display: grid; grid-template-columns: 34px 1fr; gap: 0 16px; }
.vrail-dotcol { display: flex; flex-direction: column; align-items: center; }
.vdot { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; display: flex; align-items: center; justify-content: center; }
.vdot.done, .vdot.final { background: var(--teal); color: #fff; }
.vdot.final { background: var(--dark-teal); }
.vdot.cur { background: var(--teal); }
.vdot.cur::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.vdot.cur .halo {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(35,177,166,0.45); animation: haloPulse 3.6s ease-in-out infinite;
}
.vdot.future { background: #fff; border: 2px solid rgba(13,58,56,0.2); }
.vdot.hold { background: var(--hold-surface); border: 3px solid var(--terracotta); }
.vconn { width: 2px; flex: 1; min-height: 30px; background: rgba(13,58,56,0.14); }
.vconn.done { background: var(--teal); }
.vconn.tohold { background: rgba(196,131,106,0.5); }
.vrail-txt { padding-bottom: 22px; }
.vrail-row:last-child .vrail-txt { padding-bottom: 4px; }
.vrail-txt .vt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.vrail-txt .vnm { font-size: 1rem; font-weight: 600; color: var(--dark-teal); }
.vrail-txt.future .vnm { color: rgba(13,58,56,0.45); }
.vrail-txt.current .vnm { font-weight: 700; }
.vrail-txt.heldrow .vnm { color: var(--terra-ink); font-weight: 700; }
.now-pill {
  padding: 3px 10px; border-radius: 100px; background: var(--teal); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
.now-pill.heldnow { background: var(--terracotta); }
.vrail-txt .vd { font-size: 0.87rem; color: var(--mid-gray); line-height: 1.55; margin-top: 3px; }
.vrail-txt.heldrow .vd { color: var(--terra-ink); }

.appt-band {
  margin-top: 22px; border-radius: 18px; background: var(--teal-tint);
  border: 1px solid rgba(35,177,166,0.28); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
}
.date-tile {
  width: 82px; background: #fff; border-radius: 14px; padding: 10px 8px 12px;
  text-align: center; flex: none;
}
.date-tile .wd { font-size: 0.7rem; font-weight: 700; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.08em; }
.date-tile .dy { font-size: 1.9rem; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.15; }
.date-tile .mo { font-size: 0.72rem; font-weight: 600; color: var(--mid-gray); }
.appt-band .eyebrow { color: var(--teal); }
.appt-band .at { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 500; margin: 4px 0 3px; }
.appt-band .ad { font-size: 0.88rem; color: var(--body-slate); }

.activity-card { padding: 24px 26px; }
.activity-card h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.activity-card .sub { font-size: 0.85rem; color: var(--mid-gray); margin: 3px 0 8px; }
.act-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft); font-size: 0.89rem;
}
.act-row:last-child { border-bottom: none; }
.act-row .ad { color: var(--mid-gray); font-variant-numeric: tabular-nums; }
.act-row .at { color: var(--dark-teal); }

.reports-card { overflow: hidden; }
.reports-head { padding: 22px 24px 16px; }
.reports-head h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.reports-head .sub { font-size: 0.85rem; color: var(--mid-gray); margin-top: 3px; }
.report-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 24px;
  border-top: 1px solid var(--hairline-soft);
}
.report-tile {
  width: 42px; height: 42px; border-radius: 12px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--dark-teal);
}
.report-row.locked .report-tile { background: var(--cream); color: rgba(13,58,56,0.4); }
.report-row .rt { font-size: 0.92rem; font-weight: 600; color: var(--dark-teal); }
.report-row.locked .rt { color: rgba(13,58,56,0.5); }
.report-row .rs { font-size: 0.79rem; color: var(--mid-gray); margin-top: 2px; }

.kv-card { padding: 22px 24px; }
.kv-card h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; margin-bottom: 6px; }
.kv-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 0.88rem;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--mid-gray); }
.kv-row .v { font-weight: 600; color: var(--dark-teal); font-variant-numeric: tabular-nums; }

.privacy-card {
  background: var(--amber-surface); border: 1px solid var(--amber-border);
  border-radius: 20px; padding: 20px 24px; box-shadow: none;
}
.privacy-card .eyebrow { color: var(--amber-ink); }
.privacy-card p { font-size: 0.88rem; line-height: 1.6; color: var(--amber-body); margin-top: 8px; }

/* on-hold detail */
.hold-banner {
  border-radius: 20px; background: var(--hold-surface);
  border: 1px solid rgba(196,131,106,0.45); padding: 24px 28px;
  display: flex; gap: 18px; align-items: flex-start;
}
.hold-banner .icon-tile {
  width: 44px; height: 44px; border-radius: 13px; background: var(--hold-tile);
  color: var(--terracotta); display: flex; align-items: center; justify-content: center; flex: none;
}
.hold-banner h2 { font-family: 'Lora', serif; font-size: 1.34rem; font-weight: 500; color: var(--terra-ink); }
.hold-banner p { font-size: 0.92rem; line-height: 1.6; color: var(--terra-deep); margin-top: 8px; }
.hold-banner .attr { font-size: 0.85rem; color: var(--terra-deep); opacity: 0.8; margin-top: 10px; }

.paused-card { padding: 24px 28px 26px; }
.paused-card .ph { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.paused-card .ph h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.paused-card .ph .d { font-size: 0.85rem; color: var(--terra-ink); font-weight: 600; }
.paused-rail .rail .dot { width: 13px; height: 13px; }
.paused-rail .rail .dot.hold { width: 15px; height: 15px; }
.paused-axis { display: flex; margin-top: 12px; }
.paused-axis span { width: 19%; font-size: 0.78rem; font-weight: 600; color: var(--mid-gray); }
.paused-axis span.here { color: var(--terra-ink); }

/* ============ stub pages ============ */
.big-empty { padding: 44px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 640px; }
.big-empty .icon-lg {
  width: 52px; height: 52px; border-radius: 15px; background: var(--mint);
  color: var(--dark-teal); display: flex; align-items: center; justify-content: center;
}
.big-empty .icon-lg.terra { background: var(--hold-tile); color: var(--terra-ink); }
.big-empty h2 { font-family: 'Lora', serif; font-size: 1.6rem; font-weight: 500; }
.big-empty p { font-size: 0.95rem; line-height: 1.65; color: var(--body-slate); }
.big-empty .nudge { font-size: 0.85rem; color: var(--mid-gray); }

/* refer form */
.refer-body { display: grid; grid-template-columns: 1fr 372px; gap: 22px; align-items: start; }
.form-card { overflow: hidden; }
.form-in { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 22px; }
.attr-banner {
  border-radius: 16px; background: var(--teal-tint); border: 1px solid rgba(35,177,166,0.28);
  padding: 14px 18px; display: flex; gap: 13px; align-items: center;
}
.attr-banner .tick {
  width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.attr-banner .l1 { font-size: 0.87rem; font-weight: 700; }
.attr-banner .l1 .auto { font-weight: 500; color: var(--mid-gray); }
.attr-banner .l2 { font-size: 0.82rem; color: var(--mid-gray); margin-top: 2px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fgrid .field.wide { grid-column: 1 / -1; }
.fgrid input, .fgrid select, .fgrid textarea {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(13,58,56,0.14);
  padding: 0 16px; font-family: inherit; font-size: 0.95rem; color: var(--dark-teal);
  background: #fff; font-variant-numeric: tabular-nums;
}
.fgrid textarea { min-height: 88px; height: auto; padding: 12px 16px; resize: vertical; }
.consent-band {
  border-radius: 14px; background: var(--amber-surface); border: 1px solid var(--amber-border);
  padding: 14px 18px; display: flex; gap: 13px; align-items: flex-start;
  font-size: 0.87rem; color: var(--amber-body); line-height: 1.55;
}
.consent-band input { width: 20px; height: 20px; accent-color: var(--dark-teal); margin-top: 1px; flex: none; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit-row .note { font-size: 0.85rem; color: var(--mid-gray); }
.side-rail { display: flex; flex-direction: column; gap: 22px; }
.steps-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.steps-card h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.step { display: flex; gap: 13px; align-items: flex-start; }
.step .n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--mint);
  color: var(--dark-teal); font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px;
}
.step .st { font-size: 0.88rem; font-weight: 600; }
.step .sd { font-size: 0.8rem; color: var(--mid-gray); line-height: 1.5; margin-top: 2px; }
.dark-card {
  border-radius: 20px; padding: 24px 26px; color: #fff;
  background: linear-gradient(115deg, #0D3A38 0%, #155755 58%, #0D3A38 100%);
  box-shadow: 0 10px 30px rgba(13,58,56,0.2);
  display: flex; flex-direction: column; gap: 12px;
}
.dark-card h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.dark-card p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.75); }
.link-field {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.link-field button { background: none; border: none; color: var(--mint); font-weight: 700; font-size: 0.82rem; }

/* team */
.member-card { overflow: hidden; }
.member-head { padding: 22px 26px 14px; }
.member-head h3 { font-family: 'Lora', serif; font-size: 1.24rem; font-weight: 500; }
.mgrid { display: grid; grid-template-columns: 1fr 170px 170px 120px; align-items: center; }
.mgrid.mth {
  padding: 11px 26px; background: var(--cream);
  border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft);
}
.mgrid.mth span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid-gray); }
.mgrid.mrow { padding: 16px 26px; border-bottom: 1px solid var(--hairline-soft); }
.mgrid.mrow:last-child { border-bottom: none; }
.mrow .who { display: flex; align-items: center; gap: 13px; }
.mrow .avatar2 {
  width: 42px; height: 42px; border-radius: 50%; background: var(--mint); color: var(--dark-teal);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex: none;
}
.mrow .avatar2.alt { background: var(--hold-tile); color: var(--terra-ink); }
.mrow .mn { font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mrow .me { font-size: 0.82rem; color: var(--mid-gray); }
.you-chip {
  padding: 1px 8px; border-radius: 100px; background: var(--teal-tint);
  border: 1px solid rgba(35,177,166,0.35); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-teal);
}
.role-chip {
  display: inline-flex; padding: 4px 12px; border-radius: 100px; font-size: 0.74rem; font-weight: 700;
}
.role-chip.admin { background: var(--dark-teal); color: #fff; }
.role-chip.member { background: var(--cream); color: var(--dark-teal); }
.mrow .last { font-size: 0.85rem; color: var(--mid-gray); }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--dark-teal); color: #fff; padding: 12px 22px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 600; box-shadow: 0 10px 30px rgba(13,58,56,0.3);
  opacity: 0; transition: transform .3s, opacity .3s; z-index: 100; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* bottom tab bar (mobile) */
.tabbar { display: none; }

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .tgrid { grid-template-columns: 220px 1fr 90px 170px 110px; }
  .detail-body { grid-template-columns: 1fr 340px; }
  .refer-body { grid-template-columns: 1fr 320px; }
  .content { padding: 28px 24px 40px; }
  .topbar { padding: 0 24px; }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 18px 20px 110px; gap: 16px; }
  .topbar { height: 62px; padding: 0 18px; }
  .search-pill { display: none; }
  .topbar .mob-lockup { display: flex; align-items: center; gap: 10px; }
  .mob-lockup .agency-mono.mob { width: 30px; height: 30px; font-size: 0.72rem; }
  .mob-lockup .ml-nm { font-size: 0.86rem; font-weight: 700; line-height: 1.25; }
  .mob-lockup .ml-sub { font-size: 0.7rem; color: var(--mid-gray); }
  .stat-panel { border-radius: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-tile { padding: 12px; }
  .stat-label .full { display: none; }
  .stat-label .short { display: inline; }
  .stat-num { font-size: 1.5rem; }
  .stat-num .suffix { font-size: 0.85rem; }
  .stat-label { font-size: 0.68rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat-sub { display: none; }
  .page-head h1 { font-size: 1.5rem; }
  .page-actions { display: none; }
  .pipeline { padding: 16px 16px; }
  .pipeline-head .hint { display: none; }
  .pipeline-row { overflow-x: auto; gap: 9px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .stage-chip { flex: none; min-width: 128px; padding: 12px 14px; }
  .pipe-divider { display: none; }
  .table-card .thead, .table-card .trow, .tfoot { display: none; }
  .table-head { padding: 18px 18px 8px; }
  .table-tools { width: 100%; }
  .seg-track { overflow-x: auto; max-width: 100%; }
  .export-pill { display: none; }
  .mcards { display: flex; padding: 0 18px 18px; }
  .table-card { background: transparent; box-shadow: none; }
  .table-card .table-head { background: #fff; border-radius: 18px 18px 0 0; }
  .table-card .mcards { background: transparent; padding: 12px 0 0; }
  .detail-body { grid-template-columns: 1fr; }
  .refer-body { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .detail-id { gap: 13px; }
  .mono-tile { width: 46px; height: 46px; border-radius: 14px; font-size: 1rem; }
  .detail-id h1 { font-size: 1.4rem; }
  .status-chip { margin-left: 0; vertical-align: 2px; }
  .tracker-in { padding: 18px 18px 20px; }
  .vdot { width: 18px; height: 18px; }
  .vdot.cur::after { width: 7px; height: 7px; }
  .vrail-row { grid-template-columns: 22px 1fr; gap: 0 12px; }
  .appt-band { padding: 14px 16px; gap: 14px; }
  .date-tile { width: 56px; padding: 7px 4px 8px; }
  .date-tile .dy { font-size: 1.4rem; }
  .appt-band .at { font-size: 0.95rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
  .empty-board { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; }
  .big-empty { padding: 28px 24px; }
  .auth { grid-template-columns: 1fr; }
  .auth-left { padding: 32px 28px; gap: 28px; }
  .auth-hero h1 { font-size: 1.9rem; }
  .auth-right { padding: 32px 24px; }
  .mgrid { grid-template-columns: 1fr 90px; }
  .mgrid .last, .mgrid .mth-last, .mth span:nth-child(3), .mth span:nth-child(4), .mrow .last, .mrow .manage { display: none; }
  .hold-banner { padding: 18px; gap: 13px; }
  .paused-axis span { font-size: 0.66rem; }

  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 76px;
    background: #fff; border-top: 1px solid var(--hairline-soft); z-index: 50;
    align-items: stretch; justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; font-size: 0.68rem; font-weight: 600; color: var(--mid-gray);
  }
  .tabbar a.on { color: var(--dark-teal); font-weight: 700; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar .refer-tab { position: relative; }
  .tabbar .refer-tab .bump {
    width: 48px; height: 48px; border-radius: 50%; background: var(--dark-teal); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-top: -26px;
    box-shadow: 0 6px 16px rgba(13,58,56,0.24);
  }
}

@media (max-width: 480px) {
  .avatar-wrap .txt { display: none; }
  .stat-tile { padding: 10px 8px 12px; }
  .stat-label { font-size: 0.64rem; }
}

/* footer — sibling of the patient portal's pt-footer */
.oc-footer{margin-top:40px;padding:26px 4px 8px;border-top:1px solid rgba(13,58,56,.08);}
.oc-footer-top{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;}
.oc-footer-brand{display:flex;align-items:center;gap:8px;}
.oc-footer-heart{height:22px;width:auto;display:block;}
.oc-footer-links{display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap;font-size:.83rem;font-weight:600;}
.oc-footer-links a{color:#0D3A38;text-decoration:none;opacity:.72;transition:opacity .15s,color .15s;}
.oc-footer-links a:hover{opacity:1;color:#23B1A6;}
.oc-footer-base{display:flex;align-items:baseline;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;
  margin-top:18px;padding-top:16px;border-top:1px dashed rgba(13,58,56,.12);}
.oc-footer-tag{font-family:'Lora',serif;font-size:.95rem;color:#0D3A38;}
.oc-footer-tag em{font-style:italic;color:#C4836A;}
.oc-footer-legal{font-size:.75rem;color:#6C757D;}
@media (max-width:959px){
  .oc-footer{text-align:center;padding-bottom:96px;}
  .oc-footer-top,.oc-footer-base{justify-content:center;}
}

/* ---- intended-parent share links (2026-09-09) ------------------------------
   Calm by design: minting a link is a routine thing an agency does several times
   a week, not a warning moment, so nothing here is red or heavy. */
.share-card .share-blurb { font-size: 0.87rem; color: var(--body-slate); line-height: 1.6; margin-top: 12px; }
.share-btn {
  margin-top: 15px; width: 100%; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--dark-teal);
  background: var(--dark-teal); color: var(--cream); font-size: 0.88rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.share-btn:hover { background: var(--deep-teal); border-color: var(--deep-teal); }
.share-count { margin-top: 10px; font-size: 0.78rem; color: var(--mid-gray); text-align: center; }

.share-dialog {
  border: 1px solid var(--hairline); border-radius: 20px; padding: 26px 26px 22px;
  max-width: 520px; width: calc(100% - 32px); background: var(--warm-white);
  color: var(--dark-teal); position: relative;
}
.share-dialog::backdrop { background: rgba(13,58,56,0.34); }
.share-dialog h3 { font-size: 1.24rem; font-weight: 500; margin-bottom: 4px; }
.share-dialog .share-blurb { font-size: 0.88rem; color: var(--body-slate); line-height: 1.62; margin: 10px 0 0; }
.share-x { position: absolute; top: 12px; right: 14px; }
.share-x button {
  border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--mid-gray); padding: 4px 8px;
}
.share-mint {
  margin-top: 18px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--teal);
  background: var(--teal-tint); color: var(--deep-teal); font-size: 0.86rem; font-weight: 600;
}
.share-mint:hover { background: var(--mint); }
.share-mint[disabled] { opacity: 0.55; cursor: default; }
.share-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.share-row { display: flex; align-items: center; gap: 8px; }
.share-url {
  flex: 1; min-width: 0; font-size: 0.78rem; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--hairline); background: var(--cream); color: var(--body-slate);
  font-variant-numeric: tabular-nums;
}
.share-copy, .share-revoke {
  flex: none; padding: 7px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--hairline); background: var(--warm-white); color: var(--deep-teal);
}
.share-copy:hover { border-color: var(--teal); color: var(--teal); }
.share-revoke { color: var(--terra-ink); }
.share-revoke:hover { border-color: var(--terracotta); }
.share-row.dead .share-dead { font-size: 0.8rem; color: var(--mid-gray); font-style: italic; }
.share-note { margin-top: 16px; font-size: 0.78rem; color: var(--mid-gray); line-height: 1.55; }
@media (max-width: 520px) {
  .share-dialog { padding: 22px 18px 18px; }
  .share-row { flex-wrap: wrap; }
  .share-url { flex-basis: 100%; }
}

/* ---- share card + dialog fixes (2026-09-28) --------------------------------
   1. .card carries no padding and .share-card never added any, so the blurb and
      button sat flush against the card edges.
   2. .share-dialog's position:relative cancelled the fixed, centered placement a
      modal <dialog> gets in the top layer, so it opened in the top-left corner. */
.share-card { padding-bottom: 22px; }
.share-card .share-blurb { margin: 0 24px; }
.share-card .share-btn { margin: 15px 24px 0; width: calc(100% - 48px); }
.share-dialog[open] { position: fixed; inset: 0; margin: auto; height: fit-content;
  max-height: calc(100vh - 32px); overflow: auto; }
