:root{--paper:#f6f7f2;--ink:#222b27;--muted:#89918a;--line:#e2e6de;--mint:#c1efb8;--tonic:#c1efb8;--subdominant:#bed7f6;--dominant:#ead0ef;--rail:218px;--footer:90px;--font:Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:13px/1.6 var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button,select,input{color:inherit}button{border:0;background:none}button:disabled{opacity:.28;cursor:default}button,select,input,a{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #719dcb;outline-offset:3px}button{transition:background .15s,transform .15s,opacity .15s}button:hover:not(:disabled){filter:brightness(.96)}button:active:not(:disabled){transform:translateY(1px)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.sidebar{width:var(--rail);position:fixed;inset:0 auto 0 0;background:var(--ink);color:#d1d7d0;padding:32px 19px 23px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:10px;align-items:center;color:#f4f6ef;text-decoration:none;letter-spacing:2.5px;font-size:19px;font-weight:750}.brand-mark{display:flex;align-items:center;justify-content:center;width:35px;height:40px;color:var(--mint)}.brand-mark svg{width:31px;height:31px;stroke-width:2.5}.brand small{display:block;font-size:8px;font-weight:500;color:#88958c;letter-spacing:3.1px;margin-top:1px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#808d84;font-weight:600}.sidebar>.nav-label{margin:45px 13px 12px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:13px 12px;color:#a9b4aa;border-radius:7px;font-size:11px;font-weight:550;margin-bottom:5px;white-space:nowrap}.nav-item svg{width:17px;height:17px}.nav-item.active{background:#354039;color:var(--mint)}.nav-item>span:last-child{margin-left:auto}.nav-dot{width:5px;height:5px;border-radius:50%;background:var(--mint)}#library-count{font-size:10px;color:#8e9b90}.sidebar-key{border-top:1px solid #3a443d;margin:34px 12px 0;padding-top:24px}#side-key{font-size:50px;font-weight:500;letter-spacing:-2px;line-height:1.4;margin-top:8px;color:#e4eddf}#side-key small{font-size:13px;letter-spacing:0;margin-left:8px;color:#a8bba8}.key-dots{display:flex;gap:6px;margin:6px 0 20px}.key-dots span{font-size:8px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;color:#a9b7a6;background:#38443b}.key-dots span:first-child{background:var(--mint);color:var(--ink)}.sidebar-key p{font-size:10px;line-height:2;color:#9bab9d}.sidebar-bottom{margin-top:auto}.shortcut-button{font-size:9px;color:#a5b2a6;display:flex;align-items:center;gap:7px;white-space:nowrap;padding:9px 0}.shortcut-button span{border:1px solid #526053;border-radius:4px;width:22px;height:22px;display:grid;place-items:center;font-size:13px}.sidebar-version{font-size:8px;color:#708475;display:flex;align-items:center;gap:5px;margin-top:17px}.sidebar-version small{margin-left:auto;font-size:8px}.online-dot{width:4px;height:4px;background:#8dbb89;border-radius:50%}.workspace{margin-left:var(--rail);padding-bottom:var(--footer)}.topbar{height:77px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:0 34px;gap:16px}.breadcrumb{display:flex;align-items:center;gap:13px;min-width:0;font-size:10px;color:var(--muted)}.crumb-slash{color:#b8bfb5}#project-title{width:177px;padding:5px 0;border:0;background:none;outline-offset:5px;font-size:12px;color:var(--ink);font-weight:550;text-overflow:ellipsis}.save-status{white-space:nowrap;font-size:9px;display:flex;align-items:center;gap:5px;color:#8b9687}.save-status i{width:4px;height:4px;background:#94b686;border-radius:50%}.top-actions{display:flex;gap:9px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 15px;border-radius:6px;white-space:nowrap;font-size:10px;font-weight:600}.button svg{width:15px;height:15px}.button.subtle{border:1px solid #dce2d8;background:#fafbf7}.button.dark{background:var(--ink);color:#e9efe7}.mobile-logo,.mobile-library{display:none}main{max-width:1490px;margin:auto;padding:34px 34px 20px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;font-weight:650;color:#7e8a7c;letter-spacing:2px}.intro h1{font-size:30px;letter-spacing:-1.4px;line-height:1.6;margin:4px 0 4px;font-weight:650}.intro h1 span{color:#6b8f67}.intro p{font-size:11px;color:#8b9589;margin:0}.button.inspire{background:#ecf0e5;border:1px solid #e0e6d6;padding:11px 13px;font-size:10px}.inspire svg{color:#7b9874;width:16px;height:16px}.inspire .small-arrow{width:13px;height:13px;margin-left:6px}.key-section{display:flex;align-items:center;padding:16px 20px;background:#fff;border:1px solid var(--line);border-radius:9px;gap:23px;box-shadow:0 3px 10px #232b2702}.field label,.transport label{display:block;font-size:8px;font-weight:700;letter-spacing:1.4px;color:#8c958b;margin-bottom:5px}.field label span{letter-spacing:0;font-size:8px;font-weight:450;margin-left:7px;color:#acb3a7}.field select{border:0;background:transparent;font-weight:600;font-size:15px;padding:0 24px 0 0;min-width:86px;border-radius:0}.mode-field select{font-size:12px;min-width:125px}.key-divider{width:1px;background:var(--line);height:38px;margin:0 2px}.segmented{background:#f1f3ed;display:flex;gap:3px;padding:3px;border-radius:5px}.segmented button{padding:4px 17px;font-size:10px;color:#8e9789;border-radius:3px;min-width:50px}.segmented button.active{background:#fff;color:#33442f;box-shadow:0 1px 4px #0000000b}.key-transpose{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:9px;color:#9ba394}.icon-button{width:28px;height:28px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:inherit}.icon-button:hover:not(:disabled){background:#ffffff14}.icon-button svg{width:15px;height:15px}.key-transpose .icon-button{border:1px solid #dce3d5;color:#5f7258;font-size:16px;background:#f9fbf5}.palette-section{margin:26px 0 28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-title{display:flex;align-items:center;gap:9px;min-width:0}h2{font-weight:600}.section-title h2{font-size:12px;margin:0;white-space:nowrap}.step-badge{display:inline-flex;justify-content:center;align-items:center;font-family:ui-monospace,SFMono-Regular,monospace;font-size:9px;color:#8b9585;border:1px solid #d9e0d3;border-radius:4px;width:21px;height:20px;flex-shrink:0}.section-hint{font-size:9px;font-weight:400;color:#a0a898;margin-left:4px;white-space:nowrap}.palette-tabs{display:flex;align-items:center;gap:15px}.palette-tabs button{font-size:9px;padding:4px 1px;color:#98a190;border-bottom:2px solid transparent;white-space:nowrap}.palette-tabs button.active{color:#3c5435;border-bottom-color:#728f62}.chord-palette{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.palette-chord{background:#fff;border:1px solid #e0e6db;border-radius:8px;padding:12px 12px 11px;text-align:left;position:relative;min-height:104px;overflow:hidden;touch-action:manipulation;user-select:none}.palette-chord:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--chord-color,var(--tonic))}.palette-chord:hover{border-color:#b4c1a7;box-shadow:0 4px 10px #25312007;transform:translateY(-2px)!important}.palette-chord .roman{font-size:9px;color:#8d9b86;font-weight:600;letter-spacing:.6px;display:flex;justify-content:space-between;align-items:center}.palette-chord .roman svg{width:12px;height:12px;opacity:.7}.palette-chord strong{display:block;font-size:24px;letter-spacing:-1px;line-height:1.55;font-weight:550;margin:4px 0}.palette-chord small{font-size:8px;color:#9aa492;white-space:nowrap}.palette-chord .palette-listen{position:absolute;inset:auto 7px 7px auto;width:20px;height:20px;color:#607955;opacity:0;background:#f0f5eb;border-radius:4px;display:grid;place-items:center}.palette-listen svg{width:12px;height:12px}.palette-chord:hover .palette-listen{opacity:1}.palette-legend{display:flex;gap:16px;align-items:center;margin-top:12px;font-size:8px;color:#8c9982}.palette-legend>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.palette-legend i{width:5px;height:5px;border-radius:50%;background:var(--tonic)}.palette-legend .subdominant{background:#aac9ec}.palette-legend .dominant{background:#d8b8e0}.palette-legend small{font-size:8px;color:#a4ad9b;margin-left:1px}.palette-footnote{margin-left:auto;font-size:8px;color:#a6af9e}.chromatic-controls{display:flex;align-items:center;gap:14px;margin:4px 0 13px;font-size:10px}.chromatic-controls select{border:1px solid var(--line);padding:3px 18px 3px 9px;border-radius:4px;background:#fff}.chromatic-controls span{color:var(--muted);font-size:9px}.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:21px}.arrange-column{min-width:0}.arranger{background:var(--ink);border-radius:10px;padding:20px 19px 13px;color:#d4dece;overflow:hidden;box-shadow:0 5px 15px #2230270a}.arrange-header{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:21px}.arranger .step-badge{border-color:#53614e;color:#a4b99a}.arranger .section-title h2{font-size:11px;color:#f0f4e8}.bar-count{font:8px ui-monospace,SFMono-Regular,monospace;color:#8fa386;border:1px solid #485542;border-radius:4px;padding:3px 6px;white-space:nowrap;margin-left:3px}.arrange-actions{display:flex;align-items:center;gap:2px;color:#9baa91}.action-divider{height:14px;width:1px;background:#4b5744;margin:0 7px}.arrange-actions .icon-button{width:24px;height:24px}.arrange-actions .icon-button svg{width:13px;height:13px}.chord-timeline{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;min-height:147px;padding:3px 0 9px;scrollbar-color:#586952 transparent;scrollbar-width:thin;position:relative}.timeline-chord{position:relative;flex:1 0 118px;min-width:118px;max-width:220px;border:2px solid transparent;border-radius:7px;padding:9px 11px 10px;background:var(--chord-color);color:#2d4031;cursor:pointer;user-select:none;min-height:127px;touch-action:pan-x}.timeline-chord.selected{border-color:#eafaef;box-shadow:0 0 0 2px #b8d8ae47}.timeline-chord.playing:after{content:'PLAYING';position:absolute;top:7px;right:7px;font-size:6px;letter-spacing:.8px;font-weight:700;background:#ffffffa8;border-radius:3px;padding:2px 4px;animation:pulse 1s infinite}.timeline-chord .card-top{display:flex;justify-content:space-between;font-size:8px;font-weight:550;color:#647a60}.timeline-chord .drag-grip{font-size:15px;line-height:10px;opacity:.65;cursor:grab;touch-action:none;padding:0 4px}.timeline-chord strong{font-size:27px;letter-spacing:-1.3px;line-height:1.4;font-weight:600;display:block;margin-top:12px;white-space:nowrap}.timeline-chord .chord-role{font-size:8px;opacity:.65;font-weight:550}.timeline-chord .card-duration{margin-top:16px;font-size:8px;display:flex;justify-content:space-between;align-items:center}.beat-dots{display:flex;gap:3px}.beat-dots i{width:4px;height:4px;border-radius:1px;background:currentColor;opacity:.22}.beat-dots i.active{opacity:.8}.timeline-chord.dragging{opacity:.35}.timeline-chord.drop-target{box-shadow:-4px 0 0 #ecfaf0}.timeline-add{flex:0 0 44px;border:1px dashed #617052;color:#a5b998;border-radius:6px;min-height:127px;display:flex;justify-content:center;align-items:center}.timeline-add svg{width:16px;height:16px}.arrange-bottom{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#8a9e80;padding-top:4px}.tiny-drag{font-size:14px;margin-right:3px;vertical-align:middle}.voice-leading{display:inline-flex;align-items:center;gap:4px;font-size:8px;color:#bdd1ad;padding:3px 0}.voice-leading svg{width:12px;height:12px}.empty-timeline{border:1px dashed #57684d;border-radius:6px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;gap:6px;color:#c9d6bd}.empty-timeline small{font-size:9px;color:#879b7a}.piano-roll-section{margin:20px 0 23px;border:1px solid #dde4d7;border-radius:9px;background:#fcfdf9;overflow:hidden}.roll-heading{display:flex;justify-content:space-between;align-items:center;padding:13px 14px}.roll-heading h3{display:flex;align-items:center;gap:6px;font-size:8px;letter-spacing:1.3px;font-weight:650;margin:0;color:#6f8065}.roll-heading h3 svg{width:12px;height:12px}.roll-view-toggle{display:flex;gap:11px;align-items:center;font-size:8px;color:#a1ae94}.roll-view-toggle button{font-size:8px;color:#8da47b;border-bottom:1px dotted #aabd9c;padding:0}.piano-roll{height:145px;overflow-x:auto;overflow-y:hidden;position:relative;background:#f3f6ef;scrollbar-width:thin;scrollbar-color:#c9d8be transparent;border-block:1px solid #e6ebdf}.roll-inner{position:relative;height:100%;margin-left:28px;min-width:calc(100% - 28px);background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(100% / 24 - 1px),#e6ebe0 calc(100% / 24 - 1px),#e6ebe0 calc(100% / 24)),repeating-linear-gradient(to right,transparent 0,transparent calc(var(--beat-width) - 1px),#e2e9d9 calc(var(--beat-width) - 1px),#e2e9d9 var(--beat-width))}.roll-note{position:absolute;border-radius:2px;opacity:.85;border:1px solid #71995d26;min-width:3px;min-height:4px}.roll-labels{position:absolute;left:0;top:0;bottom:0;width:27px;background:#edf2e7;z-index:2;font:7px ui-monospace,monospace;color:#91a181}.roll-labels span{position:absolute;left:5px}.roll-bar{position:absolute;top:0;bottom:0;border-left:1px solid #b9caa8;opacity:.7}.roll-playhead{position:absolute;top:0;bottom:0;left:0;border-left:2px solid #537e49;z-index:3;pointer-events:none}.roll-footer{display:flex;justify-content:space-between;align-items:center;padding:8px 13px;font-size:8px;color:#8c9b80;gap:10px}.roll-footer>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.template-section .section-heading{margin-bottom:12px}.template-section h2{font-size:11px}.template-section .section-hint{font-size:8px}.text-button{font-size:8px;color:#809073;white-space:nowrap;padding:0}.text-button span{margin-left:5px}.template-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.template-card{border:1px solid #dde4d6;border-radius:7px;background:#fff;padding:11px 12px;text-align:left;min-width:0}.template-card:hover{border-color:#aec19e}.template-card .template-tag{font-size:7px;letter-spacing:1px;font-weight:650;color:#829776;display:flex;justify-content:space-between;align-items:center}.template-card .template-tag span:last-child{font-size:13px;color:#93a487}.template-card strong{display:block;font-size:11px;margin-top:3px}.template-card p{font-size:8px;color:#97a58b;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-card .template-degrees{font-family:ui-monospace,monospace;font-size:9px;margin-top:8px;letter-spacing:.3px;color:#687e5b}.inspector{border:1px solid #e0e5da;background:#fff;border-radius:9px;padding:16px}.inspector-heading{display:flex;justify-content:space-between;align-items:center}.inspector-heading h2{margin:0;font-size:8px;letter-spacing:1.4px;font-weight:650;color:#899780}.inspector-heading>span{font:9px ui-monospace,monospace;color:#aab69f}.selected-chord{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.selected-chord strong{font-weight:550;font-size:32px;letter-spacing:-1.2px}.preview-button{width:27px;height:27px;border-radius:50%;background:#ecf3e5;color:#718963;display:grid;place-items:center}.preview-button svg{width:13px;height:13px}.selected-notes{font-size:9px;color:#98a78d;font-family:ui-monospace,SFMono-Regular,monospace;letter-spacing:.7px;margin-top:-2px}.mini-keyboard{display:flex;height:41px;position:relative;margin:13px 0 17px;gap:2px;overflow:hidden;border-radius:3px}.piano-white{background:#f4f6f0;border:1px solid #e2e8da;flex:1;border-radius:0 0 3px 3px;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:3px;font-size:6px;color:#a8b89a;cursor:pointer}.piano-white.note-on{background:#ceeabd;border-color:#a8ce91;color:#63804f}.piano-black{position:absolute;top:0;width:5.5%;height:62%;background:#5b6851;border:1px solid #53604a;z-index:1;border-radius:0 0 2px 2px;cursor:pointer}.piano-black.note-on{background:#92bc7a;border-color:#799c65}.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.editor-fields label{font-size:8px;color:#94a087}.editor-fields select,.editor-fields input{display:block;width:100%;padding:6px 8px;margin-top:4px;border:1px solid #e2e8db;border-radius:4px;background:#fafcf6;font-size:10px;color:#5e7151;min-height:29px}.chord-edit-actions{display:flex;gap:7px;margin-top:15px;border-top:1px solid #eef1e8;padding-top:12px}.chord-edit-actions button{display:flex;justify-content:center;align-items:center;gap:4px;border:1px solid #dfe7d7;border-radius:4px;padding:4px 7px;font-size:9px;color:#849a73;flex:1}.chord-edit-actions button svg{width:12px;height:12px}.chord-edit-actions #copy-chord{flex:2}.midi-panel{padding:18px 16px 13px;border:1px solid #d9e8cd;border-radius:9px;background:#edf5e6;margin-top:16px}.midi-label{display:flex;align-items:center;gap:8px;font-size:7px;letter-spacing:1.3px;color:#7c966b;font-weight:600}.midi-label .step-badge{border-color:#c5d9b7;color:#7e9d6a;font-size:8px;width:18px;height:18px}.midi-panel h2{font-size:17px;font-weight:600;margin:12px 0 4px;letter-spacing:-.5px;color:#3d5c2f}.midi-panel>p{font-size:8px;color:#8a9e7b;margin:0 0 15px}.midi-drag{display:flex;align-items:center;gap:8px;background:#ffffff85;border:1px dashed #b8d2a5;border-radius:6px;padding:10px 9px;cursor:grab;touch-action:manipulation}.midi-file-icon{width:29px;height:35px;color:#709159;display:flex;align-items:center;justify-content:center}.midi-file-icon svg{width:27px;height:27px;stroke-width:1.2}.midi-drag>div{min-width:0}.midi-drag strong{display:block;font-size:9px;color:#4f703d;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:138px}.midi-drag small{font-size:7px;color:#90a47f;white-space:nowrap}.midi-drag small>span{margin-left:3px}.drag-handle{color:#9bb489;font-size:18px;margin-left:auto}.midi-download{width:100%;background:#c5e9b3;color:#385929;margin-top:11px;border:1px solid #b8dba8;padding:9px;font-size:10px}.midi-detail{display:flex;justify-content:space-between;margin-top:10px;font-size:6px;color:#8ba07b;letter-spacing:.7px}.midi-detail span:last-child{font-size:7px;letter-spacing:0}.export-options-link{padding:10px 0 0;font-size:8px;color:#80996d;width:100%;text-align:left;margin-top:11px;border-top:1px solid #dbe8cf}.export-options-link span{float:right}.share-midi{width:100%;margin-top:7px;color:#527340;background:#fafff7;border:1px solid #cdddbe;font-size:9px}.workspace-footnote{display:flex;align-items:center;justify-content:space-between;margin-top:32px;font-size:7px;color:#b2bca9;letter-spacing:1.3px}.workspace-footnote button{font-size:8px;color:#9aa98d;letter-spacing:0}.transport{position:fixed;bottom:0;left:var(--rail);right:0;height:var(--footer);background:#fbfcf8f2;border-top:1px solid #dce3d4;backdrop-filter:blur(16px);z-index:20;display:flex;align-items:center;gap:21px;padding:17px 32px;padding-bottom:calc(17px + env(safe-area-inset-bottom));box-shadow:0 -4px 22px #23302704}.transport-play{display:flex;align-items:center;gap:13px}.play-button{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--ink);color:var(--mint);flex-shrink:0}.play-button svg{width:21px;height:21px}.play-button.playing{background:#53794a;color:#e5f9dd}.transport-position{min-width:75px}.transport-position>span{display:block;font:22px/1.2 ui-monospace,SFMono-Regular,monospace;color:#415038;letter-spacing:-1px}.transport-position i{font-style:normal;color:#adbba2;font-size:16px;margin:0 5px}.transport-position small{display:block;font-size:6px;letter-spacing:1.3px;color:#a4b099;margin-top:4px}.transport-icon{color:#a3b295;width:29px;height:29px;border-radius:5px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.transport-icon svg{width:16px;height:16px}.transport-icon.active{color:#57784b;background:#e7f0df}.transport-divider{width:1px;height:34px;background:#e1e8d9;flex-shrink:0}.transport label{font-size:7px;letter-spacing:1.5px;margin-bottom:3px;color:#94a087}.bpm-control>div{display:flex;align-items:center;gap:4px}.bpm-control input{width:42px;border:0;padding:0;background:none;font:20px/1.1 ui-monospace,monospace;color:#49603c;appearance:textfield;-moz-appearance:textfield}.bpm-control input::-webkit-inner-spin-button{appearance:none}.bpm-control span{font-size:6px;color:#a3b096}.transport select{font-size:11px;background:transparent;border:0;padding:0 8px 0 0;color:#5f7351;max-width:130px}.meter-control select{font:14px ui-monospace,monospace}.sound-control{margin-left:auto}.pattern-control select{font-size:10px}.volume-control{display:flex;align-items:center;gap:8px}.volume-control svg{width:15px;height:15px;color:#95a985}.volume-control input{width:60px;height:3px;accent-color:#758f62}.settings-icon{font-size:19px}dialog{max-width:680px;width:calc(100% - 40px);max-height:85dvh;border:1px solid #dce6d2;border-radius:14px;background:#f8faf4;color:var(--ink);padding:27px 29px;box-shadow:0 20px 100px #111b1460;overscroll-behavior:contain}dialog::backdrop{background:#18201980;backdrop-filter:blur(4px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.modal-header h2{font-size:22px;margin:5px 0 0;letter-spacing:-.5px}.modal-header .eyebrow{font-size:8px}.modal-header .icon-button{background:#eaf0e1;color:#7d9271}#modal-body p{color:#7f9073;font-size:12px;line-height:1.95}#modal-body h3{font-size:14px;margin:23px 0 6px}#modal-body strong{color:#45623c}.modal-note{border:1px solid #dbe6d0;background:#edf4e5;padding:13px;border-radius:7px;color:#7f956e;font-size:11px;line-height:1.9}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.preset-grid .template-card{padding:16px}.preset-grid .template-card strong{font-size:14px}.preset-grid .template-card p{font-size:10px;white-space:normal}.preset-grid .template-degrees{font-size:11px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.settings-grid label{font-size:11px;color:#6b825d}.settings-grid input:not([type=checkbox]),.settings-grid select{display:block;width:100%;accent-color:#72925b;padding:8px 10px;border:1px solid #dbe5d0;border-radius:5px;background:#fff;margin-top:7px;font-size:12px}.settings-grid input[type=range]{padding:0;height:5px;margin:20px 0}.settings-grid label>span{float:right;font-family:ui-monospace,monospace;font-size:11px}.settings-grid .check-label{display:flex;align-items:center;gap:9px}.check-label input{accent-color:#71965a}.settings-footer{margin-top:22px;border-top:1px solid #dfe7d6;padding-top:15px;font-size:10px;color:#8d9d80}.library-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}.library-toolbar .button{background:#e7f0de;border:1px solid #d4e3c8;font-size:10px}.library-list{display:grid;gap:10px}.library-item{background:#fff;border:1px solid #dfe8d5;padding:14px;border-radius:7px;display:flex;align-items:center;gap:12px}.library-item .library-info{flex:1;min-width:0}.library-item strong{display:block;font-size:13px;color:#446338}.library-item small{display:block;font-size:9px;color:#a1ae97;margin-top:4px}.library-item .button{background:#eef5e7;color:#6c855d;padding:7px 12px}.library-item .icon-button{color:#b5a392}.library-empty{padding:30px 15px;text-align:center;background:#eef4e7;border-radius:8px;color:#859c72}.shortcut-list{display:grid;grid-template-columns:1fr 1fr;gap:13px 30px}.shortcut-list>div{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#7c936b}.shortcut-list kbd{border:1px solid #dce5d1;background:#fff;border-radius:4px;padding:4px 8px;font:10px ui-monospace,monospace;color:#668054}.toast{position:fixed;left:calc(50% + var(--rail)/2);bottom:calc(var(--footer) + 18px);transform:translate(-50%,10px);background:#26352c;color:#e4f2da;border:1px solid #42583a;border-radius:8px;box-shadow:0 6px 28px #17241b29;padding:11px 19px;font-size:11px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;white-space:nowrap}.toast.visible{opacity:1;transform:translate(-50%,0)}.touch-drag-ghost{position:fixed;z-index:1000;pointer-events:none;opacity:.9;transform:rotate(3deg);box-shadow:0 10px 40px #0005}.touch-drop{outline:3px solid #e4f6d9;outline-offset:1px}@keyframes pulse{50%{opacity:.4}}@media(min-width:1600px){:root{--rail:244px}.sidebar{padding:38px 25px}.studio-grid{grid-template-columns:minmax(0,1fr) 290px}.inspector{padding:20px}.midi-panel{padding:21px}.timeline-chord{min-height:153px;flex-basis:140px}.chord-timeline{min-height:172px}.timeline-chord strong{font-size:32px;margin-top:16px}.timeline-chord .card-duration{margin-top:21px}.piano-roll{height:175px}.palette-chord{min-height:119px}.palette-chord strong{font-size:28px}main{padding-top:40px}.intro h1{font-size:36px}}
@media(max-width:1200px){:root{--rail:185px}.sidebar{padding:28px 13px}.brand{font-size:17px;letter-spacing:1.7px}.brand-mark{width:29px}.brand small{font-size:7px;letter-spacing:2.7px}.nav-item{font-size:10px;padding:12px 9px;gap:9px}.topbar{padding:0 24px}.breadcrumb{gap:9px}.save-status{display:none}main{padding:28px 24px 20px}.studio-grid{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.transport{gap:15px;padding:16px 23px}.volume-control{display:none}.section-hint{display:none}.key-section{gap:18px;padding:15px 17px}.palette-chord{padding:11px 9px}.palette-chord strong{font-size:22px}.chord-palette{gap:8px}.arranger{padding:16px 14px 12px}.arrange-header .bar-count{font-size:7px;padding:2px 4px}.arrange-header .section-title{gap:6px}.arrange-header .section-title h2{font-size:10px}.arrange-actions{gap:0}.arrange-actions .icon-button{width:22px}.action-divider{margin:0 3px}.transport-position{min-width:65px}.transport-play{gap:9px}.key-transpose{gap:6px}.palette-tabs{gap:11px}}
@media(max-width:1000px){:root{--rail:72px}.sidebar{padding:30px 13px}.brand{justify-content:center}.brand>span:last-child,.sidebar>.nav-label,.sidebar-key,.sidebar-bottom{display:none}.brand-mark{width:35px}.sidebar nav{margin-top:42px}.nav-item{justify-content:center;font-size:0;padding:14px 0}.nav-item svg{width:19px;height:19px}.nav-item span{display:none}.intro h1{font-size:29px}.transport{gap:14px}.transport select{max-width:117px}.transport-divider{display:none}.sidebar-version{display:none}.topbar{height:67px}.key-section{gap:25px}.chord-palette{gap:9px}.palette-footnote{display:none}}
@media(max-width:800px){:root{--rail:0px;--footer:115px}.sidebar{display:none}.mobile-logo{display:flex;color:#638854}.mobile-logo svg{width:24px;height:24px;stroke-width:2.5}.mobile-library{display:flex}.topbar{padding:0 20px;gap:8px}.breadcrumb>span:not(.mobile-logo){display:none}#project-title{width:168px;font-size:11px}.top-actions{gap:6px}.top-actions .button{padding:8px 10px}.top-actions .button span{display:none}.top-actions .button svg{width:16px;height:16px}main{padding:25px 20px 24px}.intro{margin-bottom:23px}.intro h1{font-size:27px}.intro p{font-size:10px}.button.inspire{font-size:9px;padding:9px}.button.inspire .small-arrow{display:none}.key-section{gap:19px;padding:14px 16px}.harmony-field{margin-left:auto}.key-transpose{display:none}.key-divider{margin:0}.studio-grid{grid-template-columns:minmax(0,1fr) 235px;gap:14px}.transport{height:115px;flex-wrap:wrap;gap:6px 20px;padding:11px 20px 13px;align-content:center;justify-content:flex-start}.transport-play{width:160px;margin-right:5px}.play-button{width:39px;height:39px}.transport-position>span{font-size:19px}.bpm-control{width:65px}.meter-control{width:45px}.sound-control{margin-left:0;width:160px;margin-right:5px;order:2}.pattern-control{order:2;width:110px}.settings-icon{order:3;margin-left:0}.volume-control{display:flex;order:3;margin-left:auto}.transport label{font-size:6px}.metronome-button{margin-left:auto}.transport .transport-divider{display:none}.transport select{font-size:11px}.transport .bpm-control input{font-size:19px}.palette-chord{padding:10px 8px;min-height:94px}.palette-chord strong{font-size:21px}.palette-chord small{font-size:7px}.palette-chord .roman{font-size:8px}.palette-legend{gap:12px}.palette-legend small{display:none}.section-heading{margin-bottom:13px}.arrange-header{flex-wrap:wrap;margin-bottom:15px}.arrange-actions{margin-left:auto}.template-cards{grid-template-columns:1fr}.template-card{padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:0 15px}.template-card strong{grid-row:1;grid-column:1;margin-top:0;font-size:11px}.template-card .template-tag{grid-row:1;grid-column:2;gap:12px}.template-card p{grid-row:2;grid-column:1;margin-top:2px}.template-card .template-degrees{grid-row:2;grid-column:2;font-size:9px;margin-top:3px}.template-section .text-button{font-size:8px}.workspace-footnote{margin-top:20px}}
@media(max-width:620px){:root{--footer:124px}.topbar{height:59px;padding:0 17px}.top-actions .button{padding:8px}.breadcrumb{gap:8px}#project-title{width:145px;font-size:10px}.intro{display:block;position:relative;margin-bottom:22px}.intro .eyebrow{font-size:7px;letter-spacing:1.7px}.intro h1{font-size:28px;letter-spacing:-1.5px;margin-top:5px}.intro p{font-size:9px;line-height:1.8}.intro .inspire{position:absolute;right:0;top:2px;padding:7px 9px;font-size:8px;gap:4px}.inspire svg{width:12px;height:12px}main{padding:24px 17px 22px}.key-section{padding:13px 12px;gap:11px;border-radius:8px;flex-wrap:nowrap}.key-field select{font-size:16px;min-width:53px;padding-right:8px}.mode-field select{font-size:10px;min-width:90px;width:103px;padding-right:0}.field label{font-size:6px;letter-spacing:1px}.field label span{display:none}.key-divider{height:30px;margin:0 2px}.harmony-field{margin-left:auto}.segmented{gap:1px;padding:2px}.segmented button{padding:4px 9px;font-size:8px;min-width:0}.palette-section{margin:23px 0}.palette-section>.section-heading{align-items:flex-start;gap:5px}.section-title{gap:7px}.section-title h2{font-size:11px}.step-badge{width:19px;height:18px;font-size:8px}.palette-tabs{gap:10px}.palette-tabs button{font-size:8px;padding-top:2px}.chord-palette{display:flex;overflow-x:auto;gap:8px;scrollbar-width:none;padding-bottom:2px}.palette-chord{flex:0 0 calc((100% - 24px)/4);min-width:74px;min-height:98px;padding:10px 9px}.palette-chord strong{font-size:24px;margin-top:6px}.palette-chord small{font-size:7px}.palette-chord .palette-listen{opacity:1;width:17px;height:17px;right:5px;bottom:5px}.palette-chord .palette-listen svg{width:10px;height:10px}.palette-legend{font-size:7px;gap:14px;margin-top:10px}.studio-grid{display:flex;flex-direction:column;gap:18px}.arranger{padding:17px 13px 11px;border-radius:9px}.arrange-header{flex-wrap:nowrap;margin-bottom:20px}.arrange-header .section-title h2{font-size:11px}.arrange-actions .icon-button{width:22px}.arrange-actions .action-divider{display:none}.arrange-header .bar-count{margin-left:0;font-size:6px;padding:3px}.chord-timeline{gap:8px;min-height:152px}.timeline-chord{flex:0 0 116px;min-width:116px;min-height:132px;padding:10px}.timeline-chord strong{font-size:29px}.timeline-chord .card-duration{margin-top:20px}.timeline-add{min-height:132px;flex-basis:39px}.arrange-bottom{font-size:7px}.voice-leading{font-size:7px}.piano-roll-section{margin:16px 0 19px}.piano-roll{height:127px}.roll-heading{padding:12px}.roll-view-toggle{gap:7px}.roll-view-toggle button{font-size:7px}.roll-view-toggle>span{font-size:7px}.template-section>.section-heading{margin-bottom:10px}.template-cards{grid-template-columns:1fr 1fr;gap:8px}.template-card{display:block;padding:12px 10px}.template-card:nth-child(3){display:none}.template-card .template-tag{font-size:6px;display:flex;gap:0}.template-card strong{margin-top:4px;font-size:11px}.template-card p{margin-top:3px;font-size:7px}.template-card .template-degrees{margin-top:9px;font-size:8px}.inspector-column{display:grid;grid-template-columns:1fr;gap:17px}.inspector{padding:16px}.inspector-heading h2{font-size:9px}.selected-chord{margin-top:3px;display:inline-flex;width:50%;vertical-align:top}.selected-chord strong{font-size:30px}.selected-notes{display:inline-block;width:calc(50% - 7px);vertical-align:middle;text-align:right;position:relative;top:8px;font-size:9px}.mini-keyboard{height:47px;margin:12px 0 15px}.editor-fields{grid-template-columns:repeat(3,1fr);gap:11px}.editor-fields label{font-size:9px}.editor-fields select,.editor-fields input{font-size:10px;padding:8px;min-height:35px}.chord-edit-actions{gap:9px;margin-top:16px}.chord-edit-actions button{font-size:10px;padding:6px}.midi-panel{margin:0;padding:18px}.midi-panel h2{font-size:21px}.midi-panel>p{font-size:10px}.midi-drag{padding:12px}.midi-drag strong{max-width:240px;font-size:11px}.midi-drag small{font-size:9px}.midi-file-icon{width:34px}.midi-file-icon svg{width:30px;height:30px}.midi-download{padding:11px;font-size:11px}.midi-detail{font-size:8px}.midi-detail span:last-child{font-size:8px}.export-options-link{font-size:9px;padding-top:12px}.midi-label{font-size:8px}.workspace-footnote{font-size:6px}.workspace-footnote button{font-size:7px}.transport{height:calc(124px + env(safe-area-inset-bottom));padding:10px 17px calc(10px + env(safe-area-inset-bottom));gap:8px 14px;justify-content:space-between}.transport-play{width:auto;margin-right:auto;gap:10px}.play-button{width:42px;height:42px}.transport-position{min-width:66px}.transport-position>span{font-size:20px}.transport-position small{font-size:5px;letter-spacing:1px}.transport-icon{width:25px;height:27px}.transport-play .transport-icon{margin-left:2px}.bpm-control{width:50px;margin-right:0}.meter-control{width:37px}.meter-control select{font-size:12px}.metronome-button{margin-left:0}.sound-control{width:121px;margin-right:0;margin-left:0}.sound-control select{font-size:10px}.pattern-control{width:110px}.pattern-control select{font-size:9px}.settings-icon{margin-left:auto}.volume-control{margin-left:0;gap:4px}.volume-control input{width:43px}.volume-control svg{width:12px;height:12px}.transport label{font-size:6px;letter-spacing:1.1px}.toast{bottom:calc(142px + env(safe-area-inset-bottom));font-size:10px;padding:10px 15px}.preset-grid{grid-template-columns:1fr}.preset-grid .template-card{display:block}.preset-grid .template-card:nth-child(3){display:block}.settings-grid{gap:15px}.modal-header h2{font-size:21px}dialog{padding:22px 20px;width:calc(100% - 28px)}.shortcut-list{grid-template-columns:1fr}.library-item{padding:12px;gap:6px}.library-item strong{font-size:12px}.library-item .button{padding:6px 9px}.chromatic-controls{margin-top:0}}
@media(max-width:370px){#project-title{width:125px}.topbar{padding-inline:12px}main{padding-inline:12px}.palette-tabs{gap:8px}.segmented button{padding-inline:7px}.key-section{gap:8px}.intro h1{font-size:26px}.intro .inspire{font-size:7px;padding:6px}.transport{padding-inline:12px;gap:8px 10px}.transport-position{min-width:61px}.sound-control{width:115px}.pattern-control{width:100px}.palette-chord{min-width:70px}.arrange-header .section-title h2{font-size:10px}.arrange-actions .icon-button{width:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:801px) and (max-height:850px){.topbar{height:64px}main{padding-top:23px}.intro{margin-bottom:21px}.intro h1{line-height:1.35;margin-top:5px;margin-bottom:7px}.key-section{padding-top:12px;padding-bottom:12px}.palette-section{margin-top:19px;margin-bottom:21px}.section-heading{margin-bottom:12px}.palette-chord{min-height:95px;padding-top:10px;padding-bottom:9px}.palette-chord strong{margin-top:3px;margin-bottom:2px}.palette-legend{margin-top:9px}.arrange-header{margin-bottom:17px}}
.palette-chord small,.palette-chord .roman{color:#7f8c77}.intro p{color:#7d8976}.section-hint{color:#87947e}.editor-fields label{color:#7e8e72}.template-card p{color:#849675}.timeline-chord strong{font-size:clamp(19px,2.1vw,27px)}
.palette-add{display:block;text-align:left;padding:0;width:100%;background:none}.palette-chord .palette-listen{width:25px;height:25px;right:3px;bottom:3px;padding:0}.palette-chord:focus-within .palette-listen{opacity:1}.palette-chord small{display:block;max-width:calc(100% - 13px);overflow:hidden;text-overflow:ellipsis}.timeline-chord strong{overflow:hidden;text-overflow:ellipsis}
@media(max-width:620px){.palette-chord .palette-listen{width:23px;height:23px;right:2px;bottom:2px}.timeline-chord strong{font-size:26px}}
.inspector-column,.editor-fields label,.piano-white{min-width:0}.inspector-column{grid-template-columns:minmax(0,1fr)}.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.piano-white{padding-inline:0}.timeline-chord.long-name strong{font-size:19px}.palette-chord.long-name strong{font-size:18px}
@media(max-width:620px){.editor-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-fields select,.editor-fields input{min-width:0}.palette-chord{min-width:92px;flex-basis:92px}.palette-chord strong{font-size:22px}.timeline-chord.long-name strong{font-size:19px}}
/* Chords meet at their boundaries, on the timeline and in the score. */
.chord-timeline{gap:0}.timeline-chord{border-radius:0;border-color:transparent;position:relative}.timeline-chord:first-child{border-radius:8px 0 0 8px}.timeline-chord:nth-last-child(2){border-radius:0 8px 8px 0}.timeline-chord:first-child:nth-last-child(2){border-radius:8px}.timeline-chord.selected{box-shadow:inset 0 0 0 2px #f4ffea;border-color:transparent;transform:none}.timeline-chord.playing{box-shadow:inset 0 0 0 3px #ffffff;border-color:transparent;transform:none}.timeline-add{margin-left:9px}.timeline-chord:hover{transform:none}.panic-stop{color:#d2ddc9;border:1px solid #64795b;border-radius:5px;width:27px;height:29px}.panic-stop:hover{background:#4c6145;color:white}.transport-play{gap:10px}.pattern-label{display:flex;align-items:center;justify-content:space-between;gap:6px}.pattern-label button{background:none;color:#b8d09c;padding:0;font-size:8px;white-space:nowrap}.pattern-label label{margin:0}.modal-header-actions{display:flex;gap:6px;align-items:center}.modal-header-actions .icon-button{flex-shrink:0}dialog.rhythm-modal{max-width:850px;width:calc(100% - 48px)}
.rhythm-section{margin:21px 0 24px;padding:18px;border:1px solid #dbe4d2;border-radius:10px;background:#f0f5e9}.rhythm-section .section-heading{margin-bottom:17px}.rhythm-count{color:#8ba077;font:8px ui-monospace,monospace;letter-spacing:.7px}.rhythm-current{display:flex;align-items:center;gap:22px;justify-content:space-between}.rhythm-current-copy{min-width:0;flex:1}.rhythm-current .eyebrow{font-size:7px;letter-spacing:1.4px}.rhythm-current strong{display:block;color:#405b38;font-size:18px;letter-spacing:-.5px;margin:7px 0 5px}.rhythm-current p{margin:0;color:#7a8f6a;font-size:10px;line-height:1.8}.rhythm-strip{display:grid;grid-template-columns:repeat(var(--steps,16),minmax(0,1fr));gap:3px;align-items:center;height:38px;width:165px;flex-shrink:0}.rhythm-strip i{display:block;background:#d7e1ca;border-radius:2px;height:12px}.rhythm-strip i.downbeat{background:#c2d2b0}.rhythm-strip i.hit{height:calc(14px + var(--hit)*22px);background:#83a563}.rhythm-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.rhythm-quick button{border:1px solid #d4dfc6;border-radius:5px;background:#fff9;padding:7px 9px;font-size:9px;color:#728762;display:flex;align-items:center;gap:5px}.rhythm-quick button.active{background:#dcebcf;border-color:#98b57b;color:#3e5b32}.rhythm-quick button:hover{background:#e4eed9}.rhythm-quick svg{width:12px;height:12px}.rhythm-quick #next-variation{margin-left:auto;background:transparent}.rhythm-footer{margin-top:14px;display:flex;justify-content:space-between;gap:12px;color:#93a283;font-size:8px;line-height:1.6}.rhythm-footer>span:first-child{font-family:ui-monospace,monospace}.rhythm-audition{display:flex;align-items:center;gap:8px;padding:14px;border-radius:8px;background:#e8f0df;margin:15px 0 20px}.rhythm-audition>div{flex:1;min-width:0}.rhythm-audition small{display:block;font:8px ui-monospace,monospace;color:#8fa07a;letter-spacing:1px;margin-bottom:5px}.rhythm-audition strong{font-size:14px}.rhythm-audition button{padding:9px 11px;font-size:10px;white-space:nowrap}.rhythm-audition button:not(.dark){background:#f8fbf4;border:1px solid #d4e2c8;color:#71885d}.rhythm-settings{grid-template-columns:1fr 1fr 1fr;gap:19px;padding:0 3px}.rhythm-settings .rhythm-settings-note{grid-column:1/-1;margin-top:-4px;color:#93a780;font-size:10px;line-height:1.7}.rhythm-browser{border-top:1px solid #dce5d0;margin-top:18px;padding-top:17px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rhythm-browser input{flex:1;min-width:180px;padding:10px 12px;border:1px solid #dae4ce;border-radius:6px;background:#fff;font-size:11px;color:#5e7551}.rhythm-filters{display:flex;gap:4px}.rhythm-filters button{background:#eaf1e1;border-radius:4px;color:#7d936b;font-size:10px;padding:7px 9px}.rhythm-filters button.active{background:#6e8c56;color:white}#rhythm-results{width:100%;color:#94a582;font-size:9px;margin:0 0 1px}.rhythm-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.rhythm-card{display:block;text-align:left;border:1px solid #dce5d2;background:#fff9;border-radius:8px;padding:14px;min-width:0;transition:border-color .15s,background .15s}.rhythm-card:hover{border-color:#a6bd8e;background:#fff}.rhythm-card.active{border-color:#779961;background:#e5efd9;box-shadow:inset 0 0 0 1px #779961}.rhythm-card-top{display:flex;align-items:center;gap:6px;justify-content:space-between}.rhythm-card-top strong{font-size:12px;line-height:1.6}.rhythm-card-top svg{width:13px;height:13px;color:#82a169;flex-shrink:0}.rhythm-card small{display:block;font-size:10px;line-height:1.8;color:#899b7b;margin-top:8px}.rhythm-strip.mini{width:100%;height:30px;margin-top:12px;gap:2px}.rhythm-strip.mini i{height:8px}.rhythm-strip.mini i.hit{height:calc(9px + var(--hit)*18px)}.rhythm-empty{grid-column:1/-1;padding:20px;text-align:center}
@media(max-width:1000px){.rhythm-current{gap:12px}.rhythm-current>.rhythm-strip{width:115px}.rhythm-current strong{font-size:16px}.rhythm-footer{display:block}.rhythm-footer>span{display:block}.rhythm-footer>span+span{margin-top:3px}.transport{gap:12px}.rhythm-quick #next-variation{margin-left:0}}
@media(max-width:800px){.transport-play{width:180px;gap:7px}.transport{gap:6px 15px}.rhythm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.rhythm-section{padding:15px;margin:18px 0}.rhythm-current>.rhythm-strip{width:115px}.rhythm-current strong{font-size:17px}.rhythm-current p{font-size:10px}.rhythm-count{font-size:7px}.rhythm-quick button{font-size:9px;padding:8px}.rhythm-section .section-heading{margin-bottom:14px}.rhythm-footer{display:flex;align-items:flex-start;gap:15px}.rhythm-footer>span{font-size:7px}.rhythm-footer>span:last-child{text-align:right;max-width:85px;margin-top:0}.rhythm-audition{flex-wrap:wrap;padding:12px;gap:9px}.rhythm-audition>div{width:100%;flex-basis:100%;margin-bottom:3px}.rhythm-audition .button{flex:1;justify-content:center}.rhythm-settings{grid-template-columns:1fr 1fr;gap:14px}.rhythm-settings label:last-of-type{grid-column:1/-1}.rhythm-browser input{width:100%;flex-basis:100%}.rhythm-filters{width:100%;gap:6px}.rhythm-filters button{flex:1;padding:8px 6px;font-size:10px}.rhythm-card{padding:11px}.rhythm-card-top strong{font-size:11px}.rhythm-card small{font-size:9px}.rhythm-cards{gap:8px}.rhythm-modal .modal-header h2{font-size:19px}.rhythm-modal .modal-header{gap:10px}.rhythm-modal .modal-header .eyebrow{font-size:7px;letter-spacing:1px}dialog.rhythm-modal{width:calc(100% - 24px);padding:20px 16px}.transport{gap:8px 10px}.transport-play{width:calc(100% - 142px);margin-right:0;gap:6px}.transport-play .transport-icon{width:22px;margin:0;flex-shrink:0}.transport-play .panic-stop{width:22px;height:26px}.transport-play .play-button{width:38px;height:38px;flex-shrink:0}.transport-position{min-width:46px;flex:1}.transport-position>span{font-size:18px}.transport-position small{font-size:4.5px;letter-spacing:.5px}.bpm-control{width:50px}.meter-control{width:37px}.metronome-button{width:25px}.sound-control{width:calc(100% - 178px)}.pattern-control{width:106px}.volume-control{display:none}.settings-icon{width:25px;margin-left:auto}}
@media(max-width:370px){.rhythm-current>.rhythm-strip{width:85px;gap:2px}.rhythm-current strong{font-size:15px}.rhythm-current p{font-size:9px}.rhythm-quick button{font-size:8px;padding:7px}.rhythm-section{padding:12px}.rhythm-count{font-size:6px}.transport-position>span{font-size:16px}.sound-control{width:calc(100% - 151px)}.pattern-control{width:106px}.rhythm-card-top strong{font-size:10px}.rhythm-card small{font-size:8px}}
.workspace{padding-bottom:calc(var(--footer) + env(safe-area-inset-bottom))}.rhythm-modal .modal-header{position:sticky;top:-27px;background:#f8faf4;z-index:5;padding:12px 0;margin-top:-12px}.rhythm-quick button:disabled,.rhythm-audition button:disabled{opacity:.4;cursor:default}.rhythm-settings input:disabled{opacity:.4}
@media(max-width:620px){.rhythm-modal .modal-header{top:-20px}}
.transport-position>span{white-space:nowrap}
@media(max-width:1000px){.palette-legend .palette-footnote{display:none}}
@media(max-width:370px){.transport-position>span{font-size:14px}}
@media(max-width:370px){.rhythm-filters button{font-size:9px;padding-inline:4px;white-space:nowrap}}
/* Pattern picker: choose first, then refine the performance. */
.rhythm-name-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px}.rhythm-name-line #rhythm-name{margin:0}.rhythm-kind{display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;font-size:9px;font-weight:700;white-space:nowrap;color:#6c7962;background:#e4eadc}.rhythm-kind.simple{color:#38653a;background:#d6ebce}.rhythm-kind.complex{color:#775688;background:#e9ddf0}.rhythm-launchers{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}.rhythm-launchers button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:13px 16px;text-align:left;border:1px solid #b9cfa8;border-radius:7px;background:#e2efda;color:#42623a}.rhythm-launchers button:last-child{background:#ebe3f1;border-color:#d5c4de;color:#775887}.rhythm-launchers button:hover{filter:brightness(.98);border-color:#729859}.rhythm-launchers button:last-child:hover{border-color:#9673a8}.rhythm-launchers span{font-size:13px;font-weight:700}.rhythm-launchers small{font-size:9px;opacity:.8}.rhythm-launchers b{position:absolute;right:14px;top:19px;font-size:18px;font-weight:400}.rhythm-section>.section-heading .text-button{font-size:10px;color:#63864d}.rhythm-quick{margin-top:11px}.rhythm-current-copy p{color:#6c825b}
.rhythm-modal[open]{display:flex;flex-direction:column;width:calc(100% - 40px);max-width:990px;height:min(850px,90dvh);max-height:90dvh;padding:22px 25px;overflow:hidden}.rhythm-modal .modal-header{position:static;margin:0 0 15px;padding:0;flex-shrink:0;gap:12px}.rhythm-modal .modal-header h2{font-size:24px}.rhythm-modal .modal-header .eyebrow{color:#839376;font-size:8px;letter-spacing:1.5px}.rhythm-modal .modal-header-actions .icon-button{width:35px;height:35px;background:#e5eddb;color:#658052}.rhythm-modal #modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.rhythm-picker{display:flex;flex-direction:column;min-height:0;flex:1}.rhythm-type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex-shrink:0;margin-bottom:12px}.rhythm-type-tabs button{display:flex;align-items:center;gap:13px;min-height:68px;padding:12px 16px;border:1px solid #d6e1cc;background:#f1f5eb;color:#718465;text-align:left;border-radius:8px}.rhythm-type-tabs strong{display:block;font-size:17px;color:inherit;line-height:1.4}.rhythm-type-tabs small{display:block;font-size:10px;margin-top:4px;letter-spacing:.15px}.rhythm-type-tabs em{font-size:10px;font-style:normal;margin-left:4px;padding:2px 5px;background:#fff8;border-radius:3px;vertical-align:middle}.rhythm-type-tabs .rhythm-type-icon{font-size:24px;opacity:.75}.rhythm-type-tabs button.active{border-color:#72995b;background:#e1efd8;color:#426b32;box-shadow:inset 0 0 0 1px #72995b}.rhythm-type-tabs button[data-rhythm-group=complex].active{border-color:#a080b4;background:#ebe2f3;color:#795488;box-shadow:inset 0 0 0 1px #a080b4}.rhythm-type-tabs button:hover{border-color:#a1b78d}
.rhythm-search-row{display:flex;gap:9px;margin-bottom:11px;flex-shrink:0}.rhythm-search-row input{flex:1;min-width:0;height:40px;background:white;border:1px solid #d5dfca;color:#526947;border-radius:6px;padding:9px 12px;font-size:12px}.rhythm-favorites-filter{display:flex;align-items:center;gap:6px;background:#eef3e6;color:#758c5f;border:1px solid #d8e2cc;border-radius:6px;padding:9px 12px;font-size:11px;white-space:nowrap}.rhythm-favorites-filter span{font:9px ui-monospace,monospace;min-width:16px;text-align:center;padding:2px;border-radius:3px;background:#dfe8d3}.rhythm-favorites-filter.active{background:#fff0cb;border-color:#ccab63;color:#8a6931}.rhythm-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-shrink:0}.rhythm-list-heading .rhythm-filters{width:auto;gap:5px;flex-wrap:wrap}.rhythm-list-heading .rhythm-filters button{font-size:10px;padding:6px 11px;min-height:30px;background:#edf2e6;color:#75895f;border-radius:4px}.rhythm-list-heading .rhythm-filters button.active{background:#698752;color:white}.rhythm-modal #rhythm-results{width:auto;white-space:nowrap;font-size:10px;color:#879777;margin:0}
.rhythm-list{flex:1;min-height:75px;overflow-y:auto;overscroll-behavior:contain;padding:1px 9px 5px 1px;margin-right:-9px;scrollbar-width:thin;scrollbar-color:#c9d6ba transparent}.rhythm-modal .rhythm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;align-content:start}.rhythm-tile{position:relative;min-width:0}.rhythm-modal .rhythm-card{display:flex;flex-direction:column;gap:7px;width:100%;height:100%;padding:12px 14px;border:1px solid #d9e3cd;border-radius:7px;background:#fff;box-shadow:none;text-align:left;min-width:0}.rhythm-modal .rhythm-card:hover{background:#f1f7e9;border-color:#a0bb88}.rhythm-modal .rhythm-card.active{border-color:#72985b;background:#e8f2df;box-shadow:inset 0 0 0 1px #72985b}.rhythm-modal .rhythm-card-top{width:100%;gap:10px;padding-right:30px;align-items:flex-start}.rhythm-card-title{min-width:0;flex:1}.rhythm-modal .rhythm-card-top strong{font-size:14px;line-height:1.45;display:block;color:#405d35;overflow-wrap:anywhere}.rhythm-card-meta{display:block;color:#92a27e;font-size:8px;margin-top:4px}.rhythm-card-status{display:flex;align-items:center;gap:3px;font-size:9px;white-space:nowrap;color:#86a06e;flex-shrink:0;min-height:19px}.rhythm-card-status svg{width:11px;height:11px}.rhythm-card.active .rhythm-card-status{color:#4f773b;font-weight:700}.rhythm-modal .rhythm-card small{margin:0;font-size:10px;line-height:1.65;color:#7c906b;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;min-height:17px}.rhythm-modal .rhythm-strip.mini{height:20px;gap:1px;margin:0;width:100%}.rhythm-modal .rhythm-strip.mini i{height:5px;border-radius:1px;background:#e1e9d7}.rhythm-modal .rhythm-strip.mini i.hit{height:calc(6px + var(--hit)*12px);background:#88a56d}.rhythm-modal .rhythm-strip.mini i.bar-start{border-left:1px solid #486e35}.rhythm-favorite{position:absolute;top:8px;right:8px;width:30px;height:30px;padding:0;background:transparent;font-size:22px;color:#a7b69a;border-radius:5px;line-height:1}.rhythm-favorite:hover{background:#f4eedb;color:#b49554}.rhythm-favorite.active{color:#b99137}.rhythm-favorite:focus-visible{outline:2px solid #8baf6c;outline-offset:1px}.rhythm-modal .rhythm-empty{grid-column:1/-1;text-align:center;padding:30px 10px;background:#eef4e7;border-radius:8px}.rhythm-modal .rhythm-empty strong{font-size:13px}.rhythm-modal .rhythm-empty p{font-size:11px}.rhythm-empty .button{margin:8px auto 0;background:white;color:#6f8c59;border:1px solid #d1dfc4}
.rhythm-picker-footer{border-top:1px solid #d9e4cd;margin-top:12px;padding-top:12px;flex-shrink:0}.rhythm-now{display:flex;align-items:center;gap:15px}.rhythm-now>div{min-width:0;flex:1}.rhythm-now .rhythm-kind{font-size:8px;margin-right:7px;padding:2px 5px;vertical-align:middle}.rhythm-now strong{font-size:15px;vertical-align:middle;line-height:1.6}.rhythm-modal #rhythm-selected-description{margin:5px 0 0;font-size:10px;color:#7b8f6b;line-height:1.65;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rhythm-now .button{min-width:110px;min-height:38px;font-size:11px;padding:9px 12px;flex-shrink:0;justify-content:center}.rhythm-compare{display:flex;align-items:center;gap:13px;margin-top:9px;min-height:32px}.rhythm-stepper{display:flex;align-items:center;gap:5px}.rhythm-stepper button{width:34px;height:32px;border:1px solid #d6e0ca;border-radius:5px;color:#678754;background:#edf4e5;font-size:17px}.rhythm-stepper button:disabled{opacity:.4;cursor:default}.rhythm-stepper span{min-width:42px;text-align:center;font:9px ui-monospace,monospace;color:#879b73}.rhythm-auto{display:flex;align-items:center;gap:6px;color:#7d9269;font-size:10px;cursor:pointer;min-height:32px}.rhythm-auto input{accent-color:#709259;width:14px;height:14px}.rhythm-compare>[data-rhythm-variation]{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:10px;color:#75915f}.rhythm-compare>[data-rhythm-variation] svg{width:13px;height:13px}.rhythm-compare>[data-rhythm-variation]:disabled{opacity:.4;cursor:default}.rhythm-adjustments{margin-top:9px;border-top:1px solid #e0e7d8;padding-top:8px}.rhythm-adjustments summary{cursor:pointer;color:#698751;font-size:10px;line-height:1.7;min-height:24px}.rhythm-adjustments summary span{color:#99a78b;margin-left:9px;font-size:9px}.rhythm-adjustments .rhythm-settings{margin-top:12px;grid-template-columns:1fr 1fr 1fr;gap:18px}.rhythm-settings b{font-weight:400}.rhythm-adjustments .rhythm-settings input[type=range]{margin:17px 0 9px}.rhythm-adjustments .rhythm-settings-note{font-size:9px;grid-column:1/-1;margin-top:0}.rhythm-modal .rhythm-card:focus-visible{outline:3px solid #8bac70;outline-offset:1px}
@media(max-width:800px){.rhythm-modal[open]{width:calc(100% - 24px);padding:18px 20px}.rhythm-modal .modal-header h2{font-size:21px}.rhythm-modal .rhythm-card-top strong{font-size:13px}.rhythm-modal .rhythm-card-top{gap:7px}.rhythm-modal .rhythm-card{padding:11px}.rhythm-type-tabs strong{font-size:16px}.rhythm-type-tabs button{padding:11px 13px;gap:10px}}
@media(max-width:620px){.rhythm-launchers{gap:7px;margin-top:14px}.rhythm-launchers button{padding:12px}.rhythm-launchers span{font-size:12px}.rhythm-launchers small{font-size:8px}.rhythm-launchers b{right:10px;top:17px;font-size:16px}.rhythm-name-line{gap:7px}.rhythm-name-line .rhythm-kind{font-size:8px}.rhythm-modal[open]{padding:16px 15px;height:90dvh;max-height:90dvh;width:calc(100% - 20px);border-radius:11px}.rhythm-modal .modal-header{margin-bottom:11px}.rhythm-modal .modal-header h2{font-size:21px;letter-spacing:-.5px}.rhythm-modal .modal-header .eyebrow{font-size:6px;letter-spacing:1.2px}.rhythm-modal .modal-header-actions .icon-button{width:32px;height:32px}.rhythm-type-tabs{gap:7px;margin-bottom:10px}.rhythm-type-tabs button{padding:10px 11px;gap:8px;min-height:61px}.rhythm-type-tabs strong{font-size:15px}.rhythm-type-tabs small{font-size:8px}.rhythm-type-tabs .rhythm-type-icon{font-size:20px}.rhythm-type-tabs em{font-size:8px;margin-left:2px}.rhythm-search-row{gap:7px;margin-bottom:9px}.rhythm-search-row input{height:37px;padding:8px 10px;font-size:11px}.rhythm-favorites-filter{font-size:9px;padding:8px 9px;gap:4px}.rhythm-favorites-filter span{font-size:8px;min-width:13px}.rhythm-list-heading{flex-wrap:wrap;gap:5px;margin-bottom:8px}.rhythm-list-heading .rhythm-filters{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.rhythm-list-heading .rhythm-filters button{font-size:9px;padding:6px 3px;min-height:28px;white-space:nowrap}.rhythm-modal #rhythm-results{width:100%;text-align:right;font-size:8px;color:#97a48a}.rhythm-modal .rhythm-cards{grid-template-columns:minmax(0,1fr);gap:7px}.rhythm-modal .rhythm-card{padding:9px 11px;gap:5px}.rhythm-modal .rhythm-card-top strong{font-size:13px;line-height:1.4}.rhythm-card-meta{font-size:7px;margin-top:3px}.rhythm-card-status{font-size:8px}.rhythm-modal .rhythm-card small{font-size:9px;line-height:1.5;min-height:14px}.rhythm-modal .rhythm-strip.mini{height:17px}.rhythm-modal .rhythm-strip.mini i.hit{height:calc(5px + var(--hit)*10px)}.rhythm-favorite{top:5px;right:6px;width:29px;height:29px;font-size:21px}.rhythm-picker-footer{margin-top:9px;padding-top:9px}.rhythm-now{gap:9px}.rhythm-now strong{font-size:12px;line-height:1.5}.rhythm-now .rhythm-kind{font-size:7px;margin-right:4px}.rhythm-now .button{min-width:86px;min-height:35px;font-size:9px;padding:8px 9px}.rhythm-modal #rhythm-selected-description{font-size:8px;margin-top:4px}.rhythm-compare{gap:8px;margin-top:7px}.rhythm-stepper{gap:3px}.rhythm-stepper button{width:31px;height:30px}.rhythm-stepper span{min-width:37px;font-size:8px}.rhythm-auto{font-size:9px;gap:4px}.rhythm-auto input{width:12px;height:12px}.rhythm-compare>[data-rhythm-variation]{font-size:9px;gap:3px}.rhythm-compare>[data-rhythm-variation] svg{width:11px;height:11px}.rhythm-adjustments{padding-top:7px;margin-top:7px}.rhythm-adjustments summary{font-size:10px}.rhythm-adjustments summary span{font-size:7px;margin-left:5px}.rhythm-adjustments .rhythm-settings{grid-template-columns:1fr 1fr;gap:9px 14px;margin-top:8px}.rhythm-adjustments .rhythm-settings label:last-of-type{grid-column:1/-1}.rhythm-adjustments .rhythm-settings label{font-size:9px}.rhythm-adjustments .rhythm-settings label>span{font-size:9px}.rhythm-adjustments .rhythm-settings input[type=range]{margin:14px 0 8px}.rhythm-adjustments .rhythm-settings-note{font-size:8px}.rhythm-list{min-height:70px}}
@media(max-width:370px){.rhythm-modal[open]{padding:14px 12px}.rhythm-modal .modal-header h2{font-size:19px}.rhythm-type-tabs button{padding:9px;gap:6px}.rhythm-type-tabs strong{font-size:13px}.rhythm-type-tabs small{font-size:7px}.rhythm-type-tabs .rhythm-type-icon{font-size:18px}.rhythm-card-status{font-size:7px}.rhythm-modal .rhythm-card-top strong{font-size:12px}.rhythm-compare{gap:5px}.rhythm-auto{font-size:8px}.rhythm-compare>[data-rhythm-variation]{font-size:8px}.rhythm-stepper button{width:29px}.rhythm-now strong{font-size:11px}.rhythm-now .button{min-width:76px}.rhythm-now .rhythm-kind{font-size:6px}.rhythm-adjustments summary span{font-size:6px}}
#rhythm-select-hint{font-size:10px;color:#7f9470}
@media(max-width:620px){.rhythm-modal #rhythm-results{width:auto;font-size:9px}#rhythm-select-hint{font-size:9px}.rhythm-list-heading{flex-wrap:nowrap;margin-bottom:9px}}

.rhythm-intricate{font-weight:600;color:#89659c}.rhythm-favorite:focus-visible{outline:3px solid #8bac70;outline-offset:1px}
@media(max-height:680px){.rhythm-modal #modal-body{display:block;overflow-y:auto;overscroll-behavior:contain}.rhythm-picker{min-height:100%;flex:none}.rhythm-list{flex:none;height:clamp(100px,26dvh,180px);min-height:100px;margin-right:0;padding-right:3px}.rhythm-modal[open]{padding-top:14px;padding-bottom:14px}.rhythm-modal .modal-header{margin-bottom:10px}.rhythm-type-tabs button{min-height:56px;padding-top:8px;padding-bottom:8px}}

.home-return{text-decoration:none}.breadcrumb>.home-return{white-space:nowrap;color:#667d59;font-size:10px;font-weight:600}.home-return:hover{color:#83a16b}.sidebar .home-return{margin-top:12px;border-top:1px solid #3a443d;border-radius:0;padding-top:17px}

/* Choose and audition first; adding is an explicit, separate action. */
.candidate-card{display:flex;flex-direction:column;min-height:132px;padding:11px 10px 8px;cursor:grab}
.candidate-card.candidate-selected{border-color:#6e9360;box-shadow:inset 0 0 0 1px #6e9360;background:#f5faef}
.candidate-select{display:block;width:100%;text-align:left;padding:0;flex:1;min-width:0}
.candidate-select .roman{gap:4px}.candidate-select .roman>span{font-size:11px;color:#6c845e}
.candidate-actions{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:10px}
.candidate-grip{touch-action:none;cursor:grab;width:26px;min-height:32px;color:#8d9c80;font-size:18px;padding:0}
.candidate-plus{display:flex;align-items:center;justify-content:center;gap:3px;min-height:32px;padding:4px 8px;border-radius:5px;background:#ebf1e4;border:1px solid #d8e3cc;color:#4f6c3f;font-size:9px;font-weight:650}
.candidate-plus svg{width:13px;height:13px}.candidate-status{color:#6c7d61;font-size:10px;margin:11px 0 0;line-height:1.7;min-height:17px}
.recommendation-section{margin:18px 0;padding:18px 16px;background:#f0f4e9;border:1px solid #dfe7d6;border-radius:9px}
.recommendation-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.recommendation-header .eyebrow{font-size:7px;letter-spacing:1.6px}.recommendation-header h2{font-size:13px;margin:3px 0 0}
.recommendation-header .text-button{font-size:9px;white-space:nowrap}.recommendation-context{font-size:15px;font-weight:650;color:#3d5733}
.recommendation-note{font-size:10px;color:#738269;line-height:1.8;margin:5px 0 12px}
.recommendation-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}
.recommendation-card{min-height:162px;margin:0}.recommendation-card strong{font-size:25px}.recommendation-card.long-name strong{font-size:21px}
.recommendation-card small{font-size:9px;color:#678355;font-weight:650;white-space:normal}.recommendation-card p{font-size:9px;color:#829076;line-height:1.7;margin:6px 0 0}
.recommendation-footnote{font-size:8px;color:#8d9a83;line-height:1.8;margin:11px 0 0}
.candidate-drop-ready{outline:2px dashed #c6ecc0;outline-offset:-3px}
@media(max-width:620px){.candidate-card{min-height:136px;padding:10px 8px 7px}.candidate-actions{gap:2px;margin-top:7px}.candidate-grip{width:21px;min-height:36px}.candidate-plus{min-height:36px;padding:4px 6px}.candidate-plus span{display:none}.candidate-plus svg{width:15px;height:15px}.candidate-status{font-size:9px}.recommendation-section{padding:16px 12px}.recommendation-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recommendation-card{min-height:167px}.recommendation-card .candidate-plus span{display:inline}.recommendation-card .candidate-plus{padding-inline:9px}.recommendation-note{font-size:9px}.recommendation-context{font-size:14px}.recommendation-header h2{font-size:12px}.recommendation-header .text-button{font-size:8px}.recommendation-footnote{font-size:8px}}

/* Keep recommendations visible; open the full palette only when needed. */
.key-section + .recommendation-section{margin-top:24px}
.manual-chords{margin-top:13px;border-top:1px solid #d5e1c9}
.manual-chords summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:9px 1px 0;list-style:none;cursor:pointer;font-size:11px;font-weight:650;color:#587448}
.manual-chords summary::-webkit-details-marker{display:none}.manual-chords summary>span{font-size:17px;transition:transform .15s}.manual-chords[open] summary>span{transform:rotate(180deg)}
.manual-chords summary:focus-visible{outline:2px solid #72995b;outline-offset:3px;border-radius:3px}
.manual-chords-body{padding-top:13px}.manual-chords .palette-tabs{gap:8px;margin-bottom:14px;flex-wrap:wrap}.manual-chords .palette-tabs button{font-size:10px;min-height:36px;padding:6px 9px;border:1px solid #d7e1cd;border-radius:5px;background:#f9fbf6;color:#7a8b6d}.manual-chords .palette-tabs button.active{background:#dfead5;border-color:#86a36f;color:#446535}
.manual-chords .chord-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:8px;overflow:visible}
.manual-chords .candidate-card{min-width:0;min-height:133px;margin:0}.manual-chords .candidate-plus span{display:inline}.manual-chords .palette-legend{flex-wrap:wrap;gap:7px 12px;line-height:1.7}.manual-chords .chromatic-controls{flex-wrap:wrap;gap:8px;margin-bottom:13px}.manual-chords .chromatic-controls span{font-size:9px}
@media(max-width:620px){.key-section + .recommendation-section{margin-top:20px}.manual-chords summary{font-size:11px;min-height:44px}.manual-chords .candidate-card{min-height:141px}.manual-chords .candidate-plus{padding-inline:9px}.manual-chords .palette-tabs{gap:6px}.manual-chords .palette-tabs button{font-size:9px;padding-inline:8px}.manual-chords .chord-palette{padding-bottom:0}}

/* Named progression recipes: show the actual chords before loading. */
.template-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.template-card.standard-preset{display:flex;flex-direction:column;gap:6px;padding:13px 14px;text-align:left}
.template-card.standard-preset:nth-child(3){display:flex}.standard-preset .template-tag{font-size:8px;letter-spacing:.5px;width:100%}.template-card.standard-preset strong{font-size:14px;margin:0;line-height:1.5}
.preset-chords{font-size:11px;line-height:1.85;color:#48663b;overflow-wrap:anywhere}
.standard-preset .template-degrees{font-size:9px;line-height:1.8;margin:0;color:#8a9a7d;overflow-wrap:anywhere}.template-card.standard-preset p{font-size:10px;line-height:1.8;white-space:normal;margin:0;color:#819274}
@media(max-width:620px){.template-card.standard-preset{padding:12px 10px;gap:5px}.template-card.standard-preset strong{font-size:13px}.standard-preset .template-tag{font-size:7px}.preset-chords{font-size:10px}.standard-preset .template-degrees{font-size:8px}.template-card.standard-preset p{font-size:9px}}

/* Delete one chord directly on the timeline, with a separate selectable body. */
.timeline-chord .card-top{align-items:center;gap:4px;min-height:34px}.timeline-card-actions{display:flex;align-items:center;gap:2px}.timeline-card-actions .drag-grip{display:flex;align-items:center;justify-content:center;min-height:34px;width:20px;padding:0}
.timeline-delete{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-height:34px;width:44px;padding:4px 3px;border-radius:4px;background:#ffffff50;color:#455e3c;font-size:8px;line-height:1.2;cursor:pointer;touch-action:manipulation}.timeline-delete svg{width:12px;height:12px}.timeline-delete:hover{background:#ffffff90;color:#704739}.timeline-delete:focus-visible{outline:2px solid #465f39;outline-offset:1px}
.timeline-select{display:block;width:100%;padding:0;text-align:left;color:inherit;background:none;cursor:pointer}.timeline-select:focus-visible{outline:2px solid #465f39;outline-offset:3px;border-radius:3px}.timeline-select strong{margin-top:4px}.timeline-chord{min-height:143px}
@media(max-width:620px){.timeline-delete{min-height:36px}.timeline-card-actions .drag-grip{min-height:36px}.timeline-select strong{margin-top:3px}.timeline-chord{min-height:145px}}
