@font-face { font-family: Rokkitt; font-weight: 800; src: url(/rokkitt-latin-800-normal.woff2) format("woff2"); }
:root { --night: #12352f; --deep: #0c2823; --edge: #2c5a50; --lamp: #f4b93e; --paper: #fff3d6; --soft: #b5cdc3; --bad: #ffab94; --ink: #1c1a16; --mono: ui-monospace, "DejaVu Sans Mono", Consolas, monospace; color-scheme: dark; }
* { box-sizing: border-box; min-width: 0; } [hidden] { display: none !important; }
html, body { height: 100%; } body { margin: 0; background: var(--night); color: var(--paper); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); } #app:empty { display: none; }
h1, h2 { font-family: Rokkitt, Georgia, serif; font-weight: 800; line-height: 1.1; margin: 0; } h1 { font-size: 22px; color: var(--lamp); } h2 { font-size: 24px; overflow-wrap: anywhere; } h3 { margin: 22px 0 8px; font-size: 15px; }
p { margin: 6px 0; } .soft { color: var(--soft); } .err, .danger { color: var(--bad); } .pad { padding: 14px; } a, .link { color: var(--lamp); } .link { border: 0; background: none; padding: 0; text-align: left; text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; } button, select, summary { cursor: pointer; } button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.bar { display: flex; align-items: center; gap: 28px; padding: 8px 18px; background: var(--deep); } .bar nav { display: flex; gap: 4px; flex: 1; } .bar a, .bar button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; color: var(--soft); text-decoration: none; } .bar a:hover, .bar button:hover { color: var(--paper); } .bar [aria-current] { background: var(--edge); color: var(--paper); font-weight: 600; }
.solid, .line { min-height: 34px; padding: 5px 14px; border-radius: 8px; font-weight: 600; } .solid { border: 0; background: var(--lamp); color: #2a1c00; } .line { border: 1px solid var(--edge); background: none; } .line:hover:not(:disabled) { background: var(--edge); } .line[aria-pressed=true] { background: var(--edge); }
input:not([type=checkbox], [type=radio], [type=range]), select, textarea { width: 100%; min-height: 34px; padding: 5px 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--deep); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--lamp); margin: 0; flex: none; } input[type=range] { accent-color: var(--lamp); }
form { display: grid; gap: 12px; align-content: start; } label > span, legend { display: block; margin-bottom: 3px; color: var(--soft); font-size: 14px; } fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; } .tick { display: flex; gap: 9px; align-items: center; } .tick span { margin: 0; color: inherit; font-size: inherit; }
.two, .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; } .two.top { align-items: start; gap: 20px; } .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .acts.tight { gap: 6px; } .acts select { width: auto; } .head { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tag { margin-left: 7px; padding: 0 7px; border-radius: 5px; background: var(--edge); font-size: 12px; font-style: normal; } .tag.off { background: #5b2a1d; } .tag.draft { background: var(--lamp); color: #2a1c00; } .code { font-family: var(--mono); } .huge { font-size: 19px; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; } th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--edge); vertical-align: middle; } th { font-weight: 600; color: var(--soft); font-size: 14px; white-space: nowrap; } th button { border: 0; background: none; padding: 0; font-weight: 600; } .num { text-align: right; white-space: nowrap; } .pick { width: 38px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 14px 0; } dt { color: var(--soft); } dd { margin: 0; overflow-wrap: anywhere; } .owed { font: 800 28px Rokkitt, Georgia, serif; color: var(--lamp); }

/* codes and affiliates */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; } .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); } .big { display: flex; flex-direction: column; padding: 18px 22px; overflow: hidden; } .scrolls { overflow: auto; flex: 0 1 auto; } .scrolls thead th { position: sticky; top: 0; background: var(--night); } .scrolls tbody tr { cursor: pointer; } .scrolls tbody tr:hover { background: var(--deep); } .scrolls tbody tr.on { background: var(--edge); }
.split > .side { padding: 18px 20px; } .side { background: var(--deep); overflow: auto; } .side input:not([type=checkbox], [type=radio], [type=range]), .side select { background: var(--night); } .side form { margin-top: 14px; } .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .filters.wide { grid-template-columns: minmax(0, 2fr) 1fr 1fr; margin-bottom: 8px; } #bulk { padding: 10px 0; display: grid; gap: 8px; }

/* the tune editor */
.studio { display: grid; grid-template-columns: 310px minmax(0, 1fr) 350px; } .lib { display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow: hidden; background: var(--deep); } .lib input:not([type=checkbox]), .lib select { background: var(--night); } .lib #list { flex: 1; overflow: auto; margin: 0 -12px; border-top: 1px solid var(--edge); min-height: 120px; } .lib .count { padding: 2px 0; } .lib #bulk { border-top: 1px solid var(--edge); padding: 10px 0 0; } .lib #bulk .line { padding: 3px 9px; min-height: 30px; font-weight: 400; }
.item { display: flex; gap: 10px; align-items: center; padding-left: 12px; content-visibility: auto; contain-intrinsic-size: auto 49px; } .item:hover { background: var(--night); } .item.on { background: var(--edge); } .item.hid .name b { opacity: .55; } .name { flex: 1; border: 0; background: none; text-align: left; padding: 5px 12px 5px 0; } .name b { font-weight: 600; } .name > span { display: block; color: var(--soft); font-size: 13px; }
.desk { display: flex; flex-direction: column; overflow: hidden; } .blank { margin: auto; text-align: center; } .title { display: flex; align-items: center; gap: 14px; padding: 10px 16px; } .title h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .title #status { color: var(--soft); flex: 1; white-space: nowrap; } .title #status.draft, .tabs .draft { color: var(--lamp); } .title .acts { flex-wrap: nowrap; }
.tools { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0 16px 10px; } .tools > span { display: flex; } .tools button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--edge); margin-left: -1px; background: var(--deep); } .tools button:hover { background: var(--edge); } .tools span > :first-child { border-radius: 7px 0 0 7px; margin-left: 0; } .tools span > :last-child { border-radius: 0 7px 7px 0; } .tools span > :only-child { border-radius: 7px; } .tools input, .tools select { min-height: 32px; height: 32px; padding: 2px 8px; } .tools #chord { width: 84px; } .tools #bar { width: auto; }
.score { flex: 1; min-height: 150px; overflow: auto; background: var(--paper); color: var(--ink); } .score:focus-visible { outline-offset: -3px; } .score .page { margin: 0 auto; width: fit-content; } .score .page svg { display: block; } .score .abcjs-note { cursor: pointer; }
.paper, .mini { background: var(--paper); color: var(--ink); border-radius: 8px; overflow: auto; } .mini svg { display: block; }
svg .sel, svg .sel * { fill: #b4320f !important; } svg .bad:not(.sel), svg .bad:not(.sel) * { fill: #8a5a00; } svg .hot, svg .hot * { fill: #0a7a55 !important; }
.grip { height: 9px; cursor: row-resize; background: var(--night); display: grid; place-items: center; touch-action: none; } .grip::after { content: ""; width: 44px; height: 3px; border-radius: 2px; background: var(--edge); }
.code#code { position: relative; height: 210px; flex: none; background: var(--deep); overflow: hidden; } #paint, #text { position: absolute; inset: 0; margin: 0; padding: 10px 16px; border: 0; border-radius: 0; font: 15px/22px var(--mono); letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-gutter: stable; tab-size: 4; } #paint { overflow: hidden; pointer-events: none; } #paint i { font-style: normal; } #text { resize: none; background: none; color: transparent; caret-color: var(--paper); height: 100%; overflow: auto; } #text::selection { background: #3d7a6c88; } #text:focus-visible { outline: 0; box-shadow: inset 0 2px var(--lamp); }
.c-dim { color: #8fb0a4; } .c-head { color: var(--soft); } .c-sym { color: var(--lamp); } .c-bar { color: #7fc9b4; } .c-rest { color: var(--soft); } .c-on { color: #ffb59c; }
.play { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px; } .play select { width: auto; } .speed { display: flex; gap: 10px; align-items: center; margin-left: auto; } .speed span { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; } .play #play { min-width: 76px; }
.tabs { display: flex; position: sticky; top: 0; background: var(--deep); border-bottom: 1px solid var(--edge); z-index: 1; } .tabs button { flex: 1; border: 0; background: none; padding: 11px 4px; color: var(--soft); white-space: nowrap; } .tabs [aria-selected=true] { color: var(--paper); font-weight: 600; box-shadow: inset 0 -3px var(--lamp); } .studio .panel { padding: 6px 16px 24px; }
.checks { list-style: none; padding: 0; margin: 8px 0; } .checks li { padding: 8px 0; border-bottom: 1px solid var(--edge); } .checks .bad { color: var(--bad); } .checks button { border: 0; background: none; padding: 0; text-align: left; text-decoration: underline; } .phrases { padding-left: 24px; margin: 0; } .row { display: block; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--edge); background: none; text-align: left; } .row:hover { background: var(--night); } .row b { font-weight: 600; } .row span { display: block; color: var(--soft); font-size: 14px; }

dialog { width: min(480px, 92vw); max-height: 90vh; border: 1px solid var(--edge); border-radius: 14px; padding: 22px 24px; background: var(--night); color: var(--paper); overflow: auto; } dialog.wide { width: min(900px, 94vw); } dialog::backdrop { background: #04110ecc; } dialog h2 { margin-bottom: 8px; } dialog .acts { margin-top: 16px; } dialog textarea { margin: 10px 0; font-family: var(--mono); } dialog .scroll { max-height: 46vh; overflow: auto; margin: 12px 0; } dialog > .tick { margin-top: 10px; } dialog > .cols { margin: 6px 0 12px; } .stack { display: grid; gap: 7px; } #sign h1 { font-size: 34px; } #sign .err { min-height: 1.45em; } .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } kbd { font-family: var(--mono); white-space: nowrap; }
#say { position: fixed; left: 50%; bottom: 72px; translate: -50%; max-width: 80vw; display: flex; gap: 16px; padding: 10px 18px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 600; z-index: 9; } #say.bad { background: #ffd5c8; } #say button { border: 0; background: none; text-decoration: underline; }
@media (max-width: 1250px) { .studio { grid-template-columns: 250px minmax(0, 1fr) 300px; } .split { grid-template-columns: minmax(0, 1fr) 380px; } .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); } }
@media print { body > :not(#app), .bar, .lib, .side, .tools, .grip, #code, .play, .title .acts, #status, .title { display: none !important; } html, body, #app, .studio, .desk { display: block; height: auto; background: #fff; overflow: visible; } .score { overflow: visible; background: #fff; } svg .sel, svg .sel *, svg .bad, svg .bad * { fill: #000 !important; } }
