/* Prescribed Archive v1.3.0 — established RSPBA blue */
.dhtl-library{--dhtl-blue:#005eb8;--dhtl-hover:#004a93;--dhtl-pale:#f1f8ff;--dhtl-line:#d4e5f5;--dhtl-text:#20354b;--dhtl-muted:#576b7e;color:var(--dhtl-text);max-width:100%}
.dhtl-library *{box-sizing:border-box}
.dhtl-library h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:700;margin:0 0 22px;color:var(--dhtl-blue)}
.dhtl-library .dhtl-filters{display:grid;grid-template-columns:minmax(210px,2fr) repeat(3,minmax(116px,1fr)) auto;gap:12px;align-items:end;padding:20px;border:1px solid var(--dhtl-line);border-radius:10px;background:var(--dhtl-pale)}
.dhtl-library .dhtl-filters label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:var(--dhtl-text)}
.dhtl-library .dhtl-filters input,.dhtl-library .dhtl-filters select{width:100%;height:44px;min-width:0;padding:8px 10px;border:1px solid #b6cee5;border-radius:6px;background:#fff;color:#20354b;font:inherit;font-weight:400}
.dhtl-library .dhtl-filters input:focus,.dhtl-library .dhtl-filters select:focus,.dhtl-library a:focus-visible{outline:2px solid var(--dhtl-blue);outline-offset:2px}
.dhtl-library .dhtl-button{background:var(--dhtl-blue);border:1px solid var(--dhtl-blue);color:#fff!important;display:inline-flex;gap:7px;align-items:center;justify-content:center;padding:9px 15px;min-height:44px;text-decoration:none!important;border-radius:6px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.35;cursor:pointer;white-space:nowrap}
.dhtl-library .dhtl-button:hover,.dhtl-library .dhtl-button:focus{background:var(--dhtl-hover);border-color:var(--dhtl-hover);color:#fff!important}
.dhtl-library .dhtl-count{margin:18px 0;font-size:14px;color:var(--dhtl-muted)}
.dhtl-library .dhtl-type-section{border:1px solid var(--dhtl-line);border-radius:10px;overflow:hidden;margin:25px 0;background:#fff;box-shadow:0 3px 12px rgba(0,94,184,.04)}
.dhtl-library .dhtl-type-heading{background:var(--dhtl-blue);color:#fff!important;margin:0;padding:15px 21px;font-size:1.35rem;font-weight:750;line-height:1.35}
.dhtl-library .dhtl-type-content{padding:12px 18px 19px}
.dhtl-library .dhtl-parts-section{margin:9px 0 17px}
.dhtl-library .dhtl-parts-section:last-child{margin-bottom:0}
.dhtl-library .dhtl-parts-heading{background:var(--dhtl-pale);border-left:5px solid var(--dhtl-blue);color:var(--dhtl-blue);font-weight:700;font-size:1rem;line-height:1.4;margin:0 0 0;padding:10px 14px}
.dhtl-library .dhtl-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.dhtl-library .dhtl-table{width:100%;min-width:510px;border-collapse:collapse;border-spacing:0;background:#fff;font-size:14px;margin:0}
.dhtl-library .dhtl-table th,.dhtl-library .dhtl-table td{padding:11px 14px;text-align:left;border-bottom:1px solid #e5edf5;vertical-align:middle;line-height:1.45}
.dhtl-library .dhtl-table th{background:#f7faff;color:#294766;font-weight:700;white-space:nowrap}
.dhtl-library .dhtl-table th:last-child,.dhtl-library .dhtl-table td:last-child{text-align:right}
.dhtl-library .dhtl-table tbody tr:last-child td{border-bottom:0}
.dhtl-library .dhtl-table tbody tr:hover td{background:#f7fbff}
.dhtl-library .dhtl-name{font-weight:600}
.dhtl-library .dhtl-download{min-height:36px;padding:7px 11px}
.dhtl-library .dhtl-disabled{font-size:12px;color:#687e90}
.dhtl-library .dhtl-empty{padding:25px;border:1px dashed var(--dhtl-line);border-radius:8px;color:var(--dhtl-muted);background:#fbfdff}
.dhtl-library.dhtl-loading .dhtl-search-results{opacity:.55;pointer-events:none}
@media(max-width:1040px){.dhtl-library .dhtl-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dhtl-library .dhtl-filters>button{grid-column:1/-1}}
@media(max-width:590px){.dhtl-library .dhtl-filters{grid-template-columns:1fr;padding:15px}.dhtl-library .dhtl-filters>button{grid-column:auto}.dhtl-library .dhtl-type-content{padding:10px}.dhtl-library .dhtl-type-heading{padding:13px 14px}.dhtl-library .dhtl-table{min-width:470px}}

/* Instrument-specific score category buttons */
.dhtl-library .dhtl-score-bar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:17px 0 5px}
.dhtl-library .dhtl-score-caption{font-size:13px;font-weight:700;color:var(--dhtl-text);margin-right:8px}
.dhtl-library .dhtl-score-tab{appearance:none;border:1px solid #bdd3e9;border-radius:7px;background:#fff;color:#295376;font-size:13px;font-weight:700;min-height:39px;padding:9px 14px;cursor:pointer;transition:background .15s, border-color .15s}
.dhtl-library .dhtl-score-tab:hover,.dhtl-library .dhtl-score-tab:focus-visible{border-color:var(--dhtl-blue);color:var(--dhtl-blue)}
.dhtl-library .dhtl-score-tab.dhtl-selected{background:var(--dhtl-blue);border-color:var(--dhtl-blue);color:#fff;box-shadow:0 2px 6px rgba(0,94,184,.17)}
.dhtl-library .dhtl-score-label{display:block;margin-top:4px;color:#667d93;font-size:11px;font-weight:600;line-height:1.3}
@media(max-width:590px){.dhtl-library .dhtl-score-caption{width:100%}.dhtl-library .dhtl-score-bar{gap:7px}.dhtl-library .dhtl-score-tab{padding:8px 10px;font-size:12px;min-height:36px}}

/* Multiple-score rows and accessible PDF previews */
.dhtl-library .dhtl-score-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch;min-width:190px}
.dhtl-library .dhtl-instrument{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:4px 0}
.dhtl-library .dhtl-instrument+.dhtl-instrument{border-top:1px solid #e9f1f8}
.dhtl-library .dhtl-instrument-label{font-size:11px;font-weight:700;color:#3b5873;margin-right:auto;white-space:nowrap}
.dhtl-library .dhtl-preview{appearance:none;background:#fff;color:#005eb8;border:1px solid #b6cee5;border-radius:6px;font:inherit;font-size:12px;font-weight:700;padding:7px 10px;min-height:36px;cursor:pointer}
.dhtl-library .dhtl-preview:hover,.dhtl-library .dhtl-preview:focus-visible{background:#eaf4fe;border-color:#005eb8}
.dhtl-library .dhtl-download{min-height:36px}
.dhtl-preview-dialog{width:min(980px,96vw);height:min(92vh,900px);max-width:96vw;max-height:92vh;box-sizing:border-box;border:1px solid #a4bdd4;border-radius:12px;padding:0;box-shadow:0 16px 70px rgba(15,42,69,.22);color:#20354b}
.dhtl-preview-dialog::backdrop{background:rgba(8,24,40,.69)}
.dhtl-preview-top{height:59px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 17px;background:#005eb8;color:white}
.dhtl-preview-heading{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dhtl-preview-close{background:#fff;color:#005eb8;border:0;border-radius:6px;padding:8px 12px;font-weight:700;cursor:pointer;white-space:nowrap}
.dhtl-preview-frame{border:0;width:100%;height:calc(100% - 59px);display:block;background:#f7faff}
@media(max-width:590px){.dhtl-library .dhtl-instrument{justify-content:flex-start}.dhtl-library .dhtl-instrument-label{flex:1 0 100%}.dhtl-preview-dialog{height:95vh;max-height:95vh}}

/* Prescribed Archive v2.1: archive references, change flags and correction forms. */
.dhtl-library .dhtl-reference{display:block;font-size:11px;font-weight:500;letter-spacing:.02em;color:#60768a;margin-top:3px}
.dhtl-library .dhtl-recent-badge{display:inline-block;vertical-align:middle;margin-left:7px;padding:2px 7px;font-size:10px;font-weight:700;border-radius:12px;color:#005eb8;background:#e7f2ff;border:1px solid #aacfee;white-space:nowrap}
.dhtl-library .dhtl-issue{margin-top:5px;font-size:11px;position:relative;max-width:240px}
.dhtl-library .dhtl-issue summary{color:#005eb8;cursor:pointer;text-decoration:underline;text-underline-offset:2px;list-style-position:inside}
.dhtl-library .dhtl-issue[open]{background:#f3f7fb;border:1px solid #c9ddec;border-radius:7px;padding:8px}
.dhtl-library .dhtl-issue label{display:block;color:#344b61;font-weight:600;margin-top:5px}
.dhtl-library .dhtl-issue textarea{display:block;box-sizing:border-box;width:100%;padding:7px;border-radius:5px;resize:vertical;border:1px solid #abc4d8;font-size:12px;line-height:1.4;margin:5px 0}
.dhtl-library .dhtl-issue .dhtl-honeypot{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
.dhtl-library .dhtl-issue-submit{border:0;border-radius:5px;background:#005eb8;color:white;cursor:pointer;padding:7px 10px;font-size:12px}
.dhtl-library .dhtl-report-success{background:#eaf6ee;border-left:4px solid #217944;padding:10px 12px;color:#134c28}
.dhtl-library .dhtl-recent-download{display:inline-flex;margin:2px;white-space:nowrap;font-size:12px}
@media(max-width:700px){.dhtl-library .dhtl-issue{max-width:180px}}


/* v2.4 — RSPBA Band Management-inspired responsive tune cards.
   No exposed download statistics; retains existing section hierarchy and sorting. */
.dhtl-library{--dhtl-card-shadow:0 2px 9px rgba(30,61,91,.065);--dhtl-card-line:#dce5ed;--dhtl-card-soft:#f7fafc}
.dhtl-library .dhtl-filters{background:#fff;border:1px solid var(--dhtl-card-line);box-shadow:var(--dhtl-card-shadow);padding:19px;border-radius:12px}
.dhtl-library .dhtl-score-bar{margin:14px 0 8px;padding:15px 17px;background:#f4f8fc;border:1px solid var(--dhtl-card-line);border-radius:12px}
.dhtl-library .dhtl-score-tab{border-radius:8px;min-height:42px}
.dhtl-library .dhtl-type-section{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;margin:30px 0 35px}
.dhtl-library .dhtl-type-heading{border-radius:9px;background:var(--dhtl-blue);color:#fff!important;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 3px 12px rgba(0,94,184,.1)}
.dhtl-library .dhtl-type-heading small{font-size:12px;font-weight:500;letter-spacing:.02em;color:#e2effb;white-space:nowrap}
.dhtl-library .dhtl-type-content{padding:6px 0 0}
.dhtl-library .dhtl-parts-section{margin:20px 0 25px}
.dhtl-library .dhtl-parts-heading{background:#edf5fc;color:var(--dhtl-blue);border-left:4px solid var(--dhtl-blue);border-radius:0 7px 7px 0;padding:10px 15px;margin:0 0 15px;font-size:15px}
.dhtl-library .dhtl-cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:15px}
.dhtl-library .dhtl-tune-card{border:1px solid var(--dhtl-card-line);border-radius:12px;background:#fff;min-width:0;overflow:hidden;box-shadow:var(--dhtl-card-shadow);display:flex;flex-direction:column;transition:box-shadow .17s ease,border-color .17s ease}
.dhtl-library .dhtl-tune-card:hover{border-color:#b8d5ed;box-shadow:0 6px 19px rgba(20,64,111,.1)}
.dhtl-library .dhtl-card-header{padding:17px 17px 13px;flex:0 0 auto}
.dhtl-library .dhtl-card-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:9px}
.dhtl-library .dhtl-card-overline{font-size:10px;letter-spacing:.085em;font-weight:800;text-transform:uppercase;color:#60748a}
.dhtl-library .dhtl-card-title{font-size:17px!important;line-height:1.33!important;font-weight:750!important;color:#203950!important;margin:0 0 4px!important;overflow-wrap:anywhere}
.dhtl-library .dhtl-reference{margin-top:7px;font-size:11px}
.dhtl-library .dhtl-card-composer{font-size:12px;line-height:1.5;color:#5e7081;margin:10px 0 0}
.dhtl-library .dhtl-recent-badge{margin:0;font-size:10px}
.dhtl-library .dhtl-card-facts{display:flex;flex-wrap:wrap;gap:0;margin:0 17px 14px;padding:10px 12px;background:var(--dhtl-card-soft);border:1px solid #ebf0f5;border-radius:8px}
.dhtl-library .dhtl-card-facts>div{flex:1 1 auto;min-width:65px;padding:0 10px 0 0}
.dhtl-library .dhtl-card-facts>div+div{padding-left:11px;border-left:1px solid #e1e8ef}
.dhtl-library .dhtl-card-facts dt{color:#66798a;font-size:10px;font-weight:750;letter-spacing:.03em;margin:0 0 3px}
.dhtl-library .dhtl-card-facts dd{color:#243c52;font-size:13px;font-weight:750;line-height:1.4;margin:0;overflow-wrap:anywhere}
.dhtl-library .dhtl-card-scores{background:#fbfcfe;border-top:1px solid #e6edf4;padding:14px 17px 16px;margin-top:auto}
.dhtl-library .dhtl-card-scores-title{font-size:12px!important;letter-spacing:.025em;font-weight:800!important;color:#415b74!important;margin:0 0 10px!important}
.dhtl-library .dhtl-card-score{padding:9px 0}
.dhtl-library .dhtl-card-score+.dhtl-card-score{border-top:1px solid #e7edf3}
.dhtl-library .dhtl-card-score-main{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px}
.dhtl-library .dhtl-instrument-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:750;color:#274d6c;min-width:0;white-space:normal}
.dhtl-library .dhtl-instrument-label::before{content:"";width:7px;height:7px;background:#005eb8;border-radius:50%;flex:none}
.dhtl-library .dhtl-card-score-buttons{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dhtl-library .dhtl-card-score-buttons .dhtl-preview,.dhtl-library .dhtl-card-score-buttons .dhtl-download{min-height:36px;border-radius:6px;padding:7px 10px;font-size:12px}
.dhtl-library .dhtl-issue{margin:6px 0 0;max-width:none;font-size:11px}
.dhtl-library .dhtl-issue summary{font-size:11px;text-decoration:none;color:#5d748b}
.dhtl-library .dhtl-issue summary:hover{text-decoration:underline;color:var(--dhtl-blue)}
.dhtl-library .dhtl-count{margin:18px 1px 0;font-weight:600}
.dhtl-library .dhtl-recent-grid{margin-top:16px}
.dhtl-library .dhtl-recent-grid .dhtl-card-score-main+.dhtl-card-score-main{border-top:1px solid #e7edf3;margin-top:9px;padding-top:9px}
@media(max-width:1120px){.dhtl-library .dhtl-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.dhtl-library .dhtl-cards-grid{grid-template-columns:1fr;gap:11px}.dhtl-library .dhtl-tune-card{border-radius:10px}.dhtl-library .dhtl-card-header{padding:15px 15px 11px}.dhtl-library .dhtl-card-scores{padding:12px 15px 15px}.dhtl-library .dhtl-card-facts{margin:0 15px 12px}.dhtl-library .dhtl-type-heading{padding:12px 15px;font-size:19px}.dhtl-library .dhtl-type-heading small{font-size:10px}.dhtl-library .dhtl-score-bar{padding:12px}.dhtl-library .dhtl-score-tab{flex:1 1 auto}.dhtl-library .dhtl-card-score-main{align-items:center}}
@media(prefers-reduced-motion:reduce){.dhtl-library .dhtl-tune-card{transition:none}}


/* v2.4.1 — the example's white archive canvas is now REAL shortcode CSS,
   rather than mock website wrapper CSS. The skin is deliberately strongly
   scoped to withstand generic theme/Elementor styles on cards and headings. */
.dhtl-library.dhtl-card-layout{
  display:block!important;width:100%;max-width:100%;min-width:0;
  margin:0 auto 24px;padding:28px 32px 38px;
  background:#ffffff;border:1px solid #e0e8f1;border-radius:13px;
  box-shadow:0 3px 17px rgba(0,50,100,.045);color:#20354b;
  font-family:inherit;line-height:1.5;
}
.dhtl-library.dhtl-card-layout .dhtl-cards-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;align-items:stretch;width:100%;max-width:100%;
}
.dhtl-library.dhtl-card-layout .dhtl-tune-card{
  display:flex!important;flex-direction:column!important;width:auto!important;
  min-width:0!important;float:none!important;clear:none!important;
  margin:0!important;padding:0!important;
  background:#fff!important;border:1px solid #dce5ed!important;
  border-radius:12px!important;box-shadow:0 2px 9px rgba(30,61,91,.065)!important;
}
.dhtl-library.dhtl-card-layout .dhtl-card-scores{margin-top:auto}
.dhtl-library.dhtl-card-layout .dhtl-type-heading{
  background:#005eb8!important;color:#fff!important;
  border:0!important;font-size:20px!important;line-height:1.35!important;
  margin:0 0 15px!important;
}
.dhtl-library.dhtl-card-layout .dhtl-parts-heading{
  background:#edf5fc!important;color:#005eb8!important;
  border:0!important;border-left:4px solid #005eb8!important;
  font-size:15px!important;line-height:1.4!important;
}
.dhtl-library.dhtl-card-layout .dhtl-card-facts,
.dhtl-library.dhtl-card-layout .dhtl-card-facts div,
.dhtl-library.dhtl-card-layout .dhtl-card-score-main,
.dhtl-library.dhtl-card-layout .dhtl-card-score-buttons{
  box-sizing:border-box;
}
.dhtl-library.dhtl-card-layout .dhtl-card-scores-title{font-size:12px!important;line-height:1.5!important}
.dhtl-library.dhtl-card-layout .dhtl-card-title{
  font-size:17px!important;line-height:1.35!important;font-weight:750!important;
}
.dhtl-library.dhtl-card-layout button.dhtl-preview,
.dhtl-library.dhtl-card-layout a.dhtl-download{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;max-width:100%;height:auto!important;min-height:36px;
  font-size:12px!important;line-height:1.35!important;font-weight:700!important;
  text-transform:none!important;letter-spacing:normal!important;
}
.dhtl-library.dhtl-card-layout a.dhtl-download{background:#005eb8!important;color:#fff!important;border:1px solid #005eb8!important}
.dhtl-library.dhtl-card-layout a.dhtl-download:hover{background:#004a93!important;color:#fff!important}
.dhtl-library.dhtl-card-layout button.dhtl-preview{background:#fff!important;color:#005eb8!important;border:1px solid #b6cee5!important}
.dhtl-library.dhtl-card-layout .dhtl-filters,
.dhtl-library.dhtl-card-layout .dhtl-score-bar{box-sizing:border-box;width:100%;max-width:100%}
@media(max-width:1120px){.dhtl-library.dhtl-card-layout .dhtl-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
  .dhtl-library.dhtl-card-layout{padding:15px;margin-bottom:14px;border-radius:10px}
  .dhtl-library.dhtl-card-layout .dhtl-cards-grid{grid-template-columns:minmax(0,1fr)}
  .dhtl-library.dhtl-card-layout .dhtl-type-heading{font-size:18px!important}
}

/* v2.4.3 — compact tune cards; matches the actual shortcode HTML rather than a theme mockup. */
.dhtl-library.dhtl-card-layout .dhtl-cards-grid{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))!important;
    align-items:stretch;
    gap:10px!important;
}
.dhtl-library.dhtl-card-layout .dhtl-tune-card.dhtl-compact-card{
    border-radius:9px!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-header{
    padding:11px 12px 9px!important;
    flex:0 0 auto;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-title{
    font-size:15px!important;
    font-weight:700!important;
    line-height:1.3!important;
    margin:0 0 6px!important;
    color:#203950!important;
}
.dhtl-library.dhtl-card-layout .dhtl-card-meta{
    display:flex;align-items:baseline;flex-wrap:wrap;gap:1px 0;
    font-size:11px;line-height:1.4;color:#60758a;
}
.dhtl-library.dhtl-card-layout .dhtl-card-meta>span{
    display:inline-block;min-width:0;max-width:100%;overflow-wrap:anywhere;
}
.dhtl-library.dhtl-card-layout .dhtl-card-meta>span+span::before{
    content:'|';color:#abc1d3;display:inline-block;margin:0 7px;
}
.dhtl-library.dhtl-card-layout .dhtl-visually-hidden{
    position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-scores{
    background:#fbfcfe;
    padding:5px 12px 7px!important;
    margin-top:auto;
    border-top:1px solid #e8edf3;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-score{
    padding:5px 0!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-score-main{
    display:flex!important;flex-wrap:nowrap!important;gap:4px!important;
    align-items:center!important;justify-content:space-between;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-instrument-label{
    font-size:11px!important;font-weight:700!important;white-space:nowrap;
    flex:1 1 52px;min-width:35px;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-instrument-label::before{
    width:5px;height:5px;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-score-buttons{
    display:flex;flex-wrap:nowrap!important;gap:4px!important;align-items:center;flex:0 0 auto;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card button.dhtl-preview,
.dhtl-library.dhtl-card-layout .dhtl-compact-card a.dhtl-download{
    min-height:29px!important;padding:5px 7px!important;border-radius:5px!important;
    font-size:11px!important;line-height:1.2!important;font-weight:700!important;
    margin:0!important;white-space:nowrap;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue{
    margin:0!important;padding:0!important;border:0;position:relative;
    width:18px;flex:0 0 18px;max-width:none;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue summary{
    width:18px;height:29px;display:flex;align-items:center;justify-content:center;
    font-size:18px;line-height:1!important;color:#60758a;
    list-style:none;cursor:pointer;text-decoration:none;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue summary::-webkit-details-marker{display:none}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue[open]{
    background:transparent;padding:0;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue[open] form{
    position:absolute;z-index:10;right:0;top:32px;width:min(265px,76vw);
    background:#fff;border:1px solid #b6cee5;border-radius:7px;
    box-shadow:0 8px 25px rgba(0,36,70,.17);padding:11px;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue textarea{width:100%}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-compact-issue label{font-size:11px}
@media(max-width:660px){
    .dhtl-library.dhtl-card-layout .dhtl-cards-grid{grid-template-columns:minmax(0,1fr)!important}
    .dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-header{padding:12px!important}
}
/* Keep the optional score-report popover visible beyond the compact card edges. */
.dhtl-library.dhtl-card-layout .dhtl-compact-card{position:relative;overflow:visible!important}
.dhtl-library.dhtl-card-layout .dhtl-compact-card:has(.dhtl-compact-issue[open]){z-index:20}
/* Rows size to their content: a one-instrument tune does not inherit the
   height of the four-instrument tune beside it. */
.dhtl-library.dhtl-card-layout .dhtl-cards-grid{align-items:start!important}
.dhtl-library.dhtl-card-layout .dhtl-compact-card{align-self:start;height:auto!important}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-scores{margin-top:0!important}


/* v2.5.3 — instrument labels have a dedicated full-width line above the actions.
   Avoid squeezing labels behind Preview and Download in narrow cards/themes. */
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-score-main{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:7px!important;
    min-width:0!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-instrument-line{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    column-gap:7px!important;
    row-gap:2px!important;
    width:100%!important;
    min-width:0!important;
    font-size:12px!important;
    line-height:1.5!important;
    font-weight:700!important;
    color:#274d6c!important;
    overflow-wrap:anywhere!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-instrument-name{
    display:inline!important;
    min-width:0!important;
    white-space:normal!important;
    font-size:inherit!important;
    color:inherit!important;
    font-weight:inherit!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-instrument-separator{
    display:inline!important;
    flex:none!important;
    font-size:11px!important;
    color:#9bb5ca!important;
    font-weight:400!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-score-buttons{
    width:100%!important;
    min-width:0!important;
    flex:0 1 auto!important;
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:6px!important;
}

/* Single tunes must stay compact too: auto-fill keeps unused columns
   instead of stretching a lone tune card across the section. */
.dhtl-library.dhtl-card-layout .dhtl-cards-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr))!important;
}
/* v2.5.4 — actual separate, semantic rows; don't depend on the previous
   flex-based dhtl-card-score-main, which some themes shrink/override. */
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-card-score{
  display:block!important;position:relative!important;min-width:0!important;width:100%!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-instrument-row{
  display:block!important;float:none!important;position:relative!important;
  clear:both!important;width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0 0 7px!important;padding:0!important;white-space:normal!important;
  overflow-wrap:anywhere!important;color:#005eb8!important;font-size:12px!important;
  font-weight:700!important;line-height:1.5!important;text-align:left!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-action-row{
  display:flex!important;float:none!important;position:relative!important;
  clear:both!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:flex-start!important;gap:6px!important;min-width:0!important;width:100%!important;
}

/* v2.5.5 — explicit, always-visible issue reporting below the download actions.
   Form opens within the card rather than obscuring neighbouring controls. */
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row{
    display:block!important;clear:both!important;width:100%!important;
    min-width:0!important;margin:8px 0 1px!important;padding:0!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue{
    display:block!important;position:relative!important;width:100%!important;
    min-width:0!important;max-width:none!important;margin:0!important;
    padding:0!important;border:0!important;background:transparent!important;
    box-shadow:none!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue>summary{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:5px!important;width:auto!important;height:auto!important;min-height:29px!important;
    max-width:100%!important;box-sizing:border-box!important;padding:5px 9px!important;
    border:1px solid #acc9e2!important;border-radius:5px!important;
    background:#eef6ff!important;color:#004a93!important;
    font-size:11px!important;font-weight:700!important;line-height:1.3!important;
    cursor:pointer!important;list-style:none!important;text-decoration:none!important;
    white-space:nowrap!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue>summary:hover{
    border-color:#005eb8!important;background:#e3f0ff!important;color:#003d7c!important;
    text-decoration:none!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue>summary:focus-visible{
    outline:2px solid #005eb8!important;outline-offset:2px!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-report-icon{
    color:#005eb8!important;font-size:15px!important;line-height:1!important;
    font-weight:700!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue[open]{
    padding:0!important;border:0!important;background:transparent!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue[open]>form{
    display:block!important;position:static!important;inset:auto!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    margin:8px 0 0!important;padding:11px!important;background:#fff!important;
    border:1px solid #c8dce9!important;border-radius:7px!important;
    box-shadow:none!important;z-index:auto!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card details.dhtl-compact-issue[open]>form textarea{
    box-sizing:border-box!important;width:100%!important;min-width:0!important;
}

/* v2.5.6 — exact flag + text link, not a boxed or filled button.
   Keep the report UI below score actions, including under theme/Elementor styling. */
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row {
    display:block!important; width:100%!important; min-width:0!important;
    clear:both!important; margin:8px 0 2px!important; padding:0!important;
    text-align:left!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue {
    display:block!important; position:static!important; width:100%!important; max-width:none!important;
    min-width:0!important; margin:0!important; padding:0!important;
    border:0!important; border-radius:0!important; background:transparent!important;
    box-shadow:none!important; overflow:visible!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue > summary.dhtl-report-trigger {
    display:inline-flex!important; align-items:center!important; justify-content:flex-start!important;
    gap:5px!important; width:auto!important; max-width:100%!important; height:auto!important;
    min-height:26px!important; margin:0!important; padding:0!important;
    border:0!important; border-radius:0!important; background:transparent!important;
    box-shadow:none!important; color:#005eb8!important; cursor:pointer!important;
    font-family:inherit!important; font-size:12px!important; font-weight:600!important;
    line-height:1.35!important; letter-spacing:normal!important; text-transform:none!important;
    text-decoration:none!important; white-space:nowrap!important; list-style:none!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue > summary.dhtl-report-trigger::marker {content:''}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue > summary.dhtl-report-trigger::-webkit-details-marker {display:none!important}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row .dhtl-report-icon {
    display:block!important; flex:0 0 16px!important; width:16px!important; height:16px!important;
    stroke:#005eb8!important; fill:none!important; margin:0!important; padding:0!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row .dhtl-report-text {
    display:inline!important; color:inherit!important; font-weight:inherit!important; font-size:inherit!important;
    background:none!important; border:0!important; padding:0!important; margin:0!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue > summary.dhtl-report-trigger:hover .dhtl-report-text {
    text-decoration:underline!important; text-underline-offset:2px!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue > summary.dhtl-report-trigger:focus-visible {
    outline:2px solid #005eb8!important; outline-offset:3px!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card .dhtl-score-report-row details.dhtl-compact-issue[open] > form {
    display:block!important; position:static!important; inset:auto!important;
    width:100%!important; max-width:100%!important; box-sizing:border-box!important;
    margin:9px 0 0!important; padding:11px!important; z-index:auto!important;
    border:1px solid #c8dce9!important; border-radius:7px!important;
    background:#fff!important; box-shadow:none!important;
}

/* v2.5.7 — no <summary> theme interference, real button with form below it. */
.dhtl-library .dhtl-compact-card .dhtl-issue-control,
.dhtl-library .dhtl-compact-card .dhtl-issue-panel {display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;position:static!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-control>button.dhtl-report-toggle {
  all:unset!important;display:inline-flex!important;align-items:center!important;gap:5px!important;
  width:auto!important;min-height:26px!important;box-sizing:border-box!important;cursor:pointer!important;
  padding:2px 0!important;margin:0!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;color:#005eb8!important;
  font-family:inherit!important;font-size:12px!important;line-height:1.5!important;font-weight:600!important;
  letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;
}
.dhtl-library .dhtl-compact-card .dhtl-issue-control>button.dhtl-report-toggle:hover .dhtl-report-text {text-decoration:underline!important;text-underline-offset:2px!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-control>button.dhtl-report-toggle:focus-visible {outline:2px solid #005eb8!important;outline-offset:2px!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-control .dhtl-report-icon {display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;stroke:currentColor!important;fill:none!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-control .dhtl-issue-panel[hidden] {display:none!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-control .dhtl-issue-panel:not([hidden]) {display:block!important;margin-top:8px!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-panel>form {display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #c8dce9!important;border-radius:7px!important;box-shadow:none!important;padding:11px!important;margin:0!important}
.dhtl-library .dhtl-compact-card .dhtl-issue-panel textarea {box-sizing:border-box!important;width:100%!important}


/* v2.5.9 — clear, RSPBA-blue instrument file chooser. */
.dhtl-library.dhtl-card-layout .dhtl-compact-card button.dhtl-score-choose.dhtl-download {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  cursor:pointer!important;background:#005eb8!important;color:#fff!important;
  border:1px solid #005eb8!important;border-radius:5px!important;
  padding:5px 9px!important;min-height:29px!important;width:auto!important;
  text-transform:none!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important;
}
.dhtl-library.dhtl-card-layout .dhtl-compact-card button.dhtl-score-choose.dhtl-download:hover {background:#004a93!important;color:#fff!important;}
.dhtl-library .dhtl-score-picker {
  width:min(510px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;
  box-sizing:border-box!important;padding:20px!important;border-radius:12px!important;
  border:1px solid #b6cee5!important;background:#fff!important;color:#243849!important;
  box-shadow:0 16px 48px rgba(16,41,65,.24)!important;
  position:fixed!important;inset:0!important;margin:auto!important;
  overflow:auto!important;max-height:85vh!important;z-index:999999!important;
}
.dhtl-library .dhtl-score-picker:not([open]) {display:none!important;}
.dhtl-library .dhtl-score-picker[open] {display:block!important;}
.dhtl-library .dhtl-score-picker::backdrop {background:rgba(8,26,46,.62)!important;}
.dhtl-library .dhtl-picker-heading {display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0 0 5px!important;}
.dhtl-library .dhtl-picker-heading strong {font-size:17px!important;line-height:1.4!important;color:#005eb8!important;font-weight:750!important;}
.dhtl-library .dhtl-picker-help {margin:0 0 15px!important;color:#516778!important;line-height:1.5!important;font-size:13px!important;}
.dhtl-library .dhtl-picker-options {padding:0!important;margin:0!important;list-style:none!important;display:grid!important;gap:9px!important;}
.dhtl-library .dhtl-picker-option {display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;padding:12px!important;list-style:none!important;margin:0!important;background:#f5f9fd!important;border:1px solid #dce8f3!important;border-radius:8px!important;}
.dhtl-library .dhtl-picker-instruments {font-size:13px!important;font-weight:700!important;line-height:1.45!important;color:#005eb8!important;overflow-wrap:anywhere!important;}
.dhtl-library .dhtl-picker-actions {display:flex!important;flex-wrap:wrap!important;gap:7px!important;flex:none!important;}
.dhtl-library .dhtl-picker-option button.dhtl-preview,.dhtl-library .dhtl-picker-option a.dhtl-download {display:inline-flex!important;padding:7px 10px!important;margin:0!important;min-height:33px!important;border-radius:6px!important;font-size:12px!important;font-weight:700!important;line-height:1.25!important;white-space:nowrap!important;text-decoration:none!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;}
.dhtl-library .dhtl-picker-option button.dhtl-preview {background:#fff!important;color:#005eb8!important;border:1px solid #b6cee5!important;cursor:pointer!important;}
.dhtl-library .dhtl-picker-option a.dhtl-download {background:#005eb8!important;color:#fff!important;border:1px solid #005eb8!important;}
.dhtl-library .dhtl-picker-close {cursor:pointer!important;font-family:inherit!important;}
.dhtl-library .dhtl-picker-heading .dhtl-picker-close {flex:0 0 auto!important;background:transparent!important;border:0!important;padding:0 5px!important;font-size:24px!important;line-height:1!important;color:#44627a!important;}
.dhtl-library .dhtl-picker-cancel {display:block!important;margin:16px 0 0 auto!important;color:#005eb8!important;background:#fff!important;border:1px solid #b6cee5!important;border-radius:6px!important;padding:7px 13px!important;}
.dhtl-library .dhtl-score-picker :is(button,a):focus-visible {outline:2px solid #005eb8!important;outline-offset:3px!important;}
.dhtl-library .dhtl-report-file-options {padding:10px!important;background:#fff!important;border:1px solid #c8dce9!important;border-radius:7px!important;margin-top:7px!important;}
.dhtl-library .dhtl-report-file-options>p {font-size:12px!important;margin:0 0 8px!important;}
.dhtl-library .dhtl-report-file {padding:8px 0!important;border-top:1px solid #e6edf3!important;}
.dhtl-library .dhtl-report-file>strong {display:block!important;font-size:12px!important;color:#005eb8!important;margin-bottom:3px!important;}
.dhtl-library .dhtl-report-file .dhtl-issue-control {margin:0!important;padding:0!important;}
.dhtl-library .dhtl-report-file-options[hidden] {display:none!important;}
@media (max-width:460px) {.dhtl-library .dhtl-picker-option {align-items:stretch!important;flex-direction:column!important}.dhtl-library .dhtl-picker-actions{flex-wrap:wrap!important;}}
