@import url("/image-converter/styles.css?v=1");
/* Online piano */
.pn-wrap { max-width: 1320px; }
.pn-page .head .intro { margin-bottom: 16px; }

/* the instrument */
.pn-deck { position: relative; border-radius: 16px; padding: 14px 14px 10px; margin-bottom: 20px;
  background: linear-gradient(180deg, #1c1d25 0%, #131419 55%, #0e0f13 100%); border: 1px solid #2a2c37;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px rgba(0, 0, 0, .45); user-select: none; -webkit-user-select: none; }
.pn-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pn-controls { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* display */
.pn-lcd { position: relative; border-radius: 10px; padding: 10px 12px 8px; min-width: 0;
  background: radial-gradient(ellipse 120% 140% at 30% 0%, #10180a 0%, #070a05 70%); border: 1px solid #232a1a;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .8); color: #b8ef43; font: 12px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-shadow: 0 0 6px rgba(149, 214, 0, .35); }
.lcd-rows { display: grid; gap: 1px; }
.lcd-row { display: flex; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-row.off { opacity: .38; }
.lcd-k { display: inline-block; width: 44px; flex: 0 0 auto; color: #6f9f02; }
.lcd-chord { display: flex; align-items: baseline; gap: 10px; min-height: 40px; margin-top: 4px; overflow: hidden; }
.lcd-chord #lcdChord { font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: #d4ff6e; white-space: nowrap; }
.lcd-chord small { font-size: 12px; color: #8fc22a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-chord.dim { opacity: .45; }
.lcd-status { display: flex; flex-wrap: wrap; gap: 4px 12px; min-height: 16px; font-size: 11px; color: #8fc22a; }
.lcd-status span:empty { display: none; }
#lcdMidi.hit { color: #e9ffb5; }
.lcd-status .rec { color: #ff6b6b; text-shadow: 0 0 6px rgba(255, 80, 80, .6); animation: pn-blink 1s steps(2) infinite; }
@keyframes pn-blink { 50% { opacity: .3; } }

/* transport and metronome */
.pn-transport, .pn-metro, .pn-master { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid #2f3240;
  background: linear-gradient(180deg, #262833, #1a1b23); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.tb:hover { border-color: #444859; }
.tb i { width: 10px; height: 10px; display: inline-block; }
.tb.rec i { border-radius: 50%; background: #ff5f5f; }
.tb.rec[aria-pressed="true"] { border-color: #ff5f5f; color: #ffb3b3; background: linear-gradient(180deg, #3a1d22, #24151a); }
.tb.play i { width: 0; height: 0; border-left: 10px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tb.play[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.tb.stop i { background: #c9ccd6; border-radius: 1px; }
.tb.met[aria-pressed="true"] { border-color: var(--accent-2); color: #d6c2ff; background: linear-gradient(180deg, #2a2140, #1c1729); }
.clock { font: 600 15px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); min-width: 52px; }
.beat-lights { display: inline-flex; gap: 5px; }
.beat-lights i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c37; }
.beat-lights i:first-child { background: #3a2f55; }
.beat-lights i.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.beat-lights i:first-child.on { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mini .sel, .mini .in { width: auto; padding: 6px 8px; font-size: 13px; min-height: 34px; }
.mini .in.num { width: 76px; }

/* faders */
.fader { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.fader .range { width: 120px; max-width: 34vw; }
.fader-v { min-width: 44px; color: var(--text); font-variant-numeric: tabular-nums; }
.range { accent-color: var(--accent); height: 28px; }

/* sound selection */
.pn-select { margin-top: 12px; display: grid; gap: 8px; }
.pn-parts, .pn-groups, .pn-sounds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pn-parts::-webkit-scrollbar, .pn-groups::-webkit-scrollbar, .pn-sounds::-webkit-scrollbar { display: none; }
.part, .grp, .snd { flex: 0 0 auto; font: inherit; cursor: pointer; border-radius: 8px; min-height: 38px; white-space: nowrap; }
.part { background: #15161c; border: 1px solid #2c2f3b; color: var(--muted); padding: 7px 14px; font-size: 13px; font-weight: 700; }
.part .sw { font-size: 11px; font-weight: 600; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #22242e; color: #8b90a0; }
.part[aria-pressed="true"] { color: var(--text); border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.grp { background: transparent; border: 1px solid transparent; color: #9a9fb0; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.grp[aria-pressed="true"] { color: #10130a; background: var(--accent); }
.grp:hover { border-color: #2f3240; }
.snd { background: linear-gradient(180deg, #23252f, #191a21); border: 1px solid #2f3240; color: var(--text); padding: 9px 14px; font-size: 14px; font-weight: 600; min-height: 44px; }
.snd[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 14px rgba(149, 214, 0, .15); }
.pn-edit { display: grid; gap: 8px; }
.pn-edit:empty { display: none; }
.edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper output { min-width: 34px; text-align: center; font: 600 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); }
.stepper .muted { margin-right: 4px; }
.stepper .btn.sm { min-width: 34px; padding: 6px 8px; }

/* drawbars */
.drawbars { gap: 6px; align-items: flex-end; }
.bar { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.bar input { writing-mode: vertical-lr; direction: ltr; height: 104px; width: 28px; accent-color: #b5794a; }
.barb input { accent-color: #9a5a35; }
.barw input { accent-color: #e9e9ef; }
.bark input { accent-color: #6d6f7a; }
.bar output { font: 600 12px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); }

/* strip */
.pn-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 10px; }
.pedal[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(149, 214, 0, .08); }

/* keyboard */
.pn-kb { --kh: 1; display: grid; gap: 8px; padding: 10px 6px 8px; border-radius: 10px; background: linear-gradient(180deg, #08080b, #111217); border: 1px solid #22242e; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .7); }
.pn-keys { position: relative; height: calc(150px * var(--kh)); touch-action: none; cursor: pointer; }
.pn-kb.two .pn-keys { height: calc(120px * var(--kh)); }
.k { position: absolute; top: 0; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: center; }
.k.w { height: 100%; background: linear-gradient(180deg, #e9e9ee 0%, #fbfbfd 70%, #eeeef2 100%); border: 1px solid #0c0c10; border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -5px 0 #d4d4dc, inset 0 3px 4px rgba(0, 0, 0, .25); z-index: 1; }
.k.b { height: 62%; background: linear-gradient(180deg, #2c2d33 0%, #111114 75%, #232328 100%); border: 1px solid #000; border-top: 0; border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -4px 0 #000, inset 1px 0 0 rgba(255, 255, 255, .08), 0 3px 4px rgba(0, 0, 0, .6); z-index: 2; }
.k .lb { pointer-events: none; margin-bottom: 9px; font: 600 10px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #6b6e7b; letter-spacing: 0; white-space: nowrap; overflow: hidden; max-width: 100%; }
.k.b .lb { color: #9fa3b2; margin-bottom: 6px; font-size: 9px; }
.k.w.on, .k.w.midi { background: linear-gradient(180deg, #cfee8d 0%, #b7e255 100%); box-shadow: inset 0 -2px 0 #93bf2c, inset 0 3px 6px rgba(0, 0, 0, .3); }
.k.b.on, .k.b.midi { background: linear-gradient(180deg, #5c8a00 0%, #3f6200 100%); box-shadow: inset 0 -1px 0 #233600; }
.k.w.pb { background: linear-gradient(180deg, #d8c6ff 0%, #b897ff 100%); }
.k.b.pb { background: linear-gradient(180deg, #6d3fd6, #4a25a5); }
.k.w.low:not(.on):not(.midi):not(.pb) { background: linear-gradient(180deg, #d9cdf6 0%, #ebe4fb 70%, #ddd2f7 100%); box-shadow: inset 0 -5px 0 #c4b3ee, inset 0 3px 4px rgba(0, 0, 0, .25); }
.k.b.low:not(.on):not(.midi):not(.pb) { background: linear-gradient(180deg, #3a2f55 0%, #1d1729 75%, #2c2440 100%); }
.k[data-mark="scale"]::after, .k[data-mark="root"]::after, .k[data-mark="chord"]::after { content: ""; position: absolute; left: 50%; bottom: 26px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; pointer-events: none; }
.k.b[data-mark]::after { bottom: 20px; }
.k[data-mark="scale"]::after { background: #95d600; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.k[data-mark="root"]::after { background: #9147ff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.k[data-mark="chord"]::after { background: #ff9f1a; width: 14px; height: 14px; margin-left: -7px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .3), 0 0 8px #ff9f1a; }
.pn-kbbar { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pn-kbbar #latency { margin-left: auto; }

/* panels */
.pn-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 14px; border-bottom: 1px solid var(--border); }
.pn-tabs::-webkit-scrollbar { display: none; }
.pn-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.pn-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.pn-panel .row { margin-bottom: 10px; }
.pn-panel a { color: var(--accent); }
.chord-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.chord-now #chordNow { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.chord-now small { color: var(--muted); font-size: 14px; }
.chord-now.dim #chordNow { color: var(--muted); }
.scale-notes { font: 600 15px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--accent); margin: 0 0 12px; letter-spacing: .04em; }
.h3 { font-size: 13px; margin: 6px 0 8px; color: var(--text); }
.diatonic { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chordbtn { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.chordbtn small { color: var(--accent-2); font-size: 11px; font-weight: 700; }
.chordbtn span { font-size: 14px; font-weight: 700; }
.chordbtn:hover { border-color: var(--accent-dim); }
.takes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.take { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); display: grid; gap: 8px; }
.take.sel { border-color: var(--accent-2); }
.take-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.take-name { width: auto; flex: 1 1 160px; max-width: 320px; font-weight: 600; }
.take-parts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.take-part { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.take-part .sel { width: auto; padding: 5px 8px; font-size: 13px; }
.take-acts { gap: 6px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 0 4px; }
.keymap { display: grid; gap: 4px; margin: 8px 0; font: 600 12px ui-monospace, "SF Mono", Menlo, Consolas, monospace; max-width: 100%; overflow-x: auto; }
.km-row { display: flex; gap: 4px; padding-left: 14px; }
.km-row.w { padding-left: 0; }
.km-row b, .km-row i { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; }
.km-row b { background: #23252f; color: var(--muted); border: 1px solid #2f3240; }
.km-row.w b { background: #e9e9ee; color: #1a1b22; }
.pn-credits { margin-top: 14px; }
.pn-credits a { color: var(--muted); }
.doors { margin-top: 6px; }

/* full screen: the deck alone, keys as large as the screen allows */
body.pn-full { overflow: hidden; }
body.pn-full .pn-deck { position: fixed; inset: 0; z-index: 50; margin: 0; border-radius: 0; overflow-y: auto; display: flex; flex-direction: column; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
body.pn-full .pn-kb { flex: 0 0 auto; height: calc(100vh - 118px); height: calc(100dvh - 118px); min-height: 170px; grid-auto-rows: 1fr; }
body.pn-full .pn-keys, body.pn-full .pn-kb.two .pn-keys { height: auto; min-height: 0; }
body.pn-full .pn-select .pn-edit { display: none; }
body.pn-full .pn-lcd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 6px 12px; }
body.pn-full .lcd-rows { display: flex; gap: 14px; }
body.pn-full .lcd-row.off { display: none; }
body.pn-full .lcd-chord { min-height: 0; margin: 0; }
body.pn-full .lcd-chord #lcdChord { font-size: 20px; }

/* wider screens */
@media (min-width: 900px) {
  .pn-top { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); align-items: stretch; }
  .pn-keys { height: calc(190px * var(--kh)); }
  .pn-kb.two .pn-keys { height: calc(150px * var(--kh)); }
  .k .lb { font-size: 11px; }
}
/* below 900 px: the display, then the keys, then everything else */
@media (max-width: 899px) {
  .pn-deck { display: flex; flex-direction: column; }
  .pn-top { display: contents; }
  .pn-lcd { order: 1; }
  .pn-kb { order: 2; margin-top: 10px; }
  .pn-kbbar { order: 3; }
  .pn-strip { order: 4; }
  .pn-select { order: 5; margin-top: 4px; }
  .pn-controls { order: 6; margin-top: 12px; padding-top: 12px; border-top: 1px solid #262833; }
  .lcd-chord { min-height: 34px; }
}
/* phones */
@media (max-width: 520px) {
  .pn-deck { padding: 10px 8px 8px; border-radius: 12px; margin-left: -8px; margin-right: -8px; }
  .lcd-chord #lcdChord { font-size: 24px; }
  .fader .range { width: 96px; }
  .pn-keys { height: calc(170px * var(--kh)); }
  .k .lb { font-size: 9px; margin-bottom: 6px; }
  .tb { padding: 8px 11px; }
  .km-row b, .km-row i { width: 21px; height: 22px; }
  .km-row { gap: 3px; padding-left: 11px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .pn-keys { height: calc(150px * var(--kh)); }
}
@media (pointer: coarse) { .mini .sel, .mini .in { font-size: 16px; } }
