.wrap{max-width:1110px;margin:auto;padding:0 24px}header{background:#eaf0db;border-bottom:1px solid #d3d8b7}header:after{content:'';display:block;height:6px;background:repeating-linear-gradient(45deg,#afd3a3 0 16px,#e6edce 16px 32px)}nav.wrap{display:flex;align-items:center;gap:18px;padding-top:10px;padding-bottom:10px}.brand{font-size:31px}.brand img{width:44px;height:44px}.nav-label{margin-right:auto;font-size:13px;font-weight:700}nav a:not(.brand){font-size:12px}nav button{font-size:12px}.hero{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:21px 0 17px}.hero h1{font-size:29px;margin-bottom:3px}.hero p{font-size:13px;margin:0}.hero .badge{flex:none}.device-bar{padding:14px 18px;margin-bottom:18px}.device-main,.device-label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.device-main{justify-content:space-between}.device-label{gap:9px;min-width:0}.device-label h2{font-size:17px;margin:0}.device-label .meta{overflow-wrap:anywhere}.device-actions button{min-height:38px;font-size:12px;padding:7px 13px}.device-bar details{margin-top:9px;padding-top:7px}.device-bar summary{min-height:26px;font-size:11px}.device-bar .footnote{margin-bottom:7px}.device-bar .checkbox{margin:10px 0}.composer{padding:20px 23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{font-size:21px;margin:0}.section-heading .badge{font-size:10px}.presets{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;margin:15px 0 20px}.preset{background:#eff1df;border-color:#d5dab8;min-width:0;min-height:75px;padding:9px 3px 7px;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px;font-weight:700}.preset svg{width:27px;height:27px;color:#377f61}.preset[data-kind=blink] svg,.preset[data-kind=pulse] svg{color:#ba8050}.preset[data-kind=breathe] svg{color:#498c99}.preset[data-kind=orbit] svg{color:#977044}.preset[aria-pressed=true]{border-color:#629878;background:#dfeecf;outline:1px solid #91b78b}.stage-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.82fr);gap:24px;align-items:start}.action-stage h3{font-size:19px;margin-bottom:4px}.action-stage>.meta{font-size:12px;min-height:22px;margin-bottom:13px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{min-width:0}.field.full{grid-column:1/-1}.field label{font-size:12px;margin-bottom:5px}.field input,.field select{min-height:40px;padding:7px 10px;font-size:13px}.field select{font:inherit;font-size:13px;width:100%;max-width:100%;background:#fffef6;border:1px solid #bfcaaa;border-radius:11px;color:inherit}.field select:focus-visible{outline:2px solid #3c8369;outline-offset:3px}.color-field{padding:11px;background:#f5f3e4;border:1px solid #d5dabb;border-radius:13px}.color-entry{display:flex;gap:7px}.color-entry input[type=color]{padding:3px;width:43px;flex:none;cursor:pointer}.color-entry input:not([type=color]){min-width:0;font-size:12px}.palette{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0 6px}.palette-color{width:24px;height:24px;min-height:24px;padding:0;border:3px solid #fffef6;border-radius:50%;outline:1px solid #c9ccaf;box-shadow:none}.palette-color:hover:not(:disabled){filter:brightness(1.05)}.color-result{font:500 10px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;margin:0}.color-result.invalid{color:#9a523c}.color-help{grid-column:1/-1;font-size:11px;margin:-3px 0 0}.play-stage{padding:16px;background:#eef3e3;border:1px solid #d3debd;border-radius:17px;min-width:0}.play-actions{display:flex;gap:8px}.play-actions button{min-width:0;padding:10px 13px;font-size:13px;min-height:45px}.play-actions #play{flex:1;background:#287a60;border-color:#1f6b53;color:#fffdf4;box-shadow:inset 0 2px #ffffff25,0 3px #22634d20}.play-actions #play:hover:not(:disabled){background:#338c6e}.play-state{font-size:12px;font-weight:700;margin:13px 0 7px;min-height:22px}.play-stage .notice{font-size:12px;line-height:1.7;padding:10px 12px;background:#fffdf0;border-left-width:3px}.play-stage .notice.error{background:#fbebe0}.stop-note{font-size:10px;line-height:1.7;margin:12px 0 5px}.play-stage .text-button{font-size:11px;padding:5px 0;min-height:28px}.play-stage progress{width:100%;height:7px;margin:0 0 9px;accent-color:#3d8c68}.swatches{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.swatch{display:flex;align-items:center;gap:6px;font:500 10px/1.7 ui-monospace,monospace;border-radius:7px;padding:3px 6px;background:#f1f0df}.swatch i{display:block;width:14px;height:14px;border:1px solid #a4a58d;border-radius:4px;flex:none}#live-targets{margin-top:13px}#live-targets p{margin:0;font-size:10px}.custom-hint{background:#f6efdb;border:1px solid #e2d3a9;padding:13px;border-radius:13px;font-size:12px}.custom-hint p{margin-bottom:10px}.custom-hint button{font-size:12px;min-height:36px;padding:7px 11px}.editor-label{justify-content:space-between;margin:7px 0}.editor-label label{margin:0}.editor-label button{font-size:11px}.composer>details{margin-top:20px}.composer>details>summary{font-size:12px}#advanced .footnote{margin:10px 0 0}.file-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px dashed var(--line);margin-top:20px;padding-top:14px}.file-tools p{font-size:11px;margin:0;max-width:430px}.file-tools button{font-size:11px;min-height:36px;padding:7px 12px}.composer>.cli-help{margin-top:12px;padding-top:9px}.cli-help summary{font-size:11px;min-height:24px}.extension-links{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0;font-size:11px}.extension-links p{margin:0}.extension-links .row{gap:14px}footer{border-top:1px dashed var(--line);padding:16px 0 25px;margin-top:22px;text-align:center;font-size:12px}footer p{margin-bottom:3px}footer .meta{font-size:10px}.skip{position:absolute;top:-100px;left:12px;padding:10px 15px;background:var(--card);z-index:5}.skip:focus{top:12px}
@media(max-width:800px){.presets{grid-template-columns:repeat(5,minmax(0,1fr))}.stage-grid{gap:18px;grid-template-columns:minmax(0,1fr) minmax(250px,.9fr)}.device-label #device-info{width:100%}.device-label{gap:7px}.extension-links{align-items:flex-start;flex-direction:column;gap:6px}}
@media(max-width:600px){.wrap{padding:0 16px}nav.wrap{gap:10px;padding-top:8px;padding-bottom:8px}.brand{font-size:28px}.brand img{width:37px;height:37px}.nav-label{font-size:11px}nav a:not(.brand){display:none}nav button{padding:4px}.hero{align-items:flex-start;gap:8px;flex-direction:column;margin:17px 0 13px}.hero h1{font-size:24px}.hero p{font-size:12px}.hero .badge{font-size:10px;padding:2px 8px}.device-bar{padding:12px 13px;margin-bottom:14px}.device-main{align-items:flex-start;gap:9px}.device-label h2{font-size:15px}.device-label #device-info{font-size:10px}.device-actions{gap:7px;width:100%}.device-actions button{flex:1;min-height:38px}.composer{padding:16px 14px}.section-heading h2{font-size:19px}.section-heading .badge{font-size:9px;padding:3px 7px}.presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:13px 0 17px}.preset{min-height:67px;font-size:11px;padding:7px 3px 5px}.preset svg{width:24px;height:24px}.stage-grid{display:flex;flex-direction:column;gap:15px}.action-stage,.play-stage{width:100%}.action-stage>.meta{min-height:0;margin-bottom:12px}.field-grid{gap:10px}.play-stage{padding:13px}.file-tools{flex-direction:column;align-items:flex-start;gap:9px}.file-tools .row{width:100%}.file-tools .row button{flex:1}.extension-links{margin:19px 0}footer{padding-bottom:20px}}

.choice-field{border:0;padding:0;margin:0;min-width:0}.choice-field legend{font-size:12px;font-weight:700;padding:0;margin-bottom:5px}.choice-group{display:flex;gap:5px;min-height:40px}.choice{position:relative;display:flex;flex:1;margin:0;min-width:0}.choice input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;pointer-events:none}.choice span{display:flex;align-items:center;justify-content:center;width:100%;padding:6px 7px;background:#fffef6;border:1px solid #bfcaaa;border-radius:10px;font-size:11px;line-height:1.5;text-align:center;cursor:pointer}.choice input:checked+span{background:#dfeecf;border-color:#629878;box-shadow:inset 0 0 0 1px #91b78b}.choice input:focus-visible+span{outline:2px solid #3c8369;outline-offset:2px}.choice-group.stacked{flex-direction:column}.choice-group.stacked .choice span{justify-content:flex-start;padding-left:11px}.play-state.error{color:#88472f}.play-state a{color:inherit}#status{scroll-margin:20px}
@media(max-width:600px){body{padding-bottom:110px}.play-controls{position:fixed;bottom:max(9px,env(safe-area-inset-bottom));left:16px;right:16px;z-index:10;padding:9px 11px 6px;border:1px solid #b9cca9;border-radius:18px;background:#f5f8eb;box-shadow:0 3px 24px #4f654139,inset 0 2px #fff}.play-controls .play-state{font-size:10px;min-height:16px;margin:4px 0 0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.play-actions button{min-height:43px}.play-stage{padding-top:10px}.choice span{padding:6px 5px;font-size:10px}#status{scroll-margin:18px}}

/* Keep local service checks beside the connection controls or USB-open error. */
.daemon-help { margin-block: 8px; }
.daemon-help[hidden], .daemon-help [hidden] { display: none; }
#daemon-details { min-width: 0; margin-block: 8px; }
#daemon-details > label { display: block; margin-bottom: 4px; }
.daemon-controls, .daemon-address { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
#daemon-service { width: auto; max-width: 100%; min-height: 44px; padding-inline: 8px; font: inherit; }
#daemon-custom { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
#daemon-custom[hidden] { display: none; }
#daemon-port { width: 7ch; min-width: 4.5rem; }
.daemon-address { margin-block: 6px; font-size: var(--type-caption); overflow-wrap: anywhere; }
#daemon-result { margin: 2px 0; }
#daemon-result:empty { display: none; }
