/* x_mods.css (2026-11-18, builder M): module screens in the v2 look (ref1 light / ref2 dark).
   Scope: area screens get class "mx" on #page (web/js/v_mods.js), so Home and the shell keep their own styles.
   Sheets and forms are shared by every area, so they are styled here without the scope.
   Colour only from tokens; light and dark both follow them. Motion off with Motion Low / reduced motion. */
:root {
  --mx-r: var(--r-card, 16px); --mx-r-s: 12px; --mx-r-xs: 9px;
  --mx-card: var(--panel-solid, var(--panel));
  --mx-edge: var(--line);
  --mx-sh: var(--sh-card, 0 1px 2px color-mix(in oklab, var(--ink) 5%, transparent), 0 8px 24px -16px color-mix(in oklab, var(--ink) 22%, transparent));
  --mx-sh-hi: 0 2px 4px color-mix(in oklab, var(--ink) 6%, transparent), 0 18px 36px -18px color-mix(in oklab, var(--ink) 34%, transparent);
  --mx-head: color-mix(in oklab, var(--panel-solid) 94%, var(--ink) 6%);
  --mx-sel: color-mix(in oklab, var(--brand) 12%, var(--panel-solid));
}

/* ---------- workspace header (wsh): mini KPIs with sparkline + one chart that answers the area's main question ---------- */
.wsh { display: grid; gap: 12px; margin: 2px 0 16px; min-width: 0; }
.wsh-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 12px; min-width: 0; align-items: start; }
.wsh:empty { display: none; }
.wsh.at-end { margin: 20px 0 4px; }
.wsh-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; min-width: 0; }
.mxk { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 4px; align-content: space-between; padding: 14px 16px 13px;
  background: var(--mx-card); border: 1px solid var(--mx-edge); border-radius: var(--mx-r); box-shadow: var(--mx-sh); color: var(--ink); min-width: 0; text-decoration: none; overflow: hidden; }
.mxk .wl { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 580; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxk .wl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wt, var(--brand)); flex: none; }
.mxk .wv { font: 680 24px/1.1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: end; }
.mxk .wd { grid-column: 1; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxk .wd b { font-weight: 640; }
.mxk .wd .up { color: var(--ok); } .mxk .wd .dn { color: var(--err); }
.mxk .wsp { grid-column: 2; grid-row: 2 / span 2; align-self: end; width: 64px; height: 30px; color: var(--wt, var(--brand)); }
.mxk[data-t="ok"] { --wt: var(--ok-fill); } .mxk[data-t="warn"] { --wt: var(--warn-fill); } .mxk[data-t="err"] { --wt: var(--err-fill); }
.mxk[data-t="coral"] { --wt: var(--live); } .mxk[data-t="info"] { --wt: var(--c4); }
.mxk[data-t="err"] .wv { color: var(--err); }
.wsp rect { fill: currentColor; opacity: .28; } .wsp rect.hi { opacity: 1; }
.wsh-c { background: var(--mx-card); border: 1px solid var(--mx-edge); border-radius: var(--mx-r); box-shadow: var(--mx-sh); padding: 13px 16px 12px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.wsh-c .wch { display: flex; align-items: baseline; gap: 8px; }
.wsh-c .wch b { font-size: 13.5px; font-weight: 640; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsh-c .wch a, .wsh-c .wch small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.wsh-c .wch a { color: var(--brand); font-weight: 600; }
.wsh-t { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; margin: -1px; }
.wsh-t::-webkit-scrollbar { display: none; }
.wsh-t button, .wsh-t a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--mx-edge);
  background: var(--mx-card); color: var(--ink-2); font-size: 13px; font-weight: 580; white-space: nowrap; text-decoration: none; cursor: pointer; }
.wsh-t .i { width: 16px; height: 16px; color: var(--brand); }
/* mini charts (pure SVG, colours from tokens) */
.mch { display: block; width: 100%; height: auto; overflow: visible; }
.mch text { font: 500 10px var(--font); fill: var(--ink-3); }
.mch .tr { fill: var(--c-track); }
.mch .f1 { fill: var(--c1); } .mch .f2 { fill: var(--c2); } .mch .f3 { fill: var(--c3); } .mch .f4 { fill: var(--c4); } .mch .f5 { fill: var(--ok-fill); } .mch .f6 { fill: var(--c-done); } .mch .f7 { fill: var(--err-fill); }
button.mxk { text-align: left; font: inherit; cursor: pointer; width: 100%; }
.mch .s1 { stroke: var(--c1); } .mch .s2 { stroke: var(--c2); }
.mfun { display: grid; gap: 6px; }
.mfun > div { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.mfun > div > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfun i { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--c1), color-mix(in oklab, var(--c1) 55%, var(--panel-solid))); transform-origin: left; }
.mfun > div:nth-child(2) i { background: linear-gradient(90deg, color-mix(in oklab, var(--c1) 82%, var(--c4)), color-mix(in oklab, var(--c1) 45%, var(--panel-solid))); }
.mfun > div:nth-child(3) i { background: linear-gradient(90deg, color-mix(in oklab, var(--c1) 62%, var(--c4)), color-mix(in oklab, var(--c4) 45%, var(--panel-solid))); }
.mfun > div:nth-child(n+4) i { background: linear-gradient(90deg, var(--c4), color-mix(in oklab, var(--c4) 40%, var(--panel-solid))); }
.mfun b { font: 600 11.5px var(--mono); color: var(--ink); padding: 1px 7px; border-radius: 999px; background: var(--panel-sunk); border: 1px solid var(--mx-edge); }
.mband { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 1px solid var(--c-grid, var(--line)); }
.mband > div { display: grid; grid-template-rows: auto 96px auto; gap: 6px; padding: 10px 8px 2px; border-left: 1px solid var(--c-grid, var(--line)); min-width: 0; text-align: center; }
.mband > div:first-child { border-left: 0; }
.mband b { font: 680 18px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mband .bw { position: relative; display: flex; align-items: center; justify-content: center; }
.mband .bw i { display: block; width: 100%; border-radius: 6px; background: linear-gradient(180deg, color-mix(in oklab, var(--c1) 70%, var(--panel)), var(--c1)); transform-origin: center; }
.mband > div:nth-child(n+2) .bw i { background: linear-gradient(180deg, color-mix(in oklab, var(--c1) 45%, var(--panel)), color-mix(in oklab, var(--c1) 80%, var(--panel))); }
.mband .bw em { position: absolute; font: 600 11px var(--mono); font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--mx-sh); }
.mband small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .mband { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; scrollbar-width: none; } }
.mdn { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; }
.mdn .mlg { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.mdn .mlg span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.mdn .mlg span > em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdn .mlg i { width: 8px; height: 8px; border-radius: 2px; }
.mdn .mlg b { font: 600 11.5px var(--mono); color: var(--ink); }
.mdn .tot { font: 680 18px var(--font); fill: var(--ink); } .mdn .totl { font-size: 9px; fill: var(--ink-3); }
.wsh .c1 { background: var(--c1); } .wsh .c2 { background: var(--c2); } .wsh .c3 { background: var(--c3); } .wsh .c4 { background: var(--c4); } .wsh .c5 { background: var(--ok-fill); } .wsh .c6 { background: var(--c-done); } .wsh .c7 { background: var(--err-fill); }
.mch .k1 { stroke: var(--c1); } .mch .k2 { stroke: var(--c2); } .mch .k3 { stroke: var(--c3); } .mch .k4 { stroke: var(--c4); } .mch .k5 { stroke: var(--ok-fill); } .mch .k6 { stroke: var(--c-done); } .mch .k7 { stroke: var(--err-fill); }
.mch .trk { stroke: var(--c-track); } .mch .gl { stroke: var(--c-grid, var(--line)); stroke-width: 1; }
.mlgd { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); }
.mlgd span { display: inline-flex; align-items: center; gap: 6px; } .mlgd b { color: var(--ink); font: 600 11.5px var(--mono); }
.mlgd i { width: 8px; height: 8px; border-radius: 2px; }
.mempty { font-size: 12.5px; color: var(--ink-3); padding: 18px 0 10px; text-align: center; }
.wsh.nok .wsh-r { grid-template-columns: minmax(0, 1fr); }
.wsh.nok.two .wsh-r { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.wsh.nok .mdn { grid-template-columns: 110px minmax(0, 1fr); }
.wsh.nok .mdn .mlg { grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); column-gap: 22px; }
.wsh.nok:not(.two) { grid-template-columns: minmax(0, 760px) minmax(0, 1fr); align-items: start; }
.wsh.nok:not(.two) > .wsh-t { flex-wrap: wrap; align-content: flex-start; overflow: visible; }
@media (max-width: 1100px) {
  .wsh-r, .wsh.nok.two .wsh-r, .wsh.nok:not(.two) { grid-template-columns: minmax(0, 1fr); }
  .wsh.nok:not(.two) > .wsh-t { flex-wrap: nowrap; overflow-x: auto; }
}
/* phone: KPI cards and the chart(s) share one sideways swipe row; shortcuts below */
@media (max-width: 640px) {
  .wsh { gap: 10px; margin-bottom: 12px; }
  .wsh-r, .wsh.nok .wsh-r, .wsh.nok.two .wsh-r { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 1px 1px 3px; margin: -1px; align-items: flex-start; }
  .wsh-r::-webkit-scrollbar { display: none; }
  .wsh-r > .wsh-k { display: contents; }
  .wsh-r .mxk { flex: 0 0 min(72%, 230px); scroll-snap-align: start; }
  .wsh-r .mxk .wv { font-size: 21px; }
  .wsh-r > .wsh-c { flex: 0 0 min(90%, 340px); scroll-snap-align: start; }
  .wsh.nok:not(.two) .wsh-r > .wsh-c:only-child { flex-basis: 100%; }
}

/* ---------- KPI rows inside area screens: clean ref1 cards, 4-up, sideways swipe on a phone ---------- */
.page.mx .stat-g, .page.mx .kpis, .page.mx .fp-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.page.mx .kpi { background: var(--mx-card); border: 1px solid var(--mx-edge); border-radius: var(--mx-r); box-shadow: var(--mx-sh); padding: 15px 18px; gap: 5px; }
.page.mx .kpi > b { font-size: 26px; font-variant-numeric: tabular-nums; }
.page.mx .kpi .lb { font-size: 12.5px; }
.page.mx .kpi[data-tone="ok"] { --tone: var(--ok-fill); } .page.mx .kpi[data-tone="warn"] { --tone: var(--warn-fill); } .page.mx .kpi[data-tone="err"] { --tone: var(--err-fill); }
.page.mx .kpi[data-tone="err"] > b { color: var(--err); } .page.mx .kpi[data-tone="info"] { --tone: var(--c4); } .page.mx .kpi[data-tone="mute"] { --tone: var(--c-done); }
@media (max-width: 640px) {
  .page.mx .stat-g, .page.mx .kpis, .page.mx .fp-ks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 1px 1px 3px; margin-left: -1px; margin-right: -1px; }
  .page.mx .stat-g::-webkit-scrollbar, .page.mx .kpis::-webkit-scrollbar, .page.mx .fp-ks::-webkit-scrollbar { display: none; }
  .page.mx .stat-g > *, .page.mx .kpis > *, .page.mx .fp-ks > * { flex: 0 0 min(62%, 200px); scroll-snap-align: start; }
  .page.mx .kpi { padding: 13px 15px; } .page.mx .kpi > b { font-size: 22px; }
}

/* ---------- cards ---------- */
.page.mx .card { background: var(--mx-card); border: 1px solid var(--mx-edge); border-radius: var(--mx-r); box-shadow: var(--mx-sh); padding: 16px 18px; }
.page.mx .card > h4 { font-size: 14.5px; font-weight: 640; letter-spacing: -.01em; }
.page.mx .card > h4 .i { width: 17px; height: 17px; color: var(--brand); }
.page.mx .sec { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }

/* ---------- tables: sticky header, hairlines (no zebra), row hover lift ---------- */
.page.mx .tbl { background: var(--mx-card); border: 1px solid var(--mx-edge); border-radius: var(--mx-r); box-shadow: var(--mx-sh); overflow: clip; }
.page.mx .tbl .gh { padding: 13px 18px; font-size: 14.5px; font-weight: 640; border-bottom: 1px solid var(--mx-edge); }
.page.mx .row { border-top: 1px solid var(--mx-edge); padding: 11px 18px; min-height: 52px; }
.page.mx .row.h { position: sticky; top: -1px; z-index: 3; background: var(--mx-head); color: var(--ink-3); font-size: 11.5px; font-weight: 620; letter-spacing: .02em; text-transform: uppercase; min-height: 0; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--mx-edge); }
.page.mx .row.h + .row { border-top: 0; }
.page.mx .row.link { position: relative; }
.page.mx .rw2 > b { font-weight: 600; }
/* real <table> lists (finance, hr sheet, matrix) */
.page.mx table:not(.mtx) th { position: sticky; top: -1px; z-index: 2; background: var(--mx-head); font-size: 11.5px; font-weight: 620; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.page.mx table td, .page.mx table th { border-color: var(--mx-edge); }

/* ---------- toolbars, search, chips ---------- */
.page.mx .btools { gap: 10px; margin-bottom: 14px; align-items: center; }
.page.mx .bsearch { border-radius: 999px; border: 1px solid var(--mx-edge); background: var(--mx-card); box-shadow: var(--mx-sh); min-height: 40px; }
.page.mx .bsearch:focus-within { border-color: var(--brand-line); box-shadow: var(--focus); }
.page.mx .chips:not(.scroll), .app #tabsHost .chips:not(.scroll) { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.page.mx .chip { border-radius: 999px; border: 1px solid var(--mx-edge); background: var(--mx-card); color: var(--ink-2); font-weight: 560; min-height: 34px; }
.page.mx .chip.on { background: var(--pri, var(--pri-bg)); border-color: var(--pri, var(--pri-bg)); color: var(--pri-ink); }
.page.mx .chip.on em { background: color-mix(in oklab, var(--pri-ink) 22%, transparent); color: inherit; }
.page.mx .seg { border-radius: 999px; background: var(--panel-sunk); border: 1px solid var(--mx-edge); padding: 3px; }
.page.mx .seg > button { border-radius: 999px; }
.page.mx .seg > button.on { background: var(--mx-card); color: var(--ink); box-shadow: var(--mx-sh); }

/* ---------- boards: soft lanes, white cards, spring-ish drag ---------- */
.page.mx .kcol { background: color-mix(in oklab, var(--panel-sunk) 70%, transparent); border: 1px solid var(--mx-edge); border-radius: var(--mx-r); }
.page.mx .kcol.over { border-color: var(--brand-line); background: var(--mx-sel); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--brand) 22%, transparent); }
.page.mx .kcol-h b { font-weight: 640; }
.page.mx .kcol-h em { font: 600 11px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--mx-card); border: 1px solid var(--mx-edge); font-style: normal; }
.page.mx .kcard { background: var(--mx-card); border: 1px solid var(--mx-edge); border-radius: var(--mx-r-s); box-shadow: var(--mx-sh); }
.page.mx .kcard.dragging { transform: rotate(2deg) scale(1.03); box-shadow: var(--sh-3); opacity: .92; }
:root[data-motion="low"] .page.mx .kcard.dragging { transform: none; }
.page.mx .kempty { border: 1px dashed var(--line-2); border-radius: var(--mx-r-s); color: var(--ink-3); }

/* ---------- empty state (ref2 "No team members": ring + one line + one button) ---------- */
.page.mx .empty { display: grid; justify-items: center; gap: 10px; padding: 34px 16px 30px; color: var(--ink-3); font-size: 13.5px; }
.page.mx .empty:not(.err-state)::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--line-2);
  background: radial-gradient(circle at 50% 50%, var(--brand-soft) 0 9px, transparent 10px); }
.page.mx .tbl .empty, .page.mx .card .empty { padding: 26px 12px 22px; }

/* ---------- record sheets + forms (every area) ---------- */
.app .sheet { border-radius: 20px; }
.app .sheet-h { padding: 18px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.app .sheet-h > b { font-size: 17px; font-weight: 650; }
.app .sheet-b { padding-top: 14px; }
.app .sheet .kv { row-gap: 9px; }
.app .sheet .chs { gap: 6px; }
.app .sheet .fld > label, .app .page.mx .fld > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.app .sheet .in, .app .page.mx .in { border-radius: var(--mx-r-xs); border: 1px solid var(--line-2); background: var(--panel-solid); min-height: 42px; }
.app .sheet .in:focus, .app .page.mx .in:focus { border-color: var(--brand); box-shadow: var(--focus); outline: 0; }
.app .sheet textarea.in { min-height: 84px; }
.app .sheet .form-foot { position: sticky; bottom: -24px; z-index: 2; margin: 14px -22px -24px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--panel-solid) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; gap: 8px; justify-content: flex-end; }
.app .sheet details.fold, .app .page.mx details.fold { border: 1px solid var(--line); border-radius: var(--mx-r-s); padding: 0 14px; margin: 10px 0; background: var(--panel-solid); }
.app .sheet details.fold > summary, .app .page.mx details.fold > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; }
.app .sheet details.fold > summary::-webkit-details-marker { display: none; }
.app .sheet details.fold > summary::after, .app .page.mx details.fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-2) var(--ease-out); }
.app .sheet details.fold[open] > summary::after, .app .page.mx details.fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.app .sheet details.fold[open], .app .page.mx details.fold[open] { padding-bottom: 12px; }
/* "Lainnya": long forms show the first fields; the rest fold (v_mods.js) */
.app details.mx-more { margin: 4px 0 2px; border-top: 1px dashed var(--line-2); }
.app details.mx-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; color: var(--brand); font-weight: 620; font-size: 13.5px; cursor: pointer; }
.app details.mx-more > summary::-webkit-details-marker { display: none; }
.app details.mx-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-on-soft, var(--brand)); font-weight: 700; transition: transform var(--t-2) var(--ease-out); }
.app details.mx-more[open] > summary::before { transform: rotate(45deg); }
.app details.mx-more > .mx-more-b { display: grid; gap: 12px; padding: 4px 0 6px; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="low"]) details.mx-more[open] > .mx-more-b { animation: mx-in var(--t-3) var(--ease-out) both; }
}
@keyframes mx-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mx-hint { font-size: 11.5px; color: var(--ink-4); margin-left: auto; align-self: center; }
@media (max-width: 640px) { .mx-hint { display: none; } }

/* ---------- undo toast ---------- */
.app .toast .mx-undo { margin-left: 8px; border: 0; background: transparent; color: var(--brand); font-weight: 700; min-height: 32px; padding: 0 6px; cursor: pointer; }

/* ---------- entrance for headers (Motion Medium/High only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="low"]) .wsh.ca .mxk, :root:not([data-motion="low"]) .wsh.ca .wsh-c { animation: mx-rise var(--t-4) var(--ease-out) both; animation-delay: calc(var(--k, 0) * 40ms); }
  :root:not([data-motion="low"]) .wsh.ca .mfun i { animation: mx-pour 560ms var(--ease-out) both; animation-delay: calc(120ms + var(--k, 0) * 60ms); }
  :root:not([data-motion="low"]) .wsh.ca .mband i, :root:not([data-motion="low"]) .wsh.ca .wsp rect, :root:not([data-motion="low"]) .wsh.ca .mch rect { transform-box: fill-box; transform-origin: bottom; animation: mx-grow 520ms var(--ease-spring, var(--ease-out)) both; animation-delay: calc(var(--k, 0) * 22ms); }
  :root:not([data-motion="low"]) .wsh.ca .mdn circle.sw { animation: mx-sweep 600ms var(--ease-out) both; }
}
@keyframes mx-rise { from { opacity: 0; transform: translateY(12px) perspective(600px) rotateX(6deg); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mx-pour { from { transform: scaleX(0); } to { transform: none; } }
@keyframes mx-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes mx-sweep { from { stroke-dasharray: 0 999; } }

/* ---------- interaction feedback (owner rule 2026-11-18). Built on Builder S's shared layer in motion.css (--fx-* tokens, which
   already go flat under Motion Low and reduced motion); .btn/.chip/.tab presses, a.kpi/.card.lift lifts and the .row.link transition
   come from there and are not repeated here. This only covers module-screen elements the shared layer does not know.
   Rows highlight with inset shadows (they sit inside a clipped table, so they never move); cards lift (their parents do not clip). ---------- */
.page.mx .row.link, .page.mx .arow, .page.mx .nrow, .page.mx table:not(.mtx) tbody tr > td, .page.mx .kcard, .page.mx .plate, .page.mx .lt, .mxk, .wsh-t > *, .app .sheet .in, .app .page.mx .in {
  transition: translate var(--fx-dur) var(--fx-ease), scale var(--fx-dur) var(--fx-ease), box-shadow var(--fx-dur) var(--fx-ease-out), opacity var(--fx-dur-in) linear, background-color var(--fx-dur-in) linear;
}
.page.mx :is(.row.link, .arow, .nrow):focus-visible { outline: 0; box-shadow: inset 3px 0 0 var(--brand), inset 0 0 0 999px var(--fx-hl); }
@media (hover: hover) and (pointer: fine) {
  .page.mx :is(.row.link, .arow, .nrow):hover { box-shadow: inset 3px 0 0 var(--brand), inset 0 0 0 999px var(--fx-hl); }
  .page.mx table:not(.mtx) tbody tr:hover > td { box-shadow: inset 0 0 0 999px var(--fx-hl); }
  :is(.page.mx .kcard, .mxk:is(a, button), .page.mx .plate[data-href], .page.mx a.plate, .page.mx .lt):hover { translate: 0 var(--fx-lift); box-shadow: var(--fx-shadow); text-decoration: none; }
  .wsh-t > *:hover { translate: 0 var(--fx-lift); box-shadow: var(--fx-shadow); text-decoration: none; }
  :is(.app .sheet .in, .app .page.mx .in):hover { box-shadow: var(--fx-glow); }
}
:is(.page.mx .kcard, .mxk:is(a, button), .page.mx .lt, .wsh-t > *):focus-visible { outline: 0; translate: 0 var(--fx-lift); box-shadow: var(--fx-shadow), var(--focus); }
.page.mx :is(.row.link, .arow, .nrow):active { box-shadow: inset 3px 0 0 var(--brand), inset 0 0 0 999px var(--press); }
:is(.page.mx .kcard, .mxk:is(a, button), .page.mx .lt, .wsh-t > *):active { scale: var(--fx-press); translate: 0 0; transition-duration: 90ms; }
/* kanban card being dragged: lifted and tilted a touch (shared drag code sets .dragging) */
.page.mx .kcard.dragging { translate: 0 var(--fx-lift); scale: var(--fx-pop); box-shadow: var(--fx-shadow); opacity: .92; }
/* sticky table headers gain a soft shadow once rows scroll under them (scroll-driven, no script) */
@supports (animation-timeline: scroll()) {
  .page.mx .row.h, .page.mx table:not(.mtx) th { animation: mx-stuck linear both; animation-timeline: scroll(nearest block); animation-range: 0 48px; }
}
@keyframes mx-stuck { from { box-shadow: 0 0 0 transparent; } to { box-shadow: 0 8px 14px -12px color-mix(in oklab, var(--ink) 45%, transparent); } }
/* long lists reveal as they scroll in: same keyframes as the shared .fx-reveal, applied to rows below the fold */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-motion="low"]) :is(.page.mx .tbl > .row:not(.h):nth-child(n+12), .page.mx .kcol-l > .kcard:nth-child(n+6)) { animation: fx-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
