/* Un éditeur autonome : aucun style de piano roll ne dépend du thème de la page. */
#artistMidi.score-v34{--score-ink:#173e36;--score-paper:#fffbef;--score-line:#a9bbac;--track-color:#296653;color:var(--score-ink);background:var(--score-paper);border:2px solid #b9c6af;border-radius:14px;padding:clamp(16px,3vw,32px);width:100%;max-width:100%;min-width:0;font:18px/1.65 system-ui,sans-serif;isolation:isolate}
#artistMidi.score-v34 [hidden]{display:none!important}
#artistMidi.score-v34 :is(p,h2,h3,label,legend,output){color:var(--score-ink)!important;max-width:none}
#artistMidi.score-v34 h2{font:clamp(28px,3.5vw,44px)/1.2 Georgia,serif!important;margin:18px 0}
#artistMidi.score-v34 h3{font:700 20px/1.4 system-ui!important;margin:0}
#artistMidi.score-v34 .eyebrow{font:700 12px/1.6 system-ui;letter-spacing:.12em}
#artistMidi.score-v34 .actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:18px 0}
#artistMidi.score-v34 button{background:#fffdf6;color:#173e36!important;border:1px solid #749381;border-radius:5px;padding:10px 14px;min-height:44px;font:650 16px/1.4 system-ui;cursor:pointer;margin:0;box-shadow:none;text-transform:none;letter-spacing:normal;width:auto}
#artistMidi.score-v34 button.primary{background:#245b48;color:#fff9e6!important;border-color:#245b48}
#artistMidi.score-v34 button:disabled{opacity:.45;cursor:default}
#artistMidi.score-v34 :is(button,select,input):focus-visible{outline:3px solid #c25231;outline-offset:3px}
#artistMidi.score-v34 label{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:16px;margin:0}
#artistMidi.score-v34 select,#artistMidi.score-v34 input[type=number]{background:#fffdf5;color:#173e36;border:1px solid #789584;border-radius:5px;padding:8px;min-height:44px;width:auto;max-width:100%;font:16px system-ui}
#artistMidi.score-v34 input[type=number]{width:82px}
#artistMidi.score-v34 input[type=checkbox]{width:20px;height:20px;accent-color:#245b48;margin:0}
#artistMidi.score-v34 input[type=range]{width:150px;padding:0;accent-color:#245b48}
#artistMidi.score-v34 .pattern-picker{background:#edf1df;padding:20px;border-radius:8px}
#artistMidi.score-v34 .pattern-picker p{font-size:16px;margin-bottom:0}
#artistMidi.score-v34 .listen-parts{display:flex;flex-wrap:wrap;gap:12px 20px;padding:16px;margin:22px 0;border:1px solid #a9bbac;border-radius:8px;background:#f0f3e6}
#artistMidi.score-v34 .listen-parts legend{font-weight:700;padding:0 8px}
#artistMidi.score-v34 .score-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
#artistMidi.score-v34 .score-tabs button{border-bottom:4px solid var(--track-color)}
#artistMidi.score-v34 .score-tabs button[aria-pressed=true]{background:var(--track-color);color:#fff!important}
#artistMidi.score-v34 .score-help{background:#edf2e5;padding:16px;border-left:4px solid #ae6239;font-size:16px;line-height:1.7}
#artistMidi.score-v34 .score-panels{display:grid;gap:24px;margin:22px 0}
#artistMidi.score-v34 .score-panel{padding:12px;border:1px solid #afc1b1;border-top:5px solid var(--track-color);border-radius:8px;background:#fbfcf3;min-width:0}
#artistMidi.score-v34 .score-panel.is-active{box-shadow:0 0 0 2px var(--track-color)}
#artistMidi.score-v34 .score-panel-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
#artistMidi.score-v34 .score-panel-head>span{font-size:14px;margin-right:auto}
#artistMidi.score-v34 .score-panel-head button{font-size:14px;min-height:36px;padding:7px 10px}
#artistMidi.score-v34 .score-grid{position:relative;display:grid;grid-template-columns:78px minmax(0,1fr);grid-template-rows:30px auto;min-width:0;overflow:clip;border:1px solid #6d8b79;border-radius:5px;background:#173a33;color:#f8f3df}
#artistMidi.score-v34 .score-corner{font:11px/30px system-ui;text-align:center;background:#274f41}
#artistMidi.score-v34 .score-ruler{display:grid;grid-template-columns:repeat(var(--bars),minmax(0,1fr));font:12px/30px system-ui;background:#274f41}
#artistMidi.score-v34 .score-ruler span{border-left:2px solid #b2c4a4;padding-left:6px;white-space:nowrap;overflow:hidden}
#artistMidi.score-v34 .score-axis{display:grid;grid-template-rows:repeat(var(--rows),var(--row-height));background:#ebeddb}
#artistMidi.score-v34 .score-axis span{font:11px/var(--row-height) system-ui;color:#173e36;border-top:1px solid #a4b6a4;padding:0 5px;white-space:nowrap;overflow:hidden}
#artistMidi.score-v34 .score-axis span.black{background:#c8d6c6}
#artistMidi.score-v34 .score-surface{position:relative;height:calc(var(--rows) * var(--row-height));min-width:0;touch-action:none;background-image:linear-gradient(to right,#e5d59888 2px,transparent 2px),linear-gradient(to right,#a6bca849 1px,transparent 1px),linear-gradient(to bottom,#94b49b38 1px,transparent 1px);background-size:calc(100% / var(--bars)) 100%,calc(100% / var(--steps)) 100%,100% var(--row-height)}
#artistMidi.score-v34 button.score-note{position:absolute;left:calc(var(--step) * 100% / var(--steps));top:calc(var(--row) * var(--row-height) + 2px);width:calc(var(--len) * 100% / var(--steps));height:calc(var(--row-height) - 4px);min-height:0;min-width:3px;padding:0;border:1px solid #f9f3d780;border-radius:3px;background:var(--track-color);color:white!important;font:10px/1 system-ui;overflow:visible;touch-action:none;opacity:var(--note-opacity,.9);z-index:2}
#artistMidi.score-v34 button.score-note.is-selected{outline:2px solid #fff2ab;outline-offset:1px;z-index:4;opacity:1}
#artistMidi.score-v34 .score-note .score-resize{position:absolute;right:0;top:0;bottom:0;width:min(35%,12px);min-width:3px;background:#fff9;cursor:ew-resize;border-radius:0 2px 2px 0}
#artistMidi.score-v34 .score-note.is-ghost{opacity:.42;z-index:1}
#artistMidi.score-v34 .score-cursor{position:absolute;top:0;bottom:0;width:2px;background:#fff5a3;box-shadow:0 0 7px #fff5a3;z-index:5;pointer-events:none}
#artistMidi.score-v34 .score-empty{padding:20px;border:1px dashed #95ae97}
#artistMidi.score-v34 .score-editbar{position:relative;padding:18px;background:#eee6ce;border:1px solid #b6a17b;border-radius:8px}
#artistMidi.score-v34 .score-editbar output{min-width:55px}
#artistMidi.score-v34 .score-editbar p{flex-basis:100%;font-size:15px;margin:0}
#artistMidi.score-v34 .creative-score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}
#artistMidi.score-v34 .creative-score article{padding:18px;background:#f2ecd9;border:1px solid #b5baa0;border-radius:8px}
#artistMidi.score-v34 .creative-score p{font-size:17px;line-height:1.7}
#artistMidi.score-v34 .composition-tools{margin:20px 0}
.score-origin-key{display:inline-block;padding:10px 16px;border-left:4px solid #af6239;background:#e4eddb;color:#214b3c!important;font:700 18px/1.6 system-ui;margin:0 0 22px!important}
#artistMidi.score-v34 .score-key-head{padding:16px 20px;background:#214f41;color:#fff5dd!important;border-radius:7px;font:700 20px/1.6 system-ui;margin:0 0 20px;position:relative}
@media(max-width:700px){#artistMidi.score-v34{padding:14px;font-size:17px}#artistMidi.score-v34 .creative-score{grid-template-columns:1fr}#artistMidi.score-v34 .score-grid{grid-template-columns:62px minmax(0,1fr)}#artistMidi.score-v34 .actions>label{max-width:100%}#artistMidi.score-v34 .score-axis span{font-size:10px}#artistMidi.score-v34 .score-panel{padding:7px}#artistMidi.score-v34 .score-note .score-resize{min-width:3px}#artistMidi.score-v34 .pattern-picker{padding:12px}}

#artistMidi.score-v34 .score-note .score-resize{pointer-events:auto!important;touch-action:none;min-width:5px;width:min(45%,12px);z-index:7}#artistMidi.score-v34 button.score-note{user-select:none;-webkit-user-select:none}#artistMidi.score-v34 .score-help{line-height:1.7}
/* V46 · commandes proches de chaque instrument et aide aimantée. */
#artistMidi.score-v34 .score-register-hint{font:13px/1.5 system-ui!important;margin:2px 0 12px;opacity:.8}
#artistMidi.score-v34 .score-panel-head label{flex-basis:100%;font-size:14px}
#artistMidi.score-v34 .score-panel-head select{font-size:14px}
#artistMidi.score-v34 .score-editbar{margin:14px 0 0;padding:12px;gap:10px}
#artistMidi.score-v34 .score-editbar label,#artistMidi.score-v34 .score-editbar button{font-size:14px}
#artistMidi.score-v34 .score-editbar input[type=range]{width:120px}
#artistMidi.score-v34 .score-fridge{position:relative;margin:40px 0 24px;padding:28px 46px 18px 24px;max-width:880px;background:linear-gradient(135deg,#fff3c7,#f1dfab);border:1px solid #ccb781;border-radius:3px 3px 16px 3px;box-shadow:2px 7px 13px #473a2520;transform:rotate(-.3deg)}
#artistMidi.score-v34 .score-fridge .score-help{font:14px/1.65 system-ui!important;margin:0;background:none;border:0;padding:0}
#artistMidi.score-v34 .score-help-close{position:absolute;right:4px;top:3px;background:transparent;border:0;font-size:24px;padding:4px;min-width:40px}
#artistMidi.score-v34 .score-help-open{font-size:14px;margin:16px 0}
#artistMidi.score-v34 .score-magnet{position:absolute;top:-25px;left:42%;height:54px;width:40px;filter:drop-shadow(1px 3px 2px #44312555);transform:rotate(8deg);pointer-events:none}
#artistMidi.score-v34 .score-magnet i{display:block;width:38px;height:39px;border-radius:50% 50% 44% 44%;border:2px solid #6b4b36;background:repeating-linear-gradient(90deg,#ae573d 0 7px,#e9c778 7px 14px,#668679 14px 21px)}
#artistMidi.score-v34 .score-magnet b{display:block;margin:5px auto 0;width:14px;height:9px;background:#9b7045;border:1px solid #614731;position:relative}
#artistMidi.score-v34 .score-magnet b:before{content:'';position:absolute;inset:-8px -2px 6px;border-left:1px solid #614731;border-right:1px solid #614731}
@media(prefers-reduced-motion:reduce){#artistMidi.score-v34 .score-fridge{transform:none}}
