/* Generated by scripts/build_tokens_css.py from core/design/design-tokens.json.
   Do not edit by hand: change the design system, copy its tokens.json, rebuild. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable.5cbb57cc7848.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable-ext.edaf1ca6c3ea.woff2") format("woff2");
  unicode-range: U+01A0-01A1, U+01AF-01B0, U+0300-0304, U+0308-0309, U+0323, U+0374-0376, U+037A-037F, U+0384-038A, U+038C, U+038E-0393, U+0395-03A1, U+03A4-03BB, U+03BD-03D7, U+03DC-03DD, U+03F0-03F6, U+03F9-03FA, U+03FC-0479, U+0480-049D, U+04A0-04FF, U+052F, U+1EA0-1EF9;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.4cc7b4398540.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --canvas: #0e0d12;
  --surface: #1d1c25;
  --surface-raised: #26252f;
  --hairline: #2e2c37;
  --card-edge: #383541;
  --ghost-edge: #383541;
  --skeleton: #2e2c37;
  --border-strong: #77738a;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ground: #0e0d12;
  --ink: #ecebef;
  --ink-muted: #a3a0ad;
  --link: #b9b0f3;
  --you: #9d90f2;
  --violet: #9d90f2;
  --violet-strong: #b9b0f3;
  --violet-ink: #b9b0f3;
  --violet-deep: #8a70b8;
  --violet-pale: #cdc6f6;
  --violet-split: #7a5eb4;
  --violet-tint: rgba(157,144,242,0.13);
  --violet-tint-strong: #393652;
  --units: #8a70b8;
  --promo: #a89a80;
  --promo-soft: rgba(201,185,157,0.08);
  --promo-ink: #d9c9a8;
  --sand-ink: #d9c9a8;
  --type-own: #9d90f2;
  --type-seasonal: #a89a80;
  --type-store-sale: #d96aa9;
  --type-store-sale-soft: rgba(217,106,169,0.10);
  --type-steam-fest: #7fd6bd;
  --type-steam-fest-ink: #7fd6bd;
  --type-event: #22d3ee;
  --event: #22d3ee;
  --event-creators: #c6f432;
  --event-soft: rgba(34,211,238,0.10);
  --on-fest: #121117;
  --peer-line: #807c89;
  --dlc-other: #807c89;
  --parts-other: #6e6e75;
  --source-1: var(--you);
  --source-2: #b14e5b;
  --source-3: #cd6c0e;
  --source-4: #78b148;
  --source-5: #71a7d3;
  --source-6: #90753d;
  --source-dq: #118e97;
  --peer-band: rgba(160,156,170,0.14);
  --peer-band-outer: rgba(160,156,170,0.07);
  --fjord: #0179a3;
  --fjord-ink: #5aaed8;
  --good: #5cb88a;
  --good-ink: #5cb88a;
  --warning: #d9a54e;
  --warning-ink: #d9a54e;
  --critical: #e5806a;
  --critical-ink: #e5806a;
  --critical-bar: #b14c35;
  --status-soft: rgba(236,235,239,0.06);
  --focus: #9d90f2;
  --primary: #9d90f2;
  --on-primary: #121117;
  --primary-hover: #b9b0f3;
  --halo: rgba(157,144,242,0.30);
  --metal: linear-gradient(115deg, #cfcae6 0%, #a49ccd 38%, #e4e0f3 55%, #9c94c6 100%);
  --on-metal: #121117;
  --foil: linear-gradient(115deg, #cfcae6 0%, #a49ccd 38%, #e4e0f3 55%, #9c94c6 100%);
  --metal-text: #ecebef;
  --metal-edge: linear-gradient(#383541, #383541);
  --metal-edge-soft: linear-gradient(#2e2c37, #2e2c37);
  --glow: rgba(0,0,0,0);
  --glow-soft: rgba(0,0,0,0);
  --metal-sand: #383541;
  --metal-ice: #383541;
  --metal-edge-sand: linear-gradient(#383541, #383541);
  --metal-edge-ice: linear-gradient(#383541, #383541);
  --glow-sand: rgba(0,0,0,0);
  --glow-sand-soft: rgba(0,0,0,0);
  --glow-ice: rgba(0,0,0,0);
  --glow-ice-soft: rgba(0,0,0,0);
  --ice-ink: #a3a0ad;
  --rose-gold: #9d90f2;
  --rose-gold-soft: rgba(157,144,242,0.13);
  --rose-gold-sheen: #e4e0f3;
  --rose-gold-ink: #b9b0f3;
  --on-rose-gold: #121117;
  --champagne: #a3a0ad;
  --pearl: #a3a0ad;
  --pewter: #807c89;
  --person-rule: var(--pearl);
  --series-1: #9d90f2;
  --series-2: #8a70b8;
  --series-3: #cdc6f6;
  --series-4: #0179a3;
  --series-5: #807c89;
  --series-6: #a89a80;
  --seq-1: #2a2459;
  --seq-2: #3d3384;
  --seq-3: #5a4db3;
  --seq-4: #7a6dd6;
  --seq-5: #9d90f2;
  --seq-6: #cdc6f6;
  --div-above-strong: #5cb88a;
  --div-above: #1f4a36;
  --div-mid: #2e2c37;
  --div-below: #55322a;
  --div-below-strong: #e5806a;
  --glass-chrome: rgba(29,28,37,0.75);
  --glass-edge: rgba(255,255,255,0.10);
  --glass-highlight: rgba(255,255,255,0.14);
  --glass-shadow: rgba(0,0,0,0.40);
  --ink-muted-glass: #bab7c3;
  --link-glass: #cdc6f6;
  --chrome-glass: rgba(24,20,38,0.78);
  --chrome-edge: rgba(168,153,255,0.22);
  --chrome-highlight: rgba(203,194,255,0.16);
  --chrome-ink: #f0eef8;
  --chrome-ink-muted: #c4bfd6;
  --chrome-link: #d2caff;
  --chrome-selected-fill: #3b3168;
  --chrome-selected-ink: #ddd6ff;
  --chrome-selected-bar: #a899ff;
  --chrome-group-fill: rgba(168,153,255,0.16);
  --chrome-group-ink: #f3f1fa;
  --chrome-pv-line: #a899ff;
  --chrome-halo: rgba(168,153,255,0.45);
  --chrome-count-border: #a899ff;
  --chrome-count-ink: #d2caff;
  --chrome-hover-fill: #2a2440;
  --chrome-hover-line: #8a72f0;
  --chrome-notes-count-fill: #a89a80;
  --chrome-on-notes-count: #121117;
  --good-soft: rgba(92,184,138,0.12);
  --critical-soft: rgba(229,128,106,0.12);
  --avg-line: #cdc6f6;
  --shadow-card: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.40);
  --shadow-pop: 0 12px 32px rgba(0,0,0,0.55);
  --shadow-focus: 0 0 0 6px rgba(157,144,242,0.14), 0 0 18px rgba(157,144,242,0.22);
  --chrome-selected-glow: 0 0 0 1px #a899ff, 0 0 18px -2px rgba(168,153,255,0.45);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-endorse: "Inter", system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --z-content: 1;
  --z-sticky: 30;
  --z-menu: 40;
  --z-tooltip: 50;
  --z-dialog: 60;
  --layout-content-max: 1920px;
  --layout-page-max: 1536px;
  --layout-gutter: 40px;
  --layout-measure: 58ch;
  --layout-list-measure: 60ch;
  --layout-table-name: 320px;
  --layout-table-col: 200px;
  --layout-table-cap-base: 360px;
  --layout-block-max: 1440px;
  --layout-narrow: 760px;
  --layout-chart-height: clamp(300px, 25cqi, 460px);
  --layout-chart-height-short: clamp(220px, 25cqi, 340px);
  --layout-table-name-from: 1200px;
  --layout-split-at: 1300px;
  --layout-side: 232px;
  --layout-side-wide: 256px;
  --layout-side-wide-from: 1440px;
  --layout-side-folded: 64px;
  --type-display-xl-size: 60px;
  --type-display-xl-line: 64px;
  --type-display-xl-weight: 500;
  --type-display-xl-tracking: -0.035em;
  --type-display-size: 44px;
  --type-display-line: 48px;
  --type-display-weight: 500;
  --type-display-tracking: -0.03em;
  --type-figure-xl-size: 28px;
  --type-figure-xl-line: 34px;
  --type-figure-xl-weight: 560;
  --type-figure-xl-tracking: -0.025em;
  --type-page-title-size: 28px;
  --type-page-title-line: 34px;
  --type-page-title-weight: 600;
  --type-page-title-tracking: -0.015em;
  --type-metric-heading-size: 20px;
  --type-metric-heading-line: 26px;
  --type-metric-heading-weight: 600;
  --type-metric-heading-tracking: -0.01em;
  --type-heading-size: 16px;
  --type-heading-line: 22px;
  --type-heading-weight: 600;
  --type-reading-size: 16px;
  --type-reading-line: 26px;
  --type-reading-weight: 400;
  --type-nav-size: 15px;
  --type-nav-line: 20px;
  --type-nav-weight: 400;
  --type-nav-group-size: 13px;
  --type-nav-group-line: 20px;
  --type-nav-group-weight: 700;
  --type-body-size: 14px;
  --type-body-line: 22px;
  --type-body-weight: 400;
  --type-figure-size: 14px;
  --type-figure-line: 22px;
  --type-figure-weight: 500;
  --type-body-sm-size: 13px;
  --type-body-sm-line: 20px;
  --type-body-sm-weight: 400;
  --type-label-size: 12px;
  --type-label-line: 16px;
  --type-label-weight: 500;
  --type-label-tracking: 0;
  --type-meta-size: 12px;
  --type-meta-line: 16px;
  --type-meta-weight: 400;
  --type-endorse-size: 12px;
  --type-endorse-line: 16px;
  --type-endorse-weight: 600;
  --type-endorse-tracking: 0.18em;
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #eeedf6;
  --surface: #ffffff;
  --surface-raised: #faf9fd;
  --hairline: #e4e2ee;
  --card-edge: #dad7e7;
  --ghost-edge: #c9c5da;
  --skeleton: #d2cee0;
  --border-strong: #85819a;
  --grain: none;
  --ground: #eeedf6;
  --ink: #17161c;
  --ink-muted: #5f5b68;
  --link: #4a3cab;
  --you: #5b4bc4;
  --violet: #5b4bc4;
  --violet-strong: #4a3cab;
  --violet-ink: #4a3cab;
  --violet-deep: #33287f;
  --violet-pale: #9479b4;
  --violet-split: #33287f;
  --violet-tint: #ece9f8;
  --violet-tint-strong: #dbd7f2;
  --units: #33287f;
  --promo: #8a7a62;
  --promo-soft: #f4efe5;
  --promo-ink: #7a6648;
  --sand-ink: #7a6648;
  --type-own: #5b4bc4;
  --type-seasonal: #8a6410;
  --type-store-sale: #9c2668;
  --type-store-sale-soft: rgba(156,38,104,0.10);
  --type-steam-fest: #23966f;
  --type-steam-fest-ink: #1b7a5a;
  --type-event: #0e7490;
  --event: #0e7490;
  --event-creators: #7a8800;
  --event-soft: rgba(14,116,144,0.08);
  --on-fest: #17161c;
  --peer-line: #7f7b88;
  --dlc-other: #5b5767;
  --parts-other: #5c5c63;
  --source-2: #d0727b;
  --source-3: #6f3a04;
  --source-4: #4b7638;
  --source-5: #054670;
  --source-6: #a78d36;
  --source-dq: #119ca6;
  --peer-band: rgba(127,123,136,0.15);
  --peer-band-outer: rgba(127,123,136,0.07);
  --fjord: #01668d;
  --fjord-ink: #01668d;
  --good: #2f7d57;
  --good-ink: #286f4d;
  --warning: #8a5c00;
  --warning-ink: #825500;
  --critical: #b4442f;
  --critical-ink: #a73f2b;
  --critical-bar: #7f2e1f;
  --status-soft: rgba(23,22,28,0.05);
  --focus: #5b4bc4;
  --primary: #4a3cab;
  --on-primary: #ffffff;
  --primary-hover: #33287f;
  --halo: rgba(0,0,0,0);
  --metal: #5b4bc4;
  --on-metal: #ffffff;
  --foil: linear-gradient(90deg, #8a7a62, #c9b99d 50%, #8a7a62);
  --metal-text: #17161c;
  --metal-edge: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-soft: linear-gradient(#e4e2ee, #e4e2ee);
  --glow: rgba(0,0,0,0);
  --glow-soft: rgba(0,0,0,0);
  --metal-sand: #dad7e7;
  --metal-ice: #dad7e7;
  --metal-edge-sand: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-ice: linear-gradient(#dad7e7, #dad7e7);
  --glow-sand: rgba(0,0,0,0);
  --glow-sand-soft: rgba(0,0,0,0);
  --glow-ice: rgba(0,0,0,0);
  --glow-ice-soft: rgba(0,0,0,0);
  --ice-ink: #5f5b68;
  --rose-gold: #5b4bc4;
  --rose-gold-soft: #ece9f8;
  --rose-gold-sheen: #ece9f8;
  --rose-gold-ink: #4a3cab;
  --on-rose-gold: #ffffff;
  --champagne: #5f5b68;
  --pearl: #5f5b68;
  --pewter: #7f7b88;
  --series-1: #5b4bc4;
  --series-2: #33287f;
  --series-3: #9479b4;
  --series-4: #01668d;
  --series-5: #7f7b88;
  --series-6: #8a7a62;
  --seq-1: #ece9f8;
  --seq-2: #cdc6f6;
  --seq-3: #a99ff0;
  --seq-4: #7a6dd6;
  --seq-5: #5b4bc4;
  --seq-6: #33287f;
  --div-above-strong: #2f7d57;
  --div-above: #d3eadd;
  --div-mid: #e4e2ee;
  --div-below: #f3d9d2;
  --div-below-strong: #b4442f;
  --glass-chrome: rgba(255,255,255,0.75);
  --glass-edge: rgba(255,255,255,0.75);
  --glass-highlight: rgba(255,255,255,0.95);
  --glass-shadow: rgba(44,36,110,0.10);
  --ink-muted-glass: #4d4956;
  --link-glass: #3b2f96;
  --chrome-glass: rgba(251,249,255,0.78);
  --chrome-edge: rgba(90,59,224,0.18);
  --chrome-highlight: rgba(255,255,255,0.95);
  --chrome-ink: #140f22;
  --chrome-ink-muted: #463f5e;
  --chrome-link: #3a22b0;
  --chrome-selected-fill: #e1d9ff;
  --chrome-selected-ink: #3a22b0;
  --chrome-selected-bar: #5a3be0;
  --chrome-group-fill: #ebe6ff;
  --chrome-group-ink: #140f22;
  --chrome-pv-line: #5a3be0;
  --chrome-halo: rgba(0,0,0,0);
  --chrome-count-border: #5a3be0;
  --chrome-count-ink: #3a22b0;
  --chrome-hover-fill: #f3f0ff;
  --chrome-hover-line: #8a72f0;
  --chrome-notes-count-fill: #7a6648;
  --chrome-on-notes-count: #ffffff;
  --good-soft: rgba(47,125,87,0.10);
  --critical-soft: rgba(180,68,47,0.10);
  --avg-line: #9479b4;
  --shadow-card: 0 1px 2px rgba(23,22,28,0.06), 0 1px 0 rgba(23,22,28,0.04);
  --shadow-pop: 0 12px 32px rgba(23,22,28,0.14);
  --shadow-focus: none;
  --chrome-selected-glow: 0 0 0 1px #5a3be0, 0 4px 14px rgba(90,59,224,0.20);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
  color-scheme: light;
  --canvas: #eeedf6;
  --surface: #ffffff;
  --surface-raised: #faf9fd;
  --hairline: #e4e2ee;
  --card-edge: #dad7e7;
  --ghost-edge: #c9c5da;
  --skeleton: #d2cee0;
  --border-strong: #85819a;
  --grain: none;
  --ground: #eeedf6;
  --ink: #17161c;
  --ink-muted: #5f5b68;
  --link: #4a3cab;
  --you: #5b4bc4;
  --violet: #5b4bc4;
  --violet-strong: #4a3cab;
  --violet-ink: #4a3cab;
  --violet-deep: #33287f;
  --violet-pale: #9479b4;
  --violet-split: #33287f;
  --violet-tint: #ece9f8;
  --violet-tint-strong: #dbd7f2;
  --units: #33287f;
  --promo: #8a7a62;
  --promo-soft: #f4efe5;
  --promo-ink: #7a6648;
  --sand-ink: #7a6648;
  --type-own: #5b4bc4;
  --type-seasonal: #8a6410;
  --type-store-sale: #9c2668;
  --type-store-sale-soft: rgba(156,38,104,0.10);
  --type-steam-fest: #23966f;
  --type-steam-fest-ink: #1b7a5a;
  --type-event: #0e7490;
  --event: #0e7490;
  --event-creators: #7a8800;
  --event-soft: rgba(14,116,144,0.08);
  --on-fest: #17161c;
  --peer-line: #7f7b88;
  --dlc-other: #5b5767;
  --parts-other: #5c5c63;
  --source-2: #d0727b;
  --source-3: #6f3a04;
  --source-4: #4b7638;
  --source-5: #054670;
  --source-6: #a78d36;
  --source-dq: #119ca6;
  --peer-band: rgba(127,123,136,0.15);
  --peer-band-outer: rgba(127,123,136,0.07);
  --fjord: #01668d;
  --fjord-ink: #01668d;
  --good: #2f7d57;
  --good-ink: #286f4d;
  --warning: #8a5c00;
  --warning-ink: #825500;
  --critical: #b4442f;
  --critical-ink: #a73f2b;
  --critical-bar: #7f2e1f;
  --status-soft: rgba(23,22,28,0.05);
  --focus: #5b4bc4;
  --primary: #4a3cab;
  --on-primary: #ffffff;
  --primary-hover: #33287f;
  --halo: rgba(0,0,0,0);
  --metal: #5b4bc4;
  --on-metal: #ffffff;
  --foil: linear-gradient(90deg, #8a7a62, #c9b99d 50%, #8a7a62);
  --metal-text: #17161c;
  --metal-edge: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-soft: linear-gradient(#e4e2ee, #e4e2ee);
  --glow: rgba(0,0,0,0);
  --glow-soft: rgba(0,0,0,0);
  --metal-sand: #dad7e7;
  --metal-ice: #dad7e7;
  --metal-edge-sand: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-ice: linear-gradient(#dad7e7, #dad7e7);
  --glow-sand: rgba(0,0,0,0);
  --glow-sand-soft: rgba(0,0,0,0);
  --glow-ice: rgba(0,0,0,0);
  --glow-ice-soft: rgba(0,0,0,0);
  --ice-ink: #5f5b68;
  --rose-gold: #5b4bc4;
  --rose-gold-soft: #ece9f8;
  --rose-gold-sheen: #ece9f8;
  --rose-gold-ink: #4a3cab;
  --on-rose-gold: #ffffff;
  --champagne: #5f5b68;
  --pearl: #5f5b68;
  --pewter: #7f7b88;
  --series-1: #5b4bc4;
  --series-2: #33287f;
  --series-3: #9479b4;
  --series-4: #01668d;
  --series-5: #7f7b88;
  --series-6: #8a7a62;
  --seq-1: #ece9f8;
  --seq-2: #cdc6f6;
  --seq-3: #a99ff0;
  --seq-4: #7a6dd6;
  --seq-5: #5b4bc4;
  --seq-6: #33287f;
  --div-above-strong: #2f7d57;
  --div-above: #d3eadd;
  --div-mid: #e4e2ee;
  --div-below: #f3d9d2;
  --div-below-strong: #b4442f;
  --glass-chrome: rgba(255,255,255,0.75);
  --glass-edge: rgba(255,255,255,0.75);
  --glass-highlight: rgba(255,255,255,0.95);
  --glass-shadow: rgba(44,36,110,0.10);
  --ink-muted-glass: #4d4956;
  --link-glass: #3b2f96;
  --chrome-glass: rgba(251,249,255,0.78);
  --chrome-edge: rgba(90,59,224,0.18);
  --chrome-highlight: rgba(255,255,255,0.95);
  --chrome-ink: #140f22;
  --chrome-ink-muted: #463f5e;
  --chrome-link: #3a22b0;
  --chrome-selected-fill: #e1d9ff;
  --chrome-selected-ink: #3a22b0;
  --chrome-selected-bar: #5a3be0;
  --chrome-group-fill: #ebe6ff;
  --chrome-group-ink: #140f22;
  --chrome-pv-line: #5a3be0;
  --chrome-halo: rgba(0,0,0,0);
  --chrome-count-border: #5a3be0;
  --chrome-count-ink: #3a22b0;
  --chrome-hover-fill: #f3f0ff;
  --chrome-hover-line: #8a72f0;
  --chrome-notes-count-fill: #7a6648;
  --chrome-on-notes-count: #ffffff;
  --good-soft: rgba(47,125,87,0.10);
  --critical-soft: rgba(180,68,47,0.10);
  --avg-line: #9479b4;
  --shadow-card: 0 1px 2px rgba(23,22,28,0.06), 0 1px 0 rgba(23,22,28,0.04);
  --shadow-pop: 0 12px 32px rgba(23,22,28,0.14);
  --shadow-focus: none;
  --chrome-selected-glow: 0 0 0 1px #5a3be0, 0 4px 14px rgba(90,59,224,0.20);
  }
}

@media print {
  :root {
  color-scheme: light;
  --canvas: #eeedf6;
  --surface: #ffffff;
  --surface-raised: #faf9fd;
  --hairline: #e4e2ee;
  --card-edge: #dad7e7;
  --ghost-edge: #c9c5da;
  --skeleton: #d2cee0;
  --border-strong: #85819a;
  --grain: none;
  --ground: #eeedf6;
  --ink: #17161c;
  --ink-muted: #5f5b68;
  --link: #4a3cab;
  --you: #5b4bc4;
  --violet: #5b4bc4;
  --violet-strong: #4a3cab;
  --violet-ink: #4a3cab;
  --violet-deep: #33287f;
  --violet-pale: #9479b4;
  --violet-split: #33287f;
  --violet-tint: #ece9f8;
  --violet-tint-strong: #dbd7f2;
  --units: #33287f;
  --promo: #8a7a62;
  --promo-soft: #f4efe5;
  --promo-ink: #7a6648;
  --sand-ink: #7a6648;
  --type-own: #5b4bc4;
  --type-seasonal: #8a6410;
  --type-store-sale: #9c2668;
  --type-store-sale-soft: rgba(156,38,104,0.10);
  --type-steam-fest: #23966f;
  --type-steam-fest-ink: #1b7a5a;
  --type-event: #0e7490;
  --event: #0e7490;
  --event-creators: #7a8800;
  --event-soft: rgba(14,116,144,0.08);
  --on-fest: #17161c;
  --peer-line: #7f7b88;
  --dlc-other: #5b5767;
  --parts-other: #5c5c63;
  --source-2: #d0727b;
  --source-3: #6f3a04;
  --source-4: #4b7638;
  --source-5: #054670;
  --source-6: #a78d36;
  --source-dq: #119ca6;
  --peer-band: rgba(127,123,136,0.15);
  --peer-band-outer: rgba(127,123,136,0.07);
  --fjord: #01668d;
  --fjord-ink: #01668d;
  --good: #2f7d57;
  --good-ink: #286f4d;
  --warning: #8a5c00;
  --warning-ink: #825500;
  --critical: #b4442f;
  --critical-ink: #a73f2b;
  --critical-bar: #7f2e1f;
  --status-soft: rgba(23,22,28,0.05);
  --focus: #5b4bc4;
  --primary: #4a3cab;
  --on-primary: #ffffff;
  --primary-hover: #33287f;
  --halo: rgba(0,0,0,0);
  --metal: #5b4bc4;
  --on-metal: #ffffff;
  --foil: linear-gradient(90deg, #8a7a62, #c9b99d 50%, #8a7a62);
  --metal-text: #17161c;
  --metal-edge: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-soft: linear-gradient(#e4e2ee, #e4e2ee);
  --glow: rgba(0,0,0,0);
  --glow-soft: rgba(0,0,0,0);
  --metal-sand: #dad7e7;
  --metal-ice: #dad7e7;
  --metal-edge-sand: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-ice: linear-gradient(#dad7e7, #dad7e7);
  --glow-sand: rgba(0,0,0,0);
  --glow-sand-soft: rgba(0,0,0,0);
  --glow-ice: rgba(0,0,0,0);
  --glow-ice-soft: rgba(0,0,0,0);
  --ice-ink: #5f5b68;
  --rose-gold: #5b4bc4;
  --rose-gold-soft: #ece9f8;
  --rose-gold-sheen: #ece9f8;
  --rose-gold-ink: #4a3cab;
  --on-rose-gold: #ffffff;
  --champagne: #5f5b68;
  --pearl: #5f5b68;
  --pewter: #7f7b88;
  --series-1: #5b4bc4;
  --series-2: #33287f;
  --series-3: #9479b4;
  --series-4: #01668d;
  --series-5: #7f7b88;
  --series-6: #8a7a62;
  --seq-1: #ece9f8;
  --seq-2: #cdc6f6;
  --seq-3: #a99ff0;
  --seq-4: #7a6dd6;
  --seq-5: #5b4bc4;
  --seq-6: #33287f;
  --div-above-strong: #2f7d57;
  --div-above: #d3eadd;
  --div-mid: #e4e2ee;
  --div-below: #f3d9d2;
  --div-below-strong: #b4442f;
  --glass-chrome: rgba(255,255,255,0.75);
  --glass-edge: rgba(255,255,255,0.75);
  --glass-highlight: rgba(255,255,255,0.95);
  --glass-shadow: rgba(44,36,110,0.10);
  --ink-muted-glass: #4d4956;
  --link-glass: #3b2f96;
  --chrome-glass: rgba(251,249,255,0.78);
  --chrome-edge: rgba(90,59,224,0.18);
  --chrome-highlight: rgba(255,255,255,0.95);
  --chrome-ink: #140f22;
  --chrome-ink-muted: #463f5e;
  --chrome-link: #3a22b0;
  --chrome-selected-fill: #e1d9ff;
  --chrome-selected-ink: #3a22b0;
  --chrome-selected-bar: #5a3be0;
  --chrome-group-fill: #ebe6ff;
  --chrome-group-ink: #140f22;
  --chrome-pv-line: #5a3be0;
  --chrome-halo: rgba(0,0,0,0);
  --chrome-count-border: #5a3be0;
  --chrome-count-ink: #3a22b0;
  --chrome-hover-fill: #f3f0ff;
  --chrome-hover-line: #8a72f0;
  --chrome-notes-count-fill: #7a6648;
  --chrome-on-notes-count: #ffffff;
  --good-soft: rgba(47,125,87,0.10);
  --critical-soft: rgba(180,68,47,0.10);
  --avg-line: #9479b4;
  --shadow-card: 0 1px 2px rgba(23,22,28,0.06), 0 1px 0 rgba(23,22,28,0.04);
  --shadow-pop: 0 12px 32px rgba(23,22,28,0.14);
  --shadow-focus: none;
  --chrome-selected-glow: 0 0 0 1px #5a3be0, 0 4px 14px rgba(90,59,224,0.20);
  }
}

:root:has(:fullscreen) {
  color-scheme: light;
  --canvas: #eeedf6;
  --surface: #ffffff;
  --surface-raised: #faf9fd;
  --hairline: #e4e2ee;
  --card-edge: #dad7e7;
  --ghost-edge: #c9c5da;
  --skeleton: #d2cee0;
  --border-strong: #85819a;
  --grain: none;
  --ground: #eeedf6;
  --ink: #17161c;
  --ink-muted: #5f5b68;
  --link: #4a3cab;
  --you: #5b4bc4;
  --violet: #5b4bc4;
  --violet-strong: #4a3cab;
  --violet-ink: #4a3cab;
  --violet-deep: #33287f;
  --violet-pale: #9479b4;
  --violet-split: #33287f;
  --violet-tint: #ece9f8;
  --violet-tint-strong: #dbd7f2;
  --units: #33287f;
  --promo: #8a7a62;
  --promo-soft: #f4efe5;
  --promo-ink: #7a6648;
  --sand-ink: #7a6648;
  --type-own: #5b4bc4;
  --type-seasonal: #8a6410;
  --type-store-sale: #9c2668;
  --type-store-sale-soft: rgba(156,38,104,0.10);
  --type-steam-fest: #23966f;
  --type-steam-fest-ink: #1b7a5a;
  --type-event: #0e7490;
  --event: #0e7490;
  --event-creators: #7a8800;
  --event-soft: rgba(14,116,144,0.08);
  --on-fest: #17161c;
  --peer-line: #7f7b88;
  --dlc-other: #5b5767;
  --parts-other: #5c5c63;
  --source-2: #d0727b;
  --source-3: #6f3a04;
  --source-4: #4b7638;
  --source-5: #054670;
  --source-6: #a78d36;
  --source-dq: #119ca6;
  --peer-band: rgba(127,123,136,0.15);
  --peer-band-outer: rgba(127,123,136,0.07);
  --fjord: #01668d;
  --fjord-ink: #01668d;
  --good: #2f7d57;
  --good-ink: #286f4d;
  --warning: #8a5c00;
  --warning-ink: #825500;
  --critical: #b4442f;
  --critical-ink: #a73f2b;
  --critical-bar: #7f2e1f;
  --status-soft: rgba(23,22,28,0.05);
  --focus: #5b4bc4;
  --primary: #4a3cab;
  --on-primary: #ffffff;
  --primary-hover: #33287f;
  --halo: rgba(0,0,0,0);
  --metal: #5b4bc4;
  --on-metal: #ffffff;
  --foil: linear-gradient(90deg, #8a7a62, #c9b99d 50%, #8a7a62);
  --metal-text: #17161c;
  --metal-edge: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-soft: linear-gradient(#e4e2ee, #e4e2ee);
  --glow: rgba(0,0,0,0);
  --glow-soft: rgba(0,0,0,0);
  --metal-sand: #dad7e7;
  --metal-ice: #dad7e7;
  --metal-edge-sand: linear-gradient(#dad7e7, #dad7e7);
  --metal-edge-ice: linear-gradient(#dad7e7, #dad7e7);
  --glow-sand: rgba(0,0,0,0);
  --glow-sand-soft: rgba(0,0,0,0);
  --glow-ice: rgba(0,0,0,0);
  --glow-ice-soft: rgba(0,0,0,0);
  --ice-ink: #5f5b68;
  --rose-gold: #5b4bc4;
  --rose-gold-soft: #ece9f8;
  --rose-gold-sheen: #ece9f8;
  --rose-gold-ink: #4a3cab;
  --on-rose-gold: #ffffff;
  --champagne: #5f5b68;
  --pearl: #5f5b68;
  --pewter: #7f7b88;
  --series-1: #5b4bc4;
  --series-2: #33287f;
  --series-3: #9479b4;
  --series-4: #01668d;
  --series-5: #7f7b88;
  --series-6: #8a7a62;
  --seq-1: #ece9f8;
  --seq-2: #cdc6f6;
  --seq-3: #a99ff0;
  --seq-4: #7a6dd6;
  --seq-5: #5b4bc4;
  --seq-6: #33287f;
  --div-above-strong: #2f7d57;
  --div-above: #d3eadd;
  --div-mid: #e4e2ee;
  --div-below: #f3d9d2;
  --div-below-strong: #b4442f;
  --glass-chrome: rgba(255,255,255,0.75);
  --glass-edge: rgba(255,255,255,0.75);
  --glass-highlight: rgba(255,255,255,0.95);
  --glass-shadow: rgba(44,36,110,0.10);
  --ink-muted-glass: #4d4956;
  --link-glass: #3b2f96;
  --chrome-glass: rgba(251,249,255,0.78);
  --chrome-edge: rgba(90,59,224,0.18);
  --chrome-highlight: rgba(255,255,255,0.95);
  --chrome-ink: #140f22;
  --chrome-ink-muted: #463f5e;
  --chrome-link: #3a22b0;
  --chrome-selected-fill: #e1d9ff;
  --chrome-selected-ink: #3a22b0;
  --chrome-selected-bar: #5a3be0;
  --chrome-group-fill: #ebe6ff;
  --chrome-group-ink: #140f22;
  --chrome-pv-line: #5a3be0;
  --chrome-halo: rgba(0,0,0,0);
  --chrome-count-border: #5a3be0;
  --chrome-count-ink: #3a22b0;
  --chrome-hover-fill: #f3f0ff;
  --chrome-hover-line: #8a72f0;
  --chrome-notes-count-fill: #7a6648;
  --chrome-on-notes-count: #ffffff;
  --good-soft: rgba(47,125,87,0.10);
  --critical-soft: rgba(180,68,47,0.10);
  --avg-line: #9479b4;
  --shadow-card: 0 1px 2px rgba(23,22,28,0.06), 0 1px 0 rgba(23,22,28,0.04);
  --shadow-pop: 0 12px 32px rgba(23,22,28,0.14);
  --shadow-focus: none;
  --chrome-selected-glow: 0 0 0 1px #5a3be0, 0 4px 14px rgba(90,59,224,0.20);
}

/* PeerLight app styles, Black Metallic. Every value comes from tokens.css
   (generated from the design system); component classes follow the design
   system's bundle.css names (pl-*). Product specs: 01 §5–6, 02 §2–3. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line);
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.pl-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.pl-num, table, .pl-stat__value { font-variant-numeric: tabular-nums; }
.pl-muted { color: var(--ink-muted); }
svg.pl-icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* --- Logo ---------------------------------------------------------------- */
/* The lockup (design sheet v3.1): the lens, "PeerLight" in Inter 650, and "Powered by Rekoup"
   under it as live text at the scale's smallest size (12 px), never smaller. */
.pl-lockup { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.pl-lockup img { display: block; height: 24px; width: auto; }
.pl-lockup__text { display: grid; }
.pl-word { font: 650 var(--type-heading-size)/20px var(--font-sans); letter-spacing: -0.01em; }
.pl-endorse {
  font: var(--type-endorse-weight) var(--type-endorse-size)/var(--type-endorse-line) var(--font-endorse);
  letter-spacing: var(--type-endorse-tracking); text-transform: uppercase; color: var(--ink-muted); white-space: nowrap;
}
.pl-mark-light { display: none !important; }
[data-theme="light"] .pl-mark-light { display: block !important; }
[data-theme="light"] .pl-mark-dark { display: none !important; }

/* --- Type ---------------------------------------------------------------- */
/* Eyebrows are sentence case with no tracking everywhere (the sheet retires uppercase eyebrows; the
   only tracked capitals left are the POWERED BY REKOUP endorsement). One rule, no per-page copies. */
.pl-eyebrow, .pl-label {
  font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking); color: var(--ink-muted);
}
.pl-eyebrow { text-transform: none; letter-spacing: 0; }
.pl-label { text-transform: none; letter-spacing: 0; }
.pl-meta { font: 400 var(--type-meta-size)/var(--type-meta-line) var(--font-mono); color: var(--ink-muted); }
.pl-page-title { font-size: var(--type-page-title-size); line-height: var(--type-page-title-line); font-weight: var(--type-page-title-weight); }
.pl-heading { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 500; }
.pl-body-sm { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* --- Buttons, inputs ----------------------------------------------------- */
.pl-btn {
  font: 500 var(--type-body-sm-size)/20px var(--font-sans); letter-spacing: .02em; border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4); border: 1px solid transparent; cursor: pointer;
  display: inline-flex; gap: var(--space-2); align-items: center; text-decoration: none;
}
.pl-btn--primary { background: var(--primary); color: var(--on-primary); }
/* The one action a studio should spot first on a page (e.g. "+ Add a campaign"). */
.pl-btn--accent { background: var(--rose-gold); color: var(--on-rose-gold); font-weight: 600; }
.pl-btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.pl-btn--quiet { background: transparent; color: var(--link); padding-inline: 0; }
.pl-btn--small { padding: 2px var(--space-3); font-size: var(--type-label-size); }
/* Locked (decision 31, sheet v3.9 "Buttons: unavailable"): a button locked for a reason
   other than a form is <button aria-disabled="true">, one flat look in every position: no
   fill or edge, ink-muted, a 14 px lock (aria-hidden; the cue besides colour, WCAG 1.4.1),
   not-allowed, hover changes nothing. It keeps its tab stop and focus ring; its reason line
   (.pl-why, always visible) is its description. The faded look is retired. */
.pl-btn[aria-disabled="true"], .pl-btn[aria-disabled="true"]:hover { background: none; border-color: transparent; box-shadow: none; color: var(--ink-muted); cursor: not-allowed; text-decoration: none; }
.pl-btn[aria-disabled="true"] svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-why { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-why a { color: var(--link); }
/* Field errors, every form (sheet v3.6/3.7 Forms): 12 px critical-ink with a triangle, under the
   input (core/forms.py and the sign-in fields put them there). The triangle is decoration, so it
   is hidden from screen readers (the alt text after the slash is empty). */
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--critical-ink); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.errorlist li, p.errorlist { display: flex; gap: 6px; align-items: baseline; }
.errorlist li::before, p.errorlist::before { content: "\25B2" / ""; flex: none; }
.errorlist.nonfield { margin: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--critical); box-shadow: inset 0 0 0 1px var(--critical); }
.pl-input, .pl-select, select, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="search"], textarea {
  font: 400 var(--type-body-size)/20px var(--font-sans); color: var(--ink); background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 6px 10px;
}

/* --- Tags and chips ------------------------------------------------------ */
/* Card tags ("Private · only you", "Demo data", a source) read as written, in sentence case, with no
   tracking (decision 35, 2026-10-25); the outline and the icon stay. */
.pl-tag {
  font: 500 var(--type-label-size)/16px var(--font-sans); letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); color: var(--ink-muted); text-decoration: none; white-space: nowrap;
}
.pl-tag svg { width: 16px; height: 12px; }
.pl-tag--estimate { border-style: dashed; }
.pl-chip {
  font: 400 var(--type-label-size)/18px var(--font-sans); display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: var(--radius-sm); background: var(--status-soft); color: var(--ink);
}
.pl-chip svg { width: 14px; height: 14px; flex: none; }
.pl-chip--good svg { color: var(--good); } .pl-chip--good b { color: var(--good-ink); }
.pl-chip--warning svg { color: var(--warning); } .pl-chip--warning b { color: var(--warning-ink); }
.pl-chip--critical svg { color: var(--critical); } .pl-chip--critical b { color: var(--critical-ink); }
.pl-chip--muted { color: var(--ink-muted); }
.pl-chip b { font-weight: 500; }
.pl-div { font: 400 var(--type-label-size)/18px var(--font-sans); padding: 1px 8px; border-radius: var(--radius-sm); color: var(--ink); white-space: nowrap; }
.pl-div--above-strong { background: var(--div-above-strong); color: var(--canvas); }
.pl-div--above { background: var(--div-above); }
.pl-div--mid { background: var(--div-mid); }
.pl-div--below { background: var(--div-below); }
.pl-div--below-strong { background: var(--div-below-strong); color: var(--canvas); }

/* --- Cards and stat cards ------------------------------------------------ */
.pl-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-5); min-width: 0; }
.pl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
/* KPI card (design sheet v3.1): label · value · change against a named basis · meaning. No
   underline: the shine budget allows none on data (UX note on #341). */
.pl-stat { display: grid; gap: var(--space-1); align-content: start; position: relative; }
.pl-stat--public { border-style: dashed; }
.pl-stat__value { font: var(--type-figure-xl-weight) var(--type-figure-xl-size)/var(--type-figure-xl-line) var(--font-sans); font-variant-numeric: tabular-nums; }
.pl-stat__value--words { font-size: 20px; line-height: 28px; }
.pl-stat__delta { font: 400 var(--type-body-sm-size)/20px var(--font-sans); color: var(--ink-muted); }
.pl-stat__delta b { color: var(--ink); font-weight: 500; }
.pl-stat--lit { background: var(--rose-gold); border-color: var(--rose-gold); color: var(--on-rose-gold); }
.pl-stat--lit .pl-eyebrow, .pl-stat--lit .pl-stat__delta, .pl-stat--lit .pl-meta, .pl-stat--lit .pl-stat__delta b { color: var(--on-rose-gold); }
/* Labelled stat rows (Revenue & units mock-up v1): one colour per row's under-line. */
.pl-row-label { display: flex; align-items: center; gap: 10px; margin: var(--space-5) 0 10px; font: 500 var(--type-body-sm-size)/20px var(--font-sans); color: var(--ink); }
.pl-row-label:first-child { margin-top: 0; }
.pl-row-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.pl-row-label small { font: 400 var(--type-label-size)/16px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.pl-stats--row { gap: 12px; }
.pl-stats--row + .pl-stats--row { margin-top: 12px; }
.pl-stat__delta .pl-up { color: var(--good-ink); }
.pl-stat__delta .pl-down { color: var(--critical-ink); }
.pl-share { display: inline-block; margin-left: 6px; font: 500 var(--type-label-size)/16px var(--font-sans); color: var(--rose-gold-ink); }
.pl-sharebar { display: block; margin: 2px 0 4px; height: 4px; background: var(--surface-raised); border-radius: 2px; overflow: hidden; }
.pl-sharebar i { display: block; height: 100%; background: var(--rose-gold); }
.pl-insight--meaning { margin-top: 14px; }
.pl-insight--meaning h4 { font-size: 15px; line-height: 22px; margin-top: 2px; }
.pl-insight--meaning p { font-size: var(--type-body-sm-size); }

/* Event chips on a timeline (Revenue & units mock-up v1): pressed = shown on the chart. */
.pl-event-chip { font: 400 var(--type-label-size)/18px var(--font-sans); display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: transparent; color: var(--ink-muted); cursor: pointer; }
.pl-event-chip[aria-pressed="true"] { border-color: var(--champagne); background: var(--rose-gold-soft); color: var(--ink); }
.pl-legend .pl-event-chip i { display: inline-block; width: 10px; height: 10px; }
.pl-legend .pl-event-chip--discount i { width: 12px; background: var(--promo-soft); border: 1.5px dashed var(--promo); }
.pl-legend .pl-event-chip--seasonal i { background: var(--peer-band); border: 1px solid var(--pewter); }
.pl-legend .pl-event-chip--festival i { background: var(--peer-band); border: 1px dotted var(--peer-line); }
.pl-legend .pl-event-chip--change i { background: var(--pearl); transform: rotate(45deg) scale(.8); }
.pl-legend .pl-event-chip--news i { background: var(--champagne); border-radius: 50%; }

/* Period control (Countries, Bundles): segment buttons plus From–To for Custom. */
.pl-period { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.pl-period__dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-period__dates input { font-size: var(--type-label-size); padding: 4px 8px; }
.pl-period [data-pl-custom-only] { display: none; }

/* A/B comparison (mock-up v1): A is always violet, B always sand. */
:root { --ab-a: var(--you); --ab-b: var(--units); } /* A violet, B the calm sand (2026-10-22) */
.pl-ab__pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pl-ab__picker { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid; border-radius: var(--radius-md); padding: 12px 14px; display: grid; gap: 8px; }
.pl-ab__picker--a { border-left-color: var(--ab-a); background: linear-gradient(90deg, color-mix(in srgb, var(--ab-a) 14%, transparent), var(--surface) 40%); }
.pl-ab__picker--b { border-left-color: var(--ab-b); background: linear-gradient(90deg, color-mix(in srgb, var(--ab-b) 16%, transparent), var(--surface) 40%); }
.pl-ab__head { display: flex; align-items: center; gap: 10px; font: 500 var(--type-body-sm-size)/18px var(--font-sans); }
.pl-ab__fields { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-ab__fields input, .pl-ab__fields select { font-size: var(--type-label-size); padding: 4px 8px; }
.pl-ab__badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font: 600 var(--type-label-size)/1 var(--font-sans); color: #0b0b0a; flex: none; }
.pl-ab__badge--small { width: 18px; height: 18px; font-size: var(--type-label-size); }
.pl-ab__badge--a { background: var(--ab-a); } .pl-ab__badge--b { background: var(--ab-b); }
.pl-ab__seg label { font: 400 var(--type-label-size)/16px var(--font-sans); color: var(--ink-muted); padding: 5px 12px; border-radius: var(--radius-pill); cursor: pointer; }
.pl-ab__seg label:focus-within { outline: 2px solid var(--focus, var(--champagne)); }
.pl-ab__va { color: var(--ab-a); font-weight: 500; } .pl-ab__vb { color: var(--ab-b); font-weight: 500; }
.pl-ab__bars { display: grid; gap: 4px; width: 220px; max-width: 30vw; }
.pl-ab__bars i { display: block; height: 7px; border-radius: 2px; min-width: 1px; }
.pl-ab__bar--a { background: var(--ab-a); } .pl-ab__bar--b { background: var(--ab-b); }
.pl-ab__lead { display: inline-flex; align-items: center; gap: 6px; }
.pl-ab__table { margin-bottom: 12px; }
@media (max-width: 900px) { .pl-ab__pickers { grid-template-columns: 1fr; } }

/* KPI strip inside a section (Reviews written per day). */
.pl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.pl-kpi { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-raised); }
.pl-kpi__value { font: var(--type-figure-xl-weight) 24px/30px var(--font-sans); font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) { .pl-kpis { grid-template-columns: 1fr; } }

/* Local pricing (mock-up v1): gap colours and the per-row "only since" switch. */
.pl-lp__intro { margin: 0 0 12px; max-width: 90ch; color: var(--ink-muted); font-size: var(--type-body-sm-size); }
.pl-lp__intro b { color: var(--ink); font-weight: 500; }
.pl-table.pl-lp { table-layout: fixed; }
.pl-lp__c-region { width: 22%; } .pl-lp__c-num { width: 12%; } .pl-lp__c-verdict { width: 16%; } .pl-lp__c-change { width: 26%; }
.pl-lp th { font-size: var(--type-label-size); line-height: 14px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pl-lp tr.pl-lp__row td { height: 44px; padding-block: 0; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-lp tr.pl-lp__row:hover td { background: var(--surface-raised); }
.pl-lp__open { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 2px; max-width: 100%; cursor: pointer; }
.pl-lp__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-lp__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-lp__chev { display: inline-block; width: 14px; text-align: center; line-height: 1; color: var(--ink-muted); transition: transform .15s; }
.pl-lp__open[aria-expanded="true"] .pl-lp__chev { transform: rotate(90deg); }
.pl-lp__badge { display: inline-block; font: 500 var(--type-label-size)/16px var(--font-sans); padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); color: var(--ink-muted); }
.pl-lp__badge--cut { border-color: var(--rose-gold); color: var(--rose-gold-ink); }
.pl-lp__badge--rise { border-color: var(--pearl); color: var(--pearl); }
.pl-lp__badge--held { border-style: dashed; }
.pl-lp__chg { display: grid; line-height: 16px; font-size: var(--type-label-size); }
.pl-lp__chg small { color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-lp__up { color: var(--good-ink); } .pl-lp__down { color: var(--critical-ink); }
.pl-lp__gap { display: inline-block; min-width: 50px; text-align: center; padding: 1px 6px; border-radius: var(--radius-sm); font-weight: 500; }
.pl-lp__gap--above { background: color-mix(in srgb, var(--div-below-strong) 35%, transparent); }
.pl-lp__gap--below { background: color-mix(in srgb, var(--div-above-strong) 25%, transparent); }
.pl-lp__gap--level { background: var(--surface-raised); }
.pl-lp__prop--rec { color: var(--rose-gold-ink); font-weight: 500; }
.pl-lp__prop--soft { color: var(--ink-muted); }
.pl-lp tr.pl-lp__detail td { padding: 12px 16px 16px 34px; background: var(--surface-raised); white-space: normal; }
.pl-lp__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 10px; }
.pl-lp__facts dt { font: 500 var(--type-label-size)/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pl-lp__facts dd { margin: 0; font-size: var(--type-body-size); }
.pl-lp__facts small { color: var(--ink-muted); }
.pl-lp__phone { display: none; }
.pl-lp__why { margin: 0; max-width: 760px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-lp__missing { margin: 6px 0 0; font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-lp__toggle { display: inline-flex; gap: var(--space-2); align-items: center; margin-top: 8px; font-size: var(--type-label-size); color: var(--rose-gold-ink); cursor: pointer; }
.pl-lp__since { display: none; }
.pl-lp__item:has(.pl-lp__only-since:checked) .pl-lp__full { display: none; }
.pl-lp__item:has(.pl-lp__only-since:checked) .pl-lp__since { display: inline; }
.pl-lp__item:has(.pl-lp__only-since:checked) tr { background: var(--rose-gold-soft); }
/* Phone held upright: Region, You charge, Gap to parity, Proposed; the detail row holds the rest
   (Fredrik 2026-10-20; replaces the "All columns" box). */
@media (max-width: 767.98px) {
  .pl-lp .pl-lp__more { display: none; }
  .pl-lp__phone { display: block; }
  .pl-lp__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-table.pl-lp { font-size: var(--type-label-size); }
  .pl-table.pl-lp th, .pl-table.pl-lp td { padding-inline: 4px; }
  .pl-lp tr.pl-lp__detail td { padding-left: 10px; }
  .pl-lp__c-region { width: 31%; } .pl-lp__c-num { width: 23%; }
  .pl-lp th { font-size: var(--type-label-size); letter-spacing: .02em; white-space: normal; vertical-align: bottom; }
  .pl-lp__gap { min-width: 0; padding-inline: 4px; }
  .pl-lp__prop--soft { font-size: var(--type-label-size); }
  .pl-lp__chev { width: 10px; }
}

/* --- Title pills and the scope switch ------------------------------------ */
.pl-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pl-pill {
  font: 400 var(--type-body-sm-size)/18px var(--font-sans); padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: transparent; color: var(--ink-muted);
  text-decoration: none; white-space: nowrap; display: inline-flex; gap: var(--space-2); align-items: baseline;
}
.pl-pill[aria-current="page"] { border-color: var(--champagne); background: var(--rose-gold-soft); color: var(--ink); }
.pl-pill small { font-size: var(--type-label-size); color: var(--ink-muted); }
/* Game capsules (mock-up capsules v1): small in the pills, medium beside the title. */
.pl-pill:has(.pl-pill__capsule) { padding-left: 4px; align-items: center; }
.pl-pill__capsule { width: 46px; height: 21px; object-fit: cover; border-radius: var(--radius-pill); display: block; }
.pl-scope { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 3px; }
.pl-scope a, .pl-scope button { font: 400 var(--type-label-size)/16px var(--font-sans); border: 0; background: transparent; color: var(--ink-muted); padding: 5px 14px; border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; }
.pl-scope [aria-pressed="true"], .pl-scope [aria-current="true"] { background: var(--ink); color: var(--canvas); }

/* --- Insight and analyst note -------------------------------------------- */
.pl-insight, .pl-note { display: grid; grid-template-columns: 2px 1fr; gap: var(--space-4); }
.pl-insight__bar { background: var(--rose-gold); }
.pl-insight h4 { margin: 0 0 var(--space-1); font: 400 18px/26px var(--font-sans); }
.pl-insight p { margin: 0; max-width: 62ch; color: var(--ink-muted); }
.pl-note__bar { background: var(--person-rule); }
.pl-note__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-1); }
.pl-note__by { display: inline-flex; align-items: center; gap: var(--space-2); font: 400 var(--type-body-sm-size)/20px var(--font-sans); color: var(--ink); }
.pl-note__by i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--hairline); color: var(--ink-muted); font: 500 var(--type-label-size)/20px var(--font-sans); font-style: normal; text-align: center; letter-spacing: .04em; }
.pl-note p { margin: 0; max-width: 62ch; color: var(--ink); white-space: pre-line; }

/* --- Notices -------------------------------------------------------------- */
.pl-notice { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-md); color: var(--ink); background: var(--surface); }
/* Notices say what happened in ink text; the icon says the kind (decision 38.5): a tick for
   done, a triangle for refused, the info mark otherwise. Shape and words, never colour alone. */
.pl-notice svg.pl-icon { color: var(--ink-muted); }
.pl-notice--success svg.pl-icon { color: var(--good-ink); }
.pl-notice--error svg.pl-icon, .pl-notice--warning svg.pl-icon { color: var(--critical-ink); }

/* --- Sections ------------------------------------------------------------ */
.pl-section { display: grid; gap: var(--space-4); }
.pl-section-slot:empty { display: none; } /* a hidden section leaves no empty card */
.pl-section__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.pl-section__titles { display: grid; gap: var(--space-1); }
.pl-section__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.pl-section__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.pl-chart-box { width: 100%; height: var(--layout-chart-height); } /* 300 to 460 px, a quarter of the wrapper (sheet v3.67 wide-charts; the wrapper is the container: wide-charts.css) */
.pl-chart-box--short { height: var(--layout-chart-height-short); } /* 220 to 340 px */
.pl-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font: 400 var(--type-label-size)/18px var(--font-sans); color: var(--ink); }
.pl-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pl-legend i { display: block; width: 14px; height: 10px; border-radius: var(--radius-sm); }
.pl-table-wrap { overflow-x: auto; position: relative; } /* keeps .pl-sr labels inside the scroll box, so they never widen the page */
.pl-table { width: 100%; border-collapse: collapse; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-table th { text-align: left; font-weight: 500; color: var(--ink-muted); background: var(--surface-raised); }
.pl-table th, .pl-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--hairline); vertical-align: top; }
.pl-table td.n, .pl-table th.n { text-align: right; }
.pl-table tr.is-grey td { color: var(--ink-muted); }
[data-view="table"] .pl-view-chart { display: none; }
[data-view="chart"] .pl-view-table { display: none; }
.pl-footnote { font-size: var(--type-body-sm-size); color: var(--ink-muted); margin: 0; max-width: 72ch; }

/* --- App shell: desktop -------------------------------------------------- */
.pl-header { border-bottom: 1px solid var(--hairline); background: var(--canvas); }
/* The header stays at the top while the page scrolls, so the tabs and the studio
   switcher are always one click away (Fredrik 2026-10-19). Desktop only: phones
   have the bottom tab bar. */
/* Only on screens tall enough for it: a phone held sideways is wider than 768 px but short,
   and a fixed two-row header took a third of it (Fredrik 2026-10-21). There it scrolls away. */
@media (min-width: 768px) and (min-height: 600px) {
  .pl-header { position: sticky; top: 0; z-index: var(--z-sticky); }
}
.pl-header__inner { max-width: 1280px; margin: 0 auto; padding: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
/* One row (mock-up sidebar-nav v1, A, Fredrik 2026-10-23): the logo, the top row of tabs
   (.pl-topnav, further down) and the studio and account tools. The whole header stays put. */
.pl-header__tools { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-left: auto; }
.pl-studio-name { font-size: var(--type-body-size); }
.pl-switcher summary { list-style: none; cursor: pointer; display: inline-flex; gap: var(--space-2); align-items: center; padding: 4px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-md); font-size: var(--type-body-size); }
.pl-switcher summary::-webkit-details-marker { display: none; }
.pl-switcher { position: relative; }
.pl-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-menu); min-width: 260px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); padding: var(--space-2); }
.pl-menu form { margin: 0; }
.pl-menu button, .pl-menu a { display: flex; width: 100%; gap: var(--space-2); align-items: center; justify-content: space-between; padding: 6px 10px; border: 0; background: transparent; color: var(--ink); font: 400 var(--type-body-size)/20px var(--font-sans); text-align: left; cursor: pointer; border-radius: var(--radius-sm); text-decoration: none; }
.pl-menu button:hover, .pl-menu a:hover { background: var(--surface-raised); }
.pl-menu__group { padding: var(--space-2) 10px var(--space-1); }
.pl-menu input[type="search"] { width: 100%; margin-bottom: var(--space-2); }
/* Studio switcher: one studio per row, fixed columns, same-size icons (Fredrik, 2026-10-19) */
.pl-menu--studios { width: max-content; min-width: 320px; max-width: calc(100vw - 32px); }
.pl-menu--staff { width: 600px; max-width: calc(100vw - 32px); }
/* The sharing column fits "Closed data" / "Open data" (Fredrik 2026-11-22) and never runs into the next. */
.pl-menu .pl-studio-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: var(--space-3); align-items: center; white-space: nowrap; }
.pl-menu--staff .pl-studio-row { grid-template-columns: minmax(0, 1fr) 52px 136px 118px; }
.pl-studio-row--head { padding: 2px 10px 6px; font: 500 var(--type-label-size)/14px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pl-menu button.pl-studio-row[aria-current="true"] { background: var(--surface-raised); }
.pl-studio-row__name { overflow: hidden; text-overflow: ellipsis; }
.pl-studio-row__meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-studio-row__sharing svg { width: 16px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--border-strong); }
.pl-status-dot--good { background: var(--good); }
.pl-status-dot--problem { background: var(--critical); }
.pl-status-dot--waiting { background: var(--warning); }
.pl-option { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-body-sm-size); color: var(--ink-muted); text-decoration: none; }
.pl-option svg { width: 20px; height: 14px; }
.pl-banner { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.pl-banner__inner { max-width: 1280px; margin: 0 auto; padding: var(--space-2) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; font-size: var(--type-body-sm-size); color: var(--ink-muted); }
.pl-banner b { color: var(--ink); font-weight: 500; }
.pl-banner--staff { border-bottom-color: var(--border-strong); }
.pl-banner--more { font-size: var(--type-label-size); }
.pl-main { max-width: 1280px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }  /* one column that never grows past the page: a long row (the in-page tabs) scrolls inside it */
/* The page gutter beside the sidebar, one value for everything that lines up with the page:
   16 px (space-4) on phones; 24 px (space-5) from 768 px, where the sidebar appears (design
   owner's ruling on PR 371); 40 px (space-6) from 1024 px, as every drawing has it (mock-up
   peerlight-view v2). The page (title, context bar, cards, the Valve line) and the sticky
   row (sticky-row.css) both read --pl-gutter, so they cannot drift apart. */
:root { --pl-gutter: var(--space-4); }
@media (min-width: 768px) { :root:has(.pl-shell--side) { --pl-gutter: var(--space-5); } }
@media (min-width: 1024px) { :root:has(.pl-shell--side) { --pl-gutter: var(--space-6); } }
.pl-shell--side .pl-main, .pl-shell--side .pl-legal { padding-inline: var(--pl-gutter); }
.pl-tab-head { display: grid; gap: var(--space-2); }
.pl-tab-head__text { display: grid; gap: var(--space-2); }
.pl-tab-head--capsule { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-5); }
.pl-capsule { width: 230px; height: 107px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--hairline); }
@media (max-width: 767px) { .pl-tab-head--capsule { grid-template-columns: 1fr; } }
.pl-tab-head p { margin: 0; color: var(--ink-muted); max-width: 72ch; }
.pl-tab-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: center; }
.pl-footer-link { font-size: var(--type-body-sm-size); }
.pl-hint { display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; font-size: var(--type-body-sm-size); color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); }
/* Got it stays on one line at every width (walk 2026-11-13: it wrapped at 768 px). */
.pl-hint .pl-btn { white-space: nowrap; flex: none; }
/* A banner's link is a 24 px target (walk 2026-11-13: Check now was 22 px): 1 px of padding above and
   below, taken back by the margin, so the banner keeps its height. */
.pl-banner__inner > a { padding-block: 1px; margin-block: -1px; }
.pl-bottomnav, .pl-mobile-only { display: none; }

@media (max-width: 900px) {
  .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Mobile and PWA: its own layout, not a shrunk desktop (02 §3) -------- */
@media (max-width: 767.98px) {
  .pl-desktop-only { display: none !important; }
  .pl-mobile-only { display: revert; }
  .pl-header__inner { padding: var(--space-2) var(--space-4); gap: var(--space-3); flex-wrap: nowrap; justify-content: space-between; }
  .pl-main { padding: var(--space-4) var(--space-4) calc(72px + var(--space-6)); gap: var(--space-5); }
  .pl-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); }
  .pl-stats { grid-template-columns: 1fr; gap: var(--space-3); }
  .pl-stats .pl-stat:nth-child(n+5) { display: none; } /* four cards at most on a phone */
  .pl-stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } /* labelled rows: two a line */
  .pl-card { padding: var(--space-4); }
  .pl-chart-box { height: 220px; }
  .pl-menu { position: fixed; left: var(--space-4); right: var(--space-4); top: 56px; }
  .pl-menu--staff { width: auto; }
  /* The staff studio menu on phones (design owner's ruling): each row on two lines, the whole
     name first, then tier, sharing and Steam data in muted 12 px; no column dropped, no name
     cut. The column heads go, since the second line names itself. */
  .pl-menu--staff .pl-studio-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: var(--space-3); row-gap: 2px; white-space: normal; }
  .pl-menu--staff .pl-studio-row__name { flex: 1 0 100%; overflow: visible; overflow-wrap: anywhere; }
  .pl-menu--staff .pl-studio-row--head { display: none; }
}

/* --- Phone held upright: fixes from the phone audit (2026-10-20) ---------- *
 * Everything here is layout only; what a phone shows is decided elsewhere.  */
/* Below 1024 px Notes is its icon and its count (sheet v3.7; design owner after PR 376); the
   link's accessible name still says "Notes, 2 unread". One rule for laptops and phones. */
@media (max-width: 1023.98px) { .pl-header__tools > a.pl-option .pl-option__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 767.98px) {
  /* Header on one line: the studio name shortens, Notes keeps only its icon and count. */
  .pl-header__tools { flex-wrap: nowrap; gap: var(--space-3); min-width: 0; }
  .pl-header__inner > .pl-lockup { flex: none; }
  .pl-studio-name, .pl-switcher:not(.pl-option-indicator) summary { min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .pl-switcher:not(.pl-option-indicator) { min-width: 0; }
  .pl-header__tools > a.pl-option svg { width: 20px; height: 20px; }
  /* Banners: the icon beside the text, not on a line of its own. */
  .pl-banner__inner { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-1) var(--space-2); align-items: start; }
  .pl-banner__inner > svg { margin-top: 2px; }
  .pl-banner__inner > :not(svg) { grid-column: 2; }
  /* Stat figures fit two cards a line. */
  .pl-stats--row .pl-stat__value { font-size: 26px; line-height: 32px; overflow-wrap: anywhere; }
  .pl-stats--row .pl-stat__value--words { font-size: 18px; line-height: 24px; }
  /* Segment buttons stay on one line and scroll sideways if they must. */
  .pl-section__actions > * { min-width: 0; max-width: 100%; }
  .pl-scope { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .pl-scope::-webkit-scrollbar { display: none; }
  .pl-scope a, .pl-scope button, .pl-scope label { flex: none; white-space: nowrap; padding-inline: 12px; }
  .pl-pills::-webkit-scrollbar { display: none; }
  /* Wide tables scroll inside their card: the first column stays put, the
     numbers never break, and a shadow at the edge says there is more. */
  .pl-table-wrap { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); scrollbar-width: none;
    background: linear-gradient(to left, var(--surface) 30%, transparent) right center / 24px 100% no-repeat local,
                radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .45), transparent) right center / 12px 100% no-repeat scroll; }
  .pl-table-wrap::-webkit-scrollbar { display: none; }
  .pl-table { font-size: var(--type-body-sm-size); line-height: 18px; }
  .pl-table th, .pl-table td { padding: var(--space-2); }
  .pl-table td.n, .pl-table .pl-div { white-space: nowrap; }
  .pl-table thead th { min-width: 5.5em; }
  .pl-table tr > :first-child { position: sticky; left: 0; z-index: var(--z-content); background: var(--surface); min-width: 8em; max-width: 42vw; box-shadow: 1px 0 0 var(--hairline); }
  .pl-table thead tr > :first-child { background: var(--surface-raised); }
}

@media print {
  .pl-header, .pl-bottomnav, .pl-banner, .pl-section__actions { display: none !important; }
  body { background: #fff; }
}

/* --- Sign-in pages (allauth layout) -------------------------------------- */
.pl-auth {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--space-5); padding: var(--space-6) var(--space-4);
}
.pl-auth__brand .pl-lockup img { height: 34px; }
.pl-auth__brand .pl-word { font-size: var(--type-page-title-size); line-height: var(--type-page-title-line); }  /* "Powered by Rekoup" stays 12 px */
.pl-auth__card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: var(--space-4); }
.pl-auth__card h1 { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-auth__card p { margin: 0; }
.pl-auth__card form { display: flex; flex-direction: column; gap: var(--space-4); }
.pl-auth__card label { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); margin-bottom: 4px; }
.pl-auth__card input[type="text"], .pl-auth__card input[type="email"], .pl-auth__card input[type="password"],
.pl-auth__card input[type="number"], .pl-auth__card textarea, .pl-auth__card select {
  display: block; width: 100%; padding: 10px 12px; font-size: 15px;
}
/* Buttons: parts/auth-buttons.css (decision 20). */
/* Field errors: one rule for every form, in base.css (sheet v3.6/3.7 Forms). */
.pl-auth__card .helptext { color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-auth__messages { padding: var(--space-2) var(--space-3); border: 1px solid var(--hairline); border-radius: var(--radius-md); color: var(--ink-muted); }
.pl-auth__nav { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; font-size: var(--type-body-sm-size); }
.pl-auth__brand .pl-lockup .pl-lockup__text { display: grid; }
.pl-auth__brand .pl-lockup .pl-lockup__phone { display: none; }  /* sign-in shows the words on phones too */
.pl-auth__invite { margin: 0; max-width: 400px; text-align: center; font-size: 15px; line-height: 22px; color: var(--ink); }
.pl-auth__invite a { font-weight: 500; white-space: nowrap; }
.pl-auth__tagline { margin: calc(-1 * var(--space-2)) 0 0; max-width: 400px; text-align: center; font-size: 17px; line-height: 24px; font-weight: 400; letter-spacing: .01em; color: var(--ink); }

/* --- Authenticator setup: the QR code on a white tile (design owner, 2026-10-25) -----------------
   The code is a transparent SVG with black modules. On the dark card it read at 1.25:1, and
   authenticator apps need dark modules on a light ground with a quiet zone (ISO/IEC 18004). So
   the code sits on a fixed white tile with a 16 px margin in every theme, light and print too.
   The white is a named exception to the palette, like a photo: it is the only white square on
   the page and only on this setup step. */
.pl-auth__qr {
  align-self: stretch; padding: var(--space-4); border-radius: var(--radius-md);
  background-color: #ffffff; line-height: 0;
}
/* As wide as the card, as the code was before the tile (bigger modules scan more easily). */
.pl-auth__qr-code { display: block; width: 100%; height: auto; }
@media print {
  .pl-auth__qr { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Sessions (2026-10-25): one row per session, the device and browser, then a muted line with
   when and where. The sheet's rule for wide tables on phones (key columns only), so nothing
   scrolls sideways and "This device" stays inside the card. Tokens only. */
.pl-sessions { list-style: none; margin: 0; padding: 0; }
.pl-sessions__row { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
.pl-sessions__row:first-child { padding-top: 0; }
.pl-sessions__device { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-weight: 500; }
.pl-sessions__meta { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); overflow-wrap: anywhere; }

/* --- Promotion Board (mock-up promotion-board v1) ------------------------ */
.pl-pb__actions { margin-bottom: var(--space-3); }
.pl-pb__table tr.pl-pb__group th { background: transparent; text-transform: uppercase; letter-spacing: var(--type-label-tracking); font-size: var(--type-label-size); padding-top: var(--space-4); }
.pl-pb__dot { display: inline-block; width: 9px; height: 9px; border-radius: var(--radius-sm); margin-right: var(--space-2); }
/* Statuses: a small dot and the word, no box (mock-up promotions-calmer v1). */
.pl-pb__status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-label-size); white-space: nowrap; }
.pl-pb__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.pl-pb__status--planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-muted); }
.pl-pb__status--submitted::before { background: var(--pearl); }
.pl-pb__status--live { color: var(--ink); font-weight: 500; }
.pl-pb__status--live::before { background: var(--good); }
.pl-pb__status--done, .pl-pb__status--cancelled { color: var(--ink-muted); }
.pl-pb__status--did_it_run { color: var(--warning-ink); }
.pl-pb__status--did_it_run::before { background: var(--warning); }
.pl-pb__history { margin: 0; padding-left: var(--space-4); font-size: var(--type-body-sm-size); }
.pl-pb__timeline-box { overflow-x: auto; overflow-y: hidden; }
.pl-pb__timeline { display: block; min-width: 760px; font-family: var(--font-sans); }
.pl-pb__timeline a rect { cursor: pointer; }
.pl-pb__sw { background: transparent !important; border: 1.5px solid var(--ink-muted); }
.pl-pb__sw--planned { border-style: dashed; }
.pl-pb__sw--submitted { background: var(--status-soft) !important; }
.pl-pb__sw--live { border: 2px solid var(--ink); background: var(--ink-muted) !important; }
.pl-pb__sw--done { border: 0; background: var(--ink-muted) !important; opacity: .7; }
.pl-pb__lede { margin: 0 0 var(--space-3); max-width: 860px; }
.pl-pb__queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.pl-pb__qcard { display: flex; flex-direction: column; gap: var(--space-2); }
.pl-pb__qcard--more { display: none; }
.pl-pb:has(.pl-pb__more[open]) .pl-pb__qcard--more { display: flex; }
.pl-pb__qtop { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.pl-pb__qdepth { font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); font-variant-numeric: tabular-nums; }
.pl-pb__guess { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--hairline); padding-top: var(--space-2); }
.pl-pb__guess b { font-weight: 500; }
.pl-pb__qform label, .pl-pb__other label { display: flex; flex-direction: column; gap: 4px; }
.pl-pb__other summary, .pl-pb__dismissed summary { cursor: pointer; }
.pl-pb__more { margin-top: var(--space-2); }
.pl-pb__inline { display: inline; }

/* --- Discounts: "What each discount earned", compact (Fredrik 2026-10-20) -----------
   Reuses Local pricing v2's compact-table pieces (.pl-lp, row toggle, badges); only the
   column widths, the "new" dot and unmeasured rows are its own. */
.pl-da__c-when { width: 15%; } .pl-da__c-campaign { width: 12%; } .pl-da__c-type { width: 12%; }
.pl-da__c-num { width: 6%; } .pl-da__c-money { width: 10%; } .pl-da__c-after { width: 9%; } .pl-da__c-uplift { width: 12%; }
/* The normal day on hover; High / Low base (Fredrik 2026-10-21) */
.pl-da__base { display: inline-block; margin-left: 6px; font-size: var(--type-label-size); line-height: 14px; letter-spacing: .04em; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--warning); color: var(--warning-ink); vertical-align: 1px; cursor: help; }
.pl-da__c-record { width: 14%; }
.pl-da__new { display: inline-block; flex: none; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--champagne); }
.pl-da .pl-lp__badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.pl-da__item--muted .pl-lp__row td { color: var(--ink-muted); }
/* What each discount did to your wishlists, compact (Fredrik 2026-10-20). */
.pl-dw__c-when { width: 18%; } .pl-dw__c-campaign { width: 15%; } .pl-dw__c-num { width: 7.5%; }
.pl-dw__c-record { width: 15%; }
/* Discounts: "On the calendar" (Fredrik 2026-10-20), the same compact rows. */
.pl-dc__c-when { width: 20%; } .pl-dc__c-store { width: 10%; } .pl-dc__c-name { width: 24%; }
.pl-dc__c-type { width: 16%; } .pl-dc__c-depth { width: 7%; } .pl-dc__c-status { width: 11%; }
.pl-dc__c-starts { width: 12%; }
.pl-dc tr.pl-dc__row td { height: 44px; padding-block: 0; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dc__empty { margin: 0; color: var(--ink-muted); }
.pl-dc__link { margin: 10px 0 0; font-size: var(--type-body-sm-size); }
.pl-store-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pl-store-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: var(--type-label-size); text-decoration: none; }
.pl-store-chip[aria-pressed="true"] { border-color: var(--champagne); color: var(--ink); background: var(--rose-gold-soft); }
.pl-store-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-store { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.pl-dc__phone-mark { display: none; }
.pl-store-logo { display: inline-block; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.pl-store-text { flex: none; font: 600 var(--type-label-size)/14px var(--font-sans); font-style: normal; letter-spacing: .04em; padding: 0 3px; border: 1px solid currentColor; border-radius: 3px; }
.pl-dc .pl-dc__phone { display: none; }
@media (max-width: 767.98px) {  /* phones: the campaign and "Planned · in 12 days"; dates and the rest on hover */
  .pl-dc .pl-dc__more, .pl-dc .pl-dc__wide { display: none; }
  .pl-dc .pl-dc__phone { display: table-cell; }
  .pl-dc col.pl-dc__phone { display: table-column; }
  .pl-dc__c-name { width: 52%; } .pl-dc__c-phone { width: 48%; }
  .pl-dc__phone-mark { display: inline-flex; }
}

.pl-pb__batch { position: sticky; bottom: 0; margin-top: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
/* Promotions Timeline v2 (mock-up promotion-timeline v2): HTML name column + one SVG strip per lane */
.pl-tl { min-width: 760px; font-family: var(--font-sans); }
.pl-tl__row { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: stretch; }
.pl-tl__name { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 var(--space-3) 0 var(--space-2); background: var(--surface); border-right: 1px solid var(--hairline); }
.pl-tl__n, .pl-tl__s, .pl-tl__group { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tl__n { font-size: var(--type-body-sm-size); line-height: 17px; color: var(--ink); }
.pl-tl__s { font-size: var(--type-label-size); line-height: 15px; color: var(--ink-muted); }
.pl-tl__row--dlc .pl-tl__name { padding-left: var(--space-5, 24px); }
.pl-tl__row--group .pl-tl__name { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--space-2); padding-top: var(--space-2); }
.pl-tl__group { font-size: var(--type-label-size); font-weight: 600; text-transform: uppercase; letter-spacing: var(--type-label-tracking); color: var(--ink-muted); }
/* Game headers read as headers, not as one more lane (Fredrik, 2026-10-20). */
.pl-tl__row--group { border-top: 1px solid var(--border-strong); }
.pl-tl__fold button { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-size: var(--type-label-size); cursor: pointer; white-space: nowrap; }
.pl-tl__dlcs { font-size: var(--type-label-size); color: var(--ink-muted); white-space: nowrap; }
.pl-tl__plot { position: relative; min-width: 0; }
.pl-tl__strip { display: block; width: 100%; height: 36px; }
.pl-tl__row--group .pl-tl__strip { height: 12px; }
.pl-tl__row--axis .pl-tl__plot { height: 20px; }
.pl-tl__month, .pl-tl__today { position: absolute; top: 2px; transform: translateX(4px); font-size: var(--type-label-size); color: var(--ink-muted); white-space: nowrap; }
.pl-tl__today { color: var(--rose-gold-sheen); transform: translateX(-50%); }
.pl-tl a rect { cursor: pointer; }
.pl-tl-legend { display: flex; flex-wrap: nowrap; gap: var(--space-3); align-items: center; font-size: var(--type-label-size); white-space: nowrap; overflow-x: auto; margin-bottom: var(--space-2); }
.pl-tl-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.pl-tl-legend i { display: inline-block; width: 12px; height: 9px; border-radius: var(--radius-sm); }
.pl-tl-legend__unl { background: repeating-linear-gradient(45deg, var(--border-strong) 0 1.5px, var(--status-soft) 1.5px 5px); border: 1px solid var(--border-strong); }
.pl-tl-legend__band { background: var(--peer-band); }
.pl-tl-legend__help { position: relative; }
.pl-tl-legend__help summary { list-style: none; cursor: help; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.pl-tl-legend__help summary::-webkit-details-marker { display: none; }
.pl-tl-legend__pop { position: absolute; z-index: var(--z-menu); top: 24px; right: 0; width: 290px; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); white-space: normal; box-shadow: var(--shadow-pop); }
.pl-tl-legend__pop div { display: flex; gap: var(--space-2); align-items: center; margin: 3px 0; }
.pl-tl-legend__pop i { width: 22px; height: 10px; flex: none; }
.pl-pb__confirm-all { margin: 0 0 var(--space-3); }

/* Base game and DLCs: the period's mix in one bar (mock-up base-and-dlc-mix v1, 2026-10-21) */
.pl-mix { margin: var(--space-4) 0 var(--space-3); }
.pl-mix__bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin: var(--space-1) 0 var(--space-2); }
.pl-mix__labels { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-mix__labels i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.pl-mix__labels b { color: var(--ink); font-weight: 500; }

/* Third-party events (mock-up third-party-events v1, 2026-10-21) */
.pl-pb__switch { margin-bottom: var(--space-3); }
.pl-pb__count { font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-pb__events { display: flex; flex-direction: column; }
.pl-pb__ev { display: grid; grid-template-columns: 130px minmax(180px, 1fr) 80px 80px auto; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3); font-size: var(--type-body-sm-size); border-bottom: 1px solid var(--hairline); }
.pl-pb__ev--head { color: var(--ink-muted); font-weight: 500; background: var(--surface-raised); }
.pl-pb__evrow > summary { list-style: none; cursor: pointer; }
.pl-pb__evrow > summary::-webkit-details-marker { display: none; }
.pl-pb__evrow[open] > summary { background: var(--status-soft); }
.pl-pb__evdetails { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); max-width: 860px; }
.pl-pb__evact { justify-self: end; }
.pl-pb__evadd { gap: 6px; flex-wrap: nowrap; }
.pl-pb__evadd select { max-width: 150px; }
.pl-pb__chip { font-size: var(--type-label-size); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 0 6px; color: var(--ink-muted); white-space: nowrap; }
.pl-pb__chip--soon { border-color: var(--warning); color: var(--warning-ink); }
.pl-pb__new { font-size: var(--type-label-size); letter-spacing: .08em; border-radius: var(--radius-pill); padding: 0 6px; background: var(--rose-gold-soft); color: var(--rose-gold-ink); }
.pl-pb__fits { display: block; font-size: var(--type-label-size); color: var(--ink-muted); margin-top: 2px; }
@media (max-width: 767.98px) {
  .pl-pb__ev { grid-template-columns: 1fr; gap: 2px; }
  .pl-pb__ev--head { display: none; }
  .pl-pb__evact { justify-self: start; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .pl-pb__ev { grid-template-columns: 120px minmax(160px, 1fr) 80px 70px; }
  .pl-pb__evact { grid-column: 2 / -1; justify-self: start; }
}

/* Store events: the Third-party events table with its own columns (Fredrik, 2026-10-29) */
.pl-pb__ev--store { grid-template-columns: 140px minmax(180px, 1fr) 120px minmax(120px, 190px) minmax(150px, 210px) 110px; }
.pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: 120px minmax(130px, 1fr) 105px 75px minmax(100px, 150px) minmax(120px, 180px) 105px; }
.pl-pb__sub { display: block; font-size: var(--type-label-size); color: var(--ink-muted); margin-top: 2px; }
.pl-pb__sub--phone { display: none; }
.pl-pb__ev--store .pl-pb__evadd .pl-btn { white-space: nowrap; }
.pl-pb__blocked { color: var(--warning-ink); }
.pl-pb__evlinks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.pl-pb__pick { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; min-width: 0; }
.pl-pb__pick .pl-scope { max-width: 100%; overflow-x: auto; }
.pl-pb__pick .pl-store-logo { margin-right: 6px; }
.pl-pb__evlinks .pl-info { margin-left: var(--space-1); }
@media (max-width: 767.98px) {
  .pl-pb__ev--store, .pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: auto 1fr auto; grid-template-areas: "runs name name" "type cool act"; gap: var(--space-1) var(--space-3); align-items: start; }
  .pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: auto auto 1fr auto; grid-template-areas: "runs name name name" "type region cool act"; }
  .pl-pb__c-runs { grid-area: runs; font-weight: 500; }
  .pl-pb__c-name { grid-area: name; }
  .pl-pb__c-type { grid-area: type; color: var(--ink-muted); }
  .pl-pb__c-region { grid-area: region; color: var(--ink-muted); }
  .pl-pb__c-cool { grid-area: cool; }
  .pl-pb__c-cool:not(.pl-pb__blocked) { white-space: nowrap; }
  .pl-pb__c-fits, .pl-pb__ev--store .pl-pb__sub:not(.pl-pb__sub--phone) { display: none; }
  .pl-pb__sub--phone { display: block; }
  .pl-pb__ev--store .pl-pb__evact { grid-area: act; justify-self: end; align-self: center; }
  .pl-pb__events { padding-bottom: var(--space-8); }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .pl-pb__ev--store, .pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: 130px minmax(160px, 1fr) 110px 150px; }
}

/* Store events: event names in the board's type colours, and dates that never wrap
   (design owner, 2026-10-30). The Type column stays, so colour is never the only cue. */
.pl-pb__nm--seasonal { color: var(--type-seasonal); }
.pl-pb__nm--fest { color: var(--type-steam-fest-ink); }
.pl-pb__nm--osale { color: var(--type-store-sale); }
.pl-pb__nm--next { color: var(--ink-muted); }
.pl-pb__c-runs { white-space: nowrap; }
.pl-pb__ev--store { grid-template-columns: 190px minmax(140px, 1fr) 118px minmax(110px, 170px) minmax(110px, 180px) 106px; }
.pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: 190px minmax(130px, 1fr) 105px 75px minmax(100px, 150px) minmax(120px, 180px) 105px; }
@media (max-width: 767.98px) {
  .pl-pb__ev--store, .pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: auto 1fr auto; grid-template-areas: "runs runs runs" "name name name" "type cool act"; }
  .pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: auto auto 1fr auto; grid-template-areas: "runs runs runs runs" "name name name name" "type region cool act"; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .pl-pb__ev--store, .pl-pb__ev--store.pl-pb__ev--region { grid-template-columns: 190px minmax(140px, 1fr) 100px 140px; }
}

/* DLC entry: each DLC's split under Sales per day (mock-up dlc-revenue-units v2, 2026-10-21) */
.pl-dlc-split { margin-top: var(--space-4); }
.pl-dlc-split__sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.pl-dlc-split__share { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.pl-dlc-split__share i { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.pl-dlc-split__total td { color: var(--ink-muted); }

/* Present: a section fills the screen (Fredrik 2026-10-21). Larger type; the chart takes
   the height that's left; the page's own controls stay usable. */
.pl-section-slot:fullscreen { background: var(--canvas); padding: var(--space-7) var(--space-8, 48px); overflow: auto; max-width: none; border: 0; border-radius: 0; }
/* Centred on the screen (Fredrik 2026-10-22: it sat at the top). Auto margins centre the
   section when it is shorter than the screen and fall back to the top when it is taller,
   so nothing is ever cut off; the width is capped so wide screens don't stretch it. */
.pl-section-slot:fullscreen { display: flex; flex-direction: column; }
.pl-section-slot:fullscreen > * { margin-block: auto; margin-inline: auto; width: 100%; max-width: 1400px; }
.pl-section-slot:fullscreen .pl-heading { font-size: 28px; line-height: 36px; }
.pl-section-slot:fullscreen .pl-meta { font-size: var(--type-body-sm-size); }
.pl-section-slot:fullscreen .pl-chart-box { height: calc(100vh - 280px); min-height: 360px; }
.pl-section-slot:fullscreen .pl-table { font-size: 15px; }
.pl-section-slot:fullscreen .pl-tl { font-size: 15px; }

/* Promotions, Your campaigns: one action bar and one filter bar (promotions-calmer v1). */
.pl-pb__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.pl-pb__bar .pl-pb__switch { margin-bottom: 0; }
.pl-pb__bar-actions { gap: var(--space-2); align-items: center; }
.pl-pb__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: var(--space-4); }
.pl-pb__filters .pl-store-chips { margin: 0; }
.pl-pb__flabel { font-size: var(--type-label-size); letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--ink-muted); }
.pl-pb__table tr.pl-pb__group th a { color: inherit; text-decoration: none; }
.pl-pb__show { color: var(--ink-muted); text-transform: none; letter-spacing: 0; }
.pl-pb__foot { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); }
.pl-pb__foot a { color: var(--ink-muted); }
.pl-pb__act { color: var(--rose-gold-ink); }
.pl-tl__s--main { font-size: var(--type-body-sm-size); line-height: 17px; color: var(--ink); }

/* China folded into one line, opened on demand (mock-up china-fold v1, Fredrik 2026-10-21) */
.pl-fold { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
.pl-fold[open] { border-color: var(--border-strong); }
.pl-fold__line { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); cursor: pointer; }
.pl-fold__line::-webkit-details-marker { display: none; }
.pl-fold__title { font: 600 var(--type-label-size)/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.pl-fold__fact { font-size: var(--type-body-sm-size); color: var(--ink-muted); }
.pl-fold__fact b { color: var(--ink); font-weight: 500; }
.pl-fold__toggle { margin-left: auto; color: var(--rose-gold-ink); font: 500 var(--type-body-sm-size) var(--font-sans); }
.pl-fold__toggle::after { content: "Show China ▾"; }
.pl-fold[open] .pl-fold__toggle::after { content: "Hide China ▴"; }
.pl-fold__body { padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-4); }

/* --- Discounts: the "<Game> DLCs" entry (mock-up dlc-discounts v2, Fredrik 2026-10-21) ---
   The DLC filter bar, each DLC's colour dot, a DLC column in "What each discount earned"
   and "On the calendar", and the game's own campaigns shown faint beside the DLCs'. */
.pl-dlc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--space-4); }
.pl-dlc-bar__label { font: 500 var(--type-label-size)/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-right: 4px; }
.pl-dlc-bar__note { margin-left: 8px; font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-dlc-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.pl-dlc-name { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.pl-da--dlc .pl-da__c-dlc { width: 13%; }
.pl-da--dlc .pl-da__c-campaign { width: 10%; }
.pl-dc__c-dlc { width: 13%; }
.pl-dc__row--faint td { color: var(--ink-muted); opacity: .6; }
@media (max-width: 767.98px) { .pl-dlc-bar__note { flex-basis: 100%; margin-left: 0; } }
/* With the game or on their own (mock-up dlc-with-the-game v1): two dots on a ×1–×6 track. */
.pl-wg__scale { display: flex; justify-content: space-between; width: 100%; min-width: 120px; }
.pl-wg__track { position: relative; display: block; min-width: 120px; height: 2px; margin: 8px 6px; background: var(--hairline); }
.pl-wg__dot { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.pl-wg__dot--with { background: var(--rose-gold); }
.pl-wg__dot--alone { background: var(--pewter); }
.pl-wg__dot--grey { opacity: .35; }
.pl-wg__grey { color: var(--ink-muted); }

/* Reviews, a small section under the monthly chart (mock-up reviews-section v1, 2026-10-21).
   v2 (2026-10-23): two boxes in row 1; the "against all reviews" box and its chip and bars are
   gone. Row 2 and the monthly chart: revenue-units-reviews-monthly.css. */
.pl-revsum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pl-card.pl-revsum__box { padding: 10px 14px calc(14px + 4px); gap: var(--space-1); }
.pl-revsum__value { font: var(--type-figure-xl-weight) var(--type-figure-xl-size)/36px var(--font-sans); font-variant-numeric: tabular-nums; }
.pl-revsum__split { display: block; height: 8px; border-radius: 4px; background: var(--critical); overflow: hidden; }
.pl-revsum__pos { display: block; height: 100%; background: var(--good); border-right: 2px solid var(--surface); }
.pl-revsum__sub { font-size: var(--type-label-size); line-height: 18px; color: var(--ink-muted); }
.pl-revsum__sub b { color: var(--ink); font-weight: 500; }
@media (max-width: 767.98px) { .pl-revsum { grid-template-columns: 1fr; } }

/* A small phone held sideways keeps the phone layout: its bottom tab bar then sits at the end
   of the page instead of staying fixed over a short screen (Fredrik 2026-10-21). */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) {
  .pl-bottomnav { position: static; }
  .pl-main { padding-bottom: var(--space-6); }
}

/* --- Release radar (mock-up release-radar v3, Fredrik 2026-10-21) ------------------ */
.pl-rr__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); margin-bottom: var(--space-4); }
.pl-rr__filters .pl-store-chips { margin: 0; }
/* The radar's chips are links that reload the page with the filter changed, so a chip that is on says so with aria-current (aria-pressed is not allowed on a link). */
.pl-rr__filters .pl-store-chip[aria-current="true"] { border-color: var(--champagne); color: var(--ink); background: var(--rose-gold-soft); }
.pl-rr__flabel { font-size: var(--type-label-size); letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--ink-muted); }
.pl-rr__launch { display: flex; gap: var(--space-4); align-items: center; border: 1px solid var(--rose-gold); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: var(--space-4); background: var(--surface); }
.pl-rr__big { font-size: 26px; line-height: 34px; font-weight: var(--type-figure-xl-weight); }
.pl-rr__launch > a { color: var(--rose-gold-ink); margin-left: auto; font-size: var(--type-body-sm-size); white-space: nowrap; }
.pl-rr__cols, .pl-rr__g { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) 110px 120px; gap: var(--space-4); align-items: center; }
.pl-rr__cols { padding: 8px 18px 6px; font-size: var(--type-label-size); line-height: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); position: sticky; top: var(--pl-rr-sticky, 0); background: var(--canvas); z-index: 2; }
.pl-rr__cols span:nth-child(5), .pl-rr__cols span:nth-child(6) { text-align: right; }
.pl-rr__week { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; }
/* The page-wide scroll padding (shell-and-nav.css) clears the header; a week also clears the
   sticky column headings above it (desktop only; phones hide them). */
@media (min-width: 768px) { .pl-rr__week { scroll-margin-top: calc(var(--type-label-size) + 16px); } }
.pl-rr__wk { font-size: var(--type-label-size); line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pl-rr__line { flex: 1; height: 1px; background: var(--hairline); }
.pl-rr__n { font: 400 var(--type-label-size) var(--font-mono); color: var(--ink-muted); }
.pl-rr__week.is-mine .pl-rr__wk { color: var(--rose-gold-ink); }
.pl-rr__week.is-mine .pl-rr__line { background: var(--rose-gold); }
.pl-rr__list { border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.pl-rr__list.is-mine { border-color: var(--rose-gold); }
.pl-rr__g { padding: 12px 18px; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.pl-rr__g:last-child { border-bottom: 0; }
a.pl-rr__g:hover { background: var(--surface-raised); }
a.pl-rr__g:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: -2px; }
.pl-rr__g.is-you { background: color-mix(in srgb, var(--rose-gold) 14%, transparent); }
/* The tag outlines on your own row: the hairline vanishes into the highlight (design review of 701). */
.pl-rr__g.is-you .pl-rr__gen span { border-color: color-mix(in srgb, var(--rose-gold) 30%, transparent); }
.pl-rr__cover, .pl-rr__ph { width: 52px; height: 69px; border-radius: 4px; background: var(--surface-raised); display: block; object-fit: cover; }
.pl-rr__ph { display: grid; place-items: center; color: var(--ink-muted); font-size: 18px; font-weight: 600; }
.pl-rr__name { font-size: var(--type-heading-size); line-height: 22px; font-weight: 500; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } /* two lines, an ellipsis only where a third would start (release-radar-names-no-date v1, rows 49c and 70) */
.pl-rr__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pl-rr__b { font-size: var(--type-label-size); line-height: 18px; font-weight: 700; letter-spacing: .06em; padding: 0 7px; border-radius: 3px; text-transform: uppercase; }
.pl-rr__b--steam { background: #1b5f9e; color: #fff; }
.pl-rr__b--ps { background: #2a4fb8; color: #fff; }
.pl-rr__b--xbox { background: #1f7a2f; color: #fff; }
.pl-rr__b--nin { background: #c43d3d; color: #fff; }
.pl-rr__b.is-later { opacity: .45; }
.pl-rr__b--wl { border: 1px solid var(--border-strong); color: var(--ink-muted); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.pl-rr__b--you { border: 1px solid var(--rose-gold); color: var(--rose-gold-ink); }
.pl-rr__dev { font-size: var(--type-body-sm-size); line-height: 18px; overflow-wrap: anywhere; } /* wraps, never cut (row 70) */
.pl-rr__gen { display: flex; gap: 5px; flex-wrap: wrap; }
.pl-rr__gen span { font-size: var(--type-label-size); line-height: 18px; padding: 0 8px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); color: var(--ink-muted); white-space: nowrap; }
.pl-rr__fol { text-align: right; }
.pl-rr__fol b { display: block; font: 400 18px/22px var(--font-mono); }
.pl-rr__fol small { font-size: var(--type-label-size); line-height: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pl-rr__date { text-align: right; font: 400 var(--type-body-size)/20px var(--font-mono); }
.pl-rr__date small { display: block; font: 400 var(--type-label-size) var(--font-sans); color: var(--ink-muted); }
.pl-rr__credit { font: 400 var(--type-label-size)/16px var(--font-mono); color: var(--ink-muted); margin-top: 18px; }
.pl-rr__credit a { color: var(--ink-muted); }
@media (min-width: 768px) { .pl-rr__cols { --pl-rr-sticky: var(--pl-header-h, 0px); } }
/* Phones: one game per line, cover, name and date; developer, genres and followers fold under the name. */
@media (max-width: 767.98px) {
  .pl-rr__cols { display: none; }
  .pl-rr__g { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "cover game date" "cover dev fol" "cover gen gen"; gap: 2px 12px; padding: 10px 12px; }
  .pl-rr__cover, .pl-rr__ph { width: 40px; height: 53px; grid-area: cover; align-self: start; }
  .pl-rr__game { grid-area: game; } .pl-rr__dev { grid-area: dev; color: var(--ink-muted); }
  .pl-rr__gen { grid-area: gen; } .pl-rr__fol { grid-area: fol; } .pl-rr__date { grid-area: date; }
  .pl-rr__fol b { display: inline; font-size: var(--type-body-sm-size); } .pl-rr__fol small { margin-left: 4px; }
  .pl-rr__launch { flex-direction: column; align-items: flex-start; }
  .pl-rr__launch > a { margin-left: 0; }
  .pl-rr__big { font-size: 20px; line-height: 26px; }
}
/* Release radar genre filter: a row inside the filter card, the same chips as the stores, a games count after the name, a check mark on a picked genre (like the sheet's filter chip). On a phone only the first genres show until "Show all genres". */
.pl-rr__genres { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.pl-rr__gn { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-rr__gchip[aria-current="true"] { font-weight: 600; }
.pl-rr__gchip[aria-current="true"]::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.pl-rr__gchip[aria-current="true"] .pl-rr__gn { color: var(--ink); }
.pl-rr__fnote { flex-basis: 100%; order: 4; font-size: var(--type-label-size); }
.pl-rr__gall { display: none; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pl-rr__gmore { display: none; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: var(--type-label-size); }
.pl-rr__gall:focus-visible + .pl-rr__gmore { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-rr__ghide { display: none; }
.pl-rr__narrow { display: none; }
.pl-rr__gall:checked + .pl-rr__gmore .pl-rr__gshow { display: none; }
.pl-rr__gall:checked + .pl-rr__gmore .pl-rr__ghide { display: inline; }
@media (max-width: 1023.98px) {
  .pl-rr__gall { display: inline-block; }
  .pl-rr__gmore { display: inline; order: 5; }
  .pl-rr__genres .pl-store-chips { flex-basis: 100%; order: 3; }
  .pl-rr__gextra { display: none; }
  .pl-rr__wide { display: none; }
  .pl-rr__narrow { display: inline; }
  .pl-rr__gall:checked ~ .pl-store-chips .pl-rr__gextra { display: inline-flex; }
}

/* Store traffic (mock-up store-traffic v1, 2026-10-22): country index, sources table, store page changes. The funnel is in store-traffic-cleanup.css (decision 124). */
.pl-tindex { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.pl-tindex--good { color: var(--good-ink); } .pl-tindex--bad { color: var(--critical-ink); }
.pl-tsources { margin-top: var(--space-4); }
.pl-tsources__all { margin-top: var(--space-3); }
.pl-tsources__all summary { list-style: none; display: inline-flex; cursor: pointer; }
.pl-tsources__all summary::-webkit-details-marker { display: none; }
.pl-tsources__all[open] summary { margin-bottom: var(--space-2); }
.pl-tsources__group th { color: var(--ink); background: var(--surface-raised); }
.pl-table.pl-tsources td.pl-tsources__name { padding-left: calc(var(--space-3) + 18px); }
.pl-tsources__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: baseline; }
.pl-tsources .pl-up { color: var(--good-ink); font-weight: 500; } .pl-tsources .pl-down { color: var(--critical-ink); font-weight: 500; }
.pl-tcountries__rest td { color: var(--ink-muted); }
@media (max-width: 767.98px) {
  .pl-tcountries__per100 { display: none; }  /* "vs your average" says it on a phone */
}

/* Store page changes: the "+ Log a change" form (the cards and timeline: store-traffic-slice2.css). */
.pl-pchg__entry { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-md); max-width: 520px; }
.pl-pchg__field { display: grid; gap: 4px; font-size: var(--type-body-sm-size); color: var(--ink-muted); }
.pl-pchg__err { color: var(--critical-ink); font-size: var(--type-label-size); }

/* Store funnel, every game (staff page /staff/funnel/, mock-up rekoup-funnel v1). */
.pl-fn__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-4); }
.pl-fn__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Every figure on one line whatever its sub-line's length (design owner F6, as the Forecast strip). */
.pl-fn__kpis .pl-meta { min-block-size: 2lh; }
@media (max-width: 1100px) {
  .pl-fn__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-4); }
  .pl-fn__kpis .pl-kpi:nth-child(3n+1) { padding-left: 0; border-left: 0; }
}
.pl-fn__table { min-width: 860px; }
.pl-fn__table th a { color: inherit; text-decoration: none; }
.pl-fn__table th a:hover { color: var(--ink); }
.pl-fn__table td { vertical-align: middle; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-fn__arrow { display: inline-block; width: 10px; margin-left: 2px; color: var(--rose-gold-ink); }
.pl-fn__game a { display: block; color: var(--ink); font-weight: 500; text-decoration: none; }
.pl-fn__game a:hover { color: var(--rose-gold-ink); text-decoration: underline; }
.pl-fn__studio { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-fn__fig { display: inline-grid; justify-items: end; line-height: 18px; }
.pl-fn__fig small { font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-fn__fig small.u { color: var(--good-ink); } .pl-fn__fig small.d { color: var(--critical-ink); }
.pl-fn__rate { display: inline-grid; grid-template-columns: auto 58px; align-items: center; gap: 8px; }
.pl-fn__bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-raised); }
.pl-fn__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--pearl); opacity: .7; }
.pl-fn__bar b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink-muted); }
.pl-fn__table td.is-weak .pl-fn__bar i { background: var(--critical-ink); opacity: .9; }
.pl-fn__table td.is-weak .pl-fn__num { color: var(--critical-ink); }
.pl-fn__badge { display: inline-block; font: 500 var(--type-label-size)/16px var(--font-sans); padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); color: var(--ink-muted); white-space: nowrap; }
.pl-fn__badge--stale { border-color: var(--rose-gold); color: var(--rose-gold-ink); }
.pl-fn__badge--none { border-style: dashed; }
.pl-fn__table td.pl-fn__empty { color: var(--ink-muted); white-space: normal; font-size: var(--type-label-size); }
.pl-fn__phone-sort { margin: 0 0 var(--space-3); color: var(--ink-muted); }
.pl-fn__phone-sort select { margin-left: 6px; }
.pl-fn__about { margin-top: var(--space-6); max-width: 760px; border-top: 1px solid var(--hairline); padding-top: var(--space-4); }
.pl-fn__about p, .pl-fn__about li { color: var(--ink-muted); line-height: 20px; }
@media (max-width: 767.98px) {
  .pl-fn__kpis { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pl-fn__kpis .pl-meta { min-block-size: 0; }
  .pl-fn__table { min-width: 0; }
  .pl-fn__table thead { display: none; }
  .pl-fn__table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .pl-fn__table td { border: 0; padding: 0; white-space: normal; text-align: left; }
  .pl-fn__table td.n { text-align: left; }
  .pl-fn__game, .pl-fn__state, .pl-fn__table td.pl-fn__empty { grid-column: 1 / -1; }
  .pl-fn__table tr > td.pl-fn__game { position: static; max-width: none; box-shadow: none; background: none; }
  .pl-fn__table td[data-l]::before { content: attr(data-l); display: block; font: 500 var(--type-label-size)/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
  .pl-fn__fig { justify-items: start; }
  .pl-fn__rate { grid-template-columns: auto; gap: 4px; }
  .pl-fn__bar { width: 64px; }
}

/* --- The ground, cards and the shine budget (PeerLight 2.0, design sheet v3.1 "Satin") ----
   Was the Violet Chrome look (2026-10-22): metal edges, glow and gradient text on every card,
   title and button. 2.0 keeps at most ~3 shining places per screen (sheet, "The shine
   budget"): the logo lens and its halo, the 2 px satin bar beside the selected sidebar or
   bottom-bar item, and the 1 px satin edge of the primary button (dark only). Never on data,
   figures, tables or chart areas; never text on a gradient. Tokens only. */
/* v3 ground: flat canvas, plus the 5 % grain in dark (light's grain is none). Two longhands, because a
   plain colour token is not a valid non-last layer of the background shorthand (#341 UX review). */
body { background-color: var(--canvas); background-image: var(--grain); background-attachment: fixed; min-height: 100vh; }
/* Titles and the wordmark are plain ink (sheet: "Titles and figures: plain ink, weight 500–600"). */
.pl-word, .pl-page-title { color: var(--ink); }
/* Shine 1: the logo lens's halo, dark only (the light halo token is transparent). */
.pl-mark-dark, .pl-mark-light { filter: drop-shadow(0 0 5px var(--halo)); }
/* Card edge 5 (sheet "Space & shape"): a small tonal step, a clear hairline, faint light from
   above in dark and a soft shadow in light (both in --shadow-card). Every card, every box. */
.pl-card:not(.pl-stat--lit) { background: var(--surface); border: 1px solid var(--card-edge); box-shadow: var(--shadow-card); }
.pl-stat--public { border-style: dashed; }
/* Buttons: text on a solid fill, no glow. Shine 3 is the 1 px satin edge, in dark only, and
   only on the screen's single main action (.pl-btn--accent, e.g. "+ Add a campaign"); every
   other primary button is flat (post-341 walkthrough, item 2). */
/* The fill is one variable, so a hover changes only the colour and every theme's layers follow
   (decision 20, sheet v3.6: primary-hover, violet-strong dark, violet-deep light). */
.pl-btn--primary, .pl-btn--accent { --pl-fill: var(--primary); background: var(--pl-fill); color: var(--on-primary); border-color: transparent; box-shadow: none; }
.pl-btn--accent:hover { --pl-fill: var(--primary-hover); }
:root:not([data-theme="light"]) .pl-btn--accent { background: linear-gradient(var(--pl-fill), var(--pl-fill)) padding-box, var(--metal) border-box; border: 1px solid transparent; }
/* An insight's bar is a flat 3 px ink-muted rule: it sits beside content, so it never shines
   and is no violet decoration (post-341 walkthrough, item 2). */
.pl-insight, .pl-note { grid-template-columns: 3px 1fr; }
.pl-insight__bar { background: var(--ink-muted); box-shadow: none; }
.pl-pill[aria-current="page"] { border-color: var(--violet); box-shadow: none; }
@media print {
  body { background: #ffffff; }
  .pl-card, .pl-btn--primary, .pl-mark-dark, .pl-mark-light { box-shadow: none !important; filter: none !important; }
  .pl-btn--primary, .pl-btn--accent { background: var(--primary) !important; }
}

/* Striped tables, option C (Fredrik 2026-10-22): every second row striped and the row under
   the mouse lit so the eye keeps the row across the wide gaps; figures line up digit for digit.
   Opt-in for tables with one row per item (the generic section table and the simple custom
   ones); tables with opening detail rows keep their own look. */
.pl-table--striped { font-variant-numeric: tabular-nums; }
.pl-table--striped tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.pl-table--striped tbody tr:hover td { background: var(--rose-gold-soft); }
.pl-table--striped td, .pl-table--striped th { vertical-align: middle; }

/* Bundles: the helpers on top of the stripes. */
.pl-bundles .pl-bundles__name { font-weight: 600; }
.pl-bundles .pl-bundles__quiet { color: var(--ink-muted); }
.pl-bundles__sale { display: inline-block; margin-left: 6px; font-size: var(--type-label-size); line-height: 16px; padding: 0 7px; border-radius: var(--radius-pill);
  border: 1px solid var(--promo, var(--champagne)); color: var(--promo-ink, var(--ink)); background: var(--promo-soft, transparent); white-space: nowrap; }
.pl-bundles__share { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pl-bundles__bar { width: 72px; height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.pl-bundles__bar i { display: block; height: 100%; border-radius: 3px; background: var(--you); }
@media (max-width: 767px) {
  .pl-bundles__bar { width: 40px; }
  .pl-table--striped tbody tr:nth-child(even) > :first-child { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
  .pl-table--striped tbody tr:hover > :first-child { background: var(--rose-gold-soft-solid); }
}
@media (forced-colors: active) { .pl-bundles__bar i { background: CanvasText; } }

/* Local pricing gets the bundles look too (Fredrik 2026-10-22): each region is its own
   tbody (row + opening detail), so the stripe counts tbodies, not rows. */
.pl-lp--striped { font-variant-numeric: tabular-nums; }
.pl-lp--striped .pl-lp__item:nth-of-type(even) tr.pl-lp__row td { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.pl-lp--striped tr.pl-lp__row:hover td { background: var(--rose-gold-soft); }
.pl-lp--striped td:first-child .pl-lp__name { font-weight: 600; }  /* the row's name only */

/* Followers boxes without the chrome line at the bottom (Fredrik 2026-10-22). */
.pl-stat--noline::after { display: none; }

/* Forecast events waiting for evaluation (/staff/forecast-events/, Rekoup only). */
.pl-fe__table { min-width: 980px; }
.pl-fe__table td { vertical-align: top; }
.pl-fe__suggestion { max-width: 260px; }
.pl-fe__details summary { list-style: none; cursor: pointer; }
.pl-fe__details summary::-webkit-details-marker { display: none; }
.pl-fe__form { min-width: 260px; margin-top: var(--space-2); }
.pl-fe__form fieldset { border: 0; margin: 0; padding: 0; }
.pl-fe__ps input { width: 6em; }

/* Forecast review (staff page /staff/forecast-review/): the staff-funnel figure pattern.
   Phones: each week is a short grid (week and error, then estimate, actual and range,
   then flags), so no column is hidden (design review of PR 448). */
.pl-fr__summary { margin: 0; padding-left: var(--space-4); display: grid; gap: var(--space-1); }
.pl-fr__game + .pl-fr__game { margin-top: var(--space-5); }
.pl-fr__title { margin: 0; font-size: var(--type-heading-size); font-weight: 600; }
.pl-fr__age { margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: var(--type-meta-size); }
.pl-fr__table td { vertical-align: middle; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-fr__fig { display: inline-grid; justify-items: end; line-height: 18px; }
.pl-fr__fig small, .pl-fr__range small { font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-fr__range { display: inline-grid; line-height: 18px; }
@media (min-width: 768px) {
  .pl-fr__table { min-width: 860px; }
  .pl-fr__table .pl-fr__week { white-space: nowrap; }
}
@media (max-width: 767.98px) {
  .pl-fr__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-fr__table, .pl-fr__table tbody { display: block; }
  .pl-fr__table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1) var(--space-3); padding: var(--space-2) var(--space-3); }
  .pl-fr__table tr > :first-child { position: static; min-width: 0; max-width: none; box-shadow: none; background: transparent; }
  .pl-fr__table th, .pl-fr__table td, .pl-fr__table td.n { display: block; padding: 0; border: 0; white-space: normal; text-align: left; }
  .pl-fr__table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--type-label-size); color: var(--ink-muted); }
  .pl-fr__table .pl-fr__fig { justify-items: start; }
  .pl-fr__week { grid-column: 1 / span 2; order: 0; }
  .pl-fr__err { order: 1; }
  .pl-fr__est { order: 2; }
  .pl-fr__act { order: 3; }
  .pl-fr__rng { order: 4; }
  .pl-fr__days { order: 5; grid-column: 1 / -1; }
  .pl-fr__flags { order: 6; grid-column: 1 / -1; }
  .pl-fr__none { grid-column: 1 / -1; }
  .pl-fr__table td.pl-fr__plain { display: none; }
  .pl-fr__table.pl-table--striped tbody tr:nth-child(n) > td,
  .pl-fr__table.pl-table--striped tbody tr:nth-child(n) > th { background: transparent; }
  .pl-fr__table.pl-table--striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ink) 4%, transparent); }
}

/* Forecasts (mock-up forecasts v3): the scenario controls, and up/down changes. */
.pl-fc__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-4); }
.pl-fc__slider { width: 200px; max-width: 100%; accent-color: var(--rose-gold); }
.pl-fc__p { min-width: 34px; font: 500 var(--type-body-sm-size)/16px var(--font-mono); color: var(--ink); }
.pl-fc .pl-up { color: var(--good-ink); }
.pl-fc .pl-down { color: var(--critical-ink); }
@media (max-width: 767.98px) { .pl-fc__slider { width: 100%; } }

/* Refunds on the context bar (decision 73, mockup-player-data-bar-v1 option b): the finding and
   its subtitle, the boxes in one strip (three, or two under All time), the sentences, a low chart
   across the card, the full price vs discounted table and the countries, both full width (audit
   PD-12). */
.pl-refunds__finding { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); color: var(--ink); }
.pl-refunds__lede { margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-refunds__head { margin-bottom: var(--space-4); }
.pl-refunds.pl-stats--row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--space-4); }
.pl-refunds--two.pl-stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-refunds .pl-stat__value { font-variant-numeric: tabular-nums; }
.pl-refunds .pl-stat__value--words { font-size: var(--type-heading-size); line-height: var(--type-heading-line); color: var(--ink-muted); }
.pl-refunds__detail { font-variant-numeric: tabular-nums; }
.pl-refunds__why { margin: calc(-1 * var(--space-2)) 0 var(--space-4); }
.pl-refunds__coverage, .pl-refunds__note { margin-top: var(--space-2); }
.pl-refunds__block { margin-top: var(--space-5); }
.pl-refunds__sub { margin: 0 0 var(--space-2); }
.pl-refunds__sub small { font-size: var(--type-label-size); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-muted); margin-left: var(--space-2); }
.pl-refunds__prices td, .pl-refunds__prices th, .pl-refunds__countries td, .pl-refunds__countries th { padding-top: 6px; padding-bottom: 6px; }
.pl-refunds__prices td.n, .pl-refunds__countries td.n { font-variant-numeric: tabular-nums; }
.pl-refunds td.pl-refunds__name, .pl-refunds__block td.pl-refunds__name { font-weight: 600; }
.pl-refunds__prices td.pl-refunds__few { color: var(--ink-muted); }
.pl-refunds__pnote { margin: var(--space-2) 0 0; }
/* The notes run the card's full width, like the table they explain (design review of #437). */
.pl-refunds__note, .pl-refunds__coverage, .pl-refunds__pnote { max-width: none; }
.pl-refunds__cnote { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-refunds__countries tr.pl-refunds__all td { font-style: italic; color: var(--ink-muted); border-top: 1px solid var(--border-strong); }
/* The comparison's legend mark: a dashed outline, like its bars. */
.pl-legend .pl-legend__mark--outline { inline-size: 14px; block-size: 10px; border-width: 1.5px; border-style: dashed; border-radius: var(--radius-sm); }
/* A low chart: desktop 180, DLC 140, phone 160. */
.pl-chart-box[data-pl-chart^="chart-revenue_units-refunds"] { height: 180px; }
.pl-chart-box[data-pl-chart^="chart-revenue_units-refunds-dlc"] { height: 140px; }
@media (max-width: 767.98px) {
  .pl-refunds.pl-stats--row, .pl-refunds--two.pl-stats--row { grid-template-columns: minmax(0, 1fr); }
  .pl-chart-box[data-pl-chart^="chart-revenue_units-refunds"] { height: 160px; }
}

/* Home (mock-up home-platforms v2, Fredrik 2026-10-23): the welcome, four boxes (violet,
   sand, ice, violet), attention beside your games, platforms and Market. Tokens only. */
.pl-home { display: grid; gap: var(--space-5); }
.pl-home-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-8); flex-wrap: wrap; margin-bottom: 24px; } /* + the page gap = 48px (mock-up home-welcome v1, A) */
.pl-home-hello__text { display: grid; gap: var(--space-2); }
.pl-home-hello__title { font: 400 32px/42px var(--font-sans); }
.pl-home-hello__lens { display: inline-block; width: 54px; height: 35px; vertical-align: -7px; margin: 0 8px 0 4px; }
[data-theme="light"] .pl-home-hello__lens.pl-mark-light { display: inline-block !important; }
.pl-home-hello__word { font: inherit; }
.pl-home-fresh { list-style: none; margin: 0 0 0 auto; padding: 0 0 0 var(--space-7); display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pl-home-fresh__chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-label-size); line-height: 18px; color: var(--ink-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); padding: 3px 10px; }
.pl-home-sec { display: grid; gap: var(--space-1); align-content: start; }
.pl-home-sec__meta { margin-bottom: var(--space-3); }
.pl-meta.pl-home-sec__meta { font-family: var(--font-sans); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); } /* a section's subtitle is body text, not a mono data note (sheet, flatten: heading + subtitle 13/20 ink-muted) */
.pl-home-sec .pl-footnote { margin-top: var(--space-2); }
.pl-home-att { list-style: none; margin: 0; padding: 0; }
.pl-home-att__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--hairline); font-size: var(--type-body-size); line-height: 20px; }
.pl-home-att__item:last-child { border-bottom: 0; }
.pl-home-att__mark { flex: none; width: 26px; height: 26px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: var(--type-body-sm-size); background: var(--status-soft); }
.pl-home-att__mark--warning { color: var(--warning-ink); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.pl-home-att__mark--event { color: var(--rose-gold-ink); background: var(--rose-gold-soft); }
.pl-home-att__mark--down { color: var(--critical-ink); background: color-mix(in srgb, var(--critical) 14%, transparent); }
.pl-home-att__link { margin-left: auto; font-size: var(--type-body-sm-size); white-space: nowrap; text-decoration: none; }
.pl-home-games td { vertical-align: middle; }
.pl-home-games th, .pl-home-games td { white-space: nowrap; }
.pl-home-games__game a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pl-home-games__game a:hover .pl-home-games__name { text-decoration: underline; }
.pl-home-games__capsule { flex: none; width: 64px; height: 30px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--hairline); }
.pl-home-games__capsule--none { display: inline-grid; place-items: center; background: var(--surface-raised); color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 500; }
.pl-home-games__badge { margin-left: 6px; font-size: var(--type-label-size); line-height: 16px; padding: 0 7px; border-radius: var(--radius-pill); border: 1px solid var(--promo); color: var(--promo-ink); background: var(--promo-soft); white-space: nowrap; }
.pl-home-games__note { font-size: 12.5px; white-space: normal !important; }
.pl-home-plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-home-plat { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
a.pl-home-plat[href]:hover { box-shadow: inset 0 0 0 1px var(--rose-gold); }
.pl-home-plat__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.pl-home-plat__name { display: inline-flex; align-items: center; gap: 8px; }
.pl-home-plat__name b { font-weight: 600; letter-spacing: .04em; }
.pl-home-plat__name svg.pl-icon { width: 20px; height: 20px; color: var(--ink-muted); }
.pl-home-plat__value { font-size: 24px; line-height: 30px; }
.pl-home-plat__spark { display: block; width: 100%; height: 34px; }
.pl-home-plat__spark polyline { fill: none; stroke: var(--you); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pl-home-plat--later { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: var(--space-5); color: var(--ink-muted); justify-content: center; font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-home-plat--later b { color: var(--ink); font-weight: 500; font-size: var(--type-body-size); }
.pl-home-market { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-home-mk { display: grid; gap: 4px; border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-4); background: var(--surface-raised); color: var(--ink); text-decoration: none; }
.pl-home-mk:hover { border-color: var(--rose-gold); }
.pl-home-mk__line { font-size: 15px; line-height: 22px; }
.pl-home-mk small { font-size: var(--type-label-size); }
@media (max-width: 1000px) {
  .pl-home-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: one column, the boxes first (two a line, short labels), then attention, then the
   rest (mock-up section 3; modules/README rule 8). */
@media (max-width: 767.98px) {
  .pl-home { gap: var(--space-4); }
  .pl-home-hello { align-items: flex-start; gap: var(--space-2); margin-bottom: 12px; } /* = 32px */
  .pl-home-hello__title { font-size: 24px; line-height: 32px; }
  .pl-home-fresh { margin-left: 0; padding-left: 0; }
  .pl-home__overview .pl-home-sec > .pl-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-home-plats, .pl-home-market { grid-template-columns: 1fr; }
  .pl-home-att__item { font-size: var(--type-body-sm-size); padding-inline: 0; }
  .pl-home-games__capsule { width: 46px; height: 21px; }
  .pl-home-games__capsule--none { display: none; }
  .pl-home-games td.pl-home-games__game { white-space: normal; }
  .pl-home-games__game a { gap: 6px; }
  .pl-home-games__badge { display: inline-block; margin: 2px 0 0; }
  .pl-home-games th:nth-child(4), .pl-home-games td:nth-child(4) { display: none; }
  .pl-home-games th, .pl-home-games td { padding-inline: 6px; }
  .pl-home-att__item { flex-wrap: wrap; }
  .pl-home-att__text { flex: 1 1 0; min-width: 0; }
  .pl-home-att__link { flex-basis: 100%; margin-left: 38px; }
}

/* Forecasts: Events in the forecast (mock-up forecasts v3, section "events"). */
.pl-fc-ev__how { border-left: 3px solid var(--rose-gold); background: var(--rose-gold-soft); border-radius: var(--radius-md); padding: 10px 14px; margin: 4px 0 var(--space-4); font: 400 var(--type-body-size)/21px var(--font-sans); color: var(--ink); max-width: 90ch; }
.pl-fc-ev__how small { display: block; margin-top: 4px; font-size: var(--type-body-sm-size); color: var(--ink-muted); }
.pl-fc-ev__msg { margin: 0 0 var(--space-3); padding: 6px 10px; border-radius: var(--radius-sm); background: var(--status-soft); color: var(--ink); font-size: var(--type-body-sm-size); }
.pl-fc-ev__form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; margin: 4px 0 var(--space-4); }
.pl-fc-ev__field { display: flex; flex-direction: column; gap: 4px; font: 400 var(--type-label-size)/16px var(--font-sans); color: var(--ink-muted); }
.pl-fc-ev__field--wide { grid-column: 1 / span 3; }
.pl-fc-ev__err { color: var(--critical-ink); font-size: var(--type-label-size); }
.pl-fc-ev__pill { display: inline-block; font: 500 var(--type-label-size)/16px var(--font-sans); padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); color: var(--ink-muted); white-space: nowrap; }
.pl-fc-ev__pill--in { border-color: var(--rose-gold); color: var(--rose-gold-ink); }
.pl-fc-ev__pill--waiting { border-style: dashed; }
.pl-fc-ev__when, .pl-fc-ev__act { white-space: nowrap; }
/* The event's name keeps a readable column, never one word a line (design owner, 2026-10-25). */
.pl-fc-ev__table thead th:first-child, .pl-fc-ev__table tbody tr:not(.pl-fc-ev__editrow) > td:first-child { min-width: 14ch; }
.pl-fc-ev__why { color: var(--ink-muted); font-size: 12.5px; max-width: 320px; }
.pl-fc-ev__act form { display: inline; margin-left: var(--space-2); }
.pl-fc-ev__editrow td { background: var(--surface-raised); }
.pl-fc-ev__editrow .pl-fc-ev__form { margin-bottom: 0; }
/* The edit form sits in a row as wide as the table. When the table scrolls (below about
   1200 px), the form keeps to the card's visible width and stays in view (design owner on
   PR 382: "Kind" and "To" were cut off at 768-1024). */
.pl-fc-ev .pl-table-wrap { container-type: inline-size; }
.pl-fc-ev__editbox { position: sticky; left: var(--space-3); width: calc(100cqw - 2 * var(--space-3)); max-width: 100%; }
.pl-fc-ev__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Four fields a row need about 728 px of card: below 1200 px two a row, the note full width
   (design owner, 2026-10-25: the form pushed the page 241 px sideways at 768). */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .pl-fc-ev__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-fc-ev__field--wide { grid-column: 1 / -1; }
}
.pl-fc-ev__field > input, .pl-fc-ev__field > select, .pl-fc-ev__field > textarea { min-width: 0; max-width: 100%; }
@media (max-width: 767.98px) {
  .pl-fc-ev__form { grid-template-columns: 1fr; }
  .pl-fc-ev__field--wide { grid-column: auto; }
}

/* "?" with the reasoning behind a headline (Forecasts by month, Fredrik 2026-10-23). */
.pl-why { position: relative; display: inline-block; vertical-align: 2px; margin-left: 6px; }
.pl-why__btn { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--ink-muted); font: 600 var(--type-label-size)/18px var(--font-sans); cursor: help; }
.pl-why__btn:hover, .pl-why__btn:focus-visible { color: var(--ink); border-color: var(--rose-gold-ink); }
.pl-why__tip { display: none; position: absolute; z-index: var(--z-tooltip); left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: min(340px, 80vw); padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--hairline); box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.45); color: var(--ink); font: 400 var(--type-body-sm-size)/19px var(--font-sans); text-align: left; }
.pl-why:hover .pl-why__tip, .pl-why__btn:focus + .pl-why__tip { display: block; }
@media (max-width: 767.98px) { .pl-why__tip { left: auto; right: -8px; transform: none; } }

/* Section heads (mock-up section-head v1, Fredrik 2026-10-23): ? · Present · scope · source at
   the top right; the description behind the ?, written out only in print and Present. */
.pl-section__tags { align-items: center; }
/* At every width a section's parts and its head's parts may shrink and wrap, so nothing pushes
   a card wider than the page; a wide table scrolls inside its own region (.pl-table-wrap, a
   labelled keyboard stop while it overflows). 2026-10-25: Forecast's events head and table. */
.pl-section > *, .pl-section__head > * { min-width: 0; max-width: 100%; }
.pl-iconbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--ink-muted); cursor: pointer; }
.pl-iconbtn:hover, .pl-iconbtn:focus-visible { color: var(--ink); border-color: var(--rose-gold-ink); box-shadow: 0 0 12px -2px var(--glow); }
.pl-iconbtn svg { width: 15px; height: 15px; }
.pl-iconbtn[aria-pressed="true"] { color: var(--ink); border-color: var(--rose-gold-ink); }
.pl-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-why--head { margin-left: 0; vertical-align: 0; }
.pl-why--head .pl-why__btn { width: 28px; height: 28px; font: 600 var(--type-body-sm-size)/26px var(--font-sans); cursor: help; }
.pl-why--head .pl-why__tip { left: auto; right: -8px; transform: none; width: min(360px, 80vw); }
.pl-why__label { display: block; margin-bottom: 4px; font: 500 var(--type-label-size)/16px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.pl-meta--shown-only { display: none; }
.pl-section-slot:fullscreen .pl-meta--shown-only, .pl-section:fullscreen .pl-meta--shown-only { display: block; }
.pl-section-slot:fullscreen .pl-why--head, .pl-section:fullscreen .pl-why--head { display: none; }
@media print { .pl-meta--shown-only { display: block; } .pl-why--head, .pl-iconbtn { display: none; } }

/* Home: "Your daily overview" heads the whole page, so it is 24 px, above the section
   headlines (18) and below the welcome (32) (mock-up home-overview-title v1, A). */
.pl-home-sec__title--page { font-size: 24px; line-height: 32px; }

/* The BETA VERSION mark and the Feedback tab (mock-up feedback-beta v1, decision
   2026-10-23 feedback-and-beta): sand from the promo tokens, no new colour. The mark sits
   at the right end of the top row, before the studio switcher (sidebar-nav v1); on a
   phone next to the logo. */
.pl-beta { position: relative; flex: none; }
.pl-beta__btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--glow-sand); background: var(--promo-soft); color: var(--promo-ink); font: 600 var(--type-label-size)/16px var(--font-mono); letter-spacing: 0.14em; white-space: nowrap; cursor: help; }
.pl-beta__btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--promo); box-shadow: 0 0 8px var(--glow-sand); }
.pl-beta__btn:hover, .pl-beta__btn:focus-visible { border-color: var(--promo); box-shadow: 0 0 12px -2px var(--glow-sand); }
.pl-beta__tip { display: none; position: absolute; z-index: var(--z-tooltip); right: 0; top: calc(100% + 8px); width: min(320px, 86vw); padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--hairline); box-shadow: var(--shadow-pop); color: var(--ink); font: 400 var(--type-body-sm-size)/19px var(--font-sans); letter-spacing: 0; text-align: left; }
.pl-beta__tip a { color: var(--link); }
.pl-beta:hover .pl-beta__tip, .pl-beta:focus-within .pl-beta__tip, .pl-beta.is-open .pl-beta__tip { display: block; }
.pl-fb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.pl-fb__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-fb__field { display: grid; gap: 6px; }
.pl-fb__field select, .pl-fb__field textarea { width: 100%; }
.pl-fb__field textarea { min-height: 110px; resize: vertical; }
.pl-fb__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 6px; }
.pl-fb__chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-fb__chips label { padding: 7px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); font-size: var(--type-body-size); color: var(--ink-muted); cursor: pointer; }
.pl-fb__chips input:checked:not(:disabled) + label { color: var(--ink); border-color: var(--rose-gold-ink); background: var(--rose-gold-soft); box-shadow: 0 0 14px -4px var(--glow); }
.pl-fb__chips input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-fb__short { display: none; }
.pl-fb__check { display: flex; gap: var(--space-2); align-items: center; font-size: var(--type-body-size); color: var(--ink-muted); }
.pl-fb__check input { accent-color: var(--rose-gold); width: 16px; height: 16px; }
.pl-fb__msg { color: var(--ink-muted); margin-top: 2px; overflow-wrap: anywhere; }
.pl-fb__reply { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--rose-gold); background: var(--rose-gold-soft); border-radius: var(--radius-md); font-size: var(--type-body-sm-size); color: var(--ink); }
.pl-fb__table td { vertical-align: top; }
.pl-fb__st { display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); color: var(--ink-muted); font: 500 var(--type-label-size)/18px var(--font-sans); white-space: nowrap; }
.pl-fb__st--planned { border-color: var(--promo); color: var(--promo-ink); }
.pl-fb__st--done { border-color: var(--good-ink); color: var(--good-ink); }
.pl-fb__staff .pl-fb__answer { margin-top: var(--space-2); min-width: 240px; }
.pl-fb__staff textarea { width: 100%; }
@media (max-width: 820px) { .pl-fb { grid-template-columns: 1fr; } }
/* Phone: one column, the form first; the mark next to the logo; short kind names. */
@media (max-width: 767.98px) {
  .pl-beta--phone { margin-right: auto; }
  .pl-beta--phone .pl-beta__btn { padding: 3px 8px; font-size: var(--type-label-size); letter-spacing: 0.1em; }
  .pl-beta--phone .pl-beta__tip { right: auto; left: 0; width: min(300px, calc(100vw - 80px)); }
  .pl-fb__long { display: none; }
  .pl-fb__short { display: inline; }
  /* Two narrow columns fit the card: no sideways scroll, no sticky first column. */
  .pl-fb .pl-table-wrap { margin-inline: 0; padding-inline: 0; }
  .pl-fb .pl-fb__table tr > :first-child { position: static; }
}

/* Official platform marks (Steam: Valve's artwork, unaltered: no glow, no recolour). */
.pl-plat { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.pl-plat--light { display: none; }
[data-theme="light"] .pl-plat--dark { display: none; }
[data-theme="light"] .pl-plat--light { display: inline-block; }
.pl-legal { max-width: var(--layout-page-max); margin: 0 auto; padding: 0 var(--space-4) var(--space-6); font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
@media (max-width: 767.98px) { .pl-legal { padding-bottom: calc(72px + var(--space-4)); } }

/* PeerLight 2.0: empty, data and working states (design sheet v3.3, decision 12, 2026-10-24).
   Quiet when there is simply nothing to show; never quiet when something needs action or broke. */

/* (A) On the page ground: a ghost card. A 1 px solid ghost-edge, no fill, no shadow. */
.pl-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1);
  min-height: 120px; padding: var(--space-4);
  background: transparent; border: 1px solid var(--ghost-edge); border-radius: var(--radius-md); box-shadow: none;
}
.pl-empty__icon { display: inline-flex; width: 20px; height: 20px; color: var(--ink-muted); }
.pl-empty__icon svg { width: 20px; height: 20px; }
.pl-empty h4 {
  margin: 0; color: var(--ink);
  font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 500;
}
.pl-empty p {
  margin: 0; max-width: 56ch; color: var(--ink-muted);
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-empty__link { display: inline-flex; align-items: center; min-height: 24px; font-size: var(--type-body-sm-size); }

/* (B) Inside a card: no outline; the icon and text sit where the content would be. */
.pl-card .pl-empty {
  align-items: center; justify-content: center; text-align: center;
  min-height: 140px; border: 0; border-radius: 0;
}

/* Not connected does not whisper: the ghost plus a warning icon and a visible action. */
.pl-empty--alert .pl-empty__icon { color: var(--warning-ink); }
.pl-state-action { min-height: 32px; padding-block: 5px; margin-top: var(--space-1); }
.pl-empty .pl-state-action { align-self: flex-start; }
.pl-card .pl-empty .pl-state-action { align-self: center; }

/* Couldn't load and Late: a warning icon and a 3 px warning bar on a solid card, never the ghost. */
.pl-warnstate {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: 14px var(--space-4);
  background: var(--surface); border: 1px solid var(--card-edge); border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
}
.pl-warnstate__icon { display: inline-flex; flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--warning-ink); }
.pl-warnstate__icon svg { width: 20px; height: 20px; }
.pl-warnstate__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0; }
.pl-warnstate h4 {
  margin: 0; color: var(--ink);
  font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 500;
}
.pl-warnstate p { margin: 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
/* One card level only (decision 8): when the state fills a card, that card carries the bar. */
.pl-card:not(.pl-stat):has(> .pl-warnstate) { border-left: 3px solid var(--warning); } /* beats the card edge of violet-chrome */
.pl-card > .pl-warnstate { padding: 0; background: none; border: 0; border-radius: 0; }
/* A failed card slot gets the same inset as a failed slot on the ground, so they line up. */
.pl-card.pl-section-slot:not(.pl-stat):has(> .pl-warnstate) { padding: 14px var(--space-4); }

/* Loading: a skeleton without a box, never a zero. */
.pl-skeleton { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 120px; padding: var(--space-4) 0; }
/* The skeleton token is darker than the ground in light (1.32:1 on the ground, 1.54:1 on a card). */
.pl-skeleton__bar { display: block; width: 100%; height: 12px; border-radius: 4px; background-color: var(--skeleton); }
.pl-skeleton__bar--70 { width: 70%; }
.pl-skeleton__bar--40 { width: 40%; }
@media (prefers-reduced-motion: no-preference) {
  .pl-skeleton__bar { animation: pl-skeleton 1.4s ease-in-out infinite alternate; }
}
@keyframes pl-skeleton { to { opacity: .85; } } /* never fainter than 1.27:1 on the light ground */

/* Partial: a hatched area (the chart's last, incomplete stretch). */
.pl-hatch { background: repeating-linear-gradient(45deg, var(--hairline) 0 2px, transparent 2px 7px); }

/* Dashes only for a real add target, in card-edge, always with its button. */
.pl-addtarget {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding: 14px var(--space-4); border: 1px dashed var(--card-edge); border-radius: var(--radius-md);
}

/* Home "More platforms later" is an empty state, not an add target: no dashes. */
.pl-home-plat--later { border: 1px solid var(--ghost-edge); }

/* Bottom left of every section: Export CSV, then + Add note (Fredrik 2026-10-23). */
.pl-section__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); justify-content: flex-start; }
.pl-section__foot:not(:has(*)) { display: none; }
@media print { .pl-section__foot { display: none; } }

/* Parts that load on their own (design sheet v3.3 states): the skeleton keeps the height of what it
   stands in for, so nothing jumps when the content lands; Couldn't load sits in the same place. */
.pl-lazy [hidden] { display: none; }
.pl-lazy .pl-skeleton { min-height: 0; padding: 0; justify-content: flex-start; }
.pl-lazy .pl-skeleton__bar--chart { height: 72px; }
.pl-lazy .pl-skeleton__bar--row { height: 52px; }
.pl-lazy--row {
  min-height: 420px; padding: 14px var(--space-4) var(--space-4);
  border-inline-start: 2px solid var(--you);
}
.pl-lazy--row .pl-skeleton { gap: var(--space-4); }
@media (max-width: 767px) { .pl-lazy--row { min-height: 440px; } }
.pl-lazy--list .pl-skeleton { gap: var(--space-3); padding: var(--space-3) 18px; } /* in the list card of the Release radar */
.pl-lazy--list { margin-top: var(--space-4); }

/* PeerLight 2.0 shell polish (design sheet v3.4, theme switch rulings). Tokens only. */
/* The account menu is as wide as its widest line, so the saved line sits on one line. */
.pl-account .pl-menu { width: max-content; min-width: 260px; max-width: calc(100vw - 32px); }
.pl-theme__saved { white-space: nowrap; }
.pl-theme__saved.is-failed { color: var(--warning-ink); }
/* The same choice as a card in Settings: no menu rule under it. */
.pl-theme-line .pl-theme { border-bottom: 0; padding-bottom: 0; margin: 0; }
.pl-theme-line .pl-theme label { padding-inline: 0; }
.pl-theme-line .pl-theme legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-theme-line .pl-theme__saved { padding-inline: 0; }
@media (max-width: 767.98px) {
  .pl-account .pl-menu { width: auto; max-width: none; }
  .pl-theme__saved { white-space: normal; }
}

/* The header link of the page you are on (Notes) shows it, not only to screen readers. */
.pl-option[aria-current="page"] { color: var(--ink); background: var(--surface-raised); }

/* Reviews v2 (mock-up reviews v2, Fredrik 2026-10-23): row 2 in sand, four boxes wide so the
   hours and Steam Deck boxes can join "Reviews per 100 copies sold"; the "% positive by month"
   legend's faded line and its dashed sand update box (the promotion box of Sales per day). */
.pl-revsum.pl-revsum--row2 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-3); }
.pl-revsum__note { font-size: var(--type-label-size); line-height: 17px; color: var(--ink-muted); }
.pl-legend i.pl-legend__faded { opacity: 0.3; }
.pl-legend i.pl-legend__box { width: 14px; height: 10px; background: var(--promo-soft); border: 1.5px dashed var(--promo); border-radius: 2px; }
@media (max-width: 900px) { .pl-revsum.pl-revsum--row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pl-revsum.pl-revsum--row2 { grid-template-columns: 1fr; } }

/* Reviews v2, PR D (mock-up reviews v2, Fredrik 2026-10-23): the hours and Steam Deck boxes in
   sand row 2 ("h median" small after the figure), the quiet line before the first daily run,
   and the "Hours played before reviewing" chart under "What it means". On a phone the boxes
   stack one per row, figure left and detail right, as in the mock-up's phone view. */
.pl-revsum__value small { margin-left: 4px; font-size: var(--type-body-sm-size); font-weight: 400; color: var(--ink-muted); }
.pl-revsum__quiet { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
.pl-revsum-hours { margin-top: var(--space-4); }
.pl-revsum-hours caption { text-align: left; padding-bottom: var(--space-2); }
@media (max-width: 767.98px) {
  .pl-revsum--row2 .pl-card.pl-revsum__box { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: var(--space-3); }
  .pl-revsum--row2 .pl-revsum__box > .pl-eyebrow, .pl-revsum--row2 .pl-revsum__note { grid-column: 1 / -1; }
  .pl-revsum--row2 .pl-revsum__value { font-size: 22px; line-height: 28px; }
  .pl-revsum--row2 .pl-revsum__sub { text-align: right; }
}

/* Sideways-scrolling regions (design sheet v3.1, rules 13 and 14). peerlight.js makes a wide
   table or box a keyboard stop only while it overflows, and sets the edge-fade classes
   from the scroll position. */
.pl-table-wrap:focus-visible, .pl-pb__timeline-box:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm);
}
/* Edge fade (28 px): more sits off-screen on that side. */
.pl-more-right { -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); }
.pl-more-left { -webkit-mask-image: linear-gradient(to left, black calc(100% - 28px), transparent); mask-image: linear-gradient(to left, black calc(100% - 28px), transparent); }
.pl-more-left.pl-more-right {
  -webkit-mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent);
}
/* A mask also clips the focus ring, so the ring wins while the region has focus. */
.pl-more-left:focus-visible, .pl-more-right:focus-visible { -webkit-mask-image: none; mask-image: none; }
@media print { .pl-more-left, .pl-more-right { -webkit-mask-image: none; mask-image: none; } }

/* --- PeerLight 2.0 shell and navigation (design sheet v3.1, decision 2026-10-24 direction) ---
   The header (logo lockup, the studio's tools, the account button), the
   task sidebar, the in-page tabs and the phone bottom bar. Replaces the top row, the side menu
   inside a platform, the breadcrumb and the page pills (nav.css, grouped-pages.css,
   side-page-bracket.css). Shine here: the selected sidebar row's glow (sidebar-active.css) and
   the selected bottom-bar item's pill, only (Charged chrome, 2026-11-26). Tokens only. */

/* Header: the frame is quiet (surface, one hairline). */
.pl-header { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.pl-header__inner { max-width: none; min-height: 56px; padding: var(--space-2) var(--space-5); gap: var(--space-4); flex-wrap: nowrap; }
.pl-header__tools { gap: var(--space-3); flex-wrap: nowrap; min-width: 0; }
.pl-header__tools .pl-studio-switch > summary { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; }
.pl-header__tools .pl-account > summary.pl-account__btn { list-style: none; max-width: none; overflow: visible; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--violet-tint); color: var(--violet-strong); font: 600 var(--type-label-size)/16px var(--font-sans); }
.pl-header__tools .pl-account > summary.pl-account__btn::-webkit-details-marker { display: none; }
.pl-account .pl-menu { background: var(--surface-raised); border-color: var(--card-edge); border-radius: var(--radius-lg); }
.pl-menu__who { padding: var(--space-2) 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--hairline); font-size: var(--type-body-size); }
.pl-menu__who small { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-lockup__phone, .pl-menu__sharing { display: none; }
.pl-menu__sharing { padding: 0 10px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--hairline); color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-menu__sharing b { color: var(--ink); font-weight: 600; }
/* Notes in the header (decision 11): a text label on desktop, a 24 px target or more. */
.pl-header__tools > a.pl-option { min-height: 32px; min-width: 32px; justify-content: center; }
.pl-option__n { min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); font: 600 var(--type-label-size)/18px var(--font-sans); text-align: center; background: var(--chrome-notes-count-fill); color: var(--chrome-on-notes-count); } /* Chalk fill darkened for 4.5:1 (charged chrome, 2026-11-26) */

/* The shell: the sidebar beside the page on every page (desktop). */
/* 232 px, 256 px from a 1440 px screen (sidebar groups v3, Fredrik 2026-11-26); folded 64 px. */
:root { --pl-side-open: var(--layout-side); }
@media (min-width: 1440px) { :root { --pl-side-open: var(--layout-side-wide); } }
.pl-shell--side { display: grid; grid-template-columns: var(--pl-side-open) minmax(0, 1fr); align-items: start; }
.pl-shell--side.is-folded { grid-template-columns: var(--layout-side-folded) minmax(0, 1fr); }
.pl-shell--side > .pl-col { width: 100%; min-width: 0; }

/* The task sidebar (sheet v3.7 "Navigation"): labelled, 232 or 256 px, two levels at most. Three
   parts (menus.css): the studio block, the middle that scrolls on its own, the foot. Rows
   15/20 in 36 px, 12 px in on the left and 6 px on the right, 8 px gaps, so no label is ever
   cut and each keeps 8 px beside a "99+" pill (sidebar groups v3, Fredrik 2026-11-26). */
.pl-side { position: sticky; top: var(--pl-header-h, 0px); display: flex; flex-direction: column; height: calc(100vh - var(--pl-header-h, 0px)); overflow: visible; padding: 8px 0 0; background: var(--surface); border-right: 1px solid var(--hairline); }
.pl-side__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.pl-side__link { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: var(--type-nav-size); line-height: var(--type-nav-line); }
/* Hover: a box with a 1 px violet line inside it, never on the selected row; mouse only, so a tap leaves no ring. Keyboard focus: the same box with a 2 px focus line inside (Fredrik 2026-11-26, option B of the sidebar-hover-outline mock-up; Charged colours, charged-chrome v1). */
@media (hover: hover) {
  .pl-side__link:not([aria-current="page"]):hover { background: var(--chrome-hover-fill); outline: 1px solid var(--chrome-hover-line); outline-offset: -1px; }
}
.pl-side__link:focus-visible { background: var(--chrome-hover-fill); outline: 2px solid var(--focus); outline-offset: -2px; }
/* The selected row's look and its bar's size and colour: sidebar-active.css. */
.pl-side__link[aria-current="page"]::before { content: ""; position: absolute; }
.pl-side__link svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-side__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-side__group { margin: 10px 12px 4px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
/* Folded to icons for return users: names stay for screen readers and as tooltips. */
.is-folded .pl-side__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* A group heading becomes the boundary line, still named for screen readers. */
.is-folded .pl-side__group { height: 1px; margin: 5px 6px; overflow: hidden; background: var(--hairline); color: transparent; }
.is-folded .pl-side__link { justify-content: center; padding-inline: 0; }
/* Anchors land below everything that sticks at the top (WCAG 2.4.11): the header and, on a
   page with the sticky row (decision 17), the row. Both heights are measured (peerlight.js); one page-wide
   scroll padding covers every anchor, so no element needs its own offset. */
:root { --pl-anchor-top: calc(var(--pl-header-h, 0px) + var(--pl-ctx-h, 0px) + var(--space-4)); }
html { scroll-padding-top: var(--pl-anchor-top); }

/* With the sidebar beside it, Home's two columns (attention | your games) only fit from
   about 1360 px; below that they stack, so the games table never scrolls (PR 345 review). */

/* The page title names the area; the game follows it, quieter. */
.pl-page-title__game { color: var(--ink-muted); font-weight: 400; }

/* In-page tabs (sheet "In-page tabs"): 38 px, a 2 px violet underline on the current page.
   They scroll sideways on phones with an edge fade (peerlight.js sets it), never wrap. */
.pl-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-muted); text-decoration: none; font-size: var(--type-body-size); line-height: 20px; white-space: nowrap; }
.pl-tabs a:hover { color: var(--ink); }
.pl-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--violet); }
.pl-tabs a:focus-visible { outline-offset: -2px; }
.pl-main > .pl-tabs { margin-top: calc(-1 * var(--space-3)); }

/* KPI card (sheet "KPI card"): the label is the base eyebrow (12 px, sentence case), the value in the display cut. */
.pl-stat__value { font-family: var(--font-display); letter-spacing: var(--type-figure-xl-tracking); }

@media (max-width: 767.98px) {
  .pl-header__inner { padding: var(--space-2) var(--space-4); min-height: 52px; }
  /* Phones (decision 10): the lens alone, named "PeerLight, Home"; the closed/open chip moves
     into the account menu, so the header fits 375 px with the beta mark, Notes and account. */
  .pl-lockup .pl-lockup__text { display: none; }
  .pl-lockup .pl-lockup__phone { display: block; }
  .pl-header__tools { gap: var(--space-2); }
  .pl-header__tools > .pl-option-indicator { display: none; }
  .pl-menu__sharing { display: block; }
  .pl-shell--side, .pl-shell--side.is-folded { display: block; }
  .pl-side { display: none; }
  .pl-main > .pl-tabs { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); }
  /* The bottom bar (sheet "Phone (375 px)"): 56 px, words only; the selected item's word sits on
     a violet pill with the Charged ring and glow (charged chrome, Fredrik 2026-11-26; replaces the
     2 px satin bar on top). The pill is drawn behind the word and takes no layout space. */
  .pl-bottomnav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    background: var(--surface); border-top: 1px solid var(--hairline); padding-bottom: env(safe-area-inset-bottom);
  }
  .pl-bottomnav a { position: relative; display: grid; place-items: center; min-height: 56px; padding: 4px 2px; color: var(--ink-muted); text-decoration: none; font-size: var(--type-label-size); line-height: 16px; text-align: center; }
  .pl-bottomnav a[aria-current="page"] { color: var(--chrome-selected-ink); font-weight: 650; }
  .pl-bottomnav a[aria-current="page"]::before { content: ""; position: absolute; z-index: -1; top: 50%; left: 0; right: 0; height: 28px; margin-top: -14px; border-radius: var(--radius-pill); background: var(--chrome-selected-fill); box-shadow: var(--chrome-selected-glow); }
}
/* Held sideways, the bar scrolls with the page (decision 2026-10-21, shell-phone-landscape.css). */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) { .pl-bottomnav { position: static; } }
@media print { .pl-side, .pl-tabs, .pl-bottomnav { display: none !important; } .pl-shell--side { display: block; } }

/* --- Flatten (decision 8, Fredrik 2026-10-24; mock-up flatten-v1) --------------------------
   One card level only: the page ground holds cards, a card never holds a card. A section is a
   heading plus a subtitle on the ground; things read side by side are separate cards on the
   ground, 18 px apart within a section and 40 px between sections. Lists and tables stay one
   card with hairline rows. A compact group of figures inside one card is a stat strip split
   by dividers. Public figures carry a written "Public · Steam" label. Tokens only, except the
   decision's 18 px gap, which has no space token yet. */

/* A section on the ground: no frame, the heading does its job. */
.pl-flat { background: none; border: 0; box-shadow: none; padding: 0; }
.pl-home { gap: var(--space-6); }
.pl-home-sec.pl-flat > .pl-heading { font-weight: var(--type-heading-weight); }
.pl-home-sec.pl-flat .pl-home-sec__meta { margin-bottom: var(--space-3); }
.pl-home-plats, .pl-home-market { gap: 18px; }
.pl-home-mk.pl-card { padding: var(--space-4); gap: var(--space-1); }
.pl-home-mk.pl-card:hover { border-color: var(--border-strong); }

/* The stat strip (decision 8, option c): figures in one card, split by 1 px dividers. */
.pl-stats--strip, .pl-stats--strip.pl-stats--row { gap: 0; }
.pl-stats--strip > .pl-stat { padding: 0 18px; border-left: 1px solid var(--card-edge); min-width: 0; }
.pl-stats--strip > .pl-stat:first-child { padding-left: 0; border-left: 0; }
.pl-stats--strip + .pl-stats--strip { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }

/* The small figure rows inside a section card (How busy, Local pricing, Base game and DLCs)
   are stat strips too: no raised box, a divider between figures. */
.pl-kpis { gap: 0; }
.pl-kpi { padding: 0 18px; border: 0; border-left: 1px solid var(--card-edge); border-radius: 0; background: none; }
.pl-kpi:first-child { padding-left: 0; border-left: 0; }

/* "What it means" inside a card: no card of its own, a hairline above it. */
.pl-insight--meaning:not(.pl-card) { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }

/* "Which campaign was this?" is a list: one card, items split by hairlines, no cards inside. */
.pl-pb__queue { column-gap: var(--space-5); row-gap: 0; }
.pl-pb__qcard { padding: var(--space-4) 0; border-top: 1px solid var(--hairline); }

/* Violet is the studio's data, never a decorative bar (post-341 walkthrough, item 2): help
   boxes and Rekoup's answers get a neutral rule. */
.pl-fc-ev__how, .pl-fb__reply { border-left-color: var(--ink-muted); background: var(--status-soft); }

/* A/B tables: B's figures are text, so they need 4.5:1. --units (violet-deep) is a mark
   colour (bars, badges) and measures below that on the solid card; the gradient card used
   to hide it from the a11y check. B's figures are plain ink, its bar and badge stay. */
.pl-ab__vb { color: var(--ink); }

/* A/B pickers inside the section card (PR 345 review, decision 8): no boxes, no gradient
   edge; A and B side by side split by a divider, each named by its badge. */
.pl-ab__pickers { gap: 0; }
.pl-ab__picker, .pl-ab__picker--a, .pl-ab__picker--b { background: none; border: 0; border-radius: 0; padding: 0 18px; }
.pl-ab__picker:first-child { padding-left: 0; }
.pl-ab__picker + .pl-ab__picker { border-left: 1px solid var(--card-edge); }

/* Public, written out (decision 8): a small label, not only a dashed edge. */
.pl-public { display: inline-flex; align-items: center; margin-left: var(--space-2); padding: 1px 8px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); font: 500 var(--type-label-size)/16px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-muted); white-space: nowrap; }
.pl-stat > .pl-public, .pl-home-mk > .pl-public { justify-self: start; margin-left: 0; }

@media (max-width: 767.98px) {
  .pl-home { gap: var(--space-6); }
  .pl-stats--strip, .pl-stats--strip.pl-stats--row { grid-template-columns: minmax(0, 1fr); }
  .pl-stats--strip > .pl-stat, .pl-stats--strip > .pl-stat:first-child { padding: 10px 0; border-left: 0; border-top: 1px solid var(--card-edge); }
  .pl-stats--strip > .pl-stat:first-child { border-top: 0; padding-top: 0; }
  .pl-kpi, .pl-kpi:first-child { padding: 10px 0; border-left: 0; border-top: 1px solid var(--card-edge); }
  .pl-kpi:first-child { border-top: 0; padding-top: 0; }
  .pl-ab__pickers { grid-template-columns: minmax(0, 1fr); }
  .pl-ab__picker, .pl-ab__picker:first-child { padding: 10px 0; }
  .pl-ab__picker + .pl-ab__picker { border-left: 0; border-top: 1px solid var(--card-edge); }
}

/* --- Shell follow-ups (post-345 walkthrough, items 1 and 2) ---------------------------------
   Decision 8 again: the Forecast "How it works" help is plain text, not a tinted box. The Why
   button is at least 24 px square (WCAG 2.5.8). Tokens only. */
.pl-fc-ev__how { border: 0; border-radius: 0; background: none; padding: 0; color: var(--ink-muted); }
.pl-why__btn { width: 24px; height: 24px; line-height: 22px; }

/* PeerLight 2.0 theme switch (design sheet v3.4, "Theme switch (account menu)"; mock-up
   directions v4): a radio group in the account menu, below the name, above the links.
   Tokens only. */
.pl-theme { margin: 0 0 6px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
.pl-theme legend { padding: var(--space-1) 10px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-theme label { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--ink); font-size: var(--type-body-size); line-height: 20px; cursor: pointer; }
.pl-theme label:hover { background: var(--canvas); }
.pl-theme input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; flex: none; }
.pl-theme__def { color: var(--ink-muted); }
.pl-theme__saved { margin: 0; padding: 2px 10px 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-menu .pl-theme__save { margin-top: var(--space-1); }

/* "Match my computer" with the computer set to light: every rule elsewhere that keys on
   [data-theme="light"] gets its twin here (core/tests/test_theme_switch.py checks that none
   is missing). The colour tokens themselves switch in tokens.css. */
@media (prefers-color-scheme: light) {
  [data-theme="system"] .pl-mark-light { display: block !important; }
  [data-theme="system"] .pl-mark-dark { display: none !important; }
  [data-theme="system"] .pl-home-hello__lens.pl-mark-light { display: inline-block !important; }
  [data-theme="system"] .pl-plat--dark { display: none; }
  [data-theme="system"] .pl-plat--light { display: inline-block; }
  :root[data-theme="system"] .pl-side__link[aria-current="page"] { background: var(--violet-tint); }
  :root[data-theme="system"] .pl-btn--accent { background: var(--pl-fill); }
}

/* Forecast scenario controls (UX ruling on PR 357): each group is one unbreakable box,
   so a second line only ever starts between groups; the slider has Cautious and Hopeful
   at the ends of its track and the readout on its own line under it. */
.pl-fc__group { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: nowrap; white-space: nowrap; }
.pl-fc__controls .pl-scope { flex-wrap: nowrap; white-space: nowrap; }
.pl-fc__dial { display: inline-grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2); row-gap: var(--space-1); }
.pl-fc__dial .pl-fc__p { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 767.98px) {
  .pl-fc__dial { display: grid; width: 100%; }
  .pl-fc__dial .pl-fc__slider { width: 100%; }
}

/* PeerLight 2.0: the Game, Period, Compare bar (design sheet v3.4 "Context bar", decision 13).
   On the page ground under the title, never in a card (decision 8): its controls are the only
   outlined things, and a hairline separates it from the page below. It scrolls with the page:
   the sticky row (sticky-row.css, decision 17) takes over once the title is gone. Phones fold it into one chip that opens a bottom sheet. Tokens only. */

.pl-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-inline: calc(-1 * var(--space-2)); padding: 10px var(--space-2); background-color: var(--canvas); background-image: var(--grain); background-attachment: fixed; border-bottom: 1px solid var(--hairline); }
.pl-ctx__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); flex: 1 1 auto; min-width: 0; }

/* One control: Game, Period, Compare and the steps (sheet ".ctl"). */
.pl-ctx__ctl { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--card-edge); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pl-ctx__ctl:hover { border-color: var(--border-strong); }
.pl-ctx__ctl b { font-weight: 600; }
.pl-ctx__ctl.is-on { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.pl-ctx__k { color: var(--ink-muted); }
.pl-ctx__caret { color: var(--ink-muted); }
summary.pl-ctx__ctl { list-style: none; }
summary.pl-ctx__ctl::-webkit-details-marker { display: none; }
.pl-ctx__menu[open] > summary { border-color: var(--violet); }
.pl-ctx__step { justify-content: center; min-width: 32px; padding: 0 8px; }
.pl-ctx__step.is-off { color: var(--ink-muted); cursor: not-allowed; font: inherit; font-size: var(--type-body-sm-size); }  /* the end of the data (decision 31): a named, keyboard-reachable button, muted, never faded; its name says why */
.pl-ctx__step.is-off:hover { border-color: var(--card-edge); }

/* The freshness at the end of the bar (sheet ".fresh"): IBM Plex Mono, 12 px, muted. */
.pl-ctx__fresh { margin-left: auto; font-family: var(--font-mono); font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
.pl-ctx-phone, .pl-ctx-phone__fresh { display: none; }

/* An opened menu (sheet "Context bar, opened"): shadow-pop, radius 12, items 32 px. */
.pl-ctx__menu { position: relative; }
.pl-ctx__pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: var(--z-menu); min-width: 240px; max-height: 70vh; overflow: auto; padding: 6px; background: var(--surface-raised); border: 1px solid var(--card-edge); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
.pl-ctx__pop--period { min-width: 320px; } /* two 140 px date inputs side by side (Custom) */
.pl-ctx__pop--end { left: auto; right: 0; } /* a menu at the end of its line (the PeerLight view's Game menu) opens leftwards, inside the window */
.pl-ctx__hd { margin: 0; padding: 6px 10px 2px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-ctx__list { list-style: none; margin: 0; padding: 0; }
.pl-ctx__it { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: var(--type-body-size); line-height: 20px; }
.pl-ctx__it:hover { background: var(--canvas); }
.pl-ctx__it[aria-current="true"] { color: var(--violet-strong); font-weight: 600; }
.pl-ctx__it--two { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 44px; padding: 6px 10px; }
.pl-ctx__dates { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.pl-ctx__tick { color: var(--violet-strong); }
.pl-ctx__sep { height: 1px; margin: 4px 0; background: var(--hairline); }

/* Compare as a visible segment (decision 14): Previous and Last year, one click each (Peers was
   removed as a choice, Fredrik 2026-11-19). The chosen part takes the selected chip's look. */
.pl-ctx__seg { display: inline-flex; align-items: center; gap: 0; }
.pl-ctx__seg > .pl-ctx__k { margin-right: 8px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ctx__segitem { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; margin-left: -1px; border: 1px solid var(--card-edge); background: var(--surface); color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); text-decoration: none; white-space: nowrap; }
.pl-ctx__segitem:first-of-type { margin-left: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pl-ctx__segitem:last-of-type { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pl-ctx__segitem:only-of-type { border-radius: var(--radius-sm); }
.pl-ctx__segitem:hover { background: var(--surface-raised); }
.pl-ctx__segitem[aria-current="true"], .pl-ctx__segitem[aria-pressed="true"] { position: relative; background: var(--violet-tint); color: var(--violet-strong); font-weight: 600; box-shadow: inset 0 -2px 0 var(--violet); } /* sheet v3.52 (Fredrik 2026-11-17): the selected side also by a 2 px underline inside its bottom edge, no added height; every control built from the segment, incl. Home's money switch (was its own rule since PR 993) */
.pl-ctx__segitem:focus-visible { position: relative; z-index: var(--z-content); }
/* All time: no previous period and no last year (decisions 13 and 14), said in words. */
.pl-ctx__none { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-ctx__segitem + .pl-ctx__none { margin-left: 10px; }

/* Custom: the date range (sheet "Forms": label above, 36 px controls), in the Period menu and
   in the phone sheet. Two labels, then the two native date inputs, then Show. */
.pl-ctx__custom fieldset, .pl-ctx-sheet__custom fieldset { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-2); row-gap: 2px; margin: 0; padding: 4px 10px 8px; border: 0; min-width: 0; }
.pl-ctx__custom legend, .pl-ctx-sheet__custom legend { padding: 6px 0 2px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-ctx__custom label, .pl-ctx-sheet__custom label { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-ctx__custom input, .pl-ctx-sheet__custom input { min-width: 140px; height: 36px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: var(--type-body-size); font-variant-numeric: tabular-nums; }
.pl-ctx__custom button, .pl-ctx-sheet__custom button { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* Phones: one chip ("Saltmarsh · 13 weeks · vs previous") that opens the bottom sheet
   (radius 16 on top, grab handle, chips). A tap applies at once (decision 14). Not sticky. */
@media (max-width: 767.98px) {
  .pl-ctx { position: static; margin-inline: 0; padding: 0 0 var(--space-2); justify-content: space-between; }
  .pl-ctx__bar { display: none; }
  .pl-ctx-phone { display: block; min-width: 0; flex: 0 1 auto; }
  .pl-ctx-phone__fresh { display: inline; margin-left: 0; }
  .pl-ctx-phone__chip { max-width: 100%; }
  .pl-ctx-phone__text { overflow: hidden; text-overflow: ellipsis; }
  /* Above the 56 px bottom bar, so nothing in the sheet is ever under it. */
  .pl-ctx-sheet { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: var(--z-dialog); max-height: calc(100vh - 120px); overflow: auto; padding: 10px var(--space-4) var(--space-4); background: var(--surface-raised); border-top: 1px solid var(--card-edge); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-pop); }
  .pl-ctx-sheet__grab { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--border-strong); }
  .pl-ctx-sheet__studio { margin: 0 0 var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
  .pl-ctx-sheet__group { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  .pl-ctx-sheet__legend { width: 100%; margin: 0; padding: 0 0 2px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
  .pl-ctx-sheet__custom fieldset { padding: 0 0 4px; }
}
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) {
  .pl-ctx-sheet { bottom: 0; max-height: 90vh; }
}

/* A sheet chip: a link that applies its choice at once, drawn as the sheet's chip (12 px pill;
   the current one = violet tint and a 1 px violet edge, sheet v3.53). */
.pl-ctx-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; text-decoration: none; }
.pl-ctx-chip[aria-current="true"] { background: var(--violet-tint); color: var(--violet-strong); border-color: var(--violet); font-weight: 600; }

/* The chip a section shows when it keeps its own period ("this chart: last 12 months"). Text in
   the section, not a box. */
.pl-ctx-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-ctx-note .pl-ctx-note__chip { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); }

/* A locked Compare choice (Last year when the game was not on sale for all of it, G1; base.css
   "Locked"). Inside the segment it keeps the group's dividers and has no fill or hover of its
   own; it is never pressed. The same in the phone sheet, its reason line under the group. */
.pl-ctx__segitem.is-locked, .pl-ctx__segitem.is-locked:hover { gap: 6px; background: transparent; color: var(--ink-muted); font: inherit; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); cursor: not-allowed; }
.pl-ctx-chip.is-locked, .pl-ctx-chip.is-locked:hover { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--ink-muted); font: inherit; cursor: not-allowed; }
.pl-ctx__segitem.is-locked svg, .pl-ctx-chip.is-locked svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-ctx-sheet__group .pl-why { flex-basis: 100%; margin-top: var(--space-1); }
@media print { .pl-ctx { position: static; } .pl-ctx__pop, .pl-ctx-sheet { display: none !important; } }

/* Sales at a glance (decision 15, design sheet v3.5 "sales-glance"): a heading and subtitle on
   the page ground, four KPI cards that follow the context bar, two fixed cards with chips. One
   card level only (decision 8). Phones: the bar's cards two per row, the fixed ones full width.
   Tokens only. */

.pl-glance { display: grid; gap: 0; }
.pl-glance__heading { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-glance__sub { margin: 2px 0 12px; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
.pl-glance__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pl-glance__fixed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pl-glance__card { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-width: 0; }
.pl-glance__label { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); font-weight: 500; }
.pl-glance__value { margin-top: 4px; font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-glance__delta { font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-glance__lead { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-glance__lead--up { color: var(--good-ink); }
.pl-glance__lead--down { color: var(--critical-ink); }
.pl-glance__lead--flat { color: var(--ink); }
.pl-glance__basis, .pl-glance__raw, .pl-glance__meaning, .pl-glance__peer { color: var(--ink-muted); }
.pl-glance__raw { font-size: var(--type-label-size); line-height: 16px; font-variant-numeric: tabular-nums; }
.pl-glance__peer { font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-glance__meaning { font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-glance__chip { display: inline-flex; align-self: flex-start; margin-top: 4px; padding: 1px 8px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-glance__spark { display: block; margin: 4px 0 2px; overflow: visible; }
.pl-glance__line { fill: none; stroke: var(--you); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.pl-glance__promo { fill: var(--promo-soft); stroke: var(--promo); stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }

@media (max-width: 1100px) { .pl-glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .pl-glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pl-glance__fixed { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .pl-glance__card { padding: 12px; }
}

/* Sales row labels in sentence case ("China", "Net revenue"): the sheet retires uppercase eyebrows (copy follow-up, 2026-10-24). */
.pl-row-label--sentence { letter-spacing: 0; text-transform: none; font-size: var(--type-body-sm-size); }
.pl-fold__title { letter-spacing: 0; text-transform: none; font-size: var(--type-body-sm-size); }

/* PeerLight 2.0: the sticky row (decision 17, mock-up sticky-nav v1). Once the page title has
   scrolled away, one 48 px row sits under the header, beside the sidebar: the area, its pages
   and a summary chip that opens the bar's own controls. Phones: nothing extra at rest; the chip
   and the pages (88 px) slide in while scrolling up. Frame, not shine: a solid surface, a
   hairline and a small shadow, no satin, glow or blur. It lives in the header (app.html), so the
   header's stacking covers it; peerlight.js toggles .is-stuck and keeps the anchor offset. */

/* Measured by peerlight.js; these are the values before the first measurement. */
:root { --pl-header-h: 57px; --pl-ctx-h: 53px; --pl-side-w: 0px; }
:root:has(.pl-shell--side) { --pl-side-w: var(--pl-side-open); }  /* 232 or 256 px (shell-and-nav.css) */
:root:has(.pl-shell--side.is-folded) { --pl-side-w: var(--layout-side-folded); }

.pl-stickrow { display: none; }

/* Desktop and laptop, wherever the header sticks (768 px wide, 600 px high). */
@media (min-width: 768px) and (min-height: 600px) {
  /* The header's own rows stay above the row, so it slides out from under them. */
  .pl-header__inner { position: relative; z-index: 2; background-color: var(--surface); }
  .pl-stickrow {
    position: absolute; top: calc(100% + 1px); left: var(--pl-side-w); right: 0; z-index: 1;
    display: flex; align-items: center; gap: var(--space-3); height: 48px; padding: 0 var(--pl-gutter);  /* the page's own edge (shell.css) */
    background-color: var(--surface); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-card);
    transform: translateY(-120%); visibility: hidden; transition: transform .16s ease, visibility 0s .16s;
  }
  .pl-stickrow.is-stuck { transform: none; visibility: visible; transition: transform .16s ease; }
  /* A control in the header or the row is already in view where it sticks. Without this the
     page's scroll padding (which clears the row) makes the browser scroll up to "reveal" it:
     a click on the chip jumped the page to the top, the row went away and closed its menu. */
  :root:has(.pl-header:focus-within) { scroll-padding-top: 0; }
  .pl-stickrow__area { flex: none; color: var(--ink); font-size: var(--type-body-size); line-height: 20px; font-weight: 600; white-space: nowrap; }
  /* No bar yet (Store page): the game after the area, quieter, as in the page title. */
  .pl-stickrow__game { color: var(--ink-muted); font-weight: 400; }
  /* The pages: the sheet's in-page tabs, filling the row; they scroll sideways with the edge
     fade, the current one scrolled into view (peerlight.js). */
  .pl-stickrow__tabs { flex: 1 1 auto; min-width: 0; align-self: stretch; border-bottom: 0; }
  .pl-stickrow__tabs a { min-height: 47px; margin-bottom: 0; }
  /* The chip never wraps and keeps the right end. */
  .pl-stickrow__chip { flex: none; margin-left: auto; }
  .pl-stickrow__sum { white-space: nowrap; }
  /* The full bar as a menu under the chip: the bar's controls, wrapping, its own menus open
     below them (so nothing is clipped). */
  .pl-stickrow__pop { left: auto; right: 0; width: min(600px, calc(100vw - var(--pl-side-w) - 32px)); max-height: none; overflow: visible; padding: var(--space-3); }
  .pl-stickrow__pop .pl-ctx__fresh { flex-basis: 100%; margin-left: 0; }
}

/* Phones: the chip over the pages, 88 px, fixed at the top while scrolling up. */
@media (max-width: 767.98px) {
  .pl-stickrow {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 6px;
    height: 88px; padding: 8px var(--space-4) 0;
    background-color: var(--surface); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-card);
    transform: translateY(-120%); visibility: hidden; transition: transform .16s ease, visibility 0s .16s;
  }
  .pl-stickrow.is-stuck { transform: none; visibility: visible; transition: transform .16s ease; }
  .pl-stickrow__area, .pl-stickrow__chip { display: none; }
  .pl-stickrow .pl-ctx-phone { order: -1; align-self: flex-start; max-width: 100%; }
  /* A page without the bar (no chip yet): the pages alone. */
  .pl-stickrow--pages { height: auto; padding-top: 0; }
  .pl-stickrow__tabs { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); border-bottom: 0; }
  .pl-stickrow__tabs a { min-height: 41px; margin-bottom: 0; }
}
/* A phone held sideways and a short window keep no fixed bar (decision 2026-10-21). */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) { .pl-stickrow { display: none; } }

/* Reduced motion: the row appears and goes without sliding. */
@media (prefers-reduced-motion: reduce) { .pl-stickrow, .pl-stickrow.is-stuck { transition: none; } }

/* The sidebar sticks on the frame's level too (the z-index scale in tokens). */
@media (min-width: 768px) { .pl-side { z-index: var(--z-sticky); } }

@media print { .pl-stickrow { position: static; display: none !important; } }

/* PeerLight 2.0 charts (design sheet v3.5, Charts; direction decisions 4 and 12).
   Direct labels: on desktop a line's name sits at its end, so its legend entry goes;
   phones keep the legend. Events: ink diamonds with a dotted hairline, named on the chart
   on desktop, the latest listed under it on phones, and every one in a closed
   "What happened" disclosure on every screen (keyboard and screen readers; design owner ruling, PR 359). */
@media (min-width: 768px) {
  .pl-legend .pl-legend__direct { display: none; }
  .pl-chart-events { display: none; }
}
.pl-legend i.pl-legend__event { width: 8px; height: 8px; margin: 0 3px; border-radius: 0; background: var(--ink); transform: rotate(45deg); }
.pl-legend .pl-event-chip--change i,
.pl-legend .pl-event-chip--news i { width: 8px; height: 8px; margin: 0 1px; border-radius: 0; background: var(--ink); transform: rotate(45deg); }
.pl-chart-events,
.pl-chart-what__list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  font: var(--type-meta-weight) var(--type-meta-size)/var(--type-meta-line) var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.pl-chart-events li,
.pl-chart-what__list li { padding: 2px 0 2px 14px; position: relative; }
.pl-chart-events li.pl-chart-events__more { padding-left: 0; }
.pl-chart-events li:not(.pl-chart-events__more)::before,
.pl-chart-what__list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; background: var(--ink); transform: rotate(45deg); }
.pl-chart-what { margin-top: var(--space-2); }
.pl-chart-what > summary {
  width: fit-content;
  padding: 2px 0;  /* a 24 px target; the default triangle marker stays */
  cursor: pointer;
  font: var(--type-body-sm-weight) var(--type-body-sm-size)/var(--type-body-sm-line) var(--font-sans);
  color: var(--link);
}
/* A chart that takes the keyboard (arrow keys step through its days): the house focus ring, as on
   Wishlists per day (walk of 959, 2026-11-15). */
[data-pl-chart]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }

/* --- PeerLight 2.0 menus, option B (decisions 19 and 22, design sheet v3.7 Navigation) ---
   The sidebar in three parts: the studio block (fixed), the middle (areas, staff group,
   PeerLight view, Market; scrolls on its own) and the foot (Settings, Feedback, Help and the
   fold button; always in view). The header's quiet staff mark and the View-as pill, the
   skip link, and phones' More. Tokens only; no new colour and no new shine. */

/* Skip to content: the first Tab stop, shown when focused. */
.pl-skip { position: absolute; left: var(--space-3); top: -64px; z-index: var(--z-tooltip); padding: 6px 12px; border: 2px solid var(--focus); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font-weight: 600; text-decoration: none; }
.pl-skip:focus { top: var(--space-2); }
.pl-main:focus { outline: none; }

/* The sidebar's parts: fixed top, a middle that scrolls on its own, the foot always in view. */
.pl-side__top { flex: none; padding: 0 8px; position: relative; z-index: var(--z-menu); }
.pl-side__mid { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: var(--space-2) 8px 6px; display: flex; flex-direction: column; gap: 2px; }
/* The 8 px on top: the middle clips at its own edge, so a selected first row ("Home") lost the top of
   its 1 px violet ring and soft glow at 0 (Fredrik 2026-11-27). The bottom keeps 6 px; focus rings are inset. */
/* No scrollbar in the middle (Fredrik 2026-11-26, option A of the sidebar-scrollbar note; sheet
   v3.69 chrome): a classic Windows scrollbar took 10 px and cut a selected "Promotion board" with
   "99+" at 232 px. Wheel, trackpad, touch and Tab still scroll it; the shade above the foot
   (is-overflow, below) shows that more is below. */
.pl-side__mid::-webkit-scrollbar { display: none; }
.pl-side__foot { position: relative; flex: none; padding: 6px 8px 8px; border-top: 1px solid var(--card-edge); background: var(--surface); }
/* More below (sheet v3.7: "the foot then gets a soft upper shadow"): while the middle has
   more under its fold (peerlight.js sets is-overflow), a 24 px shade of the page ground rises
   from the foot, so the cut always shows. Tokens only. */
.pl-side.is-overflow .pl-side__foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; background-image: linear-gradient(to top, var(--canvas), transparent); opacity: .9; pointer-events: none; }
.pl-side__foot .pl-side__link { min-height: 32px; font-size: var(--type-body-size); }  /* the foot keeps 14 px (sidebar groups v3) */
.pl-side__n { margin-left: auto; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
/* Decision 30: one muted line at the top of the staff group while sharing is paused. */
/* Help and the fold button on one row, 8 px apart (decision 22.7, second reviewer on v2). */
.pl-side__frow { display: flex; align-items: center; gap: 8px; }
.pl-side__frow > .pl-side__link { flex: 1; min-width: 0; }
.pl-side__fold { margin: 0 0 0 auto; padding: 0; }
.pl-side__fold button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); cursor: pointer; }
.pl-side__fold button:hover { color: var(--ink); background: var(--surface-raised); }
.pl-side__fold svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Both drawings are in the button; the menu's state shows the one that fits (no JS paths). */
.pl-side__fold-ic { display: grid; }
.pl-side__fold-ic--unfold, .is-folded .pl-side__fold-ic--fold { display: none; }
.is-folded .pl-side__fold-ic--unfold { display: grid; }

/* The studio block: monogram, name (two lines, then "…"), sharing, View as. */
.pl-sblock { display: flex; flex-direction: column; margin: 0 0 6px; padding: 4px 8px; border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface); }
.pl-sblock__name { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; padding: 4px 2px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: var(--type-body-size); line-height: 20px; }
summary.pl-sblock__name { list-style: none; cursor: pointer; }
summary.pl-sblock__name::-webkit-details-marker { display: none; }
summary.pl-sblock__name:hover { background: var(--surface-raised); }
summary.pl-sblock__name > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pl-sblock__nm { flex: 1; min-width: 0; padding-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.pl-sblock__switch { position: relative; }
.pl-sblock__switch > .pl-menu { left: 0; right: auto; top: calc(100% + 4px); }
.pl-sblock__sh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0 2px 2px 34px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-sblock__sh svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-sblock__sh a { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); }
/* "What's shared" lines up with the words above it, not with their icon (UX review). */
.pl-sblock__sh--link { padding-left: 54px; }
.pl-sblock__vaform { margin: 4px 0 0; }
.pl-sblock__va { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 30px; padding: 0 8px 0 32px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--link); font: 400 var(--type-body-sm-size)/18px var(--font-sans); text-align: left; cursor: pointer; }
.pl-sblock__va:hover { background: var(--surface-raised); }
.pl-sblock__va svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pl-mono { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--radius-sm); background: var(--violet-tint); color: var(--violet-strong); font: 650 var(--type-label-size)/16px var(--font-sans); }
.pl-mono__badge { position: absolute; right: -8px; bottom: -8px; display: none; place-items: center; width: 16px; height: 16px; border-radius: var(--radius-pill); background: var(--violet); color: var(--on-primary); }
.pl-mono__badge svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Folded: the monogram alone, icons with their names as tooltips and for screen readers. */
.is-folded .pl-side__top, .is-folded .pl-side__mid, .is-folded .pl-side__foot { padding-inline: 8px; }
.is-folded .pl-sblock { align-items: center; padding: 6px 0; }
.is-folded .pl-sblock__name { justify-content: center; padding: 0; }
.is-folded .pl-sblock__nm, .is-folded .pl-sblock__sh, .is-folded summary.pl-sblock__name > svg, .is-folded .pl-side__n, .is-folded .pl-sblock__va .pl-side__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-folded .pl-sblock__va { justify-content: center; padding: 0; }
/* A link that is out of sight takes no keyboard stop either (design owner after PR 364). */
.is-folded .pl-sblock__sh--link { display: none; }
.is-folded .pl-mono { width: 28px; height: 28px; }
.is-folded .pl-mono__badge { display: grid; }
.is-folded .pl-sblock__switch > .pl-menu { left: calc(100% + 8px); top: 0; }
.is-folded .pl-side__frow { flex-direction: column; gap: 4px; }
.is-folded .pl-side__frow > .pl-side__link { width: 100%; }
.is-folded .pl-side__fold { margin: 0 auto; }

/* The header: a quiet staff mark, or the View-as pill. */
.pl-stafftag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px 0 8px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); color: var(--ink-muted); font: 600 var(--type-label-size)/16px var(--font-sans); white-space: nowrap; }
.pl-stafftag svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
/* BETA sits beside the lockup (sheet v3.7), so its tip opens towards the page. */
.pl-header__inner > .pl-beta .pl-beta__tip { right: auto; left: 0; }
.pl-viewpill-form { margin: 0; min-width: 0; flex: 0 1 auto; }  /* shrinks before it covers the tools; the name gives way first */
.pl-viewpill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: min(440px, 100%); min-width: 0; padding: 0 12px 0 10px; border: 1px solid var(--violet); border-radius: var(--radius-pill); background: var(--violet-tint); color: var(--violet-strong); font: 400 var(--type-body-sm-size)/18px var(--font-sans); white-space: nowrap; cursor: pointer; }
.pl-viewpill svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pl-viewpill__who { display: inline-flex; gap: 4px; min-width: 0; }
.pl-viewpill__dot, .pl-viewpill__bk { flex: none; }
.pl-viewpill__nm { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pl-viewpill__bk { text-decoration: underline; text-underline-offset: 2px; }
/* Laptop widths (768 to 1023 px): the pill shortens so Notes, the environment tag and the
   account stay in view and no page scrolls sideways: the eye, the studio's name cut with
   "…" (the whole sentence is its accessible name and tooltip) and Back to staff. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* BETA drops "VERSION" as on phones (design owner after PR 376); Notes shortens to its
     icon and count by one rule below 1024 px in shell.css. */
  .pl-beta__more { display: none; }
  .pl-viewpill__as { display: none; }
  .pl-viewpill__nm { max-width: 120px; }
}

/* More (phones): places only, one 48 px row each, in the sidebar's groups. */
.pl-more { display: flex; flex-direction: column; }
.pl-more__grp { margin: 14px 0 4px; color: var(--ink-muted); font: 600 var(--type-body-sm-size)/20px var(--font-sans); }  /* Studio data, Studio tools, Market data: plain labels, never folding (sidebar groups v3) */
.pl-more__gap { height: 14px; }
.pl-more__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--hairline); background: transparent; color: var(--ink); font: 400 var(--type-body-size)/20px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.pl-more__row svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-more__row > .pl-more__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-more__row[aria-current="page"] { color: var(--violet-strong); font-weight: 600; }
.pl-more__row--link { color: var(--link); }
.pl-more__n { margin-left: auto; color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-more .pl-sblock__switch { border-bottom: 1px solid var(--hairline); }
.pl-more .pl-sblock__name { min-height: 48px; align-items: center; }
.pl-more .pl-sblock__name > svg { margin-top: 0; }
.pl-more .pl-sblock__switch > .pl-menu--staff { min-width: 0; width: 100%; }
/* In More the studio menu opens in the page's flow, under the name, so it never drops off
   the bottom of a phone screen (design owner on PR 364). */
.pl-more .pl-sblock__switch > .pl-menu { position: static; margin-top: 4px; }
/* The switcher's name as the block (sidebar and More), never the header switcher's chip. */
.pl-switcher.pl-sblock__switch > summary.pl-sblock__name { display: flex; max-width: none; white-space: normal; overflow: visible; border: 0; background-color: transparent; }
.pl-switcher.pl-sblock__switch > summary.pl-sblock__name:hover { background-color: var(--surface-raised); }
.pl-more .pl-switcher.pl-sblock__switch > summary.pl-sblock__name { min-height: 48px; align-items: center; padding: 0; }
/* "Coming soon" pages: the ghost card at reading width (sheet v3.7, empty states (C)). */
.pl-soon .pl-empty { max-width: 620px; }

@media (max-width: 767.98px) {
  /* Phone header row 1 (sheet v3.7): the lens, then on the right the Staff tag, BETA, Notes
     and the account. Viewing as: the pill on its own full-width row (decision 22.6), BETA
     stays, and the studio's name wraps instead of being cut. */
  .pl-header__inner { flex-wrap: wrap; row-gap: var(--space-2); justify-content: flex-start; }
  .pl-header__inner > .pl-lockup { margin-right: auto; }
  .pl-header__tools { margin-left: 0; }
  .pl-viewpill-form { order: 99; flex-basis: 100%; }
  .pl-viewpill { width: 100%; max-width: none; padding: 6px 12px 6px 10px; border-radius: var(--radius-lg); white-space: normal; text-align: left; }
  .pl-viewpill__who { display: block; flex: 1; overflow-wrap: anywhere; }
  .pl-viewpill__nm { max-width: none; overflow: visible; }
  .pl-viewpill__dot { display: none; }
  .pl-stafftag { order: 1; padding: 0 8px 0 6px; }
  .pl-beta--phone { order: 2; margin-right: 0; }
  .pl-header__inner > .pl-beta--phone .pl-beta__tip { left: auto; right: 0; }
  .pl-header__tools { order: 3; }
}
@media print { .pl-skip, .pl-viewpill-form { display: none !important; } }

/* The Add a promotion form (decision 107 review): one column, label above the field, the standard
   field style of base.css at full width so a phone never scrolls sideways, helper text on its own
   line, the Save button at the bottom. */
.pl-pb__form { max-width: 560px; }
.pl-pb__form > div:not(.pl-row) { display: flex; flex-direction: column; gap: 4px; }
.pl-pb__form label { font: 600 var(--type-label-size)/16px var(--font-sans); color: var(--ink); }
.pl-pb__form .helptext { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-pb__form input, .pl-pb__form select, .pl-pb__form textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.pl-pb__form input[type="number"] { font: 400 var(--type-body-size)/20px var(--font-sans); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 6px 10px; }
.pl-pb__form .pl-row { margin-top: var(--space-2); justify-content: flex-start; }

/* Add a promotion: the products in it, each with its own depth (Fredrik, 2026-10-29). One line
   per product: a tick box with its name, then its depth. Region shows only for Nintendo, the one
   store where it is a choice (the server checks it too). */
.pl-pb__products { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.pl-pb__products legend { padding: 0; font: 600 var(--type-label-size)/16px var(--font-sans); color: var(--ink); }
.pl-pb__product { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--hairline); }
.pl-pb__form .pl-pb__tick { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
.pl-pb__form .pl-pb__tick input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--primary); }
.pl-pb__depth { display: flex; align-items: center; gap: var(--space-1); color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-pb__form .pl-pb__depth input[type="number"] { width: 76px; font-variant-numeric: tabular-nums; }
.pl-pb__error { grid-column: 1 / -1; }
/* Under Store: shown for a store without sales data, the one chosen on screen. */
.pl-pb__nodata { display: none; margin: calc(-1 * var(--space-1)) 0 0; align-items: center; gap: var(--space-1); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-pb__form:has(select[name="store"] :is(option[value="playstation"], option[value="xbox"], option[value="nintendo"], option[value="epic"], option[value="gog"]):checked) .pl-pb__nodata { display: flex; }
.pl-pb__nodata.is-shown { display: flex; }
.pl-pb__cancel { padding-top: var(--space-2); }
.pl-pb__cancel .pl-btn--danger { color: var(--critical-ink); }
.pl-pb__kept-label { font: 600 var(--type-label-size)/16px var(--font-sans); color: var(--ink); }
.pl-pb__form:not(:has(select[name="store"] option[value="nintendo"]:checked)) .pl-pb__region { display: none; }

/* Promotion work: a DLC or soundtrack name stays on one line (design review of 752, 375 px).
   The form's per-store hiding and its Not planned on note went on 2026-11-09 (Fredrik): every
   product is offered on every store. */
.pl-pw__nw { white-space: nowrap; }

/* Nintendo NOE and NOA planned apart (Fredrik 2026-11-08). A Nintendo promotion with no region:
   the store's name, then a warning line "region not set" under it, as on Studio overview
   (design review of 758). Used on the board's rows, the Table view, All promotions and Enter. */
.pl-bd__name > .pl-lane-unset { display: flex; flex-direction: column; min-width: 0; overflow: visible; white-space: normal; }
.pl-lane-unset > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-lane-unset__w { display: inline-flex; align-items: center; gap: 4px; color: var(--warning-ink); font-size: var(--type-label-size); line-height: 16px; font-weight: 600; white-space: nowrap; }
.pl-lane-unset__w svg.pl-icon { flex: none; width: 14px; height: 14px; }
.pl-pw__t--warn svg.pl-icon { width: 14px; height: 14px; margin-inline-end: 4px; vertical-align: -2px; color: var(--warning-ink); }
.pl-pw__t--warn b { color: var(--warning-ink); }
td > .pl-lane-unset__w { display: flex; margin-top: 2px; }
.pl-tl__s.pl-tl__s--warn { color: var(--warning-ink); }

/* The note when adding with "How to add it" (decision 2026-11-08-change-proposal-and-comment):
   "Note" for a planned promotion, "Comment for the studio" once "Propose for approval" is ticked.
   In the board's panel it shows only for a proposal, as before for a planned one. */
.pl-pb__comment-prop { display: none; }
.pl-pb__form:has(input[name="send_as"][value="propose"]:checked) .pl-pb__comment-prop { display: inline; }
.pl-pb__form:has(input[name="send_as"][value="propose"]:checked) .pl-pb__comment-plan { display: none; }
.pl-pb__form:not(:has(input[name="send_as"][value="propose"]:checked)) .pl-pb__comment--panel { display: none; }
/* A proposal is saved Proposed whatever Status says, so Status goes while Propose is ticked, as on
   the change form (design review of PR 756). */
.pl-pb__form:has(input[name="send_as"][value="propose"]:checked) :is(label[for="id_status"], select[name="status"]) { display: none; }
/* Label, hint and box spaced like the form's other fields (they sit straight in the stack). */
.pl-pb__form > div.pl-pb__comment { gap: var(--space-3); }

/* Sidebar active row, Charged (Fredrik 2026-11-26, mock-up charged-chrome v1; amends decision 121): the stronger violet fill with a 1 px violet ring and a glow outside the row (a soft violet shadow in Chalk), a 3 px round-ended violet bar 4 px in from the row's rounded left edge, and violet text at 600. The glow replaces the satin bar as the nav shine item and takes no layout space (box-shadow). Home is violet only while it is the current page (Fredrik, 2026-11-02, amends H2). The Promotion board row has no outline of its own (replaces decision 113). */
.pl-side__link[aria-current="page"],
:root[data-theme="light"] .pl-side__link[aria-current="page"],
:root[data-theme="system"] .pl-side__link[aria-current="page"] { background: var(--chrome-selected-fill); color: var(--chrome-selected-ink); font-weight: 600; box-shadow: var(--chrome-selected-glow); }
.pl-side__link[aria-current="page"]::before { left: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--chrome-selected-bar); }
/* The selected row's number follows the row's violet text (staff menu, sheet v3.35 contrast fix). */
.pl-side__link[aria-current="page"] .pl-side__n { color: inherit; }

/* --- Sign-in buttons (decision 20, 2026-10-25, option B; design sheet v3.6 "Sign-in buttons") ---
   The page's one main button is .pl-btn--accent (fill, dark satin edge and primary-hover come from
   violet-chrome.css); an outlined secondary; a quiet text button. allauth's tags are mapped to these
   classes in accounts/templates/allauth/elements/button.html. Tokens only. */

/* The sub-line directly under the card title: 13 px, muted (sheet v3.6). */
.pl-auth__card .pl-auth__sub { margin-top: calc(-1 * var(--space-3)); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
/* Any sub-heading in the card is smaller than the 16 px title. */
.pl-auth__card .pl-auth__subhead, .pl-auth__card h2 {
  margin: 0; font-size: var(--type-body-size); line-height: 20px; font-weight: var(--type-heading-weight);
}

/* On sign-in pages buttons are 42 px tall and full width (the standard elsewhere is 36 px). A plain
   button in a PeerLight sign-in page (waitlist, invitations) is that page's one action. */
.pl-auth__card button:not(.pl-btn), .pl-auth__card .pl-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%; min-height: 42px; padding: 10px var(--space-4); border-radius: var(--radius-md);
  font: 600 var(--type-body-size)/20px var(--font-sans); letter-spacing: 0; text-align: center;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .12s, border-color .12s;
}
.pl-auth__card button:not(.pl-btn) { background: var(--primary); color: var(--on-primary); }
.pl-auth__card button:not(.pl-btn):hover { background: var(--primary-hover); }
.pl-auth__card .pl-btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.pl-auth__card .pl-btn--secondary:hover { background: var(--surface-raised); border-color: var(--ink-muted); }
/* Danger (Deactivate, Remove): the secondary with critical-ink words, as wide as its words. */
.pl-auth__card .pl-btn--danger { color: var(--critical-ink); width: auto; align-self: flex-start; }
/* Quiet: the text button, centred, as wide as its words. */
.pl-auth__card .pl-btn--quiet {
  width: auto; align-self: center; padding-inline: var(--space-3);
  background: transparent; color: var(--link); font-weight: 500;
}
.pl-auth__card .pl-btn--quiet:hover { background: var(--surface-raised); text-decoration: underline; text-underline-offset: 3px; }
.pl-auth__card button:focus-visible, .pl-auth__card .pl-btn:focus-visible { box-shadow: var(--shadow-focus); }
/* In a table row (security keys) the actions sit side by side at their own width. */
.pl-auth__card td .pl-btn { display: inline-flex; width: auto; }

/* allauth's helper forms (log out of a half-done login) carry hidden; the card's flex form rule
   must not show them, or they add an empty row. */
.pl-auth__card form[hidden] { display: none; }

/* Groups: 16 px between buttons (allauth's bare div had 0 px). */
.pl-auth__group, .pl-auth__alts { display: flex; flex-direction: column; gap: var(--space-4); }
/* The "or" line: a full-width hairline with the word (allauth's hr collapsed to a 2 px dot). */
.pl-auth__or {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; color: var(--ink-muted);
}
.pl-auth__or::before, .pl-auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
/* The visible "Code" field on the two-factor step. */
.pl-auth__card .pl-auth__code { font-variant-numeric: tabular-nums; letter-spacing: .12em; min-height: 42px; }
/* The passkey's status line, 8 px under its button: waiting in muted, a failure in critical-ink with a triangle. */
.pl-auth__status { margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-auth__status:empty { margin: 0; }
.pl-auth__status--fail { font-size: var(--type-label-size); line-height: 18px; color: var(--critical-ink); }
.pl-auth__status--fail::before { content: "\25B2" / ""; margin-right: 6px; }
/* Two-factor settings: each block (app, keys, recovery codes) with its title, line and actions. */
.pl-auth__panel { display: flex; flex-direction: column; gap: var(--space-2); }
.pl-auth__panel .pl-auth__group { margin-top: var(--space-2); }
/* A danger action beside its label, as wide as its words (sheet v3.6). */
.pl-auth__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.pl-auth__row > p { flex: 1 1 12rem; }
.pl-auth__row .pl-btn--danger { align-self: center; }
@media (prefers-reduced-motion: reduce) {
  .pl-auth__card button, .pl-auth__card .pl-btn { transition: none; }
}

/* PeerLight 2.0: the PeerLight view page (decision 25, layout 1; design sheet v3.8
   "PeerLight view"). One column: summary card, About the game, the filters; the Save bar
   sticks to the bottom only while there are unsaved changes.
   Token values only. The filter chip is its own component (.pl-fchip), not the 12 px tag. */

.pl-pv { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; }
.pl-pv__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pl-pv__secs { display: grid; gap: var(--space-6); margin-top: var(--space-2); min-width: 0; }
/* Sections, the notices and the save row fill the page like the rest of the app; running text keeps
   the prose measure (structure after the 1536 px page, Fredrik 2026-11-27, change 8). */
.pl-pv__secs > * { min-width: 0; }
.pl-pv__sec { display: grid; gap: 0; min-width: 0; }
.pl-pv__shd { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-pv__ssub { margin: var(--space-1) 0 18px; max-width: var(--layout-measure); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pv__card.pl-card { display: block; padding: var(--space-5); min-width: 0; }

/* Summary card (sheet section 1) */
.pl-pv__lbl { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: var(--type-label-weight); }
.pl-pv__lbl--widen { margin-top: 20px; }
.pl-pv__big {
  margin: var(--space-2) 0 0; font-family: var(--font-display);
  font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking);
  font-variant-numeric: tabular-nums;
}
.pl-pv__big small { font-family: var(--font-sans); font-size: var(--type-heading-size); line-height: 22px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.pl-pv__desc { margin: var(--space-3) 0 0; max-width: var(--layout-measure); font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-pv__st { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-3) 0 0; max-width: var(--layout-measure); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pv__st--ok { color: var(--good-ink); }
.pl-pv__st--no { color: var(--ink); }
.pl-pv__st--no svg.pl-icon { color: var(--warning-ink); }
.pl-pv__st--wait { margin-top: var(--space-4); }
/* "Compared at" (decision 32, sheet v3.8): muted, the level in ink. */
.pl-pv__st--lvl { margin-top: 6px; color: var(--ink-muted); }
.pl-pv__st--lvl b { color: var(--ink); font-weight: 500; }
.pl-pv__st svg.pl-icon { margin-top: 2px; }
.pl-pv__widen { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); max-width: 520px; }
.pl-pv__widen a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); background-color: var(--surface);
  color: var(--ink); text-decoration: none; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-pv__widen a:hover { background-color: var(--surface-raised); }
.pl-pv__ok { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--good-ink); white-space: nowrap; }
.pl-pv__ok svg.pl-icon { width: 14px; height: 14px; }
.pl-pv__fresh, .pl-pv__note { margin: var(--space-3) 0 0; max-width: var(--layout-measure); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pv__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
  margin-top: 20px; padding-top: var(--space-4); border-top: 1px solid var(--hairline);
  color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-pv__foot--top { align-items: flex-start; }
.pl-pv__dirty { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 500; }
.pl-pv__dirty i { flex: none; width: 8px; height: 8px; border-radius: 50%; background-color: var(--violet); }
.pl-pv__nb { white-space: nowrap; }
.pl-pv__tn { font-variant-numeric: tabular-nums; }
.pl-pv__muted { color: var(--ink-muted); }

/* Profile strip and questions (sheet section 2) */
.pl-pv__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-pv__strip > div { min-width: 0; padding: 0 20px; border-left: 1px solid var(--hairline); }
.pl-pv__strip > div:first-child { padding-left: 0; border-left: 0; }
.pl-pv__strip p { margin: 0; }
.pl-pv__strip .pl-pv__lbl + .pl-pv__v { margin-top: var(--space-1); }
.pl-pv__v { font-size: var(--type-figure-size); line-height: var(--type-figure-line); font-weight: 500; }
.pl-pv__m { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pv__steam { flex: 1 1 300px; margin: 0; max-width: var(--layout-measure); }
.pl-pv__steam b { color: var(--ink); font-weight: 500; }
.pl-pv__steam a, .pl-pv .pl-empty__link { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); text-underline-offset: 2px; }
.pl-pv__foot .pl-btn svg.pl-icon { margin-right: var(--space-1); }
/* Staff only (sheet v3.8 addition): the Rekoup staff tag, then quiet Decline and outlined Confirm on the right. */
.pl-pv__staff { margin-top: var(--space-4); }
.pl-pv__k { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); padding: 0; }
.pl-pv__q { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--hairline); min-width: 0; }
.pl-pv__q:first-of-type { padding-top: 0; border-top: 0; }
/* A floated legend sits inside the group, not in its top border (the hairline stays a hairline). */
.pl-pv__q legend, .pl-pv__fg legend { float: left; width: 100%; padding: 0; font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 600; }
.pl-pv__q > :not(legend), .pl-pv__fg > :not(legend) { clear: both; }
.pl-pv__h { display: block; margin: 2px 0 0; max-width: var(--layout-measure); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pv__done { flex: 1 1 160px; font-variant-numeric: tabular-nums; }
.pl-pv__acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-left: auto; }
.pl-pv__acts .pl-btn--quiet { padding-inline: var(--space-2); }

/* Filter group (sheet section 3): one card, groups split by hairlines */
.pl-pv__fg { margin: 0; padding: var(--space-5) 0; border: 0; border-top: 1px solid var(--hairline); min-width: 0; }
.pl-pv__fg:first-child { padding-top: 0; border-top: 0; }
.pl-pv__fg:last-of-type { padding-bottom: 0; }
.pl-pv__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pl-pv__sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; border: 0; min-width: 0; }
.pl-pv__fg .pl-pv__sub legend { width: auto; margin-right: var(--space-1); font-weight: 400; }
.pl-pv__sub > .pl-pv__chips--sub { clear: none; }
.pl-pv__chips--sub { margin-top: 0; }
.pl-pv__nojs { margin-top: var(--space-5); }

/* The filter chip (.pl-fchip): pill, 36 px (40 px on phones), a real input inside */
.pl-fchip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background-color: var(--surface);
  color: var(--ink); cursor: pointer; font-family: var(--font-sans); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-fchip:hover { background-color: var(--surface-raised); }
.pl-fchip__in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.pl-fchip:has(.pl-fchip__in:checked:not(:disabled)) { border-color: var(--violet); background-color: var(--violet-tint); color: var(--violet-strong); font-weight: 600; }
.pl-fchip:has(.pl-fchip__in:checked:not(:disabled))::before {
  content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg);
}
.pl-fchip:has(.pl-fchip__in:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: var(--shadow-focus); }
/* A chip that can't apply (decision 31, design owner's ruling 2): its hairline edge, muted text, no fill, no
   lock; the reason is one line under the group. Dashes stay for add targets only. */
.pl-fchip.is-off { border-color: var(--hairline); color: var(--ink-muted); cursor: not-allowed; background-color: transparent; }
.pl-fchip.is-off:hover { background-color: transparent; }
/* A question's error waits for the first press (the shared .errorlist rule sets a display). */
.pl-pv__q .errorlist[hidden] { display: none; }
.pl-pv__q .errorlist { margin-top: var(--space-2); }
.pl-fchip__y { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; }
.pl-fchip:has(.pl-fchip__in:checked:not(:disabled)) .pl-fchip__y { color: var(--violet-strong); }

/* The unsaved-changes bar (sheet section 4): frame, not shine; only while the draft differs */
/* Edge to edge across the main column (to the window's right edge), its content on the
   page gutter, so the text lines up with the cards (design owner, round 2). */
.pl-pv__save {
  position: sticky; bottom: 0; z-index: var(--z-sticky); margin-top: var(--space-5);
  margin-inline: calc(-1 * var(--pl-gutter, var(--space-4))); padding-inline: var(--pl-gutter, var(--space-4));
  background-color: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: none;
}
.pl-pv__save[hidden] { display: none; }
.pl-pv__savein { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) 0; }
.pl-pv__res { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); flex: 1 1 320px; min-width: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pv__res .pl-pv__ok { white-space: normal; }
.pl-pv__res .pl-pv__dirty { font-size: var(--type-body-size); font-weight: 600; }

/* Closed data (sheet section 7): the title and one ghost card */
.pl-pv__own .pl-empty__icon svg { width: 20px; height: 20px; }

@media (max-width: 767.98px) {
  .pl-pv__card.pl-card { padding: var(--space-4); }
  .pl-pv__big small { display: block; font-size: var(--type-body-size); margin-top: 2px; }
  .pl-pv__strip { grid-template-columns: 1fr; row-gap: 14px; }
  .pl-pv__strip > div { padding: 0; border-left: 0; }
  .pl-fchip { min-height: 40px; padding: 0 16px; }
  .pl-pv__fg { padding: 20px 0; }
  .pl-pv__widen a { min-height: 44px; }
  /* Directly above the 56 px bottom bar; the result full width, the buttons under it, 44 px. */
  .pl-pv__save { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .pl-pv__res { flex-basis: 100%; }
  .pl-pv__save .pl-btn { min-height: 44px; }
  .pl-pv__acts { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: no-preference) {
  .pl-pv__save { animation: pl-pv-in .18s ease-out; }
}
@keyframes pl-pv-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media print { .pl-pv__save { position: static; } }

/* --- People (decision 38, layout A of mock-up people v1): a Settings page in the app ------------
   The list on the left, the invite form on the right, Invitations under the list; one row per person
   like Sessions. Tokens only. */

/* Two columns at 1280: who has access, then invitations, on the left; the invite form on the right. */
.pl-people {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--space-6); align-items: start;
  margin: 0;  /* the main column spaces blocks (40 px, 24 on phones) */
  grid-template-areas: "who inv" "pend inv";
}
.pl-people--single { grid-template-areas: "who ."; }
.pl-people__who { grid-area: who; min-width: 0; }
.pl-people__inv { grid-area: inv; min-width: 0; }
.pl-people__pend { grid-area: pend; min-width: 0; margin-top: var(--space-6); }
.pl-people .pl-heading { margin: 0; }
.pl-people__sub { margin: 2px 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-people__lockline { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-people__lockline svg.pl-icon { width: 14px; height: 14px; margin-top: 3px; }

/* The rows (the Sessions pattern): name and role, the email muted under it, the action on the right. */
.pl-people .pl-people__list { padding: var(--space-1) var(--space-5); border-color: var(--card-edge); }
.pl-people .pl-people__form { padding: var(--space-5); border-color: var(--card-edge); }
.pl-people__rows { list-style: none; margin: 0; padding: 0; }
.pl-people__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-5); align-items: center;
  padding: var(--space-4) 0; border-top: 1px solid var(--hairline);
}
.pl-people__row:first-child { border-top: 0; }
.pl-people__l1 { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: 500; }
.pl-people__you { font-weight: 400; color: var(--ink-muted); }
.pl-people__chip {
  display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--card-edge); border-radius: 999px;
  color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; white-space: nowrap;
}
.pl-people__l2 { grid-column: 1; margin-top: 2px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); overflow-wrap: anywhere; }
.pl-people__act { grid-column: 2; grid-row: 1 / span 2; justify-self: end; display: flex; align-items: center; }
.pl-people__act form { margin: 0; }
.pl-people__why { grid-column: 1 / -1; margin: 10px 0 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }

/* Remove asks first, in its row (decision 38.3): a soft panel, no edge, so no card inside a card. */
.pl-people__confirm { grid-column: 1 / -1; margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--status-soft); }
.pl-people__q { margin: 0; font-weight: 600; }
/* Opening a confirm moves focus to its question (tabindex -1, by script or autofocus). On keyboard
   focus it shows the house focus ring, not the browser's own outline; none after a mouse click
   (design owner, walk of Search all games now; Atlas, as the Events list heading). Onboarding's
   lead Remove asks the same way and takes the same ring (Atlas, 2026-11-15). */
.pl-people__q:focus-visible, .pl-onb__q:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.pl-people__t { margin: var(--space-1) 0 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-people__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2) var(--space-3); margin: var(--space-4) 0 0; }

/* Buttons on this page: 36 px, the sheet's weight; danger = secondary with critical-ink words (decision 20). */
.pl-people .pl-btn {
  min-height: 36px; padding: 0 14px; justify-content: center; white-space: nowrap;
  font: 600 var(--type-body-size)/20px var(--font-sans); letter-spacing: 0;
}
.pl-people .pl-btn--secondary { background: var(--surface); }
.pl-people .pl-btn--secondary:hover { background: var(--surface-raised); border-color: var(--ink-muted); }
.pl-people .pl-btn--danger { color: var(--critical-ink); }
.pl-people .pl-btn--quiet:hover { background: var(--surface-raised); text-decoration: underline; text-underline-offset: 3px; }
.pl-people .pl-btn[aria-disabled="true"] { padding: 0 0 0 6px; gap: 6px; }
.pl-people__send { width: 100%; margin-top: var(--space-5); }

/* The invite form: the email (its error under it), then the role as two radios with what each may do. */
.pl-people__fld label { display: block; margin-bottom: 6px; color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-people__fld input { display: block; width: 100%; min-height: 36px; }
.pl-people__roles { margin: var(--space-5) 0 0; padding: 0; border: 0; min-width: 0; }
.pl-people__roles legend { padding: 0; margin-bottom: 6px; color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-people__radio {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; align-items: start;
  padding: 10px var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); cursor: pointer;
}
.pl-people__radio + .pl-people__radio { margin-top: var(--space-2); }
.pl-people__radio input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--violet); }
.pl-people__radio b { font-weight: 500; }
.pl-people__radio span span { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-people__radio:has(input:checked:not(:disabled)) { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }

/* Phones: one column (who, invite, invitations); the action goes under the email, left-aligned. */
@media (max-width: 767.98px) {
  .pl-people { display: block; }
  .pl-people__inv, .pl-people__pend { margin-top: var(--space-6); }
  .pl-people .pl-people__list { padding: var(--space-1) var(--space-4); }
  .pl-people .pl-people__form { padding: var(--space-4); }
  .pl-people__row { column-gap: var(--space-3); }
  .pl-people__l2 { grid-column: 1 / -1; }
  .pl-people__act { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: var(--space-2); }
  .pl-people__fld input { font-size: var(--type-heading-size); }
  .pl-people__btns { justify-content: stretch; }
  .pl-people__btns .pl-btn { flex: 1 1 auto; }
}

/* --- Onboarding for Rekoup staff (decision 39, phase 1 of mock-up onboarding v1) ----------------
   The queue (rows like People and Sessions) and the "New studio" form. Tokens only. */
.pl-onb__eyebrow { text-transform: none; letter-spacing: 0; }
.pl-onb__new { margin: 0; }
.pl-onb .pl-heading, .pl-onb-new .pl-heading { margin: 0; }
.pl-onb__sub { margin: 2px 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-onb__none { margin: 0; font-size: var(--type-body-sm-size); }

/* Queue rows: studio and tier, what is happening (with its icon), when, and the one action. */
.pl-onb .pl-onb__list { padding: var(--space-1) var(--space-5); border-color: var(--card-edge); }
.pl-onb__rows { list-style: none; margin: 0; padding: 0; }
.pl-onb__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-5); align-items: center;
  padding: var(--space-4) 0; border-top: 1px solid var(--hairline);
}
.pl-onb__row:first-child { border-top: 0; }
.pl-onb__l1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: 500; }
.pl-onb__chip {
  display: inline-flex; padding: 2px 9px; border: 1px solid var(--card-edge); border-radius: 999px;
  color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; white-space: nowrap;
}
.pl-onb__l2 { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-1); }
.pl-onb__l2 svg.pl-icon { margin-top: 3px; color: var(--ink-muted); }
.pl-onb__l2--good svg.pl-icon { color: var(--good-ink); }
.pl-onb__l2--warn svg.pl-icon { color: var(--critical-ink); }
.pl-onb__l3 { margin-top: 2px; padding-left: 24px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-onb__act { display: flex; align-items: center; justify-self: end; }
.pl-onb__act form { margin: 0; }
.pl-onb__who { color: var(--ink-muted); font-size: var(--type-body-sm-size); }
/* A field on the row (the owner's email, a pre-launch app): label above, field and button in a line. */
.pl-onb__ask label { display: block; margin-bottom: 4px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-onb__ask span { display: flex; gap: var(--space-2); align-items: center; }
.pl-onb__ask input { width: 260px; min-height: 36px; }
.pl-onb .pl-btn, .pl-onb-new .pl-btn { min-height: 36px; padding: 0 14px; font: 600 var(--type-body-size)/20px var(--font-sans); letter-spacing: 0; white-space: nowrap; }
.pl-onb .pl-btn--secondary, .pl-onb-new .pl-btn--secondary { background: var(--surface); }
.pl-onb .pl-btn--secondary:hover { background: var(--surface-raised); border-color: var(--ink-muted); }
.pl-onb__new .pl-btn { min-height: 36px; padding: 0 14px; font: 600 var(--type-body-size)/20px var(--font-sans); letter-spacing: 0; }

/* The "New studio" form beside "What happens when you press Create". */
.pl-onb-new { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--space-6); align-items: start; }
.pl-onb-new .pl-onb-new__form, .pl-onb-new .pl-onb-new__after { padding: var(--space-5); border-color: var(--card-edge); }
.pl-onb-new__fld label { display: block; margin-bottom: 6px; color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-onb-new__fld input { display: block; width: 100%; min-height: 36px; }
.pl-onb-new__fld .helptext { margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-onb-new__fld + .pl-onb-new__set, .pl-onb-new__set + .pl-onb-new__set, .pl-onb-new__set + .pl-onb-new__two { margin-top: var(--space-5); }
.pl-onb-new__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.pl-onb-new__set legend { padding: 0; margin-bottom: 6px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-onb-new__radios { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.pl-onb-new__radio {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; align-items: start;
  padding: 10px var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); cursor: pointer;
}
.pl-onb-new__radio input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--violet); }
.pl-onb-new__radio b { font-weight: 500; }
.pl-onb-new__radio span span { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-onb-new__radio:has(input:checked:not(:disabled)) { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.pl-onb-new__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.pl-onb-new__two + .pl-onb__sub { margin-top: var(--space-2); }
.pl-onb-new__check { margin-top: var(--space-5); }
.pl-onb-new__check label { display: flex; gap: var(--space-2); align-items: center; cursor: pointer; }
.pl-onb-new__check input { width: 16px; height: 16px; margin: 0; accent-color: var(--violet); }
.pl-onb-new__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.pl-onb-new__after ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-3); }
.pl-onb-new__after b { display: block; font-weight: 500; }
.pl-onb-new__after span { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

@media (max-width: 767.98px) {
  .pl-onb .pl-onb__list { padding: var(--space-1) var(--space-4); }
  .pl-onb__row { column-gap: var(--space-3); }
  .pl-onb__act { grid-column: 1 / -1; justify-self: start; margin-top: var(--space-2); }
  .pl-onb__act, .pl-onb__ask { width: 100%; }
  .pl-onb__ask input { flex: 1; width: auto; min-width: 0; }
  .pl-onb-new { display: block; }
  .pl-onb-new aside { margin-top: var(--space-6); }
  .pl-onb-new__radios, .pl-onb-new__two { grid-template-columns: 1fr; }
  .pl-onb-new__fld input { font-size: var(--type-heading-size); }
}

/* --- Owner guide (decisions 39 and 41, mock-up onboarding v1 section 3): a focused page --------
   Step list on the left (a progress bar on phones), the step on the right: a 248 px list and a
   680 px column. Tokens only; one card level, so rows inside a card carry hairlines, not edges. */

.pl-og {
  display: grid; grid-template-columns: 248px minmax(0, 680px); column-gap: var(--space-7); justify-content: center;
  align-items: start; min-width: 0;
}
.pl-og__main { min-width: 0; }
.pl-og__main > .pl-page-title { margin: 4px 0 0; }
.pl-og__intro { margin: var(--space-2) 0 0; max-width: 72ch; color: var(--ink-muted); }
.pl-og__sec { margin-top: var(--space-6); }
.pl-og__sub { margin: 2px 0 var(--space-3); max-width: 72ch; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__hint { margin: 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-og .pl-card.pl-og__card { padding: var(--space-5); border-color: var(--card-edge); }
.pl-og .pl-card.pl-og__list { padding: var(--space-1) var(--space-5); }

/* Buttons here: 36 px, the sheet's weight (as on People). */
.pl-og .pl-btn { min-height: 36px; padding: 0 14px; justify-content: center; white-space: nowrap; font: 600 var(--type-body-size)/20px var(--font-sans); letter-spacing: 0; }
.pl-og .pl-btn--small { min-height: 32px; padding: 0 12px; font-size: var(--type-body-sm-size); }
.pl-og .pl-btn--secondary { background: var(--surface); }
.pl-og .pl-btn--secondary:hover { background: var(--surface-raised); border-color: var(--ink-muted); }
.pl-og .pl-btn--quiet { padding: 0 8px; }
.pl-og .pl-btn--quiet:hover { background: var(--surface-raised); text-decoration: underline; text-underline-offset: 3px; }
.pl-og .pl-icon { width: 16px; height: 16px; flex: none; }
.pl-og .pl-og__btns { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; margin: 0; }
.pl-og .pl-og__btns form { margin: 0; }
.pl-og__open { margin: 0 0 var(--space-4); }

/* Spacing helpers: after the blocks that set their own margin, so they win */
.pl-og .pl-og__gap { margin-top: var(--space-3); }  /* after the blocks that set their own margin */
.pl-og__hint.pl-og__gap > a { display: inline-flex; align-items: center; min-height: 24px; }  /* a link on its own line: 24 px target */
.pl-og .pl-og__gap-s { margin-top: var(--space-2); }

/* The step list */
.pl-og__steps { position: sticky; top: var(--space-5); align-self: start; }
.pl-og__stepl { list-style: none; margin: 0; padding: 0; }
.pl-og__stepl li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-3); align-items: start; padding: 10px var(--space-3); border-radius: var(--radius-md); }
.pl-og__stepl li + li { margin-top: var(--space-1); }
.pl-og__dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong);
  color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 600; font-variant-numeric: tabular-nums;
}
.pl-og__dot .pl-icon { width: 14px; height: 14px; stroke-width: 2; }
.pl-og__nm { padding-top: 4px; font-size: var(--type-body-size); line-height: 20px; font-weight: 500; }
.pl-og__st { grid-column: 2; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-og__stepl .is-done .pl-og__dot { border-color: transparent; background: var(--status-soft); color: var(--good-ink); }
.pl-og__stepl .is-skip .pl-og__dot { border-color: var(--card-edge); }
.pl-og__stepl .is-now { background: var(--violet-tint); box-shadow: inset 0 0 0 1px var(--violet); }
.pl-og__stepl .is-now .pl-og__dot { border-color: var(--violet); color: var(--violet-strong); }
.pl-og__stepl .is-now .pl-og__nm { color: var(--violet-strong); font-weight: 600; }
.pl-og__later { display: flex; align-items: center; min-height: 24px; margin-top: var(--space-5); padding: 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__prog, .pl-og__bar { display: none; }

/* Numbered steps in Steamworks, the menu path, the IP address with Copy */
.pl-og__olist { list-style: none; margin: 0; padding: 0; }
.pl-og__olist > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-4); padding: 18px 0; border-top: 1px solid var(--hairline); }
.pl-og__olist > li:first-child { border-top: 0; padding-top: var(--space-1); }
.pl-og__olist > li:last-child { padding-bottom: var(--space-1); }
.pl-og__num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--status-soft);
  font-size: var(--type-label-size); font-weight: 600; font-variant-numeric: tabular-nums;
}
.pl-og__olist p { margin: 3px 0 0; }
.pl-og__path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.pl-og__path span {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-sm);
  background: var(--surface-raised); font: 400 var(--type-meta-size)/var(--type-meta-line) var(--font-mono); white-space: nowrap;
}
.pl-og__path i { font-style: normal; color: var(--ink-muted); }
.pl-og__copy { display: flex; gap: var(--space-2); align-items: stretch; margin-top: var(--space-3); max-width: 420px; }
.pl-og__val {
  flex: 1; display: flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md);
  background: var(--surface-raised); font: 400 var(--type-body-size)/20px var(--font-mono); font-variant-numeric: tabular-nums;
  letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-og__copy .pl-btn { min-height: 40px; }
.pl-og__copied { display: inline-flex; gap: 6px; align-items: center; margin-top: var(--space-2); color: var(--good-ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__copied[hidden] { display: none; }
.pl-og__colleague { margin-top: 18px; }
.pl-og__colleague .pl-heading { margin: 0 0 var(--space-1); }

/* Steps folded after a check */
.pl-og__fold {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-3);
  padding: 10px var(--space-3) 10px var(--space-4); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface);
}
.pl-og__fold > span { display: inline-flex; gap: var(--space-2); align-items: center; color: var(--ink-muted); }
.pl-og__fold > span .pl-icon { color: var(--good-ink); }

/* The key field and what Steam answered */
.pl-og__fld { display: flex; flex-direction: column; gap: 6px; }
.pl-og__fld label, .pl-og__roles legend { padding: 0; color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-og__fld input { width: 100%; min-height: 40px; }
.pl-og__pwrow { display: flex; gap: var(--space-2); }
.pl-og__pwrow input { flex: 1; letter-spacing: .18em; }
.pl-og__pwrow input[type="text"] { letter-spacing: normal; }
.pl-og__received {
  display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 0 var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-og__received .pl-icon { color: var(--good-ink); }
.pl-og__res { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.pl-og__res:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pl-og__hd { display: flex; gap: 10px; align-items: flex-start; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-og__hd .pl-icon { margin-top: 3px; }
.pl-og__hd:focus { outline: none; box-shadow: none; }  /* focus moves here after a check to announce it; it is not a control */
.pl-og__res.is-ok .pl-og__hd .pl-icon { color: var(--good-ink); }
.pl-og__res.is-warn .pl-og__hd .pl-icon { color: var(--warning-ink); }
.pl-og__res.is-wait .pl-og__hd .pl-icon { color: var(--ink-muted); }
.pl-og__bd { margin: var(--space-2) 0 0 28px; }
.pl-og__bd p { margin: 0 0 10px; }
.pl-og__bd form { margin: 0; }
.pl-og .pl-og__ind { margin-left: 28px; }
.pl-og__res > .pl-og__btns { margin-top: var(--space-4); }
.pl-og__foot { margin: var(--space-4) 0 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__plain { margin: var(--space-3) 0 0; padding-left: 20px; }
.pl-og__plain li { padding: 6px 0 6px var(--space-1); }
.pl-og__plain li b { display: block; font-weight: 600; }
.pl-og__plain li span { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* Choose games: one row per app, a switch with its words (never colour alone) */
.pl-og__rows { list-style: none; margin: 0; padding: 0; }
.pl-og__inc { border-top: 1px solid var(--hairline); }
.pl-og__inc:first-child { border-top: 0; }
.pl-og__incl { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; column-gap: var(--space-3); align-items: center; padding: var(--space-4) 0; cursor: pointer; }
.pl-og__gn { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pl-og__gs, .pl-og__swl { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__gs { display: block; }
.pl-og__incl .pl-og__off, .pl-og__incl:has(input:not(:checked)) .pl-og__on { display: none; }
.pl-og__incl:has(input:not(:checked)) .pl-og__off { display: inline; }
.pl-og__switch {
  appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; margin: 0; flex: none; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer;
}
.pl-og__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--border-strong); transition: left .15s; }
.pl-og__switch:checked { background: var(--primary); border-color: var(--primary); }
.pl-og__switch:checked::after { left: 21px; background: var(--on-primary); }
@media (prefers-reduced-motion: reduce) { .pl-og__switch::after { transition: none; } }
.pl-og__nothing { margin: 0; color: var(--ink-muted); }

/* About your games, Your team, the end */
.pl-og__prof + .pl-og__prof { margin-top: 18px; }
.pl-og__ph { display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; }
.pl-og__ph .pl-heading { margin: 0; }
.pl-og__sum { display: flex; gap: var(--space-2); align-items: center; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__sum .pl-icon { color: var(--good-ink); }
.pl-og__roles { margin: var(--space-5) 0 0; padding: 0; border: 0; min-width: 0; }
.pl-og__roles legend { margin-bottom: 6px; }
.pl-og__radios { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.pl-og__radio {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: var(--space-3); align-items: start; padding: var(--space-3) 14px;
  border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface); cursor: pointer;
}
.pl-og__radio input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--violet); }
.pl-og__radio b { font-weight: 500; }
.pl-og__radio span span { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-og__radio:has(input:checked:not(:disabled)) { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.pl-og__done { list-style: none; margin: 0; padding: 0; }
.pl-og__done li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--hairline); }
.pl-og__done li:first-child { border-top: 0; padding-top: var(--space-1); }
.pl-og__done li:last-child { padding-bottom: var(--space-1); }
.pl-og__done .pl-icon { margin-top: 3px; color: var(--ink-muted); }
.pl-og__done .is-ok .pl-icon { color: var(--good-ink); }
.pl-og__done b { display: block; font-weight: 600; }
.pl-og__done span span { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* Back / Skip on the left, the one primary on the right, on one line */
.pl-og__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.pl-og__nav > .pl-btn--quiet:first-child, .pl-og__decide > .pl-btn--quiet { margin-left: -8px; }
.pl-og__decide { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

/* Phones: the list becomes "Step n of N" and a bar; the step has the full width */
@media (max-width: 767.98px) {
  .pl-og { display: block; }
  .pl-og__steps { position: static; margin-bottom: var(--space-5); }
  .pl-og__stepl, .pl-og__later { display: none; }
  .pl-og__prog { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; }
  .pl-og__bar { display: block; height: 4px; margin: var(--space-2) 0 0; border-radius: 2px; background: var(--hairline); overflow: hidden; }
  .pl-og__bar i { display: block; height: 100%; border-radius: 2px; background: var(--violet); }
  .pl-og .pl-card.pl-og__card { padding: var(--space-4); }
  .pl-og .pl-card.pl-og__list { padding: var(--space-1) var(--space-4); }
  .pl-og__olist > li { column-gap: var(--space-3); }
  .pl-og__copy { max-width: none; }
  .pl-og input { font-size: 16px; }
  .pl-og__bd, .pl-og .pl-og__ind { margin-left: 0; }
  .pl-og__res .pl-og__btns { flex-direction: column; align-items: stretch; }
  .pl-og__res .pl-og__btns form, .pl-og__res .pl-og__btns .pl-btn { width: 100%; }
  .pl-og__incl { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-1); }
  .pl-og__swl { display: none; }
  .pl-og__nav { flex-direction: column-reverse; align-items: stretch; }
  .pl-og__nav .pl-btn { width: 100%; }
  .pl-og__nav > .pl-btn--quiet:first-child, .pl-og__decide > .pl-btn--quiet { margin-left: 0; }
  .pl-og__decide { flex-direction: column; align-items: stretch; text-align: center; gap: var(--space-1); }
  .pl-og__nav > .pl-og__hint { text-align: center; }
  .pl-og__radios { grid-template-columns: 1fr; }
  .pl-og__pwrow .pl-btn { min-width: 64px; }
}

/* --- Onboarding walk fixes (2026-10-25): two buttons on one queue row, and the staff links on
   "Choose a studio". Tokens only. */
.pl-onb__act { flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
/* A row with the "A Rekoup admin ..." line and a button: one above the other, so the block is
   one column wide and never squeezes the row's text (the line sits where it sits on every row). */
.pl-onb__act:has(.pl-onb__who) { flex-direction: column; align-items: flex-end; }
@media (max-width: 767.98px) {
  .pl-onb__act, .pl-onb__act:has(.pl-onb__who) { justify-content: flex-start; align-items: flex-start; }
}
.pl-onb__new { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pl-tab-head .pl-onb__new { margin-top: var(--space-4); }

/* --- Onboarding: the row a link lands on (studio-<pk>, from Studio overview). The site's own
   focus ring (base.css), drawn inside the row so the card's edge never clips it. Tokens only. */
.pl-onb__row:focus, .pl-onb__row:target { outline: 2px solid var(--focus); outline-offset: -2px; }
/* With Remove open in the row, focus is in its question and that draws the ring; the row's outline
   would be a second ring where focus is not, running through Create studio's edge (Fredrik, 2026-11-15). */
.pl-onb__row:target:has(.pl-onb__ask-remove) { outline: none; }

/* PeerLight 2.0 decision 42: a page with the Game menu alone (no Period or Compare) shows it in the sticky row as a short list, not the full bar's 600 px panel. Tokens only. */
@media (min-width: 768px) and (min-height: 600px) {
  .pl-stickrow__pop.pl-stickrow__pop--game { width: auto; min-width: 240px; padding: 6px; }
}

/* --- Games found later (decisions 43 and 47). The owner's prompt in Settings, Your games: the
   notice with its one action beside the text (under it, full width and 44 px tall on phones).
   The owner guide's switch when off: track edge and knob in ink-muted, so the control itself
   reaches 3:1 against the card (WCAG 1.4.11), not only its words. Tokens only. */
.pl-notice.pl-gc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); row-gap: var(--space-3); }
.pl-gc__text { margin: 0; }
@media (max-width: 767.98px) {
  .pl-notice.pl-gc { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .pl-gc > svg.pl-icon { margin-top: 3px; }
  .pl-gc > .pl-btn { grid-column: 1 / -1; width: 100%; min-height: 44px; justify-content: center; }
}
.pl-og__switch:not(:checked) { border-color: var(--ink-muted); }
.pl-og__switch:not(:checked)::after { background: var(--ink-muted); }

/* Phone header stays one row with no studio chosen (onboarding walk follow-up). The tools block starts from no width and grows, and the studio name shortens before the row wraps. */
@media (max-width: 767.98px) {
  .pl-header__tools { flex: 1 1 0; justify-content: flex-end; }
  .pl-header__tools > .pl-studio-switch { flex: 0 1 auto; min-width: 0; }
  .pl-header__tools > .pl-studio-switch > summary { display: flex; max-width: 100%; }
  .pl-header__tools > .pl-studio-switch .pl-switch__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pl-header__tools > .pl-studio-switch > summary svg { flex: none; }
  .pl-header__tools > .pl-account { flex: none; }
  .pl-header__tools > .pl-studio-switch > summary { min-height: 24px; }
}
/* The notice count never wraps: one line at 375 px. */
.pl-banner--more .pl-banner__inner { display: block; white-space: nowrap; }

/* Home per studio category (mock-up home-categories v3, decisions 49-52). Boxes: label,
   figure, one comparison line, a short chip where coverage is partial; the rest in the info
   tip, a real button. The sand foil line under the first box is the one ornament (decision
   7). Every section full width; phones put Needs your attention above the wishlist row
   (decision 51). Tokens only. */

.pl-hk-row { display: grid; gap: 18px; }
.pl-hk-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-hk-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-hk { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0; padding: 18px 20px; }
.pl-hk__label { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: var(--type-label-weight); color: var(--ink-muted); }
.pl-hk-row--two-lines .pl-hk__label { min-height: 32px; } /* glossary labels on two lines keep the figures level */
.pl-hk__value { margin-top: var(--space-1); font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.pl-hk__value--words { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
.pl-hk__foil { display: block; width: 80px; height: 1px; margin: var(--space-2) 0 var(--space-1); background-image: var(--foil); }
.pl-hk__delta, .pl-hk__line { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-hk__change { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.pl-hk__change--up { color: var(--good-ink); }
.pl-hk__change--down { color: var(--critical-ink); }
.pl-hk__chip { display: inline-flex; align-items: center; min-height: 24px; margin-top: var(--space-1); padding: 0 var(--space-2); border: 1px solid var(--card-edge); border-radius: var(--radius-sm); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; color: var(--ink); background-color: var(--surface); }
.pl-hk__foot { display: flex; gap: var(--space-2); align-items: flex-start; align-self: stretch; margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--hairline); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-hk__foot .pl-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--promo-ink); }

/* Your games: launched and not-launched groups, add-ons under their game. */
.pl-home-games__group { margin: var(--space-4) 0 var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); }
.pl-home-games__group:first-of-type { margin-top: var(--space-1); }
.pl-home-games td.pl-home-games__game, .pl-home-games thead th { white-space: normal; } /* tags and long headers wrap, never a sideways scroll */
.pl-home-games thead th.pl-home-games__vs { white-space: nowrap; } /* one line at 1280 (design review 6); phones show the short header */
.pl-home-games__addon .pl-home-games__game { padding-left: 40px; font-weight: 500; }
.pl-home-games__addon .pl-home-games__name { color: var(--ink); }
.pl-home-games__tag { margin-left: 6px; padding: 0 7px; border: 1px solid var(--card-edge); border-radius: var(--radius-sm); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-home-games__nodate { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 6px; border: 1px solid var(--warning-ink); border-radius: var(--radius-sm); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--warning-ink); white-space: nowrap; }
.pl-home-games__nodate .pl-icon { width: 12px; height: 12px; }

@media (max-width: 1100px) { .pl-hk-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .pl-hk-row { gap: 10px; }
  .pl-hk-row--two-lines .pl-hk__label, .pl-hk-row--four .pl-hk__label { min-height: 32px; }
  .pl-hk { padding: 14px; }
  .pl-home__wishlist_row { order: 1; }
  .pl-home__games, .pl-home__platforms, .pl-home__market { order: 2; }
  /* Phones keep three figures a row, as the mock-up's phone frame: the month, the launched
     games' Total wishlists (home.css hides the fourth column) and Followers go. */
  .pl-home-games .pl-home-games__mtd, .pl-home-games .pl-home-games__followers { display: none; }
  .pl-home-games th, .pl-home-games td { padding-inline: 4px; }
  .pl-home-games thead th:not(:first-child) { min-width: 0; } /* four short columns fit 375 px */
  .pl-home-games__addon .pl-home-games__game { padding-left: 20px; }
  .pl-home-games th, .pl-home-games td { white-space: normal; }
  .pl-home-games__name { overflow-wrap: anywhere; }
  .pl-home-games__nodate { white-space: normal; text-align: left; }
}

/* Needs your attention (mock-up home-categories v3, decisions 49-51): ranked by impact.
   The rank is the list's own order, numbered by a CSS counter; each row is the mark, what
   happened and the link. Marks sit on the violet tint, coloured by kind. Tokens only. */

.pl-home-att--ranked { counter-reset: pl-att; }
.pl-home-att--ranked .pl-home-att__item { counter-increment: pl-att; display: grid; grid-template-columns: 16px 28px minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-3); padding: 14px 0; }
.pl-home-att--ranked .pl-home-att__item::before { content: counter(pl-att); font-size: var(--type-label-size); line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-muted); }
.pl-home-att--ranked .pl-home-att__item:first-child { padding-top: var(--space-1); }
.pl-home-att--ranked .pl-home-att__mark { width: 28px; height: 28px; border-radius: var(--radius-md); background-color: var(--violet-tint); }
.pl-home-att--ranked .pl-home-att__mark .pl-icon { width: 16px; height: 16px; }
.pl-home-att--ranked .pl-home-att__mark--down { color: var(--critical-ink); }
.pl-home-att--ranked .pl-home-att__mark--warning, .pl-home-att--ranked .pl-home-att__mark--deadline { color: var(--warning-ink); }
.pl-home-att--ranked .pl-home-att__mark--event { color: var(--violet-strong); }
.pl-home-att--ranked .pl-home-att__text { min-width: 0; font-weight: 600; }
.pl-home-att--ranked .pl-home-att__link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; margin-left: 0; }

@media (max-width: 767.98px) {
  .pl-home-att--ranked .pl-home-att__item { grid-template-columns: 16px 28px minmax(0, 1fr); align-items: start; }
  .pl-home-att--ranked .pl-home-att__text { flex: none; padding-top: 3px; }
  .pl-home-att--ranked .pl-home-att__link { grid-column: 3; flex-basis: auto; margin-left: 0; justify-self: start; }
}

/* Box chips: two side by side ("Excludes DLC", "Like for like"), wrapping on a phone. The
   Steam card's chip keeps its own width, never a full-width bar (design review re-confirm). */
.pl-hk__chips { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.pl-home-plat .pl-hk__chip { align-self: flex-start; width: auto; }

/* A second, muted line under an attention item's text (mock-up discount-approval-v2, Home
   item): who proposed it and the Answer by date. Tokens only. */

.pl-home-att--ranked .pl-home-att__meta { margin-top: var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }

/* Needs your attention, rules of 2026-11-04 (Fredrik): good news gets an up mark in the good
   tone (design owner, PR 639 R1), and the list shows seven items, the rest behind the button
   under the list (Show N more, then Show fewer in the same place, PR 639 F3). Tokens only. */

.pl-home-att--ranked .pl-home-att__mark--up { color: var(--good-ink); }
.pl-home-att--ranked .pl-home-att__item[hidden] { display: none; }
.pl-home-att__more { margin-top: var(--space-2); }

/* Home's daily overview boxes: the grey sub-text and the board link never wrap (Fredrik, 2026-10-28), at 1280 and at 375. Same one-line rule as the Sales stat tiles (pl-sh-vs). */
.pl-hk__delta, .pl-hk__line { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .pl-hk__more { display: none; } /* ", same days" is in the tip; a half-width phone box keeps the basis */
  .pl-hk-row--four .pl-hk { padding-inline: 12px; }
  .pl-hk-row--four .pl-hk__delta, .pl-hk-row--four .pl-hk__line { font-size: var(--type-label-size); line-height: var(--type-label-line); }
}

/* Two figure sizes, one rule (Fredrik, 2026-10-28). TILE size (36 px desktop, 30 px below 1024 px): a card with ONE headline figure, the Home boxes and the Sales stat tiles. PAIR size (28 px, the old tile size; nothing shrinks): a card with two or more figures side by side, the Sales fixed cards and the Wishlists first-row tiles. The 60 px hero figure is separate. */
:root { --type-figure-tile-size: 36px; --type-figure-tile-line: 40px; --type-figure-pair-size: 28px; --type-figure-pair-line: 34px; }
@media (max-width: 1023.98px) { :root { --type-figure-tile-size: 30px; --type-figure-tile-line: 36px; } }
.pl-hk__value:not(.pl-hk__value--words), .pl-sh-box .pl-sh-fig { font-size: var(--type-figure-tile-size); line-height: var(--type-figure-tile-line); }
.pl-sh-pair .pl-sh-fig--sm, .pl-ss-tile .pl-sh-fig { font-size: var(--type-figure-pair-size); line-height: var(--type-figure-pair-line); }
@media (max-width: 1279.98px) { .pl-sh-box .pl-sh-row { flex-wrap: wrap; } .pl-sh-box .pl-sh-row > * { white-space: nowrap; } }
@media (max-width: 479.98px) { .pl-hk-row--four .pl-hk__value:not(.pl-hk__value--words) { font-size: min(var(--type-figure-tile-size), 7.3vw); } } /* a value of seven digits still fits the half-width phone box */
@media (min-width: 1101px) and (max-width: 1365.98px) { .pl-hk__more { display: none; } } /* four boxes in 1280 px leave 187 px: the words are in the tip */
/* A fixed card too narrow for two 28 px figures side by side stacks them, one under the other, instead of shrinking them. */
.pl-sh-pair { container-type: inline-size; }
@container (max-width: 410px) {
  .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}
/* Wishlists first-row tiles hold 9-character values (+1,234,567): the change pill drops under the figure and a long label wraps, so no tile ever scrolls the page sideways. */
.pl-ss-tile .pl-sh-row { flex-wrap: wrap; }
.pl-ss-tile .pl-sh-row > * { white-space: nowrap; }
.pl-ss-tiles .pl-ss-tile .pl-sh-label { white-space: normal; }

/* Home daily overview in two rows (decision 100, mock-up home-boxes-v1). Row 1: Latest complete day and the month so far. Row 2: the forecast, Positive reviews, Refund rate and Promotions running, four across where a full seven-digit figure fits, two by two below that (about 1280 px wide windows with the sidebar), and on a phone the forecast and the promotions full width. Figures are never shortened; the grey sub-text stays one line. Tokens only. */
.pl-hk-rows { display: grid; gap: 18px; container-type: inline-size; }
.pl-hk-row--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-hk-row--r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-hk-row--lead .pl-hk__more { display: inline; } /* row 1 has the room for ", same days" */
@container (min-width: 1000px) { .pl-hk-row--r2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Colour says good or bad, the arrow the direction: a falling refund rate is green with a down arrow (lower is better). */
.pl-hk__change--good { color: var(--good-ink); }
.pl-hk__change--bad { color: var(--critical-ink); }

@media (max-width: 767.98px) {
  .pl-hk-rows { gap: 10px; }
  .pl-hk-row--r2 .pl-hk { padding-inline: 12px; }
  .pl-hk-row--r2 .pl-hk__delta, .pl-hk-row--r2 .pl-hk__line { font-size: var(--type-label-size); line-height: var(--type-label-line); }
}
/* Phone: a seven-digit figure needs the full width, so row 1 stacks and the forecast and the promotions span both columns; the reviews and refund boxes sit side by side. */
@container (max-width: 560px) {
  .pl-hk-row--lead { grid-template-columns: minmax(0, 1fr); }
  .pl-hk-row--r2 [data-kpi="forecast"], .pl-hk-row--r2 [data-kpi="promotions"] { grid-column: 1 / -1; }
  .pl-hk-row--lead .pl-hk__more { display: none; }
  /* The half-width reviews and refund boxes put the change above its grey basis, each on one line, as the mock-up's phone frame. */
  .pl-hk-row--r2 .pl-hk__delta { white-space: normal; }
  .pl-hk-row--r2 .pl-hk__change, .pl-hk-row--r2 .pl-hk__basis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* A change too small to call good or bad (under 5%, and "0 pts") keeps its arrow and sign in muted ink (change colours v1, Fredrik 2026-11-17). */
.pl-hk__change--neutral { color: var(--ink-muted); }
/* Short labels for the half-width phone boxes, so the label stays one line. */
.pl-hk__label-short { display: none; }
@container (max-width: 560px) {
  .pl-hk-row--r2 .pl-hk__label-long { display: none; }
  .pl-hk-row--r2 .pl-hk__label-short { display: inline; }
}
/* A box with words instead of a figure (No forecast yet, Too few units) takes the figure's slot, so its grey line sits level with its neighbours and the box carries the same weight. */
.pl-hk-rows .pl-hk__value--words { display: flex; align-items: center; min-height: var(--type-figure-tile-line); margin-top: var(--space-1); }

/* Event chips that only a phone's shorter drawn span fills (decision 60): desktop has none. */
@media (min-width: 768px) {
  .pl-event-chip[data-phone-only] { display: none; }
}

/* Wishlists context bar (decisions 56.1, 56.9, 57.2): the Launch page's one sentence beside the
   Game menu, and the A/B page's "A: dates, B: dates" chip. Tokens only. The A and B markers are
   plain letters in a circle and a square; their colours come with the A/B picker redesign. */
.pl-ctx__note { margin-left: 0; }
/* Phone only: not .pl-why, whose later display rule would show it on desktop too. */
.pl-ctx__phone-note { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-ctx__ab { gap: 8px; font-variant-numeric: tabular-nums; }
.pl-ctx__ab:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pl-ab-key { display: inline-flex; align-items: center; justify-content: center; inline-size: 20px; block-size: 20px; border: 1px solid var(--border-strong); color: var(--ink); font-size: var(--type-label-size); line-height: 16px; font-weight: 600; }
.pl-ab-key--a { border-radius: 50%; }
.pl-ab-key--b { border-radius: var(--radius-sm); }
.pl-ctx__sep-dot { color: var(--ink-muted); }

/* Wishlist overview, second row (decision 56.2, mock-up wishlists v2 approved 2026-10-26):
   two equal wide boxes laid out as Sales overview's second row (sales-glance part). This part
   adds the label row with its "All markets" link and the top-3 country list with share tracks.
   Phones: one box per row; a country's track goes under its name and share. Tokens only. */

.pl-wl-wide { margin-bottom: var(--space-3); }
.pl-wl-wide__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.pl-wl-wide__link { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.pl-wl-wide .pl-wl-wide__words { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); letter-spacing: 0; }

.pl-wl-top { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-wl-top li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-wl-top__name { min-width: 0; overflow-wrap: anywhere; }
.pl-wl-top__share { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-wl-top__track { position: relative; display: block; height: 8px; border-radius: var(--radius-sm); background-color: var(--surface-raised); }
[data-theme="light"] .pl-wl-top__track { background-color: var(--violet-tint); }
.pl-wl-top__track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-sm); background-color: var(--violet); }

@media (max-width: 767.98px) {
  .pl-wl-wide__head { flex-wrap: wrap; }
  .pl-wl-top li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .pl-wl-top__track { grid-column: 1 / -1; grid-row: 2; }
}

/* Wishlists Launch and A/B (decisions 56.8, 56.9, 57.1; mock-up wishlists v2 approved 2026-10-26).
   A is violet-deep and a circle, B is violet-pale and a square: on the chart line ends, in the
   legend, in the table and in the bar chip, so colour never carries it alone. The A and B
   pickers are one card with the same controls. Tokens only. */

.pl-wab-scope { --ab-a: var(--violet-deep); --ab-b: var(--violet-pale); }
.pl-ctx__ab { --ab-a: var(--violet-deep); --ab-b: var(--violet-pale); }

/* The marker: a ring in the series colour with the letter inside. A circle, B a square. */
.pl-wab__mark, .pl-ab-key--a, .pl-ab-key--b { display: inline-flex; align-items: center; justify-content: center; inline-size: 22px; block-size: 22px; flex: none; border: 2px solid var(--ab-a); border-radius: 50%; background-color: var(--surface); color: var(--ink); font-size: var(--type-label-size); line-height: 16px; font-weight: 600; }
.pl-wab__mark--b, .pl-ab-key--b { border-color: var(--ab-b); border-radius: var(--radius-sm); }
.pl-wab__mark--small { inline-size: 18px; block-size: 18px; margin-right: var(--space-1); }
.pl-ab-key--a, .pl-ab-key--b { inline-size: 20px; block-size: 20px; }

/* Legend: the swatch becomes the marker (a ring, or a rounded square) in the line's colour. */
.pl-legend__mark { display: inline-block; inline-size: 12px; block-size: 12px; box-sizing: border-box; border: 2px solid; background-color: transparent; }
.pl-legend__mark--circle { border-radius: 50%; }
.pl-legend__mark--square { border-radius: var(--radius-sm); }

/* The two pickers: one card each, the same rows. */
.pl-wab__intro { margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-wab__pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); align-items: stretch; }
.pl-wab__pick { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; padding: var(--space-4) var(--space-4); border: 1px solid var(--card-edge); border-top: 3px solid var(--ab-a); border-radius: var(--radius-md); background-color: var(--surface); }
.pl-wab__pick--b { border-top-color: var(--ab-b); }
.pl-wab__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.pl-wab__sub { color: var(--ink-muted); font-size: var(--type-body-sm-size); }
.pl-wab__field { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.pl-wab__label { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; }
.pl-wab__hint, .pl-wab__range { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-variant-numeric: tabular-nums; }
.pl-wab__ctl { box-sizing: border-box; inline-size: 100%; min-block-size: 36px; padding: 0 var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface); color: var(--ink); font-size: var(--type-body-sm-size); display: inline-flex; align-items: center; }
.pl-wab__ctl--locked { border-style: dashed; color: var(--ink-muted); }
.pl-wab__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pl-wab__pills--sub { padding-left: var(--space-3); border-left: 2px solid var(--card-edge); }
.pl-wab__pill { position: relative; display: inline-flex; align-items: center; min-block-size: 32px; padding: 0 var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-pill); background-color: var(--surface); color: var(--ink); font-size: var(--type-body-sm-size); line-height: 18px; cursor: pointer; }
.pl-wab__pill:has(input:checked:not(:disabled)) { border-color: var(--violet-strong); background-color: var(--violet-tint); color: var(--violet-strong); font-weight: 600; }
.pl-wab__pill:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-wab__dates { display: flex; flex-wrap: wrap; gap: var(--space-3); color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-wab__dates label { display: flex; flex-direction: column; gap: var(--space-1); }
.pl-wab__dates input { min-block-size: 36px; padding: 0 var(--space-2); font-size: var(--type-body-sm-size); }

@media (max-width: 899.98px) {
  .pl-wab__pickers { grid-template-columns: minmax(0, 1fr); }
}

/* Launch table: "Not on file" stays on one line in its cell. */
[id="sec-vs_sales_at_launch"] .pl-table td.n { white-space: nowrap; }

/* Phone: the key columns only (sheet v3, Tables: phone shows the key columns), so the table
   never scrolls sideways and "Not on file" under Units sold stays in view (design review of
   420). Period, Bought from a wishlist and Units sold stay; the CSV and desktop keep all six. */
@media (max-width: 767.98px) {
  [id="sec-vs_sales_at_launch"] .pl-table :is(th, td):is(:nth-child(3), :nth-child(4), :nth-child(6)) { display: none; }
}

/* Reviews tab follow-ups (decisions 75.2, 75.5, design audit PD-6, PD-7, PD-9; Fredrik 2026-10-27):
   the basis line under the section title, the language table,
   the "this chart: all time" chip in the monthly chart's title row, and on a phone the charts
   folded behind "Show charts" (mock-up reviews v2). */
.pl-revsum__basis { margin: 0 0 var(--space-3); font: 400 var(--type-meta-size)/var(--type-meta-line) var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.pl-revsum-langs { margin-top: var(--space-4); }
.pl-revsum-langs caption { text-align: left; padding-bottom: var(--space-2); }
.pl-revsum-langs td.n, .pl-revsum-langs th.n { font-variant-numeric: tabular-nums; }
.pl-view-chart > .pl-label .pl-ctx-note__chip { display: inline-flex; align-items: center; margin-left: var(--space-2); padding: 1px 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); font-weight: 400; color: var(--ink-muted); vertical-align: 1px; }
.pl-revsum-fold { display: none; margin-top: var(--space-4); }
.pl-revsum-fold[aria-expanded="true"] .pl-revsum-fold__show, .pl-revsum-fold[aria-expanded="false"] .pl-revsum-fold__hide { display: none; }
@media screen and (max-width: 767.98px) {
  .pl-revsum-fold { display: inline-flex; }
  .pl-section:has(.pl-revsum-fold[aria-expanded="false"]) .pl-view-chart { display: none; }
}
@media print { .pl-revsum-fold { display: none; } }
@media screen and (max-width: 767.98px) {
  .pl-revsum-langs th:nth-child(3), .pl-revsum-langs td:nth-child(3) { display: none; }
}
@media screen and (max-width: 767.98px) {
  .pl-revsum--row2 .pl-revsum__sub { grid-column: 1 / -1; text-align: left; }
}

/* CCUs on the context bar (decision 73, mockup-player-data-bar-v1 option b): the finding and
   its subtitle, three boxes in one strip, the coverage line, the day table (decision 75.1). */
.pl-ccu__finding { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); color: var(--ink); }
.pl-ccu__sub { margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-ccu__head { margin-bottom: var(--space-4); }
/* The day table is always shown, so the chart/table switch has nothing to do. */
.pl-section:has(.pl-ccu__days) [data-pl-view-toggle] { display: none; }
.pl-ccu.pl-stats--row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--space-4); }
.pl-ccu .pl-stat__value { font-variant-numeric: tabular-nums; }
.pl-ccu .pl-stat__value--words { font-size: var(--type-heading-size); line-height: var(--type-heading-line); color: var(--ink-muted); }
.pl-ccu__why { margin: calc(-1 * var(--space-2)) 0 var(--space-4); }
.pl-ccu__coverage { margin-top: var(--space-2); }
.pl-ccu__days { margin-top: var(--space-4); }
.pl-ccu__days td.n { font-variant-numeric: tabular-nums; }
.pl-ccu__short, .pl-ccu__under { display: none; }
@media (max-width: 767.98px) {
  .pl-ccu.pl-stats--row { grid-template-columns: minmax(0, 1fr); }
  /* Phones: Day, Average, Peak; the readings and what happened as small lines under the day. */
  .pl-ccu__days .pl-ccu__wide, .pl-ccu__long { display: none; }
  .pl-ccu__short { display: inline; }
  .pl-ccu__under { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .pl-ccu__tag { display: block; color: var(--ink-muted); }
}

/* Store traffic, decision 77: the top 15 sources with the Other row, the outside sites, every country with its search box */
.pl-tsources__other td { color: var(--ink-muted); }
.pl-tsources__sum { margin-top: var(--space-2); }
.pl-tsources__sites-title { margin-top: var(--space-5); }
.pl-tsources--sites { margin-top: 0; }
.pl-tcountries__all { margin-top: var(--space-3); }
.pl-tcountries__label { margin-top: var(--space-3); flex-wrap: wrap; row-gap: 2px; }
.pl-tcountries__find { display: block; width: 100%; max-width: 320px; min-height: 40px; margin-bottom: var(--space-3); }
.pl-tindex { white-space: nowrap; }
.pl-tcountries__bots { display: block; font-size: var(--type-label-size); font-weight: 400; color: var(--ink-muted); }
/* Phones: each country row folds into two lines, the country and its comparison on top, the labelled figures under it (PR 431 design review, ST-7) */
@media (max-width: 599.98px) {
  .pl-tcountries--fold thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pl-tcountries--fold, .pl-tcountries--fold tbody { display: block; width: 100%; }
  .pl-tcountries--fold tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-1); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--hairline); }
  .pl-table.pl-tcountries--fold td { display: block; padding: 0; border: 0; text-align: left; }
  .pl-table.pl-tcountries--fold td.pl-tcountries__name { grid-column: 1; grid-row: 1; font-weight: 500; color: var(--ink); }
  .pl-table.pl-tcountries--fold td.pl-tcountries__lead { grid-column: 2; grid-row: 1; text-align: right; }
  .pl-tcountries--fold td[data-label]::before { content: attr(data-label); display: block; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
  .pl-table.pl-tcountries--fold td.pl-tcountries__per100 { display: none; }  /* "vs your average" says it */
}
/* Phones: each source row folds the same way, the source and its visits on top, the labelled figures under it (PR 431 design re-confirm) */
@media (max-width: 599.98px) {
  .pl-tsources--fold thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pl-tsources--fold, .pl-tsources--fold tbody { display: block; width: 100%; }
  .pl-tsources--fold tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-1); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--hairline); }
  .pl-table.pl-tsources--fold td { display: block; padding: 0; border: 0; text-align: left; }
  .pl-table.pl-tsources--fold td.pl-tsources__src { grid-column: 1; grid-row: 1; font-weight: 500; color: var(--ink); }
  .pl-table.pl-tsources--fold td.pl-tsources__lead { grid-column: 2; grid-row: 1; text-align: right; font-weight: 500; }
  .pl-tsources--fold td[data-label]::before { content: attr(data-label); display: block; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
}

/* Store traffic: each named source opens to Steam's placements under it (77.8.5) and "All other sources" to every remaining source (85), folded by default; the expandable table row of the sheet (decision 86), opened by peerlight.js as in Local pricing */
.pl-tsources__opens { cursor: pointer; }
.pl-tsources__src .pl-lp__open { display: inline-flex; align-items: center; min-height: 24px; }  /* the whole row is the target (37 px desktop, 44 px+ phone card); the button itself at least 24 px (walk 2026-11-13) */
.pl-tsources__src .pl-lp__name { white-space: normal; overflow: visible; }  /* Steam's long source names wrap as before */
.pl-tsources__src > .pl-lp__chev { margin-right: 2px; }  /* rows that open to nothing: no chevron, the names stay in line */
/* Child rows: three signals, never the tint alone (sheet, decision 86): the name 32 px in, a 3 px violet rule on the left, the violet tint */
.pl-tsources__place td, .pl-tsources__rest td { background: var(--violet-tint); }
.pl-table .pl-tsources__place td:first-child, .pl-table .pl-tsources__rest td:first-child { padding-left: 32px; border-left: 3px solid var(--violet); }
.pl-table .pl-tsources__place td.pl-tsources__pname { padding-left: 56px; font-weight: 400; }  /* at least 8 px right of the parent name (design owner, PR 442) */
.pl-table .pl-tsources__places--deep td.pl-tsources__pname { padding-left: calc(56px + var(--space-5)); }  /* a source's placements inside "All other sources": one step further in */
@media (max-width: 599.98px) {
  .pl-tsources--fold tbody[hidden] { display: none; }
  .pl-tsources--fold tr.pl-tsources__place, .pl-tsources--fold .pl-tsources__rest tr { padding-left: 24px; background: var(--violet-tint); border-left: 3px solid var(--violet); }
  .pl-tsources--fold tr.pl-tsources__place { padding-left: 50px; }
  .pl-tsources--fold .pl-tsources__places--deep tr.pl-tsources__place { padding-left: calc(50px + var(--space-4)); }
  .pl-table.pl-tsources--fold .pl-tsources__place td, .pl-table.pl-tsources--fold .pl-tsources__rest td { padding-left: 0; border-left: 0; background: none; }  /* one surface per row, never a box per cell */
  .pl-table.pl-tsources--fold td.pl-tsources__pname { font-weight: 400; color: var(--ink); }
  .pl-table.pl-tsources--fold tr.pl-tsources__other td.pl-tsources__pname { color: var(--ink-muted); }
  .pl-table.pl-tsources--fold td.pl-tsources__plead { font-weight: 400; }
}

/* Store traffic, decision 87: the ranked list of sources with a bar, share and weekly trend line; one violet, Other in grey */
.pl-sbars { margin-bottom: var(--space-5); container-type: inline-size; }
.pl-sbars__head, .pl-sbars__row { display: grid; grid-template-columns: 28px 210px minmax(120px, 1fr) 90px 80px 96px; gap: 0 var(--space-3); align-items: center; }
.pl-sbars__head { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); padding-bottom: var(--space-1); border-bottom: 1px solid var(--border-strong); }
.pl-sbars__head .r { text-align: right; }
.pl-sbars__list { list-style: none; margin: 0; padding: 0; }
.pl-sbars__row { min-height: 44px; border-bottom: 1px solid var(--hairline); }
.pl-sbars__row--other { border-top: 1px solid var(--border-strong); color: var(--ink-muted); }
.pl-sbars__rank { color: var(--ink-muted); text-align: right; font-size: var(--type-label-size); }
.pl-sbars__track { display: block; height: 16px; }
.pl-sbars__track i { display: block; height: 100%; min-width: 2px; background: var(--violet); border-radius: 0 4px 4px 0; }
.pl-sbars__row--other .pl-sbars__track i { background: var(--parts-other); }
.pl-sbars__value, .pl-sbars__share { text-align: right; font-variant-numeric: tabular-nums; }
.pl-sbars__share { font-weight: 500; }
.pl-sbars__both { display: none; }
.pl-sbars__spark { display: block; }
.pl-sbars__spark path { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-sbars__spark circle { fill: var(--violet); }
.pl-sbars__row--other .pl-sbars__spark path { stroke: var(--parts-other); }
.pl-sbars__row--other .pl-sbars__spark circle { fill: var(--parts-other); }
.pl-sbars__spark .pl-sbars__part { stroke-dasharray: 2 3; }
.pl-sbars__spark circle.pl-sbars__part { fill: var(--surface); stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: none; }
.pl-sbars__row--other .pl-sbars__spark circle.pl-sbars__part { fill: var(--surface); stroke: var(--parts-other); }
/* The table of every source folds behind a button on phones only (review of PR 443, finding 4) */
.pl-tsources-fold { display: none; margin-bottom: var(--space-3); }
.pl-tsources-fold[aria-expanded="true"] .pl-tsources-fold__show, .pl-tsources-fold[aria-expanded="false"] .pl-tsources-fold__hide { display: none; }
/* Narrow lists (a phone, or a tablet beside the sidebar): the name and its figure on top, the bar and the trend line under them, no sideways scroll. It follows the list's own width, not the window: the six columns need 704 px (2026-11-03: at 768 the sidebar left about 480) */
@container (max-width: 719.98px) {
  .pl-sbars__head { display: none; }
  .pl-sbars__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm both" "tr sp"; gap: 2px var(--space-3); padding: var(--space-2) 0; min-height: 60px; }
  .pl-sbars__rank, .pl-sbars__value, .pl-sbars__share { display: none; }
  .pl-sbars__name { grid-area: nm; min-width: 0; overflow-wrap: anywhere; }
  .pl-sbars__both { display: block; grid-area: both; text-align: right; font-variant-numeric: tabular-nums; }
  .pl-sbars__sharelow { color: var(--ink-muted); }
  .pl-sbars__track { grid-area: tr; }
  .pl-sbars__spark { grid-area: sp; }
}
@media screen and (max-width: 599.98px) {
  .pl-tsources-fold { display: inline-flex; }
  .pl-tsources-fold[aria-expanded="false"] + .pl-tsources-body { display: none; }
}
@media print { .pl-tsources-fold { display: none; } }

/* The staff funnel on a phone. (The two-CTR line and gap sentence that lived here went with the Store traffic overview card, decision 124; the funnel's CTR column is in store-traffic-cleanup.css.) Tokens only. */
/* Staff funnel on a phone: six measures now, so two to a row with the label above its figure, and a long label wraps instead of running into its neighbour. */
@media (max-width: 767.98px) {
  .pl-fn__table tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-fn__table td[data-l] { min-width: 0; }
  .pl-fn__table td[data-l]::before { white-space: normal; overflow-wrap: anywhere; letter-spacing: 0; }
}

/* The products scope in the context bar (decisions 72 and 74, mock-up dlc-scope-v1): the switch
   All, Base, DLCs and the row of DLC pills. The segment and the pills reuse the bar's own
   control looks (context-bar.css), so their outlines follow decision 76 (control-outlines.css).
   Layout only here, tokens only. */

.pl-ctx__scope { margin-left: var(--space-2); }
.pl-ctx__dlcrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 0 0 100%; padding-top: 2px; }
.pl-ctx__dlcrow > .pl-ctx__k { margin-right: 2px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ctx__dlcrow .pl-ctx__menu { display: inline-block; }
.pl-ctx__dlcpill { color: var(--ink); }
.pl-ctx__dlcpill[aria-current="true"] { background-color: var(--violet-tint); border-color: var(--violet); color: var(--violet-strong); font-weight: 600; }
.pl-ctx-phone-scope { display: none; }

/* Phones: the bar is one chip, so the switch sits under it, full width, and the DLC pills wrap. */
@media (max-width: 767.98px) {
  .pl-ctx-phone-scope { display: flex; flex-direction: column; gap: var(--space-2); flex: 0 0 100%; }
  .pl-ctx-phone-scope .pl-ctx__scope { display: flex; margin-left: 0; width: 100%; }
  .pl-ctx-phone-scope .pl-ctx__scope > .pl-ctx__k { flex: none; }
  .pl-ctx-phone-scope .pl-ctx__segitem { flex: 1 1 0; justify-content: center; min-height: 36px; }
  .pl-ctx-phone-scope .pl-ctx__dlcpill { min-height: 36px; }
  .pl-ctx-phone-scope .pl-ctx__dlcrow { padding-top: 0; }
}

/* Forecast with DLCs (decisions 89 to 92, mock-up forecasts-dlc v2): the stacked chart's captions
   and docked figures, the By product table, the stat strip with a share bar, the folded months.
   Tokens only; layout and the few new small elements. */

.pl-fc .pl-sharebar { display: flex; }
.pl-fc-below { margin-top: var(--space-2); }
.pl-fc-caption, .pl-fc-basis, .pl-fc-note { margin: var(--space-2) 0 0; }
.pl-fc-fold { margin: var(--space-2) 0 0; }

/* The figures of a tapped month, docked under the chart on a phone (decision 91). A desktop
   draws the hover tooltip instead, so the panel never shows there. */
.pl-fc-dock { display: none; margin: var(--space-2) 0 0; padding: var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 400 var(--type-body-sm-size)/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.pl-fc-dock[hidden] { display: none; }
@media (max-width: 767.98px) {
  .pl-fc-dock:not([hidden]) { display: block; }
}
.pl-tip__key { display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-end: 6px; border-radius: 2px; }

.pl-fc-ghost { margin: var(--space-3) 0 0; padding: var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.pl-fc-ghost p { margin: var(--space-1) 0 0; }

.pl-fc-nm { display: inline-flex; align-items: center; gap: 6px; }
.pl-fc-nm i { display: inline-block; inline-size: 10px; block-size: 10px; border-radius: 2px; flex: none; }
.pl-fc-range { display: block; font: 400 var(--type-label-size)/16px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.pl-fc-how { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); }
.pl-fc-byprod > summary { cursor: pointer; font: 500 var(--type-body-sm-size)/20px var(--font-sans); color: var(--ink); padding-block: var(--space-1); }
.pl-fc-byprod[open] > summary { margin-block-end: var(--space-2); }
.pl-fc-byprod tfoot th, .pl-fc-byprod tfoot td { border-top: 1px solid var(--hairline); }
.pl-fc-foldrow td { padding-block: var(--space-1); }

/* The month table scrolls sideways on a phone, and says so (design owner F3). */
.pl-fc-hint { display: none; margin: 0 0 var(--space-2); }
@media (max-width: 767.98px) { .pl-fc-hint { display: block; } }

/* The small DLC table under Reviews and Refunds (decisions 72.5 and 74, mock-up dlc-scope-v1
   screen 6d). The colour dot comes from discounts-dlc.css; tokens only. */

.pl-dlct { margin-top: var(--space-5); }
.pl-dlct__title { margin: 0 0 var(--space-1); }
.pl-dlct__title small { margin-left: var(--space-2); color: var(--ink-muted); }
.pl-dlct__sub { margin: 0 0 var(--space-2); }
.pl-dlct__table td { font-variant-numeric: tabular-nums; }
.pl-dlct__name { overflow-wrap: anywhere; }
/* The reason a row reads No data. */
.pl-dlct__why { margin: var(--space-2) 0 0; }
.pl-dlct__few { color: var(--ink-muted); }

/* PeerLight 2.0: G-light glass (decision 94, mock-up glass v1). Frosted glass on chrome only: the
   header and the sticky row under it, the sidebar, the phone bottom bar and period sheet, the
   period menu, tooltips. Cards, charts and tables stay solid. One switch: the class pl-glass on
   the body (templates/peerlight/app.html). Remove the class and every rule here is off; to limit
   glass to some pages, set the class from those pages only. Tokens only.
   Why 75 percent: the tint where the text still passes 4.5:1 over the worst thing that can
   sit behind it, with the two glass text tokens (ink-muted-glass, link-glass) below.
   Not glass, on purpose: the account and studio menus inside the header and sidebar. A glass
   layer inside another glass layer only sees its parent, so those stay solid. Header glass is
   desktop only: on phones the header scrolls away and its menus are fixed inside it, which a
   backdrop filter would trap. */

:root { --glass-blur: 24px; --glass-saturate: 140%; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pl-glass .pl-side,
  .pl-glass .pl-stickrow,
  .pl-glass .pl-bottomnav,
  .pl-glass .pl-ctx-sheet,
  .pl-glass .pl-ctx__pop,
  .pl-glass .pl-why__tip,
  .pl-glass .pl-info__tip {
    background-color: var(--glass-chrome);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-color: var(--glass-edge);
  }
  /* The charts' own tooltip is drawn by ECharts with an inline fill, hence the !important. */
  .pl-glass .pl-chart-tip {
    background-color: var(--glass-chrome) !important;
    border-color: var(--glass-edge) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  }
  @media (min-width: 768px) and (min-height: 600px) {
    .pl-glass .pl-header { background-color: transparent; border-bottom-color: transparent; }
    .pl-glass .pl-header__inner {
      background-color: var(--glass-chrome);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      box-shadow: inset 0 -1px 0 var(--glass-edge), inset 0 1px 0 var(--glass-highlight);
    }
  }
  .pl-glass .pl-side { box-shadow: inset -1px 0 0 var(--glass-edge), inset 0 1px 0 var(--glass-highlight); }
  .pl-glass .pl-side__foot { background-color: transparent; border-top-color: var(--glass-edge); }
  .pl-glass .pl-stickrow { box-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 30px var(--glass-shadow); }
  .pl-glass .pl-bottomnav { box-shadow: inset 0 1px 0 var(--glass-highlight); }
  .pl-glass .pl-ctx-sheet,
  .pl-glass .pl-ctx__pop,
  .pl-glass .pl-why__tip,
  .pl-glass .pl-info__tip,
  .pl-glass .pl-chart-tip { box-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 30px var(--glass-shadow); }

  /* The two glass text tokens: muted text and links on glass are a step stronger than elsewhere. */
  .pl-glass .pl-header__inner,
  .pl-glass .pl-side,
  .pl-glass .pl-stickrow,
  .pl-glass .pl-bottomnav,
  .pl-glass .pl-ctx-sheet,
  .pl-glass .pl-ctx__pop,
  .pl-glass .pl-why__tip,
  .pl-glass .pl-info__tip,
  .pl-glass .pl-chart-tip {
    --ink-muted: var(--ink-muted-glass);
    --link: var(--link-glass);
    --violet-strong: var(--link-glass);
  }
}

/* Controls on glass keep a solid fill, so their outline (border-strong, 3:1 or better against
   it) is measured against a solid colour and never against what blurs behind the glass. */
.pl-glass .pl-stickrow .pl-ctx__ctl { background-color: var(--surface); }

/* Solid again: the computer asks for less transparency, and print is always solid. */
@media (prefers-reduced-transparency: reduce) {
  .pl-glass .pl-side,
  .pl-glass .pl-stickrow,
  .pl-glass .pl-bottomnav,
  .pl-glass .pl-header__inner { background-color: var(--surface); }
  .pl-glass .pl-ctx-sheet,
  .pl-glass .pl-ctx__pop,
  .pl-glass .pl-why__tip,
  .pl-glass .pl-info__tip { background-color: var(--surface-raised); }
  .pl-glass .pl-chart-tip { background-color: var(--surface-raised) !important; }
  .pl-glass .pl-side,
  .pl-glass .pl-stickrow,
  .pl-glass .pl-bottomnav,
  .pl-glass .pl-header__inner,
  .pl-glass .pl-ctx-sheet,
  .pl-glass .pl-ctx__pop,
  .pl-glass .pl-why__tip,
  .pl-glass .pl-info__tip,
  .pl-glass .pl-chart-tip { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  .pl-glass .pl-side,
  .pl-glass .pl-stickrow,
  .pl-glass .pl-bottomnav,
  .pl-glass .pl-header__inner,
  .pl-glass .pl-ctx-sheet { background-color: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* PeerLight 2.0: the colour field behind G-light glass (decision 98). A muted violet and sand
   field fixed behind the whole page, so the glass on the sidebar, the sticky bar, the phone bar
   and the menus has something to frost. The field lives only in this part and only in its own
   tokens below; no component reads them, except the welcome overlay (parts/welcome.css), which
   draws the same field once after login. It is on only where glass is on: behind the body class
   pl-glass, in browsers with backdrop-filter, and off when the computer asks for less
   transparency and in print (then the flat Chalk or graphite ground returns). The data colours
   are untouched and cards, charts and tables stay solid. Page titles, tabs, chips, pills and
   links do sit on the field itself, because the field is fixed to the viewport and its bright
   points stay put while the page scrolls; they use the glass text tokens (part glass-text).
   Why muted: the bright points are the worst thing text can sit over, and the contrast checks
   are measured there. Peaks: violet .45 and sand .30 in dark, violet .34 in Chalk. */

:root {
  --field-violet: rgba(124, 108, 230, 0.45);
  --field-sand: rgba(201, 175, 128, 0.30);
  --field-violet-low: rgba(124, 108, 230, 0.38);
}
:root[data-theme="light"] {
  --field-violet: rgba(140, 124, 230, 0.34);
  --field-sand: rgba(214, 190, 150, 0.40);
  --field-violet-low: rgba(140, 124, 230, 0.20);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --field-violet: rgba(140, 124, 230, 0.34);
    --field-sand: rgba(214, 190, 150, 0.40);
    --field-violet-low: rgba(140, 124, 230, 0.20);
  }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media not print {
    @media not (prefers-reduced-transparency: reduce) {
      body.pl-glass {
        background-color: var(--canvas);
        background-image:
          radial-gradient(520px 420px at 18% 6%, var(--field-violet), transparent 70%),
          radial-gradient(560px 420px at 88% 22%, var(--field-sand), transparent 70%),
          radial-gradient(700px 520px at 55% 62%, var(--field-violet-low), transparent 72%),
          radial-gradient(520px 420px at 12% 92%, var(--field-sand), transparent 70%),
          var(--grain);
        background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
        background-attachment: fixed;
      }
      /* The page bands that painted the flat ground let the field through. */
      .pl-glass .pl-ctx { background-color: transparent; background-image: none; }
      @media (min-width: 768px) and (min-height: 600px) {
        .pl-glass .pl-header { background-color: transparent; }
      }
      @media (max-width: 767.98px) {
        .pl-glass .pl-header { background-color: transparent; }
      }
      @media (max-width: 767.98px) {
        body.pl-glass {
          background-image:
            radial-gradient(260px 260px at 15% 8%, var(--field-violet), transparent 70%),
            radial-gradient(280px 260px at 95% 30%, var(--field-sand), transparent 70%),
            radial-gradient(320px 300px at 40% 66%, var(--field-violet-low), transparent 72%),
            radial-gradient(260px 260px at 90% 92%, var(--field-sand), transparent 70%),
            var(--grain);
        }
      }
    }
  }
}

/* PeerLight 2.0: muted text and links that sit on the colour field itself, outside any card
   (decision 98 follow-up, design owner 2026-10-30). Page titles, area tabs, section chips,
   inactive pills, Compare, Data to and foot links cross the field's bright points, where the
   plain muted ink is under 4.5:1. Here the two glass text tokens take over. Same switch as the
   field: only behind the body class pl-glass, with backdrop-filter, not for reduced
   transparency, not in print. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media not print {
    @media not (prefers-reduced-transparency: reduce) {
      body.pl-glass {
        --ink-muted: var(--ink-muted-glass);
        --link: var(--link-glass);
        --violet-strong: var(--link-glass);
      }
    }
  }
}

/* PeerLight 2.0: the sub-tab control as drawn in the approved Sales mock-ups (decision 93):
   underline tabs attached under the page title. The current page has a bold ink label and a 2 px
   violet underline (two signals, never colour alone) and the row sits on a hairline. No negative
   outer margin: the row keeps its own space under the title, so it never floats into the header
   or the context bar. Phones: 44 px rows and a fade at the right edge that says "scroll".
   Markup: templates/peerlight/components/subtabs.html. Tokens only. */
.pl-subtabs { display: flex; gap: var(--space-1); margin: var(--space-2) 0 var(--space-5); border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.pl-subtabs::-webkit-scrollbar { display: none; }
.pl-subtabs a { display: inline-flex; align-items: center; flex: none; min-block-size: 42px; padding: 0 var(--space-3); margin-block-end: -1px; border-block-end: 2px solid transparent; color: var(--ink-muted); text-decoration: none; font-size: var(--type-body-size); line-height: 20px; white-space: nowrap; }
.pl-subtabs a:hover { color: var(--ink); }
.pl-subtabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-block-end-color: var(--violet); }
.pl-subtabs a:focus-visible { outline-offset: -2px; }
@media (max-width: 767.98px) {
  .pl-subtabs a { min-block-size: 44px; }
  /* The edge fade is the shared .pl-more-right / .pl-more-left mask (scroll-regions.css), set
     by peerlight.js from the scroll position, so the last tab shows whole at the end (693 F10). */
}
@media print { .pl-subtabs { display: none; } }

/* PeerLight 2.0: the (i) and its panel, one component for the whole app (decision
   2026-11-02-definitions-info-per-card, version D; mock-up no-underlined-headings v2; first drawn
   for Home, mock-up home-categories v3). A 28 px button around a 14 px icon in ink-muted; a tap,
   click, Enter or Space opens the panel on the raised surface, and nothing opens on hover
   (peerlight.js). Each card has one; a chart key has its own inside its last item, 24 px wide and
   8 px from the words, never wrapping away from them. A defined term is plain text: no underline.
   Markup: templates/peerlight/components/define.html (the term), define.js (the card's (i)),
   modules/home/templates/home/_info.html (Home). Tokens only. */
.pl-term__def[hidden] { display: none; }
/* The wrapper is as wide as the 28 px button, so the button starts 8 px after the word (design review of PR 590). */
.pl-info { position: relative; display: inline-block; width: 28px; height: 16px; margin-left: var(--space-2); vertical-align: middle; }
.pl-info__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.pl-info__btn .pl-icon { width: 14px; height: 14px; }
.pl-info__btn:hover { background-color: var(--surface-raised); color: var(--ink); }
.pl-info__btn[aria-expanded="true"] { background-color: var(--violet-tint); color: var(--violet-strong); }
.pl-info__tip { position: absolute; top: 24px; left: -6px; z-index: var(--z-tooltip); width: 300px; max-width: calc(100vw - 16px); padding: 10px 12px; border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface-raised); box-shadow: var(--shadow-pop); color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 400; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; }
.pl-info__tip[hidden] { display: none; }
.pl-info__tip small { display: block; margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-info__terms { display: grid; gap: var(--space-2); margin: 0; }
.pl-info__terms dt { font-weight: 600; }
.pl-info__terms dd { margin: 0; }
/* A chart key: the (i) sits inside the last key item, 8 px from its words, and wraps with it. */
.pl-info-last { white-space: nowrap; }
.pl-info--key { width: 24px; margin-left: var(--space-2); }
.pl-info--key .pl-info__btn { width: 24px; }
/* An (i) in the flow of its text (A/B By placement's note; build queue 2026-11-16, PR 992): the
   button sits on the text's line, and its panel opens under the text and moves what follows down
   instead of covering it. peerlight.js leaves it unplaced (placeInfoTip). */
.pl-info--inflow { position: static; display: inline; width: auto; height: auto; }
.pl-info--inflow .pl-info__btn { position: relative; left: auto; top: auto; transform: none; vertical-align: middle; margin-block: calc((var(--type-label-line) - 28px) / 2); }
.pl-info--inflow .pl-info__tip:not([hidden]) { position: static; display: block; width: auto; max-width: 640px; max-height: none; margin-top: var(--space-2); box-shadow: none; }
.pl-info-last .pl-info__tip { white-space: normal; }
@media print { .pl-info { display: none; } }
/* Discounts overview: a box label wraps, its metric name is never cut. */
.pl-sh-label.pl-dd-l1 { display: flex; flex-wrap: wrap; align-items: baseline; min-width: 0; overflow: visible; }
.pl-sh-label.pl-dd-l1 > .pl-term { min-width: 0; white-space: normal; }
.pl-sh-label.pl-dd-l1 > .pl-info { flex: none; }
/* An (i) whose terms are drawn only on a phone shows only there. */
.pl-info.pl-mobile-only { display: none; }
@media (max-width: 767.98px) { .pl-info.pl-mobile-only { display: inline-block; } }
/* The last word before an (i) and the (i) stay on one line (design review of PR 590). */
.pl-info-keep { white-space: nowrap; }
.pl-info-keep .pl-info__tip { white-space: normal; }
/* A long panel (a card with many terms) stops at 70 % of the window and scrolls inside; it
   takes keyboard focus then, so its end is reachable without a mouse (peerlight.js). */
.pl-info__tip { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }

.pl-hint[hidden] { display: none; }

/* PeerLight 2.0: the stat hero, the stat tile and their parts, shared by every page that draws them
   (Sales overview first; mock-ups sales-overview v6 and sales-tabs). One element, one way: the
   hero (a label, the period as dates, one big figure with its change, a stacked chart with a
   dashed compare line), the tile (label, figure, change, grey basis on one line), the pair box
   (two figures side by side), the change pill, the toggle, the colour dots. Grey sub-text never
   wraps (SO13). Markup: templates/peerlight/components/stat_hero.html, stat_tile.html,
   stat_pair.html, stat_change.html and card_head.html (the card header). Tokens only. */

.pl-sh-scope { min-width: 0; }
.pl-sh-scope [hidden] { display: none !important; }
.pl-sh-label { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); color: var(--ink); }
.pl-sh-sublabel { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sh-fig { display: block; font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-sh-fig--sm { font-size: calc(var(--type-figure-xl-size) * 0.8); line-height: var(--type-figure-xl-line); }
.pl-sh-vs { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-sh-line { display: flex; align-items: center; gap: var(--space-1) var(--space-2); white-space: nowrap; min-width: 0; }
/* The change pill, option B (Fredrik, 2026-11-15; mock-up latest-day-change-quieter v1): 12 px / 500 on a neutral ground with a hairline edge, no tint; the text carries the direction with its arrow and sign. Every tab draws it from here. */
.pl-sh-pill { display: inline-flex; align-items: center; column-gap: 0.25em; padding: 0 6px; border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; background-color: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.pl-sh-pill--up { color: var(--good-ink); }
.pl-sh-pill--down { color: var(--critical-ink); }
.pl-sh-pill--flat { color: var(--ink-muted); }
.pl-sh-chip { display: inline-flex; align-items: center; padding: 2px var(--space-2); border: 1px solid var(--card-edge); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-sh-chip--live { border-style: dashed; border-color: var(--promo); color: var(--promo-ink); }
.pl-sh-hero { display: grid; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-4); }
.pl-sh-hero__body { display: grid; grid-template-columns: minmax(300px, auto) minmax(0, 1fr); gap: 28px; min-width: 0; }
.pl-sh-hero__lead { display: grid; align-content: start; gap: 2px; min-width: 0; }
.pl-sh-when { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-sh-when span { color: var(--ink-muted); font-weight: 400; }
.pl-sh-hero__fig { white-space: nowrap; margin: var(--space-3) 0 var(--space-2); font-family: var(--font-display); font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-line); font-weight: var(--type-display-xl-weight); letter-spacing: var(--type-display-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-sh-hero__chart { min-width: 0; }
.pl-sh-boxes { display: grid; gap: var(--space-4); }
.pl-sh-boxes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-sh-boxes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-sh-box { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4) 18px; min-width: 0; }
.pl-sh-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: nowrap; min-width: 0; }
.pl-sh-plist { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px var(--space-2); align-items: center; margin: 0; padding: 0; list-style: none; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-sh-plist li { display: contents; }
.pl-sh-plist__name { min-width: 0; overflow-wrap: anywhere; }
.pl-sh-plist b { text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-sh-swatch { display: inline-block; flex: none; width: 12px; height: 12px; margin-inline-end: 6px; border-radius: 3px; vertical-align: -2px; }
.pl-sh-plist .pl-sh-swatch { margin-inline-end: 0; }
.pl-sh-fill-you { fill: var(--you); background-color: var(--you); }
.pl-sh-fill-violet-deep { fill: var(--violet-deep); background-color: var(--violet-deep); }
.pl-sh-fill-violet-pale { fill: var(--violet-pale); background-color: var(--violet-pale); }
.pl-sh-fill-dlc-other { fill: var(--dlc-other); background-color: var(--dlc-other); }
.pl-sh-swatch--bar { background-color: var(--seq-4); background-image: linear-gradient(180deg, var(--you), var(--seq-4)); }
.pl-sh-swatch--avg { height: 3px; border-radius: 0; background-color: var(--violet-pale); vertical-align: 3px; width: 16px; }
.pl-sh-swatch--dash { height: 0; width: 16px; border-radius: 0; border-top: 2px dashed var(--peer-line); vertical-align: 3px; }
.pl-sh-swatch--promo { background-color: var(--promo-soft); border: 1px dashed var(--promo); }
.pl-sh-swatch--before { background-color: transparent; border: 1.5px solid var(--peer-line); }
.pl-sh-swatch--live { background-color: color-mix(in srgb, var(--you) 38%, transparent); border: 1.5px dashed var(--you); }
.pl-sh-fixlabel { margin: var(--space-2) 2px 0; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: var(--type-label-weight); color: var(--ink-muted); }
.pl-sh-fixed { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-block-start: calc(-1 * var(--space-2)); }
.pl-sh-pair { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4) var(--space-5); min-width: 0; }
.pl-sh-pair__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.pl-sh-pair .pl-sh-line { flex-wrap: wrap; }
.pl-sh-pair__cols > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-sh-pair__cols > div + div { border-inline-start: 1px solid var(--hairline); padding-inline-start: var(--space-3); }
.pl-sh-tablecard { padding: var(--space-2) 0; }
.pl-sh-key { display: flex; flex-wrap: wrap; gap: 6px var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sh-name { display: inline-flex; align-items: center; }
.pl-sh-warn { margin: var(--space-2) 2px 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-sh-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: var(--space-6) 0 var(--space-3); }
.pl-sh-head h2 { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-sh-ctl { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* The chart tooltip: one element made by stat-switch.js from a hit area's data-tip; glass like the other tooltips (decision 94). */
.pl-sh-hit { fill: transparent; cursor: crosshair; }
.pl-sh-tip { position: absolute; z-index: var(--z-tooltip); display: none; min-inline-size: 190px; max-inline-size: min(300px, calc(100vw - 24px)); padding: 10px 12px; border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface-raised); box-shadow: var(--shadow-pop); color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; pointer-events: none; }
.pl-glass .pl-sh-tip { background-color: var(--glass-chrome); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); border-color: var(--glass-edge); }
.pl-sh-tip b { display: block; margin-block-end: 4px; font-weight: 600; }
.pl-sh-tip__row { display: flex; align-items: center; gap: var(--space-2); }
.pl-sh-tip__row span:last-child { margin-inline-start: auto; padding-inline-start: var(--space-3); font-weight: 600; }
.pl-sh-tip__mark { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.pl-sh-tip__mark--you { background-color: var(--you); }
.pl-sh-tip__mark--violet-deep { background-color: var(--violet-deep); }
.pl-sh-tip__mark--violet-pale, .pl-sh-tip__mark--avg { background-color: var(--violet-pale); }
.pl-sh-tip__mark--dlc-other { background-color: var(--dlc-other); }
.pl-sh-tip__mark--before { border: 1.5px solid var(--peer-line); }
.pl-sh-tip__mark--promo { border: 1px dashed var(--promo); }
@media (max-width: 1100px) {
  .pl-sh-hero__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}
@media (max-width: 767.98px) {
  .pl-sh-row { flex-wrap: wrap; }
  .pl-sh-row .pl-term, .pl-sh-row > * { white-space: nowrap; }
  .pl-sh-head { margin-block-start: var(--space-5); }
  .pl-sh-hero__body { grid-template-columns: minmax(240px, auto) minmax(0, 1fr); gap: var(--space-4); }
  .pl-sh-hero { padding: 18px var(--space-4) var(--space-3); }
  .pl-sh-hero__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-sh-hero__fig { font-size: var(--type-display-size); line-height: var(--type-display-line); }
  .pl-sh-boxes, .pl-sh-boxes--2, .pl-sh-boxes--3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-sh-box { padding: var(--space-4); }
  .pl-sh-pair { padding: var(--space-4); }
}
@media print { .pl-sh-ctl .pl-scope { display: none; } }

/* Sales: a soundtrack is its own part in the neutral "other parts" grey (decision
   2026-11-03-soundtrack-package-kind, as the DLC breakdown): the fill, legend swatch and
   tooltip mark the stat hero draws for every product colour. */
.pl-sh-fill-parts-other { fill: var(--parts-other); background-color: var(--parts-other); }
.pl-sh-tip__mark--parts-other { background-color: var(--parts-other); }

/* PeerLight 2.0: the Sales overview charts and tables as drawn in mock-up sales-overview v6, chart Style 1 "Satin bars" (decisions 93, 95, 97): the section heads with their Revenue / Units and Chart / Table toggles, the per-day and per-month charts, the tooltip. The hero, the boxes and the toggles are in stat-hero.css. Tokens only. */

.pl-so { display: grid; gap: var(--space-4); min-width: 0; }

/* The segmented toggles: one pressed button, shown by weight and a violet underline as well as tint. */

/* Hero */

/* Boxes */

/* Not affected by the period */

/* Section heads and chart cards */
.pl-so-chartcard { display: grid; gap: var(--space-2); padding: 20px 22px 16px; min-width: 0; }
.pl-so-table td, .pl-so-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The charts: colours from tokens. The bars of the month and year charts take the bar gradient (decision 132, sheet v3.44, bar-gradient): you at the top to seq-4 at the base, two opaque stops, no outline. */
.pl-so-chart { display: block; overflow: visible; max-width: 100%; height: auto; }
.pl-so-chart text { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.pl-so-stop-top { stop-color: var(--you); }
.pl-so-stop-bottom { stop-color: var(--seq-4); }
.pl-so-axis { stroke: var(--border-strong); }
.pl-so-grid { stroke: var(--hairline); stroke-dasharray: 2 4; }
.pl-so-tick { font-size: var(--type-label-size); fill: var(--ink-muted); }
.pl-so-promo { fill: var(--promo-soft); stroke: var(--promo); stroke-dasharray: 4 3; }
.pl-so-promo-label { font-size: var(--type-label-size); font-weight: 600; fill: var(--promo-ink); }
.pl-so-avg-halo { fill: none; stroke: var(--surface); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.pl-so-avg { fill: none; stroke: var(--violet-pale); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pl-so-before { fill: none; stroke: var(--peer-line); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.pl-so-before-bar { fill: none; stroke: var(--peer-line); stroke-width: 1.5; }
.pl-so-bar-live { fill: color-mix(in srgb, var(--you) 38%, transparent); stroke: var(--you); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pl-so-dot-halo { fill: var(--you); opacity: 0.22; }
.pl-so-dot { fill: var(--you); stroke: var(--surface); stroke-width: 2; }
.pl-so-latest { font-size: var(--type-label-size); font-weight: 600; fill: var(--ink); }
.pl-so-latest-day { font-size: var(--type-label-size); fill: var(--ink-muted); }
/* The chart pill takes the change pill's look (sheet change-pill, option B; change colours v1, Fredrik 2026-11-17): one neutral chip with a hairline edge, the words coloured from 5%, muted under that. */
.pl-so-chartpill { fill: var(--surface-raised); stroke: var(--hairline); stroke-width: 1; }
.pl-so-pill-text { font-size: var(--type-label-size); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-so-pill-text--up { fill: var(--good-ink); }
.pl-so-pill-text--down { fill: var(--critical-ink); }
.pl-so-pill-text--flat { fill: var(--ink-muted); }


@media (max-width: 767.98px) {
  .pl-so { gap: var(--space-3); }
  .pl-so-chartcard { padding: var(--space-4); }
}
@media (prefers-reduced-motion: no-preference) {
  .pl-so-avg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pl-so-draw 1.1s ease-out 0.15s forwards; }
}
@keyframes pl-so-draw { to { stroke-dashoffset: 0; } }
@media print { .pl-sh-tip { display: none; } .pl-so-avg { animation: none; stroke-dashoffset: 0; } }

.pl-so-before-halo { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.pl-sh-plist { grid-template-columns: auto minmax(min-content, 1fr) auto auto; }
.pl-sh-plist__name { overflow-wrap: break-word; }
/* A seven-figure total ($8,834,732) must stay inside its own column: wider lead column on desktop, the smaller display size on tablets */
@media (min-width: 1101px) { .pl-sh-hero__body { grid-template-columns: 344px minmax(0, 1fr); } }
@media (min-width: 768px) and (max-width: 1100px) { .pl-sh-hero__fig { font-size: var(--type-display-size); line-height: var(--type-display-line); } }
.pl-so-tablenote { margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* The stat hero's comparison, named with its dates ("same days last year, Nov 5, 2024 - Nov 3, 2025"), on its own muted line under the change (PR 602 review: line one the change, line two the basis). It wraps inside the lead column and never widens it: width 0 with min-width 100% keeps it out of the column's own width. Tokens only. */
.pl-sh-vs.pl-sh-vs--line { display: block; white-space: normal; overflow-wrap: anywhere; width: 0; min-width: 100%; }

/* PeerLight 2.0: the Bundles table card header (title left, Export CSV right) sits inside the card
   frame, which has no padding of its own because the table runs edge to edge. On desktop the title
   lines up with the hero card above (space-5 inset); on a phone it keeps space-4. The card keeps a
   gap under the hero. Tokens only. */

.pl-ss-table > .pl-sh-head { margin: 0; padding: var(--space-5) var(--space-5) var(--space-3); }
@media (max-width: 767.98px) {
  .pl-ss-table > .pl-sh-head { padding: var(--space-4) var(--space-4) var(--space-3); }
}
.pl-sh-hero + .pl-ss-table { margin-block-start: var(--space-5); }
.pl-ss-table .pl-bundles th:first-child, .pl-ss-table .pl-bundles td:first-child { padding-inline-start: var(--space-5); }

/* PeerLight 2.0: the Sales sub-tabs in the Headline direction (decision 93, mock-up sales tabs
   G-light v1): Bundles, Local pricing and the Wishlists first row. The hero, tile, card
   header and change pill are the shared parts (stat-hero.css); this file keeps only what is
   particular to these tabs: the ranked list, the tables, the price tag and the gap bar. Violet = now, grey = before, sand = discounts only. No grey text
   wraps (white-space: nowrap on every sub-text). Tokens only. */

.pl-ss-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-ss-stats { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
.pl-ss-stat { white-space: nowrap; }
.pl-ss-stat b { color: var(--ink); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; margin-inline-end: 6px; }

/* Ranked list: name, one violet bar, value, share. */
.pl-ss-rank { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pl-ss-rank li { display: grid; grid-template-columns: minmax(90px, 300px) minmax(0, 1fr) auto 52px; gap: 10px; align-items: center; font-size: var(--type-body-sm-size); line-height: 20px; font-variant-numeric: tabular-nums; }
.pl-ss-rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ss-rank__bar { block-size: 10px; }
.pl-ss-rank__bar i { display: block; block-size: 10px; border-radius: 0 4px 4px 0; background-color: var(--you); }
.pl-ss-rank__value { text-align: end; font-weight: 600; white-space: nowrap; }
.pl-ss-rank__share { text-align: end; color: var(--ink-muted); white-space: nowrap; }

/* The Wishlists hero's tiles: a label, a figure with its change (shared parts), and a "this vs before" bar pair. */
.pl-ss-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-ss-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.pl-ss-cmp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-ss-cmp__bar { block-size: 8px; border-radius: 0 4px 4px 0; background-color: var(--you); min-inline-size: 2px; }
.pl-ss-cmp__bar--was { background-color: var(--peer-line); }
.pl-ss-cmp__v { color: var(--ink); font-weight: 500; text-align: end; }
.pl-ss-cmp__v--was { color: var(--ink-muted); font-weight: 400; }

/* A table card. */
.pl-ss-table { padding: 0; }
.pl-ss-table .pl-table-wrap { margin: 0; }
.pl-ss-table td { white-space: nowrap; }
.pl-ss-now { font-size: var(--type-body-size); line-height: 22px; font-weight: 560; font-variant-numeric: tabular-nums; }
th.pl-ss-now { font-size: var(--type-label-size); line-height: 16px; font-weight: 500; box-shadow: inset 0 -2px 0 var(--you); }
.pl-ss-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 16px 12px; }
/* BU1: the sale tag sits before the price, so every price ends in the same place. Sand = a discount. */
.pl-ss-price { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.pl-ss-sale { display: inline-block; padding: 0 7px; border: 1px dashed var(--promo); border-radius: var(--radius-pill); background-color: var(--promo-soft); color: var(--promo-ink); font-size: var(--type-label-size); line-height: 18px; white-space: nowrap; }

/* Phone rows instead of a wide table. */
.pl-ss-rows { display: none; margin: 0; padding: 0; list-style: none; }
.pl-ss-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 14px 16px; border-block-end: 1px solid var(--hairline); align-items: baseline; }
.pl-ss-rows__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pl-ss-rows__value { font-size: var(--type-body-size); font-weight: 560; text-align: end; font-variant-numeric: tabular-nums; }
.pl-ss-rows__sub { grid-column: 1 / -1; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ss-rows .pl-ss-sale { justify-self: start; grid-column: 1 / -1; }

@media (max-width: 767.98px) {
  .pl-ss-rows { display: grid; }
  .pl-ss-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pl-ss-rank li { grid-template-columns: minmax(0, 1.3fr) minmax(24px, .7fr) auto 44px; gap: 8px; }
}
@media (forced-colors: active) { .pl-ss-rank__bar i, .pl-ss-cmp__bar { background-color: CanvasText; } }


/* Local pricing: the gap to parity as a neutral bar from zero (the middle), the close band behind
   it; violet only when the gap is past the close band, never red (a gap is a size, not bad news). */
.pl-lp__gap { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; padding: 0; background: none; border-radius: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-lp__gap--above, .pl-lp__gap--below, .pl-lp__gap--level { background: none; }
.pl-lp__track { position: relative; display: inline-block; inline-size: 40px; block-size: 16px; flex: none; border-inline: 1px solid var(--border-strong); background-image: linear-gradient(var(--border-strong), var(--border-strong)); background-size: 1px 100%; background-position: center; background-repeat: no-repeat; }
.pl-lp__band { position: absolute; inset-block: 1px; inset-inline-start: 43%; inline-size: 14%; background-color: var(--status-soft); }
.pl-lp__fill { position: absolute; inset-block: 4px; border-radius: 2px; background-color: var(--you); }
.pl-lp__gap--level .pl-lp__fill { background-color: var(--peer-line); }
.pl-lp__gap b { font-weight: 500; min-inline-size: 40px; text-align: end; }
.pl-lp td:has(> .pl-lp__gap) { overflow: visible; text-overflow: clip; }
@media (max-width: 767.98px) {
  .pl-lp__code { display: none; }
  .pl-lp__gap { gap: 4px; }
  .pl-lp__track { inline-size: 20px; }
  .pl-lp__gap b { min-inline-size: 0; white-space: nowrap; }
  .pl-lp__c-region { width: 28%; } .pl-lp__c-num { width: 24%; }
  .pl-lp__name { overflow: visible; text-overflow: clip; white-space: normal; }
  .pl-lp__open { text-align: start; }
}

/* A/B: two compact cards (the marker, the game, the dates), B's chips, a Change button. */
.pl-wab__pickers:has(.pl-ss-ab) { align-items: start; }
.pl-ss-ab { gap: var(--space-2); padding-block: var(--space-3); }
.pl-ss-ab .pl-wab__head { flex-wrap: wrap; row-gap: 2px; }
.pl-ss-ab .pl-wab__range { margin: 0; color: var(--ink-muted); white-space: nowrap; }
.pl-ss-change summary { display: inline-flex; cursor: pointer; list-style: none; }
.pl-ss-change summary::-webkit-details-marker { display: none; }
.pl-ss-change__fields { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; padding-block-start: var(--space-2); font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-ss-change__fields label { display: grid; gap: 2px; }
.pl-lp__gap, .pl-lp__gap * { overflow: visible; text-overflow: clip; }
/* A tile label never wraps on a wide screen (SO13): the hero's lead column is the narrower one. */
@media (min-width: 1101px) { .pl-ss-tile .pl-sh-label { white-space: nowrap; } .pl-ss-tiles { gap: 12px; } }
/* Every bundle on a narrow desktop: headers stay on one line, the share bar, On the store and Live since go (the phone rows and the CSV keep them). */
@media (max-width: 1100px) {
  .pl-bundles th { white-space: nowrap; }
  .pl-bundles th:nth-child(7) { white-space: normal; inline-size: 96px; }
  .pl-bundles .pl-bundles__bar { display: none; }
  .pl-bundles th:nth-child(2), .pl-bundles td:nth-child(2), .pl-bundles th:nth-child(8), .pl-bundles td:nth-child(8) { display: none; }
}

/* PeerLight 2.0: the shared card header inside a framed Sales section (Markets, A/B comparison;
   decision 93). The section is the card, so the header sits at its top with no page-ground margin.
   Tokens only. */

.pl-section > .pl-sh-head { margin: 0; }

/* Card heads INSIDE the frame, the one rule for a card that holds its own head (Fredrik 2026-11-04: Store traffic, Discounts
   and, next, Player data, as on Sales Overview and Wishlists). 20 px (8 + 12) between the head and the content, the controls
   centred on the title row, the title on its own row on a phone. A card that is a grid names its row gap in --inhead-gap, so
   the head still ends up 20 px above the content. */
.pl-card--inhead > .pl-sh-head { margin: 0 0 calc(var(--space-2) + var(--space-3) - var(--inhead-gap, 0px)); min-width: 0; }
.pl-card--inhead > .pl-sh-head .pl-sh-ctl { align-items: center; min-width: 0; }
@media (max-width: 767.98px) {
  .pl-card--inhead > .pl-sh-head h2 { flex: 1 0 100%; }
}

/* A/B on a phone: the two compact cards and the chart show; the table drops its bar column so the
   verdict is never cut off. */
@media (max-width: 767.98px) {
  [id="sec-ab_comparison"] .pl-ab__table th:nth-child(4), [id="sec-ab_comparison"] .pl-ab__table td:nth-child(4) { display: none; }
}

/* Sales, Markets (decision 96, mock-up sales-markets v3, decision 93 rules): the local deep
   dive matrix (Lifetime, Year to date, the period) with a mini share bar, the row 4 strip
   (Net price per unit, Units at a discount, Refund rate) against worldwide, and the ranked
   lists for countries and languages with a Table view. Colour roles: violet = this country or
   language, warm grey = worldwide and All other. Changes carry a sign and an arrow, never
   colour alone. Grey sub-lines never wrap. Tokens only; one card level (the section). */

.pl-mk-sub { display: block; font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-mk-n { text-align: end; font-variant-numeric: tabular-nums; }
.pl-mk-empty { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); white-space: nowrap; }
.pl-mk-cellv .pl-sh-fig, .pl-mk-boxrow .pl-sh-fig { white-space: nowrap; }
.pl-mk-chips { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }

/* The matrix: a real table; on phones each measure becomes a short list */
.pl-mk-matrix { inline-size: 100%; border-collapse: collapse; table-layout: fixed; margin-block-end: var(--space-4); }
.pl-mk-matrix th, .pl-mk-matrix td { padding: var(--space-3) var(--space-4); border-block-end: 1px solid var(--hairline); text-align: start; vertical-align: top; }
.pl-mk-matrix thead th, .pl-mk-matrix thead td { padding-block: var(--space-2); border-block-end-color: var(--card-edge); vertical-align: bottom; }
.pl-mk-matrix thead th { font-weight: 600; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink); }
.pl-mk-matrix__corner { inline-size: 232px; font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-mk-matrix tbody th { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; color: var(--ink); }
.pl-mk-matrix tbody tr:last-child > * { border-block-end: 0; }
.pl-mk-matrix td + td, .pl-mk-matrix th + th, .pl-mk-matrix th + td, .pl-mk-matrix td + th { border-inline-start: 1px solid var(--hairline); }
.pl-mk-matrix__head { display: block; }
.pl-mk-col { display: none; }
.pl-mk-cellv { display: flex; align-items: center; gap: 2px var(--space-2); flex-wrap: wrap; }
.pl-mk-share { display: flex; align-items: center; gap: var(--space-2); margin-block-start: var(--space-1); font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-mk-mbar { display: inline-block; inline-size: 46px; block-size: 6px; border-radius: var(--radius-sm); background-color: var(--hairline); overflow: hidden; flex: none; }
.pl-mk-mbar i { display: block; block-size: 100%; background-color: var(--you); border-radius: var(--radius-sm); }

/* A change on a rank row: sign and arrow, colour as well from 5%; under that muted ink, arrow and sign kept (change colours v1) */
.pl-mk-chg { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; white-space: nowrap; }
.pl-mk-chg--up { color: var(--good-ink); }
.pl-mk-chg--down { color: var(--critical-ink); }
.pl-mk-chg--flat { color: var(--ink-muted); }
.pl-mk-chg--none { color: var(--ink-muted); font-weight: 400; }

/* Row 4: three boxes in one strip with hairline dividers (no card in a card) */
.pl-mk-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1px solid var(--card-edge); padding-block-start: var(--space-3); }
.pl-mk-box { padding: var(--space-1) var(--space-4) var(--space-2); min-inline-size: 0; }
.pl-mk-box + .pl-mk-box { border-inline-start: 1px solid var(--hairline); }
.pl-mk-boxrow { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-1) 0 var(--space-3); white-space: nowrap; }
.pl-mk-boxrow .pl-mk-sub { display: inline; }
.pl-mk-pair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-1) var(--space-2); align-items: center; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-mk-pair__track { display: block; block-size: 8px; }
.pl-mk-pair__track i { display: block; block-size: 8px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background-color: var(--peer-line); }
.pl-mk-pair__track i.is-you { background-color: var(--you); }
.pl-mk-pair__v { color: var(--ink); font-weight: 500; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-mk-pair__v.is-muted { color: var(--ink-muted); font-weight: 400; }

/* Ranked lists */
.pl-mk-listbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block-end: var(--space-2); }
.pl-mk-rank { --pl-mk-row-gap: 6px; display: grid; grid-template-columns: minmax(90px, 190px) minmax(0, 1fr) auto 44px; gap: 0 var(--space-3); align-items: center; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-mk-rank--change { grid-template-columns: minmax(90px, 190px) minmax(0, 1fr) auto 64px 72px; }
.pl-mk-rank__h { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.pl-mk-rank__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mk-rank__name.is-other, .pl-mk-rank__s { color: var(--ink-muted); }
.pl-mk-rank__track { display: block; block-size: 10px; }
.pl-mk-rank__track i { display: block; block-size: 10px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background-color: var(--you); }
.pl-mk-rank__track i.is-other { background-color: var(--peer-line); }
.pl-mk-rank__v { font-weight: 600; white-space: nowrap; }
.pl-mk-table__total td { font-weight: 600; border-block-start: 1px solid var(--card-edge); }

/* Net price per unit per product (decision 90: never summed across products) */
.pl-mk-prices { inline-size: 100%; border-collapse: collapse; margin-block-start: var(--space-2); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-mk-prices th, .pl-mk-prices td { padding: 2px 0; font-weight: 400; color: var(--ink-muted); text-align: start; }
.pl-mk-prices td { color: var(--ink); font-weight: 500; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; padding-inline-start: var(--space-3); }
.pl-mk-prices td.is-muted { color: var(--ink-muted); font-weight: 400; }
.pl-mk-prices tbody th { white-space: normal; overflow-wrap: normal; word-break: normal; }

@media (max-width: 767.98px) {
  .pl-mk-matrix, .pl-mk-matrix tbody, .pl-mk-matrix tr, .pl-mk-matrix th, .pl-mk-matrix td { display: block; inline-size: auto; }
  .pl-mk-matrix thead tr { display: flex; justify-content: flex-start; }
  .pl-mk-matrix thead th { display: none; }
  .pl-mk-matrix thead td { border: 0; padding: 0 0 var(--space-1); }
  .pl-mk-matrix__row { padding: var(--space-3) 0; border-block-end: 1px solid var(--hairline); }
  .pl-mk-matrix__row:last-child { border-block-end: 0; }
  .pl-mk-matrix th, .pl-mk-matrix td, .pl-mk-matrix td + td, .pl-mk-matrix th + td { padding: 0; border: 0; }
  .pl-mk-matrix tbody td { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "col share" "val val"; gap: 2px var(--space-2); padding-block: 6px; }
  .pl-mk-col { display: block; grid-area: col; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
  .pl-mk-matrix .pl-mk-cellv, .pl-mk-matrix .pl-mk-empty { grid-area: val; }
  .pl-mk-matrix .pl-mk-share { grid-area: share; margin: 0; }
  .pl-mk-matrix .pl-mk-mbar { display: none; }
  .pl-mk-matrix .pl-sh-fig { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
  .pl-mk-matrix .pl-sh-pill { font-size: var(--type-label-size); line-height: var(--type-label-line); }
  .pl-mk-strip { grid-template-columns: minmax(0, 1fr); }
  .pl-mk-box { padding: var(--space-3) 0; }
  .pl-mk-box + .pl-mk-box { border-inline-start: 0; border-block-start: 1px solid var(--hairline); }
  .pl-mk-rank { --pl-mk-row-gap: 5px; grid-template-columns: minmax(0, 1.3fr) minmax(30px, 0.8fr) auto; gap: 0 var(--space-2); }
  .pl-mk-rank--change { grid-template-columns: minmax(0, 1.3fr) minmax(24px, 0.6fr) auto max-content; }
  .pl-mk-rank__share { display: none; }
  .pl-mk-rank__name { white-space: normal; }
}

/* PeerLight 2.0: the phone bar is a little more solid, so a light control scrolling under it cannot pull the muted label below 4.5 to 1 (axe measured 4.03 to 1 on Discounts, Discount analysis, phone: the selected period pill sat under the Sales label). Still glass and blurred; only the tint is stronger. Reduced transparency and print keep their solid surface. Tokens only. */
@media screen and (not (prefers-reduced-transparency: reduce)) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pl-glass .pl-bottomnav { background-color: color-mix(in srgb, var(--surface) 92%, transparent); }
  }
}

/* PeerLight 2.0: Discounts, Discount overview as drawn in mock-up discounts-a v5 (decision 101). It reuses the shared Sales parts (stat hero labels, tiles, card head, chart card, tables, key); only what Discounts adds is here: the Last promotion card, the stat row, the expand button, the timeline bands, the cooldown plan. Tokens only. */

.pl-dd { display: grid; gap: var(--space-4); min-width: 0; }
.pl-dd > * { min-width: 0; }
.pl-dd-none { margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* Last promotion: the figures at the hero size, the chart beside them, stacked when the card is narrow. */
.pl-dd-last { display: grid; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-4); min-width: 0; container-type: inline-size; }
.pl-dd-last__title { margin-block-start: 2px; font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-dd-last__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 34%); gap: 28px; align-items: start; min-width: 0; }
.pl-dd-last__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding-block-start: var(--space-4); }
.pl-dd-fig { display: grid; align-content: start; gap: var(--space-1); min-width: 0; }
.pl-dd-fig__v { display: block; font-family: var(--font-display); font-size: clamp(var(--type-figure-xl-size), 6.2cqw, var(--type-display-xl-size)); line-height: 1.05; font-weight: var(--type-display-xl-weight); letter-spacing: var(--type-display-xl-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-dd-last__chart { min-width: 0; }
.pl-dd-expand { display: flex; }
.pl-dd-exp { gap: var(--space-2); }
.pl-dd-exp i { flex: none; display: inline-block; width: 6px; height: 6px; margin-block-start: -3px; border-inline-end: 1.5px solid currentcolor; border-block-end: 1.5px solid currentcolor; transform: rotate(45deg); transition: transform 0.15s; }
.pl-dd-exp[aria-expanded="true"] i { margin-block-start: 3px; transform: rotate(225deg); }
.pl-dd-prods { display: grid; gap: var(--space-2); }
.pl-dd-prods[hidden], .pl-dd [data-sw-expand-body][hidden] { display: none; }
.pl-dd-prods__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; gap: var(--space-3); align-items: center; font-size: var(--type-body-sm-size); }
.pl-dd-prods__row--h { color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-dd-prods__v { font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-variant-numeric: tabular-nums; }
.pl-dd-prods__none { grid-column: 2 / -1; color: var(--ink-muted); }
@container (max-width: 640px) {
  .pl-dd-last__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-dd-last__figs { grid-template-columns: minmax(0, 1fr); padding-block-start: 0; }
}

/* The stat row: three columns with thin dividers, one grey line of counts under each. */
.pl-dd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--space-4) 0; }
/* Each stat spans three shared rows (label, figure, counts), so the figures line up when a label wraps (walk 2026-11-13). */
.pl-dd-stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; gap: var(--space-1); padding: 2px var(--space-5); border-inline-start: 1px solid var(--hairline); min-width: 0; }
.pl-dd-stat > .pl-sh-label { align-self: end; }
.pl-dd-stat:first-child { border-inline-start: 0; }
.pl-dd-stat__v { font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-dd-stat__v small { font-family: var(--font-sans); font-size: var(--type-body-sm-size); font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.pl-dd-stat .pl-sh-vs { white-space: normal; }
.pl-rs-units { display: block; margin-block-end: var(--space-1); font-family: var(--font-display); font-size: var(--type-figure-pair-size); line-height: var(--type-figure-pair-line); font-weight: var(--type-figure-xl-weight); font-variant-numeric: tabular-nums; color: var(--ink-muted); white-space: nowrap; }
.pl-sh-tip__row--muted { color: var(--ink-muted); }
.pl-dd-l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dd-facts { margin: 0; padding-inline-start: var(--space-4); display: grid; gap: var(--space-1); }

/* The timeline: Steam's sale periods are grey bands, the normal day dashed, sand bands (one per discount period) over 24 months or less, one bar per month beyond. */
.pl-dd-chart { overflow: visible; }
.pl-dd-line { fill: none; stroke: var(--you); stroke-width: 1.8; stroke-linejoin: round; }
.pl-dd-normal { stroke: var(--peer-line); stroke-width: 2; stroke-dasharray: 5 4; }
.pl-dd-band { fill: var(--hairline); opacity: 0.8; }
.pl-dd-before { fill: var(--peer-line); opacity: 0.6; }
.pl-dd-pre { opacity: 0.4; }
.pl-dd-news { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 2 3; }
.pl-dd-swatch--band { background-color: var(--hairline); border: 1px solid var(--border-strong); }

/* Per product at All on a phone: one block a product, the four figures as a list. */
.pl-dd-kvlist { display: grid; padding: 0 var(--space-4); }
.pl-dd-kv { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-block-start: 1px solid var(--hairline); }
.pl-dd-kv:first-child { border-block-start: 0; }
.pl-dd-kv dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); margin: 0; font-size: var(--type-body-sm-size); }
.pl-dd-kv dt { color: var(--ink-muted); }
.pl-dd-kv dd { margin: 0; text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; }

/* On the calendar, phone list (inside the card, no padding of its own). */
.pl-dd-callist__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-3) 0; border-block-start: 1px solid var(--hairline); }
.pl-dd-callist__row:first-child { border-block-start: 0; }
.pl-dd-callist__meta { grid-column: 1 / -1; white-space: normal; }

@media (max-width: 1100px) {
  .pl-dd-caltable td, .pl-dd-caltable th { padding-inline: var(--space-2); }
  .pl-dd-caltable td:nth-child(-n+2) { white-space: normal; }
}
@media (max-width: 767.98px) {
  .pl-dd-last { padding: var(--space-4); }
  .pl-dd-stats { grid-template-columns: 1fr 1fr; padding: var(--space-1) 0; }
  .pl-dd-stat { padding: var(--space-3); border-inline-start: 0; border-block-start: 1px solid var(--hairline); }
  .pl-dd-stat:nth-child(-n+2) { border-block-start: 0; }
  .pl-dd-stat:nth-child(2n) { border-inline-start: 1px solid var(--hairline); }
  .pl-dd-stat:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; }
  .pl-dd-stat__v { font-size: var(--type-display-size); line-height: var(--type-display-line); }
  .pl-dd-prods__row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pl-dd-prods__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
}
@media print { .pl-dd-exp { display: none; } }

.pl-dd-last__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.pl-dd-last__head .pl-sh-ctl { margin-inline-start: auto; }
.pl-dd-cut { fill: var(--ink-muted); }

/* PeerLight 2.0: Promotion overview, Earliest start (mock-up discounts-a v9, decision 105). Each product is one bar from the first to the last day shown, those dates at the bar's own ends; inside it the set promotions (sand, dates above), the 30-day cooldown hatch ("Ends" below it), Steam's seasonal sales as marks, release and price-rise markers, and a red ring with an exclamation mark where a promotion sits inside a cooldown. The right column is only the earliest day a new promotion can start, with its own heading. Every mark is a button: its name and dates show in the shared tooltip on hover, focus or tap. Tokens only. */
.pl-eb { display: grid; gap: var(--space-4); padding: var(--space-4) var(--space-5); min-width: 0; }
.pl-eb__head, .pl-eb__row { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) 150px; grid-template-areas: "name track date"; gap: var(--space-4); align-items: center; }
.pl-eb__head { grid-template-areas: "none none date"; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; }
.pl-eb__head span { grid-area: date; text-align: end; white-space: nowrap; }
.pl-eb__name { grid-area: name; display: flex; align-items: center; gap: var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); min-width: 0; }
.pl-eb__name > span { min-width: 0; }
.pl-eb__date { grid-area: date; text-align: end; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-eb__date--none { grid-column: 2 / -1; font-weight: 400; color: var(--ink-muted); text-align: start; }
.pl-eb__track { grid-area: track; display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.pl-eb__end { flex: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-eb__line { --up: var(--up-d); position: relative; flex: 1 1 auto; min-width: 0; height: 64px; margin-block-start: calc(var(--up) * var(--type-label-line)); }

.pl-eb__rail { position: absolute; inset-inline: 0; top: 20px; height: 24px; overflow: hidden; border-radius: var(--radius-md); }
.pl-eb__rail > div { position: absolute; top: 0; bottom: 0; }
.pl-eb__seg--open { background-color: var(--hairline); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pl-eb__seg--cool { background-image: repeating-linear-gradient(135deg, var(--ink-muted) 0 1px, transparent 1px 5px); box-shadow: inset 0 1px 0 var(--ink-muted), inset 0 -1px 0 var(--ink-muted); }
.pl-eb__seg--promo { background-color: var(--promo); }

.pl-eb__lab { position: absolute; font-size: var(--type-label-size); line-height: var(--type-label-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-eb__lab--above { --lane: var(--lane-d); top: calc(var(--lane) * -1 * var(--type-label-line)); color: var(--ink); transform: translateX(var(--shift)); }
.pl-eb__lab--below { top: 48px; color: var(--ink-muted); }

.pl-eb__mk { position: absolute; top: 20px; height: 24px; min-width: 24px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: help; }
.pl-eb__glyph { position: absolute; display: block; }
.pl-eb__mk--seasonal, .pl-eb__mk--blocked { border: 1.5px solid var(--promo); border-radius: var(--radius-md); background-color: var(--surface); background-image: linear-gradient(var(--promo-soft), var(--promo-soft)); }
.pl-eb__mk--blocked { border-style: dashed; border-color: var(--ink-muted); background-image: none; background-color: transparent; }
.pl-eb__mk--seasonal .pl-eb__glyph, .pl-eb__mk--blocked .pl-eb__glyph { left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; transform: rotate(45deg); background-color: var(--promo); border-radius: 1px; }
.pl-eb__mk--blocked .pl-eb__glyph { background-color: var(--ink-muted); box-shadow: 0 0 0 3px var(--surface); }
.pl-eb__mk--release .pl-eb__glyph, .pl-eb__mk--rise .pl-eb__glyph { left: 4px; top: 4px; width: 16px; height: 16px; border-radius: var(--radius-sm); background-color: var(--surface); border: 1px solid var(--border-strong); }
.pl-eb__mk--release .pl-eb__glyph::before, .pl-eb__mk--rise .pl-eb__glyph::before { content: ""; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; background-color: var(--ink); }
.pl-eb__mk--release .pl-eb__glyph::before { border-radius: 50%; }
.pl-eb__mk--rise .pl-eb__glyph::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pl-eb__mk--conflict { border-radius: 2px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--critical); }
.pl-eb__mk--conflict .pl-eb__glyph { left: calc(100% + 8px); top: 4px; width: 16px; height: 16px; border-radius: 50%; background-color: var(--critical); color: var(--on-primary); font-size: var(--type-label-size); line-height: 16px; font-weight: 700; text-align: center; }
.pl-eb__mk--flip .pl-eb__glyph { left: auto; right: calc(100% + 8px); }
.pl-eb__mk:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.pl-eb-key--set { background-color: var(--promo); border: 1px solid var(--promo); }
.pl-eb-key--conflict { background-color: var(--promo); border: 0; box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px var(--critical); }
.pl-eb-key--cool { border: 1px solid var(--ink-muted); background-image: repeating-linear-gradient(135deg, var(--ink-muted) 0 1px, transparent 1px 4px); }
.pl-eb-key--open { background-color: var(--hairline); border: 1px solid var(--border-strong); }
.pl-eb-key-dia { display: inline-block; flex: none; width: 9px; height: 9px; margin-inline: 1px 3px; transform: rotate(45deg); background-color: var(--promo); border-radius: 1px; }
.pl-eb-key-dia--mute { background-color: var(--ink-muted); }
.pl-eb-key-ev { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; margin-inline-end: 3px; vertical-align: -3px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background-color: var(--surface); }
.pl-eb-key-ev::before { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; background-color: var(--ink); }
.pl-eb-key-ev--release::before { border-radius: 50%; }
.pl-eb-key-ev--rise::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* Below 1100 px the three columns leave the bar too short to read: the name and the date share a line, the bar runs full width under them. */
@media (max-width: 1099.98px) {
  .pl-eb__line { --up: var(--up-p); }
  .pl-eb__lab--above { --lane: var(--lane-p); }
  .pl-eb__head, .pl-eb__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name date" "track track"; gap: var(--space-1) var(--space-3); }
  .pl-eb__head { grid-template-areas: "date date"; }
  .pl-eb__date--none { grid-column: 2; }
}
@media (max-width: 767.98px) {
  .pl-eb { padding: var(--space-4); }
}
.pl-sh-tip.pl-sh-tip--hold { pointer-events: auto; }
.pl-eb__desc { display: none; }

/* PeerLight 2.0: Promotion overview, Earliest start strip (design review of PR 685, follow-ups; build queue row 40). A mark is at least 24 px wide, so one on the bar's last days reached past its end and covered the end date: the end date gets 16 px more space (with the track's 8 px gap, 24 px clear, the narrowest mark). Conflict badges that would touch are one badge with the count; the server works out each layout's badges (badge_d from 1100 px, badge_p under it) and an empty one is not drawn. A conflict sits above a Seasonal Sale mark, so its badge is never covered by one, and the conflict holding a badge in the current layout sits one level higher still, so the next conflict's ring never covers it. Tokens only. */
.pl-eb__line + .pl-eb__end { margin-inline-start: var(--space-4); }
.pl-eb__mk--conflict { z-index: 1; }
.pl-eb__mk--conflict:has(.pl-eb__glyph--d:not(:empty)) { z-index: 2; }
.pl-eb__mk--conflict .pl-eb__glyph--p { display: none; }
.pl-eb__mk--conflict .pl-eb__glyph--d:empty { display: none; }
@media (max-width: 1099.98px) {
  .pl-eb__mk--conflict .pl-eb__glyph--d { display: none; }
  .pl-eb__mk--conflict .pl-eb__glyph--p { display: block; }
  .pl-eb__mk--conflict .pl-eb__glyph--p:empty { display: none; }
  .pl-eb__mk--conflict:has(.pl-eb__glyph--d:not(:empty)) { z-index: 1; }
  .pl-eb__mk--conflict:has(.pl-eb__glyph--p:not(:empty)) { z-index: 2; }
}

/* PeerLight 2.0: Promotion overview, Your discounts on a timeline, option C (decision 106). Over 24 months one bar per month (per quarter on a phone): violet revenue on full-price days, sand revenue on discount days. A discount band on the day line is sand too. Two cuts of the chart (wide, and narrower from 768 to 1239 px) so chart text stays at its size. Tokens only. */
.pl-dd-mbar--full { fill: var(--you); }
.pl-dd-mbar--discount { fill: var(--promo); }
.pl-dd-swatch--sand { background-color: var(--promo); border: 1px solid var(--promo); }
.pl-dd-dband { fill: color-mix(in srgb, var(--promo) 30%, transparent); }
.pl-dd-swatch--dband { background-color: color-mix(in srgb, var(--promo) 30%, transparent); border: 1px dashed var(--promo); }
.pl-dd-tn { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-dd-cut--mid { display: none; }
@media (min-width: 768px) and (max-width: 1239.98px) {
  .pl-dd-cut--wide { display: none; }
  .pl-dd-cut--mid { display: block; }
}

/* PeerLight 2.0: Promotions, Promotion results as drawn in mock-up discounts-a v8 (decision 104). It reuses the Promotion overview and Sales parts (stat hero, card head, window chip, tables, key, expand button); only what Results adds is here: the promotion rows, the depth and type bars, the day-by-day curve, the wishlist cells and the Country behaviour split bar. Tokens only. */

.pl-rs-hero { gap: var(--space-3); }
.pl-rs-hero__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.pl-rs-hero__head .pl-sh-ctl { margin-inline-start: auto; }
.pl-sh-ctl .pl-info { align-self: center; margin-inline-start: calc(-1 * var(--space-2)); }
.pl-rs-prods__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr; gap: var(--space-3); align-items: center; font-size: var(--type-body-sm-size); }
.pl-rs-prods__row .pl-dd-prods__none { grid-column: 2; }

/* Each promotion and Wishlist conversion: one body per promotion, so a promotion and its product rows open and close together. */
.pl-rs-table tbody[hidden], .pl-rs-table tr[hidden] { display: none; }
.pl-rs-table tbody + tbody > tr:first-child > td { border-block-start: 1px solid var(--hairline); }
.pl-rs-table td.n { white-space: nowrap; }
.pl-rs-table th { vertical-align: bottom; white-space: normal; }
.pl-rs-table td:not(.n) { white-space: normal; }
.pl-rs-table th, .pl-rs-table td { padding-inline: var(--space-2); }
.pl-rs-table td:first-child { min-width: 110px; }
.pl-rs-table .pl-sh-pill { white-space: nowrap; }
.pl-rs-sub td { color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-rs-sub td:first-child { padding-inline-start: var(--space-5); }
.pl-rs-muted { color: var(--ink-muted); font-weight: 400; }
.pl-rs-none { color: var(--ink-muted); cursor: help; }
.pl-rs-net { cursor: help; font-variant-numeric: tabular-nums; }
.pl-rs-when { cursor: help; }
.pl-rs-note { margin: var(--space-2) 0 0; white-space: normal; }
.pl-rs-expands { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-2); }
.pl-rs-expands [hidden] { display: none; }
.pl-rs-cards .pl-dd-kv[hidden], .pl-rs-cards dl[hidden] { display: none; }
.pl-rs-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.pl-rs-cards dl.pl-rs-sub { color: var(--ink-muted); }
.pl-rs-sub2 { display: block; }

/* What each depth and each promotion earned you: a bar a row, the sample size beside it, grey under 3 discounts. */
.pl-rs-chartcard { display: grid; gap: var(--space-3); padding: 20px 22px 16px; min-width: 0; }
.pl-rs-chartcard [data-sw-v][hidden], .pl-rs-chartcard [data-sw-m][hidden] { display: none; }
.pl-rs-bars { display: grid; gap: var(--space-2); }
.pl-rs-bar { display: grid; grid-template-columns: minmax(64px, 140px) minmax(0, 1fr) minmax(72px, auto) 48px; align-items: center; gap: var(--space-3); font-size: var(--type-body-sm-size); }
.pl-rs-bar__name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-rs-bar__track { display: block; height: 14px; border-radius: var(--radius-sm); background-color: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.pl-rs-bar__track i { display: block; height: 100%; border-radius: var(--radius-sm); }
.pl-rs-bar__v { text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-rs-fill--you { background-color: var(--you); }
.pl-rs-fill--grey { background-color: var(--parts-other); }
.pl-rs-swatch--grey { background-color: var(--parts-other); }

/* How a discount plays out: the 14 days after are dashed, a day that rests on few discounts is a hollow point. */
.pl-rs-after { stroke-dasharray: 5 4; }
.pl-rs-thin { fill: var(--surface); stroke: var(--you); stroke-width: 1.5; }
.pl-rs-swatch--after { border-top-color: var(--you); }
.pl-rs-swatch--thin { border: 1.5px solid var(--you); border-radius: 50%; background-color: var(--surface); }

/* Country behaviour: one split bar a country, Full price then Discounted price, adding up to all of its units. The two parts are two violet tones at least 3 to 1 apart in both themes. */
.pl-rs-split { display: grid; gap: var(--space-2); }
.pl-rs-split [data-sw-expand-body][hidden] { display: none; }
.pl-rs-country { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 96px; align-items: center; gap: var(--space-3); font-size: var(--type-body-sm-size); }
.pl-rs-aside { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 96px; column-gap: var(--space-3); }
.pl-rs-aside > * { grid-column: 2 / -1; }
.pl-rs-country__name { min-width: 0; overflow-wrap: anywhere; }
.pl-rs-country__v { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-rs-splitbar { display: flex; height: 16px; border-radius: var(--radius-sm); overflow: hidden; gap: 2px; min-width: 0; }
.pl-rs-splitbar i { display: block; height: 100%; }
.pl-rs-seg--full, .pl-rs-swatch--full { background-color: var(--violet-pale); }
.pl-rs-seg--discounted, .pl-rs-swatch--discounted { background-color: var(--violet-split); }

/* Charts that keep 12 px text: each is drawn at several widths and the box shows the widest one that fits. */
.pl-rs-hero .pl-sh-hero__chart, .pl-rs .pl-so-chartcard { container-type: inline-size; }
.pl-rs-cut { display: none; }
.pl-rs-cut--h0, .pl-rs-cut--d0 { display: block; }
@container (min-width: 400px) { .pl-rs-cut--h0 { display: none; } .pl-rs-cut--h1 { display: block; } }
@container (min-width: 540px) { .pl-rs-cut--h1 { display: none; } .pl-rs-cut--h2 { display: block; } }
@container (min-width: 500px) { .pl-rs-cut--d0 { display: none; } .pl-rs-cut--d1 { display: block; } }
@container (min-width: 680px) { .pl-rs-cut--d1 { display: none; } .pl-rs-cut--d2 { display: block; } }
@container (min-width: 880px) { .pl-rs-cut--d2 { display: none; } .pl-rs-cut--d3 { display: block; } }
.pl-rs-rowtoggle { margin-block-start: var(--space-1); }

@media (max-width: 1100px) {
  .pl-rs-table { font-size: var(--type-label-size); }
  .pl-rs-table th, .pl-rs-table td { padding-inline: var(--space-1); }
  .pl-rs-table td:first-child { min-width: 80px; }
}
@media (max-width: 767.98px) {
  .pl-rs-chartcard { padding: var(--space-4); }
  .pl-rs-bar { grid-template-columns: minmax(56px, 90px) minmax(0, 1fr) auto; row-gap: 0; }
  .pl-rs-bar > .pl-sh-vs { display: none; }
  .pl-rs-country { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-1); }
  .pl-rs-country__name { grid-column: 1 / -1; }
  .pl-rs-aside { grid-template-columns: minmax(0, 1fr); }
  .pl-rs-aside > * { grid-column: 1; }
  .pl-rs-prods__row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media print { .pl-rs-expands { display: none; } }

/* Card heads inside the frame (Fredrik 2026-11-04; the head rule is .pl-card--inhead in sales-card-head.css).
   Each grid card names its own row gap so the head sits 20 px above the content. A list card holds the head, the table on a
   desktop or the list on a phone, and its Show more row, in one frame. Tokens only. */
.pl-rs-chartcard.pl-card--inhead, .pl-dd-last.pl-card--inhead { --inhead-gap: var(--space-3); }
.pl-so-chartcard.pl-card--inhead { --inhead-gap: var(--space-2); }
.pl-eb.pl-card--inhead { --inhead-gap: var(--space-4); }
.pl-dd-listcard .pl-dd-kvlist { padding-inline: 0; }
.pl-dd-listcard > .pl-rs-expands, .pl-dd-listcard > .pl-rs-note { margin-block-end: 0; }
/* Show all / Expand: the quiet button's own padding comes off, so its words start at the title's edge. */
.pl-rs-expands { margin-inline-start: calc(-1 * var(--space-3)); }
/* What each promotion earned you: the measure switch is the first row of the card body (its head holds the rest). */
.pl-rs-measure { justify-self: start; }
/* Cooldown view: the title as far from the card top as on every other card. */
@media (min-width: 768px) {
  .pl-eb.pl-card--inhead { padding-block-start: var(--space-5); }
}
/* 40 px between titled cards, 24 on a phone (the sheet: 40 between sections); .pl-dd's own gap is 16. */
.pl-dd > div:has(> .pl-card--inhead) { margin-block-start: calc(var(--space-6) - var(--space-4)); }
.pl-dd > div:first-child:has(> .pl-card--inhead) { margin-block-start: 0; }
@media (max-width: 767.98px) {
  .pl-dd > div:has(> .pl-card--inhead) { margin-block-start: calc(var(--space-5) - var(--space-4)); }
  .pl-dd > div:first-child:has(> .pl-card--inhead) { margin-block-start: 0; }
}

/* The fallback normal day (decision 2026-11-04-recent-normal-day). Basis lines and count lines
   wrap under their figure instead of widening a table column or a card. */
.pl-rs-table td .pl-sh-vs { white-space: normal; }
.pl-pf-wrap { white-space: normal; }

/* Promotion results hero: the incremental units figure stays whole; its words are body size,
   muted, and drop to the next line whole on a narrow phone (design owner, review of PR 636). */
.pl-rs-units--split { white-space: normal; }
.pl-rs-units__n { white-space: nowrap; }
.pl-rs-units__w { white-space: nowrap; font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 400; color: var(--ink-muted); }

/* --- Rekoup operations, staff only (decision 108, mock-up rekoup-operations v1) -------------------
   Headlines that open into numbered steps. Tokens only; the phone is under 768 px. */
.pl-ops { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.pl-ops-pt { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.pl-ops-pt .pl-page-title { margin: 0; }
.pl-ops-sp { flex: 1; }
.pl-ops-stag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 600; }
.pl-ops-ea { min-height: 32px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: transparent; color: var(--violet-ink); font: 600 var(--type-body-sm-size)/var(--type-body-sm-line) var(--font-sans); cursor: pointer; }
.pl-ops-meta { margin: var(--space-2) 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-ops-mut { color: var(--ink-muted); }
.pl-ops-start { margin: var(--space-3) 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--card-edge); border-radius: var(--radius-lg); max-width: 760px; }
.pl-ops-start p { margin: 0 0 var(--space-1); }
.pl-ops-start p:last-child { margin: 0; }
.pl-ops-start a { color: var(--link); }

/* A section: summary row with number, title, count and a labelled button. */
.pl-ops-sec { background: var(--surface); border: 1px solid var(--card-edge); border-radius: var(--radius-lg); margin: 0 0 var(--space-2); box-shadow: var(--shadow-card); }
.pl-ops-sec > summary { display: flex; align-items: center; gap: var(--space-3); min-height: 72px; padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; }
.pl-ops-sec > summary::-webkit-details-marker, .pl-ops-subd > summary::-webkit-details-marker, .pl-ops-showall > summary::-webkit-details-marker { display: none; }
.pl-ops-ix { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-md); background: var(--violet-tint); color: var(--violet-ink); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.pl-ops-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pl-ops-ti { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-ops-su { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ops-ct { display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; }
.pl-ops-ct b { font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-variant-numeric: tabular-nums; font-weight: 600; }
.pl-ops-ct small { font-size: var(--type-label-size); color: var(--ink-muted); line-height: var(--type-label-line); }
.pl-ops-xb { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); color: var(--violet-ink); font-size: var(--type-body-sm-size); font-weight: 600; flex: none; }
.pl-ops-xb svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
details[open] > summary .pl-ops-xb svg { transform: rotate(180deg); }
.pl-ops-x-close { display: none; }
details[open] > summary .pl-ops-x-close { display: inline; }
details[open] > summary .pl-ops-x-open { display: none; }
.pl-ops-sec > summary:focus-visible, .pl-ops-subd > summary:focus-visible, .pl-ops-showall > summary:focus-visible, .pl-ops-ea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-ops-bd { padding: var(--space-1) var(--space-4) var(--space-4) 58px; }
.pl-ops-have { margin: 0 0 var(--space-3); }
.pl-ops-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 600; margin-left: var(--space-2); }

/* A stage inside a section. */
.pl-ops-subd { border-top: 1px solid var(--hairline); }
details.pl-ops-subd > summary { display: flex; align-items: center; min-height: 44px; gap: 6px; cursor: pointer; list-style: none; }
details.pl-ops-subd > summary .pl-ops-ti { font-size: var(--type-body-size); line-height: var(--type-body-line); flex: 1; }
.pl-ops-cn { color: var(--ink-muted); font-size: var(--type-body-sm-size); font-variant-numeric: tabular-nums; margin-left: var(--space-2); }
.pl-ops-xb.pl-ops-sm { min-height: 32px; margin-left: var(--space-2); }

/* Steps: one action each, what you should see in grey, a small "If not". */
.pl-ops-steps { list-style: none; margin: var(--space-1) 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pl-ops-steps > li { display: flex; gap: var(--space-3); }
.pl-ops-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--violet-tint); color: var(--violet-ink); font-size: var(--type-body-sm-size); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.pl-ops-sc { min-width: 0; }
.pl-ops-sc p { margin: 0; }
.pl-ops-act { font-size: var(--type-body-size); line-height: var(--type-body-line); color: var(--ink); }
.pl-ops-see { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ops-sc p.pl-ops-ifn { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); margin-top: 2px; }
.pl-ops-ifn b { color: var(--ink); font-weight: 600; }
.pl-ops-tc { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink); font-size: var(--type-label-size); font-weight: 600; margin: 0 2px; vertical-align: middle; }
.pl-ops-outs { list-style: none; margin: var(--space-2) 0 2px; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.pl-ops-outs li { border-left: 2px solid var(--hairline); padding-left: var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ops-outs q { display: block; color: var(--ink-muted); quotes: none; }
.pl-ops-outs span { display: block; color: var(--ink); }
.pl-ops-grp { margin: var(--space-3) 0 var(--space-1); }
.pl-ops-grp > b { display: block; font-size: var(--type-body-size); }
.pl-ops-grp > span { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ops-grp.pl-ops-g2 { margin-top: var(--space-4); }

/* Notes with an icon. */
.pl-ops-nb { display: flex; gap: var(--space-3); border: 1px solid var(--card-edge); background: var(--surface-raised); border-radius: var(--radius-md); padding: var(--space-3); margin: var(--space-2) 0 var(--space-3); color: var(--ink); }
.pl-ops-nb svg, .pl-ops-nbl svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; margin-top: 1px; }
.pl-ops-nb p { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ops-nb .pl-ops-nt1 { font-weight: 700; font-size: var(--type-body-size); }
.pl-ops-nbl { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-ops-nbl b { font-weight: 700; }

/* The runs tables. */
.pl-ops-tw { overflow-x: auto; overflow-y: hidden; }
.pl-ops-tw code { overflow-wrap: anywhere; }
.pl-ops-rt td:first-child { white-space: nowrap; }
.pl-ops-rt { border-collapse: collapse; width: 100%; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ops-rt th, .pl-ops-rt td { padding: var(--space-2); text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); font-weight: 400; }
.pl-ops-rt thead th { color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 600; border-top: 0; padding-bottom: 6px; }
.pl-ops-rt tbody th { font-weight: 600; color: var(--ink); width: 150px; }
.pl-ops-rt .pl-ops-n { color: var(--ink-muted); width: 28px; font-variant-numeric: tabular-nums; }
.pl-ops-rt .pl-ops-same, .pl-ops-rt3 td:nth-child(4) { color: var(--ink-muted); }
.pl-ops-rt3 tbody th { width: 170px; }
.pl-ops-showall { display: none; }

@media (max-width: 767.98px) {
  .pl-ops-bd { padding: var(--space-1) var(--space-3) var(--space-3); }
  .pl-ops-sec > summary { gap: var(--space-3); padding: var(--space-3); }
  .pl-ops-sec .pl-ops-xb { padding: 0 8px; min-width: 32px; justify-content: center; }
  .pl-ops-sec > summary .pl-ops-xb .pl-ops-x-open, .pl-ops-sec > summary .pl-ops-xb .pl-ops-x-close { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-ops-sec > summary { position: relative; }
  details.pl-ops-subd > summary { flex-wrap: wrap; row-gap: var(--space-1); padding: 6px 0; }
  details.pl-ops-subd > summary .pl-ops-ti { flex: 1 1 100%; }
  details.pl-ops-subd > summary .pl-ops-cn { margin-left: 0; flex: 1; }
  .pl-ops-rt, .pl-ops-rt tbody, .pl-ops-rt tr { display: block; }
  .pl-ops-rt thead { display: none; }
  .pl-ops-rt tr { border-top: 1px solid var(--hairline); padding: var(--space-3) 0; }
  .pl-ops-rt th, .pl-ops-rt td { border-top: 0; padding: 0; }
  .pl-ops-rt tbody th { display: inline; width: auto; font-weight: 600; }
  .pl-ops-rt .pl-ops-n { display: inline; width: auto; margin-right: var(--space-1); }
  .pl-ops-rt td[data-label] { display: block; position: relative; padding-left: 86px; margin-top: 2px; }
  .pl-ops-rt td[data-label]::before { content: attr(data-label); position: absolute; left: 0; width: 78px; color: var(--ink-muted); }
  .pl-ops-rt td:empty { display: none; }
  .pl-ops-rt tbody tr:nth-child(n + 5) { display: none; }
  .pl-ops-grp.pl-ops-g2, .pl-ops-grp.pl-ops-g2 + .pl-ops-tw { display: none; }
  .pl-ops-showall { display: flex; margin: var(--space-3) 0 0; cursor: pointer; }
  .pl-ops-showall > summary { list-style: none; cursor: pointer; display: flex; }
  .pl-ops-showall .pl-ops-xb { min-height: 36px; padding: 0 12px; }
  .pl-ops-showall .pl-ops-xb .pl-ops-x-open, .pl-ops-showall .pl-ops-xb .pl-ops-x-close { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .pl-ops-bd:has(.pl-ops-showall[open]) .pl-ops-rt tbody tr:nth-child(n + 5) { display: block; }
  .pl-ops-bd:has(.pl-ops-showall[open]) .pl-ops-grp.pl-ops-g2 { display: block; }
  .pl-ops-bd:has(.pl-ops-showall[open]) .pl-ops-grp.pl-ops-g2 + .pl-ops-tw { display: block; }
}

/* --- Rekoup operations, section 8 "Slow requests" (staff only, Fredrik 2026-11-09) ----------------
   The runs table of this page (ops-page part) with its number columns right-aligned in tabular
   figures; the route column takes the room it needs, in the data-note mono. Tokens only; the
   phone is under 768 px, where the labels are wider than the runs tables' ("Median database"). */
.pl-ops-slow tbody th { width: auto; overflow-wrap: anywhere; }
.pl-ops-slow tbody th code { font-family: var(--font-mono); font-size: var(--type-label-size); font-weight: 400; }
.pl-ops-slow thead th:not(:first-child), .pl-ops-slow td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 767.98px) {
  .pl-ops-slow tbody th { display: block; }
  .pl-ops-slow td[data-label] { text-align: left; padding-left: 128px; }
  .pl-ops-slow td[data-label]::before { width: 120px; }
}

/* 2.0: Store traffic, UTM tracking and Outside sites (decision 123, mock-up utm-tracking v4).
   The headline counts at the tile size (36 px, 30 under 1024) and the rates at the pair size
   (28 px), from home-boxes-oneline; small bar charts in plain HTML (one element per day, heights
   from day_bars.py), a scale tick on every chart, the sand "Still counting" band; the list grouped
   by source, one row open at a time (peerlight.js, data-pl-one). Dates and figures never wrap.
   The studio's own UTM text wraps inside its cell and never widens the card. Tokens only. */

.pl-utm { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pl-utm-sec { min-width: 0; }
.pl-utm .pl-sh-key[hidden] { display: none; }
.pl-utm-nw { white-space: nowrap; }
.pl-utm-head { display: grid; gap: 0; padding: 18px var(--space-6) 20px; }
.pl-utm-when { margin: 0 0 10px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-osite-fig { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.pl-utm-head__fig { font-family: var(--font-display); font-size: var(--type-figure-tile-size); line-height: var(--type-figure-tile-line); font-weight: 500; letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-osite-fig { margin-bottom: var(--space-1); }

.pl-utm-card { padding: 18px var(--space-6) 20px; min-width: 0; }
.pl-utm-card--list { padding: var(--space-2) var(--space-4) var(--space-3); }

/* Small charts: the name, then the plot (ticks in a 36 px gutter at the left, the bars beside). */
.pl-dbar { min-width: 0; }
.pl-dbar + .pl-dbar { margin-top: var(--space-2); }
.pl-dbar__name { margin-top: var(--space-2); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-dbar__plot { position: relative; height: 72px; padding: 10px 4px 16px 36px; }
.pl-dbar__tick { position: absolute; left: 0; width: 30px; text-align: end; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-dbar__tick--top { top: 2px; }
.pl-dbar__tick--zero { bottom: 8px; }
.pl-dbar__area { position: relative; height: 100%; border-top: 1px dashed var(--hairline); border-bottom: 1px solid var(--hairline); }
.pl-dbar__band { position: absolute; top: 0; right: 0; bottom: 0; border: 1px dashed var(--promo); border-radius: 2px; background-color: var(--promo-soft); }
/* Days not on file: a raised band with a hairline, as the other charts mark them (markArea). */
.pl-dbar__gap { position: absolute; top: 0; bottom: 0; border: 1px solid var(--hairline); background-color: var(--surface-raised); }
.pl-one__det .pl-dbar__gap { background-color: var(--surface); }
.pl-dbar-swatch--gap { background-color: var(--surface-raised); border: 1px solid var(--border-strong); }
.pl-dbar__bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.pl-dbar__bars--dense { gap: 1px; }
.pl-dbar__bars > i { flex: 1 1 0; min-width: 0; height: 0; background-color: var(--you); }
.pl-dbar__axis { padding: 0 4px 0 36px; }
.pl-dbar__dates { position: relative; height: 18px; }
.pl-dbar__date { position: absolute; top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; transform: translateX(-50%); }
.pl-dbar__date--start { transform: none; }
.pl-dbar__date--end { transform: translateX(-100%); }

/* The day table, in a short scroll box. */
.pl-dbar-tbl { max-height: 240px; overflow: auto; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background-color: var(--surface); }
.pl-dbar-tbl--tall { max-height: 300px; }
.pl-dbar-tbl .pl-table th, .pl-dbar-tbl .pl-table td { padding: 6px 10px; white-space: nowrap; }
.pl-dbar-tbl .pl-table td.pl-dbar-tbl__day { white-space: normal; } /* the date stays on one line, its note may go under it */
.pl-dbar-tbl__note { white-space: nowrap;font-size: var(--type-label-size); color: var(--ink-muted); }
/* A still-counting figure (wishlists and purchases only): the sand of the chart's band. */
.pl-dbar-tbl .pl-table td.pl-dbar-tbl__cnt { background-color: var(--promo-soft); box-shadow: inset 0 0 0 1px var(--promo); }

/* The lists: rows that open in place. */
.pl-utm-list th, .pl-osite-list th { white-space: nowrap; }
.pl-utm-list td, .pl-osite-list td { vertical-align: middle; }
.pl-utm-list td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-utm-name { min-width: 0; overflow-wrap: anywhere; }
/* Outside Steam: a site's domain never breaks mid-word; too long for the column, it ends in an ellipsis
   (walk 2026-11-13). The name column takes what the visits column leaves. */
.pl-osite-list .pl-utm-name { max-width: 0; overflow-wrap: normal; }
.pl-osite-list .pl-one__open { width: 100%; }
.pl-osite-list .pl-utm-name__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-one__row { cursor: pointer; }
.pl-one__open { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 24px; cursor: pointer; max-width: 100%; }
.pl-one__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-one__chev { display: inline-block; flex: none; width: 16px; color: var(--ink-muted); transition: transform .15s; }
.pl-one__open[aria-expanded="true"] .pl-one__chev { transform: rotate(90deg); }
.pl-utm-row--src .pl-utm-name { font-weight: 600; }
.pl-utm-row--cmp .pl-utm-name { padding-inline-start: 38px; }
.pl-utm-sub { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-one__row:has(+ .pl-one__det:not([hidden])) > td { background-color: var(--surface-raised); }
.pl-one__row:has(+ .pl-one__det:not([hidden])) > td:first-child { box-shadow: inset 2px 0 0 var(--you); }
.pl-utm-row--all > td { font-weight: 600; border-bottom-color: var(--card-edge); }
.pl-utm-row--untagged > td { color: var(--ink-muted); }
.pl-utm-row--untagged > td:first-child { color: var(--ink); }
.pl-one__det > td { padding: 0; background-color: var(--surface-raised); }
@media (prefers-reduced-motion: reduce) { .pl-one__chev { transition: none; } }

/* What a row opens to. */
.pl-dbar-det { padding: 14px var(--space-4) var(--space-4); border-inline-start: 2px solid var(--you); }
.pl-dbar-det__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.pl-dbar-det__head b { font-size: var(--type-body-size); overflow-wrap: anywhere; }
.pl-dbar-det__head .pl-utm-sub { display: inline; }
.pl-dbar-det__sp { flex: 1; }
.pl-dbar-det__figs { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 6px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; }
.pl-dbar-det__figs span { color: var(--ink-muted); white-space: nowrap; }
.pl-dbar-det__figs b { margin-inline-start: 6px; color: var(--ink); font-weight: 600; }

/* Outside sites: the visits beside a bar, biggest site 70% of the column. */
.pl-osite-vh { width: 55%; }
.pl-osite-v { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-osite-bar { display: inline-block; height: 8px; margin-inline-end: var(--space-2); border-radius: 2px; background-color: var(--you); vertical-align: middle; }
.pl-osite-bar--other { background-color: var(--parts-other); }
.pl-utm-link { display: inline-flex; align-items: center; min-height: 32px; margin-top: var(--space-2); color: var(--link); font-size: var(--type-body-sm-size); text-decoration: none; }
.pl-utm-link:hover { text-decoration: underline; }

/* Laptops (up to 1239 px, the mock-up's 1024 frame): tighter cards and table cells. */
@media (max-width: 1239.98px) {
  .pl-utm-head, .pl-utm-card { padding: var(--space-4) 18px 18px; }
  .pl-utm-card--list { padding: var(--space-2) var(--space-2) var(--space-3); }
  .pl-utm-list th, .pl-utm-list td { padding-inline: 6px; }
  .pl-utm-list td.pl-utm-rate { white-space: normal; min-width: 4.5rem; }
}

/* Phones: two figures a row in the headline; each list row folds into its name and the six
   figures in three labelled columns (the fold the tagged-links table had). */
@media (max-width: 599.98px) {
  .pl-dbar__date--wide { display: none; }
  .pl-utm-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pl-utm-list, .pl-utm-list tbody { display: block; width: 100%; }
  .pl-utm-list tbody[hidden] { display: none; }
  .pl-utm-list tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-2); row-gap: var(--space-1); padding: var(--space-2) var(--space-2); border-bottom: 1px solid var(--hairline); }
  .pl-utm-list tr.pl-one__det { display: block; padding: 0; }
  .pl-utm-list tr[hidden], .pl-utm-list tr.pl-one__det[hidden] { display: none; }
  .pl-table.pl-utm-list td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
  .pl-table.pl-utm-list td.pl-utm-name { grid-column: 1 / -1; }
  .pl-utm-row--cmp .pl-utm-name { padding-inline-start: var(--space-5); }
  .pl-table.pl-utm-list .pl-one__det > td { display: block; width: 100%; }
  .pl-dbar__bars--dense { gap: 0; }
  .pl-utm-list td[data-label]::before { content: attr(data-label); display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
  .pl-dbar-det { padding: var(--space-3); }
  /* The day tables have four short columns: they fit the phone, so no minimum widths or sticky day. */
  .pl-dbar-tbl .pl-table th, .pl-dbar-tbl .pl-table td, .pl-dbar-tbl .pl-table tr > :first-child { min-width: 0; padding-inline: 6px; }
  .pl-dbar-tbl .pl-table tr > :first-child { position: static; max-width: none; box-shadow: none; }
  /* The folded rows have no columns to scroll: no sticky first column, and a day view spans the row. */
  .pl-table.pl-utm-list tr > :first-child, .pl-table .pl-one__det > td:first-child { position: static; min-width: 0; max-width: none; box-shadow: none; background: none; }
  .pl-table .pl-one__det > td:first-child { background-color: var(--surface-raised); }
  .pl-utm-list tr.pl-one__row:has(+ .pl-one__det:not([hidden])) { background-color: var(--surface-raised); box-shadow: inset 2px 0 0 var(--you); }
  .pl-table.pl-utm-list tr.pl-one__row > td, .pl-table.pl-utm-list tr.pl-one__row:has(+ .pl-one__det:not([hidden])) > td:first-child { background: none; box-shadow: none; }
  .pl-utm-card .pl-table-wrap { margin-inline: 0; padding-inline: 0; } /* the card has its own padding: no bleed past it */
}

/* PeerLight 2.0: the Promotion Board timeline and its Add a promotion panel (mock-ups promotion-board-timeline v4 and add-panel v1, decisions 109 and 110). One row per platform, bars as a share of the window, cooldown hatch on every row, Today as an ink line; the panel sits on the right and the board answers while you type. Tokens only. */
.pl-pb__switch { margin-bottom: var(--space-3); }
.pl-pb__count { display: inline-block; margin-inline-start: var(--space-1); padding: 0 var(--space-2); border: 1px solid var(--violet); border-radius: var(--radius-pill); color: var(--violet-ink); font-size: var(--type-label-size); line-height: 18px; font-weight: 600; }
.pl-pb__bar { margin-bottom: var(--space-3); }

.pl-bd { --bd-name: 190px; padding: var(--space-4) var(--space-5) var(--space-4); min-width: 0; }
.pl-bd__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.pl-bd__nav, .pl-bd__zoom { display: flex; align-items: center; gap: var(--space-3); }
.pl-bd__label { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); font-variant-numeric: tabular-nums; }
.pl-bd__step { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: var(--type-heading-size); line-height: 1; }
.pl-bd__step:hover { background: var(--violet-tint); }

.pl-bd__grid { position: relative; }
.pl-bd__row { display: grid; grid-template-columns: var(--bd-name) minmax(0, 1fr); align-items: center; min-height: 34px; }
.pl-bd__row.is-target { background: var(--violet-tint); }
.pl-bd__name { display: flex; align-items: center; gap: var(--space-2); min-width: 0; padding-inline-end: var(--space-2); font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-bd__name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-bd__name .pl-store-logo { width: 16px; height: 16px; }
/* A lane is one bar high; bars that overlap stack into more lanes (--lanes), so two labels never share pixels. */
.pl-bd__plot { position: relative; height: calc(var(--lanes, 1) * 30px + 4px); min-height: 34px; min-width: 0; }
.pl-bd__row--axis { min-height: 40px; }
.pl-bd__row--axis .pl-bd__plot { height: 40px; }
.pl-bd__tick { position: absolute; top: 22px; padding-inline-start: var(--space-2); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; border-inline-start: 1px solid var(--hairline); }
.pl-bd__today { position: absolute; top: 0; transform: translateX(-50%); padding: 0 var(--space-1); border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: var(--type-label-size); line-height: 16px; font-weight: 600; white-space: nowrap; z-index: 2; }
.pl-bd.is-today .pl-bd__plot::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--bd-today); width: 2px; margin-inline-start: -1px; background: var(--ink); pointer-events: none; z-index: 1; }
.pl-bd.is-today .pl-bd__row--axis .pl-bd__plot::after { content: none; }
/* Decision 114, option A: the game is a heading (bold name, a small muted "base game"), its rule only above the second and later games; the platform rows sit indented and muted with the icon first; each DLC is a group on a left rule with its own header (bold name, the same muted tag "DLC"). Always shown, never folded. */
.pl-bd__game { margin-top: var(--space-3); }
.pl-bd__game + .pl-bd__game { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border-strong); }
.pl-bd__gname { padding: var(--space-1) 0 var(--space-2); font-size: var(--type-body-size); line-height: 22px; }
.pl-bd__gtitle { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); }
.pl-bd__tag { margin-inline-start: var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-bd__row > .pl-bd__name { padding-inline-start: var(--space-4); color: var(--ink-muted); }
.pl-bd__dlc { position: relative; margin-top: var(--space-2); }
.pl-bd__dlc::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: var(--space-2); width: 1px; background: var(--border-strong); }
.pl-bd__dlc > .pl-bd__row > .pl-bd__name { padding-inline-start: calc(var(--space-4) + var(--space-2)); }
.pl-bd__dname { padding: var(--space-1) 0 var(--space-1) calc(var(--space-4) + var(--space-2)); font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-bd__dtitle { font-weight: 600; color: var(--ink); }
.pl-bd__none { margin: var(--space-3) 0 0; }

.pl-bd__it { position: absolute; top: 4px; height: 26px; box-sizing: border-box; display: flex; align-items: center; justify-content: safe center; gap: var(--space-2); min-width: 4px; overflow: hidden; container-type: inline-size; border-radius: var(--radius-md); font-size: var(--type-label-size); line-height: var(--type-label-line); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-bd__lab { font-weight: 600; }
.pl-bd__dates { display: none; font-weight: 400; }
/* The label stays inside the visible part of the bar: centred when it fits, from the left edge when it does not (never cut on both sides), and the dates only when there is room for the longest form ("Dec 17, 2026 – Jan 4, 2027"); the depth stays. */
@container (min-width: 200px) { .pl-bd__dates { display: inline; } }
@container (max-width: 44px) { .pl-bd__lab { display: none; } }
.pl-bd__it--promo { z-index: 1; }
/* Bars coloured by type (decision 116, mock-up v5): the colour is the type, the fill is the status. Submitted and Live are solid (Live adds an ink inset ring), Planned is a dashed outline, Finished a soft mix into the row. The text of a solid bar uses --on-primary (--on-fest on mint). */
.pl-bd__it--promo { --c: var(--type-own); border: 1.5px solid transparent; }
.pl-bd__t-seasonal { --c: var(--type-seasonal); }
.pl-bd__t-osale { --c: var(--type-store-sale); --dm: 45%; }
.pl-bd__t-fest { --c: var(--type-steam-fest); --dm: 45%; }
.pl-bd__t-tp { --c: var(--type-event); --dm: 45%; }  /* event cyan (build plan PR 6): at 55% a Finished bar's ink label falls to 3.8:1 in Dark; 45% holds 4.9 */
.pl-bd__it--solid, .pl-bd__it--live { background-color: var(--c); border-color: var(--c); color: var(--on-primary); }
.pl-bd__t-fest.pl-bd__it--solid, .pl-bd__t-fest.pl-bd__it--live { color: var(--on-fest); }
.pl-bd__it--live { outline: 2px solid var(--ink); outline-offset: -2px; }
.pl-bd__it--dashed { background-color: transparent; border: 1.5px dashed var(--c); color: var(--ink); }
.pl-bd__it--dim { background-color: color-mix(in srgb, var(--c) var(--dm, 55%), var(--surface)); border-color: transparent; color: var(--ink); }
.pl-bd__gl { display: none; flex: none; width: 10px; height: 10px; }
.pl-bd__it--promo:hover, .pl-bd__it--promo:focus-visible, .pl-bd__it--cool:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pl-bd__it.is-flag { outline: 2px solid var(--critical); outline-offset: 1px; overflow: visible; }
.pl-bd__bang { position: absolute; inset-inline-end: -8px; top: -8px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--critical); color: var(--on-primary); font-weight: 700; font-size: var(--type-label-size); line-height: 1; }
/* The hatch is decorative; the date is the information (legend, "Ends <date>", hover, Table). A subtle mix of an existing token into the row: 1 px lines every 14 px, edges in the same strength; peak line contrast 1.64:1 in Dark (a 40% mix), about 1.85:1 in Chalk (52%). */
.pl-bd, .pl-bd-key { --bd-hatch: color-mix(in srgb, var(--border-strong) 40%, var(--surface)); }
:root[data-theme="light"] .pl-bd, :root[data-theme="light"] .pl-bd-key { --bd-hatch: color-mix(in srgb, var(--border-strong) 52%, var(--surface)); }
/* After a save that lay outside the view (decision 115): the saved bar, or the Table row, is outlined for about two seconds (the script removes the class); the pulse only plays when motion is welcome. */
.pl-bd__it.is-saved { outline: 3px solid var(--ink); outline-offset: 3px; z-index: 3; }
.pl-pb__table tr.is-saved > td { background-color: var(--violet-tint); }
@media (prefers-reduced-motion: no-preference) {
  .pl-bd__it.is-saved { animation: pl-bd-saved 2s ease-out 1 forwards; }
  .pl-pb__table tr.is-saved > td { animation: pl-bd-saved-row 2s ease-out 1 forwards; }
}
@keyframes pl-bd-saved { 0%, 55% { outline-color: var(--ink); } 100% { outline-color: transparent; } }
@keyframes pl-bd-saved-row { 0%, 55% { background-color: var(--violet-tint); } 100% { background-color: transparent; } }
.pl-bd__it--cool { background-image: repeating-linear-gradient(135deg, var(--bd-hatch) 0 1px, transparent 1px 14px); border-block: 1px solid var(--bd-hatch); border-radius: 0; }
.pl-bd__it--season { top: 0; height: 100%; background-color: var(--hairline); border-radius: 0; opacity: 0.7; }
.pl-bd__it--season.is-own { border: 1px dashed var(--border-strong); opacity: 1; background-color: var(--promo-soft); }
.pl-bd__dia { display: inline-block; flex: none; width: 8px; height: 8px; margin-inline-end: 2px; transform: rotate(45deg); border: 1.5px solid var(--ink-muted); background: transparent; }
.pl-bd__it--sugg { border: 1.5px dotted var(--violet); color: var(--violet-ink); }
.pl-bd__it--sugg .pl-icon { width: 14px; height: 14px; }
.pl-bd__later { padding: 0 var(--space-2); border: 1px dashed var(--violet); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: 16px; font-weight: 600; }
.pl-bd__it--new { z-index: 3; border: 1.5px dashed var(--violet-ink); background-color: var(--surface); color: var(--violet-ink); font-weight: 600; }
.pl-bd__it--pv { z-index: 0; background-image: repeating-linear-gradient(135deg, var(--violet-ink) 0 1px, transparent 1px 8px); border-block: 1px dashed var(--violet-ink); border-radius: 0; opacity: 0.85; }

.pl-bd__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-bd__legend > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.pl-bd__legend .pl-icon { width: 14px; height: 14px; }
.pl-bd__key { display: inline-block; flex: none; width: 18px; height: 12px; border-radius: var(--radius-sm); box-sizing: border-box; }
.pl-bd__legend { --c: var(--type-own); }
.pl-bd__key { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid transparent; }
.pl-bd__key--solid { background-color: var(--c); border-color: var(--c); color: var(--on-primary); }
.pl-bd__key.pl-bd__t-fest { color: var(--on-fest); }
.pl-bd__key--live { background-color: var(--c); border-color: var(--c); outline: 2px solid var(--ink); outline-offset: -2px; }
.pl-bd__key--dashed { border: 1.5px dashed var(--c); }
.pl-bd__key--dim { background-color: color-mix(in srgb, var(--c) 55%, var(--surface)); border-color: transparent; }
.pl-bd__key .pl-bd__gl { display: block; width: 8px; height: 8px; }
.pl-bd__lgtypes, .pl-bd__lgstatus { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.pl-bd__lgtypes > span, .pl-bd__lgstatus > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.pl-bd__lgtypes { width: 100%; }
.pl-bd__key--cool { background-image: repeating-linear-gradient(135deg, var(--bd-hatch) 0 1px, transparent 1px 5px); border: 1px solid var(--bd-hatch); }
.pl-bd__key--season { background-color: var(--hairline); }
.pl-bd__key--sugg { width: 12px; border: 1.5px dotted var(--violet); }
.pl-bd__key--flag { background-color: var(--type-own); outline: 2px solid var(--critical); outline-offset: 1px; width: 12px; }

/* The panel (decision 110): 420 px on the right, desktop only; the board narrows beside it. */
.pl-bdp { position: fixed; z-index: var(--z-menu); inset-block: var(--pl-header-h, 0px) 0; inset-inline-end: 0; width: 420px; box-sizing: border-box; overflow-y: auto; padding: var(--space-4) var(--space-5) var(--space-5); background: var(--surface); color: var(--ink); border-inline-start: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); }
.pl-bdp[hidden] { display: none; }
.pl-bdp__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.pl-bdp__title { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-bdp__title:focus { outline: none; }
.pl-bdp__x { width: 32px; height: 32px; border-radius: var(--radius-md); }
.pl-bdp__alerts { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.pl-bdp__alerts > * { margin: 0; }
.pl-bdp__warnbody { display: grid; gap: var(--space-2); flex: 1 1 0; min-width: 0; }
.pl-bdp__warnrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.pl-bdp__link { border: 0; background: none; padding: 0; margin: 0; color: var(--violet-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pl-bdp__note { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--warning); border-radius: var(--radius-md); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-bdp__note[hidden] { display: none; }
.pl-bdp__note .pl-icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--warning-ink, var(--warning)); }
.pl-bdp__note > span { flex: 1 1 0; min-width: 0; }
.pl-bdp__warn { margin: 0 0 var(--space-3); display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--critical); border-radius: var(--radius-md); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-bdp__warn[hidden] { display: none; }
.pl-bdp__warn .pl-icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--critical-ink); }
.pl-bdp__warn > span { flex: 1 1 0; min-width: 0; }
.pl-bdp__warn .pl-btn { margin-inline-start: auto; }
.pl-bdp__actions { position: sticky; inset-block-end: calc(-1 * var(--space-5)); z-index: 2; margin-inline: calc(-1 * var(--space-5)); padding: var(--space-3) var(--space-5); background: var(--surface); border-top: 1px solid var(--hairline); }
.pl-pb__dlcfold { border-top: 1px solid var(--hairline); }
.pl-pb__dlcfold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; cursor: pointer; font-size: var(--type-body-sm-size); font-weight: 600; }
.pl-pb__anyway { display: flex; align-items: center; gap: var(--space-2); min-height: 24px; cursor: pointer; font-size: var(--type-body-sm-size); }
.pl-pb__anyway input { flex: none; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.pl-pb__anyway[hidden] { display: none; }
.pl-pb__open { margin: 0; font-size: var(--type-body-sm-size); }
.pl-bdp__toast { position: fixed; z-index: var(--z-dialog); inset-inline-end: var(--space-5); top: calc(var(--pl-header-h, 0px) + var(--space-4)); display: flex; align-items: center; gap: var(--space-3); max-width: 520px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-bdp__toast[hidden] { display: none; }
.pl-bdp__toast b, .pl-bdp__toast span { display: block; }
.pl-bdp__toast span { color: var(--ink-muted); }
.pl-bdp__undo { border: 0; background: none; padding: 0; color: var(--violet-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pl-shell.is-panel .pl-col { padding-inline-end: 420px; }
.pl-bd.is-compact .pl-bd__chips { display: none; }
.pl-bd.is-compact { --bd-name: 150px; }

/* Phones: no panel and no Add (decision 110); the board keeps its rows, with a narrower name column. */
@media (max-width: 767.98px) {
  .pl-bdp, .pl-bdp__toast { display: none !important; }
  .pl-shell.is-panel .pl-col { padding-inline-end: 0; }
  .pl-bd { --bd-name: 0px; padding: var(--space-3); }
  .pl-bd__row { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 0; padding-top: var(--space-1); }
  .pl-bd__row--axis { padding-top: 0; }
  .pl-bd__row--axis .pl-bd__name { display: none; }
  .pl-bd__name { padding-inline-end: 0; }
  .pl-bd__head { gap: var(--space-2); }
  .pl-bd__zoom { flex-wrap: wrap; gap: var(--space-2); }
  .pl-bd__label { font-size: var(--type-body-size); line-height: var(--type-body-line); }
  .pl-bd__name .pl-store-logo { width: 14px; height: 14px; }
  .pl-bd__name { font-size: var(--type-label-size); gap: var(--space-1); }
  .pl-bd__tick { padding-inline-start: 2px; }
  /* At 375 a bar is too short for its text: the type's glyph is the second cue (decision 116). */
  .pl-bd__it--promo { justify-content: flex-start; padding: 0 0 0 3px; min-width: 14px; }
  .pl-bd__it--promo .pl-bd__bang { top: -8px; inset-inline-end: -6px; }
  .pl-bd__it--promo .pl-bd__lab, .pl-bd__it--promo .pl-bd__dates { display: none; }
  .pl-bd__it--promo .pl-bd__gl { display: block; }
}

/* 2.0: one in-page toggle, the .pl-scope pill (decision 111). In a card: pill, ink fill, no label.
   The top bar keeps its own square segments (.pl-ctx__seg) and is not touched here. The pill
   itself is in components.css; this part adds what decision 111 asks on top of it:
   the active option in weight 600, a hover fill lighter than the active pill, a group that
   does not fit its card becoming a select, and the Sales hero placing the pill at its start. */

.pl-scope [aria-pressed="true"], .pl-scope [aria-current="true"] { font-weight: 600; }

/* Hover: ink mixed into the card, far lighter than the active ink fill. Text stays --ink. */
.pl-scope button:hover:not([aria-pressed="true"]),
.pl-scope a:hover:not([aria-current="true"]),
.pl-scope label:hover:not([aria-current="true"]) {
  background-color: color-mix(in srgb, var(--ink) 14%, var(--surface));
  color: var(--ink);
}

.pl-sh-hero .pl-scope { justify-self: start; }

/* A pill group that does not fit (about 340 px of card content) becomes a select.
   The box is the container; mark the pill group .pl-fit and put the select beside it. */
.pl-fit-box { container-type: inline-size; width: 100%; flex: 1 1 100%; min-width: 0; }
.pl-fit-sel {
  display: none; max-width: 100%; min-height: 34px; padding: 0 var(--space-3);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background-color: var(--surface); color: var(--ink);
  font: 400 var(--type-body-sm-size)/20px var(--font-sans);
}
@container (max-width: 340px) {
  .pl-fit-box .pl-fit { display: none; }
  .pl-fit-box .pl-fit-sel { display: block; width: 100%; }
}

/* The Promotion Board zoom: its own card decides (the panel narrows it), same select. */
.pl-bd.is-compact .pl-fit-sel { display: block; }

/* Tab rows that scroll on a phone: the edge fade is the shared .pl-more-right mask from
   scroll-regions.css (peerlight.js sets it for every .pl-tabs); the open tab is scrolled into view. */

/* A tab with a long label shows a shorter one on phones (Promotion Board: Third-party). */
.pl-tabs__short { display: none; }
@media (max-width: 767.98px) {
  .pl-tabs__long { display: none; }
  .pl-tabs__short { display: inline; }
}

/* PeerLight 2.0: the Forecast tab clean-up (decision 117, mock-up forecasts-cleanup v1). Built on the shared stat hero, card head, tap-to-define and pill (stat-hero.css, tap-define.css, toggle-unify.css); these rules only place the Forecast's own parts: the scenario row in the hero, the rest of the year and the current month beside the period figure, the likely range lines, the figure strip and basis under the chart, the method under each product, the Promotion Board type key in Planned promotions. One-figure boxes take the tile size from home-boxes-oneline.css (36 px). Dates and ranges never wrap. Tokens only. */

.pl-fcx-hero { padding: 0; gap: 0; }
.pl-fcx-hero > .pl-sh-hero__body { padding: var(--space-5) var(--space-5) var(--space-5); grid-template-columns: minmax(300px, 1.2fr) minmax(0, 2fr); }
/* The overview's head sits inside its card, as on every other section (design owner on PR 512). */
.pl-fcx-nofc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding: 0 var(--space-5) var(--space-5); }
.pl-fcx-nofc > div { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.pl-fcx-scen { border-block-start: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-5); border-block-end: 1px solid var(--hairline); }
.pl-fcx-scen .pl-scope { flex-wrap: nowrap; white-space: nowrap; }
.pl-fcx-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-1); margin-block-start: var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; }
.pl-fcx-range b { font-weight: 500; }
.pl-fcx-nw { white-space: nowrap; }
.pl-fcx-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }
.pl-fcx-subfig { display: grid; align-content: start; gap: 2px; min-width: 0; padding-inline-start: var(--space-5); border-inline-start: 1px solid var(--hairline); }
.pl-fcx-subfig + .pl-fcx-subfig { margin-inline-start: var(--space-5); }
.pl-fcx-subfig .pl-sh-fig { margin: var(--space-2) 0 var(--space-1); white-space: nowrap; }
.pl-fcx-words { display: block; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-fcx-sub { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-fcx .pl-sh-boxes { margin-block-start: var(--space-4); }
.pl-fcx-share { display: flex; height: 6px; margin: var(--space-1) 0 var(--space-2); gap: 1px; }
.pl-fcx-share i { height: 100%; }
.pl-fcx-plist { grid-template-columns: auto minmax(0, 1fr) auto; }
.pl-fcx-plist .pl-fcx-member .pl-sh-plist__name { padding-inline-start: var(--space-3); color: var(--ink-muted); }
.pl-fcx-drivers { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Under the chart: the figure strip, then the basis in one line. */
.pl-fcx-strip { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-3) 0 0; padding-block-start: var(--space-3); border-block-start: 1px solid var(--hairline); }
.pl-fcx-strip > div { display: grid; gap: 2px; min-width: 0; }
.pl-fcx-strip dt { display: flex; align-items: center; min-height: 24px; }
.pl-fcx-strip dd { margin: 0; }
.pl-fcx-strip__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-fcx-strip__when { color: var(--ink-muted); font-weight: 400; }
.pl-fcx-basis { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* Tables: the month or promotion names the row; ranges sit under their figure. */
.pl-fcx-table:not(.pl-fcx-promos) tbody td:first-child { white-space: nowrap; }
.pl-fcx-method { display: block; margin-block-start: 2px; font-weight: 400; color: var(--ink-muted); }
.pl-fcx-byprod > summary { list-style: none; display: inline-flex; min-height: 24px; align-items: center; }
.pl-fcx-byprod > summary::-webkit-details-marker { display: none; }
.pl-fcx-byprod:not([open]) .pl-fcx-open, .pl-fcx-byprod[open] .pl-fcx-closed { display: none; }

/* Planned promotions: the Promotion Board's type key (decision 116) before the name; the Type column says it in words. */
.pl-fcx-promos td:nth-child(4) { white-space: nowrap; }
.pl-fcx-promos td:nth-child(6) { min-width: 16ch; }
.pl-fcx-promo { --c: var(--type-own); display: inline-flex; align-items: center; gap: var(--space-2); min-width: 18ch; }

/* Events: the add form opens from its button. */
.pl-fcx-add { margin: 0 0 var(--space-4); }
.pl-fcx-add > summary { list-style: none; display: inline-flex; width: max-content; cursor: pointer; }
.pl-fcx-add > summary::-webkit-details-marker { display: none; }
.pl-fcx-add[open] > summary { margin-block-end: var(--space-3); }

@media (max-width: 1100px) {
  .pl-fcx-hero > .pl-sh-hero__body { grid-template-columns: minmax(0, 1fr); }
  .pl-fcx-subs { padding-block-start: var(--space-3); border-block-start: 1px solid var(--hairline); }
  .pl-fcx-subfig:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .pl-fcx-drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .pl-fcx-hero > .pl-sh-hero__body { padding: 18px var(--space-4) var(--space-4); }
  .pl-fcx-scen { padding: var(--space-3) var(--space-4); }
  .pl-fcx-nofc { grid-template-columns: minmax(0, 1fr); padding: 0 var(--space-4) var(--space-4); }
  .pl-fcx-subs { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-fcx-subfig, .pl-fcx-subfig + .pl-fcx-subfig { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; }
  .pl-fcx-subfig + .pl-fcx-subfig { padding-block-start: var(--space-3); border-block-start: 1px solid var(--hairline); }
  .pl-fcx-drivers { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-fcx-strip { gap: var(--space-2) var(--space-4); }
  .pl-fcx .pl-sh-line { flex-wrap: wrap; }
  .pl-fcx .pl-sh-line > * { white-space: nowrap; }
}

/* PeerLight 2.0: Player data clean-up (decision 119, mock-up player-data-cleanup v3c). Built on the shared stat hero, tile, pair box, card head, tap-to-define and pill (stat-hero.css, home-boxes-oneline.css, tap-define.css, toggle-unify.css); these rules only place the Player data parts: the period line under a label, the chart cards, the What it means figure strip, the split bar, the chart keys and the per-product table. Dates and ranges never wrap. Tokens only. */

.pl-pd { display: grid; gap: var(--space-4); min-width: 0; }
.pl-pd > .pl-sh-head { margin: var(--space-4) 0 calc(-1 * var(--space-1)); }
.pl-pd > .pl-sh-head:first-child, .pl-pd > .pl-ctx-note + .pl-sh-head { margin-block-start: 0; }
.pl-pd > .pl-sh-boxes, .pl-pd > .pl-card { margin: 0; }
.pl-pd-nw { white-space: nowrap; }
.pl-pd-strong { color: var(--ink); font-weight: 500; }
.pl-pd-wrap { white-space: normal; overflow-wrap: anywhere; }
.pl-pd .pl-pd-words { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; white-space: normal; }
.pl-pd-line { flex-wrap: wrap; }
.pl-pd-line > * { white-space: nowrap; }
.pl-pd-box { gap: 6px; }
.pl-pd .pl-sh-fig small { margin-inline-start: 3px; font-size: 0.55em; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.pl-pd-why, .pl-pd-cover { margin: 0; }

/* Four tiles over the period (Reviews). */
.pl-pd-boxes4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-pd-boxes4--1 { grid-template-columns: minmax(0, 1fr); }
.pl-pd-boxes4--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-pd-boxes4--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Pair cards: a period line on top, two 28 px figures side by side. */
.pl-pd-pair .pl-sh-pair__cols > div { gap: 4px; }
.pl-pd-split { display: block; height: 6px; max-width: 160px; margin-block-start: 2px; border-radius: 3px; overflow: hidden; background-color: var(--critical-soft); }
.pl-pd-split i { display: block; height: 100%; background-color: var(--good); }

/* Chart cards: the switches on top, the chart at full width, the key under it. */
.pl-pd-chartcard { padding: var(--space-4) var(--space-5); min-width: 0; }
.pl-pd-cbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin: 0 0 10px; }
.pl-pd-chartcard .pl-view-chart { min-width: 0; }
.pl-pd-chartcard > .pl-pd-cover { margin-block-start: var(--space-2); }
.pl-pd-hero > .pl-pd-cover { margin: 0; }
.pl-pd-units { display: block; margin-block-start: 6px; }

/* Chart keys. */
.pl-pd-fill-you { background-color: var(--you); }
.pl-pd-fill-good { background-color: var(--good); }
.pl-pd-fill-critical-bar { background-color: var(--critical-bar); }
.pl-pd-swatch--rule { height: 0; width: 16px; border-radius: 0; border-top: 2px dashed var(--ink-muted); vertical-align: 3px; }
.pl-pd-swatch--outline { background-color: transparent; border: 1.5px dashed var(--peer-line); }
.pl-pd-swatch--hatch { background-image: repeating-linear-gradient(135deg, var(--ink-muted) 0 1px, transparent 1px 4px); border: 1px solid var(--ink-muted); }

/* Tables: the day table's quiet full days, the promotion tag. */
.pl-pd-quiet { color: var(--ink-muted); }
.pl-pd-tag { display: inline-flex; align-items: center; padding: 1px 7px; border: 1px dashed var(--promo); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--promo-ink); white-space: nowrap; }

@media (max-width: 1100px) {
  .pl-pd-boxes4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .pl-pd { gap: var(--space-3); }
  .pl-pd-boxes4, .pl-pd-boxes4--3, .pl-pd-boxes4--2 { grid-template-columns: minmax(0, 1fr); }
  .pl-pd-chartcard { padding: var(--space-4); }
  .pl-pd-cbar { justify-content: flex-start; }
  .pl-pd-stack .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-pd-stack .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: 10px; }
}
@media screen and (max-width: 767.98px) {
  .pl-pd-rev:has(.pl-revsum-fold[aria-expanded="false"]) .pl-pd-fold { display: none; }
  .pl-pd-rev .pl-revsum-fold { margin: 0; justify-self: start; }
}

/* Wishlists clean-up (decision 118, mock-up wishlists clean-up v3c). The tab in the Sales and
   Promotions look: the stat hero with one Net change label over three tiles (no bars), the boxes
   with a tap-to-define label, a date line, one figure and its pill, the shared card head over
   each card, Markets bars in two blocks (current wishlists solid, the rest of the adds as an
   outline: they differ by fill, not by colour), rate bars, phone rows instead of wide tables.
   Dates and figures never wrap. Tokens only. */

.pl-wl-nw { white-space: nowrap; }

/* The overview hero: the lead figure, then the Net change group with its three tiles. */
.pl-wlo-hero__body { grid-template-columns: minmax(262px, auto) minmax(0, 1fr); }
.pl-wlo-net { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.pl-wlo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); min-width: 0; }
.pl-wlo-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-inline-start: var(--space-3); border-inline-start: 1px solid var(--hairline); }
.pl-wlo-tile .pl-sh-label, .pl-wlo-tile .pl-sh-vs { white-space: nowrap; }
.pl-wlo-chip { display: inline-flex; align-items: center; justify-self: start; padding: 0 var(--space-2); border: 1px solid var(--card-edge); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }

/* The boxes: Wishlist conversion, Top 5 countries, Followers, Launch. */
.pl-wlo-wide { margin-block-start: var(--space-4); }
.pl-wlo-box { gap: 4px; }
.pl-wlo-box__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.pl-wlo-more { display: inline-flex; align-items: center; min-block-size: 24px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); white-space: nowrap; }
.pl-wlo-box__fig { margin-block-start: var(--space-2); flex-wrap: wrap; }
.pl-wlo-tilefig { font-family: var(--font-display); font-size: var(--type-figure-tile-size); line-height: var(--type-figure-tile-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Words instead of a figure (Not on file, Not yet, After launch): 16/22. Two classes, so it beats the figure rule. */
.pl-wlo-tilefig.pl-wlo-words { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); letter-spacing: 0; white-space: normal; }
.pl-wlo-wrap, .pl-wlo-tile .pl-sh-vs.pl-wlo-wrap { white-space: normal; }
.pl-wlo-boxes4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.pl-wlo-boxes4 .pl-sh-when, .pl-wlo-box .pl-sh-when { white-space: nowrap; }
.pl-wlo-launch .pl-wlo-box .pl-sh-when { white-space: normal; }  /* the date itself never breaks (no-break spaces) */

/* A card under the shared card head. */
.pl-wl-sec { min-width: 0; }
.pl-wl-card { position: relative; display: grid; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-4); min-width: 0; }
.pl-wl-card--table { padding: var(--space-2) var(--space-3); }
.pl-wl-card--ab { margin-block-start: var(--space-4); }
.pl-wl-card__chip { justify-self: start; }
.pl-wab-scope .pl-wl-card--table { margin-block-start: var(--space-4); }

/* Wishlists accumulated: the figure row. */
.pl-wl-strip { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: end; gap: var(--space-1) 0; }
.pl-wl-strip > div { display: grid; gap: 2px; padding: 0 18px; border-inline-start: 1px solid var(--hairline); min-width: 0; }
.pl-wl-strip > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.pl-wl-strip__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Markets: a name, a bar and figures per row. */
.pl-wl-bars { --pl-wl-row-gap: var(--space-2); display: grid; gap: 0 var(--space-3); align-items: center; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; }
.pl-wl-bars--two { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 150px; }
.pl-wl-bars--rate { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 80px 80px; }
.pl-wl-bars__h { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); text-align: end; white-space: nowrap; }
.pl-wl-bars__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-wl-bars__n .pl-term { white-space: nowrap; }
.pl-wl-bars__v { text-align: end; font-weight: 600; white-space: nowrap; }
.pl-wl-bars__m { color: var(--ink-muted); font-weight: 400; }
.pl-wl-two { display: flex; align-items: center; block-size: 14px; min-width: 0; }
.pl-wl-two i { display: block; flex: none; block-size: 14px; box-sizing: border-box; }
.pl-wl-two__cur { background-color: var(--you); }
.pl-wl-two__rest { border: 1.5px solid var(--you); border-inline-start: 0; border-radius: 0 4px 4px 0; background-color: transparent; }
.pl-wl-two i:only-child, .pl-wl-two__cur:last-child { border-radius: 0 4px 4px 0; }
.pl-wl-two.is-other .pl-wl-two__cur { background-color: var(--peer-line); }
.pl-wl-two.is-other .pl-wl-two__rest { border-color: var(--peer-line); }
.pl-wl-one { display: block; block-size: 12px; min-width: 0; }
.pl-wl-one i { display: block; block-size: 12px; border-radius: 0 4px 4px 0; background-color: var(--you); }
.pl-wl-one.is-other i { background-color: var(--peer-line); }
.pl-wl-key { display: flex; flex-wrap: wrap; gap: 6px var(--space-4); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-wl-key > span { display: inline-flex; align-items: center; gap: 6px; }
.pl-wl-key i { display: inline-block; inline-size: 14px; block-size: 12px; box-sizing: border-box; }
.pl-wl-key__cur { background-color: var(--you); }
.pl-wl-key__rest { border: 1.5px solid var(--you); }

/* Tables: numbers right-aligned, dates and figures on one line; phone rows instead. */
.pl-wl-table td.n, .pl-wl-table th { white-space: nowrap; }
.pl-wl-table th .pl-term { white-space: normal; }
.pl-wl-rows { margin: 0; padding: 0; list-style: none; }
.pl-wl-rows li { display: grid; gap: 4px; padding: var(--space-3) var(--space-1); border-block-end: 1px solid var(--hairline); }
.pl-wl-rows li:last-child { border-block-end: 0; }
.pl-wl-rows__name { font-weight: 600; }
.pl-wl-rows__w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); font-size: var(--type-label-size); line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-wl-rows__w b { color: var(--ink); font-weight: 600; text-align: end; white-space: nowrap; }

/* A/B date presets: the decision-111 pill (track, ink fill on the chosen option), not violet chips. */
.pl-wl-sec .pl-wab__pills.pl-scope { display: inline-flex; flex-wrap: wrap; gap: 0; align-self: flex-start; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); }
.pl-wl-sec .pl-wab__pills--sub.pl-scope { margin-inline-start: 0; border-inline-start: 1px solid var(--hairline); padding-inline-start: 3px; }
.pl-wl-sec .pl-scope .pl-wab__pill { min-block-size: 26px; padding: 5px 14px; border: 0; border-radius: var(--radius-pill); background-color: transparent; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; font-weight: 400; }
.pl-wl-sec .pl-scope .pl-wab__pill:has(input:checked:not(:disabled)), .pl-wl-sec .pl-scope .pl-wab__pill:has(input:checked:not(:disabled)):hover { background-color: var(--ink); color: var(--canvas); font-weight: 600; }

/* Period B's four presets need about 520 px: below that the row becomes the select (decision 111,
   the shared .pl-fit-box pattern and fit-select.js; Period A's three use the shared 340 px). */
@container (max-width: 340px) {
  .pl-wl-sec .pl-wl-fit .pl-wab__pills.pl-fit { display: none; }
}
@container (max-width: 520px) {
  .pl-wl-sec .pl-wl-fit--b .pl-wab__pills.pl-fit { display: none; }
  .pl-wl-sec .pl-wl-fit--b .pl-fit-sel { display: block; width: 100%; }
}

@media (max-width: 1100px) {
  .pl-wlo-hero__body { grid-template-columns: minmax(0, 1fr); }
  .pl-wlo-boxes4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .pl-wl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) 0; }
  .pl-wl-strip > div:first-child { grid-column: 1 / -1; }
  .pl-wl-strip > div:nth-child(2), .pl-wl-strip > div:nth-child(5) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 767.98px) {
  .pl-wlo-tiles { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-wlo-tile { padding-inline-start: 0; padding-block-start: var(--space-3); border-inline-start: 0; border-block-start: 1px solid var(--hairline); }
  .pl-wlo-boxes4 { gap: 10px; }
  .pl-wlo-boxes4 .pl-wlo-box { padding: var(--space-3); }
  .pl-wl-card { padding: var(--space-4) var(--space-3) var(--space-3); }
  .pl-wl-strip { grid-template-columns: 1fr 1fr; }
  .pl-wl-strip > div:nth-child(2), .pl-wl-strip > div:nth-child(4) { padding-inline-start: 0; border-inline-start: 0; }
  .pl-wl-strip > div:nth-child(5) { padding-inline-start: 18px; border-inline-start: 1px solid var(--hairline); }
  .pl-wl-bars--two { --pl-wl-row-gap: 7px; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 0 var(--space-2); }
  .pl-wl-bars--rate { --pl-wl-row-gap: 7px; grid-template-columns: 92px minmax(0, 1fr) auto auto; gap: 0 6px; }
  .pl-wl-bars__n { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 16px; }
  .pl-wl-bars__n .pl-term { white-space: normal; }
}
@media (forced-colors: active) {
  .pl-wl-two__cur, .pl-wl-one i, .pl-wl-key__cur { background-color: CanvasText; }
  .pl-wl-two__rest, .pl-wl-key__rest { border-color: CanvasText; }
}

/* PeerLight 2.0: Wishlists cards draw their header inside the frame, as the Sales Overview chart
   cards do (decision 2026-11-03-wishlists-accumulated-in-frame; design sheet v3.18 exception).
   The head pattern itself (margin, controls row, phone title row) is shared with the Sales cards in
   sales-overview-boxes.css; here only what a Wishlists card adds. The card is a grid, so its 12 px gap
   plus the 8 px head margin (in sales-overview-boxes.css) gives 20 px, as a Sales card has. "+ Add note" is at the right end of
   the card's last row. Tokens only. */

/* The Launch table card: the head lines up with the table's first column. */
.pl-wl-card--table.pl-wl-card--in > .pl-sh-head { padding: var(--space-2) calc(var(--space-2) + var(--space-1)) 0; }
@media (max-width: 767.98px) {
  .pl-wl-card--table.pl-wl-card--in > .pl-sh-head { padding: var(--space-2) var(--space-1) 0; }
}

/* "+ Add note": the right end of the last row. */
.pl-wl-card--in > .pl-section__foot, .pl-wl-card--in > [data-sw-v] > .pl-section__foot { justify-content: flex-end; }
.pl-so-keyrow .pl-section__foot { margin-inline-start: auto; }
.pl-wl-card--note { display: flex; justify-content: flex-end; margin-block-start: var(--space-2); }

/* Followers: the chart card sits under the four boxes with the boxes' own gap. */
.pl-wlo-boxes4 + .pl-wl-sec { margin-block-start: var(--space-4); }

/* 2.0: the Store choice (decision 120, mock-up platform-filter v3). Row 1 of the context bar is
   Store alone; row 2 is Game, Period, Compare and the data date, at every desktop width. The
   buttons are the top bar's square segments (decision 111) with a 14 px monochrome mark in the
   text colour, so the chosen one turns violet with its name. Phones keep today's bar: no row.
   The coming-soon page of a store without data: a card with one line and two buttons. */

.pl-ctx__row--store { display: flex; flex: 0 0 100%; align-items: center; min-width: 0; }
.pl-ctx-store { flex-wrap: wrap; row-gap: var(--space-1); min-width: 0; }  /* fits one line from 1024; narrower desktops (768 to 1023) wrap it rather than scroll the page sideways */
.pl-ctx-store__it { gap: 6px; padding: 0 var(--space-2); }
.pl-ctx-store__soon { font-size: var(--type-label-size); line-height: 16px; font-weight: 400; color: var(--ink-muted); }
.pl-ctx-store__it[aria-current="true"] .pl-ctx-store__soon { color: var(--violet-strong); }

.pl-store-soon { max-width: 640px; margin-top: var(--space-4); padding: 32px 36px; }
.pl-store-soon .pl-page-title { margin: 0 0 var(--space-3); color: var(--ink); }
.pl-store-soon p { margin: 0; color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-store-soon__acts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 20px; }

@media (max-width: 767.98px) {
  .pl-ctx--store-only { display: none; }
  .pl-store-soon { margin-top: 0; padding: var(--space-5); }
}

/* The sticky row names the store whose data the page shows: its mark and name before the chip,
   muted, the chip's text size, a hairline between (Fredrik, 2026-10-30). On phones the mark
   alone sits at the right end; the name stays for screen readers. */
.pl-stickrow__store { display: none; }
@media (min-width: 768px) and (min-height: 600px) {
  .pl-stickrow__store {
    display: inline-flex; align-items: center; flex: none; gap: var(--space-2); margin-left: auto; padding-right: var(--space-3);
    border-right: 1px solid var(--hairline); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); white-space: nowrap;
  }
  .pl-stickrow__store + .pl-stickrow__chip { margin-left: 0; }
}
@media (max-width: 767.98px) {
  .pl-stickrow__store { display: inline-flex; position: absolute; top: 14px; right: var(--space-4); color: var(--ink-muted); }
  .pl-stickrow__store-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* PeerLight 2.0: Store traffic clean-up (decision 124, mock-up store-traffic-cleanup v3). The
   funnel's head line, change pill over its "vs" value, gap chip and non-owners line; the funnel
   itself is the Route (store-funnel-route.css, design sheet v3.32). A change under 5% of the
   previous value is quiet: the flat pill (stat-hero.css) or plain table text, in the muted token
   in both themes. The colour key under A/B and Store page changes (the change cards:
   store-traffic-slice2.css). Tokens only. */

.pl-quiet-change { color: var(--ink-muted); white-space: nowrap; }
.pl-colour-key { margin: var(--space-3) 0 0; font-size: var(--type-body-size); line-height: var(--type-body-line); color: var(--ink-muted-glass); }

.pl-tfn__when { margin: 0 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-tfn__when b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.pl-tfn__chg { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.pl-tfn__chip { display: inline-flex; align-items: center; padding: 0 var(--space-2); border: 1px solid var(--hairline); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-tfn__owners { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-tfn__owners b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Phones: the dates may wrap. */
@media (max-width: 767.98px) {
  .pl-tfn__when b { white-space: normal; }
}

/* A/B on Store traffic: the Difference in green or clay only beside a clear verdict (decision 124). */
.pl-wab-scope .pl-ab__table .pl-up { color: var(--good-ink); font-weight: 600; }
.pl-wab-scope .pl-ab__table .pl-down { color: var(--critical-ink); font-weight: 600; }

/* PeerLight 2.0: Store traffic clean-up, slice 2 (decision 124, mock-up store-traffic-cleanup v3,
   after PR 542). One card header in every card of the overview (Section.head_outside), Day by day as four small charts on one date axis, Countries as Chart | Table, and the
   Store page changes cards. Tokens only. */

/* Card heads inside the frame (Fredrik 2026-11-04): the head rule is .pl-card--inhead in sales-card-head.css.
   UTM tracking: By source's list card has tight padding so its table runs to the edge; its head is inset so the title starts
   where the titles of the cards above it start (card padding 40, 18 from 1239 px down). */
.pl-card--inhead.pl-utm-card--list > .pl-sh-head { padding: var(--space-2) var(--space-5) 0; }
@media (max-width: 1239.98px) {
  .pl-card--inhead.pl-utm-card--list > .pl-sh-head { padding-inline: 10px; }
}
/* UTM tracking: 40 px between titled cards (24 on a phone), as on every tab; the first section has none above it. */
.pl-utm > * + .pl-utm-sec { margin-block-start: var(--space-6); }
/* Outside Steam sits among the overview's cards: their padding, so every title on the page starts at one edge. */
.pl-utm-card.pl-osite-card { padding: var(--space-5); }
@media (max-width: 767.98px) {
  .pl-utm > * + .pl-utm-sec { margin-block-start: var(--space-5); }
  .pl-utm-card.pl-osite-card { padding: var(--space-4); }
}
/* The funnel is a hero card: the metric heading row holds Export CSV. */
.pl-tfn__head { margin-block-end: var(--space-3); }
.pl-tfn__head > .pl-tfn__when { margin: 0; }

/* The overview's sections (the head is inside each card). */
.pl-outhead { min-width: 0; }
.pl-outhead__card { min-width: 0; }
.pl-outhead__card:not(.pl-card) { display: grid; gap: var(--space-4); }

/* Day by day: four small charts, each named above its plot with its latest figure, one key. */
.pl-dbd__when { margin: 0 0 var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-dbd__when b { color: var(--ink); font-weight: 500; }
.pl-dbd__name { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin: var(--space-3) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-dbd__chart:first-of-type .pl-dbd__name { margin-top: 0; }
.pl-dbd__name b { color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-chart-box.pl-dbd__box { height: 96px; }
.pl-chart-box.pl-dbd__box--axis { height: 124px; }
.pl-dbd__chart:first-of-type .pl-chart-box.pl-dbd__box { height: 144px; }  /* 48 px of it is the name lane */
.pl-dbd__key { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-dbd__key li { display: inline-flex; align-items: center; gap: var(--space-2); }
.pl-dbd-sw { display: inline-block; flex: none; width: 14px; height: 12px; }
.pl-dbd-sw--discount { background-color: var(--promo-soft); border: 1.5px dashed var(--promo); }
.pl-dbd-sw--seasonal { background-color: var(--peer-band); }
.pl-dbd-sw--festival { background-color: var(--peer-band); border: 1px dotted var(--border-strong); }
.pl-dbd-sw--history { background-color: var(--surface-raised); border: 1px solid var(--hairline); }
.pl-dbd-sw--change { width: 9px; height: 9px; margin: 0 var(--space-1); background-color: var(--you); transform: rotate(45deg); }
.pl-dbd-sw--news { width: 0; height: 12px; margin: 0 var(--space-1); border-left: 1.5px dashed var(--border-strong); }
.pl-dbd-sw--pooled { width: 16px; height: 0; border-top: 2px solid var(--you); }
.pl-dbd-sw--single { width: 7px; height: 7px; border-radius: 50%; background-color: var(--you); opacity: 0.7; }
@media (max-width: 767.98px) {
  .pl-chart-box.pl-dbd__box { height: 84px; }
  .pl-chart-box.pl-dbd__box--axis { height: 112px; }
  .pl-dbd__chart:first-of-type .pl-chart-box.pl-dbd__box { height: 104px; }
}

/* Countries: one row per country, the share of visits (outline) and of units (solid) on one scale.
   Chart view has the two shares only (structure after the 1536 px page, Fredrik 2026-11-27,
   change 4): units per 100 visits and the comparison with the average are in Table view, which
   the muted line under the key says. The same four columns on a phone (mock-up 375 frame). */
.pl-stc__row { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 58px 58px; gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-1) 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; }
.pl-stc__row--head { align-items: end; padding-bottom: var(--space-2); border-bottom: 1px solid var(--hairline); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-stc__row--rest { color: var(--ink-muted); }
.pl-stc__name { min-width: 0; overflow-wrap: anywhere; }
.pl-stc__r { text-align: right; white-space: nowrap; }
.pl-stc__r b { font-weight: 400; }
.pl-stc__h.pl-stc__r { white-space: normal; }
.pl-stc__bars { display: grid; gap: 3px; min-width: 0; }
.pl-stc__bars i { display: block; height: 7px; border-radius: 0 3px 3px 0; }
.pl-stc__vis { height: 8px; border: 1.5px solid var(--you); border-left: 0; background: none; }
.pl-stc__uni { background-color: var(--you); }
.pl-stc__key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-stc__key li { display: inline-flex; align-items: center; gap: var(--space-2); }
.pl-stc__sw { display: inline-block; flex: none; width: 14px; }
.pl-stc__sw--vis { height: 10px; border: 1.5px solid var(--you); border-left: 0; }
.pl-stc__sw--uni { height: 8px; background-color: var(--you); }
.pl-stc__moved { margin: var(--space-3) 0 0; max-width: var(--layout-measure); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-stc ~ .pl-tcountries__all, .pl-stc__table ~ .pl-tcountries__all { margin-top: var(--space-3); }
@media (max-width: 767.98px) {
  .pl-stc__row { grid-template-columns: minmax(96px, 1fr) minmax(28px, 0.6fr) 44px 44px; gap: var(--space-1) var(--space-2); }
}

/* Store page changes: the timeline in its own card, then one card per change (mock-up v3). */
.pl-stpc { display: grid; gap: var(--space-4); }
.pl-stpc__form:empty { display: none; }
.pl-stpc__tl { position: relative; height: 96px; margin: var(--space-1) var(--space-2) 0; }
.pl-stpc__axis { position: absolute; left: 0; right: 0; top: 56px; border-top: 1px solid var(--border-strong); }
.pl-stpc__tick { position: absolute; top: 64px; transform: translateX(-50%); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-stpc__tick--start { transform: none; }
.pl-stpc__tick--end { transform: translateX(-100%); }
.pl-stpc__ev { position: absolute; top: 0; z-index: 1; width: 0; }
.pl-stpc__ev span { position: absolute; top: 0; left: 0; transform: translateX(-50%); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink); white-space: nowrap; }
.pl-stpc__ev--start span { transform: translateX(-12px); }
.pl-stpc__ev--end span { transform: translateX(calc(-100% + 12px)); }
.pl-stpc__ev i { position: absolute; top: 50px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background-color: var(--you); border: 2px solid var(--you); }
.pl-stpc__ev--manual i { background-color: var(--surface); }
.pl-stpc__ev--below span { top: 22px; }
.pl-stpc__key { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-stpc__key li { display: inline-flex; align-items: center; gap: var(--space-2); }
.pl-stpc__dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background-color: var(--you); border: 2px solid var(--you); }
.pl-stpc__dot--manual { background: none; }
.pl-stpc__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.pl-stpc__card { display: flex; flex-direction: column; gap: var(--space-2); }
.pl-stpc__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-stpc__kind { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border-radius: var(--radius-pill); background-color: var(--violet-tint); color: var(--violet-ink); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; white-space: nowrap; }
.pl-stpc__kind .pl-stpc__dot { width: 8px; height: 8px; border-width: 1.5px; }
.pl-stpc__nw { white-space: nowrap; }
.pl-stpc__title { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-stpc__qt { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-stpc__res { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pl-stpc__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.pl-stpc__fig { margin-right: var(--space-1); font-family: var(--font-display); font-size: var(--type-figure-pair-size); line-height: var(--type-figure-pair-line); font-weight: 560; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-stpc__fig.pl-stpc__muted { color: var(--ink-muted); }
.pl-stpc__res .pl-sh-vs { margin: 0; }
.pl-stpc__also { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-stpc__also b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-stpc__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-stpc__acts a { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); }
.pl-stpc + .pl-colour-key, .pl-stpc .pl-colour-key { margin-top: 0; }
@media (max-width: 1023.98px) {
  .pl-stpc__cards { gap: var(--space-3); }
}
/* Phones: the names would run into each other, so the timeline keeps its dots and dates and the
   cards under it carry the names (the names stay for screen readers). */
@media (max-width: 767.98px) {
  .pl-stpc__cards { grid-template-columns: minmax(0, 1fr); }
  .pl-stpc__tl { height: 56px; }
  .pl-stpc__ev span { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pl-stpc__axis { top: 18px; }
  .pl-stpc__ev i { top: 12px; }
  .pl-stpc__tick { top: 26px; }
}

/* Where the traffic came from: "Every source" as a subheading like "Top 3 over time", and the
   All sources row in bold (UX review of PR 546). */
.pl-tsources__label { margin: var(--space-5) 0 var(--space-2); }
.pl-tsources__total td { font-weight: 600; border-top: 1px solid var(--border-strong); }

/* Platform news (decision 125, mock-up platform-news v2, Fredrik 2026-11-01). One list grouped
   by day; platform buttons as multi-select chips with counts; marks drawn in the text colour
   (.pl-store-logo, the vendored store logos as masks, as the Store row). Tokens only. */
.pl-pn__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin-bottom: var(--space-3); }
.pl-pn__head .pl-page-title { margin: 0; flex: 1 1 auto; }
.pl-pn__fresh { margin: 0; font: 400 var(--type-meta-size)/16px var(--font-mono); color: var(--ink-muted-glass); }
.pl-pn__ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 var(--space-4); }
.pl-pn__ctx .pl-scope a:not([aria-current="true"]) { color: var(--ink-muted-glass); }
.pl-pn__dates { font-size: var(--type-body-sm-size); color: var(--ink-muted-glass); white-space: nowrap; }

/* The platform buttons: the numbers row and the filter in one. Pressed = shown. */
.pl-pn__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; }
.pl-pn__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: var(--type-body-size); white-space: nowrap; text-decoration: none; }
.pl-pn__chip:hover { background: var(--surface-raised); }
.pl-pn__chip--steam { font-weight: 600; padding-right: 16px; }
.pl-pn__chip.is-zero { color: var(--ink-muted); }
.pl-pn__cnt { font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pn__chip[aria-pressed="true"] { background: var(--violet-tint); border-color: var(--you); color: var(--link); font-weight: 600; }
.pl-pn__chip[aria-pressed="true"] .pl-pn__cnt { color: var(--link); }
.pl-pn__chip:focus-visible, .pl-pn__clear:focus-visible, .pl-pn__hl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-pn__clear { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; color: var(--link-glass); font-size: var(--type-body-sm-size); }
.pl-pn__mk { width: 18px; height: 18px; }  /* the mark itself is the shared .pl-store-logo */

/* The card and its one row component. */
.pl-pn__card { margin-top: var(--space-5); padding: 18px 24px 14px; }
.pl-pn__ch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.pl-pn__ch h2 { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-pn__mk--head { width: 22px; height: 22px; color: var(--ink); }
.pl-pn__meta { font: 400 var(--type-meta-size)/16px var(--font-mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pn__day { margin: 14px 0 0; padding: 0 0 6px; border-bottom: 1px solid var(--card-edge); font-size: var(--type-label-size); line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.pl-pn__day span { font-weight: 400; }
.pl-pn__list { list-style: none; margin: 0; padding: 0; }
.pl-pn__list > li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 128px; gap: 2px 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hairline); }
.pl-pn__list > li:first-child { border-top: 0; }
.pl-pn__pm { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); }
.pl-pn__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-pn__hl { display: block; padding: 1px 0; color: var(--ink); font-size: var(--type-body-size); line-height: 22px; font-weight: 600; text-decoration: none; text-wrap: pretty; overflow-wrap: anywhere; }
.pl-pn__hl:hover { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.pl-pn__ext { color: var(--ink-muted); font-weight: 400; font-size: var(--type-body-sm-size); }
.pl-pn__src { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-pn__when { text-align: right; font-size: var(--type-body-sm-size); line-height: 22px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-pn__foot { margin: 14px 0 6px; font: 400 var(--type-meta-size)/16px var(--font-mono); color: var(--ink-muted); }
.pl-pn__card .pl-empty { gap: 6px; }
.pl-pn__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.pl-pn__ways .pl-empty__link { min-height: 32px; color: var(--link); }

@media (max-width: 1100px) { .pl-pn__list > li { grid-template-columns: 32px minmax(0, 1fr) 112px; gap: 2px 12px; } .pl-pn__card { padding: 16px 18px 12px; } }
/* Phones: the time moves into the source line; nothing scrolls sideways. */
@media (max-width: 767.98px) {
  .pl-pn__chips { gap: 6px; }
  .pl-pn__chip { min-height: 36px; padding: 0 10px; gap: 6px; font-size: var(--type-body-sm-size); }
  .pl-pn__chip .pl-pn__mk { width: 16px; height: 16px; }
  .pl-pn__card { margin-top: 14px; padding: 14px 14px 8px; }
  .pl-pn__list > li { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; }
  .pl-pn__pm { width: 28px; height: 28px; }
  .pl-pn__pm .pl-pn__mk { width: 16px; height: 16px; }
  .pl-pn__hl { line-height: 21px; }
}

/* Trending games (decisions 126/127, mock-up trending-games v1, Fredrik 2026-11-01). Three
   top-10 cards side by side from 1360 px, one list at a time below (the list pill). Ranks 1-3
   carry more weight: a bigger capsule, numeral and figure, the name on its own line. Rows open
   in place with the shared [data-pl-one] rows. Sparklines are muted: violet is the studio's own
   data. No medals, no shine on data. Tokens only. */
.pl-tg__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin-bottom: var(--space-3); }
.pl-tg__head .pl-page-title { margin: 0; flex: 1 1 auto; }
.pl-tg__fresh { margin: 0; font: 400 var(--type-meta-size)/16px var(--font-mono); color: var(--ink-muted-glass); }
.pl-tg__ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 6px; font-size: var(--type-body-sm-size); }
.pl-tg__ctx .pl-scope a:not([aria-current="true"]), .pl-tg__tabs .pl-scope a:not([aria-current="true"]) { color: var(--ink-muted-glass); }
.pl-tg__win { color: var(--ink-muted-glass); white-space: nowrap; }
.pl-tg__win b { color: var(--ink); font-weight: 600; }
.pl-tg__def .pl-term { font-size: var(--type-label-size); color: var(--ink-muted-glass); }
.pl-tg__tabs { margin: 14px 0 0; }

/* The lists: three columns from 1360 px; below that only the chosen card shows. */
.pl-tg__lists { display: grid; gap: 16px; margin-top: 18px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.pl-tg__card { padding: 16px 18px 10px; min-width: 0; }
.pl-tg__card:not(.is-shown) { display: none; }
@media (min-width: 1360px) {
  .pl-tg__tabs { display: none; }
  .pl-tg__card:not(.is-shown) { display: block; }
  .pl-tg__lists--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-tg__lists--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-tg__lists--3 .pl-tg__tags { display: none; }  /* narrow cards: tags only in the opened row */
}
.pl-tg__ch h2 { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-tg__colh { display: flex; justify-content: space-between; gap: 12px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); border-bottom: 1px solid var(--card-edge); padding: 10px 0 6px; margin-top: 6px; }
.pl-tg__rows { list-style: none; margin: 0; padding: 0; }
.pl-tg__rows > li { border-top: 1px solid var(--hairline); }
.pl-tg__rows > li:first-child { border-top: 0; }

/* One row: position, capsule, name and short line, the figure on the right. */
.pl-tg .pl-one__open.pl-tg__row { display: grid; grid-template-columns: 24px auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; width: calc(100% + 8px); margin: 0 -4px; padding: 8px 4px; min-height: 44px; border-radius: var(--radius-md); color: var(--ink); text-align: left; cursor: pointer; }
.pl-tg .pl-one__open.pl-tg__row[aria-expanded="true"] { background-color: var(--surface-raised); }
.pl-tg .pl-one__open.pl-tg__row[aria-expanded="true"] { box-shadow: inset 2px 0 0 var(--you); }
.pl-tg__rk { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-tg__cap { display: block; width: 64px; height: 24px; flex: none; object-fit: cover; border-radius: 3px; border: 1px solid var(--card-edge); background-color: var(--surface-raised); }
.pl-tg__cap--none { background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--hairline) 5px 6px); }
.pl-tg__nm { min-width: 0; display: flex; flex-direction: column; }
.pl-tg__nm b { font-weight: 500; font-size: var(--type-body-size); line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tg__mt { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); white-space: normal; }
.pl-tg__yg { color: var(--link); font-weight: 600; white-space: nowrap; }
.pl-tg__yg::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background-color: var(--you); margin: 0 5px 1px 0; vertical-align: middle; }
.pl-tg__fig { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: var(--type-body-size); line-height: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-tg__fig small { font-size: var(--type-label-size); line-height: 16px; font-weight: 400; color: var(--ink-muted); }

/* Ranks 1-3: the bigger capsule (112 x 42, sharp from the stored 231 x 87 on a 2x screen). */
.pl-tg .pl-one__open.pl-tg__row.is-big { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 6px; padding: 10px 4px; }
.pl-tg__row.is-big .pl-tg__rk { font-size: var(--type-heading-size); line-height: 26px; color: var(--ink); font-weight: 600; align-self: start; grid-row: 1; }
.pl-tg__row.is-big .pl-tg__cap { width: 112px; height: 42px; border-radius: 4px; grid-column: 2; grid-row: 1; }
.pl-tg__row.is-big .pl-tg__fig { grid-column: 3; grid-row: 1; font-size: var(--type-heading-size); line-height: 24px; align-self: center; }
.pl-tg__row.is-big .pl-tg__nm { grid-column: 2 / 4; grid-row: 2; }
.pl-tg__row.is-big .pl-tg__nm b { font-weight: 600; white-space: normal; }
/* One wide list (below 1360 px): the big rows sit on one line. */
@media (max-width: 1359.98px) {
  .pl-tg .pl-one__open.pl-tg__row.is-big { grid-template-columns: 28px auto minmax(0, 1fr) auto; grid-template-rows: auto; }
  .pl-tg__row.is-big .pl-tg__cap { grid-column: 2; }
  .pl-tg__row.is-big .pl-tg__nm { grid-column: 3; grid-row: 1; }
  .pl-tg__row.is-big .pl-tg__fig { grid-column: 4; }
}

/* The opened row. */
.pl-tg__det { padding: 4px 0 14px 34px; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
.pl-tg__det p { margin: 0 0 6px; }
.pl-tg__chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 2px 0 8px; padding: 0; }
.pl-tg__chips li { border: 1px solid var(--card-edge); border-radius: var(--radius-sm); padding: 0 6px; font-size: var(--type-label-size); line-height: 20px; color: var(--ink); }
.pl-tg__chips li.is-mine { border-color: var(--you); color: var(--link); }
.pl-tg__steam { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--link); font-weight: 500; text-decoration: none; }
.pl-tg__steam:hover { text-decoration: underline; }
.pl-tg__steam:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-tg__spark { display: block; width: 100%; max-width: 300px; height: auto; margin: 4px 0 2px; }
.pl-tg__spark text { font-family: var(--font-sans); font-size: var(--type-label-size); fill: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-tg__spark-line { fill: none; stroke: var(--ink-muted); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.pl-tg__spark-dot { fill: var(--ink); }
.pl-tg__spark-base { stroke: var(--hairline); stroke-width: 1; }

.pl-tg__card .pl-empty { gap: 6px; }
.pl-tg__card .pl-empty__link { min-height: 32px; color: var(--link); }
.pl-tg__credit { margin: 14px 0 0; font: 400 var(--type-meta-size)/16px var(--font-mono); color: var(--ink-muted-glass); }

/* Phones: no sideways scroll, the opened row uses the full width. */
@media (max-width: 767.98px) {
  .pl-tg__card { padding: 14px 12px 8px; }
  .pl-tg__det { padding-left: 0; }
  .pl-tg__tags { display: none; }  /* phones: tags only in the opened row */
  .pl-tg__row.is-big .pl-tg__cap { width: 96px; height: 36px; }
  .pl-tg .pl-one__open.pl-tg__row.is-big { grid-template-columns: 24px auto minmax(0, 1fr) auto; }
}

/* Home Market boxes (decision 130): every box keeps its rows together at the top, and the
   three stand side by side only where each is wide enough (the sidebar leaves about 225 px
   a box at 1024 px). */
.pl-home-mk.pl-card { align-content: start; }
@media (max-width: 1180px) {
  .pl-home-market { grid-template-columns: 1fr; }
}

/* Rekoup KPIs (staff page /staff/rekoup-kpis/, admins only; mock-up rekoup-kpis v3, decision 2026-11-02-rekoup-kpis).
   Tokens only. Sizes on the 7-step scale: the mock-up's 17 and 20 px figures are the 16 px heading size,
   its 28 px headline the figure-xl size. The earnings band is a violet tint behind text, not a shine item. */
.pl-rk { min-width: 0; --rk-earn: var(--link); } /* earn: an alias of link, not a new colour (decision 2026-11-02-rekoup-kpis-live) */
.pl-rk__ev { color: var(--rk-earn); } /* Rekoup earnings figures: the one violet text that is not a control */
.pl-rk__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 4px; }
.pl-rk__head .pl-page-title { margin: 0; }
.pl-rk__add { margin-left: auto; } /* top right, also on an empty page */
.pl-rk__who, .pl-rk__demo { font-size: var(--type-label-size); line-height: 16px; font-weight: 500; color: var(--ink-muted-glass); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 3px 10px; }
.pl-rk__demo { border-style: dashed; border-radius: var(--radius-sm); }
.pl-rk__fresh { font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: 18px; color: var(--ink-muted-glass); margin: 4px 0 0; }
.pl-rk__basis { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted-glass); margin: 2px 0 0; }
.pl-rk__card { margin-top: 18px; min-width: 0; }
.pl-rk__ch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pl-rk__ch h2 { font-size: var(--type-heading-size); line-height: 22px; font-weight: 600; margin: 0; }
.pl-rk__sub { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
.pl-rk__lab { display: block; font-size: var(--type-label-size); line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.pl-rk__quiet { background: none; border: 0; padding: 0 2px; color: var(--link); font-size: var(--type-body-sm-size); line-height: 20px; cursor: pointer; min-height: 24px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; }
.pl-rk__quiet:hover { text-decoration: underline; }
.pl-rk .w, .pl-rk__warn { color: var(--warning-ink); font-weight: 500; }

/* hero: Rekoup earnings (live v2, Version B top): four figures, the pace bar, by month and by title */
.pl-rk__lab16 { display: block; font-size: var(--type-heading-size); line-height: 22px; font-weight: 600; color: var(--ink); }
.pl-rk__lab16 .d { font-size: var(--type-body-size); font-weight: 400; color: var(--ink-muted); white-space: nowrap; } /* the dot stays with its date */
.pl-rk__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.pl-rk__strip > div { padding: 0 20px; border-left: 1px solid var(--hairline); min-width: 0; }
.pl-rk__strip > div:first-child { padding-left: 0; border-left: 0; }
.pl-rk__num { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 4px; }
.pl-rk__big { font-size: var(--type-figure-xl-size); line-height: 34px; font-weight: var(--type-figure-xl-weight); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.pl-rk__none { margin-top: 8px; }
.pl-rk__chip { display: inline-block; margin-left: 10px; font-size: var(--type-label-size); line-height: 16px; font-weight: 500; color: var(--warning-ink); border: 1px solid var(--warning-ink); border-radius: var(--radius-pill); padding: 2px 8px; white-space: nowrap; }
.pl-rk__miss { color: var(--warning-ink); font-size: var(--type-body-sm-size); line-height: 20px; margin: 6px 0 0; font-weight: 500; }
.pl-rk__s { display: block; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-rk__per { min-width: 0; }

/* pace bar (design sheet v3.21): track, so-far fill, middle-estimate tick; no band */
.pl-rk__pace { margin-top: 14px; }
.pl-rk__rb { position: relative; height: 22px; }
.pl-rk__rb .tr { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background-color: var(--hairline); }
.pl-rk__rb .so { position: absolute; left: 0; top: 7px; height: 8px; border-radius: 0 4px 4px 0; background-color: var(--rk-earn); }
.pl-rk__rb .mid { position: absolute; top: 0; width: 2px; height: 22px; background-color: var(--ink); }
.pl-rk__rbl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pl-rk__rbl b { font-weight: 600; }

.pl-rk__hero2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 40px; margin-top: 20px; }
.pl-rk__mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

/* by-month bars (design sheet v3.21): earn bars from zero, the running month on a sand box */
.pl-rk__mb { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 8px; height: 150px; margin-top: 8px; }
.pl-rk__mbc { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-sm); padding: 0 3px; margin: 0 -3px; }
.pl-rk__mbc.is-run { background-color: var(--promo-soft); }
.pl-rk__mbv { position: relative; z-index: 1; height: 18px; display: flex; justify-content: center; font-size: var(--type-label-size); line-height: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-rk__mbv .short { display: none; }
.pl-rk__mbt { flex: 1; display: flex; align-items: flex-end; }
.pl-rk__mbb { display: block; width: 100%; border-radius: 3px 3px 0 0; background-color: var(--rk-earn); }
.pl-rk__mbl { height: 20px; padding-top: 4px; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); text-align: center; }
.pl-rk__key { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: var(--type-label-size); line-height: 16px; color: var(--ink); margin-top: 8px; }
.pl-rk__key i { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.pl-rk__key .k-sand { width: 14px; height: 12px; background-color: var(--promo-soft); border: 1px solid var(--promo); border-radius: 2px; }

/* by-month labels (Fredrik, 2026-11-06): an amount above every bar with earnings. Whole dollars
   while the longest fits its column, else every label shortened together ($11k), else every
   third month and the last, as the month names under the bars on a phone. data-fl and data-sl
   hold the longest label's length; about 7.5 px per character at the label size. */
.pl-rk__per--m { container: rkmb / inline-size; }
@container rkmb (max-width: 293.98px) { .pl-rk__mb[data-fl="3"] .full { display: none; } .pl-rk__mb[data-fl="3"] .short { display: inline; } }
@container rkmb (max-width: 383.98px) { .pl-rk__mb[data-fl="4"] .full { display: none; } .pl-rk__mb[data-fl="4"] .short { display: inline; } }
@container rkmb (max-width: 473.98px) { .pl-rk__mb[data-fl="5"] .full { display: none; } .pl-rk__mb[data-fl="5"] .short { display: inline; } }
@container rkmb (max-width: 563.98px) { .pl-rk__mb[data-fl="6"] .full { display: none; } .pl-rk__mb[data-fl="6"] .short { display: inline; } }
@container rkmb (max-width: 653.98px) { .pl-rk__mb[data-fl="7"] .full { display: none; } .pl-rk__mb[data-fl="7"] .short { display: inline; } }
@container rkmb (max-width: 743.98px) { .pl-rk__mb[data-fl="8"] .full { display: none; } .pl-rk__mb[data-fl="8"] .short { display: inline; } }
@container rkmb (max-width: 833.98px) { .pl-rk__mb[data-fl="9"] .full { display: none; } .pl-rk__mb[data-fl="9"] .short { display: inline; } }
@container rkmb (max-width: 923.98px) { .pl-rk__mb[data-fl="10"] .full { display: none; } .pl-rk__mb[data-fl="10"] .short { display: inline; } }
@container rkmb (max-width: 1013.98px) { .pl-rk__mb[data-fl="11"] .full { display: none; } .pl-rk__mb[data-fl="11"] .short { display: inline; } }
@container rkmb (max-width: 1103.98px) { .pl-rk__mb[data-fl="12"] .full { display: none; } .pl-rk__mb[data-fl="12"] .short { display: inline; } }
@container rkmb (max-width: 293.98px) { .pl-rk__mb[data-sl="3"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="3"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="3"] .full { display: inline; } .pl-rk__mb[data-sl="3"] .short { display: none; } }
@container rkmb (max-width: 383.98px) { .pl-rk__mb[data-sl="4"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="4"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="4"] .full { display: inline; } .pl-rk__mb[data-sl="4"] .short { display: none; } }
@container rkmb (max-width: 473.98px) { .pl-rk__mb[data-sl="5"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="5"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="5"] .full { display: inline; } .pl-rk__mb[data-sl="5"] .short { display: none; } }
@container rkmb (max-width: 563.98px) { .pl-rk__mb[data-sl="6"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="6"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="6"] .full { display: inline; } .pl-rk__mb[data-sl="6"] .short { display: none; } }
@container rkmb (max-width: 653.98px) { .pl-rk__mb[data-sl="7"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="7"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="7"] .full { display: inline; } .pl-rk__mb[data-sl="7"] .short { display: none; } }
@container rkmb (max-width: 743.98px) { .pl-rk__mb[data-sl="8"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="8"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="8"] .full { display: inline; } .pl-rk__mb[data-sl="8"] .short { display: none; } }
@container rkmb (max-width: 833.98px) { .pl-rk__mb[data-sl="9"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="9"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="9"] .full { display: inline; } .pl-rk__mb[data-sl="9"] .short { display: none; } }
@container rkmb (max-width: 923.98px) { .pl-rk__mb[data-sl="10"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="10"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="10"] .full { display: inline; } .pl-rk__mb[data-sl="10"] .short { display: none; } }
@container rkmb (max-width: 1013.98px) { .pl-rk__mb[data-sl="11"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="11"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="11"] .full { display: inline; } .pl-rk__mb[data-sl="11"] .short { display: none; } }
@container rkmb (max-width: 1103.98px) { .pl-rk__mb[data-sl="12"] .pl-rk__mbc:nth-child(3n+2):not(:last-child) .pl-rk__mbv, .pl-rk__mb[data-sl="12"] .pl-rk__mbc:nth-child(3n+3):not(:last-child) .pl-rk__mbv { visibility: hidden; } .pl-rk__mb[data-sl="12"] .full { display: inline; } .pl-rk__mb[data-sl="12"] .short { display: none; } }
@container rkmb (max-width: 146.98px) { .pl-rk__mb[data-fl="3"] .full { display: none; } .pl-rk__mb[data-fl="3"] .short { display: inline; } }
@container rkmb (max-width: 191.98px) { .pl-rk__mb[data-fl="4"] .full { display: none; } .pl-rk__mb[data-fl="4"] .short { display: inline; } }
@container rkmb (max-width: 236.98px) { .pl-rk__mb[data-fl="5"] .full { display: none; } .pl-rk__mb[data-fl="5"] .short { display: inline; } }
@container rkmb (max-width: 281.98px) { .pl-rk__mb[data-fl="6"] .full { display: none; } .pl-rk__mb[data-fl="6"] .short { display: inline; } }
@container rkmb (max-width: 326.98px) { .pl-rk__mb[data-fl="7"] .full { display: none; } .pl-rk__mb[data-fl="7"] .short { display: inline; } }
@container rkmb (max-width: 371.98px) { .pl-rk__mb[data-fl="8"] .full { display: none; } .pl-rk__mb[data-fl="8"] .short { display: inline; } }
@container rkmb (max-width: 416.98px) { .pl-rk__mb[data-fl="9"] .full { display: none; } .pl-rk__mb[data-fl="9"] .short { display: inline; } }
@container rkmb (max-width: 461.98px) { .pl-rk__mb[data-fl="10"] .full { display: none; } .pl-rk__mb[data-fl="10"] .short { display: inline; } }
@container rkmb (max-width: 506.98px) { .pl-rk__mb[data-fl="11"] .full { display: none; } .pl-rk__mb[data-fl="11"] .short { display: inline; } }
@container rkmb (max-width: 551.98px) { .pl-rk__mb[data-fl="12"] .full { display: none; } .pl-rk__mb[data-fl="12"] .short { display: inline; } }

/* this month by title, as bars */
.pl-rk__hb { list-style: none; margin: 6px 0 0; padding: 0; }
.pl-rk__hbar { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: var(--type-body-sm-size); line-height: 20px; padding: 5px 0; border-bottom: 1px solid var(--hairline); }
.pl-rk__hbar:last-child { border-bottom: 0; }
.pl-rk__hbar .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-rk__hbar .trk { display: block; }
.pl-rk__hbar .bar { display: block; height: 8px; border-radius: 0 4px 4px 0; background-color: var(--rk-earn); }
.pl-rk__hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pl-rk__hbar .why { grid-column: 2 / -1; font-size: var(--type-label-size); line-height: 16px; }

/* net-change bars (design sheet v3.21): violet above and below zero, never good/bad colours */
.pl-rk__nb { display: block; width: 150px; height: 36px; overflow: visible; }
.pl-rk__nb .bar { fill: var(--you); }
.pl-rk__nb .zero { stroke: var(--border-strong); stroke-width: 1; }
.pl-rk__nb .fest { fill: none; stroke: var(--peer-line); stroke-width: 1.5; stroke-dasharray: 2 2; }
.pl-rk__pl td.sp { width: 170px; padding-top: 14px; }
.pl-rk__spw { margin: 6px 0; }
.pl-rk__spw .pl-rk__nb { width: 100%; }

/* Released: the metric by period grid */
.pl-rk__mx, .pl-rk__pl { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pl-rk__mx th, .pl-rk__mx td, .pl-rk__pl th, .pl-rk__pl td { padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.pl-rk__mx thead th, .pl-rk__pl thead th { font-size: var(--type-label-size); line-height: 16px; font-weight: 500; color: var(--ink-muted); text-align: right; border-bottom: 1px solid var(--card-edge); }
.pl-rk__mx thead th { white-space: nowrap; }
.pl-rk__pl thead th small .d { white-space: nowrap; } /* a date or range such as Nov 1–2 stays on one line */
.pl-rk__mx thead th.l, .pl-rk__pl thead th.l { text-align: left; }
.pl-rk__mx thead th small, .pl-rk__pl thead th small { display: block; font-weight: 400; font-size: var(--type-label-size); }
.pl-rk__mx tbody th.g { text-align: left; font-weight: 400; width: 270px; border-bottom: 1px solid var(--card-edge); }
.pl-rk__mx td.m { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); white-space: nowrap; width: 150px; }
.pl-rk__mx td.v, .pl-rk__pl td.v { text-align: right; white-space: nowrap; }
.pl-rk__mx tr.last td, .pl-rk__mx tr.last th { border-bottom: 1px solid var(--card-edge); }
.pl-rk__mx tbody:last-child tr.last td, .pl-rk__mx tbody:last-child th.g { border-bottom: 0; }
.pl-rk .v .f { display: block; font-size: var(--type-heading-size); line-height: 24px; font-weight: 600; }
.pl-rk .v .s { display: block; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); white-space: normal; max-width: 210px; margin-left: auto; }
.pl-rk__mx tr.earn td { background-color: var(--violet-tint); }
.pl-rk__mx tr.earn td.m { color: var(--ink); font-weight: 600; }
.pl-rk__mx td.m .pl-rk__edit { display: flex; padding: 0; font-weight: 500; }
.pl-rk__mx tr.earn .f { color: var(--rk-earn); }
.pl-rk__mx td.na { color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; text-align: right; }
.pl-rk__mx td.state { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); white-space: normal; text-align: left; }
.pl-rk__mx td.state b { color: var(--ink); font-weight: 500; }
.pl-rk__mx td.state b.w { color: var(--warning-ink); }
.pl-rk__gname { display: block; font-size: var(--type-heading-size); line-height: 24px; min-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.pl-rk__gname:hover { text-decoration: underline; color: var(--link); }
.pl-rk__gmeta { display: flex; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; }
.pl-rk__gmeta .st { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* the studio name gives way, never the date */
.pl-rk__gmeta .dt { flex: none; }
.pl-rk__mx th.g .pl-rk__gmeta, .pl-rk__pl tbody th .pl-rk__gmeta { width: 0; min-width: 100%; } /* studio and date on one line, the studio cut with an ellipsis: never widens the column */
.pl-rk__pl tbody th .pl-rk__edit { display: flex; padding: 0; }
.pl-rk__pl tbody th { text-align: left; font-weight: 400; width: 270px; }
.pl-rk__pl tbody tr:last-child th, .pl-rk__pl tbody tr:last-child td { border-bottom: 0; }

/* phone: one card per title, rows as labelled 2 x 2 grids */
.pl-rk__pc { border-top: 1px solid var(--card-edge); padding: 12px 0 10px; }
.pl-rk__pc:first-child { border-top: 0; padding-top: 4px; }
.pl-rk__pm { margin-top: 10px; }
.pl-rk__pm .ml { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); font-weight: 500; }
.pl-rk__pm.earn { background-color: var(--violet-tint); border-radius: var(--radius-sm); padding: 6px 8px; margin-left: -8px; margin-right: -8px; }
.pl-rk__pm.earn .ml { color: var(--ink); }
.pl-rk__pm.earn .f { color: var(--rk-earn); }
.pl-rk__pm.earn .ml { font-weight: 600; }
.pl-rk__pg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 2px; }
.pl-rk__pg .v .s { margin-left: 0; }
.pl-rk__pst { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); margin: 6px 0 0; }
.pl-rk__pst b { color: var(--ink); font-weight: 500; }
.pl-rk__pst b.w { color: var(--warning-ink); }

@media (max-width: 1180px) {
  .pl-rk__hero2 { grid-template-columns: 1fr; }
  .pl-rk__mx tbody th.g, .pl-rk__pl tbody th { width: 150px; }
  /* 768 to 1180: headings and metric names may wrap, so the grid fits its card (it ran 10 px wide at 768) */
  .pl-rk__mx thead th, .pl-rk__mx td.m { white-space: normal; }
  .pl-rk__mx thead th small { white-space: nowrap; }
}
@media (max-width: 767.98px) {
  .pl-rk__strip { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .pl-rk__strip > div { padding: 0 12px; }
  .pl-rk__strip > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pl-rk__strip .pl-rk__lab16 .d { display: block; } /* the date on its own line, never a dot at a line end */
  .pl-rk__strip .pl-rk__lab16 .dot { display: none; }
  .pl-rk__mb { height: 120px; gap: 0 4px; }
  .pl-rk__mbc:nth-child(3n+2) .pl-rk__mbl, .pl-rk__mbc:nth-child(3n+3) .pl-rk__mbl { visibility: hidden; }
  .pl-rk__mbc:last-child .pl-rk__mbl { visibility: visible; }
}

/* the terms form */
.pl-rk__form { max-width: 760px; }
.pl-rk__fl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pl-rk__fl > label, .pl-rk__fk { font-size: var(--type-body-sm-size); line-height: 20px; font-weight: 500; padding-top: 6px; }
.pl-rk__hint { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); margin-top: 4px; }
.pl-rk__inp { width: 100%; max-width: 220px; min-height: 36px; font-variant-numeric: tabular-nums; }
.pl-rk__inp.is-bad { border-color: var(--critical-ink); box-shadow: 0 0 0 1px var(--critical-ink); }
.pl-rk__ro { font-size: var(--type-body-size); line-height: 20px; padding-top: 6px; }
.pl-rk__tiers { border-collapse: collapse; width: 100%; max-width: 520px; }
.pl-rk__tiers th { font-size: var(--type-label-size); line-height: 16px; font-weight: 500; color: var(--ink-muted); text-align: left; padding: 0 8px 4px 0; }
.pl-rk__tiers td { padding: 4px 8px 4px 0; vertical-align: middle; }
.pl-rk__tiers .pl-rk__inp { max-width: none; }
.pl-rk__tiers .fixed { font-size: var(--type-body-size); color: var(--ink-muted); padding-left: 2px; font-variant-numeric: tabular-nums; }
.pl-rk__pct { display: flex; align-items: center; gap: 6px; }
.pl-rk__tiers .pl-rk__pct .pl-rk__inp { max-width: 84px; }
.pl-rk__rm { background: none; border: 0; color: var(--critical-ink); font-size: var(--type-body-sm-size); cursor: pointer; min-height: 32px; padding: 0 6px; }
.pl-rk__err { color: var(--critical-ink); font-size: var(--type-label-size); line-height: 16px; margin-top: 4px; }
.pl-rk__errsum { border: 1px solid var(--critical-ink); border-radius: var(--radius-md); padding: 10px 14px; margin: 10px 0 4px; font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-rk__errsum b { color: var(--critical-ink); }
.pl-rk__errsum ul { margin: 4px 0 0; padding-left: 18px; }
.pl-rk__preview { font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); margin-top: 10px; }
.pl-rk__preview b { color: var(--ink); font-weight: 600; }
.pl-rk__ok { color: var(--good-ink); font-size: var(--type-body-sm-size); line-height: 20px; margin-top: 10px; font-weight: 500; }
.pl-rk__btns { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pl-rk__unsaved { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background-color: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 14px; margin-top: 14px; font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-rk__unsaved[hidden] { display: none; }
.pl-rk__dlg { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background-color: var(--surface); color: var(--ink); padding: 16px 18px; max-width: 440px; box-shadow: var(--shadow-pop); }
.pl-rk__dlg h3 { margin: 0 0 4px; font-size: var(--type-heading-size); line-height: 22px; }
.pl-rk__dlg p { margin: 0 0 12px; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
.pl-rk__danger { color: var(--critical-ink); }
@media (max-width: 767.98px) {
  .pl-rk__fl { grid-template-columns: 1fr; }
  .pl-rk__tiers .pl-rk__pct .pl-rk__inp { max-width: 68px; min-width: 56px; }
}

.pl-rk__pvs { margin-top: 4px; } /* phone: the one "Latest complete day: Nov 2 vs Nov 1" line per card (Fredrik, 2026-11-04) */

/* Discount approvals (mock-up discount-approval v2, Fredrik 2026-11-02). Tokens only. */

/* Tab row on a Tier 1 board: it wraps instead of scrolling, so no tab hides; at 1024 and on a
   phone the counts are the number alone and Third-party uses its short label. */
.pl-pb__switch--wrap { flex-wrap: wrap; overflow-x: visible; }
@media (max-width: 1024px) {
  .pl-pb__switch--wrap .pl-pb__count-word { display: none; }
  .pl-pb__switch--wrap .pl-tabs__long { display: none; }
  .pl-pb__switch--wrap .pl-tabs__short { display: inline; }
}

/* Status chips. Proposed: a dotted ring in violet. Approved: a tick in good-ink. Not approved:
   ink with a cross (an answer, not an error). Withdrawn and Not answered: muted, hollow ring. */
.pl-pb__status--proposed { color: var(--violet-ink); font-weight: 500; }
.pl-pb__status--proposed::before { width: 9px; height: 9px; background: transparent; border: 1.5px dotted var(--you); box-sizing: border-box; }
.pl-pb__status--withdrawn, .pl-pb__status--not_answered { color: var(--ink-muted); }
.pl-pb__status--withdrawn::before, .pl-pb__status--not_answered::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-muted); }
.pl-pb__status--not_approved { color: var(--ink); font-weight: 500; }
.pl-da__st { display: inline-flex; align-items: center; gap: 4px; font-size: var(--type-label-size); line-height: 16px; font-weight: 500; white-space: nowrap; }
.pl-da__st svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-da__st--ok { color: var(--good-ink); }
.pl-da__st--no { color: var(--ink); }
.pl-da__st--no svg { color: var(--ink-muted); }

/* Timeline: a proposal is a bar with a 2 px dotted outline in its type colour, no fill. */
.pl-bd__it--proposed { background-color: transparent; border: 2px dotted var(--c); color: var(--ink); }
.pl-bd__key--proposed { border: 2px dotted var(--c); }

/* Page head, figures, section heads. One block under the tabs: the page grid's wide gap
   stays between the head, the tabs and this block, never between its own cards. */
.pl-da { min-width: 0; }
.pl-da > .pl-da__figs:first-child { margin-top: 0; }
.pl-da__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pl-da__stafftag { padding: 0 var(--space-2); border: 1px solid var(--hairline); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: var(--type-label-size); line-height: 20px; }
.pl-da__figs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-5); margin: var(--space-4) 0; }
.pl-da__fig { display: flex; flex-direction: column; gap: 2px; }
.pl-da__fig span { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-da__fig b { font-size: var(--type-figure-size); line-height: var(--type-figure-line); font-weight: var(--type-figure-weight); font-variant-numeric: tabular-nums; }
.pl-da__all { margin-inline-start: auto; }
.pl-da__sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin: var(--space-5) 0 var(--space-2); }
.pl-da__none { margin: var(--space-3) 0; }
.pl-da__empty { margin-top: var(--space-4); }
.pl-da__waiting { margin: var(--space-2) 0; }
.pl-da__waiting .pl-da__lnk { margin-inline-start: auto; }

/* The proposal card: three columns at 1280 and wider (info, products, actions), two at 1024
   (actions below), one on a phone. */
.pl-da__card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 180px; grid-template-areas: "info prod act" "note note act"; gap: var(--space-3) var(--space-5); padding: var(--space-4); margin-bottom: var(--space-3); }
.pl-da__info { grid-area: info; min-width: 0; }
.pl-da__prod { grid-area: prod; min-width: 0; }
.pl-da__note { grid-area: note; min-width: 0; }
.pl-da__act { grid-area: act; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.pl-da__act form, .pl-da__act .pl-btn { width: 100%; }
.pl-da__act form .pl-btn { width: 100%; justify-content: center; }
.pl-da__act .pl-btn--quiet { justify-content: center; padding-inline: var(--space-2); }
.pl-da__card.is-open { grid-template-areas: "info prod"; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr); }
.pl-da__card.is-open .pl-da__no, .pl-da__card.is-open .pl-da__fixed { grid-column: 1 / -1; }
.pl-da__card.is-open .pl-da__act { flex-direction: row; flex-wrap: wrap; align-items: center; grid-area: auto; grid-column: 1 / -1; }
.pl-da__card.is-open .pl-da__act .pl-btn, .pl-da__card.is-open .pl-da__act form { width: auto; }
.pl-da__form { display: contents; }
.pl-da__gl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-da__gl b { color: var(--ink); font-weight: 600; }
.pl-da__sp { flex: 1; }
.pl-da__name { margin: var(--space-1) 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-da__type { display: inline-flex; align-items: center; gap: 6px; }
.pl-da__dot { width: 9px; height: 9px; border-radius: var(--radius-sm); background-color: var(--c, var(--type-own)); flex: none; }
.pl-da__dates { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.pl-da__pt { width: 100%; border-collapse: collapse; font-size: var(--type-body-sm-size); }
.pl-da__pt th { text-align: left; font-weight: 500; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); padding: 0 var(--space-2) var(--space-1) 0; vertical-align: bottom; }
.pl-da__pt td { padding: var(--space-1) var(--space-2) var(--space-1) 0; border-top: 1px solid var(--hairline); vertical-align: middle; }
.pl-da__pt th:nth-child(n+2), .pl-da__pt td:nth-child(n+2) { text-align: right; }
.pl-da__last { max-width: 120px; white-space: normal; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-da__lastline { display: none; margin: var(--space-1) 0 0; }
.pl-da__prodn { display: block; color: var(--ink); }
.pl-da__prodk { display: block; color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-da__dep { font-size: var(--type-figure-size); line-height: var(--type-figure-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-da__depin { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.pl-da__depin input { width: 3.5em; min-height: 36px; padding: 2px var(--space-2); text-align: right; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.pl-da__was { display: block; color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-da__by { color: var(--ink); font-weight: 600; }
.pl-da__note .pl-meta { margin: 0 0 var(--space-1); }
.pl-da__quote { margin: var(--space-1) 0 0; padding-inline-start: var(--space-3); border-inline-start: 2px solid var(--hairline); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-da__who { display: block; color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-da__fixed { display: flex; gap: var(--space-2); align-items: center; margin: 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); }
.pl-da__fixed svg { width: 16px; height: 16px; flex: none; }
.pl-da__err { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--critical-ink); border-radius: var(--radius-md); color: var(--ink); font-size: var(--type-body-sm-size); grid-column: 1 / -1; }
.pl-da__err svg { width: 16px; height: 16px; flex: none; color: var(--critical-ink); }

/* Don't approve: ticks inside bordered labels (32 px, 44 px on a phone), a required reason. */
.pl-da__no { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-2); border-top: 1px solid var(--hairline); padding-top: var(--space-3); }
.pl-da__no-title { margin: 0; font-size: var(--type-body-size); font-weight: 600; }
.pl-da__ticks { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.pl-da__ticks legend { padding: 0; margin-bottom: var(--space-1); font-size: var(--type-body-sm-size); font-weight: 500; }
.pl-da__cb { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font-size: var(--type-body-sm-size); cursor: pointer; }
.pl-da__cb:has(input:checked:not(:disabled)) { border-color: var(--violet); background-color: var(--violet-tint); }
.pl-da__cb input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.pl-da__fl { display: flex; flex-direction: column; gap: 2px; font-size: var(--type-body-sm-size); font-weight: 500; }
.pl-da__hint { color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 400; }
.pl-da__no textarea { min-height: 88px; padding: var(--space-2); font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.pl-da__count { margin: 0; text-align: right; }

/* Earlier: collapsed by default, only its heading and an expand control. */
.pl-da__earlier { margin-top: var(--space-5); }
.pl-da__earlier > summary { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; cursor: pointer; list-style: none; }
.pl-da__earlier > summary::-webkit-details-marker { display: none; }
.pl-da__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.pl-da__xb { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--link); font-size: var(--type-body-sm-size); }
.pl-da__xb svg { width: 16px; height: 16px; transition: transform .15s; }
.pl-da__earlier[open] .pl-da__xb svg { transform: rotate(180deg); }
.pl-da__x-close { display: none; }
.pl-da__earlier[open] .pl-da__x-open { display: none; }
.pl-da__earlier[open] .pl-da__x-close { display: inline; }
.pl-da__rows { padding: 0 var(--space-4); }
.pl-da__ans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .9fr); gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--hairline); }
.pl-da__ans:first-child { border-top: 0; }
.pl-da__aname { font-size: var(--type-body-size); font-weight: 600; }
.pl-da__chg { font-variant-numeric: tabular-nums; font-size: var(--type-body-sm-size); }
.pl-da__chg s { color: var(--ink-muted); }
.pl-da__r { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); text-align: right; }
.pl-da__chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.pl-da__chip { padding: 0 var(--space-2); border: 1px solid var(--hairline); border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: 20px; }
.pl-da__lnk { color: var(--link); font-size: var(--type-body-sm-size); text-decoration: none; }
.pl-da__lnk:hover { text-decoration: underline; }
.pl-da__chopen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-2); }
.pl-da__chopen > .pl-meta { flex-basis: 100%; margin: 0; }
.pl-da__chopen .pl-da__no { flex-basis: 100%; }
.pl-da__prodrow { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Undo toast: stays for its whole 2-minute window (WCAG 2.2.1) or until closed. */
.pl-da__toast { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); }
.pl-da__toast-text { display: flex; flex-direction: column; flex: 1 1 220px; font-size: var(--type-body-sm-size); }
.pl-da__left { color: var(--ink-muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.pl-da__x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); cursor: pointer; }
.pl-da__x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Promotions: all studios: the Discount approvals counts per studio. */
.pl-da__ov { padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
.pl-da__ov .pl-da__sh { margin-top: 0; }
.pl-da__ovt { width: 100%; border-collapse: collapse; font-size: var(--type-body-sm-size); }
.pl-da__ovt th, .pl-da__ovt td { padding: var(--space-1) var(--space-2); border-top: 1px solid var(--hairline); text-align: right; font-variant-numeric: tabular-nums; }
.pl-da__ovt thead th { border-top: 0; color: var(--ink-muted); font-weight: 500; font-size: var(--type-label-size); }
.pl-da__ovt th:first-child { text-align: left; font-weight: 500; }
.pl-da__ovt .is-zero { color: var(--ink-muted); }

/* How to add it, in the Add a promotion form (staff on a Tier 1 board). */
/* A normal radio row: each radio right before its own label, the whole label the target
   (32 px desktop, 44 px phone; design review of PR 564). */
.pl-pb__sendas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-5); margin: 0; padding: 0; border: 0; }
.pl-pb__sendas legend { margin-bottom: var(--space-1); padding: 0; font-weight: 600; font-size: var(--type-label-size); }
.pl-pb__sendas .helptext, .pl-pb__sendas .errorlist { flex-basis: 100%; margin: 0; }
.pl-pb__form .pl-pb__sendas-opt { display: inline-flex; flex-direction: row; align-items: center; gap: var(--space-2); min-height: 32px; font: 400 var(--type-body-sm-size)/20px var(--font-sans); cursor: pointer; }
.pl-pb__form .pl-pb__sendas-opt input[type="radio"] { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--primary); }
.pl-pb__again { display: flex; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--hairline); border-radius: var(--radius-md); font-size: var(--type-body-sm-size); }
.pl-pb__again svg { width: 16px; height: 16px; flex: none; color: var(--ink-muted); }
.pl-pb__again-quote { margin: var(--space-1) 0 0; color: var(--ink-muted); }

@media (max-width: 1279.98px) {
  .pl-da__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "info prod" "note note" "act act"; }
  .pl-da__act { flex-direction: row; flex-wrap: wrap; }
  .pl-da__act form, .pl-da__act .pl-btn { width: auto; }
}
@media (max-width: 767.98px) {
  .pl-da__card, .pl-da__card.is-open { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "prod" "note" "act"; padding: var(--space-3); }
  .pl-da__last { display: none; }
  .pl-da__lastline { display: block; }
  .pl-da__act { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-da__act form:first-child { grid-column: 1 / -1; }
  .pl-da__act .pl-btn, .pl-da__act form, .pl-da__act form .pl-btn { width: 100%; min-height: 44px; justify-content: center; }
  .pl-da__card.is-open .pl-da__act { display: flex; flex-direction: column; align-items: stretch; }
  .pl-da__cb, .pl-pb__form .pl-pb__sendas-opt { min-height: 44px; width: 100%; }
  .pl-da__depin input { min-height: 44px; }
  .pl-da__ans { grid-template-columns: minmax(0, 1fr); }
  .pl-da__r { align-items: flex-start; text-align: left; }
  .pl-da__figs { gap: var(--space-4); }
  .pl-da__all { margin-inline-start: 0; width: 100%; }
  /* Don't approve on a phone: the open card on its own. */
  .pl-da__card.is-open ~ .pl-da__card, .pl-da__card:has(~ .pl-da__card.is-open) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pl-da__xb svg { transition: none; } }

/* Discount approvals grouped by platform (Fredrik 2026-11-08; design owner's header, review of
   PR 756 part 2): Promotion work's group type as a plain heading, no chevron, always open. The
   date on the right wraps under the platform on a narrow phone, never cut. */
.pl-da__gh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); margin: var(--space-4) 0 var(--space-2); color: var(--ink); font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 400; }
.pl-da__gh b { font-weight: 600; }
.pl-da__ghm { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); white-space: nowrap; }
/* "Earlier" is the studio list's h2 (holding its title and its line), inside its summary: it
   keeps the look it had as a plain line, so no margin, size or weight of its own. */
.pl-da__earlier .pl-da__sumh { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
/* On a phone an open card stands on its own (discount-approvals.css): the other platforms' groups
   go with their cards, so no heading is left without its rows. */
@media (max-width: 767.98px) {
  .pl-da:has(.pl-da__card.is-open) .pl-da__grp:not(:has(.pl-da__card.is-open)) { display: none; }
}

/* Discount approvals in View as (mock-up proposal-highlight-v1, "View as / Approvals";
   Fredrik 2026-11-06): the card's three answers are drawn locked (decision 31, base.css) where
   the studio's buttons are, with one reason line under them. Same layout as the studio's card. */
.pl-da__act--locked .pl-btn { justify-content: center; padding-inline: var(--space-2); }
@media (max-width: 1279.98px) {
  .pl-da__act--locked .pl-why { flex-basis: 100%; }
}
@media (max-width: 767.98px) {
  .pl-da__act--locked .pl-btn:first-child, .pl-da__act--locked .pl-why { grid-column: 1 / -1; }
}

/* Proposal highlight (design sheet v3.36, card Count and Discount approvals items 12-14; mock-up
   proposal-highlight-v2; Fredrik 2026-11-06). Tokens only.
   The violet pill means "needs you": the board tab's own pill (.pl-pb__count), number only, at
   the end of the Promotion board row and the More row, and after "More" on the phone bar. No
   fill, the same on the selected row; aria-hidden, the link's name carries the words. */
.pl-count-pill { display: inline-block; flex: none; margin-left: auto; padding: 0 var(--space-2); border: 1px solid var(--violet); border-radius: var(--radius-pill); color: var(--violet-ink); font-size: var(--type-label-size); line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-bottomnav__pill { display: inline-flex; align-items: center; }
.pl-bottomnav__pill .pl-count-pill { margin-left: var(--space-1); padding: 0 6px; line-height: var(--type-label-line); }
/* Folded sidebar: the pill sits on the icon's top right corner, number only, on surface (to be
   confirmed by the design owner in the build review). */
.is-folded .pl-side__link .pl-count-pill { position: absolute; top: 0; left: calc(50% + 4px); margin: 0; padding: 0 var(--space-1); line-height: 14px; background-color: var(--surface); }
/* It takes the row's own background on hover and when selected (the sidebar-active colours), so no
   darker patch shows on the row (design review of 716). */
@media (hover: hover) {
  .is-folded .pl-side__link:hover .pl-count-pill { background-color: var(--chrome-hover-fill); }
}
.is-folded .pl-side__link:focus-visible .pl-count-pill { background-color: var(--chrome-hover-fill); }
.is-folded .pl-side__link[aria-current="page"] .pl-count-pill { background-color: var(--chrome-selected-fill); }

/* The notice over Your promotions: the proposal (or the count) in bold ink, the date muted, one
   link at the end; on a phone the link drops to its own line. */
.pl-da__waiting { flex-wrap: wrap; }
.pl-da__waiting-when { color: var(--ink-muted); }
.pl-da__waiting .pl-da__lnk { white-space: nowrap; }
@media (max-width: 767.98px) {
  .pl-notice.pl-da__waiting { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; }
  .pl-notice.pl-da__waiting > :not(svg) { grid-column: 2; }
  .pl-da__waiting .pl-da__lnk { margin: 0; justify-self: start; }
}

/* Needs your attention, rule 1d: more than 14 days before the earliest Answer by the clock is
   neutral, ink on the violet tint; from 14 days the amber deadline mark. */
.pl-home-att--ranked .pl-home-att__mark--neutral { color: var(--ink); }

/* PeerLight 2.0: the metric heading and its period control (decision 2026-11-02-metric-heading, A+).
   The heading is 20/26/600 ink and the only text on a hero card with the dotted underline.
   The period under it is link-violet with a 12 px chevron where it opens the period picker
   (a control), plain ink where the window is fixed. Violet text with a chevron is a control;
   a violet bar is your data. The header row: heading block left, toggles right (card_head
   pattern); when they do not fit, the toggles drop under the period. Tokens only. */

.pl-mh-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-3); min-width: 0; }
.pl-mh-lead { display: grid; align-content: start; min-width: 0; }
.pl-mh-head > .pl-scope, .pl-mh-head > .pl-sh-ctl { flex: none; }
.pl-mh { margin: 0; font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: var(--type-metric-heading-weight); letter-spacing: var(--type-metric-heading-tracking); color: var(--ink); }
/* A box heading in a row of boxes: the card-head size (16/22/600), as "Refund rate by price" (Fredrik 2026-11-04). */
.pl-mh--row { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); letter-spacing: 0; }
.pl-mh[hidden] { display: none; }

.pl-pp { position: relative; display: inline-block; }
.pl-pp__btn { display: inline-flex; align-items: center; gap: var(--space-1); min-block-size: 24px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 500; cursor: pointer; }
.pl-pp__btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.pl-pp__btn:focus-visible { outline: 2px solid var(--you); outline-offset: 3px; border-radius: var(--radius-sm); }
.pl-pp__chev { flex: none; inline-size: 12px; block-size: 12px; }
.pl-pp__btn[aria-expanded="true"] .pl-pp__chev { transform: rotate(180deg); }
.pl-pp__fixed { font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 400; color: var(--ink); }
.pl-pp__note { color: var(--ink-muted); }
.pl-pp__print { display: none; }
.pl-pp__pop .pl-ctx__it { min-height: 44px; }
.pl-pp__pop { z-index: var(--z-dialog); }
.pl-pp__scrim { display: none; }

@media (max-width: 767.98px) {
  .pl-pp__scrim { display: block; position: fixed; inset: 0; z-index: var(--z-dialog); background-color: color-mix(in srgb, var(--canvas) 60%, transparent); }
  .pl-pp__pop { position: fixed; inset: auto 0 0 0; z-index: calc(var(--z-dialog) + 1); max-height: 80vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-3) var(--space-4) var(--space-4); }
}
@media print {
  .pl-pp__chev, .pl-pp__pop, .pl-pp__scrim { display: none !important; }
  .pl-pp__btn { color: var(--ink); }
  .pl-pp__print { display: inline; color: var(--ink); }
  .pl-pp__print::before { content: " \00b7 "; }
}

/* PeerLight 2.0: metric headings, slice 2 (decision 2026-11-02-metric-heading, A+; sheet v3.16).
   Home's money row (day and month) gets its row label; a lone heading (Markets country) sits
   above its table; the table view caption names the period; the Forecast sheet's foot line.
   Tokens only. */

.pl-mh-rowlab { display: block; margin: 0 0 var(--space-2); font-size: var(--type-figure-size); line-height: var(--type-figure-line); font-weight: var(--type-figure-weight); color: var(--ink); }
.pl-mh--lone { margin: var(--space-3) 0 var(--space-2); }
.pl-table-cap { caption-side: top; padding: var(--space-2) var(--space-3); text-align: start; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pp__foot { margin: 0; padding: var(--space-2) 10px 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-mk-matrix__head .pl-pp__btn { font-weight: 500; }
.pl-mh-head > .pl-sh-ctl { flex: none; }
.pl-wlo-net > .pl-mh { margin-block-end: var(--space-2); }


/* Followers: the window and its dates are two short lines, never one that overflows a phone. */
.pl-wlo-boxes4 .pl-sh-when { white-space: normal; }
.pl-wlo-boxes4 .pl-pp__note { display: block; }

/* PeerLight 2.0: Sales overview boxes (Fredrik, 2026-11-02, decision 2026-11-02-sales-overview-boxes; mock-up sales-overview-boxes v2, Recommended).
   The shared box headline (.pl-sh-label: ink, 16/22/600) lives in stat-hero.css. Here: the date after a fixed window ("Latest complete day · Nov 1"),
   the two Sales Overview chart cards with their header inside the frame (decision 93 amended for these two cards), and "+ Add note" on the key row.
   Tokens only. */

.pl-sh-label .pl-sh-date { font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-body-weight); color: var(--ink-muted); text-decoration: none; white-space: nowrap; }

/* Wishlists tile: the label may wrap, so the date drops to its own line (whole, never split) when the tile is narrow. */
.pl-wlo-tile .pl-sh-label { white-space: normal; }
.pl-wlo-tile .pl-sh-date { display: inline-block; }

.pl-so-cc { margin-block-start: var(--space-6); }
.pl-so-cc > .pl-note { margin-block-start: var(--space-3); }
.pl-so-chartcard--in .pl-sh-head { margin: 0 0 var(--space-3); min-width: 0; }
.pl-wl-card--in > .pl-sh-head { margin: 0 0 var(--space-2); min-width: 0; }
.pl-so-chartcard--in .pl-sh-ctl, .pl-wl-card--in .pl-sh-ctl { align-items: center; min-width: 0; }
.pl-so-keyrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-4); }
.pl-so-keyrow .pl-sh-key { margin: 0; }
.pl-so-keyrow .pl-btn { margin-inline-start: auto; }

@media (max-width: 767.98px) {
  .pl-so-cc { margin-block-start: var(--space-5); }
  .pl-so-chartcard--in .pl-sh-head h2, .pl-wl-card--in > .pl-sh-head h2 { flex: 1 0 100%; }
}
@media print { .pl-so-keyrow .pl-btn { display: none; } }

/* Events (build plan 2026-11-02, PR 3; mockup-events-v2 screens 2 and 3): the Events row's
   "+ Add" in the left menu and More, the add / edit panel, its toast, and the Events list.
   The event mark is the shared glyph of the event lane (event-lane.css): a diamond, a
   rounded tab for an Update. Filled = a person logged it; outlined = read from Steam. Shape
   carries it, never colour alone. */

/* --- the menu row and its "+ Add" --------------------------------------------------- */
.pl-side__pair { display: flex; align-items: center; gap: 6px; }
.pl-side__pair > .pl-side__link { flex: 1 1 auto; min-width: 0; }
.pl-side__add, .pl-more__pair .pl-side__add { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 34px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: transparent; color: var(--link); font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pl-side__add:hover { background: var(--surface-raised); }
.pl-side__add:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.is-folded .pl-side__add { display: none; }
.is-folded .pl-side__pair { display: block; }
.pl-more__pair { display: flex; align-items: center; gap: var(--space-2); border-bottom: 1px solid var(--hairline); }
.pl-more__pair > .pl-more__row { flex: 1 1 auto; border-bottom: 0; }

/* --- the event mark: drawn by the shared glyph rule (.pl-lane-gl in event-lane.css); only its spacing here */
.pl-ev__chip .pl-lane-gl, .pl-ev__m .pl-lane-gl, .pl-evp__dl .pl-lane-gl { margin: 0 8px 0 2px; }

/* --- the panel ---------------------------------------------------------------------- */
.pl-evp { position: fixed; z-index: var(--z-menu); inset-block: var(--pl-header-h, 0px) 0; inset-inline-end: 0; width: 420px; max-width: 100vw; box-sizing: border-box; display: flex; flex-direction: column; overflow-y: auto; padding: var(--space-4) var(--space-5) 0; background: var(--surface); color: var(--ink); border-inline-start: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); }
.pl-evp--solo { position: static; width: auto; max-width: 560px; margin: 0 auto; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: none; }
.pl-evp__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--hairline); }
.pl-evp__title { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-evp__title:focus { outline: none; }
.pl-evp__x { width: 32px; height: 32px; border-radius: var(--radius-md); text-decoration: none; }
.pl-evp__form { display: grid; gap: var(--space-4); padding: var(--space-4) 0 0; }
.pl-evp__fld { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pl-evp__fld > label, .pl-evp__fld > legend { padding: 0; font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; color: var(--ink); }
.pl-evp__fld > legend { margin-bottom: 6px; }
.pl-evp__opt { font-weight: 400; color: var(--ink-muted); }
.pl-evp__help { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-evp__ro { margin: 0; color: var(--ink); font-size: var(--type-body-size); }
.pl-evp__err { margin: 0; color: var(--critical-ink); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-evp__err::before { content: "\25B2" / ""; margin-right: 6px; }
.pl-evp input[type="text"], .pl-evp input[type="url"], .pl-evp input[type="date"], .pl-evp select, .pl-evp textarea { width: 100%; box-sizing: border-box; }
.pl-evp input[type="url"] { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: inherit; }
.pl-evp input[type="url"][aria-invalid="true"] { border-color: var(--critical); box-shadow: inset 0 0 0 1px var(--critical); }

/* Kind: radio chips (one choice). The real radio stays in the page for keyboards and
   screen readers; the chip shows its state. */
.pl-evp__kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-evp__kind { position: relative; display: inline-flex; }
.pl-evp__kind input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pl-evp__kind span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink); font-size: var(--type-body-sm-size); line-height: 18px; cursor: pointer; white-space: nowrap; }
.pl-evp__kind input:checked:not(:disabled) + span { border-color: var(--you); background: var(--violet-tint); color: var(--link); font-weight: 600; }
.pl-evp__kind input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Games: one list of tick boxes; All games and the games exclude each other (the form
   says so if both come in). */
.pl-evp__picker { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-raised); }
.pl-evp__picker label { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border-radius: var(--radius-sm); font-size: var(--type-body-size); cursor: pointer; }
.pl-evp__picker label:has(input:checked:not(:disabled)) { background: var(--violet-tint); }
.pl-evp__picker input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); flex: none; }
.pl-evp__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.pl-evp__date { display: block; min-width: 0; }
.pl-evp [hidden] { display: none; }
.pl-evp__priv { margin: 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-evp__tog { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: var(--type-body-sm-size); }
.pl-evp__tog input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.pl-evp__more > summary { min-height: 28px; display: inline-flex; align-items: center; color: var(--link); font-size: var(--type-body-sm-size); font-weight: 600; cursor: pointer; }
.pl-evp__more[open] { display: grid; gap: var(--space-3); }
.pl-evp__hist { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-evp__actions { position: sticky; inset-block-end: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin: 0 calc(-1 * var(--space-5)); padding: var(--space-3) var(--space-5); background: var(--surface); border-top: 1px solid var(--hairline); }
.pl-evp--solo .pl-evp__actions { margin-bottom: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.pl-evp__del { margin-inline-end: auto; color: var(--critical-ink); }
.pl-evp .pl-btn--danger { color: var(--critical-ink); }

/* Errors: one summary at the top (focus moves there), each one beside its field. */
.pl-evp__errsum { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--critical); border-left-width: 4px; border-radius: var(--radius-md); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-evp__errsum:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-evp__errsum a { color: var(--link); min-height: 24px; display: inline-flex; align-items: center; }
.pl-evp__fail { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--critical); border-radius: var(--radius-md); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-evp__fail .pl-icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--critical-ink); }
.pl-evp__fail[hidden] { display: none; }
.pl-evp__confirm { margin: var(--space-4) 0; padding: 14px; border: 1px solid var(--critical); border-radius: var(--radius-md); background: var(--surface); }
.pl-evp__confirm .pl-evp__actions { position: static; margin: var(--space-3) 0 0; padding: 0; border: 0; background: none; }
.pl-evp__ct { margin: 0 0 4px; font-weight: 600; }

/* The toast after a save (role status), top right, closes itself or with its button. */
.pl-evp-toast { position: fixed; z-index: var(--z-dialog); inset-inline-end: var(--space-5); top: calc(var(--pl-header-h, 0px) + var(--space-4)); display: flex; align-items: center; gap: var(--space-3); max-width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-evp-toast--bad { border-color: var(--critical); }
.pl-evp-toast a { color: var(--link); font-weight: 600; white-space: nowrap; }

/* --- the Events list -------------------------------------------------------------- */
.pl-ev__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.pl-ev__head .pl-page-title { margin: 0; }
.pl-ev__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-bottom: var(--space-4); }
.pl-ev__ctl { display: grid; gap: 4px; min-width: 0; }
.pl-ev__k { padding: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-ev__kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pl-ev__chip { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; cursor: pointer; white-space: nowrap; text-decoration: line-through; text-decoration-color: var(--border-strong); }
.pl-ev__chip:has(input:checked:not(:disabled)) { color: var(--ink); background: var(--surface-raised); text-decoration: none; }
.pl-ev__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pl-ev__chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-ev__strip { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: 0 0 var(--space-4); }
.pl-ev__strip div { display: grid; gap: 2px; }
.pl-ev__strip dt { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-ev__strip dd { margin: 0; font-size: var(--type-figure-size); line-height: var(--type-figure-line); font-weight: var(--type-figure-weight); font-variant-numeric: tabular-nums; }
.pl-ev__card { padding: var(--space-4); }
.pl-ev__table { width: 100%; }
.pl-ev__table td { vertical-align: top; }
.pl-ev__grp th { padding-top: var(--space-4); color: var(--ink-muted); font-size: var(--type-label-size); font-weight: 600; letter-spacing: var(--type-label-tracking); text-align: left; }
.pl-ev__d, .pl-ev__m { white-space: nowrap; }
.pl-ev__m, .pl-ev__src { color: var(--ink-muted); }
.pl-ev__open { color: var(--link); font-weight: 600; }
.pl-ev__note { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); overflow-wrap: anywhere; }
.pl-ev__what { overflow-wrap: anywhere; }
.pl-ev__src a { color: var(--link); }
.pl-ev__empty-actions { justify-content: center; flex-wrap: wrap; gap: var(--space-2); }
.pl-ev__priv { margin: var(--space-3) 0 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-evp-page { padding-block: var(--space-4); }

.pl-ev__fhead { display: none; }
.pl-ev__factions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pl-ev__fbtn { display: none; }
/* With the script the filters submit on every change, so Apply is only for the phone sheet. */
.pl-ev__filters.is-sheet .pl-ev__apply { display: none; }
.pl-ev__ftitle { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }

/* Phones: the panel is a full-height sheet; the list's rows stack, the date first. The
   filters fold behind one button and open as a sheet from the bottom (only with the
   script: without it they stay in the page). */
@media (max-width: 767px) {
  .pl-ev__fbtn:not([hidden]) { display: inline-flex; margin-bottom: var(--space-4); }
  .pl-ev__filters.is-sheet { display: none; }
  .pl-ev__filters.is-sheet.is-open { position: fixed; z-index: var(--z-menu); inset: auto 0 0 0; max-height: 85vh; overflow-y: auto; display: grid; gap: var(--space-4); align-items: stretch; margin: 0; padding: var(--space-4); background: var(--surface); border-top: 1px solid var(--border-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-pop); }
  .pl-ev__filters.is-open .pl-ev__fhead { display: flex; align-items: center; justify-content: space-between; }
  .pl-ev__filters.is-open .pl-ev__ctl, .pl-ev__filters.is-open .pl-select { width: 100%; }
  .pl-ev__filters.is-open .pl-ev__factions { justify-content: flex-end; }
  .pl-ev__filters.is-open .pl-ev__apply { display: inline-flex; }
  .pl-evp { inset: 0; width: 100%; border-inline-start: 0; padding-inline: var(--space-4); }
  .pl-evp--solo { position: static; inset: auto; border: 0; padding-inline: 0; }
  .pl-evp__actions { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); }
  .pl-evp-toast { inset-inline: var(--space-4); }
  .pl-ev__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-ev__table, .pl-ev__table tbody, .pl-ev__table tr, .pl-ev__table td { display: block; width: auto; }
  .pl-ev__table tr.pl-ev__row { padding: var(--space-2) 0; border-bottom: 1px solid var(--hairline); }
  .pl-ev__table td { padding: 0; border: 0; white-space: normal; }
  .pl-ev__table .pl-ev__d { font-weight: 600; }
  .pl-ev__grp, .pl-ev__grp th { display: block; }
  .pl-ev__table th, .pl-ev__table td { border: 0; box-shadow: none; }
  .pl-ev__table tr > :first-child { position: static; min-width: 0; max-width: none; box-shadow: none; background: transparent; }
  .pl-ev__table tr.pl-ev__grp { border-bottom: 1px solid var(--hairline); }
}

/* The shared event lane (decision 131; mockup-events-v2, screen 1; build plan PR 4):
   kind chips, the 30 px lane over the top of a chart (placed by event-lane.js), its marks
   (filled, outlined, numbered circle, run bar), the popover (a sheet on phones), the
   filter sheet, the list under the chart, and the read-only panel for a row read from
   Steam. Event cyan is the one cyan: marks only, never a line, link, selected state or text. */

/* glyphs, shared by chips, key, list and popover */
.pl-lane-gl { display: inline-block; flex: none; width: 9px; height: 9px; margin: 0 6px 0 2px; transform: rotate(45deg); background-color: var(--event); vertical-align: 1px; }
.pl-lane-gl--steam { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--event); }
/* An Update (Steam's own or logged) is a rounded tab: a flat base, an arched top, no direction (decision 2026-11-02-update-glyph-tab, mock-up update-glyph v2 option D). Filled or outlined as any kind. The one rule for the tab everywhere outside the lane: chips, key, list rows, popover rows, the filter sheet and the Events list (event-lane.js draws the same shape in the lane). */
.pl-lane-gl.pl-lane-gl--update, .pl-legend i.pl-lane-gl.pl-lane-gl--update { transform: none; width: 10px; height: 12px; border-radius: 5px 5px 1px 1px; vertical-align: -1px; }
.pl-lane-gl--group { transform: none; width: 16px; height: 16px; margin: 0 6px 0 0; border-radius: 50%; background-color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--event); font: 600 var(--type-meta-size)/16px var(--font-sans); font-variant-numeric: tabular-nums; text-align: center; color: var(--ink); vertical-align: -3px; }
.pl-lane-gl--run { position: relative; transform: none; width: 30px; height: 10px; margin: 0 6px 0 2px; background: none; }
.pl-lane-gl--run::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background-color: var(--event); }
.pl-lane-gl--discount { transform: none; width: 12px; height: 10px; border-radius: 2px; background-color: var(--promo-soft); border: 1.5px dashed var(--promo); }
/* Steam's sale: a solid grey band; Next Fest: an outlined, dotted one (as their bands in the plot) */
.pl-lane-gl--seasonal { transform: none; width: 12px; height: 10px; border-radius: 2px; background-color: var(--pewter); border: 1px solid var(--pewter); }
.pl-lane-gl--festival { transform: none; width: 12px; height: 10px; border-radius: 2px; background-color: transparent; border: 1.5px dotted var(--border-strong); }

/* kind chips (desktop) */
.pl-lane__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--space-2); }
.pl-lane__chips[hidden], .pl-lane__fbtn[hidden], .pl-lane__sheet[hidden], .pl-lane__pop[hidden] { display: none; }
.pl-lane__k { color: var(--ink-muted); font-size: var(--type-label-size); margin-right: 2px; }
.pl-lane__chip { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font: 400 var(--type-label-size)/16px var(--font-sans); cursor: pointer; white-space: nowrap; }
.pl-lane__chip b { font-weight: 600; color: inherit; font-variant-numeric: tabular-nums; }
.pl-lane__chip[aria-pressed="true"] { border-color: var(--border-strong); background: var(--surface-raised); color: var(--ink); }
.pl-lane__chip[aria-pressed="false"] { text-decoration: line-through; text-decoration-color: var(--border-strong); }

/* phone: one button, the switches in a sheet */
.pl-lane__fbtn { display: none; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; margin: 0 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); font: 400 var(--type-body-sm-size)/18px var(--font-sans); cursor: pointer; }
.pl-lane__fbtn b { color: var(--link); font-weight: 600; }
.pl-lane__sep { color: var(--ink-muted); }
.pl-lane__sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-dialog); max-height: 72vh; overflow-y: auto; padding: var(--space-3) var(--space-4) var(--space-5); background: var(--surface-raised); border-top: 1px solid var(--card-edge); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-pop); }
.pl-lane__shd { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--space-2); }
.pl-lane__sht { margin: 0; font: var(--type-heading-weight) var(--type-heading-size)/var(--type-heading-line) var(--font-sans); }
.pl-lane__switches { list-style: none; margin: 0; padding: 0; }
.pl-lane__switch { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--hairline); background: transparent; color: var(--ink); font: 400 var(--type-body-size)/20px var(--font-sans); text-align: left; cursor: pointer; }
.pl-lane__switch b { color: var(--ink-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-lane__sw { position: relative; width: 36px; height: 20px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); }
.pl-lane__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--border-strong); }
.pl-lane__switch[aria-checked="true"] .pl-lane__sw { background: var(--primary); border-color: var(--primary); }
.pl-lane__switch[aria-checked="true"] .pl-lane__sw::after { left: 18px; background: var(--on-primary); }

/* the stage: the chart with the lane above its plot */
.pl-lane__stage { position: relative; }
.pl-lane__stage .pl-chart-box { height: calc(var(--layout-chart-height) + 48px); } /* the chart rule plus the 48 px lane: 348 px up to a 1200 px chart, then a quarter of its width (sheet v3.67 wide-charts) */
.pl-lane__strip { position: absolute; top: 8px; left: 0; height: 30px; }
.pl-lane__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline); }
.pl-lane__run { position: absolute; bottom: 2px; height: 4px; border-radius: 2px; background: var(--event); }
.pl-lane__mk { position: absolute; top: 2px; width: 26px; height: 26px; margin-left: -13px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pl-lane__mk svg { display: block; overflow: visible; }
.pl-lane__mk:focus-visible, .pl-lane__mk.is-open { outline: 2px solid var(--you); outline-offset: 0; }
.pl-lane__dia { fill: var(--event); stroke: var(--event); stroke-width: 1.75; }
.pl-lane__dia--steam { fill: var(--surface); }
.pl-lane__ring { fill: var(--surface); stroke: var(--event); stroke-width: 1.75; }
.pl-lane__count { fill: var(--ink); font: 600 var(--type-meta-size)/1 var(--font-sans); font-variant-numeric: tabular-nums; }

/* the popover */
.pl-lane__pop { position: absolute; z-index: var(--z-menu); width: 320px; max-width: calc(100% - 8px); padding: 10px 12px 8px; background: var(--surface-raised); border: 1px solid var(--card-edge); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); color: var(--ink); font: 400 var(--type-body-sm-size)/18px var(--font-sans); }
.pl-lane__ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-lane__ph b { color: var(--ink); font-weight: 600; }
.pl-lane__pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; max-height: 280px; overflow-y: auto; }
.pl-lane__pl li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: start; }
.pl-lane__pl .pl-lane-gl { margin-top: 5px; }
.pl-lane__nm { display: block; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.pl-lane__mt { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-lane__also::before { content: "\2713\00a0"; color: var(--good-ink); }
.pl-lane__pf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--hairline); }
.pl-lane__pf a { display: inline-flex; align-items: center; min-height: 28px; color: var(--link); }
.pl-lane__more { margin: 6px 0 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-lane__more[hidden] { display: none; }
.pl-lane__pl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-lane__esc { margin-left: auto; color: var(--ink-muted); font-size: var(--type-label-size); }

/* the key and the list under the chart */
.pl-lane__key { margin-top: var(--space-2); color: var(--ink-muted); }
.pl-lane__key > span { gap: 0; }
.pl-lane__key > span[hidden] { display: none; }
.pl-legend i.pl-lane-gl { display: inline-block; width: 9px; height: 9px; border-radius: 0; margin: 0 8px 0 2px; }
.pl-legend i.pl-lane-gl--group { width: 16px; height: 16px; border-radius: 50%; margin: 0 6px 0 0; }
.pl-legend i.pl-lane-gl--run { width: 30px; height: 10px; border-radius: 0; margin: 0 6px 0 0; }
.pl-lane__list { margin-top: var(--space-3); padding-top: 6px; border-top: 1px solid var(--hairline); }
.pl-lane__list > summary { display: flex; align-items: center; gap: 6px; min-height: 32px; color: var(--link); font-size: var(--type-body-sm-size); cursor: pointer; }
.pl-lane__table td { vertical-align: top; }
.pl-lane__d, .pl-lane__m { white-space: nowrap; }
.pl-lane__m { color: var(--ink-muted); }
.pl-lane__also { display: block; color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-lane__plist { display: none; list-style: none; margin: 0; padding: 0; }
.pl-lane__plist li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pl-lane__plist [hidden], .pl-lane__table [hidden] { display: none; }
.pl-lane__pd { color: var(--ink-muted); font-size: var(--type-label-size); font-variant-numeric: tabular-nums; }
.pl-lane__pn { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.pl-lane__pm { display: flex; align-items: center; flex-wrap: wrap; column-gap: 0.25em; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-lane__foot { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* the read-only panel of a row read from Steam */
.pl-evp__dl { display: grid; gap: var(--space-2); margin: 0; }
.pl-evp__dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: var(--type-body-size); }
.pl-evp__dl dt { color: var(--ink-muted); }
.pl-evp__dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pl-evp__form--flush { padding-top: 0; }

@media (max-width: 767px) {
  .pl-lane__chips { display: none; }
  .pl-lane__fbtn:not([hidden]) { display: inline-flex; }
  .pl-lane__stage .pl-chart-box { height: 268px; }
  .pl-lane__wide { display: none; }
  .pl-lane__plist { display: block; }
  .pl-lane__pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 70vh; overflow-y: auto; z-index: var(--z-dialog); padding: var(--space-3) var(--space-4) var(--space-5); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pl-lane__pl { max-height: none; }
}
@media print {
  .pl-lane__chips, .pl-lane__fbtn, .pl-lane__sheet, .pl-lane__pop { display: none; }
}

/* The shared event lane on more charts (decision 131; build plan PR 5): Sales Overview's Net
   revenue per day (a chart the server draws: the lane takes the room above it, and the span
   outline on hover or focus is drawn here, in the stage), Store traffic's Day by day (the lane
   over the top chart, which keeps its own height) and the Forecast's past part. Event cyan
   only for marks and the 1 px outline shown on hover, focus or open, never at rest. */

/* Net revenue per day: 8 px, the 30 px lane and its 2 px edge above the chart */
.pl-lane__stage--svg { padding-top: 40px; }
.pl-lane__g { position: absolute; z-index: 1; pointer-events: none; }
.pl-lane__g--line { background-color: var(--event); }
.pl-lane__g--wash { background-color: var(--event-soft); }
/* the Promotions chip switched off: the sand boxes go (their tooltips keep the discount) */
.pl-lane--no-discount .pl-so-promo { display: none; }
.pl-so-keyrow + div > .pl-lane__list { margin-top: var(--space-2); }

/* the "7 days after vs 7 days before" line in the popover, on a chart with a measure */
.pl-lane__fx { font-variant-numeric: tabular-nums; }
.pl-lane__foot .pl-btn--quiet { margin-inline-start: 0; }

/* Day by day: the top chart keeps its height; on a phone it gains the lane's room */
.pl-dbd__chart:first-of-type .pl-lane__stage .pl-chart-box.pl-dbd__box { height: 144px; }
.pl-dbd .pl-lane__chips { margin-bottom: var(--space-3); }

@media (max-width: 767.98px) {
  .pl-dbd__chart:first-of-type .pl-lane__stage .pl-chart-box.pl-dbd__box { height: 130px; }
}
@media print {
  .pl-lane__g { display: none; }
}

/* Events: an update's Size (mock-up events-size-platform v2, 2026-11-07). The one Size cell of
   the Events list and of the list under each chart (templates/peerlight/components/size_cell.html):
   a plain link in the list's link colour, at least 24 px tall, with a muted "· corrected" while the
   saved size differs from Automatic; a logged update reads "Major" as muted plain text. On phones
   the size sits on the kind's line, "Update · Minor". The kind chips' (i) and the panel's Size
   control reuse the (i) (define-info.css) and the panel's radio chips (events.css). Tokens only. */

.pl-ev__sz { white-space: nowrap; }
.pl-ev__size { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); text-decoration: none; }
.pl-ev__size u { text-decoration: underline; }
.pl-ev__corr { display: inline-block; margin-left: var(--space-1); color: var(--ink-muted); text-decoration: none; }
.pl-ev__szt { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-muted); }

/* the kind chips' (i): as tall as a chip, so it lines up with them */
.pl-ev__kinds .pl-info { width: 28px; height: 28px; margin-left: 2px; }

/* the Size panel */
.pl-evp__fld > legend .pl-info { height: 18px; }
.pl-evp__sizero { margin: 2px 0 0; }

@media (max-width: 767px) {
  /* the row: date, game, then "Update · Minor" on one line, then what happened */
  .pl-ev__table tr.pl-ev__row { display: flex; flex-wrap: wrap; align-items: center; }
  .pl-ev__table tr.pl-ev__row > td { flex: 0 0 100%; }
  .pl-ev__table tr.pl-ev__row > td.pl-ev__kd, .pl-ev__table tr.pl-ev__row > td.pl-ev__sz { flex: 0 0 auto; }
  .pl-ev__table tr.pl-ev__row > td.pl-ev__sz { display: flex; align-items: center; }
  .pl-ev__table tr.pl-ev__row > td.pl-ev__sz:empty { display: none; }
  .pl-ev__table tr.pl-ev__row > td.pl-ev__sz::before { content: "\00b7" / ""; margin: 0 6px; color: var(--ink-muted); }
  .pl-ev__table tr.pl-ev__row > td.pl-ev__what { order: 5; }
  .pl-ev__table tr.pl-ev__row > td.pl-ev__ab { order: 6; }
  .pl-ev__kinds .pl-info__tip { left: auto; right: -6px; }
}

/* Events: Platform (mock-up events-size-platform v2, 2026-11-07). The game in ink, and while
   All platforms is picked a second line under it: the store's mark (the shared .pl-store-logo,
   14 px, in the muted text colour) and its name, or "All platforms" with no mark. On phones the
   line sits after the game: "Hollow Ferry · Nintendo". The Platform choice itself is the
   page's .pl-select, like Game and Period. Tokens only. */

.pl-ev__game { color: var(--ink); }
.pl-ev__plat { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }

@media (max-width: 767px) {
  .pl-ev__plat { display: inline-flex; margin: 0 0 0 6px; }
  .pl-ev__plat::before { content: "\00b7" / ""; }
}

/* Events: Platform in the add / edit panel (mock-up events-size-platform v2, 2026-11-07, views
   Add update, Add Steam update and Add marketing). The select is the panel's own, like What
   changed. A kind with a platform of its own shows a label and the platform as plain text, the
   label drawn as the panel's other field labels. The line under an update logged on Steam is in
   ink, not muted: it is the one line here that changes what the person should do. Tokens only. */

.pl-evp__lbl { font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; color: var(--ink); }
.pl-evp__warn { color: var(--ink); }

/* A/B comparison table on a phone: each row is Measure, A, B on one line and the verdict on its own
   line underneath, full width, so it is never cut off or wrapped a word per line. The bar column is
   dropped (the verdict says it). Only tables with the stack modifier; the Store traffic table with
   a Difference column is left as it is. Desktop is unchanged. Tokens only. */
@media (max-width: 767.98px) {
  .pl-ab__table--stack .pl-table { display: block; width: 100%; }
  .pl-ab__table--stack :is(thead, tbody) { display: block; }
  .pl-ab__table--stack tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem;
    column-gap: var(--space-2);
    align-items: baseline;
    border-bottom: 1px solid var(--hairline);
  }
  .pl-ab__table--stack :is(th, td) { display: block; min-width: 0; width: auto; white-space: normal; border-bottom: 0; }
  .pl-ab__table--stack tr > :first-child { position: static; box-shadow: none; max-width: none; }
  .pl-ab__table--stack :is(th, td):nth-child(4), .pl-ab__table--stack th:nth-child(5) { display: none; }
  .pl-ab__table--stack td:nth-child(5) { grid-column: 1 / -1; padding-top: 0; text-align: left; }
  .pl-ab__table--stack .pl-ab__lead { flex-wrap: wrap; }
}

/* Dated ledger (2026-11-03): reflow fixes whose rules are folded into their owning parts the next time those parts are touched. Not a general place for overrides. Tokens only. */

/* Promotion Board on a phone: every plot keeps 12 px free on its right, so the last date label of the axis (Nov 30, Nov) fits inside the screen. Bars and axis share the plot width, so they stay aligned. */
@media (max-width: 767.98px) {
  .pl-bd__plot { margin-inline-end: 12px; }
}

/* Wishlists Overview tiles: the grey comparison line wraps inside the tile when it is wider than the tile (it was held on one line and ran out of the tile between 1180 and 1250 px). The figure row may wrap too. */
.pl-wlo-tile .pl-sh-vs { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.pl-wlo-tile .pl-sh-row { flex-wrap: wrap; row-gap: var(--space-1); }

/* Promotion results: the heading's control group (period chip, view switch, Export CSV) may shrink and wrap under the period on a phone; it was held at its full width, 397 px, which pushed the page sideways. */
@media (max-width: 767.98px) {
  .pl-mh-head > .pl-sh-ctl { flex: 0 1 auto; min-width: 0; max-width: 100%; }
}

/* Home v3: the Net revenue strip and its pace bar (decision 2026-11-03-home-v3; mock-up
   home-exec-summary v3, design sheet v3.21 strip and pace bar). Four figures in one card,
   at the figure-xl size; 2 x 2 below 900 px of content; on a phone four stacked rows, label
   left and figure right. The first block (the strip, or the first section of a pre-launch
   Home) sits space-6 under what comes before it on desktop and space-5 on a phone; the
   approvals line keeps its own step under the greeting (decision 2026-11-03-home-greeting-space,
   amending Home v3 point 3). Tokens only. */

/* greeting (or approvals line) to the first block: one step. The page gap is space-6, so on
   desktop the welcome adds nothing; the hello loses its own bottom margin. */
.pl-home__welcome .pl-home-hello { margin-bottom: 0; }
.pl-home__welcome { margin-bottom: calc(var(--space-6) - var(--space-6)); }

.pl-home__overview { container-type: inline-size; min-width: 0; }
.pl-home-sec--hero { gap: var(--space-4); }
.pl-nr { min-width: 0; padding: 20px 22px var(--space-4); }
.pl-nr__title { margin: 0; font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: var(--type-metric-heading-weight); letter-spacing: var(--type-metric-heading-tracking); color: var(--ink); }
.pl-nr__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-3); }
.pl-nr[data-nr-cells="3"] .pl-nr__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-nr__cell { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0 20px; border-left: 1px solid var(--hairline); }
.pl-nr__cell:first-child { padding-left: 0; border-left: 0; }

/* the label: 16 px ink; the part after it (all products, the day) on its own line, no dot */
.pl-nr__label { display: block; min-height: 44px; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); color: var(--ink); }
.pl-nr__sub { display: block; font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.pl-nr__dot { display: none; }
.pl-nr__fig { display: block; font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.pl-nr__fig--words { font-size: var(--type-heading-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-heading-weight); letter-spacing: 0; white-space: normal; }
.pl-nr__foil { display: block; width: 72px; height: 2px; border-radius: 1px; margin: var(--space-1) 0; background-image: var(--foil); }
.pl-nr__chg { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-nr__note { display: block; margin-top: var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-nr__note-fig { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-nr__chip { margin-top: var(--space-2); }

/* pace bar (sheet v3.21): track, so-far fill in violet, the day-of-month tick in ink */
.pl-nr__pace { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.pl-nr__pl { display: block; font-size: var(--type-body-size); line-height: var(--type-body-sm-line); font-weight: 600; color: var(--ink); }
.pl-nr__rb { position: relative; height: 22px; margin-top: var(--space-1); }
.pl-nr__tr { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background-color: var(--hairline); }
.pl-nr__so { position: absolute; left: 0; top: 7px; height: 8px; border-radius: 0 4px 4px 0; background-color: var(--you); }
.pl-nr__mid { position: absolute; top: 0; width: 2px; height: 22px; background-color: var(--ink); }
.pl-nr__ticks { position: relative; height: 16px; margin-top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-nr__ticks > span { position: absolute; white-space: nowrap; }
.pl-nr__tk { transform: translateX(-50%); }
.pl-nr__end { right: 0; }
.pl-nr__short { display: none; }
/* late in the month (home-pace.js measures the two labels): the day label moves left of the tick only when it would touch the end label; the end label goes only when even then they would meet (the last days of the month) */
.pl-nr__ticks--left .pl-nr__tk { transform: translateX(-100%); padding-right: var(--space-1); }
.pl-nr__ticks--crowded .pl-nr__end { visibility: hidden; }

/* the row of tiles under the strip (until Home PR 4): three across where three fit, not four */
@container (min-width: 760px) { .pl-hk-rows--after-hero .pl-hk-row--r2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* under 900 px of content (1024 and 1180 windows): the strip as 2 x 2, labels of one height */
@container (max-width: 900px) {
  .pl-nr__strip, .pl-nr[data-nr-cells="3"] .pl-nr__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); }
  .pl-nr__cell:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pl-nr__cell:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--hairline); }
}

/* phone: four stacked rows, label left, figure right at 20 px; the change under the label */
@media (max-width: 767.98px) {
  .pl-home__welcome { margin-bottom: calc(var(--space-5) - var(--space-6)); }
  .pl-nr { padding: 14px 14px 12px; }
  .pl-nr__strip, .pl-nr[data-nr-cells="3"] .pl-nr__strip { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: var(--space-2); }
  .pl-nr__cell, .pl-nr__cell:nth-child(odd), .pl-nr__cell:nth-child(even) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); align-items: baseline; padding: 10px 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .pl-nr__cell:first-child { border-top: 0; padding-top: 0; }
  .pl-nr__label { grid-column: 1; grid-row: 1; min-height: 0; font-size: var(--type-body-size); line-height: var(--type-body-sm-line); }
  .pl-nr__sub { display: inline; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
  .pl-nr__sub--date { display: block; }
  .pl-nr__fig { grid-column: 2; grid-row: 1; font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); letter-spacing: var(--type-metric-heading-tracking); text-align: right; }
  .pl-nr__fig--words { font-size: var(--type-body-size); line-height: var(--type-metric-heading-line); }
  .pl-nr__foil { grid-column: 2; grid-row: 2; justify-self: end; margin: 2px 0 0; }
  .pl-nr__chg { grid-column: 1; grid-row: 2; }
  .pl-nr__note, .pl-nr__chip { grid-column: 1 / -1; }
  .pl-nr__long { display: none; }
  .pl-nr__short { display: inline; }
}

/* Home v3, the chart row (decision 2026-11-03-home-v3, point 2; mock-up home-exec-summary v3):
   Net revenue per day, last 30 days, beside Latest complete day by product. Two columns at
   1.55 : 1, both cards the row's height (the table at the top of its card) and the same card
   padding as the Net revenue strip; one column under
   800 px of content (1024 windows) and on a phone. The chart is drawn by peerlight.js at the
   width it gets, so its labels stay 12 px. Tokens only. */

.pl-home__chart_row { container-type: inline-size; min-width: 0; }
.pl-cr { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-4); align-items: stretch; }
.pl-cr__card { min-width: 0; padding: 20px 22px var(--space-4); }
.pl-cr__title { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); color: var(--ink); }
.pl-cr__nw { white-space: nowrap; }
.pl-cr__date { font-size: var(--type-body-size); font-weight: 400; color: var(--ink-muted); }

/* the chart: 48 px for the event lane over a 192 px plot */
.pl-cr__chart .pl-cr__box, .pl-cr__chart .pl-lane__stage .pl-cr__box { height: 240px; margin-top: var(--space-2); }
.pl-cr__sw-bar { background-color: var(--you); border-radius: 2px; }
.pl-cr__key { margin-top: var(--space-2); }
.pl-cr__chart .pl-lane__list { margin-top: var(--space-2); }
/* the lane's chips (desktop) and Filter button (phone) under the title: the same 8 px as the plot */
.pl-cr__chart > .pl-lane__chips, .pl-cr__chart > .pl-lane__fbtn { margin-top: var(--space-2); }
.pl-cr__how { margin-top: var(--space-2); }
.pl-cr__how > summary { display: inline-flex; align-items: center; min-height: 24px; cursor: pointer; color: var(--link); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-cr__mini { border-collapse: collapse; margin-top: var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); font-variant-numeric: tabular-nums; }
.pl-cr__mini th, .pl-cr__mini td { padding: 2px var(--space-3) 2px 0; text-align: right; white-space: nowrap; color: var(--ink); }
.pl-cr__mini th { text-align: left; font-weight: 500; color: var(--ink-muted); }
.pl-cr .pl-table-wrap { margin-inline: 0; padding-inline: 0; } /* the card has its own padding: no bleed past it on a phone */
.pl-cr__gap { margin-left: var(--space-2); color: var(--ink-muted); }

/* latest complete day by product: figures right-aligned, the change under each figure */
.pl-cr__ld { width: 100%; border-collapse: collapse; margin-top: var(--space-4); font-variant-numeric: tabular-nums; }
.pl-cr__ld th, .pl-cr__ld td { padding: 10px 0 10px 10px; border-bottom: 1px solid var(--hairline); text-align: right; vertical-align: top; font-size: var(--type-body-size); line-height: var(--type-body-sm-line); }
.pl-cr__ld th:first-child { padding-left: 0; text-align: left; }
.pl-cr__ld thead th { padding-top: 0; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; color: var(--ink-muted); border-bottom-color: var(--card-edge); white-space: nowrap; }
.pl-cr__ld tbody tr:last-child th, .pl-cr__ld tbody tr:last-child td { border-bottom: 0; }
.pl-cr__nm { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pl-cr__sub .pl-cr__nm { padding-left: var(--space-4); font-weight: 400; }
.pl-cr__v { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pl-cr__u { display: block; color: var(--ink); white-space: nowrap; }
.pl-cr__nr { color: var(--ink-muted); }
.pl-cr__chg { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-cr__chg .pl-cr__nw { display: block; } /* the basis on its own line, the same in every row and at every width */
.pl-cr__all { align-items: center; min-height: 24px; margin-top: var(--space-2); color: var(--link); text-decoration: none; font-size: var(--type-body-sm-size); font-weight: 500; }

/* under 800 px of content (1024 windows): one column, so the table keeps its padding */
@container (max-width: 800px) { .pl-cr { grid-template-columns: minmax(0, 1fr); } }

/* phone: one column, the strip's phone padding, a shorter chart */
@media (max-width: 767.98px) {
  .pl-cr { grid-template-columns: minmax(0, 1fr); }
  .pl-cr__card { padding: 14px 14px 12px; }
  .pl-cr__chart .pl-cr__box, .pl-cr__chart .pl-lane__stage .pl-cr__box { height: 208px; }
  .pl-cr__ld { margin-top: var(--space-3); }
  .pl-cr__ld th, .pl-cr__ld td { padding-top: 6px; padding-bottom: 6px; }
  .pl-cr__all { display: inline-flex; }
}

/* Home v3, Your games and Not launched yet (decision 2026-11-03-home-v3, points 5-7; mock-up
   home-exec-summary v3). Five columns while the table fits the card (Units and Refund rate
   removed, Fredrik 2026-11-15); under 800 px of card content the rows take over, every figure
   with its own label (Fredrik 2026-11-17): three across, one per line under 650 px. Not
   launched yet switches at 720 px. Each card is
   its own container. No bars, no sparkline. Tokens only. */

.pl-yg { container-type: inline-size; min-width: 0; padding: 20px 22px var(--space-4); grid-template-columns: minmax(0, 1fr); } /* .pl-home-sec is a grid: its one column never grows past the card, whatever a row holds */
.pl-yg + .pl-yg { margin-top: var(--space-5); }
.pl-yg .pl-heading { margin: 0; }
.pl-yg__rows { display: none; }

/* the table */
.pl-yg__tab { margin-top: var(--space-3); }
.pl-yg__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pl-yg__table th, .pl-yg__table td { padding: 10px 0 10px 16px; border-bottom: 1px solid var(--hairline); text-align: right; vertical-align: middle; white-space: nowrap; font-size: var(--type-body-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-yg__table thead th { padding-top: 0; vertical-align: bottom; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; color: var(--ink-muted); border-bottom-color: var(--card-edge); }
.pl-yg__table .pl-yg__l { padding-left: 0; text-align: left; white-space: normal; min-width: 110px; } /* a long name wraps (down to 110 px), so the table keeps inside the card with large figures (design review 3 on PR 608) */
.pl-yg__table tbody tr:last-child td { border-bottom: 0; }
.pl-yg__sub td.pl-yg__l { padding-left: 74px; }
.pl-yg__v { display: block; font-weight: 600; white-space: nowrap; }
.pl-yg__v--lead { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
.pl-yg__sub .pl-yg__v--lead { font-size: var(--type-body-size); line-height: var(--type-body-sm-line); }
.pl-yg__rng, .pl-yg__chg { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-yg__chg--inline { display: inline; margin-left: var(--space-1); }
.pl-yg__basis { color: var(--ink-muted); font-weight: 400; }
.pl-yg__note { color: var(--ink-muted); white-space: normal; text-align: left; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); margin: var(--space-1) 0 0; }
.pl-yg__game { display: inline-flex; align-items: center; gap: 10px; min-height: 24px; color: var(--ink); text-decoration: none; font-weight: 600; }
a.pl-yg__game:hover .pl-yg__name { text-decoration: underline; color: var(--link); }
.pl-yg__name--sub { font-size: var(--type-body-sm-size); font-weight: 400; color: var(--ink); }
.pl-yg__table .pl-yg__l .pl-home-games__badge, .pl-yg__table .pl-yg__l .pl-home-games__tag { vertical-align: middle; }
.pl-yg__plain { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }

/* the rows under 800 px of card content (mock-up home-your-games-phone v1, option A, Fredrik 2026-11-17): the month figure and its change on the game's line, the basis said once under the title, and every other figure with its own label, so nothing has to be matched to a heading */
.pl-yg__hdl { margin: 2px 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-yg__list { margin-top: 10px; border-top: 1px solid var(--card-edge); }
.pl-yg__pg { padding: var(--space-3) 0; border-top: 1px solid var(--hairline); }
.pl-yg__list > .pl-yg__pg:first-child { border-top: 0; }
.pl-yg__r1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 0 10px; min-width: 0; font-variant-numeric: tabular-nums; }
.pl-yg__who { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; } /* the name, then its promotion chip and launch tag, which wrap under it on a phone */
.pl-yg__r1 .pl-yg__name { overflow-wrap: break-word; } /* breaks a word only when the word alone is wider than the card, never one letter a line */
.pl-yg__who .pl-home-games__badge, .pl-yg__who .pl-home-games__tag { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* a chip longer than the card ends in an ellipsis inside it */
.pl-yg__r1 .pl-yg__v--lead { flex: none; padding-top: 1px; }
.pl-yg__r1 > .pl-yg__chg { flex: none; margin-left: 0; padding-top: 3px; font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-yg__pg--sub { padding-left: 50px; } /* a product under its game starts where the game's name does: the capsule and its gap */
.pl-yg__rows .pl-home-games__capsule { width: 40px; height: 19px; }
.pl-yg__rows .pl-home-games__capsule--none { display: inline-grid; }
.pl-yg__pg--sub .pl-yg__r1 .pl-yg__v--lead { font-size: var(--type-body-size); line-height: var(--type-body-sm-line); }
.pl-yg__note { margin-top: var(--space-1); }
.pl-yg__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; font-variant-numeric: tabular-nums; }
.pl-yg__cells > div { min-width: 0; }
.pl-yg__cells dt { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-yg__cells dd { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; color: var(--ink); white-space: nowrap; }
.pl-yg__cells dd .pl-yg__chg--inline { font-weight: 500; }
.pl-yg__cells dd .pl-yg__rng { display: block; font-weight: 400; }
.pl-yg__words { font-weight: 400; color: var(--ink-muted); white-space: normal; }

/* not launched yet, rows: its own heading row (Total wishlists), then label-left lines */
.pl-yg__head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-2) 10px; padding: 0 0 var(--space-2); margin: 0 0 10px; border-bottom: 1px solid var(--card-edge); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-yg__h1 { text-align: right; }
.pl-yg__head + .pl-yg__pg { border-top: 0; padding-top: 0; }
.pl-yg__val { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pl-yg__val--words { font-weight: 400; color: var(--ink-muted); }
.pl-yg__rows .pl-yg__chg--inline { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-yg__rows .pl-yg__cells .pl-yg__chg--inline { font-size: var(--type-label-size); line-height: var(--type-label-line); }
/* not launched yet, rows */
.pl-yg__nl { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.pl-yg__nl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 20px; }
.pl-yg__nl dt { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-yg__nl dd { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; color: var(--ink); text-align: right; }
.pl-yg__nl dd .pl-yg__chg--inline { font-size: var(--type-label-size); font-weight: 400; }

/* under 800 px of card content: the rows (Fredrik 2026-11-17; was 900 px: the five-column table needs about 750 to 778 px) */
@container (max-width: 800px) {
  .pl-yg:not(.pl-yg--nl) .pl-yg__tab { display: none; }
  .pl-yg:not(.pl-yg--nl) .pl-yg__rows { display: block; }
}
/* under 650 px of card content (a phone): each figure on its own line, label left, figure right, as the Not launched yet card */
@container (max-width: 649.98px) {
  .pl-yg .pl-yg__cells { display: block; margin-top: 6px; }
  .pl-yg .pl-yg__cells > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10px; min-height: 20px; }
  .pl-yg .pl-yg__cells dt { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
  .pl-yg .pl-yg__cells dd { margin-left: auto; text-align: right; }
}
/* under 560 px of card content: a figure's words with no change ("Not compared · days missing")
   go muted on their own line, right-aligned under the figure, as the forecast's likely range, so
   the label and the figure stay on one line (Atlas on PR 1048) */
@container (max-width: 559.98px) {
  .pl-yg .pl-yg__cells dd .pl-yg__chg--note { display: block; margin-left: 0; font-weight: 400; }
}
/* not launched yet: rows under 720 px of card content */
@container (max-width: 720px) {
  .pl-yg--nl .pl-yg__tab { display: none; }
  .pl-yg--nl .pl-yg__rows { display: block; }
  .pl-yg--nl .pl-yg__rows { margin-top: var(--space-3); }
}

@media (max-width: 767.98px) {
  .pl-yg { padding: 14px 14px 12px; }
  .pl-yg + .pl-yg { margin-top: var(--space-4); }
}

/* the no-connection line in the daily overview ("Your Steam sales don't reach PeerLight yet.
   Settings → Steamworks shows how.") wraps instead of ending in an ellipsis */
.pl-hk[data-kpi="revenue"] .pl-hk__line { white-space: normal; overflow: visible; text-overflow: clip; }

/* Home, This week (decision 2026-11-03-home-v3, points 3, 4, 7 and 9; mock-up home-exec-summary
   v3; structure after the 1536 px page, Fredrik 2026-11-27, change 1, mock-up
   2026-11-27_structure-1536_v1). Needs your attention and Coming up are one card pair of equal
   height (card-pair.css and structure-pairs.css, .pl-home__week): side by side from 1160 px of
   page, stacked below and on a phone; a hidden Coming up leaves Needs your attention alone at full
   width. The two slots give their parts to the pair's grid (display: contents), so This week's
   title spans both cards and the cards are the grid's items. Your PeerLight team (Tier 1) follows
   at full width, one step under the pair. No grey line under a card heading; heading to first row
   is space-4 in every card. Tokens only, no hash colours in comments. */
.pl-home__week .pl-cardpair__in > .pl-section-slot { display: contents; }
.pl-home__week .pl-home-tw__title { grid-column: 1 / -1; margin-bottom: calc(var(--space-3) - var(--space-5)); }
.pl-home > .pl-home__team { margin-top: calc(var(--space-4) - var(--space-6)); }
.pl-home__week .pl-home-tw { box-sizing: border-box; }

/* This week's title over row 1, and each card's head: heading and (i), then one step */
.pl-home-tw__title { margin: 0 0 var(--space-3); }
.pl-home-tw__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); }
.pl-home-tw__head > .pl-heading { margin: 0; }
.pl-home-tw { gap: 0; align-content: start; }
/* the list sits inside the Show N more wrapper since PR 639, so the gap goes on the wrapper */
.pl-home-tw > .pl-home-att, .pl-home-tw > [data-sw-more-scope], .pl-home-tw > .pl-empty { margin-top: var(--space-4); }
.pl-home-tw .pl-home-att--ranked .pl-home-att__item:first-child { padding-top: 0; }

/* Coming up */
.pl-home-up__sub { margin: var(--space-4) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; color: var(--ink); }
.pl-home-up__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.pl-home-up__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) 10px; padding: var(--space-2) 0; border-top: 1px solid var(--hairline); font-size: var(--type-body-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-home-up__list li:first-child { border-top: 0; padding-top: 0; }
.pl-home-up__list--now { margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--card-edge); }
/* Running now has no day column: the sand square sits next to the promotion's name (Fredrik, 11-16) */
.pl-home-up__list--now li { grid-template-columns: 12px minmax(0, 1fr) auto; padding: 6px 0; border-top: 0; }
.pl-home-up__list--now + .pl-home-up__list { margin-top: 10px; }
.pl-home-up__sub + .pl-home-up__list--now { margin-top: 6px; }
.pl-home-up__day { font-size: var(--type-body-sm-size); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-home-up__what { min-width: 0; overflow-wrap: anywhere; }
.pl-home-up__end { font-size: var(--type-body-sm-size); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-home-up__chip { color: var(--ink); font-weight: 500; }
/* the Board's swatches: dashed = planned, solid = submitted; filled sand = running now */
.pl-home-up__sw { display: inline-block; box-sizing: border-box; width: 10px; height: 10px; margin-right: 6px; border: 1.5px solid var(--promo); border-radius: 2px; background-color: var(--promo-soft); vertical-align: -1px; }
.pl-home-up__sw--planned { border-style: dashed; }
.pl-home-up__sw--live { width: 12px; height: 12px; margin: 0; border-color: var(--promo); background-color: var(--promo); }
.pl-home-up__empty { margin: var(--space-4) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-home-up__nw { white-space: nowrap; } /* Next on Steam: the date range never breaks, not even after its en dash (sheet v3.25 J1) */
.pl-home-up__add { margin: var(--space-3) 0 0; }
.pl-home-team__all { display: inline-flex; }
.pl-home-up__all, .pl-home-team__all { align-items: center; gap: var(--space-1); min-height: 24px; margin-top: 6px; font-size: var(--type-body-sm-size); font-weight: 500; color: var(--link); text-decoration: none; }
.pl-home-up__all:hover, .pl-home-team__all:hover { text-decoration: underline; }

/* Your PeerLight team */
.pl-home-team__list { list-style: none; margin: 10px 0 0; padding: 0; }
.pl-home-team__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--hairline); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-home-team__list li:first-child { border-top: 0; }
.pl-home-team__day { color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 767.98px) {
  .pl-home-up__more { display: none !important; }
  .pl-home-up__all { display: inline-flex; } /* phone only: the shell hides .pl-mobile-only on desktop */
}

/* Latest complete day against the day before (Fredrik, 2026-11-03): the change chip on the Rekoup KPIs page. Same colours as Home's change: green or clay from 5%, grey below. */
.pl-rk__delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-rk__delta--up { color: var(--good-ink); }
.pl-rk__delta--down { color: var(--critical-ink); }
.pl-rk__delta--neutral { color: var(--ink-muted); }
.pl-rk__chg { font-variant-numeric: tabular-nums; }

/* Wishlists Overview, the Latest complete day tile (design review of PR 603, 2026-11-03).
   The date keeps to the label's last word ("day · Nov 2"), so it never starts a line of its own.
   From 768 px the three tiles share their rows (subgrid), so a label (or a figure row) on two lines moves every
   figure down together and no figure sits below the ones beside it. The row gap stays the tile's own 6 px.
   Colours and type from tokens; the 6 px row gap is the tile's own gap from wishlists-cleanup.css. */

.pl-wlo-tile .pl-wlo-keep { white-space: nowrap; }
.pl-wlo-tile .pl-wlo-keep .pl-sh-date { display: inline; }

@media (min-width: 768px) {
  @supports (grid-template-rows: subgrid) {
    .pl-wlo-tile { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
    .pl-wlo-tile > * { align-self: start; }
  }
}

/* Home, Latest complete day by product (Fredrik, 2026-11-03). Since 2026-11-15 the card shows no change pills
   (Fredrik: none in this section), and its heading names the one day. */

/* Each game's row starts with its capsule (Fredrik, 2026-11-15): Your games' image and its first-letter
   fallback, scaled to 40 x 19 so the name's 20 px line and the row height stay as they were. Fixed
   width and height, so nothing moves while it loads. The fallback tile stays on a phone too, so the game
   names line up. DLC rows have no image and stay flush left, as before: lining their names up after the capsule
   made more of them wrap in the 374 px card at 1280 (measured 2026-11-15). */
.pl-cr__ld { --pl-cr-cap-w: 40px; --pl-cr-cap-h: 19px; }
.pl-cr__game { display: flex; align-items: flex-start; gap: var(--space-2); }
.pl-cr__ld .pl-cr__cap { flex: none; width: var(--pl-cr-cap-w); height: var(--pl-cr-cap-h); margin-top: 1px; }
.pl-cr__ld .pl-home-games__capsule--none.pl-cr__cap { display: inline-grid; }
.pl-cr__name { min-width: 0; }

/* Sales Overview S3 (mock-up sales-overview-combined-v3; Fredrik 2026-11-03, points 1, 2, 5 and 7): the boxes reflow by the page column, not the window, and the month chart is drawn at its real width. Tokens only. */

/* The page column is the container: the boxes follow the room the page has, with or without the sidebar. */
.pl-so { container: so-page / inline-size; }
@container so-page (max-width: 899.98px) {
  .pl-so .pl-sh-boxes--3 { grid-template-columns: minmax(0, 1fr); }
}
@container so-page (max-width: 639.98px) {
  .pl-so .pl-sh-boxes--2 { grid-template-columns: minmax(0, 1fr); }
}

/* A box's change and basis drop under the figure when the box is narrow, so nothing leaves the card (Share from DLCs now has a basis beside its chip). */
.pl-so .pl-sh-box .pl-sh-row { flex-wrap: wrap; }
.pl-so .pl-sh-box .pl-sh-row > * { white-space: nowrap; }

/* Figures never wrap. Revenue sits above Units in a box under 330 px, or under the width two of its figures need side by side (the row's class, from its longest figure). */
.pl-so .pl-sh-pair .pl-sh-fig { white-space: nowrap; }
.pl-so .pl-sh-pair .pl-sh-line > * { white-space: nowrap; }
.pl-so-pairs .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pl-so-pairs .pl-sh-pair .pl-sh-pair__cols > div + div { border-block-start: 0; padding-block-start: 0; border-inline-start: 1px solid var(--hairline); padding-inline-start: var(--space-3); }
@container (max-width: 329.98px) {
  .pl-so-pairs .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-so-pairs .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}
@container (max-width: 369.98px) {
  .pl-so-pairs--370 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--410 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--450 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-so-pairs--370 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--410 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--450 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}
@container (max-width: 409.98px) {
  .pl-so-pairs--410 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--450 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-so-pairs--410 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--450 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}
@container (max-width: 449.98px) {
  .pl-so-pairs--450 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-so-pairs--450 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}
@container (max-width: 489.98px) {
  .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-so-pairs--490 .pl-sh-pair .pl-sh-pair__cols > div + div, .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}
@container (max-width: 529.98px) {
  .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols { grid-template-columns: minmax(0, 1fr); }
  .pl-so-pairs--530 .pl-sh-pair .pl-sh-pair__cols > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-2); }
}

/* The month chart: one cut per width step; the widest cut that fits its box shows, so the SVG is never shrunk and its text stays 12 px or more. Eight cuts (perf item 4(b), B-light, design owner 2026-11-09): each is scaled up by at most 1.25x before the next one takes over, so chart text renders at 12 to 15 px. */
.pl-so-mstage { container: so-month / inline-size; min-width: 0; }
.pl-so-mcut { display: none; }
.pl-so-mcut[data-cut="300"] { display: block; }
@container so-month (min-width: 360px) { .pl-so-mcut[data-cut="300"] { display: none; } .pl-so-mcut[data-cut="360"] { display: block; } }
@container so-month (min-width: 440px) { .pl-so-mcut[data-cut="360"] { display: none; } .pl-so-mcut[data-cut="440"] { display: block; } }
@container so-month (min-width: 540px) { .pl-so-mcut[data-cut="440"] { display: none; } .pl-so-mcut[data-cut="540"] { display: block; } }
@container so-month (min-width: 660px) { .pl-so-mcut[data-cut="540"] { display: none; } .pl-so-mcut[data-cut="660"] { display: block; } }
@container so-month (min-width: 820px) { .pl-so-mcut[data-cut="660"] { display: none; } .pl-so-mcut[data-cut="820"] { display: block; } }
@container so-month (min-width: 1020px) { .pl-so-mcut[data-cut="820"] { display: none; } .pl-so-mcut[data-cut="1020"] { display: block; } }
@container so-month (min-width: 1140px) { .pl-so-mcut[data-cut="1020"] { display: none; } .pl-so-mcut[data-cut="1140"] { display: block; } }
/* Wide screens (decision 2026-11-26-wide-layout, sheet v3.67 wide-charts): two wider cuts, so the 1140 cut is no longer stretched past 1.25x on a 1920 px page; shown only from a window of about 1800 px. */
@container so-month (min-width: 1425px) { .pl-so-mcut[data-cut="1140"] { display: none; } .pl-so-mcut[data-cut="1425"] { display: block; } }
@container so-month (min-width: 1780px) { .pl-so-mcut[data-cut="1425"] { display: none; } .pl-so-mcut[data-cut="1780"] { display: block; } }
.pl-so-mnote { margin: var(--space-1) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* 2025 is a hollow bar with a dashed grey outline; the running month is hatched violet with a solid edge (point 2, decided (a)). Sales Overview only for now. */
.pl-so-mo-ly { fill: none; stroke: var(--peer-line); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pl-so-mo-live { fill: color-mix(in srgb, var(--you) 38%, transparent); stroke: var(--you); stroke-width: 1.5; }
.pl-so-mo-hatched { stroke: none; }
.pl-so-mo-hatch { stroke: var(--you); stroke-width: 1.5; }
.pl-so-swatch--ly { background-color: transparent; border: 1.5px dashed var(--peer-line); }
.pl-so-swatch--live { border: 1.5px solid var(--you); background-color: color-mix(in srgb, var(--you) 38%, transparent); background-image: repeating-linear-gradient(135deg, var(--you) 0 1.5px, transparent 1.5px 5px); }

/* The running month's same days last year, under its whole month in the table view. */
.pl-so-msame { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* The month table on a phone (design re-check of 605): the month in its short form, "to Nov 2" on its own line, and below 480 px the change moves under each figure of this year, so 2025 and the change are never cut off. */
.pl-so-mwrap { container: so-mtable / inline-size; }
/* A flex box, not display: table: a table box inside the collapsed-border table loses the chip's padding and rounded corners. */
.pl-so-mtable .pl-so-mto { display: flex; width: fit-content; margin-block-start: var(--space-1); }
.pl-so-mchg { display: none; }
@container so-mtable (max-width: 479.98px) {
  .pl-so-mtable .pl-so-mchg-col { display: none; }
  .pl-so-mtable .pl-so-mchg { display: block; margin-block-start: var(--space-1); }
  .pl-so-mtable .pl-so-mchg .pl-term { white-space: nowrap; }
  .pl-so-mwrap .pl-so-mtable thead th, .pl-so-mwrap .pl-so-mtable td { min-width: 0; }
  .pl-so-mwrap .pl-so-mtable th:first-child, .pl-so-mwrap .pl-so-mtable td:first-child { width: 1px; }
  .pl-so-mtable th, .pl-so-mtable td { padding-inline: var(--space-2); }
  .pl-so-mtable .pl-so-msame { white-space: normal; }
}
@container so-mtable (max-width: 319.98px) {
  .pl-so-mtable th, .pl-so-mtable td { padding-inline: var(--space-1); }
  .pl-so-mtable th:first-child, .pl-so-mtable td:first-child { padding-inline-start: 0; }
  .pl-so-mtable th:last-child, .pl-so-mtable td:last-child { padding-inline-end: 0; }
}

/* Sidebar: the "+ Add" beside Events sits quietly inside its row (Fredrik, 2026-11-04).
   A 24 px pill with the label size; the tap area is still at least 24 by 24 px (WCAG 2.5.8).
   Only the left menu: the phone More sheet keeps its larger touch size. */
.pl-side__pair .pl-side__add { min-height: 24px; min-width: 24px; padding: 0 8px; border-radius: var(--radius-pill); font-size: var(--type-label-size); line-height: 16px; }

/* PeerLight 2.0: the one Net revenue card on Sales overview (build plan 2026-11-03, PR S2; mock-up sales-overview-combined v3, line option C). The header, the strip (the 60 px total, the change with its dates, the split in stack order), the chart that fills its real width with 12 px text, last year as grey dots with no edge, the sand discount boxes, the week tooltip with its 7 days, and the table view whose weeks open into days. Tokens only. */

.pl-cc { container: plcc / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); min-width: 0; padding: var(--space-5) var(--space-5) var(--space-4); }
.pl-cc__head { align-items: flex-start; }
.pl-cc__views { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* The strip: 24 px above and below the total (12 px card gap plus 12 px margin); 16 px on a phone. */
.pl-cc__strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) 28px; min-width: 0; margin: var(--space-3) 0; }
.pl-cc__strip[hidden] { display: none; }
.pl-cc__fig { margin: 0; white-space: nowrap; color: var(--ink); font-family: var(--font-display); font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-line); font-weight: var(--type-display-xl-weight); letter-spacing: var(--type-display-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-cc__vs { display: grid; gap: 2px; min-width: 0; }
.pl-cc__vs .pl-sh-vs.pl-sh-vs--line { width: auto; min-width: 0; white-space: nowrap; }
.pl-cc__nc { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-cc__split { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 2px var(--space-4); margin: 0 0 0 auto; padding: 0 0 0 var(--space-5); border-left: 1px solid var(--hairline); list-style: none; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc__split li { display: contents; }
.pl-cc__nm { display: flex; align-items: center; gap: var(--space-2); white-space: nowrap; color: var(--ink); }
.pl-cc__nm .pl-sh-swatch { margin-inline-end: 0; }
.pl-cc__members { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: normal; }
.pl-cc__split b { font-weight: 500; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-cc__sh { text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
@container plcc (max-width: 720px) {
  .pl-cc__strip { display: grid; gap: var(--space-2); }
  .pl-cc__vs .pl-sh-vs.pl-sh-vs--line { white-space: normal; }
  .pl-cc__split { grid-template-columns: minmax(0, 1fr) auto auto; margin: var(--space-1) 0 0; padding: var(--space-2) 0 0; border-left: 0; border-top: 1px solid var(--hairline); }
}

/* The chart: a fixed y-axis column, the marks stretched to the plot's real width, the text over them in px. */
.pl-cc__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); min-width: 0; }
.pl-cc__stage[hidden] { display: none; }
.pl-cc-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); padding-inline-end: 10px; min-width: 0; }
.pl-cc-axisy { display: block; overflow: visible; }
.pl-cc-plot { position: relative; min-width: 0; }
.pl-cc-marks { display: block; width: 100%; overflow: visible; }
.pl-cc-text { position: absolute; inset: 0; display: block; width: 100%; overflow: visible; pointer-events: none; }
.pl-cc-chart text { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.pl-cc-tick { font-size: var(--type-label-size); fill: var(--ink-muted); }
.pl-cc-axis { stroke: var(--border-strong); vector-effect: non-scaling-stroke; }
.pl-cc-grid { stroke: var(--hairline); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.pl-cc-band { fill: var(--promo-soft); stroke: var(--promo); stroke-width: 1.25; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.pl-cc-depth { font-size: var(--type-label-size); font-weight: 600; fill: var(--promo-ink); }
.pl-cc-live { stroke: var(--you); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pl-cc-hatch { stroke: var(--surface); stroke-width: 1.5; }
.pl-cc-ly { fill: none; stroke: var(--peer-line); stroke-width: 3; stroke-dasharray: 0 6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pl-cc-dots { display: inline-block; flex: none; width: 22px; height: 0; margin-inline-end: 6px; border-top: 3px dotted var(--peer-line); vertical-align: 3px; }
.pl-cc__key { margin: 0; }

/* The table view: weeks newest first, a week opens into its days. */
.pl-cc__table[hidden] { display: none; }
.pl-cc__tnote { margin: 0 0 var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-cc-table td { white-space: nowrap; }
.pl-cc-table th { white-space: normal; }
.pl-cc-day td { color: var(--ink-muted); background-color: color-mix(in srgb, var(--surface-raised) 60%, transparent); }
.pl-cc-day td:first-child { padding-inline-start: 32px; }
.pl-cc-exp { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.pl-cc-exp svg { flex: none; color: var(--ink-muted); }
.pl-cc-exp[aria-expanded="true"] svg { transform: rotate(90deg); }
.pl-cc-exp:focus-visible { outline: 2px solid var(--you); outline-offset: 3px; border-radius: 4px; }
/* A narrow card moves its last two columns into second lines (design review of PR 610, item 2): the discount days under the label from 600 px, the same days under Net revenue from 480 px. */
.pl-cc-sub { display: none; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
@container plcc (max-width: 600px) { .pl-cc-hide-nar { display: none; } .pl-cc-sub--disc { display: block; } }
@container plcc (max-width: 480px) {
  .pl-cc-hide-ph { display: none; }
  .pl-cc-sub--old { display: block; }
  .pl-cc-sub { white-space: normal; }
  .pl-table.pl-cc-table th, .pl-table.pl-cc-table td { padding-inline: 6px; }
  .pl-table.pl-cc-table tr > :first-child { min-width: 0; white-space: normal; }
  .pl-cc-exp { text-align: start; }
  .pl-table.pl-cc-table .pl-cc-day > td:first-child { padding-inline-start: 18px; }
}
/* The events list under a card narrower than 600 px is the phone list, as on a phone. */
@container plcc (max-width: 600px) { .pl-cc .pl-lane__wide { display: none; } .pl-cc .pl-lane__plist { display: block; } }

/* The week tooltip: a subtitle, notes, and its 7 days as small bars with their figures. */
.pl-sh-tip--days { min-inline-size: 250px; }
.pl-sh-tip .pl-sh-tip__sub { display: block; margin: -2px 0 6px; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-sh-tip__row--total span { font-weight: 600; }
.pl-sh-tip__row--sep { margin-block-start: 4px; padding-block-start: 4px; border-top: 1px solid var(--hairline); }
.pl-sh-tip__row--sep span:first-child { color: var(--ink-muted); }
.pl-sh-tip__note { margin-block-start: 6px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sh-tip__days { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 2px; height: 30px; margin-block-start: 6px; }
.pl-sh-tip__days i { display: block; min-height: 1px; border-radius: 1px 1px 0 0; background-color: var(--you); }
.pl-sh-tip__dl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); text-align: center; color: var(--ink-muted); }
.pl-sh-tip__dg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); margin-block-start: 4px; font-size: var(--type-label-size); line-height: var(--type-label-line); font-variant-numeric: tabular-nums; }
.pl-sh-tip__dg span { display: flex; justify-content: space-between; gap: 6px; color: var(--ink-muted); }
.pl-sh-tip .pl-sh-tip__dg b { display: inline; margin: 0; font-weight: 500; color: var(--ink); }

@media (max-width: 767.98px) {
  .pl-cc { padding: var(--space-4); }
  .pl-cc__strip { display: grid; gap: var(--space-2); margin: var(--space-1) 0; }
  .pl-cc__fig { font-size: var(--type-display-size); line-height: var(--type-display-line); letter-spacing: var(--type-display-tracking); }
  .pl-cc__split { grid-template-columns: minmax(0, 1fr) auto auto; margin: var(--space-1) 0 0; padding: var(--space-2) 0 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .pl-cc-chart { padding-inline-end: 6px; }
  .pl-table .pl-cc-day > td:first-child { background-color: color-mix(in srgb, var(--surface-raised) 60%, var(--surface)); }
}
@media print { .pl-cc .pl-desktop-only .pl-cc__views { display: none; } }

/* Disabled state C, app-wide (decision 2026-11-03-disabled-states-and-labels; mock-up
   disabled-checkbox v2). Unavailable controls that are not buttons get the locked look of
   decision 31: readable ink-muted text, a quiet edge, cursor not-allowed, never a fade. The
   reason is always a visible line tied to the control by aria-describedby. Buttons stay with
   decision 31 (base.css), the step arrows with context-bar.css. */

/* Checkbox and radio labels of a disabled input: ink-muted words, not-allowed, and the row takes
   no hover fill. The selected tint never shows either: every picker writes its tint rule as
   label:has(input:checked:not(:disabled)) (events.css, peerlight-view.css), because a more
   specific tint rule would win here whatever the order. The box is the browser's own. */
label:has(> input:disabled),
label:has(> input:disabled) * { color: var(--ink-muted); cursor: not-allowed; }
label:has(> input:disabled),
label:has(> input:disabled):hover { background: none; }

/* A disabled field: ink-muted value (the text fill too, which some browsers fade on their own),
   the card's surface instead of the raised field fill, a solid card-edge, opacity 1 and
   not-allowed. The label above stays ink; the help line under it gives the reason. Inactive
   controls are exempt from WCAG 1.4.11, so the quiet edge is allowed here (decision 76 covers
   enabled controls). */
input:disabled:not([type="checkbox"], [type="radio"], [type="hidden"]),
select:disabled,
textarea:disabled {
  color: var(--ink-muted); -webkit-text-fill-color: var(--ink-muted); background-color: var(--surface);
  border-color: var(--card-edge); box-shadow: none; cursor: not-allowed; opacity: 1;
}

/* A value the person must copy is readonly, not disabled (sheet v3.25 Forms): the authenticator
   key on two-factor setup. The C colours, so nobody tries to type in it, but it keeps the text
   cursor, its tab stop and the normal focus ring, and it scrolls when the key is wider than the
   field. No lock. */
.pl-auth__field input[readonly] {
  color: var(--ink-muted); -webkit-text-fill-color: var(--ink-muted); background-color: var(--surface);
  border-color: var(--card-edge); cursor: text;
}

/* PeerLight 2.0: the DLC breakdown section on Sales overview (mock-up sales-dlc-breakdown v2; decision 2026-11-03-dlc-breakdown).
   Six columns, the attach group first; under a 640 px section the same six figures as a list, the curve behind "Show the curve".
   The curve: the Net revenue card's chart frame (.pl-cc-* in sales-combined.css) plus a gutter for the end labels.
   The soundtrack: a short dashed swatch and a dashed parts-other line, never a DLC colour. Every end dot uses the shared
   .pl-sh-fill-* classes. Tokens only. */

.pl-dlc { container: pldlc / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; margin-block-start: var(--space-6); padding: var(--space-5) var(--space-5) var(--space-4); }
.pl-dlc__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.pl-dlc__dates { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-dlc__warn { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface-raised); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-dlc__warn .pl-state-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--critical-ink); }
.pl-dlc--muted { color: var(--ink-muted); }

/* The attach group header: one line where it fits, else it breaks only at the dot. */
.pl-dlc__ah .pl-dlc__a1, .pl-dlc__ah .pl-dlc__a2 { white-space: nowrap; }
.pl-dlc__ah .pl-dlc__a1 { font-weight: 600; color: var(--ink); }
.pl-dlc__ah .pl-dlc__a2 { font-weight: 400; color: var(--ink-muted); }

/* The table */
.pl-dlc-t { font-variant-numeric: tabular-nums; }
.pl-dlc-t tbody th, .pl-dlc-ct tbody th { font-weight: 400; color: var(--ink); background: none; }
.pl-dlc-t thead th { font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-dlc-t thead tr.pl-dlc-t__grp th, .pl-dlc-t thead tr.pl-dlc-t__grp td { background: transparent; border-bottom: 1px solid var(--card-edge); padding: var(--space-1) var(--space-3) 6px; font-size: var(--type-body-sm-size); line-height: 18px; vertical-align: bottom; }
.pl-dlc-t .pl-dlc__ah { white-space: nowrap; }  /* header and denominator on one line (Fredrik) */
.pl-dlc-t .pl-dlc-t__gl { border-left: 1px solid var(--card-edge); }
.pl-dlc-t td.n b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.pl-dlc-t tr.pl-dlc-t__sthead td { padding: var(--space-3) var(--space-3) var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); border-bottom: 1px solid var(--card-edge); }
.pl-dlc__nm { display: flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 500; }
.pl-dlc__nm .pl-sh-swatch { margin-inline-end: 0; }
.pl-dlc__first { display: block; margin-top: 2px; padding-left: 20px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-dlc__c2 { display: block; margin-top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
/* The soundtrack's swatch: a short dashed line, as its curve line. */
.pl-dlc-sw--ost { display: inline-block; flex: none; width: 12px; height: 2px; background-image: linear-gradient(90deg, var(--parts-other) 0 4.5px, transparent 4.5px 7.5px, var(--parts-other) 7.5px 12px); }

/* The list (a section under 640 px) */
.pl-dlc-l { display: none; }
.pl-dlc-l__head { margin: 0 0 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-dlc-l__list { list-style: none; margin: 0; padding: 0; }
.pl-dlc-l__list > li { display: grid; gap: var(--space-2); padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pl-dlc-l__list > li.pl-dlc-l__sth { display: block; padding: var(--space-3) 0 var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); }
.pl-dlc-l__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; align-items: start; }
.pl-dlc-l__cells--per { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.25fr) minmax(0, .8fr); }
.pl-dlc-l__cl { display: grid; gap: 0; min-width: 0; align-content: start; }
.pl-dlc-l__k { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-dlc-l__vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.pl-dlc-l__vrow .pl-dlc__c2 { margin: 0; white-space: normal; }
.pl-dlc-l__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-dlc-l__v.pl-dlc--muted { font-weight: 500; color: var(--ink-muted); }
@container pldlc (max-width: 639.98px) {
  .pl-dlc__tw { display: none; }
  .pl-dlc-l { display: block; }
}

/* For your next DLC: the units first, the rate range muted under them; a range never breaks at its dash. */
.pl-dlc-next { display: grid; grid-template-columns: auto repeat(2, minmax(0, max-content)); gap: 6px 28px; align-items: baseline; padding: var(--space-3) 14px; border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.pl-dlc-next__h { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; color: var(--ink); }
.pl-dlc-next__g { display: grid; gap: 0; }
.pl-dlc-next__k { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-dlc-next__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-dlc-next__s { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-dlc-nw { white-space: nowrap; }
.pl-dlc-next__v.pl-dlc--muted { color: var(--ink-muted); }
/* The basis line spans the block without widening its columns. */
.pl-dlc-next__b { grid-column: 1 / -1; width: 0; min-width: 100%; margin: 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
@container pldlc (max-width: 559.98px) {
  .pl-dlc-next { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pl-dlc-next__h { grid-column: 1 / -1; }
  .pl-dlc-next__v { white-space: normal; }
}

/* The curve */
.pl-dlc-c { display: grid; gap: var(--space-2); min-width: 0; border-top: 1px solid var(--hairline); padding-top: var(--space-4); }
.pl-dlc-c__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-2) var(--space-3); }
.pl-dlc-c__title { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); color: var(--ink); }
.pl-dlc-c__ctl { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.pl-dlc-c__ctl .pl-scope button { padding-inline: 10px; }  /* the two toggles share one row at 375 (mock-up v2) */
.pl-dlc-c__show { display: none; }
.pl-dlc-c__stage { min-width: 0; }
.pl-dlc-c__stage > [hidden] { display: none; }
.pl-cc-chart.pl-dlc-chart--wide { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline-end: 0; }
.pl-dlc-gutter { display: block; overflow: visible; }
.pl-dlc-mark { stroke: var(--border-strong); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pl-dlc-halo { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-dlc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-dlc-s-violet-deep { stroke: var(--violet-deep); }
.pl-dlc-s-violet-pale { stroke: var(--violet-pale); }
.pl-dlc-s-dlc-other { stroke: var(--dlc-other); }
.pl-dlc-s-parts-other { stroke: var(--parts-other); stroke-dasharray: 6 4; }
.pl-dlc-dot { stroke: var(--surface); stroke-width: 2; }
.pl-dlc-end { font-size: var(--type-label-size); fill: var(--ink); }
.pl-dlc-endv { font-size: var(--type-label-size); fill: var(--ink-muted); }
.pl-dlc-plate { fill: var(--surface); }  /* a young end label's plate in the card's colour: lines pass under it */
.pl-dlc-hl { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pl-dlc-key { display: flex; flex-wrap: wrap; gap: 6px var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-dlc-key[hidden] { display: none; }
.pl-dlc-key li { display: inline-flex; align-items: center; gap: 6px; }
.pl-dlc-key__v { white-space: nowrap; }
.pl-dlc-key b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-dlc-ln { display: inline-block; flex: none; width: 18px; height: 0; border-top: 2px solid; }
.pl-dlc-ln--violet-deep { border-color: var(--violet-deep); }
.pl-dlc-ln--violet-pale { border-color: var(--violet-pale); }
.pl-dlc-ln--dlc-other { border-color: var(--dlc-other); }
.pl-dlc-ln--parts-other { border-top: 2px dashed var(--parts-other); }
.pl-sh-tip__mark--parts-other-dash { height: 2px; border-radius: 0; background-image: linear-gradient(90deg, var(--parts-other) 0 3.5px, transparent 3.5px 6.5px, var(--parts-other) 6.5px 10px); }
.pl-dlc-ct td, .pl-dlc-ct th { white-space: nowrap; }
.pl-dlc-ct thead th { white-space: normal; vertical-align: bottom; }

/* The wide cut and its key from 640 px; the compact cut, the key with values and "Show the curve" below. */
.pl-dlc-cut--compact, .pl-dlc-key--compact { display: none; }
@container pldlc (max-width: 639.98px) {
  .pl-dlc-cut--wide, .pl-dlc-key--wide { display: none; }
  .pl-dlc-cut--compact { display: block; }
  .pl-dlc-key--compact:not([hidden]) { display: flex; }
  .pl-dlc-c__show { display: inline-flex; }
  .pl-dlc-c:has(.pl-dlc-c__show[aria-expanded="false"]) .pl-dlc-c__body { display: none; }
}

/* The foot: Export CSV (the house quiet button with the download icon). */
.pl-dlc__foot { display: flex; align-items: center; border-top: 1px solid var(--hairline); padding-top: 10px; }

@media (max-width: 767.98px) {
  .pl-dlc { margin-block-start: var(--space-5); padding: var(--space-4); gap: 14px; }
}
@media print {
  .pl-dlc__foot, .pl-dlc-c__show, .pl-dlc-c__ctl { display: none; }
}

/* PeerLight 2.0: the Promotion Board key in its own card under the timeline, and the "Dates not set" mark inside its row (Fredrik 2026-11-04). The key keeps the board's swatches; its notes are in the one (i) of the card head. Tokens only; the hatch colour comes from promotion-board-timeline. */
.pl-bd-key { margin-top: var(--space-6); }
.pl-bd__legend .pl-bd__dia { margin-inline: var(--space-1); }

/* "Dates not set": a diamond and the month in the row's own lane, one bar high (a bar is 26 px, board_plan.LANE_H). The box spans the free room up to the next bar, so the month shows only where it fits; otherwise the tooltip says it (the fit rule). Only the mark itself takes a click, and it is at least 24 by 24 (WCAG 2.2 target size). */
.pl-bd__tbd { position: absolute; height: calc(var(--space-5) + 2px); display: flex; align-items: center; container-type: inline-size; pointer-events: none; z-index: calc(var(--z-content) + 1); }
.pl-bd__it--tbd { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-width: var(--space-5); height: var(--space-5); box-sizing: border-box; padding-inline: var(--space-1); border-radius: var(--radius-sm); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; text-decoration: none; white-space: nowrap; }
.pl-bd__it--tbd:hover, .pl-bd__it--tbd:focus-visible { color: var(--ink); outline: 2px solid var(--focus); outline-offset: 1px; }
.pl-bd__tbd .pl-bd__dia { margin-inline: 0; background-color: var(--surface); }  /* stays readable where a bar drawn at its phone minimum reaches it */
/* With no room for the name, the bare diamond sits in the middle of its free room, off the bar's end; in a room narrower than the mark it is centred on the room. */
@container (max-width: 84px) {
  .pl-bd__tbd:not(.is-short) .pl-bd__mon { display: none; }
  .pl-bd__tbd:not(.is-short) .pl-bd__it--tbd { position: absolute; inset-inline-start: 50%; inset-block: 0; margin-block: auto; translate: -50% 0; }
}
@container (max-width: 56px) {
  .pl-bd__mon { display: none; }
  .pl-bd__it--tbd { position: absolute; inset-inline-start: 50%; inset-block: 0; margin-block: auto; translate: -50% 0; }
}

@media (max-width: 767.98px) {
  .pl-bd-key { margin-top: var(--space-5); }
}

/* PeerLight 2.0: Player data card heads inside the frame (decision 2026-11-04-card-heads-in-frame, item 2): Reviews, Refunds
   and CCUs. The head rule itself is the shared .pl-card--inhead in sales-card-head.css; here only what Player data adds.
   Tokens only. */

/* A table card has no side padding so its table runs to the edge; its head is inset so the title sits as far from the card
   top and side as the titles of the cards around it (24 and 24, 16 and 16 on a phone). */
.pl-card--inhead.pl-sh-tablecard > .pl-sh-head { padding: calc(var(--space-5) - var(--space-2)) var(--space-5) 0; }

/* 40 px between titled cards, 24 on a phone (the sheet: 40 between sections); .pl-pd's own gap is 16, 12 on a phone. */
.pl-pd > .pl-card--inhead, .pl-pd > .pl-pd-fold:has(> .pl-card--inhead) { margin-block-start: calc(var(--space-6) - var(--space-4)); }
@media (max-width: 767.98px) {
  .pl-card--inhead.pl-sh-tablecard > .pl-sh-head { padding: calc(var(--space-4) - var(--space-2)) var(--space-4) 0; }
  .pl-pd > .pl-card--inhead, .pl-pd > .pl-pd-fold:has(> .pl-card--inhead) { margin-block-start: calc(var(--space-5) - var(--space-3)); }
}

/* PeerLight 2.0: Player data, Fredrik's feedback of 2026-11-04 (decision 2026-11-04-player-data-feedback).
   The expand under a table card (Show all languages, Show all countries) reuses the shared expand button
   (.pl-dd-exp, stat-switch.js data-sw-expand); here only its place in a table card, which has no side padding.
   Tokens only. */
.pl-pd-expands { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2) calc(var(--space-5) - var(--space-3)) var(--space-4); }
/* Show all languages puts every language in place of the All other languages row. */
.pl-revsum-langcard:has([data-sw-expand="rev-lang"][aria-expanded="true"]) tr.pl-revsum-other { display: none; }
@media (max-width: 767.98px) {
  .pl-pd-expands { padding-inline: calc(var(--space-4) - var(--space-3)); padding-block-end: var(--space-3); }
}
@media print { .pl-pd-expands { display: none; } }

/* A/B comparison, Before and after (slice 1; mock-up ab-module v3). Tokens only.
   The menu row is a plain row right under Events (Fredrik 2026-11-04), so it has no rule here. */

.pl-abm { display: flex; flex-direction: column; gap: var(--space-4); }
.pl-abm__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pl-abm__fresh { font-family: var(--font-mono); font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-abm__tabs { margin-bottom: var(--space-4); }
.pl-abm__card { padding: var(--space-5); margin-bottom: var(--space-4); }
.pl-abm__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.pl-abm__ctl { justify-content: flex-start; align-items: center; margin-top: var(--space-4); }
.pl-abm__what { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; }
.pl-abm__name { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); }
.pl-abm__sub, .pl-abm__os, .pl-abm__msub, .pl-abm__ss, .pl-abm__vs { display: block; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); font-weight: 400; }
.pl-abm__sub { margin: 2px 0 0; }
.pl-abm__k { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); padding-inline: var(--space-2); align-self: center; }
.pl-abm__gl { margin-top: 3px; }
.pl-abm__cal { display: inline-flex; flex: none; margin-top: 2px; color: var(--ink-muted); }
.pl-abm__pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pl-abm__product { display: flex; align-items: center; gap: var(--space-2); }
.pl-abm__product label { display: flex; align-items: center; gap: var(--space-1); }
.pl-abm__events { position: relative; }
.pl-abm__events > summary { list-style: none; cursor: pointer; }
.pl-abm__events > summary::-webkit-details-marker { display: none; }
.pl-abm__menu { position: absolute; right: 0; top: calc(100% + var(--space-1)); z-index: var(--z-menu); width: 340px; max-height: 420px; overflow-y: auto; padding: var(--space-2); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface-raised); box-shadow: var(--shadow-pop); }
.pl-abm__opt { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: var(--type-body-size); line-height: 20px; }
.pl-abm__opt:hover, .pl-abm__opt[aria-current="true"] { background-color: var(--violet-tint); }
.pl-abm__opt > i { flex: none; margin-top: 4px; }
.pl-abm__custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-top: var(--space-3); font-size: var(--type-body-sm-size); color: var(--ink-muted); }
.pl-abm__custom fieldset { display: flex; gap: var(--space-2); border: 0; margin: 0; padding: 0; }
.pl-abm__custom legend { font-size: var(--type-label-size); padding: 0; margin-bottom: var(--space-1); }
.pl-abm__custom label { display: flex; align-items: center; gap: var(--space-1); }
.pl-abm__n { width: 72px; min-height: 32px; font-variant-numeric: tabular-nums; }
.pl-abm__sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.pl-abm__side { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.pl-abm__sh { display: flex; align-items: center; gap: var(--space-2); font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-abm__sv { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-abm__mk { display: inline-block; width: 9px; height: 9px; flex: none; }
.pl-abm__mk--b { background-color: var(--violet-pale); }
.pl-abm__mk--a { background-color: var(--violet-deep); border-radius: 50%; }
.pl-abm__flag { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink); }

.pl-abm__table th, .pl-abm__table td { vertical-align: middle; }
.pl-abm__table .n { text-align: right; font-variant-numeric: tabular-nums; }
.pl-abm__group th { padding-top: var(--space-4); text-align: left; }
.pl-abm__gname { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--sand-ink); margin-inline-end: var(--space-2); }
.pl-abm__m { font-weight: 500; text-align: left; }
.pl-abm__muted { color: var(--ink-muted); font-size: var(--type-body-sm-size); }
.pl-abm__v { font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink); }
.pl-abm__v--q { color: var(--ink-muted); }
.pl-abm__band { display: block; }
.pl-abm__bl { stroke: var(--hairline); }
.pl-abm__bz { fill: var(--peer-band); }
.pl-abm__be { stroke: var(--border-strong); stroke-width: 1.5; }
.pl-abm__bb { fill: var(--violet-pale); stroke: var(--surface); stroke-width: 1.5; }
.pl-abm__ba { fill: var(--violet-deep); stroke: var(--surface); stroke-width: 1.5; }
.pl-abm__key { margin: var(--space-3) 0 0; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); }
.pl-abm__kband { display: inline-block; width: 18px; height: 8px; margin-inline: var(--space-1); vertical-align: middle; background-color: var(--peer-band); border-inline: 1.5px solid var(--border-strong); }
.pl-abm__hatch { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--border-strong); background-image: repeating-linear-gradient(135deg, var(--border-strong) 0 1px, transparent 1px 5px); }
.pl-abm__else th { text-align: left; font-weight: 500; }
.pl-abm__else .n { text-align: right; font-variant-numeric: tabular-nums; }
.pl-abm__none { margin: 0; color: var(--ink-muted); }
.pl-abm__table td:last-child { min-width: 132px; }
.pl-abm__table .pl-abm__m { min-width: 150px; }
@media (max-width: 1279px) {
  .pl-abm__band { width: 96px; height: auto; }
  .pl-abm__table th, .pl-abm__table td { padding-inline: var(--space-2); }
}
.pl-abm__nw { white-space: nowrap; }
.pl-abm__days .n { text-align: right; font-variant-numeric: tabular-nums; }
.pl-abm__days th { text-align: left; font-weight: 400; }

/* Store traffic, Where the traffic came from (Fredrik 2026-11-04): Discovery Queue is always listed. When it is
   not among the 10 biggest it sits under a divider below them, with its own rank, as the grey row does; the Every
   source table follows the list (review of PR 652, F4). Tokens only. */
.pl-sbars__row--pinned { border-top: 1px solid var(--border-strong); }
/* The table collapses borders, so the row above would win a border: an inset line instead. */
.pl-tsources tr.pl-tsources__dq td { box-shadow: inset 0 1px 0 var(--border-strong); }

/* Store traffic, Top 6 over time (S6, mock-up store-sources-over-time v2; design sheet v3.31, source line colours).
   Under the list in Where the traffic came from: the head with Chart and Table, the chart with Pick a source beside it
   (a radio group, the chart's key) when the card is 640 px or wider and under the chart when it is narrower (a container
   query on the card, walk 2026-11-13), a native menu above it and a key under it on phones. The chart names its lines
   at their ends only when the chart itself is 400 px or wider (peerlight.js, SOURCE_NAMES_MIN). Discovery Queue's bar in the list is sea, the
   colour of its line. Tokens only. */
.pl-sbars__row--dq .pl-sbars__track i { background: var(--source-dq); }

.pl-sot { container-type: inline-size; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.pl-sot__head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; justify-content: space-between; }
.pl-sot__title { margin: 0; }
.pl-sot__sub { margin: 2px 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-sot__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: var(--space-5); margin-top: var(--space-3); }
.pl-sot__plot { min-width: 0; }
.pl-sot__box { height: 320px; }

/* Pick a source: one Tab stop, the arrow keys move the pick (source-pick.js). */
.pl-sot__pick-l { margin: 0 0 6px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sot__rg { display: flex; flex-direction: column; }
.pl-sot__opt { display: grid; grid-template-columns: 18px 20px minmax(0, 1fr); gap: var(--space-2); align-items: center; min-height: 32px; padding: 0 var(--space-2); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink); }
.pl-sot__opt:hover { background: var(--surface-raised); }
.pl-sot__opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-sot__opt[aria-checked="true"] { background: var(--violet-tint); color: var(--violet-strong); font-weight: 600; }
.pl-sot__opt[aria-disabled="true"] { color: var(--ink-muted); cursor: default; }
.pl-sot__opt[aria-disabled="true"]:hover { background: transparent; }
.pl-sot__rk { color: var(--ink-muted); text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.pl-sot__opt[aria-checked="true"] .pl-sot__rk { color: var(--violet-strong); }
.pl-sot__nd { font-size: var(--type-label-size); }
.pl-sot__sw { display: inline-block; width: 16px; height: 0; border-top: 3px solid var(--violet); vertical-align: middle; }
.pl-sot__sw--none { border-top: 1px solid var(--border-strong); }

/* Phones: the menu above the chart and the key under it. */
.pl-sot__sel { display: none; margin-top: var(--space-3); }
.pl-sot__sel label { display: block; margin-bottom: 4px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sot__sel select { width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--type-body-size); }
.pl-sot__key { display: none; list-style: none; margin: 10px 0 0; padding: 0; flex-wrap: wrap; gap: 4px var(--space-4); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sot__key li { display: flex; align-items: center; gap: 6px; }
.pl-sot__note { margin: 4px 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* The Table view: the week column stays put while the table scrolls sideways; a picked source comes first. */
.pl-sot__cap { margin: var(--space-3) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sot__tw { margin-top: var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); }
.pl-sot__tbl { width: 100%; font-variant-numeric: tabular-nums; }
.pl-sot__tbl th, .pl-sot__tbl td { white-space: nowrap; }
.pl-sot__tbl thead th { white-space: normal; min-width: 76px; vertical-align: bottom; }
.pl-sot__tbl th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; }
.pl-sot__tbl tbody th { font-weight: 400; }
.pl-sot__tbl .is-picked { background: var(--violet-tint); }
.pl-sot__tbl thead .is-picked { color: var(--violet-strong); font-weight: 600; }
.pl-sot__picked { color: var(--ink-muted); font-weight: 400; }
.pl-sot__tot { font-weight: 600; }

/* A narrow card (768 px windows, a tablet): the chart takes the full width and Pick a source sits under it. */
@container (max-width: 639.98px) {
  .pl-sot__wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}

@media screen and (max-width: 767.98px) {
  .pl-sot__wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pl-sot__picker { display: none; }
  .pl-sot__sel { display: block; }
  .pl-sot__key { display: flex; }
  .pl-sot__box { height: 260px; }
}

/* PeerLight 2.0: Fredrik's Forecast feedback of 2026-11-04. F1: the overview's head sits inside its card with the card's own
   padding and the 20 px (8 + 12) every in-frame card head keeps above its content (the rule of .pl-card--inhead in
   sales-card-head.css; this card has its own padding of 0 so its rows can run to the frame). F2: the period's label over the
   big figure, as the column labels beside it. F4: the month table's Total row, the house total row (Markets, Store traffic
   sources): 600 weight and a card-edge line above it. Tokens only. */

.pl-fcx-hero > .pl-mh-head { padding: var(--space-5) var(--space-5) calc(var(--space-2) + var(--space-3)); }
.pl-sh-hero__figlabel + .pl-sh-hero__fig { margin-block-start: var(--space-2); }
/* The hero and side columns' comparison lines wrap at every width, each part kept whole (design owner D1 on PR 646: they ran into each other at 768 px). */
.pl-fcx-hero .pl-sh-line { flex-wrap: wrap; }
.pl-fcx-hero .pl-sh-line > * { white-space: nowrap; }
/* The hero's basis may be long ("... change on 11 of 12 months", D2): it wraps between words rather than past the card. */
.pl-fcx-hero .pl-sh-hero__lead .pl-sh-line > .pl-sh-vs { white-space: normal; }
.pl-fcx-total td { font-weight: 600; border-block-start: 1px solid var(--card-edge); }

@media (max-width: 767.98px) {
  .pl-fcx-hero > .pl-mh-head { padding: var(--space-4) var(--space-4) calc(var(--space-2) + var(--space-3)); }
}

/* A/B comparison entry points (slice 3a; mock-up ab-module v3, states 4 and 6): "Compare A/B" on
   each row of the Events list, under each past event in the event lane popover, and beside each
   measured promotion on Promotion results. Desktop only, as the module is. Tokens only. */
.pl-ev__ab { white-space: nowrap; text-align: right; width: 1%; }
.pl-ev__ny { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-lane__ab { display: inline-flex; align-items: center; min-height: 28px; color: var(--link); font-size: var(--type-label-size); }
/* Design owner U1: below 1280 px Game and Kind may wrap, so What happened keeps its width. */
@media (max-width: 1279px) { .pl-ev__table td.pl-ev__m { white-space: normal; } }

/* A/B comparison: Game vs game (mock-up ab-game-vs-game v2,
   Fredrik 2026-11-05), and the Conversion chart as two small charts stacked on both tabs.
   Tokens only. */
.pl-abm__shared { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink); }
.pl-abm__shared b { font-weight: 600; }
.pl-abm__gsel { justify-self: start; min-width: 280px; max-width: 100%; font-weight: 600; }
/* PR 695 design F1: the pickers keep their own row under the title in every state. */
.pl-abm__grow { flex-direction: column; justify-content: flex-start; }
.pl-abm__side .pl-abm__product { margin-block: var(--space-1); }
.pl-abm__stk { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: 20px; font-weight: 600; color: var(--ink); }
.pl-abm__stk:first-child { margin-top: 0; }
.pl-view-chart .pl-chart-box.pl-abm__small, .pl-lane__stage .pl-chart-box.pl-abm__small { height: 200px; }
.pl-abm__left { display: inline-block; width: 12px; height: 12px; background-color: var(--surface-raised); border: 1px solid var(--border-strong); }
.pl-abm__disc { display: inline-block; width: 12px; height: 12px; border: 1px dashed var(--promo); background-color: var(--promo-soft); }
/* Slice 2: the Line up pill's unavailable choice, a side's dates, the Days field beside presets. */
.pl-abm__off { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 14px; color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 1px; cursor: not-allowed; }
.pl-abm__sd { display: block; font-size: var(--type-label-size); line-height: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-abm__inline { margin-top: 0; align-items: center; }
.pl-abm__side .pl-abm__custom { margin-top: var(--space-2); }
/* The Winner column (Fredrik 2026-11-05, mock-up ab-winner-column v2): the side's own marker and
   its name in ink, never coloured; Can't tell, Not yet and the dash muted. */
.pl-abm__w { min-width: 96px; }
.pl-abm__win { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-body-sm-size); font-weight: 600; color: var(--ink); white-space: nowrap; }
.pl-abm__so { font-weight: 400; color: var(--ink-muted); }
.pl-abm__wq { font-size: var(--type-body-sm-size); color: var(--ink-muted); white-space: nowrap; }
/* The split setup (option 1): two cards; the second holds the days and the side boxes. */
.pl-abm__days .pl-abm__sides { margin-top: var(--space-4); }
.pl-abm__days .pl-abm__ctl { margin-top: 0; }
/* gvg-layout-fixes (Fredrik 2026-11-06): stacked control rows (Line up, Count) get the gap the
   card uses before its next control, and a side's Start at keeps one line while its select takes
   the rest of the box and never runs past it. */
.pl-abm__days .pl-abm__ctl + .pl-abm__ctl { margin-top: var(--space-3); }
.pl-abm__side .pl-abm__product { min-width: 0; }
.pl-abm__side .pl-abm__product label { flex: 1 1 auto; min-width: 0; }
.pl-abm__side .pl-abm__product .pl-abm__k { flex: none; white-space: nowrap; }
.pl-abm__side .pl-abm__product .pl-select { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 100%; }
/* PR 700 review F1: a side's From and To share the line with Show; where the box is narrow (about
   1024 px) To goes under From and Show stays beside To, never past the box. */
.pl-abm__side .pl-abm__custom { flex-wrap: nowrap; }
.pl-abm__side .pl-abm__custom fieldset { flex: 0 1 auto; flex-wrap: wrap; min-width: 0; }
.pl-abm__gpick { display: flex; flex-direction: column; gap: var(--space-1); }
.pl-abm__sides--one { grid-template-columns: minmax(0, 1fr); }
/* Fredrik 2026-11-05: the first card's title (the event's name; Game vs game's "A vs B") is the
   box's main title, one step up the title scale from the card titles (the metric heading), on
   both tabs; the event's glyph and the calendar icon scale with it. The line under it stays. */
.pl-abm__setup .pl-abm__name { font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: var(--type-metric-heading-weight); letter-spacing: var(--type-metric-heading-tracking); }
.pl-abm__setup .pl-abm__gl { scale: 1.33; margin: var(--space-2) var(--space-2) 0 var(--space-1); }
.pl-abm__setup .pl-abm__cal { margin-top: var(--space-1); }
.pl-abm__setup .pl-abm__cal svg { width: 20px; height: 20px; }
/* Game vs game, Same dates: one muted line, "<counted> of <asked> baseline days" (Fredrik 2026-11-05). */
.pl-abm__counted { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
/* PR 695 N1: B holds the line's height when the same game is on both sides, so the pickers stay level. */
.pl-abm__ss--blank { min-height: 16px; }
/* PR 700 F6 (Fredrik 2026-11-06): one muted line by a From-To the page shortened to 90 days. */
.pl-abm__cut { margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }

/* Store traffic: the Route funnel (design sheet v3.32; mock-up store-funnel v3 option A, Fredrik
   2026-11-04). Counts are stations on a violet line; the rate that leads to each one sits over the
   arrow before it; CTR on Steam under the first arrow; Units branch off Visits on a second line.
   A narrow card (a phone) wraps the route into legs, each left to right. Tokens only. */

/* Fredrik 2026-11-05: more air between the card's head line and the first step's name. */
.pl-tfr-box { container-type: inline-size; min-width: 0; padding-top: var(--space-4); }
.pl-tfr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); font-variant-numeric: tabular-nums; }
.pl-tfr > * { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.pl-tfr__count { font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-tfr__rate { font-family: var(--font-display); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-display-weight); letter-spacing: var(--type-display-tracking); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-tfr__rate--words { font-family: var(--font-sans); font-size: var(--type-heading-size); line-height: var(--type-heading-line); letter-spacing: 0; color: var(--ink-muted); white-space: normal; }
.pl-tfr__of, .pl-tfr__from, .pl-tfr__sublab { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-tfr__sublab { font-weight: 500; }
.pl-tfr__subhead { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.pl-tfr__small { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-tfr__small--words { font-weight: 400; color: var(--ink-muted); }
.pl-tfr__subchg { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.pl-tfr__sub .pl-tfn__chip { white-space: normal; }

/* The drawing: dots, lines and arrow heads, all violet (the studio's own data), 2 px lines.
   Plain class selectors throughout: the show/hide rules below win by order, not weight. */
.pl-tfr__draw { display: block; position: relative; height: 14px; }
.pl-tfr__draw i { position: absolute; display: block; }
.pl-tfr__dot { left: 0; top: 1px; width: 12px; height: 12px; border-radius: 50%; background-color: var(--you); }
.pl-tfr__dot--from { background-color: var(--surface); box-shadow: inset 0 0 0 2px var(--you); }
.pl-tfr__dot--end { left: auto; right: 0; }
.pl-tfr__ln { top: 6px; height: 2px; left: 12px; right: 20px; background-color: var(--you); }
.pl-tfr__tip { top: 2px; right: 12px; width: 0; height: 0; border-left: 8px solid var(--you); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pl-tfr__vl { left: 5px; top: 0; bottom: 0; width: 2px; background-color: var(--you); }

/* Narrow card: legs. Impressions, then its leg to Visits; then one leg per end, "from Visits". */
.pl-tfr__d1, .pl-tfr__d2, .pl-tfr__d3, .pl-tfr__d4, .pl-tfr__d5, .pl-tfr__b1, .pl-tfr__b2, .pl-tfr__b3, .pl-tfr__b4 { display: none; }
.pl-tfr__a { grid-row: 1; grid-column: 1 / -1; }
.pl-tfr__p1 { grid-row: 2; grid-column: 1 / -1; margin-top: var(--space-2); }
.pl-tfr__r1 { grid-row: 3; grid-column: 1; padding-top: 10px; }
.pl-tfr__b { grid-row: 3; grid-column: 2; padding-top: 10px; }
.pl-tfr__sub { grid-row: 4; grid-column: 1 / -1; margin-top: var(--space-2); }
.pl-tfr__from1 { grid-row: 5; }
.pl-tfr__p2 { grid-row: 6; }
.pl-tfr__r2 { grid-row: 7; grid-column: 1; padding-top: 10px; }
.pl-tfr__e1 { grid-row: 7; grid-column: 2; padding-top: 10px; }
.pl-tfr__from2 { grid-row: 8; }
.pl-tfr__p3 { grid-row: 9; }
.pl-tfr__r3 { grid-row: 10; grid-column: 1; padding-top: 10px; }
.pl-tfr__e2 { grid-row: 10; grid-column: 2; padding-top: 10px; }
.pl-tfr__p1, .pl-tfr__p2, .pl-tfr__p3, .pl-tfr__from1, .pl-tfr__from2 { grid-column: 1 / -1; }
.pl-tfr__from1, .pl-tfr__from2 { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.pl-tfr__p2, .pl-tfr__p3 { margin-top: var(--space-1); }
.pl-tfr__b, .pl-tfr__e1, .pl-tfr__e2 { align-items: flex-end; text-align: right; }
.pl-tfr__b .pl-tfn__chg, .pl-tfr__e1 .pl-tfn__chg, .pl-tfr__e2 .pl-tfn__chg { align-items: flex-end; }
.pl-tfr__b .pl-tfn__owners { white-space: normal; justify-content: flex-end; }

/* Wide card: the route on one line, Units on a branch line under it. */
@container (min-width: 860px) {
  .pl-tfr { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) max-content; grid-template-rows: auto 14px auto auto; column-gap: 0; }
  .pl-tfr__p1, .pl-tfr__p2, .pl-tfr__p3, .pl-tfr__from1, .pl-tfr__from2 { display: none; }
  .pl-tfr__d1, .pl-tfr__d2, .pl-tfr__d3, .pl-tfr__d4, .pl-tfr__d5 { display: block; }
  .pl-tfr--branch .pl-tfr__b1, .pl-tfr--branch .pl-tfr__b2, .pl-tfr--branch .pl-tfr__b3, .pl-tfr--branch .pl-tfr__b4 { display: block; }
  .pl-tfr__a, .pl-tfr__b, .pl-tfr__e1 { padding: 0 var(--space-3) 10px 0; align-self: end; }
  .pl-tfr__r1, .pl-tfr__r2 { padding: 0 var(--space-4) 10px 0; align-self: end; }
  .pl-tfr__a { grid-area: 1 / 1; }
  .pl-tfr__r1 { grid-area: 1 / 2; }
  .pl-tfr__b { grid-area: 1 / 3; }
  .pl-tfr__r2 { grid-area: 1 / 4; }
  .pl-tfr__e1 { grid-area: 1 / 5; }
  .pl-tfr__sub { grid-area: 3 / 2; margin: 0; padding: 14px var(--space-4) 0 0; }
  .pl-tfr__r3 { grid-area: 3 / 4; padding: 14px var(--space-4) 10px 0; align-self: end; }
  .pl-tfr__e2 { grid-area: 3 / 5; padding: 14px var(--space-3) 10px 0; align-self: end; }
  .pl-tfr__b, .pl-tfr__e1, .pl-tfr__e2 { align-items: flex-start; text-align: left; }
  .pl-tfr__b .pl-tfn__chg, .pl-tfr__e1 .pl-tfn__chg, .pl-tfr__e2 .pl-tfn__chg { align-items: flex-start; }
  .pl-tfr__b .pl-tfn__owners { white-space: nowrap; justify-content: flex-start; }
  /* Fredrik 2026-11-05: every figure on one line, and the same gap between all steps. Counts and
     rates share one size, figure-xl (smaller than the tile size since Fredrik's second note of
     2026-11-05, on the Store page funnel and All tagged links alike); every item starts at the top
     of its row, so names, figures and pills line up;
     each rate (and CTR on Steam and Sales conversion under it) sits centred between the station
     before it and the next dot. */
  .pl-tfr__a, .pl-tfr__b, .pl-tfr__e1, .pl-tfr__r1, .pl-tfr__r2 { align-self: start; }
  .pl-tfr__r3, .pl-tfr__e2 { align-self: start; }
  .pl-tfr__r1, .pl-tfr__r2, .pl-tfr__r3, .pl-tfr__sub { justify-self: center; align-items: center; text-align: center; padding-inline: var(--space-2); }
  .pl-tfr__r1 .pl-tfn__chg, .pl-tfr__r2 .pl-tfn__chg, .pl-tfr__r3 .pl-tfn__chg { align-items: center; }
  .pl-tfr__subhead, .pl-tfr__subchg { justify-content: center; }
  /* The non-owners line under Visits does not widen the Visits column: the gap after Visits is
     measured from its figure, like every other step. */
  .pl-tfr__b .pl-tfn__owners { width: 0; overflow: visible; }
  /* No rate on the first arrow (All tagged links): the rate gets its own column, so the four
     items (two stations, the rate, the end) are spaced evenly; the line runs on under the rate. */
  .pl-tfr--norate { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) max-content minmax(0, 1fr) max-content; }
  .pl-tfr--norate .pl-tfr__r2 { grid-area: 1 / 5; }
  .pl-tfr--norate .pl-tfr__e1 { grid-area: 1 / 7; }
  .pl-tfr--norate .pl-tfr__r3 { grid-area: 3 / 5; }
  .pl-tfr--norate .pl-tfr__e2 { grid-area: 3 / 7; }
  .pl-tfr--norate .pl-tfr__d4 { grid-area: 2 / 4 / 3 / 7; }
  .pl-tfr--norate .pl-tfr__d5 { grid-area: 2 / 7; }
  .pl-tfr--norate .pl-tfr__b3 { grid-area: 4 / 4 / 5 / 7; }
  .pl-tfr--norate .pl-tfr__b4 { grid-area: 4 / 7; }
  .pl-tfr__d1 { grid-area: 2 / 1; }
  .pl-tfr__d2 { grid-area: 2 / 2; }
  .pl-tfr__d3 { grid-area: 2 / 3; }
  .pl-tfr__d4 { grid-area: 2 / 4; }
  .pl-tfr__d5 { grid-area: 2 / 5; }
  .pl-tfr__b1 { grid-area: 3 / 3; height: auto; }
  .pl-tfr__b2 { grid-area: 4 / 3; }
  .pl-tfr__b3 { grid-area: 4 / 4; }
  .pl-tfr__b4 { grid-area: 4 / 5; }
  .pl-tfr__ln--on { left: 12px; right: 0; }
  .pl-tfr__ln--in { left: 0; right: 8px; }
  .pl-tfr__draw .pl-tfr__tip { right: 0; }
  .pl-tfr__vl--down { top: 7px; bottom: 0; }
  .pl-tfr__vl--elbow { top: 0; bottom: auto; height: 8px; }
  .pl-tfr__ln--elbow { left: 5px; right: 0; }
}

/* Table view: Step, Figure, Change, Before; a phone puts the change under the figure. */
.pl-tfr-tbl { min-width: 0; }
.pl-tfr-table { width: 100%; font-variant-numeric: tabular-nums; }
.pl-tfr-table caption { caption-side: top; text-align: left; padding-bottom: var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-tfr-table tbody th { font-weight: 500; text-align: left; }
.pl-tfr-table__ph, .pl-tfr-table__tc { display: none; }
@media (max-width: 767.98px) {
  .pl-tfr-table .pl-tfr-table__wide { display: none; }
  .pl-tfr-table__ph { display: inline; }
  .pl-tfr-table__tc { display: block; font-size: var(--type-meta-size); line-height: 18px; color: var(--ink-muted); white-space: normal; }
  .pl-tfr-table tbody th { white-space: normal; }
}

/* Player data, the Demo page (mock-up demo-tab v2.2, Fredrik 2026-11-04; modules/steam_demo).
   One card per kind of data, its head inside the frame; the two figures, the dates line once,
   the chart with the shared event lane, its key, then the page's one events list. On a phone the
   measure switch takes its own full-width row of two equal segments, each label allowed two
   centred lines, at least 44 px tall (owner M6). Tokens only. */
.pl-dm-card { display: grid; gap: var(--space-3); min-width: 0; }
/* Each Demo card is a section of its own: the 40 px between section slots is the gap, as on CCUs (no extra card margin). */
.pl-dm > .pl-card--inhead { margin-block-start: 0; }
.pl-dm-card > .pl-sh-head { margin-block-end: 0; }
.pl-dm-figs { margin: 0; }
.pl-dm-figs > div { display: grid; gap: 2px; align-content: start; }
.pl-dm-when { margin: calc(-1 * var(--space-1)) 0 0; font: 500 var(--type-body-sm-size)/var(--type-body-sm-line) var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.pl-dm-when__sub { font-weight: 400; color: var(--ink-muted); }
.pl-dm-panel { margin: 0 0 var(--space-1); }

/* The key: the series, the hatch, then the lane's own key items (event-lane.html part keyitems). */
.pl-dm-key { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.pl-dm-key > li { display: inline-flex; align-items: center; gap: 6px; }
.pl-dm-key i.pl-dm-key__hatch { border: 1px solid var(--border-strong); background-color: transparent; background-image: repeating-linear-gradient(135deg, var(--border-strong) 0 1px, transparent 1px 4px); }

/* The measure switch: in the head on desktop, its own row on a phone. */
.pl-dm-seg { display: none; }
@media (max-width: 767.98px) {
  .pl-dm-measure { display: none; }
  .pl-dm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
  .pl-dm-seg a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--space-1) var(--space-2); border-radius: var(--radius-md); color: var(--ink-muted); font: 400 var(--type-body-sm-size)/18px var(--font-sans); text-align: center; text-decoration: none; }
  .pl-dm-seg a[aria-current="true"] { background-color: var(--ink); color: var(--canvas); font-weight: 500; }
  .pl-dm-figs { grid-template-columns: 1fr 1fr; }
  .pl-dm-figs > div { grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .pl-dm-figs .pl-sh-label { align-self: end; }
  .pl-dm-figs .pl-sh-vs { white-space: normal; }
}

/* The page's one events list is the shared lane list opened on its newest 4 (event_lane.html, recent):
   the rows behind "Show all events" stay hidden on a phone too, where the list is shown as a block. */
.pl-lane__list--recent { padding-top: 0; }
.pl-lane__list--recent .pl-lane__plist[hidden] { display: none; }

/* Player data, the Demo page: Demo installs, Last install on a phone: the date at the metric
   heading size (20/26), as the Latest review date on Demo reviews, so "Oct 16, 2026" fits its
   half of the card (it may wrap at a space, never widen the page). The dates line under the figures wraps. */
@media (max-width: 767.98px) {
  .pl-dm-last { font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-variant-numeric: tabular-nums; }
}

/* Player data, the Demo page: Demo installs by country (mock-up demo-tab v2.2; modules/steam_demo).
   The country table: the share bar in its own column in the studio's own violet, 8 px tall;
   Other countries muted; on a phone the bar column is left out (the share is in the column
   before it). Tokens only. */
.pl-dm-co__table { width: 100%; }
.pl-dm-co__barc { width: 38%; }
.pl-dm-co .pl-sharebar { margin: 0; height: 8px; background-color: transparent; border-radius: 2px; }
.pl-dm-co .pl-sharebar i { background-color: var(--you); border-radius: 2px; }
.pl-dm-co__other td { color: var(--ink-muted); }
@media (max-width: 767.98px) {
  .pl-dm-co__barc { display: none; }
}

/* Demo store page (mock-up demo-tab v2.2, Tier 1 only): three figures in one row on desktop,
   two a row on a phone as the mock-up's phone strip; the third starts its row with no rule. */
.pl-dm-figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) {
  .pl-dm-figs--3 { grid-template-columns: 1fr 1fr; }
  .pl-dm-figs--3 > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* Demo reviews (mock-up demo-tab v2.2, Fredrik 2026-11-04): two pairs in one card, the Period's
   pair over Last 30 days, a hairline between them, as the Reviews tab's period and All time
   pairs. The split bar is the demo's own mark (you) on a hairline track, 96 px, under the figure
   on the phone too. Tokens only. */
.pl-dm-rv__pairs { display: grid; gap: var(--space-4); }
.pl-dm-rv__pair { display: grid; gap: var(--space-2); min-width: 0; }
.pl-dm-rv__pair + .pl-dm-rv__pair { border-block-start: 1px solid var(--hairline); padding-block-start: var(--space-3); }
.pl-dm-rv__pair > .pl-dm-when { margin: 0; }
.pl-dm-rv .pl-sh-fig small { margin-inline-start: 3px; font-size: 0.55em; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.pl-dm-rv .pl-dm-rv__split { width: 96px; height: 4px; margin-block: 4px 2px; border-radius: 2px; background-color: var(--hairline); }
.pl-dm-rv .pl-dm-rv__split i { background-color: var(--you); }
/* The bar and the rating word share one tail under the figure, so a figure keeps its three rows
   (label, figure, tail) in the phone grid and the bar never covers the word. */
.pl-dm-rv__tail { display: grid; gap: 0; min-width: 0; }
.pl-dm-rv__tail > .pl-sh-vs { display: block; }
/* A period wholly after the last counted day: "Data to <day>" in place of the figures. */
.pl-dm-rv__pending { margin: 0; }
/* The Latest review date on a phone: a date size, so it stays inside its half of the card
   (mock-up demo-tab v2.2, .ph .strip dd.d28; design check of PR 677). */
@media (max-width: 767.98px) {
  .pl-dm-rv .pl-dm-rv__date { font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-variant-numeric: tabular-nums; }
}

/* The Help page and the staff Help inbox (mock-up help-support v2, Fredrik 2026-11-05),
   built on the Feedback page's parts (feedback-beta.css). Feedback matches Help (decision 6):
   the chips here are the chips there, with no glow on a chosen chip (shine budget), and both
   forms share the live character count. No new colour or size token. */

/* Kind and topic chips, both forms: a 36 px target, violet tint when chosen, no glow. */
.pl-fb__chips label { display: inline-flex; align-items: center; min-height: 36px; border-color: var(--border-strong); line-height: var(--type-body-line); }
.pl-fb__chips input:checked:not(:disabled) + label { color: var(--ink); border-color: var(--link); background: var(--violet-tint); font-weight: 500; box-shadow: none; }

/* The live count: neutral, red over the limit. */
.pl-count { font-variant-numeric: tabular-nums; }
.pl-count--over { color: var(--critical-ink); font-weight: 500; }

/* Help: the form card. */
.pl-help__card { display: grid; gap: var(--space-4); }
.pl-help .pl-fb__field textarea { min-height: 132px; }
.pl-help__top { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-help__replyto { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-help__replyto b, .pl-help__sent-line b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* Help: sent. */
.pl-help__sent { display: flex; align-items: center; gap: 10px; }
.pl-help__sent svg.pl-icon { width: 22px; height: 22px; flex: none; color: var(--good-ink); }
.pl-help__sent-title { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-help__sent-title:focus, .pl-help__sent-title:focus-visible { outline: none; }
.pl-help__sent-line { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-help__sum { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--space-4); margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-help__sum dt { color: var(--ink-muted); }
.pl-help__sum dd { margin: 0; overflow-wrap: anywhere; }
.pl-help__msg { margin: 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--border-strong); background: var(--status-soft); border-radius: var(--radius-sm); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-help__msg span { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.pl-help__row { flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.pl-help__quiet { display: inline-flex; align-items: center; min-height: 36px; color: var(--link); font-weight: 500; text-decoration: none; }
.pl-help__quiet:hover { text-decoration: underline; }

/* Help: How these numbers are built, and the Feedback line on the field. */
.pl-help__col { display: grid; gap: var(--space-3); align-content: start; min-width: 0; }
.pl-help__links { list-style: none; margin: 0; padding: 0; display: grid; }
.pl-help__links li + li { border-top: 1px solid var(--hairline); }
.pl-help__links a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; padding: 4px 0; color: var(--link); text-decoration: none; font-weight: 500; }
.pl-help__links a:hover .pl-help__ln > span:first-child { text-decoration: underline; }
.pl-help__ln { display: flex; flex-direction: column; }
.pl-help__here { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-help__fbline { margin: 0; padding: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted-glass); }
.pl-help__fbline a { display: inline-block; min-height: 24px; color: var(--link-glass); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* The staff Help inbox: Not delivered with its triangle, the small Mark answered button. */
.pl-help__st--bad { border-color: var(--critical); color: var(--critical-ink); }
.pl-help__st--bad::before { content: "\25B2" / ""; font-size: var(--type-label-size); margin-right: 4px; }
.pl-help__mark { margin: 6px 0 0; }

@media (max-width: 767.98px) {
  .pl-help .pl-fb__field textarea { min-height: 150px; }
}

/* Design owner on 673: the staff inboxes' "What" column keeps a readable width on a phone and
   the table scrolls sideways in its own wrap instead of breaking words (Help and Feedback). */
.pl-help__inbox td:nth-child(2), .pl-fb__staff td:nth-child(2) { min-width: 16rem; }
/* The card's own gap before the (i) line, no paragraph margin on top of it. */
.pl-help__card > p.pl-meta { margin: 0; }
/* The staff notice on Help and Feedback sits one normal section gap above the form: no
   paragraph margin added to the page's own gap (design owner on 673). */
.pl-staff-notice { margin: 0; }

/* Local pricing v2 (mock-up local pricing v2; design sheet v3.34 "Local pricing": the language
   mark, the outcome pill, the two-row Signals head, the folded Keep group on phones). Tokens
   only. The open rows reuse decision 86's row (pl-lp__row, pl-lp__open, pl-lp__chev). */
.pl-lp2 { display: grid; gap: var(--space-4); }
.pl-lp2__card { min-width: 0; }
.pl-lp2__card > .pl-sh-head { margin: 0 0 var(--space-2); }
.pl-lp2__card .pl-table-wrap { margin-top: var(--space-2); }
.pl-lp2__mk { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin-right: var(--space-1); flex: none; }
.pl-lp2__y { color: var(--ink); }
.pl-lp2__n { color: var(--ink-muted); }

/* The outcome pill (ink on violet-tint) and its siblings. It is a proposal, not a change, so it keeps the 13 px / 600 pill it was drawn with when the change pill became 12 px / 500 (2026-11-15). */
.pl-lp2__oc { gap: var(--space-1); padding: 1px var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; background: var(--violet-tint); box-shadow: none; color: var(--ink); white-space: normal; }
.pl-lp2__keep { color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-line); font-weight: 600; }
.pl-lp2__few { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-line); font-weight: 400; }
.pl-lp2__why { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); margin-top: 2px; }
.pl-lp2__prop { display: block; font-size: var(--type-body-sm-size); line-height: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pl-lp2__rail { display: flex; gap: var(--space-1); align-items: flex-start; margin-top: var(--space-1); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink); }
.pl-lp2__rail .pl-icon { width: 14px; height: 14px; flex: none; color: var(--warning-ink); }

/* The region table and its two-row head: the sheet's 1280 widths (196, 100, 116, 136, 212, 176 of
   936 px) as shares, so the table fits the card beside the sidebar. */
.pl-lp2__t { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--type-body-size); line-height: 20px; font-variant-numeric: tabular-nums; }
.pl-lp2__c-price { width: 10.5%; } .pl-lp2__c-conv { width: 12.2%; } .pl-lp2__c-resp { width: 14.3%; }
.pl-lp2__c-out { width: 212px; } .pl-lp2__c-after { width: 176px; }
/* v3.34: Outcome 212 px and the last column 176 px as drawn; Price, Conversion and Price response
   take shares of the sheet's 100, 116 and 136 px and Region (no width) takes what is left. */
/* The table fills its card (structure after the 1536 px page, Fredrik 2026-11-27; mock-up
   2026-11-27_structure-1536_v1, change 7): the 936 px cap of the old 1280 px page is gone. Once
   the table has 1100 px (a 1536 px window with the sidebar open; the mock-up's reason lines fit
   one line from 1104 px), the room goes to Signals and Outcome, not to empty space after the
   price: Price 10%, Conversion 20%, Price response 22%, Outcome 30%, Region (no width) the rest,
   18%. With the last column: Conversion 16%, Price response 18%, Outcome 22%, the last column 16%,
   Region 18% (the mock-up's 14% splits "KRW · Not localized", which must stay whole: design owner,
   PR 1004). Without Conversion (pl-lp2__t--notraffic) its share goes to the columns after it, in
   proportion, so Region and Price keep 18% and 10%: Price response 30%, Outcome 42%; with the last
   column Price response 23%, Outcome 28%, the last column 21%. Every case adds up to 100%.
   Narrower tables keep the v3.34 widths above, as before. */
.pl-lp2__card .pl-table-wrap { container: pl-lp2t / inline-size; }
@container pl-lp2t (min-width: 1100px) {
  .pl-lp2__c-price { width: 10%; } .pl-lp2__c-conv { width: 16%; } .pl-lp2__c-resp { width: 18%; }
  .pl-lp2__c-out { width: 22%; } .pl-lp2__c-after { width: 16%; }
  .pl-lp2__t--nochange .pl-lp2__c-conv { width: 20%; } .pl-lp2__t--nochange .pl-lp2__c-resp { width: 22%; } .pl-lp2__t--nochange .pl-lp2__c-out { width: 30%; }
  .pl-lp2__t--notraffic .pl-lp2__c-resp { width: 23%; } .pl-lp2__t--notraffic .pl-lp2__c-out { width: 28%; } .pl-lp2__t--notraffic .pl-lp2__c-after { width: 21%; }
  .pl-lp2__t--notraffic.pl-lp2__t--nochange .pl-lp2__c-resp { width: 30%; } .pl-lp2__t--notraffic.pl-lp2__t--nochange .pl-lp2__c-out { width: 42%; }
}
/* At 1280 and above the outcome pill stays on one line; it may wrap only under 1280 (1024). */
@media (min-width: 1280px) { .pl-lp2__t .pl-lp2__oc { white-space: nowrap; } }
.pl-lp2__t th, .pl-lp2__t td { padding: 9px var(--space-2); border-bottom: 1px solid var(--hairline); vertical-align: top; overflow-wrap: anywhere; text-align: left; }
.pl-lp2__t .n { text-align: right; }
.pl-lp2__t thead th { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); background: var(--surface-raised); vertical-align: bottom; }
.pl-lp2__t thead tr.pl-lp2__top th { border-bottom: 0; padding-bottom: 2px; }
.pl-lp2__t thead tr.pl-lp2__top th[rowspan] { border-bottom: 1px solid var(--hairline); }
.pl-lp2__t thead th.pl-lp2__span { border-bottom: 1px solid var(--card-edge); }
.pl-lp2__sub { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-weight: 400; }
.pl-lp2__inl { color: var(--ink-muted); }
.pl-lp2__ind { padding-left: var(--space-4); }
.pl-lp2__us { display: block; padding-left: var(--space-4); font-weight: 600; }
.pl-lp2__sg { display: block; font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink); font-weight: 400; }
.pl-lp2__sg--d { font-weight: 600; }
.pl-lp2__sg--q { color: var(--ink-muted); }
.pl-lp2__v { font-weight: 400; }
.pl-lp2__v--good { color: var(--good-ink); font-weight: 600; }
.pl-lp2__v--bad { color: var(--critical-ink); font-weight: 600; }
.pl-lp2__dash { color: var(--ink-muted); }
.pl-lp2__gh th { padding: 18px var(--space-2) 6px; border-bottom: 1px solid var(--card-edge); background: transparent; text-align: left; }
.pl-lp2__gn { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--sand-ink); margin-right: var(--space-2); }
.pl-lp2__gb { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-lp2__xo { align-items: flex-start; min-height: 32px; font-weight: 600; width: 100%; }
.pl-lp2__t tr.pl-lp2__xd > td { background: var(--violet-tint); border-left: 3px solid var(--violet); padding: var(--space-3) var(--space-4) 14px 32px; font-size: var(--type-body-sm-size); }
.pl-lp2__kid td { background: var(--violet-tint); }
.pl-lp2__kn { display: block; padding-left: var(--space-4); }
.pl-lp2__kid .pl-lp2__sub { padding-left: var(--space-4); }
/* Under 1280: the last column folds into the Outcome cell as its third line. */
.pl-lp2__narrow { display: none; }
@media (max-width: 1279.98px) {
  .pl-lp2__t .pl-lp2__wide { display: none; }
  .pl-lp2__narrow { display: block; }
  .pl-lp2__c-region { width: 26.5%; } .pl-lp2__c-price { width: 14.7%; } .pl-lp2__c-conv, .pl-lp2__c-resp { width: 16.9%; } .pl-lp2__c-out { width: 25%; }
  .pl-lp2__prop .pl-lp2__step { display: block; }
}

/* The open row: signals, countries, the proposal or why there is none. */
.pl-lp2__dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
@media (max-width: 1279.98px) { .pl-lp2__dg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-lp2__dh { margin: 0 0 6px; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); }
.pl-lp2__sb { margin-bottom: 10px; }
.pl-lp2__sbh { display: flex; justify-content: space-between; gap: var(--space-2); }
.pl-lp2__sbh b { display: inline; }
.pl-lp2__sbf { font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-lp2__sbn { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lp2__cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pl-lp2__lng { display: block; padding-left: var(--space-4); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lp2__kv { display: grid; gap: var(--space-2); margin: 0; }
.pl-lp2__kv dt { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lp2__kv dd { margin: 0; font-weight: 600; }
.pl-lp2__s2 { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lp2__note, .pl-lp2__wl { margin: 0 0 6px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-lp2__flag { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); }
.pl-lp2__flag .pl-icon { width: 16px; height: 16px; flex: none; color: var(--warning-ink); }
.pl-lp2__flagline { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-2) 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-lp2__flagline .pl-icon { width: 16px; height: 16px; flex: none; color: var(--ink-muted); }
.pl-lp2__flagline--warn .pl-icon { color: var(--warning-ink); }

/* Phones: a labelled list per group, Keep folded behind a button inside its heading. */
.pl-lp2__pli { list-style: none; margin: 0; padding: 0; }
.pl-lp2__pli > li { padding: 10px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 3px; }
.pl-lp2__r1 { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.pl-lp2__pli .pl-lp2__xo { min-height: 44px; align-items: center; width: auto; flex: 1; min-width: 0; }
.pl-lp2__r1 > .pl-lp2__oc, .pl-lp2__r1 > .pl-lp2__keep, .pl-lp2__r1 > .pl-lp2__few { margin-top: 11px; flex: none; }
.pl-lp2__mkw { font-weight: 400; white-space: nowrap; }
.pl-lp2__fl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; padding-left: var(--space-4); margin: 0; font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-lp2__fl dt { color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-lp2__fl dd { margin: 0; font-variant-numeric: tabular-nums; }
.pl-lp2__h4 { margin: 14px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--card-edge); display: flex; align-items: baseline; gap: var(--space-2); font-size: inherit; }
.pl-lp2__gnote { margin: var(--space-1) 0 0; }
.pl-lp2__gfh { margin: 14px 0 0; font-size: inherit; font-weight: inherit; }
.pl-lp2__fold { align-items: center; gap: 6px; min-height: 44px; width: 100%; border-bottom: 1px solid var(--card-edge); }
.pl-lp2__fold .pl-lp2__gn { margin: 0; }
.pl-lp2__pd { background: var(--violet-tint); border-left: 3px solid var(--violet); padding: var(--space-3); margin-top: var(--space-1); font-size: var(--type-body-sm-size); }
.pl-lp2__pd .pl-lp2__dg { grid-template-columns: minmax(0, 1fr); }
.pl-lp2__kids > li { padding-left: var(--space-4); }
.pl-lp2__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: 6px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lp2__foot > span { display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .pl-lp2 .pl-lp__chev { transition: none; } }

/* Local pricing v2, How past price changes turned out (mock-up local pricing v2, slice 6): the
   count on the right of the head, the five-column table (22, 20, 20, 16 percent and the rest)
   and the result words, whose colour follows the result, not the size. Tokens only. */
.pl-lp2p__made { font-size: var(--type-body-sm-size); line-height: var(--type-body-line); color: var(--ink-muted); }
.pl-lp2p__t { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--type-body-size); line-height: 20px; font-variant-numeric: tabular-nums; }
.pl-lp2p__c-region { width: 22%; } .pl-lp2p__c-changed { width: 20%; } .pl-lp2p__c-range { width: 20%; } .pl-lp2p__c-after { width: 16%; }
.pl-lp2p__t th, .pl-lp2p__t td { padding: 9px var(--space-2); border-bottom: 1px solid var(--hairline); vertical-align: top; overflow-wrap: anywhere; text-align: left; }
.pl-lp2p__t .n { text-align: right; }
.pl-lp2p__t thead th { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); background: var(--surface-raised); vertical-align: bottom; }
.pl-lp2p__rg { font-weight: 600; }
.pl-lp2p__r { font-weight: 600; color: var(--ink); }
.pl-lp2p__r--good { color: var(--good-ink); }
.pl-lp2p__r--bad { color: var(--critical-ink); }
.pl-lp2p__r--yet { font-weight: 400; color: var(--ink-muted); }
.pl-lp2p__fl { padding-left: 0; }
.pl-lp2p__nw { white-space: nowrap; }

/* Local pricing v2, the studio's answer (mock-up local pricing v3, slice 5b): the bar across
   the open row (question, Agree primary and Don't agree quiet, as in discount approvals), the
   note form, the answered state with Change answer, View as's locked answers, and the line
   under the price step. The chips and the quote are discount approvals' own (pl-da__st,
   pl-da__quote). Tokens only. */
.pl-lpa { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-3) var(--space-5); border-top: 1px solid var(--card-edge); padding-top: 14px; }
.pl-lpa__al { min-width: 0; flex: 1 1 300px; display: grid; gap: var(--space-1); }
.pl-lpa__q { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); }
.pl-lpa__n { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-lpa__w { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-lpa__w .pl-da__st { font-size: var(--type-body-sm-size); font-weight: 600; }
.pl-lpa__m { color: var(--ink-muted); }
.pl-lpa__act { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.pl-lpa__act form { margin: 0; }
.pl-lpa__hint { flex-basis: 100%; margin: 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lpa__hint a { color: var(--link); }
.pl-lpa__act--locked .pl-btn { color: var(--ink-muted); border-color: var(--ghost-edge); cursor: not-allowed; gap: 6px; }
.pl-lpa__form { display: grid; gap: 6px; flex: 1 1 100%; max-width: 640px; }
.pl-lpa__form textarea { min-height: 64px; padding: 6px 10px; font: inherit; color: var(--ink); background-color: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); resize: vertical; }
.pl-lpa__cnt { margin: 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lpa__l { display: block; margin-top: 3px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-lpa__l .pl-da__st { font-size: var(--type-label-size); }
.pl-lpa__l--need, .pl-lpa__need { color: var(--ink); font-weight: 500; }
/* Phones: the answers side by side, 44 px tall. */
.pl-lp2__pd .pl-lpa { gap: var(--space-3); }
.pl-lp2__pd .pl-lpa__act { width: 100%; }
.pl-lp2__pd .pl-lpa__act .pl-btn, .pl-lp2__pd .pl-lpa__act form { min-height: 44px; flex: 1 1 0; }
.pl-lp2__pd .pl-lpa__act form .pl-btn { width: 100%; min-height: 44px; }
.pl-lp2__pd .pl-lpa__act .pl-btn { justify-content: center; }

/* Promotion work, Price changes (Local pricing slice 5b; mock-up local pricing v3, state 9): the
   region as a link that opens the studio's Local pricing, and the Record change, Record mail
   answer and Withdraw forms, which reuse Promotion work's own form box (pl-pw__ask). Tokens only. */
.pl-pwp__rgf { display: inline; margin: 0; }
.pl-pwp__rg { display: inline; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pl-pwp__rg:hover { color: var(--ink); }
.pl-pwp__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pl-pwp__row label { display: grid; gap: var(--space-1); }
.pl-pwp__fs { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; border: 0; }
.pl-pwp__fs legend { flex-basis: 100%; padding: 0; margin-bottom: var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-pwp__rb { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; font-weight: 400; }
.pl-pw__ask .pl-pwp__rb input { width: auto; min-height: 0; }
.pl-pwp__inl { font-weight: 400; margin-left: 6px; }
/* The price field's currency prefix (R$), as the line above it and the mock-up show it. */
.pl-pwp__pfx { display: flex; align-items: center; gap: var(--space-2); }
.pl-pwp__pfx > span { color: var(--ink-muted); font-weight: 400; }
.pl-pwp__pfx input { flex: 1 1 auto; min-width: 0; }
/* A refused form whose line is no longer listed (someone withdrew it first): said at the top. */
.pl-pwp__lost { margin: 0 0 var(--space-3); }
@media (max-width: 599.98px) {
  .pl-pwp__row { grid-template-columns: minmax(0, 1fr); }
  .pl-pwp__rb { min-height: 44px; }
}

/* The welcome animation (prototype v6, approved by Fredrik 2026-11-06), once after login, over
   the page that loads normally underneath (templates/peerlight/components/welcome.html, core/welcome.py).
   PeerLight's own ground: canvas, the four field lights of glass-field and the grain. "Welcome to"
   comes closer from far back to 1.3x while the field blinks three times; at 1.8 s the boom: the
   field lights grow out and stay, one soft violet swell, no ring; the lens and the wordmark grow
   into place with no overshoot, a small shake of 3 px that dies out over 0.4 s, then hold. The
   overlay fades out from 5.0 s and is gone at 5.6 s; a click, tap or key skips it at once.
   Tokens only: the field tokens (glass-field), canvas, ink, grain, halo, the type tokens.

   Flash safety (WCAG 2.3.1, three flashes or below threshold): the field goes on and off in
   steps at 0.28, 0.47, 0.66, 0.86 and 1.08 s and dims a little at 1.75 s: at most five changes,
   2.5 flashes, in any one second, under the limit of 3. The field is a soft violet and sand light, never white and never
   saturated red: on the dark canvas the brightest point changes relative luminance by about 0.04,
   under the 0.10 that counts as a flash at all. Chalk changes more (about 0.25), so there the
   three-a-second limit is what keeps it safe. Do not add blinks or shorten the blink timing.
   Under reduced motion there is no blink, no approach and no shake: the lockup only fades in. */

.pl-welcome {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-dialog) + 1);
  overflow: hidden;
  background-color: var(--canvas);
  cursor: default;
  animation: pl-welcome-out .6s 5s ease-in forwards;
}
.pl-welcome__grain { position: absolute; inset: 0; background-image: var(--grain); }

/* The four field lights, as separate layers so they can move. */
.pl-welcome__f {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  animation: pl-welcome-blink 1.6s .15s steps(1, end) both, pl-welcome-boom 1.2s 1.8s cubic-bezier(.15, .8, .25, 1) forwards;
}
.pl-welcome__f1 { width: 520px; height: 420px; left: 18%; top: 6%; background-image: radial-gradient(closest-side, var(--field-violet), transparent); }
.pl-welcome__f2 { width: 560px; height: 420px; left: 88%; top: 22%; background-image: radial-gradient(closest-side, var(--field-sand), transparent); }
.pl-welcome__f3 { width: 700px; height: 520px; left: 55%; top: 62%; background-image: radial-gradient(closest-side, var(--field-violet-low), transparent); }
.pl-welcome__f4 { width: 520px; height: 420px; left: 12%; top: 92%; background-image: radial-gradient(closest-side, var(--field-sand), transparent); }

.pl-welcome__center { position: absolute; inset: 0; display: grid; place-items: center; }
.pl-welcome__center > * { grid-area: 1 / 1; }

/* "Welcome to": PeerLight's own type, plain ink, like the Home greeting. */
.pl-welcome__hello {
  font-family: var(--font-display);
  font-size: clamp(calc(var(--type-display-size) * .77), 6vw, calc(var(--type-display-xl-size) * 1.27));
  font-weight: var(--type-page-title-weight);
  letter-spacing: calc(var(--type-display-tracking) + 0.005em);  /* -0.025em, as v6 */
  line-height: 1.1;
  color: var(--ink);
  opacity: 0;
  animation: pl-welcome-approach 1.7s .1s cubic-bezier(.55, 0, .85, .35) both, pl-welcome-cut .12s 1.8s ease-in forwards;
}

/* The boom: one soft violet swell, the field's own violet. */
.pl-welcome__swell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120vmax;
  height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  border-radius: 50%;
  background-image: radial-gradient(closest-side, var(--field-violet), color-mix(in srgb, var(--field-violet) 33%, transparent) 40%, transparent 70%);
  opacity: 0;
  animation: pl-welcome-swell .9s 1.8s cubic-bezier(.1, .7, .2, 1) both;
}

.pl-welcome__lockup {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-3), 2vw, var(--space-5));
  opacity: 0;
  animation: pl-welcome-pop .55s 1.8s cubic-bezier(.15, .85, .3, 1) both;
}
.pl-welcome .pl-welcome__lens { width: clamp(110px, 15vw, 190px); height: auto; filter: drop-shadow(0 0 10px var(--halo)); }
.pl-welcome__name {
  font-family: var(--font-display);
  font-size: clamp(var(--type-display-size), 7.5vw, calc(var(--type-display-xl-size) * 1.73));
  font-weight: var(--type-page-title-weight);
  letter-spacing: var(--type-display-xl-tracking);
  line-height: 1.1;
  color: var(--ink);
}

/* A small shake as PeerLight lands, dying out quickly. */
.pl-welcome__shake { animation: pl-welcome-shake .4s 1.82s linear both; }

@keyframes pl-welcome-approach {
  0% { opacity: 0; transform: scale(.35); filter: blur(2px); }
  10% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: scale(1.3); }
}
@keyframes pl-welcome-cut {
  0% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1.45); }
}
/* The field blinks: on, off, on, off, on (see the flash-safety note above). */
@keyframes pl-welcome-blink {
  0% { opacity: 0; }
  8% { opacity: .9; }
  20% { opacity: 0; }
  32% { opacity: .9; }
  44% { opacity: 0; }
  58% { opacity: .9; }
  100% { opacity: .6; }
}
@keyframes pl-welcome-boom {
  0% { opacity: .6; transform: translate(-50%, -50%) scale(.85); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes pl-welcome-swell {
  0% { opacity: 0; transform: scale(.1); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes pl-welcome-pop {
  0% { opacity: 0; transform: scale(.75); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pl-welcome-shake {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-3px, 2px); }
  24% { transform: translate(3px, -2px); }
  36% { transform: translate(-2px, 1px); }
  48% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 0); }
  72% { transform: translate(1px, 0); }
  100% { transform: none; }
}
@keyframes pl-welcome-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-welcome-field-in { to { opacity: 1; } }
@keyframes pl-welcome-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .pl-welcome { animation: pl-welcome-out .4s 3.2s ease-in forwards; }
  .pl-welcome__hello, .pl-welcome__swell, .pl-welcome__shake { animation: none; }
  .pl-welcome__hello, .pl-welcome__swell { display: none; }
  /* The field only fades in, already at its settled size: nothing grows. */
  .pl-welcome__f { transform: translate(-50%, -50%) scale(1.2); animation: pl-welcome-field-in .6s ease-out forwards; }
  .pl-welcome__lockup { animation: pl-welcome-fade-in .6s .2s both; }
}

/* Phones: the page's own phone field (glass-field.css at 767.98 px and below), same positions and
   sizes. Each light is drawn at 1/1.2 of the page's size because the boom ends at 1.2x, so the
   settled overlay matches Home's field exactly and the fade-out hands off without a jump. */
@media (max-width: 767.98px) {
  .pl-welcome__f1 { width: calc(520px / 1.2); height: calc(520px / 1.2); left: 15%; top: 8%; background-image: radial-gradient(closest-side, var(--field-violet), transparent 70%); }
  .pl-welcome__f2 { width: calc(560px / 1.2); height: calc(520px / 1.2); left: 95%; top: 30%; background-image: radial-gradient(closest-side, var(--field-sand), transparent 70%); }
  .pl-welcome__f3 { width: calc(640px / 1.2); height: calc(600px / 1.2); left: 40%; top: 66%; background-image: radial-gradient(closest-side, var(--field-violet-low), transparent 72%); }
  .pl-welcome__f4 { width: calc(520px / 1.2); height: calc(520px / 1.2); left: 90%; top: 92%; background-image: radial-gradient(closest-side, var(--field-sand), transparent 70%); }
}

/* Less transparency asked for: the page drops its field (glass-field), so the overlay does too. */
@media (prefers-reduced-transparency: reduce) { .pl-welcome__f { display: none; } }

@media print { .pl-welcome { display: none; } }

/* The Rekoup staff menu (design sheet v3.35, Fredrik 2026-11-06, mock-up staff-menu-v2 option B). Existing tokens only. The rows are the sidebar's own rows and group labels (pl-side__link, pl-side__group), with the sidebar's selected look on the current page. */
.pl-staffm { position: relative; display: inline-flex; flex: none; }
.pl-staffm__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background-color: transparent; color: var(--ink); font: 600 var(--type-label-size)/16px var(--font-sans); white-space: nowrap; cursor: pointer; }
.pl-staffm__btn:hover { background-color: var(--surface-raised); }
.pl-staffm__btn svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-staffm__btn[aria-expanded="true"], .pl-staffm__btn.is-cur { border-color: var(--violet); background-color: var(--violet-tint); color: var(--violet-strong); }
.pl-staffm__n { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-staffm__btn[aria-expanded="true"] .pl-staffm__n, .pl-staffm__btn.is-cur .pl-staffm__n { color: var(--violet-strong); }
.pl-staffm__chev { display: inline-flex; transition: transform .15s ease; }
.pl-staffm__btn[aria-expanded="true"] .pl-staffm__chev { transform: rotate(180deg); }

/* Desktop: a 540 px popover under the button, two columns. */
.pl-staffm__panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: var(--z-menu); width: 540px; max-width: calc(100vw - 32px); padding: 12px; background-color: var(--surface); border: 1px solid var(--card-edge); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pl-staffm__panel[hidden], .pl-staffm__scrim[hidden] { display: none; }
.pl-staffm__col { min-width: 0; }
.pl-staffm__grp { margin: 6px 12px 2px; }
.pl-staffm__list .pl-side__n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-staffm__list .pl-side__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-staffm__shade, .pl-staffm__scrim { display: none; }

/* Phones: one column, 44 px rows, from under the header to the top of the bottom bar, over the dimmed page; the "more below" shade sits on its lower edge until the list is scrolled to its end. */
@media (max-width: 767.98px) {
  .pl-staffm { order: 1; }
  .pl-staffm__panel { position: fixed; left: 0; right: 0; top: var(--pl-staffm-top, 52px); bottom: calc(57px + env(safe-area-inset-bottom)); width: auto; max-width: none; display: block; overflow: auto; overscroll-behavior: contain; padding: 4px 12px 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; box-shadow: none; }
  .pl-staffm__panel .pl-side__link { min-height: 44px; }
  .pl-staffm__scrim:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--pl-staffm-top, 52px); z-index: var(--z-menu); background-color: color-mix(in srgb, var(--canvas) 60%, transparent); }
  .pl-staffm__shade { display: block; position: sticky; bottom: 0; height: 32px; margin-top: -20px; pointer-events: none; background-image: linear-gradient(to bottom, transparent, var(--surface)); box-shadow: inset 0 -1px 0 var(--hairline); }
  .pl-staffm.is-scrolled-end .pl-staffm__shade { visibility: hidden; }
  .pl-staffm__panel > .pl-staffm__col:last-of-type { padding-bottom: 12px; }
  :root.pl-staffm-open { overflow: hidden; }
}
/* Held sideways, the bottom bar scrolls with the page (shell-phone-landscape.css): the sheet reaches the bottom. */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) { .pl-staffm__panel { bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .pl-staffm__chev { transition: none; } }
@media print { .pl-staffm { display: none !important; } }

/* A/B comparison wording (PR B, UX audit 2026-11-06): the reason behind a dash in the Winner
   column (S2) and behind a greyed Line up item (S5) opens from the house (i) beside it, never on
   hover. Inside the Line up pill the (i) keeps its own 28 px button, not the pill item's padding.
   Tokens only. */
.pl-abm__w .pl-abm__why { margin-left: var(--space-1); }
.pl-scope .pl-abm__why { align-self: center; margin-left: 0; }
.pl-scope .pl-abm__why .pl-info__btn { padding: 0; border-radius: var(--radius-md); }

/* (D) Page empty state, design sheet v3.37 (page-empty): a whole page with nothing to show yet.
   A solid card (Card edge 5: surface, hairline, card shadow), left-aligned, at most 560 px, under
   Home's welcome or 24 px under a page title; full width with 16 px padding under 768 px. In-card
   empty states stay centred (decision 12, B). Used by Waiting for data (sheet v3.37). Tokens only. */
.pl-empty.pl-empty--page { max-width: 560px; min-height: 0; align-items: flex-start; gap: var(--space-2); padding: var(--space-5) var(--space-6);
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
.pl-empty--page .pl-empty__icon { color: var(--ink-muted); margin-bottom: var(--space-1); }
.pl-tab-head + .pl-section-slot > .pl-empty--page { margin-top: var(--space-5); }
.pl-empty--page h2 { margin: 0; font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.pl-empty--page p { font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-empty__games { list-style: none; margin: var(--space-4) 0 0; padding: 0; width: 100%; border-top: 1px solid var(--hairline); }
.pl-empty__games li { padding: 10px 0; border-bottom: 1px solid var(--hairline); font-weight: 500; color: var(--ink); }
.pl-empty__games .pl-empty__more { font-weight: 400; color: var(--ink-muted); }
.pl-empty--page .pl-state-action { margin-top: var(--space-4); align-self: flex-start; }
.pl-empty--page .pl-empty__who { margin-top: var(--space-4); }
.pl-empty__staff { max-width: 560px; margin: var(--space-4) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted-glass); }
.pl-empty__staff b { color: var(--ink); font-weight: 600; }
.pl-empty__staff a { display: inline-flex; align-items: center; min-height: 24px; color: var(--link-glass); }
@media (max-width: 767px) { .pl-empty.pl-empty--page { max-width: none; padding: var(--space-4); } }

/* Studio overview (Rekoup staff; mock-up studio-overview v6, Fredrik 2026-11-06). One table, the sheet's expandable table row (decision 86) for studios with several games; a lean card per studio on phones. Only names wrap: a status line, a sharing label, the step line and a promotion's date never do. Normal states in plain ink, exceptions with their icon and words. Tokens only. */
/* The bar, two rows (design review of PR 1105): the Show pills with "Open all studios" and its (i) together on the right; then the four selects and, while one is set, "N of M studios · Clear filters" */
.pl-sov__bar { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.pl-sov__r1, .pl-sov__r2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.pl-sov__allg { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.pl-sov__res { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-sov__res a { display: inline-flex; align-items: center; min-height: 24px; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }
.pl-sov__sep { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-sov__share + .pl-sov__sub { margin-top: 2px; }
.pl-sov__grow { flex: 1; }
.pl-sov__count { font-variant-numeric: tabular-nums; }
.pl-sov__showsel { display: none; }
.pl-sov__t { width: 100%; border-collapse: collapse; table-layout: auto; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-sov__t th { text-align: left; vertical-align: bottom; white-space: nowrap; font-size: var(--type-label-size); line-height: 16px; font-weight: 600; color: var(--ink-muted); padding: 0 6px var(--space-2); border-bottom: 1px solid var(--border-strong); }
.pl-sov__t th small { display: block; font-size: var(--type-label-size); font-weight: 400; }
.pl-sov__t td { vertical-align: top; padding: var(--space-2) 6px; border-bottom: 1px solid var(--hairline); }
.pl-sov__t th:first-child, .pl-sov__t td:first-child { padding-left: var(--space-2); min-width: 96px; }
.pl-sov__t tr.pl-sov__s:hover td { background: var(--surface-raised); }
.pl-sov__t tr.pl-lp__row { cursor: pointer; }
.pl-sov__sn { display: block; font-weight: 600; }
.pl-sov__sub { display: block; font-size: var(--type-label-size); line-height: 16px; font-weight: 400; color: var(--ink-muted); }
/* The open button: the chevron on the name's first line, a 32 px target (sheet, design owner v1 item 8) */
.pl-sov__open { align-items: flex-start; min-height: 32px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-sov__open .pl-lp__chev { line-height: var(--type-body-sm-line); }
.pl-sov__nm { display: flex; flex-direction: column; }
/* Child rows: the name 32 px in, a 3 px violet rule, the violet tint (decision 86) */
.pl-sov__t tr.pl-sov__g td { background: var(--violet-tint); }
.pl-sov__t tr.pl-sov__g td.pl-sov__gname { padding-left: 32px; border-left: 3px solid var(--violet); font-weight: 400; }
.pl-sov__st { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.pl-sov__st svg.pl-icon { width: 14px; height: 14px; }
.pl-sov__st--mute { color: var(--ink-muted); }
.pl-sov__st--warn { color: var(--warning-ink); font-weight: 600; }
.pl-sov__st--crit { color: var(--critical-ink); font-weight: 600; }
.pl-sov__d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-sov__share { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-sov__share svg { width: 14px; height: 14px; color: var(--ink-muted); }
.pl-sov__onb { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.pl-sov__onb a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }
.pl-sov__n { font-size: var(--type-label-size); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
/* A promotion: its date first and whole; only the name wraps, two lines, then an ellipsis */
.pl-sov__pn { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pl-sov__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.pl-sov__marks .pl-store { white-space: nowrap; color: var(--ink); }
.pl-sov__gap { display: inline-grid; grid-template-columns: 14px auto; column-gap: 4px; color: var(--warning-ink); font-weight: 600; white-space: nowrap; }
.pl-sov__gap svg.pl-icon { grid-row: 1; width: 14px; height: 14px; margin-top: 3px; }
.pl-sov__gap .pl-store { color: var(--warning-ink); }
.pl-sov__gapw { grid-column: 2; font-size: var(--type-label-size); line-height: 16px; }
.pl-sov__empty { padding: var(--space-4) var(--space-3); color: var(--ink-muted); }
.pl-sov__list { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 599.98px) {
  .pl-sov__wide { display: none; }
  .pl-sov__list { display: block; }
  .pl-sov__show, .pl-sov__grow { display: none; }
  .pl-sov__bar { display: flex; flex-direction: column; align-items: stretch; }
  .pl-sov__r1 { display: contents; }
  .pl-sov__showsel { display: block; width: 100%; }
  .pl-sov__allg { align-self: flex-start; }
  .pl-sov__r2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .pl-sov__r2 select { width: 100%; min-width: 0; }
  .pl-sov__r2 .pl-sov__wide-sel, .pl-sov__res { grid-column: 1 / -1; }
  .pl-sov__card { display: grid; gap: 2px; padding: var(--space-3) 2px; border-bottom: 1px solid var(--hairline); }
  .pl-sov__card:last-child { border-bottom: 0; }
  .pl-sov__head { display: grid; gap: 2px; }
  .pl-sov__card .pl-sov__sn { font-size: var(--type-body-size); line-height: 22px; }
  .pl-sov__card .pl-sov__open { min-height: 44px; align-items: center; margin: -10px 0 -8px; font-size: var(--type-body-size); }
  .pl-sov__l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--type-body-sm-size); color: var(--ink-muted); margin-bottom: 4px; }
  .pl-sov__row2 { display: flex; flex-wrap: wrap; gap: 0 12px; }
  .pl-sov__agr { display: grid; gap: 2px; justify-items: start; font-size: var(--type-body-sm-size); color: var(--ink-muted); margin: -4px 0 4px; }
  .pl-sov__lab { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); margin-top: 4px; }
  .pl-sov__pn { display: block; -webkit-line-clamp: unset; }
  .pl-sov__pgs { display: grid; gap: 6px; }
  .pl-sov__pgs[hidden] { display: none; }
  .pl-sov__pg { display: grid; gap: 2px; margin-top: 6px; padding: 6px 8px 6px 20px; border-left: 3px solid var(--violet); background: var(--violet-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .pl-sov__pg b { font-size: var(--type-body-sm-size); font-weight: 600; }
}
/* Narrowest phones: Tier and Plan one per row too, so no option text is cut */
@media (max-width: 359.98px) { .pl-sov__r2 { grid-template-columns: 1fr; } }
@media print { .pl-sov__bar { display: none; } }
/* The promotion's name links to the game's Promotion Board, where the full name is: never only on hover (design review of PR 724, item 6) */
.pl-sov__pl { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }

/* PeerLight 2.0: the four-card KPI row of Home and Wishlists, and Player data's period boxes (decision 2026-11-07-kpi-four-cards; mock-up kpi-four-cards v2, design owner re-confirm of v2 and design review of PR 739). Built on the shared box, label, figure, pill and row label (stat-hero.css, player-data-cleanup.css, metric-heading-pages.css, home-boxes-oneline.css); these rules only place them. No new component and no new token. The layout rules:
   1. The row is a size container: four across from a 968 px row (the content area at a 1280 px window), 2 x 2 below it (Wishlists: Current wishlists full width, then its three Net change cards three across), one column below 560 px (phones). Home with three cards: three equal columns.
   2. The figure is sized by its card's width: under 200 px inside a card it takes the tile figure's smaller step (30 px, as home-boxes-oneline.css below 1024 px), so a four-across row at 1280 is 30 px throughout.
   3. The whole row steps together: pl-kpi4--long (a figure of 8 or more digits) puts every figure at 30 px; a comparison line only leaves four across where it would not fit its card (Fredrik, 2026-11-07): pl-kpi4--fit-N (N = 200, 212, 222, 232, the card width the widest line needs, measured by core/kpi_row.py line_px) goes to the next layout below a row of 4N + 200 px (1,000, 1,048, 1,088, 1,128), and one column where three across would not fit, below 3N + 146 px (746, 782, 812, 842); pl-kpi4--wide (wider still) as before, below 1,280 and 968 px. Both are set by core/kpi_row.py.
   4. The pace bar sits inside the forecast card (Home, from day 7).
   5. One figure baseline: every card is a subgrid of three shared rows (head, figure, the rest), so a wrapped title or a context line moves every figure in the row together.
   The comparison line never wraps. Tokens only. */

.pl-kpi4-c { container: pl-kpirow / inline-size; min-width: 0; }
.pl-kpi4-c .pl-kpi4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); align-items: stretch; }
.pl-kpi4-c .pl-kpi4--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-kpi4 > .pl-kpi4__label { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; }

/* Rule 5: one baseline. Each card spans three rows of the row's grid and shares them. */
.pl-kpi4 > .pl-sh-box, .pl-kpi4-sub > .pl-sh-box { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
.pl-kpi4__head { display: grid; row-gap: 6px; align-content: start; min-width: 0; }
.pl-kpi4 .pl-kpi4__head > .pl-sh-label { white-space: nowrap; }
.pl-kpi4__foot { display: grid; row-gap: 6px; align-content: start; min-width: 0; }

/* Wishlists, four across: Current wishlists first, "Net change" over the three cards it names. */
.pl-kpi4--wl > .pl-kpi4__label { grid-column: 2 / -1; grid-row: 1; }
.pl-kpi4--wl > [data-kpi="current"] { grid-column: 1; grid-row: 2 / span 3; }
.pl-kpi4--wl > [data-kpi="ytd"], .pl-kpi4--wl > [data-kpi="month"], .pl-kpi4--wl > [data-kpi="day"] { grid-row: 2 / span 3; } /* the same weight as the rules below, so they win */

/* Rule 2: under 200 px inside a card, 30 px figures. Measured on the row, not the card: a size container cannot be a subgrid (rule 5). Four across a card has (row - 48) / 4 - 38 px inside, under 200 below a 1,000 px row; three across (row - 32) / 3 - 38, under 200 below 746 px. */
@container pl-kpirow (968px <= width < 1000px) {
  .pl-kpi4:not(.pl-kpi4--3):not(.pl-kpi4--wide):not([class*="pl-kpi4--fit-"]) .pl-sh-fig { --type-figure-tile-size: 30px; --type-figure-tile-line: 36px; }
}
@container pl-kpirow (560px <= width < 746px) {
  .pl-kpi4--3:not(.pl-kpi4--wide):not([class*="pl-kpi4--fit-"]) .pl-sh-fig, .pl-kpi4--wl:not(.pl-kpi4--wide):not([class*="pl-kpi4--fit-"]) .pl-sh-fig { --type-figure-tile-size: 30px; --type-figure-tile-line: 36px; }
}
/* Rule 3: eight digits or more anywhere in the row. */
.pl-kpi4--long .pl-sh-fig { --type-figure-tile-size: 30px; --type-figure-tile-line: 36px; }
.pl-kpi4 .pl-sh-fig { white-space: nowrap; }
.pl-kpi4 .pl-sh-box .pl-kpi4__words { display: flex; align-items: center; min-height: var(--type-figure-tile-line); font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); letter-spacing: 0; white-space: normal; }

/* The one comparison line: never wraps. A line of words only (no pill) may wrap. */
.pl-kpi4 .pl-kpi4__line { flex-wrap: nowrap; }
.pl-kpi4 .pl-kpi4__line--words, .pl-kpi4 .pl-kpi4__line--words > .pl-sh-vs { flex-wrap: wrap; white-space: normal; }
.pl-kpi4 .pl-kpi4__foil { grid-column: auto; grid-row: auto; justify-self: start; margin: 0 0 2px; } /* home-hero.css places the strip's foil in a phone column */
.pl-kpi4 .pl-kpi4__note { margin-top: 0; }
.pl-kpi4 .pl-kpi4__after { white-space: nowrap; } /* "· 6 of 30 days" after the month so far: moves to its own line whole when a large figure leaves no room */
.pl-kpi4 .pl-nr__chip, .pl-kpi4 .pl-kpi4__chip { margin-top: 0; justify-self: start; }

/* Rule 4: the pace bar inside the forecast card. */
.pl-kpi4 .pl-kpi4__pace { margin-top: 2px; padding-top: 0; border-top: 0; }

/* Rule 3: a comparison line that would not fit four across: the next layout below the row width where its card is wide enough (4N + 200 px). */
@container pl-kpirow (width < 1000px) {
  .pl-kpi4-c .pl-kpi4--fit-200 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--fit-200:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4--wl.pl-kpi4--fit-200 > [data-kpi="current"] { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-200 > .pl-kpi4__label { grid-column: 1 / -1; grid-row: 4; }
  .pl-kpi4--wl.pl-kpi4--fit-200 > :is([data-kpi="ytd"], [data-kpi="month"], [data-kpi="day"]) { grid-row: 5 / span 3; }
}
@container pl-kpirow (width < 1048px) {
  .pl-kpi4-c .pl-kpi4--fit-212 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--fit-212:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4--wl.pl-kpi4--fit-212 > [data-kpi="current"] { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-212 > .pl-kpi4__label { grid-column: 1 / -1; grid-row: 4; }
  .pl-kpi4--wl.pl-kpi4--fit-212 > :is([data-kpi="ytd"], [data-kpi="month"], [data-kpi="day"]) { grid-row: 5 / span 3; }
}
@container pl-kpirow (width < 1088px) {
  .pl-kpi4-c .pl-kpi4--fit-222 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--fit-222:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4--wl.pl-kpi4--fit-222 > [data-kpi="current"] { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-222 > .pl-kpi4__label { grid-column: 1 / -1; grid-row: 4; }
  .pl-kpi4--wl.pl-kpi4--fit-222 > :is([data-kpi="ytd"], [data-kpi="month"], [data-kpi="day"]) { grid-row: 5 / span 3; }
}
@container pl-kpirow (width < 1128px) {
  .pl-kpi4-c .pl-kpi4--fit-232 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--fit-232:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4--wl.pl-kpi4--fit-232 > [data-kpi="current"] { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-232 > .pl-kpi4__label { grid-column: 1 / -1; grid-row: 4; }
  .pl-kpi4--wl.pl-kpi4--fit-232 > :is([data-kpi="ytd"], [data-kpi="month"], [data-kpi="day"]) { grid-row: 5 / span 3; }
}
/* Wider than every step: below 1,280 px of row width, as before. */
@container pl-kpirow (width < 1280px) {
  .pl-kpi4-c .pl-kpi4--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--wide.pl-kpi4--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--wide.pl-kpi4--wl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4--wl.pl-kpi4--wide > [data-kpi="current"] { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .pl-kpi4--wl.pl-kpi4--wide > .pl-kpi4__label { grid-column: 1 / -1; grid-row: 4; }
  .pl-kpi4--wl.pl-kpi4--wide > [data-kpi="ytd"], .pl-kpi4--wl.pl-kpi4--wide > [data-kpi="month"], .pl-kpi4--wl.pl-kpi4--wide > [data-kpi="day"] { grid-row: 5 / span 3; }
}
/* Rule 1: below a 968 px row. Home 2 x 2; Wishlists 1 + 3: Current wishlists full width, "Net change", then three across. */
@container pl-kpirow (width < 968px) {
  .pl-kpi4-c .pl-kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpi4-c .pl-kpi4--3, .pl-kpi4-c .pl-kpi4--wl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-kpi4--wl > [data-kpi="current"] { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .pl-kpi4--wl > .pl-kpi4__label { grid-column: 1 / -1; grid-row: 4; }
  .pl-kpi4--wl > [data-kpi="ytd"], .pl-kpi4--wl > [data-kpi="month"], .pl-kpi4--wl > [data-kpi="day"] { grid-row: 5 / span 3; }
  /* A long comparison in three columns would not fit: one column. */
  .pl-kpi4-c .pl-kpi4--wide.pl-kpi4--3, .pl-kpi4-c .pl-kpi4--wide.pl-kpi4--wl { grid-template-columns: minmax(0, 1fr); }
  .pl-kpi4--wl.pl-kpi4--wide > .pl-sh-box, .pl-kpi4--wl.pl-kpi4--wide > .pl-kpi4__label { grid-column: 1; grid-row: auto / span 3; }
  .pl-kpi4--wl.pl-kpi4--wide > .pl-kpi4__label { grid-row: auto; }
}
/* Rule 3, three across: one column where three cards would not hold the line (3N + 146 px). */
@container pl-kpirow (width < 746px) {
  .pl-kpi4-c .pl-kpi4--fit-200:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: minmax(0, 1fr); }
  .pl-kpi4--wl.pl-kpi4--fit-200 > :is(.pl-sh-box, .pl-kpi4__label) { grid-column: 1; grid-row: auto / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-200 > .pl-kpi4__label { grid-row: auto; }
}
@container pl-kpirow (width < 782px) {
  .pl-kpi4-c .pl-kpi4--fit-212:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: minmax(0, 1fr); }
  .pl-kpi4--wl.pl-kpi4--fit-212 > :is(.pl-sh-box, .pl-kpi4__label) { grid-column: 1; grid-row: auto / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-212 > .pl-kpi4__label { grid-row: auto; }
}
@container pl-kpirow (width < 812px) {
  .pl-kpi4-c .pl-kpi4--fit-222:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: minmax(0, 1fr); }
  .pl-kpi4--wl.pl-kpi4--fit-222 > :is(.pl-sh-box, .pl-kpi4__label) { grid-column: 1; grid-row: auto / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-222 > .pl-kpi4__label { grid-row: auto; }
}
@container pl-kpirow (width < 842px) {
  .pl-kpi4-c .pl-kpi4--fit-232:is(.pl-kpi4--3, .pl-kpi4--wl) { grid-template-columns: minmax(0, 1fr); }
  .pl-kpi4--wl.pl-kpi4--fit-232 > :is(.pl-sh-box, .pl-kpi4__label) { grid-column: 1; grid-row: auto / span 3; }
  .pl-kpi4--wl.pl-kpi4--fit-232 > .pl-kpi4__label { grid-row: auto; }
}
/* Phones: one column, in reading order; each card stands alone. */
@container pl-kpirow (width < 560px) {
  .pl-kpi4-c .pl-kpi4, .pl-kpi4-c .pl-kpi4--3, .pl-kpi4-c .pl-kpi4--wl, .pl-kpi4-c .pl-kpi4--wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-kpi4--wl > .pl-sh-box, .pl-kpi4--wl.pl-kpi4--wide > .pl-sh-box { grid-column: 1; grid-row: auto / span 3; }
  .pl-kpi4--wl > .pl-kpi4__label, .pl-kpi4--wl.pl-kpi4--wide > .pl-kpi4__label { grid-column: 1; grid-row: auto; margin-top: var(--space-1); }
}

/* The shared pill in Home's rows (Latest complete day by product, Your games, the Steam card): beside its figure where it fits, under it in a narrow cell. */
.pl-cr__chg--pill, .pl-yg__chg--pill { display: inline-flex; align-items: center; gap: var(--space-1); margin-inline-start: 6px; vertical-align: 1px; }

/* --- Promotion work, Rekoup staff (spec 10; mock-up promotion-work v6, design owner "looks
   right", Fredrik 2026-11-07). The onboarding queue's rows, one row per platform or studio that
   opens to one line per promotion. Tokens only; the segment, the tabs, the notice and the locked
   button are the existing ones. --------------------------------------------------------------- */
.pl-pw { display: grid; gap: var(--space-4); }
.pl-pw .pl-tab-head { margin: 0; }
.pl-pw__tabs .pl-side__n { margin-left: var(--space-1); }
.pl-pw__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.pl-pw__mine { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pw__sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); margin: 0; }
.pl-pw__due { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); white-space: nowrap; }
.pl-pw__due svg.pl-icon { width: 14px; height: 14px; }
.pl-pw__due--late { color: var(--warning-ink); font-weight: 600; }
.pl-pw__due--today { color: var(--ink); font-weight: 600; }
.pl-pw__jump { min-height: 24px; text-decoration: none; }
.pl-pw__jump:hover { text-decoration: underline; }
.pl-pw__jump:focus-visible, .pl-pw__i:focus-visible, .pl-pw__h:focus-visible, .pl-pw__ln input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-pw__i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; }
.pl-pw__i svg.pl-icon { width: 14px; height: 14px; }
.pl-pw__def { max-width: 560px; padding: var(--space-3) var(--space-4); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pw__def[hidden] { display: none; }
.pl-pw__def p { margin: 0; }
.pl-pw__def p + p { margin-top: var(--space-1); }
.pl-pw__def b { color: var(--ink); font-weight: 600; }
.pl-pw__none { margin: 0; color: var(--ink-muted); }

/* Sections and their rows */
.pl-pw__secs { display: grid; gap: var(--space-6); }
.pl-pw__sec { display: grid; gap: var(--space-3); }
.pl-pw__sec .pl-heading { margin: 0; }
.pl-pw__card { padding: 0 var(--space-5); }
.pl-pw__list { list-style: none; margin: 0; padding: 0; }
.pl-pw__grp { border-top: 1px solid var(--hairline); }
.pl-pw__grp:first-child { border-top: 0; }
.pl-pw__h { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; min-height: 52px; padding: 10px 0; color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); list-style: none; cursor: pointer; }
.pl-pw__h::-webkit-details-marker { display: none; }
.pl-pw__h > svg.pl-icon { width: 20px; height: 20px; color: var(--ink-muted); transition: transform .15s ease; }
.pl-pw__d[open] > .pl-pw__h > svg.pl-icon { transform: rotate(180deg); }
.pl-pw__t b { font-weight: 600; }
.pl-pw__d--wait .pl-pw__t { color: var(--ink-muted); }
.pl-pw__d--wait .pl-pw__t b { color: var(--ink); }
.pl-pw__m { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-1) var(--space-3); }
.pl-pw__b { padding: 0 0 var(--space-4) 32px; }
.pl-pw__b form { margin: 0; }
.pl-pw__st { margin: var(--space-2) 0 2px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; }

/* One line per promotion: a tick (Enter), or its actions at the end */
.pl-pw__ln { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: center; min-height: 40px; padding: var(--space-1) 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); cursor: pointer; }
.pl-pw__ln input { width: 24px; height: 24px; margin: 0; accent-color: var(--violet); }
.pl-pw__ln--act { grid-template-columns: minmax(0, 1fr) auto; cursor: default; }
.pl-pw__ln--plain { grid-template-columns: minmax(0, 1fr); cursor: default; }
.pl-pw__x b { font-weight: 600; }
.pl-pw__l1 { font-variant-numeric: tabular-nums; }
.pl-pw__eb { color: var(--ink); font-weight: 500; white-space: nowrap; }
.pl-pw__eb--late { color: var(--warning-ink); font-weight: 600; }
.pl-pw__by { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pw__a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); justify-content: flex-end; }
.pl-pw__lock { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); }
.pl-pw__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }

/* Approve as Rekoup: the one-line reason, opened under its line */
.pl-pw__ask { display: grid; gap: var(--space-2); max-width: 640px; margin: var(--space-2) 0 0; padding: var(--space-4); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface-raised); }
.pl-pw__ask label { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-pw__ask input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-pw__help { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-pw__err { color: var(--critical-ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pw__btns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* Home: the staff notice's clock is amber when anything is overdue */
.pl-pw-notice.is-due > svg.pl-icon { color: var(--warning-ink); }

@media (max-width: 767.98px) {
  .pl-pw__card { padding: 0 var(--space-4); }
  .pl-pw__h { grid-template-columns: 20px minmax(0, 1fr); }
  .pl-pw__m { grid-column: 2; justify-content: flex-start; }
  .pl-pw__b { padding-left: 0; }
  .pl-pw__ln--act { grid-template-columns: minmax(0, 1fr); }
  .pl-pw__a { justify-content: stretch; }
  .pl-pw__a .pl-btn, .pl-pw__a form { flex: 1 1 auto; }
  .pl-pw__a .pl-btn { min-height: 44px; }
  .pl-pw__a form .pl-btn { width: 100%; }
  .pl-pw__a .pl-btn--quiet { flex: 0 1 auto; }
  .pl-pw__foot .pl-btn { flex: 1 1 100%; min-height: 44px; }
  .pl-pw__ask { padding: var(--space-3); }
  .pl-pw__btns .pl-btn { flex: 1 1 auto; min-height: 44px; }
}

/* Older sales history import (Rekoup admin, /staff/legacy-sales/). Withdraw is the danger
   button (secondary + critical-ink, decision 20) and sits apart from the step's main action,
   under a hairline (design review of PR 680, follow-up 3). Tokens only. */
.pl-legacy-withdraw { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
/* The done notice sits under the title; its tick lines up with the first line when the text
   wraps (as the proposal notice on a phone). */
.pl-legacy-notice { align-items: flex-start; }
.pl-legacy-notice svg.pl-icon { margin-top: calc((1lh - 16px) / 2); }
/* The note on packages the import assigns keeps a gap under the Check again button above it. */
.pl-legacy-assigns { margin-top: var(--space-4); }

/* Two sections in one row (Section.row; the Demo page's Demo store page and Demo reviews,
   mock-up demo-tab v2.3, row2): equal shares side by side while each keeps 300 px, stacked
   below that. A hidden section is not drawn (components.css, .pl-section-slot:empty), so the
   one left takes the whole row; a row with every section hidden takes no space. The cards
   in a row stretch to the row's height. Gaps: the mock-up's 16 px between the cards, and the
   page's own gap between stacked sections. Tokens only. */
.pl-section-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-6) var(--space-4); align-items: stretch; min-width: 0; }
.pl-section-row:not(:has(> :not(:empty))) { display: none; }
.pl-section-row > .pl-section-slot:not(:empty) { display: grid; min-width: 0; }
.pl-section-row > .pl-section-slot > .pl-pd { align-content: stretch; }
.pl-section-row > .pl-section-slot > * > .pl-card { align-content: start; grid-auto-rows: max-content; } /* a taller neighbour stretches the frame, never its rows: title, figures and dates stay at the top */
.pl-section-row > .pl-section-slot > * > .pl-card > * { align-self: start; }
@media (max-width: 767.98px) {
  .pl-section-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
}

/* Inside a DLC or soundtrack block, "Nothing on any platform yet." starts with the block's header text, right of the block's rule (design review of PR 774). */
.pl-bd__dlc .pl-bd__none { padding-inline-start: calc(var(--space-4) + var(--space-2)); }

/* The board's Table view: the "Cooldowns" list under the promotions (build queue row 138, design owner 2026-11-09). Its heading keeps the room the card's other sections have. */
.pl-pb__cool-h { margin: var(--space-6) 0 var(--space-3); }
/* On a phone the store sits under the game, in its cell, so both dates stay in view without scrolling (design review of PR 783). */
.pl-pb__cool-in { display: none; }
.pl-pb__cool-r { display: block; }
.pl-pb__cool-r + .pl-pb__cool-r { margin-top: var(--space-1); }
@media (max-width: 767px) {
  .pl-pb__cool .pl-pb__cool-store { display: none; }
  .pl-pb__cool .pl-pb__cool-in { display: block; }
  .pl-pb__cool td.n { white-space: normal; }
}

/* Sales overview, Units on demand (perf item 4(b), A; design owner 2026-11-09). stat-switch.js sets these while the Units charts load. Tokens only. */

/* From 200 ms: the Revenue chart dims, its tooltips are off, and it keeps its height. No fade under reduced motion. */
/* The event lane's marks over the chart dim with it. The Couldn't load is never dimmed (its Try again keeps a 3:1 focus ring). */
.pl-so [data-sw-stage], .pl-so .pl-lane__strip, .pl-so .pl-lane__chips, .pl-so .pl-lane__fbtn { transition: opacity .15s ease; }
.pl-so .pl-so-wait { opacity: .4; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pl-so [data-sw-stage], .pl-so .pl-lane__strip, .pl-so .pl-lane__chips, .pl-so .pl-lane__fbtn { transition: none; } }

/* From 1 s: the muted line under the toggles. It lies over the gap above the dimmed chart, so the card keeps its height and nothing moves. */
.pl-so .pl-sh-head, .pl-so .pl-cc__head { position: relative; }
/* On the Net revenue card it sits on the period row, after the picker, in the row's own height. */
/* On Try again it sits under the button, inside the Couldn't load (which fills the chart's height). */
.pl-so-loading.pl-so-loading--box { position: static; margin: 0; padding: 0; background-color: transparent; }
.pl-so-loading.pl-so-loading--inline { position: static; display: inline; margin-inline-start: var(--space-3); padding: 0; background-color: transparent; line-height: 1; vertical-align: baseline; }
.pl-so-loading { position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 1; margin: var(--space-1) 0 0; padding-inline-end: var(--space-2); background-color: var(--surface); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }


/* While a card shows the Units Couldn't load: no key and no event marks for a chart that is not there. The event list stays (it is data). */
.pl-so [data-sw-units-failed] .pl-sh-key[data-sw-v="chart"], .pl-so [data-sw-units-failed] .pl-cc__key, .pl-so [data-sw-units-failed] .pl-lane__strip, .pl-so [data-sw-units-failed] .pl-lane__chips, .pl-so [data-sw-units-failed] .pl-lane__fbtn { display: none !important; }

/* Under 440 px the Net revenue card's toggle always has its own row: "Net revenue | Units" does not fit beside the title "Net revenue" but does beside "Units", so without this the toggle jumped a row after a tap (design owner, re-check of 801f3be1). */
@media (max-width: 439.98px) {
  .pl-so .pl-cc__head > .pl-sh-ctl { flex-basis: 100%; }
}

/* Days with too few readings (design owner, follow-ups FU1 and FU2 of PR 780).
   FU1: the chart key's hatch swatch on the CCUs chart, drawn as the Demo card's (steam-demo.css
   .pl-dm-key__hatch), so the two pages name the hatched days the same way.
   FU2: words in a figure's place ("Too few readings", "Not on file") are muted, regular weight,
   on the figure's line height, so on a phone they never read as the rest of the bold label
   above them. Every Player data page that uses the words state. Tokens only. */
.pl-legend i.pl-legend__hatch { border: 1px solid var(--border-strong); background-color: transparent; background-image: repeating-linear-gradient(135deg, var(--border-strong) 0 1px, transparent 1px 4px); }
.pl-pd .pl-pd-words { color: var(--ink-muted); font-weight: 400; line-height: var(--type-figure-tile-line); }

/* A/B comparison: Impression CTR by placement (mock-up ab-ctr-by-placement v1, Fredrik 2026-11-16;
   sheet ab-placements). The expandable table row of decision 86: the parent's name is the button,
   child rows carry three signals (32 px indent, a 3 px violet rule, the violet tint). Tokens only. */
.pl-abm__xopen { display: flex; align-items: flex-start; gap: 4px; min-height: 32px; font-weight: 500; }
.pl-abm__xopen .pl-lp__chev { line-height: 20px; }
.pl-abm__xopen .pl-abm__msub { font-weight: 400; }
.pl-abm__table tr.pl-abm__xkid > * { background-color: var(--violet-tint); }
.pl-abm__table tr.pl-abm__xkid > :first-child { padding-left: 32px; border-left: 3px solid var(--violet); font-weight: 400; }
.pl-abm__xkids[hidden] { display: none; }
.pl-abm__xnote { font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); font-weight: 400; }
/* The note's (i) is the in-flow one (define-info.css, .pl-info--inflow): its panel opens in the
   note row, under the note, and moves the placements down. */
.pl-abm__xinfo { margin-left: var(--space-1); vertical-align: middle; }
.pl-abm__xsub { font-size: var(--type-label-size); line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.pl-abm__ps { color: var(--ink-muted); }
.pl-abm__cv { display: block; color: var(--ink); }
.pl-abm__cv--none { color: var(--ink-muted); }
.pl-abm__cs { display: block; white-space: nowrap; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-abm__few { display: block; white-space: nowrap; font-size: var(--type-label-size); line-height: 16px; color: var(--ink-muted); font-style: italic; }
/* Band edges in child rows: border-strong on the violet tint is 2.998:1 in Dark, under the 3:1 mark rule */
.pl-abm__xkid .pl-abm__be { stroke: var(--ink-muted); }
/* Under 1280 px the impressions and visits lines may wrap, so the open table never scrolls sideways */
@media (max-width: 1279px) { .pl-abm__cs, .pl-abm__few { white-space: normal; } }

/* Withdraw Steamworks access (mock-up withdraw-steamworks-access v2): the card on Settings,
   Steamworks and the admin actions on Agreements. Existing tokens only; the buttons as on
   People: danger is secondary with critical-ink words (decision 20). */
.pl-access .pl-btn--secondary { background: var(--surface); }
.pl-access .pl-btn--danger { color: var(--critical-ink); }

/* Sign-in: a link in a field's help text (the login page's "Forgot your password?") was a 15 px tall target; a 24 px line makes it the minimum tap target (WCAG 2.2 2.5.8; clean-up 2026-11-11). Tokens only. */
.pl-auth__card .helptext a { display: inline-block; line-height: 24px; }

/* Gradient bars (decision 132, 2026-11-15; design sheet v3.44; mock-up net-revenue-chart-edgier v2).
   The key swatch of a chart of the studio's own bars shows the same fade as its bars (peerlight.js):
   you at the top to seq-4 at the base, two opaque stops. A day nobody reported is a hatched slot in
   the chart; its key swatch is the same hatch in border-strong, 1 px lines 4 px apart at 45 degrees,
   on a hairline edge. Tokens only. */
.pl-sw-grad { background-color: var(--seq-4); background-image: linear-gradient(180deg, var(--you), var(--seq-4)); }
.pl-sw-unreported { border-radius: 1px; background-color: transparent; background-image: repeating-linear-gradient(135deg, var(--border-strong) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1px var(--hairline); }

/* The two-row card head (templates/peerlight/components/card_head_two.html; structure after the
   1536 px page, Fredrik 2026-11-27; mock-up 2026-11-27_structure-1536_v1, change 2). Row 1: the
   title with its (i) (define.js) and the actions (window chip, Export CSV) at the right edge.
   Row 2: the switches, left-aligned. The DOM is in reading order, so focus follows what the eye
   sees. Used by a card that pairs (card-pair.css), also when the pair stacks. Tokens only. */
.pl-sh-head.pl-sh-head--two { justify-content: flex-start; align-items: center; }
.pl-sh-head.pl-sh-head--two > h2 { flex: 0 1 auto; min-width: 0; }
.pl-sh-head.pl-sh-head--two > .pl-sh-act { margin-inline-start: auto; align-items: center; }
.pl-sh-head.pl-sh-head--two > .pl-sh-sw { flex: 1 0 100%; justify-content: flex-start; align-items: center; }

/* Structure after the 1536 px page (Fredrik 2026-11-27; mock-up 2026-11-27_structure-1536_v1,
   decision record peerlight-2.0/decisions/2026-11-27-structure-changes-1536.md). Tokens only.
   The card pair, used by the pages in step 2 (the two-row card head is card-head-two.css): two
   cards side by side once the pair has 1160 px, one column below that and on a phone. 1160 px
   is the mock-up's 1200 px page less room for a classic scrollbar, so a 1536 px window with the
   sidebar open pairs and a 1440 px laptop stays stacked. The outer element measures the width
   (a named container), the inner one is the grid:
     <div class="pl-cardpair [pl-cardpair--eq]"><div class="pl-cardpair__in">card card</div></div>
   Default: each card keeps its own height, top-aligned, so opening a long list in one card never
   stretches the other (Sales, Wishlists, Store traffic, Reviews). pl-cardpair--eq: both cards take
   the taller one's height, so a short card leaves no ragged edge (Home: Needs your attention and
   Coming up). */
.pl-cardpair { container: pl-cardpair / inline-size; min-width: 0; }
.pl-cardpair__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.pl-cardpair__in > * { min-width: 0; }
.pl-cardpair--eq > .pl-cardpair__in { align-items: stretch; }
/* A card alone in a pair (its partner not drawn for this game) takes the whole row. */
.pl-cardpair__in > div:only-of-type { grid-column: 1 / -1; }
@container pl-cardpair (min-width: 1160px) {
  .pl-cardpair__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keyline on stacked parts (design sheet v3.42, id keyline, Fredrik 2026-11-11): every stacked part that can sit on a band gets a 1 px keyline in the card's surface colour round it, so its 3:1 is measured against the card wherever it is drawn. The stroke is 2 px wide and painted under the fill, so only its outer 1 px shows and the part keeps its full size; the inner svg (pl-keyline-clip) ends at the axis, so no keyline is drawn below a part. Used by the Sales overview Net revenue card and the Discounts overview day chart around the last promotion. Tokens only. */
.pl-keyline-clip { overflow: hidden; }
.pl-keyline-clip rect { stroke: var(--surface); stroke-width: 2; paint-order: stroke; vector-effect: non-scaling-stroke; }

/* PeerLight 2.0: Charged chrome on Satin data (Fredrik 2026-11-26, mock-up charged-chrome v1,
   section 5). Only the header, the sidebar and the phone bar change: glass with a violet cast,
   a violet edge, text in the chrome-* roles, a stronger logo halo in Dark and the violet count
   pill in chrome colours. Every card, chart, table, KPI, pill and chip stays Satin, and so do
   the sticky row, the menus and the tooltips (they keep glass-chrome). Nothing glows in data.
   The selected row is in sidebar-active.css, the hover box and the phone bar's selected pill in
   shell-and-nav.css, the folded pill in proposal-highlight.css. Tokens only. */

/* The chrome's own tokens: glass.css draws the glass (tint, edge, top light, blur, the
   reduced-transparency and print fallbacks) from glass-chrome, glass-edge and glass-highlight,
   so here they take the chrome values, with the text roles. The account and studio menus inside
   inherit the text roles; on their solid surfaces these pass by a wider margin than on glass. */
.pl-header__inner, .pl-side, .pl-bottomnav,
.pl-glass .pl-header__inner, .pl-glass .pl-side, .pl-glass .pl-bottomnav {
  --glass-chrome: var(--chrome-glass);
  --glass-edge: var(--chrome-edge);
  --glass-highlight: var(--chrome-highlight);
  --ink: var(--chrome-ink);
  --ink-muted: var(--chrome-ink-muted);
  --link: var(--chrome-link);
  --violet-strong: var(--chrome-link);
  --ink-muted-glass: var(--chrome-ink-muted);
  --link-glass: var(--chrome-link);
}

/* The phone bar keeps its stronger tint (bottomnav-solid.css: a light control scrolling under it
   must not pull a label under 4.5:1) and takes the violet cast as a layer over it. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pl-glass .pl-bottomnav { background-image: linear-gradient(var(--chrome-glass), var(--chrome-glass)); }
}

/* Shine item 1: the header logo's halo, 0.45 in Dark (none in Chalk). */
.pl-header .pl-mark-dark, .pl-header .pl-mark-light { filter: drop-shadow(0 0 5px var(--chrome-halo)); }

/* The violet count pill in the chrome (Promotion board row, the phone bar's More). In a selected
   row its number follows the row's text, its edge stays violet. */
.pl-side .pl-count-pill, .pl-bottomnav .pl-count-pill { border-color: var(--chrome-count-border); color: var(--chrome-count-ink); }
.pl-side__link[aria-current="page"] .pl-count-pill, .pl-bottomnav a[aria-current="page"] .pl-count-pill { color: inherit; }

@media print { .pl-header .pl-mark-dark, .pl-header .pl-mark-light { filter: none; } }

/* Creator content, Add video by link (mock-up creator-add-video-by-link v1, approved 2026-11-19).
   Existing tokens only. The button sits at the end of the list's toolbar row; the field opens in
   the built soft confirm panel under it. */
.pl-cc-add__bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.pl-cc-add__bar > .pl-cc__filters { flex: 1 1 auto; min-width: 0; }
.pl-cc-add__bar > .pl-cc__filters:not(.is-sheet) { margin-bottom: 0; }
.pl-cc-add__bar { margin-bottom: var(--space-3); }
.pl-cc-add__open { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-left: auto; }
.pl-cc-add__plus { width: 14px; height: 14px; flex: none; }
.pl-cc-add__off { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-left: auto; }
.pl-cc-add__off .pl-cc-add__open { margin-left: 0; }
.pl-cc-add__off .pl-btn[aria-disabled="true"] { color: var(--ink-muted); cursor: not-allowed; }
.pl-cc-add__why { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }

.pl-cc-add.pl-people__confirm { display: grid; gap: 6px; margin: 0 0 var(--space-3); }
.pl-cc-add[hidden] { display: none; }
.pl-cc-add__form { display: grid; gap: 6px; }
.pl-cc-add__l { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; }
.pl-cc-add__row { display: flex; gap: var(--space-2); align-items: center; }
.pl-cc-add__row .pl-input { flex: 1 1 auto; min-width: 0; }
.pl-cc-add__acts { display: flex; gap: var(--space-2); align-items: center; }
.pl-cc-add__err { margin: 2px 0 0; }
.pl-cc-add__err[hidden] { display: none; }
.pl-cc-add__help { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-cc-add__wait { display: flex; gap: var(--space-2); align-items: flex-start; margin: 2px 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc-add__wait .pl-icon { width: 18px; height: 18px; flex: none; color: var(--ink-muted); }
.pl-cc-add__ok { display: grid; gap: 2px; margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--hairline); }
.pl-cc-add__ok p { margin: 0; }
.pl-cc-add__l1 { display: flex; gap: var(--space-2); align-items: flex-start; }
.pl-cc-add__l1 .pl-icon { width: 18px; height: 18px; flex: none; color: var(--good-ink); }
.pl-cc-add__l2 { padding-left: 26px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-cc-add__ok a, .pl-cc-add__res a.pl-btn--quiet { display: inline-flex; align-items: center; min-height: 24px; vertical-align: middle; }
.pl-cc-add__res { margin-top: var(--space-1); padding: var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface); }
.pl-cc-add__res .pl-people__q, .pl-cc-add__res .pl-people__t { margin: 0; }
.pl-cc-add__res .pl-people__btns { margin-top: var(--space-2); align-items: center; }
.pl-cc-add__res .pl-people__btns form { margin: 0; }

/* The added (or shown) row: tinted, never a glow; the tag until the next load. */
.pl-cc__table tr.pl-cc-add__new > td, .pl-cc__pi.pl-cc-add__new { background-color: var(--violet-tint); }
.pl-cc__table tr > td, .pl-cc__pi { transition: background-color 600ms ease; }
.pl-cc-add__tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-sm); background-color: var(--violet-tint); color: var(--ink); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) {
  .pl-cc__table tr > td, .pl-cc__pi { transition: none; }
}

@media (max-width: 767px) {
  .pl-cc-add__bar > .pl-cc__fbtn:not([hidden]) { margin-bottom: 0; }
  .pl-cc-add__open { margin-left: 0; }
  .pl-cc-add__off { margin-left: 0; }
  .pl-cc-add__row { flex-direction: column; align-items: stretch; }
  .pl-cc-add__row .pl-input { min-height: 44px; width: 100%; }
  .pl-cc-add__acts { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-cc-add__acts .pl-btn { min-height: 44px; }
  .pl-cc-add__res .pl-people__btns .pl-btn { min-height: 44px; }
  .pl-cc-add__res .pl-people__btns form { flex: 1 1 auto; display: flex; }
  .pl-cc-add__res .pl-people__btns form .pl-btn { flex: 1 1 auto; }
}

/* A busy Add ("Adding…") keeps its edge (control outlines, decision 76), its text quieter. */
.pl-cc-add__acts .pl-btn--secondary[aria-disabled="true"] { border-color: var(--border-strong); color: var(--ink-muted); cursor: not-allowed; }

/* The tag sits on the title's line, right after the link (design owner, finding 1). */
.pl-cc-add__tl { display: inline; }

/* Creator content, Videos (mock-up creator-content v6, design sheet v3.40 "Creator content").
   Existing tokens only. The strip, the Show chips and the phone filter sheet are the Events
   list's own (pl-ev__strip, pl-ev__chip, pl-ev__filters); this file only places them. */
.pl-cc__head { margin-bottom: 0; }
.pl-cc__ctx { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin: var(--space-4) 0; }
.pl-cc__ctl { display: grid; gap: var(--space-1); min-width: 0; }
.pl-cc__k { padding: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-cc__custom:not([hidden]) { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
/* The strip: the Events strip's parts, without its divider (one group here), figures at 20 px
   as drawn. Doubled class: events-clarity loads after this file. */
.pl-cc__strip.pl-cc__strip { margin-bottom: var(--space-4); }
.pl-cc__sgrp.pl-cc__sgrp { padding-left: 0; border-left: 0; }
.pl-cc__strip.pl-cc__strip dd { font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: var(--type-metric-heading-weight); }
.pl-cc__failed { margin-bottom: var(--space-4); }
.pl-cc__notset { margin-top: var(--space-2); }

/* The card head: the title with its one (i), the YouTube source line on the right. */
.pl-cc__card { padding: var(--space-4); }
.pl-cc__cardhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.pl-cc__cardtitle { margin: 0; display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-cc__src { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
/* YouTube's official logo as the link (Fredrik 2026-11-11), its PNG as YouTube ships it: no
   recolour, no crop, nothing over it. The file holds YouTube's own clear space around the
   logo, so a 28 px image shows a logo about 14 px tall, the source line's size (never the
   most prominent thing on the page). One file per theme: dark text on Chalk, white on Dark. */
.pl-cc__yt { display: inline-flex; align-items: center; min-height: 24px; }
.pl-cc__yt img { width: auto; height: 28px; filter: none; }

/* The Show chips and the sort, one row inside the card. */
.pl-cc__filters { align-items: center; gap: 6px; margin-bottom: var(--space-3); }
.pl-cc__filters .pl-ev__kinds legend { float: left; margin-right: var(--space-1); }
.pl-cc__filters .pl-ev__kinds { align-items: center; }
.pl-cc__sort .pl-select { min-height: 28px; font-size: var(--type-label-size); }
.pl-cc__phinfo { display: none; }
/* Clear filters belongs to the phone sheet (mock-up v6); on desktop the chips themselves undo. */
.pl-cc__filters.is-sheet:not(.is-open) .pl-ev__factions { display: none; }
.pl-cc__none { margin: var(--space-3) 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* The video cell (sheet v3.40): YouTube's thumbnail 96x54, no hover effect; the title links out. */
.pl-cc__vid { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; }
.pl-cc__th { flex: none; display: block; width: 96px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; background-color: var(--surface-raised); }
.pl-cc__vt { display: grid; gap: 2px; min-width: 0; }
.pl-cc__tl { color: var(--link); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.pl-cc__tl:hover { text-decoration: underline; }
.pl-cc__ext { display: inline-block; width: 12px; height: 12px; margin-left: var(--space-1); vertical-align: -1px; }
.pl-cc__meta { color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__meta b { color: var(--ink); font-weight: 500; }

/* The table: groups as row-group heads, their counts kept (the chips carry none). */
.pl-cc__table td { vertical-align: middle; }
.pl-cc__table td:first-child { width: 56%; }
.pl-cc__day { white-space: nowrap; }
.pl-cc__grp th { padding-top: var(--space-4); color: var(--ink); background: transparent; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; text-align: left; }
.pl-cc__gn { margin-left: 6px; color: var(--ink-muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* The foot YouTube's terms ask for. */
.pl-cc__foot { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: var(--type-meta-size); line-height: 18px; }
.pl-cc__foot p { margin: 0; }
.pl-cc__foot a { color: var(--link); }

/* What PeerLight keeps from YouTube: plain text. */
.pl-cc__keeps { max-width: 720px; margin-top: var(--space-4); }
.pl-cc__keeps h2 { margin: var(--space-4) 0 var(--space-2); font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-cc__keeps p, .pl-cc__keeps li { font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-cc__keeps a { color: var(--link); }

/* Phones: the list as rows, the chips behind one Filter button (events-panel.js), and the (i)
   on its own line under it. */
.pl-cc__plist { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) {
  .pl-cc__tablewrap { display: none; }
  .pl-cc__plist { display: block; }
  .pl-cc__cardhead .pl-cc__info { display: none; }
  .pl-cc__phinfo { display: flex; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
  .pl-cc__filters.is-sheet.is-open .pl-cc__sep { display: none; }
  .pl-cc__filters.is-open .pl-cc__sortk { position: static; width: auto; height: auto; clip: auto; overflow: visible; color: var(--ink-muted); font-size: var(--type-label-size); }
  .pl-cc__plgrp { display: flex; align-items: center; padding: var(--space-3) 0 6px; border-bottom: 1px solid var(--hairline); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; }
  .pl-cc__pi { display: grid; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
  .pl-cc__pi .pl-cc__tl { line-height: 20px; }
  .pl-cc__pimore { padding-left: calc(96px + var(--space-3)); color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
  .pl-cc__pimore b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
}

/* Creator content, slice b (mock-up creator-content v6 views review, reviewed, rules, queue;
   design sheet v3.40 "Review row", "Tag field", "Who and when", "Staff queue group").
   Existing tokens only. The tab row is the app's pl-tabs; the pill is pl-count-pill. */
.pl-cc__tabs { margin: 0 0 var(--space-5); }
.pl-cc__tabs a { gap: 6px; }
.pl-cc__tabs .pl-count-pill { margin-left: 0; }
.pl-cc__line { margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__start { margin-top: var(--space-2); }

/* The Videos tab's staff links: Check, Restore, Check all. */
.pl-cc__st { white-space: nowrap; }
.pl-cc__st a, .pl-cc__gact { display: inline-flex; align-items: center; min-height: 24px; }
.pl-cc__grp .pl-cc__gact { margin-left: var(--space-2); font-weight: 500; }
.pl-cc__gout { color: var(--ink-muted); font-weight: 400; }

/* Review rows: open (Accept, Reject, Never this channel) and folded (one line). */
.pl-cc__rvlist { list-style: none; margin: 0; padding: 0; }
.pl-cc__rvcard > .pl-cc__rvlist > li:last-child { border-bottom: 0; }
.pl-cc__rv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-5); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.pl-cc__why { color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__why mark { padding: 0 2px; border-radius: 2px; background-color: var(--violet-tint); color: var(--ink); }
.pl-cc__n { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-cc__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); margin: 0; }
.pl-cc__act .pl-btn { min-height: 32px; padding-block: 5px; }
.pl-cc__act .pl-btn.is-picked { border-color: var(--violet); background-color: var(--violet-tint); color: var(--ink); font-weight: 600; }
.pl-cc__done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc__done b { font-weight: 600; }
.pl-cc__done a { display: inline-flex; align-items: center; min-height: 24px; }
.pl-cc__m { color: var(--ink-muted); }
.pl-cc__ok { color: var(--good-ink); font-weight: 600; }
.pl-cc__done:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* A reopened row names its current choice (design review of PR 882, nit 12). */
.pl-cc__now { color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__end { margin: var(--space-3) 0 0; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__rvlist + .pl-cc__end { margin-top: var(--space-3); }
.pl-cc__rvcard > .pl-cc__end:first-child { margin-top: 0; }

/* The staff queue: one details element per game, a 48 px summary. */
.pl-cc__qgrp { border-bottom: 1px solid var(--hairline); }
.pl-cc__qgrp:last-child { border-bottom: 0; }
.pl-cc__qgrp > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: var(--space-1) 0; cursor: pointer; list-style: none; }
.pl-cc__qgrp > summary::-webkit-details-marker { display: none; }
.pl-cc__qn { font-weight: 600; }
.pl-cc__qs { display: block; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__qc { display: inline-flex; color: var(--ink-muted); }
.pl-cc__qc svg { width: 16px; height: 16px; }
.pl-cc__qgrp[open] .pl-cc__qc svg { transform: rotate(180deg); }
.pl-cc__qgrp .pl-cc__rvlist { border-top: 1px solid var(--hairline); }
.pl-cc__qgrp .pl-cc__rvlist > li:last-child { border-bottom: 0; }
.pl-cc__qline { margin-top: var(--space-3); }

/* Search rules: the form card, its sections, the tag fields, the switch, the save row. */
.pl-cc__rucard { max-width: 880px; }
.pl-cc__ruform { display: grid; gap: var(--space-5); }
/* A refused save, at the top of the card where focus goes (design review of PR 882, finding 3). */
.errorlist.pl-cc__failed-save { margin: 0 0 var(--space-4); }
.pl-cc__rusec { display: grid; gap: var(--space-4); }
.pl-cc__rusec + .pl-cc__rusec { padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.pl-cc__ruh { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-cc__fld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.pl-cc__l { font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; }
.pl-cc__opt { color: var(--ink-muted); font-weight: 400; }
.pl-cc__help { margin: 0; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__fld .errorlist { margin: 0; }
.pl-cc__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: var(--space-1) 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background-color: var(--surface-raised); }
.pl-cc__tags:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-cc__fld.is-invalid .pl-cc__tags { border-color: var(--critical-ink); }
.pl-cc__tag { display: inline-flex; align-items: center; gap: 2px; min-height: 26px; max-width: 100%; padding: 0 2px 0 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); background-color: var(--surface); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-cc__tagt { overflow-wrap: anywhere; }
.pl-cc__tagn { margin-left: var(--space-1); color: var(--ink-muted); font-size: var(--type-meta-size); font-variant-numeric: tabular-nums; }
.pl-cc__tagx { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); font: inherit; cursor: pointer; }
.pl-cc__tagx:hover { color: var(--ink); background-color: var(--surface-raised); }
/* Beats base.css input[type="text"]: the box is the field, the input inside has no edge. */
.pl-cc__tags input.pl-cc__tagin { flex: 1; min-width: 120px; min-height: 26px; padding: 0 var(--space-1); border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 400 var(--type-body-size)/20px var(--font-sans); }
.pl-cc__tags input.pl-cc__tagin:focus-visible { outline: 0; }
.pl-cc__tagin::placeholder { color: var(--ink-muted); }
.pl-cc__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.pl-cc__sw { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 36px; font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; cursor: pointer; }
.pl-cc__sw input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pl-cc__swt { position: relative; flex: none; width: 36px; height: 20px; border: 1px solid var(--border-strong); border-radius: 10px; background-color: var(--surface-raised); }
.pl-cc__swt::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background-color: var(--ink-muted); }
.pl-cc__sw input:checked:not(:disabled) + .pl-cc__swt { border-color: var(--violet); background-color: var(--violet); }
.pl-cc__sw input:checked:not(:disabled) + .pl-cc__swt::after { left: 18px; background-color: var(--on-primary); }
.pl-cc__sw input:focus-visible + .pl-cc__swt { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-cc__hist > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--link); font-size: var(--type-body-sm-size); cursor: pointer; }
.pl-cc__histl { display: grid; gap: var(--space-1); margin: var(--space-1) 0 0; padding: 0; list-style: none; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc__histl b { font-weight: 600; }
.pl-cc__histl span { color: var(--ink-muted); }
.pl-cc__save { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.pl-cc__save > p { flex-basis: 100%; margin: 0 0 var(--space-1); }

/* Phones: one column; Accept and Reject 44 px side by side, Never this channel a line under. */
@media (max-width: 767px) {
  .pl-cc__rv { grid-template-columns: minmax(0, 1fr); }
  .pl-cc__act { justify-content: stretch; }
  .pl-cc__act .pl-btn--secondary { flex: 1; justify-content: center; min-height: 44px; }
  .pl-cc__act .pl-btn--quiet { flex-basis: 100%; min-height: 32px; justify-content: flex-start; }
  .pl-cc__plgrp { justify-content: space-between; }
  .pl-cc__plgrp .pl-cc__gact { min-height: 44px; }
  .pl-cc__done a { min-height: 44px; }
  .pl-cc__two { grid-template-columns: minmax(0, 1fr); }
  .pl-cc__rucard { max-width: none; }
}
/* The three tabs fit a 375 px phone (design review of PR 882, finding 8; with the longer names
   of 2026-11-17, Atlas on PR 996): no gap between tabs, 4 px a side. Narrower rows keep the
   shared edge fade of .pl-tabs. */
@media (max-width: 399.98px) {
  .pl-cc__tabs { gap: 0; }
  .pl-cc__tabs a { gap: var(--space-1); padding-inline: var(--space-1); }
}

/* Creator content with YouTube's derived metrics (mock-up creator-derived-metrics v2; decision
   2026-11-12-youtube-derived-metrics). Only drawn with the switch on: the key line once above a
   list, the Event cell's muted second lines (Added by PeerLight, Below the event bar, Event
   deleted), and the table's narrow layout below 1200 px, where Published moves into the channel
   line and the Steam hint sits under the event (it then starts with Steam). Tokens only. */

.pl-cc-key { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-cc-key b { color: var(--ink-muted); font-weight: 600; }
.pl-cc__evsub { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-cc__table--derived .pl-cc__hintcell { width: 176px; margin-top: 0; }
.pl-cc__narrow, .pl-cc__pubin { display: none; }

@media (max-width: 1199.98px) {
  .pl-cc__table--derived .pl-cc__wide { display: none; }
  .pl-cc__table--derived .pl-cc__narrow { display: block; margin-top: var(--space-1); }
  .pl-cc__table--derived .pl-cc__pubin { display: inline; }
}

/* Phones: the event's 44 px date link keeps its target but takes no extra room, so "Added by
   PeerLight" and the Steam hint sit as tight as on desktops (design owner, review of 928). */
@media (max-width: 767px) {
  .pl-cc__plist--derived .pl-cc__evc { margin-block: -10px; }
  .pl-cc__plist--derived .pl-cc__hintcell { margin-top: var(--space-1); }
}

/* Remove (part C slice 2): a quiet text action on the row and in the panel, its confirm in place
   (the Invites pattern, pl-people__confirm; in the table it spans the row). Muted and underlined,
   never a red button on every row: the confirm carries the red (mock-up v2, decision 6). */
.pl-cc__acts { width: 1%; white-space: nowrap; }  /* sized to its content (design owner, 932) */
.pl-cc__acts .pl-cc__rej { margin-right: var(--space-3); }
.pl-cc__rm { display: inline-flex; align-items: center; min-height: 28px; padding: 0; border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: var(--type-body-sm-size); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pl-cc__rm:hover { color: var(--ink); }
.pl-cc__confrow td { padding-top: 0; }
.pl-cc__confrow .pl-people__confirm { margin-top: 0; }
.pl-cc__pacts { padding-left: calc(96px + var(--space-3)); }
.pl-cc__pacts .pl-cc__rm { min-height: 32px; }
.pl-cc-notabout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-evp__accnote.pl-cc-origin { border-left-color: var(--event-creators); }
.pl-cc__pconfirm { margin: var(--space-3) 0; }
.pl-cc__confirm .pl-btn, .pl-cc__pconfirm .pl-btn { min-height: 36px; }
.pl-cc__confirm .pl-btn--danger { color: var(--critical-ink); }  /* as in the panel (events.css) */

/* Creator content's Details row (mock-up creator-derived-metrics v2, decision 5 and its Details
   row; switch on only): views after 1, 7 and 30 days with the 30-day curve, the size and why in
   two equal halves, then the Steam part under a hairline. The curve: pewter line (a creator's
   views are YouTube's, not the studio's violet), ink dots ringed in the row's ground, a dotted
   border-strong line for the days still to come, 12 px labels. Details carries a chevron that
   turns when open. Existing tokens only. */

.pl-cc__det { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 28px; margin-right: var(--space-3); padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: var(--type-body-sm-size); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pl-cc__det svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.pl-cc__det[aria-expanded="true"] svg { transform: rotate(180deg); }
.pl-cc__pacts .pl-cc__det { min-height: 32px; }
.pl-cc__dx { display: grid; gap: var(--space-4); padding: var(--space-4); }
.pl-cc__dxtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-6); align-items: start; }
.pl-cc__dxsteam .pl-cc__hxh { display: block; }
.pl-cc__dxsteam { padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.pl-cc__dx .pl-cc__hx, .pl-cc__pihx .pl-cc__dx .pl-cc__hx { padding: 0; }
.pl-cc__vfig { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin: var(--space-2) 0; }
.pl-cc__vfig dt { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-cc__vfig dd { margin: 0; color: var(--ink); font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-cc__vfig dd.pl-cc__vq { color: var(--ink-muted); font-size: var(--type-body-sm-size); font-weight: 400; }
.pl-cc__notkept { margin: var(--space-2) 0 0; padding: var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc__why { margin: var(--space-2) 0 0; padding-left: var(--space-5); list-style: disc; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc__why li + li { margin-top: var(--space-1); }
.pl-cc-curve { display: block; max-width: 100%; height: auto; overflow: visible; }
.pl-cc-curve text { fill: var(--ink-muted); font-size: var(--type-label-size); }
.pl-cc-curve__ax { stroke: var(--hairline); stroke-width: 1; }
.pl-cc-curve__ln { fill: none; stroke: var(--pewter); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pl-cc-curve__dot { fill: var(--ink); stroke: var(--surface-raised); stroke-width: 2; }
.pl-cc-curve__todo { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 2 3; }
.pl-cc__dxsize .pl-lane-gl { margin-right: var(--space-1); }

@media (prefers-reduced-motion: reduce) {
  .pl-cc__det svg { transition: none; }
}

@media (max-width: 767px) {
  .pl-cc__dx { padding: var(--space-3); }
  .pl-cc__dxtop { grid-template-columns: minmax(0, 1fr); }
}

/* Details and Remove stacked in the Actions column, as the mock-up, so the Video column keeps its
   width (design owner, review of 936). */
.pl-cc__acts .pl-cc__det, .pl-cc__acts .pl-cc__rm { display: flex; width: max-content; margin-right: 0; }

/* Flag as event (mock-up creator-content v6 state A; design sheet v3.40 "Event cell and Flag
   as event"): the Event cell on Creator content's Videos tab, the Became events sizes in the
   strip, and the video at the top of the Flag as event panel. Tokens only. */

.pl-cc__ev { white-space: nowrap; }
.pl-cc__evc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-cc__evc .pl-lane-gl { margin: 0 2px; }
.pl-cc__sz { color: var(--ink); }
.pl-cc__evc a,
.pl-cc__flag { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pl-cc__noev { color: var(--ink-muted); }
.pl-cc__strip.pl-cc__strip dd .pl-cc__sizes { margin-left: 6px; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); font-weight: 400; }

.pl-evp__vid { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; margin: 0; padding: var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface-raised); }
.pl-evp__vid--gone { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-evp__ro .pl-lane-gl { margin-right: var(--space-2); }
.pl-cc__doneact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }

@media (max-width: 767px) {
  .pl-cc__pimore--ev { display: grid; justify-items: start; margin-block-end: calc(-1 * var(--space-3)); }
  .pl-cc__doneact { flex-basis: 100%; }
  .pl-cc__pimore .pl-cc__evc a,
  .pl-cc__pimore .pl-cc__flag { min-height: 44px; }
}

/* Creator content, own videos as events (mock-up creator-own-videos-events v2, states Panel
   and Staff; decision 2026-11-11-own-channel-videos-as-events): the line under the video card
   in the Flag as event panel while an own video still waits, and staff's quiet Reject on a
   Your channel row, a form button that reads as the column's links. Tokens only. */

.pl-evp__accnote { display: flex; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--card-edge); border-left: 3px solid var(--violet); border-radius: var(--radius-md); color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-evp__accnote b { font-weight: 600; }

.pl-cc__rejf { display: inline; margin: 0; }
.pl-cc__rej { display: inline-flex; align-items: center; min-height: 24px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.pl-cc__rej:hover { text-decoration-thickness: 2px; }

@media (max-width: 767px) {
  .pl-cc__rejrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; }
  .pl-cc__rej.pl-cc__pact { min-height: 44px; text-decoration: none; }
  .pl-cc__rej.pl-cc__pact:hover { text-decoration: underline; }
}

/* Creator content: the search state zone (mock-up creator-not-searched-yet v2, approved by
   Fredrik 2026-11-13). Directly under the tab row on Search rules, Videos and Check new hits, as
   wide as the rules card: the state, then the staff row (Rekoup only). Existing tokens only. */
.pl-cc-ss { display: grid; gap: var(--space-2); max-width: 860px; margin: 0 0 var(--space-4); }

/* A. Not saved and the failed first night: the warning state, with a second Save rules. */
.pl-cc-ss .pl-warnstate { align-items: center; flex-wrap: wrap; }
.pl-cc-ss .pl-warnstate__body { flex: 1 1 200px; }
.pl-cc-ss .pl-warnstate > .pl-btn { margin-left: auto; }

/* B. Not searched yet, Searching now, Partly searched: a neutral line, nothing to do. */
.pl-cc-ss__wait { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface); }
.pl-cc-ss__ico { display: inline-flex; flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ink-muted); }
.pl-cc-ss__ico svg { width: 20px; height: 20px; }
.pl-cc-ss__wait h4 { margin: 0; color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 500; }
.pl-cc-ss__wait p { margin: 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* C. Searched: no box, the muted page line only. */
.pl-cc-ss__line { margin: 0; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc-ss__line b { color: var(--ink); font-weight: 500; }

/* The staff row, on the ground. */
.pl-cc-ss__staff { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc-ss__staff > b { color: var(--ink); font-weight: 600; }
.pl-cc-ss__done { color: var(--ink); }
.pl-cc-ss__act { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.pl-cc-ss__form { display: inline-flex; margin: 0; }
.pl-cc-ss__cost { font-variant-numeric: tabular-nums; }
.pl-cc-ss__nb { white-space: nowrap; }
.pl-cc-ss__why { flex-basis: 100%; }

/* The rules form's save row before the first save: "Not saved yet · filled in with ..." in ink. */
.pl-cc__save > p.pl-cc__notsaved { color: var(--ink); }

/* Phone: the staff row stacks as rows, no dots; the (i) panel spans the row. */
@media (max-width: 767px) {
  .pl-cc-ss { max-width: none; }
  .pl-cc-ss__staff { position: relative; flex-direction: column; align-items: flex-start; gap: 6px; }
  .pl-cc-ss__dot { display: none; }
  .pl-cc-ss__staff > * { max-width: 100%; }
  .pl-cc-ss__why { flex-basis: auto; }
  .pl-cc-ss__act { gap: var(--space-1) 6px; }
  .pl-cc-ss__info { margin-left: -2px; }
}

/* The staff page: the Not searched yet card above the built groups. */
.pl-cc-ns { display: grid; gap: var(--space-3); max-width: 920px; margin-bottom: var(--space-5); }
.pl-cc-ns__h { display: flex; flex-wrap: wrap; align-items: center; margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-cc-ns__sub { margin: 0; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); font-variant-numeric: tabular-nums; }
.pl-cc-ns__studio { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.pl-cc-ns__sh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.pl-cc-ns__sh h3 { margin: 0; font-size: var(--type-body-size); line-height: 20px; font-weight: 600; }
.pl-cc-ns__rows { display: grid; margin: 0; padding: 0; list-style: none; }
.pl-cc-ns__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--hairline); }
.pl-cc-ns__rows li:last-child { border-bottom: 0; }
.pl-cc-ns__g { font-weight: 600; }
.pl-cc-ns__m { display: block; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); font-weight: 400; }
.pl-cc-ns__rows form { margin: 0; }
.pl-cc-ns .pl-people__confirm { margin-top: 0; }
@media (max-width: 767px) {
  .pl-cc-ns__rows li { grid-template-columns: minmax(0, 1fr); }
  .pl-cc-ns__rows li > :last-child { justify-self: start; }
}

/* Creator content's Steam hint (mock-up creator-own-videos-events v2, scope Events only;
   decision 2026-11-12-creator-steam-hint-events-only): the hint under the event in the Event
   column, and its figures under the row (desktop) or under the video (phones). The hint's
   arrow and words in good-ink, its source in ink, the "also" lines muted. Tokens only. */

.pl-cc__hintcell { max-width: 176px; margin-top: var(--space-1); white-space: normal; }
.pl-cc__table .pl-cc__hintcell { width: 176px; }  /* the Event column's width in Events only (mock-up col c-hint) */
@media (max-width: 1099.98px) {
  .pl-cc__table .pl-cc__hintcell { width: 108px; }  /* narrow desktops: the mock-up's middle width, so the table never scrolls */
}
.pl-cc__hint { display: inline-grid; justify-items: start; max-width: 100%; min-height: 28px; margin-left: -6px; padding: 3px var(--space-2) 3px 6px; border: 1px solid transparent; border-radius: var(--radius-md); background-color: transparent; color: var(--ink); font: 500 var(--type-meta-size)/var(--type-meta-line) var(--font-sans); text-align: left; cursor: pointer; }
.pl-cc__hint:hover,
.pl-cc__hint[aria-expanded="true"] { border-color: var(--card-edge); background-color: var(--surface-raised); }
.pl-cc__hup { color: var(--good-ink); }
.pl-cc__hsrc { color: var(--ink); font-weight: 600; }
.pl-cc__halso { color: var(--ink-muted); font-weight: 400; }
.pl-cc__hl1--quiet { color: var(--ink-muted); font-weight: 400; }  /* No clear rise: muted, as Within noise, but it opens */
.pl-cc__hq { color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }

/* The figures. */
.pl-cc__table .pl-cc__hintrow > td { padding: 0; background-color: var(--surface-raised); white-space: normal; }
.pl-cc__hx { display: grid; gap: 10px; padding: 14px var(--space-4) var(--space-4); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-cc__hxh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.pl-cc__hxt { margin: 0; color: var(--ink); font-size: var(--type-figure-size); line-height: var(--type-body-sm-line); font-weight: 600; }
.pl-cc__hxt--sm { font-size: var(--type-body-sm-size); }
.pl-cc__hxsrc { margin: 0; color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-cc__hxwin { margin: 0; color: var(--ink); }
.pl-cc__hxtw { overflow-x: auto; }
.pl-cc__hx .pl-cc__hxtable { width: 100%; max-width: 640px; border-collapse: collapse; font-size: var(--type-body-sm-size); }
.pl-cc__hx .pl-cc__hxtable th,
.pl-cc__hx .pl-cc__hxtable td { padding: var(--space-1) var(--space-2) var(--space-1) 0; border-bottom: 1px solid var(--hairline); background-color: transparent; color: var(--ink); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.pl-cc__hx .pl-cc__hxtable th:first-child { text-align: left; font-weight: 500; }
.pl-cc__hx .pl-cc__hxtable thead th { color: var(--ink-muted); font-size: var(--type-meta-size); font-weight: 500; }
.pl-cc__hx .pl-cc__hxtable .pl-cc__hxup { color: var(--good-ink); font-weight: 600; }
.pl-cc__hx .pl-cc__hxtable .pl-cc__hxq { color: var(--ink-muted); }
.pl-cc__hxv { display: block; font-size: var(--type-meta-size); font-weight: 400; }
.pl-cc__hxelse { display: grid; gap: var(--space-1); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.pl-cc__hxelse b { font-weight: 600; }
.pl-cc__hxacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.pl-cc__hxclose { margin-left: auto; }

@media (max-width: 767px) {
  .pl-cc__hintcell { max-width: none; }
  .pl-cc__pihx { min-width: 0; margin-top: var(--space-1); border-radius: var(--radius-md); background-color: var(--surface-raised); }
  .pl-cc__pihx .pl-cc__hx { padding: var(--space-3); }
}

/* Creator content video cell: the link-out icon stays on its title's last line, with the last word
   (phones wrapped it onto a line of its own on long titles; build queue 2026-11-12). */
.pl-cc__tle { white-space: nowrap; }

/* Walk of 966 to 970 (2026-11-16). Tokens only, no colour values.

   Home: Creator videos is This week's third card (mock-up home-creator-videos v1, section 7):
   one step (space-4) under the This week pair (and Your PeerLight team), not the page's gap
   between sections (space-6). */
.pl-home > .pl-home__week ~ .pl-home__creator_videos { margin-top: calc(var(--space-4) - var(--space-6)); }

/* A video thumbnail that fails to load (Creator content's video cell, also on Home and in the
   Events panel) shows the same raised tile as a video without one, never the browser's
   broken-image icon and frame. The image is decorative (alt is empty; the title link names the
   video). Browsers draw an img's pseudo-element only when the image is broken, so the cover
   appears only then. */
img.pl-cc__th { position: relative; overflow: hidden; color: transparent; }
img.pl-cc__th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-color: var(--surface-raised); }

/* Home, Creator videos: the foot keeps only YouTube's attribution (Fredrik 2026-11-16, no
   Creator content link). It stays on the right on a desktop, where it was, and starts at the
   left on a phone, where it wrapped under the link before. */
.pl-home-cv .pl-home-cv__foot { justify-content: flex-end; }
@media (max-width: 767px) {
  .pl-home-cv .pl-home-cv__foot { justify-content: flex-start; }
}

/* Creator content, Videos on phones: a staff row's date and views line ends in the desktop
   row's last-column link, Check on Waiting for review, Change on Rejected (mock-up
   creator-videos-phone-change v1, design finding 7 of PR 882). A 44 x 44 target; the line is
   44 px tall only on rows with the link, its last 12 px in the row's bottom padding. */
@media (max-width: 767px) {
  .pl-cc__pimore--act { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; margin-block-end: calc(-1 * var(--space-3)); }
  .pl-cc__pact { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; min-width: 44px; padding: 0 0 0 var(--space-3); color: var(--link); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; text-decoration: none; white-space: nowrap; }
  .pl-cc__pact:hover { text-decoration: underline; text-underline-offset: 3px; }
  .pl-cc__vw { white-space: nowrap; }
}

/* Creators & press in electric lime (Fredrik 2026-11-10; design sheet v3.40, token
   event-creators): the kind's glyph in chips, the key, list rows, popovers, panels and the
   Events list, and its single mark in the lane. Filled when logged, outlined when read from
   Steam or found by PeerLight. Marks only: the numbered circle, the 4 px run bar, the hover
   guide and every other kind stay event cyan. Never text, a line, a link or a fill. */
.pl-lane-gl.pl-lane-gl--creators { background-color: var(--event-creators); }
.pl-lane-gl.pl-lane-gl--creators.pl-lane-gl--steam { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--event-creators); }
.pl-lane__dia.pl-lane__dia--creators { fill: var(--event-creators); stroke: var(--event-creators); }
.pl-lane__dia.pl-lane__dia--creators.pl-lane__dia--steam { fill: var(--surface); }

/* Events clarity (Fredrik 2026-11-10, every event has a size; mock-up events-size v3). The Size as
   plain ink with a muted qualifier and a muted second line, "Change" in its own column, the whole
   row as a target (hover and keyboard focus tint it), the count strip with one period label over
   three sources, the "Minor events" chip after a hairline, and, on phones, one item per event
   with "Change" at the end of its size line. Tokens only. */

.pl-ev__szv { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink); }
.pl-ev__szsub { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); white-space: nowrap; }
.pl-ev__chg { white-space: nowrap; }
.pl-ev__chgl { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); font-size: var(--type-body-sm-size); text-decoration: underline; text-underline-offset: 2px; }
.pl-ev__found { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-ev__th-i { display: inline-flex; align-items: center; }
.pl-ev__th-i .pl-info { height: 18px; }
.pl-evp__ink { color: var(--ink); }

/* the whole row opens its panel */
.pl-ev__table tr[data-pl-ev-row], .pl-lane__table tr[data-pl-ev-row] { cursor: pointer; }
.pl-ev__table tr[data-pl-ev-row]:hover > td, .pl-ev__table tr[data-pl-ev-row]:focus-within > td,
.pl-lane__table tr[data-pl-ev-row]:hover > td, .pl-lane__table tr[data-pl-ev-row]:focus-within > td { background-color: var(--surface-raised); }

/* the counts: Upcoming, then one period label over Logged, From Steam and Found by PeerLight */
.pl-ev__strip { align-items: flex-end; gap: var(--space-3) var(--space-6); }
.pl-ev__strip > dl, .pl-ev__sgrp > dl { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; }
.pl-ev__sgrp { display: grid; gap: 6px; padding-left: var(--space-6); border-left: 1px solid var(--hairline); }
.pl-ev__sh { margin: 0; color: var(--ink); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; }

/* "Minor events": a size across every kind, set off from the kinds */
.pl-ev__chipsep { display: inline-block; width: 1px; height: 20px; margin: 0 var(--space-2); background-color: var(--card-edge); }
.pl-ev__chip--nogl span { margin-left: 2px; }

/* phones: one item per event (the table gives way) */
.pl-ev__plist, .pl-ev__phinfo { display: none; }
.pl-ev__plist { list-style: none; margin: 0; padding: 0; }
.pl-ev__pgrp { padding: var(--space-3) 0 6px; border-bottom: 1px solid var(--hairline); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; }
.pl-ev__pi { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pl-ev__pi[data-pl-ev-row] { cursor: pointer; }
.pl-ev__pi[data-pl-ev-row]:hover, .pl-ev__pi:focus-within { background-color: var(--surface-raised); }
.pl-ev__pid { font-weight: 600; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; }
.pl-ev__pin { overflow-wrap: anywhere; line-height: 24px; }
.pl-ev__pin .pl-ev__open, .pl-lane__pn .pl-ev__open { display: inline-block; min-height: 24px; line-height: 24px; }
.pl-ev__pim { margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 18px; overflow-wrap: anywhere; }
.pl-ev__pim .pl-lane-gl { margin: 0 6px 0 2px; }
.pl-ev__pim b { color: var(--ink); font-weight: 500; }
.pl-ev__pisz { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.pl-ev__pisz .pl-ev__chgl { min-height: 32px; padding: 0 4px 0 12px; flex: none; }

/* the list under each chart on a phone: plain inline text keeps the spaces around the dot */
.pl-lane__pm { column-gap: 6px; }

@media (max-width: 767px) {
  .pl-ev__card .pl-table-wrap { display: none; }
  .pl-ev__plist { display: block; }
  .pl-ev__phinfo { display: flex; align-items: center; gap: 4px; margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-label-size); }
  .pl-ev__phinfo .pl-info__tip { left: -120px; }
  .pl-ev__sgrp { padding-left: 0; border-left: 0; }
}

/* The date of every event panel (design sheet v3.40, "Event panel order"; events/date_field.html):
   the day as words in ink, "Set the date" beside it as a link-coloured text button, 24 px tall.
   The browser's date input stays hidden until that button is pressed (events-panel.js). */
.pl-evp__dateshow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); min-height: 36px; margin: 0; color: var(--ink); font-size: var(--type-body-size); line-height: 20px; }
.pl-evp__dateshow > span { white-space: nowrap; }
.pl-evp__datebtn { display: inline-flex; align-items: center; min-height: 24px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: var(--type-body-sm-size); cursor: pointer; }
.pl-evp__datebtn:hover { text-decoration: underline; }
.pl-evp__datebtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.pl-evp .pl-evp__date input[hidden], .pl-evp .pl-evp__dateshow[hidden], .pl-evp .pl-evp__datebtn[hidden] { display: none; }

/* Runs over several days (design sheet v3.41, "Runs over several days: two captioned dates"):
   two equal columns, 12 px apart, top-aligned. While the run is ticked each date has its
   visible caption (First day, Last day), and the words stack over Set the date, so the two
   columns keep one shape. A single date keeps the one-line form. Under 312 px of field the
   two dates stack, First day above Last day (a container query on the panel body). */
.pl-evp__when { container: pl-evp-when / inline-size; min-width: 0; }
.pl-evp__two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3); align-items: start; }
.pl-evp__datecap:not(.pl-sr) { display: block; margin: 0 0 4px; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; }
.pl-evp__two[data-pl-evp-run] .pl-evp__dateshow { flex-direction: column; align-items: flex-start; min-height: 0; }
@container pl-evp-when (max-width: 311px) {
  .pl-evp__two { grid-template-columns: minmax(0, 1fr); gap: var(--space-3) 0; }
}

/* The list's heading after Save or Delete (data-pl-ev-listhead; events-panel.js moves focus
   there): no browser ring on a click, the house ring for the keyboard, hugging the words. */
[data-pl-ev-listhead]:focus { outline: none; }
[data-pl-ev-listhead]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: var(--shadow-focus); }
h1[data-pl-ev-listhead], h2[data-pl-ev-listhead] { width: fit-content; border-radius: var(--radius-sm); }

/* The file field (mock-up staff-traffic-file-field v1, option A; Fredrik 2026-11-17): a 36 px
   field with the sheet's secondary button "Choose files" inside it, the chosen files listed with
   their size and a Remove, the total against the limit, and the send row with its status. The
   real file input is visually hidden but focusable; its label is the button. Tokens only.
   Markup: core/templates/core/forms/file_field.html and file_send.html; script: file-field.js. */

.pl-file { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.pl-file__label { color: var(--ink); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-file__box { box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background-color: var(--surface); min-width: 0; }
.pl-file__choose.pl-btn { flex: none; min-height: 28px; padding: 3px var(--space-3); font-size: var(--type-label-size); line-height: 20px; white-space: nowrap; }
.pl-file__choose:hover { background-color: var(--surface-raised); border-color: var(--ink-muted); }
.pl-file__input:focus-visible + .pl-file__choose { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-file__state { min-width: 0; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); overflow-wrap: anywhere; }

/* A file dragged over the field: the violet ring and tint; an error: the critical edge. */
.pl-file__box.is-dragover { border-color: var(--you); background-color: var(--violet-tint); box-shadow: 0 0 0 1px var(--you); }
.pl-file__box.is-dragover .pl-file__state { color: var(--ink); }
.pl-file__box.is-error { border-color: var(--critical-ink); }

.pl-file__help { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-file .pl-file__error { margin: 0; }

/* The chosen files: name, size, Remove; then the total. */
.pl-file__list { list-style: none; display: grid; gap: 2px; margin: 6px 0 0; padding: 0; }
.pl-file__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 28px; padding: 0 0 0 10px; border-radius: 6px; background-color: var(--surface-raised); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-file__name { min-width: 0; font-family: var(--font-mono); overflow-wrap: anywhere; }
.pl-file__size { margin-left: auto; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-file__list .pl-file__remove.pl-btn { flex: none; min-height: 28px; padding: 3px var(--space-2); font-size: var(--type-label-size); line-height: 20px; }
.pl-file__list .pl-file__remove.pl-btn:hover { background-color: var(--surface); text-decoration: underline; text-underline-offset: 3px; }
.pl-file__gap { flex: none; width: var(--space-2); }
.pl-file__total { margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-variant-numeric: tabular-nums; }

/* The send row: the button, and "Uploading 2 files…" beside it while they go up. */
.pl-file-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-file-send .pl-btn { min-height: 36px; }
.pl-file-send__busy { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-file-send__busy:empty { display: none; }
.pl-file-send__busy svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Wishlists, Launch: the reason line and the Followers tab link under "Not on file" in Followers at launch (mock-up launch-old-games-not-on-file v1, Fredrik 2026-11-17). The box is a grid with a 4 px gap, so the margins here add to it: 8 px above the line, 4 px above the link. */
.pl-wlo-why { margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-wlo-go { justify-self: start; min-height: 24px; padding: 2px 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--link); }

/* Planned Forecast events on the Forecast chart's event lane (decision 133, Fredrik 2026-11-15;
   design sheet v3.45, planned-event-mark; mock-up 2026-11-15_forecast-planned-event-mark_v1).
   The kind's own glyph with the surface fill and a dashed edge in the kind's token; the dash
   pattern itself is set on the path by event-lane.js (pathLength, dasharray, dashoffset).
   No new token, colour or size. */

/* In the lane (26 px box) */
.pl-lane__dia.pl-lane__dia--planned,
.pl-lane__dia.pl-lane__dia--creators.pl-lane__dia--planned { fill: var(--surface); stroke-linecap: butt; }
.pl-lane__ring.pl-lane__ring--planned { stroke-linecap: butt; }

/* Outside the lane (chips, key, popover, list, filter sheet): 12 x 12, the kind's token drawn
   through a mask of the same dashed path, so no colour value enters this file. */
.pl-lane-gl.pl-lane-gl--planned,
.pl-legend i.pl-lane-gl.pl-lane-gl--planned {
  transform: none; width: 12px; height: 12px; margin: 0 5px 0 0; border-radius: 0; vertical-align: -1px;
  background-color: var(--event); box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.1L10.9 6L6 10.9L1.1 6Z' fill='none' stroke='black' stroke-width='1.5' pathLength='8' stroke-dasharray='1.4 0.6' stroke-dashoffset='0.7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.1L10.9 6L6 10.9L1.1 6Z' fill='none' stroke='black' stroke-width='1.5' pathLength='8' stroke-dasharray='1.4 0.6' stroke-dashoffset='0.7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.pl-lane-gl.pl-lane-gl--planned.pl-lane-gl--update,
.pl-legend i.pl-lane-gl.pl-lane-gl--planned.pl-lane-gl--update {
  width: 12px; height: 12px; border-radius: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 11.2V5.8a3.8 3.8 0 0 1 7.6 0v5.4z' fill='none' stroke='black' stroke-width='1.5' pathLength='14' stroke-dasharray='1.4 0.6' stroke-dashoffset='0.7'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 11.2V5.8a3.8 3.8 0 0 1 7.6 0v5.4z' fill='none' stroke='black' stroke-width='1.5' pathLength='14' stroke-dasharray='1.4 0.6' stroke-dashoffset='0.7'/%3E%3C/svg%3E");
}
.pl-lane-gl.pl-lane-gl--planned.pl-lane-gl--creators { background-color: var(--event-creators); }
.pl-lane__pl .pl-lane-gl.pl-lane-gl--planned { margin-top: 4px; }

/* The team's judgement on a planned event (popover and list): status words in ink, the rest
   muted, tabular figures, never a good/bad colour. */
.pl-lane__jd {
  display: block; margin-top: 2px; color: var(--ink-muted);
  font-size: var(--type-label-size); line-height: var(--type-label-line); font-variant-numeric: tabular-nums;
}
.pl-lane__jd b { color: var(--ink); font-weight: 500; }

/* A popover holding both "Open in Events" and "Planned events below": "Esc to close" wraps
   under the links when they do not fit on one line. */
.pl-lane__pf { flex-wrap: wrap; row-gap: 4px; }

/* A range or a run's dates on one line in the popover and the list (design owner on PR 968):
   the line wraps before "(Low – High ...)" or "Runs Dec 21–27, 2026", never inside it. */
.pl-lane__nw { white-space: nowrap; }

/* Forecast: the Discounts driver split inside its box (mock-up 2026-11-17_forecast-events v1,
   section 4, option B; Fredrik 2026-11-17). Two tones of the studio's own data in one share bar,
   you for planned promotions and seq-4 for your usual discounts, a 2 px gap between them; each
   line carries its own swatch, figure and words, so colour is never the only cue. Tokens only. */
.pl-fcx-splitbar { display: flex; }
.pl-fcx-splitbar i + i { margin-left: 2px; }
.pl-fcx-splitbar i.pl-fcx-split--plan, .pl-fcx-split li > i.pl-fcx-split--plan { background-color: var(--you); }
.pl-fcx-splitbar i.pl-fcx-split--usual, .pl-fcx-split li > i.pl-fcx-split--usual { background-color: var(--seq-4); }
.pl-fcx-split { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-fcx-split b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Swatch | text, so a wrapped line hangs under its text, not under the swatch (review of PR 1010, D1). */
.pl-fcx-split li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 6px; align-items: start; }
.pl-fcx-split li > i { display: block; width: 8px; height: 8px; border-radius: 2px; margin-top: 4px; }

/* Forecast: Events in the forecast, one Effect column (mock-up 2026-11-17_forecast-events v1,
   section 1; Fredrik 2026-11-17). Kind and Applies to under the name; Why about 200 px at 1280
   and on its own line under the event below about 1100 px; Edit and Remove as quiet small buttons,
   28 px tall; Remove asks in its row. Below 768 px the rows read as a list. Tokens only. */
.pl-fc-ev__lead { margin: 0 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-fc-ev__addbox { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-raised); }
.pl-fc-ev__addbox .pl-fc-ev__form { margin: 0; }

.pl-fc-ev__table { font-variant-numeric: tabular-nums; }
.pl-fc-ev__table th, .pl-fc-ev__table td { padding: 10px var(--space-2); }
.pl-fc-ev__table th:first-child, .pl-fc-ev__table td:first-child { padding-left: 0; }
.pl-fc-ev__table th:last-child, .pl-fc-ev__table td:last-child { padding-right: 0; }
.pl-fc-ev__table th { vertical-align: bottom; padding-top: 0; background: none; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; border-bottom-color: var(--card-edge); }
.pl-fc-ev__table td[colspan] { padding-left: 0; padding-right: 0; }
.pl-fc-ev__confrow > td[colspan], .pl-fc-ev__editrow > td[colspan] { padding: var(--space-3); }
.pl-fc-ev__hsub { display: block; font-weight: 400; }
/* When, Status, Effect and the buttons keep to their content; the event's name takes the rest. */
.pl-fc-ev__table thead th:nth-child(2), .pl-fc-ev__table thead th:nth-child(3), .pl-fc-ev__table thead th:nth-child(4), .pl-fc-ev__table thead th:nth-child(6) { width: 1%; white-space: nowrap; }
.pl-fc-ev__nm { display: block; font-weight: 600; color: var(--ink); }
.pl-fc-ev__k { display: block; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-fc-ev__fx { display: block; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-fc-ev__rg { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-fc-ev__nw { white-space: nowrap; }
.pl-fc-ev__msg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-fc-ev__pill--in { border-color: var(--you); color: var(--violet-ink); }
.pl-fc-ev__table .pl-fc-ev__why { font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink-muted); max-width: none; }
.pl-fc-ev__table .pl-fc-ev__why--cell, .pl-fc-ev__whycol { width: 22%; }
/* Why keeps room for a few words a line, and a range in When breaks after its dash at every
   width (its pieces never break inside), so a long range no longer squeezes Why to five lines or
   pushes the table past its card (follow-up of PR 971, Forecast at 1280). */
.pl-fc-ev__table .pl-fc-ev__why--cell { min-width: 8em; }
.pl-fc-ev__table td.pl-fc-ev__when { white-space: normal; min-width: 11ch; }

/* Edit and Remove: quiet small buttons with 8 px each side, so Edit is about 41 x 28 px (WCAG 2.5.8). */
.pl-fc-ev__acts { display: flex; flex-wrap: nowrap; gap: var(--space-1); justify-content: flex-end; }
.pl-fc-ev__acts .pl-btn--quiet, .pl-fc-ev__btns .pl-btn { min-height: 28px; padding: 3px var(--space-2); line-height: 20px; }
.pl-fc-ev__acts .pl-btn--quiet:hover, .pl-fc-ev__btns .pl-btn--quiet:hover { background: var(--surface-raised); text-decoration: underline; text-underline-offset: 3px; }
.pl-fc-ev .pl-btn--danger { color: var(--critical-ink); }

/* The Why line under its event: shown below about 1100 px, the cell above it. */
.pl-fc-ev__note { display: none; }
@media (max-width: 1099.98px) {
  .pl-fc-ev__table .pl-fc-ev__why--cell, .pl-fc-ev__whycol { display: none; }
  .pl-fc-ev__note { display: table-row; }
  .pl-fc-ev__row > td { border-bottom: 0; }
  .pl-fc-ev__note > td { padding-top: 0; }
  /* As drawn at 1024: Edit sits over Remove (a range breaks after its dash at every width). */
  .pl-fc-ev__acts { flex-wrap: wrap; }
}

/* Remove asks in its row (the Invites and Remove video pattern). */
.pl-fc-ev__confrow > td { background: var(--surface-raised); }
.pl-fc-ev__confirm { padding: var(--space-1) 0; }
.pl-fc-ev__q { margin: 0; font-weight: 600; color: var(--ink); }
.pl-fc-ev__q:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.pl-fc-ev__t { margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-fc-ev__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; margin: var(--space-2) 0 0; }
.pl-fc-ev__btns .pl-btn--secondary.pl-btn--danger { padding-inline: var(--space-3); }

.pl-fc-ev__key { display: none; margin: var(--space-1) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* Phone: the same rows as a list. Name and the two buttons on the first line, then When, Status
   and Effect as label and value, then Why. One set of rows, so a form or a question is drawn once. */
@media (max-width: 767.98px) {
  .pl-fc-ev .pl-table-wrap { overflow: visible; }
  .pl-fc-ev__table, .pl-fc-ev__table tbody { display: block; }
  .pl-fc-ev__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pl-fc-ev__table tr { display: block; }
  .pl-fc-ev__table tr.pl-fc-ev__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
  .pl-fc-ev__table tr.pl-fc-ev__row:first-child { border-top: 0; padding-top: 0; }
  .pl-fc-ev__table td { display: block; padding: 0; border: 0; background: none; }
  .pl-table.pl-fc-ev__table tr > :first-child { position: static; min-width: 0; max-width: none; box-shadow: none; background: none; }
  .pl-fc-ev__row > .pl-fc-ev__event { grid-column: 1; grid-row: 1; }
  .pl-fc-ev__row > .pl-fc-ev__act { grid-column: 2; grid-row: 1; }
  .pl-fc-ev__row > td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--space-3); text-align: right; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
  .pl-fc-ev__row > td[data-label="When"] { margin-top: var(--space-2); white-space: normal; }
  .pl-fc-ev__row > td[data-label]::before { content: attr(data-label); color: var(--ink-muted); text-align: left; }
  .pl-fc-ev__row > .pl-fc-ev__effect .pl-fc-ev__fx,.pl-fc-ev__row > .pl-fc-ev__effect .pl-fc-ev__rg { display: inline; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
  .pl-fc-ev__row > .pl-fc-ev__effect .pl-fc-ev__fx + .pl-fc-ev__rg::before { content: " ("; }
  .pl-fc-ev__row > .pl-fc-ev__effect .pl-fc-ev__fx + .pl-fc-ev__rg::after { content: ")"; }
  .pl-fc-ev__note { display: block; padding: var(--space-2) 0 var(--space-3); }
  .pl-fc-ev__note > td { padding: 0; }
  .pl-fc-ev__confrow > td, .pl-fc-ev__editrow > td { padding: var(--space-3); border-radius: var(--radius-md); margin-bottom: var(--space-3); }
  .pl-fc-ev__editbox { position: static; width: auto; }
  .pl-fc-ev__btns { justify-content: stretch; }
  .pl-fc-ev__btns .pl-btn { flex: 1 1 auto; justify-content: center; }
  .pl-fc-ev__key { display: block; }
}

/* Home, Creator videos over 50k views (Fredrik 2026-11-15; mock-up home-creator-videos v1,
   with Creator content's own video row). The rows are Creator content's video cell, table
   and phone rows (creator-content.css); this file only fits them into a This week card:
   Published and Views only, the source line on the right of the head, the staff line and the
   foot. Tokens only. */

/* The head: the YouTube source line on the right (under the heading on a phone). */
.pl-home-cv__src { margin-left: auto; white-space: nowrap; }

/* Desktop: the table, its two figure columns as narrow as their figures. */
.pl-home-cv__phone { display: none; }
.pl-home-cv__table td:first-child { width: auto; }
.pl-home-cv__table th:not(:first-child), .pl-home-cv__table td:not(:first-child) { width: 1%; white-space: nowrap; }
.pl-home-cv__table td.n { font-variant-numeric: tabular-nums; }
.pl-home-cv__table tbody tr:last-child td { border-bottom: 0; }

/* The empty state's "Most viewed" sits one small step under its sentence. */
.pl-home-cv .pl-home-up__sub + [data-sw-more-scope] { margin-top: var(--space-2); }

/* Rekoup staff only: the not-set line, and the nudge for videos waiting for review. */
.pl-home-cv__staff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--card-edge); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-home-cv__staff--alone { margin-top: var(--space-4); padding-top: 0; border-top: 0; }
.pl-home-cv .pl-home-cv__lnk { margin-top: 0; }

/* The foot: Creator content on the left, YouTube's terms on the right. */
.pl-home-cv__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px var(--space-4); margin: var(--space-3) 0 0; }
.pl-home-cv__terms { color: var(--ink-muted); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.pl-home-cv__terms a { display: inline-block; padding: 4px 0; color: var(--ink-muted); }

/* A row past the first five (desktop) or three (phone) waits for Show N more: the phone
   row's own display: grid must not show it. */
.pl-home-cv [data-sw-more][hidden] { display: none; }

/* Phones: Creator content's phone rows, three, then Show N more. */
@media (max-width: 767px) {
  .pl-home-cv__desk { display: none; }
  .pl-home-cv__phone { display: block; }
  .pl-home-cv__src { margin-left: 0; flex-basis: 100%; }
  .pl-home-cv__staff .pl-stafftag { order: 0; } /* the header's phone order (menus.css) moves it last */
  .pl-home-cv__plist .pl-cc__pi:first-child { padding-top: 0; }
  .pl-home-cv__plist .pl-cc__pi:last-child { border-bottom: 0; }
}

/* Home: the money switch, Net revenue or Net earnings (decision 2026-11-16-home-net-earnings; mock-up home-net-earnings-toggle v1, frames A1, B, C1 and C2). The switch is the context bar's Compare segments (.pl-ctx__seg, .pl-ctx__segitem, context-bar.css), here as buttons that post the choice; no new component and no new token. Since Fredrik 2026-11-17: no row heading and no basis line; one (i) explaining both, then the switch, right-aligned above the Latest complete day card in both states (the switch also says in print which view it is). C2: below a 560 px row (phones) the (i) and a full-width switch, 40 px tall. C1: "At least" on its own small line above a figure, and a note under the cards. Your games: Steam's share under each name. Tokens only. */

.pl-kpi4 > .pl-nre-head { flex-wrap: nowrap; justify-content: flex-end; gap: var(--space-2); } /* no row heading (Fredrik 2026-11-17): the (i), then the switch, right-aligned over Latest complete day */
.pl-nre-head > .pl-info .pl-info__tip { left: auto; right: -6px; } /* opens toward the page, as events-size.css */
.pl-nre-switch { display: flex; margin: 0; }
.pl-nre-switch .pl-ctx__segitem { font-family: inherit; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); cursor: pointer; } /* font-family, not the font shorthand: the shorthand would reset the selected side's weight 600 from the shared rule in context-bar.css */
.pl-nre-basis { flex-basis: 100%; max-width: 72ch; margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-nre-chart { margin-top: var(--space-2); }

.pl-kpi4 .pl-sh-fig .pl-nre-atl, .pl-home-plat__value .pl-nre-atl { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.pl-nre-note { margin: var(--space-3) 0 0; padding: 10px 14px; border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }

.pl-yg .pl-nre-atl, .pl-cr .pl-nre-atl { font-size: var(--type-body-sm-size); font-weight: 500; color: var(--ink-muted); }
.pl-nre-gn { display: inline-flex; flex-direction: column; align-items: flex-start; }
.pl-nre-gnote { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
a.pl-yg__game:hover .pl-nre-gnote { text-decoration: none; }
.pl-yg__who > .pl-nre-gnote { flex-basis: 100%; } /* rows: an add-on's line stays under its name, as in the table */

@container pl-kpirow (width < 560px) {
  .pl-nre-switch { flex: 1 1 auto; min-width: 0; }
  .pl-nre-switch .pl-ctx__seg { width: 100%; }
  .pl-nre-head > .pl-info .pl-info__tip { left: -6px; right: auto; } /* phones: the (i) sits at the left edge */
  .pl-nre-head > .pl-info { margin-left: 0; } /* phones: flush with the cards' left edge (design owner, 2026-11-17) */
  .pl-nre-switch .pl-ctx__segitem { flex: 1 1 0; justify-content: center; min-height: 40px; }
}

@media print { .pl-nre-switch .pl-ctx__segitem[aria-pressed="false"] { display: none; } } /* print: only the chosen side, so the page says which view it is */

/* --- Invites, the waitlist and the onboarding call (mock-up invite-codes-waitlist v6) -----------
   Existing tokens and the sign-in sizes only. Public pages: the entry choices under the login
   card, Use your invite, Book your onboarding call, Join the waitlist, the privacy notice. Staff
   page "Invites" reuses the People layout (people.css). */

/* The entry choices under the login card: one line, then two equal secondary buttons, side by
   side from 460 px of frame width, stacked below it. Outside the card, 42 px like sign-in. */
.pl-auth__entry { width: 100%; max-width: 400px; display: grid; gap: var(--space-3); }
.pl-auth__entry-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 459.98px) { .pl-auth__entry-btns { grid-template-columns: minmax(0, 1fr); } }
.pl-auth__entry .pl-btn, .pl-auth > .pl-invite__back {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 42px; padding: 10px var(--space-4); border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: var(--type-body-size); line-height: 20px; font-weight: 600;
  text-align: center; text-decoration: none; border: 1px solid transparent;
}
.pl-auth__entry .pl-btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.pl-auth__entry .pl-btn--secondary:hover { background: var(--surface-raised); border-color: var(--ink-muted); }
.pl-auth__entry .pl-btn:focus-visible, .pl-auth > .pl-invite__back:focus-visible { box-shadow: var(--shadow-focus); }

/* "Back to log in" under the card: the quiet text button, as wide as its words. */
.pl-auth > .pl-invite__back { width: auto; padding-inline: var(--space-3); background: transparent; color: var(--link); font-weight: 500; }
.pl-auth > .pl-invite__back:hover { background: var(--surface-raised); text-decoration: underline; text-underline-offset: 3px; }

/* The privacy line under both public forms. */
.pl-auth__card .pl-invite__privacy { font-size: var(--type-label-size); line-height: 18px; color: var(--ink-muted); }
.pl-invite-nw { white-space: nowrap; }
.pl-invite-tnum { font-variant-numeric: tabular-nums; }

/* The invite code as typed: monospace, never wraps. */
.pl-auth__card input.pl-invite__code-in { font-family: var(--font-mono); letter-spacing: .06em; }

/* Single-choice questions as filter chips (.pl-fchip, peerlight-view.css). The sign-in card's own
   label rule must not reach the chip, or the pill loses its padding (sheet entry, builder note). */
.pl-invite__q { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--space-2); }
.pl-invite__q legend { padding: 0; margin-bottom: var(--space-2); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-invite__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pl-auth__card label.pl-fchip { display: inline-flex; margin-bottom: 0; color: var(--ink); font-size: var(--type-body-sm-size); }
.pl-auth__card label.pl-fchip:has(.pl-fchip__in:checked:not(:disabled)) { color: var(--violet-strong); }
@media (max-width: 767.98px) { .pl-auth__card label.pl-fchip { min-height: 40px; padding: 0 16px; } }

/* Book your onboarding call: the steps (no numbers: the order is the list's), and what was sent. */
.pl-invite__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pl-invite__steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-invite__steps li b { color: var(--ink); font-weight: 500; }
.pl-invite__steps li.is-done b { font-weight: 600; }
.pl-invite__steps svg.pl-icon { width: 16px; height: 16px; margin-top: 2px; }
.pl-invite__steps li.is-done svg.pl-icon { color: var(--good-ink); stroke: var(--good-ink); }
.pl-invite__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--space-3); margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-invite__who dt { color: var(--ink-muted); }
.pl-invite__who dd { margin: 0; overflow-wrap: anywhere; }
.pl-auth__card .pl-btn svg.pl-icon { width: 16px; height: 16px; flex: none; }
.pl-auth__card .pl-invite__note { margin-top: calc(-1 * var(--space-2)); text-align: center; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); overflow-wrap: anywhere; }
.pl-auth__card .pl-invite__since { margin-top: 0; }

/* The privacy notice: a reading card, wider than a form. */
.pl-auth__card:has(.pl-invite__read) { max-width: 560px; }
.pl-invite__read { display: grid; gap: var(--space-3); }
.pl-invite__read section { display: grid; gap: 6px; }
.pl-auth__card .pl-invite__read h2 { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 600; }
.pl-auth__card .pl-invite__read p { font-size: var(--type-body-size); line-height: var(--type-body-line); max-width: 68ch; }
.pl-auth__card .pl-invite__read .pl-auth__sub { margin-top: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* Staff "Invites": the studio picker above the list; codes in mono, never wrapped. */
.pl-invites__pick { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); }
.pl-invites__pick .pl-people__fld { width: 260px; max-width: 100%; }
.pl-invites__pick select { display: block; width: 100%; min-height: 36px; }
.pl-invites__pick .pl-btn { width: auto; }
.pl-invites .pl-heading .pl-invite-tnum { font-weight: inherit; }
.pl-invites__code { font-family: var(--font-mono); font-size: var(--type-body-sm-size); white-space: nowrap; }
.pl-invites__addr { overflow-wrap: anywhere; min-width: 0; }
.pl-invites .pl-people__chip.pl-invites__chip--on { color: var(--ink); border-color: var(--border-strong); }
.pl-invites__who { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* Settings → Invites (studio side, screen 6). */
.pl-invites__left { margin: 0 0 var(--space-4); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.pl-invites__left small { font-size: var(--type-body-size); font-weight: 400; letter-spacing: 0; color: var(--ink-muted); }
.pl-invites__rules { margin: var(--space-4) 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-invites__done { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0 0 var(--space-4); padding: 10px 12px; border-radius: var(--radius-md); background: var(--status-soft); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-invites__done svg.pl-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--good-ink); stroke: var(--good-ink); flex: none; }
.pl-invites__h2 { margin-top: var(--space-6) !important; }
/* Phones: the form first (mock-up, screen 6), then the list. */
@media (max-width: 767.98px) {
  .pl-invites--studio { display: flex; flex-direction: column; }
  .pl-invites--studio .pl-people__inv { order: -1; margin-top: 0; }
  .pl-invites--studio .pl-people__who { margin-top: var(--space-6); }
}
/* Settings: six cards, three across (two below 1024 px, one below 560 px), so none sits alone. */
.pl-settings-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .pl-settings-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .pl-settings-cards { grid-template-columns: minmax(0, 1fr); } }
/* Staff "How many": the shared field template's help, muted like every help line. */
.pl-invites .helptext { margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }

/* The event lane popover for a creator video event (Fredrik 2026-11-17): the video's title at
   most two lines then an ellipsis, its channel and latest views, and "Watch on YouTube" in place
   of "Compare A/B" with a small arrow for a new tab. Tokens only. */
.pl-lane__vt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 2px; color: var(--ink); overflow-wrap: anywhere; }
.pl-lane__vm { font-variant-numeric: tabular-nums; }
.pl-lane__yt { gap: 2px; }
.pl-lane__ext { font-size: var(--type-label-size); line-height: 1; }

/* Privacy policy, Terms of use and agreeing to them (Fredrik 2026-11-11, mock-up
   privacy-terms-acceptance v2). Tokens only; the reading step (16/26) is --type-reading-*.

   1. The legal links under every sign-in card, and in the app's page foot.
   2. The agree box (invitation page, /agree/), its error, the changed line, Log out.
   3. The public document pages: the sign-in family widened for reading.
   4. The staff page "Terms and privacy". */

/* --- 1. Links: muted, underlined, 24 px tall targets --------------------------------------- */
.pl-auth__legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-1);
  margin-top: calc(-1 * var(--space-2));
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted);
}
.pl-auth__legal a, .pl-legal__links a, .pl-doc__foot a {
  display: inline-flex; align-items: center; min-height: 24px; line-height: 24px; padding: 0 var(--space-1);
  color: var(--ink-muted);
}
.pl-auth__legal a:hover, .pl-legal__links a:hover, .pl-doc__foot a:hover { color: var(--ink); }
.pl-legal__links {
  display: flex; flex-wrap: wrap; gap: 0 var(--space-1); margin: 0 0 var(--space-1) calc(-1 * var(--space-1));
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}

/* --- 2. The agree box: a native checkbox in a label whose whole row toggles it ---------------- */
.pl-agree { display: grid; gap: 0; }
.pl-agree__row {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start;
  min-height: 24px; padding: 3px 0; margin: 0;
  font-size: var(--type-body-size); line-height: var(--type-body-line); color: var(--ink); cursor: pointer;
}
/* The sign-in card styles every label as a muted block above its field; the box's label is a row. */
.pl-auth__card .pl-agree__row {
  display: grid; color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); margin-bottom: 0;
}
.pl-agree__row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); cursor: pointer; }
.pl-agree__row a { text-underline-offset: 2px; white-space: nowrap; }
.pl-agree__row a .pl-icon { width: 12px; height: 12px; margin-left: 2px; vertical-align: -1px; }
.pl-agree.is-error input { outline: 2px solid var(--critical); outline-offset: 2px; }
.pl-agree.is-error input:focus-visible { outline-color: var(--focus); box-shadow: 0 0 0 5px var(--critical); }
.pl-agree .errorlist { margin-left: 28px; }
.pl-agree:not(.is-error) .errorlist { display: none; }
.pl-auth__card--agree { max-width: 440px; }
.pl-changed {
  display: grid; gap: 2px; padding: 10px var(--space-3);
  border-left: 2px solid var(--border-strong); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: var(--status-soft);
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-auth__card .pl-changed b { font-weight: 600; }
.pl-auth__out { display: grid; gap: 2px; justify-items: center; margin-top: calc(-1 * var(--space-1)); }
.pl-auth__out form { margin: 0; }
.pl-auth__card .pl-auth__out p {
  font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); text-align: center;
}
.pl-nw { white-space: nowrap; }

/* --- 3. Document pages ------------------------------------------------------------------- */
.pl-doc { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pl-doc__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 14px var(--space-5); border-bottom: 1px solid var(--hairline);
}
.pl-doc__bar .pl-lockup .pl-lockup__text { display: grid; }
.pl-doc__bar .pl-lockup .pl-lockup__phone { display: none; }
.pl-doc__bar .pl-btn { width: auto; min-height: 36px; padding: 0 14px; }
.pl-doc__wrap {
  flex: 1; display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center;
  gap: 48px; padding: var(--space-6) var(--space-5) var(--space-5); align-items: start;
}
.pl-doc__toc--side { position: sticky; top: var(--space-5); max-height: calc(100vh - 48px); overflow: auto; }
.pl-doc__toch {
  margin: 0 0 var(--space-2); font-size: var(--type-label-size); line-height: var(--type-label-line);
  font-weight: 600; color: var(--ink-muted);
}
.pl-doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pl-doc__toc a {
  display: flex; align-items: center; min-height: 28px; padding: 3px 0; color: var(--ink-muted);
  text-decoration: none; font-size: var(--type-body-sm-size); line-height: 18px;
}
.pl-doc__toc a:hover { color: var(--ink); text-decoration: underline; }
.pl-doc__toc--top { display: none; }
.pl-doc__card { padding: var(--space-6) 48px 48px; margin: 0; }
.pl-doc__card > h1 {
  margin: 0; font-size: var(--type-page-title-size); line-height: var(--type-page-title-line);
  font-weight: var(--type-page-title-weight); letter-spacing: var(--type-page-title-tracking);
}
.pl-doc__date {
  margin: var(--space-2) 0 var(--space-5); font-size: var(--type-body-sm-size);
  line-height: var(--type-body-sm-line); color: var(--ink-muted);
}
.pl-doc__date strong { font-weight: 500; }
.pl-doc__text { font-size: var(--type-reading-size); line-height: var(--type-reading-line); max-width: 66ch; }
.pl-doc__text p { margin: 0 0 14px; }
.pl-doc__text h2 {
  margin: 36px 0 var(--space-3); font-size: var(--type-metric-heading-size);
  line-height: var(--type-metric-heading-line); font-weight: 600;
  letter-spacing: var(--type-metric-heading-tracking); scroll-margin-top: var(--space-4);
}
.pl-doc__text h3 {
  margin: var(--space-5) 0 var(--space-2); font-size: var(--type-heading-size);
  line-height: var(--type-heading-line); font-weight: 600; scroll-margin-top: var(--space-4);
}
.pl-doc__text ul { margin: 0 0 14px; padding-left: 22px; }
.pl-doc__text li { margin: 0 0 6px; }
.pl-doc__text li::marker { color: var(--ink-muted); }
.pl-doc__text strong { font-weight: 600; }
.pl-doc__text a { overflow-wrap: anywhere; text-underline-offset: 2px; }
.pl-doc__text code { font-family: var(--font-mono); font-size: var(--type-body-sm-size); overflow-wrap: anywhere; }
.pl-doc__text section:first-of-type h2 { margin-top: 28px; }
/* An open question for Fredrik ([TO CONFIRM]): a dashed box, never missed. A test keeps the page
   from going live while one is left. */
.pl-doc__tbc {
  padding: 0 var(--space-1); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background-color: var(--surface-raised); color: var(--ink);
}
.pl-doc__table { margin: var(--space-1) 0 18px; overflow-x: auto; }
.pl-doc__t { border-collapse: collapse; width: 100%; font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-doc__t th, .pl-doc__t td {
  text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-top: 1px solid var(--hairline);
}
.pl-doc__t thead th {
  border-top: 0; padding-top: 0; font-size: var(--type-label-size); line-height: var(--type-label-line);
  font-weight: 600; color: var(--ink-muted);
}
.pl-doc__t tbody th { font-weight: 500; }
.pl-doc__back { display: inline-flex; align-items: center; min-height: 24px; margin-top: var(--space-5); font-size: var(--type-body-sm-size); }
.pl-doc__related {
  margin: 28px 0 0; padding-top: var(--space-4); border-top: 1px solid var(--hairline);
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted);
}
.pl-doc__foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-1);
  padding: var(--space-4) var(--space-5) 32px;
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted);
}
.pl-doc__foot nav { display: contents; }
.pl-doc__foot a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 500; }
.pl-doc__foot span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-1); }

@media (max-width: 1023.98px) {
  .pl-doc__wrap { grid-template-columns: minmax(0, 720px); gap: var(--space-4); }
  .pl-doc__toc--side { display: none; }
  .pl-doc__toc--top {
    display: block; margin-bottom: var(--space-4); background-color: var(--surface);
    border: 1px solid var(--card-edge); border-radius: var(--radius-lg);
  }
  .pl-doc__toc--top summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
    min-height: 44px; padding: var(--space-2) var(--space-4); cursor: pointer; font-weight: 600; list-style: none;
  }
  .pl-doc__toc--top summary::-webkit-details-marker { display: none; }
  .pl-doc__toc--top summary::after {
    content: ""; width: 8px; height: 8px; flex: none;
    border-right: 1.6px solid var(--ink-muted); border-bottom: 1.6px solid var(--ink-muted);
    transform: rotate(45deg) translateY(-3px);
  }
  .pl-doc__toc--top[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .pl-doc__toc--top summary span { margin-left: auto; font-weight: 400; color: var(--ink-muted); font-size: var(--type-body-sm-size); }
  .pl-doc__toc--top nav { padding: 0 var(--space-4) 10px; border-top: 1px solid var(--hairline); }
  .pl-doc__toc--top a { min-height: 36px; }
}
@media (max-width: 767.98px) {
  .pl-doc__bar { padding: 10px var(--space-4); }
  .pl-doc__bar .pl-lockup .pl-lockup__text { display: none; }
  .pl-doc__bar .pl-lockup .pl-lockup__phone { display: inline; }
  .pl-doc__wrap { padding: var(--space-4) var(--space-4) var(--space-2); }
  .pl-doc__card { padding: var(--space-5) 20px 28px; }
  .pl-doc__card > h1 { font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); }
  .pl-doc__text h2 { font-size: var(--type-heading-size); line-height: var(--type-heading-line); margin-top: 32px; }
  /* Tables: one block per row, each value under its column name. */
  .pl-doc__t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-doc__t, .pl-doc__t tbody, .pl-doc__t tr, .pl-doc__t th, .pl-doc__t td { display: block; width: 100%; }
  .pl-doc__t tr { padding: 10px 0; border-top: 1px solid var(--hairline); }
  .pl-doc__t tr:first-child { border-top: 0; padding-top: 0; }
  .pl-doc__t th, .pl-doc__t td { border: 0; padding: 2px 0; }
  .pl-doc__t tbody th { font-weight: 600; }
  .pl-doc__t td::before {
    content: attr(data-label); display: block; margin-top: 6px;
    font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted);
  }
  .pl-doc__t--2 td::before { display: none; }
}

/* --- 4. Staff page: Terms and privacy ------------------------------------------------------- */
.pl-tp { display: grid; gap: var(--space-5); }
.pl-tp .pl-heading { margin: 0; }
.pl-tp__sub { margin: 2px 0 var(--space-3); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-tp__card { padding: var(--space-1) var(--space-5); }
.pl-tp__rows { list-style: none; margin: 0; padding: 0; }
.pl-tp__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-5); align-items: center;
  padding: 14px 0; border-top: 1px solid var(--hairline);
}
.pl-tp__row:first-child { border-top: 0; }
.pl-tp__l1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: 500; }
.pl-tp__l2 { margin-top: 2px; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); overflow-wrap: anywhere; }
.pl-tp__chip {
  display: inline-flex; padding: 2px 9px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill);
  color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; white-space: nowrap;
}
.pl-tp__st { justify-self: end; text-align: right; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-tp__st b { display: block; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-tp__st span { display: block; color: var(--ink-muted); }
.pl-tp__st .pl-tp__state { color: var(--ink); }
.pl-tp__state--not::before, .pl-tp__state--none::before { content: "\25CB" / ""; margin-right: 6px; color: var(--ink-muted); }
.pl-tp__state--ok::before { content: "\2713" / ""; margin-right: 6px; color: var(--good-ink); font-weight: 700; }
.pl-tp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.pl-tp__head .pl-btn { width: auto; }
.pl-tp__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; padding: 0; border: 0; }
.pl-tp__chips legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-tp__n { font-variant-numeric: tabular-nums; }
/* The filter works without a script: the checked chip hides the rows it leaves out. */
.pl-tp:has(.pl-fchip__in[value="not"]:checked) .pl-tp__row[data-ok] { display: none; }
.pl-tp:has(.pl-fchip__in[value="staff"]:checked) .pl-tp__people .pl-tp__row:not([data-staff]) { display: none; }
.pl-tp__empty { padding: 14px 0; color: var(--ink-muted); }
.pl-tp:not(:has(.pl-fchip__in[value="not"]:checked)) .pl-tp__empty { display: none; }

@media (max-width: 767.98px) {
  .pl-tp__card { padding: var(--space-1) var(--space-4); }
  .pl-tp__people .pl-tp__row { grid-template-columns: minmax(0, 1fr); }
  .pl-tp__people .pl-tp__st { justify-self: start; text-align: left; margin-top: 6px; }
}

/* Local pricing clean-up v2 (mock-up local-pricing-cleanup-v2, Fredrik 2026-11-09): the US row
   is the reference region, one cell across Signals, Outcome and After, on the table-header
   ground (design owner F6: a reuse of the raised ground, no new token). Tokens only. */
.pl-lp2__t tr.pl-lp2__usr > td { background: var(--surface-raised); }
.pl-lp2__t td.pl-lp2__refc { vertical-align: middle; }
.pl-lp2__refw { display: inline-block; font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; color: var(--ink); }
.pl-lp2__refc .pl-lp2__refs { display: inline; margin-left: var(--space-2); }

/* Local pricing, the collapsed row below 1280 (mock-up 2026-11-17 local pricing collapsed row v1,
   Fredrik 2026-11-17; design owner on PR 1004; measured at 1024: Region 25% keeps "KRW · Not localized" whole (24% splits it), Conversion and Price response 16.5% keep "Points to a rise" on one line, Outcome 29% keeps "R$38.07 → R$28.99 −24%" on one line). Outcome takes 29% of the table; the outcome pill never
   wraps; the price change is one line and its step wraps as a whole, in muted ink, with no
   leading dot. 1280 and up stays as drawn in v7 (the dot shows, the step follows inline). */
.pl-lp2__prop .pl-lp2__ft { white-space: nowrap; }
@media (max-width: 1279.98px) {
  .pl-lp2__c-region { width: 25%; } .pl-lp2__c-price { width: 13%; } .pl-lp2__c-conv, .pl-lp2__c-resp { width: 16.5%; } .pl-lp2__c-out { width: 29%; }
  .pl-lp2__t .pl-lp2__oc { white-space: nowrap; }
  .pl-lp2__t .pl-lp2__prop { display: flex; flex-wrap: wrap; column-gap: var(--space-2); margin-top: var(--space-1); }
  .pl-lp2__t .pl-lp2__prop .pl-lp2__step { display: inline; white-space: nowrap; color: var(--ink-muted); }
  .pl-lp2__t .pl-lp2__sdot { display: none; }
  .pl-lp2__lc .pl-lp2__v { font-weight: 500; }
}
/* The foot key for the folded column, said only where the column is folded. */
.pl-lp2__foot .pl-lp2__lckey { display: none; }
@media (max-width: 1279.98px) {
  .pl-lp2__foot .pl-lp2__lckey { display: inline-flex; }
  .pl-lp2__foot .pl-lp2__dashkey { display: none; }
}
/* A one-country region's language state ("[mark] Not localized") never splits (design owner, PR 1004). */
.pl-lp2__lw { white-space: nowrap; }

/* Local pricing: the open row as one compact table with three text starts (labels, Here,
   Compared with country), the folded figures beside the reading they feed, the Language row
   with its countries behind a button, the calendar line and the answer line (mock-up local
   pricing row v7, Fredrik 2026-11-12). Tokens only. */
.lpo { display: grid; gap: var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.lpo-t { border-collapse: collapse; width: auto; justify-self: start; font-variant-numeric: tabular-nums; }
.lpo .lpo-t th, .lpo .lpo-t td { padding: 3px var(--space-4) 3px 0; vertical-align: baseline; text-align: left; border-bottom: 0; background: none; overflow-wrap: normal; }
.lpo .lpo-t th[scope="row"] { font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.lpo .lpo-t td:last-child, .lpo .lpo-t th:last-child { padding-right: 0; }
.lpo .lpo-hd th { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); padding-top: var(--space-2); padding-bottom: 0; }
.lpo .lpo-sig > tr > td:nth-child(2):not([colspan]) { white-space: nowrap; }
/* A signal with no reading: its word and reason wrap inside Here, so Compared with country keeps its x. */
.lpo .lpo-sig > tr > td.lpo-m:nth-child(2) { white-space: normal; }
.lpo-m { color: var(--ink-muted); }
.lpo-sub { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; white-space: normal; }
.lpo-lang { white-space: nowrap; }
.lpo-flag { margin-left: var(--space-1); }
.lpo-flag .pl-lp2__mk { margin-right: 0; }
.lpo-i { margin-left: var(--space-2); }
.lpo-i .pl-info__tip[hidden] { display: none; }

/* Desktop: zero-height struts keep the three text starts at one x in every open row. */
.pl-lp2__xd .lpo .lpo-t tr > th:first-child::before { content: ""; display: block; height: 0; width: 6.75rem; }
.pl-lp2__xd .lpo .lpo-sig > tr > :nth-child(2)::before { content: ""; display: block; height: 0; width: 8.75rem; }
/* A set width keeps a long colspan line (the step's reason) from widening Here: the extra goes to the last column. */
.pl-lp2__xd .lpo .lpo-t tr > th:first-child { box-sizing: content-box; width: 6.75rem; }
.pl-lp2__xd .lpo .lpo-sig > tr > :nth-child(2) { box-sizing: content-box; width: 8.75rem; }

/* The Language row's countries, behind "10 countries". */
.lpo-fold { margin-left: var(--space-3); }
.lpo-fold .lpo-fold__b { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; max-width: none; padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.lpo-cl { margin-top: var(--space-1); grid-template-columns: repeat(2, max-content); column-gap: var(--space-5); }
/* The list sets display: grid, which beats the hidden attribute: keep the folded list hidden. */
.lpo-cl[hidden] { display: none; }

/* The calendar line and the answer line. */
.lpo-note { display: flex; gap: var(--space-2); align-items: center; margin: 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.lpo-note .pl-icon { width: 16px; height: 16px; flex: none; }
.lpo-ans { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); border-top: 1px solid var(--card-edge); padding-top: var(--space-3); }
.lpo-ans__q { margin: 0; min-width: 0; flex: 1 1 320px; }
.lpo-ans__q .pl-da__st { font-weight: 600; }
.lpo-ans__act { display: flex; gap: var(--space-2); align-items: center; }

/* Phones: one column, the visits and the units sold on their own line, targets 44 px. */
.pl-lp2__pd .lpo-x { display: block; }
.pl-lp2__pd .lpo-dot { display: none; }
.pl-lp2__pd .lpo-cl { grid-template-columns: minmax(0, 1fr); }
.pl-lp2__pd .lpo-ans__act { width: 100%; }
.pl-lp2__pd .lpo-ans__act .pl-btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
.pl-lp2__pd .lpo-fold .lpo-fold__b { min-height: 44px; }
.pl-lp2__pd .lpo .lpo-t th, .pl-lp2__pd .lpo .lpo-t td { padding-right: var(--space-2); white-space: nowrap; }
.pl-lp2__pd .lpo .lpo-t td.lpo-langc, .pl-lp2__pd .lpo .lpo-t td[colspan] { white-space: normal; }
.pl-lp2__pd .lpo .lpo-hd th { white-space: normal; }
.pl-lp2__pd .lpo .lpo-sig > tr:has(.lpo-flag) > td:nth-child(3) { white-space: normal; }
/* Phones (design owner's walk after PR 930): the Language line wraps between its pieces, never
   inside one ("Portuguese (Brazil)" / "· localized"), so a long language stays inside the card;
   a signal's word ("Not read", "Too few") never splits. */
.pl-lp2__pd .lpo .lpo-lang { white-space: normal; }
.lpo-lw, .lpo-word { white-space: nowrap; }

/* The YouTube attribution line under the legal links on the login page (YouTube API Services
   audit form, section 5.3; Atlas 2026-11-18). YouTube's logo as Creator content shows it (28 px
   file, about 14 px of logo inside its clear space, no halo), then 12/16 ink-muted text: the
   quietest line on the page. Wraps under the logo on a narrow phone. */
.pl-auth__yt {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--space-1);
  margin: calc(-1 * var(--space-5)) 0 0; max-width: 400px; text-align: center;
  font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted);
}
.pl-auth__yt-logo { display: inline-flex; align-items: center; min-height: 24px; }
.pl-auth__yt-logo img { width: auto; height: 28px; filter: none; }

/* "A game is missing" on Settings > Your games and in the owner guide (design owner, review of PR 1004):
   the drawing's small link line, a quiet link-style toggle with a chevron that opens the form in
   place. No card, no disclosure triangle, no arrow. 24 px target. */
.pl-mg > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; width: max-content; cursor: pointer; color: var(--link); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500; }
.pl-mg > summary::-webkit-details-marker { display: none; }
.pl-mg > summary:hover { text-decoration: underline; }
.pl-mg > summary .pl-icon { width: 16px; height: 16px; transition: transform 0.15s ease; }
.pl-mg[open] > summary .pl-icon { transform: rotate(180deg); }
.pl-mg__f { margin-top: var(--space-3); max-width: 640px; }
@media (prefers-reduced-motion: reduce) { .pl-mg > summary .pl-icon { transition: none; } }

/* PeerLight view's menu icon (Fredrik 2026-11-23; decision 2026-11-19-peerlight-view-v2, Brand):
   the logo's lens in its real gradient, the same two files as the peer marker (lens.svg in Dark,
   lens-on-light.svg in Chalk), in the sidebar and the phone More list. The one named exception
   to one-colour menu icons. Decorative (aria-hidden): the label carries the meaning, so it keeps
   its colours on hover and when selected. No halo: the header logo stays the one lit lens. The
   box is the menu icons' 18 px, so the labels stay in line. */
.pl-nav-lens { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; }
.pl-nav-lens img { width: 18px; height: auto; filter: none; }

/* Open data in the sidebar's studio block (Fredrik 2026-11-23): the same lens, in the 14 px box of
   the block's one-colour icons (menus.css .pl-sblock__sh svg), so the words stay where they were.
   Closed data keeps its lock. Sharing labels elsewhere keep the one-colour lens. */
.pl-sblock__lens { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 14px; height: 14px; }
.pl-sblock__lens img { width: 14px; height: auto; filter: none; }

/* A Next Fest the game took part in (Fredrik 2026-11-18; mock-ups next-fest-took-part v1 and v2,
   variant B): magenta, the colour of type-store-sale. On a chart its band is drawn by peerlight.js
   (wash type-store-sale-soft, dashed edge as a promotion box, a 4 px ribbon along the top). Here: its lane
   mark and glyphs (filled when logged, outlined when found by PeerLight), the Next Fest chip's
   swatch while a fest you took part in is drawn, and the evidence line in the events list. On the
   Promotion Board the same magenta means another store's own sale: two contexts, two meanings. */
.pl-lane-gl.pl-lane-gl--fest { background-color: var(--type-store-sale); }
.pl-lane-gl.pl-lane-gl--fest.pl-lane-gl--steam { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--type-store-sale); }
.pl-lane__dia.pl-lane__dia--fest { fill: var(--type-store-sale); stroke: var(--type-store-sale); }
.pl-lane__dia.pl-lane__dia--fest.pl-lane__dia--steam { fill: var(--surface); }
.pl-lane-gl.pl-lane-gl--festival.pl-lane-gl--took { background-color: var(--type-store-sale-soft); border: 1.5px dashed var(--type-store-sale); box-shadow: inset 0 2px 0 var(--type-store-sale); }
.pl-lane__ev { display: block; color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-dbd-sw.pl-dbd-sw--festival-took { background-color: var(--type-store-sale-soft); border: 1.5px dashed var(--type-store-sale); box-shadow: inset 0 2px 0 var(--type-store-sale); }

/* Onboarding: a button beside a form (an email or app id field with its label above) lines up
   with the field row, not with the label. Tokens only. */
.pl-onb__act:has(.pl-onb__ask) { align-items: flex-end; }

/* --- Onboarding: the Invites and Waitlist groups, and every row's From (invites v6, screen 9) ---
   Existing tokens only; the row is the Onboarding row (onboarding.css). */
.pl-onb__from { overflow-wrap: anywhere; }
.pl-onb__row .pl-onb__from { padding-left: 24px; }
.pl-onb__act { gap: var(--space-2); flex-wrap: wrap; }
.pl-onb__more { margin-top: var(--space-2); }
.pl-onb__more a { display: inline-block; padding: 2px 0; }
/* Remove asks first, inside the row (the People row's confirm). */
.pl-onb__ask-remove { grid-column: 1 / -1; margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--status-soft); display: grid; gap: var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-onb__q { margin: 0; font-weight: 600; }
.pl-onb__t { margin: 0; color: var(--ink-muted); }
.pl-onb__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2) var(--space-3); margin: 0; }
.pl-onb__btns .pl-btn--danger, .pl-onb__act .pl-btn--danger { color: var(--critical-ink); }
.pl-onb-new__from { color: var(--ink-muted); overflow-wrap: anywhere; }

/* --- Onboarding: store traffic not arriving (mock-up data-not-arriving-alerts v2) ----------------
   The cause lines under a row's warning, one per cause, each with its action in words. Tokens only. Indented like
   the row's other lines (.pl-onb__l3) at every width. */
.pl-onb__why {
  margin: 6px 0 0 24px; padding: 0; list-style: none; display: grid; gap: 6px;
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted);
}
.pl-onb__why b { color: var(--ink); font-weight: 600; }
.pl-onb__mono { font-family: var(--font-mono); font-size: var(--type-label-size); }

/* Capacity alert level on the Rekoup operations page: the alarm takes the critical colour, the warning the warning colour, on the icon and the lead words. The text stays in the ink colour. */
.pl-ops-nbl-warning svg, .pl-ops-nbl-warning b { color: var(--warning-ink); }
.pl-ops-nbl-alarm svg, .pl-ops-nbl-alarm b { color: var(--critical-ink); }

/* The studio's own bars on the server-drawn charts (decision 132, Fredrik 2026-11-15; design sheet v3.44 bar-gradient and own-bars; mock-up net-revenue-chart-edgier v2), drawn as peerlight.js draws them since PR 959: Sales overview's Net revenue per month and per year, its Net revenue card, and the small day bars of UTM tracking and Outside sites. Tokens only.
   The gradient's two stops are pl-so-stop-top and pl-so-stop-bottom (sales-overview.css): you at the top, seq-4 at the base. */

/* Grid: dotted card-edge gridlines (1 px, dash 1 3), no zero gridline; the solid border-strong baseline is drawn over the bars. */
.pl-so-grid.pl-so-grid--own, .pl-cc-grid.pl-cc-grid--own { stroke: var(--card-edge); stroke-width: 1; stroke-dasharray: 1 3; }

/* The latest bar's value: ink 12/600, tabular, with a 4 px card-colour halo so a box edge never crosses it. */
.pl-so-vlab { font-size: var(--type-label-size); font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
/* The latest day's date on day bars: ink 600. */
.pl-cc-tick.pl-cc-tick--now { font-weight: 600; fill: var(--ink); }

/* The hover column (stat-switch.js moves it): the card colour, then violet-tint, so it replaces a promotion wash and never stacks on it. */
.pl-so-hovcol { pointer-events: none; }
.pl-so-hovcol__card { fill: var(--surface); }
.pl-so-hovcol__tint { fill: var(--violet-tint); }

/* UTM tracking and Outside sites, the small day bars (one series in you each): the gradient per bar, 74% of its slot with 1 px corners (the slot is the element, the bar is clipped to its middle 74%), a dotted top gridline and a solid border-strong baseline. No value label: the plot is 46 px high and its top tick already names the scale. */
.pl-dbar__area { border-top: 1px solid transparent; border-bottom: 1px solid var(--border-strong); background-image: linear-gradient(90deg, var(--card-edge) 1px, transparent 1px); background-size: 4px 1px; background-repeat: repeat-x; background-position: 0 0; background-origin: border-box; }
.pl-dbar__bars, .pl-dbar__bars--dense { gap: 0; }
.pl-dbar__bars > i { background-color: transparent; background-image: linear-gradient(180deg, var(--you), var(--seq-4)); clip-path: inset(0 13% 0 13% round 1px 1px 0 0); }

/* Owner guide, Choose games reached from Settings > Your games (from=settings): no step list,
   so the step column stands alone, centred like the guide. On phones the guide is a block anyway. */

.pl-og.pl-og--settings { grid-template-columns: minmax(0, 680px); }

/* --- Page header: a larger title with its (i) (Fredrik 2026-11-26) ------------------------------
   Decision 2026-11-26-page-header-title-info, design sheet v3.68 "Page header". The one-line
   subtitle under a page title is gone; its words sit in the (i) after the title (the app's one
   (i), define-info.css and peerlight.js). Status lines under the title (data to, counts, "your
   visit is logged") stay. The title takes the next step of the type scale: the display token
   (44/48, weight 500, Inter display cut) from 768 px, where the capsule stands beside it; on
   phones the page-title token (28/34, was a hard-coded 22/28 in shell.css). Tokens only.
   Only the h1: Home's welcome line uses the class on a word inside its own title and keeps its
   size. */

h1.pl-page-title, .pl-page-head {
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  line-height: var(--type-display-line);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-display-tracking);
}
h1.pl-page-title { overflow-wrap: break-word; }
@media (max-width: 767.98px) {
  h1.pl-page-title, .pl-page-head {
    font-size: var(--type-page-title-size);
    line-height: var(--type-page-title-line);
    font-weight: var(--type-page-title-weight);
    letter-spacing: var(--type-page-title-tracking);
  }
}

/* The title and its (i) on one line: the heading runs inline so the (i) follows its last word,
   8 px after it, centred on that line. The panel keeps body type whatever the title's size. */
.pl-page-head { margin: 0; min-width: 0; }
.pl-page-head > .pl-page-title { display: inline; margin: 0; }
.pl-page-head > .pl-page-info { vertical-align: middle; }
.pl-page-head .pl-info__tip { font-family: var(--font-sans); }

/* Page width (Fredrik 2026-11-26, "kör på 1536, centrerat"; decision
   docs/decisions/2026-11-26-page-width-1536.md, design sheet page-width). On a page with the
   sidebar the page is at most layout-page-max (1536 px including the gutters, so cards are at
   most 1456 px) and stays centred in the space beside the sidebar (shell.css's margin: 0 auto), as
   the 1280 px page was. The Valve line (.pl-legal, platform-marks.css) takes the same token.
   Nothing changes until that space is wider than 1280 px. Pages without the sidebar (sign-in,
   standalone, offline, the owner guide) keep their centred 1280 px (shell.css); pages narrow on
   purpose (Plan and sharing 760, PeerLight view 800, its landing 1040) keep their own widths. */
.pl-shell--side .pl-main { max-width: var(--layout-page-max); }

/* Notices sit above the shell, across the whole window: their row takes the same cap. */
:root:has(.pl-shell--side) .pl-banner__inner { max-width: var(--layout-page-max); }

/* PeerLight view v2, the landing (modules/peer_view; mock-up 2026-11-19_peerlight-view-v2_v5,
   Landing). Tokens only. The title lens and the peer marker are the logo files themselves
   (their real gradient, decorative, a text label always beside them); the title lens takes
   no halo, so the header logo stays the one lit lens. Desktop only: below 768 px the shell
   shows the narrow-screen note instead (pl-mobile-only). */
.pl-pvl { min-width: 0; } /* fills the page (structure after the 1536 px page, 2026-11-27, change 8) */
.pl-pvl__fresh { margin: 0 0 var(--space-4); font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted); }
.pl-pvl__head { display: flex; align-items: center; gap: var(--space-4); margin: 0 0 var(--space-5); }
.pl-pvs .pl-pvl__head { margin-bottom: 32px; } /* a stage page: 32 px to the stage bar (mock-up launch-tab v3/v4) */
.pl-pvl__title { display: flex; align-items: center; gap: 14px; }
.pl-pvl__title .pl-page-title { margin: 0; }
.pl-pvl__lens { flex: none; display: inline-flex; }
.pl-pvl__lens img, .pl-pvl__mk img { filter: none; }
.pl-pvl__game { margin: 0 0 0 auto; flex: none; } /* the Game menu at the title line's far right */

/* filters: one card, two columns (mock-up .filters / .fgrid) */
.pl-pvl__filters.pl-card { padding: 20px 22px; }
.pl-pvl__fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--space-6); margin: 0; }
.pl-pvl__fgrid--panel { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: var(--space-4) 0 20px; } /* in the Change filters panel */
.pl-pvl__fg { min-width: 0; }
.pl-pvl__rrow { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 28px; }
.pl-pvl__rrow + .pl-ctx__seg, .pl-pvl__rrow + .pl-pvl__dial { margin-top: var(--space-2); }
.pl-pvl__lg { display: inline-flex; align-items: center; font-size: var(--type-body-size); line-height: 20px; font-weight: 600; color: var(--ink); }
.pl-pvl__rv { font-size: var(--type-body-size); line-height: 20px; font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* range sliders: a native range per thumb over one track; the fill follows --lo and --hi */
.pl-pvl__dual, .pl-pvl__one { position: relative; height: 32px; margin-top: 2px; }
.pl-pvl__trk { position: absolute; left: 12px; right: 12px; top: 15px; height: 2px; border-radius: 2px; background-color: var(--border-strong); }
.pl-pvl__fill { position: absolute; top: 14px; height: 4px; border-radius: 2px; background-color: var(--you);
  left: calc(12px + (100% - 24px) * (var(--lo) - var(--min)) / (var(--max) - var(--min)));
  width: calc((100% - 24px) * (var(--hi) - var(--lo)) / (var(--max) - var(--min))); }
.pl-pvl__rng { -webkit-appearance: none; appearance: none; position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 24px; margin: 0; background: none; pointer-events: none; }
.pl-pvl__rng::-webkit-slider-runnable-track { background: none; height: 24px; }
.pl-pvl__rng::-moz-range-track { background: none; }
.pl-pvl__rng[data-pvl-top] { z-index: 1; }
.pl-pvl__rng::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background-color: var(--surface); border: 2px solid var(--you); box-shadow: var(--shadow-card); cursor: grab; }
.pl-pvl__rng::-moz-range-thumb { pointer-events: auto; box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; background-color: var(--surface); border: 2px solid var(--you); cursor: grab; }
.pl-pvl__rng:focus-visible { outline: none; }
.pl-pvl__rng:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-pvl__rng:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-pvl__ends { display: flex; justify-content: space-between; padding: 0 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* the performer slider (mock-up .dial): Bottom and Top at the ends, ten ticks, the readout under it */
.pl-pvl__dial { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
.pl-pvl__end { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-pvl__one { margin-top: 0; }
.pl-pvl__ticks { position: absolute; left: 12px; right: 12px; top: 22px; height: 6px; display: flex; justify-content: space-between; }
.pl-pvl__ticks i { width: 1px; height: 6px; background-color: var(--border-strong); }
.pl-pvl__all { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 28px; margin-top: var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); cursor: pointer; }
.pl-pvl__all input { width: 24px; height: 24px; margin: 0; accent-color: var(--you); }
.pl-pvl__pout { margin: 6px 0 0; text-align: center; font-size: var(--type-body-size); line-height: 20px; font-weight: 600; }

/* Choose a stage */
.pl-pvl__sec { margin: 32px 0 40px; }
.pl-pvl__sech { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.pl-pvl__sech h2 { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-pvl__stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.pl-pvl__stage.pl-card { display: flex; flex-direction: column; gap: var(--space-1); padding: 18px 20px 16px; color: var(--ink); text-decoration: none; border-color: var(--card-edge); transition: border-color .15s; }
.pl-pvl__stage.pl-card:hover { border-color: var(--border-strong); }
.pl-pvl__stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-pvl__sname { display: flex; align-items: center; gap: var(--space-2); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: -0.025em; }
.pl-pvl__chev { width: 18px; height: 18px; margin-left: auto; flex: none; fill: none; stroke: var(--ink-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-pvl__count { display: flex; align-items: center; gap: var(--space-2); margin-top: 2px; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-pvl__count.is-zero { font-weight: 500; color: var(--ink-muted); }
.pl-pvl__mk { display: inline-flex; flex: none; }
.pl-pvl__note { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-pvl__def { margin-top: 2px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* no match: one card with the ways to widen (mock-up .state / .widen) */
.pl-pvl__state.pl-card { padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5); }
.pl-pvl__state h3 { margin: 0 0 var(--space-1); font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: 600; }
.pl-pvl__state p { margin: 0; max-width: var(--layout-measure); color: var(--ink-muted); }
.pl-pvl__widen { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 14px 0 0; }

/* the narrow-screen note */
.pl-pvl__narrow .pl-page-title { margin: 0 0 var(--space-4); }

/* while the counts are fetched again */
[data-pvl-live] .pl-pvl__result { transition: opacity .15s; }
[data-pvl-live][aria-busy="true"] .pl-pvl__result { opacity: .6; }

@media (max-width: 1023.98px) { .pl-pvl__stages { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pl-pvl__stage.pl-card, [data-pvl-live] .pl-pvl__result { transition: none; } }

/* PeerLight view, the Launch stage's Markets tab (mock-up 2026-11-21 markets-tab v3; design sheet v3.58
   "Market dot plot"). Tokens only; no new token, size or colour. The card, its head, the (i), the
   segment and the fixed chip come from peer-view-overview.css. */

.pl-pvm-win .pl-pvo-range__ctl { display: flex; align-items: center; }
.pl-pvm-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvm-list .pl-info { margin-left: 0; }

.pl-mdc__line { margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-mdc__line b { color: var(--ink); font-weight: 600; }
.pl-mdc__foot { margin: var(--space-3) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-mdc__few { margin-top: var(--space-3); padding: var(--space-4); border: 1px dashed var(--card-edge); border-radius: var(--radius-md); }  /* the drawn too-few box: a dashed outline, no fill (design review of 1122) */
.pl-mdc__few b { display: block; font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-mdc__few p { margin: var(--space-1) 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* The dot plot: a real table (sheet: Market 208 px, plot, own 104 px, peer 112 px; rows 32 px). */
.pl-mdp { width: 100%; margin-top: var(--space-3); border-collapse: collapse; table-layout: fixed; }
.pl-mdp__cm { width: 208px; }
.pl-mdp__cy { width: 104px; }
.pl-mdp__cp { width: 112px; }
.pl-mdp th, .pl-mdp td { height: 32px; padding: 0; border-top: 1px solid var(--hairline); vertical-align: middle; font-size: var(--type-body-size); line-height: 20px; color: var(--ink); background: none; }
.pl-mdp thead th { height: 24px; padding-bottom: 4px; border-top: 0; vertical-align: bottom; text-align: left; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; color: var(--ink-muted); }
.pl-mdp th.pl-mdp__m { padding-right: var(--space-2); overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.pl-mdp thead th.pl-mdp__m { font-weight: 500; }
.pl-mdp .pl-mdp__y, .pl-mdp .pl-mdp__p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-mdp thead .pl-mdp__y, .pl-mdp thead .pl-mdp__p { white-space: normal; }
.pl-mdp td.pl-mdp__y { font-weight: 600; }
.pl-mdp td.pl-mdp__na { color: var(--ink-muted); font-weight: 400; }
.pl-mdp td.pl-mdp__few { font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-mdp tr.pl-mdp__all th, .pl-mdp tr.pl-mdp__all td { font-weight: 600; }
.pl-mdp tr.pl-mdp__all + tr th, .pl-mdp tr.pl-mdp__all + tr td { border-top-color: var(--card-edge); }
.pl-mdp td.pl-mdp__plot, .pl-mdp th.pl-mdp__plot { padding: 0 10px; }
.pl-mdp__pp { position: relative; height: 24px; }
.pl-mdp__ax { position: relative; height: 16px; }
.pl-mdp__ax span { position: absolute; top: 0; transform: translateX(-50%); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-mdp__ax span.l { transform: none; }
.pl-mdp__ax span.r { transform: translateX(-100%); }
.pl-mdp__gl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--hairline); }
.pl-mdp__gl--z { border-left: 1px solid var(--border-strong); }
.pl-mdp__bd { position: absolute; top: 6px; height: 12px; border-radius: 2px; background-color: var(--peer-band); box-shadow: inset 0 0 0 1px var(--peer-line); }
.pl-mdp__md { position: absolute; top: 3px; width: 2px; height: 18px; margin-left: -1px; background-color: var(--peer-line); }
.pl-mdp__yo { position: absolute; top: 7px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background-color: var(--you); box-shadow: 0 0 0 2px var(--surface); }
.pl-mdp__yo--ring { background-color: var(--surface); box-shadow: inset 0 0 0 2px var(--you), 0 0 0 2px var(--surface); }
.pl-mdp__line { margin: var(--space-2) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* Axis labels by the plot's own width, about 40 px a label (design owner on PR 1081): a label
   carries the smallest plot width it needs (launch_markets.axis_labels). */
.pl-mdp__ax { container-type: inline-size; }
@container (max-width: 559px) { .pl-mdp__n560 { display: none; } }
@container (max-width: 479px) { .pl-mdp__n480 { display: none; } }
@container (max-width: 399px) { .pl-mdp__n400 { display: none; } }
@container (max-width: 319px) { .pl-mdp__n320 { display: none; } }
@container (max-width: 239px) { .pl-mdp__n240 { display: none; } }
@container (max-width: 159px) { .pl-mdp__n160 { display: none; } }

/* Optional row parts (Store traffic's source cards): a muted source after the name (an inline
   block, so a long one moves under the name whole rather than breaking the name), and a mark
   on its own line under the name (v4 .fewmark). */
.pl-mdp__sub { display: inline-block; color: var(--ink-muted); }
.pl-mdp th.pl-mdp__m .pl-mdp__chip { display: table; margin: 2px 0 var(--space-1); padding: 0 6px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: var(--type-label-size); line-height: 18px; font-weight: 400; color: var(--ink); white-space: nowrap; }

/* The key: the shared Overview key, with the dot plot's own marks. Scoped under .pl-pvo-key so
   they win over the shared swatch's height 0 whatever order the parts load in. */
.pl-pvo-key .pl-pvo-key__sw--dot { width: 10px; height: 10px; border-radius: 50%; background-color: var(--you); }
.pl-pvo-key .pl-pvo-key__sw--ring { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--you); }
.pl-pvo-key .pl-pvo-key__sw--tick { width: 2px; height: 14px; background-color: var(--peer-line); }

/* The table alternative: the shared Overview table (.pl-pvo-tw, .pl-pvo-table). */
.pl-mdp-t td.na { color: var(--ink-muted); }
.pl-mdp-t td.gap.good { color: var(--good-ink); }
.pl-mdp-t td.gap.bad { color: var(--critical-ink); }
.pl-mdp-t tr.pl-mdp__all th, .pl-mdp-t tr.pl-mdp__all td { font-weight: 600; }

/* A table's text columns read left (design review of PR 1115): a row header that names the row
   (Store traffic's source tables) and the columns marked left (Source, Note), which wrap */
.pl-mdp-t th.pl-mdp-t__name { text-align: left; font-weight: 400; white-space: normal; min-width: 104px; }
.pl-mdp-t th.pl-mdp-t__left, .pl-mdp-t td.pl-mdp-t__left { text-align: left; }
.pl-mdp-t td.pl-mdp-t__left { white-space: normal; min-width: 64px; }

/* PeerLight view v2: the stage head and the Launch stage's Overview tab (modules/peer_view;
   mock-up 2026-11-20_peerlight-view-launch-tab_v4, approved by Fredrik 2026-11-20; design sheet
   v3.57 tab-range and launch-discount-lines). Tokens only, no new token. Loads after
   peer-view-landing.css (name order), whose sliders, title lens and state card it reuses.
   Desktop only: below 768 px the narrow-screen note shows instead (pl-mobile-only). */

/* --- the head of every PeerLight view page (Fredrik 2026-11-20: "more air"; mock-up v3 After):
   the peer-data line, the title with the Game menu at its far right, All stages on the stage
   bar's line, the filter summary, the tabs. Air between the blocks, not inside them. */
.pl-pvs__line { display: flex; align-items: center; gap: 20px; margin: 0 0 var(--space-5); }
.pl-pvs__back { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 32px; color: var(--link); text-decoration: none; font-size: var(--type-body-size); line-height: 20px; }
.pl-pvs__back:hover { text-decoration: underline; }
.pl-pvs__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-pvs__bar { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--card-edge); border-radius: var(--radius-lg); background-color: var(--surface); }
.pl-pvs__bar a { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 48px; padding: var(--space-1) var(--space-3); border-radius: var(--radius-md); color: var(--ink-muted); text-decoration: none; font-size: var(--type-body-size); line-height: 20px; }
.pl-pvs__bar a b { font-weight: 600; color: var(--ink); }
.pl-pvs__bar a span { font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-pvs__bar a:hover { background-color: var(--surface-raised); }
.pl-pvs__bar a[aria-current="page"] { background-color: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 -2px 0 var(--you); }
.pl-pvs__bar a[aria-current="page"] b { color: var(--violet-strong); }
.pl-pvs__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px var(--space-3); margin: 0 0 32px; padding: var(--space-3) 14px; background-color: var(--surface); border: 1px solid var(--card-edge); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.pl-pvs__n { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-body-size); line-height: 20px; white-space: nowrap; }
.pl-pvs__n b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-pvs__n > span:not(.pl-pvl__mk):not(.pl-info) { color: var(--ink-muted); }
.pl-pvs__n .pl-info { margin-left: 0; }
.pl-pvs__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 240px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.pl-pvs__chips li { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background-color: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--hairline); font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-pvs__tabs { margin: 0 0 28px; }

/* --- the Change filters panel: the Add event panel's look (.pl-evp), the filters in one column */
.pl-pvp[hidden] { display: none; }
.pl-pvp__sub { margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvp__prev { margin: auto calc(-1 * var(--space-5)) 0; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--hairline); background-color: var(--surface-raised); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pvp__prev[aria-busy="true"] { opacity: .7; }
.pl-pvp__l1 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--type-body-size); line-height: 20px; }
.pl-pvp__l1 b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-pvp__l2 { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pvp__actions { justify-content: flex-start; align-items: center; }
.pl-pvp__sp { flex: 1; }

/* --- notices and the At launch group */
.pl-notice.pl-pvo-notice { gap: var(--space-3); align-items: flex-start; margin: 0 0 var(--space-4); padding: var(--space-3) 14px; border-color: var(--card-edge); box-shadow: var(--shadow-card); }
.pl-pvo-notice svg.pl-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.pl-pvo-notice__body { min-width: 0; }
.pl-pvo-notice__body b { display: block; font-weight: 600; }
.pl-pvo-notice__body p { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-notice__body .pl-pvo-notice__staff { margin-top: 6px; }
.pl-pvo-notice__act { margin-left: auto; flex: none; }
.pl-pvo-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--card-edge); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-pvo-fixed { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background-color: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink); white-space: nowrap; }
.pl-pvo-grp { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); }
.pl-pvo-grp h2 { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-pvo-grp .pl-info, .pl-pvo-card__h .pl-info, .pl-pvo-tools .pl-info, .pl-pvo-range__h .pl-info { margin-left: 0; }
.pl-pvo-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-4); }
.pl-pvo-atlaunch { margin-bottom: 28px; }

/* --- cards: the own figure, the pill, the peer rows */
.pl-pvo-card.pl-card { display: flex; flex-direction: column; min-width: 0; padding: var(--space-4) 18px 14px; }
.pl-pvo-card--wide.pl-card { padding: 18px 20px var(--space-4); margin: 0 0 var(--space-4); }
.pl-pvo-card__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pl-pvo-card__h h2, .pl-pvo-card__h h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; }
.pl-pvo-card__line { margin: 0 0 var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-you { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pl-pvo-you__who { flex-basis: 100%; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-you__v { font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; color: var(--ink); }
.pl-pvo-you__v small { font-size: var(--type-heading-size); font-weight: 500; letter-spacing: 0; }
.pl-pvo-you__na { font-size: var(--type-heading-size); line-height: var(--type-figure-xl-line); font-weight: 500; color: var(--ink-muted); }
.pl-pvo-you__so { flex-basis: 100%; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pvo-pill { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-1) 0 0; min-height: 20px; }
.pl-pvo-rows { margin: 10px 0 0; padding: 0; list-style: none; }
.pl-pvo-rows li { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; border-top: 1px solid var(--hairline); font-size: var(--type-body-size); line-height: 20px; }
.pl-pvo-rows__l { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-muted); }
.pl-pvo-rows__r { margin-left: auto; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-pvo-rows__r small { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-pvo-rows__few { margin-left: auto; text-align: right; font-size: var(--type-body-sm-size); color: var(--ink-muted); }
.pl-pvo-flag { font-size: var(--type-label-size); line-height: var(--type-label-line); font-style: italic; font-weight: 400; color: var(--ink-muted); }
.pl-pvo-fig { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-3) 32px; align-items: start; margin: var(--space-1) 0 var(--space-4); }
.pl-pvo-fig .pl-pvo-rows { margin-top: 0; }
.pl-pvo-sub { margin: 0 0 var(--space-2); font-size: var(--type-body-size); line-height: 20px; font-weight: 600; }
.pl-pvo-muted { margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* --- the Net revenue | Units switch, outside the frame (it drives the launch discount too) */
.pl-pvo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 14px; margin: 0 0 14px; }
.pl-pvo-tools__lab { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* --- the tab range (sheet v3.57 tab-range): a frame in border-strong round the band and every
   figure it governs; the band stays in view while its frame scrolls */
.pl-pvo-scope { margin: 0 0 36px; padding: 0 var(--space-4) var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); }
.pl-pvo-range { position: sticky; top: var(--pl-header-h, 0px); z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); gap: var(--space-1) 28px; align-items: center; margin: 0 calc(-1 * var(--space-4)) var(--space-4); padding: 14px 20px var(--space-3) var(--space-4); background-color: var(--surface-raised); border-bottom: 1px solid var(--card-edge); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 1px 0 var(--card-edge); }
.pl-pvo-range__tag { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); }
.pl-pvo-range__h { display: flex; align-items: center; gap: var(--space-2); }
.pl-pvo-range__h h2 { margin: 0; font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-pvo-range__ctl { min-width: 0; }
.pl-pvo-range__ctl .pl-pvl__dual { margin-top: 0; }
.pl-pvo-range__labs { position: relative; height: 16px; margin: 0 0 2px; }
.pl-pvo-range__labs span { position: absolute; top: 0; left: calc(12px + (100% - 24px) * var(--at) / 100); transform: translateX(-50%); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-pvo-range__ticks { position: absolute; left: 12px; right: 12px; top: 22px; height: 6px; pointer-events: none; }
.pl-pvo-range__ticks i { position: absolute; top: 0; left: calc(var(--at) * 1%); width: 1px; height: 6px; background-color: var(--border-strong); }
.pl-pvo-range__picks { margin-top: 6px; }
.pl-pvo-range__picks .pl-ctx__segitem { min-height: 28px; }

/* --- the line charts (launch_charts.py): marks stretched to the plot, text never scaled */
.pl-pvo-ch { display: grid; grid-template-columns: minmax(0, 1fr); }
.pl-pvo-ch--ends { grid-template-columns: minmax(0, 1fr) 232px; }
.pl-pvo-ch__fig { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.pl-pvo-ch__y { position: relative; }
.pl-pvo-ch__y span { position: absolute; right: var(--space-2); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-pvo-ch__plot { position: relative; min-width: 0; }
.pl-pvo-ch__marks, .pl-pvo-ch__over { position: absolute; inset: 0; display: block; overflow: visible; }
.pl-pvo-ch__over { pointer-events: none; }
.pl-pvo-ch__marks line, .pl-pvo-ch__marks path { vector-effect: non-scaling-stroke; }
.pl-pvo-grid { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 2 3; }
.pl-pvo-zero { stroke: var(--border-strong); stroke-width: 1; }
.pl-pvo-band { fill: var(--peer-band); }
.pl-pvo-ln { fill: none; stroke-linejoin: round; }
.pl-pvo-ln--own { stroke: var(--you); stroke-width: 2.5; stroke-linecap: round; }
.pl-pvo-ln--peer { stroke: var(--peer-line); stroke-width: 2; }
.pl-pvo-ln--slice { stroke: var(--ink-muted); stroke-width: 2; stroke-dasharray: 6 3; }
.pl-pvo-ln--none { stroke: var(--fjord); stroke-width: 2.5; }
.pl-pvo-ln--any { stroke: var(--peer-line); stroke-width: 2.5; }
.pl-pvo-ln--t1 { stroke: var(--ink-muted); stroke-width: 2; stroke-dasharray: 1 3.5; stroke-linecap: round; }
.pl-pvo-ln--t2 { stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 6 3; }
.pl-pvo-ln--t3 { stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 14 4; }
.pl-pvo-ln--t4 { stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 9 3 2 3; }
.pl-pvo-ring { fill: var(--surface); stroke: var(--ink-muted); stroke-width: 1.5; }
.pl-pvo-dot { fill: var(--you); stroke: var(--surface); stroke-width: 2; }
.pl-pvo-vline { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.pl-pvo-seg-halo { stroke: var(--surface); stroke-width: 6; }
.pl-pvo-seg { stroke: var(--you); stroke-width: 2; stroke-dasharray: 4 3; }
.pl-pvo-tick { fill: var(--ink-muted); font-size: var(--type-label-size); font-variant-numeric: tabular-nums; }
.pl-pvo-hov__card { fill: var(--surface); }
.pl-pvo-hov__tint { fill: var(--violet-tint); }
[data-pvo-off] { display: none; }
.pl-pvo-sw { display: block; flex: none; overflow: visible; }
.pl-pvo-sw line { vector-effect: none; }

/* the chart's key */
.pl-pvo-key { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-pvo-key li { display: inline-flex; align-items: center; gap: 6px; }
.pl-pvo-key__sw { display: inline-block; flex: none; width: 16px; height: 0; }
.pl-pvo-key__sw--own { border-top: 2.5px solid var(--you); }
.pl-pvo-key__sw--peer { border-top: 2px solid var(--peer-line); }
.pl-pvo-key__sw--slice { width: 18px; border-top: 2px dashed var(--ink-muted); }
.pl-pvo-key__sw--avg { border-top: 2px dashed var(--you); }
.pl-pvo-key__sw--band { height: 10px; border-radius: 2px; background-color: var(--peer-band); box-shadow: inset 0 0 0 1px var(--peer-line); }
.pl-pvo-key__sw--bw, .pl-pvo-key__sw--bp, .pl-pvo-key__sw--no { width: 14px; height: 10px; border-radius: 2px; }
.pl-pvo-key__sw--bw { background-color: var(--you); }
.pl-pvo-key__sw--bp { background-color: var(--peer-line); }
.pl-pvo-key__sw--no { box-shadow: inset 0 0 0 1px var(--border-strong); }

/* tooltip marks (stat-switch.js: pl-sh-tip__mark--<row mark>) */
.pl-sh-tip__mark--pvo-own { background-color: var(--you); }
.pl-sh-tip__mark--pvo-peer, .pl-sh-tip__mark--pvo-any { background-color: var(--peer-line); }
.pl-sh-tip__mark--pvo-band { background-color: var(--peer-band); box-shadow: inset 0 0 0 1px var(--peer-line); }
.pl-sh-tip__mark--pvo-slice, .pl-sh-tip__mark--pvo-t1, .pl-sh-tip__mark--pvo-t2, .pl-sh-tip__mark--pvo-t3, .pl-sh-tip__mark--pvo-t4 { background-color: var(--ink-muted); }
.pl-sh-tip__mark--pvo-none { background-color: var(--fjord); }

/* the tables (Chart / Table): headers stay in view while the table scrolls */
.pl-pvo-tw { max-height: 340px; overflow-y: auto; margin-top: var(--space-2); }
.pl-pvo-table caption { padding: 0 var(--space-2) var(--space-1); text-align: left; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-table th, .pl-pvo-table td { padding: var(--space-1) var(--space-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; border-top: 1px solid var(--hairline); }
.pl-pvo-table th:first-child, .pl-pvo-table td:first-child { text-align: left; }
.pl-pvo-table thead th { position: sticky; top: 0; z-index: 1; border-top: 0; background-color: var(--surface); font-size: var(--type-label-size); font-weight: 500; color: var(--ink-muted); }

/* --- the wishlist split */
.pl-pvo-bars { display: grid; gap: 14px; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.pl-pvo-bars li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--space-1) var(--space-4); align-items: center; }
.pl-pvo-bars__who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--type-body-size); line-height: 20px; }
.pl-pvo-bars__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* never broken at a hyphen: one line, ending in an ellipsis */
.pl-pvo-bars__sw { width: 14px; height: 10px; flex: none; border-radius: 2px; background-color: var(--you); }
.pl-pvo-bars__bar { display: flex; gap: 2px; height: 22px; }
.pl-pvo-bars__b { border-radius: 3px 0 0 3px; }
.pl-pvo-bars__b--own { background-color: var(--you); }
.pl-pvo-bars__b--peer { background-color: var(--peer-line); }
.pl-pvo-bars__b--slice { background-color: var(--ink-muted); }
.pl-pvo-bars__o { flex: 1; border-radius: 0 3px 3px 0; box-shadow: inset 0 0 0 1px var(--border-strong); }
.pl-pvo-bars__lab { grid-column: 2; display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pvo-bars__lab b { font-weight: 600; color: var(--ink); }
.pl-pvo-bars__few { grid-column: 2; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* --- the launch discount (sheet v3.57 launch-discount-lines) */
.pl-pvo-ld.pl-card { padding: 18px 20px var(--space-4); margin: var(--space-4) 0 40px; }
.pl-pvo-ld__top { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--space-3) 28px; align-items: start; margin: var(--space-2) 0 18px; }
.pl-pvo-ld__big { display: flex; align-items: center; gap: var(--space-2); font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-pvo-ld__big + p { margin: 2px 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-lgl { max-width: 520px; margin: 0; padding: 0; list-style: none; }
.pl-pvo-lgl li { border-top: 1px solid var(--hairline); }
.pl-pvo-lgl__tier .pl-pvo-lgb { padding-left: 30px; }
.pl-pvo-lgl .pl-pvo-lgl__own { margin-top: 6px; border-top-color: var(--card-edge); }
.pl-pvo-lgl .pl-pvo-lgl__note { margin-top: 6px; padding: var(--space-2) 6px; border-top-color: var(--card-edge); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-lgb { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); width: 100%; min-height: 32px; padding: 0 6px; border: 0; border-radius: var(--radius-sm); background-color: transparent; color: var(--ink); font: inherit; font-size: var(--type-body-size); line-height: 20px; text-align: left; cursor: pointer; }
.pl-pvo-lgb:hover { background-color: var(--surface-raised); }
.pl-pvo-lgb:focus-visible, .pl-pvo-elb:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pl-pvo-lgb__ck { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.pl-pvo-lgb[aria-pressed="true"] .pl-pvo-lgb__ck { background-color: var(--ink); box-shadow: none; }
.pl-pvo-lgb[aria-pressed="true"] .pl-pvo-lgb__ck::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: translateY(-1px) rotate(-45deg); }
.pl-pvo-lgb__s { font-size: var(--type-body-sm-size); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pvo-lgb[aria-pressed="false"] .pl-pvo-lgb__nm, .pl-pvo-elb[aria-pressed="false"] span { color: var(--ink-muted); text-decoration: line-through; }
.pl-pvo-lgb[aria-pressed="false"] .pl-pvo-sw, .pl-pvo-elb[aria-pressed="false"] .pl-pvo-sw { opacity: .35; }
.pl-pvo-lgmsg { min-height: 20px; margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-dsw { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 14px; margin: 18px 0 var(--space-2); }
.pl-pvo-dsw .pl-pvo-sub { flex: 1 1 auto; margin: 0; }
.pl-pvo-ch__end { position: relative; }
.pl-pvo-elb { position: absolute; left: var(--space-1); display: inline-flex; align-items: center; gap: 6px; min-height: 24px; max-width: 224px; padding: 0 6px; border: 0; border-radius: var(--radius-sm); background-color: transparent; color: var(--ink); font: inherit; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; white-space: nowrap; cursor: pointer; }
.pl-pvo-elb:hover { background-color: var(--surface-raised); }
.pl-pvo-elb span { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) { .pl-pvo-ld__top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023.98px) {
  .pl-pvo-grid2, .pl-pvo-fig { grid-template-columns: minmax(0, 1fr); }
  .pl-pvo-range { grid-template-columns: minmax(0, 1fr); }
  .pl-pvo-bars li { grid-template-columns: minmax(0, 1fr); }
  .pl-pvo-bars__lab, .pl-pvo-bars__few { grid-column: 1; }
}
@media (max-width: 767.98px) { .pl-pvp { display: none; } }

/* PeerLight view, the Post-launch stage (modules/peer_view; mock-up
   2026-11-23_peerlight-view-post-launch_v4, approved by Fredrik 2026-11-23; design sheet v3.60
   age-range, review-score-row, stage-card-note and axis-break). Tokens only; no new token,
   colour or size. The card, its head, the (i), the segment, the range band, the key and the
   tables come from peer-view-overview.css and peer-view-markets.css (they load before this
   part, by name). Desktop only: below 768 px the narrow-screen note shows instead. */

/* --- the review score row: Post-launch's only game filter, where Launch has its summary */
.pl-plr.pl-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin: 0 0 32px; padding: var(--space-3) 14px; }
.pl-plr__row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.pl-plr__l { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-body-size); line-height: 20px; font-weight: 600; white-space: nowrap; }
.pl-plr__l .pl-info { margin-left: 0; }
.pl-plr__seg { flex-wrap: nowrap; }
/* Named exception (sheet v3.60): 12/16 buttons, so the four full labels share one row at
   1024 px; 8 px sides so they end inside the card there (design owner on 1109). Only here. */
.pl-plr__seg .pl-ctx__segitem { min-height: 32px; padding: 0 var(--space-2); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-plr__own { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-plr__own b { font-weight: 600; color: var(--ink); }
.pl-plr__flt { display: block; color: var(--ink); }
.pl-plr__me { display: block; }

/* --- the stage card note on the start page (only when staff have narrowed the filters) */
.pl-pvl__x { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-pvl__x svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- the age range (sheet age-range): readout and picks above the track, the track full width */
.pl-pvo-range.pl-plage { display: block; padding: 14px var(--space-4) 10px; }
.pl-plage__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-5); margin: 0 0 10px; }
.pl-plage__picks { flex-wrap: nowrap; }
.pl-plage__picks .pl-ctx__segitem { min-height: 28px; }
.pl-plage__regs { position: relative; height: 16px; margin: 0 0 2px; }
.pl-plage__regs span { position: absolute; top: 0; transform: translateX(-6px); font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.pl-plage__ag { position: relative; height: 32px; touch-action: none; cursor: pointer; }
.pl-plage__tk { position: absolute; top: 15px; height: 2px; border-radius: 2px; background-color: var(--border-strong); }
.pl-plage__brk { position: absolute; top: 9px; width: 1.5px; height: 14px; transform: skewX(-25deg); background-color: var(--border-strong); }
.pl-plage__ticks { position: absolute; inset: 0; pointer-events: none; }
.pl-plage__ticks i { position: absolute; top: 22px; width: 1px; height: 6px; background-color: var(--border-strong); }
.pl-plage__fill { position: absolute; top: 14px; height: 4px; border-radius: 2px; background-color: var(--you); }
.pl-plage__th { position: absolute; top: 4px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background-color: var(--surface); border: 2px solid var(--you); box-shadow: var(--shadow-card); cursor: grab; touch-action: none; }
.pl-plage__th:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-plage__labs { position: relative; height: 16px; margin: 2px 0 0; }
.pl-plage__labs span { position: absolute; top: 0; transform: translateX(-50%); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- the Overview cards */
.pl-plo-card__h { margin: 0 0 2px; }
.pl-plo-card__t { display: flex; flex: 1 1 0; align-items: center; gap: var(--space-2); min-width: 240px; }
.pl-pvo-card__h .pl-plo-card__t h3 { flex: 0 1 auto; }
.pl-plo-card__h > .pl-ctx__seg { flex: none; }
.pl-plo-nw { white-space: nowrap; }
.pl-plo-sub { margin: 0 0 var(--space-3); max-width: var(--layout-measure); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvo-rows__r.pl-plo-band { font-weight: 400; }
.pl-pvo-rows .pl-pvo-key__sw--band { width: 16px; height: 10px; }
.pl-plo-few { margin: 6px 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* --- the age chart (post_launch_charts.py; sheet axis-break): two parts with a 32 px gap */
.pl-plc { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); margin-top: 6px; }
.pl-plc__plot { position: relative; display: grid; min-width: 0; }
.pl-plc__part { position: relative; min-width: 0; }
.pl-plc__head { position: absolute; top: 2px; left: 0; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.pl-plc__gap { position: relative; }
.pl-plc__div { position: absolute; left: 50%; top: calc(var(--plc-top) - 6px); width: 0; border-left: 1px dashed var(--border-strong); }
.pl-plc__brk { position: absolute; left: calc(50% - 5px); width: 1.5px; height: 10px; transform: skewX(-31deg); background-color: var(--border-strong); }
.pl-plc__brk--2 { left: calc(50% + 1px); }
.pl-plc__ref { stroke: var(--border-strong); stroke-width: 1; }
.pl-plc__ring { fill: var(--surface); stroke: var(--peer-line); stroke-width: 1.5; }
.pl-plc__halo { fill: var(--ink-muted); font-size: var(--type-label-size); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pl-plc__few { position: absolute; container-type: inline-size; display: flex; justify-content: center; box-shadow: inset 0 0 0 1px var(--hairline); pointer-events: none; }
.pl-plc__few::before { content: ""; position: absolute; inset: 0; background-image: var(--pvt-hatch); opacity: .35; }
.pl-plc__few span { position: relative; margin-top: 6px; padding: 0 var(--space-1); border-radius: var(--radius-sm); background-color: var(--surface); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); text-align: center; white-space: nowrap; height: fit-content; }
@container (max-width: 115.98px) { .pl-plc__few span { max-width: 70px; white-space: normal; } }
@container (max-width: 67.98px) { .pl-plc__few span { display: none; } }

/* PeerLight view, Post-launch · Promotion performance (modules/peer_view; mock-up
   2026-11-23_peerlight-view-post-launch_v4; design sheet v3.60 dot-plot-x, the Market dot
   plot's × amendment, and the fixed-window band). Tokens only; no new token, colour or size.
   The dot plot's table, marks and key come from peer-view-markets.css; the band and the card
   from peer-view-overview.css and peer-view-post-launch.css. */

/* the fixed-window band: the range band's frame with no control, one muted line at its right */
.pl-ppx-win .pl-plage__top { margin: 0; align-items: center; }
.pl-ppx-win__l { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* the × dot plot: a Difference column with 16 px before it, a solid 1× line; the axis labels
   thin by the plot's own width (peer-view-markets.css, launch_markets.axis_labels) */
.pl-ppx .pl-ppx__cg { width: 112px; }
.pl-ppx td.pl-ppx__g, .pl-ppx th.pl-ppx__g { padding-left: var(--space-4); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-ppx thead th.pl-ppx__g { text-align: right; }
.pl-ppx__gap { color: var(--ink-muted); }
.pl-ppx__gap--good { color: var(--good-ink); }
.pl-ppx__gap--bad { color: var(--critical-ink); }
.pl-mdp__gl.pl-mdp__gl--one { border-left: 1px solid var(--border-strong); }
.pl-ppx td.pl-mdp__y .pl-ppx__few { justify-content: flex-end; }
.pl-ppx__few { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--type-body-size); line-height: 20px; font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.pl-ppx__few .pl-info { margin-left: 0; }
.pl-pvo-you__na.pl-ppx__few--big { font-size: var(--type-figure-xl-size); line-height: var(--type-figure-xl-line); font-weight: var(--type-figure-xl-weight); letter-spacing: var(--type-figure-xl-tracking); font-variant-numeric: tabular-nums; }
.pl-ppx__few--big .pl-info { letter-spacing: 0; }
.pl-pvo-key .pl-pvo-key__sw--one { width: 0; height: 12px; border-left: 1px solid var(--border-strong); }

@media (max-width: 1100px) {
  .pl-ppx .pl-mdp__cm { width: 176px; }
  .pl-ppx .pl-mdp__cy { width: 92px; }
  .pl-ppx .pl-mdp__cp, .pl-ppx .pl-ppx__cg { width: 100px; }
  /* Named exception (sheet v3.60 dot-plot-x): words in Difference ("Not compared") at 12 px
     under 1100 px, as the plot's "Too few games" cell, so they fit the 100 px column. */
  .pl-ppx__gap--na { font-size: var(--type-label-size); }
}

/* Words in the own column ("No recognized promotion", "Not launched yet") at 12 px, as the
   peer column's "Too few games" cell (peer-view-markets.css), and wrapping inside the
   104 / 92 px column rather than run into the peer median; figures stay on one line. */
.pl-ppx td.pl-mdp__y.pl-mdp__na { white-space: normal; padding: 6px 0; font-size: var(--type-label-size); line-height: var(--type-label-line); }

/* PeerLight view, Post-launch · Store traffic (modules/peer_view; mock-up
   2026-11-23_peerlight-view-post-launch-traffic_v1, approved by Fredrik 2026-11-23; sheet v3.61).
   Tokens only; no new token, colour or size. The rows, dot plots and source cards come from
   peer-view-traffic.css and peer-view-markets.css; the fixed-window band from
   peer-view-post-launch.css and peer-view-post-launch-promotions.css; the peer group row is the
   review score row (peer-view-post-launch.css) with the segment at its normal size. */

/* the peer group row: the segment at its normal 13 px (the review score row's 12 px buttons are
   that row's own exception) */
.pl-plg__seg { flex-wrap: nowrap; }

/* the band's second part, under a hairline: Discount days, its segment and (i), then at most one
   muted own-game line */
.pl-plt-sw { margin: var(--space-2) 0 0; padding: var(--space-2) 0 0; border-top: 1px solid var(--hairline); }
.pl-plt-sw__r { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pl-plt-sw__r .pl-info { margin-left: 0; }
.pl-plt-sw__l { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-plt-sw__own { margin: var(--space-1) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* the own cell for a game the tab's rule leaves out, or a figure not on file: 13 px muted */
.pl-plt-nc { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* PeerLight view, Pre-launch · Overview and Store traffic (modules/peer_view; mock-up
   2026-11-23_peerlight-view-pre-launch_v3, approved by Fredrik 2026-11-23; design sheet v3.62
   dot-plot-counts, prelaunch-peer-group, moment-card, moment-state-lines, moment-picker).
   Tokens only; no new token, colour or size. The dot plot, its table, marks and key come from
   peer-view-markets.css; the Difference column from peer-view-post-launch-promotions.css; the
   card head, subline and too-few line from peer-view-post-launch.css; the peer group row and the
   Moment picker are the review score row (peer-view-post-launch.css) with the segment at its
   normal 13 px (peer-view-post-launch-traffic.css). */

/* the plan line above the moment cards: muted, the release date in ink */
.pl-pre__plan { margin: 0 0 14px; max-width: var(--layout-measure); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-pre__plan b { font-weight: 600; color: var(--ink); }

/* the own state line, said once under the subline: 13/20, ink 600, an (i) where a reason helps */
.pl-prc__st { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-2); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-prc__st b { font-weight: 600; }
.pl-prc__st .pl-info { margin-left: 0; flex: none; }

/* Store traffic's two plots in one card: a small ink heading over each */
.pl-prc__plh { margin: 14px 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; color: var(--ink); }
.pl-prc__plh:first-child { margin-top: var(--space-1); }

/* the too-few box in place of the plot */
.pl-prc__few { margin-top: var(--space-1); }
.pl-prc__few .pl-btn { display: inline-flex; }

/* the count dot plot: an own figure drawn as a ring reads muted; the peer row's flag under the
   median; the pill right-aligned in Difference */
.pl-prp td.pl-mdp__y .pl-prp__ring { color: var(--ink-muted); font-weight: 400; white-space: nowrap; }
.pl-prp td.pl-mdp__p .pl-prp__flag { display: block; }
.pl-prp td.pl-ppx__g .pl-sh-pill { justify-content: flex-end; }

/* the Table view: the totals table, then the per-day table under it */
.pl-prt + .pl-prt { margin-top: 14px; }
.pl-prt__day caption { font-weight: 600; color: var(--ink); }
.pl-prt__day th .pl-pvl__mk { margin-right: 6px; vertical-align: -2px; }

/* the Moment picker: five buttons on one row from 1024 px */
.pl-prm__seg .pl-ctx__segitem { padding: 0 10px; }

/* PeerLight view, Launch: the Store traffic tab (modules/peer_view, mock-up 2026-11-21
   store-traffic-tab v4, approved by Fredrik 2026-11-21). Builds on peer-view-overview.css (the
   range band, cards, chips, keys, charts); here only what v4 adds: the seven rows of "Store
   traffic against peers" (their dot plots are Markets': mk_dots.html, peer-view-markets.css),
   the by-day select, the by-day chart's single-day dots, day-1 ring and hatched missing days,
   and the source cards' additions to Markets' table. Tokens only. */

.pl-pvt-staff, .pl-pvt-scope { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvt-na { margin: 0 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvt-na b { color: var(--ink); font-weight: 600; }

/* The rows: name and its definition, the own figure with its pill under it, the dot plot, the
   peer. One set of columns for every row (v4 .rr), so the plots line up: the list is the grid
   and each row a subgrid of it. Up to 1180 px the figure column is 90-110 px, so the name has
   room at 1024 px, and "Same as the peer median" may wrap. The plot keeps at least 160 px
   (v4: 0), since grid gives the fixed columns their maximum before the plot any room. */
.pl-pvt-rows { display: grid; grid-template-columns: minmax(150px, 210px) minmax(120px, 150px) minmax(160px, 1fr) minmax(150px, 190px); column-gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1180px) { .pl-pvt-rows { grid-template-columns: minmax(120px, 170px) minmax(90px, 110px) minmax(160px, 1fr) minmax(165px, 190px); column-gap: 14px; } .pl-pvt-row .pl-sh-pill.pl-sh-pill--flat { white-space: normal; } }
.pl-pvt-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; row-gap: var(--space-1); padding: var(--space-3) 0; border-top: 1px solid var(--hairline); }
.pl-pvt-row:first-child { border-top: 0; }
.pl-pvt-row__n { display: flex; flex-direction: column; min-width: 0; }
.pl-pvt-row__n b { font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 600; color: var(--ink); }
.pl-pvt-row__n span { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-pvt-row__y { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pl-pvt-row__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-pvt-row__so { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-pvt-row .pl-sh-pill { white-space: nowrap; }
.pl-pvt-row__p { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvt-row__m { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 var(--space-1); }
.pl-pvt-row__m > span, .pl-pvt-row__m b { white-space: nowrap; }
.pl-pvt-row__m b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-pvt-row__p small { font-size: var(--type-label-size); line-height: var(--type-label-line); font-variant-numeric: tabular-nums; }
.pl-pvt-row__few { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-pvt-nw { white-space: nowrap; }

/* A row's dot plot: Markets' marks (mk_dots.html, .pl-mdp__*) on a scale of its own, its axis
   under it; padded as Markets' plot cells so the end dots never touch the edge. */
.pl-pvt-dp { display: block; min-width: 0; padding: 0 10px; }

.pl-pvt-note { margin: var(--space-2) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-pvt-route { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-3) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* The hatch of days not on file: one pattern for the chart and its key swatch, on every stage
   page (Post-launch's too-few zones share it). */
.pl-pvs { --pvt-hatch: repeating-linear-gradient(45deg, var(--border-strong) 0 1.5px, transparent 1.5px 6px); }

/* Key swatches the by-day chart adds to the shared key (ov_key.html): single days, the hatched
   days not on file. Scoped under .pl-pvo-key as Markets' dot, ring and tick. */
.pl-pvo-key .pl-pvo-key__sw--sd { width: 4px; height: 4px; border-radius: 50%; background-color: var(--you); opacity: 0.7; }
.pl-pvo-key .pl-pvo-key__sw--hatch { width: 14px; height: 10px; border-radius: 2px; background-image: var(--pvt-hatch); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* The by-day card: the select, and the chart's extra marks. */
.pl-pvt-sel { display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-pvt-sel .pl-select { min-height: 32px; font-size: var(--type-body-sm-size); }
.pl-pvt-sd { fill: var(--you); opacity: 0.7; }
.pl-pvt-ring { fill: var(--surface); stroke: var(--you); stroke-width: 2; }
.pl-pvt-oneband { stroke: var(--peer-line); stroke-width: 1; }
.pl-pvt-tick { stroke-width: 2.5; stroke-linecap: round; }
.pl-pvt-hatch { position: absolute; background-image: var(--pvt-hatch); opacity: 0.6; box-shadow: inset 1px 0 0 var(--border-strong), inset -1px 0 0 var(--border-strong); pointer-events: none; }
.pl-pvt-days { max-height: 340px; overflow-y: auto; }

/* The source cards: Markets' dot plot table (mk_plot.html), with a name column of 36% for
   Steam's source names (a long one wraps rather than being cut, at 1024 px). The muted source
   and the "Few ... from here" mark are mk_plot.html's, in peer-view-markets.css. */
.pl-pvt .pl-mdp__cm { width: 36%; }
.pl-pvt .pl-mdp tbody th.pl-mdp__m { padding-top: var(--space-1); padding-bottom: var(--space-1); white-space: normal; }
.pl-pvt-more { align-self: flex-start; margin-top: var(--space-3); }

/* Store traffic against peers as a table, Launch and Post-launch (pvt_rows_table.html; design
   review of PR 1115): the figure's name is the row header with its definition as a muted second
   line, so the long definitions no longer widen a column of their own */
.pl-pvt-tw { max-height: none; }  /* six rows: never clipped (the by-day and top 30 tables keep theirs) */
.pl-pvt-t tbody th { font-weight: 600; white-space: normal; min-width: 150px; max-width: 280px; }
.pl-pvt-t__def { display: block; font-weight: 400; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* "Book a meeting with your PeerLight team" (plans/_meeting.html; Atlas 2026-11-22): at 375 px
   the label runs to two lines. The label is one flex item, so the button grows as a whole,
   and the external-link icon sits inline with the last word, never alone on a line. */
.pl-meeting__label svg.pl-icon { display: inline-block; margin-left: var(--space-2); vertical-align: text-bottom; }
/* 4 px above and below: one line stays at the 36 px minimum, two lines get room. */
.pl-actions .pl-btn.pl-meeting__btn { padding-block: var(--space-1); }

/* PeerLight plans: the owner's steps 3-5, Done, Settings Plan and Data sharing, and Home's
   "Finish setting up" notice (onboarding agreement flow v5, Fredrik 2026-11-20). Every page here
   is behind PEERLIGHT_PLANS_LIVE. Ported from the approved mock-up; tokens only, no new token. */

/* --- the step cards (the sign-in family) ----------------------------------------------------- */
.pl-auth__card--wide { max-width: 520px; }
.pl-auth__card--share { max-width: 640px; }
.pl-auth__card .pl-step {
  margin: 0; font-size: var(--type-label-size); line-height: var(--type-label-line);
  font-weight: var(--type-label-weight); color: var(--ink-muted);
}
.pl-step b { color: var(--ink); font-weight: 600; }
.pl-auth__card .pl-auth__sub--flush { margin-top: 0; }
/* The key note under step 4: the reason-line look with its icon beside it. */
.pl-auth__card .pl-plans-keynote { display: flex; gap: 6px; align-items: flex-start; }
.pl-plans-keynote .pl-icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.pl-auth__card .pl-people__confirm { display: grid; gap: var(--space-1); }
.pl-auth__card .errorlist[role="alert"] { margin: calc(-1 * var(--space-2)) 0 0; color: var(--critical-ink); }

/* Option cards: radios as cards; selected = violet edge and violet tint (tint alone is too faint
   on Chalk). A locked option keeps its words, muted, with its reason. */
.pl-opts { display: grid; gap: var(--space-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.pl-opts legend {
  padding: 0; margin: 0 0 var(--space-1); color: var(--ink);
  font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 500;
}
.pl-opts--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pl-opts--row legend { grid-column: 1 / -1; }
.pl-opt {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-1) var(--space-3);
  align-content: start; padding: var(--space-3) 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background-color: var(--surface); cursor: pointer;
}
.pl-auth__card .pl-opt { display: grid; margin: 0; color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-opt:hover { background-color: var(--surface-raised); }
.pl-opt:has(input:checked:not(:disabled)) { border-color: var(--violet); background-color: var(--violet-tint); }
.pl-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); cursor: pointer; }
.pl-opt__t { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; font-weight: 600; }
.pl-opt__t .pl-icon { width: 14px; height: 14px; }
.pl-opt__d { grid-column: 2; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-opt.is-locked { cursor: not-allowed; border-color: var(--card-edge); }
.pl-opt.is-locked:hover { background-color: var(--surface); }
.pl-opt.is-locked .pl-opt__t { color: var(--ink-muted); }
.pl-opt.is-locked input { cursor: not-allowed; }
@media (max-width: 559.98px) { .pl-opts--row { grid-template-columns: minmax(0, 1fr); } }

/* Basic against Pro, module by module: a tick or a dash, both with screen-reader words. */
.pl-fx { border-collapse: collapse; width: 100%; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-fx th, .pl-fx td { padding: 6px 0; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.pl-fx thead th {
  border-top: 0; padding-top: 0; color: var(--ink-muted);
  font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600;
}
.pl-fx td, .pl-fx thead th:not(:first-child) { width: 84px; text-align: center; }
.pl-fx tbody th { font-weight: 500; }
.pl-fx tbody tr:first-child th { font-weight: 400; color: var(--ink); }
.pl-fx__m { display: block; font-weight: 400; font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted); }
.pl-fx__y { color: var(--good-ink); font-weight: 700; }
.pl-fx__n { color: var(--ink-muted); }
.pl-fx__t { font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink); white-space: nowrap; }
@media (max-width: 459.98px) { .pl-fx td, .pl-fx thead th:not(:first-child) { width: 64px; } .pl-fx__t { white-space: normal; } }

.pl-ul { margin: 0; padding-left: 20px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-ul li { margin: 0 0 var(--space-1); }
.pl-ul b { font-weight: 600; }
.pl-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0; }
.pl-actions--center { justify-content: center; }
.pl-actions .pl-btn, .pl-people__confirm .pl-btn { width: auto; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; }

/* Step 5's two lists. */
.pl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
@media (max-width: 559.98px) { .pl-two { grid-template-columns: minmax(0, 1fr); } }
.pl-list { padding: var(--space-3) 14px; border-radius: var(--radius-md); background-color: var(--status-soft); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-list h3 { margin: 0 0 var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; }
.pl-list ul { margin: 0; padding-left: 18px; }

/* Facts: a term and its value; one column on a phone. */
.pl-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--space-4); margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-dl dt { color: var(--ink-muted); }
.pl-dl dd { margin: 0; color: var(--ink); }
@media (max-width: 459.98px) { .pl-dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .pl-dl dd { margin-bottom: var(--space-2); } }
.pl-plans-code { font-family: var(--font-mono); font-size: var(--type-meta-size); }

/* --- "What is PeerLight view?": a status-soft panel (no card inside a card) ------------------ */
.pl-pvx { display: grid; gap: var(--space-2); padding: 14px var(--space-4); border-radius: var(--radius-md); background-color: var(--status-soft); }
.pl-pvx__h { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.pl-pvx__lens { display: inline-flex; width: 28px; flex: none; }
.pl-pvx__lens svg { width: 28px; height: auto; }
.pl-pvx p { margin: 0; }
.pl-pvx__pro { font-weight: 600; }
.pl-pvx__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pvx__rules { margin: 0; padding-left: 18px; }
.pl-pvx__more summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; color: var(--link); font-size: var(--type-body-sm-size); font-weight: 500; }
.pl-pvx__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pvx__grid h3 { margin: 6px 0 2px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; }
.pl-pvx__grid ul { margin: 0; padding-left: 18px; }
@media (max-width: 599.98px) { .pl-pvx__top, .pl-pvx__grid { grid-template-columns: minmax(0, 1fr); } }
.pl-mc { margin: 0; padding: 10px 10px var(--space-2); border: 1px solid var(--card-edge); border-radius: var(--radius-md); background-color: var(--surface); }
.pl-mc svg { display: block; width: 100%; height: auto; }
.pl-mc-grid { stroke: var(--card-edge); stroke-width: 1; stroke-dasharray: 1 3; }
.pl-mc-band { fill: var(--peer-band); stroke: none; }
.pl-mc-peer { fill: none; stroke: var(--peer-line); stroke-width: 1.75; }
.pl-mc-you { fill: none; stroke: var(--you); stroke-width: 2.25; stroke-linejoin: round; }
.pl-mc-you, .pl-mc-peer, .pl-mc-grid { vector-effect: non-scaling-stroke; }
.pl-mc__axis { display: flex; justify-content: space-between; margin-top: 2px; font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted); }
.pl-mc__key { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); margin-top: 6px; font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink); }
.pl-mc__key span { display: inline-flex; align-items: center; gap: 6px; }
.pl-mc__key i { display: inline-block; width: 14px; height: 0; border-top: 2.25px solid var(--you); }
.pl-mc__key i.pl-mc__k-peer { border-top: 1.75px solid var(--peer-line); }
.pl-mc__key i.pl-mc__k-band { height: 10px; border: 0; background-color: var(--peer-band); outline: 1px solid var(--card-edge); }
.pl-mc__cap { margin: var(--space-1) 0 0; font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--ink-muted); }

/* --- Settings, Plan and Data sharing ---------------------------------------------------------- */
.pl-main-narrow { max-width: 760px; }
.pl-plans-stack { display: grid; gap: 20px; }
.pl-plans-card { display: grid; gap: var(--space-3); }
.pl-plans-card > p { margin: 0; }
/* Home: the notice and "Continue setup" under the welcome. */
.pl-plans-home { display: grid; gap: var(--space-2); justify-items: start; }

/* PeerLight plans for Rekoup staff: Onboarding's Requests waiting and Plan and data sharing rows,
   and one studio's Agreements (onboarding agreement flow v5, screens 14 and 15). Tokens only. */
.pl-plans-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.pl-plans-row__main { display: grid; gap: 2px; min-width: 0; flex: 1 1 320px; }
.pl-plans-row__main p { margin: 0; }
.pl-plans-row__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: 600; }
.pl-plans-row__state { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink); }
.pl-plans-field { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-body-sm-size); }
.pl-plans-services { display: grid; gap: var(--space-4); }
.pl-plans-services__row { display: grid; gap: var(--space-1); margin: 0; padding: 0; border: 0; min-width: 0; }
.pl-plans-services__row legend { padding: 0; margin: 0 0 var(--space-1); font-weight: 600; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-plans-radio { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: var(--type-body-sm-size); }
.pl-plans-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.pl-plans-age { font-weight: 400; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-plans-age.is-late { color: var(--critical-ink); }
/* The Agreements log stacks on a phone: each record a block, its parts on their own lines. */
@media (max-width: 767.98px) {
  .pl-plans-log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-plans-log, .pl-plans-log tbody, .pl-plans-log tr, .pl-plans-log td { display: block; width: 100%; }
  .pl-plans-log tr { padding: 10px 0; border-top: 1px solid var(--hairline); }
  .pl-plans-log td { border: 0; padding: 1px 0; }
}

/* --- Product news email, the staff page (mock-up monthly-newsletter v2, part 1) -------------------
   Existing tokens only: the editor card and a 360 px side column (one column below 960 px), the
   section editor, the Pro only tag (status-soft, 1 px violet inset edge), 18 px boxes in labels of
   32 px, the 6 px violet progress bar, the inbox preview rows and the sent log that stacks on a
   phone. The inbox rows' colours are a mail app's, drawn as tokens: light on surface, dark on the
   dark theme's surface-raised. */

.pl-pnews { display: grid; gap: var(--space-4); min-width: 0; }
.pl-pnews__tabs { margin: 0; }
.pl-pnews__n, .pl-pnews__num, .pl-pnews__count { font-variant-numeric: tabular-nums; }
.pl-pnews__notice { margin: 0; flex-wrap: wrap; justify-content: space-between; background: var(--status-soft); font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-pnews__notice--warn { border-color: var(--warning-ink); }
.pl-pnews__cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-4); align-items: start; }
@media (max-width: 959.98px) { .pl-pnews__cols { grid-template-columns: minmax(0, 1fr); } }
.pl-pnews__editor, .pl-pnews__side, .pl-pnews__test, .pl-pnews__who, .pl-pnews__empty, .pl-pnews__progress, .pl-pnews__log, .pl-pnews__readcard { display: grid; gap: var(--space-3); min-width: 0; }
.pl-pnews__side { gap: var(--space-4); }
.pl-pnews__editor, .pl-pnews__test, .pl-pnews__who, .pl-pnews__empty, .pl-pnews__progress, .pl-pnews__log, .pl-pnews__readcard { padding: var(--space-4) var(--space-5); }
.pl-pnews__head { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; justify-content: space-between; }
.pl-pnews p { margin: 0; }
.pl-pnews__meta, .pl-pnews__line { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pnews__hint { color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; }
.pl-pnews__sub { margin: 0; font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; padding: 0; }
.pl-pnews__total { font-size: var(--type-body-size); line-height: 20px; font-weight: 600; }
.pl-pnews__ok { color: var(--good-ink); font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-pnews__err { color: var(--critical-ink); font-size: var(--type-body-sm-size); line-height: 20px; }
.pl-pnews__warn { color: var(--warning-ink); }
.pl-pnews__crit { color: var(--critical-ink); font-weight: 600; }
.pl-pnews__errs ul { margin: 0; padding-left: 1.2em; }

/* Fields: label, input, hint. */
.pl-pnews__field { display: grid; gap: var(--space-1); min-width: 0; font-size: var(--type-body-sm-size); }
.pl-pnews__field label { font-weight: 500; color: var(--ink); }
.pl-pnews__field input[type="text"], .pl-pnews__field textarea { width: 100%; min-height: 36px; }
.pl-pnews__field textarea { min-height: 72px; resize: vertical; }
.pl-pnews__two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-3); }
@media (max-width: 599.98px) { .pl-pnews__two { grid-template-columns: minmax(0, 1fr); } }

/* A section of the issue. */
.pl-pnews__sect { display: grid; gap: var(--space-2); margin: 0; padding: var(--space-3); min-width: 0; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
.pl-pnews__sect-head { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: center; }
.pl-pnews__sect-n { margin-right: auto; color: var(--ink-muted); font-size: var(--type-label-size); line-height: 16px; font-weight: 500; }
.pl-pnews__tag { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--status-soft); box-shadow: inset 0 0 0 1px var(--violet); color: var(--ink); font-size: var(--type-label-size); line-height: 16px; font-weight: 500; white-space: nowrap; }
.pl-pnews__img { display: grid; gap: var(--space-2); padding: var(--space-2) 10px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.pl-pnews__sect-foot { display: flex; justify-content: flex-end; }
.pl-pnews__actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.pl-pnews__view { margin: var(--space-2) 0 0; }
.pl-pnews__changes summary { display: inline-flex; min-height: 24px; align-items: center; cursor: pointer; list-style: none; }
.pl-pnews__changes ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }

/* Boxes and radios: 18 px inside a label of at least 32 px (the label is the target). */
.pl-pnews__radios { display: grid; gap: 0; margin: 0; padding: 0; border: 0; min-width: 0; }
.pl-pnews__radios legend { padding: 0; margin-bottom: var(--space-1); }
.pl-pnews__opt { display: flex; gap: 10px; align-items: center; min-height: 32px; padding: var(--space-1) 0; color: var(--ink); font-size: var(--type-body-size); cursor: pointer; }
.pl-pnews__opt input { flex: none; width: 18px; height: 18px; margin: 3px; accent-color: var(--violet); }
.pl-pnews__opt--small { min-height: 24px; padding: 0; font-size: var(--type-body-sm-size); }
.pl-pnews__count { margin-left: auto; color: var(--ink-muted); }
.pl-pnews__plans { display: grid; padding-left: 34px; }
.pl-pnews__send { justify-self: start; }
.pl-pnews__confirm, .pl-pnews__conflict { display: grid; gap: var(--space-2); margin: 0; }
.pl-pnews__zero { margin: 0; }
.pl-pnews__load { display: grid; gap: var(--space-2); }

/* Sending · N of M. */
.pl-pnews__bar { height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.pl-pnews__bar > span { display: block; height: 100%; background: var(--violet); }
.pl-pnews__progress form { margin: 0; }

/* Preview: the inbox rows and the opened email. */
.pl-pnews__preview { display: grid; gap: var(--space-3); min-width: 0; }
.pl-pnews__inbox { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--space-3); padding: 10px var(--space-3); border: 1px solid var(--card-edge); border-radius: var(--radius-md); font-size: var(--type-body-size); line-height: 20px; }
.pl-pnews__inbox--light { background: var(--surface); color: var(--ink); }
.pl-pnews__inbox--dark { background: var(--surface-raised); color: var(--ink); }
.pl-pnews__inbox-p, .pl-pnews__inbox-d { color: var(--ink-muted); }
.pl-pnews__inbox-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pnews__inbox-from { font-weight: 600; }
@media (max-width: 599.98px) {
  .pl-pnews__inbox { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-pnews__inbox-s { grid-column: 1 / -1; }
}
.pl-pnews__frame { display: block; width: 100%; min-height: 900px; border: 1px solid var(--card-edge); border-radius: var(--radius-md); background: var(--surface); }

/* Sent log: stacks on a phone. */
.pl-pnews__r { text-align: right; font-variant-numeric: tabular-nums; }
.pl-pnews__fails ul { margin: 0 0 var(--space-2); padding-left: 1.2em; }
@media (max-width: 599.98px) {
  .pl-pnews__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-pnews__table, .pl-pnews__table tbody, .pl-pnews__table tr, .pl-pnews__table td { display: block; width: 100%; }
  .pl-pnews__table tr { padding: var(--space-2) 0; border-bottom: 1px solid var(--hairline); }
  .pl-pnews__table td { border: 0; padding: 2px 0; text-align: left; }
  .pl-pnews__table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-muted); }
}
.pl-pnews__links { margin: 0; padding-left: 1.2em; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); overflow-wrap: anywhere; }

/* --- Settings, Email and the unsubscribe page (mock-up monthly-newsletter v2, parts 3 and 4) -----
   Existing tokens only. Settings: two cards, the box row from the staff page (.pl-pnews__opt,
   18 px box in a 32 px label), its lines indented 34 px under the label text. Unsubscribe: the
   sign-in frame's card (16 px title, full-width buttons, quiet links centred), its muted lines. */

.pl-pnews-set { display: grid; gap: var(--space-4); max-width: 720px; min-width: 0; }
.pl-pnews-set__card { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); min-width: 0; }
.pl-pnews-set p { margin: 0; }
.pl-pnews-set__form { min-width: 0; }
/* The status and error lines stay in the page while empty (live regions), so no grid gap. */
.pl-pnews-set__in { padding-left: 34px; }
.pl-pnews-set__in:not(:empty) { margin-top: var(--space-1); }

.pl-pnews-unsub__meta { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-pnews-unsub__actions { display: grid; gap: var(--space-3); }
.pl-pnews-unsub__actions form { display: grid; gap: 0; }

/* Release radar: the developer under the game name below 1100 px, and the "No date yet" group
   (mock-up release-radar-names-no-date v1, rows 46, 49c and 70; Fredrik 2026-11-17). Tokens
   only; the names' two-line clamp and the wrapping developer are in release-radar.css. */

/* Under the name, muted; shown only where the developer column is not. */
.pl-rr__devl { display: none; margin-top: 2px; font-size: var(--type-body-sm-size); line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }

/* 768 to 1099 px: no developer column; the tags get its width. */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .pl-rr__cols, .pl-rr__g { grid-template-columns: 52px minmax(0, 1.7fr) minmax(0, 1.1fr) 96px 110px; }
  .pl-rr__cols span:nth-child(3), .pl-rr__dev { display: none; }
  .pl-rr__devl { display: block; }
}

/* Phones: the developer under the name too; the followers get their own line. */
@media (max-width: 767.98px) {
  .pl-rr__g { grid-template-areas: "cover game date" "cover fol fol" "cover gen gen"; gap: var(--space-1) var(--space-3); align-items: start; }
  .pl-rr__dev { display: none; }
  .pl-rr__devl { display: block; }
  .pl-rr__fol { text-align: left; }
}

/* "No date yet": closed, after the last week. The whole heading line is the button (at least
   32 px tall), as a week heading with a chevron, the count and Show / Hide. */
.pl-rr__nd:empty { display: none; }
.pl-rr__nd { margin-top: 22px; }
.pl-rr__ndbtn { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pl-rr__ndbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.pl-rr__chev { display: inline-block; width: 14px; text-align: center; color: var(--ink-muted); transition: transform .15s; }
.pl-rr__ndbtn[aria-expanded="true"] .pl-rr__chev { transform: rotate(90deg); }
.pl-rr__ndbtn .pl-rr__n { white-space: nowrap; }
.pl-rr__ndact { font-size: var(--type-body-sm-size); color: var(--link); white-space: nowrap; }
.pl-rr__ndnote { margin: 2px 0 8px 24px; font-size: var(--type-body-sm-size); line-height: 20px; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .pl-rr__chev { transition: none; } }

/* The release cell of a game with no date: "No date" muted, Steam's own words under it. */
.pl-rr__date.is-nodate { font-family: var(--font-sans); color: var(--ink-muted); }

/* Release radar: a Steam-only game without a portrait shows its wide capsule whole, letterboxed on the raised surface, never cropped (design owner on 915). */
.pl-rr__cover.pl-rr__cover--wide { object-fit: contain; background-color: var(--surface-raised); }

/* Row hover band on ranked and expandable lists (Fredrik 2026-11-26): the row under the mouse
   gets a band across its name, its bar and every figure, so a figure is read on its own row
   across a wide bar column. One look everywhere (Atlas 2026-11-26): the striped tables' row
   hover (rose-gold-soft, option C), as one solid colour, not surface-raised, which is too
   faint in Chalk. One rule for every list that marks its rows .pl-rowband; no radius, nothing
   moves. A table row paints its cells (they carry the padding); any other row paints itself
   and reaches --pl-band-reach (12 px) into the card padding on both sides with two flat,
   offset copies of itself (box-shadow, no blur). Inside the band:
   - --surface becomes the band colour, so hollow marks (a ring, a part-week dot) and halos
     stay hollow;
   - --parts-other becomes peer-line: the grey Other bar and trend line keep 3:1 on the band
     (parts-other is 2.70:1 on the Dark band);
   - the Discovery Queue bar gets a 1 px fjord-ink edge (source-dq is under 3:1 on the Chalk
     band).
   Hover only where the pointer can hover; keyboard focus on the row or on a control inside it
   (:focus-visible) gets the same band. An open row's own look (Trending games, UTM tracking)
   is more specific and wins. */

/* The band colour: rose-gold-soft laid over the card as one solid colour (Dark: the exact
   composite; Chalk: within 2/255 of it). Also the sticky first column's hover in bundles.css. */
:root { --rose-gold-soft-solid: color-mix(in srgb, var(--rose-gold) 13%, var(--surface)); }

@media (hover: hover) {
  .pl-rowband:hover { --surface: var(--rose-gold-soft-solid); --parts-other: var(--peer-line); }
  .pl-rowband:not(tr):hover { background-color: var(--rose-gold-soft-solid); box-shadow: calc(-1 * var(--pl-band-reach, var(--space-3))) 0 0 var(--rose-gold-soft-solid), var(--pl-band-reach, var(--space-3)) 0 0 var(--rose-gold-soft-solid); }
  tr.pl-rowband:hover > td, tr.pl-rowband:hover > th { background-color: var(--rose-gold-soft-solid); }
  .pl-sbars__row--dq.pl-rowband:hover .pl-sbars__track i { box-shadow: inset 0 0 0 1px var(--fjord-ink); }
}
.pl-rowband:is(:focus-visible, :has(:focus-visible)) { --surface: var(--rose-gold-soft-solid); --parts-other: var(--peer-line); }
.pl-rowband:not(tr):is(:focus-visible, :has(:focus-visible)) { background-color: var(--rose-gold-soft-solid); box-shadow: calc(-1 * var(--pl-band-reach, var(--space-3))) 0 0 var(--rose-gold-soft-solid), var(--pl-band-reach, var(--space-3)) 0 0 var(--rose-gold-soft-solid); }
tr.pl-rowband:has(:focus-visible) > td, tr.pl-rowband:has(:focus-visible) > th { background-color: var(--rose-gold-soft-solid); }
.pl-sbars__row--dq.pl-rowband:has(:focus-visible) .pl-sbars__track i { box-shadow: inset 0 0 0 1px var(--fjord-ink); }

/* Trending games: the row is the opener button, already rounded and reaching 4 px out. */
.pl-tg__row.pl-rowband { --pl-band-reach: 0px; }

/* Ranked lists drawn as one grid of cells (Sales: countries and languages; Wishlists: adds and
   conversion by country or language) get a real row box to paint: each row spans the grid and
   takes its columns from it (subgrid). The grids set no row gap; each row carries half of its
   grid's --pl-*-row-gap above and below, the header half below, and the list gives back the
   last row's half, so every cell sits where it sat before and nothing under the list moves. */
.pl-mk-rank__row, .pl-wl-bars__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.pl-mk-rank { margin-block-end: calc(var(--pl-mk-row-gap) / -2); }
.pl-mk-rank__row { padding-block: calc(var(--pl-mk-row-gap) / 2); }
.pl-mk-rank__h { padding-block-end: calc(var(--pl-mk-row-gap) / 2); }
.pl-wl-bars { margin-block-end: calc(var(--pl-wl-row-gap) / -2); }
.pl-wl-bars__row { padding-block: calc(var(--pl-wl-row-gap) / 2); }
.pl-wl-bars__h { padding-block-end: calc(var(--pl-wl-row-gap) / 2); }
/* A browser without subgrid: the cells go back into the grid with its row gap; no band box. */
@supports not (grid-template-columns: subgrid) {
  .pl-mk-rank__row, .pl-wl-bars__row { display: contents; }
  .pl-mk-rank { row-gap: var(--pl-mk-row-gap); margin-block-end: 0; }
  .pl-wl-bars { row-gap: var(--pl-wl-row-gap); margin-block-end: 0; }
  .pl-mk-rank__h, .pl-wl-bars__h { padding-block-end: 0; }
}

/* Class names pl-bld (Baseline day), not pl-bd: the Promotion Board owns pl-bd, and its lane names inherited this card's 600 weight (clean-up 2026-11-19). */
/* Sales overview, Baseline day (decision 2026-11-16-sales-baseline-day; mock-up sales-baseline-day v2, frame 1b; design sheet v3.47). No new token, colour or size. */
/* The head: the comparison wraps only between its two phrases; below 480 px it sits on its own line, without the dot. */
.pl-sh-label .pl-sh-date.pl-bld__cmp { white-space: normal; }
.pl-bld__nw { white-space: nowrap; }
@media (max-width: 479px) {
  .pl-sh-label .pl-sh-date.pl-bld__cmp { display: block; }
  .pl-bld__dot { display: none; }
}
/* A reason line may wrap in a narrow column; a pill never does. */
.pl-so .pl-sh-pair .pl-sh-line > .pl-bld__why { white-space: normal; }
/* States with no figures. */
.pl-bld__state { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-line); color: var(--ink); }
.pl-bld__state b { font-weight: 600; }
.pl-bld__act { justify-self: start; }
/* The (i): one paragraph per line, the products in a small table. */
.pl-bld-i { display: block; margin: 0 0 6px; }
.pl-bld-i:last-child { margin-bottom: 0; }
.pl-bld-i b { font-weight: 600; }
.pl-bld-i__t { width: 100%; margin: 2px 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pl-bld-i__t th, .pl-bld-i__t td { padding: 2px 8px 2px 0; border-bottom: 1px solid var(--hairline); text-align: right; font-weight: 400; white-space: nowrap; }
.pl-bld-i__t th:first-child { text-align: left; white-space: normal; }
.pl-bld-i__t thead th { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); white-space: normal; }
.pl-bld-i__t .pl-bld-i__total th, .pl-bld-i__t .pl-bld-i__total td { font-weight: 600; }
/* All games: Home's by-product table, one row per game, the pill under the figure. */
.pl-bld__ld { margin-top: 0; }
.pl-bld__game { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pl-bld__v { font-weight: 600; white-space: nowrap; }
.pl-bld__cell { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pl-bld__v .pl-sh-pill { margin-top: 2px; font-weight: 500; }
.pl-bld__mu { color: var(--ink-muted); font-weight: 400; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); white-space: nowrap; }
.pl-bld__span { text-align: left; color: var(--ink); }
.pl-cr__ld td.pl-bld__span { text-align: left; }

/* Sales, Markets, Local deep dive: the Country menu (Fredrik 2026-11-27). One or several
   countries ticked in a menu with a find box, then Show; several are read as one group. The
   closed control keeps the old select's look (border-strong edge, 32 px, weight 600); the
   open list is the context bar's menu (pl-ctx__pop) with the Events panel's tick rows.
   Phones: the list spans the card under the control, with 44 px rows and find box. The heading names up to 3 countries, then "+ N more",
   which opens the rest in place. Tokens only. */

.pl-mk-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); }
.pl-mk-cmenu { min-width: 0; max-width: 100%; }
.pl-mk-cmenu__ctl { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; min-block-size: 32px; padding: 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background-color: var(--surface); color: var(--ink); cursor: pointer; list-style: none; }
.pl-mk-cmenu__ctl::-webkit-details-marker { display: none; }
.pl-mk-cmenu__ctl b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pl-mk-cmenu__pop { display: flex; flex-direction: column; gap: var(--space-2); inline-size: min(320px, calc(100vw - 2 * var(--space-4))); max-height: none; overflow: visible; padding: var(--space-2); }
.pl-mk-cmenu__set { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.pl-mk-cmenu__set > legend { padding-inline: 0; }
.pl-mk-cmenu__find { inline-size: 100%; min-block-size: 36px; }
.pl-mk-cmenu__list { max-block-size: 288px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.pl-mk-cmenu__list label { display: flex; align-items: center; gap: var(--space-2); min-block-size: 36px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: var(--type-body-size); cursor: pointer; }
.pl-mk-cmenu__list label:has(input:checked:not(:disabled)) { background: var(--violet-tint); }
.pl-mk-cmenu__list input { flex: none; inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--violet); }
.pl-mk-cmenu__list [hidden] { display: none; }
.pl-mk-cmenu__none { margin: 0; padding: var(--space-2); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-mk-cmenu__none[hidden] { display: none; }
.pl-mk-cmenu__foot { display: flex; justify-content: flex-end; }

.pl-mk-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); }
.pl-mk-more > summary { display: inline-flex; align-items: center; min-block-size: 24px; color: var(--link); font-size: var(--type-body-sm-size); font-weight: 600; cursor: pointer; list-style: none; }
.pl-mk-more > summary::-webkit-details-marker { display: none; }
.pl-mk-more > p { margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

@media (max-width: 767.98px) {
  .pl-mk-picker { position: relative; }
  .pl-mk-picker .pl-mk-cmenu { position: static; }
  .pl-mk-cmenu__pop { inset-inline: 0; inline-size: auto; }
  .pl-mk-cmenu__find, .pl-mk-cmenu__list label { min-block-size: 44px; }
  .pl-mk-cmenu__list { max-block-size: 50vh; }
}

/* Sales, Launch (mock-up sales-launch-tab v1, Fredrik 2026-11-24). One card: the milestone
   table (the Home by-product table pattern), two-line rows on a phone, three small own-bar charts.
   Tokens only. Basis blocks are split by a card-edge rule; the 1.0 marker is a dashed tick in
   border-strong; a milestone not reached is a dashed outline, never a bar. */
.pl-sl { container-type: inline-size; }
.pl-sl > .pl-sh-head { margin: 0; }
.pl-sl__ip { display: block; margin: 0 0 6px; }
.pl-sl__ip:last-child { margin-bottom: 0; }
.pl-sl__ip b { font-weight: 600; }
.pl-sl__sub { margin: var(--space-1) 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }
.pl-sl__state { margin: var(--space-2) 0 var(--space-3); font-size: var(--type-body-size); line-height: 20px; color: var(--ink); }
.pl-sl__state b { font-weight: 600; }

/* the milestone table: the Home by-product table (.pl-cr__ld, home-chart-row.css), with only
   these differences: no top margin, tighter rows on the text baseline, one line per cell, the
   milestone and Compared with columns left-aligned */
.pl-sl__table.pl-cr__ld { margin-top: 0; }
.pl-sl__table th, .pl-sl__table td { padding: 7px 0 7px var(--space-4); vertical-align: baseline; line-height: 20px; font-weight: 400; white-space: nowrap; }
.pl-sl__table th:first-child, .pl-sl__table td:first-child { padding-left: 0; }
.pl-sl__table .pl-sl__l, .pl-sl__table tr.pl-sl__mark td { text-align: left; }
.pl-sl__table tr.pl-sl__gap th, .pl-sl__table tr.pl-sl__gap td { border-top: 1px solid var(--card-edge); }
.pl-sl__nm { font-weight: 600; color: var(--ink); }
.pl-sl__d { color: var(--ink-muted); font-size: var(--type-body-sm-size); }
.pl-sl__v, .pl-sl__x { font-weight: 600; color: var(--ink); }
.pl-sl__mu { color: var(--ink-muted); font-size: var(--type-body-sm-size); }
.pl-sl__table tr.pl-sl__mark td { padding-top: 5px; padding-bottom: 5px; color: var(--ink-muted); font-size: var(--type-body-sm-size); white-space: normal; }
.pl-sl__tick { display: inline-block; width: 10px; height: 0; margin-right: var(--space-2); border-top: 2px dashed var(--border-strong); vertical-align: middle; }

/* phone: two-line rows */
.pl-sl__rows { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.pl-sl__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); min-height: 44px; padding: var(--space-2) 0; border-bottom: 1px solid var(--hairline); }
.pl-sl__rows li:last-child { border-bottom: 0; }
.pl-sl__rows li.pl-sl__gap { border-top: 1px solid var(--card-edge); }
.pl-sl__a { font-weight: 600; }
.pl-sl__b { text-align: right; font-weight: 600; white-space: nowrap; }
.pl-sl__b.pl-sl__mu { font-weight: 400; }
.pl-sl__c { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-sl__e { text-align: right; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; }
.pl-sl__e b { color: var(--ink); font-weight: 600; font-size: var(--type-body-sm-size); }
.pl-sl__rows li.pl-sl__mark { display: block; min-height: 0; padding: 6px 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* the small charts: own scale each, the bar gradient on both measures */
.pl-sl__charts { display: grid; grid-template-columns: repeat(3, max-content); gap: 20px 40px; margin-top: 20px; padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.pl-sl__panel { min-width: 0; }
.pl-sl__ph { margin: 0 0 2px; font-size: var(--type-body-sm-size); line-height: 20px; font-weight: 600; }
.pl-sl__k { margin: 0 0 6px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-sl .pl-so-chart--sl { overflow: visible; }
.pl-sl__panel .pl-so-tick { font-size: var(--type-label-size); }
.pl-sl-unrep { stroke: none; }
.pl-sl-hatch { stroke: var(--border-strong); stroke-width: 1; opacity: 0.35; }
.pl-sl-ny { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }

/* a narrow card (a 1024 px window, a phone): dates under the name, the charts stacked */
@container (max-width: 720px) {
  .pl-sl__charts { grid-template-columns: minmax(0, 1fr); }
  .pl-sl__d { display: block; white-space: nowrap; }
  .pl-sl__dot { display: none; }
  .pl-sl__table th, .pl-sl__table td { padding-left: var(--space-3); }
  .pl-sl__table th:first-child, .pl-sl__table td:first-child { padding-left: 0; white-space: normal; }
}

/* PeerLight 2.0: the Wishlist sales card on Sales overview, under Net revenue per month (Fredrik 2026-11-16, mock-up sales-wishlist-sales v2 without the line-end labels; design sheet "Sales: Wishlist sales"). The head: heading with its (i), one chip, the figure row that is the chart's key, the 8 px split bar. The chart reuses the Net revenue card's parts (pl-cc-chart, pl-cc-band, pl-cc-tick); its three lines, the running-month box, the hover crosshair and dots are here. Tokens only. */

.pl-ws { container: plws / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; padding: 20px 22px var(--space-4); }
.pl-ws__head { display: grid; gap: var(--space-2); min-width: 0; }
.pl-ws__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pl-ws__ip { display: block; margin: 0 0 6px; }
.pl-ws__ip:last-child { margin-bottom: 0; }
.pl-ws__ip b { font-weight: 600; }

/* The figure row: the split and the chart's key in one. */
.pl-ws__split { display: grid; grid-template-columns: repeat(3, max-content); gap: var(--space-1) var(--space-6); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.pl-ws__split li { display: flex; flex-direction: column; min-width: 0; }
.pl-ws__k { display: inline-flex; align-items: center; font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 500; color: var(--ink); }
.pl-ws__v { font-size: var(--type-metric-heading-size); line-height: var(--type-metric-heading-line); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-ws__v small { margin-inline-start: 6px; font-size: var(--type-body-size); font-weight: 500; color: var(--ink-muted); }
.pl-ws__sw { display: inline-block; flex: none; width: 14px; height: 3px; margin-inline-end: var(--space-2); border-radius: 2px; background-color: var(--you); }
.pl-ws__sw--violet-pale { background-color: var(--violet-pale); }
.pl-ws__sw--parts-other { background-color: var(--parts-other); }
.pl-ws__bar { display: flex; gap: 2px; height: 8px; max-width: 560px; margin: var(--space-3) 0 0; }
.pl-ws__bar span { display: block; height: 100%; }
.pl-ws__bar-wl { background-color: var(--violet-pale); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pl-ws__bar-ot { background-color: var(--parts-other); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pl-ws__note { margin: var(--space-2) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* The chart. */
.pl-ws__chart { margin-top: 14px; min-width: 0; }
.pl-ws-grid { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-ws-run { fill: var(--promo-soft); stroke: var(--promo); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-ws-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-ws-line--you { stroke: var(--you); stroke-width: 2.25; }
.pl-ws-line--violet-pale { stroke: var(--violet-pale); }
.pl-ws-line--parts-other { stroke: var(--parts-other); }
.pl-ws-pt, .pl-ws-ring, .pl-ws-ring-in, .pl-ws-hring, .pl-ws-hdot { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-ws-pt { stroke-width: 4; }
.pl-ws-pt--you, .pl-ws-ring--you, .pl-ws-hdot--you { stroke: var(--you); }
.pl-ws-pt--violet-pale, .pl-ws-ring--violet-pale, .pl-ws-hdot--violet-pale { stroke: var(--violet-pale); }
.pl-ws-pt--parts-other, .pl-ws-ring--parts-other, .pl-ws-hdot--parts-other { stroke: var(--parts-other); }
.pl-ws-ring { stroke-width: 10; }
.pl-ws-ring-in { stroke: var(--surface); stroke-width: 6; }
/* Hover: the crosshair and a dot on each line of the bucket under the pointer (the area right before it). */
.pl-ws-hov { visibility: hidden; pointer-events: none; }
.pl-ws-cross { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-ws-hring { stroke: var(--surface); stroke-width: 12; }
.pl-ws-hdot { stroke-width: 8; }
.pl-ws .pl-sh-hit:hover + .pl-ws-hov { visibility: visible; }

/* A key line only for what a state draws. */
.pl-ws__key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) 14px; margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-ws__key li { display: inline-flex; align-items: center; }
.pl-ws__run { display: inline-block; flex: none; width: 12px; height: 10px; margin-inline-end: 6px; border-radius: 2px; background-color: var(--promo-soft); border: 1.5px solid var(--promo); }

/* The table, in a fold. */
.pl-ws__fold { margin-top: var(--space-2); }
.pl-ws__fold > summary { display: inline-flex; align-items: center; min-height: 24px; cursor: pointer; color: var(--link); font-size: var(--type-body-sm-size); font-weight: 500; }
.pl-ws__fold .pl-table-wrap { margin-top: 6px; }
.pl-ws__table th { white-space: normal; vertical-align: bottom; }
.pl-ws__table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-ws__m { color: var(--ink-muted); }

/* A state: one sentence, no chart, no zeros. */
.pl-ws__state { margin: var(--space-4) 0 var(--space-1); padding: 14px var(--space-4); border: 1px dashed var(--card-edge); border-radius: var(--radius-md); color: var(--ink); font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-ws__meta { display: block; margin-top: var(--space-1); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); }

/* Phones: the figure row one per line, label left, value right, a hairline between. */
@container plws (max-width: 560px) {
  .pl-ws__split { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--space-3); }
  .pl-ws__split li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 6px 0; border-bottom: 1px solid var(--hairline); }
  .pl-ws__split li:last-child { border-bottom: 0; }
  .pl-ws__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); }
  .pl-ws__bar { max-width: none; margin-top: var(--space-2); }
}
@media (max-width: 767px) {
  .pl-ws { padding: 14px 14px var(--space-3); }
  .pl-ws__table { font-size: var(--type-label-size); }
  .pl-ws__table th, .pl-ws__table td { padding-inline-start: 6px; }
  .pl-ws__table td:first-child { white-space: normal; } /* a long week (across a year, or the short first week with its days) wraps in the sticky first column */
}

/* Sidebar groups (Fredrik 2026-11-26, mock-ups sidebar-groups v3 and charged-chrome v1): Home,
   then the "Studio data", "Studio tools" and "Market data" groups, each under a header on a
   tinted rounded box (13 px bold, white in Dark, ink in Chalk; icon and chevron) that folds its
   group, and the PeerLight view block between Studio data and Studio tools with violet lines
   above and below that fade at both ends (variant C, an approved exception to the one-ornament
   rule). A folded group keeps its current row and shows its waiting count on the header
   (side-groups.js remembers it per browser). Folded to 64 px, each header is a hairline named
   for screen readers and every row shows. Tokens only. */

.pl-side__grp { margin-top: 12px; }
.pl-side__grp > .pl-side__list { margin-top: 4px; }

.pl-side__ghead {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 0 6px 0 12px;
  border: 0; border-radius: var(--radius-md); background: var(--chrome-group-fill); color: var(--chrome-group-ink);
  font: var(--type-nav-group-weight) var(--type-nav-group-size)/var(--type-nav-group-line) var(--font-sans); text-align: left; cursor: pointer;
}
.pl-side__ghead svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-side__glabel { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-side__chev { display: inline-flex; flex: none; }
.pl-side__ghead[aria-expanded="false"] .pl-side__chev svg { transform: rotate(-90deg); }
@media (hover: hover) {
  .pl-side__ghead:hover { background: var(--chrome-hover-fill); outline: 1px solid var(--chrome-hover-line); outline-offset: -1px; }
}
.pl-side__ghead:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* The waiting count on the header shows only while the group is folded (its row then hides). */
.pl-side__gpill { margin-left: 0; }
.pl-side__ghead[aria-expanded="true"] .pl-side__gpill,
.pl-side__ghead[aria-expanded="true"] .pl-side__gpill-sr { display: none; }

/* A folded group: only its current row stays. Never while the whole menu is folded to icons. */
.pl-shell:not(.is-folded) .pl-side__grp.is-closed > .pl-side__list > li:not(.is-here) { display: none; }
.pl-shell:not(.is-folded) .pl-side__grp.is-closed > .pl-side__list:not(:has(> li.is-here)) { display: none; }

/* The hairline that stands for a header in the menu folded to icons. */
.pl-side__ghair { display: none; margin: 0; }
.is-folded .pl-side__grp { margin-top: 0; }
.is-folded .pl-side__ghead { display: none; }
.is-folded .pl-side__ghair { display: block; height: 1px; margin: 5px 6px; background: var(--chrome-edge); }

/* The PeerLight view block, variant C. Its label in ink at 600, the lens in its real colours
   (nav-peer-view-lens.css). */
.pl-side__view { position: relative; margin-top: 12px; padding: 6px 0; }
.pl-side__view::before, .pl-side__view::after { content: ""; position: absolute; left: 8px; right: 8px; height: 1px; background-image: linear-gradient(90deg, transparent, var(--chrome-pv-line) 50%, transparent); pointer-events: none; }
.pl-side__view::before { top: 0; }
.pl-side__view::after { bottom: 0; }
.pl-side__view .pl-side__link:not([aria-current="page"]) { color: var(--chrome-ink); font-weight: 600; }
.is-folded .pl-side__view { margin-top: 4px; }

/* The count pill in a row: 5 px either side of its figure, so "99+" leaves the label 8 px. */
.pl-side .pl-side__link .pl-count-pill, .pl-side__ghead .pl-count-pill { padding: 0 5px; }
.is-folded .pl-side__link .pl-count-pill { padding: 0 var(--space-1); }

/* On glass the sidebar's edge is its inset line (glass.css, chrome-charged.css), as drawn: no
   second 1 px border, so a row is the full 216 or 240 px the label fit was measured on. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pl-glass .pl-side { border-right-width: 0; }
}

/* Forecast events: a date range never wraps inside itself ("Nov 14-20, 2026" stays on one line). */
.pl-fe__table td.n {
  white-space: nowrap;
}

/* Staff: Forecast events waiting for evaluation, a list instead of an 8-column table (mock-up
   2026-11-17_forecast-events v1, section 3; Fredrik 2026-11-17). Evaluate at the top right of
   every event at every width; its form under the event at the card's full width. Tokens only. */
.pl-fe { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.pl-fe > li { border-top: 1px solid var(--hairline); padding: 14px 0; }
.pl-fe > li:first-child { border-top: 0; padding-top: var(--space-1); }
.pl-fe__r1 { display: flex; gap: 6px var(--space-3); align-items: flex-start; justify-content: space-between; }
.pl-fe__t { min-width: 0; }
.pl-fe__g { display: block; color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: 18px; }
.pl-fe__nm { display: block; font-weight: 600; color: var(--ink); }
.pl-fe__m { display: block; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-fe__dates { white-space: nowrap; }
.pl-fe__ink { color: var(--ink); }
.pl-fe__eval { flex: none; min-height: 28px; }
.pl-fe__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.5fr); gap: var(--space-1) 20px; margin-top: 10px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); overflow-wrap: anywhere; }
.pl-fe__h { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); }
.pl-fe__h abbr { text-decoration: none; }
.pl-fe .pl-fe__form { display: grid; gap: var(--space-3); min-width: 0; margin: var(--space-3) 0 0; padding: 14px var(--space-4); background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.pl-fe__form:focus { outline: none; }
.pl-fe__form:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-fe__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-fe__lg { display: block; font-size: var(--type-body-sm-size); font-weight: 500; padding: 0; margin-bottom: var(--space-1); color: var(--ink); }
.pl-fe__radios { display: flex; flex-wrap: wrap; gap: 6px var(--space-4); font-size: var(--type-body-sm-size); }
.pl-fe__radios label { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.pl-fe__ps { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); }
.pl-fe__ps label { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--type-label-size); color: var(--ink-muted); }
.pl-fe__input, .pl-fe__form textarea { height: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 400 var(--type-body-size)/20px var(--font-sans); padding: 0 10px; font-variant-numeric: tabular-nums; }
.pl-fe__ps .pl-fe__input { width: 96px; }
.pl-fe__form textarea { display: block; width: 100%; height: auto; min-height: 36px; padding: 7px 10px; resize: vertical; }
.pl-fe__help { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); margin: var(--space-1) 0 0; }
.pl-fe__foot { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }
.pl-fe__foot .pl-btn--quiet { padding-inline: var(--space-2); }
@media (max-width: 767.98px) {
  .pl-fe__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .pl-fe .pl-fe__form { padding: var(--space-3); }
  .pl-fe__ps .pl-fe__input { width: 80px; }
}

/* --- Store traffic upload, the staff page (mock-up staff-traffic-upload v2, PR 1; Fredrik 2026-11-12) ---
   In the app shell like Invites: the People layout (people.css) for keys and the file upload,
   .pl-table-wrap for every table (the page never scrolls sideways), .pl-notice for results.
   Existing tokens only. */

.pl-tu-fig { font-variant-numeric: tabular-nums; }
.pl-tu-nw { white-space: nowrap; }
.pl-tu-muted { color: var(--ink-muted); }
.pl-tu-mono { font-family: var(--font-mono); font-size: var(--type-label-size); }
.pl-tu-none { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

/* The games section: heading with the page count on the right. */
.pl-tu-games { min-width: 0; }
.pl-tu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4); }
.pl-tu-head .pl-heading { margin: 0; }
.pl-tu-count { color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-variant-numeric: tabular-nums; }

/* Notices with more than one line: the icon at the top, a body of stacked lines. */
.pl-tu-notice { align-items: flex-start; }
.pl-tu-notice > svg.pl-icon { margin-top: 3px; }
.pl-tu-notice__body { min-width: 0; flex: 1; display: grid; gap: var(--space-2); }
.pl-tu-notice__body p { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-tu-notice__body .pl-heading { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-line); }
.pl-tu-notice__body .pl-table th { background: transparent; }
.pl-tu-notice__body .pl-btn { justify-self: start; }
.pl-tu-list { margin: 0; padding-left: var(--space-5); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-tu-block { margin: 0 0 var(--space-3); }
.pl-tu-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2) var(--space-3); margin: 0; }

/* The alert box over the games (mock-up data-not-arriving-alerts v2): clay edge, a sign, words. */
.pl-tu-alerts {
  margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4);
  background-color: var(--surface); border: 1px solid var(--card-edge); border-left: 3px solid var(--critical-ink); border-radius: var(--radius-md);
}
.pl-tu-alerts__title {
  margin: 0 0 6px; display: flex; gap: var(--space-2); align-items: flex-start;
  font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 600;
}
.pl-tu-alerts__title svg.pl-icon { margin-top: 3px; color: var(--critical-ink); }
.pl-tu-alerts ul { margin: 0; padding-left: var(--space-5); display: grid; gap: 6px; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
/* All arriving (PR 2): the same box with the good edge and a tick, one line. */
.pl-tu-alerts--fine { border-left-color: var(--good-ink); }
.pl-tu-alerts--fine .pl-tu-alerts__title { margin: 0; }
.pl-tu-alerts--fine .pl-tu-alerts__title svg.pl-icon { color: var(--good-ink); }
/* Some games have nothing on file yet and nothing else is wrong: a neutral line, no box. */
.pl-tu-quiet {
  display: flex; gap: var(--space-2); align-items: flex-start; margin: 0 0 var(--space-3);
  color: var(--ink-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
}
.pl-tu-quiet svg.pl-icon { margin-top: 2px; }
.pl-tu-alerts .pl-tu-bm-row { display: flex; margin: 6px 0 0; }
.pl-tu-alerts .pl-btn { min-height: 32px; font-size: var(--type-body-sm-size); }
.pl-tu-alerts code, .pl-tu-console code { font-family: var(--font-mono); font-size: var(--type-label-size); }

/* Tables: inside their own scroll box; the games table keeps 760 px and scrolls inside it. */
.pl-card.pl-tu-card { min-width: 0; padding: 0; }
.pl-tu-card > .pl-table-wrap { border-radius: var(--radius-lg); }
/* Inside a card or a notice, a table keeps to its box on phones: no bleed past the edge (as home-chart-row). */
.pl-tu-card .pl-table-wrap, .pl-tu-notice__body .pl-table-wrap { margin-inline: 0; padding-inline: 0; }
.pl-tu-table th { white-space: nowrap; }
.pl-tu-table td.n, .pl-tu-table th.n { font-variant-numeric: tabular-nums; }
.pl-tu-table td.d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-tu-table td small { color: var(--ink-muted); font-size: var(--type-label-size); }
.pl-tu-table tbody tr:last-child td { border-bottom: 0; }
.pl-tu-table form { margin: 6px 0 0; }
.pl-tu-table .pl-btn { min-height: 32px; padding: 0 10px; font-size: var(--type-body-sm-size); }
.pl-tu-table--games { min-width: 760px; }
.pl-tu-table--games td:nth-child(7) { min-width: 180px; }
.pl-tu-flag { display: block; white-space: normal; min-width: 120px; color: var(--critical-ink); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-tu-flag::before { content: "\25B2\00a0"; }

/* Upload keys: the new key, shown once. */
.pl-tu-newkey { margin: 0 0 var(--space-4); }
.pl-tu-key {
  display: block; padding: var(--space-2) 10px; border-radius: var(--radius-sm); background-color: var(--status-soft);
  font-family: var(--font-mono); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line);
  overflow-wrap: anywhere; user-select: all;
}

/* File upload: the numbered steps, the bookmark buttons, the history line and the console help. */
.pl-tu-steps { margin: 0; padding-left: 20px; display: grid; gap: var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-tu-steps li::marker { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-tu-bm-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 6px 0 2px; }
.pl-tu-bm-row small { color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-tu-hint { display: block; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }
.pl-tu-more { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.pl-tu-more p { margin: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.pl-tu-more .pl-tu-bm-row { margin: 0; }
.pl-tu-more summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; color: var(--link); font-size: var(--type-body-sm-size); }
.pl-tu-console { margin-top: 6px; }
.pl-tu-more textarea {
  display: block; width: 100%; height: 120px; margin-top: var(--space-2); padding: var(--space-2);
  font-family: var(--font-mono); font-size: var(--type-label-size); line-height: var(--type-label-line);
  color: var(--ink); background-color: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
}

/* The upload form: the select as on Invites' form; the file field is the shared one (file-field.css). */
.pl-tu-form { display: grid; gap: var(--space-4); }
.pl-tu-form .pl-people__send { margin-top: 0; }
.pl-tu-people .pl-people__fld select {
  display: block; width: 100%; min-height: 36px; padding: 6px 10px; color: var(--ink);
  background-color: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: var(--type-body-size); line-height: 20px;
}
.pl-tu-people .pl-people__fld .helptext { margin: var(--space-1) 0 0; color: var(--ink-muted); font-size: var(--type-label-size); line-height: var(--type-label-line); }

@media (max-width: 767.98px) {
  .pl-tu-alerts { padding: var(--space-3); }
  .pl-tu-alerts ul { padding-left: 18px; }
  .pl-tu-table .pl-btn, .pl-tu-notice__body .pl-btn, .pl-tu-alerts .pl-btn { min-height: 40px; }
}

/* Last uploads below 1280 (its column is about 340 px wide at 375 and at 1024): the time under the
   day, Kind on one line, 4 px each side of a cell, so the key's name in By fits without scrolling
   (design owner, review of PR 917). */
@media (max-width: 1279.98px) {
  .pl-tu-when span { display: block; }
  .pl-tu-table--last th, .pl-tu-table--last td { padding-inline: var(--space-1); }
  .pl-tu-table--last thead th, .pl-tu-table--last tr > :first-child { min-width: 0; }
  .pl-tu-table--last th:first-child, .pl-tu-table--last td:first-child { padding-left: var(--space-3); }
  /* 12 px before By, so Reports and By never read as one value. */
  .pl-tu-table--last .pl-tu-by { padding-left: var(--space-3); }
}

/* Demo installs and wishlist adds (mock-up 2026-11-18 demo-downloads-vs-wishlists v1, layout A): the keys
   under the two panels, swatches on every width (no line-end labels, review F4), and the house
   "Too few demo installs" line in place of the figure. Tokens only. */
.pl-diw-key { margin-block-start: var(--space-2); }
.pl-legend i.pl-diw-sw { width: 14px; height: 3px; border-radius: 2px; background-color: var(--you); }
.pl-legend i.pl-diw-sw--installs { background-color: var(--parts-other); }
.pl-legend i.pl-diw-sw--period { height: 0; border-radius: 0; background-color: transparent; border-top: 2px dashed var(--parts-other); }
.pl-legend i.pl-diw-sw--few { width: 3px; height: 10px; border-radius: 1px; margin-inline: 5px; background-color: var(--parts-other); }
.pl-diw__state { font: var(--type-body-weight) var(--type-body-size)/var(--type-body-line) var(--font-sans); color: var(--ink); }
.pl-dm-upd.pl-diw__upd { margin-block-start: var(--space-3); }
.pl-diw__note { margin: 0; font: var(--type-body-sm-weight) var(--type-body-sm-size)/var(--type-body-sm-line) var(--font-sans); color: var(--ink-muted); }

/* Players and playtime (Demo tab slice 6, mock-up demo-tab v2.3): the key swatch of the
   open-ended last bucket, drawn as the chart draws it: a dashed outline with a pale fill. */
.pl-dm-key__open {
  background-color: color-mix(in srgb, var(--you) 35%, transparent);
  border: 1px dashed var(--you);
  box-sizing: border-box;
}
/* The second panel of the game card: wishlist adds per 100 daily demo players. */
.pl-dm-panel--next { margin-block-start: var(--space-3); }
/* The game card's one figure takes the whole row, on a phone too (its name is long). */
.pl-dm-figs.pl-dm-figs--1 { grid-template-columns: minmax(0, 1fr); }

/* After a demo update (Demo tab, mock-up demo-tab v2.3): the line under Wishlist adds per 100
   daily demo players. Facts only, so no colour and no sign: the first line in ink, the figures and
   "Also those days" muted, each line its own paragraph that may wrap. Tokens only. */
.pl-dm-upd { display: grid; gap: 2px; margin: calc(-1 * var(--space-1)) 0 0; max-width: 760px; min-width: 0; }
.pl-dm-upd > p { margin: 0; font: 400 var(--type-body-sm-size)/var(--type-body-sm-line) var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-muted); overflow-wrap: anywhere; }
.pl-dm-upd > p.pl-dm-upd__head { font-weight: 500; color: var(--ink); }

/* 2.0: Store traffic, CTR overview (mock-up store-traffic-ctr-overview v1, Fredrik 2026-11-16;
   design sheet ranked-placements). Two figures, then the 20 placements by impressions: a table
   with a flat impressions bar in the studio's own colour (no gradient: the bar gradient is for
   vertical bars only), a list without bars on a phone. Thin rows are grey with words; the change
   is the house pill. Tokens only. */

.pl-ctro { min-width: 0; }
.pl-ctro__figs { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-7); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.pl-ctro__figs li { display: flex; flex-direction: column; min-width: 0; }
.pl-ctro__k { font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-ctro__v { font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-ctro__note { margin: var(--space-2) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

.pl-ctro .pl-table-wrap { margin-top: var(--space-3); }
.pl-ctro__tbl { font-variant-numeric: tabular-nums; }
.pl-ctro__tbl td.n, .pl-ctro__tbl th.n { white-space: nowrap; }
.pl-ctro__tbl th { vertical-align: bottom; }
.pl-ctro__tbl .pl-ctro__rk { width: 28px; padding-right: 0; color: var(--ink-muted); }
.pl-ctro__pl { min-width: 0; overflow-wrap: anywhere; }
.pl-ctro__name { color: var(--ink); font-weight: 500; }
.pl-ctro__src { color: var(--ink-muted); }
.pl-ctro__ctr { font-weight: 600; color: var(--ink); }
.pl-ctro__thin { font-weight: 400; color: var(--ink-muted); }
.pl-ctro__few { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-ctro__dash { color: var(--ink-muted); }
/* The flat bar: violet, 8 px, square at the axis, rounded at the data end, scaled to row 1. */
.pl-ctro__tbl .pl-ctro__b { width: 120px; padding-left: var(--space-2); }
.pl-ctro__bar { display: block; height: 8px; margin-top: 6px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background-color: var(--you); }
.pl-ctro__quiet .pl-ctro__qh { padding-top: var(--space-4); color: var(--ink-muted); font-weight: 600; background-color: transparent; }
.pl-ctro__basis { margin: var(--space-2) 0 0; font-family: var(--font-mono); font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }

/* Phone: one line per placement, rank | name, source and counts | rate over its change. */
.pl-ctro__list { margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.pl-ctro__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0 var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.pl-ctro__list li:last-child { border-bottom: 0; }
.pl-ctro__list .pl-ctro__rk { font-size: var(--type-label-size); line-height: 20px; text-align: right; color: var(--ink-muted); }
.pl-ctro__nm { min-width: 0; overflow-wrap: anywhere; font-size: var(--type-body-size); line-height: 20px; }
.pl-ctro__sub2 { display: block; font-size: var(--type-label-size); line-height: 18px; color: var(--ink-muted); }
.pl-ctro__rt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.pl-ctro__list .pl-ctro__few { text-align: right; }
h3.pl-ctro__qh { margin: var(--space-4) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); }

/* 2.0: Store traffic, CTR overview: the No impressions from Steam group gets its own column
   labels, share of all visits and change in visits a day (mock-up ctr-overview-dq-group v1,
   Fredrik 2026-11-17). Desktop: the group heading row carries the labels under a card-edge rule.
   Phone: the share in the muted line under the name, the change on the right. Tokens only. */

.pl-ctro__quiet .pl-ctro__qhr > th,
.pl-ctro__quiet .pl-ctro__qhr > td { border-top: 1px solid var(--card-edge); padding-top: var(--space-4); vertical-align: bottom; background-color: transparent; }
.pl-ctro__quiet .pl-ctro__ql { font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.pl-ctro__quiet .pl-ctro__qh { font-size: var(--type-label-size); line-height: var(--type-label-line); text-align: left; }
.pl-ctro__quiet th.pl-ctro__qn { text-align: left; font-weight: 400; color: var(--ink); background-color: transparent; }
.pl-ctro__share { color: var(--ink); }

/* Phone: the group under a card-edge rule, its change label on one muted line below. */
h3.pl-ctro__qh { padding-top: var(--space-3); border-top: 1px solid var(--card-edge); }
.pl-ctro__qh2 { margin: 2px 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-ctro__list--quiet { margin-top: var(--space-1); }

/* CTR overview: the change in percent, the CTR pair, visits gained or lost and the sort (mock-up ctr-change-incremental-visits v1, option A; Fredrik 2026-11-17). Tokens only. */
.pl-ctro__sorted { min-width: 0; }
.pl-ctro__sortnote { margin: var(--space-3) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-ctro__sortnote + .pl-table-wrap { margin-top: var(--space-1); }

/* Sortable headings: real links, the arrow in link violet on the sorted one. */
.pl-ctro__tbl th .pl-ctro__sort { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-1); min-height: 24px; color: inherit; text-decoration: none; }
.pl-ctro__tbl th .pl-ctro__sort:hover { color: var(--ink); }
.pl-ctro__ar { display: inline-block; min-width: 0.75em; font-size: var(--type-label-size); color: var(--link); }

/* The Impression CTR cell: before in grey, then now. */
.pl-ctro__pair { white-space: nowrap; }
.pl-ctro__was { font-weight: 400; color: var(--ink-muted); }

/* Visits gained or lost: muted when grey, bold in the row's colour when coloured. */
.pl-ctro__gain { color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-ctro__gain--up { color: var(--good-ink); font-weight: 600; }
.pl-ctro__gain--down { color: var(--critical-ink); font-weight: 600; }
.pl-ctro__gain--line { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); }

/* The phone's Sort switch. */
.pl-ctro__seg { flex-wrap: wrap; gap: var(--space-1); align-items: center; margin: var(--space-3) 0 0; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); }
.pl-ctro__segk { margin-right: var(--space-1); }
.pl-ctro__seg a { display: inline-flex; align-items: center; min-height: 28px; padding: var(--space-1) 10px; border: 1px solid var(--card-edge); border-radius: var(--radius-pill); color: var(--ink); font-weight: 500; text-decoration: none; }
.pl-ctro__seg a[aria-current="true"] { background-color: var(--surface-raised); border-color: var(--you); }
@media (max-width: 767.98px) { .pl-ctro__seg { display: flex; } }

/* Nine columns (design review of PR 1030): names break only between words and keep 11em; the number headings wrap at every desktop width (the rank heading stays narrow); under 1240 px the bar narrows and the padding shrinks. */
.pl-ctro__tbl .pl-ctro__pl { overflow-wrap: break-word; min-width: 11em; }
.pl-ctro__tbl thead th.n:not(.pl-ctro__rk) { white-space: normal; min-width: 4.5em; }
.pl-ctro__tbl th .pl-term { white-space: normal; }
.pl-ctro__tbl thead th .pl-ctro__sort { text-align: right; }
.pl-ctro__quiet .pl-ctro__ql { white-space: normal; }
@media (max-width: 1239.98px) {
  .pl-ctro__tbl .pl-ctro__b { width: 48px; }
  .pl-ctro__tbl .pl-ctro__pl .pl-ctro__src { display: block; }
  .pl-ctro__tbl .pl-ctro__pl .pl-ctro__dot { display: none; }
  .pl-ctro__tbl th, .pl-ctro__tbl td { padding-left: var(--space-2); padding-right: var(--space-2); }
  .pl-ctro__tbl .pl-ctro__rk { padding-right: 0; }
  .pl-ctro__tbl td.n, .pl-ctro__tbl th.n { padding-left: var(--space-1); padding-right: var(--space-1); }
}

/* A/B comparison: visits gained or lost under the Change pill of an Impression CTR row (Atlas, review of PR 1030), as CTR overview's phone line. */
.pl-abm__gain { display: block; margin-top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-abm__gain--up { color: var(--good-ink); font-weight: 600; }
.pl-abm__gain--down { color: var(--critical-ink); font-weight: 600; }

/* CTR overview on a phone: the line that names the pair and the comparison above the list (design review of PR 1033, item 3). The quiet group line style (store-ctr-overview-dq.css), with room under the Sort switch. */
.pl-ctro__phkey { margin-top: var(--space-2); }

/* CTR overview: a placement Steam reports under two names, counted as one (mock-up ctr-change-incremental-visits v1, option A; Fredrik 2026-11-17). The muted note, the Show both link-style button, and the two names as muted child rows. Tokens only. */
.pl-ctro__split { display: block; margin-top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }
.pl-ctro__disc { display: inline-flex; align-items: center; min-height: 24px; padding: var(--space-1) 0; border: 0; background: none; color: var(--link); font-family: inherit; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 500; cursor: pointer; }
.pl-ctro__disc:hover { text-decoration: underline; }
.pl-ctro__child[hidden] { display: none; }
.pl-ctro__tbl tr.pl-ctro__child td { color: var(--ink-muted); border-bottom-style: dashed; }
.pl-ctro__tbl tr.pl-ctro__child .pl-ctro__name { color: var(--ink-muted); font-weight: 400; }
.pl-ctro__tbl tr.pl-ctro__child .pl-ctro__pl { padding-left: 30px; }
.pl-ctro__child .pl-ctro__ctr { font-weight: 400; color: var(--ink-muted); }
.pl-ctro__list li.pl-ctro__child { border-bottom-style: dashed; }
.pl-ctro__list li.pl-ctro__child .pl-ctro__rt { text-align: right; }

/* Fredrik 2026-11-18: with the shorter "No impressions before" pill and no source line, the gap before the Impression CTR column widens at 1024 to 1279 px and from 1280 px, so the columns sit evenly. */
/* Design review of PR 1031: the change column gets the same gap, so every gap after Visits stays even however wide a pill is; at 1024 to 1279 px a flat pill ("No impressions before") wraps, and the bar never shrinks to nothing. */
@media (min-width: 1024px) {
  .pl-ctro__tbl th.n.pl-ctro__ctrc, .pl-ctro__tbl td.n.pl-ctro__ctrc,
  .pl-ctro__tbl th.n.pl-ctro__chgc, .pl-ctro__tbl td.n.pl-ctro__chgc { padding-left: var(--space-5); }
}
@media (min-width: 1280px) {
  .pl-ctro__tbl th.n.pl-ctro__ctrc, .pl-ctro__tbl td.n.pl-ctro__ctrc,
  .pl-ctro__tbl th.n.pl-ctro__chgc, .pl-ctro__tbl td.n.pl-ctro__chgc { padding-left: var(--space-6); }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .pl-ctro__tbl td.pl-ctro__chgc .pl-sh-pill--flat { white-space: normal; max-width: 9em; text-align: center; }
}
.pl-ctro__tbl td.pl-ctro__b, .pl-ctro__tbl th.pl-ctro__b { min-width: 48px; }

/* No impressions this period (mock-up ctr-no-impressions-now v2, Fredrik 2026-11-18): the left-out line's style under the table. Closed: one line on desktop, the names shrink with an ellipsis, the lead, figures, commas and "+ N more" never do; two rows of names only on a phone. Open: every name and figure, wrapping. */
.pl-ctro__gone { margin-top: var(--space-3); max-width: none; font-variant-numeric: tabular-nums; }
.pl-ctro__gone[hidden] { display: none; }
.pl-ctro__gone--c { display: flex; flex-wrap: nowrap; align-items: baseline; white-space: nowrap; min-width: 0; }
.pl-ctro__gone--c .pl-ctro__grow { display: contents; }
.pl-ctro__gone--c .pl-ctro__glead, .pl-ctro__gone--c .pl-ctro__gf, .pl-ctro__gone--c .pl-ctro__gsep, .pl-ctro__gone--c .pl-ctro__gmore { flex: none; }
.pl-ctro__gone--c .pl-ctro__glead { margin-right: 0.3em; }
.pl-ctro__gone--c .pl-ctro__gn { flex: 0 1 auto; min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; }
.pl-ctro__gone--c .pl-ctro__gf { margin-left: 0.3em; }
.pl-ctro__gone--c .pl-ctro__gsep { margin-right: 0.3em; }
.pl-ctro__gone--c .pl-ctro__gmore { margin-left: 0.4em; }
.pl-ctro__gone--o .pl-ctro__gf { white-space: nowrap; }
.pl-ctro__gmore { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 0; border: 0; background: none; color: var(--link); font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; }
.pl-ctro__gmore:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
  .pl-ctro__gone--c { display: block; }
  .pl-ctro__gone--c .pl-ctro__grow { display: flex; flex-wrap: nowrap; align-items: baseline; min-width: 0; }
  .pl-ctro__gone--c .pl-ctro__gf { display: none; }
}
/* A/B By placement: the line in its own row, kept from widening the table. */
.pl-abm__gone td { border-bottom: 1px solid var(--card-edge); }
.pl-abm__gone .pl-ctro__gonew { width: 0; min-width: 100%; overflow: hidden; }
.pl-abm__gone .pl-ctro__gone { margin: 0; }
.pl-ctro__gone--o .pl-ctro__gmore { margin-left: 0.4em; }
/* A/B By placement: the merged row's note (design review of PR 1031, item 5). */
.pl-abm__split { display: block; margin-top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); }

/* Store page funnel: the Count switch under the head (All days / Baseline days only, Fredrik
   2026-11-26), A/B comparison's pills and key word (components.css .pl-scope, ab-comparison.css
   .pl-abm__k). On a phone the pills may wrap below the key word rather than scroll. Tokens only. */

.pl-tfn__count { margin: 0 0 var(--space-3); }
.pl-tfn__count .pl-scope { max-width: 100%; flex-wrap: wrap; }

/* Store traffic overview: a placement Steam moved to another source, counted under its old source (mock-up store-traffic-mlt-merged v1, option A; Fredrik 2026-11-18). The note in CTR overview's style, under the source name in the list and in Every source; the pointer row at the end of the source Steam moved it to. Tokens only. */
.pl-tsources__split { display: block; margin-top: 2px; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); white-space: normal; }
.pl-sbars__row .pl-tsources__split { padding-bottom: var(--space-1); }
.pl-tsources__src .pl-tsources__split { padding-left: calc(var(--space-3) + 18px); }
.pl-table .pl-tsources__ptr td { padding-left: 56px; text-align: left; white-space: normal; font-size: var(--type-label-size); line-height: var(--type-label-line); color: var(--ink-muted); background: var(--violet-tint); }
.pl-table .pl-tsources__ptr td:first-child { border-left: 3px solid var(--violet); }
@media (max-width: 767.98px) {
  .pl-tsources--fold tr.pl-tsources__ptr { display: block; padding-left: 50px; background: var(--violet-tint); border-left: 3px solid var(--violet); }
  .pl-table.pl-tsources--fold .pl-tsources__ptr td { padding-left: 0; border-left: 0; background: none; box-shadow: none; width: auto; max-width: none; }  /* one line of words across the row, no column rule */
}
/* From 1024 px the change keeps its arrow and figure on one line; the longer part names wrap instead (at 1024 px the child "More Like This · Other Product Pages · from Oct 29" widened the Source column). Number cells only: the pointer row's one wide cell still wraps, and 768 to 1023 px keep the old wrapping (design review of PR 1035, item 1). */
@media (min-width: 1024px) {
  .pl-table.pl-tsources tbody td.n:last-child { white-space: nowrap; }
}
/* A source inside "All other sources": its pointer row steps in with its placements (design review of PR 1035, item 3). */
.pl-table .pl-tsources__places--deep .pl-tsources__ptr td { padding-left: calc(56px + var(--space-5)); }
@media (max-width: 767.98px) {
  .pl-tsources--fold .pl-tsources__places--deep tr.pl-tsources__ptr { padding-left: calc(50px + var(--space-4)); }
}

/* Structure after the 1536 px page, step 2 (Fredrik 2026-11-27; mock-up
   2026-11-27_structure-1536_v1, changes 2 to 5). The page cards that pair (card-pair.css,
   Section.pair). Tokens only.

   Sections in one pair (tab.html): a hidden section is not drawn, and the one left takes the
   whole row; a pair with both hidden takes no space. */
.pl-section-pair:not(:has(.pl-section-slot:not(:empty))) { display: none; }
.pl-section-pair .pl-cardpair__in > .pl-section-slot:empty { display: none; }
@container pl-cardpair (min-width: 1160px) {
  .pl-section-pair .pl-cardpair__in:has(> .pl-section-slot:empty) { grid-template-columns: minmax(0, 1fr); }
}

/* Sales, Markets (change 2): in a half-width card the name column stops at 160 px and Share
   takes 44 px, so the bars keep their room (mock-up rk--sales). */
@container pl-cardpair (min-width: 1160px) {
  .pl-section-pair .pl-mk-rank { grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto 44px; }
  .pl-section-pair .pl-mk-rank--change { grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto 44px 64px; }
}

/* Reviews (change 5): Positive by review language beside Hours played before reviewing. While
   the languages are folded the two cards are one height and the chart grows to fill its card;
   "Show all languages" grows the table card only (own height, top-aligned). Stacked, each card
   keeps its own height and the chart its usual one. The phone's "Show charts" button sits
   between the two and takes no cell on a computer. */
.pl-pd > .pl-revsum-pair { margin-block-start: calc(var(--space-6) - var(--space-4)); }
.pl-revsum-pair .pl-pd-fold { display: grid; min-width: 0; }
/* the two titles on one line: the table card's head sits 8 + 16 px down, so the chart card's does too */
@container pl-cardpair (min-width: 1160px) {
  .pl-revsum-pair .pl-pd-chartcard { padding-top: calc(var(--space-2) + var(--space-4)); }
}
@container pl-cardpair (min-width: 1160px) {
  .pl-revsum-pair:has([data-sw-expand="rev-lang"][aria-expanded="true"]) > .pl-cardpair__in { align-items: start; }
  .pl-revsum-pair .pl-pd-chartcard { display: flex; flex-direction: column; }
  .pl-revsum-pair .pl-pd-chartcard > [hidden] { display: none; }
  .pl-revsum-pair .pl-pd-chartcard > [data-sw-v="chart"] { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .pl-revsum-pair .pl-pd-chartcard .pl-chart-box--short { flex: 1 1 auto; height: auto; min-height: var(--layout-chart-height-short); }
}
@media (max-width: 767.98px) {
  .pl-pd > .pl-revsum-pair { margin-block-start: calc(var(--space-5) - var(--space-3)); }
}

/* Wide screens, PR 2: charts (decision 2026-11-26-wide-layout, sheet v3.67 wide-charts, mock-up
   2026-11-26_wide-layout_v2). Tokens only.

   1. Chart boxes take their height from layout-chart-height (300 to 460 px) and
      layout-chart-height-short (220 to 340 px), a quarter of their wrapper's width (components.css),
      so a chart stays about 4:1 as the page grows to 1920 px. cqi needs a container, so the box's
      own wrapper is one; without it cqi falls back to the viewport and the chart grows too tall.
      A chart under the event lane takes the same rule plus the 48 px lane (event-lane.css; Atlas
      2026-11-26). Charts with a fixed height of their own keep it: refunds (180 and 140), Store
      traffic day by day (144, 96, 124), Sources over time (320), A/B small (200) and Home's
      two-up row (240). The decision leaves them open (follow-up 3).
   2. Charts drawn on the server as SVG are drawn at several widths and the card shows the widest
      that fits, so their text is never stretched like a picture. The wide cuts below show only
      from a 1512 px window, so nothing changes under it (the month and year cuts of Sales
      overview are in sales-overview-boxes-month.css with the others). */

:where(:has(> .pl-chart-box)) { container-type: inline-size; }

/* Discount overview: Your discounts on a timeline (930, then 1160 / 1450 / 1810) and the Last
   promotion chart (240 / 300 / 380 at every desktop width, so its text never shrinks under 12 px
   in its 240 to 380 px column, then 475 / 590). */
.pl-dd-cuts { container: dd-cuts / inline-size; }
.pl-dd-cut--x { display: none; }
.pl-dd-pcuts { container: dd-phase / inline-size; }
.pl-dd-pcut:not([data-cut="240"]) { display: none; }
@container dd-phase (min-width: 300px) { .pl-dd-pcut[data-cut="240"] { display: none; } .pl-dd-pcut[data-cut="300"] { display: block; } }
@container dd-phase (min-width: 380px) { .pl-dd-pcut[data-cut="300"] { display: none; } .pl-dd-pcut[data-cut="380"] { display: block; } }

@media (min-width: 1512px) {
  @container dd-cuts (min-width: 1160px) { .pl-dd-cut--wide { display: none; } .pl-dd-cut--x[data-cut="1160"] { display: block; } }
  @container dd-cuts (min-width: 1450px) { .pl-dd-cut--x[data-cut="1160"] { display: none; } .pl-dd-cut--x[data-cut="1450"] { display: block; } }
  @container dd-cuts (min-width: 1810px) { .pl-dd-cut--x[data-cut="1450"] { display: none; } .pl-dd-cut--x[data-cut="1810"] { display: block; } }
  @container dd-phase (min-width: 475px) { .pl-dd-pcut[data-cut="380"] { display: none; } .pl-dd-pcut[data-cut="475"] { display: block; } }
  @container dd-phase (min-width: 590px) { .pl-dd-pcut[data-cut="475"] { display: none; } .pl-dd-pcut[data-cut="590"] { display: block; } }

  /* Promotion results: the first chart (540, then 675 / 840 / 1050 / 1310) and How a discount
     plays out, day by day (880, then 1100 / 1375 / 1715); containers in discounts-results.css. */
  @container (min-width: 675px) { .pl-rs-cut--h2 { display: none; } .pl-rs-cut--h3 { display: block; } }
  @container (min-width: 840px) { .pl-rs-cut--h3 { display: none; } .pl-rs-cut--h4 { display: block; } }
  @container (min-width: 1050px) { .pl-rs-cut--h4 { display: none; } .pl-rs-cut--h5 { display: block; } }
  @container (min-width: 1310px) { .pl-rs-cut--h5 { display: none; } .pl-rs-cut--h6 { display: block; } }
  @container (min-width: 1100px) { .pl-rs-cut--d3 { display: none; } .pl-rs-cut--d4 { display: block; } }
  @container (min-width: 1375px) { .pl-rs-cut--d4 { display: none; } .pl-rs-cut--d5 { display: block; } }
  @container (min-width: 1715px) { .pl-rs-cut--d5 { display: none; } .pl-rs-cut--d6 { display: block; } }
}

/* Wishlists box layout (design owner on PR 1028; clean-up 2026-11-19). Tokens only, no new size. */
/* Wishlist overview: the two wide boxes keep their own height. Before launch, Wishlist conversion
   holds one line and no longer stretches to the height of Top 5 countries. */
.pl-wlo-wide { align-items: start; }
/* Followers, four across: the label and the date line each keep two lines' room, so the four
   figures sit at one height even where a label or a date wraps ("Wishlists per follower", the
   Growth boxes' two-line dates). Up to 1,439 px a label may wrap; wider, only the dates do. */
@media (min-width: 1101px) {
  .pl-wlo-boxes4--fol .pl-wlo-box .pl-sh-when { min-height: calc(2 * var(--type-heading-line)); }  /* two 22 px lines, as the period control draws them */
}
@media (min-width: 1101px) and (max-width: 1439.98px) {
  .pl-wlo-boxes4--fol .pl-wlo-box .pl-sh-label { min-height: calc(2 * var(--type-heading-line)); }
}

/* Wishlists accumulated: Accumulated | Per day (Fredrik 2026-11-11, decision 2026-11-11-wishlists-per-day-view;
   mock-up wishlists-per-day-switch v3; design sheet, Charts, Flow bars). The figure row's swatches sit after each
   value, their space kept in every view and shown only in Per day + Chart, so switching never moves the row; the
   key items for Partly sent, Not on file and In progress; the bar tooltip; the Per day table and its phone rows.
   The bars themselves are drawn by flow-bars.js. Tokens only. */

.pl-wlf [data-sw-m][hidden], .pl-wlf [data-sw-v][hidden], .pl-wlf-rows > li[hidden], .pl-wlf-rows__days[hidden] { display: none; }

/* The swatches: after the number, space reserved, visible only in Per day + Chart. */
.pl-wlf-sw { display: inline-block; flex: none; inline-size: 12px; block-size: 12px; margin-inline-start: 6px; border-radius: 3px; vertical-align: -1px; visibility: hidden; }
.pl-wlf-sw--adds { background-color: var(--you); }
.pl-wlf-sw--deletes { background-color: var(--violet-deep); }
.pl-wlf-sw--purchases { background-color: var(--violet-pale); }
.pl-wlf-sw--gifts { background-color: var(--parts-other); }
/* The net swatch is the chart's own mark: a slim violet bar with the ink tick and its card halo across it. */
.pl-wlf-sw--net { inline-size: 12px; block-size: 18px; margin-inline-start: 8px; border-radius: 0;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--surface), var(--surface)), linear-gradient(var(--you), var(--you));
  background-position: center, center, center; background-size: 12px 2px, 12px 6px, 6px 18px; background-repeat: no-repeat; }
.pl-wlf[data-sw-now-m="per"][data-sw-now-v="chart"] .pl-wl-strip .pl-wlf-sw { visibility: visible; }
.pl-wlf[data-sw-now-m="per"][data-sw-now-v="chart"][data-pl-flow-thin] .pl-wl-strip .pl-wlf-sw--net { visibility: hidden; }

/* The chart box takes the arrow keys in Per day. */
.pl-wlf [data-pl-chart]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }

/* The key line's own items. */
.pl-legend i.pl-wlf-key__hatch { inline-size: 14px; block-size: 10px; box-sizing: border-box; border: 1px solid var(--you); border-radius: 2px; background-color: var(--surface); background-image: repeating-linear-gradient(135deg, var(--you) 0 2px, var(--surface) 2px 4px); }
.pl-legend i.pl-wlf-key__nof { inline-size: 14px; block-size: 10px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 2px; background-color: var(--surface-raised); }

/* The tooltip of a bar (inside the chart's shared tooltip box). */
.pl-wlf-tip { display: grid; gap: 2px; min-inline-size: 210px; max-inline-size: 280px; font-size: var(--type-label-size); line-height: 18px; font-variant-numeric: tabular-nums; white-space: normal; }
.pl-wlf-tip__t { margin-block-end: 2px; font-size: var(--type-body-sm-size); line-height: 18px; font-weight: 600; color: var(--ink); }
.pl-wlf-tip__r { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px; color: var(--ink); }
.pl-wlf-tip__r b { font-weight: 600; text-align: end; }
.pl-wlf-tip .pl-wlf-sw { margin: 0; visibility: visible; }
.pl-wlf-tip .pl-wlf-sw--net { block-size: 14px; background-size: 12px 2px, 12px 6px, 6px 14px; }
.pl-wlf-tip__r--net { margin-block-start: 4px; padding-block-start: 4px; border-block-start: 1px solid var(--hairline); }
.pl-wlf-tip__n { margin-block-start: 4px; color: var(--ink-muted); }
.pl-wlf-tip__d { display: grid; grid-template-columns: auto auto; gap: 0 var(--space-3); margin-block-start: 6px; padding-block-start: 6px; border-block-start: 1px solid var(--hairline); color: var(--ink-muted); }
.pl-wlf-tip__d b { font-weight: 400; text-align: end; color: var(--ink); }

/* The Per day table: a muted second line under a row's label; on a phone, rows that name every figure. */
.pl-wlf-sub { display: block; font-size: var(--type-label-size); line-height: var(--type-label-line); font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.pl-wlf-tbl td { white-space: nowrap; }
.pl-wlf-table { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); min-width: 0; }
.pl-wlf-table > .pl-btn { justify-self: start; }
.pl-wlf-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.pl-wlf-rows > li { display: grid; gap: 2px; padding: 10px 0; border-block-end: 1px solid var(--hairline); }
.pl-wlf-rows__nm { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 600; }
.pl-wlf-rows__v { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-wlf-rows__v b { font-weight: 500; text-align: end; color: var(--ink); }
.pl-wlf-rows__days { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); margin: 6px 0 0 var(--space-3); padding: 4px 0 0 10px; border-inline-start: 2px solid var(--hairline); font-size: var(--type-label-size); line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pl-wlf-rows__days b { font-weight: 500; text-align: end; color: var(--ink); }
.pl-wlf-rows__hd { grid-column: 1 / -1; }

/* A figure-row name may take two lines, the same in every view: "Bought from a wishlist" is wider than its column on a
   375 px phone (mock-up v3) and in the five-column row from 1181 to about 1300 px. It wraps only where it does not fit;
   the values stay on one baseline (the row aligns to the end). */
.pl-wlf .pl-wl-strip > div > .pl-sh-label { white-space: normal; }
@media (forced-colors: active) {
  .pl-wlf-sw { forced-color-adjust: none; }
}

/* Decision 76 (WCAG 1.4.11): the outline of every control is border-strong (3:1 or better
   on the card and the page, dark and light), not card-edge or hairline (about 1.4:1).
   Cards, dividers and read-only chips keep their quiet edge. Only the colour changes; the
   selected, on, pressed and current states are more specific and keep their own colours.
   Controls covered: context bar (control, step, segmented item, preset chip), Wishlists A/B
   pickers and pills, pills, store chips, the scope switch, the game switcher, feedback chips,
   the seasonal-sales toggle under charts. */
.pl-ctx__ctl,
.pl-ctx__step.is-off:hover,
.pl-ctx__segitem,
.pl-ctx-chip,
.pl-wab__ctl,
.pl-wab__pill,
.pl-pill,
.pl-store-chip,
.pl-scope,
.pl-switcher summary,
.pl-event-chip,
.pl-fb__chips label { border-color: var(--border-strong); }
