/* Desktop first: three usable columns, mobile tabs, compact controls. */
.sl-song-form{--sf-border:var(--sl-border,#304969);--sf-muted:var(--sl-muted,#9bb1cd);--sf-bg:var(--sl-surface,#0e1e35);color:var(--sl-text,#eaf2ff);min-width:0}
.sl-form-columns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:stretch;min-width:0}
.sl-form-pane{min-width:0;border:1px solid var(--sf-border);border-radius:12px;padding:14px;background:var(--sf-bg);display:flex;flex-direction:column;gap:10px}
.sl-form-pane h3{margin:0 0 4px!important;font-size:14px!important;line-height:1.5;padding-bottom:8px;border-bottom:1px solid var(--sf-border)}
.sl-song-form .sl-field{display:grid!important;gap:5px!important;margin:0!important;min-width:0;font-size:12px!important;font-weight:600;line-height:1.4}
.sl-song-form .sl-field>span{display:flex;gap:7px;align-items:center}.sl-field .sl-required{font-size:10px;padding:2px 5px;border-radius:4px;color:#ffa7b9;background:#57273e}
.sl-song-form .sl-field input:not([type=hidden]),.sl-song-form .sl-field textarea,.sl-song-form .sl-field select{box-sizing:border-box;width:100%!important;min-width:0;height:35px!important;padding:7px 10px!important;margin:0!important;font-size:13px!important;border-radius:7px!important;border:1px solid var(--sf-border)!important;background:var(--sl-input,#081527);color:inherit;line-height:1.4}
.sl-song-form .sl-field textarea{min-height:54px;height:54px!important;resize:vertical}.sl-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sl-song-form p.sl-form-note{margin:0!important;font-size:11px!important;color:var(--sf-muted);line-height:1.5}
.sl-form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--sf-border);background:inherit;min-height:40px}.sl-form-footer p{margin:0!important;font-size:12px!important;max-width:65%;line-height:1.5}.sl-form-buttons{display:flex;gap:8px;flex-shrink:0}.sl-song-form .sl-form-buttons button{margin:0!important;min-height:36px!important;padding:7px 16px!important;font-size:13px!important;white-space:nowrap}
.sl-form-tabs{display:none}.sl-form-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.sl-form-title h2{margin:0!important;padding:0!important;border:0!important;font-size:21px!important;line-height:1.35}.sl-form-title p{margin:4px 0 0!important;font-size:12px!important;color:var(--sf-muted)}
.sl-master-choice{min-width:0;width:100%}.sl-choice-trigger{display:block!important;width:100%!important;height:35px!important;min-height:35px!important;margin:0!important;padding:7px 10px!important;border:1px solid var(--sf-border,#304969)!important;border-radius:7px!important;background:var(--sl-input,#081527)!important;color:var(--sf-muted,#9bb1cd)!important;font-size:13px!important;text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4!important;box-sizing:border-box;cursor:pointer}.sl-choice-trigger.has-selection{color:var(--sl-text,#eaf2ff)!important;border-color:#527db3!important}.sl-choice-trigger:focus-visible{outline:2px solid #789bff;outline-offset:2px}.sl-choice-trigger:disabled{opacity:.55;cursor:wait}
.sl-choice-popover{position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:10px;background:#10213a;color:#edf4ff;border:1px solid #5578a7;border-radius:10px;z-index:100000;box-shadow:0 12px 40px #0009;overflow:hidden;display:flex;flex-direction:column;gap:8px}.sl-choice-popover[hidden]{display:none!important}.sl-choice-popover input{box-sizing:border-box;width:100%;height:35px;min-height:35px;padding:7px 9px;border:1px solid #45638c;background:#081526;color:#edf4ff;border-radius:6px;font-size:14px}.sl-choice-options{overflow:auto;min-height:48px;flex:1;overscroll-behavior:contain;display:flex;flex-direction:column;gap:2px}.sl-choice-option{display:flex!important;align-items:center;gap:9px;text-align:left!important;min-height:34px!important;flex-shrink:0;width:100%;margin:0!important;padding:7px 8px!important;font-size:13px!important;color:#edf4ff!important;background:transparent!important;border:0!important;border-radius:5px;line-height:1.5!important;word-break:normal}.sl-choice-option:hover,.sl-choice-option:focus{background:#25416a!important}.sl-choice-option[aria-selected=true]{background:#213d66!important}.sl-choice-check{width:17px;height:17px;border:1px solid #7290b8;border-radius:3px;display:inline-grid;place-items:center;flex-shrink:0;color:#a8c7ff}.sl-choice-actions{display:flex;justify-content:space-between;border-top:1px solid #355171;padding-top:8px;gap:8px}.sl-choice-actions button{margin:0!important;min-height:32px!important;padding:6px 10px!important;border:1px solid #4b6e9b;border-radius:6px;background:#203a61;color:#eff6ff;font-size:12px!important}.sl-choice-options p{font-size:12px;color:#b8cae3}
#songEditRequestModal>.modal{width:min(1220px,calc(100vw - 32px))!important;max-width:1220px!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;box-sizing:border-box;padding:18px!important}
#songEditRequestModal .modal-close{position:static!important;flex-shrink:0;margin:0!important;padding:0 5px!important;font-size:26px!important;line-height:1!important;cursor:pointer}#songEditRequestModal .sl-form-title{padding-right:0!important}#songEditRequestModal .sl-form-columns{gap:12px}
#addSongModal .sl-add-song-page{max-width:none!important;width:100%!important;padding:0!important;box-sizing:border-box}#addSongModal .sl-add-song-heading{margin-bottom:14px!important}#addSongModal .sl-add-song-heading h2{font-size:23px!important}#addSongModal #addSongForm.sl-song-form{display:block!important;margin:0!important;min-width:0}#addSongModal .sl-form-pane{padding:15px!important}#addSongModal .sl-form-footer{margin-top:14px!important}#addSongModal #newCodeUrlCheck,#addSongModal #newArtistClassification{margin:0!important;line-height:1.4;font-size:11px!important}#newCodeUrlCheck:empty{display:none}
.admin-edit-dialog:has(.sl-master-choice){width:min(1180px,94vw)}.admin-edit-dialog:has(.sl-master-choice) .admin-edit-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-edit-dialog:has(.sl-master-choice) input{min-height:35px}.admin-edit-dialog:has(.sl-master-choice) label{font-size:12px}
@media(min-width:1600px){.sl-form-pane{padding:18px;gap:12px}.sl-song-form .sl-field{font-size:13px!important}.sl-choice-trigger,.sl-song-form .sl-field input:not([type=hidden]){height:38px!important;font-size:14px!important}}
@media(min-width:681px) and (max-width:1050px){.sl-form-columns{grid-template-columns:1fr 1fr}.sl-form-pane:last-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.sl-form-pane:last-child h3{grid-column:1/-1}.admin-edit-dialog:has(.sl-master-choice) .admin-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){#songEditRequestModal>.modal{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:12px!important}.sl-form-title h2{font-size:18px!important}.sl-form-title p{font-size:11px!important}.sl-form-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 10px}.sl-form-tabs button{margin:0!important;padding:9px 4px!important;min-height:40px;font-size:12px!important;border:1px solid var(--sf-border);border-radius:7px;background:#12233d;color:#b4c7df}.sl-form-tabs button[aria-selected=true]{color:#fff;border-color:#779aff;background:#2a4380}.sl-form-columns{display:block}.sl-form-pane{display:none!important;padding:12px!important;gap:10px}.sl-form-pane.is-active{display:flex!important}.sl-song-form .sl-field input:not([type=hidden]),.sl-choice-trigger{height:40px!important;font-size:16px!important}.sl-form-footer{position:sticky;bottom:-12px;background:var(--sf-bg);padding:10px 0 0;display:block;z-index:2}.sl-form-footer p{max-width:100%;font-size:11px!important;margin-bottom:8px!important}.sl-form-buttons{justify-content:flex-end}.sl-song-form .sl-form-buttons button{min-height:42px!important;font-size:13px!important;padding:8px 12px!important}.sl-form-pane h3{font-size:13px!important;margin:0!important}.sl-choice-popover input{font-size:16px}.sl-choice-option{min-height:42px!important;font-size:14px!important}.sl-choice-actions button{min-height:40px!important}.admin-edit-dialog:has(.sl-master-choice) .admin-edit-fields{grid-template-columns:1fr}.sl-form-title{gap:8px;margin-bottom:10px}.sl-field-row{gap:8px}}
/* Override the site's legacy large-modal rules only for this compact editor. */
#songEditRequestModal .sl-form-title h2{font-size:21px!important;line-height:1.35!important;margin:0!important;padding:0!important}#songEditRequestModal .sl-form-title p{font-size:12px!important;line-height:1.5!important;margin:4px 0 0!important}
#songEditRequestModal .sl-form-pane h3{font-size:14px!important;line-height:1.4!important;margin:0 0 4px!important}#songEditRequestModal .sl-field{font-size:12px!important;line-height:1.4!important}#songEditRequestModal .sl-field small{font-size:10px!important;line-height:1.3!important;color:#91a9c9;font-weight:400;white-space:nowrap}#songEditRequestModal .sl-field .sl-required{color:#ffa7b9;font-weight:600}
#songEditRequestModal .sl-field input:not([type=hidden]),#songEditRequestModal .sl-choice-trigger{min-height:35px!important;height:35px!important;font-size:13px!important;line-height:1.4!important}#songEditRequestModal .sl-form-footer p{font-size:12px!important;line-height:1.5!important}#songEditRequestModal .sl-form-footer button{font-size:13px!important;min-height:36px!important;line-height:1.4!important;width:auto!important}#songEditRequestModal .sl-choice-popover button{font-size:13px!important;line-height:1.5!important;min-height:34px!important}#songEditRequestModal .sl-choice-popover input{font-size:14px!important;min-height:35px!important;line-height:1.4!important}#songEditRequestModal .sl-choice-popover p{font-size:12px!important;line-height:1.5!important}
@media(max-width:680px){#songEditRequestModal .sl-form-title h2{font-size:18px!important}#songEditRequestModal .sl-field input:not([type=hidden]),#songEditRequestModal .sl-choice-trigger{min-height:40px!important;height:40px!important;font-size:16px!important}#songEditRequestModal .sl-form-tabs button{font-size:12px!important;line-height:1.4!important;min-height:40px!important}#songEditRequestModal .sl-form-footer button{min-height:42px!important}#songEditRequestModal .sl-choice-popover input{font-size:16px!important;min-height:40px!important}#songEditRequestModal .sl-choice-popover button{font-size:14px!important;min-height:40px!important}}
/* Keep actions visible; only the fields scroll on shorter screens. */
#songEditRequestModal>.modal{display:flex!important;flex-direction:column;min-height:0}#songEditRequestModal .sl-form-title{flex-shrink:0}#songEditRequestForm{display:flex;flex-direction:column;min-height:0;flex:0 1 auto}#songEditRequestForm>.sl-form-columns{min-height:0;overflow:auto;overscroll-behavior:contain;flex:0 1 auto}#songEditRequestForm>.sl-form-footer,#songEditRequestForm>.sl-form-tabs{flex-shrink:0}
#addSongModal .sl-add-song-page{display:flex!important;flex-direction:column;min-height:0;max-height:calc(100dvh - 24px)!important}#addSongModal .sl-add-song-heading{flex-shrink:0}#addSongModal #addSongForm.sl-song-form{display:flex!important;flex-direction:column;min-height:0;flex:0 1 auto}#addSongForm>.sl-form-columns{min-height:0;overflow:auto;overscroll-behavior:contain;flex:0 1 auto}#addSongForm>.sl-form-tabs,#addSongForm>.sl-form-footer{flex-shrink:0}#addSongModal .sl-form-buttons button{width:auto!important}
@media(max-width:680px){#addSongModal .sl-add-song-page{max-height:calc(100dvh - 16px)!important}.sl-form-footer{position:static}}
.sl-field-row{align-items:end}
@media(min-width:1051px) and (max-height:720px){#songEditRequestModal>.modal{padding:14px!important}#songEditRequestModal .sl-form-pane{padding:12px;gap:8px}#songEditRequestModal .sl-form-pane h3{font-size:13px!important;padding-bottom:6px}#songEditRequestModal .sl-field input:not([type=hidden]),#songEditRequestModal .sl-choice-trigger{height:32px!important;min-height:32px!important}#songEditRequestModal .sl-form-title{margin-bottom:10px}#songEditRequestModal .sl-form-footer{margin-top:10px;padding-top:10px}}
