.ldsl-builder {
    --ldsl-repertoire-panel-bg: #F5F1EA;
    --ldsl-repertoire-separator: #DDD3C4;
    --ldsl-repertoire-item-bg: #FCFBF8;
    --ldsl-repertoire-item-bg-hover: #EEE5D8;
    --ldsl-repertoire-item-bg-active: #E4D6C1;
    --ldsl-repertoire-item-border: #E6DDD0;
    --ldsl-repertoire-item-border-hover: #D8C9B2;
    --ldsl-repertoire-item-border-active: #CDBA9D;
    --ldsl-setlist-panel-bg: #FFFFFF;
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    gap: 20px;
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    width: 100%;
}

.ldsl-panel {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 16px;
}

.ldsl-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ldsl-inline--space {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldsl-inline--stretch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ldsl-actions-row {
    gap: 14px;
}

.ldsl-setlist-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.ldsl-setlist-toolbar__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.ldsl-setlist-toolbar__row--primary {
    justify-content: space-between;
}

.ldsl-setlist-toolbar__group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.ldsl-setlist-toolbar__group--meta {
    flex: 1 1 460px;
}

.ldsl-setlist-toolbar__row--tools {
    padding-top: 8px;
    border-top: 1px dashed #e7e7e7;
}

.ldsl-setlist-toolbar__exports {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.ldsl-actions {
    display: flex;
    margin-left: auto;
}
.ldsl-actions--icons {
    display: flex;
    align-items: center;
}

.ldsl-search {
    box-sizing: border-box;
    min-width: 180px;
    min-height: 44px;
    height: 44px;
    max-height: 48px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    line-height: 44px;
}

.ldsl-library-browser {
    position: relative;
}

.ldsl-library-body {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.ldsl-library-alpha-toggle {
    display: none;
    border: 1px solid var(--ldsl-repertoire-item-border-hover);
    border-radius: 999px;
    background: var(--ldsl-repertoire-item-bg);
    color: #4f3d26;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
}

.ldsl-library-alpha-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--ldsl-repertoire-separator);
    border-radius: 999px;
    background: rgba(252, 251, 248, 0.9);
    position: sticky;
    top: 8px;
    z-index: 2;
}

.ldsl-library-alpha-nav button {
    width: 26px;
    min-height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5c4a33;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ldsl-library-alpha-nav button:hover,
.ldsl-library-alpha-nav button:focus-visible,
.ldsl-library-alpha-nav button.is-active {
    background: var(--ldsl-repertoire-item-bg-active);
    color: #1f160d;
}

.ldsl-library-alpha-nav button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 1px;
}

.ldsl-library-alpha-nav button.is-disabled,
.ldsl-library-alpha-nav button:disabled {
    color: #b9ac99;
    cursor: not-allowed;
    opacity: 0.55;
}

.ldsl-songs {
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
    max-height: 70vh;
    overflow: auto;
    scroll-behavior: smooth;
    scroll-padding-top: 4px;
}

.ldsl-library-letter-anchor {
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 0;
}

.ldsl-library-letter-separator {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 5px 8px 4px;
    border-bottom: 1px solid var(--ldsl-repertoire-separator);
    background: linear-gradient(180deg, var(--ldsl-repertoire-panel-bg) 70%, rgba(245, 241, 234, 0.88));
    color: #6b573c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ldsl-song-card {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: grab;
}

.ldsl-song-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ldsl-song-card > div:first-child {
    min-width: 0;
}

.ldsl-song-card strong {
    overflow-wrap: anywhere;
}

.ldsl-song-card .ldsl-icon-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
}


.ldsl-song-card.is-dragging,
.ldsl-setlist-item.is-dragging {
    opacity: 0.55;
}

.is-drop-target {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.is-drop-over {
    box-shadow: inset 0 0 0 2px rgba(90, 60, 25, 0.35);
    border-radius: 12px;
}
.ldsl-song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #666;
}

.ldsl-song-doc-links {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin-left: auto;
}

.ldsl-song-doc-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid var(--ldsl-repertoire-item-border-hover);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #5c4a33;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.ldsl-song-doc-link:hover,
.ldsl-song-doc-link:focus-visible {
    background: #fff;
    border-color: var(--ldsl-repertoire-item-border-active);
    color: #1f160d;
    text-decoration: none;
}

.ldsl-song-doc-link:focus-visible {
    outline: 2px solid var(--ldsl-repertoire-item-border-active);
    outline-offset: 1px;
}

.ldsl-song-key {
    margin-left: 6px;
    font-size: 12px;
    color: #666;
}

.ldsl-builder__left .ldsl-panel {
    background: var(--ldsl-repertoire-panel-bg);
    border-color: var(--ldsl-repertoire-separator);
}

.ldsl-builder__right .ldsl-panel {
    background: var(--ldsl-setlist-panel-bg);
}

.ldsl-builder__left {
    border-right: 1px solid var(--ldsl-repertoire-separator);
    padding-right: 14px;
}

.ldsl-builder__left .ldsl-song-card {
    background: var(--ldsl-repertoire-item-bg);
    border-color: var(--ldsl-repertoire-item-border);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ldsl-builder__left .ldsl-song-card:hover {
    background: var(--ldsl-repertoire-item-bg-hover);
    border-color: var(--ldsl-repertoire-item-border-hover);
}

.ldsl-builder__left .ldsl-song-card:active,
.ldsl-builder__left .ldsl-song-card.is-dragging {
    background: var(--ldsl-repertoire-item-bg-active);
    border-color: var(--ldsl-repertoire-item-border-active);
}

.ldsl-builder__left .ldsl-song-card:focus-visible,
.ldsl-builder__left .ldsl-song-card:focus-within {
    outline: 2px solid var(--ldsl-repertoire-item-border-active);
    outline-offset: 1px;
}

.ldsl-builder__left.is-drop-over {
    box-shadow: inset 0 0 0 2px rgba(205, 186, 157, 0.45);
    border-radius: 12px;
}

.ldsl-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.ldsl-btn:focus-visible,
.ldsl-icon-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.ldsl-btn--primary {
    background: #111;
    color: #fff;
}

.ldsl-btn--new {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    white-space: nowrap;
}

.ldsl-btn--ghost {
    background: #f3f3f3;
    color: #111;
    border: 1px solid #ddd;
}

.ldsl-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.ldsl-icon-btn:hover {
    background: #f0f0f0;
}

.ldsl-medley-color-picker {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    flex: 0 0 auto;
}

.ldsl-medley-color-picker:hover,
.ldsl-medley-color-picker:focus-within {
    background: #f0f0f0;
}

.ldsl-medley-color-picker:focus-within {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.ldsl-medley-color-icon {
    pointer-events: none;
    line-height: 1;
}

.ldsl-medley-color-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.ldsl-icon-btn.is-saving {
    opacity: 0.8;
    cursor: wait;
}

.ldsl-actions__group {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}
.ldsl-actions__group + .ldsl-actions__group {
    margin-left: 10px;
}

.ldsl-builder__right .ldsl-panel {
    height: 100%;
    position: relative;
}

.ldsl-toolbar-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.ldsl-toolbar-btn[aria-expanded="true"] {
    background: #111;
    color: #fff;
    border-color: #111;
}

.ldsl-toolbar-panels {
    position: relative;
}

.ldsl-panel-drawer {
    position: absolute;
    right: 0;
    top: 0;
    width: 360px;
    max-width: min(90vw, 360px);
    max-height: 70vh;
    overflow: auto;
    z-index: 20;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    border: 1px solid #dfdfdf;
}

.ldsl-setlist {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 200px;
    margin-bottom: 12px;
}

.ldsl-medley {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    display: grid;
    gap: 8px;
}

.ldsl-medley__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: #f7f7f7;
    border-radius: 8px;
}

.ldsl-medley.is-collapsed {
    padding: 6px 10px;
}
.ldsl-medley.is-collapsed .ldsl-medley__header {
    margin-bottom: 0;
}
.ldsl-medley__select {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.ldsl-medley__select input {
    margin: 0;
}

.ldsl-medley__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ldsl-medley__comment {
    background: #f4f6fb;
    border-left: 3px solid #c8d4f9;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 4px 4px 2px;
    color: #45516c;
    cursor: text;
    font-size: 14px;
    min-height: 20px;
    white-space: pre-wrap;
}

.ldsl-medley__comment.is-empty {
    color: #7d879d;
    font-style: italic;
}

.ldsl-medley__comment-input {
    width: 100%;
    min-height: 20px;
    box-sizing: border-box;
    border: 1px solid #c8d4f9;
    border-radius: 6px;
    background: #fff;
    color: #293241;
    font: inherit;
    line-height: 1.35;
    padding: 4px 6px;
    outline: none;
}

.ldsl-medley__comment-input:focus {
    border-color: #7c9cf5;
    box-shadow: 0 0 0 2px rgba(124, 156, 245, .22);
}

.ldsl-medley__toggle {
    min-width: 40px;
    padding: 6px 8px;
}

.ldsl-medley.is-collapsed .ldsl-setlist-item {
    display: none;
}

.ldsl-setlist-item {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 10px;
    background: #fafafa;
    cursor: grab;
}

.ldsl-setlist-item.ldsl-drop-before {
    box-shadow: inset 0 3px 0 0 rgba(90, 60, 25, 0.7);
}

.ldsl-setlist-item.ldsl-drop-after {
    box-shadow: inset 0 -3px 0 0 rgba(90, 60, 25, 0.7);
}

.ldsl-setlist-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ldsl-setlist-item__main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ldsl-collapse-btn {
    min-width: 36px;
    padding: 6px;
}

.ldsl-setlist-item__body {
    margin-top: 10px;
}

.ldsl-setlist-item.is-collapsed .ldsl-setlist-item__body {
    display: none;
}

.ldsl-tag {
    background: #ededed;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.ldsl-break-part-duration {
    background: #e8f3ff;
    color: #0f4c81;
    font-weight: 600;
}

.ldsl-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.ldsl-inline input,
.ldsl-inline select,
.ldsl-inline textarea {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 70px;
}

.ldsl-inline textarea {
    width: 100%;
}

.ldsl-comment-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ldsl-comment-field textarea {
    flex: 1 1 auto;
}

.ldsl-voice-btn {
    flex: 0 0 auto;
}

.ldsl-voice-btn.is-active {
    background: #d73a49;
    color: #fff;
    border-color: #d73a49;
}

.ldsl-setlist-item.is-voice-active {
    border-color: #d73a49;
    box-shadow: 0 0 0 2px rgba(215, 58, 73, 0.15);
}

.ldsl-voice-status {
    display: block;
    margin-top: 4px;
    color: #6b7280;
}

.ldsl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.ldsl-total {
    font-weight: bold;
    font-size: 22px;
    flex: 0 0 auto;
}

.ldsl-title-field {
    flex: 1 1 320px;
    min-width: 260px;
}

.ldsl-title-field input[data-role="setlist-title"] {
    width: 100%;
}

.ldsl-small { color: #888; margin:0; }

.ldsl-table {
    width: 100%;
    border-collapse: collapse;
}

.ldsl-table th,
.ldsl-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}


.ldsl-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ldsl-drawer__list {
    font-size: 14px;
}

.ldsl-drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ldsl-drawer__items li {
    border-bottom: 1px solid #eee;
    padding: 6px 0;
}


.ldsl-setlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.ldsl-setlist-title {
    display: inline-block;
    text-align: left;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ldsl-setlist-title:hover {
    text-decoration: underline;
}

.ldsl-action-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 8px;
    min-height: 30px;
    line-height: 1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ldsl-action-btn:focus-visible {
    outline: 2px solid rgba(0, 0, 0, .35);
    outline-offset: 2px;
}

.ldsl-action-btn--primary {
    background: #1e73be;
    border-color: #1e73be;
    color: #fff;
}

.ldsl-action-btn--primary:hover {
    background: #185f9d;
    border-color: #185f9d;
}

.ldsl-action-btn--danger {
    border-color: #f1c8c8;
    background: #fff6f6;
    color: #a83535;
}

.ldsl-action-btn--danger:hover {
    background: #ffeaea;
}

.ldsl-medley-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}


.ldsl-drawer__title {
    font-weight: 600;
}

.ldsl-drawer__meta {
    font-size: 12px;
    color: #666;
}

.ldsl-drawer__comment {
    margin-top: 2px;
    font-size: 13px;
    color: #5f6368;
    white-space: pre-line;
    overflow-wrap: anywhere;
}



/* Répertoire V2: responsive search, quick filters, recents and sort controls. */
.ldsl-builder,
.ldsl-builder *,
.ldsl-builder *::before,
.ldsl-builder *::after {
    box-sizing: border-box;
}

.ldsl-builder,
.ldsl-builder__left,
.ldsl-builder__right,
.ldsl-panel,
.ldsl-library-browser,
.ldsl-library-body,
.ldsl-songs {
    min-width: 0;
}

.ldsl-repertoire-header {
    align-items: flex-start;
}

.ldsl-repertoire-title {
    flex: 0 0 auto;
    margin-top: 0;
}

.ldsl-library-controls {
    display: grid;
    gap: 8px;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
}

.ldsl-library-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.ldsl-library-search-row .ldsl-search {
    box-sizing: border-box;
    flex: 1 1 180px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    max-width: 100%;
    max-height: 48px;
    padding: 0 14px;
    line-height: 44px;
}

.ldsl-library-sort,
.ldsl-library-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ldsl-library-sort {
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid var(--ldsl-repertoire-separator);
    border-radius: 999px;
    background: rgba(252, 251, 248, 0.78);
}

.ldsl-library-sort button,
.ldsl-library-filters button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #fff;
    color: #5c4a33;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    min-height: 30px;
    padding: 7px 10px;
    white-space: nowrap;
}

.ldsl-library-sort button {
    background: transparent;
    padding-inline: 9px;
}

.ldsl-library-sort button.is-active,
.ldsl-library-filters button.is-active {
    background: var(--ldsl-repertoire-item-bg-active);
    border-color: var(--ldsl-repertoire-item-border-active);
    color: #1f160d;
}

.ldsl-library-filters {
    flex-wrap: wrap;
    width: 100%;
}

.ldsl-library-section-title {
    padding: 6px 8px 2px;
    color: #6b573c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .ldsl-builder {
        grid-template-columns: 1fr;
    }

    .ldsl-setlist-toolbar__row {
        gap: 8px;
    }

    .ldsl-setlist-toolbar__group--meta {
        flex-basis: 100%;
    }

    .ldsl-title-field {
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .ldsl-setlist-toolbar__group--meta .ldsl-title-field {
        flex-basis: 100%;
        min-width: 180px;
    }

    .ldsl-total {
        font-size: 18px;
    }

    .ldsl-setlist-toolbar__group--meta .ldsl-setlist-btn-save {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .ldsl-panel-drawer {
        position: fixed;
        top: 10vh;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: 70vh;
        border-radius: 12px 12px 0 0;
        z-index: 10000;
    }
}

.ldsl-icon-btn.ldsl-medley-action { width:32px; height:32px; }

.ldsl-pdf-options {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.ldsl-pdf-options label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldsl-pdf-options__sub {
    margin-left: 20px;
    display: flex;
    gap: 12px;
}


.ldsl-pdf-options--header {
    position: relative;
    flex: 0 1 260px;
    align-self: center;
    max-width: min(100%, 320px);
    padding: 0;
    border: 0;
}

.ldsl-pdf-options--header summary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #2b2117;
    line-height: 1.2;
    list-style-position: inside;
}

.ldsl-pdf-options--header[open] {
    position: relative;
    z-index: 25;
    padding: 8px;
    border: 1px solid #e2ded8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ldsl-pdf-options--header[open] summary {
    margin-bottom: 6px;
}

.ldsl-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ldsl-export-matrix {
    margin-top: 10px;
    width: 100%;
    overflow-x: auto;
}

.ldsl-export-matrix__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ldsl-export-matrix__table th,
.ldsl-export-matrix__table td {
    border: 1px solid #e5e5e5;
    padding: 4px 6px;
    text-align: center;
}


.ldsl-document-preview-link {
    color: #5c4a33;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ldsl-document-preview-link::after {
    content: "↗";
    margin-left: 0.25em;
    font-size: 0.85em;
    opacity: 0.72;
}

.ldsl-document-preview-link:hover,
.ldsl-document-preview-link:focus-visible {
    color: #1f160d;
    text-decoration-style: solid;
}

.ldsl-export-matrix__table tbody th {
    text-align: left;
    background: #f7f7f7;
}

.ldsl-comments-global {
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fafafa;
}

.ldsl-editor--quick-mode .ldsl-comments-global {
    display: none !important;
}

.ldsl-comments-global__title {
    font-weight: 600;
    margin-bottom: 8px;
}

.ldsl-comments-global__table-wrap {
    overflow-x: auto;
}

.ldsl-comments-global__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.ldsl-comments-global__table th,
.ldsl-comments-global__table td {
    text-align: center;
    padding: 4px 8px;
    white-space: nowrap;
}

.ldsl-comments-global__table tbody th {
    text-align: left;
}

.ldsl-comments-global__table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .ldsl-comments-global__table {
        min-width: 560px;
    }
}

.ldsl-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
}

.ldsl-profile-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.ldsl-profile-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    outline: none;
}

.ldsl-profile-modal__title {
    margin: 0 0 14px;
    font-size: 20px;
}

.ldsl-profile-modal__actions {
    display: grid;
    gap: 10px;
}

.ldsl-profile-modal__cancel {
    margin-top: 14px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 700px) {
    .ldsl-panel__header {
        align-items: stretch;
        flex-direction: column;
    }

    .ldsl-repertoire-header,
    .ldsl-library-controls,
    .ldsl-library-search-row {
        width: 100%;
    }

    .ldsl-library-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ldsl-library-sort {
        align-self: flex-start;
        max-width: 100%;
    }

    .ldsl-library-filters {
        flex-wrap: wrap;
        gap: 5px;
    }

    .ldsl-library-filters button {
        flex: 0 1 auto;
        padding-inline: 8px;
    }

    .ldsl-search {
        width: 100%;
        min-width: 0;
    }

    .ldsl-library-body {
        display: block;
    }

    .ldsl-library-alpha-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        min-height: 40px;
        min-width: 58px;
    }

    .ldsl-library-alpha-nav {
        display: none;
        position: absolute;
        top: 44px;
        right: 0;
        grid-template-columns: repeat(7, minmax(38px, 1fr));
        flex-direction: initial;
        gap: 6px;
        width: min(100%, 330px);
        padding: 10px;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    }

    .ldsl-library-alpha-nav.is-open {
        display: grid;
    }

    .ldsl-library-alpha-nav button {
        width: auto;
        min-height: 40px;
        font-size: 14px;
        border: 1px solid transparent;
    }

    .ldsl-library-alpha-nav button.is-active {
        border-color: var(--ldsl-repertoire-item-border-active);
    }

    .ldsl-song-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ldsl-song-main {
        flex-basis: calc(100% - 42px);
    }

    .ldsl-song-doc-links {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 0;
    }

    .ldsl-songs {
        max-height: 58vh;
    }
}

.ldsl-text-modal__label {
    display: grid;
    gap: 8px;
    color: #333;
    font-weight: 600;
}

.ldsl-text-modal__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 400;
}

.ldsl-text-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.ldsl-setlist-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
}

.ldsl-setlist-toolbar__row,
.ldsl-setlist-toolbar__group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ldsl-setlist-toolbar__group--meta,
.ldsl-setlist-toolbar__actions {
    padding: 6px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.ldsl-no-active-setlist .ldsl-setlist-toolbar__group--meta,
.ldsl-no-active-setlist .ldsl-setlist-toolbar__actions,
.ldsl-no-active-setlist [data-role="bulk-global"],
.ldsl-no-active-setlist [data-role="pdf-options"] {
    display: none !important;
}

.ldsl-menu {
    position: relative;
    display: inline-flex;
}

.ldsl-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 220px;
    padding: 6px;
    border: 1px solid #dfdfdf;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.ldsl-menu__item {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f160d;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.ldsl-menu__item:hover,
.ldsl-menu__item:focus-visible {
    background: #f3eadc;
    outline: none;
}

.ldsl-menu__separator {
    height: 1px;
    margin: 6px 4px;
    background: #eee;
}

.ldsl-drawer__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ldsl-pdf-options summary {
    cursor: pointer;
    font-weight: 700;
}

.ldsl-pdf-options[open] {
    display: grid;
}

@media (max-width: 640px) {
    .ldsl-setlist-toolbar,
    .ldsl-setlist-toolbar__row,
    .ldsl-setlist-toolbar__group,
    .ldsl-setlist-toolbar__actions {
        width: 100%;
    }

    .ldsl-setlist-toolbar .ldsl-btn,
    .ldsl-setlist-toolbar .ldsl-icon-btn,
    .ldsl-menu,
    .ldsl-menu [data-role="export-menu-toggle"],
    .ldsl-pdf-options--header {
        flex: 1 1 auto;
    }

    .ldsl-menu__panel {
        left: 0;
        right: auto;
        width: min(92vw, 320px);
    }

    .ldsl-pdf-options--header {
        max-width: 100%;
    }
}

.ldsl-drag-handle {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid #d8c9b2;
    border-radius: 8px;
    background: #fffaf3;
    color: #5a3c19;
    cursor: grab;
    font-weight: 800;
    line-height: 1;
}

.ldsl-drag-handle:hover,
.ldsl-drag-handle:focus-visible {
    background: #eee5d8;
    outline: 2px solid rgba(90, 60, 25, 0.25);
    outline-offset: 1px;
}

.ldsl-drag-handle:active {
    cursor: grabbing;
}

.ldsl-drag-handle--medley {
    background: #ffffff;
}

.ldsl-setlist-item {
    cursor: default;
}

.ldsl-drop-indicator {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    z-index: 10;
    pointer-events: none;
    border-top: 2px solid rgba(90,60,25,0.75);
    color: #5a3c19;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ldsl-drop-indicator::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(90,60,25,0.75);
}

.ldsl-drop-indicator__label {
    position: absolute;
    left: 8px;
    bottom: 5px;
    max-width: calc(100% - 16px);
    padding: 2px 6px;
    border-radius: 4px;
    background: #fffaf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldsl-drop-indicator.is-strong {
    border-top-width: 3px;
    color: #2f1f0d;
}

.ldsl-has-unsaved-changes [data-action="save-setlist"].has-unsaved-changes {
    box-shadow: 0 0 0 3px rgba(214, 140, 38, 0.24);
}

.ldsl-has-unsaved-changes [data-action="save-setlist"].has-unsaved-changes::after {
    content: ' • non sauvegardé';
    font-size: 12px;
    font-weight: 800;
}

.ldsl-editor-mode-switch {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #f8f8f8;
}

.ldsl-editor-mode-switch__button {
    border: 0;
    border-right: 1px solid #ddd;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-weight: 700;
    padding: 8px 12px;
}

.ldsl-editor-mode-switch__button:last-child {
    border-right: 0;
}

.ldsl-editor-mode-switch__button.is-active {
    background: #111;
    color: #fff;
}

.ldsl-quick-editor {
    display: block;
}

.ldsl-quick-editor__inner {
    display: grid;
    gap: 14px;
}

.ldsl-quick-add {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ldsl-quick-add__input {
    flex: 1 1 auto;
    min-width: 0;
}

.ldsl-quick-list {
    display: grid;
    gap: 8px;
}

.ldsl-quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    cursor: grab;
}

.ldsl-quick-item.is-dragging {
    opacity: .55;
    cursor: grabbing;
}

.ldsl-quick-item.ldsl-drop-before,
.ldsl-quick-item.is-drop-before {
    border-top-color: #111;
}

.ldsl-quick-item.ldsl-drop-after,
.ldsl-quick-item.is-drop-after {
    border-bottom-color: #111;
}

.ldsl-quick-item__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
    text-transform: uppercase;
}

.ldsl-quick-item__delete {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    border-radius: 999px;
    background: #fff;
    color: #7f1d1d;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.ldsl-quick-item__delete:hover,
.ldsl-quick-item__delete:focus-visible {
    border-color: #fecaca;
    background: #fef2f2;
}
