@font-face { font-family:Nunito; font-style:normal; font-weight:200 1000; font-display:swap; src:url("/fonts/nunito-v1.woff2") format("woff2"); }
:root {
  --paper:#fbfaf6; --ink:#342d3e; --muted:#665f6d; --line:#dfdcd2;
  --sage:#365e53; --sage-pale:#e6eee6; --purple:#724d82;
  font-family:Nunito,"Segoe UI",sans-serif; color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; min-width:280px; background:radial-gradient(#d7cfc073 .72px,transparent .82px) 0 0/11px 11px,var(--paper); }
button,textarea { font:inherit; }
button { touch-action:manipulation; cursor:pointer; }
button:disabled { cursor:default; }
a { color:inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible { outline:3px solid #825c96; outline-offset:3px; }
[hidden] { display:none !important; }
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.masthead { background:#fffefbf2; border-bottom:1px solid var(--line); }
.mast-inner, main { width:min(1180px,calc(100% - clamp(24px,7vw,96px))); margin:auto; }
.mast-inner { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mast-inner nav { display:flex; gap:10px; align-items:center; color:#655969; font-size:14px; font-weight:730; }
.mast-inner nav a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
.mast-inner nav a:hover { text-decoration:underline; }
.mast-inner nav span { color:#b9b2ae; }
.experiment-heading { margin:clamp(18px,3vw,39px) 0 clamp(17px,2vw,28px); }
h1,h2,h3,p { margin:0; }
.experiment-heading h1 { font-size:clamp(29px,3.8vw,54px); line-height:1.1; font-weight:850; letter-spacing:-.043em; }
.experiment-heading p { margin-top:7px; color:var(--muted); font-size:clamp(14px,1.45vw,18px); line-height:1.5; }
.journal { margin:clamp(15px,2vw,25px) 0 45px; overflow:hidden; }
.journal summary { cursor:pointer; padding:15px 19px; display:flex; align-items:center; gap:12px; font-size:18px; font-weight:850; letter-spacing:-.025em; }
.journal summary::marker { content:""; }
.journal summary::-webkit-details-marker { display:none; }
.journal summary::before { content:""; width:8px; height:8px; border-right:2px solid var(--sage); border-bottom:2px solid var(--sage); transform:rotate(-45deg); }
.journal[open] summary::before { transform:rotate(45deg); }
#journal-count { margin-left:auto; font-size:13px; color:var(--muted); font-weight:650; white-space:nowrap; }
.journal-body { padding:0 clamp(12px,2vw,24px) 17px; font-size:14px; line-height:1.5; color:#4a434c; }
.journal-body label { display:block; margin:15px 0 5px; font-weight:800; }
.journal-body textarea { display:block; resize:vertical; width:100%; border:1px solid #d7d1ce; border-radius:8px; padding:9px 12px; background:#fcfbf7; color:var(--ink); }
.journal-trial { padding:11px 0 4px; border-top:1px solid var(--line); }
.journal-trial h3 { font-size:17px; }
.journal-group { margin:8px 0; }
.journal-group h4 { font-size:13px; color:#476457; margin:0; }
.journal-entry { margin:3px 0 7px; }
.journal-entry b { font-weight:800; }
.equation { display:block; margin-top:2px; color:#34253b; font-weight:800; overflow-wrap:anywhere; }
.equation .term { display:inline-block; }
.arrow-stack { display:inline-flex; vertical-align:middle; flex-direction:column; align-items:center; line-height:.9; margin:0 2px; }
.arrow-stack small { font-size:10px; font-weight:700; line-height:1; margin-top:-5px; }
.studio { min-width:0; --trim:#d9d6cc; }
.station,.journal { border:1px solid var(--trim,var(--line)); background:#fffefa; border-radius:15px; box-shadow:0 3px 0 #d9d2d349; }
.station { overflow:hidden; }
.experiment-heading { margin:clamp(14px,2.2vw,26px) 0 clamp(11px,1.5vw,19px); }
.experiment-heading h1 { font-size:clamp(28px,3.45vw,47px); }
.reagent-list { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin-bottom:9px; }
.reagent { display:flex; align-items:center; gap:8px; text-align:left; line-height:1.15; min-width:0; min-height:52px; padding:5px 8px;
  font-weight:800; font-size:clamp(13px,1.25vw,16px); color:var(--ink); background:#fffef9; border:1px solid var(--trim); border-radius:10px; }
.reagent img { flex:none; width:40px; height:40px; border-radius:5px; object-fit:cover; }
.reagent[aria-pressed="true"] { border-color:#8da89b; background:#e8efe8; box-shadow:inset 0 -2px #5f8274; }
.reagent:hover { border-color:#839e90; }
.short-name { display:none; }
.station-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px clamp(11px,2vw,22px); }
.station-head h2 { font-size:clamp(20px,2.3vw,28px); letter-spacing:-.035em; line-height:1.14; }
.station-head p { font-size:14px; line-height:1.35; color:var(--muted); margin-top:3px; }
.expand,.desk-actions button { background:#fffef9; color:#4c4453; border:1px solid #d6d2cb; min-height:42px; border-radius:9px; padding:4px 12px; font-weight:800; font-size:14px; }
.expand { display:inline-flex; gap:8px; align-items:center; justify-content:center; flex-shrink:0; }
.desk-actions button:enabled:hover,.expand:hover { background:#f0efe8; }
.desk-actions button:disabled { opacity:.5; }
.bench {
  --flask-width:min(clamp(164px,23.5vw,263px),calc(clamp(345px,38vw,475px)*.55)); --base:76%; --left-seat:45%; --right-seat:76%;
  --bath-left:25%; --bath-width:70%; --bath-bottom:2%; --stock-size:clamp(83px,9vw,125px);
  --tool-length:clamp(116px,13.6vw,165px);
  position:relative; isolation:isolate; overflow:hidden; height:clamp(345px,38vw,475px);
  background:#d3cec3 url('media/bench.webp') center bottom/auto 166.667% no-repeat; border-block:1px solid #c5bfb4;
  user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent;
}
.flask-place { position:absolute; top:var(--base); left:var(--left-seat); width:var(--flask-width); height:0; z-index:3; transform:translateX(-50%); }
.flask-place[data-acid="acetic"] { left:var(--right-seat); }
.flask-place[data-immersed="true"] { z-index:4; }
.flask-place[data-moving="true"] { z-index:8; }
.flask-body { position:absolute; bottom:0; left:0; width:100%; aspect-ratio:4/5; touch-action:none; cursor:grab;
  transform:translate(var(--move-x,0px),var(--move-y,0px)) rotate(var(--rock,0deg)); transform-origin:50% 82%; border-radius:28%; }
.flask-body.settling { transition:transform .28s cubic-bezier(.2,.63,.38,1); }
.flask-body:active { cursor:grabbing; }
.flask-body::before { content:""; position:absolute; z-index:-1; left:13%; width:80%; height:5%; bottom:0; border-radius:50%; background:radial-gradient(ellipse,#3a34265e,transparent 70%); transform:translateX(6%); }
.flask-body canvas { width:100%; height:100%; display:block; pointer-events:none; }
.flask-tag { position:absolute; top:46%; left:50%; transform:translate(-50%,-50%) rotate(-4deg); padding:1px 8px; border-radius:1px 3px;
  color:#49413d; background:linear-gradient(98deg,#f1eddfda,#faf5e9ee 35%,#e4dfd2da); box-shadow:0 1px 1px #615a4e30;
  font:750 clamp(12px,1.3vw,17px)/1.2 Nunito,sans-serif; pointer-events:none; }
.flask-place[data-acid="acetic"] .flask-tag { transform:translate(-50%,-50%) rotate(3deg); }
.flask-place[data-dose-target="true"] .flask-tag { box-shadow:0 0 0 1.5px #507968; }
.flask-count { position:absolute; top:calc(46% - 13px); left:50%; transform:translate(-50%,-100%); padding:1px 5px;
  white-space:nowrap; pointer-events:none; border-radius:4px; background:#f8fbf1e8; color:#315847; font:800 12px/1.25 Nunito,sans-serif; }
.flask-place[data-bath-ready="true"]:not([data-moving="true"])::after { content:""; position:absolute; top:1px; left:50%; width:9px; height:9px;
  border-right:3px solid #376650; border-bottom:3px solid #376650; transform:translateX(-50%) rotate(45deg); pointer-events:none; }
.bath { position:absolute; left:var(--bath-left); width:var(--bath-width); bottom:var(--bath-bottom); aspect-ratio:1440/321; z-index:2; pointer-events:none; }
.bath img { display:block; width:100%; height:100%; object-fit:fill; }
.bath-front { z-index:5; }
.bath-caption { position:absolute; left:50%; bottom:3%; transform:translateX(-50%); white-space:nowrap; border-radius:3px; padding:1px 6px;
  background:#f8f3e9e6; color:#443e38; font-size:clamp(11px,1.2vw,13px); font-weight:800; }
.bath-slot { position:absolute; bottom:12%; left:28.57%; transform:translateX(-50%); display:grid; place-items:center; min-width:84px;
  min-height:46px; padding:0 12px; border:0; background:transparent; color:#2e594a; font:850 14px/1.1 Nunito,sans-serif; pointer-events:auto; isolation:isolate; }
.bath-slot[data-bath-for="acetic"] { left:72.86%; }
.bath-slot::before { content:""; position:absolute; z-index:-1; inset:6px 0; border-radius:999px; border:1.6px dashed #557b68; background:#f1f6eefa; }
.bath-slot:hover::before,.bath-slot:focus-visible::before,.bath-slot[data-over="true"]::before { background:#deeedc; border-color:#345e4e; border-style:solid; }
.bath-slot[data-over="true"] { color:#204831; }
.bath-slot:focus-visible { outline-offset:-3px; border-radius:999px; }
.stock { --source-x:12%; position:absolute; left:var(--source-x); bottom:9%; width:var(--stock-size); z-index:6; transform:translateX(-50%); pointer-events:none; }
.stock img { width:100%; height:auto; display:block; filter:drop-shadow(2px 4px 2px #4a3e2b30); }
button.stock { pointer-events:auto; appearance:none; border:0; padding:0; margin:0; border-radius:8px; background:transparent; color:inherit; font:inherit; }
button.stock::before { content:""; position:absolute; inset:-5px -9px; }
button.stock[data-selected="true"] span { background:#edf4e6f5; box-shadow:0 0 0 1.5px #547965; }
.stock[data-source="silver"],.stock[data-source="bromine"],.stock[data-source="permanganate"] { width:calc(var(--stock-size)*.8); }
.stock[data-source="magnesium"] { width:calc(var(--stock-size)*1.17); }
.stock span { position:absolute; bottom:16%; left:50%; transform:translateX(-50%) rotate(-2deg); padding:1px 5px; background:#f2ead9df; color:#383127; font-weight:800; white-space:nowrap; font-size:clamp(11px,1.1vw,15px); line-height:1.2; border-radius:2px; }
.stock[data-source="magnesium"] span { bottom:-12%; }
.bench[data-dual="true"] .stock { --stock-size:clamp(64px,7.2vw,96px); }
.bench[data-dual="true"] .stock[data-source="sulfuric"] { --source-x:6.2%; }
.bench[data-dual="true"] .stock[data-source="permanganate"] { --source-x:19%; }
.tool-point { position:absolute; z-index:10; width:0; height:0; pointer-events:none; }
.tool-point[data-front="true"] { z-index:13; }
.tool-point.returning { transition:top .25s ease-out,left .25s ease-out; }
.tool-grip { position:absolute; left:0; top:0; height:var(--tool-length); width:calc(var(--tool-length)*var(--aspect));
  transform:translate(calc(-1 * var(--tip-x)), calc(-1 * var(--tip-y))) rotate(var(--tilt,26deg));
  transform-origin:var(--tip-x) var(--tip-y); pointer-events:auto; touch-action:none; cursor:grab; border-radius:35%;
}
.tool-grip::before { content:""; position:absolute; inset:-4px -17px; }
.tool-grip:active { cursor:grabbing; }
.tool-grip img { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; filter:drop-shadow(1px 2px 1px #2e28264d); z-index:2; }
.tool-point[data-type="pipette"] .tool-grip img { transform-origin:50% 100%; }
.pipette-fill { position:absolute; z-index:3; display:none; left:46%; width:8%; bottom:12%; height:calc(10% + 9% * var(--charge,0)); border-radius:45%;
  background:linear-gradient(90deg,transparent,var(--tint,#b0d1d1) 45%,var(--tint,#b0d1d1)); opacity:.84; pointer-events:none; }
.tool-point[data-type="pipette"][data-full="true"] .pipette-fill { display:block; }
.tool-grip .grip-name { position:absolute; left:70%; top:20%; transform:rotate(calc(-1 * var(--tilt,26deg))); transform-origin:left center; white-space:nowrap;
  padding:2px 7px; background:#faf8efe8; color:#362f35; border:1px solid #b8afa0b3; border-radius:6px; font-size:12px; line-height:1.3; font-weight:800; }
.tool-point[data-place="moving"] .grip-name,.tool-point[data-place="mouth"] .grip-name { display:none; }
.tool-point[data-full="true"] .grip-name { border-color:#668d75; }
.guide-ring { position:absolute; z-index:9; pointer-events:none; border:1.5px solid #f6fff2; outline:1px dashed #47745e; background:#d5eed927;
  width:var(--ring-w,48px); height:var(--ring-h,15px); border-radius:50%; transform:translate(-50%,-50%); }
.parcel { position:absolute; z-index:9; pointer-events:none; transform:translate(-50%,-50%); }
.parcel.liquid { width:6px; height:9px; border-radius:48% 48% 56% 55%; border:1px solid #584b5344; background:radial-gradient(ellipse at 30% 25%,#fff 0 7%,transparent 25%),linear-gradient(90deg,#ffffff80,var(--drop-color),#64587973); }
.parcel.solid { width:11px; height:8px; border-radius:40% 60% 42% 50%; background:url('media/material-copper-hydroxide.webp') 0 0/200% 200% no-repeat; }
.parcel.ribbon { width:13px; height:4px; border:1px solid #8b8b82; border-radius:1px 40%; background:linear-gradient(#fff,#a4a6a1 53%,#dfe0d7); }
.desk-tip { padding:8px clamp(10px,2vw,22px); display:flex; align-items:center; gap:8px; background:#eaf0e9; color:#355247; min-height:38px; font-size:14px; font-weight:750; line-height:1.35; }
.tip-mark { font-size:14px; color:#577860; }
.sample-docks { display:grid; grid-template-columns:1fr 1fr; border-block:1px solid var(--line); }
.sample-docks > div { min-width:0; padding:8px clamp(8px,1.6vw,18px); }
.sample-docks > div + div { border-left:1px solid var(--line); }
.sample-docks strong { font-size:14px; }.sample-amount { margin-left:8px; color:#606f64; font-weight:750; font-size:12px; }.sample-status { color:var(--muted); font-size:13px; line-height:1.3; margin-top:2px; }
.desk-actions { display:flex; align-items:center; gap:7px; padding:8px clamp(9px,1.6vw,18px); }
.desk-actions button[aria-expanded="true"] { background:#dce9df; border-color:#8ba797; color:#2a5042; }
.desk-actions > span { margin-left:auto; font-size:12px; color:var(--muted); }
.gesture-help { margin:9px 3px 0; color:#534d56; font-size:14px; }
.gesture-help summary { width:fit-content; padding:5px 1px; cursor:pointer; font-weight:750; }
.gesture-help p { max-width:92ch; line-height:1.5; padding:4px 0; }
.closeups { display:grid; grid-template-columns:1fr 1fr; gap:2px; background:#b4aca0; }
.closeups figure { margin:0; position:relative; overflow:hidden; }
.closeups figure > div { height:clamp(145px,17vw,210px); overflow:hidden; position:relative; background:#c6c0b4 url('media/bench.webp') center/cover; }
.closeups canvas { display:block; position:absolute; height:224%; width:auto; aspect-ratio:4/5; left:50%; bottom:-2%; transform:translateX(-50%); }
.closeups figcaption { position:absolute; top:5px; left:5px; color:#342d28; background:#f5f2e6d6; border-radius:3px; padding:1px 6px; font-size:12px; font-weight:800; }
.lab-full .organic-lab .masthead,.lab-full .organic-lab .experiment-heading,.lab-full .organic-lab .journal { display:none; }
.lab-full .organic-lab main { width:min(1420px,100%); padding:5px; margin:auto; height:100dvh; overflow:auto; }
.lab-full .organic-lab .bench { height:clamp(320px,calc(100dvh - 250px),750px); --flask-width:min(27vw,calc((100dvh - 250px)*.52)); }
@media (max-width:729px) {
 .mast-inner,main { width:calc(100% - 18px); }.mast-inner { min-height:52px; }.mast-inner nav { font-size:12px; gap:5px; }
 .lab-brand { font-size:15px; gap:6px; }.lab-brand img { width:31px; height:31px; }.lab-brand small { font-size:11px; }
 .experiment-heading { margin:13px 1px 10px; }.experiment-heading p { font-size:14px; }
 .reagent-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin-bottom:6px; }
 .reagent { min-height:44px; padding:4px; gap:5px; }.reagent[data-trial="silver"] { grid-column:span 2; }
 .reagent img { width:clamp(24px,7vw,34px); height:clamp(24px,7vw,34px); }
 .reagent .long-name { display:none; }.short-name { display:block; font-size:clamp(12px,3.2vw,14px); line-height:1.18; overflow-wrap:anywhere; }
 .station-head { padding:8px 9px; }.station-head p { font-size:13px; }.expand { width:42px; height:42px; padding:0; }
 .expand span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
 .bench,.lab-full .organic-lab .bench {
   --left-seat:26%; --right-seat:74%; --base:60%; --flask-width:min(43%,calc(clamp(375px,83vw,490px)*.46));
   --stock-size:clamp(58px,15vw,85px); --tool-length:clamp(90px,19vw,114px);
   --bath-left:2%; --bath-width:96%; --bath-bottom:26%;
   height:clamp(375px,83vw,490px);
 }
 .stock { --source-x:34%; bottom:3%; }.bench[data-dual="true"] .stock { --stock-size:clamp(52px,14vw,75px); }
 .bench[data-dual="true"] .stock[data-source="sulfuric"] { --source-x:20%; }.bench[data-dual="true"] .stock[data-source="permanganate"] { --source-x:63%; }
 .stock span { font-size:10px; }.tool-grip .grip-name { font-size:11px; padding:1px 4px; }
 .tool-grip::before { inset:-6px -19px; }
 .bath-slot { left:25%; bottom:6%; min-width:76px; font-size:13px; }
 .bath-slot[data-bath-for="acetic"] { left:75%; }
 .bath-caption { bottom:0; font-size:11px; }
 .flask-count { top:calc(46% - 10px); font-size:11px; }
 .desk-tip { font-size:13px; }.sample-docks strong { display:block; font-size:13px; }.sample-amount { margin:0; font-size:11px; }.sample-status { font-size:12px; }
 .desk-actions { padding:6px; gap:5px; }.desk-actions button { font-size:12px; padding-inline:8px; }.desk-actions > span { font-size:11px; text-align:right; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }

.tool-grip:focus:not(:focus-visible),.flask-body:focus:not(:focus-visible) { outline:none; }
.tool-grip:focus-visible,.flask-body:focus-visible { outline:2px solid #775792; outline-offset:4px; }
.bench[data-input="pointer"] :is(.tool-grip,.flask-body):focus-visible { outline:none; }
