
.dec-workshop{display:grid;gap:.8rem;margin:.5rem 0;color:var(--ink,inherit)}.dec-workshop p,.dec-workshop h3{margin:.25rem 0}.dec-workshop label{display:grid;gap:.3rem}.dec-workshop input[type=range],.dec-workshop progress{width:100%;accent-color:#52765c}.dec-workshop button{min-height:36px}.dec-choices,.dec-controls,.dec-order,.dec-keys{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.dec-status:empty{display:none}.dec-status:not(:empty),.dec-display{padding:.68rem .8rem;border-left:3px solid #b98f54;background:#d1ad6a1a}.dec-workshop button[aria-pressed=true]{background:#356253;color:#fff4d2;border-color:#cba863}.dec-keys{padding:1rem .5rem;background:#33433e;border-radius:8px}.dec-keys button{min-height:76px;flex:1;background:#f3e7d2;color:#332d27;padding:.25rem}.dec-sky,.dec-clay-preview{width:100%;height:auto;max-height:40vh;touch-action:none;border-radius:8px}.dec-clay{display:grid;gap:3px;max-width:320px}.dec-clay{grid-template-columns:repeat(7,1fr);width:min(100%,290px);margin:auto}.dec-clay button{min-height:24px;padding:0;aspect-ratio:1;border:1px solid #7d7568}.dec-seq{width:100%;overflow-x:auto;padding:.45rem;background:#243731;border-radius:6px;box-sizing:border-box}.dec-track{display:grid;grid-template-columns:68px repeat(16,23px) 68px;gap:3px;align-items:center;margin:.26rem 0;min-width:max-content}.dec-track button{font-size:.72rem;padding:0;min-height:28px}.dec-track .dec-pad{background:#41534c;color:#eee0ba}.dec-track .dec-pad[aria-pressed=true]{background:#e2af66;color:#36291e}.dec-pad.beat{outline:2px solid #e8dfb8;outline-offset:-2px}.dec-controls{display:grid}.dec-workshop button:focus-visible,.dec-sky:focus-visible{outline:2px solid #cc9e53;outline-offset:2px}#panel[data-view=december]{width:min(640px,96vw)}@media(max-height:500px){.dec-keys button{min-height:44px}.dec-clay-preview{max-height:21vh}}

.studio-edit {display:grid;gap:.8rem;color:#273d39}
.studio-line,.studio-knobs,.studio-strip-head {display:flex;align-items:end;gap:.5rem;flex-wrap:wrap}
.studio-field,.studio-slider {display:grid;gap:.19rem;min-width:0;flex:1 1 9rem;font-size:.81rem;font-weight:650}
.studio-field select,.studio-field input {width:100%;min-width:0;box-sizing:border-box}
.studio-board {background:#223538;border-radius:.5rem;color:#edf2dc;padding:.65rem}
.studio-ruler {white-space:pre;display:flex;justify-content:space-between;font:600 .72rem/1.5 monospace;color:#d0ddcd;border-bottom:1px solid #6c8378}
.studio-lanes {display:grid;gap:.52rem;margin-top:.4rem}
.studio-strip {background:#304549;padding:.45rem .55rem;border-radius:.27rem}
.studio-strip-head {justify-content:space-between;align-items:center;font-size:.88rem}
.studio-strip-head button {min-height:1.55rem;font-size:.73rem;padding:.1em .45em;color:#223737;background:#e3e8d8;border:1px solid #aebdaf}
.studio-track {height:1.55rem;position:relative;background:repeating-linear-gradient(90deg,#1d3033 0 calc(12.5% - 1px),#506367 calc(12.5% - 1px) 12.5%);overflow:hidden;margin:.35rem 0}
.studio-block {position:absolute;box-sizing:border-box;top:.12rem;bottom:.12rem;min-width:3px;padding:0 .35em;border-left:3px solid #ecc577;color:#282923;background:#d9ad6a;white-space:nowrap;overflow:hidden;font-size:.75rem;line-height:1.28rem;touch-action:none;cursor:grab}
.studio-base {background:#8ac2b1;border-color:#c3e1ce;cursor:default}
.studio-board.is-playing .studio-track::after {content:'';position:absolute;inset-block:0;left:var(--playhead);border-left:2px solid #fffae8;pointer-events:none}
.studio-knobs {gap:.55rem;align-items:center}.studio-slider {font-size:.72rem}.studio-slider input {margin:0}
.studio-clock {font-variant-numeric:tabular-nums;margin-left:auto}
.studio-empty {font-size:.88rem;color:#e3ead7}.studio-edit .dec-status:empty {display:none}

.gb-work{display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem;color:inherit}
.gb-steps{display:flex;gap:.45rem;flex-wrap:wrap;font-size:.75rem}
.gb-steps span{padding:.25rem .55rem;border:1px solid #bba67c7a;border-radius:20px}
.gb-steps .gb-current{background:#386454;color:#fff4d5;border-color:#e4ba78}
.gb-head{display:flex;align-items:baseline;gap:.5rem;justify-content:space-between;flex-wrap:wrap}
.gb-head span,.gb-readout{font-weight:650;font-variant-numeric:tabular-nums}
.gb-head span{font-size:.83rem}
.gb-help{min-height:2.4em;font-size:.92rem;line-height:1.35}
.gb-board{display:block;width:100%;height:auto;max-height:min(41vh,310px);border-radius:11px;background:#563b32;touch-action:none;user-select:none;outline-offset:2px}
.gb-board:focus-visible{outline:2px solid #d6aa59}
.gb-meter{position:relative;height:.64rem;border-radius:10px;background:#715449;border:1px solid #9c8066;margin:.18rem .3rem}
.gb-meter[hidden]{display:none}
.gb-zone{position:absolute;height:100%;background:#79ba97;border-radius:5px}
.gb-meter i{position:absolute;top:-.25rem;height:1.02rem;width:4px;transform:translateX(-50%);border-radius:3px;background:#fff2cd;box-shadow:0 0 0 1px #533c33}
.gb-readout{font-size:.88rem;min-height:1.25em}
.gb-readout:empty,.gb-work>div:last-child:empty{display:none}
.gb-actions{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.gb-actions .gb-main{background:#356253;color:#fff4d2;border-color:#cba863}
.gb-actions button:disabled{opacity:.5}
@media(max-height:500px){.gb-work{gap:.32rem}.gb-board{max-height:38vh}.gb-help{min-height:0}.gb-steps span{padding:.12rem .45rem}.gb-actions button{min-height:32px}}

@media (orientation:landscape) and (max-height:520px) and (min-width:620px){
  .gb-work{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:.8rem;align-items:start}
  .gb-steps{grid-column:1/-1}
  .gb-board{grid-column:1;grid-row:2/8;max-height:54vh;align-self:start}
  .gb-head,.gb-help,.gb-meter,.gb-readout,.gb-actions,.gb-work>div:last-child{grid-column:2}
  .gb-help{line-height:1.26}.gb-head{gap:.15rem .5rem}.gb-actions{gap:.3rem}
  .gb-actions button{min-height:32px}.gb-head span,.gb-readout,.gb-help{font-size:.8rem}
}

#panel[data-station=headrig],#panel[data-station=edger],#panel[data-station=gang],#panel[data-station=moulder]{width:min(720px,94vw)}
.saw-work{display:grid;gap:7px}.saw-work h3,.saw-work p{margin:0}.saw-work small{display:block}.saw-pad{display:flex;gap:8px}.saw-pad[hidden],.saw-work button[hidden]{display:none}.saw-pad button{flex:1;touch-action:none;user-select:none;min-height:40px}.saw-work .prop-board{width:min(100%,650px);margin:auto}.saw-work .prop-hint:empty{display:none}
@media(max-height:500px) and (orientation:landscape){.saw-work .prop-board{max-width:51vh}.saw-work .saw-pad button{min-height:32px}}

#panel[data-station=montage]{width:min(780px,96vw)}.sg-editor{display:grid;gap:10px}.sg-editor p,.sg-editor h4{margin:0}.sg-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.sg-actions select{max-width:100%}.sg-grid{display:grid;grid-template-columns:max-content repeat(5,minmax(0,1fr));gap:4px;padding:8px;background:#1f3638;border-radius:8px;color:#f5e4bd}.sg-grid[hidden],.sg-shelf[hidden]{display:none}.sg-index,.sg-name{font-size:.77rem;align-self:center;text-align:center}.sg-index.sg-now{color:#ffdc6b}.sg-slot{min-width:0;min-height:37px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px!important;border-radius:5px!important}.sg-slot.set{color:#ddf0e2;background:#2c4744}.sg-slot.clip{color:#f7e6d6;background:#504039}.sg-slot[data-filled=true].set{background:#a7d6bb;color:#18362e}.sg-slot[data-filled=true].clip{background:#e8bd98;color:#34251f}.sg-slot.sg-now{box-shadow:inset 0 -3px #faca6e}.sg-editor button[aria-pressed=true]{outline:2px solid #d79937;outline-offset:-2px}.sg-shelf{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sg-bin{align-content:start;border:1px solid #adbaae;border-radius:7px;background:#e8efe7;padding:8px;max-height:160px;overflow-y:auto}.sg-bin.clip{background:#f4e9dc}.sg-bin button{max-width:100%;margin:3px 4px 2px 0;overflow-wrap:anywhere}.sg-bin h4{padding-bottom:4px}.sg-editor button[draggable=true]{cursor:grab}@media(max-width:600px){.sg-slot{font-size:.72rem}.sg-grid{gap:2px;padding:5px}.sg-name{font-size:.67rem}}
