:root{color-scheme:light;--ink:#172322;--muted:#586763;--line:#dce1dc;--orange:#f87a46;--mono:'IBM Plex Mono',Consolas,monospace;font-family:'DM Sans','Segoe UI',sans-serif;color:var(--ink);background:#f4f5f1}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #358db0;outline-offset:3px}button:disabled{cursor:wait;opacity:.65}.defs{position:absolute;width:0;height:0;overflow:hidden}svg:not(.defs){width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.shell{width:min(1216px,calc(100% - 72px));margin:auto}header{background:#fcfdf9;border-bottom:1px solid var(--line)}.top,.brand,.top-actions,.heading,.primary,.outline,.device-top,.device-foot,.device-foot>span,.card-title,.axis,.axis div,.chartHead,.readings,.button-state,.feedback{display:flex;align-items:center}.top{min-height:70px;justify-content:space-between}.brand{gap:11px;font-size:26px;font-weight:750;letter-spacing:-1.6px}.brandmark{background:var(--orange);display:grid;place-items:center;width:34px;height:34px;border-radius:10px}.brandmark svg{width:24px;height:24px;stroke-width:2}.brand-slash{font-size:24px;font-weight:300;color:#bec6bc;margin:0 3px}.atelier,.top-actions{letter-spacing:0;font-size:14px}.atelier{color:var(--muted);font-weight:500}.top-actions{gap:18px}.role,.mono,.eyebrow,.tag,.chartHead>span,.readings,.angles strong,.axis b,.pill,.dev-sub,.feedback{font-family:var(--mono)}.role,.eyebrow{font-size:12px;letter-spacing:1.4px;font-weight:650}.role{color:var(--muted)}.primary,.outline{justify-content:center;gap:8px;min-height:41px;padding:8px 16px;border-radius:10px;font-weight:650;font-size:14px}.outline{background:#fff;border:1px solid #cdd4ce}.primary{background:var(--ink);color:#fff;border:1px solid var(--ink)}.outline:hover{background:#edf1ea}.primary:hover{background:#354a45}.heading{justify-content:space-between;gap:20px;margin:36px 0 25px}.eyebrow{display:flex;align-items:center;gap:9px;color:#51665e}.eyebrow i{width:18px;height:3px;background:var(--orange)}h1,h2,h3,p{margin:0}h1{font-size:clamp(34px,4vw,55px);letter-spacing:-.065em;line-height:1.08;margin:8px 0}h1 span,.device h2 span{color:var(--orange)}.heading p{color:var(--muted);font-size:16px}.dashboard{display:grid;grid-template-columns:1.12fr 1fr;gap:18px;padding-bottom:38px}.card,.device{border-radius:19px;min-width:0}.card{background:#fff;border:1px solid var(--line);padding:22px}.device{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;background-color:#172b2a;background-image:linear-gradient(90deg,#314a463e 1px,transparent 1px),linear-gradient(#314a463e 1px,transparent 1px),radial-gradient(ellipse at 63% 55%,#374f46,transparent 66%);background-size:27px 27px,27px 27px,auto;color:#f9f8ed;padding:23px 24px 0;min-height:350px}.device-top,.device-foot,.axis,.chartHead,.button-state{justify-content:space-between}.device .eyebrow{color:#c0d0bd}.pill{background:#243734;border:1px solid #60756c;border-radius:22px;color:#e5ebe3;display:flex;align-items:center;gap:7px;padding:5px 10px;font-size:12px}.pill i{width:7px;height:7px;border-radius:50%;background:#a9b5ad}.pill.live i{background:#98e9a1}.device h2{font-size:clamp(32px,3.8vw,52px);letter-spacing:-.065em;line-height:1.05;margin:14px 0 5px}.dev-sub{font-size:13px;color:#c0d0c5}.dev-sub b{color:#7b9184;margin:0 3px}.stage{position:relative;flex:1;min-height:161px;display:grid;place-items:center;perspective:700px}.orbit{position:absolute;left:55%;top:54%;border:1px solid #c4cfaa30;border-radius:50%;transform:translate(-50%,-50%) rotate(-12deg)}.o1{width:205px;height:78px}.o2{width:310px;height:111px;border-style:dashed}.o3{width:415px;height:148px}.cross{position:absolute;font:18px var(--mono);color:#afc5a67a}.c1{top:17%;left:10%}.c2{bottom:15%;right:8%}.module{--led:#ff763c;width:136px;height:136px;margin-left:10%;border-radius:21px;padding:10px;position:relative;transform:rotateX(28deg) rotateZ(-22deg) rotateY(-12deg);background:linear-gradient(135deg,#fcfaf1,#e8e9dc 55%,#c2c7bf);box-shadow:0 1px 0 #fdfcf1,1px 3px 0 #d9dccf,2px 6px 0 #bcc2b6,3px 9px 0 #b0b7ad,4px 12px 0 #9da69f,5px 15px 0 #929d95,6px 18px 0 #79867f,8px 24px 15px #091915ac}.bezel{width:100%;height:100%;border-radius:13px;background:linear-gradient(140deg,#37413f,#111c1a);padding:10px;box-shadow:inset 1px 3px 6px #000b,0 1px 1px white}.pixels,.mini{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr)}.pixels{gap:5px;height:100%}.pixels i{background:linear-gradient(145deg,#46524b,#313c36);border-radius:4px;box-shadow:inset 0 0 2px #121f1a}.pixels i.on{background:var(--led);box-shadow:0 0 10px color-mix(in srgb,var(--led) 65%,transparent),inset 0 0 3px #fff9}.jack{position:absolute;bottom:-13px;left:41%;width:30px;height:7px;border-radius:5px;background:#1a2221;border:2px solid #777e79}.device-foot{border-top:1px solid #97ada14a;min-height:49px;gap:8px;z-index:1}.device-foot>span{gap:8px}.device-foot strong{font-size:15px}.device-foot small,.device-foot .mono{font-size:12px;color:#c1d0c3}.device-foot small{border-left:1px solid #72887b;padding-left:9px}.card-title{gap:10px}.iconbox{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:#eef2ec;color:#40584b}.card-title h2{font-size:22px;letter-spacing:-.045em}.tag{margin-left:auto;background:#f2f4ee;padding:4px 8px;border-radius:5px;color:#57695b;font-size:12px}.axis{font-size:13px;color:var(--muted);margin:13px 0 15px}.axis div{gap:10px}.axis b{font-size:12px}.axis b:before,.readings b:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:var(--c)}.axis b:nth-child(1),.readings b:nth-child(1){--c:#ed7039}.axis b:nth-child(2),.readings b:nth-child(2){--c:#228779}.axis b:nth-child(3),.readings b:nth-child(3){--c:#6c68ae}.chartHead h3,.command-groups h3{font-size:15px;font-weight:650}.chartHead>span{font-size:12px;color:var(--muted)}canvas{display:block;width:100%;height:57px;margin:6px 0 5px;border-radius:5px;background:#f7f8f4}.readings{justify-content:space-between;gap:4px;font-size:12px;color:#425650}.readings b{font-weight:500}.readings+.chartHead{margin-top:16px}.command-groups{display:flex;flex-wrap:wrap;gap:18px 26px;margin-top:18px}.command-groups h3{margin-bottom:8px}.command-groups>div{min-width:0}#presets,#colors{display:flex;gap:6px;flex-wrap:wrap}.preset{border-radius:9px;border:1px solid var(--line);background:#fff;min-width:48px;display:grid;justify-items:center;gap:5px;padding:7px 6px;font-size:12px}.preset[aria-pressed=true]{border-color:#e28351;background:#fff2e8}.mini{height:20px;width:20px;gap:1px}.mini i{border-radius:.5px;background:#e4e6df}.mini i.on{background:var(--ink)}.swatch{width:33px;height:35px;background:transparent;border-radius:8px;border:1px solid transparent;display:grid;place-items:center}.swatch i{width:21px;height:21px;border-radius:50%;background:var(--s);border:1px solid #0002}.swatch[aria-pressed=true]{border-color:#858d85}.feedback{margin-top:14px;color:#637069;font-size:12px;min-height:16px}.angles{display:flex;align-items:center;gap:clamp(12px,4vw,42px);margin:21px 0 15px}.angles small,.button-state{color:var(--muted);font-size:14px}.angles strong{display:block;font-size:28px;letter-spacing:-2px;margin-top:4px}.level{position:relative;width:65px;height:65px;border:1px solid #b1bdb1;border-radius:50%;margin-left:auto;background:linear-gradient(90deg,transparent 49%,#b1bdb1 49%,#b1bdb1 51%,transparent 51%),linear-gradient(transparent 49%,#b1bdb1 49%,#b1bdb1 51%,transparent 51%),#f3f5ef}.level:after{content:'';position:absolute;inset:23%;border-radius:50%;border:1px dashed #b6c1b6}.level i{position:absolute;z-index:1;width:10px;height:10px;left:calc(50% - 5px);top:calc(50% - 5px);border-radius:50%;background:var(--orange);visibility:hidden}.button-state{padding-top:10px;border-top:1px solid var(--line)}.button-state strong{color:var(--ink)}dialog{width:min(390px,92vw);border:1px solid var(--line);border-radius:18px;padding:26px;color:var(--ink);box-shadow:0 18px 65px #10231e30}dialog::backdrop{background:#10231e80}dialog h2{font-size:30px;letter-spacing:-1.5px;margin:8px 0}dialog p{font-size:15px;color:var(--muted)}dialog .close{float:right;border:0;border-radius:50%;font-size:24px;width:32px;height:32px;line-height:1}#qr{text-align:center}#qr img{width:min(100%,235px);height:auto;image-rendering:pixelated}dialog input,dialog select{margin:8px 0;width:100%;padding:8px;border:1px solid var(--line);border-radius:6px}dialog input{font-size:13px}dialog .primary{width:100%}[hidden]{display:none!important}
@media(min-width:1450px){.heading{margin-top:46px}.device{min-height:381px}canvas{height:69px}.module{width:155px;height:155px}}
@media(max-width:850px){.shell{width:calc(100% - 34px)}.card{padding:17px}.device{padding:19px 17px 0}.dashboard{gap:12px}.role{display:none}.card-title h2{font-size:20px}}
@media(max-width:680px){.shell{width:calc(100% - 28px)}.top{min-height:58px}.brand-slash,.atelier{display:none}.brand{font-size:23px}.heading{align-items:flex-start;flex-direction:column;gap:15px;margin:23px 0 18px}.heading p{font-size:14px}.dashboard{grid-template-columns:1fr}.device{min-height:310px}.commands{grid-row:2}.stage{min-height:155px}.sensors canvas{height:65px}.command-groups{gap:14px 22px}.card,.device{border-radius:15px}.heading .primary{min-height:42px}.module{width:128px;height:128px}.role{display:none}}

.draw-panel{display:flex;align-items:center;gap:18px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.draw-panel h3{font-size:15px}.draw-panel p{font-size:13px;color:var(--muted);margin:7px 0 11px}.draw-panel .outline{font-size:13px;min-height:36px}
#draw-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;flex:0 0 min(49%,204px);aspect-ratio:1;padding:5px;border-radius:10px;background:#1a2c28;touch-action:none;user-select:none}
#draw-grid button{border:0;border-radius:4px;padding:0;min-width:0;background:#41534c}
#draw-grid button[aria-pressed=true]{background:var(--led)}
#draw-grid button:focus-visible{outline:2px solid white;outline-offset:-3px}
.swatch.eraser i{display:grid;place-items:center;color:white;font-style:normal;font-size:16px;line-height:1}
#connection-notices:has(.notice:not([hidden])){display:grid;gap:8px;margin:-9px 0 16px}
.notice{padding:10px 13px;border:1px solid #c8d8d1;border-radius:9px;background:#edf5ef;color:#28443a;font-size:14px}
.notice.error{border-color:#e4a494;background:#fff0eb;color:#802c21;font-weight:650}

.ohm-logo{display:block;width:170px;max-width:48%;height:auto}
@media(max-width:680px){.ohm-logo{width:140px}}
.heading-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.firmware-card{max-width:660px}
.firmware-card p{margin:12px 0;color:var(--muted)}
.learn-nav{display:flex;gap:6px;overflow-x:auto;padding-block:0 10px}
.learn-nav a{color:inherit;text-decoration:none;padding:7px 12px;border-radius:8px;white-space:nowrap;font-size:14px}
.learn-nav a:hover,.learn-nav a[aria-current=page]{background:#e5eee7;font-weight:650}
.learn-nav .repo-link{margin-left:auto}
.motion-column{display:grid;align-content:start;gap:12px;min-width:0}
.serial-controls{display:flex;gap:8px;margin:12px 0 8px}
.serial-controls .outline{min-height:34px;padding:4px 10px}
#serial-output{height:170px;overflow:auto;background:#172b2a;color:#e8f1e9;border-radius:8px;padding:8px;font:12px/1.5 var(--mono);white-space:pre}
.serial-line strong{color:#8ce5b5}.serial-line.tx strong{color:#ffb48e}

.ohm-home{display:block;max-width:48%}.top .ohm-home .ohm-logo{max-width:100%}
