/* ==================================================================
   AISO MATTER ∞ - Dimension Engine styles (loaded after periodic.css)
   ================================================================== */
.pt-dock {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin: 0 0 14px;
  border-radius: 14px; background: rgba(18, 24, 36, 0.8); border: 1px solid var(--pt-line);
  scrollbar-width: none;
}
.pt-dock::-webkit-scrollbar { display: none; }
.pt-dock button {
  flex: 1 0 auto; min-width: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  border: 0; border-radius: 10px; padding: 9px 12px 10px; cursor: pointer; text-align: left;
  background: transparent; color: var(--pt-muted); transition: background .2s, color .2s;
}
.pt-dock button:hover { background: rgba(255, 255, 255, 0.03); color: #dfe6f0; }
.pt-dock button[aria-pressed="true"] { background: linear-gradient(180deg, #1c2436, #161d2b); color: #fff; box-shadow: inset 0 0 0 1px var(--pt-line2), 0 6px 18px -10px rgba(143, 184, 255, 0.5); }
.pt-dock button:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: -2px; }
.pt-dock-n { font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: 1.5px; color: var(--pt-faint); }
.pt-dock button[aria-pressed="true"] .pt-dock-n { color: var(--pt-accent); }
.pt-dock-l { font: 500 13px/1.15 "IBM Plex Sans", sans-serif; white-space: nowrap; }

.pt-dimhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; min-height: 36px; }
#ptDimTitle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#ptDimTitle b { font: 500 11px "IBM Plex Mono", monospace; color: var(--pt-accent); letter-spacing: 1.5px; }
#ptDimTitle .pt-dt-l { font: 500 19px/1.1 "IBM Plex Sans", sans-serif; color: #fff; }
#ptDimTitle .pt-dt-s { font-size: 13px; color: var(--pt-muted); }
.pt-dimbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.pt-dimbar:empty { display: none; }
.pt-dimnote { font: 400 12px "IBM Plex Mono", monospace; color: var(--pt-faint); }
.pt-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 11px; background: var(--pt-surface); border: 1px solid var(--pt-line); }
.pt-seg .pt-btn { border-color: transparent; background: transparent; }
.pt-seg .pt-btn[aria-pressed="true"] { background: var(--pt-surface2); border-color: var(--pt-line2); }
.pt-btn-sm { padding: 5px 8px; font-size: 11.5px; }
.pt-btn-hot { border-color: rgba(143, 184, 255, 0.5); background: linear-gradient(180deg, rgba(143, 184, 255, 0.18), rgba(143, 184, 255, 0.06)); color: #fff; }
.pt-btn:disabled { opacity: .35; cursor: default; }

.pt-app:not(.has-modes) .pt-modes, .pt-app:not(.has-modes) .pt-temp { display: none !important; }
.pt-modesrow { margin: 0 0 12px; }

/* stage layers */
.pt-layer { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .5s; }
.pt-layer.is-in { opacity: 1; }
.pt-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .5s; }
.pt-overlay.is-in { opacity: 1; }
.pt-overlay > * { pointer-events: auto; }
.pt-overlay .pt-insp, .pt-overlay .pt-ph, .pt-overlay .pt-frow-label { pointer-events: none; }
.pt-side { position: absolute; top: 0; z-index: 31; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: #2a3344 transparent; }
.pt-side[hidden] { display: none; }
.pt-svg-label { font: 500 10.5px "IBM Plex Mono", monospace; fill: #8c97a8; }
.pt-svg-label.strong { font-weight: 600; font-size: 11.5px; }

.pt-board.is-morphing .pt-el { pointer-events: none; }
.pt-board.is-live .pt-el { transition: translate .16s, border-color .16s, box-shadow .16s, opacity .45s; }
.pt-el.is-hidden { opacity: 0 !important; pointer-events: none; }

/* chips: symbol-only tiles for dense layouts */
.pt-board.chips .pt-el .z, .pt-board.chips .pt-el .nm, .pt-board.chips .pt-el .w, .pt-board.chips .pt-el .val { opacity: 0; }
.pt-board.chips .pt-el { padding: 0; border-radius: 22%; }
.pt-board.chips .pt-el .sym { font-size: max(13px, 2.7cqi); margin: 0; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-52%); text-align: center; }
.pt-el .z, .pt-el .nm, .pt-el .w, .pt-el .val { transition: opacity .3s; }

/* living elements */
.pt-el .ring { position: absolute; left: 50%; top: 54%; width: calc(var(--rs, 0) * 86%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--c) 80%, #fff); background: radial-gradient(circle, color-mix(in oklab, var(--c) 26%, transparent), transparent 70%); opacity: 0; transition: opacity .4s, width .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.pt-board.mode-radius .pt-el .ring { opacity: .9; }
.pt-el .ra { position: absolute; right: 7%; top: 9%; width: 7px; height: 7px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.15); opacity: 0; transition: opacity .4s; }
.pt-board.mode-radio .pt-el.is-radio .ra { opacity: 1; }
.pt-el.is-calm { opacity: .5; }
.pt-el.is-focus { border-color: #fff !important; box-shadow: 0 0 0 1px #fff, 0 0 0 5px color-mix(in oklab, var(--c) 30%, transparent), 0 0 30px -6px var(--c) !important; z-index: 9; opacity: 1 !important; filter: none !important; }
.pt-el.is-ghost { opacity: .07 !important; filter: grayscale(1); border-style: dashed; }
.pt-el.is-new { box-shadow: 0 0 0 1px #ffd166, 0 0 24px -4px #ffd166 !important; }
.pt-el.is-outlier { box-shadow: 0 0 0 2px #fff, 0 0 18px -2px #fff !important; z-index: 8; }
.pt-el.is-inlab { box-shadow: 0 0 0 2px #fff, 0 0 20px -4px var(--c) !important; z-index: 8; }

/* tooltip */
.pt-app { position: relative; }
.pt-tip { position: absolute; z-index: 40; pointer-events: none; transform: translate(-50%, -100%); padding: 6px 9px; border-radius: 8px; background: rgba(12, 16, 24, 0.95); border: 1px solid var(--pt-line2); font: 500 12px "IBM Plex Sans", sans-serif; color: #dfe6f0; white-space: nowrap; opacity: 0; transition: opacity .12s; box-shadow: 0 10px 30px -10px #000; }
.pt-tip.is-on { opacity: 1; }
.pt-tip span { color: var(--pt-muted); font-family: "IBM Plex Mono", monospace; font-size: 11px; margin-left: 6px; }

/* overlay cards */
.pt-card { position: absolute; padding: 14px 16px; border-radius: 14px; background: rgba(13, 18, 28, 0.92); border: 1px solid var(--pt-line2); box-shadow: 0 20px 50px -24px #000; backdrop-filter: blur(6px); color: #c9d1dd; font-size: 12.5px; line-height: 1.55; }
.pt-card-r { right: 10px; top: 10px; width: min(330px, 36%); max-height: calc(100% - 20px); overflow: auto; }
.pt-card-sm { width: min(300px, 32%); }
.pt-card h5 { margin: 0 0 8px !important; font: 500 14px "IBM Plex Sans", sans-serif !important; color: #fff !important; text-transform: none !important; letter-spacing: 0 !important; }
.pt-card p { margin: 0 0 8px; }
.pt-card-meta { color: var(--pt-faint); font: 400 11px/1.5 "IBM Plex Mono", monospace; }
.pt-card-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pt-keyrow { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 8px; font: 500 11px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-keyrow i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }
.pt-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-reasons li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.pt-stats div { background: #0f141d; border: 1px solid var(--pt-line); border-radius: 9px; padding: 8px; text-align: center; }
.pt-stats b { display: block; font: 500 18px "IBM Plex Mono", monospace; color: #fff; }
.pt-stats span { font: 500 10px "IBM Plex Mono", monospace; color: var(--pt-faint); text-transform: uppercase; letter-spacing: 1px; }
.pt-card-tm { display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; pointer-events: none; }
.pt-card-tm .pt-num { font: 300 clamp(26px, 3.4cqi, 54px)/1 "IBM Plex Mono", monospace; color: #ffd166; }
.pt-card-tm h5 { font-size: clamp(14px, 1.4cqi, 20px) !important; margin: 6px 0 !important; }
.pt-card-tm p { max-width: 560px; color: var(--pt-muted); font-size: clamp(11px, 0.95cqi, 14px); }

/* constellation edges */
.pt-edge .vis { stroke-width: 1.3; stroke-opacity: .45; transition: stroke-opacity .25s, stroke-width .25s; }
.pt-edge .hit { stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: pointer; }
.pt-edge:hover .vis, .pt-edge.is-on .vis { stroke-opacity: 1; stroke-width: 2.4; }
.pt-edge.is-off .vis { stroke-opacity: .07; }
.pt-spiral { fill: none; stroke: rgba(143, 184, 255, 0.22); stroke-width: 1.2; }

/* axes */
.pt-axes text { font: 400 10.5px "IBM Plex Mono", monospace; fill: #8c97a8; }
.pt-axes .axl { font: 500 12px "IBM Plex Sans", sans-serif; fill: #c9d1dd; }
.pt-axes .grid { stroke: rgba(160, 180, 210, 0.08); }
.pt-axes .frame { fill: none; stroke: rgba(160, 180, 210, 0.22); }
.pt-axes .trend { stroke: #ffd166; stroke-width: 1.5; stroke-dasharray: 6 5; }
.pt-landctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pt-landctl label { font: 500 12px "IBM Plex Mono", monospace; color: var(--pt-muted); display: inline-flex; align-items: center; gap: 6px; }
.pt-landctl select { background: var(--pt-surface); color: #fff; border: 1px solid var(--pt-line2); border-radius: 8px; padding: 6px 8px; font: 500 12.5px "IBM Plex Sans", sans-serif; }
.pt-landpre { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-check { display: inline-flex; align-items: center; gap: 6px; font: 500 12px "IBM Plex Mono", monospace; color: var(--pt-muted); cursor: pointer; }
.pt-check input { accent-color: #8fb8ff; }

/* side panels (shared) */
.pt-dimside { padding: 2px 4px 20px 6px; }
.pt-side-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pt-side-head h3, .pt-dimside h3 { margin: 0 !important; font: 400 24px/1.15 "IBM Plex Sans", sans-serif !important; color: #fff !important; text-transform: none !important; letter-spacing: -0.3px; }
.pt-dimside h4 { margin: 14px 0 8px !important; font: 500 15px "IBM Plex Sans", sans-serif !important; color: #fff !important; text-transform: none !important; letter-spacing: 0 !important; }
.pt-dimside p { color: #b9c3d2; font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.pt-dimside .pt-minis { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-minis.pt-inline { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.pt-mattable { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; }
.pt-mattable th, .pt-mattable td { text-align: left; padding: 7px 10px; border: 1px solid var(--pt-line); vertical-align: top; }
.pt-mattable th { width: 40%; color: var(--pt-muted); font-weight: 500; background: #0f141d; }
.pt-mattable td { color: #e3e8ef; }
.pt-chart { width: 100%; height: auto; display: block; margin: 8px 0; }
.pt-chart text { font: 400 10.5px "IBM Plex Mono", monospace; fill: #8c97a8; }
.pt-chart .g { stroke: rgba(160, 180, 210, 0.08); }
.pt-chart .model { fill: none; stroke: #8fb8ff; stroke-width: 1.6; }
.pt-chart .pt { fill: #ffd166; }
.pt-chart .pt.on { fill: #fff; stroke: #ffd166; stroke-width: 2; }
.pt-chart .lab { fill: #dfe6f0; font-size: 10px; }
.pt-chart .key { fill: rgba(13, 18, 28, .9); stroke: var(--pt-line2); }
.pt-chart .v { fill: #c9d1dd; }
.pt-bars text { fill: #c9d1dd; font-size: 11px; }
.pt-nuc .st { fill: #5d6e88; }
.pt-nuc .pr { fill: #d9a06b; }
.pt-nuc .me { fill: #fff; }
.pt-nuc .row { fill: rgba(143, 184, 255, 0.08); }
.pt-nuc .nz { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 4 4; }
.pt-nuc .sel { fill: none; stroke: #ffd166; stroke-width: 2; }

/* atomic universe */
.pt-lab { position: relative; padding: 0 2px 20px 8px; transition: opacity .6s, transform .7s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.pt-lab.is-entering { opacity: 0; transform: scale(.96); filter: blur(4px); }
.pt-lab.is-entering .pt-reveal { opacity: 0; transform: translateY(8px); }
.pt-reveal { transition: opacity .5s calc(var(--i) * 120ms + 200ms), transform .6s calc(var(--i) * 120ms + 200ms); }
.pt-lab-mark { position: absolute; right: 0; top: -10px; font: 600 min(220px, 18vw)/1 "IBM Plex Sans", sans-serif; letter-spacing: -0.05em; color: var(--c); opacity: .06; pointer-events: none; }
.pt-lab-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; }
.pt-lab-id { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pt-lab-id .pt-num { font: 500 14px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-lab-id h3 { margin: 0 !important; font: 400 30px/1 "IBM Plex Sans", sans-serif !important; color: #fff !important; text-transform: none !important; }
.pt-lab-cfg { font-size: 14px; color: #c9d4e6; }
.pt-lab-nav { margin-left: auto; display: flex; gap: 4px; }
.pt-lab-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pt-lab-stage { position: relative; height: 400px; border-radius: 14px; border: 1px solid var(--pt-line); background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--c) 9%, #101622), #090c13 72%); overflow: hidden; }
.pt-lab-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pt-lab-badge { position: absolute; left: 12px; top: 10px; font: 500 12px "IBM Plex Mono", monospace; color: #dfe6f0; background: rgba(10, 14, 21, .7); border: 1px solid var(--pt-line); border-radius: 6px; padding: 4px 8px; }
.pt-lab-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 10px; }
.pt-lab-ctl > span:first-child { font: 500 10px "IBM Plex Mono", monospace; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pt-faint); min-width: 66px; }
.pt-lab-ctl sub, .pt-lab-ctl sup { font-size: .7em; }
.pt-lab-zoom { margin-left: auto; display: inline-flex; gap: 4px; }
.pt-lab-cap { margin-top: 8px; }
.pt-lab-cap .pt-caption { font-size: 12.5px; }
.pt-lab-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.pt-lab-charts h5 { margin: 0 !important; font: 500 12px "IBM Plex Mono", monospace !important; color: var(--pt-muted) !important; text-transform: uppercase !important; letter-spacing: 1px; }
.pt-facts-3 { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.pt-zoomfly { position: fixed; z-index: 9999; pointer-events: none; transform-origin: 0 0; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--c) 70%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 28%, #151c29), #0f141d 90%); box-shadow: 0 0 60px -10px var(--c); display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; }
.pt-zoomfly .z { font: 500 9px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-zoomfly .sym { font: 600 22px/1 "IBM Plex Sans", sans-serif; color: color-mix(in oklab, var(--c) 40%, #fff); }
.pt-app.is-zooming .pt-board .pt-el:not(.is-focus) { filter: blur(1.5px) saturate(.5); opacity: .35; }

.pt-scalex { padding: 66px 6px 30px; }
.pt-scalex-ruler { position: relative; height: 2px; background: linear-gradient(90deg, #2c5fa8, #1f9aa6, #5cc47a, #cfe05a); border-radius: 2px; }
.pt-scalex .tk { position: absolute; top: 0; transform: translateX(-50%); font: 400 9.5px "IBM Plex Mono", monospace; color: var(--pt-faint); white-space: nowrap; }
.pt-scalex .tk i { display: block; width: 1px; height: 7px; background: rgba(160, 180, 210, .4); margin: 0 auto 4px; }
.pt-scalex .bd { position: absolute; top: 26px; transform: translateX(-50%); font: 500 10px "IBM Plex Mono", monospace; color: var(--pt-muted); text-transform: uppercase; letter-spacing: 1px; }
.pt-scalex .mk { position: absolute; bottom: 4px; transform: translateX(-50%); border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.pt-scalex .mk i { width: 1px; height: calc(10px + var(--row) * 13px); background: rgba(255, 255, 255, .35); }
.pt-scalex .mk span { font: 500 10px "IBM Plex Sans", sans-serif; color: #c9d1dd; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.pt-scalex .mk.me i { background: var(--c); width: 2px; }
.pt-scalex .mk.me span { color: var(--c); font-weight: 600; }
.pt-scalex-read { margin: 4px 0 12px; font: 400 12.5px "IBM Plex Mono", monospace; color: #dfe6f0; min-height: 20px; }
.pt-scalex-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pt-scalex-facts div { background: #0f141d; border: 1px solid var(--pt-line); border-radius: 10px; padding: 10px; }
.pt-scalex-facts b { display: block; font: 500 17px "IBM Plex Mono", monospace; color: #fff; margin-bottom: 4px; }
.pt-scalex-facts span { font-size: 12px; color: var(--pt-muted); line-height: 1.4; display: block; }

/* morphology */
.pt-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
.pt-path-n { border: 1px solid var(--pt-line2); background: var(--pt-surface); color: #dfe6f0; border-radius: 99px; padding: 6px 12px; font: 500 12.5px "IBM Plex Sans", sans-serif; cursor: pointer; }
.pt-path-n.is-el { background: color-mix(in oklab, var(--c) 18%, #0f141d); border-color: var(--c); font-weight: 600; cursor: default; }
.pt-path-n.is-on { border-color: #fff; color: #fff; }
.pt-path-a { color: var(--pt-faint); }
.pt-matcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 12px; }
.pt-matcard { text-align: left; border: 1px solid var(--pt-line); background: #0f141d; border-radius: 11px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; color: #dfe6f0; }
.pt-matcard b { font: 500 13.5px "IBM Plex Sans", sans-serif; }
.pt-matcard small { color: var(--pt-muted); font-size: 11.5px; line-height: 1.35; }
.pt-matcard.is-on { border-color: rgba(143, 184, 255, .7); background: #131b2a; }
.pt-kind { display: inline-block; align-self: flex-start; padding: 2px 7px; border-radius: 99px; font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .5px; }
.k-el { background: rgba(79, 212, 155, .14); color: #7fe3b8; }
.k-cp { background: rgba(90, 162, 255, .14); color: #9cc4ff; }
.k-al { background: rgba(255, 181, 71, .14); color: #ffcc80; }
.k-dv { background: rgba(242, 143, 198, .14); color: #f6b4da; }
.pt-matstage { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pt-matstage.is-split { grid-template-columns: 1fr 1fr; }
.pt-matstage figure, .pt-story-3d, .pt-cmp figure { margin: 0; border: 1px solid var(--pt-line); border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #121a29, #090c13 75%); }
.pt-matstage canvas, .pt-story-3d canvas, .pt-cmp canvas { display: block; width: 100%; height: 300px; cursor: grab; }
.pt-matstage figcaption, .pt-story-3d figcaption, .pt-cmp figcaption { padding: 7px 10px; font: 400 11.5px "IBM Plex Mono", monospace; color: var(--pt-muted); border-top: 1px solid var(--pt-line); }
.pt-matstage figure.is-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 20px; }
.pt-matinfo { margin-top: 12px; }
.pt-matinfo-h { display: flex; align-items: center; gap: 10px; }
.pt-matinfo-h h4 { margin: 0 !important; }
.pt-mat-comp { margin-top: 8px !important; }

/* origins */
.pt-ori-hero { position: relative; height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--pt-line); margin-bottom: 12px; background: #080b12; }
.pt-ori-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt-ori-hero-t { position: absolute; left: 18px; right: 18px; bottom: 14px; }
.pt-ori-hero-t .pt-num { font: 500 12px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-ori-hero-t h3 { font-size: 22px !important; }
.pt-ori-hero-t p { margin: 6px 0 0; font-size: 12.5px; }
.pt-oritag { display: inline-block; margin: 0 6px 4px 0; padding: 3px 9px; border-radius: 99px; font: 500 11.5px "IBM Plex Sans", sans-serif; color: #fff; background: color-mix(in oklab, var(--c) 30%, transparent); border: 1px solid var(--c); }
.pt-ori-also { font: 400 11.5px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-proc { border: 1px solid color-mix(in oklab, var(--c) 30%, var(--pt-line)); border-left: 3px solid var(--c); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: color-mix(in oklab, var(--c) 4%, #0e131c); }
.pt-proc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pt-proc-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pt-proc-h b { color: #fff; font-size: 14px; font-weight: 500; }
.pt-proc-rank { margin-left: auto; font: 500 10px "IBM Plex Mono", monospace; color: var(--pt-faint); text-transform: uppercase; letter-spacing: 1px; }
.pt-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; }
.pt-flow-n { font: 500 11.5px "IBM Plex Sans", sans-serif; color: #dfe6f0; padding: 4px 8px; border-radius: 7px; background: #121927; border: 1px solid var(--pt-line); }
.pt-flow-a { width: 16px; height: 1px; background: linear-gradient(90deg, transparent, var(--c)); position: relative; overflow: hidden; }
.pt-flow-a::after { content: ""; position: absolute; top: -1px; left: -6px; width: 6px; height: 3px; border-radius: 3px; background: var(--c); animation: pt-flow 1.6s linear infinite; }
@keyframes pt-flow { to { left: 100%; } }
.pt-procs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.pt-procbtn { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; text-align: left; border: 1px solid var(--pt-line); background: #0f141d; border-radius: 10px; padding: 9px 10px; cursor: pointer; color: #dfe6f0; }
.pt-procbtn i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pt-procbtn b { font: 500 12.5px "IBM Plex Sans", sans-serif; }
.pt-procbtn span { font: 400 11px "IBM Plex Mono", monospace; color: var(--pt-faint); }
.pt-procbtn.is-on { border-color: var(--c); background: color-mix(in oklab, var(--c) 10%, #0f141d); }

/* time machine */
.pt-tm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; width: 100%; }
.pt-tm-track { position: relative; flex: 1 1 340px; min-width: 240px; padding: 10px 0 6px; }
.pt-tm-track input { width: 100%; accent-color: #ffd166; }
.pt-tm-mk { position: absolute; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1px solid #8fb8ff; background: #0a0e15; cursor: pointer; padding: 0; }
.pt-tm-mk.is-past { background: #8fb8ff; }
#ptTmYear { display: flex; flex-direction: column; min-width: 150px; }
#ptTmYear b { font: 500 26px/1 "IBM Plex Mono", monospace; color: #ffd166; }
#ptTmYear span { font: 400 11.5px "IBM Plex Mono", monospace; color: var(--pt-muted); margin-top: 3px; }
.pt-dispute { color: #ffcc80 !important; }

/* questions */
.pt-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pt-q { text-align: left; cursor: pointer; border: 1px solid var(--pt-line); border-radius: 12px; padding: 14px; background: linear-gradient(160deg, #141c2b, #0f141d); color: #fff; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.pt-q:hover { border-color: rgba(143, 184, 255, .55); transform: translateY(-1px); }
.pt-q b { font: 400 15px/1.3 "IBM Plex Sans", sans-serif; }
.pt-q span { font: 400 11px "IBM Plex Mono", monospace; color: var(--pt-faint); }
.pt-q-sm { padding: 10px 12px; }
.pt-q-sm b { font-size: 13px; }
.pt-story-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pt-dots { display: flex; gap: 5px; }
.pt-dots i { width: 22px; height: 3px; border-radius: 3px; background: #263044; }
.pt-dots i.done { background: #4d6a9c; }
.pt-dots i.on { background: #8fb8ff; }
.pt-story h3 { margin-bottom: 14px !important; }
.pt-story-step { animation: pt-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes pt-in { from { opacity: 0; transform: translateY(8px); } }
.pt-story-step .pt-num { font: 500 11px "IBM Plex Mono", monospace; color: var(--pt-accent); }
.pt-story-step h4 { margin-top: 4px !important; font-size: 18px !important; }
.pt-story-step p { font-size: 14.5px !important; line-height: 1.65 !important; color: #d3dae5 !important; }
.pt-story-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.pt-story-rel { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pt-line); display: flex; flex-direction: column; gap: 6px; }
.pt-story-rel > span { font: 500 10px "IBM Plex Mono", monospace; color: var(--pt-faint); text-transform: uppercase; letter-spacing: 1.4px; }
.pt-story-cfg { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--c) 40%, transparent); background: color-mix(in oklab, var(--c) 8%, #0f141d); }
.pt-story-cfg b { font: 600 30px "IBM Plex Sans", sans-serif; color: color-mix(in oklab, var(--c) 45%, #fff); }
.pt-story-cfg .pt-cfg { font-size: 16px; color: #e3e8ef; }
.pt-story-cfg small { font: 400 11px "IBM Plex Mono", monospace; color: var(--pt-muted); }

/* fusion lab */
.pt-work { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 96px; padding: 14px; margin: 6px 0 14px; border-radius: 14px; border: 1.5px dashed rgba(143, 184, 255, .35); background: radial-gradient(ellipse at 50% 0%, rgba(143, 184, 255, .08), transparent 70%), #0d121b; transition: border-color .2s, background .2s; }
.pt-work.is-over { border-color: #8fb8ff; background: rgba(143, 184, 255, .1); }
.pt-work-empty { color: var(--pt-faint); font: 400 13px "IBM Plex Mono", monospace; margin: auto; }
.pt-work-el { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 12px; border: 1px solid var(--c); background: color-mix(in oklab, var(--c) 16%, #0f141d); box-shadow: 0 0 26px -10px var(--c); animation: pt-in .35s; }
.pt-work-el b { font: 600 24px/1 "IBM Plex Sans", sans-serif; color: color-mix(in oklab, var(--c) 40%, #fff); }
.pt-work-el small { font-size: 10px; color: var(--pt-muted); margin-top: 3px; }
.pt-work-el button { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--pt-line2); background: #161d2b; color: #fff; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.pt-work-plus { color: var(--pt-faint); font-size: 18px; }
.pt-lab-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-lab-try span { font: 500 11px "IBM Plex Mono", monospace; color: var(--pt-faint); }
.pt-lab-h { font-size: 12px !important; color: var(--pt-muted) !important; font-family: "IBM Plex Mono", monospace !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
.pt-cmp { border: 1px solid var(--pt-line); border-radius: 12px; background: #0f141d; margin-bottom: 6px; overflow: hidden; }
.pt-cmp.is-open { border-color: rgba(143, 184, 255, .45); }
.pt-cmp-h { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 11px 14px; border: 0; background: none; cursor: pointer; text-align: left; color: #dfe6f0; }
.pt-formula { font: 600 18px "IBM Plex Sans", sans-serif; color: #fff; }
.pt-cmp-h span { font-size: 13.5px; }
.pt-cmp-h em { font: normal 400 11px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-cmp-b { padding: 0 14px 14px; }
.pt-cmp-b p { font-size: 13px !important; }
.pt-enbar { margin: 4px 0 12px; font-size: 12.5px; color: #c9d1dd; }
.pt-enbar > div { position: relative; height: 6px; margin: 8px 0 4px; border-radius: 99px; background: linear-gradient(90deg, #4fd49b 0 12%, #5aa2ff 12% 51%, #ff7a66 51%); opacity: .8; }
.pt-enbar i { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: #fff; }
.pt-enbar small { font: 400 10.5px "IBM Plex Mono", monospace; color: var(--pt-faint); }
.pt-dragghost { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg); width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 600 22px "IBM Plex Sans", sans-serif; color: #fff; border: 1px solid var(--c); background: color-mix(in oklab, var(--c) 30%, #0f141d); box-shadow: 0 16px 40px -10px #000, 0 0 30px -6px var(--c); }

.pt-jumps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.pt-jumps .pt-btn { padding: 6px 9px; font-size: 11.5px; }
.pt-scale-src { font: 400 11px "IBM Plex Mono", monospace; color: var(--pt-faint); }

@media (max-width: 1180px) {
  .pt-card-r { width: min(320px, 46%); }
}
@media (max-width: 900px) {
  .pt-lab-charts, .pt-facts-3, .pt-scalex-facts, .pt-qgrid, .pt-procs { grid-template-columns: 1fr; }
  .pt-matstage.is-split { grid-template-columns: 1fr; }
  .pt-dimbar { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-flow-a::after { display: none; }
}

/* crowded scatter points */
.pt-board.chips .pt-el.is-dot { border-radius: 50%; background: var(--c); border-color: transparent; }
.pt-board.chips .pt-el.is-dot .sym { opacity: 0; }
.pt-board.chips .pt-el.is-dot::before { display: none; }

/* stacked (phone) layout for dimensions with a side panel */
.pt-board.is-stack { min-width: 0; max-width: none; }
.pt-board.is-stack .pt-side { overflow: visible; }
