.pitch-widget{--pw-max-width:860px;--pw-padding-inline:30px;--pw-border-width:1px;--pw-button-width:48px;--pw-blue:#1d4ed8;--pw-accent:#1d4ed8;--pw-text:#111827;--pw-muted:#6b7280;--pw-border:#d1d5db;--pw-surface:#fff;--pw-surface-muted:#f9fafb;--pw-surface-hover:#f3f4f6;--pw-track:#e5e7eb;box-sizing:border-box;max-width:var(--pw-max-width);margin:40px auto 0;padding:30px var(--pw-padding-inline);text-align:left;color:var(--pw-text);background:var(--pw-surface);border:var(--pw-border-width) solid var(--pw-border);border-radius:20px;box-shadow:0 12px 36px #173b7410;font-family:inherit;font-size:20px;line-height:1.4}.pitch-widget *{box-sizing:border-box}.pitch-widget [hidden]{display:none!important}.pitch-widget .pw-heading{margin:0 0 8px}.pw-intro{color:var(--pw-muted);margin:0}.pw-picker{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0 12px;padding:18px;border:1px dashed #d1d5db;border-radius:12px;background:var(--pw-surface-muted)}.pw-picker label{display:inline-flex;position:relative;align-items:center;min-height:48px;padding:10px 18px;background:var(--pw-blue);color:#fff;border-radius:8px;font-weight:500;cursor:pointer}.pw-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.pw-picker label:focus-within{outline:3px solid #93c5fd;outline-offset:3px}.pw-picker span{color:var(--pw-muted)}.pitch-widget button{font:inherit;min-height:48px;padding:9px 16px;border:1px solid var(--pw-border);border-radius:8px;background:var(--pw-surface);color:var(--pw-text);font-weight:500;cursor:pointer}.pitch-widget button:hover:enabled{background:var(--pw-surface-hover)}.pitch-widget button:disabled{cursor:default;opacity:.45}.pitch-widget button:focus-visible,.pitch-widget input:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}.pw-file{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--pw-border)}.pw-filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600}.pw-file time{color:var(--pw-muted);font-variant-numeric:tabular-nums}.pw-transport{display:flex;align-items:center;gap:16px;margin:22px 0}.pw-seek{flex:1;min-width:0}.pitch-widget input[type=range]{width:100%;accent-color:var(--pw-accent);height:24px;cursor:pointer;display:block}.pitch-widget input:disabled{cursor:default;opacity:.45}.pw-times{display:flex;justify-content:space-between;color:var(--pw-muted);font-size:14px;font-variant-numeric:tabular-nums}.pw-pitch-label{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px;font-weight:600}.pw-pitch-label output{font-size:26px;line-height:1;font-variant-numeric:tabular-nums;color:var(--pw-accent)}.pw-pitch-controls{display:grid;grid-template-columns:var(--pw-button-width) minmax(0,1fr) var(--pw-button-width);align-items:center;gap:14px}.pw-pitch-controls button{padding:8px}.pw-pitch-scale{display:flex;justify-content:space-between;color:var(--pw-muted);font-size:14px}.pw-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.pitch-widget .pw-primary{color:#fff;background:var(--pw-blue);border-color:var(--pw-blue)}.pitch-widget .pw-primary:hover:enabled{background:#1e40af}.pw-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.pw-error{margin:8px 0 0;color:#b91c1c}.pw-error:empty{display:none}.pw-export{margin-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.pw-export progress{flex:1;min-width:80px;accent-color:var(--pw-accent)}.is-dragging{outline:3px solid #60a5fa;outline-offset:3px}.pw-noscript{color:#b91c1c}.pw-status:empty{display:none}.pitch-widget .pw-video-preview{display:block;width:100%;margin-top:22px;padding:0;border:0;background:#000;border-radius:8px;overflow:hidden}.pitch-widget .pw-video-preview:hover:enabled{background:#000}.pw-video{display:block;width:100%;height:auto;max-height:450px;object-fit:contain}.pw-export-limit{color:var(--pw-muted);margin:12px 0 0}.pitch-widget .pw-play{display:grid;place-items:center;flex:0 0 var(--pw-button-width);width:var(--pw-button-width);padding:9px;font-size:20px;line-height:1}.dark .pitch-widget{--pw-accent:#93c5fd;--pw-text:#f3f4f6;--pw-muted:#9ca3af;--pw-border:#374151;--pw-surface:#111827;--pw-surface-muted:#1f2937;--pw-surface-hover:#374151;--pw-track:#374151;box-shadow:none}.dark .pw-picker{border-color:#4b5563}.dark .pw-error{color:#fca5a5}@media(max-width:560px){.pitch-widget{--pw-padding-inline:16px;padding:20px var(--pw-padding-inline);margin-top:30px;border-radius:14px}.pw-picker{padding:14px}.pw-picker label{width:100%;justify-content:center}.pw-transport{gap:12px}.pitch-widget button{padding:9px 12px}.pw-pitch-controls button{padding:8px}.pw-file{gap:8px}.pw-file time{display:none}.pw-actions button{flex:1 1 auto;white-space:nowrap}}.pitch-widget progress{appearance:none;height:8px;border:0;border-radius:999px;overflow:hidden;background:var(--pw-track)}.pitch-widget progress::-webkit-progress-bar{background:var(--pw-track);border-radius:999px}.pitch-widget progress::-webkit-progress-value{background:var(--pw-accent);border-radius:999px}.pitch-widget progress:indeterminate::-webkit-progress-bar{background:linear-gradient(var(--pw-accent),var(--pw-accent)) no-repeat var(--pw-track);background-size:30% 100%;animation:pw-preparing 1.2s ease-in-out infinite alternate}@keyframes pw-preparing{0%{background-position:0 0}to{background-position:100% 0}}@media(prefers-reduced-motion:reduce){.pitch-widget progress:indeterminate::-webkit-progress-bar{animation:none;background-position:50% 0}}.chord-widget{max-width:none;font-size:1rem}.chord-widget .pw-intro{color:var(--pw-text);font-size:1.125rem}.chord-widget .pw-pitch-scale{margin-top:4px}.chord-widget .pw-intro,.chord-controls{max-width:calc(var(--pw-max-width) - 2 * (var(--pw-padding-inline) + var(--pw-border-width)));margin-inline:auto}.chord-controls{min-width:0;margin-block:20px 24px;padding:0;border:0}.chord-options{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:16px}.chord-spelling{display:flex;align-items:center;gap:6px 12px}.chord-options select{min-height:44px;padding:6px 36px 6px 12px;border:1px solid var(--pw-border);border-radius:8px;background-color:var(--pw-surface);color:var(--pw-text);font:inherit}.dark .chord-options select{color-scheme:dark}.chord-widget .chord-reset{min-height:44px}.chord-editors{--chord-divider-width: 24px;--chord-editor-action-height: 36px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.chord-widget[data-editor-layout=wide] .chord-editors{grid-template-columns:minmax(0,1fr)}.chord-divider{display:flex;justify-content:center;align-items:flex-start;padding-top:32px;border-radius:8px;cursor:col-resize;touch-action:none;user-select:none}.chord-divider:before{content:"";width:6px;height:24px;border-inline:2px solid var(--pw-muted)}.chord-divider:hover,.chord-divider:active{background:var(--pw-surface-hover)}.chord-divider:focus-visible{outline:3px solid #93c5fd;outline-offset:-3px}.chord-editor-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:8px;font-weight:600}.chord-widget .chord-width-toggle{min-height:var(--chord-editor-action-height);margin-inline-start:auto;padding:6px 12px;font-size:.875rem}.chord-editor textarea{display:block;align-self:start;width:100%;min-height:8rem;padding:12px;resize:vertical;border:1px solid var(--pw-border);border-radius:8px;background:var(--pw-surface);color:var(--pw-text);font:1rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;overflow-wrap:normal;tab-size:4}.chord-widget[data-editor-layout] textarea{resize:none;overflow-y:hidden}.chord-editor textarea[readonly]{background:var(--pw-surface-muted)}.chord-editor textarea::placeholder{color:var(--pw-muted);opacity:1}.chord-widget textarea:focus-visible,.chord-widget select:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}.chord-result-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;margin-top:12px}.chord-result-actions span{color:var(--pw-muted)}@media(width>640px){.chord-widget[data-editor-layout=split] .chord-editors{grid-template-columns:minmax(0,calc((100% - var(--chord-divider-width)) * var(--chord-split, .5))) var(--chord-divider-width) minmax(0,1fr);gap:0}.chord-widget[data-editor-layout=split] .chord-editor{display:grid;grid-row:span 3;grid-template-rows:subgrid}.chord-widget[data-editor-layout=split] .chord-editor-heading{align-content:start}.chord-widget[data-editor-layout=split] .chord-editor-heading label{display:flex;align-items:center;min-height:var(--chord-editor-action-height)}.chord-divider{grid-column:2;grid-row:2}}@media(max-width:640px){.chord-editors{grid-template-columns:minmax(0,1fr)}.chord-width-toggle,.chord-divider{display:none}.chord-spelling{display:grid}}
