:root { --desk-ink:#102c40; --desk-muted:#4e6866; --desk-sage:#eaf1e8; --desk-deep:#0b373d; --desk-accent:#abdc55; }
header { background:var(--paper); }
.welcome { display:grid;grid-template-columns:.93fr 1.07fr;overflow:hidden;border-radius:24px;background:#082e3a;box-shadow:0 12px 36px #0d333113;color:#fff; }
.welcome-copy { align-self:center;padding:clamp(32px,4.2vw,68px); }
.live-label { display:inline-flex;align-items:center;gap:9px;color:#d5ebdd;font-size:.72rem;letter-spacing:.12em;font-weight:700; }
.live-label i { width:8px;height:8px;border-radius:50%;background:#a9d961;box-shadow:0 0 0 4px #bce5891c; }
.welcome h1 { font-size:clamp(4.2rem,6.5vw,6.3rem);line-height:.96;letter-spacing:-.023em;margin:22px 0 18px; }
.welcome h1 em { color:#b3df65;font-style:normal; }
.welcome-copy p { color:#e0eae7;font-size:clamp(1rem,1.5vw,1.18rem);max-width:32ch;line-height:1.48; }
.welcome-image { position:relative;min-height:360px;background:#afc7be; }
.welcome-image img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:49% 55%; }
.welcome-actions { margin-top:24px;gap:10px; }
.welcome .primary { background:#add964;color:#102d31;border:1px solid transparent;min-height:50px;padding-inline:21px; }
.welcome .primary:hover { background:#bfe880; }
.welcome .primary .ico { order:2;margin-left:5px; }
.welcome .onblue { color:#fff;background:#204653;border:1px solid #75918b; }
.welcome :focus-visible { outline-color:white; }
.modeSection { margin:32px 0 26px; }
.modeSection .eyebrow { display:none; }
.mode { background:var(--paper); }
.mode.selected { background:var(--desk-sage);border-color:#559154; }
.mode.selected .modeIcon { background:#cfdfca;color:#294c37; }
.mode.selected .modeTick { background:#355b3d;color:white; }
.shelfgrid .casecard,.cataloggrid .casecard { background:var(--paper);padding:12px;min-height:84px; }
.casecard .thumb { width:86px;flex:0 0 86px;height:64px;display:grid;place-items:center;border-radius:8px;background:#e6ece6; }
.thumb img { width:100%;height:100%;object-fit:contain; }
.product-group { margin-block:28px; }
.group-head { display:flex;align-items:baseline;gap:12px; margin-bottom:9px; }
.group-head h2 { font-size:1.3rem; }
.group-head>span { color:var(--muted);font-size:.88rem; }
.filters { flex-wrap:wrap;justify-content:flex-start; }
.counter-layout { display:grid;grid-template-columns:minmax(0,1.43fr) minmax(285px,.85fr);gap:22px;align-items:start; }
.counter-layout>* { min-width:0; }
.person-side { background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:0 18px 16px; }
.customerCard { background:transparent;border:0;padding:0;box-shadow:none;overflow:visible; }
.customerScene { padding:18px 0 12px;align-items:center;background:transparent;color:var(--ink);border:0; }
.customerScene>.ico { margin-left:auto;color:var(--desk-muted); }
.customerScene .eyebrow { color:var(--muted);font-size:.65rem;letter-spacing:.11em; }
.customerScene strong { color:var(--ink);font-size:1.34rem; }
.customerScene .face,.techhead .face { border-radius:50%;width:59px;height:59px;object-fit:cover;background:#dbe6d8;border:2px solid #fff;box-shadow:0 0 0 1px #92aaa44d; }
.customerCard blockquote { margin:0;padding:15px 17px;background:var(--desk-sage);border:0;border-radius:3px 16px 16px;color:var(--ink);font-size:1.13rem;line-height:1.45;font-weight:600; }
.body-language { display:flex;gap:6px;align-items:baseline;color:var(--muted);font-size:.84rem;margin:9px 0 16px; }
.body-language .ico { align-self:flex-start;margin-top:2px; }
.questionbox { margin-top:14px; }
.questionbox h3,.experiment h3 { margin-bottom:8px; }
.question { display:flex;gap:8px;align-items:center;background:var(--paper);text-align:left; }
.question>span { flex:1; }
.question>.ico:first-child { color:var(--desk-muted); }
.notebook,.readview,.more-questions { color:var(--muted);font-size:.88rem; }
.notebook summary,.readview summary,.more-questions summary { width:fit-content;cursor:pointer;min-height:32px;padding-block:5px;font-weight:600; }
.notebook>div { padding:5px 0; }
.notebook h3 { font-size:.9rem;margin:10px 0 5px; }
.notebook p small { display:block; }
.workbench { overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:18px; }
.plate { isolation:isolate;position:relative;background:radial-gradient(ellipse at 45% 35%,#fafaf2,#e3ece1 76%,#d3e1d4);border-bottom:1px solid #bdcec5; }
.plate::before { content:'';position:absolute;inset:0;z-index:-1;opacity:.27;background-image:radial-gradient(#658978 1px,transparent 1px);background-size:15px 15px;mask-image:linear-gradient(150deg,black,transparent 53%,black); }
.plate-title,.plate-count { position:absolute;pointer-events:none;z-index:2;color:#1e4541;background:rgba(248,252,245,.91);border:1px solid #a5b9ad;padding:4px 10px;border-radius:999px;font-size:.76rem;font-weight:600;display:inline-flex;align-items:center;gap:6px; }
.plate-title { top:12px;left:12px; }
.plate-count { right:12px;top:12px;font-variant-numeric:tabular-nums; }
.surface { width:100%;height:auto;aspect-ratio:3/2;display:block;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none; }
.surface:active { cursor:grabbing; }
.part-pin { cursor:pointer; }
.part-pin:hover circle:nth-child(2),.part-pin:focus circle:nth-child(2) { fill:#bded8b; }
.map { position:absolute;right:10px;bottom:10px;width:19%;max-width:110px;background:#f7f9efed;border:1px solid #a8bcaf;border-radius:7px;pointer-events:none;overflow:hidden; }
.bench-controls,.experiment { padding:16px 18px; }
.bench-head { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.bench-head small { color:var(--muted); }
.bench-head h2 { margin:2px 0;font-size:1.18rem; }
.liftbutton,.askinline { background:var(--desk-deep);color:white; }
.liftbutton:hover,.askinline:hover { background:#19534e; }
.anglebar,.tools,.experiment-options,.zoomsteps { display:flex;gap:6px;align-items:center;flex-wrap:wrap; }
.anglebar { margin:16px 0 9px; }
.anglebutton,.toolbutton,.partbutton,.soundbutton { min-height:42px;border:1px solid var(--line);padding:7px 11px;background:var(--paper);color:var(--ink);border-radius:10px; }
.anglebutton,.toolbutton { font-size:.84rem; }
.anglebutton[aria-pressed="true"],.toolbutton[aria-pressed="true"],.partbutton[aria-pressed="true"] { background:var(--desk-sage);border-color:#65926d;color:var(--ink); }
.toolbutton { background:var(--panel);border-color:transparent; }
.tools,.readview { margin-top:8px; }
.tool-tip,.zoomsteps>span { font-size:.87rem;color:var(--muted); }
.tool-tip { margin-top:8px; }
.askinline { font-size:.9rem;min-height:42px;margin-top:8px; }
.experiment { border-top:1px solid var(--line); }
.experiment h3 { display:flex;gap:7px;align-items:center; }
.experiment-options { align-items:stretch; }
.partbutton { text-align:left;justify-content:flex-start;font-weight:600; }
.mark-message,.observed { display:flex;align-items:flex-start;gap:8px;border-left:3px solid #67a341;background:var(--desk-sage);padding:10px 12px;margin-top:12px;color:var(--ink);border-radius:0 8px 8px 0; }
.observed strong,.mark-message { font-size:.91rem; }
.observed p { margin-top:2px;line-height:1.4; }
.demo-sound,.liquid-demo,.disc-demo,.state-demo,.touch-demo { display:flex;align-items:center;gap:12px;min-height:50px;margin:10px 0;color:var(--ink);background:var(--panel);border-radius:9px;padding:8px 10px;font-size:.88rem; }
.demo-sound { flex-wrap:wrap; }
.soundbutton { font-size:.83rem; }
.wave { width:58px;height:26px;background:repeating-linear-gradient(90deg,#39735e 0 3px,transparent 3px 6px);clip-path:polygon(0 47%,6% 35%,12% 47%,20% 14%,27% 37%,35% 2%,42% 35%,49% 20%,56% 40%,62% 14%,69% 35%,75% 23%,84% 42%,93% 35%,100% 44%,100% 60%,92% 67%,85% 59%,75% 80%,69% 64%,61% 87%,56% 59%,49% 79%,42% 66%,35% 98%,27% 61%,20% 81%,12% 56%,7% 65%,0 57%); }
.sound-gap .wave { mask-image:linear-gradient(90deg,black 27%,transparent 28% 54%,black 55%); }
.liquid-demo svg { flex:0 0 106px;width:106px; }
.flow,.cupfill { fill:none;stroke:transparent;stroke-width:3;stroke-linecap:round;stroke-dasharray:4 2; }
.water-coffee .f1,.water-coffee .f2,.water-coffee .cupfill,.water-single .f1,.water-clear .f1,.water-foam .f1,.water-milk .f1 { stroke:#83573c;animation:flow .7s linear 3; }
.water-tray .f3,.water-clear .f1 { stroke:#2585a2;animation:flow .7s linear 3; }
.water-foam .f1,.water-milk .f1 { stroke:#b9a98d; }
@keyframes flow { to {stroke-dashoffset:-12;} }
.disc-mini { width:32px;height:32px;border-radius:50%;background:radial-gradient(circle,transparent 0 13%,#697c8a 14% 22%,transparent 23%),conic-gradient(#afbfcd,#e5f5e0,#8daba4,#e1d4e9,#afbfcd);animation:insertdisc .64s ease-out; }
.disc-slot { width:34px;height:7px;border:2px solid #758793;border-radius:5px;background:#1d2b3c; }
@keyframes insertdisc { from{transform:translateX(-9px) rotate(-90deg)} }
.touch-demo label { width:100%; }
.touch-demo input { display:block;width:100%;accent-color:#356752; }
.result-arrow { color:var(--muted); }
.received { margin:0 0 20px; }
.received img { display:block;width:100%;border-radius:12px;background:#e4ece2; }
.received figcaption { display:flex;gap:8px;margin-top:10px;font-size:.91rem; }
.highlight .medal:has(img) { width:125px;height:85px;background:#e5ece2;border-radius:10px; }
.highlight-photo { width:100%;height:100%;object-fit:contain; }
.highlight q { display:block;margin-top:5px;font-weight:600; }
.writing .refaside .workbench,.refcontent .workbench { border-radius:10px; }
.writing .refaside .talkBody { padding-inline:8px; }
.refcontent .customerCard,.reference .customerCard { padding-inline:12px; }
@keyframes stage-arrive { from{opacity:.77;transform:translateY(3px)} }
.plate .surface>image,.observed,.mark-message,.customerCard blockquote,.received { animation:stage-arrive .25s ease-out; }
@media(max-width:900px) {
  .welcome-copy { padding:30px; }.welcome-image { min-height:326px; }
  .counter-layout { grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:13px; }
}
@media(max-width:760px) {
  .welcome { grid-template-columns:1.05fr 1fr;min-height:256px;border-radius:16px; }
  .welcome-copy { padding:22px 16px; }.welcome-image {min-height:100%;}
  .welcome h1 {font-size:clamp(2.5rem,7vw,4rem);margin:13px 0 9px;}.welcome-copy p {font-size:.92rem;}
  .welcome-actions {margin-top:14px;}.welcome .primary {min-height:44px;padding:9px 12px;font-size:.92rem;}
  .live-label {letter-spacing:.04em;font-size:.58rem;}
  .counter-layout {display:flex;flex-direction:column;}.counter-layout>*{width:100%;}
  .at-customer .person-side {order:-1;}
  .at-product .person-side {display:contents;}
  .at-product .person-side>.customerCard {order:-1;background:var(--paper);border:1px solid var(--line);padding:10px 13px;border-radius:13px;}
  .at-product .person-side .customerScene {padding:0 0 7px;}
  .at-product .person-side .customerScene .face {height:38px;width:38px;}
  .at-product .person-side .customerScene strong {font-size:1rem;}
  .at-product .person-side .customerCard blockquote {padding:6px 9px;font-size:1rem;}
  .at-product .person-side .body-language {margin:5px 0 0;font-size:.78rem;}
  .at-product .person-side>.questionbox,.at-product .person-side>.notebook,.at-product .person-side>.hint {flex:1;width:100%;}
  .bench-controls,.experiment {padding:12px;}.bench-head h2 {font-size:1.04rem;}
  .surface {touch-action:pan-y;}
  .anglebutton,.toolbutton,.partbutton {min-height:44px;}
  .tools {gap:4px;}
  .toolbutton {padding:7px 8px;gap:4px;}
  .casecard .thumb {width:66px;flex-basis:66px;height:49px;}
}
@media(max-width:480px) {
  .welcome {display:flex;flex-direction:column-reverse;}
  .welcome-image {height:clamp(145px,45vw,200px);min-height:0;}
  .welcome-image img {object-position:50% 54%;}
  .welcome-copy {padding:19px 20px 22px;}
  .welcome h1 {margin:9px 0 5px;font-size:clamp(2.55rem,9.2vw,3.35rem);}
  .welcome h1 br {display:none;}.welcome h1 em::before{content:' ';}
  .welcome-copy p {max-width:39ch;}
  .welcome-actions .btn {min-height:45px;}.modeSection {margin:23px 0 20px;}
  .shelfgrid .casecard,.cataloggrid .casecard {min-height:65px;}
  .anglebar {margin-top:10px;}.tools .ico {width:16px;}
}
@media(prefers-color-scheme:dark){
  :root{--desk-ink:#ecf4ed;--desk-muted:#b6cec1;--desk-sage:#263b35;--desk-deep:#205049;}
  .welcome{border:1px solid #50736e;}
  .mode.selected{border-color:#80a66e;}.mode.selected .modeIcon{color:#deefdb;background:#354e3e;}
  .casecard .thumb,.received img {background:#c8d6ca;}
  .anglebutton[aria-pressed="true"],.toolbutton[aria-pressed="true"],.partbutton[aria-pressed="true"]{border-color:#8eb58b;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important;}}
.plate mask {mask-type:alpha;}
.tool-zoom .surface,.tool-point .surface {touch-action:none;}
@media(min-width:761px){.at-customer .workbench .askinline{display:none;}}
.battery-probe {position:relative;display:inline-grid;place-items:center;width:40px;height:22px;margin-right:4px;border:2px solid currentColor;border-radius:4px;background:#59815f;color:#fff;font-size:19px;font-weight:bold;}
.battery-probe::after {content:"";position:absolute;right:-5px;top:5px;width:3px;height:8px;background:#427059;border-radius:1px;}
.charge-gap .battery-probe {animation:signal-lost 1.8s ease 2;}
.key-probe {display:inline-flex;gap:2px;align-items:center;justify-content:flex-start;min-width:85px;min-height:30px;padding:3px 8px;background:#112f38;color:#effcef;border-radius:4px;letter-spacing:.12em;}
.key-probe i {height:15px;border-right:2px solid #a6d9b3;animation:signal-lost 1s linear 2;}
.orientation-probe {width:49px;height:31px;display:grid;place-items:center;background:#193b43;border:2px solid #4a6267;border-radius:5px;}
.orientation-probe i {width:14px;height:22px;display:block;border-radius:2px;background:repeating-linear-gradient(#f2eacf 0 4px,#9fa488 4px 5px);}
.rotate-photo .orientation-probe i {width:34px;height:19px;background:linear-gradient(146deg,#6b9b9f 53%,#bdbb87 54%);animation:turn-photo .5s ease;}
.tap-drop {animation:tap-drop 1.4s ease-in 3;}
.lift-bin {animation:lift-bin .4s ease-out;}
@keyframes signal-lost {0%,36%,77%,100%{opacity:1}45%,68%{opacity:.15}}
@keyframes turn-photo {from{transform:rotate(-90deg)}}
@keyframes tap-drop {0%,27%{transform:translateY(0);opacity:.2}61%{opacity:1}100%{transform:translateY(56px);opacity:.12}}
@keyframes lift-bin {from{opacity:.25;transform:translate(353px,174px)}}
.glide-icon {touch-action:none;cursor:grab;}
.pen-line.trace-broken {stroke-dasharray:15 7 9 12;}
.pen-line.trace-good {stroke-dasharray:100;animation:draw-line .66s ease-out;}
@keyframes draw-line { from {stroke-dashoffset:100;} }
@media(prefers-reduced-motion:reduce){.pen-line.trace-good{animation:none;}}
