@font-face{font-family:Inter;src:url('/assets/inter.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--paper:#fdfbfc;--ink:#2b212d;--accent:#8b008b;--accent-hover:#680067;--lavender:#f7eff8;--lavender-strong:#eedcf0;--soft:#615964;--rule:#e0d8e1;--mono:'IBM Plex Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;--serif:'STIX Two Text','Times New Roman',Times,serif;--sans:Inter,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,select{cursor:pointer}
button{color:inherit;background:none;border:0}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
img{display:block;max-width:100%}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400}
.icon{flex:none;display:inline-block;vertical-align:middle}
.wrap{width:min(1296px,calc(100% - clamp(48px,9vw,160px)));margin:auto}
.skip{position:fixed;z-index:10;transform:translateY(-150%);background:white;padding:8px}
.skip:focus{transform:translateY(0)}
.site-header{border-bottom:1px solid var(--rule);position:relative;z-index:5;background:var(--paper)}
.mast,.foot{display:flex;align-items:center}
.mast{min-height:76px;gap:36px}
.brand{font:600 27px/1 var(--sans);letter-spacing:-1.6px;display:inline-flex;align-items:center;gap:10px;white-space:nowrap;color:var(--ink)}
.brand img{height:36px;width:36px}
.mast .brand img{width:auto;height:54px}
@media(max-width:720px){.mast .brand img{height:42px}}
.mast nav{display:flex;gap:34px;margin-left:auto;align-items:center}
.mast nav a,.nav-cta{font-size:13px;font-weight:520}
.mast nav a:hover,.text-link:hover,.foot a:not(.brand):hover{text-decoration:underline;text-underline-offset:4px}
.nav-cta,.button{display:inline-flex;align-items:center;justify-content:center;gap:13px;font-weight:570;border-radius:6px}
.nav-cta{background:var(--accent);color:white;padding:10px 15px}
.nav-cta:hover,.primary:hover{background:var(--accent-hover)}
.menu{display:none}
.hero{border-bottom:1px solid var(--rule)}
.hero-layout{display:grid;grid-template-columns:0.92fr 1.08fr;align-items:center;gap:clamp(40px,5vw,90px);padding:clamp(48px,4.8vw,76px) 0}
.kicker,.plot-head,.plot-hint,.doc-count{font:500 10px/1.4 var(--mono);text-transform:uppercase;letter-spacing:1.5px}
.kicker{color:var(--accent);display:flex;align-items:center;gap:10px}
.rule:before{content:"";height:1px;width:26px;background:var(--accent)}
.hero h1{font-size:clamp(74px,7.6vw,119px);letter-spacing:-.067em;line-height:.91;margin:24px 0 23px;color:var(--ink)}
.hero h1 em{font-weight:400;color:var(--accent);letter-spacing:-.069em}
.hero-copy>p{color:var(--soft);font-size:clamp(15px,1.17vw,18px);max-width:440px;line-height:1.65}

.button{font-size:13px;padding:13px 18px;min-height:45px}
.primary{background:var(--accent);color:white}
.text-link{display:inline-flex;align-items:center;gap:8px;font-weight:550;font-size:13px}
.plotter{align-self:center;min-width:0;border:1px solid var(--rule);border-radius:9px;background:var(--lavender);overflow:hidden}
.plot-pane{background-image:linear-gradient(to right,rgba(116,59,121,.095) 1px,transparent 1px),linear-gradient(to bottom,rgba(116,59,121,.095) 1px,transparent 1px);background-size:23px 23px}
.plot-pane{position:relative;aspect-ratio:1.66;background-color:#f7f1f8}
.plot-graph{position:absolute;inset:31px 8px 8px}
.plot-graph canvas,.plot-fallback{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.plot-graph:has(canvas.painted) .plot-fallback{visibility:hidden}
.plot-graph canvas{cursor:grab;touch-action:none;display:block}
.plot-graph canvas.dragging{cursor:grabbing}
.plot-head,.plot-hint{position:absolute;top:15px;z-index:1;display:flex;align-items:center;gap:7px;font-size:9px;line-height:1.4}
.plot-head{left:16px;letter-spacing:1.25px;color:var(--accent)}
.status-dot,.kicker i{width:6px;height:6px;display:inline-block;background:var(--accent);border-radius:50%;flex:none}
.plot-hint{right:15px;text-transform:none;letter-spacing:.1px;color:var(--soft)}
.cross{position:absolute;pointer-events:none;color:#9f7ea3;font:15px/1 var(--mono)}
.cross.tl{left:9px;bottom:7px}.cross.br{right:9px;bottom:7px}
.plotter figcaption{padding:12px 17px;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--rule);background:#faf7fb}
.plot-info{display:flex;align-items:baseline;gap:12px}
.plot-info strong{font:normal 22px/1.1 var(--serif);letter-spacing:-.7px}
.plot-info span{font:10px var(--mono);color:var(--soft)}
.plot-control{display:flex;align-items:center;gap:6px}
.circle{width:30px;height:30px;display:inline-grid;place-content:center;border:1px solid #d5c7d7;border-radius:50%;padding:0;background:transparent;transition:background .15s}
.circle:hover{background:var(--lavender-strong)}
.apps-section,.gallery-section,.reference-callout{padding:55px 0 64px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 25px}
.section-head h2,.capability-header h2,.reference-inner h2,.related h2{font-size:clamp(36px,3.55vw,56px);letter-spacing:-.052em;line-height:1.05;margin-top:13px}
.editions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.edition{--tint:#fcf9fc;--border:#dfd5df;--art-top:#9e209e;--art-bottom:#8e048f;background:var(--tint);border:1px solid var(--border);border-radius:8px;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.edition.express{--tint:#fcf9f9;--border:#e2d4d7;--art-top:#e5233e;--art-bottom:#ca1d39}
.edition.mio{--tint:#fcfafc;--border:#ded7e2;--art-stop:32%;--art-top:#ffffff;--art-bottom:#e5e5e5}
.ed-overview{display:flex;flex:1;flex-direction:column}
.card-art{height:clamp(128px,11.5vw,170px);display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(180deg,var(--art-top) var(--art-stop,0%),var(--art-bottom))}
.card-art img{width:clamp(82px,7.4vw,109px);height:clamp(82px,7.4vw,109px);object-fit:contain}
.edition-info{padding:21px 22px 15px;}
.edition .kicker{color:var(--accent);font-size:9px;letter-spacing:1.25px;gap:7px}
.edition .kicker i{width:5px;height:5px;background:var(--accent)}
.edition h3{font-size:clamp(26px,2.45vw,39px);line-height:1.1;letter-spacing:-.048em;margin:10px 0;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:3px}
.edition h3 span{color:var(--accent);opacity:.8}
.edition p{font-size:14px;color:var(--soft);line-height:1.55}
.card-links{margin:0 22px;padding:14px 0 16px;border-top:1px solid var(--border);display:flex;gap:18px}
.storelink{font-size:12px;font-weight:560;display:inline-flex;gap:5px;align-items:center}
.storelink:hover{text-decoration:underline;text-underline-offset:4px}
.gallery-section{border-top:1px solid var(--rule)}
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.gallery-card { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.gallery-card>span{display:flex;align-items:center;justify-content:space-between;gap:6px;font-weight:540;font-size:14px;padding:10px 0}
.gallery-card:hover>span{color:var(--accent)}
.reference-callout{background:var(--lavender);border-top:1px solid var(--rule)}
.reference-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}
.reference-inner p{margin-top:14px;color:var(--soft)}
.foot{padding:28px 0;gap:25px;font-size:12px;}
footer{border-top:1px solid var(--rule)}
.foot .brand{font-size:20px;letter-spacing:-1px;gap:6px}
.foot .brand img{width:25px;height:25px}
.foot span{color:var(--soft);margin-left:auto}
.foot>a:last-child{display:flex;align-items:center;gap:5px}
dialog{width:min(410px,95vw);max-height:94dvh;overflow:auto;border:1px solid var(--rule);border-radius:9px;background:var(--paper);color:var(--ink);padding:16px}
dialog::backdrop{background:rgba(37,19,39,.66)}
.modal-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.modal-top h2{font-size:25px;letter-spacing:-.045em}
#full-screen{width:auto;height:auto;max-height:68dvh;max-width:100%;margin:auto;border-radius:4px}
#screen-description{font-size:13px;line-height:1.5;margin-top:12px;color:var(--soft)}
.back{font:11px var(--mono);color:var(--soft);display:inline-block;margin:32px 0}
.product-intro{display:grid;grid-template-columns:.95fr 1.15fr;gap:clamp(26px,5vw,80px);align-items:center;padding:22px 0 60px}
.product h1,.doc-page h1{font-size:clamp(54px,6.5vw,100px);line-height:.98;letter-spacing:-.068em;margin:18px 0 20px}
.lead{font-size:clamp(16px,1.25vw,20px);color:var(--soft);line-height:1.65}
.product-intro figure{padding:24px 14px;background:#fff;border:1px solid var(--rule);border-radius:8px}
.product-intro figure img{width:100%;height:auto}
.store-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.store-buttons a{padding:13px 15px;border:1px solid var(--accent);border-radius:5px;color:var(--accent)}
.store-buttons a:first-child{background:var(--accent);color:white}
.product-features{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;border-top:1px solid var(--rule);padding:36px 0 50px}
.product-features h2{font-size:30px;letter-spacing:-.045em;margin:0 0 12px}
.product-features p{font-size:15px;color:var(--soft)}
.related{border-top:1px solid var(--rule);padding:30px 0 50px}
.related h2{font-size:35px}
.related>div{display:flex;gap:24px;margin-top:22px;flex-wrap:wrap}
.related a{border-bottom:1px solid var(--rule);padding-bottom:5px;display:inline-flex;align-items:center;gap:10px}
.doc-page{padding:45px 0 70px}.doc-page h1{font-size:clamp(48px,5.4vw,80px)}
.doc-tools{display:flex;align-items:center;gap:16px;margin:26px 0}
.search-box,.filter-label select{border:1px solid #cbbacc;border-radius:5px;background:#fff}
.search-box{display:flex;align-items:center;gap:10px;padding:9px 13px;flex:1}
.search-box input{border:0;background:none;min-width:0;flex:1;color:var(--ink);padding:3px}
.search-box:focus-within{outline:2px solid var(--accent)}
.search-box input:focus-visible{outline:0}
kbd{border:1px solid var(--rule);border-radius:3px;padding:0 5px;color:var(--soft)}
.filter-label{display:flex;gap:8px;align-items:center;font-size:13px}
.filter-label select{padding:12px 28px 12px 12px;color:var(--ink)}
.doc-layout{display:grid;grid-template-columns:minmax(200px,29%) 1fr;gap:clamp(25px,4vw,65px);border-top:1px solid var(--rule);padding-top:22px}
.doc-side{min-width:0}
.doc-count{color:var(--soft);margin:4px 0 12px;font-size:10px}
#doc-list{max-height:68vh;min-height:200px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--rule);border-radius:5px}
.doc-item{display:block;width:100%;border-bottom:1px solid var(--rule);padding:10px 13px;color:var(--ink);overflow-wrap:anywhere;line-height:1.4;font-weight:550}
.doc-item small{display:block;font:10px/1.5 var(--mono);color:var(--soft);margin-top:2px}
.doc-item[aria-current="page"]{background:var(--lavender-strong);box-shadow:inset 3px 0 var(--accent)}
.doc-item:hover{background:var(--lavender)}
#doc-article{min-width:0;overflow-wrap:anywhere;padding:7px 0 0}
#doc-article h2{font-size:clamp(37px,4vw,60px);line-height:1.1;letter-spacing:-.05em;margin:10px 0 16px}
#doc-article h3{font-size:23px;letter-spacing:-.035em;margin:24px 0 8px}
#doc-article p{white-space:pre-line;color:var(--soft);font-size:15px}
#doc-article ul{padding-left:20px;color:var(--soft)}
#doc-article pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;padding:10px 13px;background:var(--lavender);border-left:2px solid #bf83c1;border-radius:0 3px 3px 0;color:var(--accent-hover);font:13px/1.6 var(--mono)}
.empty-note{padding:18px;color:var(--soft)}
@media(min-width:1650px){.hero-layout{padding:75px 0}}
@media(max-width:1000px){
 .mast{gap:22px}.mast nav{gap:22px}
 .hero-layout{gap:28px}.hero h1{font-size:clamp(61px,8.4vw,88px)}
 .plot-pane{aspect-ratio:1.39}.plot-info{display:block}.plot-info span{display:block;margin-top:3px}
 .editions{gap:12px}.edition-info{padding:16px}.card-links{margin:0 16px;gap:10px}.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width:720px){
 .wrap{width:calc(100% - 40px)}.mast{min-height:61px;gap:14px}.brand{font-size:23px}.brand img{width:30px;height:30px}
 .mast nav{display:none}.mast nav.open{display:flex;position:absolute;left:0;right:0;top:100%;padding:12px 20px 17px;background:var(--paper);border-bottom:1px solid var(--rule);justify-content:space-between;gap:12px}
 .nav-cta{margin-left:auto;padding:8px 11px;font-size:12px;gap:7px}.menu{display:inline-flex;padding:7px 0 7px 5px}
 .hero-layout{grid-template-columns:1fr;gap:30px;padding:40px 0 32px}.hero h1{font-size:clamp(69px,12vw,87px);margin:19px 0 17px}
 .hero-copy>p{max-width:480px;font-size:15px}
 .plot-pane{aspect-ratio:1.65}.plot-info{display:flex}.plot-info span{margin:0}.plotter figcaption{min-height:48px;padding:9px 12px}
 .apps-section,.gallery-section,.reference-callout{padding:35px 0 40px}.section-head{margin-bottom:20px}.section-head h2{margin-top:9px}
 .editions{grid-template-columns:1fr;gap:16px}.card-art{height:128px}
 .edition-info{padding:19px 17px}.edition h3{font-size:31px}.card-links{margin:0;padding:11px 17px;gap:23px}
 .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
 .reference-inner{display:block}.reference-inner .button{margin-top:18px}
 .foot{gap:12px;flex-wrap:wrap}.foot span{font-size:10px}.foot>a:last-child{font-size:11px}
 .product-intro{grid-template-columns:1fr;padding:6px 0 30px}.product-features{grid-template-columns:1fr;gap:22px;padding:24px 0 34px}.product-features h2{margin-bottom:6px}.doc-page{padding:32px 0}
 .doc-tools{flex-wrap:wrap;gap:10px}.search-box{flex-basis:100%}.doc-layout{grid-template-columns:1fr;gap:20px}#doc-list{max-height:23vh;min-height:70px}
}
@media(max-width:420px){
 .wrap{width:calc(100% - 32px)}.hero h1{font-size:67px}
 .button{padding:12px 14px}.text-link{font-size:12px}
 .plot-hint{font-size:8px}.plot-graph{inset:30px 3px 4px}
 .foot>a:last-child{display:none}
 .edition h3{font-size:27px}.edition p{font-size:13px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* Shared link and focus colors across the marketing pages and reference. */
:root{accent-color:var(--accent)}
::selection{background:#edd3ee;color:var(--ink)}
.text-link,.back,.related a,.storelink,.gallery-card .icon,.foot>a:last-child{color:var(--accent)}
.store-buttons .storelink:first-child{color:white}
.mast nav a:hover,.circle:hover{color:var(--accent)}
.doc-item[aria-current="page"]{color:var(--accent-hover)}


.capabilities{padding-bottom:24px;border-top:1px solid var(--rule);background:#fff}
.capability-header{padding:clamp(48px,5vw,78px) 0 clamp(28px,3vw,42px);background:var(--lavender);border-bottom:1px solid var(--rule)}
.capabilities h2{margin-top:0}
.cap-intro{max-width:760px;margin-top:14px;color:var(--soft);font-size:16px;line-height:1.65}
.capability-list{list-style:none;margin:0;padding:0}
.capability-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"copy demo";align-items:center;gap:clamp(36px,6vw,96px);padding:clamp(26px,3.4vw,56px) 0;scroll-margin-top:12px}
.capability-row + .capability-row{border-top:1px solid var(--rule)}
.capability-row:nth-child(even){grid-template-areas:"demo copy"}
.capability-copy{grid-area:copy;max-width:510px}
.capability-copy h3{margin:0 0 17px;font-size:clamp(35px,3.65vw,57px);line-height:1.05;letter-spacing:-.05em}
.capability-copy p{color:var(--soft);font-size:clamp(15px,1.2vw,18px);line-height:1.65}
.capability-copy p+p{margin-top:12px}
.feature-link{display:inline-flex;align-items:center;gap:9px;color:var(--accent);font-weight:550;font-size:13px;margin-top:18px}
.feature-link:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:850px) and (min-width:721px){.mast{gap:16px}.mast nav{gap:14px}.mast nav a{font-size:12px}}
@media(max-width:720px){
 .capabilities{padding-bottom:10px}
 .capability-header{padding-top:36px}
 .cap-intro,.capability-copy p{font-size:15px}
 .capability-row,.capability-row:nth-child(even){grid-template-columns:1fr;grid-template-areas:"copy" "demo";gap:20px;padding:28px 0}
 .capability-copy{max-width:600px}
 .capability-copy h3{margin-bottom:12px}
 .mast nav.open{flex-wrap:wrap;justify-content:flex-start;gap:12px 20px}
}

/* The home page opens directly into the surface viewer. */
.lab-hero {
  color: #fff;
  border-bottom: 0;
  background:
    radial-gradient(ellipse at 79% 42%, #55205e 0%, transparent 51%),
    linear-gradient(115deg, #190f20 2%, #25132c 55%, #34163d);
  overflow: hidden;
}
.lab-hero .hero-layout {
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: clamp(28px, 4vw, 66px);
  padding-block: clamp(52px, 5.5vw, 90px);
}
.lab-hero h1 {
  margin: 0 0 23px;
  font-size: clamp(90px, 8.6vw, 133px);
  color: #fff8fc;
  line-height: .86;
  letter-spacing: -.064em;
}
.lab-hero h1 em { color: #f4a9ed; }
.lab-hero .hero-copy > p { color: #e6d8e6; font-size: clamp(16px, 1.24vw, 19px); max-width: 455px; }
.hero-copy { container-type: inline-size; }
.store-badges {
  display: grid;
  grid-template-columns: 119.664fr 156.101fr;
  align-items: center;
  gap: 16px;
  max-width: 568px;
  margin-top: clamp(24px, 2.5vw, 36px);
}
.store-badges a { display: block; border-radius: 8px; }
.store-badges img { width: 100%; height: auto; }
@container (max-width: 399px) {
  .store-badges { grid-template-columns: auto; justify-items: start; gap: 14px; }
  .store-badges img { width: auto; height: 64px; }
}
.lab-hero :focus-visible { outline-color: #fec5ff; }
.lab-hero .plotter { width: 100%; border: 0; border-radius: 0; background: transparent; }
.lab-hero .plot-pane {
  aspect-ratio: 4 / 3;
  background-color: transparent;
  background-image:
    linear-gradient(to right, rgba(242,190,251,.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,190,251,.085) 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 1px solid rgba(234,200,239,.28);
}
.lab-hero .plot-graph { inset: 31px 0 5px; }
.lab-hero .plot-head, .lab-hero .plot-hint { top: 5px; font: 500 12px/1.4 var(--sans); color: #e4cde8; letter-spacing: 0; text-transform: none; }
.lab-hero .plot-head { left: 2px; }
.lab-hero .plot-hint { right: 2px; visibility: hidden; }
.lab-hero .status-dot { background: #f6a8ee; }
.lab-hero figcaption { background: transparent; border: 0; padding: 13px 0 0; min-height: 50px; }
.lab-hero .plot-info strong { color: #fff3ff; font-size: 24px; }
.lab-hero .plot-info span { color: #d0b3d2; font: 12px/1.4 var(--sans); }
.lab-hero .circle, .orbit-button { color: #ffeaff; border: 1px solid #906a93; background: rgba(30,14,34,.42); }
.lab-hero .circle { width: 34px; height: 34px; }
.lab-hero .circle:hover, .orbit-button:hover { background: #59315c; color: #fff; }
.lab-hero .plot-control { visibility: hidden; }
.lab-hero .ready .plot-control, .lab-hero .ready .plot-hint { visibility: visible; }
.orbit-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 76px; height: 34px; padding-inline: 10px; font-size: 12px; border-radius: 18px; }
.orbit-symbol { width: 0; height: 0; border-block: 4px solid transparent; border-left: 6px solid currentColor; }
.orbit-button[aria-pressed="true"] .orbit-symbol { width: 7px; height: 8px; border: 0; border-inline: 2px solid currentColor; }

.apps-section { background: #f8f0f8; border-top: 1px solid #ebdfeb; }
.apps-section .section-head h2, .gallery-section .section-head h2 { margin-top: 0; }
@media (min-width: 721px) and (max-width: 900px) {
  .lab-hero h1 { font-size: 85px; }
}
@media (max-width: 720px) {
  .lab-hero .hero-layout { grid-template-columns: minmax(0,1fr); padding: 38px 0 25px; gap: 31px; }
  .lab-hero h1 { font-size: clamp(75px,15vw,99px); margin-bottom: 18px; }
  .lab-hero .hero-copy > p { font-size: 15px; }
  .lab-hero .plot-info { align-items: flex-start; flex-direction: column; gap: 2px; }
  .lab-hero .plot-info strong { font-size: 21px; }
}

/* Interactive notebooks use MathStudio's graph paper, curves and controls. */
.notebook-line {
  position: absolute; inset: 0 0 auto;
  padding: 5px 2px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  color: #f6e4f8; pointer-events: none;
}
.notebook-line code {
  font: 500 clamp(12px,1.05vw,15px)/1.45 var(--mono);
  overflow-wrap: anywhere;
}
.notebook-line .syntax-paren { color: #9dd8ff; }
.notebook-line .syntax-variable { color: #f5c386; }
.gesture-hint { font: 12px/1.3 var(--sans); color: #e4cde8; white-space: nowrap; visibility: hidden; }
.ready .gesture-hint { visibility: visible; }
.lab-hero .plot-graph canvas:focus-visible { outline: 2px solid #fec5ff; outline-offset: -2px; }
#gallery-script[hidden] { display: none; }
.wave-choices { display: inline-flex; flex-wrap: wrap; margin-top: 10px; padding: 2px; border: 1px solid var(--rule); border-radius: 16px; background: var(--lavender); gap: 2px; }
.wave-choices button { padding: 6px 11px; font-size: 12px; border-radius: 14px; }
.wave-choices button[aria-pressed="true"] { color: white; background: var(--accent); }
.gallery-intro { color: var(--soft); margin: -7px 0 22px; max-width: 700px; }
.gallery-card .gallery-art {
  width: 100%; aspect-ratio: 1.62; padding: 10px; background: var(--art-paper, white);
  border: 1px solid var(--rule); border-radius: 8px; display: grid; place-items: center;
  min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.gallery-art img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-label { width: 100%; }
.gallery-label .icon { flex-shrink: 0; }
#screen-dialog { width: min(800px, 95vw); }
#screen-dialog #full-screen { max-height: 65dvh; width: auto; max-width: 100%; }
#gallery-script { margin-top: 8px; }
#doc-article .script-export { width: auto; height: auto; max-height: 400px; margin: 20px 0; border-radius: 4px; }
@media(max-width:720px) {
  .lab-hero .plot-graph { top: 40px; }
  .gesture-hint { font-size: 10px; }
  .wave-choices button { min-height: 28px; }
}

/* Small, interactive notebook entries in the capabilities list. */
.cap-lab { grid-area: demo; min-width: 0; margin: 0; padding: clamp(16px,2vw,28px); background: var(--paper); border: 1px solid var(--rule); border-radius: 9px; }
.cap-lab[hidden] { display: none; }
.cap-lab figcaption { padding: 0; }
.cap-lab h4 { font: 600 clamp(16px,1.35vw,21px)/1.4 var(--sans); color: var(--ink); margin: 0; }
.cap-lab figcaption p { margin: 3px 0 12px; font: 13px/1.5 var(--sans); color: var(--soft); }
.lab-graph { display: block; width: 100%; height: clamp(195px,17vw,280px); border: 1px solid #c6c0c9; border-radius: 5px; background: white; }
#lab-fit canvas { touch-action: none; }
#lab-fit canvas.moving-point { cursor: grabbing; }
.lab-slider, .loop-actions, .lab-result { display: flex; align-items: center; gap: 10px; }
.lab-slider { margin-top: 10px; }
.lab-slider label, .lab-result > span { font: 12px/1.4 var(--sans); color: var(--soft); }
.lab-slider input { flex: 1; width: 0; min-width: 44px; height: 26px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.lab-value { min-width: 55px; padding: 3px 6px; font: 12px/1.3 var(--mono); background: white; border: 1px solid var(--rule); border-radius: 4px; text-align: center; white-space: nowrap; }
.lab-result { justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 8px; }
.lab-result output, .lab-result code { font: 500 12px/1.45 var(--mono); color: var(--accent-hover); }
.loop-list { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.loop-list span { min-width: 22px; text-align: center; padding: 2px; border: 1px solid var(--rule); border-radius: 4px; background: white; font: 12px/1.35 var(--mono); }
.loop-list [aria-current="step"] { background: var(--accent); color: white; border-color: var(--accent); }
.loop-actions button { padding: 5px 11px; border: 1px solid var(--rule); border-radius: 5px; font-size: 12px; }
.loop-actions .loop-next { background: var(--accent); color: white; border-color: var(--accent); }
.loop-actions button:disabled { opacity: .5; cursor: default; }
.temperature-reading { display: flex; align-items: center; gap: clamp(12px,2vw,34px); justify-content: center; padding: 16px 8px; background: white; border-radius: 5px; border: 1px solid var(--rule); }
.temperature-reading div { display: grid; text-align: center; }
.temperature-reading div span { font-size: 11px; color: var(--soft); }
.temperature-reading strong { font: 400 clamp(24px,2.4vw,38px)/1.2 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.temperature-reading > span { color: var(--accent); }
@media (max-width:420px) {
  .cap-lab { padding: 12px; }
  .lab-result { gap: 4px 10px; }
}


.lab-source { margin-top: 18px; overflow: hidden; border: 1px solid var(--rule); border-radius: 7px; background: #faf7fb; }
.source-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 4px 12px; border-bottom: 1px solid var(--rule); font: 550 12px var(--sans); color: var(--soft); }
.copy-source { padding: 6px 9px; border-radius: 4px; font-size: 12px; color: var(--accent); }
.copy-source:hover { background: var(--lavender-strong); }
.lab-source pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 var(--mono); tab-size: 2; }
.lab-source code { font: inherit; }
.source-line b { color: #811187; font-weight: 550; }
.source-line.is-current { background: #efd9f0; }
.number-demo { display: grid; gap: 6px; place-items: center; padding: 22px 10px; border: 1px solid var(--rule); border-radius: 5px; background: white; }
.number-demo span { font: 13px/1.6 var(--mono); text-align: center; color: var(--soft); }
.number-demo output { font: 400 clamp(30px,3vw,48px)/1.2 var(--serif); color: var(--ink); text-align: center; }
.ripple-graph { display: block; width: 100%; height: clamp(230px,21vw,320px); border-radius: 5px; cursor: grab; touch-action: none; background-color: #2c1435; background-image: linear-gradient(#ffffff12 1px,transparent 1px), linear-gradient(90deg,#ffffff12 1px,transparent 1px); background-size: 28px 28px; }
.ripple-graph.dragging { cursor: grabbing; }
@media(max-width:720px) {
  .capability-copy { max-width: none; }
  .capability-row { gap: 16px; }
}

.lab-source .source-condensed { max-height: 9.9em; overflow: hidden; }
.source-toggle { display: block; width: 100%; padding: 9px 14px; text-align: left; color: var(--accent); background: var(--lavender); border-top: 1px solid var(--rule); font-size: 12px; }
.source-toggle[hidden] { display: none; }
#lab-cradle .loop-actions { margin-top: 10px; }
