/* ==========================================================================
   Module pages (CRM, Fixed Assets, Commission Agent, Payroll, Construction,
   Property Development)
   Loaded after styles.css and built on its tokens. Each page sets --accent on
   <body> to its module's colour in the app, so the page reads as that area.

   The app-screen recreations (.appwin) stay LIGHT in both themes on purpose:
   they are pictures of the app, and the app is light.
   ========================================================================== */

:root {
  --m-crm:          #c08497;
  --m-fixedassets:  #5a7d9a;
  --m-construction: #c99a3b;
  --m-property:     #b5654a;
}

/* ------------------------------------------------------------ Hero -------- */
.mod-hero {
  background:
    radial-gradient(760px 420px at 85% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    radial-gradient(900px 500px at 10% 110%, rgba(55,217,200,.10), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 70%);
  color: #eaf1fa;
  padding-block: clamp(2.4rem, 5vw, 4.2rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.mod-hero__grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: center; }
.mod-hero__grid > * { min-width: 0; }
.mod-hero .breadcrumb { margin-bottom: 1.1rem; }
.mod-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.85rem); text-wrap: balance; margin-top: .8rem; }
.mod-hero__sub { color: #b9cae0; margin-top: 1rem; max-width: 52ch; font-size: 1.08rem; line-height: 1.65; }
.mod-hero .btnrow { margin-top: 1.6rem; }

.mod-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #fff;
}
.mod-chip i { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

.plan-line { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.plan-pill { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #b9cae0; background: rgba(255,255,255,.04); }
.plan-pill b { color: #fff; font-weight: 600; }
.plan-pill--in { border-color: rgba(55,217,200,.4); }
.plan-pill--in b { color: var(--teal); }

/* ------------------------------------------------- App window frame ------ */
.appwin {
  background: #fff; color: #14233a; border-radius: 14px; overflow: hidden;
  border-top: 3px solid var(--accent);
  box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.18);
  font-size: .8rem; line-height: 1.4;
}
.appwin__bar { display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; background: #f3f5f8; border-bottom: 1px solid #e1e4e8; color: #5b6b80; font-size: .72rem; }
.appwin__dots { display: flex; gap: 5px; }
.appwin__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d5dbe3; }
.appwin__title { font-weight: 600; color: #0C2340; }
.appwin__crumb { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appwin__body { padding: .85rem; }

/* KPI strip inside an app window */
.akpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.akpi { border: 1px solid #e1e4e8; border-radius: 8px; padding: .45rem .55rem; background: #fff; }
.akpi span { display: block; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #5b6b80; font-weight: 600; }
.akpi b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #0C2340; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.akpi small { display: block; font-size: .6rem; color: #66788e; }
.akpi--alert b { color: #b42d2c; }
.akpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.akpi--ok { background: #e3f8ee; border-color: #c4ecd8; }
.akpi--ok b { color: #18794e; }

/* Tables and chips inside an app window (always light, like the app) */
.atable { width: 100%; border-collapse: collapse; font-size: .74rem; font-variant-numeric: tabular-nums; }
.atable th { background: #f3f5f8; color: #495057; font-weight: 600; text-align: left; padding: .38rem .5rem; border-bottom: 1px solid #e1e4e8; white-space: nowrap; }
.atable td { padding: .36rem .5rem; border-bottom: 1px solid #eef0f3; color: #14233a; white-space: nowrap; }
.atable .n { text-align: right; }
.atable .ind { padding-left: 1.4rem; }
.atable .muted { color: #66788e; }
.atable .neg { color: #b42d2c; }
.atable tr.tot td { font-weight: 700; color: #0C2340; border-top: 1px solid #c9d1db; background: #fafbfc; }
.atable tr.band th { background: #fff; color: #8294aa; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; border-bottom: 0; padding-bottom: 0; }
.atable td.wrap { white-space: normal; }
.atable-wrap { overflow-x: auto; border: 1px solid #e1e4e8; border-radius: 8px; }
/* A wide worksheet (many money columns) - tighter cells so the last column, the one that matters, shows. */
.atable--tight { font-size: .66rem; }
.atable--tight th, .atable--tight td { padding: .32rem .3rem; }
.atable--tight th:first-child, .atable--tight td:first-child { padding-left: .5rem; }
.atable--tight th:last-child, .atable--tight td:last-child { padding-right: .5rem; }
.achips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .65rem; font-size: .68rem; color: #5b6b80; }
.achip { padding: .16rem .5rem; border-radius: 999px; background: #eef1f5; color: #3d4b5e; font-weight: 600; }
.achip--ok { background: #e3f8ee; color: #18794e; }
.achip--warn { background: #fff3e0; color: #9a5b00; }
.achip--acc { background: color-mix(in srgb, var(--accent) 20%, #fff); color: color-mix(in srgb, var(--accent) 60%, #1a2a3f); }
.achip--late { background: #fdecec; color: #a12928; }
.achip--info { background: #e7f6fb; color: #0b6a88; }
.afields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin-bottom: .65rem; }
.afield span { display: block; font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; color: #5b6b80; font-weight: 600; margin-bottom: .15rem; }
.afield b { display: block; border: 1px solid #d5dbe3; border-radius: 6px; padding: .3rem .45rem; font-weight: 500; font-size: .74rem; color: #14233a; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.afoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .65rem; font-size: .68rem; color: #5b6b80; }
.abtn { display: inline-block; padding: .3rem .7rem; border-radius: 6px; font-weight: 600; font-size: .7rem; color: #fff; background: #198754; }
.abtn--blue { background: #0d6efd; }
.tick { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 3px; border: 1px solid #adb5bd; font-size: .55rem; line-height: 1; vertical-align: -2px; }
.tick--on { background: #0d6efd; border-color: #0d6efd; color: #fff; }

/* Attendance day-grid (payroll) */
.dgrid { display: grid; grid-template-columns: 7.5rem repeat(14, minmax(1.45rem, 1fr)); gap: 3px; font-size: .66rem; min-width: 520px; }
.dgrid > span { display: grid; place-items: center; height: 1.6rem; border-radius: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dgrid .dh { background: transparent; color: var(--muted); font-weight: 600; height: auto; padding-bottom: .15rem; }
.dgrid .dn { justify-content: start; padding-left: .2rem; color: var(--text); font-weight: 600; background: transparent; white-space: nowrap; overflow: hidden; }
.dgrid .P  { background: #e3f8ee; color: #18794e; }
.dgrid .A  { background: #fdecec; color: #a12928; }
.dgrid .L  { background: #e7f0ff; color: #2256c5; }
.dgrid .H  { background: var(--surface-2); color: var(--subtle); }
.dgrid .PH { background: #fff3e0; color: #9a5b00; font-size: .58rem; }
.dgrid-wrap { overflow-x: auto; }
.dlegend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .7rem; font-size: .72rem; color: var(--muted); }
.dlegend b { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.15rem; border-radius: 3px; font-size: .62rem; margin-right: .3rem; }

/* Units board (property development) - the status colours are the app's own (.pd-* in app.css) */
.ubld { margin-bottom: .55rem; }
.ubld__h { font-size: .7rem; font-weight: 600; color: #14233a; margin-bottom: .25rem; }
.ubld__h span { color: #8294aa; font-weight: 400; }
.ufloor { display: grid; grid-template-columns: 1.3rem repeat(var(--cols, 6), minmax(0, 1fr)); gap: 3px; align-items: center; margin-bottom: 3px; }
.ufloor > span { font-size: .62rem; color: #8294aa; }
.u { border-radius: 5px; padding: .2rem .1rem; font-size: .56rem; line-height: 1.2; text-align: center; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5b6b80; }
.u b { display: block; font-weight: 600; font-size: .64rem; }
.u--Available  { background: #f3f5f8; color: #5b6b80; border-color: #e1e4e8; }
.u--Reserved   { background: #FAEEDA; color: #633806; }
.u--Booked     { background: #E6F1FB; color: #0C447C; }
.u--Sold       { background: #E1F5EE; color: #085041; }
.u--HandedOver { background: #EEEDFE; color: #3C3489; }
.ukey { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .45rem; font-size: .64rem; color: #5b6b80; font-variant-numeric: tabular-nums; }
.ukey i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; border: 1px solid transparent; }

/* Budget vs committed vs actual bars (construction) */
.cbar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 90px; }
.cbar i { position: absolute; top: 0; bottom: 0; left: 0; }
.cbar .act { background: color-mix(in srgb, var(--accent) 85%, #1a2a3f); }
.cbar .com { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.cbar--over .act { background: #C2504F; }

/* A spreadsheet look (onboarding workbench) */
.xsheet { border: 1px solid #d0d7de; border-radius: 6px; overflow: hidden; background: #fff; font-size: .72rem; color: #14233a; font-variant-numeric: tabular-nums; }
.xsheet__tabs { display: flex; gap: 2px; background: #f3f5f8; border-top: 1px solid #d0d7de; padding: 0 .4rem; }
.xsheet__tabs span { padding: .3rem .6rem; color: #5b6b80; font-size: .66rem; }
.xsheet__tabs .on { background: #fff; color: #107c41; font-weight: 700; border-bottom: 2px solid #107c41; }
.xsheet table { width: 100%; border-collapse: collapse; }
.xsheet th { background: #f3f5f8; color: #5b6b80; font-weight: 600; font-size: .62rem; padding: .25rem .4rem; border: 1px solid #e1e4e8; text-align: left; white-space: nowrap; }
.xsheet td { padding: .28rem .4rem; border: 1px solid #eef0f3; white-space: nowrap; }
.xsheet .n { text-align: right; }
.xsheet-wrap { overflow-x: auto; }

/* --------------------------------------------- CRM: the funnel board ----- */
.fboard-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.fboard { display: flex; gap: .45rem; min-width: 560px; }
.fcol { flex: 1 1 0; min-width: 5.5rem; border: 1px solid #e1e4e8; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.fcol__h { padding: .38rem .5rem; }
.fcol__h b { display: block; font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcol__h span { display: block; font-size: .62rem; font-variant-numeric: tabular-nums; }
.fcol__pace { display: flex; flex-wrap: wrap; gap: .1rem .5rem; padding: .25rem .5rem; background: #f8f9fa; border-bottom: 1px solid #e9ecef; color: #495057; font-size: .58rem; }
.fcol__pace i { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; margin-right: .2rem; vertical-align: -1px; }
.fcol__balls { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 6px; padding: .55rem .35rem .6rem; min-height: 9.5rem; }
.ball {
  width: var(--d); height: var(--d); border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .56rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ball--ok    { background: #1D9E75; color: #04342C; }
.ball--slow  { background: #EF9F27; color: #412402; }
.ball--stuck { background: #E24B4A; color: #FCEBEB; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8f1f1e; }
.ball--won   { background: #639922; color: #173404; }
.ball--lost  { background: #C2504F; color: #FCEBEB; }
.fcol__note { margin: 0 .35rem .45rem; padding: .3rem .4rem; border-radius: 6px; background: #fdecec; color: #8f1f1e; font-size: .58rem; line-height: 1.3; text-align: center; font-weight: 600; }
.flegend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin-top: .65rem; font-size: .66rem; color: #5b6b80; }
.flegend i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.flegend .ring { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #8f1f1e; }
.flegend .sep { margin-left: auto; }

/* Picture on the left on wide screens, while the words still come first on a phone. */
.split--media-left .split__media { order: -1; }
/* An app window is its own frame - no second panel around it. */
.split__media.split__media--bare { background: none; border: 0; padding: 0; box-shadow: none; min-height: 0; }
.mod-page .h2 { text-wrap: balance; }

/* ------------------------------------- Accent-tinted feature icons ------ */
.mod-page .feature-card .ic { background: color-mix(in srgb, var(--accent) 17%, #fff); color: color-mix(in srgb, var(--accent) 72%, #1a2a3f); }
.rec-tag { display: inline-block; margin-top: .9rem; font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: .18rem .55rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------ Timeline (history) ---------- */
.tl { display: grid; gap: .5rem; }
.tl__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .2rem; }
.tl__head b { font-family: var(--font-head); color: var(--heading); font-size: .95rem; }
.tl__head span { font-size: .75rem; color: var(--muted); }
.tl__row { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .7rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .85rem; }
.tl__row time { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.25; }
.tl__row p { margin: 0 !important; color: var(--text) !important; line-height: 1.35; }
.tl__row p small { display: block; color: var(--muted); font-size: .74rem; }
.tl__row--owed { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.kind { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 5px; margin-right: .35rem; vertical-align: 1px; background: var(--surface-2); color: var(--muted); }
.kind--move { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--heading)); }
.stage-stamp { font-size: .66rem; padding: .15rem .45rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }

/* --------------------------------------------------- Reminder bell ------ */
.bell { display: grid; gap: .5rem; }
.bell__head { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: .95rem; margin-bottom: .2rem; }
.bell__head .badge-n { margin-left: auto; font-family: var(--font-body); font-size: .7rem; color: var(--muted); font-weight: 500; }
.bell__item { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.bell__item .pin { width: 8px; height: 8px; border-radius: 50%; margin-top: .4rem; flex: none; background: var(--accent); }
.bell__item div { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.35; }
.bell__item div small { display: block; color: var(--muted); font-size: .74rem; }
.due { flex: none; font-size: .68rem; font-weight: 700; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.due--soon  { background: #fff3e0; color: #9a5b00; }
.due--today { background: #e6f7f4; color: #0b7f73; }
.due--late  { background: #fdecec; color: #a12928; }
.bell__sep { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin: .4rem 0 0; }

/* ------------------------------------------------ Small data table ------ */
.mtable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mtable th { text-align: left; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .35rem .45rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mtable td { padding: .55rem .45rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.mtable td small { display: block; color: var(--muted); font-size: .72rem; }
.mtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .hot { color: #b42d2c; font-weight: 700; }
.mtable-wrap { overflow-x: auto; }

/* -------------------------------------- Deal-to-money document flow ----- */
.flow { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: .7rem; counter-reset: step; }
.flow__band { grid-column: span var(--span); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-bottom: .45rem; border-bottom: 2px solid; }
.flow__band--mod { color: color-mix(in srgb, var(--accent) 75%, var(--heading)); border-color: var(--accent); }
.flow__band--books { color: var(--teal-ink); border-color: var(--teal); }
.flow__step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem .9rem 1.05rem; counter-increment: step; }
.flow__step::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: .78rem; margin-bottom: .6rem; background: var(--teal-soft); color: var(--teal-ink); }
.flow__step--mod::before { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 72%, var(--heading)); }
.flow__step h3 { font-size: .98rem; margin-bottom: .3rem; }
.flow__step p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; top: 1.55rem; right: -.62rem; width: .55rem; height: 2px; background: var(--border); }

/* --------------------------------------------------- Report grid -------- */
.rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.rgrid .card { padding: 1.25rem; }
.rgrid .card h3 { font-size: 1rem; margin-bottom: .35rem; }
.rgrid .card p { font-size: .9rem; color: var(--muted); }
.rgrid .card--wide { grid-column: span 2; }
.rgrid .rq { display: block; margin-top: .7rem; font-size: .78rem; font-style: italic; color: color-mix(in srgb, var(--accent) 70%, var(--heading)); }

/* ---------------------------------------------------- Team ladder ------- */
.ladder { display: grid; gap: .55rem; justify-items: center; }
.ladder__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.person { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem .45rem .45rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .82rem; color: var(--text); }
.person i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .7rem; color: #fff; background: color-mix(in srgb, var(--accent) 80%, #1a2a3f); }
.person small { color: var(--muted); font-size: .7rem; }
.ladder__arrow { font-size: .7rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.ladder__arrow svg { width: 14px; height: 14px; color: var(--teal-ink); }
.ladder__rule { margin-top: .5rem; display: grid; gap: .35rem; width: 100%; }

/* --------------------------------------------------- Plan strip --------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1.3rem 1.2rem; text-align: center; }
.plan h3 { font-size: 1rem; }
.plan .what { margin-top: .55rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.plan .what--in { color: var(--teal-ink); }
.plan p { margin-top: .3rem; font-size: .84rem; color: var(--muted); }
.plan-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.4rem; }
.plan-foot a { color: var(--teal-ink); font-weight: 600; }

/* ---------------------------------------------------- Responsive -------- */
@media (max-width: 1080px) {
  .mod-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .mod-hero__shot { max-width: 720px; }
}
@media (max-width: 980px) {
  .split--media-left .split__media { order: 0; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow__band { display: none; }
  .flow__step:nth-child(3n of .flow__step)::after { display: none; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .akpis, .akpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u { font-size: .5rem; }
  .u b { font-size: .58rem; }
  .afields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atable:not(.atable--tight) td:first-child { white-space: normal; min-width: 8.5rem; }
  .flow { grid-template-columns: 1fr; }
  .flow__step::after { display: none; }
  .rgrid { grid-template-columns: 1fr; }
  .rgrid .card--wide { grid-column: auto; }
  .plans { grid-template-columns: 1fr 1fr; }
  .tl__row { grid-template-columns: 1fr; gap: .3rem; }
  .flegend .sep { margin-left: 0; }
}

/* ------------------------------------------------------- Dark mode ------ */
@media (prefers-color-scheme: dark) {
  .mod-page .feature-card .ic { background: color-mix(in srgb, var(--accent) 24%, #0f2138); color: color-mix(in srgb, var(--accent) 55%, #fff); }
  .kind--move { color: color-mix(in srgb, var(--accent) 45%, #fff); }
  .flow__band--mod, .rgrid .rq { color: color-mix(in srgb, var(--accent) 55%, #fff); }
  .flow__step--mod::before { color: color-mix(in srgb, var(--accent) 50%, #fff); }
  .due--soon  { background: rgba(154,91,0,.22); color: #ffc16b; }
  .due--today { background: rgba(55,217,200,.14); color: #37D9C8; }
  .due--late  { background: rgba(194,80,79,.22); color: #ff9c9b; }
  .mtable .hot { color: #ff8b8a; }
  .mod-page .vrow .pos { color: #5fe0a3; }
  .mod-page .vrow .neg { color: #ff8b8a; }
}
