      :root {
        --bg: #f6f4ef;
        --surface: #ffffff;
        --ink: #111111;
        --muted: #5a5a5a;
        --line: #d9d4ca;
        --accent: #1f5f78;
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        font-family: "Avenir Next", "Segoe UI", sans-serif;
        color: var(--ink);
        background: linear-gradient(180deg, #f8f6f2 0%, var(--bg) 100%);
      }

      .wrap {
        width: min(1480px, 96vw);
        margin: 0 auto;
        padding: 56px 0 80px;
      }

      h1 {
        margin: 0 0 12px;
        font-size: clamp(34px, 4.5vw, 60px);
        letter-spacing: -0.03em;
      }

      .lead {
        margin: 0 0 28px;
        color: var(--muted);
        font-size: clamp(16px, 1.7vw, 20px);
      }

      .panel {
        border: 1px solid var(--line);
        background: var(--surface);
      }

      .tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-bottom: 1px solid var(--line);
      }

      .tab {
        appearance: none;
        border: 0;
        border-right: 1px solid var(--line);
        background: transparent;
        color: var(--muted);
        padding: 18px 14px;
        text-align: center;
        font-size: clamp(13px, 1.1vw, 16px);
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
      }

      .tab:last-child {
        border-right: 0;
      }

      .tab[aria-selected="true"] {
        color: var(--ink);
        background: #faf9f6;
      }

      .panes {
        padding: 28px;
        min-height: 420px;
      }

      .pane {
        display: none;
      }

      .pane.active {
        display: block;
      }

      .section-title {
        margin: 0 0 10px;
        font-size: clamp(24px, 2.3vw, 34px);
        letter-spacing: -0.02em;
      }

      .section-copy {
        margin: 0 0 18px;
        max-width: 90ch;
        color: var(--muted);
        line-height: 1.55;
      }

      .subtabs {
        display: inline-flex;
        gap: 8px;
        border-bottom: 1px solid var(--line);
        margin: 0 0 16px;
        padding-bottom: 8px;
        width: 100%;
      }

      .subtab {
        appearance: none;
        border: 1px solid transparent;
        background: transparent;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
        padding: 8px 12px;
        cursor: pointer;
      }

      .subtab[aria-selected="true"] {
        color: var(--ink);
        border-color: var(--line);
        background: #faf9f6;
      }

      .content-box {
        border: 1px solid var(--line);
        background: #fcfbf8;
        padding: 16px;
      }

      .nba-intro {
        margin-bottom: 16px;
      }

      .nba-intro-label {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 5px;
      }

      .nba-intro .section-copy {
        margin-bottom: 0;
        max-width: none;
        width: 100%;
      }

      #pane-nba > .section-copy,
      #pane-nbl > .section-copy,
      #pane-nbl1 > .section-copy {
        max-width: none;
      }

      .nbl-intro {
        margin-bottom: 18px;
      }

      .tech-stack-inline {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
      }

      .tech-stack-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--muted);
      }

      .tech-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }

      .tech-chip {
        display: inline-flex;
        align-items: center;
        border: 1px solid #d8d6cf;
        background: #f7f5ef;
        color: #4f5d73;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        padding: 5px 8px;
        white-space: nowrap;
      }

      .nba-panel-desc {
        margin: 0;
        font-size: 15px;
        color: var(--ink);
        line-height: 1.55;
        width: 100%;
        min-height: 0;
        text-align: left;
      }

      .nba-shotcard {
        border: 1px solid var(--line);
        background: #fcfbf8;
        padding: 20px;
        overflow: hidden;
      }

      .nba-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: stretch;
      }

      .nba-panel {
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }

      .nba-panel .nba-plot-wrap {
        align-items: flex-start;
        margin-bottom: 10px;
      }

      .nba-panel-sub {
        margin: 0;
        color: var(--ink);
        font-size: 15px;
        line-height: 1.55;
        width: 100%;
        min-height: 0;
        text-align: center;
      }

      .nba-shotcard-head {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 6px;
        text-align: center;
      }

      .nba-shotcard h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
      }

      .nba-shot-summary {
        color: var(--ink);
        font-size: 15px;
        line-height: 1.55;
      }

      .nba-caption {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
      }

      .nba-process-card {
        margin-top: 18px;
        border-top: 1px solid #e1ded6;
        padding-top: 14px;
      }

      .nba-process-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
      }

      .nba-process-panel {
        padding: 0;
      }

      .nba-process-panel h3 {
        margin: 0 0 10px;
      }

      .nba-process-panel ul {
        margin: 0;
        padding-left: 18px;
        color: var(--ink);
        font-size: 15px;
        line-height: 1.55;
      }

      .nba-process-panel li + li {
        margin-top: 4px;
      }

      .nba-process-copy {
        margin: 0;
        color: var(--ink);
        font-size: 15px;
        line-height: 1.55;
      }

      .nba-process-copy + .nba-process-copy {
        margin-top: 10px;
      }

      .nba-shot-legend {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 8px 0 10px;
        font-size: 15px;
        color: var(--ink);
        line-height: 1.55;
      }

      .nba-shot-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }

      .nba-decade-stepper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 8px 0 6px;
      }

      .nba-decade-nav {
        appearance: none;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink);
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 13px;
        flex-shrink: 0;
      }

      .nba-decade-nav:disabled {
        opacity: 0.25;
        cursor: default;
      }

      .nba-decade-pips {
        display: flex;
        gap: 2px;
      }

      .nba-decade-pip {
        padding: 3px 10px;
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        border: 1px solid transparent;
        letter-spacing: 0.01em;
        cursor: pointer;
        user-select: none;
      }

      .nba-decade-pip:not(.active):hover {
        color: var(--ink);
        background: #f8f7f4;
        border-color: var(--line);
      }

      .nba-decade-pip.active {
        color: var(--ink);
        background: #f2f0eb;
        border-color: var(--line);
      }

      .nba-scale-toggle {
        display: inline-flex;
        border: 1px solid var(--line);
        margin: 2px auto 8px;
      }

      .nba-scale-toggle button {
        appearance: none;
        border: 0;
        border-right: 1px solid var(--line);
        background: #fff;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
        padding: 6px 10px;
        cursor: pointer;
      }

      .nba-scale-toggle button:last-child {
        border-right: 0;
      }

      .nba-scale-toggle button[data-active="true"] {
        background: #f2f0eb;
        color: var(--ink);
      }

      .nba-shot-legend .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
      }

      .nba-shot-legend .dot.made {
        background: rgba(34, 197, 94, 0.35);
        border: 1.5px solid #22c55e;
      }

      .nba-shot-legend .dot.miss {
        background: #000;
      }

      .nba-plot-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
      }

      .nba-shot-frame {
        position: relative;
        flex: 0 0 75%;
        aspect-ratio: 2002 / 1880;
        overflow: hidden;
      }

      .nba-court-container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #ede9df;
        border: 1px solid #d8d2c7;
        overflow: hidden;
      }

      .nba-shot-3d {
        position: absolute;
        inset: 0;
        border: 1px solid #d8d2c7;
        background: #eef2f8;
        display: block;
        overflow: hidden;
      }

      #nba-svg-zones,
      #nba-court-overlay,
      .nba-shot-layer,
      .nba-zone-stats-layer {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
      }

      #nba-svg-zones {
        z-index: 1;
      }

      #nba-court-overlay {
        object-fit: contain;
        z-index: 2;
      }

      .nba-shot-layer {
        pointer-events: none;
        z-index: 3;
      }

      .nba-zone-stats-layer {
        pointer-events: none;
        z-index: 4;
      }

      .nba-shot {
        position: absolute;
        width: 1.1%;
        aspect-ratio: 1;
        transform: translate(-50%, -50%);
        z-index: 5;
      }

      .nba-shot.made {
        border: 1.5px solid #22c55e;
        background: rgba(34, 197, 94, 0.35);
        border-radius: 50%;
      }

      .nba-shot.miss {
        border: 0;
        background: transparent;
        color: #000;
        border-radius: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
      }

      .nba-shot.miss::before {
        content: "×";
      }

      .nba-zone-stat {
        position: absolute;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.54);
        border-radius: 999px;
        padding: 3px 9px;
        text-align: center;
        min-width: 42px;
        line-height: 1.05;
        backdrop-filter: blur(1px) saturate(1.1);
      }

      .nba-zone-stat .fg {
        font-size: 10px;
        font-weight: 700;
        color: #1f2937;
      }

      .nba-zone-stat .att {
        font-size: 9px;
        color: #4b5563;
        opacity: 0.9;
      }

      .nba-zone-stat .lg {
        font-size: 9px;
        color: #6b7280;
        opacity: 0.75;
      }

      .nba-color-legend {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        align-self: stretch;
        width: 24px;
      }

      .nba-color-legend-axis {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 9px;
        font-weight: 600;
        color: var(--muted);
        letter-spacing: 0.04em;
        white-space: nowrap;
        text-transform: uppercase;
        align-self: center;
        flex-shrink: 0;
      }

      .nba-color-legend-bar {
        width: 18px;
        flex: 1;
        background: linear-gradient(to bottom, #c62d2d, #eceae4, #2b59c3);
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 3px;
      }
      .nba-color-legend-bar--2d {
        background: linear-gradient(to bottom, #c62d2d, #eceae4, #2b59c3);
      }

      .nba-color-legend-label {
        font-size: 9px;
        font-weight: 700;
        color: #4a5568;
        letter-spacing: 0.02em;
        white-space: nowrap;
      }

      .nba-shot-foot {
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        font-size: 11px;
        color: var(--muted);
      }

      .nba-style-shell {
        border: 1px solid var(--line);
        background: #fcfbf8;
        padding: 18px;
      }

      .nba-style-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        align-items: end;
        margin-bottom: 10px;
      }

      .nba-style-control {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 260px;
        flex: 1;
      }

      .nba-style-control-small {
        max-width: 160px;
        min-width: 140px;
        flex: 0 0 auto;
      }

      .nba-style-control label {
        font-size: 12px;
        color: var(--muted);
        font-weight: 600;
      }

      .nba-style-control input,
      .nba-style-control select {
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink);
        font-size: 14px;
        padding: 8px 10px;
        height: 38px;
      }

      .nba-style-meta {
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 10px;
      }

      .nba-style-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
        gap: 18px;
        align-items: start;
      }

      .nba-style-grid .nba-style-panel:first-child {
        min-width: 0;
      }

      .nba-style-grid .nba-style-panel:last-child {
        max-width: 560px;
        width: 100%;
        justify-self: end;
      }

      .nba-style-panel h3 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 700;
      }

      #nba-style-scatter {
        width: 100%;
        display: block;
        border: 1px solid var(--line);
        background: #eef4fb;
        border-color: #f5f9ff;
      }

      #nba-style-scatter .nba-style-point {
        cursor: pointer;
      }

      .nba-style-table-wrap {
        max-height: 460px;
      }

      .nba-style-row-selected {
        background: #f7fafc;
      }

      .nba-style-row[data-style-player] {
        cursor: pointer;
      }

      .nba-style-row[data-style-player]:hover {
        background: #f9fafb;
      }

      .nba-style-row td:nth-child(2) {
        font-variant-numeric: tabular-nums;
        text-align: center;
        min-width: 64px;
      }

      .nba-style-row td:nth-child(3) {
        color: #4b5563;
      }

      .nba-style-row td:nth-child(4),
      #nba-style-table th:nth-child(4) {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        text-align: center;
      }

      .nba-style-mix {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .nba-style-mix-pie {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1px solid #c9d4e5;
        position: relative;
        flex-shrink: 0;
      }

      .nba-style-mix-pie::after {
        content: "";
        position: absolute;
        inset: 5px;
        border-radius: 50%;
        background: #fff;
      }

      .nba-style-mix-empty {
        color: var(--muted);
        font-size: 12px;
      }

      .nba-style-cluster-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        padding: 2px 7px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        background: var(--cluster, #6b7280);
        margin-right: 6px;
      }

      .nba-headshot-shell {
        border: 1px solid var(--line);
        background: #fcfbf8;
        padding: 18px;
      }

      .nba-headshot-meta {
        margin: 0 0 10px;
        color: var(--muted);
        font-size: 13px;
      }

      .nba-headshot-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 10px;
      }

      .nba-headshot-head .nba-headshot-meta {
        margin: 0;
      }

      .nba-export-button {
        appearance: none;
        border: 1px solid var(--line);
        background: #faf9f6;
        color: var(--ink);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.01em;
        padding: 10px 14px;
        cursor: pointer;
        transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
        white-space: nowrap;
      }

      .nba-export-button:hover {
        background: #f2efe8;
        border-color: #c9c1b2;
      }

      .nba-export-button:disabled {
        opacity: 0.55;
        cursor: not-allowed;
      }

      .nba-headshot-frame {
        border: 1px solid var(--line);
        background: #eef4fb;
        width: min(860px, 100%);
        margin: 0 auto;
      }

      #nba-headshot-scatter {
        width: 100%;
        display: block;
      }

      @media (max-width: 980px) {
        .nba-grid {
          grid-template-columns: 1fr;
          gap: 24px;
        }
        .nba-style-grid {
          grid-template-columns: 1fr;
        }
        .nba-process-grid {
          grid-template-columns: 1fr;
          gap: 16px;
        }
        .nba-headshot-head {
          flex-direction: column;
          align-items: flex-start;
        }
        .nba-panel-sub,
        .nba-panel-desc {
          width: 100%;
          margin-left: 0;
          min-height: 0;
        }
      }

      .rapm-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
      }

      .rapm-tools {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }

      .search-input {
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink);
        font-size: 13px;
        padding: 8px 10px;
        min-width: 220px;
      }

      .toggle {
        display: inline-flex;
        border: 1px solid var(--line);
      }

      .toggle button {
        appearance: none;
        border: 0;
        background: #fff;
        color: var(--muted);
        font-size: 13px;
        font-weight: 600;
        padding: 8px 12px;
        cursor: pointer;
      }

      .toggle button[data-active="true"] {
        background: #f2f0eb;
        color: var(--ink);
      }

      .table-wrap {
        border: 1px solid var(--line);
        max-height: 520px;
        overflow: auto;
        background: #fff;
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      th,
      td {
        padding: 10px 12px;
        border-bottom: 1px solid #ece7de;
        font-size: 14px;
        white-space: nowrap;
      }

      th {
        position: sticky;
        top: 0;
        background: #fbf9f5;
        z-index: 1;
        text-align: left;
      }

      th button {
        appearance: none;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
        padding: 0;
      }

      td.metric {
        text-align: right;
        font-variant-numeric: tabular-nums;
        vertical-align: middle;
      }

      td.count {
        text-align: right;
        font-variant-numeric: tabular-nums;
      }

      .metric-main {
        display: block;
      }

      .metric-sub {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        color: #4f4f4f;
      }

      .status {
        color: var(--muted);
        font-size: 13px;
      }

      .wowy-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
      }

      .wowy-controls label {
        display: block;
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 4px;
      }

      .wowy-controls select,
      .wowy-controls input[type="number"] {
        width: 100%;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink);
        padding: 8px 10px;
        font-size: 13px;
      }

      .wowy-table-tools {
        width: min(1200px, 92%);
        margin: 0 auto 8px;
        display: flex;
        justify-content: flex-end;
      }

      .wowy-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 0;
      }

      .wowy-toggle input {
        margin: 0;
      }

      .wowy-meta {
        width: min(1200px, 92%);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 8px;
        font-size: 12px;
        color: var(--muted);
      }

      .wowy-selected {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
      }

      .wowy-selected-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 999px;
        padding: 4px 10px 4px 4px;
        font-size: 13px;
      }

      .wowy-selected-chip button {
        border: 0;
        background: transparent;
        cursor: pointer;
        color: var(--muted);
        font-size: 13px;
      }

      .wowy-pool {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 6px;
      }

      .wowy-player-btn {
        flex: 0 0 146px;
        border: 1px solid var(--line);
        background: #fff;
        padding: 10px 8px;
        cursor: pointer;
        text-align: center;
      }

      .wowy-player-btn.selected {
        border-color: #88b79b;
        background: #edf7f1;
      }

      .wowy-player-btn .head {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto 8px;
        border: 2px solid #d8d1c5;
        background: #ece7de;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 700;
      }

      .wowy-player-btn .head img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .wowy-player-btn .name {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
      }

      .wowy-player-btn .mins {
        margin-top: 2px;
        font-size: 11px;
        color: var(--muted);
      }

      .wowy-state {
        display: flex;
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
      }

      .wowy-state-col {
        min-width: 156px;
      }

      .wowy-player {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        width: 74px;
        min-height: 80px;
        padding: 5px 4px;
        border-radius: 10px;
        font-size: 11px;
        border: 1px solid var(--line);
        background: #fff;
      }

      .wowy-player.on {
        background: #eaf7ef;
        border-color: #b8dec1;
      }

      .wowy-player.off {
        background: #f6f0f0;
        border-color: #ddc8c8;
      }

      .wowy-player-name {
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
      }

      .wowy-player-tag {
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #666;
      }

      .wowy-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        background: #e7e3db;
        border: 1px solid var(--line);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 700;
      }

      .wowy-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .wowy-value {
        text-align: right;
        font-variant-numeric: tabular-nums;
        vertical-align: middle;
      }

      .wowy-metric-main {
        display: block;
        font-size: 13px;
        line-height: 1.1;
      }

      .wowy-metric-sub {
        display: block;
        margin-top: 2px;
        font-size: 10px;
        font-weight: 700;
      }

      .wowy-metric-faint {
        display: block;
        margin-top: 6px;
        font-size: 10px;
        color: #97a0af;
        font-weight: 600;
      }

      .wowy-metric-sub.pos {
        color: #1f8b50;
      }

      .wowy-metric-sub.neg {
        color: #b45454;
      }

      .wowy-metric-sub.neutral {
        color: #6f6f6f;
      }

      .dpm-controls {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 10px;
        margin-bottom: 10px;
      }

      .dpm-controls label {
        display: block;
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 4px;
      }

      .dpm-controls select,
      .dpm-search-row input {
        width: 100%;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink);
        padding: 8px 10px;
        font-size: 13px;
      }

      .dpm-search-row {
        display: block;
      }

      .dpm-search-wrap {
        position: relative;
      }

      .dpm-search-results {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 30;
        border: 1px solid #c7d3e3;
        background: #fff;
        box-shadow: 0 8px 24px rgba(20, 34, 63, 0.12);
        max-height: 320px;
        overflow: auto;
        display: none;
      }

      .dpm-search-results.open {
        display: block;
      }

      .dpm-search-option {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 0;
        border-bottom: 1px solid #edf2f9;
        background: #fff;
        padding: 8px 10px;
        text-align: left;
        cursor: pointer;
      }

      .dpm-search-option:hover {
        background: #f6f9ff;
      }

      .dpm-search-option:last-child {
        border-bottom: 0;
      }

      .dpm-search-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #ced9ea;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f3f6fb;
        font-size: 11px;
        font-weight: 700;
        color: #5b6578;
        flex: 0 0 36px;
      }

      .dpm-search-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .dpm-search-text {
        min-width: 0;
      }

      .dpm-search-name {
        font-size: 13px;
        font-weight: 700;
        color: #1f2836;
        line-height: 1.15;
      }

      .dpm-search-years {
        margin-top: 2px;
        font-size: 11px;
        color: #66758d;
      }

      .dpm-selected-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
      }

      .dpm-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid transparent;
        font-size: 13px;
        font-weight: 700;
      }

      .dpm-chip button {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 0;
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
      }

      .dpm-chip.blue {
        background: #dbe8ff;
        border-color: #88a8e8;
      }

      .dpm-chip.blue button {
        background: #b4cbf3;
        color: #243e71;
      }

      .dpm-chip.red {
        background: #ffdede;
        border-color: #ef9a9a;
      }

      .dpm-chip.red button {
        background: #f3b6b6;
        color: #7e2d2d;
      }

      .dpm-chip.green {
        background: #dff6e8;
        border-color: #9ad0af;
      }

      .dpm-chip.green button {
        background: #b8e1c8;
        color: #255f39;
      }

      .dpm-meta {
        margin-bottom: 6px;
        font-size: 12px;
        color: var(--muted);
      }

      .dpm-chart-wrap {
        border: 1px solid var(--line);
        background: #f8fafc;
        padding: 6px 8px 8px;
      }

      #dpm-chart {
        width: 100%;
        height: auto;
        display: block;
      }

      .dpm-legend {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 8px;
      }

      .dpm-legend-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        color: #2b3443;
        background: #f3f6fb;
        border: 1px solid #d9e2ef;
        border-radius: 999px;
        padding: 5px 10px;
      }

      .dpm-swatch {
        width: 20px;
        height: 3px;
        border-radius: 3px;
      }

      .dpm-note {
        margin-top: 6px;
        margin-bottom: 10px;
        font-size: 12px;
        color: var(--muted);
      }

      #wowy-table {
        table-layout: auto;
        min-width: 0;
      }

      .wowy-table-wrap {
        width: min(1200px, 92%);
        margin: 0 auto;
        max-height: none;
        overflow: visible;
      }

      #wowy-table th,
      #wowy-table td {
        padding-top: 8px;
        padding-bottom: 8px;
      }

      #wowy-table th.state-col,
      #wowy-table td.wowy-state-col {
        text-align: center;
      }

      #wowy-table th.numeric-col,
      #wowy-table td.wowy-value {
        text-align: center;
      }

      @media (max-width: 900px) {
        .tabs {
          grid-template-columns: 1fr;
        }

        .tab {
          border-right: 0;
          border-bottom: 1px solid var(--line);
        }

        .tab:last-child {
          border-bottom: 0;
        }

        .panes {
          padding: 20px;
        }

        .subtabs {
          flex-wrap: wrap;
        }

        .rapm-tools {
          width: 100%;
        }

        .search-input {
          width: 100%;
          min-width: 0;
        }

        .toggle {
          width: 100%;
        }

        .toggle button {
          flex: 1;
        }

        .wowy-controls {
          grid-template-columns: 1fr;
        }

        .dpm-controls {
          grid-template-columns: 1fr;
        }

        .dpm-search-row {
          display: block;
        }

        .wowy-toggle {
          padding-top: 0;
        }

        .wowy-table-tools,
        .wowy-meta,
        .wowy-table-wrap {
          width: 100%;
        }

        .wowy-pool {
          gap: 8px;
        }

        .wowy-player-btn .head {
          width: 56px;
          height: 56px;
        }

        .wowy-player-btn {
          flex-basis: 118px;
        }

        .wowy-player {
          width: 78px;
          min-height: 102px;
          font-size: 11px;
          padding: 6px 4px;
        }

        .wowy-avatar {
          width: 50px;
          height: 50px;
          font-size: 11px;
        }

        th,
        td {
          font-size: 13px;
          padding: 9px 10px;
        }
      }

      /* ── Computer Vision section ── */
      .cv-flow {
        display: block;
      }

      .cv-flow h3 {
        margin: 14px 0 4px;
      }

      .cv-flow h3:first-child {
        margin-top: 0;
      }

      .cv-flow .nba-process-copy {
        margin-bottom: 10px;
      }

      .cv-center {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
      }

      .cv-clear {
        clear: both;
      }

      .cv-figure {
        margin: 0;
        max-width: 40%;
      }

      .cv-figure .cv-img {
        width: 100%;
        max-width: none;
      }

      .cv-caption {
        margin-top: 5px;
        font-size: 12px;
        color: var(--muted);
        text-align: center;
      }

      .cv-img {
        display: block;
        width: auto;
        height: auto;
        border: 1px solid var(--line);
      }

      .cv-img--goal {
        max-width: 55%;
      }

      .cv-img--wide {
        max-width: 40%;
      }

      .cv-img--workflow {
        max-width: 36%;
      }

      .cv-pipeline-title {
        float: right;
        clear: right;
        margin: 0 0 4px 18px;
        width: 18%;
        text-align: center;
      }

      .cv-img--pipeline {
        float: right;
        clear: right;
        max-width: 18%;
        margin: 0 0 12px 18px;
      }
