:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d293d;background:#f5f7fb;font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}button{cursor:pointer}
.shell{max-width:1660px;padding:0 40px 32px;margin:0 auto}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e9f0}.identity{display:flex;gap:12px;align-items:center}.mark{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;background:#172d50;color:white;font-weight:800;font-size:20px;letter-spacing:-1px}.brand-name{font-weight:750;font-size:15px;letter-spacing:-.3px}.brand-subtitle{font-size:11px;color:#8190a4;margin-top:2px}.mode-label{color:#587084;background:#e8eef5;border:1px solid #e0e8f1;padding:8px 12px;border-radius:100px;font-size:12px;font-weight:600}.mode-filename{font-weight:450;color:#8290a4}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3fba8b;margin-right:7px}.intro{display:flex;justify-content:space-between;align-items:center;margin:42px 0 30px;gap:24px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#597aad;margin:0 0 10px}h1{font-size:34px;line-height:1.16;margin:0;letter-spacing:-1.5px;font-weight:780}.description{margin:12px 0 0;color:#738198;font-size:14px}.stats{text-align:right;border-left:1px solid #e1e7ee;padding-left:32px;min-width:142px}.stat-number{font-size:27px;font-weight:780;letter-spacing:-.8px}.stat-label{font-size:12px;color:#64748b;margin-top:1px}.stat-secondary{font-size:11px;color:#96a4b5;margin-top:6px}.panel{background:white;border-radius:15px;border:1px solid #e7ecf2;box-shadow:0 3px 25px rgba(21,42,73,.035);overflow:hidden}.toolbar{display:flex;align-items:center;padding:21px 24px;gap:10px;flex-wrap:wrap}.search-field{display:flex;align-items:center;position:relative;min-width:250px;max-width:520px;flex:1}.search-icon{position:absolute;left:14px;color:#91a0b0;pointer-events:none}.search-field input{height:39px;border:1px solid #dde5ed;border-radius:8px;outline:0;padding:0 12px 0 41px;width:100%;background:#fff}.search-field input:focus,.filters-row input:focus,select:focus{outline:2px solid #86abe1;outline-offset:0;border-color:#4d85d5}.search-field input::placeholder,.filters-row input::placeholder{color:#acb5c2}.per-page-label{color:#77849a;font-size:12px;margin-left:auto;white-space:nowrap}select{height:39px;background:#fff;border:1px solid #dde5ed;padding:0 9px;border-radius:8px;color:#25354d;min-width:68px}.btn{border:1px solid transparent;border-radius:8px;height:39px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:650;font-size:12px;white-space:nowrap}.btn-primary{background:#2359a2;color:white}.btn-primary:hover{background:#184982}.btn-reset{color:#607189;background:#f3f6fa;border-color:#e7ecf3}.btn-reset:hover{background:#e9eff7}.table-scroll{overflow-x:auto;max-width:100%;border-top:1px solid #ecf0f5;outline-offset:-2px}.table-scroll:focus-visible{outline:2px solid #b2cbee}table{border-collapse:separate;border-spacing:0;min-width:1870px;width:100%;text-align:left;table-layout:auto}th,td{border-bottom:1px solid #edf1f5;text-align:left}thead th{background:#f8fafc}.header-row th{height:45px;white-space:nowrap;color:#63748a;font-size:11px;text-transform:uppercase;font-weight:750;letter-spacing:.45px}.column-sort{display:flex;gap:7px;align-items:center;padding:0 16px;height:45px;text-decoration:none}.column-sort:hover{color:#225da3;background:#f0f5fc}.column-sort.sorted{color:#245c9c}.sort-icon{font-size:13px;font-weight:700;color:#b1bfcd}.column-sort.sorted .sort-icon{color:#245c9c}.filters-row th{height:51px;padding:8px 9px}.filters-row input{border:1px solid #e2e7ef;background:white;border-radius:6px;width:100%;min-width:93px;max-width:230px;height:32px;font-size:12px;padding:0 9px;outline:0;color:#304057}.filters-row .number-column{padding:0 16px}.number-column{width:64px;min-width:64px;max-width:64px;left:0;position:sticky;z-index:2;background:#fff;text-align:right;padding:0 14px!important}.header-row .number-column,.filters-row .number-column{z-index:4;background:#f8fafc;text-align:left}.title-column{min-width:220px;width:250px;position:sticky;left:64px;z-index:1;background:#fff}.header-row .title-column,.filters-row .title-column{z-index:3;background:#f8fafc}td{height:49px;padding:9px 16px;color:#42536a;font-size:12.5px;max-width:330px}.title-cell{font-weight:650;color:#273750}.row-id{font-size:11px;color:#a8b1bf;font-variant-numeric:tabular-nums}tbody tr:hover td{background:#f8fbff}.cell-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:290px}.title-cell .cell-text{max-width:224px}.no-results{text-align:center;height:220px;padding:35px}.empty-title{font-size:17px;font-weight:700}.no-results p{color:#8896a8}.no-results a{color:#2259a2}.table-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:18px 24px}.result-count{color:#8490a3;font-size:12px;margin:0}.result-count strong{color:#384961;font-weight:700}.pagination{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.page-link{min-width:32px;height:33px;display:inline-flex;justify-content:center;align-items:center;border-radius:7px;text-decoration:none;padding:0 8px;color:#65748c;font-size:12px;font-weight:600}.page-link:hover{background:#f0f5fb}.page-link.current{background:#e8f0fb;color:#245c9d;pointer-events:none}.page-prev,.page-next{padding:0 10px}.page-ellipsis{padding:0 4px;color:#a1acba}.footnote{font-size:11px;color:#9ba8b8;padding:8px 3px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.shell{padding:0 16px 24px}.topbar{height:75px}.intro{margin:28px 0 20px}.toolbar{padding:15px;gap:8px}.per-page-label{margin-left:0}.search-field{min-width:100%;max-width:none}.stats{padding-left:15px;min-width:90px}.stat-number{font-size:22px}h1{font-size:28px}.table-footer{padding:14px 15px}.mode-filename{display:none}}
@media(max-width:520px){.description{font-size:12px}.stats{display:none}.brand-subtitle{display:none}.mode-label{font-size:11px}.page-prev,.page-next{font-size:11px}.btn{padding:0 10px}.table-footer{align-items:flex-start;flex-direction:column}}

/* Page jumps stay visually distinct from regular page numbers. */
.pagination{gap:8px;justify-content:flex-end}
.pagination-jumps,.pagination-pages{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.pagination-jumps{padding:0 6px;border-left:1px solid #e4eaf1;border-right:1px solid #e4eaf1}
.page-jump{font-variant-numeric:tabular-nums;min-width:42px;background:#f4f7fb}
.page-link.disabled{opacity:.36;cursor:default;pointer-events:none}
@media(max-width:900px){.pagination{justify-content:flex-start}.pagination-jumps{padding:0 4px}}

/* Restrained two-line catalog introduction (eyebrow removed). */
.intro-copy{border-left:3px solid #376da9;padding:3px 0 4px 19px}
.intro-copy h1{font-size:32px;letter-spacing:-1.15px}
.intro-copy .description{margin-top:9px;line-height:1.55;max-width:540px}
@media(max-width:900px){.intro-copy{padding-left:14px}.intro-copy h1{font-size:27px}}
@media(max-width:520px){.brand-name{font-size:12px;line-height:1.3}.topbar{gap:8px}.identity{min-width:0}.brand-name{overflow-wrap:anywhere}.mode-label{flex-shrink:0}.intro-copy h1{font-size:25px}}

/* # is a sortable, sticky source-position column. */
.header-row .number-column{padding:0!important}
.header-row .number-column .column-sort{padding:0 10px;justify-content:flex-end;gap:5px}

/* Single-account sign-in and header action. */
.topbar-actions{display:flex;align-items:center;gap:12px}
.logout-form{margin:0}
.btn-logout{background:#fff;color:#3d5b7c;border-color:#dbe4ee}
.btn-logout:hover{background:#eef4fa}
.login-main{min-height:calc(100vh - 110px);display:flex;align-items:center;justify-content:center;padding:48px 0 100px}
.login-card{width:100%;max-width:420px;border:1px solid #e3eaf2;border-radius:16px;background:#fff;padding:36px;box-shadow:0 14px 55px rgba(24,47,80,.065)}
.login-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;color:#5275a0;font-weight:800;margin-bottom:13px}
.login-card h1{font-size:31px;letter-spacing:-.9px}
.login-description{color:#77879a;line-height:1.5;margin:12px 0 28px}
.login-form{display:flex;flex-direction:column;gap:10px}
.login-form label{font-size:12px;font-weight:750;color:#40536b}
.login-form input{height:42px;border:1px solid #dce5ef;border-radius:8px;padding:0 13px;margin-bottom:10px;outline:0;color:#1d293d;background:#fff}
.login-form input:focus{border-color:#4d85d5;outline:2px solid #86abe1}
.login-submit{height:42px;font-size:13px;margin-top:5px;width:100%}
.login-error{border:1px solid #edb5ba;background:#fff3f3;color:#9f2c38;border-radius:8px;padding:12px;font-size:12px;line-height:1.5;margin-bottom:12px}
@media(max-width:720px){.topbar-actions{gap:6px}.btn-logout{padding:0 10px}.login-card{padding:28px}.login-main{padding:32px 0 70px}}
@media(max-width:520px){.topbar-actions .mode-label{display:none}.login-main{min-height:calc(100vh - 85px)}}


/* Convenient table navigation at both ends; upper controls stay compact. */
.table-top-controls{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;padding:11px 24px;background:#fbfcfe;border-top:1px solid #edf1f6}
.table-top-page-label{font-size:12px;color:#7c8ba0;white-space:nowrap}
.table-top-page-label strong{color:#40546e;font-weight:700}
.table-top-controls .pagination{justify-content:flex-end}
.table-scrollbar-top{height:17px;overflow-x:auto;overflow-y:hidden;max-width:100%;background:#fbfcfe;overscroll-behavior-x:contain;border-top:1px solid #edf1f6}
.table-scrollbar-top:focus-visible{outline:2px solid #b2cbee;outline-offset:-2px}
.table-scrollbar-spacer{height:1px;min-width:100%;pointer-events:none}
@media(max-width:900px){.table-top-controls{padding:12px 15px}.table-top-controls .pagination{justify-content:flex-start}}

/* v8: compact boundary navigation, with only the +/-1000 page jumps. */
.pagination-edge{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.page-edge{padding:0 10px;white-space:nowrap}
.pagination-jumps{border:0;padding:0 4px}
@media(max-width:900px){.pagination-jumps{padding:0 2px}}


/* v9: fluid, viewport-aware catalog. Layout updates with browser resizing. */
.shell{width:100%;max-width:none;margin-inline:auto;padding:0 clamp(12px,2vw,36px) 32px}
main,.panel,.table-scroll{min-width:0;width:100%}
.topbar .identity{min-width:0}
.panel{max-width:100%}
/* Fixed table layout makes extra screen width usable by *all* columns instead
   of assigning it unpredictably according to the longest cell in the page. */
.table-scroll table{width:100%;min-width:1870px;table-layout:fixed}
.table-scroll th:not(.number-column),.table-scroll td:not(.number-column){min-width:0}
.table-scroll .title-column{width:clamp(260px,16vw,460px);min-width:0;max-width:none}
.table-scroll td{max-width:none}
.table-scroll .cell-text,.table-scroll .title-cell .cell-text{max-width:none}
.table-scroll .filters-row input{width:100%;min-width:0;max-width:none}
.search-field{max-width:clamp(520px,38vw,960px)}
/* Split jump buttons: compact number + small native selector chevron.
   A native select keeps keyboard support and opens the browser option list. */
.pagination-jump-split{display:inline-flex;align-items:stretch;flex-shrink:0;overflow:visible;border:1px solid #dce5f0;border-radius:8px;background:#f6f9fd;white-space:nowrap}
.pagination-jump-split .page-jump{height:31px;min-width:53px;border-radius:7px 0 0 7px;background:transparent;color:#365b85;font-weight:700;padding:0 8px}
.pagination-jump-split .page-jump:not(.disabled):hover{background:#e7f0fb;color:#184e91}
.pagination-jump-split .page-jump.disabled{opacity:.36}
.pagination-jump-split .page-jump-select{appearance:none;-webkit-appearance:none;width:26px;min-width:26px;height:31px;border:0;border-left:1px solid #dce5f0;border-radius:0 7px 7px 0;padding:0;margin:0;cursor:pointer;color:transparent;font-size:0;background-color:#f4f8fd;background-repeat:no-repeat;background-position:center;background-size:11px 11px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 6 5 5 5-5' stroke='%23546f8d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.pagination-jump-split .page-jump-select:hover{background-color:#e7f0fb}
.pagination-jump-split .page-jump-select:focus-visible{outline:2px solid #3e7eca;outline-offset:2px}
.pagination-jump-split .page-jump-select option{color:#294460;font-size:12px;background:#fff}
.pagination{gap:9px}
.pagination-edge,.pagination-pages{flex-shrink:0}
@media(max-width:900px){
    .shell{padding-inline:clamp(12px,2vw,22px)}
    .search-field{max-width:none}
    .table-top-controls{align-items:flex-start;flex-direction:column}
    .table-top-controls .pagination{justify-content:flex-start}
}
@media(max-width:720px){
    .topbar{height:auto;min-height:78px;flex-wrap:wrap;gap:10px;padding-block:13px}
    .topbar-actions{margin-left:auto}
    .table-footer{align-items:flex-start;flex-direction:column}
    .pagination{justify-content:flex-start;gap:7px}
}
@media(max-width:520px){
    .shell{padding-inline:12px}
    .toolbar{align-items:stretch}
    .pagination-edge{gap:1px}
    .page-link{padding-inline:6px;min-width:29px}
}


/* v10: keep this data-heavy catalog close to the top of the viewport. */
.topbar{margin-bottom:16px}
.topbar-actions{flex-wrap:wrap;justify-content:flex-end}
.song-count-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #e0e8f1;border-radius:100px;padding:8px 12px;background:#eff4fa;color:#586c85;font-size:12px;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.song-count-badge strong{color:#203b60;font-weight:800}

/* Highlight only applied filters; Reimposta filtri clears all of them. */
.active-filter-badge{display:inline-flex;align-items:center;border:1px solid #c7dcf3;background:#eaf3fd;color:#22599d;border-radius:100px;padding:6px 10px;font-size:12px;font-weight:750;white-space:nowrap}
.search-field .filter-active,.filters-row input.filter-active{border-color:#6f9ed5;background:#f4f9ff;color:#213f67}

/* Compact table density. For reliable sticky headers when horizontal scrolling
   is enabled, this wrapper also owns the vertical scroll (rather than the page). */
.table-scroll{overflow:auto;max-height:clamp(300px,calc(100dvh - 265px),1050px);overscroll-behavior:contain}
.table-scroll tbody td{height:40px;padding:6px 12px;line-height:1.35}
.table-scroll .number-column{padding-left:9px!important;padding-right:9px!important}
.table-scroll .header-row th,.table-scroll .header-row .column-sort{height:40px}
.table-scroll .filters-row th{height:45px;padding:6px 8px}
.table-scroll .filters-row input{height:30px;font-size:12px}

/* Make both the headings and column-filter inputs stay in view while scrolling
   vertically through 25-200 songs. Maintain sticky # and title columns too. */
.table-scroll thead .header-row th{position:sticky;top:0;z-index:8;background:#f8fafc}
.table-scroll thead .filters-row th{position:sticky;top:40px;z-index:7;background:#f8fafc;box-shadow:0 2px 0 #dfe7f1}
.table-scroll thead .header-row .title-column{z-index:12;left:64px}
.table-scroll thead .header-row .number-column{z-index:13;left:0}
.table-scroll thead .filters-row .title-column{z-index:10;left:64px}
.table-scroll thead .filters-row .number-column{z-index:11;left:0}
/* Existing .cell-text ellipsis and native title hover already cover long text. */
@media(max-width:720px){
    .topbar{margin-bottom:12px}
    .song-count-badge{padding:6px 9px;font-size:11px}
    .table-scroll{max-height:clamp(250px,calc(100dvh - 245px),900px)}
}
