/*
  FCMM subpage experience
  Direction: editorial mortgage journeys — ink, paper, signal red, line fields and soft technical light.
  The homepage remains independent; this layer deliberately targets application routes only.
*/
:root {
  --fcmm-ink: #09090b;
  --fcmm-ink-soft: #171216;
  --fcmm-paper: #f6f1ed;
  --fcmm-paper-deep: #eae1db;
  --fcmm-red: #ef2822;
  --fcmm-red-deep: #a50d18;
  --fcmm-rule: rgba(17, 13, 15, .14);
  --fcmm-shadow: 0 26px 70px rgba(16, 6, 9, .14);
  --fcmm-radius: 22px;
}

.app-route {
  background: var(--fcmm-paper);
  color: var(--fcmm-ink);
  overflow-x: clip;
}
.app-route .universe-nav {
  --universe-red: var(--fcmm-red);
  --universe-gold: var(--fcmm-red);
  position: sticky;
  z-index: 90;
  min-height: 82px;
  background: linear-gradient(106deg, #080708 0%, #16080d 62%, #26090f 100%);
  border-bottom-color: rgba(255, 255, 255, .14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.app-route .universe-nav::after { width: min(28vw, 330px); background: linear-gradient(90deg, transparent, var(--fcmm-red), transparent); }
.app-route .universe-cta { border-color: rgba(255, 255, 255, .7); }
.app-route .universe-cta:hover { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); }
.app-route .universe-mobile-menu:not([hidden]),
.app-route .universe-login-menu { border-color: rgba(239, 40, 34, .5); background: rgba(11, 8, 10, .98); }

/* Shared animated route intro: a canvas signal field runs at the same quality tier as home, with no text held back. */
.app-route .page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(470px, 52vw, 660px);
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(54px, 7vw, 108px) max(5vw, calc((100vw - 1280px) / 2)) clamp(54px, 7vw, 92px);
  color: #fff;
  background:
    radial-gradient(ellipse at 75% 17%, rgba(167, 17, 36, .72), transparent 31%),
    radial-gradient(ellipse at 15% 95%, rgba(96, 8, 21, .42), transparent 37%),
    linear-gradient(112deg, #050506 4%, #10080b 54%, #280a12 100%);
}
.app-route .page-hero::before,
.app-route .page-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}
.app-route .page-hero::before {
  top: -26vw;
  right: -12vw;
  width: min(66vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 18px rgba(239, 40, 34, .12), 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 58px rgba(239, 40, 34, .07);
}
.app-route .page-hero::after {
  right: 9%;
  bottom: -55%;
  width: min(60vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 40, 34, .46);
  box-shadow: 0 0 0 36px rgba(239, 40, 34, .06);
}
.fcmm-subpage-signal-canvas,
.fcmm-page-hero__veil,
.fcmm-access-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fcmm-page-hero__veil {
  background: linear-gradient(90deg, rgba(0, 0, 0, .58), transparent 66%), linear-gradient(0deg, rgba(0, 0, 0, .46), transparent 58%);
}
.fcmm-subpage-signal-canvas { opacity: .92; mix-blend-mode: screen; }
.fcmm-page-hero__copy { position: relative; z-index: 1; width: min(940px, 78%); max-width: 940px; }
.fcmm-page-hero__wordmark { display: block; width: min(192px, 62vw); margin-bottom: clamp(29px, 4vw, 54px); }
.fcmm-page-hero__logo { display: block; width: 100%; height: auto; }
.app-route .fcmm-page-hero .breadcrumb { display: flex; align-items: center; gap: 12px; margin: 0; color: #ff847c; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fcmm-route-number { color: rgba(255, 255, 255, .65); }
.app-route .fcmm-page-hero h1 {
  max-width: 1020px;
  margin: 17px 0 19px;
  color: #fff;
  font-size: clamp(3.6rem, 7.1vw, 7.75rem);
  font-weight: 500;
  letter-spacing: -.078em;
  line-height: .84;
  text-wrap: balance;
}
.app-route .fcmm-page-hero h1 em { color: var(--fcmm-red); font-style: normal; }
.fcmm-motion-word { display: inline-block; margin-right: .15em; }
.app-route .fcmm-page-hero .lead { max-width: 630px; margin: 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 1.45vw, 1.19rem); line-height: 1.55; }
.fcmm-page-hero__stamp { position: absolute; right: max(5vw, calc((100vw - 1290px) / 2)); bottom: clamp(45px, 6vw, 84px); display: grid; width: 132px; gap: 11px; color: rgba(255, 255, 255, .76); font-size: 9px; font-weight: 800; letter-spacing: .22em; line-height: 1.55; text-align: right; text-transform: uppercase; }
.fcmm-page-hero__stamp i { display: block; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--fcmm-red)); }

/* Same entrance grammar as the homepage: word rise, line reveal, staged material card. */
.fcmm-subpage-motion-prep .fcmm-motion { opacity: 0; }
.fcmm-subpage-motion-prep .fcmm-motion--title .fcmm-motion-word { opacity: 0; transform: translate3d(0, 120%, 0) rotateX(18deg); }
.fcmm-subpage-motion-ready .fcmm-motion--brand { animation: fcmm-subpage-rise .8s cubic-bezier(.16, 1, .3, 1) both .04s; }
.fcmm-subpage-motion-ready .fcmm-motion--eyebrow { animation: fcmm-subpage-rise .8s cubic-bezier(.16, 1, .3, 1) both .15s; }
.fcmm-subpage-motion-ready .fcmm-motion--title { animation: fcmm-subpage-rise 1s cubic-bezier(.16, 1, .3, 1) both .24s; }
.fcmm-subpage-motion-ready .fcmm-motion--title .fcmm-motion-word { animation: fcmm-subpage-word 1.15s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.22s + var(--word-index, 0) * 74ms); }
.fcmm-subpage-motion-ready .fcmm-motion--lead { animation: fcmm-subpage-rise .9s cubic-bezier(.16, 1, .3, 1) both .68s; }
.fcmm-subpage-motion-ready .fcmm-motion--stamp { animation: fcmm-subpage-rise .9s cubic-bezier(.16, 1, .3, 1) both .78s; }
.fcmm-subpage-motion-ready .fcmm-motion--card { animation: fcmm-subpage-card 1.05s cubic-bezier(.16, 1, .3, 1) both .48s; }
@keyframes fcmm-subpage-rise { from { opacity: 0; transform: translateY(20px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes fcmm-subpage-word { from { opacity: 0; transform: translate3d(0, 120%, 0) rotateX(18deg); } to { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); } }
@keyframes fcmm-subpage-card { from { opacity: 0; transform: translate3d(28px, 18px, 0) scale(.965); filter: blur(5px); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); } }

/* Paper content uses a controlled magazine rhythm rather than generic card grids. */
.app-route main.fcmm-route-main,
.app-route .calculator-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(64px, 8vw, 118px) max(5vw, calc((100vw - 1240px) / 2)) clamp(76px, 9vw, 132px);
  background: var(--fcmm-paper);
}
.app-route main.fcmm-route-main::before,
.app-route .calculator-main::before { display: block; width: 66px; height: 2px; margin-bottom: 32px; background: var(--fcmm-red); content: ''; }
.app-route .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: 1180px; margin: 0 auto 42px; padding: 0; }
.app-route .section-heading .breadcrumb,
.app-route .breadcrumb { color: var(--fcmm-red-deep); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.app-route .section-heading h2,
.app-route .borrower-choice-intro h2,
.app-route .policy-intro h2 { max-width: 790px; margin: 12px 0 0; color: var(--fcmm-ink); font-size: clamp(2.7rem, 5.5vw, 5.7rem); font-weight: 500; letter-spacing: -.075em; line-height: .87; }
.app-route .section-heading--broker-compliance { border-bottom: 0; }
.app-route .text-link.dark { color: var(--fcmm-red-deep); font-weight: 800; }
.app-route .button.primary { border: 1px solid var(--fcmm-red); background: var(--fcmm-red); color: #fff; box-shadow: none; }
.app-route .button.primary:hover { border-color: #111; background: #111; transform: translateY(-2px); }
.app-route .button.secondary { border-color: rgba(20, 16, 18, .25); color: #191316; background: #fff; }

/* Products: photographic product stories, all three cards have a distinct premium property cue. */
.app-route .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.app-route .product-card { position: relative; display: flex; min-height: 525px; flex-direction: column; overflow: hidden; padding: 13px 28px 30px; border: 1px solid var(--fcmm-rule); border-radius: var(--fcmm-radius); color: var(--fcmm-ink); background: #fffdfb; box-shadow: 0 16px 38px rgba(31, 11, 15, .07); transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease; }
.app-route .product-card:hover { transform: translateY(-7px); border-color: rgba(239, 40, 34, .72); box-shadow: var(--fcmm-shadow); }
.app-route .product-visual { position: relative; height: 190px; margin: 0 -15px 25px; overflow: hidden; border-radius: 15px; background: #1a1114; }
.app-route .product-visual::after { position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, rgba(0, 0, 0, .28)); content: ''; }
.app-route .product-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.app-route .product-card:hover .product-visual img { transform: scale(1.055); }
.app-route .product-card .icon { display: block; width: auto; height: auto; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; color: var(--fcmm-red); background: transparent; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.app-route .product-card__strap { margin: 0 0 14px; color: #6c5b5c; font-size: 9px; font-weight: 800; letter-spacing: .18em; line-height: 1.35; text-transform: uppercase; }
.app-route .product-card h3 { margin: 0; color: #111014; font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.app-route .product-card h3::first-letter { color: #111014; }
.app-route .product-card p:not(.product-card__strap) { margin: 17px 0 26px; color: #5d5557; line-height: 1.62; }
.app-route .product-card .arrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fcmm-rule); color: var(--fcmm-red-deep); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.app-route .product-card .arrow b { font-size: 18px; font-weight: 400; transition: transform .22s ease; }
.app-route .product-card:hover .arrow b { transform: translateX(5px); }
.app-route .split-panel { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; max-width: 1180px; min-height: 410px; margin: 64px auto 0; overflow: hidden; border-radius: var(--fcmm-radius); background: #121013; }
.app-route .split-panel > div { padding: clamp(36px, 5vw, 66px); background: #fbf7f3; }
.app-route .split-panel h2 { margin: 12px 0 18px; color: #121013; font-size: clamp(2.4rem, 4vw, 4.55rem); font-weight: 500; letter-spacing: -.07em; line-height: .88; }
.app-route .split-panel .visual-panel { position: relative; display: flex; min-height: 300px; flex-direction: column; justify-content: flex-end; padding: clamp(36px, 5vw, 66px); overflow: hidden; color: #fff; background: radial-gradient(circle at 72% 25%, rgba(239, 40, 34, .7), transparent 17%), linear-gradient(130deg, #080709, #260a12); }
.app-route .split-panel .visual-panel::after { position: absolute; right: -12%; bottom: -46%; width: 430px; aspect-ratio: 1; border: 1px solid rgba(239, 40, 34, .7); border-radius: 50%; box-shadow: 0 0 0 17px rgba(239, 40, 34, .12), 0 0 0 35px rgba(255, 255, 255, .045); content: ''; }
.app-route .split-panel .visual-panel > * { position: relative; z-index: 1; }
.app-route .split-panel .visual-panel h2 { color: #fff; }

/* Editorial resource and policy content. */
.app-route .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; max-width: 1180px; margin: 0 auto; }
.app-route .resource-card { position: relative; overflow: hidden; min-height: 330px; padding: 0 25px 25px; border: 1px solid var(--fcmm-rule); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(18, 6, 10, .055); transition: transform .28s ease, border-color .28s ease; }
.app-route .resource-card:hover { transform: translateY(-5px); border-color: rgba(239, 40, 34, .58); }
.app-route .resource-visual { height: 112px; margin: 0 -25px 22px; overflow: hidden; background: #161113; }
.app-route .resource-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .95; transition: transform .5s ease; }
.app-route .resource-card:hover .resource-visual img { transform: scale(1.045); }
.app-route .resource-visual { position: relative; isolation: isolate; background: radial-gradient(circle at 78% 12%, rgba(239,40,34,.74), transparent 19%), linear-gradient(126deg, #0a090b, #1e0d13 64%, #110b0e); }
.app-route .resource-visual::before, .app-route .resource-visual::after { position: absolute; z-index: -1; border-radius: 50%; content: ''; }
.app-route .resource-visual::before { width: 230px; height: 230px; right: -70px; top: -162px; border: 1px solid rgba(239,40,34,.72); box-shadow: 0 0 0 14px rgba(239,40,34,.09), 0 0 0 29px rgba(239,40,34,.045); }
.app-route .resource-visual::after { width: 130%; height: 1px; left: -13%; bottom: 29px; transform: rotate(-7deg); background: linear-gradient(90deg, transparent 0 8%, rgba(239,40,34,.1) 8% 31%, var(--fcmm-red) 49% 53%, rgba(239,40,34,.18) 70% 91%, transparent 91%); box-shadow: 0 14px 0 rgba(255,255,255,.06); }
.app-route .resource-visual--2 { background: radial-gradient(circle at 20% 76%, rgba(239,40,34,.54), transparent 18%), linear-gradient(136deg, #201215, #080708 68%); }
.app-route .resource-visual--2::before { right: auto; left: -72px; top: -108px; }
.app-route .resource-visual--2::after { transform: rotate(9deg); bottom: 44px; }
.app-route .resource-visual--3 { background: radial-gradient(circle at 76% 30%, rgba(239,40,34,.55), transparent 16%), linear-gradient(122deg, #070708, #251014 72%); }
.app-route .resource-visual--3::before { right: 17%; top: -172px; width: 260px; height: 260px; }
.app-route .resource-visual--3::after { transform: rotate(-2deg); bottom: 34px; }
.app-route .resource-visual--4 { background: radial-gradient(circle at 40% 18%, rgba(239,40,34,.58), transparent 16%), linear-gradient(135deg, #241116, #0b090c 64%); }
.app-route .resource-visual--4::before { right: -88px; top: -106px; }
.app-route .resource-visual--4::after { transform: rotate(6deg); bottom: 37px; }
.app-route .resource-card .tag { color: var(--fcmm-red-deep); background: transparent; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.app-route .resource-card { display: flex; min-height: 304px; flex-direction: column; }
.app-route .resource-card .latest { top: 136px; right: 23px; border: 1px solid rgba(239, 40, 34, .55); border-radius: 999px; color: var(--fcmm-red-deep); background: #fff; font-size: 8px; }
.app-route .resource-card h3 { margin: 16px 0 12px; color: var(--fcmm-ink); font-size: 1.42rem; line-height: 1.08; }
.app-route .resource-card p { color: #776e70; }
.app-route .resource-card .download { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fcmm-rule); color: var(--fcmm-red-deep); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.app-route .resource-card .download b { font-size: 17px; font-weight: 400; transition: transform .2s ease; }
.app-route .resource-card:hover .download b { transform: translateX(4px); }
.app-route .dark-strip { position: relative; max-width: 1180px; margin-right: auto; margin-left: auto; overflow: hidden; padding: clamp(46px, 6vw, 72px); border-radius: var(--fcmm-radius); background: radial-gradient(circle at 80% 22%, rgba(239, 40, 34, .56), transparent 18%), #0b0a0d; }
.app-route .dark-strip::after { position: absolute; right: -8%; bottom: -95%; width: 650px; aspect-ratio: 1; border: 1px solid rgba(239, 40, 34, .7); border-radius: 50%; box-shadow: 0 0 0 25px rgba(239, 40, 34, .09); content: ''; }
.app-route .dark-strip .content { position: relative; z-index: 1; max-width: 720px; }
.app-route .dark-strip h2 { margin: 14px 0; color: #fff; font-size: clamp(2.6rem, 5.4vw, 5.3rem); font-weight: 500; letter-spacing: -.075em; line-height: .88; }

/* Calculator keeps its calculation/PDF engine untouched while becoming the concept's financial workbench. */
.app-route .calculator-main { padding-top: 0; }
.app-route .calculator-main::before { display: none; }
.app-route .fcmm-mortgage { max-width: 1280px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(24, 18, 20, .12); border-radius: 26px; background: #fffdfb; box-shadow: var(--fcmm-shadow); }
.app-route .calc-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .5fr); gap: 32px; padding: clamp(38px, 5vw, 68px); overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 16%, rgba(239, 40, 34, .64), transparent 24%), linear-gradient(124deg, #070708, #210a11); }
.app-route .calc-intro::after { position: absolute; right: -4%; bottom: -115%; width: 540px; aspect-ratio: 1; border: 1px solid rgba(239, 40, 34, .64); border-radius: 50%; box-shadow: 0 0 0 22px rgba(239, 40, 34, .12); content: ''; }
.app-route .calc-intro > * { position: relative; z-index: 1; }
.app-route .calc-intro .breadcrumb { color: #ff8b83; }
.app-route .calc-intro h2 { max-width: 720px; margin: 14px 0 0; color: #fff; font-size: clamp(2.6rem, 5vw, 5.5rem); font-weight: 500; letter-spacing: -.078em; line-height: .85; }
.app-route .calc-intro .lead, .app-route .calc-intro-note { color: rgba(255, 255, 255, .75); }
.app-route .calc-intro-note { align-self: end; border-left: 1px solid rgba(255, 255, 255, .24); padding-left: 24px; line-height: 1.6; }
.app-route .calc-workspace { grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr); gap: 0; padding: 0; background: #fbf6f1; }
.app-route .calc-controls { padding: clamp(30px, 4vw, 56px); }
.app-route .calc-summary { margin: 0; border-radius: 0; color: #fff; background: #100d10; box-shadow: none; }
.app-route .calc-summary::before { background: radial-gradient(circle at 84% 18%, rgba(239, 40, 34, .58), transparent 20%); }
.app-route .calc-summary h3, .app-route .calc-summary strong { color: #fff; }
.app-route .calc-summary .button.secondary { border-color: rgba(255,255,255,.44); color: #fff; background: transparent; }
.app-route .calc-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; border-top: 1px solid var(--fcmm-rule); background: #fff; }
.app-route .calc-comparison > header { grid-column: 1 / -1; padding: 42px clamp(30px, 4vw, 56px) 26px; background: var(--fcmm-paper); }
.app-route .compare-card { min-height: 260px; margin: 0; padding: clamp(30px, 4vw, 54px); border: 0; border-top: 1px solid var(--fcmm-rule); border-radius: 0; box-shadow: none; }
.app-route .compare-card + .compare-card { border-left: 1px solid var(--fcmm-rule); }
.app-route .compare-card:nth-of-type(2) { color: #fff; background: #151114; }
.app-route .compare-card:nth-of-type(2) h4, .app-route .compare-card:nth-of-type(2) strong { color: #fff; }
.app-route .calc-strategy { margin: 0; border-radius: 0; background: var(--fcmm-paper); }
.app-route .calc-schedule { margin: 0; border: 0; border-radius: 0; }
.app-route .calc-disclaimer { margin: 0; border-radius: 0; }

/* Process, borrower details, contact and information pages use deliberate paper/ink contrast. */
.app-route .timeline { padding: clamp(31px, 4vw, 64px); background: #141014; }
.app-route .timeline li { padding: 0 0 24px; border-color: rgba(255,255,255,.14); }
.app-route .timeline li:last-child { padding-bottom: 0; }
.app-route .timeline li b { border-color: rgba(239, 40, 34, .7); color: #fff; background: var(--fcmm-red); }
.app-route .timeline h3 { color: #fff; }
.app-route .timeline p { color: rgba(255,255,255,.68); }
.app-route .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; max-width: 1180px; margin: 24px auto 0; }
.app-route .info-card, .app-route .portal-card { min-height: 245px; padding: 29px; border: 1px solid var(--fcmm-rule); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(18, 6, 10, .045); }
.app-route .info-card .icon, .app-route .portal-card .icon { color: var(--fcmm-red); background: transparent; }
.app-route .borrower-choice-intro { max-width: 790px; margin: 0 auto 42px; }
.app-route .borrower-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.app-route .borrower-product-card { display: flex; min-height: 490px; flex-direction: column; overflow: hidden; padding: 15px 25px 28px; }
.app-route .borrower-product-visual { height: 170px; margin: 0 -10px 25px; overflow: hidden; border-radius: 13px; background: #171114; }
.app-route .borrower-product-visual img { width: 100%; height: 100%; object-fit: cover; }
.app-route .borrower-product-card h3 { font-size: 2rem; letter-spacing: -.06em; }
.app-route .borrower-product-card .button { margin-top: auto; }
.app-route .borrower-product-detail { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 96px); border-radius: 24px; background: #fff; box-shadow: var(--fcmm-shadow); }
.app-route .borrower-product-detail h2 { margin: 16px 0; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.075em; }
.app-route .policy-intro { max-width: 860px; padding-bottom: 50px; border-bottom: 1px solid var(--fcmm-rule); }
.app-route .policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 42px auto 0; }
.app-route .policy-card { position: relative; min-height: 250px; overflow: hidden; padding: 28px; border: 1px solid var(--fcmm-rule); border-radius: 18px; background: #fff; }
.app-route .policy-card:nth-child(2), .app-route .policy-card:nth-child(5) { color: #fff; background: #121013; }
.app-route .policy-card:nth-child(2) h3, .app-route .policy-card:nth-child(5) h3 { color: #fff; }
.app-route .policy-card span { color: var(--fcmm-red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.app-route .policy-card h3 { margin: 29px 0 13px; color: #121013; font-size: 1.35rem; }
.app-route .policy-card p { line-height: 1.6; }
.app-route .fcmm-contact-details { display: grid; gap: 9px; }
.app-route .fcmm-contact-details a { color: var(--fcmm-red-deep); font-weight: 800; }
.app-route #contact-form { min-height: auto; }

/* Broker and admin are a real paper dashboard, not a generic marketing-card stack. */
.app-route .portal-shell { max-width: 1180px; margin: 0 auto; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-route .portal-top { position: relative; min-height: 254px; padding: clamp(34px, 5vw, 64px); overflow: hidden; border-radius: 0; color: #fff; background: radial-gradient(circle at 78% 16%, rgba(239,40,34,.66), transparent 17%), linear-gradient(124deg, #0a090c, #241017); }
.app-route .portal-top::after { right: -76px; top: -116px; width: 350px; border-color: rgba(239,40,34,.72); box-shadow: 0 0 0 22px rgba(239,40,34,.12); }
.app-route .portal-top h2 { margin: 14px 0 9px; color: #fff; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.075em; line-height: .88; }
.app-route .portal-top .button { position: relative; z-index: 2; }
.app-route .portal-top { border-radius: 24px; box-shadow: 0 22px 50px rgba(18, 6, 10, .16); }
@media (min-width: 861px) {
  .app-route .portal-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(410px, .68fr);
    grid-template-areas: 'copy action' 'copy utility';
    align-items: center;
    column-gap: clamp(28px, 4vw, 66px);
    row-gap: 13px;
  }
  .app-route .portal-top > div:first-child { grid-area: copy; }
  .app-route .portal-top > .button { grid-area: action; min-width: 184px; justify-self: start; white-space: nowrap; }
  .app-route .portal-top .broker-utility {
    display: grid;
    grid-area: utility;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .92fr);
    grid-template-areas: 'session notifications' 'profile signout';
    width: 100%;
    margin: 0;
    gap: 10px 12px;
  }
  .app-route .portal-top .session-chip { display: flex; grid-area: session; min-height: 44px; align-items: center; justify-content: center; margin: 0; padding: 0 14px; border-color: rgba(255,255,255,.38); color: #ffe2bf; background: rgba(0,0,0,.17); font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .app-route .portal-top .outline-button { display: flex; min-height: 44px; align-items: center; justify-content: center; margin: 0; padding: 0 14px; border-color: rgba(255,255,255,.42); color: #fff; font-size: 11px; white-space: nowrap; }
  .app-route .portal-top .outline-button[data-broker-action="notifications"] { grid-area: notifications; }
  .app-route .portal-top .outline-button[data-broker-action="profile"] { grid-area: profile; }
  .app-route .portal-top .outline-button[data-broker-action="logout"] { grid-area: signout; }
  .app-route .portal-top .notice-count { flex: 0 0 auto; margin-left: 7px; background: #ffe2bf; color: #181014; }
}
.app-route .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; padding: 15px; border: 1px solid var(--fcmm-rule); border-radius: 19px; background: #fffdfb; box-shadow: 0 12px 26px rgba(18, 6, 10, .055); }
.app-route .tab { display: flex; min-height: 62px; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid rgba(30, 22, 25, .14); border-radius: 13px; color: #51494b; background: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.app-route .tab:hover { transform: translateY(-2px); border-color: rgba(239,40,34,.58); color: var(--fcmm-red-deep); box-shadow: 0 8px 16px rgba(50, 14, 20, .08); }
.app-route .tab.active { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); box-shadow: 0 9px 18px rgba(239,40,34,.25); }
.app-route .tab-panel { padding: clamp(25px, 4vw, 46px); border: 1px solid var(--fcmm-rule); border-radius: 22px; background: #fffdfb; box-shadow: 0 16px 34px rgba(18, 6, 10, .06); }
.app-route .tab-panel .stats-grid { margin-bottom: 22px; }
.app-route .portal-shell .resource-grid { gap: 17px; }
.app-route .portal-shell .tab-panel .table-wrap { border-top: 0; }
.app-route .product-type-library__heading { display: grid; gap: 10px; margin-bottom: 24px; }
.app-route .product-type-library__heading h2, .app-route .product-resource-detail > h2 { margin: 0; color: #111014; font-size: clamp(2.2rem, 4.8vw, 4.4rem); font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.app-route .product-type-library__heading p:last-child { max-width: 620px; margin: 0; color: #6e6567; font-size: .94rem; line-height: 1.65; }
.app-route .product-type-list { display: grid; gap: 12px; }
.app-route .product-type-card { display: grid; width: 100%; grid-template-columns: 54px minmax(150px, .9fr) minmax(100px, .35fr) minmax(74px, .22fr) 28px; align-items: center; gap: 16px; padding: 16px 23px; border: 1px solid rgba(23,16,19,.11); border-radius: 19px; color: #151115; background: #fff; box-shadow: 0 8px 18px rgba(20,7,11,.04); cursor: pointer; text-align: left; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.app-route .product-type-card:hover, .app-route .product-type-card:focus-visible { border-color: rgba(239,40,34,.6); outline: 0; box-shadow: 0 14px 30px rgba(41,8,15,.11); transform: translateX(5px); }
.app-route .product-type-card__index { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: var(--fcmm-red-deep); background: #f8e8e5; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.app-route .product-type-card:nth-child(3n+2) .product-type-card__index { color: #2e5d5c; background: #e4f0ef; }
.app-route .product-type-card:nth-child(3n) .product-type-card__index { color: #5c3f69; background: #eee9f5; }
.app-route .product-type-card__name { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.045em; }
.app-route .product-type-card__meta { color: #625a5c; font-size: .88rem; }
.app-route .product-type-card__files { justify-self: start; padding: 7px 10px; border-radius: 999px; color: var(--fcmm-red-deep); background: #fae8e6; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.app-route .product-type-card__arrow { justify-self: end; color: var(--fcmm-red-deep); font-size: 1.35rem; }
.app-route .product-resource-detail { max-width: 1180px; margin: 0 auto; scroll-margin-top: 108px; }
.app-route .product-resource-detail__back { display: inline-flex; margin-bottom: 24px; }
.app-route .product-resource-detail > .breadcrumb { margin: 0 0 10px; }
.app-route .product-resource-detail > .lead { max-width: 710px; margin: 16px 0 28px; color: #6e6567; }
.app-route .product-manual-library { max-width: 1180px; margin: 0 auto 46px; padding: clamp(28px, 4vw, 46px); border: 1px solid rgba(23,16,19,.12); border-radius: 24px; background: linear-gradient(135deg, #fffdfb, #f4eeea); box-shadow: 0 16px 34px rgba(18, 6, 10, .055); }
.app-route .product-manual-library__heading { display: grid; gap: 11px; max-width: 760px; margin-bottom: 25px; }
.app-route .product-manual-library__heading .breadcrumb { margin: 0; }
.app-route .product-manual-library__heading h2 { margin: 0; color: #111014; font-size: clamp(2.25rem, 4.8vw, 4.75rem); font-weight: 500; letter-spacing: -.07em; line-height: .9; }
.app-route .product-manual-library__heading p:last-child { margin: 0; color: #6e6567; font-size: .96rem; line-height: 1.65; }
.app-route .product-manual-library .product-manual-grid { margin-bottom: 0; }
.app-route .product-manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.app-route .product-manual-card { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; min-height: 150px; padding: 24px; border: 1px solid rgba(239,40,34,.42); border-radius: 21px; color: #fff; background: linear-gradient(130deg, #120d10, #2b1016); box-shadow: 0 15px 32px rgba(22,6,11,.14); transition: transform .25s ease, background .25s ease; text-decoration: none; }
.app-route .product-manual-card:hover { color: #fff; background: linear-gradient(130deg, #291014, #421018); transform: translateY(-3px); }
.app-route .product-manual-card[aria-busy="true"] { pointer-events: none; opacity: .76; }
.app-route .product-manual-card--downloading b::after { content: 'Preparing PDF…'; display: inline-block; margin-left: 10px; color: rgba(255,255,255,.62); font-weight: 500; letter-spacing: 0; text-transform: none; }
.app-route .product-manual-card > span { display: grid; width: 34px; height: 34px; grid-row: span 2; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 11px; color: #ff928a; font-size: 9px; font-weight: 900; }
.app-route .product-manual-card strong { align-self: end; font-size: 1.25rem; letter-spacing: -.04em; }
.app-route .product-manual-card small { color: rgba(255,255,255,.66); font-size: .75rem; }
.app-route .product-manual-card b { grid-column: 1 / -1; margin-top: 10px; color: #ff8c84; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.app-route .product-resource-sections { display: grid; gap: 14px; }
.app-route .product-resource-section { overflow: hidden; border: 1px solid rgba(23,16,19,.11); border-radius: 19px; background: #fff; box-shadow: 0 8px 19px rgba(20,7,11,.035); }
.app-route .product-resource-section summary { display: grid; grid-template-columns: 36px 1fr 22px; align-items: center; gap: 13px; min-height: 76px; padding: 0 22px; color: #171216; cursor: pointer; font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; list-style: none; }
.app-route .product-resource-section summary::-webkit-details-marker { display: none; }
.app-route .product-resource-section summary b { color: var(--fcmm-red); font-size: 1.4rem; font-weight: 400; transition: transform .2s ease; }
.app-route .product-resource-section[open] summary b { transform: rotate(45deg); }
.app-route .product-resource-section__index { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--fcmm-red-deep); background: #f8e8e5; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.app-route .product-resource-section__body { padding: 3px 22px 23px; border-top: 1px solid rgba(23,16,19,.08); }
.app-route .product-resource-section__body > p { margin: 17px 0; color: #71686a; font-size: .9rem; }
.app-route .product-resource-files { min-height: 98px; }
.app-route .product-resource-empty { display: grid; min-height: 86px; place-items: center; align-content: center; gap: 4px; border-radius: 14px; color: #686062; background: #fbf8f7; text-align: center; }
.app-route .product-resource-empty > span { color: var(--fcmm-red); font-size: 1.35rem; line-height: 1; }
.app-route .product-resource-empty strong { color: #40383a; font-size: .88rem; }
.app-route .product-resource-empty small { font-size: .72rem; }
.app-route .product-resource-file-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.app-route .product-resource-file-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid rgba(239,40,34,.18); border-radius: 13px; color: #32272a; background: #fff; font-weight: 700; text-decoration: none; }
.app-route .product-resource-file-list a:hover { border-color: var(--fcmm-red); color: var(--fcmm-red-deep); }
.app-route .product-resource-file-list small { color: #74696c; font-weight: 500; }
.app-route .product-resource-upload { display: inline-flex; margin-top: 13px; padding: 10px 14px; border: 1px solid rgba(239,40,34,.45); border-radius: 999px; color: var(--fcmm-red-deep); background: #fff; cursor: pointer; font-size: .74rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.app-route .product-resource-upload:hover { color: #fff; background: var(--fcmm-red); }
.app-route .product-resource-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-route .supplementary-library { margin-top: 42px; }
.app-route .supplementary-library > div:first-child { margin-bottom: 18px; }
.app-route .supplementary-library h3 { margin: 0; color: #161115; font-size: 1.75rem; letter-spacing: -.055em; }
.app-route .supplementary-library .resource-card { min-height: 286px; }
.app-route .product-resource-detail__back { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin: 0 0 34px; padding: 0 21px; border: 1px solid var(--fcmm-red); border-radius: 999px; color: #fff; background: var(--fcmm-red); box-shadow: 0 9px 20px rgba(239,40,34,.22); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.app-route .product-resource-detail__back:hover, .app-route .product-resource-detail__back:focus-visible { color: #fff; background: #111014; box-shadow: 0 12px 25px rgba(18,9,12,.2); transform: translateY(-2px); }

/* Contact is a pair of purpose-built cards, not an ivory panel trapped in an ink frame. */
.app-route.route-contact .split-panel { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(16px, 2vw, 28px); min-height: 0; overflow: visible; border-radius: 0; background: transparent; }
.app-route.route-contact .split-panel > div,
.app-route.route-contact #contact-form { position: relative; min-height: 100%; margin: 0; padding: clamp(34px, 4.5vw, 64px); border: 1px solid #ded8d1; border-radius: 24px; box-shadow: 0 16px 38px rgba(22,10,14,.07); }
.app-route.route-contact .split-panel > div { overflow: hidden; background: linear-gradient(145deg, #fffdfa, #f4efeb); }
.app-route.route-contact .split-panel > div::before { position: absolute; top: 0; left: clamp(34px, 4.5vw, 64px); width: 54px; height: 3px; content: ''; background: var(--fcmm-red); }
.app-route.route-contact .split-panel > div > * { position: relative; z-index: 1; }
.app-route.route-contact .split-panel h2 { max-width: 10ch; margin-top: 15px; font-size: clamp(2.7rem, 4.6vw, 4.95rem); }
.app-route.route-contact .split-panel .lead { max-width: 31rem; font-size: 1rem; line-height: 1.62; }
.app-route.route-contact .fcmm-contact-details { margin-top: 38px; }
.app-route.route-contact #contact-form { overflow: hidden; color: #fff; border-color: #2c2024; background: radial-gradient(circle at 88% 0, rgba(231,31,42,.58), transparent 24%), linear-gradient(142deg, #1b1014, #09090b 72%); box-shadow: 0 21px 46px rgba(25,7,13,.19); }
.app-route.route-contact #contact-form::after { position: absolute; right: -18%; bottom: -48%; width: 360px; aspect-ratio: 1; border: 1px solid rgba(239,40,34,.65); border-radius: 50%; box-shadow: 0 0 0 17px rgba(239,40,34,.11), 0 0 0 38px rgba(255,255,255,.035); content: ''; pointer-events: none; }
.app-route.route-contact #contact-form > * { position: relative; z-index: 1; }
.app-route.route-contact #contact-form .breadcrumb { color: #ff8a84; }
.app-route.route-contact #contact-form .form-grid { margin-top: 34px; }
.app-route.route-contact #contact-form .form-grid label { color: rgba(255,255,255,.8); font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }
.app-route.route-contact #contact-form :is(input, textarea) { border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #171115; background: #fffdfa; box-shadow: none; }
.app-route.route-contact #contact-form :is(input, textarea):focus { border-color: #ff625c; box-shadow: 0 0 0 4px rgba(239,40,34,.22); }
.app-route.route-contact #contact-form textarea { min-height: 155px; }
.app-route.route-contact #contact-form .button.primary { min-height: 54px; padding-inline: 25px; border-radius: 999px; box-shadow: 0 8px 20px rgba(239,40,34,.25); }

/* Separate financial surfaces so a calculator reads as a composed workbench, never a fused grid. */
.app-route .fcmm-mortgage { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-route .fcmm-mortgage .calc-intro,
.app-route .fcmm-mortgage .calc-controls,
.app-route .fcmm-mortgage .calc-summary { border-radius: 24px; }
.app-route .fcmm-mortgage .calc-comparison,
.app-route .fcmm-mortgage .calc-strategy { gap: clamp(14px, 2vw, 24px); overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-route .fcmm-mortgage .calc-comparison > header { margin: 0; padding: 8px clamp(4px, 1.1vw, 16px) 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-route .fcmm-mortgage .compare-card { overflow: hidden; border: 1px solid #ded8d1; border-radius: 22px; box-shadow: 0 13px 32px rgba(18,9,12,.045); }
.app-route .fcmm-mortgage .compare-card + .compare-card { border-left: 1px solid #ded8d1; }
.app-route .fcmm-mortgage .calc-strategy-header { border: 1px solid #2b2427; border-radius: 22px; box-shadow: 0 16px 37px rgba(22,7,11,.14); }
.app-route .fcmm-mortgage .calc-strategy-values { gap: clamp(14px, 2vw, 24px); background: transparent; }
.app-route .fcmm-mortgage .calc-strategy-values > div { border: 1px solid #ded8d1; border-radius: 22px; box-shadow: 0 13px 32px rgba(18,9,12,.045); }
.app-route .fcmm-mortgage .calc-strategy-values > div + div { border-left: 1px solid #ded8d1; }
.app-route .fcmm-mortgage .calc-schedule { border-radius: 24px; }

@media (max-width: 960px) {
  .app-route.route-contact .split-panel { grid-template-columns: minmax(0, 1fr); }
  .app-route .fcmm-mortgage .calc-comparison,
  .app-route .fcmm-mortgage .calc-strategy-values { grid-template-columns: minmax(0, 1fr); }
  .app-route .fcmm-mortgage .calc-controls { border-radius: 22px; }
}
@media (max-width: 680px) {
  .app-route.route-contact .split-panel > div,
  .app-route.route-contact #contact-form { padding: 30px 22px; border-radius: 20px; }
  .app-route.route-contact .split-panel h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .app-route .fcmm-mortgage .calc-intro,
  .app-route .fcmm-mortgage .calc-controls,
  .app-route .fcmm-mortgage .calc-summary,
  .app-route .fcmm-mortgage .calc-comparison > header,
  .app-route .fcmm-mortgage .compare-card,
  .app-route .fcmm-mortgage .calc-strategy-header,
  .app-route .fcmm-mortgage .calc-strategy-values > div,
  .app-route .fcmm-mortgage .calc-schedule { border-radius: 18px; }
}
.app-route .interaction-modal { padding: 22px; }
.app-route .modal-backdrop { background: rgba(10, 7, 9, .72); backdrop-filter: blur(10px); }
.app-route .modal-card { width: min(100%, 620px); max-height: min(760px, 90vh); padding: clamp(30px, 5vw, 52px); border: 1px solid rgba(28, 19, 22, .13); border-top: 5px solid var(--fcmm-red); border-radius: 24px; color: var(--fcmm-ink); background: var(--fcmm-paper); box-shadow: 0 32px 84px rgba(0, 0, 0, .42); }
.app-route .modal-card .breadcrumb { margin: 0 42px 20px 0; color: var(--fcmm-red-deep); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.app-route .modal-card h2 { max-width: 14ch; margin: 0 40px 28px 0; color: var(--fcmm-ink); font-size: clamp(2.45rem, 5.8vw, 4.35rem); font-weight: 500; letter-spacing: -.065em; line-height: .92; }
.app-route .modal-close { top: 19px; right: 20px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--fcmm-rule); border-radius: 50%; color: var(--fcmm-ink); background: #fff; font-size: 1.45rem; line-height: 1; transition: color .2s ease, background .2s ease; }
.app-route .modal-close:hover { color: #fff; background: var(--fcmm-red); }
.app-route .modal-form { gap: 18px; }
.app-route .modal-form > label:not(.dropzone) { gap: 9px; color: var(--fcmm-ink); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.app-route .modal-form input:not(.dropzone__input), .app-route .modal-form select { min-height: 54px; border-color: rgba(28, 19, 22, .17); border-radius: 14px; color: var(--fcmm-ink); background: #fff; }
.app-route .dropzone { position: relative; display: grid; min-height: 198px; align-content: center; justify-items: start; gap: 9px; padding: 27px; overflow: hidden; border: 1px dashed rgba(239, 40, 34, .62); border-radius: 18px; color: var(--fcmm-ink); background: linear-gradient(135deg, #fff9e9, #fffdfb 72%); text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.app-route .dropzone:hover, .app-route .dropzone:focus-within { border-color: var(--fcmm-red); box-shadow: 0 10px 26px rgba(239, 40, 34, .1); transform: translateY(-1px); }
.app-route .dropzone.is-dragging { border-color: var(--fcmm-red-deep); border-style: solid; background: #ffe9e5; box-shadow: 0 12px 30px rgba(239, 40, 34, .18); transform: translateY(-2px); }
.app-route .dropzone__eyebrow { color: var(--fcmm-red-deep); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.app-route .dropzone strong { font-size: clamp(1.4rem, 2.5vw, 1.8rem); letter-spacing: -.04em; }
.app-route .dropzone__hint, .app-route .dropzone__drop-hint, .app-route .dropzone__file { color: #6c6462; font-size: 12px; line-height: 1.4; }
.app-route .dropzone__drop-hint { color: var(--fcmm-red-deep); font-size: 11px; font-weight: 800; }
.app-route .dropzone__file { min-height: 18px; font-weight: 800; }
.app-route .dropzone__action { display: inline-flex; align-items: center; gap: 16px; margin-top: 7px; padding: 11px 15px; border-radius: 999px; color: #fff; background: var(--fcmm-red); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.app-route .dropzone__action b { font-size: 16px; font-weight: 400; }
.app-route .dropzone__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.app-route .modal-form .auth-helper { margin: 0; color: #766d69; font-size: 12px; line-height: 1.5; }
.app-route .modal-form .button.primary { min-height: 54px; margin-top: 4px; border-radius: 999px; }
.app-route .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; max-width: 1180px; margin: 0 auto 30px; }
.app-route .metric { min-height: 172px; padding: 26px; border: 1px solid var(--fcmm-rule); border-radius: 16px; color: #161114; background: #fff; }
.app-route .metric:nth-child(odd) { color: #fff; background: #121013; }
.app-route .metric:nth-child(odd) strong { color: #fff; }
.app-route .metric strong { color: #111014; font-size: clamp(2.4rem, 4vw, 4.35rem); font-weight: 500; letter-spacing: -.08em; }
.app-route .metric span { color: inherit; opacity: .72; }
.app-route .table-wrap { overflow: auto; max-width: 1180px; margin: 0 auto; border: 1px solid var(--fcmm-rule); border-radius: 16px; background: #fff; }
.app-route table th { color: #786d6d; background: #f5efeb; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.app-route table td { color: #272023; }
.app-route .table-wrap td .text-link { display: grid; gap: 3px; color: var(--fcmm-red-deep); font-weight: 800; text-decoration: none; }
.app-route .table-wrap td .text-link small { color: #786d6d; font-size: 10px; font-weight: 600; }
.app-route .admin-reminder-queue { max-width: 1180px; margin: 30px auto 0; padding: clamp(25px, 4vw, 42px); border: 1px solid rgba(239,40,34,.28); border-radius: 20px; background: linear-gradient(124deg, #151014, #270b13); color: #fff; }
.app-route .admin-reminder-queue .breadcrumb { color: #ff847c; }
.app-route .admin-reminder-queue h3 { max-width: 560px; margin: 13px 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.055em; }
.app-route .admin-reminder-queue p:not(.breadcrumb) { margin: 0; color: rgba(255,255,255,.72); line-height: 1.6; }
.app-route .admin-reminder-queue ol { display: grid; gap: 10px; margin: 23px 0 0; padding: 0; list-style: none; }
.app-route .admin-reminder-queue li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 18px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.app-route .admin-reminder-queue li span { color: rgba(255,255,255,.67); font-size: .88rem; }

.app-route.auth-route .mobile-binding-notice { display: grid; gap: 5px; padding: 16px 18px; border-left: 4px solid var(--fcmm-red); background: #fff6e3; color: var(--fcmm-ink); }
.app-route.auth-route .mobile-binding-notice b { color: var(--fcmm-red-deep); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.app-route.auth-route .mobile-binding-notice strong { font-size: 1.05rem; }
.app-route.auth-route .mobile-binding-notice span { color: #655c58; font-size: .85rem; line-height: 1.45; }
/* Login/Register: a single cinematic access scene, red-white wordmark on ink and red-black logo on paper. */
.app-route.auth-route .auth-shell,
.borrower-select-route .borrower-select-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
  width: 100%;
  min-height: max(690px, calc(100vh - 82px));
  overflow: hidden;
  background: radial-gradient(circle at 76% 18%, rgba(160, 12, 29, .68), transparent 25%), #09090b;
}
.app-route.auth-route .auth-shell::before,
.borrower-select-route .borrower-select-shell::before {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: -20%;
  width: min(60vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(239,40,34,.66);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(239,40,34,.11), 0 0 0 44px rgba(255,255,255,.035);
  content: '';
}
.fcmm-access-veil { background: linear-gradient(90deg, rgba(0,0,0,.56), transparent 70%), linear-gradient(0deg, rgba(0,0,0,.28), transparent); }
.app-route.auth-route .auth-intro,
.borrower-select-route .borrower-select-intro { position: relative; z-index: 1; min-width: 0; overflow: visible; color: #fff; background: transparent; }
.app-route.auth-route .auth-intro { display: grid; grid-template-rows: auto minmax(250px, 1fr) auto; align-content: stretch; min-height: 0; padding: clamp(42px, 5.5vw, 88px) clamp(46px, 7.5vw, 128px) clamp(42px, 5vw, 76px); }
.borrower-select-route .borrower-select-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(52px, 8vw, 132px); }
.app-route.auth-route .auth-intro::after { display: none; }
.app-route.auth-route .auth-intro__brand { display: inline-flex; align-items: center; align-self: start; gap: 12px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.app-route.auth-route .auth-intro__brand i { display: block; width: 38px; height: 2px; background: var(--fcmm-red); box-shadow: 12px 0 0 rgba(255,255,255,.36); }
.app-route.auth-route .auth-intro__main { align-self: center; max-width: 620px; padding: clamp(48px, 7vh, 96px) 0 clamp(28px, 4vh, 50px); }
.app-route.auth-route .auth-intro .eyebrow,
.borrower-select-route .borrower-select-intro .eyebrow { margin: 0; color: #ff847c; }
.app-route.auth-route .auth-intro h1,
.borrower-select-route .borrower-select-intro h1 { max-width: 650px; margin: 17px 0 19px; color: #fff; font-size: clamp(3.4rem, 6vw, 6.4rem); font-weight: 500; letter-spacing: -.078em; line-height: .86; text-wrap: balance; }
.app-route.auth-route .auth-intro h1 { max-width: 7.7ch; margin: 19px 0 23px; font-size: clamp(3.2rem, 5.2vw, 5.85rem); letter-spacing: -.07em; line-height: .98; text-wrap: pretty; }
.app-route.auth-route .auth-intro h1 em { color: #ff847c; font-style: normal; }
.borrower-select-route .borrower-select-intro h1 em { color: var(--fcmm-red); font-style: normal; }
.app-route.auth-route .auth-intro > p:not(.eyebrow),
.borrower-select-route .borrower-select-intro p:not(.eyebrow) { max-width: 570px; color: rgba(255,255,255,.77); font-size: 1rem; line-height: 1.72; }
.app-route.auth-route .auth-intro .auth-intro__lead { max-width: 520px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(.93rem, 1.2vw, 1.04rem); line-height: 1.65; }
.app-route.auth-route .auth-intro ul,
.borrower-select-route .borrower-select-intro ul { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; color: rgba(255,255,255,.84); list-style: none; }
.app-route.auth-route .auth-intro li::before,
.borrower-select-route .borrower-select-intro li::before { color: var(--fcmm-red); content: '•'; padding-right: 11px; }
.app-route.auth-route .auth-intro__services { align-self: end; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.app-route.auth-route .auth-intro__services > p { margin: 0; color: #ff847c; font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.app-route.auth-route .auth-intro__services ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 16px 0 0; }
.app-route.auth-route .auth-intro__services li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 1px 10px; min-width: 0; }
.app-route.auth-route .auth-intro__services li::before { display: none; content: none; }
.app-route.auth-route .auth-intro__services li > span { grid-row: span 2; color: var(--fcmm-red); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.app-route.auth-route .auth-intro__services li > strong { color: #fff; font-size: 12px; font-weight: 800; line-height: 1.25; }
.app-route.auth-route .auth-intro__services li > small { color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.4; }
.app-route.auth-route .auth-panel,
.borrower-select-route .borrower-select-panel { position: relative; z-index: 2; display: grid; align-content: center; min-width: 0; padding: clamp(42px, 6vw, 108px); overflow: hidden; background: transparent; }
.app-route.auth-route .auth-panel::before { display: none; }
.app-route.auth-route .auth-panel-card,
.borrower-select-route .borrower-select-panel { border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,253,250,.98); box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.app-route.auth-route .auth-panel-card { padding: clamp(32px, 4.5vw, 62px); }
.app-route .fcmm-light-lockup { display: block; width: 178px; max-width: 62%; height: auto; margin: 0 0 28px; object-fit: contain; }
.app-route.auth-route .auth-back { display: inline-flex; margin-bottom: 26px; color: #203c57; }
.app-route.auth-route .auth-form { width: min(100%, 470px); }
.app-route.auth-route .auth-form h2 { color: #111014; }
.app-route.auth-route .auth-divider { color: #6d6465; }
.app-route.auth-route .social-auth button { border-color: rgba(20,16,18,.18); background: #fff; }
.app-route.auth-route .social-auth button:hover { border-color: var(--fcmm-red); color: var(--fcmm-red-deep); }
.app-route.auth-route .social-auth--google button { grid-template-columns: 26px minmax(0, 1fr) 26px; min-height: 58px; padding-inline: 18px; }
.app-route.auth-route .social-auth--google .google-signin-icon { width: 22px; height: 22px; padding: 0; border: 0 !important; border-radius: 0; outline: 0; background: transparent; box-shadow: none; object-fit: contain; }
.app-route.auth-route .auth-helper { color: #776d6f; }

/* Broker onboarding fields keep deliberate label-to-control and section-to-section breathing room. */
.app-route.auth-route #registration-step-one,
.app-route.auth-route #registration-step-two { display: grid; gap: 16px; }
.app-route.auth-route #registration-step-one[hidden],
.app-route.auth-route #registration-step-two[hidden] { display: none !important; }
.app-route.auth-route #registration-step-one > .check { margin-top: 1px; }
.app-route.auth-route #registration-step-one > .button.primary,
.app-route.auth-route #registration-step-two > .button.primary { min-height: 54px; margin-top: 2px; }
.app-route.auth-route .registration-email-control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(168px, .58fr); gap: 8px; margin-top: 7px; }
.app-route.auth-route .registration-email-control input,
.app-route.auth-route .registration-email-control select {
  min-width: 0;
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.app-route.auth-route .registration-email-control select { cursor: pointer; }
@media (max-width: 480px) {
  .app-route.auth-route .registration-email-control { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 861px) and (max-width: 1439px) {
  .app-route.auth-route #register-form { width: 100%; }
  .app-route.auth-route .registration-email-control { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1440px) {
  .app-route.auth-route #register-form { width: min(100%, 680px); }
  .app-route.auth-route .registration-email-control {
    grid-template-columns: minmax(0, 1fr) minmax(258px, .72fr);
    gap: 12px;
  }
}
.app-route.auth-route .registration-email-note { display: block; margin-top: 7px; color: #776d6f; font-size: 11px; font-weight: 500; line-height: 1.45; }
.app-route.auth-route #register-form .auth-helper { max-width: 46ch; margin: 6px 0 2px; }
.app-route.auth-route #register-form .auth-divider { margin-top: 8px; }
.app-route.auth-route #register-form .auth-switch { margin-top: 7px; }

/* Borrower choice stays paper-led but is now a true selection board, not a credential screen. */
.borrower-select-route .borrower-select-shell { grid-template-columns: minmax(0, .86fr) minmax(570px, 1.14fr); }
.borrower-select-route .borrower-select-panel { display: block; align-content: initial; margin: clamp(28px, 5vw, 80px) clamp(28px, 5vw, 80px) clamp(28px, 5vw, 80px) 0; padding: clamp(36px, 5vw, 68px); background: rgba(255,253,250,.98); }
.borrower-select-route .borrower-select-panel > h2 { max-width: 680px; margin: 17px 0 8px; color: #111014; font-size: clamp(2.7rem, 4.4vw, 4.8rem); font-weight: 500; letter-spacing: -.075em; line-height: .89; }
.borrower-select-route .borrower-select-panel > .lead { color: #685f60; }
.borrower-select-route .borrower-select-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.borrower-select-route .borrower-select-card { display: flex; min-width: 0; min-height: 338px; flex-direction: column; overflow: hidden; padding: 12px 18px 19px; border: 1px solid var(--fcmm-rule); border-radius: 15px; background: #fff; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.borrower-select-route .borrower-select-card:hover { transform: translateY(-5px); border-color: rgba(239,40,34,.62); box-shadow: 0 16px 30px rgba(20,8,11,.1); }
.borrower-select-card__visual { height: 94px; margin-bottom: 16px; overflow: hidden; border-radius: 10px; background: #151014; }
.borrower-select-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.borrower-select-route .borrower-select-card > span { color: var(--fcmm-red); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.borrower-select-route .borrower-select-card h2 { margin: 16px 0 9px; color: #111014; font-size: 1.75rem; font-weight: 500; letter-spacing: -.06em; }
.borrower-select-route .borrower-select-card p { margin: 0; color: #665e5f; font-size: .83rem; line-height: 1.52; }
.borrower-select-route .borrower-select-card .button { align-self: flex-start; margin-top: auto; font-size: .7rem; }
.borrower-select-route .borrower-select-help { margin: 23px 0 0; color: #6b6062; }
.borrower-select-route .borrower-select-help a { color: var(--fcmm-red-deep); font-weight: 800; }

/* Universal Footer: the subpage markup intentionally mirrors the Landing Page footer. */
.app-route .fcmm-universal-footer { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 96px) 0 30px; color: #fff; background: #09090b; }
.app-route .fcmm-universal-footer::before { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--fcmm-red), transparent); content: ''; }
.app-route .fcmm-universal-footer .container { width: min(100% - 10vw, 1240px); margin: 0 auto; }
.app-route .fcmm-universal-footer .footer-grid { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(130px, .75fr) minmax(170px, .86fr) minmax(205px, 1fr); gap: clamp(26px, 4.5vw, 70px); }
.app-route .fcmm-universal-footer .footer-brand .official-logo { display: block; width: min(210px, 100%) !important; height: auto; margin: 0 0 28px; }
.app-route .fcmm-universal-footer h3 { margin: 0 0 18px; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.app-route .fcmm-universal-footer .footer-brand > p, .app-route .fcmm-universal-footer .newsletter > p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.62; }
.app-route .fcmm-universal-footer nav { display: grid; align-content: start; gap: 9px; }
.app-route .fcmm-universal-footer a { color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.45; text-decoration: none; transition: color .2s ease; }
.app-route .fcmm-universal-footer a:hover, .app-route .fcmm-universal-footer a:focus-visible { color: #fff; }
.app-route .fcmm-universal-footer .socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.app-route .fcmm-universal-footer .socials a { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }
.app-route .fcmm-universal-footer .socials a:hover { border-color: var(--fcmm-red); background: var(--fcmm-red); }
.app-route .fcmm-universal-footer .footer-contact { display: grid; align-content: start; gap: 12px; }
.app-route .fcmm-universal-footer .footer-contact h3 { margin-bottom: 6px; }
.app-route .fcmm-universal-footer .footer-contact a, .app-route .fcmm-universal-footer .footer-contact p { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: rgba(255,255,255,.72); }
.app-route .fcmm-universal-footer .footer-contact span[aria-hidden] { color: #ff847c; font-size: 14px; line-height: 1.2; }
.app-route .fcmm-universal-footer .newsletter form { display: flex; min-height: 47px; margin-top: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.04); }
.app-route .fcmm-universal-footer .newsletter label { flex: 1; min-width: 0; }
.app-route .fcmm-universal-footer .newsletter input { width: 100%; height: 100%; min-height: 45px; padding: 0 17px; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; }
.app-route .fcmm-universal-footer .newsletter input::placeholder { color: rgba(255,255,255,.55); }
.app-route .fcmm-universal-footer .newsletter button { width: 50px; border: 0; border-radius: 50%; color: #fff; background: var(--fcmm-red); font-size: 20px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.app-route .fcmm-universal-footer .newsletter button:hover { background: #fff; color: var(--fcmm-red-deep); transform: scale(.94); }
.app-route .fcmm-universal-footer .newsletter-status { min-height: 19px; margin-top: 10px !important; color: #ffaaa5 !important; font-size: 11px !important; }
.app-route .fcmm-universal-footer .footer-tagline { display: block; margin-top: 26px; color: #ff847c; font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.app-route .fcmm-universal-footer .footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; margin-top: clamp(46px, 6vw, 74px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.5; }
.app-route .fcmm-universal-footer .footer-bottom > div { display: flex; flex-wrap: wrap; gap: 9px; }
.app-route .fcmm-universal-footer .footer-bottom a { color: rgba(255,255,255,.62); font-size: 10px; }

/* Landing Page footer baseline: subpages use the same information order, rhythm and surfaces. */
.app-route .fcmm-universal-footer { padding: 64px 0 75px; }
.app-route .fcmm-universal-footer::before { display: none; }
.app-route .fcmm-universal-footer .container { width: min(100% - 10vw, 1240px); }
.app-route .fcmm-universal-footer .footer-grid { grid-template-columns: 31% 16% 26% 1fr; gap: 2%; }
.app-route .fcmm-universal-footer .footer-brand .brand { display: inline-flex; align-items: center; }
.app-route .fcmm-universal-footer .footer-brand .footer-official-logo { display: block; width: 176px; height: auto; max-height: none; object-fit: contain; }
.app-route .fcmm-universal-footer .footer-brand > p { margin-top: 42px; color: #a1a4a7; font-size: 13px; line-height: 1.7; }
.app-route .fcmm-universal-footer .socials { gap: 8px; margin-top: 23px; }
.app-route .fcmm-universal-footer .socials a { width: 34px; height: 34px; border-color: rgba(255,255,255,.42); border-radius: 50%; background: transparent; font-size: 11px; }
.app-route .fcmm-universal-footer .socials a:hover { border-color: #e6211a; background: #e6211a; transform: translateY(-2px); }
.app-route .fcmm-universal-footer h3 { margin: 7px 0 28px; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.app-route .fcmm-universal-footer nav { display: block; }
.app-route .fcmm-universal-footer nav > a { display: block; margin-top: 7px; color: #b5b7ba; font-size: 13px; line-height: 1.35; }
.app-route .fcmm-universal-footer nav > a:hover { color: #ef3947; }
.app-route .fcmm-universal-footer .footer-contact { display: block; }
.app-route .fcmm-universal-footer .footer-contact h3 { margin-bottom: 28px; }
.app-route .fcmm-universal-footer .footer-contact a, .app-route .fcmm-universal-footer .footer-contact p { gap: 17px; margin-bottom: 16px; color: #b5b7ba; font-size: 13px; line-height: 1.55; }
.app-route .fcmm-universal-footer .footer-contact svg { width: 22px; height: 22px; flex: none; color: #c8cbce; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-route .fcmm-universal-footer .newsletter > p { color: #a1a4a7; font-size: 13px; line-height: 1.6; }
.app-route .fcmm-universal-footer .newsletter form { height: 52px; min-height: 0; margin-top: 22px; border-color: #292b2d; border-radius: 13px; background: #161718; }
.app-route .fcmm-universal-footer .newsletter input { flex: 1; min-width: 0; min-height: 0; padding: 14px; color: #fff; font-size: 12px; }
.app-route .fcmm-universal-footer .newsletter form > button { width: 50px; border-radius: 11px; background: #d40d20; font-size: 20px; }
.app-route .fcmm-universal-footer .newsletter form > button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-route .fcmm-universal-footer .newsletter form > button:hover { background: #f0293a; color: #fff; transform: none; }
.app-route .fcmm-universal-footer .newsletter-status { min-height: 16px; margin-top: 10px !important; color: #a1a4a7 !important; font-size: 11px !important; }
.app-route .fcmm-universal-footer .footer-tagline { margin-top: 49px; color: #bcbec1; font-size: 12px; font-weight: 400; letter-spacing: 0; text-align: right; text-transform: none; }
.app-route .fcmm-universal-footer .footer-bottom { gap: 20px; margin-top: 53px; padding-top: 26px; border-color: #242627; color: #919597; font-size: 11px; }
.app-route .fcmm-universal-footer .footer-bottom > div { gap: 12px; }
.app-route .fcmm-universal-footer .footer-bottom a { color: inherit; font-size: inherit; }
.app-route .fcmm-universal-footer .footer-bottom a:hover { color: #fff; }
.fcmm-footer-motion-prep [data-footer-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); }
.fcmm-footer-motion-prep [data-footer-reveal] > :is(.brand, h3, p, a, form, .socials, .footer-tagline, span, div) { opacity: 0; transform: translate3d(0, 13px, 0); }
.fcmm-footer-motion-ready [data-footer-reveal] { animation: fcmm-footer-section .82s cubic-bezier(.16, 1, .3, 1) both var(--footer-delay, 0s); }
.fcmm-footer-motion-ready [data-footer-reveal] > :is(.brand, h3, p, a, form, .socials, .footer-tagline, span, div) { animation: fcmm-footer-text .7s cubic-bezier(.16, 1, .3, 1) both calc(var(--footer-delay, 0s) + .12s); }
.fcmm-footer-motion-ready nav[data-footer-reveal] > a:nth-of-type(1) { animation-delay: calc(var(--footer-delay, 0s) + .16s); }
.fcmm-footer-motion-ready nav[data-footer-reveal] > a:nth-of-type(2) { animation-delay: calc(var(--footer-delay, 0s) + .21s); }
.fcmm-footer-motion-ready nav[data-footer-reveal] > a:nth-of-type(3) { animation-delay: calc(var(--footer-delay, 0s) + .26s); }
.fcmm-footer-motion-ready nav[data-footer-reveal] > a:nth-of-type(4) { animation-delay: calc(var(--footer-delay, 0s) + .31s); }
.fcmm-footer-motion-ready nav[data-footer-reveal] > a:nth-of-type(n+5) { animation-delay: calc(var(--footer-delay, 0s) + .36s); }
@keyframes fcmm-footer-section { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fcmm-footer-text { from { opacity: 0; transform: translate3d(0, 13px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

@media (max-width: 1040px) {
  .app-route .product-grid, .app-route .resource-grid, .app-route .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-route .product-card:last-child, .app-route .resource-card:last-child { grid-column: span 2; }
  .app-route .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-route .product-type-card { grid-template-columns: 48px minmax(140px, 1fr) auto 24px; gap: 13px; }
  .app-route .product-type-card__files { grid-column: 3; grid-row: 1; }
  .borrower-select-route .borrower-select-shell { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .borrower-select-route .borrower-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .borrower-select-route .borrower-select-card:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .app-route .universe-nav { min-height: 78px; }
  .app-route .page-hero { min-height: 455px; align-items: flex-end; padding: 54px 22px 51px; }
  .app-route .page-hero::before { top: -28vw; right: -44vw; width: 104vw; }
  .fcmm-page-hero__copy { width: 100%; }
  .fcmm-page-hero__wordmark { width: 148px; margin-bottom: 23px; }
  .app-route .fcmm-page-hero .breadcrumb { gap: 8px; font-size: 8px; line-height: 1.45; }
  .app-route .fcmm-page-hero h1 { max-width: 100%; margin: 12px 0 15px; font-size: clamp(3rem, 14vw, 5.2rem); line-height: .86; }
  .fcmm-page-hero__stamp { right: 22px; bottom: 23px; width: 93px; font-size: 7px; }
  .app-route main.fcmm-route-main, .app-route .calculator-main { padding: 56px 22px 76px; }
  .app-route .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 30px; }
  .app-route .section-heading h2, .app-route .borrower-choice-intro h2, .app-route .policy-intro h2 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .app-route .product-grid, .app-route .resource-grid, .app-route .policy-grid, .app-route .card-grid, .app-route .borrower-product-grid { grid-template-columns: minmax(0, 1fr); }
  .app-route .product-card:last-child, .app-route .resource-card:last-child { grid-column: auto; }
  .app-route .product-card { min-height: auto; }
  .app-route .product-visual { height: 205px; }
  .app-route .product-manual-grid { grid-template-columns: minmax(0, 1fr); }
  .app-route .product-type-card { grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 11px; padding: 14px; }
  .app-route .product-type-card__index { width: 42px; height: 42px; border-radius: 13px; }
  .app-route .product-type-card__name { font-size: 1.2rem; }
  .app-route .product-type-card__meta { grid-column: 2; font-size: .78rem; }
  .app-route .product-type-card__files { grid-column: 2; grid-row: auto; width: max-content; }
  .app-route .product-type-card__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .app-route .product-resource-section summary { min-height: 64px; padding-inline: 15px; font-size: 1.05rem; }
  .app-route .product-resource-section__body { padding-inline: 15px; }
  .app-route .split-panel { grid-template-columns: minmax(0, 1fr); margin-top: 46px; }
  .app-route .split-panel .visual-panel { min-height: 280px; }
  .app-route .calc-intro, .app-route .calc-workspace, .app-route .calc-comparison { grid-template-columns: minmax(0, 1fr); }
  .app-route .calc-intro-note { border-top: 1px solid rgba(255,255,255,.2); border-left: 0; padding: 20px 0 0; }
  .app-route .compare-card + .compare-card { border-top: 1px solid var(--fcmm-rule); border-left: 0; }
  .app-route .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-route .portal-top { min-height: 300px; }
  .app-route .portal-top > .button { min-width: 178px; white-space: nowrap; }
  .app-route .portal-top .broker-utility { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 18px 0 0; gap: 9px; }
  .app-route .portal-top .session-chip { grid-column: 1 / -1; justify-self: start; }
  .app-route .portal-top .outline-button { min-height: 42px; padding: 0 11px; font-size: 10px; white-space: nowrap; }
  .app-route .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 13px 0; padding: 11px; border-radius: 17px; }
  .app-route .tab { min-height: 56px; padding: 10px 8px; font-size: 9px; letter-spacing: .07em; }
  .app-route .tab-panel { padding: 22px; border-radius: 18px; }
  .app-route .fcmm-universal-footer { padding: 58px 0 32px; }
  .app-route .fcmm-universal-footer .container { width: calc(100% - 44px); }
  .app-route .fcmm-universal-footer .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .app-route .fcmm-universal-footer .footer-brand .official-logo { width: 184px !important; }
  .app-route .fcmm-universal-footer .footer-bottom { flex-direction: column; gap: 16px; margin-top: 42px; }

  .app-route.auth-route .auth-shell,
  .borrower-select-route .borrower-select-shell { grid-template-columns: minmax(0, 1fr); min-height: auto; overflow-x: clip; }
  .app-route.auth-route .auth-intro,
  .borrower-select-route .borrower-select-intro { min-width: 0; min-height: 0; padding: 52px 26px 48px; }
  .app-route.auth-route .auth-intro { grid-template-rows: auto auto auto; gap: 34px; }
  .app-route.auth-route .auth-intro__main { padding: 0; }
  .app-route.auth-route .auth-intro__services { align-self: stretch; }
  .app-route.auth-route .auth-intro__services ul { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .app-route.auth-route .auth-intro h1,
  .borrower-select-route .borrower-select-intro h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2.75rem, 12.6vw, 4.35rem); line-height: .98; }
  .app-route.auth-route .auth-panel { padding: 0 22px 52px; }
  .app-route.auth-route .auth-panel-card { padding: 32px 24px; }
  .borrower-select-route .borrower-select-panel { min-width: 0; margin: 0 22px 52px; padding: 32px 24px; box-sizing: border-box; }
  .borrower-select-route .borrower-select-panel > h2 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2.45rem, 11.5vw, 4rem); }
  .borrower-select-route .borrower-select-grid { grid-template-columns: minmax(0, 1fr); }
  .borrower-select-route .borrower-select-card:last-child { grid-column: auto; }
  .borrower-select-route .borrower-select-card { min-width: 0; min-height: 275px; }
}

@media (prefers-reduced-motion: reduce) {
  .fcmm-subpage-signal-canvas { display: none; }
  .fcmm-subpage-motion-prep .fcmm-motion,
  .fcmm-subpage-motion-prep .fcmm-motion--title .fcmm-motion-word,
  .fcmm-footer-motion-prep [data-footer-reveal],
  .fcmm-footer-motion-prep [data-footer-reveal] > * { opacity: 1; transform: none; }
  .fcmm-subpage-motion-ready .fcmm-motion,
  .fcmm-subpage-motion-ready .fcmm-motion--title .fcmm-motion-word,
  .fcmm-footer-motion-ready [data-footer-reveal],
  .fcmm-footer-motion-ready [data-footer-reveal] > * { animation: none !important; }
  .app-route *, .app-route *::before, .app-route *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* These match the Landing Page footer breakpoints rather than the application-card breakpoints. */
@media (max-width: 1000px) {
  .app-route .fcmm-universal-footer { padding: 47px 0 50px; }
  .app-route .fcmm-universal-footer .footer-grid { grid-template-columns: 31% 16% 26% 1fr; gap: 2%; }
  .app-route .fcmm-universal-footer .footer-brand > p { margin-top: 31px; font-size: 9px; }
  .app-route .fcmm-universal-footer h3 { margin-bottom: 24px; font-size: 12px; }
  .app-route .fcmm-universal-footer nav > a { margin-top: 5px; font-size: 10px; }
  .app-route .fcmm-universal-footer .footer-contact a, .app-route .fcmm-universal-footer .footer-contact p { gap: 11px; margin-bottom: 12px; font-size: 9px; }
  .app-route .fcmm-universal-footer .newsletter > p { font-size: 10px; }
  .app-route .fcmm-universal-footer .newsletter form { height: 43px; margin-top: 17px; }
  .app-route .fcmm-universal-footer .newsletter input { padding: 11px; font-size: 9px; }
  .app-route .fcmm-universal-footer .newsletter form > button { width: 39px; }
  .app-route .fcmm-universal-footer .footer-tagline { margin-top: 29px; font-size: 9px; }
  .app-route .fcmm-universal-footer .footer-bottom { margin-top: 38px; padding-top: 21px; font-size: 8px; }
  .app-route .fcmm-universal-footer .socials { gap: 10px; margin-top: 18px; }
  .app-route .fcmm-universal-footer .socials a { width: 23px; height: 23px; font-size: 9px; }
}

@media (max-width: 760px) {
  .app-route .fcmm-universal-footer { padding: 45px 0 32px; }
  .app-route .fcmm-universal-footer .container { width: calc(100% - 44px); }
  .app-route .fcmm-universal-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .app-route .fcmm-universal-footer .footer-brand { grid-column: 1 / -1; }
  .app-route .fcmm-universal-footer .footer-brand > p { margin-top: 23px; font-size: 12px; }
  .app-route .fcmm-universal-footer h3 { margin-top: 0; margin-bottom: 20px; font-size: 14px; }
  .app-route .fcmm-universal-footer nav > a { margin-top: 9px; font-size: 12px; }
  .app-route .fcmm-universal-footer .footer-contact a, .app-route .fcmm-universal-footer .footer-contact p { gap: 10px; font-size: 11px; }
  .app-route .fcmm-universal-footer .newsletter { grid-column: 1 / -1; max-width: 420px; }
  .app-route .fcmm-universal-footer .newsletter > p { font-size: 12px; }
  .app-route .fcmm-universal-footer .newsletter form { height: 49px; margin-top: 15px; }
  .app-route .fcmm-universal-footer .newsletter input { font-size: 12px; }
  .app-route .fcmm-universal-footer .newsletter form > button { width: 49px; }
  .app-route .fcmm-universal-footer .footer-tagline { margin-top: 12px; font-size: 10px; text-align: left; }
  .app-route .fcmm-universal-footer .footer-bottom { flex-direction: column; gap: 17px; margin-top: 25px; font-size: 9px; line-height: 1.6; }
  .app-route .fcmm-universal-footer .footer-bottom > div { gap: 12px; }
  .app-route .fcmm-universal-footer .socials { gap: 8px; margin-top: 19px; }
  .app-route .fcmm-universal-footer .socials a { width: 28px; height: 28px; font-size: 10px; }
}


/* Broker portal keeps one clean editorial header; account actions now live in the global navigation. */
@media (min-width: 861px) {
  .app-route .portal-top { display: block; min-height: 224px; }
  .app-route .portal-top > div:first-child { max-width: 670px; }
}
@media (max-width: 860px) {
  .app-route .portal-top { min-height: 230px; }
}

/* Admin-only shared product library: one authoritative upload produces the broker-visible file count. */
.app-route .admin-product-library { max-width: 1180px; margin: 28px auto 0; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--fcmm-rule); border-radius: 22px; background: #fffdfb; box-shadow: 0 15px 38px rgba(18, 6, 10, .07); }
.app-route .admin-product-library__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.app-route .admin-product-library__heading h2 { max-width: 720px; margin: 10px 0 12px; color: var(--fcmm-ink); font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.app-route .admin-product-library__heading p:not(.breadcrumb) { max-width: 680px; margin: 0; color: #615759; line-height: 1.6; }
.app-route .admin-product-library__total { flex: 0 0 auto; padding: 10px 13px; border-radius: 999px; color: var(--fcmm-red-deep); background: #fae8e6; font-size: 11px; font-weight: 900; white-space: nowrap; }
.app-route .admin-product-library__form { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(170px, .9fr) minmax(240px, 1.55fr) auto; align-items: end; gap: 15px; padding: 18px; border: 1px solid rgba(25, 16, 19, .1); border-radius: 17px; background: var(--fcmm-paper); }
.app-route .admin-product-library__form[hidden] { display: none; }
.app-route .admin-product-library__form > label:not(.dropzone) { display: grid; gap: 8px; color: #40383a; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.app-route .admin-product-library__form select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid rgba(24, 18, 20, .18); border-radius: 12px; color: #191316; background: #fff; font: inherit; }
.app-route .admin-product-library__form .dropzone { min-height: 114px; padding: 14px 16px; }
.app-route .admin-product-library__form .button { min-height: 50px; white-space: nowrap; }
.app-route .admin-published-resource-list { margin-top: 18px; }
.app-route .admin-published-resource-list > p { margin: 0; color: #6a6163; }
.app-route .admin-published-resource-list ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.app-route .admin-published-resource-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid rgba(25, 16, 19, .11); border-radius: 14px; background: #fff; }
.app-route .admin-published-resource-list li > div:first-child { display: grid; gap: 4px; min-width: 0; }
.app-route .admin-published-resource-list li b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.app-route .admin-published-resource-list li span { color: #71686a; font-size: 11px; }
.app-route .admin-published-resource-list li > div:last-child { display: flex; flex: 0 0 auto; gap: 12px; align-items: center; }
.app-route .admin-published-resource-list a, .app-route .admin-published-resource-list button { padding: 0; border: 0; color: var(--fcmm-red-deep); background: transparent; font: 800 11px/1 'DM Sans', Arial, sans-serif; cursor: pointer; text-transform: uppercase; }
.app-route .admin-published-resource-list button { color: #6a6062; }
@media (max-width: 860px) {
  .app-route .admin-product-library__heading { display: grid; align-items: start; }
  .app-route .admin-product-library__form { grid-template-columns: 1fr; }
  .app-route .admin-product-library__form .button { width: 100%; }
  .app-route .admin-published-resource-list li { display: grid; }
  .app-route .admin-published-resource-list li > div:last-child { justify-content: space-between; }
}

/* Hero-derived crisp body choreography: copy rises first, then paper and ink surfaces follow. */
.app-route .fcmm-body-motion { opacity: 0; transform: translate3d(0, 34px, 0); will-change: opacity, transform; }
.app-route .fcmm-body-motion--copy { transform: translate3d(0, 26px, 0); }
.app-route .fcmm-body-motion--surface { transform: translate3d(0, 38px, 0) scale(.985); transform-origin: center bottom; }
.app-route .fcmm-body-motion.fcmm-body-motion-ready { animation: fcmm-body-copy-in .9s cubic-bezier(.16, 1, .3, 1) both var(--fcmm-body-delay, 0s); }
.app-route .fcmm-body-motion--surface.fcmm-body-motion-ready { animation-name: fcmm-body-surface-in; }
@keyframes fcmm-body-copy-in { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fcmm-body-surface-in { from { opacity: 0; transform: translate3d(0, 38px, 0) scale(.985); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .app-route .fcmm-body-motion { opacity: 1; filter: none; transform: none; }
  .app-route .fcmm-body-motion.fcmm-body-motion-ready { animation: none !important; }
}


/* Mobile responsive QA: improve reading scale, touch comfort and dense data layouts. */
@media (max-width: 760px) {
  .app-route .fcmm-universal-footer { padding: 50px 0 36px; }
  .app-route .fcmm-universal-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .app-route .fcmm-universal-footer .footer-brand,
  .app-route .fcmm-universal-footer .newsletter { grid-column: auto; }
  .app-route .fcmm-universal-footer .footer-brand > p,
  .app-route .fcmm-universal-footer .newsletter > p { font-size: 13px; line-height: 1.65; }
  .app-route .fcmm-universal-footer h3 { margin-bottom: 16px; font-size: 15px; }
  .app-route .fcmm-universal-footer nav > a,
  .app-route .fcmm-universal-footer .footer-contact a,
  .app-route .fcmm-universal-footer .footer-contact p { font-size: 13px; line-height: 1.6; }
  .app-route .fcmm-universal-footer nav > a { min-height: 32px; padding-block: 4px; }
  .app-route .fcmm-universal-footer .socials { gap: 10px; }
  .app-route .fcmm-universal-footer .socials a { width: 40px; height: 40px; font-size: 12px; }
  .app-route .fcmm-universal-footer .newsletter form { height: 52px; }
  .app-route .fcmm-universal-footer .newsletter form > button { width: 52px; min-height: 52px; border-radius: 12px; }
  .app-route .fcmm-universal-footer .footer-bottom { gap: 14px; margin-top: 34px; font-size: 12px; line-height: 1.65; }
  .app-route .fcmm-universal-footer .footer-bottom a { font-size: 12px; }

  .app-route.route-admin .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .app-route.route-admin .table-wrap table,
  .app-route.route-admin .table-wrap tbody,
  .app-route.route-admin .table-wrap tr,
  .app-route.route-admin .table-wrap td { display: block; width: 100%; min-width: 0 !important; }
  .app-route.route-admin .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-route.route-admin .table-wrap tr { display: grid; gap: 9px; margin-bottom: 12px; padding: 18px; border: 1px solid var(--fcmm-rule); border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(18, 6, 10, .045); }
  .app-route.route-admin .table-wrap td { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .app-route.route-admin .table-wrap td::before { color: #786d6d; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
  .app-route.route-admin .table-wrap td:nth-child(1)::before { content: 'Area'; }
  .app-route.route-admin .table-wrap td:nth-child(2)::before { content: 'Priority'; }
  .app-route.route-admin .table-wrap td:nth-child(3)::before { content: 'Latest'; }
  .app-route.route-admin .table-wrap td:nth-child(4)::before { content: 'Owner'; }

  .app-route.route-about .split-panel { gap: 16px; overflow: visible; border-radius: 0; background: transparent; }
  .app-route.route-about .split-panel > div,
  .app-route.route-about .split-panel .visual-panel { border-radius: 20px; }
  .app-route.auth-route .auth-switch a { display: inline-flex; align-items: center; white-space: nowrap; }
  .app-route .borrower-product-card .button,
  .borrower-select-route .borrower-select-card .button { display: inline-flex; min-height: 48px; height: 48px; align-items: center; justify-content: center; padding-inline: 20px; font-size: .75rem; }
  .app-route .portal-shell .table-wrap td .text-link,
  .app-route .portal-shell .table-wrap td button.text-link { min-height: 44px; align-content: center; padding-block: 8px; }
}


/* Nine-line TMD register: every product card exposes one direct determination download, not a shared library. */
.app-route .product-grid--tmd { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.app-route .product-card--tmd { min-height: 362px; padding-top: 13px; }
.app-route .product-card--tmd .product-visual { height: 112px; margin-bottom: 21px; background: radial-gradient(circle at 76% 13%, rgba(239, 40, 34, .74), transparent 19%), linear-gradient(128deg, #080709, #271016 66%, #100a0d); }
.app-route .product-card--tmd .product-visual::before { position: absolute; top: -114px; right: -42px; width: 240px; aspect-ratio: 1; border: 1px solid rgba(239, 40, 34, .64); border-radius: 50%; box-shadow: 0 0 0 16px rgba(239, 40, 34, .08), 0 0 0 34px rgba(255, 255, 255, .035); content: ''; }
.app-route .product-card--tmd .product-visual::after { position: absolute; right: -8%; bottom: 26px; left: -8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(239, 40, 34, .16) 18%, var(--fcmm-red) 52%, rgba(239, 40, 34, .2) 82%, transparent); content: ''; }
.app-route .product-card--tmd h3 { font-size: clamp(1.8rem, 2.6vw, 2.55rem); }
.app-route .product-card--tmd p:not(.product-card__strap) { margin-bottom: 22px; }
.app-route .product-card--tmd p small,
.app-route .resource-card--tmd p small { color: #74696c; font-size: .78rem; font-weight: 700; line-height: 1.45; }
.app-route .resource-grid--tmd { align-items: stretch; }
.app-route .resource-card--tmd { min-height: 300px; }
.app-route .resource-card--tmd .download { min-height: 44px; }
.app-route .product-type-library--tmd { max-width: 1180px; margin: 0 auto; }
.app-route .product-type-library--tmd .product-type-library__heading { margin-bottom: 30px; }

@media (max-width: 760px) {
  .app-route .product-grid--tmd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .app-route .product-card--tmd { min-height: 332px; padding-inline: 18px; }
  .app-route .product-card--tmd .product-visual { height: 96px; margin-inline: -7px; }
  .app-route .product-card--tmd h3 { font-size: 1.62rem; }
  .app-route .product-card--tmd .arrow { min-height: 44px; padding-top: 14px; font-size: 9px; }
}

@media (max-width: 480px) {
  .app-route .product-grid--tmd { grid-template-columns: 1fr; }
  .app-route .product-card--tmd { min-height: 300px; }
}


/* Global editorial type audit: oversized multi-line headings need breathing room, never overlapping glyphs. */
.app-route .fcmm-page-hero h1 { line-height: .97; }
.app-route :is(.section-heading h2, .borrower-choice-intro h2, .policy-intro h2, .split-panel h2, .dark-strip h2, .calc-intro h2, .portal-top h2, .product-type-library__heading h2, .product-manual-library__heading h2, .modal-card h2, .admin-product-library__heading h2) { line-height: .99; }
.app-route :is(.product-card h3, .borrower-product-card h3) { line-height: 1; }
.app-route.auth-route .auth-intro h1,
.borrower-select-route .borrower-select-intro h1,
.borrower-select-route .borrower-select-panel > h2 { line-height: 1; }

@media (max-width: 760px) {
  .app-route .fcmm-page-hero h1 { line-height: .99; }
  .app-route :is(.section-heading h2, .borrower-choice-intro h2, .policy-intro h2, .split-panel h2, .dark-strip h2, .calc-intro h2, .portal-top h2, .product-type-library__heading h2, .product-manual-library__heading h2, .modal-card h2, .admin-product-library__heading h2) { line-height: 1.02; }
}

/* Digital Customer Care: the signal-red + expands into a clear, rounded service conversation. */
.app-route .chat-fab {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ef2822;
  box-shadow: 0 12px 28px rgba(125, 8, 16, .28), inset 0 1px 0 rgba(255,255,255,.22);
  color: #fff;
  font-size: 27px;
  font-weight: 350;
  line-height: 1;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.app-route .chat-fab:hover,
.app-route .chat-fab:focus-visible { transform: translateY(-2px) scale(1.03); background: #ff3c35; outline: 2px solid rgba(239,40,34,.35); outline-offset: 4px; }
.app-route .chat-fab.is-open { background: #171114; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.app-route .chat-window { overflow: hidden; border: 1px solid rgba(239,40,34,.24); border-radius: 24px !important; background: #fffdfa; box-shadow: 0 24px 60px rgba(10,7,8,.28); }
.app-route .chat-head { border-radius: 23px 23px 0 0; background: linear-gradient(112deg, #100d0f, #2b0a10 65%, #6e1118); }
.app-route .chat-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50% !important; color: #fff; font-size: 24px; line-height: 1; }
.app-route .chat-close:hover,
.app-route .chat-close:focus-visible { color: #120e10; background: #fff; outline: 0; }
.app-route .chat-form { background: #fffdfa; }
.app-route .chat-send { min-width: 44px; border-radius: 12px !important; background: #ef2822; }
.app-route #chat-window.chat-window { border-radius: 24px !important; }
.app-route .chat-body { display: grid; gap: 12px; }
.app-route .care-message { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: flex-start; gap: 10px; max-width: 100%; }
.app-route .chat-message { width: fit-content; max-width: calc(100% - 40px); margin: 0; padding: 11px 13px; border-radius: 7px 17px 17px 17px; line-height: 1.55; overflow-wrap: break-word; }
.app-route .care-message .chat-message { width: fit-content; max-width: 100%; justify-self: start; }
.app-route .chat-message.user { justify-self: end; margin: 0; border-radius: 17px 17px 7px 17px; }
@media (max-width: 520px) {
  .app-route .chat-body { gap: 10px; padding: 13px; }
  .app-route .chat-message { max-width: calc(100% - 32px); }
}

/* Broker Training: a calendar-led operational surface with admin-only session controls. */
.app-route .training-workspace { display: grid; gap: 24px; }
.app-route .training-workspace__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.app-route .training-workspace__head > div:first-child { max-width: 700px; }
.app-route .training-workspace__head h2 { max-width: 640px; margin: 11px 0 14px; color: #111014; font-size: clamp(2.35rem, 4.5vw, 4.6rem); font-weight: 500; letter-spacing: -.07em; line-height: .91; }
.app-route .training-workspace__head .lead { margin: 0; color: #6e6567; line-height: 1.65; }
.app-route .training-admin-actions { display: grid; flex: 0 0 auto; gap: 10px; justify-items: start; padding: 16px; border: 1px solid rgba(239,40,34,.35); border-radius: 18px; background: #fff7f5; }
.app-route .training-admin-actions[hidden] { display: none; }
.app-route .training-admin-actions > span { color: var(--fcmm-red-deep); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.app-route .training-admin-actions .button { min-height: 44px; white-space: nowrap; }
.app-route .training-calendar-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: 18px; align-items: start; }
.app-route .training-calendar, .app-route .training-agenda { min-height: 420px; padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(23,16,19,.12); border-radius: 22px; background: #fff; box-shadow: 0 12px 28px rgba(18,9,12,.045); }
.app-route .training-calendar > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app-route .training-calendar > header .breadcrumb { margin: 0; }
.app-route .training-calendar > header > span { color: #756a6d; font-size: .78rem; }
.app-route .training-calendar__weekdays, .app-route .training-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.app-route .training-calendar__weekdays { padding-bottom: 9px; border-bottom: 1px solid var(--fcmm-rule); color: #8e8184; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.app-route .training-calendar__days { border-top: 0; }
.app-route .training-calendar__day { display: grid; min-height: 76px; align-content: start; gap: 4px; padding: 8px; border-right: 1px solid rgba(23,16,19,.08); border-bottom: 1px solid rgba(23,16,19,.08); color: #655b5e; font-size: .82rem; }
.app-route .training-calendar__day:nth-child(7n) { border-right: 0; }
.app-route .training-calendar__day > span { color: #40383a; font-weight: 800; }
.app-route .training-calendar__day.is-empty { background: #fcfaf9; }
.app-route .training-calendar__day.has-session { background: linear-gradient(150deg, #fff4f2, #fff); }
.app-route .training-calendar__day.has-session > span { color: var(--fcmm-red-deep); }
.app-route .training-calendar__day i { display: block; overflow: hidden; padding: 4px 5px; border-radius: 7px; color: #fff; background: var(--fcmm-red); font-size: 8px; font-style: normal; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.app-route .training-agenda { display: grid; align-content: start; gap: 10px; }
.app-route .training-agenda > .breadcrumb { margin: 0 0 5px; }
.app-route .training-session-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--fcmm-rule); }
.app-route .training-session-card:first-of-type { border-top: 0; }
.app-route .training-session-card time { display: grid; align-content: start; gap: 3px; padding-top: 2px; color: var(--fcmm-red-deep); }
.app-route .training-session-card time b { font-size: .88rem; letter-spacing: -.02em; }
.app-route .training-session-card time span { color: #756a6d; font-size: .72rem; }
.app-route .training-session-card h3 { margin: 0 0 5px; color: #161115; font-size: 1.16rem; letter-spacing: -.045em; }
.app-route .training-session-card p { margin: 0 0 7px; color: #706568; font-size: .82rem; line-height: 1.45; }
.app-route .training-session-card small { color: #8c8083; font-size: .72rem; }
.app-route .training-session-card footer { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 9px; align-items: center; padding-top: 3px; }
.app-route .training-session-card .button { min-height: 39px; padding-inline: 15px; font-size: 10px; }
.app-route .training-qr-button { min-height: 39px; padding: 0 14px; border: 1px solid rgba(239,40,34,.45); border-radius: 999px; color: var(--fcmm-red-deep); background: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; cursor: pointer; }
.app-route .training-qr-button:hover { color: #fff; background: var(--fcmm-red); }
.app-route .training-empty, .app-route .training-loading { margin: 0; color: #71686a; line-height: 1.55; }
.app-route .training-workspace__note { margin: 0; padding: 14px 16px; border-left: 3px solid var(--fcmm-red); color: #655b5e; background: #fbf5f2; font-size: .84rem; line-height: 1.55; }
.app-route .training-qr { display: grid; justify-items: center; gap: 15px; margin: 0; text-align: center; }
.app-route .training-qr img { width: min(100%, 320px); padding: 12px; border: 1px solid rgba(23,16,19,.15); border-radius: 18px; background: #fffdfa; }
.app-route .training-qr figcaption { display: grid; gap: 5px; color: #63595c; }
.app-route .training-qr figcaption b { color: #171115; font-size: 1.1rem; }
.app-route .training-qr figcaption span { font-size: .86rem; }
.app-route .training-qr figcaption small { color: var(--fcmm-red-deep); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .app-route .training-workspace__head { display: grid; align-items: start; }
  .app-route .training-admin-actions { width: 100%; }
  .app-route .training-calendar-layout { grid-template-columns: minmax(0, 1fr); }
  .app-route .training-calendar, .app-route .training-agenda { min-height: 0; padding: 17px; }
  .app-route .training-calendar__day { min-height: 58px; padding: 5px; }
  .app-route .training-calendar__day i { padding: 3px; font-size: 7px; }
}


/* Admin account directory and expanded Broker learning content. */
.app-route .training-pathways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-route .training-pathways article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; min-height: 156px; padding: 19px; border: 1px solid rgba(23,16,19,.12); border-radius: 18px; background: linear-gradient(145deg, #fffdfb, #fff5f2); }
.app-route .training-pathways article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--fcmm-red); font-size: 10px; font-weight: 900; }
.app-route .training-pathways .breadcrumb { margin: 1px 0 7px; color: var(--fcmm-red-deep); font-size: 8px; }
.app-route .training-pathways h3 { margin: 0 0 8px; color: #171115; font-size: 1.17rem; letter-spacing: -.04em; }
.app-route .training-pathways p:last-child { margin: 0; color: #6e6567; font-size: .8rem; line-height: 1.5; }
.app-route .training-session-card__location { color: #51494b !important; font-weight: 800; }
.app-route .training-session-card__description { margin-bottom: 10px !important; }
.app-route .training-session-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0 10px; }
.app-route .training-session-meta div { min-width: 0; padding: 8px; border-radius: 10px; background: #f8f5f3; }
.app-route .training-session-meta dt { margin-bottom: 3px; color: #8b7f82; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.app-route .training-session-meta dd { margin: 0; color: #332b2e; font-size: .72rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.app-route .training-learning-library { padding: clamp(21px, 3vw, 32px); border: 1px solid rgba(23,16,19,.12); border-radius: 22px; background: #151013; color: #fff; }
.app-route .training-learning-library > header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 25px; align-items: end; margin-bottom: 22px; }
.app-route .training-learning-library .breadcrumb { margin: 0 0 9px; color: #ff6a65; }
.app-route .training-learning-library h3 { max-width: 530px; margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.06em; line-height: .95; }
.app-route .training-learning-library > header > p { max-width: 420px; margin: 0; color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.6; }
.app-route .training-learning-library > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.app-route .training-learning-library article { display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(255,255,255,.05); }
.app-route .training-learning-library b { color: #fff; font-size: .94rem; }
.app-route .training-learning-library span { color: rgba(255,255,255,.68); font-size: .78rem; line-height: 1.5; }
.app-route .admin-account-directory { max-width: 1180px; margin: 30px auto 0; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--fcmm-rule); border-radius: 22px; background: #fffdfb; box-shadow: 0 15px 35px rgba(18,9,12,.06); }
.app-route .admin-account-directory__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 26px; }
.app-route .admin-account-directory__head > div { max-width: 650px; }
.app-route .admin-account-directory__head .breadcrumb { margin: 0 0 10px; }
.app-route .admin-account-directory__head h3 { margin: 0 0 10px; color: #171115; font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 500; letter-spacing: -.07em; line-height: .92; }
.app-route .admin-account-directory__head p:last-child { margin: 0; color: #6e6567; line-height: 1.6; }
.app-route .admin-account-directory__head aside { display: grid; flex: 0 0 250px; gap: 7px; padding: 15px; border-left: 3px solid var(--fcmm-red); background: #fff5f2; }
.app-route .admin-account-directory__head aside b { color: var(--fcmm-red-deep); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.app-route .admin-account-directory__head aside span { color: #655b5e; font-size: .78rem; line-height: 1.5; }
.app-route .admin-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-route .admin-account-card { display: grid; gap: 15px; min-height: 250px; padding: 19px; border: 1px solid rgba(23,16,19,.13); border-radius: 17px; background: #fff; }
.app-route .admin-account-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-route .admin-account-card > header small { color: #85797c; font-size: .72rem; white-space: nowrap; }
.app-route .admin-account-card h4 { margin: 0; color: #171115; font-size: 1.25rem; letter-spacing: -.04em; overflow-wrap: anywhere; }
.app-route .admin-account-card dl { display: grid; gap: 10px; margin: 0; }
.app-route .admin-account-card dl div { display: grid; gap: 3px; }
.app-route .admin-account-card dt { color: #8b7f82; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.app-route .admin-account-card dd { margin: 0; color: #4e4548; font-size: .8rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.app-route .admin-account-loading, .app-route .admin-account-empty { grid-column: 1 / -1; margin: 0; color: #6e6567; }
@media (max-width: 920px) {
  .app-route .training-pathways, .app-route .training-learning-library > div, .app-route .admin-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-route .training-pathways article:last-child, .app-route .training-learning-library article:last-child { grid-column: span 2; }
  .app-route .admin-account-directory__head { align-items: flex-start; flex-direction: column; }
  .app-route .admin-account-directory__head aside { flex-basis: auto; max-width: 460px; }
}
@media (max-width: 760px) {
  .app-route .training-pathways, .app-route .training-learning-library > div, .app-route .admin-account-grid { grid-template-columns: minmax(0, 1fr); }
  .app-route .training-pathways article:last-child, .app-route .training-learning-library article:last-child { grid-column: auto; }
  .app-route .training-pathways article { min-height: 0; }
  .app-route .training-session-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-route .training-learning-library > header { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .app-route .admin-account-directory { padding: 21px; border-radius: 18px; }
  .app-route .admin-account-card { min-height: 0; }
}


/* Mandatory compliance register and administrator file visibility. */
.app-route .section-heading--broker-compliance { align-items: end; gap: 20px; }
.app-route .section-heading--broker-compliance > div:first-child { max-width: 640px; }
.app-route .section-heading--broker-compliance .lead { max-width: 600px; margin: 12px 0 0; color: #665c5f; font-size: .94rem; line-height: 1.55; }
.app-route .compliance-progress { display: grid; min-width: 116px; gap: 2px; padding: 12px 14px; border-left: 3px solid var(--fcmm-red); background: #fff5f2; }
.app-route .compliance-progress b { color: var(--fcmm-red-deep); font-size: 1.15rem; letter-spacing: -.04em; }
.app-route .compliance-progress span { color: #6e6567; font-size: .72rem; font-weight: 800; }
.app-route [data-compliance-register] td:first-child { display: grid; gap: 4px; }
.app-route [data-compliance-register] td:first-child small { color: var(--fcmm-red-deep); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.app-route .compliance-file-missing { color: #81777a; font-size: .82rem; font-weight: 700; }
.app-route .compliance-expiry { display: block; margin-top: 5px; color: #786d6d; font-size: 10px; font-weight: 700; }
.app-route .admin-account-card { align-content: start; }
.app-route .admin-account-compliance { display: grid; gap: 11px; margin-top: 3px; padding-top: 15px; border-top: 1px solid rgba(23,16,19,.11); }
.app-route .admin-account-compliance > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-route .admin-account-compliance > header b { color: #3d3437; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.app-route .admin-account-compliance > header span { color: var(--fcmm-red-deep); font-size: .73rem; font-weight: 900; }
.app-route .admin-account-compliance ol { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.app-route .admin-account-compliance li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 9px; border-radius: 10px; background: #f8f5f3; }
.app-route .admin-account-compliance li > div:first-child { display: grid; min-width: 0; gap: 3px; }
.app-route .admin-account-compliance li b { color: #30282b; font-size: .75rem; line-height: 1.25; }
.app-route .admin-account-compliance li a, .app-route .admin-account-compliance li span { overflow-wrap: anywhere; color: #74696d; font-size: .68rem; font-weight: 700; line-height: 1.35; }
.app-route .admin-account-compliance li a { color: var(--fcmm-red-deep); text-decoration: none; }
.app-route .admin-account-compliance li > div:last-child { display: grid; justify-items: end; gap: 4px; }
.app-route .admin-account-compliance li > div:last-child small { color: #786d6d; font-size: .63rem; font-weight: 700; white-space: nowrap; }
.app-route .admin-account-compliance__empty { margin: 3px 0 0; padding-top: 14px; border-top: 1px solid rgba(23,16,19,.11); color: #81777a; font-size: .74rem; line-height: 1.45; }
.app-route .admin-reminder-queue li > div { display: grid; min-width: 0; gap: 4px; }
.app-route .admin-reminder-queue li b { color: #fff; }
.app-route .admin-reminder-queue li a { color: #ffb3ab; font-size: .79rem; font-weight: 800; text-decoration: none; }
.app-route .admin-reminder-queue li .pill { align-self: start; }
@media (max-width: 760px) {
  .app-route .section-heading--broker-compliance { align-items: flex-start; gap: 16px; }
  .app-route .compliance-progress { width: 100%; }
  .app-route .section-heading--broker-compliance .button { width: 100%; }
  .app-route .admin-account-compliance li { grid-template-columns: minmax(0, 1fr); }
  .app-route .admin-account-compliance li > div:last-child { justify-items: start; grid-template-columns: auto 1fr; align-items: center; }
  .app-route .admin-reminder-queue li { grid-template-columns: minmax(0, 1fr); }
}


/* Fixed three-part compliance facts: document, Membership Number and expiry. */
.app-route .compliance-fact-triplet { display: grid; grid-template-columns: minmax(132px, 1.45fr) minmax(118px, 1fr) minmax(106px, .82fr); gap: 8px; }
.app-route .compliance-fact-triplet > span { display: grid; min-width: 0; gap: 3px; padding: 8px; border-radius: 9px; background: rgba(248,245,243,.9); }
.app-route .compliance-fact-triplet small { color: #8b7f82; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.app-route .compliance-fact-triplet b { overflow-wrap: anywhere; color: #41383b; font-size: .72rem; line-height: 1.35; }
.app-route .compliance-fact-triplet a { overflow-wrap: anywhere; color: var(--fcmm-red-deep); font-size: .68rem; font-weight: 800; line-height: 1.35; text-decoration: none; }
.app-route [data-compliance-register] .compliance-fact-triplet { min-width: 460px; }
.app-route .admin-account-compliance .compliance-fact-triplet { grid-template-columns: minmax(120px, 1.35fr) minmax(104px, 1fr) minmax(92px, .8fr); }
@media (max-width: 760px) {
  .app-route .compliance-fact-triplet,
  .app-route .admin-account-compliance .compliance-fact-triplet { grid-template-columns: 1fr; }
  .app-route [data-compliance-register] .compliance-fact-triplet { min-width: 190px; }
}


/* Broker identity: CRN is the primary account credential; mobile state is secondary. */
.app-route .portal-top .broker-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 19px 0 0; }
.app-route .portal-top .broker-crn { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(255,226,191,.58); border-radius: 13px; color: #fff3df; background: rgba(0,0,0,.22); font-size: clamp(1.18rem, 2.05vw, 1.65rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.app-route .portal-top .broker-mobile-status { color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .app-route .portal-top .broker-identity { align-items: flex-start; gap: 9px; }
  .app-route .portal-top .broker-crn { width: 100%; min-height: 40px; font-size: 1.18rem; }
  .app-route .portal-top .broker-mobile-status { padding-left: 2px; font-size: .7rem; }
}

.app-route .admin-reminder-countdown { display: inline-flex; width: fit-content; margin-top: 5px; color: var(--fcmm-red-deep); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }



/* Portal operations upgrade: status-first workflows, compact controls and mobile-safe records. */
.app-route .resource-library-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 16px; border: 1px solid rgba(23,16,19,.1); border-radius: 17px; background: #fff; }
.app-route .resource-library-toolbar label { display: grid; min-width: min(100%, 360px); gap: 7px; color: #564c4e; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.app-route .resource-library-toolbar input { min-height: 46px; border: 1px solid rgba(23,16,19,.18); border-radius: 13px; padding: 0 14px; background: #fffdfb; font: inherit; letter-spacing: 0; text-transform: none; }
.app-route .resource-library-toolbar button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; cursor: pointer; }
.app-route .resource-file-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; border: 1px solid rgba(239,40,34,.18); border-radius: 13px; background: #fff; }
.app-route .resource-file-row > div:first-child { display: grid; min-width: 0; gap: 4px; }
.app-route .resource-file-row b { overflow: hidden; color: #302628; text-overflow: ellipsis; white-space: nowrap; }
.app-route .resource-file-row small { color: #74696c; }
.app-route .resource-file-row__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.app-route .resource-file-row__actions button { min-height: 38px; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 800; }
.app-route .resource-favourite { padding: 0 12px; border: 1px solid rgba(23,16,19,.16) !important; border-radius: 999px !important; color: #55494c; }
.app-route .resource-favourite.is-active { border-color: rgba(239,40,34,.48) !important; color: #a50d18; background: #fdf0ef !important; }
.app-route .training-progress { display: grid; max-width: 1180px; margin: 0 auto 18px; padding: 24px 28px; border: 1px solid rgba(23,16,19,.12); border-radius: 20px; background: linear-gradient(114deg, #fffdfb, #f5edea); }
.app-route .training-progress .breadcrumb { margin: 0; }
.app-route .training-progress h3 { margin: 8px 0; font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.app-route .training-progress p:last-child { max-width: 62ch; margin: 0; color: #706568; }
.app-route .training-attendance-list { display: grid; gap: 10px; }
.app-route .training-attendance-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid rgba(23,16,19,.12); border-radius: 15px; background: #fffdfb; }
.app-route .training-attendance-list article > div:first-child { display: grid; gap: 4px; }
.app-route .training-attendance-list span, .app-route .training-attendance-list small { color: #716568; }
.app-route .training-attendance-list article > div:last-child { display: flex; align-items: center; gap: 9px; }
.app-route .training-attendance-list button { min-height: 40px; cursor: pointer; }
.app-route .admin-compliance-filters { display: flex; flex-wrap: wrap; gap: 9px; max-width: 1180px; margin: 22px auto; }
.app-route .admin-compliance-filters button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(23,16,19,.16); border-radius: 999px; color: #504649; background: #fffdfb; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.app-route .admin-compliance-filters button.active { border-color: var(--fcmm-red); color: #fff; background: var(--fcmm-red); }
.app-route .admin-followup { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.app-route .admin-followup small { color: #7b7072; text-transform: capitalize; }
.app-route .admin-followup button { border: 0; background: transparent; cursor: pointer; }
.app-route .admin-account-card dl > div { min-width: 0; }
.app-route .admin-account-card dd { overflow-wrap: anywhere; }
.app-route .admin-reminder-queue button { display: inline-flex; margin-top: 8px; border: 0; background: transparent; cursor: pointer; }
.app-route .modal-form textarea { min-height: 98px; resize: vertical; }

@media (max-width: 700px) {
  .app-route .resource-library-toolbar { align-items: stretch; flex-direction: column; padding: 14px; }
  .app-route .resource-library-toolbar label { min-width: 0; }
  .app-route .resource-library-toolbar button { align-self: flex-start; }
  .app-route .resource-file-row { align-items: flex-start; flex-direction: column; }
  .app-route .resource-file-row__actions { width: 100%; justify-content: space-between; }
  .app-route .training-progress { padding: 20px; border-radius: 18px; }
  .app-route .training-attendance-list article { align-items: stretch; flex-direction: column; }
  .app-route .training-attendance-list article > div:last-child { justify-content: stretch; flex-wrap: wrap; }
  .app-route .training-attendance-list button { flex: 1 1 145px; }
  .app-route .admin-compliance-filters { flex-wrap: nowrap; margin-inline: -4px; padding: 0 4px 4px; overflow-x: auto; scrollbar-width: none; }
  .app-route .admin-compliance-filters button { flex: 0 0 auto; }
  .app-route .admin-account-grid { grid-template-columns: 1fr; }
  .app-route .admin-account-compliance ol { display: grid; gap: 10px; }
  .app-route .admin-account-compliance li { grid-template-columns: 1fr; gap: 10px; padding: 13px; border: 1px solid rgba(23,16,19,.1); border-radius: 13px; }
  .app-route .admin-account-compliance li > div:last-child { justify-self: start; }
  .app-route .compliance-fact-triplet { grid-template-columns: 1fr; gap: 8px; }
  .app-route .compliance-fact-triplet > div { padding: 9px 10px; border: 1px solid rgba(23,16,19,.09); border-radius: 10px; background: #fff; }
}

/* Portal operations status upgrade */
.broker-audit-status { align-self: stretch; min-width: min(100%, 255px); display: grid; align-content: center; gap: 6px; padding: 22px 24px; border: 1px solid rgba(239, 40, 34, .24); border-radius: 24px; background: linear-gradient(135deg, rgba(21, 14, 15, .95), rgba(42, 21, 22, .78)); color: #fff8ec; }
.broker-audit-status > span { color: #ff655f; font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.broker-audit-status strong { font-size: clamp(23px, 2.4vw, 32px); line-height: 1; }
.broker-audit-status p { margin: 0; color: rgba(255, 248, 236, .74); font-size: 13px; line-height: 1.45; }
.broker-audit-status[data-status="active"] { border-color: rgba(68, 169, 116, .5); background: linear-gradient(135deg, #10251e, #142c25); }
.broker-audit-status[data-status="active"] > span { color: #9ee0b9; }
.broker-audit-status[data-status="review-required"] { border-color: rgba(239, 40, 34, .72); }
.product-manual-card { display: flex; flex-direction: column; gap: 13px; }
.product-manual-card > a { flex: 1; }
.resource-subscribe { align-self: flex-start; padding: 0; color: #451a1c; }
.resource-subscribe[aria-pressed="true"] { color: #b01819; font-weight: 800; }
.product-resource-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.admin-resource-release { margin: 34px 0; padding: 30px; border: 1px solid rgba(20, 15, 15, .12); border-radius: 28px; background: linear-gradient(130deg, #fffdf7, #f4efe6); }
.admin-resource-release header { max-width: 720px; }
.admin-resource-release header p { margin-bottom: 7px; }
.admin-resource-release header h3 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); }
.admin-resource-release header p:last-child { margin-top: 0; color: #655d57; }
.admin-resource-release__form { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(170px, .42fr) minmax(260px, 1fr) auto; align-items: end; gap: 14px; margin-top: 22px; }
.admin-resource-release__form label { display: grid; gap: 7px; color: #392c2d; font-size: 12px; font-weight: 800; }
.admin-resource-release__form input, .admin-resource-release__form select, .admin-resource-release__form textarea { min-height: 48px; border: 1px solid rgba(21,15,15,.16); border-radius: 13px; padding: 11px 13px; color: #1d1515; background: #fff; font: inherit; }
.admin-resource-release__form textarea { min-height: 72px; resize: vertical; }
.broker-mobile-actions { display: none; }
.training-progress__certificates { display: grid; gap: 8px; margin-top: 14px; }
@media (max-width: 900px) { .portal-top { grid-template-columns: 1fr; } .broker-audit-status { min-width: 0; } .admin-resource-release__form { grid-template-columns: 1fr 1fr; } .admin-resource-release__form label:nth-child(3), .admin-resource-release__form button { grid-column: 1 / -1; } }
@media (max-width: 680px) {
  .product-resource-detail__head { display: grid; gap: 12px; }
  .admin-resource-release { padding: 22px 18px; border-radius: 22px; }
  .admin-resource-release__form { grid-template-columns: 1fr; }
  .admin-resource-release__form label:nth-child(3), .admin-resource-release__form button { grid-column: auto; }
  .table-wrap { overflow: visible; }
  .table-wrap table:has([data-compliance-category-row]) { display: block; width: 100%; }
  .table-wrap table:has([data-compliance-category-row]) thead { display: none; }
  .table-wrap table:has([data-compliance-category-row]) tbody, .table-wrap table:has([data-compliance-category-row]) tr, .table-wrap table:has([data-compliance-category-row]) td { display: block; width: 100%; }
  .table-wrap table:has([data-compliance-category-row]) tr { padding: 18px; margin: 0 0 12px; border: 1px solid rgba(26,17,17,.12); border-radius: 18px; background: #fffdf8; }
  .table-wrap table:has([data-compliance-category-row]) td { padding: 6px 0; border: 0; }
  .table-wrap table:has([data-compliance-category-row]) td:nth-child(1) small { display: inline; margin-left: 7px; }
  .broker-mobile-actions { position: fixed; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 19px; background: rgba(16, 10, 11, .95); box-shadow: 0 18px 42px rgba(0,0,0,.34); backdrop-filter: blur(14px); }
  .broker-mobile-actions button { min-height: 48px; padding: 8px 5px; border: 0; border-radius: 13px; color: #fff8ec; background: rgba(255,255,255,.09); font: 700 11px/1.2 inherit; }
  .broker-mobile-actions button:first-child { color: #fff; background: #e72b27; }
  .portal-shell { padding-bottom: 92px; }
  .chat-launcher, #chat-launcher { bottom: 90px; }
}


/* Product manuals: keep sequence, title, metadata, download and subscription actions in separate lanes. */
.app-route .product-manual-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  gap: 17px;
  padding: 24px;
}
.app-route .product-manual-card > a {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas: 'sequence title' 'sequence detail' '. download';
  align-content: start;
  align-items: start;
  gap: 6px 14px;
  color: #fff;
  text-decoration: none;
}
.app-route .product-manual-card > a > span {
  display: grid;
  grid-area: sequence;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  color: #ff928a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.app-route .product-manual-card > a strong {
  grid-area: title;
  align-self: end;
  min-width: 0;
  color: #fff;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.app-route .product-manual-card > a small {
  grid-area: detail;
  color: rgba(255,255,255,.68);
  font-size: .77rem;
  line-height: 1.45;
}
.app-route .product-manual-card > a b {
  grid-area: download;
  margin-top: 7px;
  color: #ff8c84;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}
.app-route .product-manual-card .resource-subscribe {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #fff6ef;
  background: rgba(255,255,255,.07);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.app-route .product-manual-card .resource-subscribe:hover,
.app-route .product-manual-card .resource-subscribe[aria-pressed="true"] {
  border-color: #ff8c84;
  color: #fff;
  background: rgba(239,40,34,.32);
}
@media (max-width: 560px) {
  .app-route .product-manual-card { min-height: 0; }
  .app-route .product-manual-card .resource-subscribe { width: 100%; }
}


/* About: brand narrative — asymmetric paper, ink statement and editorial principles. */
.app-route.route-about main.about-editorial,
.app-route.route-process main.process-journey {
  display: grid;
  gap: clamp(54px, 7vw, 100px);
  max-width: none;
}
.app-route .about-manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--fcmm-rule);
  border-radius: 28px;
  background: #fffdfb;
  box-shadow: var(--fcmm-shadow);
}
.app-route .about-manifesto__copy {
  padding: clamp(40px, 6vw, 84px);
}
.app-route .about-manifesto h2,
.app-route .about-principles h2,
.app-route .about-support h2,
.app-route .process-opening h2,
.app-route .process-stage-rail h2,
.app-route .process-readiness h2,
.app-route .process-questions h2 {
  margin: 14px 0 22px;
  color: var(--fcmm-ink);
  font-size: clamp(2.65rem, 5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .88;
  text-wrap: balance;
}
.app-route .about-manifesto__copy .lead,
.app-route .process-opening .lead,
.app-route .process-readiness .lead {
  max-width: 43rem;
  margin-bottom: 31px;
  color: #665d5f;
  line-height: 1.7;
}
.app-route .about-manifesto__statement {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 460px;
  padding: clamp(35px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 83% 12%, rgba(239, 40, 34, .76), transparent 20%), linear-gradient(138deg, #09080b, #2a0a13 75%);
}
.app-route .about-manifesto__statement::before,
.app-route .about-manifesto__statement::after {
  position: absolute;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}
.app-route .about-manifesto__statement::before {
  top: -135px;
  right: -120px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(239, 40, 34, .7);
  box-shadow: 0 0 0 23px rgba(239, 40, 34, .1), 0 0 0 49px rgba(255, 255, 255, .035);
}
.app-route .about-manifesto__statement::after {
  right: -5%;
  bottom: 24%;
  width: 112%;
  height: 1px;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 21%, var(--fcmm-red) 52%, transparent 86%);
}
.app-route .about-manifesto__statement > * { position: relative; z-index: 1; }
.app-route .about-manifesto__statement > span { margin-bottom: 35px; color: #ff938b; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.app-route .about-manifesto__statement p { margin: 0 0 24px; font-size: clamp(2rem, 3.8vw, 4.2rem); font-weight: 500; letter-spacing: -.075em; line-height: .9; }
.app-route .about-manifesto__statement p em { color: #ff8a82; font-style: normal; }
.app-route .about-manifesto__statement small { max-width: 28ch; color: rgba(255,255,255,.66); font-size: .86rem; line-height: 1.6; }
.app-route .about-principles,
.app-route .about-support,
.app-route .process-stage-rail,
.app-route .process-readiness,
.app-route .process-questions {
  max-width: 1180px;
  margin: 0 auto;
}
.app-route .about-principles > header,
.app-route .about-support > header,
.app-route .process-stage-rail > header,
.app-route .process-readiness > div:first-child,
.app-route .process-questions > header { max-width: 800px; }
.app-route .about-principles > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--fcmm-rule);
}
.app-route .about-principles article {
  min-height: 270px;
  padding: 29px clamp(22px, 3vw, 40px);
  border-right: 1px solid var(--fcmm-rule);
  background: #fffdfb;
}
.app-route .about-principles article:last-child { border-right: 0; }
.app-route .about-principles article:nth-child(2) { color: #fff; background: #151014; }
.app-route .about-principles article > span { color: var(--fcmm-red); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.app-route .about-principles h3 { margin: 38px 0 14px; color: var(--fcmm-ink); font-size: 1.6rem; letter-spacing: -.055em; line-height: 1; }
.app-route .about-principles article:nth-child(2) h3 { color: #fff; }
.app-route .about-principles p { margin: 0; color: #6d6466; line-height: 1.65; }
.app-route .about-principles article:nth-child(2) p { color: rgba(255,255,255,.7); }
.app-route .about-collaboration {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--fcmm-shadow);
}
.app-route .about-collaboration__ink {
  position: relative;
  padding: clamp(38px, 5vw, 70px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #09090b, #251016);
}
.app-route .about-collaboration__ink::after { position: absolute; right: -24%; bottom: -40%; width: 390px; aspect-ratio: 1; border: 1px solid rgba(239,40,34,.7); border-radius: 50%; box-shadow: 0 0 0 20px rgba(239,40,34,.1); content: ''; }
.app-route .about-collaboration__ink > * { position: relative; z-index: 1; }
.app-route .about-collaboration__ink h2 { margin: 15px 0 24px; color: #fff; font-size: clamp(2.5rem, 4.2vw, 4.6rem); font-weight: 500; letter-spacing: -.075em; line-height: .88; }
.app-route .about-collaboration__ink p:not(.breadcrumb) { max-width: 34rem; color: rgba(255,255,255,.72); line-height: 1.7; }
.app-route .about-collaboration__list { display: grid; background: #fffdfb; }
.app-route .about-collaboration__list article { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; align-content: center; min-height: 164px; padding: 25px clamp(28px, 4vw, 54px); border-bottom: 1px solid var(--fcmm-rule); }
.app-route .about-collaboration__list article:last-child { border-bottom: 0; }
.app-route .about-collaboration__list span { grid-row: span 2; color: var(--fcmm-red-deep); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.app-route .about-collaboration__list h3 { margin: 0 0 8px; color: #171115; font-size: 1.35rem; letter-spacing: -.04em; }
.app-route .about-collaboration__list p { margin: 0; color: #706769; line-height: 1.56; }
.app-route .about-support__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 38px; border: 1px solid var(--fcmm-rule); border-radius: 22px; overflow: hidden; background: var(--fcmm-rule); }
.app-route .about-support__grid article { min-height: 230px; padding: 25px; background: #fffdfb; }
.app-route .about-support__grid article:nth-child(2n) { background: #f0e9e4; }
.app-route .about-support__grid p { margin: 0 0 38px; color: var(--fcmm-red-deep); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.app-route .about-support__grid h3 { margin: 0 0 12px; color: #151014; font-size: 1.35rem; line-height: 1.05; letter-spacing: -.045em; }
.app-route .about-support__grid span { color: #746a6c; line-height: 1.58; }
.app-route .about-contact-rail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(32px, 7vw, 94px); align-items: end; max-width: 1180px; margin: 0 auto; padding: clamp(35px, 5vw, 66px); border-top: 1px solid var(--fcmm-rule); }
.app-route .about-contact-rail h2 { max-width: 720px; margin: 12px 0 0; color: #161115; font-size: clamp(2.4rem, 4.5vw, 4.7rem); font-weight: 500; letter-spacing: -.07em; line-height: .9; }
.app-route .about-contact-rail p:not(.breadcrumb) { margin: 0 0 24px; color: #6d6466; line-height: 1.68; }

/* Lending Process: a structured journey rail, action checklist and layered hand-offs. */
.app-route .process-opening { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .55fr); gap: clamp(30px, 6vw, 92px); max-width: 1180px; margin: 0 auto; align-items: end; padding-bottom: clamp(38px, 5vw, 70px); border-bottom: 1px solid var(--fcmm-rule); }
.app-route .process-opening > aside { display: grid; gap: 12px; align-content: end; padding: 26px; border: 1px solid rgba(239,40,34,.32); border-radius: 20px; background: #fffdfa; }
.app-route .process-opening > aside > span { color: var(--fcmm-red); font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 500; letter-spacing: -.1em; line-height: .75; }
.app-route .process-opening > aside p { max-width: 15ch; margin: 0; color: #20181b; font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.app-route .process-opening > aside small { color: #766b6d; line-height: 1.55; }
.app-route .process-stage-rail ol { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fcmm-rule); }
.app-route .process-stage-rail li { display: grid; grid-template-columns: 74px minmax(190px, .72fr) minmax(220px, .95fr) minmax(220px, .95fr); gap: 26px; align-items: start; padding: 27px 0; border-bottom: 1px solid var(--fcmm-rule); }
.app-route .process-stage-rail li:nth-child(2n) { padding-left: 25px; padding-right: 25px; background: rgba(255,255,255,.48); }
.app-route .process-stage-number { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(239,40,34,.45); border-radius: 16px; color: var(--fcmm-red-deep); background: #fae5e2; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.app-route .process-stage-title > p { margin: 0 0 10px; color: var(--fcmm-red-deep); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.app-route .process-stage-title h3 { margin: 0; color: #181216; font-size: 1.35rem; letter-spacing: -.045em; line-height: 1.05; }
.app-route .process-stage-rail li > div:not(.process-stage-title) small { display: block; margin-bottom: 9px; color: #8b7778; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.app-route .process-stage-rail li > div:not(.process-stage-title) p { margin: 0; color: #655c5e; font-size: .9rem; line-height: 1.58; }
.app-route .process-readiness { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 7vw, 100px); align-items: start; padding: clamp(34px, 5vw, 66px); border-radius: 26px; color: #fff; background: radial-gradient(circle at 88% 4%, rgba(239,40,34,.68), transparent 17%), #120e11; }
.app-route .process-readiness h2 { color: #fff; }
.app-route .process-readiness .lead { color: rgba(255,255,255,.7); }
.app-route .process-readiness ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; overflow: hidden; }
.app-route .process-readiness li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; min-height: 64px; padding: 14px 18px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.04); line-height: 1.45; }
.app-route .process-readiness li b { color: #ff8b83; font-size: 9px; letter-spacing: .12em; }
.app-route .process-handoffs { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); max-width: 1180px; margin: 0 auto; overflow: hidden; border: 1px solid var(--fcmm-rule); border-radius: 26px; background: #fffdfb; box-shadow: 0 14px 32px rgba(18,6,10,.06); }
.app-route .process-handoffs__ink { position: relative; padding: clamp(37px, 5vw, 66px); overflow: hidden; color: #fff; background: linear-gradient(145deg, #0b0a0d, #251017); }
.app-route .process-handoffs__ink::after { position: absolute; bottom: -30%; left: -20%; width: 330px; aspect-ratio: 1; border: 1px solid rgba(239,40,34,.7); border-radius: 50%; box-shadow: 0 0 0 19px rgba(239,40,34,.1); content: ''; }
.app-route .process-handoffs__ink > * { position: relative; z-index: 1; }
.app-route .process-handoffs__ink h2 { margin: 15px 0 22px; color: #fff; font-size: clamp(2.4rem, 4.2vw, 4.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .88; }
.app-route .process-handoffs__ink p:not(.breadcrumb) { color: rgba(255,255,255,.7); line-height: 1.65; }
.app-route .process-handoffs__paper { display: grid; }
.app-route .process-handoffs__paper article { display: grid; grid-template-columns: 48px 1fr; column-gap: 17px; align-content: center; min-height: 158px; padding: 25px clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--fcmm-rule); }
.app-route .process-handoffs__paper article:last-child { border-bottom: 0; }
.app-route .process-handoffs__paper span { grid-row: span 2; color: var(--fcmm-red-deep); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.app-route .process-handoffs__paper h3 { margin: 0 0 7px; color: #171115; font-size: 1.3rem; letter-spacing: -.04em; }
.app-route .process-handoffs__paper p { margin: 0; color: #716769; line-height: 1.55; }
.app-route .process-questions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 38px; }
.app-route .process-questions details { overflow: hidden; border: 1px solid var(--fcmm-rule); border-radius: 18px; background: #fffdfb; }
.app-route .process-questions summary { display: grid; grid-template-columns: 34px 1fr 22px; gap: 13px; align-items: center; min-height: 76px; padding: 0 21px; color: #20191b; cursor: pointer; font-weight: 800; line-height: 1.3; list-style: none; }
.app-route .process-questions summary::-webkit-details-marker { display: none; }
.app-route .process-questions summary span { color: var(--fcmm-red-deep); font-size: 9px; letter-spacing: .11em; }
.app-route .process-questions summary b { color: var(--fcmm-red); font-size: 1.35rem; font-weight: 400; transition: transform .2s ease; }
.app-route .process-questions details[open] summary b { transform: rotate(45deg); }
.app-route .process-questions details p { margin: 0; padding: 0 21px 22px 68px; color: #706668; line-height: 1.62; }
.app-route .process-next-step { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(30px, 7vw, 96px); align-items: end; max-width: 1180px; margin: 0 auto; padding-top: 8px; border-top: 1px solid var(--fcmm-rule); }
.app-route .process-next-step h2 { max-width: 700px; margin: 13px 0 0; color: #171115; font-size: clamp(2.4rem, 4.6vw, 4.9rem); font-weight: 500; letter-spacing: -.075em; line-height: .88; }
.app-route .process-next-step > div > p { margin: 0 0 24px; color: #6b6264; line-height: 1.65; }
.app-route .process-next-step > div > div { display: flex; flex-wrap: wrap; align-items: center; gap: 21px; }
.app-route .process-next-step .text-link { color: var(--fcmm-red-deep); font-weight: 800; }

@media (max-width: 860px) {
  .app-route .about-manifesto,
  .app-route .about-collaboration,
  .app-route .process-opening,
  .app-route .process-readiness,
  .app-route .process-handoffs,
  .app-route .process-next-step { grid-template-columns: minmax(0, 1fr); }
  .app-route .about-manifesto__statement { min-height: 310px; }
  .app-route .about-principles > div,
  .app-route .about-support__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-route .about-principles article:nth-child(2) { border-right: 0; }
  .app-route .about-principles article:nth-child(3) { border-top: 1px solid var(--fcmm-rule); }
  .app-route .process-stage-rail li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .app-route .process-stage-rail li > div:not(.process-stage-title) { grid-column: 2; }
  .app-route .process-stage-rail li:nth-child(2n) { padding-left: 15px; padding-right: 15px; }
  .app-route .process-questions > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .app-route.route-about main.about-editorial,
  .app-route.route-process main.process-journey { gap: 48px; }
  .app-route .about-manifesto__copy,
  .app-route .about-manifesto__statement,
  .app-route .process-readiness,
  .app-route .process-handoffs__ink { padding: 28px 22px; }
  .app-route .about-principles > div,
  .app-route .about-support__grid { grid-template-columns: minmax(0, 1fr); }
  .app-route .about-principles article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--fcmm-rule); }
  .app-route .about-principles article:nth-child(2) { border-bottom-color: rgba(255,255,255,.14); }
  .app-route .about-principles article:last-child { border-bottom: 0; }
  .app-route .about-collaboration__list article,
  .app-route .process-handoffs__paper article { padding: 24px 22px; }
  .app-route .process-stage-rail li { grid-template-columns: 48px minmax(0, 1fr); padding: 22px 0; }
  .app-route .process-stage-number { width: 42px; height: 42px; border-radius: 13px; }
  .app-route .process-opening > aside { padding: 22px; }
  .app-route .process-questions summary { min-height: 68px; padding: 0 17px; }
  .app-route .process-questions details p { padding: 0 17px 20px; }
  .app-route .process-next-step > div > div { display: grid; align-items: stretch; }
  .app-route .process-next-step .button { justify-content: center; }
}

/* Our Products keeps all nine lines visible; FC Supreme reveals its controlled TMD files in a clear, full-width stack. */
.app-route .product-grid--tmd { align-items: start; }
.app-route .product-card--catalogue-only { cursor: default; }
.app-route .product-card--catalogue-only:hover { transform: none; border-color: rgba(255,255,255,.15); box-shadow: 0 16px 38px rgba(31,11,15,.07); }
.app-route .product-card--catalogue-only .product-card__static-note { position: relative; z-index: 1; display: block; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fcmm-rule); color: rgba(255,255,255,.48); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.app-route .product-card--supreme-tmd { min-height: 362px; padding: 0; overflow: hidden; }
.app-route .product-card--supreme-tmd:hover { transform: translateY(-7px); }
.app-route .product-card--supreme-tmd .product-card__tmd-summary { display: flex; min-height: 362px; flex-direction: column; padding: 13px 28px 25px; }
.app-route .product-card--supreme-tmd .product-visual { margin-bottom: 21px; }
.app-route .product-card__tmd-trigger { position: relative; z-index: 1; display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 0 0; border-top: 1px solid var(--fcmm-rule); color: #fff; background: transparent; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-align: left; text-transform: uppercase; cursor: pointer; }
.app-route .product-card__tmd-trigger b { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 18px; font-weight: 400; line-height: 1; transition: transform .25s ease, background .25s ease; }
.app-route .product-card--supreme-tmd.is-expanded .product-card__tmd-trigger b { color: #fff; background: var(--fcmm-red); transform: rotate(45deg); }
.app-route .product-card__tmd-files { position: relative; z-index: 2; padding: 0 28px 24px; border-top: 1px solid var(--fcmm-rule); background: linear-gradient(145deg, #211015, #0d0b0d); }
.app-route .product-card__tmd-files[hidden] { display: none; }
.app-route .product-card__tmd-files .tmd-download-list { display: grid; width: 100%; }
.app-route .product-card__tmd-file { display: flex !important; width: 100%; min-height: 47px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 11px 0 !important; border-top: 1px solid rgba(255,255,255,.13) !important; color: #fff !important; font-size: 11px !important; letter-spacing: .03em !important; text-transform: none !important; }
.app-route .product-card__tmd-file:first-child { border-top: 0 !important; }
.app-route .product-card__tmd-file b { flex: none; color: #ff5a55; font-size: 19px !important; }
.app-route .product-card__tmd-file:hover { color: #ff807b !important; }
@media (max-width: 760px) {
  .app-route .product-card--supreme-tmd, .app-route .product-card--supreme-tmd .product-card__tmd-summary { min-height: 332px; }
  .app-route .product-card--supreme-tmd .product-card__tmd-summary { padding-inline: 18px; }
  .app-route .product-card__tmd-files { padding-inline: 18px; }
}

/* Keep the FC Supreme summary on paper so its heading remains legible before and after expansion. */
.app-route .product-card--supreme-tmd { background: #fffdfb; }
.app-route .product-card--supreme-tmd h3 { color: #111014; }
.app-route .product-card--supreme-tmd p:not(.product-card__strap) { color: #5d5557; }
.app-route .product-card__tmd-trigger { color: var(--fcmm-red-deep); }
.app-route .product-card__tmd-trigger b { border-color: rgba(211,29,45,.72); color: var(--fcmm-red-deep); }
.app-route .product-card--supreme-tmd.is-expanded .product-card__tmd-trigger b { color: #fff; }

/* A compact red pill replaces the heavy outlined rectangle for the controlled TMD reveal. */
.app-route .product-card__tmd-trigger {
  width: fit-content;
  min-height: 44px;
  gap: 12px;
  margin-top: auto;
  padding: 8px 8px 8px 17px;
  border: 0;
  border-radius: 999px;
  background: var(--fcmm-red);
  color: #fff;
  box-shadow: 0 10px 20px rgba(211,29,45,.2);
  letter-spacing: .12em;
}
.app-route .product-card__tmd-trigger:hover { background: #a51626; transform: translateY(-1px); }
.app-route .product-card__tmd-trigger b {
  width: 27px;
  height: 27px;
  border: 0;
  color: var(--fcmm-red-deep);
  background: #fff;
  font-size: 17px;
}
.app-route .product-card--supreme-tmd.is-expanded .product-card__tmd-trigger { background: #171216; }
.app-route .product-card--supreme-tmd.is-expanded .product-card__tmd-trigger b { color: var(--fcmm-red-deep); background: #fff; }

/* The Supreme card keeps its paper summary on hover; only elevation and the pill state change. */
.app-route .product-card--supreme-tmd:hover { background: #fffdfb; }
