/* Live mocks of the app's screens (scripts/mocks.mjs, static/mocks.js). They are the product, so they get the product frame:
   corners and a shadow. Inside, the app's own look (docs/design/app-guideline.md): the page is the mist and data sits on
   near-white cards one step above it, with no outlines; figures and tabs sit open on the page and only the chosen one rises
   to a card with the pick outline and the amber square; rows are slabs with 2px of page between them. */

.mock {
  --m-bg: var(--n-50); --m-panel: var(--n-0); --m-soft: var(--n-100); --m-edge: var(--n-200); --m-line: var(--n-300);
  --m-fg: var(--n-1000); --m-muted: var(--n-700); --m-pick: color-mix(in oklab, var(--m-fg) 45%, var(--m-line)); --m-wash: 1;
  /* Text in lists steps back to the body tone, so only the lead of a row stands in full ink. */
  --m-body: color-mix(in oklab, var(--m-fg) 70%, var(--m-muted));
  margin: 0; width: 100%; overflow: hidden; border-radius: var(--r-frame); background: var(--m-bg); color: var(--m-fg); box-shadow: var(--frame-shadow); font: 400 0.875rem/1.4 var(--text); text-align: left;
}
/* Dark is one ladder of cool greys: the page deepest, a card a clear step above it. */
:root[data-theme="dark"] .mock, .theme-dark .mock { --m-bg: var(--n-1000); --m-panel: var(--n-900); --m-soft: var(--n-850); --m-edge: var(--n-800); --m-line: var(--n-750); --m-fg: var(--n-200); --m-muted: var(--n-400); --m-pick: color-mix(in oklab, var(--m-fg) 28%, var(--m-line)); --m-wash: 1.45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mock { --m-bg: var(--n-1000); --m-panel: var(--n-900); --m-soft: var(--n-850); --m-edge: var(--n-800); --m-line: var(--n-750); --m-fg: var(--n-200); --m-muted: var(--n-400); --m-pick: color-mix(in oklab, var(--m-fg) 28%, var(--m-line)); --m-wash: 1.45; } }
/* On an ink band the mock keeps the opposite ground of the band, so it reads as a window, not a hole. */
.ink .mock { --m-bg: var(--n-50); --m-panel: var(--n-0); --m-soft: var(--n-100); --m-edge: var(--n-200); --m-line: var(--n-300); --m-fg: var(--n-1000); --m-muted: var(--n-700); --m-pick: color-mix(in oklab, var(--m-fg) 45%, var(--m-line)); --m-wash: 1; }
:root[data-theme="dark"] .ink .mock { --m-bg: var(--n-1000); --m-panel: var(--n-900); --m-soft: var(--n-850); --m-edge: var(--n-800); --m-line: var(--n-750); --m-fg: var(--n-200); --m-muted: var(--n-400); --m-pick: color-mix(in oklab, var(--m-fg) 28%, var(--m-line)); --m-wash: 1.45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ink .mock { --m-bg: var(--n-1000); --m-panel: var(--n-900); --m-soft: var(--n-850); --m-edge: var(--n-800); --m-line: var(--n-750); --m-fg: var(--n-200); --m-muted: var(--n-400); --m-pick: color-mix(in oklab, var(--m-fg) 28%, var(--m-line)); --m-wash: 1.45; } }
/* Tabular figures only where numbers line up: in Schibsted they also widen commas and points in running text. */
.m-table .n, .m-kpis b, .m-funnel b, .m-patterns .n, .m-big b, .m-num, .m-row b, .m-stream time, .m-kinds em, .m-figs b, .m-rk b { font-variant-numeric: tabular-nums; }

/* The window bar stands for the app's rail: the mark, the screen with its amber square, the project. */
.m-bar { display: flex; align-items: center; gap: var(--s-4); padding: 10px 16px; background: var(--m-soft); color: var(--m-muted); font-size: 0.8125rem; font-weight: 600; }
.m-brand { display: inline-flex; color: var(--m-fg); }
.m-brand .logo { width: 26px; height: 18px; }
.m-screen { color: var(--m-fg); font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.mock:not(.mock-terminal) .m-screen::after { content: ""; width: 6px; height: 6px; background: var(--eye-500); }
.m-project { margin-left: auto; font: 400 0.8125rem/1 var(--mono); }
.m-body { display: grid; gap: var(--s-4); padding: var(--s-5); min-height: 0; }
.m-body p { margin: 0; }

/* Shared parts */
/* A card: the paper surface one step above the page, with no outline and no shadow. */
.m-card { display: grid; gap: 10px; align-content: start; padding: 14px 16px; background: var(--m-panel); min-width: 0; }
/* Tabs: an unchosen tab has no frame; the chosen one rises to a card with the pick outline, bold, with the amber square.
   Inside a card the chosen tab steps up to the tint instead. */
.m-chips { display: flex; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; }
.m-chips span { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; color: var(--m-muted); white-space: nowrap; }
.m-chips span.on { background: var(--m-panel); color: var(--m-fg); font-weight: 700; box-shadow: inset 0 0 0 1px var(--m-pick); }
.m-chips span.on::before { content: ""; align-self: center; width: 6px; height: 6px; background: var(--eye-500); }
.m-in span { padding: 3px 8px; font-size: 0.75rem; }
.m-in span.on { background: var(--m-soft); box-shadow: none; }
.m-in span.on::before { display: none; }
/* The period: a select, which sits on a card with a hairline like every field. */
.m-chips .m-push { margin-left: auto; padding: 5px 28px 5px 10px; background: var(--m-panel); color: var(--m-fg); font-weight: 500; box-shadow: inset 0 0 0 1px var(--m-line); }
.m-chips .m-push::after { content: ""; position: absolute; right: 11px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border: solid var(--m-fg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.m-title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); font-weight: 650; }
.m-title span { color: var(--m-muted); font-weight: 500; font-size: 0.8125rem; }
/* Bars as the app draws them: the rest of a series at its rest step and one bar in full: a spark's latest, a chart's
   "hit". The colour comes from --m-tone, set by a tone class on the bars or on their row. */
.mock { --m-tint: calc(45% * var(--m-wash)); }
.tone-d1 { --m-tone: var(--d1); } .tone-d2 { --m-tone: var(--d2); } .tone-d3 { --m-tone: var(--d3); }
.tone-d4 { --m-tone: var(--d4); } .tone-d5 { --m-tone: var(--d5); } .tone-d6 { --m-tone: var(--d6); }
.m-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.m-bars i { flex: 1; min-width: 3px; height: calc(var(--v) * 1%); background: color-mix(in oklab, var(--m-tone, var(--d1)) var(--m-tint), var(--m-panel)); transition: height var(--dur-slow) var(--ease-move); }
.m-bars:not(.m-cols) i:last-child, .m-bars i.hit { background: var(--m-tone, var(--d1)); }
.m-cols { height: 74px; gap: 6px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-3); font-size: 0.8125rem; }
.m-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-row b { font-weight: 650; }
.m-row i { grid-column: 1 / -1; height: 4px; background: color-mix(in oklab, var(--m-line) 28%, transparent); position: relative; }
.m-row i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--d1); transition: width var(--dur-slow) var(--ease-move); }
.m-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.m-table th { text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--m-muted); padding: 0 var(--s-3) 6px 0; }
.m-table td { padding: 7px var(--s-3) 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
.m-table .n { text-align: right; padding-right: 0; }
/* A change is a status pill: the sign and the figure in the status colour, on a soft tint of it. */
.up, .down { justify-self: start; padding: 1px 6px; color: var(--good); background: color-mix(in oklab, var(--good) 13%, transparent); font-style: normal; font-size: 0.75rem; font-weight: 650; }
.m-enter { animation: m-in 420ms var(--ease-move) both; }
@keyframes m-in { from { opacity: 0; transform: translateY(-6px); } }

/* Figures: open on the page, League Gothic, the label above. The chosen one rises to a card with the pick outline. */
.m-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.m-kpis div { display: grid; gap: 4px; align-content: start; padding: 10px 12px; }
.m-kpis div.on { background: var(--m-panel); box-shadow: inset 0 0 0 1px var(--m-pick); }
.m-kpis div.on span { display: flex; justify-content: space-between; align-items: center; color: var(--m-fg); }
.m-kpis div.on span::after { content: ""; width: 6px; height: 6px; background: var(--eye-500); }
.m-kpis span { font-size: 0.75rem; font-weight: 600; color: var(--m-muted); }
.m-kpis b { font: 400 2rem/1 var(--display); }
.m-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--m-edge); }
.m-split > div { display: grid; gap: 8px; align-content: start; padding: 14px 16px; background: var(--m-panel); min-width: 0; }
.m-split > div > p { font-weight: 650; font-size: 0.8125rem; }
/* Rankings as the app's ranked cards: rows tinted by their share of the leader, from 24% of the hue down to 12%. */
.m-ranked { display: grid; gap: 2px; align-content: start; }
.m-ranked > p { margin-bottom: 2px; font-weight: 650; font-size: 0.875rem; }
.m-ranked > .m-chips { margin: 0 0 6px -8px; }
.m-rk { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); padding: 4px 6px; font-size: 0.8125rem; }
.m-rk > * { position: relative; }
.m-rk span { color: var(--m-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rk b { font-weight: 650; }
.m-rk i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: color-mix(in oklab, var(--m-tone, var(--d1)) calc(var(--s, 16%) * var(--m-wash)), transparent); transition: width var(--dur-slow) var(--ease-move); }

/* Live: the pulse and "58 online now" in League Gothic as one headline, small bold figures under it. */
.m-live-top { display: grid; gap: 6px; }
.m-big { display: flex; align-items: center; gap: 10px; font: 400 3rem/0.95 var(--display); }
.m-big b { font-weight: 400; }
.m-big::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--eye-500); animation: m-blink 1.6s ease-in-out infinite; }
.m-figs { display: flex; flex-wrap: wrap; gap: 4px var(--s-5); font-size: 0.8125rem; color: var(--m-muted); }
.m-figs b { color: var(--m-fg); font-weight: 700; margin-right: 4px; }
.m-sub { color: var(--m-muted); font-size: 0.8125rem; }
@keyframes m-blink { 50% { opacity: 0.25; } }
/* A person's drawn picture: four bars on a pastel tile, one of them deeper. A visitor with no name gets a plain tile.
   The blue corner says they are on the site now. */
.m-pic { --hue: 30; position: relative; flex: none; display: inline-flex; align-items: end; justify-content: center; gap: 2px; width: 22px; height: 22px; padding: 5px 4px; box-sizing: border-box; background: oklch(93% 0.035 var(--hue)); vertical-align: middle; }
.m-pic i { width: 3px; height: calc(var(--h) * 1px); background: oklch(78% 0.07 var(--hue)); }
.m-pic i.deep { background: oklch(58% 0.12 var(--hue)); }
:root[data-theme="dark"] .m-pic, .theme-dark .m-pic { background: oklch(32% 0.04 var(--hue)); }
:root[data-theme="dark"] .m-pic i, .theme-dark .m-pic i { background: oklch(52% 0.07 var(--hue)); }
:root[data-theme="dark"] .m-pic i.deep, .theme-dark .m-pic i.deep { background: oklch(78% 0.1 var(--hue)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-pic { background: oklch(32% 0.04 var(--hue)); } :root:not([data-theme="light"]) .m-pic i { background: oklch(52% 0.07 var(--hue)); } :root:not([data-theme="light"]) .m-pic i.deep { background: oklch(78% 0.1 var(--hue)); } }
/* After the theme rules above, so a visitor's tile stays grey in dark too. */
.mock .m-pic.m-anon { background: var(--m-soft); }
.m-online::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 6px; height: 6px; background: var(--d1); box-shadow: 0 0 0 1.5px var(--m-panel); }
.m-people td { color: var(--m-body); }
.m-people td:first-child .m-pic { margin: -3px 8px 0 0; }
.m-people td:nth-child(2) { color: var(--m-fg); font-weight: 650; }
.m-people .n { padding-right: var(--s-4); }

/* Tail: the traffic kinds as small figures, and under them one thin stacked bar of the mix, each kind as wide as its share. */
.m-kindbox { display: grid; gap: 6px; }
.m-mix { display: flex; gap: 2px; height: 4px; }
.m-mix i { flex: var(--share) 0 0; background: var(--k); }
.m-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.m-kinds > span { position: relative; display: grid; gap: 2px; padding: 7px 10px; font-size: 0.75rem; }
.m-kinds > span.on { background: var(--m-panel); box-shadow: inset 0 0 0 1px var(--m-pick); }
.m-kinds b { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.m-kinds > span.on b::before { content: ""; width: 6px; height: 6px; background: var(--eye-500); }
.m-kinds em { font-style: normal; font-weight: 700; font-size: 1rem; }
.m-kinds small { font-weight: 500; font-size: 0.6875rem; color: var(--m-muted); margin-left: 2px; }
.k-people { --k: var(--d1); }
.k-bots { --k: var(--d5); }
.k-api { --k: var(--d3); }
.k-log { --k: var(--m-line); }
.k-sq { flex: none; display: inline-block; width: 7px; height: 7px; background: var(--k); }
.k-sq.k-log { background: transparent; box-shadow: inset 0 0 0 1.5px var(--m-muted); }
/* Lines are slabs: the route leads in mono and weight, the method and a passing status step back, a 4xx or 5xx is its code in
   red. An error log line tints its whole row. The line someone opened has the pick outline. */
.m-stream { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 0.8125rem; }
.m-stream li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: var(--s-3); align-items: baseline; padding: 7px 10px; background: var(--m-panel); white-space: nowrap; }
.m-stream li > div { min-width: 0; display: grid; gap: 2px; }
.m-stream time { color: var(--m-muted); font: 400 0.75rem/1 var(--mono); }
.m-req { overflow: hidden; text-overflow: ellipsis; font: 400 0.8125rem/1.3 var(--mono); }
.m-req b { font-weight: 700; }
.m-req s { text-decoration: none; color: var(--m-muted); font-size: 0.75rem; }
.m-req s.bad { color: var(--danger, var(--d4)); font-weight: 700; font-size: 0.8125rem; }
.m-from { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--m-muted); font-size: 0.75rem; }
.m-from > span::before { content: "·"; margin-right: 6px; }
.m-from .no { color: var(--danger, var(--d4)); font-weight: 650; }
.m-stream li.err { background: color-mix(in oklab, var(--danger, var(--d4)) 10%, var(--m-panel)); }
.m-stream li.sel { box-shadow: inset 0 0 0 1px var(--m-pick); }

/* Overview: one measure over time is a line over a field of fine strokes, the peak tagged in a black block. */
.m-chart { position: relative; }
.m-line { width: 100%; height: 110px; display: block; overflow: visible; }
.m-line polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; transition: all var(--dur-slow); }
.m-line .now { stroke: var(--d1); }
.m-line .prev { stroke: var(--m-muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.m-line .field { fill: url(#m-strokes); transition: all var(--dur-slow); }
.m-line pattern rect { fill: color-mix(in oklab, var(--d1) calc(30% * var(--m-wash)), transparent); }
.m-peak { position: absolute; transform: translate(-50%, calc(-100% - 6px)); padding: 2px 5px; background: var(--m-fg); color: var(--m-bg); font: 400 0.875rem/1 var(--display); }

/* Funnel: numbered steps, each a bar on one scale with what the step before lost hatched, the drop as a red figure. */
.m-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.m-funnel li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) 3.6em; gap: 4px var(--s-3); align-items: end; font-size: 0.8125rem; padding: 6px 8px; margin: 0 -8px; transition: background-color var(--dur-med); }
.m-funnel li.on { background: var(--m-soft); }
.m-no { grid-row: span 2; align-self: start; font: 400 1.5rem/1 var(--display); color: var(--m-muted); }
.m-step { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-step small { margin-right: 6px; font-size: 0.6875rem; font-weight: 600; color: var(--m-muted); }
.m-fbar { grid-column: 2; height: 12px; position: relative; }
.m-fbar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--was) * 1%); background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--d1) calc(45% * var(--m-wash)), transparent) 0 1.5px, transparent 1.5px 5px); }
.m-fbar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--d1); }
.m-funnel b { grid-row: 1 / span 2; grid-column: 3; align-self: center; text-align: right; font: 400 1.5rem/1 var(--display); }
.m-drop { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--m-muted); font-size: 0.75rem; }
.m-drop strong { font: 400 1.25rem/1 var(--display); color: var(--danger, var(--d4)); }
.m-drop u { color: var(--m-fg); font-weight: 600; text-underline-offset: 2px; }
.m-instead { display: grid; gap: 8px; padding: 14px 16px; background: var(--m-panel); transition: opacity var(--dur-med); }
.m-instead .m-row i::before { background: color-mix(in oklab, var(--d1) var(--m-tint), var(--m-panel)); }
.m-instead .m-row:first-of-type i::before { background: var(--d1); }
.m-note { font-size: 0.75rem; color: var(--m-muted); }

/* Patterns */
.m-cover { display: grid; gap: 10px; padding: 14px 16px; background: var(--m-panel); font-size: 0.8125rem; color: var(--m-muted); }
.m-cover p { display: flex; align-items: baseline; gap: 8px; }
.m-cover b { font: 400 1.75rem/1 var(--display); color: var(--m-fg); }
.m-cover strong { color: var(--m-fg); font-weight: 650; }
.m-stack { display: flex; height: 8px; gap: 3px; }
.m-stack i { height: 100%; flex: var(--v); }
.m-stack i:nth-child(1) { background: var(--d1); } .m-stack i:nth-child(2) { background: var(--d5); } .m-stack i:nth-child(3) { background: var(--d6); } .m-stack i:nth-child(4) { background: var(--d3); } .m-stack i:nth-child(5) { background: var(--d4); }
.m-group { font-weight: 700; font-size: 0.8125rem; margin-top: 2px; }
.m-group span { color: var(--m-muted); font-weight: 500; }
.m-patterns { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.m-patterns li { display: grid; grid-template-columns: 7px minmax(0, 1.2fr) auto 5.5em 3.4em; grid-template-areas: "sw name tag bars n" "sw code code bars n"; gap: 2px var(--s-3); align-items: center; padding: 9px 12px; background: var(--m-panel); }
.m-patterns b { grid-area: name; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-patterns code { grid-area: code; font: 400 0.75rem/1.3 var(--mono); color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-patterns em { grid-area: tag; justify-self: start; font-style: normal; font-size: 0.6875rem; font-weight: 700; padding: 1px 6px; }
.m-patterns .m-bars { grid-area: bars; height: 22px; }
.m-patterns .n { grid-area: n; text-align: right; font-weight: 650; }
.m-sw { grid-area: sw; align-self: start; width: 7px; height: 7px; margin-top: 6px; background: var(--m-tone); }
.m-none { --m-tone: var(--m-muted); }
.m-none .m-bars i { background: var(--m-line); }
.m-none .m-bars i:last-child { background: var(--m-muted); }
.m-tabs small { font-size: 0.75rem; font-weight: 500; color: var(--m-muted); }
.t-rise { background: var(--m-soft); }
.t-new { background: var(--eye-500); color: var(--n-1000); }
.t-err { background: color-mix(in oklab, var(--danger, var(--d4)) 13%, transparent); color: var(--danger, var(--d4)); }
.m-unnamed { color: var(--m-muted); font-weight: 500; font-style: italic; }
.m-caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -0.15em; animation: m-blink 1s steps(1) infinite; }

/* Teach: the writing stage, a band of card that holds a large field sunk to the page and its controls. */
.m-stage { display: grid; gap: 10px; padding: 14px; background: var(--m-panel); }
.m-input { min-height: 3.2em; padding: 10px 12px; background: var(--m-bg); box-shadow: inset 0 0 0 1px var(--m-line); font-size: 1rem; }
.m-stage-foot { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--m-muted); }
.m-stage-foot span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; color: var(--m-fg); box-shadow: inset 0 0 0 1px var(--m-line); }
.m-stage-foot span i, .m-grouphead i { width: 7px; height: 7px; background: var(--d1); }
.m-btn { margin-left: auto; padding: 6px 14px; background: var(--m-fg); color: var(--m-bg); font-size: 0.8125rem; font-weight: 700; }
.m-grouphead { display: flex; align-items: center; gap: 8px; font: 400 1.25rem/1 var(--display); }
.m-grouphead small { font: 500 0.75rem/1 var(--text); color: var(--m-muted); margin-left: auto; }
.m-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.m-facts li { display: grid; gap: 2px; padding: 10px 12px; background: var(--m-panel); }
.m-facts span { font-size: 0.75rem; color: var(--m-muted); }
.m-ask { display: grid; gap: 8px; padding-top: var(--s-2, 4px); transition: opacity var(--dur-med); }
.m-q { justify-self: end; padding: 6px 12px; background: var(--m-panel); font-weight: 500; }
.m-a b { font-weight: 700; }
.m-a { padding-left: 2px; }

/* Sheets: pinned charts on cards with the page between them, each chart in its own hue. */
.m-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-cards > div { display: grid; gap: 8px; align-content: start; padding: 12px 14px; background: var(--m-panel); }
.m-cards p { font-weight: 650; font-size: 0.8125rem; }
.m-cards p small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 500; font-size: 0.6875rem; color: var(--m-muted); }
.m-cards p small::before { content: ""; width: 5px; height: 5px; background: var(--m-muted); }
.m-num { font: 400 2.5rem/1 var(--display); }
.m-updated { font-weight: 500; color: var(--m-muted) !important; }
.m-card-rank .m-ranked > p { margin-bottom: 2px; font-size: 0.8125rem; }
.m-thread { font-size: 0.8125rem; color: var(--m-muted); }
.m-thread b { color: var(--m-fg); }
.m-thread span { margin-left: var(--s-3); text-decoration: underline; }

/* Chat */
.m-u { justify-self: end; padding: 7px 12px; background: var(--m-panel); font-weight: 500; }
.m-r { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--s-3); }
.m-r > div { display: grid; gap: var(--s-3); }
.m-mark { display: grid; place-items: center; width: 26px; height: 26px; background: var(--m-soft); color: var(--m-fg); }
.m-mark .logo { width: 16px; height: 11px; }
.m-result { display: grid; gap: 8px; padding: 14px 16px; background: var(--m-panel); }
.m-result p { display: flex; justify-content: space-between; font-weight: 650; font-size: 0.8125rem; }
.m-result p > span { display: flex; gap: var(--s-3); color: var(--m-muted); font-weight: 600; }
.m-result p > span span { text-decoration: underline; text-underline-offset: 2px; }
.m-result p.m-axis { font-weight: 500; font-size: 0.6875rem; color: var(--m-muted); }
.m-r code { font: 400 0.75rem/1.4 var(--mono); }
/* A whole thread in a reading column: the follow-up sits a little apart from the answer before it. */
.mock-thread .m-body { gap: var(--s-5); }

/* Terminal */
.mock-terminal { --m-bg: var(--n-1000); --m-soft: var(--n-900); --m-fg: var(--n-200); --m-muted: var(--n-500); }
.m-term { list-style: none; margin: 0; padding: var(--s-5); display: grid; gap: 8px; align-content: start; font: 400 0.875rem/1.5 var(--mono); color: var(--m-muted); min-height: 18em; }
.m-term li.cmd { color: var(--m-fg); }
.m-term li.cmd::before { content: "$\00a0"; color: var(--eye-500); }
.m-term li.ok { color: var(--m-fg); }
.mock-terminal.play li { visibility: hidden; }
.mock-terminal.play li.on { visibility: visible; }

@media (max-width: 560px) {
  .m-body { padding: var(--s-4); }
  .m-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-split { grid-template-columns: minmax(0, 1fr); }
  .m-big { font-size: 2.5rem; }
  .m-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-kinds > span:nth-child(n + 4) { display: none; }
  .m-stream li { grid-template-columns: minmax(0, 1fr); }
  .m-stream time { display: none; }
  .m-table th:nth-child(3), .m-table td:nth-child(3), .m-table th:nth-child(4), .m-table td:nth-child(4) { display: none; }
  .m-drop u { display: none; }
  /* Live: one ranking instead of two, and the table keeps fixed columns so the page column gives way first. */
  .m-live-top + .m-split > div + div { display: none; }
  .m-people { table-layout: fixed; }
  .m-people th:first-child { width: 8.4em; }
  .m-people th.n { width: 4.4em; }
  .m-people td { max-width: none; }
  /* Patterns: the name keeps the whole first line beside its tag; the bars move down beside the code. */
  .m-patterns li { grid-template-columns: 7px minmax(0, 1fr) 4.6em 3em; grid-template-areas: "sw name tag n" "sw code bars n"; padding: 8px; }
  .m-tabs span:nth-child(n + 4) { display: none; }
  .m-patterns em { justify-self: end; }
  .m-patterns .m-bars { height: 16px; }
  /* Terminal: one size down, and long lines wrap anywhere instead of leaving a lone word behind. */
  .m-term { padding: var(--s-4); font-size: 0.8125rem; }
  .m-term li { overflow-wrap: anywhere; }
}
@media (max-width: 400px) {
  /* The narrowest phones: the name takes the whole line, the tag sits by the code and the bars step aside. */
  .m-patterns li { grid-template-columns: 7px minmax(0, 1fr) auto 2.8em; grid-template-areas: "sw name name n" "sw code tag n"; }
  .m-patterns .m-bars { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mock *, .mock *::before, .mock *::after { animation: none !important; transition: none !important; }
}
.mock-claude .m-term li.cmd::before { content: ">\00a0"; }

/* People: one person's card, as the app's card draws it. Colour only in the picture, the active days and the online mark. */
.m-person { display: grid; gap: var(--s-3); }
.m-person-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.m-person-head p { margin: 0; }
.m-avatar { --hue: 30; width: 40px; height: 40px; background: oklch(93% 0.035 var(--hue)); display: flex; align-items: end; justify-content: center; gap: 3px; padding: 8px; box-sizing: border-box; }
.m-avatar i { width: 4px; height: calc(var(--h) * 1.5px); background: oklch(78% 0.07 var(--hue)); }
.m-avatar i.lit { background: oklch(58% 0.12 var(--hue)); }
:root[data-theme="dark"] .m-avatar, .theme-dark .m-avatar { background: oklch(32% 0.04 var(--hue)); }
:root[data-theme="dark"] .m-avatar i, .theme-dark .m-avatar i { background: oklch(52% 0.07 var(--hue)); }
:root[data-theme="dark"] .m-avatar i.lit, .theme-dark .m-avatar i.lit { background: oklch(78% 0.1 var(--hue)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-avatar { background: oklch(32% 0.04 var(--hue)); } :root:not([data-theme="light"]) .m-avatar i { background: oklch(52% 0.07 var(--hue)); } :root:not([data-theme="light"]) .m-avatar i.lit { background: oklch(78% 0.1 var(--hue)); } }
.m-person-name { font: 400 1.9rem/0.95 var(--display); }
.m-person-now { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.8125rem; }
.m-person-now i { width: 7px; height: 7px; background: var(--d1); }
.m-person-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3) var(--s-5); align-items: center; padding: 14px 16px; background: var(--m-panel); }
.m-person-figs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: baseline; }
.m-person-figs div { display: contents; }
.m-person-figs b { font: 400 1.9rem/0.95 var(--display); font-variant-numeric: tabular-nums; }
.m-person-figs span { font-size: 0.75rem; color: var(--m-muted); }
.m-weeks { display: grid; grid-auto-flow: column; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); gap: 3px; width: 100%; max-width: 240px; justify-self: end; }
.m-weeks i { aspect-ratio: 1; }
.m-weeks i { background: var(--m-soft); }
.m-weeks i.on { background: var(--d1); }
.m-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.m-tags span { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; background: var(--m-panel); }
.m-visits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.m-visits li { display: grid; gap: 2px; padding: 9px 12px; background: var(--m-panel); }
.m-visits p { margin: 0 0 2px; display: flex; justify-content: space-between; gap: var(--s-3); font-size: 0.8125rem; }
.m-visits p span { color: var(--m-muted); }
.m-visits code { font: 400 0.75rem/1.5 var(--mono); color: var(--m-muted); }
.m-visits code strong { color: var(--m-fg); font-weight: 600; }

/* MCP: how sessions ended as one bar, and recent sessions as their steps, as the app's MCP page draws them. */
.m-agents { display: grid; gap: 8px; }
.m-ends { display: flex; gap: 3px; height: 14px; }
.m-ends i { min-width: 3px; background: var(--m-tone); }
.m-ends-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px var(--s-4); }
.m-ends-key li { display: grid; gap: 2px; align-content: start; }
.m-ends-key span { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--m-muted); }
.m-ends-key span i { flex: none; width: 7px; height: 7px; background: var(--m-tone); }
.m-ends-key b { font: 400 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.m-trail { list-style: none; margin: 0; padding: 0; display: grid; }
.m-trail > li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 4.5em; gap: var(--s-3); align-items: start; padding: 9px 0; border-top: 1px solid var(--m-line); font-size: 0.8125rem; }
.m-who { display: grid; gap: 2px; min-width: 0; }
.m-who small, .m-size small { color: var(--m-muted); font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-size { display: grid; justify-items: end; gap: 2px; }
.m-size b { font: 400 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.m-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.m-steps li { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 7px; background: var(--m-soft); color: var(--m-muted); font: 400 0.6875rem/1.5 var(--mono); white-space: nowrap; }
.m-steps li.tool { color: var(--m-fg); font-weight: 600; background: color-mix(in oklab, var(--d3) 20%, transparent); }
.m-steps li.failed { color: var(--d4); font-weight: 700; background: color-mix(in oklab, var(--d4) 14%, transparent); }
.m-steps small { font-size: 0.625rem; font-weight: 700; }

/* MCP probes: one share in display type over the ranking of who knocks. */
.m-share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.m-share b { font: 400 3.25rem/0.9 var(--display); font-variant-numeric: tabular-nums; }
.m-share span { font-size: 0.8125rem; color: var(--m-muted); max-width: 30ch; }

/* MCP log: config, the line it writes and what is read from it, in one dark panel. Added and read parts are bright. */
.m-code { display: grid; gap: 10px; padding: var(--s-5); font: 400 0.8125rem/1.6 var(--mono); color: var(--m-muted); }
.m-code pre { margin: 0; font: inherit; white-space: pre; overflow-x: auto; scrollbar-width: none; }
.m-code pre.m-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.m-code pre b { color: var(--m-fg); font-weight: 500; }
.m-code-label { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--m-soft); font: 600 0.75rem/1 var(--text); color: var(--m-muted); }
.m-read { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.m-read span { padding: 3px 9px; background: var(--m-soft); color: var(--m-fg); }
.m-read span.hit { background: color-mix(in oklab, var(--d3) 30%, transparent); font-weight: 600; }

/* Claude Code asking: prompts are marked with >, the shell command with $. */
.mock-ask .m-term li.ask { color: var(--m-fg); }
.mock-ask .m-term li.ask::before { content: ">\00a0"; color: var(--eye-500); }
.mock-ask .m-term li.cmd { overflow-wrap: anywhere; }

/* A person's card on the MCP page: tool calls as steps among the visits. */
.mock-mcpperson .m-visits .m-steps { margin-top: 2px; }

@media (max-width: 560px) {
  .m-ends-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-trail > li { grid-template-columns: minmax(0, 1fr) 4em; }
  .m-trail .m-steps { grid-column: 1 / -1; grid-row: 2; }
  .m-share b { font-size: 2.5rem; }
  .m-code { padding: var(--s-4); font-size: 0.75rem; }
  .m-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Bots */
.m-bots td b { display: block; }
.m-bots th:last-child, .m-bots td:last-child { padding-left: var(--s-3); }
.m-bots td small { color: var(--m-muted); font-size: 0.75rem; }
.m-check { display: inline-block; font-size: 0.75rem; padding: 2px 6px; border-radius: 2px; background: color-mix(in srgb, var(--m-muted) 14%, transparent); color: var(--m-muted); }
.m-check.ok { background: color-mix(in srgb, var(--m-fg) 10%, transparent); color: var(--m-fg); font-weight: 600; }
.m-check.bad { background: color-mix(in srgb, var(--danger, var(--d4)) 18%, transparent); color: var(--danger, var(--d4)); font-weight: 700; }
.m-ratio { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 10px; }
.m-ratio li { display: grid; grid-template-columns: 6.5rem 1fr 6.5rem; grid-template-rows: auto auto; column-gap: var(--s-3); align-items: center; font-size: 0.8125rem; }
.m-ratio small { grid-column: 2 / 4; color: var(--m-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.m-ratio b { font-variant-numeric: tabular-nums; text-align: right; }
.m-ratio-bar { height: 8px; background: color-mix(in srgb, var(--m-muted) 12%, transparent); }
.m-ratio-bar i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--d1); }
.m-spoof { display: grid; gap: var(--s-3); }
.m-spoof .m-read { margin: 4px 0 0; }
