.design-editing [data-tune-id]{cursor:crosshair}
.design-editing [data-tune-id]:hover{outline:1px dashed #6f63d6;outline-offset:5px}
.design-editing [data-tune-selected="true"]{outline:2px solid #765cff!important;outline-offset:6px}
.design-editing.tuner-panel-open{padding-right:336px}
.design-editing.tuner-panel-open .motion-toggle{right:354px}

.design-tuner{position:fixed;z-index:120;right:12px;top:12px;bottom:12px;width:312px;display:flex;flex-direction:column;background:#11121a;box-shadow:0 24px 70px #0006;border:1px solid #ffffff1c;border-radius:16px;color:#f8f6ef;font:13px/1.35 var(--sans);overflow:hidden;-webkit-font-smoothing:antialiased}
.design-tuner *{box-sizing:border-box}
.design-tuner button,.design-tuner input{font:inherit}
.tuner-head{display:flex;align-items:center;gap:10px;padding:15px 16px;border-bottom:1px solid #ffffff18}
.tuner-head strong{font-size:14px;letter-spacing:-.02em}
.tuner-head small{display:block;color:#aaaaba;font:9px var(--mono);letter-spacing:.08em;margin-top:2px}
.tuner-head-actions{display:flex;gap:5px;margin-left:auto}
.tuner-icon-button{width:29px;height:29px;display:grid;place-items:center;border:1px solid #ffffff22;border-radius:7px;background:#ffffff0a;color:#f8f6ef;cursor:pointer}
.tuner-icon-button:hover{background:#ffffff16}
.tuner-scroll{overflow:auto;padding:13px 14px 22px}
.tuner-note{padding:10px 11px;border-radius:9px;background:#765cff18;color:#c9c2ff;font-size:11px;line-height:1.45;margin-bottom:14px}
.tuner-group{padding:13px 0 16px;border-top:1px solid #ffffff14}
.tuner-group:first-of-type{border-top:0}
.tuner-group h3{margin:0 0 11px;color:#a7a7b5;font:9px var(--mono);letter-spacing:.11em;text-transform:uppercase}
.tuner-selected-name{margin:-3px 0 12px;font-size:15px;font-weight:600;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tuner-field{display:grid;grid-template-columns:1fr auto;align-items:center;gap:9px;margin:10px 0;color:#dedee7}
.tuner-field>span:first-child{font-size:11px}
.tuner-field output{min-width:42px;text-align:right;color:#9292a3;font:9px var(--mono)}
.tuner-field input[type="range"]{grid-column:1/-1;width:100%;height:3px;margin:0;accent-color:#8d79ff}
.tuner-field input[type="color"]{width:44px;height:26px;padding:2px;border:1px solid #ffffff2b;border-radius:6px;background:#ffffff0b;cursor:pointer}
.tuner-field input[type="text"]{grid-column:1/-1;width:100%;border:1px solid #ffffff20;border-radius:7px;background:#ffffff0b;color:white;padding:8px 9px;font:10px var(--mono);outline:none}
.tuner-field input[type="text"]:focus{border-color:#8d79ff}
.tuner-check{display:flex;align-items:center;justify-content:space-between;margin:11px 0;color:#dedee7;font-size:11px}
.tuner-check input{accent-color:#8d79ff}
.tuner-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.tuner-button{border:1px solid #ffffff20;border-radius:8px;background:#ffffff0b;color:#f8f6ef;padding:9px 10px;cursor:pointer;font-size:11px!important}
.tuner-button:hover{background:#ffffff17}
.tuner-button-primary{background:#765cff;border-color:#765cff}
.tuner-button-primary:hover{background:#876fff}
.tuner-file{position:relative;overflow:hidden}
.tuner-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.tuner-status{min-height:17px;margin:11px 1px 0;color:#9f92ff;font:9px var(--mono);letter-spacing:.04em}
.design-tuner.is-collapsed{width:48px;height:48px;bottom:auto;border-radius:12px}
.design-tuner.is-collapsed .tuner-head{padding:9px;border:0}
.design-tuner.is-collapsed .tuner-head>div:first-child,.design-tuner.is-collapsed .tuner-head-actions button:not([data-tuner-collapse]),.design-tuner.is-collapsed .tuner-scroll{display:none}
.design-tuner.is-collapsed .tuner-head-actions{margin:0}
.design-editing:has(.design-tuner.is-collapsed){padding-right:0}
@media(min-width:1001px){
  [data-tune-grid="true"]{grid-template-columns:var(--tune-grid-columns)!important}
  .tune-reverse-columns{direction:rtl}
  .tune-reverse-columns>*{direction:ltr}
}

@media(max-width:900px){
  .design-editing.tuner-panel-open{padding-right:0}
  .design-editing.tuner-panel-open .motion-toggle{right:18px}
  .design-tuner{top:auto;left:10px;right:10px;bottom:10px;width:auto;max-height:54vh}
  .design-tuner.is-collapsed{left:auto;width:48px}
}
