/* ============================================================================
   HyperGrowth markets — heavy material layer (重厚感)
   ----------------------------------------------------------------------------
   Cascade-final presentation layer for /markets. It only changes how surfaces
   are rendered: opaque slabs instead of clear glass, machined bevels, contact
   + ambient shadows, recessed wells for numbers and inputs, raised keys for
   controls. Market values, layout hooks, copy and execution gates are untouched.

   Shape language (one system everywhere):
     slab 20px  →  tray 16px  →  well 14px  →  key 12px  →  chip 10px  →  pill
   Regions are separated by tone (recess / raise), never by hairlines or
   square-cut seams. On desktop the detail view is one slab: outcomes rail and
   chart sit flat on it, the order book is carved in as a well, and the ticket
   rests on it as a raised tray.

   Load order: after liquid-glass / theme / compact layers, before
   mobile-reading.css (phone type and tap-target sizes stay authoritative).
   Sign In modal (.pm-signin-*) is out of scope.
   ========================================================================== */

/* ── 0. Shared tokens ───────────────────────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page {
  /* Sharper geometry (2026-11-03): one step tighter at every level. */
  --hv-r-slab: 14px;
  --hv-r-tray: 12px;
  --hv-r-well: 10px;
  --hv-r-key: 8px;
  --hv-r-chip: 7px;
  --hv-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --hv-fast: 140ms;
  --hv-med: 220ms;
  /* Numbers use the UI family with tabular figures, not a typewriter mono. */
  --hv-num-font: Manrope, "Noto Sans JP", system-ui, sans-serif;
  --hv-grain-light: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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 0.075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --hv-grain-dark: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.14 0 0 0 0 0.06 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Selected-state material shares the compact layer's per-theme tokens. */
  --hv-sel-bg: var(--compact-outcome-selected-surface, #174a47);
  --hv-sel-ink: var(--compact-outcome-selected-ink, #f4fffd);
  --hv-sel-accent: var(--compact-outcome-selected-accent, #97fce4);
  font-variant-numeric: tabular-nums;
}

/* ── 0a. Hyperliquid — obsidian + mint ──────────────────────────────────── */
html[data-hg-theme="hyperliquid"] body.hg-markets.hg-predict-market-page {
  --hv-text: #eef2f5;
  --hv-text-2: #aeb8c2;
  --hv-text-3: #76828e;
  --hv-accent: #97fce4;
  --hv-accent-deep: #3fcdb0;
  --hv-accent-ink: #04231d;
  --hv-accent-rgb: 151, 252, 228;
  --hv-grain: var(--hv-grain-light);
  --hv-canvas:
    radial-gradient(120% 70% at 50% -12%, rgba(42, 66, 68, 0.55) 0%, rgba(42, 66, 68, 0) 55%),
    radial-gradient(90% 60% at 50% 112%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #0c1013 0%, #070a0c 48%, #040506 100%);
  --hv-slab:
    linear-gradient(180deg, rgba(36, 42, 48, 0.985) 0%, rgba(23, 28, 32, 0.99) 40%, rgba(13, 17, 20, 1) 100%);
  --hv-slab-fill: #11151a;
  --hv-tray: linear-gradient(180deg, rgba(46, 53, 60, 0.995) 0%, rgba(30, 36, 41, 1) 50%, rgba(22, 27, 31, 1) 100%);
  --hv-tray-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 2px 3px rgba(0, 0, 0, 0.5),
    0 14px 28px -12px rgba(0, 0, 0, 0.75);
  --hv-rim:
    linear-gradient(165deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 22%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.6) 100%);
  --hv-rim-accent:
    linear-gradient(165deg, rgba(151, 252, 228, 0.7) 0%, rgba(151, 252, 228, 0.3) 30%, rgba(151, 252, 228, 0.1) 60%, rgba(0, 0, 0, 0.55) 100%);
  --hv-bevel:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.68),
    inset 1px 0 0 rgba(255, 255, 255, 0.04),
    inset -1px 0 0 rgba(0, 0, 0, 0.42);
  --hv-contact: 0 1px 1px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.45);
  --hv-ambient: 0 16px 32px -12px rgba(0, 0, 0, 0.78), 0 40px 80px -28px rgba(0, 0, 0, 0.92);
  --hv-lift: var(--hv-bevel), var(--hv-contact), var(--hv-ambient);
  --hv-lift-high:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    inset -1px 0 0 rgba(0, 0, 0, 0.46),
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 8px 12px rgba(0, 0, 0, 0.45),
    0 26px 48px -14px rgba(0, 0, 0, 0.85),
    0 56px 110px -30px rgba(0, 0, 0, 0.95);
  --hv-well: linear-gradient(180deg, #04070a 0%, #0a0e12 100%);
  --hv-well-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.78),
    inset 0 10px 20px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.05);
  --hv-key: linear-gradient(180deg, #3b444c 0%, #272e34 55%, #1b2126 100%);
  --hv-key-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.62),
    0 4px 8px -2px rgba(0, 0, 0, 0.62);
  --hv-key-pressed:
    inset 0 2px 4px rgba(0, 0, 0, 0.72),
    inset 0 6px 12px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.05);
  --hv-key-text: #e6ecf0;
  --hv-hover: rgba(255, 255, 255, 0.045);
  --hv-cta: linear-gradient(180deg, #c6fff2 0%, #97fce4 42%, #5fd9bf 100%);
  --hv-cta-ink: #04231d;
  --hv-cta-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 0 rgba(0, 80, 60, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.55),
    0 10px 22px -8px rgba(151, 252, 228, 0.5),
    0 18px 36px -14px rgba(0, 0, 0, 0.85);
  --hv-bar: linear-gradient(180deg, rgba(31, 37, 42, 0.985), rgba(14, 18, 21, 0.99));
  --hv-bar-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 30px -14px rgba(0, 0, 0, 0.85);
  --hv-led: #97fce4;
  --hv-scrim: rgba(2, 4, 6, 0.74);
  --hv-sel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(151, 252, 228, 0.5),
    0 8px 18px -8px rgba(151, 252, 228, 0.45);
}

/* ── 0b. Brand — lacquered paper + bronze ───────────────────────────────── */
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page {
  --hv-text: #16120e;
  --hv-text-2: rgba(22, 18, 14, 0.74);
  --hv-text-3: rgba(22, 18, 14, 0.52);
  --hv-accent: #6a4e2e;
  --hv-accent-deep: #4a341c;
  --hv-accent-ink: #f7f0e2;
  --hv-accent-rgb: 106, 78, 46;
  --hv-grain: var(--hv-grain-dark);
  --hv-canvas:
    radial-gradient(120% 70% at 50% -12%, rgba(255, 250, 238, 0.7) 0%, rgba(255, 250, 238, 0) 55%),
    radial-gradient(90% 60% at 50% 112%, rgba(110, 80, 40, 0.34) 0%, rgba(110, 80, 40, 0) 60%),
    linear-gradient(180deg, #e6d9bf 0%, #dccba8 55%, #d1bd95 100%);
  --hv-slab: linear-gradient(180deg, #fcf7ec 0%, #f4ebd9 46%, #eadcc2 100%);
  --hv-slab-fill: #f3ead8;
  --hv-tray: linear-gradient(180deg, #fffcf3 0%, #f8f0e0 55%, #f0e4cc 100%);
  --hv-tray-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(90, 60, 30, 0.22),
    0 2px 3px rgba(60, 40, 15, 0.16),
    0 14px 28px -12px rgba(70, 45, 15, 0.38);
  --hv-rim:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 236, 0.55) 25%, rgba(120, 90, 50, 0.18) 60%, rgba(70, 45, 20, 0.5) 100%);
  --hv-rim-accent: linear-gradient(165deg, #f4e2bc 0%, #d7b07a 35%, #8a6436 100%);
  --hv-bevel:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(90, 60, 30, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.55),
    inset -1px 0 0 rgba(90, 60, 30, 0.12);
  --hv-contact: 0 1px 1px rgba(60, 40, 15, 0.26), 0 2px 4px rgba(60, 40, 15, 0.14);
  --hv-ambient: 0 16px 32px -12px rgba(70, 45, 15, 0.36), 0 40px 80px -28px rgba(70, 45, 15, 0.42);
  --hv-lift: var(--hv-bevel), var(--hv-contact), var(--hv-ambient);
  --hv-lift-high:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(90, 60, 30, 0.34),
    inset 1px 0 0 rgba(255, 255, 255, 0.6),
    inset -1px 0 0 rgba(90, 60, 30, 0.14),
    0 2px 2px rgba(60, 40, 15, 0.22),
    0 8px 12px rgba(60, 40, 15, 0.14),
    0 26px 48px -14px rgba(70, 45, 15, 0.45),
    0 56px 110px -30px rgba(70, 45, 15, 0.5);
  --hv-well: linear-gradient(180deg, #e2d2b0 0%, #ecdfc6 100%);
  --hv-well-shadow:
    inset 0 2px 4px rgba(90, 60, 30, 0.3),
    inset 0 8px 16px rgba(90, 60, 30, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.85);
  --hv-key: linear-gradient(180deg, #fffbf1 0%, #f0e4cc 60%, #e3d2b0 100%);
  --hv-key-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(90, 60, 30, 0.2),
    0 1px 1px rgba(60, 40, 15, 0.3),
    0 4px 8px -2px rgba(60, 40, 15, 0.26);
  --hv-key-pressed:
    inset 0 2px 4px rgba(90, 60, 30, 0.32),
    inset 0 6px 12px rgba(90, 60, 30, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.7);
  --hv-key-text: #2a2119;
  --hv-hover: rgba(90, 60, 30, 0.055);
  --hv-cta: linear-gradient(180deg, #3d3024 0%, #1e1812 45%, #0f0c08 100%);
  --hv-cta-ink: #f7f0e2;
  --hv-cta-shadow:
    inset 0 1px 0 rgba(215, 176, 122, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(106, 78, 46, 0.55),
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 10px 22px -8px rgba(60, 40, 15, 0.6),
    0 18px 36px -14px rgba(60, 40, 15, 0.5);
  --hv-bar: linear-gradient(180deg, #fbf5e8 0%, #efe3cb 100%);
  --hv-bar-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 30px -14px rgba(70, 45, 15, 0.5);
  --hv-led: #2f6b4f;
  --hv-scrim: rgba(40, 28, 14, 0.56);
  --hv-sel-shadow:
    inset 0 1px 0 rgba(215, 176, 122, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(106, 78, 46, 0.55),
    0 8px 18px -8px rgba(60, 40, 15, 0.6);
}

/* ── 0c. Light — porcelain + teal ───────────────────────────────────────── */
html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page {
  --hv-text: #0f172a;
  --hv-text-2: #475569;
  --hv-text-3: #64748b;
  --hv-accent: #0f766e;
  --hv-accent-deep: #115e59;
  --hv-accent-ink: #ffffff;
  --hv-accent-rgb: 15, 118, 110;
  --hv-grain: var(--hv-grain-dark);
  --hv-canvas:
    radial-gradient(120% 70% at 50% -12%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(90% 60% at 50% 112%, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0) 60%),
    linear-gradient(180deg, #e3e8ee 0%, #d6dde6 55%, #c9d2dd 100%);
  --hv-slab: linear-gradient(180deg, #ffffff 0%, #f6f8fa 46%, #e9eef3 100%);
  --hv-slab-fill: #f4f6f8;
  --hv-tray: linear-gradient(180deg, #ffffff 0%, #fafbfc 55%, #f1f4f7 100%);
  --hv-tray-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, 0.16),
    0 2px 3px rgba(15, 23, 42, 0.12),
    0 14px 28px -12px rgba(15, 23, 42, 0.3);
  --hv-rim:
    linear-gradient(165deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 25%, rgba(15, 23, 42, 0.14) 60%, rgba(15, 23, 42, 0.38) 100%);
  --hv-rim-accent: linear-gradient(165deg, #99f6e4 0%, #2dd4bf 35%, #0f766e 100%);
  --hv-bevel:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.7),
    inset -1px 0 0 rgba(15, 23, 42, 0.08);
  --hv-contact: 0 1px 1px rgba(15, 23, 42, 0.2), 0 2px 4px rgba(15, 23, 42, 0.1);
  --hv-ambient: 0 16px 32px -12px rgba(15, 23, 42, 0.28), 0 40px 80px -28px rgba(15, 23, 42, 0.3);
  --hv-lift: var(--hv-bevel), var(--hv-contact), var(--hv-ambient);
  --hv-lift-high:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, 0.26),
    inset 1px 0 0 rgba(255, 255, 255, 0.8),
    inset -1px 0 0 rgba(15, 23, 42, 0.1),
    0 2px 2px rgba(15, 23, 42, 0.16),
    0 8px 12px rgba(15, 23, 42, 0.1),
    0 26px 48px -14px rgba(15, 23, 42, 0.34),
    0 56px 110px -30px rgba(15, 23, 42, 0.36);
  --hv-well: linear-gradient(180deg, #dde3ea 0%, #eaeff4 100%);
  --hv-well-shadow:
    inset 0 2px 4px rgba(15, 23, 42, 0.22),
    inset 0 8px 16px rgba(15, 23, 42, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(255, 255, 255, 1);
  --hv-key: linear-gradient(180deg, #ffffff 0%, #f1f4f7 60%, #e3e9ef 100%);
  --hv-key-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(15, 23, 42, 0.14),
    0 1px 1px rgba(15, 23, 42, 0.22),
    0 4px 8px -2px rgba(15, 23, 42, 0.2);
  --hv-key-pressed:
    inset 0 2px 4px rgba(15, 23, 42, 0.24),
    inset 0 6px 12px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9);
  --hv-key-text: #1e293b;
  --hv-hover: rgba(15, 23, 42, 0.045);
  --hv-cta: linear-gradient(180deg, #5eead4 0%, #14b8a6 45%, #0f766e 100%);
  --hv-cta-ink: #ffffff;
  --hv-cta-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 0 rgba(6, 60, 55, 0.55),
    0 1px 1px rgba(15, 23, 42, 0.3),
    0 10px 22px -8px rgba(15, 118, 110, 0.5),
    0 18px 36px -14px rgba(15, 23, 42, 0.45);
  --hv-bar: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
  --hv-bar-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 30px -14px rgba(15, 23, 42, 0.35);
  --hv-led: #0f766e;
  --hv-scrim: rgba(15, 23, 42, 0.52);
  --hv-sel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(6, 60, 55, 0.5),
    0 1px 1px rgba(15, 23, 42, 0.3),
    0 0 0 1px rgba(15, 118, 110, 0.5),
    0 8px 18px -8px rgba(15, 118, 110, 0.5);
}

/* ── 0c+. Refined material ──────────────────────────────────────────────
   Verified 2026-11-03: bevels, grain, rims and stacked shadows on every
   element read as plastic. Surfaces are now flat, edges are hairlines, and
   only floating panels (ticket, docks, dialogs) carry one soft shadow. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page {
  --hv-hair: color-mix(in srgb, var(--hv-text) 9%, transparent);
  --hv-hair-strong: color-mix(in srgb, var(--hv-text) 15%, transparent);
  --hv-grain: linear-gradient(transparent, transparent);
  --hv-bevel: inset 0 0 0 1px var(--hv-hair);
  --hv-contact: 0 1px 2px rgba(0, 0, 0, 0.04);
  --hv-ambient: 0 0 0 transparent;
  --hv-lift: inset 0 0 0 1px var(--hv-hair), 0 1px 2px rgba(0, 0, 0, 0.04);
  --hv-lift-high: inset 0 0 0 1px var(--hv-hair-strong), 0 12px 32px -18px rgba(0, 0, 0, 0.32);
  --hv-well-shadow: none;
  --hv-key-shadow: inset 0 0 0 1px var(--hv-hair-strong);
  --hv-key-pressed: inset 0 0 0 1px var(--hv-hair-strong);
  --hv-cta-shadow: none;
  --hv-bar-shadow: 0 1px 0 var(--hv-hair);
  --hv-tray-shadow: inset 0 0 0 1px var(--hv-hair);
  --hv-sel-shadow: inset 0 0 0 1.5px rgba(var(--hv-accent-rgb), 0.7);
  --hv-rim: linear-gradient(transparent, transparent);
  --hv-rim-accent: linear-gradient(rgba(var(--hv-accent-rgb), 0.45), rgba(var(--hv-accent-rgb), 0.45));
}
html[data-hg-theme="hyperliquid"] body.hg-markets.hg-predict-market-page {
  --hv-canvas: linear-gradient(#080b0e, #080b0e);
  --hv-slab: linear-gradient(#10151a, #10151a);
  --hv-slab-fill: #080b0e;
  --hv-well: linear-gradient(#151b21, #151b21);
  --hv-key: linear-gradient(#161c22, #161c22);
  --hv-tray: linear-gradient(#141a20, #141a20);
  /* Opaque: the bars have no backdrop blur, so any alpha lets list text show through them. */
  --hv-bar: linear-gradient(#080b0e, #080b0e);
  --hv-cta: linear-gradient(#97fce4, #97fce4);
}
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page {
  --hv-canvas: linear-gradient(#ede4d3, #ede4d3);
  --hv-slab: linear-gradient(#fbf8f2, #fbf8f2);
  --hv-slab-fill: #ede4d3;
  --hv-well: linear-gradient(#f1ebdf, #f1ebdf);
  --hv-key: linear-gradient(#fbf8f2, #fbf8f2);
  --hv-tray: linear-gradient(#fbf8f2, #fbf8f2);
  --hv-bar: linear-gradient(#ede4d3, #ede4d3);
  --hv-cta: linear-gradient(#16120e, #16120e);
}
html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page {
  --hv-canvas: linear-gradient(#eef1f4, #eef1f4);
  --hv-slab: linear-gradient(#ffffff, #ffffff);
  --hv-slab-fill: #eef1f4;
  --hv-well: linear-gradient(#f2f4f7, #f2f4f7);
  --hv-key: linear-gradient(#ffffff, #ffffff);
  --hv-tray: linear-gradient(#ffffff, #ffffff);
  --hv-bar: linear-gradient(#eef1f4, #eef1f4);
  --hv-cta: linear-gradient(#0f766e, #0f766e);
}

/* ── 0d. Feed the glass pipeline with heavy material ───────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-deposit-shell,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-safety-shell {
  --hl-glass: var(--hv-slab);
  --hl-glass-fill: var(--hv-slab-fill);
  --hl-glass-edge: transparent;
  --hl-glass-rim: var(--hv-rim);
  --hl-glass-blur: blur(14px) saturate(118%);
  --hl-glass-lift: var(--hv-lift);
  --hl-glass-lift-high: var(--hv-lift-high);
}

/* ── 1. Canvas ──────────────────────────────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page {
  background: var(--hv-slab-fill);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-root {
  background: var(--hv-grain), var(--hv-canvas) !important;
  background-size: 180px 180px, auto, auto, auto !important;
  background-attachment: fixed, scroll, scroll, scroll !important;
}

/* One ground on a market page (2026-11-27). As on outcome.xyz, everything
   behind a market is one flat colour: the theme's slab, the surface the
   chart's brand colours are tuned on (3:1). The canvas, the top bar, the
   body and the page-surface token (the chart's point rings, the hover card)
   take it, and the detail view's wrappers carry no paint of their own: the
   theme layer paints .pm-detail-view at (0,6,2), so these name the view by its
   id. Rows, keys and wells keep their tone: they are controls, not ground. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open {
  --hv-canvas: var(--hv-slab);
  --hv-bar: var(--hv-slab);
}
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page.pm-detail-open { --hv-slab-fill: #fbf8f2; }
html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page.pm-detail-open { --hv-slab-fill: #ffffff; }
html[data-hg-theme="hyperliquid"] body.hg-markets.hg-predict-market-page.pm-detail-open { --hv-slab-fill: #10151a; }

html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketDetailView,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketDetailView .pm-detail-pager,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketDetailView .pm-detail-pager__page,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketDetailView .pm-detail-shell,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketDetailView .pm-detail-workspace {
  background: transparent !important;
  background-image: none !important;
}

/* The detail view sits directly on the canvas; its containers carry no paint. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-detail-workspace {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ── 2. Slabs (cards, detail panels, docks, modals) ────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-chart-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-book-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcomes-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-ticket-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view[class][class] .pm-mobile-trade-dock,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-deposit-shell,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-safety-shell {
  border: 0 !important;
  border-radius: var(--hv-r-slab) !important;
  background: var(--hv-grain), var(--hv-slab) !important;
  background-image: var(--hv-grain), var(--hv-slab) !important;
  background-size: 180px 180px, auto !important;
  background-blend-mode: normal !important;
  box-shadow: var(--hv-lift) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--hv-text);
}

/* The mirror-face overlay from the glass layer becomes a quiet top sheen. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view[class][class] .pm-mobile-trade-dock::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-deposit-shell::before,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-safety-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 9%, transparent 26%),
    radial-gradient(60% 40% at 30% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
  opacity: 1;
  mix-blend-mode: soft-light;
  filter: none;
  display: none;
}

/* Metallic rim: 1px masked gradient (highlight top-left → shadow bottom-right). */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view[class][class] .pm-mobile-trade-dock::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-deposit-shell::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-safety-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  background: var(--hv-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  box-shadow: none;
  transition: opacity var(--hv-med) var(--hv-ease), background var(--hv-med) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card > *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel > *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel > *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel > *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel > *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view[class][class] .pm-mobile-trade-dock > * {
  position: relative;
  z-index: 1;
}

/* Ticket and docks sit one tier higher than evidence panels. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view[class][class] .pm-mobile-trade-dock,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-deposit-shell,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-safety-shell {
  box-shadow: var(--hv-lift-high) !important;
}

/* No dividing line under the outcomes rail at any width. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"].has-outcomes-rail .pm-outcomes-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel {
  border-bottom: 0 !important;
}

/* Card interaction: lift on hover, settle on press. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card {
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--hv-med) var(--hv-ease),
    box-shadow var(--hv-med) var(--hv-ease);
}

@media (hover: hover) and (pointer: fine) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:hover,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:focus-visible {
    transform: none;
    box-shadow: var(--hv-lift-high) !important;
  }

  html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-market-card:hover,
  html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page .pm-market-card:hover {
    box-shadow: var(--hv-lift-high) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:hover::after {
    background: var(--hv-rim-accent);
  }
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:active {
  transform: translate3d(0, 1px, 0) scale(0.998);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card.is-selected::after {
  background: var(--hv-rim-accent);
}

/* ── 3. Top bar: one soft bar, no hairline under it ────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-app-topbar {
  min-height: 60px;
  padding: 0 20px;
  border-bottom: 0;
  background: var(--hv-grain), var(--hv-bar);
  background-size: 180px 180px, auto;
  box-shadow: var(--hv-bar-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-brand {
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-brand-logo {
  opacity: 0.92;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-brand-name {
  color: var(--hv-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-balance {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--hv-well);
  box-shadow: var(--hv-well-shadow);
  color: var(--hv-text);
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── 4. Primary action material (CTA) ──────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-signin,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-deposit,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-primary-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #openSignInButton,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeButton,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-sign-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-sign-button {
  position: relative;
  border: 0 !important;
  background: var(--hv-cta) !important;
  background-image: var(--hv-cta) !important;
  color: var(--hv-cta-ink) !important;
  box-shadow: var(--hv-cta-shadow) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 650 !important;
  letter-spacing: 0.005em;
  transition:
    transform var(--hv-fast) var(--hv-ease),
    box-shadow var(--hv-fast) var(--hv-ease),
    filter var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-top-signin,
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-top-deposit,
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-sign-button,
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-primary-button,
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page #openSignInButton,
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page #mobileTradeButton {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-signin,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-deposit {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-primary-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #openSignInButton,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-sign-button {
  min-height: 52px;
  border-radius: var(--hv-r-well) !important;
  font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-signin:hover,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-deposit:hover,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button:hover:not(:disabled),
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-primary-button:hover:not(:disabled),
  html[data-hg-theme] body.hg-markets.hg-predict-market-page #openSignInButton:hover,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeButton:hover:not(:disabled) {
    filter: brightness(1.05) saturate(1.04);
    transform: translateY(-1px);
  }
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-signin:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-deposit:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button:active:not(:disabled),
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-primary-button:active:not(:disabled),
html[data-hg-theme] body.hg-markets.hg-predict-market-page #openSignInButton:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeButton:active:not(:disabled) {
  transform: translateY(1px) scale(0.995);
  filter: brightness(0.96);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.4) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button:disabled,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-primary-button:disabled,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeButton:disabled,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-sign-button:disabled {
  opacity: 1 !important;
  background: var(--hv-key) !important;
  background-image: var(--hv-key) !important;
  color: var(--hv-text-3) !important;
  box-shadow: var(--hv-key-pressed) !important;
  text-shadow: none;
  filter: none;
  transform: none;
  cursor: not-allowed;
}

/* ── 5. Secondary keys (ghost / utility buttons) ───────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ghost-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-wallet-setup-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-top-safety,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-topbar-back,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-rules-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-presence-data,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-collapse,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcomes-view-all,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-collection-toggle,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-mobile-close,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-mobile-back,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-portfolio-close-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-review-dialog__head button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-dialog__head button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcomes-dialog__head button {
  border: 0 !important;
  border-radius: var(--hv-r-key);
  background: var(--hv-key) !important;
  background-image: var(--hv-key) !important;
  color: var(--hv-key-text) !important;
  box-shadow: var(--hv-key-shadow) !important;
  text-shadow: none;
  transition:
    transform var(--hv-fast) var(--hv-ease),
    box-shadow var(--hv-fast) var(--hv-ease),
    filter var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ghost-button:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-wallet-setup-button:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-topbar-back:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-rules-button:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-button:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-collapse:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-collection-toggle:active {
  transform: translateY(1px);
  box-shadow: var(--hv-key-pressed) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-topbar-back,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-rules-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-presence-data,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-button {
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── 6. Category tabs: text on the canvas, no band ─────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-tabs {
  min-height: 52px;
  gap: 26px;
  padding: 0 22px;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-tabs .pm-category-chip {
  position: relative;
  padding: 18px 2px;
  color: var(--hv-text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-tabs .pm-category-chip:hover {
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-tabs .pm-category-chip.is-active {
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-tabs .pm-category-chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hv-accent-deep), var(--hv-accent));
  box-shadow:
    0 0 14px rgba(var(--hv-accent-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition:
    opacity var(--hv-med) var(--hv-ease),
    transform var(--hv-med) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-tabs .pm-category-chip.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ── 7. Status chip + search well ───────────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-chip {
  gap: 8px;
  min-height: 32px;
  padding: 0 14px 0 12px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--hv-well) !important;
  box-shadow: var(--hv-well-shadow) !important;
  color: var(--hv-text-2) !important;
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-chip[data-stream-state="live"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-chip.is-live {
  color: var(--hv-led) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-search-inline input {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--hv-r-key);
  background: var(--hv-well);
  box-shadow: var(--hv-well-shadow);
  color: var(--hv-text);
  font-weight: 600;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-search-inline input:focus {
  outline: none;
  box-shadow: var(--hv-well-shadow), 0 0 0 2px rgba(var(--hv-accent-rgb), 0.5);
}

/* ── 8. Card internals: rows separated by rhythm, not rules ────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-head h2 {
  color: var(--hv-text);
  font-style: normal !important;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-shadow: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-spark {
  border: 0;
  background: var(--hv-well);
  box-shadow: var(--hv-well-shadow);
  color: var(--hv-text-3);
  transition: color var(--hv-fast) var(--hv-ease), box-shadow var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-spark:hover,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-spark.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-spark[aria-pressed="true"] {
  color: var(--hv-accent);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-outcome-row {
  margin: 0 -8px;
  padding: 6px 8px;
  border: 0 !important;
  border-radius: var(--hv-r-key);
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hv-text);
  transition: background-color var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-outcome-row:hover:not([aria-disabled="true"]) {
  background: var(--hv-hover) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-outcome-row__label {
  color: var(--hv-text-2);
  font-weight: 600;
}

/* Recessed numeric wells: chance, multipliers, prices. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-outcome-row__pct,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__pct,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-side__chance {
  min-width: 60px;
  padding: 6px 10px;
  border: 0 !important;
  border-radius: var(--hv-r-chip) !important;
  background: var(--hv-well) !important;
  box-shadow: var(--hv-well-shadow) !important;
  color: var(--hv-text) !important;
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-binary-side,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-side {
  border-radius: var(--hv-r-key);
  box-shadow: var(--hv-key-shadow);
  transition: transform var(--hv-fast) var(--hv-ease), box-shadow var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-card-binary-side,
html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page .pm-card-side,
html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page .pm-card-binary-side,
html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page .pm-card-side {
  box-shadow: var(--hv-key-shadow);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-binary-side:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-side:active {
  transform: translateY(1px);
  box-shadow: var(--hv-key-pressed);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-binary-side__multiplier,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-binary-side__payout {
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-footer {
  padding-top: 10px;
  border-top: 0 !important;
  box-shadow: none;
  color: var(--hv-text-3);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-deadline {
  color: var(--hv-text-3);
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-dot {
  font-weight: 550 !important;
  letter-spacing: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-dot i {
  box-shadow: none;
}

/* Status color follows the reported state: only a live book is drawn in the live color. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-dot[data-state="unavailable"] {
  color: var(--hv-text-3) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-dot[data-state] i {
  background: currentColor !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-deadline,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-footer span {
  text-transform: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-live-dot[data-state="thin"] {
  color: #b7791f !important;
}

/* ── 9. Detail: toolbar, chance, scales, tabs ──────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page #chartCurrentValue {
  font-weight: 650 !important;
  letter-spacing: -0.035em;
  text-shadow: none;
}

@media (min-width: 761px) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] #chartCurrentValue {
    font-size: clamp(36px, 3.3vw, 46px);
    line-height: 1;
  }
}

/* 9b. Detail type: numbers in the interface face with tabular figures, never
   a typewriter mono; labels in sentence case; the chance in ink, not accent. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page #chartCurrentValue,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketExpiryCountdown,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #marketExpiryCountdown *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-row__price,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-choice > span,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeExecutable,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-label,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button * {
  font-family: var(--hv-num-font) !important;
  font-variant-numeric: tabular-nums;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page #chartCurrentValue,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell .pm-chart-toolbar__price span#chartCurrentValue {
  color: var(--hv-text) !important;
  font-family: var(--hv-num-font) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600 !important;
  text-shadow: none !important;
}

@media (max-width: 760px) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell .pm-chart-toolbar__price span#chartCurrentValue {
    font-size: 40px !important;
    line-height: 1 !important;
  }
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-label,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-row__price,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-choice > span,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeExecutable {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button__icon,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-back-button__label {
  color: var(--hv-text-2) !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page #chartOutcomeLabel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-live-metric__value,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcomes-panel h2,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-trade-dock__stat--payout > span {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-row__pct,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-choice > strong,
html[data-hg-theme] body.hg-markets.hg-predict-market-page #mobileTradeContract {
  font-weight: 600 !important;
}

/* History state in the same vocabulary as the list: delayed is amber, missing is quiet. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .hg-chart-presentation[data-history-status="delayed"] .hg-chart-presentation__status {
  color: #b7791f !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .hg-chart-presentation[data-history-status="unavailable"] .hg-chart-presentation__status {
  color: var(--hv-text-3) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] #detailTitle {
  color: var(--hv-text);
  text-shadow: none;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-expiry-countdown strong {
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-expiry-countdown span {
  color: var(--hv-text-3);
}

/* Chart guide lines: dotted and quiet, so they read as texture, not rules. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-grid,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-grid--soft {
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  opacity: 0.8;
}

/* Segmented controls = recessed track + raised active key. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-ranges,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .hg-chart-presentation__scales,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-coin-depth-mode,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-workspace-mode,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-side-toggle,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-type-toggle,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-trade-steps,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-chart-ranges {
  gap: 3px;
  padding: 3px;
  border: 0 !important;
  border-radius: var(--hv-r-key);
  background: var(--hv-well) !important;
  box-shadow: var(--hv-well-shadow);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-ranges button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .hg-chart-presentation__scale,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-coin-depth-mode button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-workspace-mode button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-side-toggle button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-type-toggle button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-trade-steps button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-chart-ranges button {
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: var(--hv-text-3) !important;
  font-weight: 600;
  box-shadow: none;
  transition:
    color var(--hv-fast) var(--hv-ease),
    background-color var(--hv-fast) var(--hv-ease),
    box-shadow var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-ranges button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-ranges button[aria-pressed="true"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .hg-chart-presentation__scale[aria-pressed="true"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-coin-depth-mode button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-workspace-mode button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-side-toggle button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-type-toggle button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-trade-steps button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-chart-ranges button.is-active {
  background: var(--hv-key) !important;
  color: var(--hv-text) !important;
  box-shadow: var(--hv-key-shadow);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-side-toggle button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-type-toggle button.is-active {
  color: var(--hv-accent) !important;
}

/* Tabs: indicator pill only; no baseline rule. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-research-tabs {
  border-top: 0 !important;
  background: transparent !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-research-tabs__list {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-research-tabs__list button {
  position: relative;
  border: 0;
  border-bottom: 0;
  color: var(--hv-text-3);
  font-weight: 600;
  box-shadow: none !important;
  transition: color var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hv-accent-deep), var(--hv-accent));
  box-shadow: 0 0 12px rgba(var(--hv-accent-rgb), 0.5);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity var(--hv-med) var(--hv-ease), transform var(--hv-med) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button[aria-selected="true"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button[aria-selected="true"],
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-research-tabs__list button.is-active {
  color: var(--hv-text);
  box-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button.is-active::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button[aria-selected="true"]::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button.is-active::after,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Evidence wells inside slabs. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-overview-card,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-overview-card,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-detail-stats > div,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-narrative,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-rules,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-chart-data-table,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-balance,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-position-context,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-market-context,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-risk-facts,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ticket-readiness,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-one-click,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-builder-panel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-account-empty {
  border: 0 !important;
  border-radius: var(--hv-r-well);
  background: var(--hv-well) !important;
  background-image: none !important;
  box-shadow: var(--hv-well-shadow) !important;
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-detail-stats > div > strong {
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--hv-text);
}

/* Book: rows carry no rules; depth bars and tone do the work. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-book-head,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-book-row,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-book-mid {
  border: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-book-mid {
  border-radius: 8px;
}

/* Outcome rail chips (collections) = keys; selected = the theme's selected material. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-row,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcome-row {
  border: 0 !important;
  border-radius: var(--hv-r-key) !important;
  background: var(--hv-key) !important;
  background-image: var(--hv-key) !important;
  box-shadow: var(--hv-key-shadow) !important;
  color: var(--hv-key-text) !important;
  backdrop-filter: none;
  transition:
    transform var(--hv-fast) var(--hv-ease),
    box-shadow var(--hv-fast) var(--hv-ease),
    background-color var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcome-row__label {
  color: var(--hv-text) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcome-row__pct {
  color: var(--hv-text) !important;
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcome-row__price,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcome-row__metrics {
  color: var(--hv-text-3) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-row.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcomes-list .pm-outcome-row.is-active {
  border: 0 !important;
  background: var(--hv-sel-bg) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)) !important;
  box-shadow: var(--hv-sel-shadow) !important;
  color: var(--hv-sel-ink) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcome-row.is-active::before {
  background: var(--hv-sel-accent) !important;
  box-shadow: 0 0 10px rgba(var(--hv-accent-rgb), 0.45);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcome-row.is-active .pm-outcome-row__label,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcome-row.is-active .pm-outcome-row__metrics,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcome-row.is-active .pm-outcome-row__price,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip.is-active .pm-outcome-nav__label {
  color: var(--hv-sel-ink) !important;
  text-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcome-row.is-active .pm-outcome-row__pct,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip.is-active .pm-outcome-nav__pct {
  color: var(--hv-sel-accent) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip.is-active .pm-outcome-nav__pct {
  background: rgba(0, 0, 0, 0.22) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-experience="v2"] .pm-outcome-row.is-active .pm-outcome-row__price {
  opacity: 0.78;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-row:active {
  transform: translateY(1px);
}

/* ── 10. Ticket ─────────────────────────────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-trade-intent {
  border: 0;
  border-radius: var(--hv-r-well);
  background: linear-gradient(180deg, rgba(var(--hv-accent-rgb), 0.16), rgba(var(--hv-accent-rgb), 0.04)), var(--hv-well);
  box-shadow: var(--hv-well-shadow), inset 3px 0 0 var(--hv-accent);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-trade-intent__outcome {
  color: var(--hv-text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-trade-intent__eyebrow,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-trade-intent__meta {
  color: var(--hv-text-2);
}

/* Contract choice keys. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-choice,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-pair button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] #ticketSideButtons .pm-outcome-choice {
  min-height: 58px;
  border: 0 !important;
  border-radius: var(--hv-r-key) !important;
  background: var(--hv-key) !important;
  color: var(--hv-key-text) !important;
  box-shadow: var(--hv-key-shadow) !important;
  transition:
    transform var(--hv-fast) var(--hv-ease),
    box-shadow var(--hv-fast) var(--hv-ease),
    background-color var(--hv-fast) var(--hv-ease),
    color var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-choice:hover:not(:disabled):not(.is-active),
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-pair button:hover:not(:disabled):not(.is-active) {
  filter: brightness(1.05);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-choice.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-pair button.is-active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] #ticketSideButtons .pm-outcome-choice.is-active {
  background: var(--hv-sel-bg) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)) !important;
  color: var(--hv-sel-ink) !important;
  box-shadow: var(--hv-sel-shadow) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-choice.is-active > strong,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] #ticketSideButtons .pm-outcome-choice.is-active > strong {
  color: var(--hv-sel-ink) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-choice.is-active > span,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] #ticketSideButtons .pm-outcome-choice.is-active > span {
  color: var(--hv-sel-accent) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-choice:active,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcome-pair button:active {
  transform: translateY(1px);
}

/* Amount well: the number is the heaviest object in the ticket. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-field input,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-field select,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-slippage-field select {
  border: 0;
  border-radius: var(--hv-r-key);
  background: var(--hv-well);
  box-shadow: var(--hv-well-shadow);
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-field input:focus,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-field select:focus,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-slippage-field select:focus {
  outline: none;
  box-shadow: var(--hv-well-shadow), 0 0 0 2px rgba(var(--hv-accent-rgb), 0.55);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-order-field--amount input,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-field--amount input {
  min-height: 60px;
  padding-left: 36px;
  border-radius: var(--hv-r-well);
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-amount-currency {
  color: var(--hv-text-3);
  font-size: 20px;
  font-weight: 600;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-field span,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-slippage-field > span {
  color: var(--hv-text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Quick amount keys. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-quick-amounts button,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-composition="decision-first"] .pm-quick-amounts button {
  min-height: 38px;
  border: 0 !important;
  border-radius: var(--hv-r-key);
  background: var(--hv-key) !important;
  color: var(--hv-key-text) !important;
  box-shadow: var(--hv-key-shadow) !important;
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  transition: transform var(--hv-fast) var(--hv-ease), box-shadow var(--hv-fast) var(--hv-ease), filter var(--hv-fast) var(--hv-ease);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-quick-amounts button:hover {
  filter: brightness(1.05);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-quick-amounts button:active {
  transform: translateY(1px);
  box-shadow: var(--hv-key-pressed) !important;
}

/* Payoff / quote summary. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-return-box.pm-quote-summary,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-return-box,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-two-state-payoff__cell,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-two-state-payoff__loss,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-payout-hero {
  border: 0 !important;
  border-radius: var(--hv-r-well);
  background: var(--hv-well) !important;
  box-shadow: var(--hv-well-shadow) !important;
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-two-state-payoff__cell--selected {
  background: linear-gradient(180deg, rgba(var(--hv-accent-rgb), 0.18), rgba(var(--hv-accent-rgb), 0.04)), var(--hv-well) !important;
  box-shadow: var(--hv-well-shadow), inset 0 0 0 1px rgba(var(--hv-accent-rgb), 0.4) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-two-state-payoff strong,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-payout-hero strong,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-trade-conversion strong {
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-advanced-settings > summary {
  color: var(--hv-text-2);
  font-weight: 600;
}

/* ── 11. Desktop detail: one slab, regions by tone ─────────────────────── */
@media (min-width: 1100px) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-detail-workspace,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"].has-outcomes-rail .pm-detail-workspace {
    position: relative;
    isolation: isolate;
    width: auto;
    max-width: none;
    margin: 12px 16px 0;
    padding: 12px 14px 14px 16px;
    border: 0 !important;
    border-radius: var(--hv-r-slab);
    background: var(--hv-grain), var(--hv-slab) !important;
    background-image: var(--hv-grain), var(--hv-slab) !important;
    background-size: 180px 180px, auto !important;
    box-shadow: var(--hv-lift) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-detail-workspace::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    z-index: 6;
    background: var(--hv-rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.9;
  }

  /* Rail and chart lie flat on the slab. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"].has-outcomes-rail .pm-outcomes-panel,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel::before,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-outcomes-panel::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel::before,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-chart-panel::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel::before,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel::before {
    display: none !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"].has-outcomes-rail .pm-outcomes-panel {
    padding: 8px 6px 10px;
  }

  /* Order book: carved into the slab. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-book-panel--coin-space {
    margin: 6px 0 0 10px;
    border: 0 !important;
    border-radius: var(--hv-r-well) !important;
    background: var(--hv-well) !important;
    background-image: none !important;
    box-shadow: var(--hv-well-shadow) !important;
    transform: none !important;
  }

  /* Order ticket: a raised tray resting on the slab. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel {
    margin-top: 0;
    margin-left: 14px;
    border: 0 !important;
    border-radius: var(--hv-r-tray) !important;
    background: var(--hv-grain), var(--hv-tray) !important;
    background-image: var(--hv-grain), var(--hv-tray) !important;
    background-size: 180px 180px, auto !important;
    box-shadow: var(--hv-tray-shadow) !important;
    transform: none !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel::after {
    display: block !important;
    background: var(--hv-rim);
    opacity: 0.8;
  }

  /* Positions / orders strip: a second slab, not a full-bleed band. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-personal-dock,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-detail-shell[data-composition="decision-first"] .pm-detail-bottom {
    width: auto;
    max-width: none;
    margin: 12px 16px 16px;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: var(--hv-r-slab);
    background: var(--hv-grain), var(--hv-slab) !important;
    background-image: var(--hv-grain), var(--hv-slab) !important;
    background-size: 180px 180px, auto !important;
    box-shadow: var(--hv-lift) !important;
  }
}

/* Below the desktop grid the panels stay separate slabs; the dock strip stays flat. */
@media (max-width: 1099px) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-personal-dock {
    border-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-personal-dock__bar {
  border: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-personal-dock__summary {
  color: var(--hv-text-2);
  font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.02em;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-positions-dock {
  border: 0;
  background: var(--hv-key);
  box-shadow: var(--hv-key-shadow);
  color: var(--hv-key-text);
}

/* ── 12. Dialogs ───────────────────────────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-dialog,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-review-dialog,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcomes-dialog,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-result-dialog {
  border: 0;
  border-radius: var(--hv-r-slab);
  background: var(--hv-grain), var(--hv-slab);
  background-size: 180px 180px, auto;
  box-shadow: var(--hv-lift-high);
  color: var(--hv-text);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-dialog::backdrop,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-review-dialog::backdrop,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcomes-dialog::backdrop,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-result-dialog::backdrop {
  background: var(--hv-scrim);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
}

/* ── 13. Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page:not(.pm-detail-open) .pm-app-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
  }

  /* Bottom category dock: solid plinth with a lit top edge. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page #pmBottomDock {
    border-top: 0 !important;
    background: var(--hv-grain), var(--hv-bar) !important;
    background-size: 180px 180px, auto !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 -18px 40px -10px rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-hg-theme="brand"] body.hg-markets.hg-predict-market-page #pmBottomDock,
  html[data-hg-theme="light"] body.hg-markets.hg-predict-market-page #pmBottomDock {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 -16px 36px -12px rgba(60, 40, 15, 0.3) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button {
    border: 0 !important;
    background: transparent !important;
    color: var(--hv-text-3) !important;
    font-weight: 600;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button.is-active,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button:hover {
    color: var(--hv-text) !important;
    background: transparent !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-glyph {
    width: 34px;
    height: 34px;
    border: 0 !important;
    border-radius: 11px;
    background: var(--hv-well);
    box-shadow: var(--hv-well-shadow);
    color: var(--hv-text-3) !important;
    transition:
      transform var(--hv-fast) var(--hv-ease),
      background var(--hv-fast) var(--hv-ease),
      box-shadow var(--hv-fast) var(--hv-ease),
      color var(--hv-fast) var(--hv-ease);
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button.is-active .pm-dock-glyph {
    background: var(--hv-cta);
    box-shadow: var(--hv-cta-shadow);
    color: var(--hv-cta-ink) !important;
    transform: translateY(-2px);
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button:active .pm-dock-glyph {
    transform: translateY(1px);
    box-shadow: var(--hv-key-pressed);
  }

  /* Card rows on phones: no boxed rows, just rhythm and the numeric well. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page:not(.pm-detail-open) .pm-card-outcome-row {
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Trade dock stats and mobile outcome pair. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileTradeDock:not(.is-ticket-open) {
    border-radius: var(--hv-r-slab) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileTradeStats > div {
    padding: 8px 10px;
    border-radius: var(--hv-r-chip);
    background: var(--hv-well);
    box-shadow: var(--hv-well-shadow);
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileTradeStats strong {
    font-family: var(--hv-num-font);
  font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--hv-text);
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileOutcomePair button {
    border: 0 !important;
    border-radius: var(--hv-r-key) !important;
    background: var(--hv-key) !important;
    color: var(--hv-key-text) !important;
    box-shadow: var(--hv-key-shadow) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileOutcomePair button.is-active {
    background: var(--hv-sel-bg) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)) !important;
    color: var(--hv-sel-ink) !important;
    box-shadow: var(--hv-sel-shadow) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileOutcomePair button.is-active > span,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileOutcomePair button.is-active > strong {
    color: var(--hv-sel-ink) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page.pm-detail-open #mobileTradeButton {
    min-height: 54px !important;
    border-radius: var(--hv-r-well) !important;
  }

  /* Ticket sheet: heavy drop. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-shell[data-experience="v2"] .pm-ticket-panel.is-mobile-open {
    box-shadow:
      var(--hv-lift-high),
      0 -24px 60px -20px rgba(0, 0, 0, 0.7) !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-ticket-scrim,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-portfolio-drawer-scrim {
    background: var(--hv-scrim);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* ── 14. Focus, motion, accessibility ──────────────────────────────────── */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-chip:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-primary-button:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-ghost-button:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-quick-amounts button:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-choice:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-nav__chip:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-row:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-outcome-row:focus-visible,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-binary-side:focus-visible {
  outline: 2px solid rgba(var(--hv-accent-rgb), 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-category-chip::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-research-tabs__list button::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-panel-tabs button::after,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-glyph,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page button {
    transition: none !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:hover,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card:active,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page button:active,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-dock-button.is-active .pm-dock-glyph {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-rules-dialog::backdrop,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-review-dialog::backdrop,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcomes-dialog::backdrop,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-order-result-dialog::backdrop,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-mobile-ticket-scrim,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-portfolio-drawer-scrim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ── 15. Detail hierarchy: each fact once, each control sized for its job ──
   Outcome chips select and show the chance only (the ticket shows prices);
   the selected chip is a tinted outline so the ticket's filled side stays the
   one decision on screen. The sports panel drops its repeated market line,
   the countdown is legible, and the ticket is a single surface. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row.is-active {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: var(--hv-r-key) !important;
  background: var(--hv-key) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px var(--hv-hair) !important;
  color: var(--hv-text) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row.is-active {
  background: color-mix(in srgb, var(--hv-sel-bg) 9%, transparent) !important;
  box-shadow: inset 0 0 0 1.5px var(--hv-sel-bg) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row::before {
  display: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row__label,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row.is-active .pm-outcome-row__label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--hv-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row__metrics {
  display: flex !important;
  flex: none;
  align-items: baseline;
  gap: 6px;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row__pct,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row.is-active .pm-outcome-row__pct {
  color: var(--hv-text) !important;
  font-family: var(--hv-num-font) !important;
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row__price,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcomes-panel > .pm-panel-head h2 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .pm-outcomes-panel > .pm-panel-head {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* The rail's row follows the chips (a fixed 78px row left empty space under them). */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel {
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Many outcomes scroll as a rail: each chip is as wide as its name needs, up to a cap. */
@media (min-width: 761px) {
  /* An overflowing rail never grows minmax() tracks past their minimum, so the
     tracks follow the chips, and the chips carry the bounds. */
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel {
    grid-auto-columns: max-content !important;
  }

  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #outcomesPanel .pm-outcome-row {
    min-width: 168px;
    max-width: 280px;
  }
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #chartOutcomeLabel {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Order book: tabular interface figures, and the spread row and trade strip in
   the theme's own surfaces (both were fixed dark gradients). */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-head,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-head *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-row,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-row *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-mid,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-mid *,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #recentTradesPanel,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #recentTradesPanel * {
  font-family: var(--hv-num-font) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-mid {
  border: 0 !important;
  background: var(--hv-well) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px var(--hv-hair) !important;
  color: var(--hv-text-2) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderBookPanel .pm-book-mid * {
  color: var(--hv-text-2) !important;
  text-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #recentTradesPanel {
  background: transparent !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 var(--hv-hair) !important;
}

/* Close countdown: ink digits, quiet units, never the dark-theme pale tint. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #marketExpiryCountdown strong {
  color: var(--hv-text-2) !important;
  font-family: var(--hv-num-font) !important;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600 !important;
  text-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #marketExpiryCountdown span {
  color: var(--hv-text-3) !important;
  font-size: 11px !important;
}

/* A match shows its own start on the board; the market close stays in Rules. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page.hg-sports-context-visible .pm-detail-view #marketExpiryCountdown {
  display: none !important;
}

/* Sports panel on the detail page: outcomes and ticket already state the
   market price and its freshness; the board stays a readable width. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .hg-sports-presentation--live > .hg-sports-market-context {
  display: none !important;
}

/* A readable width that grows with a wide page (the match column now spans
   the screen beside the ticket): 720px, up to 960px on wide screens. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .hg-sports-presentation--live .hg-live {
  width: 100%;
  max-width: clamp(720px, 74%, 960px);
  margin-inline: auto;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .hg-sports-book-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  height: auto !important;
  padding: 6px 12px !important;
  border: 1px solid var(--hv-hair) !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hv-text-2) !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.3 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .hg-sports-book-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view .hg-sports-book-toggle[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Ticket: one surface; amount reads "$ 0.00" on one line. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-ticket-trade-stack {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-ticket-trade-stack__body,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-ticket-stage,
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-form {
  background: transparent !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-field--amount {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 6px !important;
  row-gap: 2px !important;
  padding: 8px 12px !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-field--amount > #tradePrimaryInputLabel {
  grid-column: 1 / -1;
  color: var(--hv-text-2) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-field--amount > .pm-amount-currency {
  position: static !important;
  grid-column: 1;
  grid-row: 2;
  color: var(--hv-text-3) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-field--amount > #orderAmount {
  grid-column: 2;
  grid-row: 2;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--hv-num-font) !important;
  font-size: 24px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600 !important;
  text-align: left !important;
  text-shadow: none !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-field--amount > #orderAmount::placeholder {
  color: var(--hv-text-3) !important;
  opacity: 1;
  text-shadow: none !important;
}

/* Order type: a light segmented control in every theme (the track was a fixed dark tint). */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-type-toggle {
  padding: 3px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--hv-well) !important;
  box-shadow: inset 0 0 0 1px var(--hv-hair) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-type-toggle > button {
  min-height: 34px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-order-type-toggle > button:not(.is-active) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--hv-text-2) !important;
}

html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #orderTicket .pm-quick-amounts button {
  min-height: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Account tabs under the market: secondary navigation, not a headline. */
html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-detail-view #detailAccountTabs button {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

@media (forced-colors: active) {
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-market-card,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-card-outcome-row__pct,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-choice,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-outcome-row,
  html[data-hg-theme] body.hg-markets.hg-predict-market-page .pm-sign-button {
    border: 1px solid CanvasText !important;
    box-shadow: none !important;
  }
}
