/* === Proposal · Meridian (Rocky Mountain professional looks) === */

.mll-app-hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 28px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
}
.mll-app-hero h1 { margin: 4px 0 6px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; }
.mll-app-hero p { color: var(--muted); max-width: 720px; margin: 0; }
.mll-app-hero__crumb a { color: var(--muted); font-size: 13px; }
.mll-app-hero__right { display: inline-flex; gap: 12px; align-items: center; }
.mll-conn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.mll-conn-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn);
}
.mll-conn-pill.is-ok::before { background: var(--ok); }
.mll-conn-pill.is-bad::before { background: var(--danger); }
.mll-conn-pill.is-ok { color: var(--ok); }
.mll-conn-pill.is-bad { color: var(--danger); }

/* === 4-quadrant grid === */
.mll-quad {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 28px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(360px, auto) minmax(360px, auto);
  gap: 18px;
}
@media (max-width: 980px) { .mll-quad { grid-template-columns: 1fr; padding: 16px; } }

.mll-quad__cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.mll-quad__head { display: flex; flex-direction: column; gap: 4px; }
.mll-quad__tag {
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
}
.mll-quad__cell h2 { font-size: 20px; margin: 0; }
.mll-quad__sub { color: var(--muted); font-size: 14px; margin: 0; }
.mll-quad__bullets { color: var(--text); padding-left: 18px; margin: 6px 0; }
.mll-quad__bullets li { margin-bottom: 4px; }
.mll-quad__cta { color: var(--accent-2); font-style: italic; font-size: 14px; margin: 0; }
.mll-quad__h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; margin: 14px 0 6px; color: var(--muted); }
.mll-quad__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.mll-quad__field select { width: 100%; }
.mll-quad__role-pill {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: #FFFFFF; font-weight: 700; font-size: 13px;
  align-self: flex-start;
  transition: background 200ms ease;
}
.mll-quad__btn {
  padding: 8px 14px; border-radius: 8px; border: 0;
  background: var(--accent); color: #FFFFFF; font-weight: 700;
}
.mll-quad__btn:hover { filter: brightness(1.05); }
.mll-quad__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* permission matrix */
.mll-perm-table { display: flex; flex-direction: column; gap: 8px; }
.mll-perm-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 6px 8px; background: var(--bg-2); border-radius: 8px; }
.mll-perm-row__label { font-size: 13px; font-weight: 600; }
.mll-perm-row__roles { display: flex; flex-wrap: wrap; gap: 6px; }
.mll-perm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 11px; color: var(--muted); cursor: pointer;
}
.mll-perm-chip:has(input:checked) { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.mll-perm-chip input { display: none; }

/* assign form */
.mll-assign { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.mll-assign label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }

/* email list */
.mll-email-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; max-height: 460px; display: flex; flex-direction: column; gap: 8px; }
.mll-email {
  padding: 10px 12px; background: var(--bg-2); border-left: 3px solid var(--line);
  border-radius: 8px; display: flex; flex-direction: column; gap: 3px;
  transition: background 600ms ease, border-color 600ms ease;
}
.mll-email[data-tag="matched"] { border-left-color: var(--accent-2); }
.mll-email--new { background: rgba(67, 56, 202, 0.12); border-left-color: var(--accent); }
.mll-email__hd { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mll-email__from { font-weight: 600; color: var(--text); }
.mll-email__subj { font-weight: 600; font-size: 14px; }
.mll-email__snip { font-size: 13px; color: var(--muted); }
.mll-email__tag { font-size: 11px; color: var(--accent-2); }
.mll-email__tag code { background: var(--panel); padding: 1px 5px; border-radius: 4px; }

/* workflow pipeline */
.mll-pipeline { display: flex; flex-direction: column; gap: 8px; max-height: 540px; overflow-y: auto; }
.mll-node {
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 8px; padding: 10px 12px;
  transition: opacity 200ms ease;
}
.mll-node.is-gate {
  background: rgba(180, 83, 9, 0.08);
  border-color: var(--warn);
  border-style: dashed;
}
.mll-node.is-scope-out { opacity: 0.4; }
.mll-node__hd { display: flex; justify-content: space-between; align-items: baseline; }
.mll-node__owner { font-size: 11px; color: var(--muted); }
.mll-node__tasks { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.mll-task {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px; background: var(--panel); border-radius: 6px;
  font-size: 13px;
  transition: background 600ms ease, transform 200ms ease;
}
.mll-task--flash { background: rgba(67, 56, 202, 0.2); transform: translateX(4px); }
.mll-task__check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: 1; }
.mll-task__label { color: var(--text); }
.mll-task input:checked + .mll-task__label { text-decoration: line-through; color: var(--muted); }
.mll-task__assignee { font-size: 11px; color: var(--accent-2); font-weight: 600; }

/* ============================================================
 * REDESIGNED PROPOSAL DECK — slide-style, SD hero, scroll reveal
 * Scoped under .mll-pr-page so it never leaks into the platform.
 * ============================================================ */

.mll-pr-page {
  --pr-ink: #14181F;
  --pr-paper: #FBF7EE;
  --pr-cream: #F1ECE0;
  --pr-line: rgba(20, 24, 31, 0.10);
  --pr-muted: rgba(20, 24, 31, 0.62);
  --pr-accent: #14532D;
  --pr-accent-2: #B45309;
  --pr-onhero: #FBF7EE;
  background: var(--pr-paper);
  color: var(--pr-ink);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}
.mll-pr-page .mll-header { background: transparent; border-bottom: 0; box-shadow: none; }

/* Side rail with section dots + sticky design picker */
.mll-pr-rail {
  position: fixed; top: 50%; right: 22px; transform: translateY(-50%);
  z-index: 25;
  display: flex; flex-direction: column; align-items: flex-end; gap: 18px;
}
.mll-pr-rail__crumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(251, 247, 238, 0.85);
  color: var(--pr-ink); border: 1px solid var(--pr-line);
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.mll-pr-rail__dots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mll-pr-rail__dots a {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  color: var(--pr-muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px;
  transition: color 200ms ease, background 200ms ease;
}
.mll-pr-rail__dots a span { font-variant-numeric: tabular-nums; font-weight: 700; }
.mll-pr-rail__dots a em { font-style: normal; opacity: 0; transform: translateX(8px); transition: opacity 200ms ease, transform 200ms ease; }
.mll-pr-rail__dots a:hover { color: var(--pr-ink); background: rgba(251, 247, 238, 0.7); text-decoration: none; }
.mll-pr-rail__dots a:hover em { opacity: 1; transform: translateX(0); }
.mll-pr-rail__dots a.is-active { color: var(--pr-accent); background: rgba(251, 247, 238, 0.9); }
.mll-pr-rail__dots a.is-active em { opacity: 1; transform: translateX(0); }

.mll-pr-design {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: rgba(251, 247, 238, 0.85);
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--pr-line);
  backdrop-filter: blur(8px);
  min-width: 200px;
}
.mll-pr-design__lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--pr-muted); }
.mll-pr-design select { width: 100%; background: #FFFFFF; }

@media (max-width: 880px) {
  .mll-pr-rail { right: 12px; left: 12px; top: auto; bottom: 12px; transform: none;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .mll-pr-rail__dots { flex-direction: row; flex-wrap: wrap; }
  .mll-pr-rail__dots a em { display: none; }
  .mll-pr-design { min-width: auto; flex: 1; max-width: 220px; }
}

/* Deck + slides — vertical scroll snap, each slide ≥ viewport */
/* Snap on the actual scroll container (html), not the deck which has no overflow.
   Applies on the /c/<slug>/proposal/draft route via .mll-pr-page so the rest of
   the site isn't affected. */
html:has(body.mll-pr-page) {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}
.mll-pr-page { scroll-snap-type: y mandatory; }
.mll-pr-deck { scroll-snap-type: y mandatory; }
.mll-pr-slide {
  position: relative;
  min-height: 100vh;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 6vw, 80px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Designs with extra-tall hero (e.g. Highcountry at 110vh) still snap to start */
.mll-pr-slide--hero { scroll-snap-align: start; }
.mll-pr-slide__inner { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 22px; }
.mll-pr-slide__inner--center { text-align: center; align-items: center; }
.mll-pr-slide__inner--center .mll-pr-hero-cta { justify-content: center; }

/* Eyebrows / typography */
.mll-pr-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2.2px; font-weight: 700;
  color: var(--pr-accent);
  display: inline-block;
}
.mll-pr-slide h1,
.mll-pr-slide h2 {
  font-family: "Source Serif Pro", Georgia, "Iowan Old Style", serif;
  font-weight: 600; letter-spacing: -0.012em;
  margin: 0;
  color: var(--pr-ink);
}
.mll-pr-slide h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.04; }
.mll-pr-slide h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; }
.mll-pr-slide h1 em { font-style: italic; color: var(--pr-accent); font-weight: 500; }

.mll-pr-lede {
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55;
  color: var(--pr-muted); max-width: 760px; margin: 0;
}

/* Hero slide */
.mll-pr-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  filter: saturate(0.92) contrast(1.04);
  z-index: 0;
  will-change: transform;
  opacity: 0;
  transition: opacity 900ms ease;
}
.mll-pr-hero-bg.is-loaded { opacity: 1; }
.mll-pr-hero-bg__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.05) 0%, rgba(12, 12, 14, 0.45) 60%, rgba(12, 12, 14, 0.78) 100%),
    radial-gradient(circle at 30% 40%, rgba(12, 12, 14, 0.1), rgba(12, 12, 14, 0.7) 90%);
  z-index: 1;
}
.mll-pr-hero-bg__veil--strong {
  background: linear-gradient(180deg, rgba(12,12,14,0.55), rgba(12,12,14,0.88));
}
.mll-pr-slide--hero,
.mll-pr-slide--close { color: var(--pr-onhero); }
.mll-pr-slide--hero h1,
.mll-pr-slide--close h2 { color: var(--pr-onhero); }
.mll-pr-slide--hero .mll-pr-eyebrow,
.mll-pr-slide--close .mll-pr-eyebrow { color: rgba(251, 247, 238, 0.78); }
.mll-pr-slide--hero .mll-pr-lede,
.mll-pr-slide--close .mll-pr-lede { color: rgba(251, 247, 238, 0.92); }
.mll-pr-slide--hero h1 em,
.mll-pr-slide--close h2 em { color: #F6D58A; }

.mll-pr-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 6vw, 80px);
  width: 100%; max-width: 1200px;
  align-items: end;
}
@media (max-width: 880px) { .mll-pr-hero-grid { grid-template-columns: 1fr; } }
.mll-pr-hero-grid__col--meta dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.mll-pr-hero-grid__col--meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(251, 247, 238, 0.65); align-self: center; }
.mll-pr-hero-grid__col--meta dd { margin: 0; font-weight: 600; color: rgba(251, 247, 238, 0.95); }

.mll-pr-hero-title { max-width: 14ch; }
.mll-pr-hero-lead { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; color: rgba(251, 247, 238, 0.92); max-width: 540px; margin: 8px 0 0; }
.mll-pr-hero-cta { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

.mll-pr-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--pr-paper);
  color: var(--pr-ink);
  font-weight: 700; letter-spacing: 0.2px;
  box-shadow: 0 14px 40px -16px rgba(12, 12, 14, 0.45);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
}
.mll-pr-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -18px rgba(12, 12, 14, 0.55); text-decoration: none; }
.mll-pr-cta span { transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
.mll-pr-cta:hover span { transform: translateX(4px); }
.mll-pr-cta--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  box-shadow: none;
}
.mll-pr-cta--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Slide 02 — Why */
.mll-pr-slide--why { background: var(--pr-cream); }
.mll-pr-stat-grid {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px;
}
.mll-pr-stat {
  padding: 26px 22px;
  background: var(--pr-paper);
  border: 1px solid var(--pr-line);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.mll-pr-stat strong {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(38px, 5vw, 58px); font-weight: 600;
  color: var(--pr-accent);
  line-height: 1;
}
.mll-pr-stat span { font-size: 13px; color: var(--pr-muted); }

/* Slide 03 — Approach pillars */
.mll-pr-slide--approach { background: var(--pr-paper); }
.mll-pr-pillars {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.mll-pr-pillar {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--pr-cream);
  border-radius: 18px;
  border: 1px solid var(--pr-line);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 220ms ease, border-color 220ms ease;
}
.mll-pr-pillar:hover { transform: translateY(-4px); border-color: var(--pr-accent); }
.mll-pr-pillar__num {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 14px; color: var(--pr-accent-2);
  letter-spacing: 1.6px;
}
.mll-pr-pillar h3 { font-family: "Source Serif Pro", Georgia, serif; font-size: 22px; font-weight: 600; margin: 0; color: var(--pr-ink); }
.mll-pr-pillar p { margin: 0; color: var(--pr-muted); font-size: 14.5px; line-height: 1.55; }

/* Slide 04 — Tiers */
.mll-pr-slide--tiers { background: var(--pr-cream); }
.mll-pr-tier-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.mll-pr-tier {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--pr-paper);
  border-radius: 18px;
  border: 1px solid var(--pr-line);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms ease, border-color 240ms ease;
  box-shadow: 0 6px 20px -12px rgba(12, 12, 14, 0.12);
}
.mll-pr-tier:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(12, 12, 14, 0.22); border-color: var(--pr-accent); }
.mll-pr-tier header h3 { margin: 0; font-family: "Source Serif Pro", Georgia, serif; font-size: 22px; font-weight: 600; }
.mll-pr-tier__price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; color: var(--pr-ink); }
.mll-pr-tier__dollar { font-size: 18px; font-weight: 700; color: var(--pr-accent); }
.mll-pr-tier__num { font-family: "Source Serif Pro", Georgia, serif; font-size: clamp(34px, 4vw, 44px); font-weight: 700; color: var(--pr-accent); letter-spacing: -0.01em; }
.mll-pr-tier__cadence { font-size: 12px; color: var(--pr-muted); margin-left: 4px; }
.mll-pr-tier__lead { font-size: 14px; color: var(--pr-muted); margin: 6px 0 0; line-height: 1.55; }
.mll-pr-tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mll-pr-tier ul li { font-size: 13.5px; color: var(--pr-ink); padding-left: 18px; position: relative; line-height: 1.55; }
.mll-pr-tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--pr-accent); font-weight: 700; font-size: 12px; }
.mll-pr-tier footer { font-size: 12px; color: var(--pr-muted); border-top: 1px solid var(--pr-line); padding-top: 10px; margin-top: auto; }
.mll-pr-tier footer strong { color: var(--pr-accent); }
.mll-pr-tier__flag {
  position: absolute; top: -10px; right: 18px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--pr-accent); color: var(--pr-paper);
  font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700;
}
.mll-pr-tier__flag--soft { background: var(--pr-accent-2); }
.mll-pr-tier--delivery { border-color: var(--pr-accent); }
.mll-pr-tier--delivery .mll-pr-tier__num { color: var(--pr-accent-2); }

/* Slide 05 — Timeline */
.mll-pr-slide--timeline { background: var(--pr-paper); }
.mll-pr-timeline {
  position: relative;
  list-style: none; padding: 28px 0 0; margin: 0;
}
.mll-pr-timeline::before {
  content: ""; position: absolute; left: 14px; top: 28px; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--pr-accent), var(--pr-line));
}
.mll-pr-timeline li {
  position: relative;
  padding: 12px 0 24px 44px;
  display: grid; grid-template-columns: 140px 1fr; gap: 18px;
  align-items: baseline;
}
.mll-pr-timeline__dot {
  position: absolute; left: 6px; top: 18px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pr-paper); border: 3px solid var(--pr-accent);
  box-shadow: 0 0 0 6px rgba(20, 83, 45, 0.08);
}
.mll-pr-timeline__phase {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 18px; font-weight: 600; color: var(--pr-accent);
}
.mll-pr-timeline__what { color: var(--pr-ink); font-size: 15px; line-height: 1.55; }
@media (max-width: 720px) {
  .mll-pr-timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* Slide 06 — FAQ */
.mll-pr-slide--faq { background: var(--pr-cream); }
.mll-pr-faq {
  margin: 24px 0 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--pr-line);
}
.mll-pr-faq__item {
  border-bottom: 1px solid var(--pr-line);
  padding: 20px 0;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px;
}
@media (max-width: 720px) { .mll-pr-faq__item { grid-template-columns: 1fr; } }
.mll-pr-faq dt { font-family: "Source Serif Pro", Georgia, serif; font-size: 19px; font-weight: 600; color: var(--pr-ink); }
.mll-pr-faq dd { margin: 0; color: var(--pr-muted); font-size: 15px; line-height: 1.6; }

/* Slide 07 — Close */
.mll-pr-slide--close { background: var(--pr-ink); }

/* Scroll hint */
.mll-pr-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 2px solid rgba(251, 247, 238, 0.55);
  border-radius: 14px;
  z-index: 2;
}
.mll-pr-scroll-hint span {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 2px;
  background: rgba(251, 247, 238, 0.75);
  animation: mll-pr-scroll 1.6s ease-in-out infinite;
}
@keyframes mll-pr-scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Design-switch crossfade veil */
.mll-pr-veil {
  position: fixed; inset: 0;
  background: var(--pr-ink);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 400ms ease;
}
.mll-pr-veil.is-on { opacity: 1; pointer-events: auto; }

/* ============================================================
 * Per-design overrides — repaint accent + cream + ink only.
 * Hero imagery is delivered by SD via background-image.
 * ============================================================ */

.mll-pr--summit {
  --pr-accent: #0F766E;
  --pr-accent-2: #115E59;
  --pr-cream: #E9E5DA;
  --pr-paper: #F5F1E6;
  --pr-ink: #14181F;
}
.mll-pr--trailhead {
  --pr-accent: #3730A3;
  --pr-accent-2: #1E40AF;
  --pr-cream: #EAECF4;
  --pr-paper: #F4F5FB;
  --pr-ink: #1A1F33;
}
.mll-pr--ridgeline {
  --pr-accent: #B45309;
  --pr-accent-2: #7C2D12;
  --pr-cream: #E6E8EA;
  --pr-paper: #F3F4F6;
  --pr-ink: #1B2128;
}
.mll-pr--evergreen {
  --pr-accent: #14532D;
  --pr-accent-2: #166534;
  --pr-cream: #EFEBDD;
  --pr-paper: #F7F3E5;
  --pr-ink: #1A1F1A;
}
.mll-pr--highcountry {
  --pr-accent: #C2410C;
  --pr-accent-2: #7C2D12;
  --pr-cream: #EFE7CC;
  --pr-paper: #FAF3E1;
  --pr-ink: #20180E;
}

/* Respect reduced-motion: kill reveal + parallax */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mll-pr-scroll-hint span { animation: none; }
  .mll-pr-hero-bg { transform: none; }
  .mll-pr-page { scroll-behavior: auto; }
  /* Reduced-motion users get proximity snap so it doesn't fight scroll */
  html:has(body.mll-pr-page),
  .mll-pr-page,
  .mll-pr-deck { scroll-snap-type: y proximity; }
  .mll-pr-slide { scroll-snap-stop: normal; }
}

/* ============================================================
 * Template label in the rail + hero meta
 * ============================================================ */
.mll-pr-template-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700;
  color: var(--pr-accent);
  background: var(--pr-paper);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--pr-accent);
  width: fit-content;
  margin-bottom: 4px;
}
.mll-pr-template-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pr-accent);
  animation: mll-pr-pulse 2.4s ease-in-out infinite;
}
@keyframes mll-pr-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.mll-pr-design__note {
  font-size: 10px; color: var(--pr-muted); font-style: italic;
  letter-spacing: 0.2px;
}
.mll-pr-template-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: rgba(251, 247, 238, 0.12);
  border-left: 2px solid rgba(251, 247, 238, 0.6);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(251, 247, 238, 0.88);
  border-radius: 4px;
}

/* ============================================================
 * PER-DESIGN LAYOUT SHIFTS
 * Each look re-composes hero alignment, type, section rhythm,
 * tier grid, timeline orientation, and reveal motion so the
 * dropdown produces a real layout change, not a recolor.
 * ============================================================ */

/* === SUMMIT · cinematic letterbox =========================== */
.mll-pr--summit .mll-pr-slide--hero {
  padding-top: clamp(96px, 14vh, 160px);
  padding-bottom: clamp(96px, 14vh, 160px);
}
.mll-pr--summit .mll-pr-hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 900px;
}
.mll-pr--summit .mll-pr-hero-grid__col--main { align-items: center; }
.mll-pr--summit .mll-pr-hero-title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.mll-pr--summit .mll-pr-hero-lead { margin-left: auto; margin-right: auto; }
.mll-pr--summit .mll-pr-hero-grid__col--meta dl { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2px 0; }
.mll-pr--summit .mll-pr-hero-grid__col--meta dt { display: block; }
.mll-pr--summit .mll-pr-hero-grid__col--meta dd { margin-bottom: 6px; }
.mll-pr--summit .mll-pr-slide--hero::before,
.mll-pr--summit .mll-pr-slide--hero::after {
  content: ""; position: absolute; left: 0; right: 0; height: 56px;
  background: #0c0c0e; z-index: 1;
}
.mll-pr--summit .mll-pr-slide--hero::before { top: 0; }
.mll-pr--summit .mll-pr-slide--hero::after { bottom: 0; }
.mll-pr--summit .mll-pr-tier-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.mll-pr--summit .mll-pr-tier { padding: 32px 28px 28px; }
.mll-pr--summit .mll-pr-slide__inner { max-width: 900px; }

/* === TRAILHEAD · editorial split + topo underlines ========== */
.mll-pr--trailhead .mll-pr-hero-grid {
  grid-template-columns: 1fr 1.55fr;
  align-items: stretch;
}
.mll-pr--trailhead .mll-pr-hero-grid__col--main { order: 2; }
.mll-pr--trailhead .mll-pr-hero-grid__col--meta { order: 1; align-self: flex-start; padding-top: 16px; }
.mll-pr--trailhead .mll-pr-eyebrow {
  border-bottom: 1px dotted currentColor; padding-bottom: 4px; margin-bottom: 6px;
}
.mll-pr--trailhead .mll-pr-slide h2 {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.mll-pr--trailhead .mll-pr-tier-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mll-pr--trailhead .mll-pr-tier:nth-child(odd) { transform: translateY(20px); }
.mll-pr--trailhead .mll-pr-tier:nth-child(even) { transform: translateY(-8px); }
.mll-pr--trailhead .mll-pr-tier:nth-child(odd):hover { transform: translateY(14px); }
.mll-pr--trailhead .mll-pr-tier:nth-child(even):hover { transform: translateY(-14px); }
.mll-pr--trailhead .mll-pr-pillars {
  grid-template-columns: 1fr;
}
.mll-pr--trailhead .mll-pr-pillar {
  display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center;
}
.mll-pr--trailhead .mll-pr-pillar__num { font-size: 28px; color: var(--pr-accent); align-self: start; }
.mll-pr--trailhead [data-reveal] { transform: translateX(-32px); }
.mll-pr--trailhead [data-reveal].is-in { transform: translateX(0); }
@media (max-width: 880px) {
  .mll-pr--trailhead .mll-pr-hero-grid { grid-template-columns: 1fr; }
  .mll-pr--trailhead .mll-pr-hero-grid__col--main { order: 1; }
  .mll-pr--trailhead .mll-pr-hero-grid__col--meta { order: 2; }
  .mll-pr--trailhead .mll-pr-tier:nth-child(odd),
  .mll-pr--trailhead .mll-pr-tier:nth-child(even) { transform: none; }
}

/* === RIDGELINE · magazine, copper rules, oversized numerals = */
.mll-pr--ridgeline .mll-pr-hero-grid { grid-template-columns: 1.85fr 1fr; }
.mll-pr--ridgeline .mll-pr-hero-title { max-width: 16ch; }
.mll-pr--ridgeline .mll-pr-hero-lead::first-letter {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 56px; line-height: 0.85; font-weight: 700;
  float: left; margin: 6px 10px 0 0; color: var(--pr-accent-2);
}
.mll-pr--ridgeline .mll-pr-eyebrow {
  font-style: italic; font-weight: 600; letter-spacing: 2.6px;
}
.mll-pr--ridgeline .mll-pr-eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: var(--pr-accent-2); vertical-align: middle; margin-right: 10px;
}
.mll-pr--ridgeline .mll-pr-slide h2 { font-family: "Source Serif Pro", Georgia, serif; }
.mll-pr--ridgeline .mll-pr-stat-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
.mll-pr--ridgeline .mll-pr-stat strong {
  font-size: clamp(56px, 8vw, 92px);
  color: var(--pr-accent-2);
}
.mll-pr--ridgeline .mll-pr-tier__num { font-size: clamp(48px, 5.5vw, 64px); color: var(--pr-accent-2); }
.mll-pr--ridgeline .mll-pr-tier__price { gap: 8px; }
.mll-pr--ridgeline .mll-pr-tier {
  border-top: 3px solid var(--pr-accent-2);
  border-radius: 6px;
}
.mll-pr--ridgeline .mll-pr-proposal__panel,
.mll-pr--ridgeline .mll-pr-slide--why,
.mll-pr--ridgeline .mll-pr-slide--tiers,
.mll-pr--ridgeline .mll-pr-slide--timeline,
.mll-pr--ridgeline .mll-pr-slide--faq { background: var(--pr-paper); }
.mll-pr--ridgeline .mll-pr-slide:not(.mll-pr-slide--hero):not(.mll-pr-slide--close) {
  border-top: 1px solid rgba(180, 83, 9, 0.25);
}
@media (max-width: 720px) {
  .mll-pr--ridgeline .mll-pr-stat-grid { grid-template-columns: 1fr; }
}

/* === EVERGREEN · boardroom brochure ========================= */
.mll-pr--evergreen .mll-pr-slide h2 { text-align: center; }
.mll-pr--evergreen .mll-pr-slide__inner > .mll-pr-eyebrow { align-self: center; text-align: center; }
.mll-pr--evergreen .mll-pr-slide__inner > p,
.mll-pr--evergreen .mll-pr-slide__inner > h2 { text-align: center; margin-left: auto; margin-right: auto; }
.mll-pr--evergreen .mll-pr-hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 880px; }
.mll-pr--evergreen .mll-pr-hero-grid__col--main { align-items: center; }
.mll-pr--evergreen .mll-pr-hero-title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.mll-pr--evergreen .mll-pr-hero-grid__col--meta dl { justify-content: center; }
.mll-pr--evergreen .mll-pr-hero-bg { filter: saturate(0.7) contrast(1) brightness(0.75); }
.mll-pr--evergreen .mll-pr-hero-bg__veil {
  background: linear-gradient(180deg, rgba(20, 25, 18, 0.55), rgba(20, 25, 18, 0.85));
}
.mll-pr--evergreen .mll-pr-slide:not(.mll-pr-slide--hero):not(.mll-pr-slide--close) {
  padding: clamp(64px, 9vh, 110px) clamp(20px, 6vw, 80px);
}
.mll-pr--evergreen .mll-pr-slide__inner {
  border: 2px double var(--pr-accent);
  background: var(--pr-paper);
  padding: 44px 52px;
  border-radius: 4px;
  box-shadow: 0 28px 60px -36px rgba(20, 30, 20, 0.4);
  max-width: 980px;
}
.mll-pr--evergreen .mll-pr-tier-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
.mll-pr--evergreen .mll-pr-tier {
  border: 1px solid var(--pr-accent);
  background: transparent;
  border-radius: 2px;
}
.mll-pr--evergreen .mll-pr-tier__num { font-family: "Source Serif Pro", Georgia, serif; }
.mll-pr--evergreen .mll-pr-pillars { grid-template-columns: repeat(2, 1fr); }
.mll-pr--evergreen .mll-pr-timeline { padding-left: 0; }
.mll-pr--evergreen .mll-pr-timeline::before { left: 50%; transform: translateX(-50%); }
.mll-pr--evergreen .mll-pr-timeline li {
  grid-template-columns: 1fr;
  padding: 8px 0 28px 0;
  text-align: center;
}
.mll-pr--evergreen .mll-pr-timeline__dot { left: 50%; transform: translateX(-50%); top: 12px; }
@media (max-width: 720px) {
  .mll-pr--evergreen .mll-pr-tier-grid { grid-template-columns: 1fr; }
  .mll-pr--evergreen .mll-pr-pillars { grid-template-columns: 1fr; }
  .mll-pr--evergreen .mll-pr-slide__inner { padding: 28px 22px; }
}

/* === HIGH COUNTRY · poster, oversized type, single-col tiers */
.mll-pr--highcountry .mll-pr-slide--hero {
  min-height: 110vh;
  padding-top: clamp(120px, 16vh, 200px);
}
.mll-pr--highcountry .mll-pr-hero-title {
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.96;
  max-width: 16ch;
}
.mll-pr--highcountry .mll-pr-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
}
.mll-pr--highcountry .mll-pr-eyebrow::after { content: " ::"; opacity: 0.55; }
.mll-pr--highcountry .mll-pr-hero-grid { grid-template-columns: 1fr; }
.mll-pr--highcountry .mll-pr-hero-grid__col--meta {
  margin-top: 28px;
  border-top: 1px solid rgba(251, 247, 238, 0.3);
  padding-top: 18px;
}
.mll-pr--highcountry .mll-pr-hero-grid__col--meta dl {
  grid-template-columns: repeat(5, 1fr);
  gap: 0 18px;
}
.mll-pr--highcountry .mll-pr-hero-grid__col--meta dt { font-size: 9px; }
.mll-pr--highcountry .mll-pr-hero-grid__col--meta dd { font-size: 13px; }
.mll-pr--highcountry .mll-pr-template-note { display: none; }
.mll-pr--highcountry .mll-pr-slide h2 {
  font-size: clamp(38px, 6vw, 80px);
  max-width: 22ch;
}
.mll-pr--highcountry .mll-pr-tier-grid { grid-template-columns: 1fr; gap: 14px; }
.mll-pr--highcountry .mll-pr-tier {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto;
  gap: 28px; padding: 22px 28px;
  align-items: center;
}
.mll-pr--highcountry .mll-pr-tier header { display: contents; }
.mll-pr--highcountry .mll-pr-tier header h3 { grid-column: 1 / 2; align-self: center; }
.mll-pr--highcountry .mll-pr-tier__price { grid-column: 2 / 3; }
.mll-pr--highcountry .mll-pr-tier__lead { grid-column: 3 / 4; align-self: center; margin: 0; }
.mll-pr--highcountry .mll-pr-tier ul { display: none; }
.mll-pr--highcountry .mll-pr-tier__flag { position: static; align-self: center; grid-column: 4 / 5; justify-self: end; }
.mll-pr--highcountry .mll-pr-tier footer { display: none; }
.mll-pr--highcountry .mll-pr-stat-grid {
  grid-template-columns: 1fr;
  max-width: 480px; gap: 6px;
}
.mll-pr--highcountry .mll-pr-stat {
  display: grid; grid-template-columns: auto 1fr;
  gap: 18px; align-items: baseline;
  background: transparent; border: 0; border-bottom: 1px solid var(--pr-line);
  padding: 14px 0; border-radius: 0;
}
.mll-pr--highcountry .mll-pr-stat strong { font-size: clamp(48px, 7vw, 88px); }
.mll-pr--highcountry .mll-pr-stat span { font-size: 16px; }
.mll-pr--highcountry [data-reveal] { transform: translateY(48px); transition-duration: 900ms; }
.mll-pr--highcountry [data-reveal].is-in { transform: translateY(0); }
@media (max-width: 880px) {
  .mll-pr--highcountry .mll-pr-tier {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mll-pr--highcountry .mll-pr-tier header { display: flex; flex-direction: column; gap: 4px; }
  .mll-pr--highcountry .mll-pr-tier__lead,
  .mll-pr--highcountry .mll-pr-tier__price,
  .mll-pr--highcountry .mll-pr-tier__flag,
  .mll-pr--highcountry .mll-pr-tier header h3 { grid-column: auto; }
  .mll-pr--highcountry .mll-pr-hero-grid__col--meta dl { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
 * 5 ROCKY-MOUNTAIN PROFESSIONAL DESIGN VARIANTS
 * Each variant repaints --accent, --bg, --panel, hero, and
 * gradient/texture treatments so the dropdown swap is obvious.
 * ========================================================= */

/* 1. Summit Granite — stone gray + alpine teal */
.mll-proposal--summit {
  --bg: #EDEAE3;
  --bg-2: #DCD7CB;
  --panel: #F6F3EC;
  --panel-2: #EAE5D8;
  --line: #C7BFAE;
  --text: #1A1F24;
  --muted: #5B6168;
  --accent: #0F766E;
  --accent-2: #134E4A;
}
.mll-proposal--summit .mll-proposal__hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.85), rgba(20, 30, 40, 0.85)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'><polygon points='0,300 120,80 220,200 360,40 520,180 680,60 800,200 800,300' fill='%231F2937' opacity='0.5'/><polygon points='0,300 100,180 240,120 380,220 540,100 700,200 800,150 800,300' fill='%23475569' opacity='0.6'/></svg>") center/cover no-repeat;
  color: #F6F3EC;
}
.mll-proposal--summit .mll-proposal__hero h1 { color: #F6F3EC; }
.mll-proposal--summit .mll-proposal__lead { color: rgba(246, 243, 236, 0.92); }
.mll-proposal--summit .mll-proposal__hero .mll-cta { background: #F6F3EC; color: #0F766E; }
.mll-proposal--summit .mll-proposal__hero .mll-proposal__ghost { color: #F6F3EC; }

/* 2. Trailhead Indigo — topo lines + deep indigo */
.mll-proposal--trailhead {
  --bg: #ECEEF5;
  --bg-2: #DDE1EF;
  --panel: #F4F6FB;
  --panel-2: #E6E9F4;
  --line: #BCC4DA;
  --text: #161A2C;
  --muted: #5A6280;
  --accent: #3730A3;
  --accent-2: #1E40AF;
}
.mll-proposal--trailhead .mll-proposal__hero {
  background:
    linear-gradient(135deg, rgba(55, 48, 163, 0.92), rgba(30, 64, 175, 0.88)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><g fill='none' stroke='%23ffffff' stroke-opacity='0.15' stroke-width='1'><path d='M0 200 Q100 80 200 200 T400 200'/><path d='M0 240 Q100 120 200 240 T400 240'/><path d='M0 160 Q100 40 200 160 T400 160'/><path d='M0 280 Q100 160 200 280 T400 280'/><path d='M0 120 Q100 0 200 120 T400 120'/></g></svg>") center/cover repeat;
  color: #F4F6FB;
}
.mll-proposal--trailhead .mll-proposal__hero h1 { color: #F4F6FB; }
.mll-proposal--trailhead .mll-proposal__lead { color: rgba(244, 246, 251, 0.92); }
.mll-proposal--trailhead .mll-proposal__hero .mll-cta { background: #F4F6FB; color: #3730A3; }
.mll-proposal--trailhead .mll-proposal__hero .mll-proposal__ghost { color: #F4F6FB; }

/* 3. Ridgeline Slate — slate gray + copper */
.mll-proposal--ridgeline {
  --bg: #E9EBED;
  --bg-2: #D6D9DD;
  --panel: #F3F5F7;
  --panel-2: #E2E5E9;
  --line: #B7BDC4;
  --text: #1B2128;
  --muted: #525C66;
  --accent: #B45309;
  --accent-2: #9A3412;
}
.mll-proposal--ridgeline .mll-proposal__hero {
  background:
    linear-gradient(135deg, rgba(33, 41, 50, 0.94), rgba(82, 92, 102, 0.85)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'><polygon points='0,300 160,140 280,220 420,80 580,200 720,120 800,180 800,300' fill='%23B45309' opacity='0.4'/></svg>") center/cover no-repeat;
  color: #F3F5F7;
}
.mll-proposal--ridgeline .mll-proposal__hero h1 { color: #F3F5F7; }
.mll-proposal--ridgeline .mll-proposal__lead { color: rgba(243, 245, 247, 0.92); }
.mll-proposal--ridgeline .mll-proposal__hero .mll-cta { background: #B45309; color: #F3F5F7; }
.mll-proposal--ridgeline .mll-proposal__hero .mll-proposal__ghost { color: #F3F5F7; }

/* 4. Evergreen Boardroom — deep pine on parchment */
.mll-proposal--evergreen {
  --bg: #F2EEDF;
  --bg-2: #E5DFC8;
  --panel: #F9F5E7;
  --panel-2: #ECE5CC;
  --line: #C9C0A1;
  --text: #1A2418;
  --muted: #5D6B58;
  --accent: #14532D;
  --accent-2: #166534;
}
.mll-proposal--evergreen .mll-proposal__hero {
  background:
    linear-gradient(135deg, rgba(20, 83, 45, 0.92), rgba(22, 101, 52, 0.82)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'><g fill='%23F9F5E7' fill-opacity='0.12'><polygon points='80,260 110,160 140,260'/><polygon points='180,260 210,140 240,260'/><polygon points='280,260 310,180 340,260'/><polygon points='380,260 410,120 440,260'/><polygon points='480,260 510,170 540,260'/><polygon points='580,260 610,140 640,260'/><polygon points='680,260 710,180 740,260'/></g></svg>") center/cover no-repeat;
  color: #F9F5E7;
}
.mll-proposal--evergreen .mll-proposal__hero h1 { color: #F9F5E7; }
.mll-proposal--evergreen .mll-proposal__lead { color: rgba(249, 245, 231, 0.92); }
.mll-proposal--evergreen .mll-proposal__hero .mll-cta { background: #F9F5E7; color: #14532D; }
.mll-proposal--evergreen .mll-proposal__hero .mll-proposal__ghost { color: #F9F5E7; }

/* 5. High Country Sand — sand + sunset */
.mll-proposal--highcountry {
  --bg: #F5EEDC;
  --bg-2: #E9DFC2;
  --panel: #FBF5E4;
  --panel-2: #EFE6CB;
  --line: #D6C9A0;
  --text: #1F1A12;
  --muted: #6B5F44;
  --accent: #C2410C;
  --accent-2: #7C2D12;
}
.mll-proposal--highcountry .mll-proposal__hero {
  background:
    linear-gradient(135deg, rgba(194, 65, 12, 0.78), rgba(124, 45, 18, 0.85)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'><defs><linearGradient id='g' x1='0' x2='0' y1='0' y2='1'><stop offset='0' stop-color='%23FBBF24'/><stop offset='1' stop-color='%23C2410C'/></linearGradient></defs><circle cx='400' cy='280' r='180' fill='url(%23g)' opacity='0.55'/><polygon points='0,300 200,160 320,220 480,120 640,200 800,140 800,300' fill='%237C2D12' opacity='0.7'/></svg>") center/cover no-repeat;
  color: #FBF5E4;
}
.mll-proposal--highcountry .mll-proposal__hero h1 { color: #FBF5E4; }
.mll-proposal--highcountry .mll-proposal__lead { color: rgba(251, 245, 228, 0.94); }
.mll-proposal--highcountry .mll-proposal__hero .mll-cta { background: #FBF5E4; color: #C2410C; }
.mll-proposal--highcountry .mll-proposal__hero .mll-proposal__ghost { color: #FBF5E4; }

/* === Reviewer agent panel === */
.mll-reviewer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 14px 32px -16px rgba(31, 26, 18, 0.4);
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms ease;
}
.mll-reviewer.is-collapsed { transform: translateY(calc(100% - 46px)); }
.mll-reviewer__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.12), rgba(15, 118, 110, 0.10));
  border-bottom: 1px solid var(--line);
}
.mll-reviewer__tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); font-weight: 700; }
.mll-reviewer__hd strong { flex: 1; font-size: 13px; color: var(--text); }
.mll-reviewer__toggle {
  width: 24px; height: 24px; padding: 0; border-radius: 6px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.mll-reviewer__body { display: flex; flex-direction: column; max-height: 360px; }
.mll-reviewer__msgs {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
  max-height: 280px;
  font-size: 13px;
}
.mll-reviewer__msg {
  padding: 8px 10px; border-radius: 8px; max-width: 95%;
  line-height: 1.42;
}
.mll-reviewer__msg--user { align-self: flex-end; background: var(--accent); color: #FFFFFF; }
.mll-reviewer__msg--agent { background: var(--bg-2); color: var(--text); }
.mll-reviewer__msg--thinking { color: var(--muted); font-style: italic; }
.mll-reviewer__form {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px; padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.mll-reviewer__form input { font-size: 13px; }

/* ============================================================
 * Horizontal workflow meter, popover, control chips, perm grid
 * ============================================================ */

/* Horizontal meter — scrollable row of node buttons */
.mll-meter {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-color: var(--accent) var(--bg-2);
  scrollbar-width: thin;
}
.mll-meter::-webkit-scrollbar { height: 8px; }
.mll-meter::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 999px; }
.mll-meter::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }

.mll-meter__node {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.mll-meter__node:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(31, 26, 18, 0.35);
}
.mll-meter__node[data-status="done"] { border-color: var(--ok); }
.mll-meter__node[data-status="in-progress"] { border-color: var(--accent-2); }
.mll-meter__node[data-status="blocked"] {
  border-color: var(--danger);
  background: rgba(185, 28, 28, 0.06);
}
.mll-meter__node[data-status="pending"] { opacity: 0.85; }

.mll-meter__node.is-gate {
  border: 1px dashed var(--warn);
  background: rgba(180, 83, 9, 0.08);
}
.mll-meter__node.is-gate .mll-meter__name em {
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--warn);
  margin-right: 6px;
}

.mll-meter__name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}
.mll-meter__bar {
  display: block;
  height: 6px;
  background: var(--bg-2);
  border-radius: 999px;
  margin: 8px 0 6px;
  overflow: hidden;
}
.mll-meter__fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 400ms cubic-bezier(.2,.7,.2,1);
}
.mll-meter__foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.mll-meter__pct {
  font-weight: 700;
  color: var(--accent);
}

/* Popover — JS positions via left/top, fade+lift in */
.mll-meter-popover {
  position: fixed;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.25);
  z-index: 30;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.mll-meter-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mll-meter-popover__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.mll-meter-popover__owner {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.mll-meter-popover__tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}
.mll-meter-popover__task {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg-2);
}
.mll-meter-popover__task:hover { background: rgba(67, 56, 202, 0.08); }
.mll-meter-popover__task .lbl { font-weight: 600; }
.mll-meter-popover__task .who { font-size: 11px; color: var(--accent-2); }
.mll-meter-popover__task .due {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Control-type chips C1..C5 */
.mll-control-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1.4;
}
.mll-control-chip[data-control="C1"] { background: rgba(107, 99, 83, 0.18); color: var(--muted); }
.mll-control-chip[data-control="C2"] { background: rgba(15, 118, 110, 0.18); color: var(--accent-2); }
.mll-control-chip[data-control="C3"] { background: rgba(21, 128, 61, 0.18); color: var(--ok); }
.mll-control-chip[data-control="C4"] { background: rgba(180, 83, 9, 0.18); color: var(--warn); }
.mll-control-chip[data-control="C5"] { background: rgba(67, 56, 202, 0.18); color: var(--accent); }

/* Permission row redesigned to a 5-column cell grid */
.mll-perm-table .mll-perm-row {
  grid-template-columns: 1fr;
  gap: 6px;
}
.mll-perm-table .mll-perm-row__roles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.mll-perm-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.mll-perm-cell select {
  font-size: 11px;
  padding: 4px 6px;
}

/* Scope hint under the meter */
.mll-meter-scope {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mll-meter__node,
  .mll-meter__fill,
  .mll-meter-popover { transition: none; }
  .mll-meter__node.is-near { animation: none; }
}

/* ============================================================
 * v2 — quad restructure (drop BR, BL spans wide) +
 *      full-width pipeline meter band with glow animation +
 *      checkbox permission matrix +
 *      outbound email styling +
 *      permission-blocked affordance treatment
 * ============================================================ */

/* Quad: TL/TR on top row, BL spans full bottom of the quad area */
.mll-quad__cell--wide { grid-column: 1 / -1; }
@media (max-width: 980px) { .mll-quad__cell--wide { grid-column: auto; } }

/* Checkbox permission matrix override (5 roles + label col) */
.mll-perm-table {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2); border-radius: 10px; padding: 8px;
  transition: opacity 200ms ease;
}
.mll-perm-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
  gap: 6px; padding: 4px 8px;
  font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted);
}
.mll-perm-head__role { text-align: center; font-weight: 700; }
.mll-perm-table .mll-perm-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
  gap: 6px !important;
  align-items: center;
  background: var(--panel);
  border-radius: 8px;
  padding: 6px 8px;
}
.mll-perm-row__label {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mll-perm-row__label-main { display: block; }
.mll-perm-table .mll-perm-cell {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  cursor: pointer;
}
.mll-perm-table .mll-perm-cell input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.mll-perm-cell__box {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.mll-perm-cell input:checked + .mll-perm-cell__box {
  background: var(--accent); border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 2px rgba(67,56,202,0.18);
  background-image:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  background-size: 70% 70%, 70% 70%;
  background-repeat: no-repeat;
  background-position: center;
}
.mll-perm-cell:hover .mll-perm-cell__box { border-color: var(--accent); }
.mll-perm-cell input:disabled + .mll-perm-cell__box { opacity: 0.4; cursor: not-allowed; }
.mll-perm-table.is-perm-blocked { opacity: 0.55; }
.mll-perm-table.is-perm-blocked::after {
  content: "matrix locked — current persona lacks edit_permissions";
  display: block;
  font-size: 10.5px; color: var(--warn);
  text-align: center; padding: 4px;
}

/* Full-width pipeline meter band */
.mll-meter-band {
  max-width: 1480px;
  margin: 14px auto 40px;
  padding: 16px 28px 22px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px -28px rgba(31, 26, 18, 0.25);
}
.mll-meter-band__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; margin-bottom: 12px;
}
.mll-meter-band__head .mll-quad__tag { font-size: 11px; }
.mll-meter-band__head .mll-meter-scope {
  margin: 0; padding: 5px 10px; font-size: 11px; max-width: 60%;
  text-align: right;
  background: transparent; border: 0; border-left: 2px solid var(--accent);
}

/* Re-do the meter itself for the full-width band */
.mll-meter-band .mll-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 6px 0 0;
  overflow: visible;
  align-items: stretch;
}
@media (max-width: 980px) {
  .mll-meter-band .mll-meter { grid-template-columns: 1fr; gap: 6px; }
  .mll-meter__joint { display: none; }
}

.mll-meter__joint {
  align-self: center;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--line), var(--accent-2));
  opacity: 0.4;
  position: relative; top: 8px;
  z-index: 0;
}
.mll-meter__joint:nth-of-type(4n) { display: none; }

.mll-meter-band .mll-meter__node {
  position: relative; z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px 12px;
  margin: 0;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.mll-meter-band .mll-meter__node:hover,
.mll-meter-band .mll-meter__node:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px -16px rgba(67, 56, 202, 0.5);
  outline: none;
}
.mll-meter__idx {
  font-size: 10px; letter-spacing: 1.2px; color: var(--muted); font-weight: 800; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.mll-meter-band .mll-meter__name {
  font-size: 14px; line-height: 1.25; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.mll-meter-band .mll-meter__name em {
  font-style: normal; font-size: 9px; padding: 1px 6px;
  background: var(--warn); color: #fff; border-radius: 999px; letter-spacing: 1px;
}
.mll-meter-band .mll-meter__bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.mll-meter-band .mll-meter__fill {
  display: block; height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  transition: width 600ms cubic-bezier(.2,.7,.2,1);
}
.mll-meter-band .mll-meter__foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  align-items: baseline;
}
.mll-meter-band .mll-meter__owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mll-meter-band .mll-meter__deadline { font-variant-numeric: tabular-nums; }
.mll-meter-band .mll-meter__pct { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Near-complete glow + pulse */
@keyframes mll-meter-glow {
  0%   { box-shadow: 0 0 0 0 rgba(67, 56, 202, 0.35), 0 6px 18px -10px rgba(67, 56, 202, 0.4); }
  60%  { box-shadow: 0 0 0 8px rgba(67, 56, 202, 0.00), 0 12px 24px -10px rgba(67, 56, 202, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(67, 56, 202, 0.00), 0 6px 18px -10px rgba(67, 56, 202, 0.4); }
}
.mll-meter-band .mll-meter__node.is-near {
  border-color: var(--accent);
  animation: mll-meter-glow 1.8s ease-in-out infinite;
}
.mll-meter-band .mll-meter__node.is-near .mll-meter__fill {
  background: linear-gradient(90deg, var(--accent-2), var(--accent), #a78bfa);
}

/* Completed node — calm forest border, no pulse */
.mll-meter-band .mll-meter__node.is-complete {
  border-color: var(--ok);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(21,128,61,0.06) 100%);
}
.mll-meter-band .mll-meter__node.is-complete .mll-meter__fill {
  background: linear-gradient(90deg, var(--ok), #4ade80);
}

/* Gate node distinct (dashed warn) */
.mll-meter-band .mll-meter__node.is-gate {
  border-style: dashed;
  border-color: var(--warn);
  background: linear-gradient(180deg, rgba(180,83,9,0.04), rgba(180,83,9,0.10));
}

/* Outbound email card (auto-sent on node completion) */
.mll-email--outbound {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.10), rgba(15, 118, 110, 0.08));
  border-left-color: var(--accent) !important;
}
.mll-email--outbound .mll-email__from {
  color: var(--accent); font-weight: 700;
}
.mll-email--outbound .mll-email__tag {
  color: var(--accent); font-weight: 600;
}

/* Permission-blocked containers — dim + visible curtain */
[data-requires-perm].is-perm-blocked {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}
[data-requires-perm].is-perm-blocked::before {
  content: "🔒 current persona lacks the required permission";
  position: absolute; top: 8px; right: 12px;
  font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--warn); background: var(--panel);
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--warn);
  pointer-events: auto;
  z-index: 5;
}

/* Email permission-blocked individual items */
.mll-email.is-perm-hidden {
  filter: blur(4px) grayscale(0.6);
  opacity: 0.6;
}

/* Reviewer system / persona-switch notification */
.mll-reviewer__msg--system {
  align-self: stretch;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.10), rgba(15, 118, 110, 0.08));
  color: var(--accent);
  text-align: center;
  font-style: italic;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  font-size: 12px;
}

/* ============================================================
 * v3 — SINGLE-VIEWPORT DASHBOARD
 *   Compact top strip + 12-col grid that fits in 100vh.
 *   New widgets: people · workload, deal-value waterfall, KPI row,
 *   Excel-upload-LLM, email card actions, meter modal.
 *   Scoped to .mll-dash-body so the platform is untouched.
 * ============================================================ */

.mll-dash-body { overflow: hidden; }
.mll-dash-body .mll-header { position: relative; padding: 8px 22px; }
.mll-dash-body .mll-footer { display: none; }

.mll-dash-page {
  max-width: 100%;
  padding: 0 18px 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  height: calc(100vh - 56px);
  min-height: 0;
}

.mll-dash-top {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  padding: 4px 4px 0;
}
.mll-dash-top__left { display: inline-flex; flex-direction: column; gap: 0; }
.mll-dash-top__crumb { font-size: 11px; color: var(--muted); }
.mll-dash-top__title { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.mll-dash-top__right { display: inline-flex; gap: 10px; align-items: center; }

/* Grid · 12 cols × 3 rows
   Row 1: marketing(3) | perms(4) | people(2) | value(3 · spans 2 rows)
   Row 2: emails(5)    | xlsx(4)  | value
   Row 3: meter(12) auto height
*/
.mll-dash {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "m m m p p p p l l v v v"
    "e e e e e x x x x v v v"
    "g g g g g g g g g g g g";
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}
.mll-dash__cell--marketing { grid-area: m; }
.mll-dash__cell--perms     { grid-area: p; }
.mll-dash__cell--people    { grid-area: l; }
.mll-dash__cell--value     { grid-area: v; }
.mll-dash__cell--emails    { grid-area: e; }
.mll-dash__cell--xlsx      { grid-area: x; }
.mll-dash__cell--meter     { grid-area: g; }

.mll-dash__cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px -8px rgba(0,0,0,0.15);
}
.mll-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.mll-dash__head h2 { margin: 0; font-size: 13px; font-weight: 700; }
.mll-dash__head-num { font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.mll-dash__tag {
  font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.mll-dash__sub { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.4; }
.mll-dash__sub--tight { font-size: 11px; }
.mll-dash__sub code { background: var(--bg-2); padding: 0 4px; border-radius: 3px; font-size: 10.5px; }
.mll-dash__bullets { font-size: 11.5px; margin: 0; padding-left: 16px; color: var(--text); overflow-y: auto; }
.mll-dash__bullets li { margin-bottom: 3px; }
.mll-dash__role-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 11px;
  transition: background 200ms ease;
}
.mll-dash__field select { width: 100%; font-size: 11.5px; padding: 5px 7px; }
.mll-dash__btn {
  padding: 6px 12px; border-radius: 6px; border: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 11.5px;
}
.mll-dash__btn:hover:not(:disabled) { filter: brightness(1.05); }
.mll-dash__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Compact permission matrix override */
.mll-perm-table--compact {
  padding: 5px;
  gap: 2px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.mll-perm-table--compact .mll-perm-head {
  grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
  font-size: 9px; padding: 2px 4px;
}
.mll-perm-table--compact .mll-perm-row {
  grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)) !important;
  padding: 3px 4px !important;
  gap: 4px !important;
}
.mll-perm-table--compact .mll-perm-row__label { font-size: 11px; }
.mll-perm-table--compact .mll-perm-cell__box { width: 14px; height: 14px; border-radius: 3px; }

.mll-assign--compact {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; align-items: center;
}
.mll-assign--compact select { font-size: 11px; padding: 4px 6px; }

/* People · workload */
.mll-people-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  flex: 1; min-height: 0;
}
.mll-people-row {
  padding: 5px 7px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 2px;
}
.mll-people-row[data-side="buy"]  { border-left-color: #1D4ED8; }
.mll-people-row[data-side="sell"] { border-left-color: #B45309; }
.mll-people-row__hd { display: flex; justify-content: space-between; gap: 6px; }
.mll-people-row__name { font-size: 12px; font-weight: 600; }
.mll-people-row__count { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.mll-people-row__title { font-size: 9.5px; color: var(--muted); }
.mll-people-row__bar {
  position: relative; height: 4px; background: var(--bg);
  border-radius: 999px; margin-top: 2px;
  border: 1px solid var(--line);
}
.mll-people-row__bar-total {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent-2); opacity: 0.35;
  border-radius: 999px;
}
.mll-people-row__bar-done {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ok); border-radius: 999px;
}

/* Deal-value waterfall */
.mll-waterfall {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 6px;
  align-items: end;
  padding: 6px 2px 4px;
  flex: 1; min-height: 0;
  max-height: 220px;
}
.mll-waterfall__col {
  display: grid; grid-template-rows: auto 1fr auto auto;
  gap: 3px;
  text-align: center;
  font-size: 9.5px;
}
.mll-waterfall__num { font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.mll-waterfall__bar {
  height: var(--h, 40%);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 4px 4px 0 0;
  min-height: 24px;
  align-self: end;
  transition: height 400ms ease;
}
.mll-waterfall__col.is-down .mll-waterfall__bar {
  background: linear-gradient(180deg, var(--accent), var(--danger));
}
.mll-waterfall__col.is-flat .mll-waterfall__bar { background: var(--muted); opacity: 0.5; }
.mll-waterfall__delta { font-size: 10px; font-weight: 700; }
.mll-waterfall__col.is-down .mll-waterfall__delta { color: var(--danger); }
.mll-waterfall__col.is-up   .mll-waterfall__delta { color: var(--ok); }
.mll-waterfall__col.is-flat .mll-waterfall__delta { color: var(--muted); }
.mll-waterfall__lbl { font-size: 9px; color: var(--muted); line-height: 1.1; min-height: 2.4em; }

/* KPI row under the waterfall */
.mll-kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 4px;
}
.mll-kpi {
  padding: 6px 8px;
  background: var(--bg-2);
  border-radius: 6px;
  text-align: center;
  border-top: 2px solid var(--line);
}
.mll-kpi strong {
  display: block; font-size: 20px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.mll-kpi span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.mll-kpi--accent { border-top-color: var(--accent); }
.mll-kpi--accent strong { color: var(--accent); }
.mll-kpi--danger { border-top-color: var(--danger); }
.mll-kpi--danger strong { color: var(--danger); }
.mll-kpi--warn   { border-top-color: var(--warn); }
.mll-kpi--warn   strong { color: var(--warn); }
.mll-kpi--ok     { border-top-color: var(--ok); }
.mll-kpi--ok     strong { color: var(--ok); }

/* Email list (compacted for dash) */
.mll-dash__cell--emails .mll-email-list {
  flex: 1; min-height: 0; overflow-y: auto; max-height: none;
  padding-right: 2px;
}
.mll-dash__cell--emails .mll-email { padding: 6px 8px; gap: 2px; font-size: 11.5px; }
.mll-dash__cell--emails .mll-email__hd { gap: 6px; }
.mll-dash__cell--emails .mll-email__subj { font-size: 12px; }
.mll-dash__cell--emails .mll-email__snip { font-size: 11px; line-height: 1.35; }

/* Email card actions (reply / delete / reset cog) */
.mll-email { position: relative; }
.mll-email__hd { position: relative; }
.mll-email__cog {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  transition: color 140ms, background 140ms, transform 240ms;
}
.mll-email__cog:hover { color: var(--accent); background: var(--bg-2); transform: rotate(90deg); }
.mll-email__actions {
  display: flex; gap: 4px; margin-top: 4px;
  padding-top: 4px; border-top: 1px dashed var(--line);
}
.mll-email__act {
  font-size: 10.5px; padding: 3px 8px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  cursor: pointer;
}
.mll-email__act:hover { border-color: var(--accent); color: var(--accent); }
.mll-email__act--del:hover { border-color: var(--danger); color: var(--danger); }
.mll-email__act--send {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.mll-email__act--send:hover { background: var(--accent-2); }
.mll-email__reply {
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 4px;
  animation: mll-email-reply-in 200ms ease;
}
@keyframes mll-email-reply-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mll-email__reply textarea {
  width: 100%; font-size: 11.5px; padding: 5px 7px; border-radius: 6px;
  border: 1px solid var(--line); resize: vertical; min-height: 40px;
}
.mll-email__reply-actions { display: flex; gap: 4px; }
.mll-email.is-replied { background: rgba(15,118,110,0.08); }
.mll-email.is-deleting { opacity: 0; transform: translateX(-12px); transition: opacity 250ms, transform 250ms; }
.mll-email.is-deleted { display: none; }
.mll-email.is-replying .mll-email__act--reply { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === Excel upload widget === */
.mll-xlsx { display: flex; flex-direction: column; gap: 6px; }
.mll-xlsx__drop {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 10px;
  background: var(--bg-2);
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms, background 160ms;
}
.mll-xlsx__drop:hover,
.mll-xlsx__drop.is-drag {
  border-color: var(--accent); background: rgba(67, 56, 202, 0.06);
}
.mll-xlsx__drop.has-file { border-style: solid; border-color: var(--accent-2); background: rgba(15, 118, 110, 0.06); }
.mll-xlsx__drop-main { font-size: 11.5px; font-weight: 600; color: var(--text); }
.mll-xlsx__drop-sub { font-size: 10px; color: var(--muted); }
.mll-xlsx__result {
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  padding: 6px 8px;
  flex: 1; overflow-y: auto;
  font-size: 11.5px; line-height: 1.42;
}
.mll-xlsx__meta { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.mll-xlsx__reply { white-space: pre-wrap; }
.mll-xlsx__loading { color: var(--muted); font-style: italic; font-size: 11.5px; }
.mll-xlsx__loading span::after {
  content: "▮"; animation: mll-xlsx-blink 800ms steps(1) infinite; margin-left: 4px;
}
@keyframes mll-xlsx-blink { 50% { opacity: 0; } }
.mll-xlsx__err { color: var(--danger); font-size: 11.5px; }

/* Compact meter band inside dash cell */
.mll-dash__cell--meter { padding: 8px 10px 10px; }
.mll-dash__cell--meter .mll-meter {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  padding: 2px 0 0;
}
.mll-dash__cell--meter .mll-meter__node {
  padding: 8px 10px 7px;
  border-width: 1.5px;
  gap: 4px;
}
.mll-dash__cell--meter .mll-meter__name { font-size: 12px; }
.mll-dash__cell--meter .mll-meter__bar { height: 6px; }
.mll-dash__cell--meter .mll-meter__foot { font-size: 9.5px; }
.mll-dash__cell--meter .mll-meter__idx { font-size: 9px; }

/* === Meter MODAL (replaces hover popover) === */
.mll-meter-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 12, 20, 0.55);
  backdrop-filter: blur(2px);
  z-index: 40;
  animation: mll-modal-fade 180ms ease;
}
.mll-meter-modal {
  position: fixed !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(560px, calc(100vw - 32px));
  max-width: 560px !important;
  max-height: 80vh;
  overflow: auto;
  z-index: 41;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px 16px !important;
  background: var(--panel);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
  /* Override the legacy .mll-meter-popover defaults (opacity:0, pointer-events:none)
     that otherwise cause the modal to flash open then immediately disappear. */
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none !important;
  animation: mll-modal-in 220ms cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes mll-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mll-modal-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.mll-meter-popover__close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0;
  font-size: 22px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 2px 8px;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 140ms, color 140ms;
}
.mll-meter-popover__close:hover { background: var(--bg-2); color: var(--danger); }
body.mll-meter-modal-open { overflow: hidden; }
.mll-meter-popover__name { font-size: 16px; }
.mll-meter-popover__gate {
  display: inline-block; padding: 2px 8px;
  background: var(--warn); color: #fff;
  border-radius: 999px; font-size: 10px; letter-spacing: 1px; margin-left: 8px;
}
.mll-meter-popover__meta {
  display: flex; gap: 14px; font-size: 11.5px; color: var(--muted);
  margin: 6px 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mll-meter-popover__tasks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mll-meter-popover__task {
  display: grid; grid-template-columns: auto 1fr auto auto auto;
  gap: 8px; align-items: center;
  padding: 6px 8px; background: var(--bg-2); border-radius: 6px;
  font-size: 12px;
}
.mll-meter-popover__task:hover { background: rgba(67,56,202,0.06); }
.mll-meter-popover__label { font-weight: 600; }
.mll-meter-popover__assignee { font-size: 11px; color: var(--accent-2); font-weight: 600; }
.mll-meter-popover__deadline { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mll-meter-popover__ctrl {
  font-size: 9px; font-weight: 700; letter-spacing: 0.8px;
  padding: 2px 6px; border-radius: 999px;
}

/* Reviewer is fixed bottom-right — already styled, just ensure z-index above modal backdrop only when not open */
.mll-reviewer { z-index: 30; }

/* === About card · feature inventory === */
.mll-dash__cta {
  font-size: 11px; color: var(--accent-2);
  margin: 0; padding: 4px 6px;
  background: rgba(15, 118, 110, 0.06);
  border-left: 2px solid var(--accent-2);
  border-radius: 4px;
  font-style: italic;
}
.mll-features {
  display: flex; flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex: 1; min-height: 0;
  padding-right: 2px;
}
.mll-features__group {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.mll-features__group[open] { background: var(--panel); border-color: var(--accent); }
/* Keep <summary> at default display so the native <details> click-toggle works.
   Put the grid layout on an inner wrapper instead. */
.mll-features__head {
  cursor: pointer;
  list-style: none;
  padding: 0;
}
.mll-features__head::-webkit-details-marker { display: none; }
.mll-features__head::marker { content: ""; }
.mll-features__head-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 28px 8px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  min-height: 36px;
}
.mll-features__head-row::after {
  content: "▸";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
  transition: transform 200ms ease, color 200ms ease;
}
.mll-features__group[open] .mll-features__head-row::after {
  transform: translateY(-50%) rotate(90deg);
  color: var(--accent);
}
.mll-features__icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.mll-features__cat {
  color: var(--text);
  /* Allow wrap to 2 lines instead of ellipsis — narrow card columns squeeze category names */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
.mll-features__count {
  font-size: 10px; font-weight: 700; color: var(--accent);
  padding: 2px 7px; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.mll-features__list li { word-wrap: break-word; overflow-wrap: anywhere; }

/* === Responsive — About card / feature accordion === */
/* Narrow desktop column (marketing cell at 3/12 of the dash) — tighten everything */
@container (max-width: 360px) {
  .mll-features__head-row {
    padding: 6px 22px 6px 8px;
    gap: 6px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    min-height: 32px;
  }
  .mll-features__icon { width: 20px; height: 20px; font-size: 10px; border-radius: 4px; }
  .mll-features__cat { font-size: 11px; }
  .mll-features__count { padding: 1px 5px; font-size: 9px; }
  .mll-features__head-row::after { right: 6px; font-size: 9px; }
  .mll-features__list { padding: 3px 8px 6px; }
  .mll-features__list li { font-size: 10.5px; line-height: 1.35; padding-left: 10px; }
}
.mll-dash__cell--marketing { container-type: inline-size; }

/* Stacked layout (2-col @ 1100px / 1-col @ 700px) — restore comfortable hit targets,
   and let the card grow naturally so the page scrolls instead of an internal scrollbar. */
@media (max-width: 1100px) {
  .mll-dash__cell--marketing { min-height: auto; max-height: none; overflow: visible; }
  .mll-features {
    overflow: visible;
    max-height: none;
    flex: 0 0 auto;
    padding-right: 0;
  }
  .mll-features__head-row {
    padding: 10px 28px 10px 12px;
    min-height: 44px;
    font-size: 13px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .mll-features__icon { width: 24px; height: 24px; font-size: 12px; }
  .mll-features__cat {
    /* Open up at wider stacked widths — no need to clamp */
    -webkit-line-clamp: unset;
    display: block;
    white-space: normal;
  }
  .mll-features__list li { font-size: 12px; line-height: 1.45; }
}
@media (max-width: 700px) {
  .mll-features__head-row { padding: 12px 30px 12px 14px; min-height: 48px; font-size: 14px; }
  .mll-features__icon { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
  .mll-features__count { font-size: 11px; padding: 3px 8px; }
  .mll-features__list { padding: 6px 10px 10px; }
  .mll-features__list li { font-size: 13px; padding-left: 14px; }
}
.mll-features__list {
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.mll-features__list li {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text);
  padding-left: 12px;
  position: relative;
}
.mll-features__list li::before {
  content: "▸";
  position: absolute; left: 2px; top: 0;
  color: var(--accent);
  font-size: 9px;
}

/* === Email card · accordion state (single-line collapsed) ===
   Flat HTML inside the button + flexbox (more reliable than display:grid on a button). */
.mll-email { padding: 2px 4px; gap: 0; }
.mll-email__toggle {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  background: transparent; border: 0;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: background 140ms ease;
  font: inherit;
  min-height: 28px;
}
.mll-email__toggle:hover { background: var(--bg-2); }
.mll-email__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mll-email__toggle > .mll-email__from {
  flex: 0 0 32%;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; font-size: 11.5px; color: var(--text);
}
.mll-email__toggle > .mll-email__subj {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500; font-size: 12px;
}
.mll-email__toggle > .mll-email__when {
  flex: 0 0 auto;
  font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.mll-email__toggle > .mll-email__chev {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  transition: transform 200ms ease;
}
.mll-email:not(.is-collapsed) .mll-email__chev { transform: rotate(90deg); color: var(--accent); }
.mll-email__body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 8px 6px;
}
.mll-email__hd-actions { display: flex; justify-content: flex-end; }
/* When collapsed, the body simply unmounts — guarantees a ~30px row height */
.mll-email.is-collapsed .mll-email__body { display: none !important; }
.mll-email.is-collapsed {
  padding: 0 !important;
  gap: 0 !important;
  margin: 0;
}
/* Override the wider dashboard rule so collapsed rows truly stay slim */
.mll-dash__cell--emails .mll-email.is-collapsed { padding: 0 !important; gap: 0 !important; }
.mll-dash__cell--emails .mll-email.is-collapsed .mll-email__toggle { padding: 5px 8px; min-height: 28px; }

/* === Multi-deal dropdown + pill (top strip) === */
.mll-dash-top__center {
  display: inline-flex; align-items: center; gap: 12px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.mll-deal-pick {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 6px 4px 10px;
}
.mll-deal-pick__lbl {
  font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
}
.mll-deal-pick select {
  border: 0; background: transparent; font-size: 12px; font-weight: 600;
  color: var(--text); cursor: pointer; padding: 2px 6px;
  max-width: 360px;
}
.mll-deal-pick select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.mll-deal-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 12px;
  min-width: 0; max-width: 100%;
  transition: border-left-color 200ms ease;
}
.mll-deal-pill__buyer,
.mll-deal-pill__seller {
  font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mll-deal-pill__arrow { color: var(--muted); }
.mll-deal-pill__value {
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--bg-2);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .mll-dash-top__center { order: 99; flex-basis: 100%; justify-content: flex-start; }
  .mll-deal-pick select { max-width: none; flex: 1; }
}

/* Narrow screens: stack everything (no longer single-viewport) */
@media (max-width: 1100px) {
  .mll-dash-body { overflow: auto; }
  .mll-dash-page { height: auto; min-height: calc(100vh - 56px); }
  .mll-dash {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "m m"
      "p p"
      "l v"
      "e v"
      "x x"
      "g g";
  }
  .mll-dash__cell { min-height: 240px; }
}
@media (max-width: 700px) {
  .mll-dash {
    grid-template-columns: 1fr;
    grid-template-areas:
      "m" "p" "l" "v" "e" "x" "g";
  }
}
