/* Compact, independent pattern lesson panel. No main-chart overlays. */
.t130p-root{--p-ink:#e5f2ff;--p-muted:#acc0d7;--p-edge:#304a61;--p-card:#142739;--p-base:#0d1c2b;--p-rise:#4bd8ae;--p-fall:#ff8097;--p-neutral:#e7c267;margin:18px 0 0;padding:18px;border:1px solid var(--p-edge);border-radius:16px;color:var(--p-ink);background:linear-gradient(120deg,rgba(49,133,168,.09),transparent 62%),var(--p-base);font-size:14px;line-height:1.5;overflow:hidden}
.t130p-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.t130p-root h3,.t130p-root h4,.t130p-root p{margin:0}.t130p-root h3{font-size:18px;line-height:1.4}.t130p-root h4{font-size:15px;line-height:1.5}.t130p-synthetic{flex-shrink:0;border:1px solid var(--p-edge);border-radius:20px;padding:3px 9px;font-size:11px;color:var(--p-muted)}.t130p-root .t130p-intro{margin-top:5px;color:var(--p-muted);font-size:13px}
.t130p-current{display:flex;gap:12px;align-items:center;margin:13px 0}.t130p-label{flex-shrink:0;font-size:12px;font-weight:700;color:var(--p-muted)}.t130p-current-values{display:flex;gap:7px;flex-wrap:wrap}.t130p-empty{font-size:12px;color:var(--p-muted)}.t130p-pill{display:inline-flex;gap:6px;padding:4px 9px;background:var(--p-card);border:1px solid currentColor;border-radius:6px;font-size:12px;font-weight:700}.t130p-up{--pattern-color:var(--p-rise)}.t130p-down{--pattern-color:var(--p-fall)}.t130p-neutral{--pattern-color:var(--p-neutral)}.t130p-pill{color:var(--pattern-color)}
.t130p-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.t130p-root .t130p-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;position:relative;min-width:0;min-height:120px;padding:10px 8px;border:1px solid var(--p-edge);border-radius:11px;color:var(--p-ink);background:var(--p-card);cursor:pointer;font:inherit;text-align:center;touch-action:manipulation;box-shadow:none;white-space:normal}.t130p-root .t130p-card::before,.t130p-root .t130p-card::after{display:none!important}.t130p-card strong{font-size:12px;line-height:1.4}.t130p-card[aria-pressed=true]{border-color:var(--pattern-color);box-shadow:inset 0 -3px var(--pattern-color)}.t130p-root .t130p-card:focus-visible{outline:3px solid #7cd9ed;outline-offset:2px}.t130p-detected strong::after{content:'●';font-size:9px;color:var(--pattern-color);margin-left:6px}.t130p-picture{display:block;width:100%;max-width:150px}.t130p-picture svg{display:block;width:100%;height:70px;overflow:visible}.t130p-picture path{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.t130p-grid{stroke:var(--p-edge);stroke-width:1!important}.t130p-muted-line{stroke:var(--p-muted);stroke-width:2!important}.t130p-rise{stroke:var(--p-rise)}.t130p-fall{stroke:var(--p-fall)}.t130p-rise-fill{fill:var(--p-rise)}.t130p-fall-fill{fill:var(--p-fall)}.t130p-picture .t130p-neutral{stroke:var(--p-neutral);stroke-width:4}.t130p-ring{fill:none;stroke:var(--p-neutral);stroke-opacity:.3;stroke-width:1;stroke-dasharray:3 5}.t130p-neck{stroke:var(--p-muted);stroke-width:1.5!important;stroke-dasharray:4 4}.t130p-shape{stroke-width:3.5!important}
.t130p-detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;margin-top:14px;padding:16px;border:1px solid var(--p-edge);border-radius:11px;background:var(--p-card)}.t130p-root .t130p-summary{margin-top:6px;font-size:14px}.t130p-root .t130p-tip{margin-top:8px;color:var(--p-muted);font-size:12px}.t130p-definition{margin-top:10px}.t130p-root .t130p-definition summary{display:list-item;min-height:0;padding:3px 0;border:0;background:none;font-size:12px;color:var(--p-muted);cursor:pointer;list-style:disclosure-closed}.t130p-root .t130p-definition[open] summary{list-style:disclosure-open}.t130p-definition summary::before,.t130p-definition summary::after{display:none!important}.t130p-root .t130p-definition p{font-size:12px;color:var(--p-muted);margin-top:5px}.t130p-stats{border-left:1px solid var(--p-edge);padding-left:16px}.t130p-root .t130p-sample{color:var(--p-muted);font-size:12px;margin:5px 0}.t130p-stat-value{font-size:25px;color:var(--p-rise);font-variant-numeric:tabular-nums}.t130p-ratio-label{font-size:12px;color:var(--p-muted)}.t130p-meter{display:flex;height:9px;border-radius:9px;overflow:hidden;background:var(--p-edge);margin:8px 0}.t130p-meter-rise{background:var(--p-rise)}.t130p-meter-fall{background:var(--p-fall)}.t130p-meter-flat{background:#7990a5}.t130p-root .t130p-meter-legend{color:var(--p-muted);font-size:11px}.t130p-root .t130p-diagram-note{margin-top:7px;color:var(--p-muted);font-size:11px}.t130p-root .t130p-need{font-size:13px;margin:8px 0}.t130p-root .t130p-scope{font-size:11px;color:var(--p-muted);margin-top:8px}.t130p-root [hidden]{display:none!important}
html[data-theme=light] .t130p-root,body[data-theme=light] .t130p-root,body.light .t130p-root,.theme-light .t130p-root{--p-ink:#16344f;--p-muted:#567088;--p-edge:#d1dfeb;--p-card:#f5f8fc;--p-base:#fff;--p-rise:#087d5a;--p-fall:#be3554;--p-neutral:#94651b;background:linear-gradient(120deg,rgba(49,133,168,.055),transparent 62%),var(--p-base)}
@media(max-width:760px){.t130p-root{padding:13px;border-radius:12px}.t130p-cards{display:flex;overflow-x:auto;gap:8px;padding-bottom:5px;scroll-snap-type:x proximity}.t130p-root .t130p-card{flex:0 0 126px;min-height:116px;scroll-snap-align:start}.t130p-detail{grid-template-columns:1fr;padding:13px;gap:13px}.t130p-stats{border-left:0;padding-left:0;border-top:1px solid var(--p-edge);padding-top:12px}.t130p-current{align-items:flex-start;gap:9px}.t130p-root h3{font-size:16px}.t130p-picture svg{height:65px}}
@media(prefers-reduced-motion:no-preference){.t130p-card{transition:border-color .15s,box-shadow .15s}}
/* Match the chart's own theme switch, including standalone previews. */
.n127-chart-studio[data-chart-theme=light] .t130p-root{--p-ink:#16344f;--p-muted:#567088;--p-edge:#d1dfeb;--p-card:#f5f8fc;--p-base:#fff;--p-rise:#087d5a;--p-fall:#be3554;--p-neutral:#94651b;background:linear-gradient(120deg,rgba(49,133,168,.055),transparent 62%),var(--p-base)}
#simple#simple .n127-chart-studio .t130p-root h3,#simple#simple .n127-chart-studio .t130p-root h4{display:block;background:none;border:0;box-shadow:none;padding:0;margin:0;min-height:0;color:var(--p-ink);letter-spacing:0;line-height:1.4}
#simple#simple .n127-chart-studio .t130p-root h3{font-size:18px}#simple#simple .n127-chart-studio .t130p-root h4{font-size:15px}
#simple#simple .n127-chart-studio .t130p-root .t130p-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:auto;min-height:120px;height:auto;padding:10px 8px;color:var(--p-ink);border:1px solid var(--p-edge);background:var(--p-card);box-shadow:none;line-height:1.4}
#simple#simple .n127-chart-studio .t130p-root .t130p-card[aria-pressed=true]{border-color:var(--pattern-color);box-shadow:inset 0 -3px var(--pattern-color)}
#simple#simple .n127-chart-studio .t130p-definition summary{display:list-item;min-height:28px;padding:3px 0!important;margin:0;border:0;background:none;color:var(--p-muted);font-size:12px;line-height:1.5;box-shadow:none;clip-path:none}
#simple#simple .n127-chart-studio .t130p-root p{line-height:1.5;letter-spacing:0}
@media(max-width:760px){#simple#simple .n127-chart-studio .t130p-root .t130p-card{flex:0 0 126px;min-height:116px}#simple#simple .n127-chart-studio .t130p-root h3{font-size:16px}}
