.song-editor-page{min-height:calc(100dvh - 100px);padding:clamp(20px,3vw,42px)20px calc(32px + env(safe-area-inset-bottom));color:var(--ui-fg);background:var(--ui-bg)}.song-editor-shell{width:100%;max-width:1120px;margin-inline:auto}.song-editor-header{margin-bottom:26px}.song-editor-back{min-height:40px;color:var(--ui-muted);align-items:center;gap:8px;font-size:13px;font-weight:600;display:inline-flex}.song-editor-back:hover{color:var(--ui-accent)}.song-editor-heading{justify-content:space-between;align-items:center;gap:24px;margin:18px 0 24px;display:flex}.song-editor-eyebrow{letter-spacing:.13em;text-transform:uppercase;color:var(--ui-accent);margin:0 0 9px;font-size:11px;font-weight:700}.song-editor-heading h1{letter-spacing:-.045em;overflow-wrap:anywhere;margin:0;font-size:clamp(26px,3vw,36px);font-weight:650;line-height:1.15}.song-editor-heading h1+p{max-width:650px;color:var(--ui-muted);margin:10px 0 0;font-size:14px;line-height:1.6}.song-editor-mark{background:var(--ui-surface);border:1px solid var(--ui-line);width:68px;height:68px;color:var(--ui-accent);box-shadow:var(--ui-shadow);border-radius:20px;flex-shrink:0;place-items:center;display:grid}.song-editor-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.song-editor-navigation a{border:1px solid var(--ui-control-line);background:var(--ui-surface);min-height:76px;color:var(--ui-muted);border-radius:15px;align-items:center;gap:12px;padding:15px 18px;transition:background .15s,border-color .15s;display:flex}.song-editor-navigation a:hover{background:var(--ui-soft);border-color:var(--ui-accent)}.song-editor-navigation a[aria-current]{color:var(--ui-accent);background:var(--ui-accent-soft);border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}.song-editor-navigation a>svg{flex-shrink:0}.song-editor-navigation a>span{flex:1;min-width:0}.song-editor-navigation strong{font-size:14px;line-height:1.4;display:block}.song-editor-navigation small{color:var(--ui-muted);margin-top:3px;font-size:12px;display:block}.song-editor-form{min-width:0;color:var(--ui-fg)}.song-editor-form fieldset{border:0;min-width:0;margin:0;padding:0}.song-editor-stack,.song-editor-fields{gap:18px;min-width:0;display:grid}.song-editor-columns{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.song-editor-section{border:1px solid var(--ui-line);background:var(--ui-surface);min-width:0;box-shadow:var(--ui-shadow);border-radius:20px;padding:24px}.song-editor-section>header{align-items:flex-start;gap:12px;margin-bottom:22px;display:flex}.song-editor-section h2{letter-spacing:-.015em;margin:0;font-size:16px;font-weight:650}.song-editor-section header p{color:var(--ui-muted);margin:5px 0 0;font-size:12px;line-height:1.6}.song-editor-section-number{background:var(--ui-raised);width:28px;height:28px;color:var(--ui-muted);font-variant-numeric:tabular-nums;border-radius:9px;flex-shrink:0;place-items:center;font-size:11px;font-weight:700;display:grid}.song-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}.song-editor-field{flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:550;display:flex}.song-editor-field.is-wide{grid-column:1/-1}.song-editor-field small,.song-editor-hint{color:var(--ui-muted);margin:0;font-size:12px;font-weight:400;line-height:1.6}.song-editor-form :is(input,select,textarea){border:1px solid var(--ui-control-line);background:var(--ui-soft);width:100%;min-width:0;min-height:46px;color:var(--ui-fg);font:inherit;border-radius:11px;outline:none;padding:11px 13px;font-size:14px;font-weight:400;transition:border-color .15s,box-shadow .15s}.song-editor-form input::placeholder,.song-editor-form textarea::placeholder{color:var(--ui-muted);opacity:.85}.song-editor-form textarea{resize:vertical;line-height:1.6}.song-editor-form input[type=file]{padding:8px;font-size:12px}.song-editor-form input::file-selector-button{color:var(--ui-fg);background:var(--ui-raised);font:inherit;cursor:pointer;border:0;border-radius:7px;margin-right:10px;padding:8px 10px;font-weight:600}.song-editor-form :is(input,select,textarea):focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent)18%,transparent)}:is(.song-editor-page,.song-editor-form,.song-editor-navigation) :is(a,button,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}.song-editor-form :disabled{cursor:not-allowed;opacity:.55}.song-editor-button{border:1px solid var(--ui-control-line);background:var(--ui-surface);min-height:44px;color:var(--ui-fg);cursor:pointer;border-radius:11px;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-size:13px;font-weight:650;line-height:1.35;transition:background .15s;display:inline-flex}.song-editor-button:hover{background:var(--ui-raised)}.song-editor-button.is-primary{background:var(--ui-accent);color:var(--ui-on-accent);border-color:var(--ui-accent)}.song-editor-button.is-primary:hover{filter:brightness(.94)}.song-editor-button.is-danger{color:var(--ui-danger);border-color:color-mix(in srgb,var(--ui-danger)45%,var(--ui-line))}.song-editor-button.is-icon{flex-shrink:0;width:40px;min-height:40px;padding:8px}.song-editor-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.song-editor-footer{z-index:20;border:1px solid var(--ui-control-line);background:var(--ui-surface);border-radius:15px;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding:12px 16px;display:flex;position:sticky;bottom:12px;box-shadow:0 8px 30px #0000001a}.song-editor-page .song-editor-footer{bottom:calc(var(--audio-dock-space,0px) + 12px)}.song-editor-footer p{color:var(--ui-muted);margin:0;font-size:12px}.song-editor-alert{border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-fg);white-space:pre-line;border-radius:12px;margin-block:16px;padding:14px 16px;font-size:13px;line-height:1.6}.song-editor-alert.is-error{color:var(--ui-danger);border-color:color-mix(in srgb,var(--ui-danger)45%,var(--ui-line))}.song-editor-alert.is-success{color:var(--ui-success)}.song-editor-alert a{text-underline-offset:3px;margin-left:8px;text-decoration:underline;display:inline-block}.song-editor-disclosure{border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:14px;min-width:0}.song-editor-disclosure>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:10px;padding:15px;font-size:13px;font-weight:600;list-style:none;display:flex}.song-editor-disclosure>summary::-webkit-details-marker{display:none}.song-editor-disclosure>summary:after{content:"+";font-size:20px;font-weight:400}.song-editor-disclosure[open]>summary:after{content:"−"}.song-editor-disclosure>div{padding:0 15px 16px}.song-editor-documents{gap:10px;display:grid}.song-editor-document{border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;display:flex}.song-editor-document>div:first-child{overflow-wrap:anywhere;flex:1;min-width:100px}.song-editor-document strong{font-size:13px;font-weight:600;display:block}.song-editor-document small{color:var(--ui-muted);margin-top:4px;font-size:12px;display:block}.song-editor-document audio{width:100%;max-width:100%;height:36px;margin-top:10px}.song-editor-quota{color:var(--ui-muted);flex-wrap:wrap;align-items:center;gap:8px 24px;margin:0 0 20px;font-size:12px;display:flex}.song-editor-quota strong{color:var(--ui-fg);font-weight:600}.song-editor-quota a{text-underline-offset:3px;text-decoration:underline}.song-editor-empty{border:1px dashed var(--ui-control-line);text-align:center;color:var(--ui-muted);border-radius:14px;padding:32px 20px}.song-editor-empty>svg{margin:0 auto 12px}.song-editor-empty strong{color:var(--ui-fg);font-size:14px;display:block}.song-editor-empty p{margin:8px 0 0;font-size:12px;line-height:1.6}.song-editor-summary{color:var(--ui-muted);flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px;font-size:12px;display:flex}.song-editor-summary strong{color:var(--ui-fg);font-variant-numeric:tabular-nums;letter-spacing:-.04em;font-size:22px}.medley-editor-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);align-items:start;gap:20px;display:grid}.medley-editor-identity{margin-bottom:20px}.medley-editor-candidates{overscroll-behavior:contain;border:1px solid var(--ui-line);border-radius:12px;max-height:250px;margin-top:12px;overflow-y:auto}.medley-editor-candidate{align-items:center;gap:4px;padding-right:6px;display:flex}.medley-editor-candidate+.medley-editor-candidate{border-top:1px solid var(--ui-line)}.medley-editor-candidate>button:first-child{text-align:left;cursor:pointer;flex:1;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:12px;display:flex}.medley-editor-candidate:hover{background:var(--ui-soft)}.medley-editor-candidate span{min-width:0}.medley-editor-candidate strong,.medley-editor-candidate small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.medley-editor-candidate strong{font-size:13px;font-weight:600}.medley-editor-candidate small{color:var(--ui-muted);margin-top:3px;font-size:12px}.medley-editor-parts{gap:12px;margin:20px 0 0;padding:0;list-style:none;display:grid}.medley-editor-part{border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:15px;padding:15px}.medley-editor-part>header{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;display:flex}.medley-editor-part>header>div{flex:1;min-width:100px}.medley-editor-part h3{overflow-wrap:anywhere;margin:0;font-size:14px;font-weight:650}.medley-editor-part p{color:var(--ui-muted);margin:3px 0 0;font-size:12px}.medley-editor-position{width:32px;height:32px;color:var(--ui-accent);background:var(--ui-accent-soft);font-variant-numeric:tabular-nums;border-radius:10px;flex-shrink:0;place-items:center;font-size:12px;font-weight:700;display:grid}.medley-editor-duration-toggle{gap:6px;margin-bottom:15px;display:flex}.medley-editor-duration-toggle button{flex:1}.medley-editor-duration-toggle button[aria-pressed=true]{color:var(--ui-accent);border-color:var(--ui-accent);background:var(--ui-accent-soft)}.song-editor-modal{color:var(--ui-fg);background:var(--ui-surface)!important;border-color:var(--ui-line)!important}.song-editor-modal>header,.song-editor-modal>div:first-child{background:var(--ui-surface)!important;border-color:var(--ui-line)!important}.song-editor-modal>header :is(h2,p,div),.song-editor-modal>div:first-child :is(h2,p,div){color:var(--ui-fg)}.song-editor-modal .song-editor-section{box-shadow:none}.song-editor-modal .song-editor-footer{bottom:0}@media (max-width:800px){.song-editor-columns,.medley-editor-grid{grid-template-columns:minmax(0,1fr)}.song-editor-heading{gap:14px}.song-editor-mark{border-radius:15px;width:52px;height:52px}.song-editor-section{padding:20px}}@media (max-width:540px){.song-editor-page{padding:16px 12px calc(24px + env(safe-area-inset-bottom))}.song-editor-heading{margin:12px 0 18px}.song-editor-mark{display:none}.song-editor-navigation{gap:8px}.song-editor-navigation a{flex-direction:column;align-items:flex-start;gap:7px;min-height:104px;padding:12px}.song-editor-navigation a>svg:last-child:not(:first-child){display:none}.song-editor-navigation strong{font-size:13px}.song-editor-navigation small{font-size:11px;line-height:1.4}.song-editor-section{border-radius:16px;padding:16px}.song-editor-form :is(input,select,textarea){font-size:16px}.song-editor-fields{gap:16px 12px}.song-editor-fields.is-identity{grid-template-columns:minmax(0,1fr)}.song-editor-footer{bottom:max(8px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px;padding:10px}.song-editor-footer>.song-editor-actions{flex-wrap:nowrap;width:100%}.song-editor-footer .is-primary{flex:1}.song-editor-footer p{font-size:11px}.medley-editor-part .song-editor-fields{grid-template-columns:minmax(0,1fr)}}@media (prefers-reduced-motion:reduce){.song-editor-page *,.song-editor-form *{transition:none!important}}.song-languages-field{border:0;margin:0;padding:0}.song-languages-field legend{margin-bottom:10px}.song-language-choices{flex-wrap:wrap;gap:8px;display:flex}.song-language-choices label{border:1px solid var(--ui-control-line);background:var(--ui-soft);cursor:pointer;border-radius:10px;align-items:center;gap:8px;min-height:42px;padding:8px 11px;display:inline-flex}.song-language-choices label:has(input:checked){border-color:var(--ui-accent)}.song-editor-form .song-language-choices input{width:17px;height:17px;min-height:0;accent-color:var(--ui-accent);padding:0}.song-language-choices input:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.song-youtube{border:1px solid var(--ui-line);background:var(--ui-surface);min-width:0;color:var(--ui-fg);border-radius:16px;padding:16px}.song-youtube-heading{align-items:flex-start;gap:10px;display:flex}.song-youtube-heading>div{min-width:0}.song-youtube-mark{background:var(--ui-accent-soft);width:34px;height:34px;color:var(--ui-accent);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.song-youtube-heading strong{font-size:13px;font-weight:650}.song-youtube-heading p,.song-youtube-hint{color:var(--ui-muted);margin:4px 0 0;font-size:12px;line-height:1.5}.song-youtube-actions{flex-wrap:wrap;align-items:center;gap:8px 14px;margin:14px 0 8px;display:flex}.song-youtube button,.song-youtube-actions a{cursor:pointer;justify-content:center;align-items:center;gap:6px;min-height:40px;font-family:inherit;font-size:12px;font-weight:600;display:inline-flex}.song-youtube button{border:1px solid var(--ui-control-line);background:var(--ui-bg);color:var(--ui-fg);border-radius:10px;padding:8px 10px}.song-youtube .song-youtube-search{border-color:color-mix(in srgb,var(--ui-accent)40%,var(--ui-line));background:var(--ui-accent-soft);color:var(--ui-accent)}.song-youtube-actions a{color:var(--ui-accent);text-underline-offset:3px;text-decoration:underline}.song-youtube button:hover:not(:disabled){border-color:var(--ui-accent)}.song-youtube button:disabled{opacity:.5;cursor:not-allowed}.song-youtube :is(button,a):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.song-youtube-hint>svg{vertical-align:middle;margin-right:3px;display:inline}.song-youtube-results{gap:8px;margin:12px 0 4px;padding:0;list-style:none;display:grid}.song-youtube-results li{border:1px solid var(--ui-line);background:var(--ui-bg);border-radius:12px;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:6px 10px;padding:10px;display:grid}.song-youtube-results img{object-fit:cover;border-radius:6px;width:64px;height:36px}.song-youtube-results li>div{min-width:0}.song-youtube-results a{-webkit-line-clamp:2;overflow-wrap:anywhere;color:var(--ui-fg);-webkit-box-orient:vertical;font-size:12px;font-weight:600;line-height:1.45;display:-webkit-box;overflow:hidden}.song-youtube-results a>svg{display:inline}.song-youtube-results a:hover{text-decoration:underline}.song-youtube-results li>div>span{overflow-wrap:anywhere;color:var(--ui-muted);margin-top:3px;font-size:11px;display:block}.song-youtube-results button{grid-column:2;justify-self:start;min-height:36px;padding:5px 9px}.song-youtube .song-youtube-close{color:var(--ui-muted);background:0 0;border:0;padding:6px 0;font-weight:400}
