/* GuitarPath 4.15: WYSIWYG six-string editor. Only applies inside #editor. */
#editor .edv-meta-layout{display:block}
#editor .edv-meta-layout>.card{width:100%}
#editor .edv-main{margin-top:16px;padding:20px}
#editor .edv-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}
#editor .edv-header h2{margin:2px 0 6px;font-size:21px}
#editor .edv-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#8dd7ff}
#editor .edv-undo{display:flex;gap:7px}
#editor .edv-undo button:disabled{opacity:.35;cursor:not-allowed}
#editor .edv-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:11px 12px;border:1px solid #303f53;background:rgba(11,22,39,.68);border-radius:14px;margin-bottom:14px}
#editor .edv-toolbar>label{display:flex;align-items:center;gap:7px;font-size:12px;color:#cad7eb}
#editor .edv-toolbar select{padding:6px 8px;border-radius:8px;max-width:120px}
#editor .edv-bar-selector{flex:1;min-width:175px}
#editor .edv-bar-selector input{width:100%;min-width:50px;accent-color:#55aaff}
#editor .edv-workspace{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:14px;align-items:stretch}
#editor .edv-board-wrap{min-width:0;background:linear-gradient(145deg,#0f1727,#0c1424);border:1px solid #2d3f5c;border-radius:14px;padding:12px 8px 8px}
#editor .edv-timeline{position:relative;height:356px;overflow:hidden}
#editor .edv-labels{width:53px;position:absolute;inset:0 auto 0 0;z-index:5}
#editor .edv-chord-label{height:45px;display:flex;align-items:center;justify-content:flex-start;font-size:9px;font-weight:900;color:#a7b7d2;letter-spacing:.04em}
#editor .edv-str-label{position:absolute;left:1px;transform:translateY(-50%);height:35px;display:flex;align-items:center;justify-content:center;flex-direction:column;width:44px;color:var(--edv-color);font-size:18px;font-weight:950;background:#0c1523;border:1px solid #33445a;border-radius:8px;text-shadow:0 0 12px currentColor}
#editor .edv-str-label small{font-size:10px;color:#aeb9ca;font-weight:600;line-height:1}
#editor .edv-canvas{position:absolute;left:54px;right:8px;top:0;bottom:0;overflow:hidden;border-left:2px solid #547a9b;touch-action:pan-y}
#editor .edv-bar-num{position:absolute;top:1px;padding:2px 5px;font-size:10px;white-space:nowrap;color:#a8bdde;font-weight:800;background:#1b2b41;border-radius:4px;z-index:2;pointer-events:none}
#editor .edv-bar-line{position:absolute;top:18px;bottom:7px;width:2px;background:rgba(108,168,219,.45);pointer-events:none}
#editor .edv-beat-line{position:absolute;top:56px;bottom:7px;width:1px;background:rgba(119,158,210,.12);pointer-events:none}
#editor .edv-row{position:absolute;left:0;right:0;height:40px;border-top:1px solid rgba(154,190,238,.1);border-bottom:1px solid rgba(154,190,238,.1);background:linear-gradient(180deg,transparent,rgba(29,43,64,.38),transparent);z-index:1}
#editor .edv-row-string{position:absolute;top:50%;left:0;right:0;height:2px;transform:translateY(-50%);background:var(--edv-color);box-shadow:0 0 8px var(--edv-color);opacity:.75;pointer-events:none}
#editor .edv-row-hit{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;border-radius:0;background:none;cursor:crosshair}
#editor .edv-row-hit:hover{background:rgba(124,185,245,.1)}
#editor .edv-note{position:absolute;transform:translate(-8px,-50%);z-index:4;border:1px solid var(--edv-color,#bd82ff);background:#0a1422;color:var(--edv-color,#bd82ff);box-shadow:0 0 13px rgba(0,0,0,.45);border-radius:9px;min-width:32px;height:31px;font-weight:950;font-size:15px;cursor:grab;touch-action:none;white-space:nowrap}
#editor .edv-note i{position:absolute;top:33px;left:8px;display:block;height:4px;width:var(--edv-length);min-width:12px;background:var(--edv-color);opacity:.35;border-radius:4px;pointer-events:none}
#editor .edv-note:hover{filter:brightness(1.4);box-shadow:0 0 16px var(--edv-color)}
#editor .edv-note.selected{background:#dfeeff;color:#07131d;border:3px solid #fff;box-shadow:0 0 0 3px rgba(100,181,255,.33),0 0 15px var(--edv-color)}
#editor .edv-chord{top:29px!important;transform:translateX(-6px);--edv-color:#ffd28a;padding:0 9px;height:32px;min-width:41px}
#editor .edv-chord-fret{position:absolute;z-index:3;transform:translate(-4px,-50%);color:#101827;background:var(--edv-color);border-radius:5px;min-width:22px;text-align:center;font-size:12px;font-weight:900;opacity:.8;pointer-events:none}
#editor .edv-inspector{min-width:0;background:linear-gradient(180deg,#17263c,#101b2b);border:1px solid #2f4b67;border-radius:12px;padding:15px;min-height:356px}
#editor .edv-inspector h3{margin:0 0 12px;font-size:16px}
#editor .edv-inspector-head{display:flex;justify-content:space-between;gap:8px;align-items:center}
#editor .edv-current-index{font-size:11px;font-weight:900;background:#243c56;padding:4px 8px;border-radius:9px;color:#bcdcf4}
#editor .edv-inspector>.field{margin:10px 0}
#editor .edv-inspector .field>span{display:block;font-size:11px;color:#b6c8df;margin-bottom:5px}
#editor .edv-inspector input,#editor .edv-inspector select{width:100%;min-width:0}
#editor .edv-inspector-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
#editor .edv-inspector-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}
#editor .edv-inspector-actions button{flex:1}
#editor .edv-delete{color:#ffa6a6;border-color:#a95151}
#editor .edv-no-selection{margin-top:22px;border:1px dashed #4a6b8d;padding:16px 8px;text-align:center;border-radius:12px;color:#bcd7e9;font-weight:700}
#editor .edv-chord-positions{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}
#editor .edv-chord-positions span{background:#263d56;color:#cbddf0;font-size:10px;padding:4px 5px;border-radius:6px}
#editor .edv-bottom-note{display:flex;justify-content:space-between;gap:12px;margin-top:6px;font-size:11px;color:#abbdd5}
#editor .edv-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px;padding-top:14px;border-top:1px solid #283b52}
#editor .edv-advanced{margin-top:15px;border:1px solid #2c3e54;background:#0d1728;border-radius:13px;overflow:hidden}
#editor .edv-advanced>summary{padding:15px;cursor:pointer;font-weight:800}
#editor .edv-advanced-inner{padding:6px 14px 14px}
#editor .edv-table-nav{display:flex;gap:12px;align-items:center;margin:12px 0;font-size:12px}
@media(max-width:1100px){#editor .edv-workspace{grid-template-columns:1fr}#editor .edv-inspector{min-height:0}#editor .edv-inspector>.field{max-width:500px}}
@media(max-width:650px){#editor .edv-main{padding:12px}#editor .edv-timeline{height:340px}#editor .edv-canvas{left:45px;right:4px}#editor .edv-labels{width:44px}#editor .edv-str-label{width:40px}#editor .edv-bar-selector{min-width:100%;order:4}#editor .edv-inspector-two{grid-template-columns:repeat(2,minmax(0,1fr))}#editor .edv-note{min-width:26px;height:29px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#editor .edv-note{transition:none!important}}

#editor .edv-duration-line{position:absolute;height:6px;z-index:3;border-radius:999px;background:var(--edv-color);box-shadow:0 0 8px var(--edv-color);opacity:.48;transform:translateY(-50%);pointer-events:none}

#editor .edv-chord-fret{border:0;cursor:pointer;opacity:.82;pointer-events:auto}#editor .edv-chord-fret:hover,#editor .edv-chord-fret.selected{opacity:1;box-shadow:0 0 0 3px rgba(255,255,255,.48)}

/* 4.15.1 — visible silence editing between successive note/chord onsets */
#editor .edv-gap-marker{position:absolute;z-index:4;top:50px;transform:translateX(-50%);border:1px solid #6b8ea9;background:#193249;color:#d1ecff;padding:2px 5px;border-radius:9px;min-width:39px;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer;box-shadow:0 2px 7px #091321;line-height:1.2}
#editor .edv-gap-marker:hover,#editor .edv-gap-marker.active{background:#36668e;border-color:#b7ecff;box-shadow:0 0 0 2px #408bc055;color:white}
#editor .edv-gap-panel{margin-top:16px;padding:12px;background:linear-gradient(145deg,#1e3852,#13283f);border:1px solid #4a7190;border-radius:11px}
#editor .edv-gap-panel.edv-gap-selected{border-color:#9bd9f5;box-shadow:0 0 0 1px #9bd9f544}
#editor .edv-gap-panel h4{margin:0 0 7px;font-size:13px;color:#d5eeff}
#editor .edv-gap-summary{font-size:12px;margin:4px 0 11px;color:#c7dced}
#editor .edv-gap-summary strong{font-size:17px;color:#fbf7cd}
#editor .edv-gap-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:5px 0}
#editor .edv-gap-actions button{font-size:11px;padding:8px 3px;border:1px solid #7296ae;border-radius:9px;background:#213e5b;color:white;font-weight:750;min-width:0}
#editor .edv-gap-actions button:hover:not(:disabled){background:#336b94}
#editor .edv-gap-actions button:disabled{opacity:.42;cursor:not-allowed}
#editor .edv-gap-actions-secondary button{background:#162a41;color:#d0dfef}
#editor .edv-gap-set{display:flex;gap:6px;align-items:flex-end;margin-top:10px}
#editor .edv-gap-set label{min-width:0;flex:1;font-size:11px;color:#bcd3e3}
#editor .edv-gap-set input{margin-top:4px;width:100%;padding:6px 5px}
#editor .edv-gap-set button{padding:8px 9px;font-size:11px}
#editor .edv-gap-close{margin-top:9px;width:100%;border-color:#627f98;color:#e4f5ff;font-size:11px}
#editor .edv-gap-close:disabled{opacity:.35;cursor:not-allowed}
#editor .edv-gap-hint{color:#a8c1d7;font-size:10px;line-height:1.4;margin:10px 0 0}
@media(max-width:650px){#editor .edv-gap-marker{font-size:9px;min-width:34px;padding:2px 3px}}

/* 4.15.5 — sustained note bodies and a draggable right-edge duration handle. */
#editor .edv-note.edv-sustain{
  width:max(32px,var(--edv-length));box-sizing:border-box;min-width:0;
  display:flex;justify-content:flex-start;align-items:center;
  padding:0 13px 0 8px;text-align:left;
  background:linear-gradient(180deg,color-mix(in srgb,var(--edv-color) 84%,white),var(--edv-color));
  border-color:color-mix(in srgb,var(--edv-color) 65%,white);
  color:#111923;box-shadow:0 2px 11px #0008,inset 0 2px 0 #ffffff60;
}
#editor .edv-note.edv-chord.edv-sustain{min-width:0;width:max(44px,var(--edv-length));background:linear-gradient(180deg,#ffe0a0,#e8ac49);color:#2b1b09}
#editor .edv-note.edv-sustain.selected{border:3px solid #fff;box-shadow:0 0 0 2px #a8dfff77,0 0 16px var(--edv-color)}
#editor .edv-note.edv-sustain>span:first-child{pointer-events:none;white-space:nowrap;text-overflow:clip;overflow:hidden}
#editor .edv-note.edv-sustain .edv-resize-handle{
  position:absolute;right:0;top:0;bottom:0;width:12px;display:block;
  border-left:2px solid #07172761;border-radius:0 7px 7px 0;
  background:linear-gradient(90deg,#ffffff25,#ffffffa8);
  cursor:ew-resize;touch-action:none;z-index:8;
}
#editor .edv-note.edv-sustain .edv-resize-handle:hover{background:#fff9;border-left-color:#142331}
#editor .edv-duration-line{display:none}
@media(max-width:650px){#editor .edv-note.edv-sustain{width:max(29px,var(--edv-length));padding-left:6px;padding-right:12px}}
