/* Mount Carmel Proprietary Search, client portal. Palette and type match mountcarmeladvisory.com. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --midnight: #111d28; --navy: #192d3b; --slate: #2d4555; --steel: #657784; --mist: #a7b4be;
  --white: #ffffff; --pale: #f2f5f7; --ink: #192d3b; --ink-soft: #46596a; --rule: #d5dde3; --rule-soft: #e6ebef;
  --good: #2f6b4f; --good-bg: #e6f1eb; --warn: #8a5a12; --warn-bg: #f8eedb; --bad: #8f2f2f; --bad-bg: #f6e3e3; --info-bg: #e5edf3;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --side: 15.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pale); color: var(--ink); font: 15px/1.55 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #6fa8d6; outline-offset: 2px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell: sidebar + main ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: #d3dbe1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .7rem; padding: 1.25rem 1.1rem 1.1rem; text-decoration: none; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; flex: none; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .015em; white-space: nowrap; }
.wordmark__rule { display: block; height: 1px; margin: .32rem 0 .28rem; background: rgba(255,255,255,.4); }
.wordmark__sub { font-size: .5rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.client-pick { margin: .9rem 1rem .25rem; }
.client-pick label { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: .3rem; }
.client-pick select { width: 100%; background: var(--slate); color: var(--white); border: 1px solid rgba(255,255,255,.15); border-radius: 3px; padding: .4rem .5rem; font-size: 13.5px; }
.client-name { margin: 1rem 1.1rem .25rem; font-size: 13px; color: var(--mist); }
.client-name b { display: block; color: var(--white); font-size: 14.5px; font-weight: 600; }
.snav { padding: .5rem .55rem; display: grid; gap: 2px; }
.snav a { display: flex; align-items: center; gap: .75rem; padding: .58rem .65rem; border-radius: 4px; text-decoration: none; color: #d3dbe1; font-weight: 500; font-size: 14.5px; }
.snav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.snav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.snav a.on { background: rgba(255,255,255,.12); color: var(--white); }
.snav .badge { margin-left: auto; min-width: 1.5em; padding: 0 .4em; border-radius: 9px; background: #c9a35b; color: var(--midnight); font-size: 11.5px; font-weight: 700; text-align: center; }
.snav hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: .45rem .3rem; }
.side-foot { margin-top: auto; padding: 1rem 1.1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: var(--mist); }
.role { display: grid; grid-template-columns: 1fr 1fr; background: var(--midnight); border-radius: 4px; padding: 3px; margin: .4rem 0 .8rem; }
.role button { background: none; border: 0; color: var(--mist); padding: .35rem .3rem; border-radius: 3px; font-size: 12.5px; cursor: pointer; }
.role button.on { background: var(--slate); color: var(--white); font-weight: 600; }
.side-foot a { color: #d3dbe1; }
.topbar-m { display: none; }

main { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.page { max-width: 80rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: .45rem; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.005em; line-height: 1.1; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
.sub { color: var(--ink-soft); margin-top: .4rem; max-width: 46rem; }
.sample { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border-radius: 3px; padding: .1rem .4rem; vertical-align: middle; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(18rem, 85vw); z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(17,29,40,.45); }
  .topbar-m { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--navy); color: var(--white); padding: .7rem 1rem; position: sticky; top: 0; z-index: 30; }
  .topbar-m .wordmark__name { font-size: 1.15rem; }
  .topbar-m button { background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); padding: .3rem .75rem; border-radius: 3px; }
  main { padding-inline: 1rem; }
}

/* ---------- building blocks ---------- */
.grid { display: grid; gap: 1.1rem; }
.g-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .g-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The sidebar takes ~250px, so two-column layouts stack while the main area is still fairly wide. */
@media (max-width: 1180px) { .g-2, .g-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .g-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack > * + * { margin-top: 1.1rem; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--rule-soft); flex-wrap: wrap; }
.card-b { padding: 1rem 1.1rem; }
.card-b > * + * { margin-top: .8rem; }
.more { font-size: 13px; color: var(--steel); text-decoration: none; }
.more:hover { color: var(--navy); text-decoration: underline; }
.kpi { padding: .95rem 1.05rem; }
.kpi .k { font-size: 12.5px; color: var(--ink-soft); }
.kpi .v { display: block; font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; margin-top: .1rem; }
.kpi .s { font-size: 12px; color: var(--steel); }
.list > li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 1.1rem; border-top: 1px solid var(--rule-soft); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.empty { padding: 1.4rem 1.1rem; color: var(--ink-soft); text-align: center; }
.when { flex: none; width: 3.4rem; text-align: center; border: 1px solid var(--rule); border-radius: 3px; padding: .2rem 0; line-height: 1.15; }
.when b { display: block; font-size: 1.15rem; }
.when span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }

.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: .12rem .5rem; border-radius: 10px; background: var(--info-bg); color: var(--slate); white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.dim { background: var(--rule-soft); color: var(--steel); }

.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--navy); color: var(--white); border: 1px solid var(--navy); border-radius: 3px; padding: .5rem .95rem; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--midnight); }
.btn.ghost { background: var(--white); color: var(--navy); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--steel); }
.btn.sm { padding: .3rem .65rem; font-size: 13px; }
.btn.danger { background: var(--white); color: var(--bad); border-color: #e2c3c3; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: var(--white); }
.seg a, .seg button { padding: .4rem .8rem; font-size: 13.5px; text-decoration: none; border: 0; background: none; cursor: pointer; color: var(--ink-soft); }
.seg .on { background: var(--navy); color: var(--white); }

label.f { display: grid; gap: .3rem; align-content: start; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; border: 1px solid var(--rule); border-radius: 3px; background: var(--white); padding: .5rem .6rem; font-size: 14.5px; font-weight: 400; color: var(--ink); }
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--steel); outline: none; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.fgrid .wide { grid-column: 1 / -1; }
.card-b.fgrid > * + * { margin-top: 0; }
@media (max-width: 640px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.rng-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.rng-h b { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fgrid:has(> .rng) { column-gap: 2.25rem; }
.rng-t { position: relative; height: 28px; margin-top: .25rem; }
.rng-t::before, .rng-t i { content: ""; position: absolute; top: 12px; height: 4px; border-radius: 2px; }
.rng-t::before { left: 10px; right: 10px; background: var(--rule); }
.rng-t i { background: var(--navy); }
.rng-t input { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rng-t input:focus { outline: none; }
.rng-t input::-webkit-slider-runnable-track { background: none; }
.rng-t input::-moz-range-track { background: none; }
.rng-t input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); cursor: grab; pointer-events: auto; }
.rng-t input::-moz-range-thumb { box-sizing: border-box; width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); cursor: grab; pointer-events: auto; }
.rng-t input:focus-visible::-webkit-slider-thumb { outline: 2px solid #6fa8d6; outline-offset: 2px; }
.rng-t input:focus-visible::-moz-range-thumb { outline: 2px solid #6fa8d6; outline-offset: 2px; }
.rng-e { display: flex; justify-content: space-between; font-size: 12px; }
.hint { font-size: 12.5px; color: var(--steel); font-weight: 400; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--rule); background: var(--pale); border-radius: 14px; padding: .2rem .35rem .2rem .7rem; font-size: 13.5px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--steel); font-size: 15px; line-height: 1; padding: 0 .2rem; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filters button { border: 1px solid var(--rule); background: var(--white); border-radius: 14px; padding: .25rem .75rem; font-size: 13px; cursor: pointer; color: var(--ink-soft); }
.filters button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--midnight); color: var(--white); padding: .6rem 1rem; border-radius: 4px; font-size: 14px; z-index: 60; }
.err { color: var(--bad); font-size: 13.5px; }

/* ---------- overview funnel ---------- */
.funnel { display: grid; gap: .55rem; }
.funnel .fr { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.5rem; gap: .75rem; align-items: center; font-size: 13.5px; }
.funnel .bar { height: 22px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; }
.funnel .bar i { display: block; height: 100%; background: var(--slate); min-width: 2px; }
.funnel .fr:nth-child(n+4) .bar i { background: var(--navy); }
.funnel .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.funnel .n small { display: block; font-weight: 400; color: var(--steel); font-size: 11px; }
.check li { display: flex; gap: .6rem; align-items: center; padding: .45rem 0; font-size: 14px; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; display: grid; place-items: center; font-size: 11px; color: var(--white); }
.tick.on { background: var(--good); border-color: var(--good); }

/* ---------- outreach ---------- */
.stagebar { display: flex; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); overflow-x: auto; }
.stagebar a { flex: 1 0 auto; min-width: 6.5rem; padding: .6rem .8rem; text-decoration: none; border-left: 1px solid var(--rule-soft); }
.stagebar a:first-child { border-left: 0; }
.stagebar a b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.stagebar a span { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.stagebar a.on { background: var(--info-bg); box-shadow: inset 0 -2px 0 var(--navy); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .5rem; }
.col { background: var(--rule-soft); border-radius: 4px; padding: .6rem; min-height: 8rem; }
.col h3 { display: flex; justify-content: space-between; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: .1rem .2rem .55rem; }
.tcard { display: block; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: .6rem .7rem; text-decoration: none; margin-bottom: .5rem; }
.tcard:hover { border-color: var(--steel); }
.tcard b { display: block; font-size: 14px; line-height: 1.3; }
.tcard .meta { font-size: 12px; color: var(--steel); margin-top: .2rem; }
.tcard .flag { margin-top: .4rem; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); font-weight: 600; padding: .6rem .9rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.t td { padding: .6rem .9rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.t tr:hover td { background: #f8fafb; }
table.t a { text-decoration: none; font-weight: 600; }
.tablewrap { overflow-x: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem 1.2rem; }
.facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.facts dd { font-weight: 600; margin-top: .1rem; }
.timeline li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; padding: .55rem 1.1rem; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.timeline li:first-child { border-top: 0; }
.timeline .ic { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--rule-soft); color: var(--slate); font-size: 11px; font-weight: 700; }
.timeline .ic.in { background: var(--good-bg); color: var(--good); }
.timeline .ic.buyer { background: var(--warn-bg); color: var(--warn); }
.timeline time { display: block; font-size: 12px; color: var(--steel); }
.brief { background: var(--pale); border-left: 3px solid var(--slate); padding: .8rem 1rem; font-size: 14.5px; }
.decide { background: var(--warn-bg); border: 1px solid #ecd9b4; border-radius: 4px; padding: 1rem 1.1rem; }

/* ---------- calendar ---------- */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule-soft); border-left: 1px solid var(--rule-soft); }
.month .dow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); padding: .4rem .5rem; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); background: var(--pale); }
.month .d { min-height: 5.6rem; padding: .3rem .4rem; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); font-size: 12.5px; }
.month .d.out { background: #fafbfc; color: var(--mist); }
.month .d.today .dn { background: var(--navy); color: var(--white); border-radius: 50%; }
.month .dn { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; font-weight: 600; }
.month .ev { display: block; background: var(--info-bg); border-left: 2px solid var(--navy); padding: .15rem .3rem; margin-top: .2rem; border-radius: 2px; font-size: 11.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month .ev.done { opacity: .6; }
@media (max-width: 700px) { .month .d { min-height: 3.6rem; } .month .ev { font-size: 0; height: 6px; padding: 0; } }
.copy { display: flex; gap: .5rem; }
.copy input { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.providers-ics { display: grid; gap: .5rem; }
.providers-ics > div { border: 1px solid var(--rule-soft); border-radius: 3px; padding: .7rem .8rem; font-size: 13px; }
.providers-ics b { display: block; margin-bottom: .2rem; font-size: 13.5px; }

/* ---------- documents ---------- */
.drop { display: block; position: relative; cursor: pointer; border: 1.5px dashed var(--mist); border-radius: 4px; padding: 1.2rem; text-align: center; background: var(--pale); color: var(--ink-soft); }
.drop.over { border-color: var(--navy); background: var(--info-bg); }
.doc { display: flex; gap: .8rem; align-items: center; }
.doc .ext { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 3px; background: var(--info-bg); color: var(--slate); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; text-transform: uppercase; }

/* ---------- deal team ---------- */
.pcard { display: flex; flex-direction: column; }
.pcard .card-h { align-items: flex-start; flex-wrap: nowrap; }
.pcard .logo { width: 2.6rem; height: 2.6rem; border-radius: 3px; background: var(--navy); color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: grid; place-items: center; flex: none; }
.pcard .card-b { flex: 1; }
.pcard .contact { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-top: 1px solid var(--rule-soft); flex-wrap: wrap; }
.star { color: #c9a35b; }

/* ---------- LOI ---------- */
.loi-wrap { display: grid; grid-template-columns: minmax(19rem, 25rem) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 1100px) { .loi-wrap { grid-template-columns: minmax(0, 1fr); } }
.loi-controls { max-height: calc(100vh - 6rem); overflow-y: auto; position: sticky; top: 1rem; }
@media (max-width: 1100px) { .loi-controls { position: static; max-height: none; } }
.lgroup { padding: .9rem 1.1rem; border-top: 1px solid var(--rule-soft); }
.lgroup:first-child { border-top: 0; }
.lgroup h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); margin-bottom: .6rem; }
.lc { margin-bottom: .6rem; }
.lc label { display: grid; gap: .25rem; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.lc label > span { display: flex; gap: .4rem; align-items: center; font-weight: 400; }
.lc-t { display: flex; gap: .5rem; align-items: center; margin-bottom: .55rem; font-size: 14px; cursor: pointer; }
.lc-t b { font-weight: 500; }
.lc-inner { margin: 0 0 .7rem 1.4rem; padding-left: .8rem; border-left: 2px solid var(--rule-soft); }
.fld { padding: .65rem 1.1rem; border-top: 1px solid var(--rule-soft); }
.fld.focus { background: var(--warn-bg); }
.fld .fl { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: .3rem; }
.fld .fl input { border: 0; padding: 0; font-weight: 600; font-size: 13.5px; background: transparent; color: var(--ink); }
.fld .fl input:focus { box-shadow: 0 1px 0 var(--steel); }
.fld .uses { font-size: 11.5px; color: var(--steel); white-space: nowrap; }
.fld .orig { font-size: 12px; color: var(--steel); margin-top: .25rem; }
.unit { display: flex; gap: .4rem; align-items: center; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.letter { background: var(--white); border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 3.25rem); font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.6; color: #1b2733; }
.letter p { margin: 0 0 .9rem; }
.letter .l-head { margin-bottom: 1.5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--rule); }
.letter .l-buyer { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.letter .l-meta { font-size: 11px; letter-spacing: .12em; color: var(--steel); font-family: var(--sans); }
.letter h4 { font-size: 15px; margin: 1.1rem 0 .4rem; }
.letter h4 span { display: inline-block; min-width: 1.8rem; }
.letter .l-list { list-style: lower-alpha; padding-left: 2.2rem; margin: 0 0 .9rem; }
.letter .l-list li { margin-bottom: .3rem; }
.letter .l-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.letter .l-line { border-bottom: 1px solid #1b2733; height: 2.2rem; margin-bottom: .3rem; }
.letter mark.ph { background: #fff3b0; padding: 0 .1em; }
.letter mark.fv { background: #e3edf6; padding: 0 .1em; border-radius: 2px; cursor: pointer; }
.letter mark.fv.empty { background: #fff3b0; }
.letter mark.fv.hot { background: #c9a35b; color: var(--white); }
.title-input { width: 100%; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; border: 0; border-bottom: 1px dashed transparent; background: none; padding: 0; }
.title-input:hover, .title-input:focus { border-bottom-color: var(--mist); outline: none; }
.newloi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 800px) { .newloi { grid-template-columns: minmax(0, 1fr); } }

@media print {
  .side, .topbar-m, .no-print, .loi-controls { display: none !important; }
  .shell, .loi-wrap { display: block; }
  main { padding: 0; }
  .letter { border: 0; padding: 0; }
  article.bl { page: bl; width: 8.5in; height: 11in; border: 0; font-size: 11pt; }
  .bl mark { background: none; }
  .bl, .bl * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page bl { size: letter; margin: 0; }

/* ---------- buyer letter ---------- */
.bl { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); color: var(--ink); font-size: 13px; line-height: 1.45; overflow: hidden; }
.bl mark { background: #fff3b0; color: inherit; padding: 0 .1em; }
.bl-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--midnight); color: var(--white); padding: 1.3em 2.6em; }
.bl-brand { font-family: var(--serif); font-weight: 600; font-size: 1.9em; line-height: 1.1; }
.bl-tag { text-align: right; font-size: .9em; }
.bl-tag span { display: block; font-size: .8em; letter-spacing: .24em; color: var(--mist); margin-bottom: .2em; }
.bl-main { flex: 1; padding: 1.5em 2.6em; }
.bl h2 { font-family: var(--serif); font-size: 2.1em; font-weight: 600; line-height: 1.12; margin: 0 0 .3em; }
.bl-intro { color: var(--ink-soft); margin: 0 0 1em; }
.bl h3 { font-family: var(--sans); font-size: .78em; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin: 1.3em 0 .6em; }
.bl-cols { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: 2em; margin-top: .4em; }
.bl-cols.bare { grid-template-columns: minmax(0, 1fr); gap: 1em; }
.bl-card img, .bl-noimg { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .8em; }
.bl-noimg { display: grid; place-items: center; background: var(--pale); color: var(--mist); font-family: var(--serif); font-size: 3.4em; }
.bl-who { font-family: var(--serif); font-weight: 600; font-size: 1.7em; line-height: 1.1; }
.bl-role { font-family: var(--serif); font-size: 1.15em; color: var(--ink-soft); margin: .15em 0 0; }
.bl-about h3:first-child { margin-top: 0; }
.bl-about p { margin: 0 0 .7em; }
.bl-jobs { margin: 0; padding: 0; list-style: none; }
.bl-jobs li { border-top: 1px solid var(--rule); padding: .4em 0; }
.bl-jobs b { display: block; }
.bl-expect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em 1.4em; }
.bl-expect div { border-top: 2px solid var(--midnight); padding-top: .35em; }
.bl-expect b { display: block; }
.bl-close { background: var(--pale); padding: .8em 1em; margin: 1.3em 0 0; font-family: var(--serif); font-size: 1.25em; line-height: 1.3; }
.bl-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3em 1.2em; background: var(--midnight); color: var(--white); padding: 1em 2.6em; font-size: .92em; }
.bl-foot b { font-weight: 600; }
.bl-foot mark { background: none; color: var(--mist); }
.lc-text { padding: .35rem 1rem; }
.lc-text label { display: block; font-size: 12.5px; color: var(--ink-soft); }
.lc-text input, .lc-text textarea { width: 100%; margin-top: .2rem; }
@media (max-width: 700px) { .bl-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- data room ---------- */
.room-folder { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--steel); text-transform: uppercase; padding: .7rem 1rem .1rem; }
.room-add { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .8rem 1rem; border-top: 1px solid var(--rule-soft); }

/* ---------- pipeline ---------- */
.tcard.deal a { text-decoration: none; }
.tcard .call { font-size: 12px; margin-top: .4rem; padding: .25rem .45rem; border-radius: 3px; background: var(--pale); color: var(--ink-soft); }
.tcard .call.soon { background: var(--good-bg); color: var(--good); font-weight: 600; }
.tcard .call.none { background: var(--warn-bg); color: var(--warn); }
select.move { margin-top: .5rem; width: 100%; font-size: 12.5px; padding: .25rem .4rem; }
table.t select.move { margin-top: 0; width: auto; min-width: 10rem; }

/* ---------- valuation ---------- */
.note-sample { padding: .75rem 1rem; margin-bottom: 1rem; font-size: 13.5px; color: var(--ink-soft); background: var(--warn-bg); border-color: #ecd9b4; }
.h2 { font-size: 1.15rem; font-weight: 600; }
table.t .r { text-align: right; white-space: nowrap; }
.vt tr.ind { cursor: pointer; }
.vt tr.ind td { padding-top: .75rem; padding-bottom: .75rem; }
.vt tr.ind.open td { background: var(--info-bg); }
.vt .chev { display: inline-block; width: 1rem; color: var(--steel); transition: transform .15s; }
.vt tr.open .chev { transform: rotate(90deg); }
.vt tr.detail > td { background: #f8fafb; padding: 1rem 1.1rem 1.2rem; }
.vt tr.detail:hover > td { background: #f8fafb; }
.vdetail .eyebrow { margin-bottom: .5rem; }
.yoy { display: flex; gap: .6rem; align-items: flex-end; max-width: 34rem; margin-bottom: .6rem; }
.yoy > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: 12.5px; }
.yoy i { display: block; width: 100%; background: var(--slate); border-radius: 2px 2px 0 0; opacity: .8; }
.yoy small { color: var(--steel); font-size: 11.5px; }
table.t.sub { background: var(--white); border: 1px solid var(--rule-soft); }
.bench-out { border-top: 1px solid var(--rule-soft); padding: 1rem 1.1rem 1.1rem; display: grid; gap: .9rem; }
.g-kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.g-kpi4 .kpi { border: 1px solid var(--rule-soft); border-radius: 4px; }
@media (max-width: 900px) { .g-kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.range { position: relative; height: 3.4rem; margin: .4rem .5rem 0; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; height: 6px; border-radius: 3px; background: var(--rule-soft); }
.range .band { position: absolute; top: 1.4rem; height: 6px; border-radius: 3px; background: var(--mist); }
.range .avg { position: absolute; top: 1.05rem; width: 2px; height: 13px; margin-left: -1px; background: var(--navy); }
.range .ask { position: absolute; top: 1.25rem; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--good); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--good); }
.range .ask.above { background: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.range .ask.below { background: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.range .ask em { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.range small { position: absolute; top: 2.15rem; transform: translateX(-50%); font-size: 11.5px; color: var(--steel); }
table.t.sub td:first-child { min-width: 13rem; }

/* ---------- signals ---------- */
.sig-count { font-size: 13.5px; color: var(--ink-soft); margin-right: .4rem; }
.sig-count b { color: var(--ink); font-size: 15px; }
.sigt td { min-width: 9rem; }
.sigt td:first-child { min-width: 12rem; }
.sigt td.hits { min-width: 14rem; }
.sigt tr.off td { color: var(--steel); }
.sig-tools { display: flex; gap: .8rem; align-items: center; margin-top: .45rem; }
.switch-row { display: inline-flex; gap: .4rem; align-items: center; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.hit { border-left: 2px solid var(--good); padding-left: .55rem; margin-bottom: .45rem; }
.hit a { font-weight: 600; }
.linkish { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--slate); text-decoration: underline; cursor: pointer; }
.rec select, .rec input { font-size: 13px; }
.switch { position: relative; display: inline-block; width: 34px; height: 20px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--rule); border-radius: 10px; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid #6fa8d6; outline-offset: 2px; }
.niche-pick { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; padding: .8rem 1.1rem 0; }
.niche-pick button { border: 1px solid var(--rule); background: var(--white); border-radius: 14px; padding: .25rem .75rem; font-size: 13px; cursor: pointer; color: var(--ink-soft); }
.niche-pick button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vt .bench-of { margin-left: 1rem; }
table.t.sub tr.mine td { background: var(--info-bg); font-weight: 600; }

/* ---------- feed ---------- */
.list.feed li.fitem { align-items: flex-start; gap: 1rem; }
.fitem.mc { background: var(--good-bg); }
.ftop { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .25rem; }
.ftitle { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--ink); }
a.ftitle:hover { text-decoration: underline; }
.fnote { margin-top: .4rem; font-size: 13.5px; padding: .45rem .6rem; border-left: 3px solid var(--good); background: var(--white); }
.factions { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; white-space: nowrap; }
.filters button.niche:not(.on) { border-color: var(--slate); color: var(--ink); }
.list.topics li.ftopic { align-items: flex-start; }
@media (max-width: 640px) { .factions { flex-direction: row; } .list.feed li.fitem { flex-wrap: wrap; } }

/* ---------- sign in: matches the Client Login page on mountcarmeladvisory.com ---------- */
body.auth-mode { background: var(--midnight); }
body.auth-mode .side, body.auth-mode .topbar-m { display: none; }
body.auth-mode .shell { grid-template-columns: minmax(0, 1fr); }
body.auth-mode main { padding: 0 !important; }
.al { min-height: 100vh; display: flex; flex-direction: column; background: var(--midnight); color: var(--white); }
.al a { color: inherit; }
.al :focus-visible { outline-color: #6fa8d6; }
.al-wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.al-head { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.16); }
.al-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.al-brand { text-decoration: none; display: inline-flex; padding: .5rem 0; }
.al-brand .wordmark__name { font-size: 1.625rem; }
.al-brand .wordmark__rule { margin: .35rem 0 .3rem; }
.al-brand .wordmark__sub { font-size: .625rem; letter-spacing: .42em; margin-right: -.42em; text-align: justify; text-align-last: justify; }
.al-back { font-size: .875rem; color: #d3dbe1 !important; text-decoration: none; }
.al-back:hover { color: var(--white) !important; text-decoration: underline; text-underline-offset: 3px; }
.al-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--navy) 0%, #172a37 60%, var(--midnight) 100%); padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 6.5rem); }
.al-motif { position: absolute; right: 0; bottom: 0; width: min(62rem, 120%); height: 72%; color: #8ea3b2; z-index: -1; pointer-events: none; opacity: .9; }
.al-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .875rem; }
.al-eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .7; }
.al-title { font-family: var(--serif); font-size: clamp(2.5rem, 5.2vw, 3.875rem); line-height: 1.02; font-weight: 500; letter-spacing: -.015em; max-width: 20ch; }
.al-body { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.7; color: #d3dbe1; }
.al-body b { color: var(--white); font-weight: 600; }
.al-main { flex: 1; padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 7.5rem); }
.al-form { max-width: 34rem; margin-inline: auto; }
.al-stack { display: grid; gap: 1.25rem; }
.al-field { display: grid; gap: .45rem; }
.al-field label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.al-field input { width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16); border-radius: 0; padding: .75rem .85rem; transition: border-color .2s ease, background-color .2s ease; }
.al-field input:focus { outline: none; border-color: var(--mist); background: rgba(255,255,255,.07); }
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3rem; padding: .75rem 1.5rem; margin-top: .5rem; border: 1px solid transparent; border-radius: 0; background: var(--white); color: var(--navy) !important; font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s ease; }
.al-btn:hover { background: var(--pale); }
.al-btn:disabled { opacity: .6; cursor: default; }
.al-btn::after { content: ""; width: .5rem; height: .5rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: .125rem; }
.al-err { border: 1px solid var(--mist); background: rgba(167,180,190,.1); padding: 1.25rem 1.5rem; font-size: 1rem; color: var(--white); }
.al-hint { font-size: .8125rem; color: var(--mist); }
.al-note { font-size: .8125rem; color: var(--mist); margin-top: 1.5rem; }
.al-note a { text-decoration: underline; text-underline-offset: 2px; }
.side-foot .linkish { color: #d3dbe1; padding: 0; font-size: inherit; }
