/* =========================================================================
   Market Lab — /index, /deals, /heatmap and the card page's price panel.

   Same material as the landing: really dark grey surfaces that get lighter
   as they rise, the logo's ice → lavender, and rainbow foil where something
   deserves to shine. Every endless animation moves only transform/opacity
   (a rotating conic rim, a light sweep, twinkling sparkles) and is paused
   off screen by marketlab.js; reduced motion stops all of it.

   Chart colours are validated (dataviz six checks, OKLab CVD ΔE ≥ 8):
     series  EU #3c95cf · US #d1628c · NL #c4862c   (dark, surface #1c1d22)
             EU #2a78d6 · US #c2457a · NL #a86400   (light, surface #fff)
     change  up #20a08a · down #d95a4c · mid grey   (dark)
             up #128a74 · down #c8483b              (light)
   ========================================================================= */

.ml {
  --ml-eu: #3c95cf; --ml-us: #d1628c; --ml-nl: #c4862c;
  --ml-up: #20a08a; --ml-down: #d95a4c; --ml-mid: #3a3d45;
  --ml-up-ink: #5de3b0; --ml-down-ink: #ff8b8b; --ml-flat-ink: var(--muted);
  --ml-surface: #1c1d22;
  --ml-card: linear-gradient(180deg, rgba(40, 43, 50, 0.62), rgba(23, 25, 29, 0.5));
  --ml-card-solid: #17181c;
  --ml-hair: rgba(255, 255, 255, 0.08);
  --ml-ice: #bfe8f7; --ml-lav: #cec6f6;
  --ml-rainbow: linear-gradient(90deg, #ff9fc4, #ffe08a 20%, #8fe9a6 40%, #9fe3f5 60%, #cec6f6 80%, #ff9fc4);
  --ml-irid: linear-gradient(100deg, #f4fbff 0%, #bfe9ff 16%, #f2ccff 32%, #fff1b8 48%, #b6ffe4 64%, #d3eef8 80%, #f4fbff 100%);
  --ml-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 6.6 17.4 11.2 24 12 17.4 12.8 12.8 17.4 12 24 11.2 17.4 6.6 12.8 0 12 6.6 11.2 11.2 6.6 12 0Z'/%3E%3C/svg%3E");
  --ml-r: 22px;
  display: block; min-width: 0;
}
:root[data-theme="light"] .ml .eyebrow { color: #2f6f89; }
:root[data-theme="light"] .ml .ico-shiny { --ico-stroke: currentColor; --ico-fill: currentColor; filter: none; }
:root[data-theme="light"] .ml {
  --ml-eu: #2a78d6; --ml-us: #c2457a; --ml-nl: #a86400;
  --ml-up: #128a74; --ml-down: #c8483b; --ml-mid: #e2e4e9;
  --ml-up-ink: #0f7a5c; --ml-down-ink: #b8483f;
  --ml-surface: #ffffff;
  --ml-card: #ffffff; --ml-card-solid: #ffffff;
  --ml-hair: rgba(20, 24, 28, 0.08);
  --ml-ice: #2f6f89; --ml-lav: #6d5cc0;
}
.ml .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ml a { text-decoration: none; }
.ml h1, .ml h2, .ml h3 { letter-spacing: -0.03em; }

/* ------------------------------------------------------------ deltas */
.ml-d { display: inline-flex; align-items: baseline; gap: 0.18em; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ml-d i { font-style: normal; font-size: 0.72em; }
.ml-d.is-up { color: var(--ml-up-ink); }
.ml-d.is-down { color: var(--ml-down-ink); }
.ml-d.is-flat { color: var(--ml-flat-ink); }

/* --------------------------------------------------------- lab tabs */
.ml-tabs { display: inline-flex; gap: 0.25rem; padding: 0.3rem; margin: 0 0 1.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--ml-hair); max-width: 100%; overflow-x: auto; }
.ml-tab { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 999px;
  color: var(--ink-dim); font-weight: 700; font-size: 0.9rem; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.ml-tab .ico { width: 1.05rem; height: 1.05rem; }
.ml-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.ml-tab.is-on { color: #101115; background: var(--ml-irid); box-shadow: 0 8px 22px -12px rgba(191, 232, 247, 0.7); }
:root[data-theme="light"] .ml-tabs { background: #fff; }

/* -------------------------------------------------------- segmented */
.ml-seg { display: inline-flex; padding: 0.22rem; border-radius: 999px; gap: 0.15rem;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--ml-hair); flex: none; }
.ml-seg a, .ml-seg button { font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--ink-dim); background: none;
  border: 0; cursor: pointer; padding: 0.42rem 0.85rem; border-radius: 999px; white-space: nowrap; }
.ml-seg a small, .ml-seg button small { opacity: 0.6; font-weight: 600; }
.ml-seg .is-on, .ml-seg [aria-pressed="true"] { background: var(--ink); color: #101115; }
:root[data-theme="light"] .ml-seg .is-on, :root[data-theme="light"] .ml-seg [aria-pressed="true"] { color: #fff; }
.ml-seg-sm a, .ml-seg-sm button { padding: 0.32rem 0.7rem; font-size: 0.78rem; }

/* ------------------------------------------------------------ heads */
.ml-h1 { font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(2rem, 5vw, 3.3rem); margin: 0.2rem 0 0.6rem; }
.ml-pagehead { margin: 0 0 1.6rem; max-width: 52rem; }
.ml-lede { color: var(--ink-dim); font-size: clamp(0.98rem, 1.3vw, 1.08rem); line-height: 1.6; margin: 0; }
.ml-foilword { position: relative; display: inline-block; background: var(--ml-irid); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: ml-foilonce 2.4s var(--ease) 0.3s 1 both; padding-bottom: 0.06em; }
.ml-foilword::after { content: ""; position: absolute; right: -0.42em; top: -0.12em; width: 0.36em; height: 0.36em;
  background: #fff; -webkit-mask: var(--ml-spark) center / contain no-repeat; mask: var(--ml-spark) center / contain no-repeat;
  filter: drop-shadow(0 0 0.14em rgba(191, 232, 247, 0.95)); animation: ml-twinkle 3.2s ease-in-out infinite; }
@keyframes ml-foilonce { from { background-position: 100% 0; } to { background-position: 0% 0; } }
:root[data-theme="light"] .ml-foilword { background: linear-gradient(100deg, #2f6f89, #6d5cc0 60%, #2f6f89); -webkit-background-clip: text; background-clip: text; }

.ml-sec { margin: 2.4rem 0 0; }
.ml-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.ml-sec-head h2 { margin: 0; font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.7rem); display: inline-flex; align-items: center; gap: 0.5rem; }
.ml-sec-head p { margin: 0; }
.ml-note { margin: 0.8rem 0 0; }

/* ================================================================= hero */
.ml-hero-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 1.5px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 80px -40px rgba(191, 232, 247, 0.35);
  --diag: 1400px;
}
/* The rim: a comet of foil travelling round the card (a rotating conic
   layer behind the inner panel — transform only). */
.ml-rim { position: absolute; inset: 0; z-index: -2; background: rgba(255, 255, 255, 0.09); }
.ml-rim::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: var(--diag); height: var(--diag);
  margin: calc(var(--diag) / -2) 0 0 calc(var(--diag) / -2);
  background: conic-gradient(from 0deg, transparent 0 52%, rgba(255, 159, 196, 0.9) 60%, rgba(255, 224, 138, 0.95) 66%,
    rgba(143, 233, 166, 0.95) 72%, rgba(159, 227, 245, 1) 78%, rgba(206, 198, 246, 0.95) 84%, transparent 92%);
  animation: ml-spin 11s linear infinite; will-change: transform;
}
.ml-hero-inner, .ml-hero-card > :not(.ml-rim):not(.ml-sweep) { position: relative; }
.ml-hero-card::before { /* the inner panel, solid so only the rim shows the foil */
  content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 26.5px;
  background: radial-gradient(60rem 28rem at 88% -20%, rgba(191, 232, 247, 0.1), transparent 60%),
              radial-gradient(40rem 24rem at -10% 110%, rgba(206, 198, 246, 0.08), transparent 60%), var(--ml-card-solid);
}
.ml-hero-card > div, .ml-hero-card > p, .ml-hero-card > ul, .ml-hero-card > details { margin-inline: clamp(1rem, 3vw, 2rem); }
.ml-hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding-top: clamp(1.1rem, 2.6vw, 1.8rem); }
.ml-hero-head .ml-h1 { margin-bottom: 0; }
/* a light sweep, every few seconds */
.ml-sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; }
.ml-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 28%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.07) 55%, transparent);
  transform: translateX(-120%) skewX(-12deg); animation: ml-sweep 7.5s var(--ease) 1.2s infinite; }
@keyframes ml-spin { to { transform: rotate(360deg); } }
@keyframes ml-sweep { 0% { transform: translateX(-120%) skewX(-12deg); } 38%, 100% { transform: translateX(460%) skewX(-12deg); } }
@keyframes ml-twinkle { 0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.55; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

.ml-hero-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 1.1rem; position: relative; }
.ml-level { font-weight: 900; font-size: clamp(3.1rem, 10vw, 6rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--ink);
  text-shadow: 0 0 40px rgba(191, 232, 247, 0.18); position: relative; }
.ml-level::after { content: ""; position: absolute; right: -0.34em; top: -0.08em; width: 0.26em; height: 0.26em; background: #fff;
  -webkit-mask: var(--ml-spark) center / contain no-repeat; mask: var(--ml-spark) center / contain no-repeat;
  filter: drop-shadow(0 0 0.1em rgba(191, 232, 247, 0.95)); animation: ml-twinkle 3.4s ease-in-out infinite; }
:root[data-theme="light"] .ml-level::after { background: #6d5cc0; }
.ml-level-meta { display: inline-flex; align-items: baseline; gap: 0.45rem; font-size: 1.05rem; margin-left: 0.3rem; }
.ml-level-meta small { color: var(--muted); font-size: 0.8rem; }

.ml-kpis { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ml-kpis li { display: inline-flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.9rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--ml-hair); min-width: 6.5rem; }
.ml-kpis small { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ml-kpis .ml-d { font-size: 1.12rem; }
.ml-kpi-range span { font-weight: 800; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .ml-kpis li { background: #f5f6f8; }

.ml-hero-sub { color: var(--muted); font-size: 0.86rem; line-height: 1.55; margin: 0.9rem 0 0; }
.ml-hero-card > details.ml-tableview { margin-bottom: clamp(1rem, 2.4vw, 1.5rem); }

/* ------------------------------------------------------------ charts */
.ml-chartbox { margin-top: 1.2rem; }
.ml-range { display: flex; gap: 0.2rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.ml-range button { font: inherit; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em; color: var(--muted); background: none;
  border: 0; border-radius: 999px; padding: 0.34rem 0.66rem; cursor: pointer; }
.ml-range button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.ml-range button[aria-pressed="true"] { color: #101115; background: var(--ml-irid); }
.ml-canvas-wrap { position: relative; min-height: 260px; }
.ml-canvas { display: block; width: 100%; height: 260px; touch-action: pan-y; }
.ml-cp-chart, .ml-cp-chart .ml-canvas { min-height: 230px; height: 230px; }
.ml-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 9rem; padding: 0.55rem 0.7rem; border-radius: 12px;
  background: rgba(34, 36, 43, 0.96); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.8rem; line-height: 1.35; color: var(--ink); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.ml-tip b { font-size: 0.98rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ml-tip .ml-tip-day { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; margin-bottom: 0.2rem; }
.ml-tip .ml-tip-row { display: flex; align-items: center; gap: 0.45rem; }
.ml-tip .ml-tip-row i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.ml-tip .ml-tip-row span { color: var(--muted); font-size: 0.74rem; }
.ml-tip .ml-tip-row.is-carried b { opacity: 0.72; }
:root[data-theme="light"] .ml-tip { background: #fff; box-shadow: 0 16px 40px -16px rgba(40, 44, 50, 0.35), inset 0 0 0 1px rgba(20, 24, 28, 0.1); }

/* the index's latest point, breathing */
.ml-live { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: #cec6f6; box-shadow: 0 0 0 2px var(--ml-surface), 0 0 14px rgba(206, 198, 246, 0.9); }
.ml-live::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(206, 198, 246, 0.75);
  animation: ml-ping 2.6s ease-out infinite; }
@keyframes ml-ping { from { transform: scale(0.35); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
:root[data-theme="light"] .ml-live { background: #6d5cc0; box-shadow: 0 0 0 2px #fff; }

.ml-tableview { margin-top: 0.9rem; }
.ml-tableview > summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; font-weight: 600; width: fit-content; }
.ml-tableview > summary:hover { color: var(--ink); }
.ml-tableview .tablewrap { margin-top: 0.6rem; max-height: 22rem; overflow: auto; }
.ml-tableview td small, .ml-cp-stats td small { display: block; color: var(--muted); font-size: 0.7rem; white-space: nowrap; }

/* ------------------------------------------------------ sub-indexes */
.ml-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; }
.ml-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name level" "spark spark" "d7 d30";
  gap: 0.35rem 0.8rem; padding: 1rem 1.1rem; border-radius: 20px; color: var(--ink);
  background: var(--ml-card); box-shadow: inset 0 0 0 1px var(--ml-hair);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.ml-sub:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(191, 232, 247, 0.35), 0 20px 40px -26px rgba(0, 0, 0, 0.8); }
.ml-sub.is-on { box-shadow: inset 0 0 0 1.5px rgba(191, 232, 247, 0.6), 0 0 34px -14px rgba(191, 232, 247, 0.55); }
.ml-sub-name { grid-area: name; display: grid; line-height: 1.2; min-width: 0; }
.ml-sub-name b { font-weight: 800; font-size: 0.98rem; }
.ml-sub-name small { color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-sub-level { grid-area: level; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; justify-self: end;
  display: grid; justify-items: end; line-height: 1.1; }
.ml-sub-level small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.ml-spark { grid-area: spark; width: 100%; height: 34px; display: block; overflow: visible; }
.ml-spark path { fill: none; stroke-width: 1.8px; stroke-linejoin: round; stroke-linecap: round; }
.ml-spark.is-up path { stroke: var(--ml-up-ink); }
.ml-spark.is-down path { stroke: var(--ml-down-ink); }
.ml-sub-d { display: inline-flex; align-items: baseline; gap: 0.4rem; font-size: 0.86rem; }
.ml-sub-d small { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ml-sub-7 { grid-area: d7; }
.ml-sub-30 { grid-area: d30; justify-self: end; }
.ml-sub.is-main .ml-sub-name b { background: var(--ml-irid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="light"] .ml-sub.is-main .ml-sub-name b { -webkit-text-fill-color: currentColor; }

/* ----------------------------------------------------- contributors */
.ml-contrib { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.ml-contrib[hidden] { display: none; }
.ml-contrib-col.panel { padding: 1rem 1.1rem 0.6rem; }
.ml-contrib-h { display: flex; align-items: center; gap: 0.45rem; font-size: 1rem; margin: 0 0 0.5rem; }
.ml-contrib-h.is-up .ico { color: var(--ml-up-ink); }
.ml-contrib-h.is-down .ico { color: var(--ml-down-ink); }
.ml-crow { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; border-top: 1px solid var(--ml-hair); }
.ml-crow:first-of-type { border-top: 0; }
.ml-crow-n { margin-left: auto; display: grid; justify-items: end; gap: 0.05rem; text-align: right; flex: none; }
.ml-crow-n small { color: var(--muted); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-sellto b { font-size: 0.86rem; }

/* card thumbnail + name */
.ml-thumb { display: flex; align-items: center; gap: 0.65rem; min-width: 0; color: var(--ink); flex: 1 1 auto; }
.ml-thumb img, .ml-noimg { width: 36px; height: 50px; object-fit: cover; border-radius: 4px; background: #22242b; flex: none;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.8); transition: transform 0.25s var(--ease); }
.ml-thumb:hover img { transform: rotate(-3deg) scale(1.06); }
.ml-thumb-t { display: grid; min-width: 0; line-height: 1.25; }
.ml-thumb-t b { font-weight: 700; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-thumb-t small { color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-thumb:hover b { color: var(--ml-ice); }

/* ------------------------------------------------------ constituents */
.ml-members td { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.ml-members td:nth-child(2) { max-width: 22rem; }
.ml-members .ml-held { display: block; color: var(--warn); font-size: 0.68rem; font-weight: 700; white-space: nowrap; cursor: help; }
.ml-w { display: block; width: 4.5rem; height: 4px; margin: 0 0 0.25rem auto; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ml-w i { display: block; height: 100%; border-radius: 4px; background: var(--ml-rainbow); background-size: 400% 100%; }
.ml-morebtn { text-align: center; margin: 0.8rem 0 0; }

/* ----------------------------------------------------- methodology */
.ml-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.ml-method-grid .panel h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 0.45rem; }
.ml-method-grid .panel p { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.ml-method .ml-note a { color: var(--ml-ice); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------- next cards */
.ml-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.8rem; }
.ml-nextcard { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem; border-radius: 20px; color: var(--ink);
  background: var(--ml-card); box-shadow: inset 0 0 0 1px var(--ml-hair); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.ml-nextcard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(191, 232, 247, 0.4), 0 22px 44px -28px rgba(191, 232, 247, 0.45); }
.ml-nextcard .ico { width: 2rem; height: 2rem; flex: none; }
.ml-nextcard span { display: grid; gap: 0.1rem; }
.ml-nextcard small { color: var(--muted); }

.ml-empty { margin-top: 1rem; }
.ml-empty h1, .ml-empty h2 { font-size: 1.5rem; }

/* ============================================================== deals */
.ml-mine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
/* "Your cards": in a narrow panel (a phone, or two columns on a tablet)
   the price line goes under the name, which gets the whole row */
.ml-mine-grid > .panel { container-type: inline-size; }
@container (max-width: 27rem) {
  .ml-mine .ml-crow { flex-wrap: wrap; row-gap: 0.15rem; }
  .ml-mine .ml-crow-n { flex: 1 0 100%; box-sizing: border-box; margin-left: 0; padding-left: calc(36px + 0.65rem);
    justify-items: start; text-align: left; }
}
.ml-mine-grid .panel h3 { margin-bottom: 0.6rem; }
.ml-mine-sum { color: var(--ink-dim); font-size: 0.88rem; margin: 0 0 0.6rem; }
.ml-mine-sum b { color: var(--ink); }
.ml-mine .ml-sec-head h2 .ico { width: 1.2rem; height: 1.2rem; }

.ml-filters { display: grid; gap: 0.8rem; margin: 2rem 0 1rem; padding: 1rem; border-radius: 22px;
  background: var(--ml-card); box-shadow: inset 0 0 0 1px var(--ml-hair); }
.ml-dirs { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.ml-dirs .chip small { opacity: 0.65; font-weight: 700; font-size: 0.72rem; }
.ml-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.4rem, 1fr)); gap: 0.6rem; align-items: end; }
.ml-fields .field { min-width: 0; }
.ml-fields select { padding: 0.5rem 0.75rem; font-size: 0.88rem; }
.ml-js .ml-apply { display: none; }

.ml-caveats { margin: 0 0 0.5rem; padding: 0.85rem 1.05rem; border-radius: 18px; background: rgba(191, 232, 247, 0.05);
  box-shadow: inset 0 0 0 1px rgba(191, 232, 247, 0.18); }
.ml-caveats summary { cursor: pointer; font-weight: 750; display: flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.ml-caveats summary .ico { color: var(--ml-ice); }
.ml-caveats ul { margin: 0.6rem 0 0.2rem; padding-left: 1.2rem; color: var(--ink-dim); font-size: 0.86rem; line-height: 1.5;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 2.2rem; }
.ml-caveats b { color: var(--ink); }
.ml-caveats a { color: var(--ml-ice); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="light"] .ml-caveats { background: rgba(47, 111, 137, 0.06); }

.ml-deals { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ml-deal { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) minmax(0, 1fr) 6.6rem; align-items: center; gap: 0.6rem 1rem;
  padding: 0.75rem 0.9rem; border-radius: 18px; background: var(--ml-card); box-shadow: inset 0 0 0 1px var(--ml-hair);
  position: relative; }
.ml-deal:hover { box-shadow: inset 0 0 0 1px rgba(191, 232, 247, 0.28); }
.ml-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.ml-px { display: grid; gap: 0.02rem; padding: 0.35rem 0.5rem; border-radius: 12px; min-width: 0; line-height: 1.2; }
.ml-px small { font-size: 0.66rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ml-px b { font-weight: 850; font-size: 0.95rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-px em { font-style: normal; font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.ml-px.is-key { background: rgba(191, 232, 247, 0.08); box-shadow: inset 0 0 0 1px rgba(191, 232, 247, 0.35); }
.ml-px.is-key small { color: var(--ml-ice); }
:root[data-theme="light"] .ml-px.is-key { background: rgba(47, 111, 137, 0.07); }
.ml-deal-hl { display: grid; gap: 0.1rem; min-width: 0; }
.ml-gap { font-weight: 800; font-size: 0.9rem; line-height: 1.25; display: inline-flex; align-items: flex-start; gap: 0.4rem; }
.ml-gap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 0.38em; box-shadow: 0 0 0 2px var(--ml-surface); }
.ml-gap-us::before { background: var(--ml-us); }
.ml-gap-eu::before { background: var(--ml-eu); }
.ml-gap-nl::before, .ml-gap-nlhi::before { background: var(--ml-nl); }
.ml-deal-hl small { color: var(--muted); font-size: 0.76rem; padding-left: calc(8px + 0.4rem); }
.ml-deal > .ml-conf { justify-self: end; }
.ml-pager { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 1rem; }

/* --------------------------------------------------------- confidence */
.ml-conf { position: relative; }
.ml-conf > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.6rem 0.28rem 0.45rem;
  border-radius: 999px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; box-shadow: inset 0 0 0 1px currentColor; }
.ml-conf > summary::-webkit-details-marker { display: none; }
.ml-conf > summary .ico { width: 0.95rem; height: 0.95rem; }
.ml-conf.is-high > summary { color: var(--ml-up-ink); background: rgba(93, 227, 176, 0.08); }
.ml-conf.is-medium > summary { color: #e8c07a; background: rgba(232, 192, 122, 0.08); }
.ml-conf.is-low > summary { color: #f0a58f; background: rgba(240, 165, 143, 0.08); }
:root[data-theme="light"] .ml-conf.is-medium > summary { color: #8a6100; }
:root[data-theme="light"] .ml-conf.is-low > summary { color: #a8432f; }
.ml-conf-pop { position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 30; width: min(19rem, 80vw); padding: 0.8rem 0.9rem;
  border-radius: 16px; background: rgba(34, 36, 43, 0.98); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
:root[data-theme="light"] .ml-conf-pop { background: #fff; box-shadow: 0 24px 50px -20px rgba(40, 44, 50, 0.35), inset 0 0 0 1px rgba(20, 24, 28, 0.1); }
.ml-conf-head { display: flex; justify-content: space-between; gap: 0.6rem; margin: 0 0 0.45rem; font-size: 0.86rem; }
.ml-conf-score { color: var(--muted); font-weight: 700; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.ml-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.32rem; font-size: 0.82rem; line-height: 1.4; color: var(--ink-dim); }
.ml-reasons li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.35rem; align-items: start; }
.ml-reasons li::before { width: 1.1rem; height: 1.1rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.66rem; font-weight: 900; margin-top: 0.05rem; }
.ml-reasons li.is-good::before { content: "✓"; color: #101115; background: var(--ml-up-ink); }
.ml-reasons li.is-note::before { content: "i"; color: var(--ink); background: rgba(255, 255, 255, 0.12); font-style: italic; }
.ml-reasons li.is-warn::before { content: "!"; color: #101115; background: #e8c07a; }
:root[data-theme="light"] .ml-reasons li.is-good::before { color: #fff; }
:root[data-theme="light"] .ml-reasons li.is-note::before { background: rgba(20, 24, 28, 0.08); }

.ml-confbox { margin-top: 1rem; padding: 1rem 1.05rem; border-radius: 18px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--ml-hair); }
:root[data-theme="light"] .ml-confbox { background: #f6f7f9; }
.ml-confbox-top { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.7rem; }
.ml-confbox-top p { margin: 0; }
.ml-conf-title { font-weight: 850; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.ml-conf-title .ico { width: 1.1rem; height: 1.1rem; }
.ml-conf-sum { color: var(--muted); font-size: 0.84rem; }
.ml-confmeter { --s: 50; position: relative; width: 3.1rem; height: 3.1rem; flex: none; border-radius: 50%;
  background: conic-gradient(var(--ml-meter, #9fe3f5) calc(var(--s) * 1%), rgba(255, 255, 255, 0.08) 0); }
.ml-confmeter i { position: absolute; inset: 5px; border-radius: 50%; background: var(--ml-card-solid); }
.ml-confmeter::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1.05rem; height: 1.05rem; background: var(--ink);
  -webkit-mask: var(--ml-spark) center / contain no-repeat; mask: var(--ml-spark) center / contain no-repeat; opacity: 0.9; }
.ml-confbox.is-high .ml-confmeter { --ml-meter: var(--ml-up-ink); }
.ml-confbox.is-medium .ml-confmeter { --ml-meter: #e8c07a; }
.ml-confbox.is-low .ml-confmeter { --ml-meter: #f0a58f; }
.ml-confbox.is-high .ml-conf-title .ico { color: var(--ml-up-ink); }

/* ============================================================ heatmap */
.ml-heat-controls { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; margin-bottom: 1rem; }
.ml-eras { flex: 1 1 20rem; }
.ml-heat-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.9rem; }
.ml-kpi { display: grid; gap: 0.15rem; padding: 0.85rem 1rem; border-radius: 18px; color: var(--ink); min-width: 0;
  background: var(--ml-card); box-shadow: inset 0 0 0 1px var(--ml-hair); }
.ml-kpi small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.ml-kpi b { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-kpi span { display: inline-flex; gap: 0.35rem; align-items: baseline; }
a.ml-kpi:hover { box-shadow: inset 0 0 0 1px rgba(191, 232, 247, 0.35); }

.ml-heat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; gap: 0.9rem; align-items: start; }
.ml-heat-map { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 22rem; border-radius: 18px; overflow: hidden;
  background: var(--ml-surface); box-shadow: inset 0 0 0 1px var(--ml-hair); }
.ml-tile { position: absolute; display: block; overflow: hidden; border-radius: 7px; color: #fff; padding: 0.4rem 0.45rem; line-height: 1.15;
  transition: filter 0.2s, transform 0.2s var(--ease); outline-offset: -2px; }
.ml-tile:hover, .ml-tile:focus-visible { filter: brightness(1.16); z-index: 2; }
.ml-tile.is-sel { box-shadow: inset 0 0 0 2px #fff; z-index: 3; }
.ml-tile b { display: block; font-weight: 800; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-tile span { display: block; font-weight: 900; font-size: 0.78rem; font-variant-numeric: tabular-nums; opacity: 0.95; }
.ml-tile.is-l b { font-size: 1.02rem; letter-spacing: -0.01em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ml-tile.is-l span { font-size: 1.1rem; }
.ml-tile.is-l small { display: block; font-size: 0.72rem; opacity: 0.8; margin-top: 0.1rem; font-weight: 600; }
.ml-tile small { display: none; }
.ml-tile.is-s { padding: 0.2rem 0.25rem; }
.ml-tile.is-s b { font-size: 0.66rem; }
.ml-tile.is-s span { font-size: 0.64rem; }
.ml-tile.is-xs b, .ml-tile.is-xs span { display: none; }
.ml-tile.is-ink { color: #111317; }
/* the week's biggest movers wear the foil */
.ml-tile.is-star::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--ml-rainbow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.ml-tile.is-star::after { content: ""; position: absolute; right: 0.35rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; background: #fff;
  -webkit-mask: var(--ml-spark) center / contain no-repeat; mask: var(--ml-spark) center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)); animation: ml-twinkle 2.8s ease-in-out infinite; }
.ml-tile .ml-tile-glint { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.ml-tile .ml-tile-glint::before { content: ""; position: absolute; top: -30%; bottom: -30%; width: 40%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28) 50%, transparent);
  transform: translateX(-150%) skewX(-14deg); animation: ml-glint 5.5s var(--ease) infinite; }
@keyframes ml-glint { 0% { transform: translateX(-150%) skewX(-14deg); } 40%, 100% { transform: translateX(380%) skewX(-14deg); } }

.ml-heat-detail { position: sticky; top: calc(var(--topbar-h, 60px) + 1rem); min-height: 12rem; }
.ml-heat-detail.panel { padding: 1rem 1.05rem; }
.ml-heat-hint { color: var(--muted); font-size: 0.88rem; display: flex; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }
.ml-heat-hint .ico { width: 1.2rem; height: 1.2rem; flex: none; }
.ml-hd-h { margin: 0 0 0.15rem; font-size: 1.1rem; font-weight: 900; }
.ml-hd-meta { color: var(--muted); font-size: 0.8rem; margin: 0 0 0.6rem; }
.ml-hd-num { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.6rem; }
.ml-hd-num b { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.ml-hd-sub { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.8rem 0 0.2rem; }
.ml-hd-open { margin-top: 0.8rem; display: inline-flex; }
.ml-heat .ml-tip { transform: translate(-50%, calc(-100% - 10px)); }

.ml-heat-main { min-width: 0; }
.ml-heat-rest { margin: 0.55rem 0 0; font-size: 0.8rem; color: var(--ink-dim); }
.ml-heat-rest .linklike { color: var(--ml-ice); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.ml-heat-legend { margin: 0.7rem 0 0; }
.ml-scale-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.ml-scale { display: block; flex: 0 1 16rem; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ml-down), var(--ml-mid) 50%, var(--ml-up)); }
.ml-heat-legend p { margin: 0.45rem 0 0; max-width: 52rem; }
.ml-heat-table { margin-top: 1.2rem; }

/* 1-5 confidence pips */
.ml-pips { display: inline-flex; gap: 2px; margin-left: 0.15rem; vertical-align: middle; }
.ml-pips i { width: 4px; height: 10px; border-radius: 2px; background: currentColor; opacity: 0.22; }
.ml-pips i.on { opacity: 1; }
.ml-conf-title .ml-pips { color: var(--ml-meter, var(--ml-ice)); }

/* ========================================================= card panel */
.ml-cardpanel { container-type: inline-size; margin: 1.2rem 0; padding: 1.1rem 1.2rem 1.15rem; border-radius: 22px; background: var(--ml-card);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -42px rgba(0, 0, 0, 0.85); }
.ml-cp-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.ml-cp-head h3 { margin: 0; font-weight: 900; }
.ml-cp-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 0.3rem; }
.ml-cp-bar .ml-range, .ml-cp-bar .ml-legend { margin: 0; }
.ml-legend { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.4rem; }

/* receipts: every price with what it is, when it was checked, how it moves */
.ml-receipts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ml-hair); background: rgba(255, 255, 255, 0.02); }
.ml-rcpt { display: grid; grid-template-columns: 8.2rem minmax(0, 7.5rem) minmax(0, 1fr); grid-template-areas: "key val what" "key val meta";
  gap: 0.1rem 0.9rem; padding: 0.65rem 0.85rem; align-items: baseline; }
.ml-rcpt + .ml-rcpt { border-top: 1px solid var(--ml-hair); }
.ml-rcpt-key { grid-area: key; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 750; font-size: 0.86rem; }
.ml-rcpt-key i { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.ml-rcpt.is-eu .ml-rcpt-key i { background: var(--ml-eu); }
.ml-rcpt.is-us .ml-rcpt-key i { background: var(--ml-us); }
.ml-rcpt.is-nl .ml-rcpt-key i { background: var(--ml-nl); }
.ml-rcpt-val { grid-area: val; display: grid; line-height: 1.15; }
.ml-rcpt-val b { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ml-rcpt-val small { color: var(--muted); font-size: 0.72rem; }
.ml-rcpt-what { grid-area: what; color: var(--ink-dim); font-size: 0.8rem; line-height: 1.4; }
.ml-rcpt-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 0.74rem; color: var(--muted); }
.ml-rcpt-note { color: var(--ink-dim); }
.ml-rcpt-note.is-warn { color: var(--warn); }
.ml-chip-sm { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.08rem 0.45rem; border-radius: 999px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--ml-hair); color: var(--ink-dim); white-space: nowrap; }
.ml-chip-sm .ml-d { font-size: inherit; }
.ml-vol.is-steady { color: var(--ml-up-ink); }
.ml-vol.is-volatile { color: #e8c07a; }
.ml-vol.is-wild { color: #f0a58f; }
:root[data-theme="light"] .ml-vol.is-volatile { color: #8a6100; }
:root[data-theme="light"] .ml-vol.is-wild { color: #a8432f; }
.ml-cp-since { margin: 0.35rem 0 0; }

@container (max-width: 620px) {
  .ml-rcpt { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "key val" "what what" "meta meta"; gap: 0.2rem 0.8rem; }
  .ml-rcpt-val { justify-items: end; text-align: right; }
}

/* report this price */
.ml-report { margin-top: 0.9rem; }
.ml-report > summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; font-weight: 650; display: inline-flex; align-items: center; gap: 0.4rem; }
.ml-report > summary:hover { color: var(--ink); }
.ml-report > summary .ico { width: 0.95rem; height: 0.95rem; }
.ml-report-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0.7rem 0 0.4rem; align-items: end; }
.ml-report-note { grid-column: 1 / -1; }
.ml-report-form textarea { min-height: 3.2rem; }
.ml-report-form .btn { justify-self: start; }
.ml-report p { margin: 0.5rem 0 0; }
.ml-report a { color: var(--ml-ice); text-decoration: underline; }
.ml-key { font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--ink-dim); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ml-hair); }
.ml-key i { width: 14px; height: 3px; border-radius: 2px; }
.ml-key small { color: var(--muted); font-weight: 600; }
.ml-key.is-eu i { background: var(--ml-eu); }
.ml-key.is-us i { background: var(--ml-us); }
.ml-key.is-nl i { background: var(--ml-nl); }
.ml-key[aria-pressed="false"] { opacity: 0.5; }
.ml-key[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.ml-key:disabled { display: none; }
.ml-cp-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; text-align: center; }
.ml-cardpanel.is-drawn .ml-cp-wait { display: none; }
.ml-cp-stats { margin-top: 0.7rem; }
.ml-cp-stats table { font-size: 0.84rem; }
.ml-cp-stats th[scope="row"] { font-weight: 600; color: var(--muted); text-align: left; }
.ml-cp-stats td, .ml-cp-stats th { padding: 0.45rem 0.7rem; }
.ml-cp-stats td { font-weight: 800; }
.ml-cp-note { margin: 0.7rem 0 0; }
.ml-cp-note a { color: var(--ml-ice); }
/* once this panel has drawn, the card page's older Europe-only chart below it
   says nothing new (see the note in the Market Lab report) */
.ml-cardpanel.is-drawn ~ .panel:has(> .chart-box[data-src="ch-hist"]) { display: none; }

/* ============================================================ responsive */
.ml-hide-sm { }
@media (max-width: 900px) {
  .ml-heat { grid-template-columns: 1fr; }
  .ml-heat-detail { position: static; min-height: 0; }
}
@media (max-width: 760px) {
  .ml-contrib, .ml-mine-grid, .ml-method-grid, .ml-caveats ul { grid-template-columns: 1fr; }
  .ml-deal { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "card conf" "trio trio" "hl hl"; }
  .ml-deal > .ml-thumb { grid-area: card; }
  .ml-deal > .ml-trio { grid-area: trio; }
  .ml-deal > .ml-deal-hl { grid-area: hl; }
  .ml-deal > .ml-conf { grid-area: conf; }
  .ml-heat-kpis { grid-template-columns: 1fr 1fr; }
  .ml-heat-kpis .ml-kpi:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ml-hide-sm { display: none; }
  /* the family as a compact list: name, sparkline, level over its week */
  .ml-subgrid { gap: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ml-hair); background: var(--ml-card); }
  .ml-sub { grid-template-columns: minmax(0, 1fr) 4.2rem auto; grid-template-areas: "name spark level" "name spark d7";
    gap: 0.05rem 0.75rem; padding: 0.7rem 0.9rem; border-radius: 0; background: none; box-shadow: none; align-items: center; }
  .ml-sub + .ml-sub { border-top: 1px solid var(--ml-hair); }
  .ml-sub:hover { transform: none; box-shadow: none; }
  .ml-sub.is-on { box-shadow: inset 3px 0 0 var(--ml-ice); background: rgba(191, 232, 247, 0.05); }
  .ml-spark { height: 26px; }
  .ml-sub-level { font-size: 1.05rem; }
  .ml-sub-level small, .ml-sub-30, .ml-sub-7 small { display: none; }
  .ml-sub-7 { justify-self: end; font-size: 0.8rem; }
  .ml-hero-card { border-radius: 24px; }
  .ml-hero-card::before { border-radius: 22.5px; }
  .ml-kpis li { min-width: 0; flex: 1 1 40%; }
  .ml-heat-map { aspect-ratio: 4 / 5; min-height: 0; }
  .ml-canvas-wrap, .ml-canvas { min-height: 220px; height: 220px; }
  .ml-tabs { display: flex; width: 100%; }
  .ml-tab { flex: 1; justify-content: center; padding: 0.5rem 0.6rem; }
  .ml-seg a, .ml-seg button { padding: 0.4rem 0.7rem; }
  .ml-px b { font-size: 0.88rem; }
  .ml-cardpanel { padding: 1rem 0.9rem; }
  .ml-report-form { grid-template-columns: 1fr; }
  .ml-dirs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 0.1rem;
    -webkit-mask: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1.6rem), transparent);
    mask: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1.6rem), transparent); }
  .ml-dirs::-webkit-scrollbar { display: none; }
  .ml-dirs .chip { flex: none; }
}

/* ------------------------------------------------------------ motion */
.ml-paused .ml-rim::before, .ml-paused .ml-sweep::before, .ml-paused .ml-level::after,
.ml-paused .ml-tile.is-star::after, .ml-paused .ml-tile-glint::before, .ml-paused .ml-foilword::after,
.ml-paused .ml-live::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ml-rim::before, .ml-sweep::before, .ml-level::after, .ml-foilword, .ml-foilword::after,
  .ml-tile.is-star::after, .ml-tile-glint::before, .ml-live::after { animation: none !important; }
  .ml-sweep { display: none; }
  .ml-sub, .ml-nextcard, .ml-thumb img, .ml-tile { transition: none; }
}
