/* Multiplex UI v2 — scoped app skin, reader/player contracts remain separate. */
html[data-app-ui="v2"] {
 --mp-bg:#f6f5f1;--mp-panel:#fffefa;--mp-soft:#efeee8;--mp-text:#252621;--mp-muted:#696a61;--mp-line:#deded3;--mp-accent:#536347;--mp-on:#fff;--mp-danger:#a42c2c;
 --mp-radius:16px;--mp-shadow:0 8px 28px #2626190b;--mp-nav-width:216px;--mp-header-height:64px;
 --bg:var(--mp-bg);--panel:var(--mp-panel);--soft:var(--mp-soft);--input-bg:var(--mp-panel);--text:var(--mp-text);--muted:var(--mp-muted);--line:var(--mp-line);--border:var(--mp-line);--accent:var(--mp-accent);--accent-strong:var(--mp-accent);--accent-contrast:var(--mp-on);--primary-color:var(--mp-accent);--danger:var(--mp-danger);--topbar-bg:var(--mp-panel);--shadow:#00000012;--chip:var(--mp-soft);--success-bg:color-mix(in srgb,var(--mp-accent) 12%,var(--mp-panel));--success-text:var(--mp-accent);--theme-hover-bg:var(--mp-soft);--theme-hover-text:var(--mp-text);--theme-hover-border:var(--mp-accent);
 color-scheme:light;
}
html[data-app-ui="v2"][data-theme="dark"] {--mp-bg:#161715;--mp-panel:#20211e;--mp-soft:#2b2d28;--mp-text:#ecece3;--mp-muted:#b3b6a8;--mp-line:#42443b;--mp-accent:#e7ba68;--mp-on:#242014;--mp-danger:#f39b91;--mp-shadow:0 8px 28px #0002;color-scheme:dark;}
html[data-app-ui="v2"][data-theme="deepdark"] {--mp-bg:#000;--mp-panel:#080808;--mp-soft:#171717;--mp-text:#eee;--mp-muted:#aaa;--mp-line:#373737;--mp-accent:#ddd;--mp-on:#000;--mp-danger:#f3a3a3;--mp-shadow:none;color-scheme:dark;}
html[data-app-ui="v2"][data-theme="eye"] {--mp-bg:#eee4ce;--mp-panel:#f8f0de;--mp-soft:#e8ddc4;--mp-text:#453b2e;--mp-muted:#75634b;--mp-line:#c8b99a;--mp-accent:#725b37;--mp-on:#fff8e7;--mp-shadow:none;}
html[data-app-ui="v2"][data-theme="eink"] {--mp-bg:#fff;--mp-panel:#fff;--mp-soft:#fff;--mp-text:#000;--mp-muted:#333;--mp-line:#333;--mp-accent:#000;--mp-on:#fff;--mp-danger:#000;--mp-shadow:none;--mp-radius:6px;}
html[data-app-ui="v2"][data-theme="kaleido"] {--mp-bg:#f2f1e9;--mp-panel:#fffef5;--mp-soft:#e5e9dd;--mp-text:#1e2c29;--mp-muted:#4e6058;--mp-line:#708576;--mp-accent:#365e4e;--mp-on:#fff;--mp-shadow:none;--mp-radius:8px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) {background:var(--mp-bg);color:var(--mp-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;line-height:1.5;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) *,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) *::before,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) *::after {box-sizing:border-box;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page {width:auto;max-width:1600px;margin:0 0 0 var(--mp-nav-width);padding:calc(var(--mp-header-height) + 28px) clamp(20px,2.5vw,40px) 40px;min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar {position:fixed!important;inset:0 0 auto 0!important;display:flex!important;align-items:center;gap:12px;height:var(--mp-header-height)!important;min-height:var(--mp-header-height)!important;padding:0 24px!important;background:var(--mp-panel)!important;border:0!important;border-bottom:1px solid var(--mp-line)!important;box-shadow:none!important;z-index:90;backdrop-filter:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .brand {display:flex;align-items:center;gap:10px;min-width:0;max-width:280px;padding:0!important;color:var(--mp-text);font-size:17px;font-weight:750;letter-spacing:-.04em;text-decoration:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .brand img {width:30px;height:30px;border-radius:8px;object-fit:contain;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .brand span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-header-tools {display:flex;align-items:center;gap:8px;margin-left:auto;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-location {font-size:13px;color:var(--mp-muted);margin-right:16px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-icon-button,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar .mp-icon-button {width:42px;min-width:42px;height:42px;min-height:42px;display:inline-grid;place-items:center;padding:9px!important;background:transparent!important;color:var(--mp-text)!important;border:1px solid var(--mp-line)!important;border-radius:12px!important;line-height:1;cursor:pointer;box-shadow:none!important;font-size:22px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-icon-button svg {display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-shell {position:fixed!important;inset:var(--mp-header-height) auto 0 0!important;width:var(--mp-nav-width)!important;height:calc(100dvh - var(--mp-header-height));max-width:none!important;display:flex!important;flex-direction:column;gap:8px;align-items:stretch!important;padding:24px 12px;background:var(--mp-panel);border-right:1px solid var(--mp-line);overflow:auto;overscroll-behavior:contain;transform:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-arrow {display:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] {display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:flex-start!important;overflow:visible!important;gap:3px!important;min-width:0!important;width:100%!important;flex:none!important;padding:0!important;scrollbar-width:thin;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a {display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px;min-width:0!important;min-height:44px!important;height:auto!important;width:100%;padding:11px 14px!important;border:0!important;border-radius:10px!important;font-size:14px!important;font-weight:550!important;line-height:1.4!important;white-space:nowrap;background:transparent!important;color:var(--mp-muted)!important;text-decoration:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a:hover {background:var(--mp-soft)!important;color:var(--mp-text)!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a.active {background:var(--success-bg)!important;color:var(--mp-accent)!important;font-weight:750!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-icon {display:block;flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-group {padding:21px 14px 8px;color:var(--mp-muted);font-size:10px;font-weight:700;letter-spacing:.12em;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-group:first-child {padding-top:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-heading {display:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-backdrop[hidden] {display:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-skip {position:fixed;top:-80px;left:16px;z-index:99999;padding:12px 20px;background:var(--mp-accent);color:var(--mp-on);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-skip:focus {top:8px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog {width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid var(--mp-line);border-radius:20px;color:var(--mp-text);background:var(--mp-panel);box-shadow:0 24px 80px #0004;overflow:auto;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog:not([open]) {display:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog::backdrop {background:#1118;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog-heading {display:flex;gap:20px;align-items:center;justify-content:space-between;margin:0 0 12px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog-heading h2 {font-size:21px;font-weight:700;margin:3px 0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog-heading small {color:var(--mp-muted);font-size:10px;letter-spacing:.14em;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog-description {color:var(--mp-muted);font-size:13px;margin:0 0 20px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-theme-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-theme-choices button {display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:12px!important;border:1px solid var(--mp-line)!important;border-radius:12px!important;background:var(--mp-soft)!important;color:var(--mp-text)!important;text-align:left;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-theme-choices button[aria-pressed="true"] {outline:2px solid var(--mp-accent);outline-offset:1px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-theme-choices small {font-size:11px;color:var(--mp-muted);line-height:1.5;}
.mp-theme-preview {height:55px;width:100%;display:grid;gap:5px;align-content:center;padding:10px;border-radius:7px;border:1px solid #8886;background:#fff;color:#46543d;}
.mp-theme-preview i {height:4px;width:80%;background:currentColor;opacity:.75;border-radius:2px;}.mp-theme-preview i:first-child{width:45%;opacity:1;}.mp-theme-preview i:last-child{width:60%;opacity:.4;}
.mp-preview-dark{background:#20211e;color:#e7ba68}.mp-preview-deepdark{background:#000;color:#ddd}.mp-preview-eye{background:#eee4ce;color:#725b37}.mp-preview-eink{background:#fff;color:#000}.mp-preview-kaleido{background:#e5e9dd;color:#365e4e}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #mp-account-dialog .user-menu {display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important;position:static!important;width:100%;margin:0;padding:8px 0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #mp-account-dialog .account-badge {grid-column:1/-1;max-width:none!important;display:block;padding:12px;background:var(--mp-soft);border:0;border-radius:10px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #mp-account-dialog .account-badge small {margin-left:8px;color:var(--mp-muted);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #mp-account-dialog .user-menu a,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #mp-account-dialog .user-menu button {width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--mp-text);background:var(--mp-soft);border:1px solid var(--mp-line);border-radius:10px;padding:10px;font-size:13px;text-decoration:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .section-title {gap:16px;margin:0 0 22px;flex-wrap:wrap;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) h1 {font-size:clamp(23px,2.2vw,30px);letter-spacing:-.045em;line-height:1.25;color:var(--mp-text);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .section-title h1 {margin:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .section-title h2 {font-size:20px;letter-spacing:-.025em;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) p {overflow-wrap:anywhere;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .toolbar,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-panel,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .stats-card,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .stat-card,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .preview-panel,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .progress-panel,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-metadata-panel,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-admin-panel,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .file-info-panel {background:var(--mp-panel);color:var(--mp-text);border:1px solid var(--mp-line);border-radius:var(--mp-radius);box-shadow:none;padding:20px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.settings-panel,.toolbar) :is(input,select,textarea),html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(input[type="search"],input[type="text"],input[type="password"],input[type="number"],select) {min-width:0;min-height:42px;border:1px solid var(--mp-line);border-radius:9px;padding:9px 12px;background:var(--mp-panel);color:var(--mp-text);font:inherit;font-size:14px;box-shadow:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) input[type="checkbox"],html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) input[type="radio"] {accent-color:var(--mp-accent);min-height:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(button,.button,summary.button):not(:where(.mp-icon-button,.favorite-button,.games-favorite,.music-round,.music-play,.music-window-btn,.music-visualizer-mode,.tv-favorite,.youtube-fav,.ks-nav-item,.mp-theme-choices button,.topbar *)) {min-height:40px;border:1px solid var(--mp-line);border-radius:10px;background:var(--mp-soft);color:var(--mp-text);padding:9px 14px;font-size:13px;font-weight:650;box-shadow:none;text-decoration:none;cursor:pointer;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(button,.button):is(.active,.current,.is-active,[aria-pressed="true"]):not(:where(.favorite-button,.music-round,.music-play,.topbar *,.mp-theme-choices button)) {background:var(--success-bg);color:var(--mp-accent);border-color:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(button[type="submit"],.button.primary):not(:where(.danger,.secondary,.favorite-button,.icon-button,.topbar *,.ks-row-actions *)) {background:var(--mp-accent);color:var(--mp-on);border-color:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(button,.button).danger {color:var(--mp-danger);background:transparent;border-color:color-mix(in srgb,var(--mp-danger) 55%,var(--mp-line));}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(button,a,input,select,summary,textarea):focus-visible {outline:2px solid var(--mp-accent)!important;outline-offset:3px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) button:disabled {opacity:.5;cursor:default;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .grid {grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:20px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card {border:1px solid var(--mp-line);border-radius:var(--mp-radius);overflow:hidden;box-shadow:none;background:var(--mp-panel);min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card h2 {font-size:15px;line-height:1.5;font-weight:650;letter-spacing:-.025em;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card .card-body {padding:14px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card .actions {display:flex;flex-wrap:wrap;gap:6px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card .actions :is(a,button) {font-size:12px;min-height:36px;padding:7px 9px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card .favorite-form {margin:8px 0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .sort-tabs {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .sort-tabs .button {border-radius:999px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .pagination {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:18px 0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .pagination :is(a,button) {min-width:36px;min-height:36px;border-radius:9px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-toolbar {position:relative;padding:16px;margin-bottom:24px;overflow:visible;z-index:5;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form {display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center;gap:10px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form .work-filter-search {width:100%;height:44px!important;font-size:15px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-actions {display:flex;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filters summary {display:flex;gap:16px;align-items:center;min-height:44px;padding:10px 14px;border:1px solid var(--mp-line);border-radius:9px;cursor:pointer;list-style:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filters summary::-webkit-details-marker {display:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filter-fields {position:absolute;left:0;right:0;top:calc(100% + 8px);padding:16px;border:1px solid var(--mp-line);border-radius:12px;background:var(--mp-panel);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;box-shadow:var(--mp-shadow);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filters:not([open]) .mp-work-filter-fields {display:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filter-fields select {width:100%;height:44px!important;font-size:14px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-layout {grid-template-columns:180px minmax(0,1fr);gap:24px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-sidebar {background:var(--mp-panel);border:1px solid var(--mp-line);border-radius:14px;box-shadow:none;min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-nav a {min-height:42px;color:var(--mp-muted);font-size:13px;border-radius:8px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-nav a.active {background:var(--success-bg);color:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-hero {background:transparent;border:0;box-shadow:none;padding:0;margin-bottom:22px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-title-row h1 {font-size:27px;line-height:1.4;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-title-row h1 small {display:inline-block;margin-left:8px;font-size:12px;font-weight:500;color:var(--mp-muted);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-search-form {max-width:none;display:flex;gap:10px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-search-form input {flex:1;min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-filter-panel {background:var(--mp-panel);border:1px solid var(--mp-line);border-radius:12px;padding:16px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-control-row {gap:10px;margin:14px 0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-layout {grid-template-columns:164px minmax(0,1fr);gap:24px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-content {min-width:0;max-width:1100px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-subnav {background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;position:sticky;top:88px;max-height:calc(100dvh - 112px);overflow:auto;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-subnav a {min-height:44px;border:0;border-radius:10px;padding:10px 12px;color:var(--mp-muted);background:transparent;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-subnav a.active {background:var(--success-bg);color:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-settings-search {width:100%;margin-bottom:12px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-panel {margin-bottom:18px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-section>.section-title {padding:0 0 12px;border-bottom:1px solid var(--mp-line);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-table-wrap,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .table-wrap {max-width:100%;overflow:auto;border:1px solid var(--mp-line);border-radius:12px;background:var(--mp-panel);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) table {width:100%;border-collapse:collapse;font-size:13px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) th {background:var(--mp-soft);color:var(--mp-muted);text-align:left;font-size:12px;font-weight:650;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(th,td) {padding:12px;border-bottom:1px solid var(--mp-line);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) tr:last-child td {border-bottom:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .notice {border:1px solid var(--mp-line);border-radius:12px;box-shadow:none;padding:14px 18px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .notice.success {background:var(--success-bg);color:var(--success-text);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.empty,.empty-state,.empty-message) {padding:40px 24px;text-align:center;border:1px dashed var(--mp-line);border-radius:14px;background:var(--mp-panel);color:var(--mp-muted);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(dialog,.modal-content,.pin-modal-card,.work-context-menu,.settings-action-dialog,.library-dialog) {border-radius:16px;border-color:var(--mp-line);background:var(--mp-panel);color:var(--mp-text);max-width:calc(100vw - 24px);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page-loading {backdrop-filter:none;background:#0003;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page-loading-hud {width:42px;height:42px;border:3px solid var(--mp-line);border-top-color:var(--mp-accent);border-radius:50%;animation:mp-spin 1s linear infinite;box-shadow:none;background:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page-loading-hud>* {display:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page-loading-label {font-size:12px;letter-spacing:.04em;color:var(--mp-text);background:var(--mp-panel);padding:6px 12px;border-radius:8px;}
@keyframes mp-spin {to{transform:rotate(360deg)}}
/* Media components retain their players, queues, keyboard contracts and PiP nodes. */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.music-app,.jazz-radio-page,.mini-games-page) {padding:0;max-width:none;color:var(--mp-text);--music-accent:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.music-hero,.jazzradio-hero,.music-player,.music-library,.games-shell,.tv-sidebar,.youtube-sidebar,.youtube-tools,.file-manager-panel) {background:var(--mp-panel);color:var(--mp-text);border-color:var(--mp-line);border-radius:var(--mp-radius);box-shadow:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.music-hero,.jazzradio-hero) {padding:22px 24px;margin-bottom:20px;background:var(--mp-panel);border:1px solid var(--mp-line);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-hero h2 {font-size:28px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-visualizer {height:130px;background:var(--mp-soft);box-shadow:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-app {--music-panel:var(--mp-panel);--music-text:var(--mp-text);--music-muted:var(--mp-muted);--music-line:var(--mp-line);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-root {--bg:var(--mp-bg);--panel:var(--mp-panel);--panel2:var(--mp-soft);--line:var(--mp-line);--text:var(--mp-text);--muted:var(--mp-muted);--accent:var(--mp-accent);margin:0;padding:0;min-height:0;background:var(--mp-bg);color:var(--mp-text);border-radius:16px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-root :is(.ks-topbar,.ks-nav,.ks-library,.ks-right>section,.ks-row,.ks-top-search,.ks-requester,.ks-list-head) {background:var(--mp-panel);color:var(--mp-text);border-color:var(--mp-line);box-shadow:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-root :is(.ks-song-main p,.ks-now-info>span,.ks-top-search input,.ks-nav-item,.ks-top-btn) {color:var(--mp-text);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-logo b {background:none;color:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-logo-mark {background:var(--mp-soft);color:var(--mp-accent);border-color:var(--mp-line);border-radius:12px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-topbar {position:static;height:auto;padding:18px;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;border:1px solid var(--mp-line);border-radius:16px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-shell {grid-template-columns:150px minmax(0,1fr);min-height:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-nav {position:sticky;top:90px;height:calc(100dvh - 112px);padding:18px 6px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-content-grid {grid-template-columns:minmax(0,1fr) minmax(240px,32%);gap:16px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-top-search input {color:var(--mp-text);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .tv-app,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .youtube-app {min-width:0;max-width:100%;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .games-shell {padding:22px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .file-manager-page {min-width:0;}
html[data-app-ui="v2"][data-sidebar="collapsed"] {--mp-nav-width:72px;}
html[data-app-ui="v2"][data-sidebar="collapsed"] body:not(.reader-page):not(.game-player-page) .mp-nav-label,html[data-app-ui="v2"][data-sidebar="collapsed"] body:not(.reader-page):not(.game-player-page) .mp-nav-group {display:none;}
html[data-app-ui="v2"][data-sidebar="collapsed"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a {justify-content:center!important;padding:12px!important;}
html[data-app-ui="v2"] body.reader-page :is(.mp-menu-toggle,.mp-header-tools,.mp-nav-backdrop),html[data-app-ui="v2"] body.game-player-page :is(.mp-menu-toggle,.mp-header-tools,.mp-nav-backdrop) {display:none!important;}
html[data-app-ui="v2"] body.reader-page .mp-dialog:not([open]) {display:none;}
html[data-app-ui="v2"][data-theme="eink"] body:not(.reader-page):not(.game-player-page) *,html[data-app-ui="v2"][data-theme="kaleido"] body:not(.reader-page):not(.game-player-page) * {box-shadow:none!important;text-shadow:none!important;transition:none!important;animation:none!important;backdrop-filter:none!important;}
@media (max-width:1200px) {html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-layout{grid-template-columns:150px minmax(0,1fr);gap:16px}html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-content-grid{grid-template-columns:1fr}html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-right{display:grid;grid-template-columns:1fr 1fr}html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-topbar{grid-template-columns:1fr auto}html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-top-search{grid-column:1/-1;grid-row:2}}
@media (max-width:1023px) {
 html[data-app-ui="v2"] {--mp-nav-width:0px;--mp-header-height:60px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page {margin:0;padding:calc(var(--mp-header-height) + 20px) 20px 32px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar {padding:0 16px!important;gap:10px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .brand {font-size:16px;max-width:calc(100vw - 180px);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-location {display:none;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-shell {display:none!important;inset:0 auto 0 0!important;width:min(320px,85vw)!important;height:100dvh;padding:20px 16px;z-index:110;border-right:1px solid var(--mp-line);}
 html[data-app-ui="v2"][data-mp-nav-open] body:not(.reader-page):not(.game-player-page) .topbar-nav-shell {display:flex!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-heading {display:flex;justify-content:space-between;align-items:center;padding:0 8px 18px;font-size:20px;font-weight:750;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-nav-backdrop:not([hidden]) {display:block;position:fixed;inset:0;background:#0007!important;z-index:85;border:0;border-radius:0;padding:0;}
 html[data-app-ui="v2"][data-sidebar="collapsed"] body:not(.reader-page):not(.game-player-page) .mp-nav-label,html[data-app-ui="v2"][data-sidebar="collapsed"] body:not(.reader-page):not(.game-player-page) .mp-nav-group {display:block;}
 html[data-app-ui="v2"][data-sidebar="collapsed"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a {justify-content:flex-start!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-layout {grid-template-columns:1fr;gap:16px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-subnav {position:static;display:flex;flex-wrap:wrap;gap:6px;max-height:none;padding-bottom:12px;border-bottom:1px solid var(--mp-line);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-subnav :is(.settings-subnav-head,.settings-subnav-label) {display:none;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-subnav a {padding:9px 12px;min-height:42px;border:1px solid var(--mp-line);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-settings-search {flex-basis:100%;width:100%;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-content {max-width:none;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-shell {grid-template-columns:1fr;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-nav {position:static;height:auto;flex-direction:row;overflow:auto;padding:10px 0;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-nav-item {flex:none;width:auto;min-width:70px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-nav-spacer,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-nav-brand {display:none;}
}
@media (max-width:700px) {
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page {padding:calc(var(--mp-header-height) + 18px) 14px 28px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar {padding:0 12px!important;gap:8px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .brand img {width:26px;height:26px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .brand {max-width:calc(100vw - 168px);font-size:15px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-header-tools {gap:6px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-icon-button,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar .mp-icon-button {width:40px;min-width:40px;height:44px;min-height:44px;border:0!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .section-title {margin-bottom:18px;gap:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.toolbar,.settings-panel,.work-metadata-panel,.work-admin-panel,.file-info-panel) {padding:16px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(input[type="search"],input[type="text"],input[type="password"],input[type="number"],select) {font-size:16px;min-height:44px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(button,.button):not(:where(.favorite-button,.music-round,.music-play,.music-window-btn,.tv-favorite,.youtube-fav,.ks-nav-item)) {min-height:44px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card h2 {font-size:14px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card .card-body {padding:10px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .card .actions :is(a,button) {font-size:11px;padding:8px 6px;min-height:36px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-toolbar {padding:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form {gap:6px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form .work-filter-search {font-size:16px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filters summary {padding:10px;font-size:13px;gap:6px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-work-filter-fields {grid-template-columns:1fr 1fr;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-layout {display:block;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-sidebar {position:fixed;top:var(--mp-header-height);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-title-row h1 {font-size:24px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-title-row h1 small {display:block;margin:6px 0 0;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .list-title-actions {flex-wrap:wrap;gap:8px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .list-title-actions>span {font-size:12px;color:var(--mp-muted);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .list-sort-tabs {gap:6px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .list-sort-tabs .button {font-size:12px;padding:8px 11px;min-height:36px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jobs-table {display:block;min-width:0;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jobs-table thead {display:none;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jobs-table tbody {display:grid;gap:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jobs-table tr {display:grid;grid-template-columns:1fr;border-bottom:1px solid var(--mp-line);padding:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jobs-table td {display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:7px 0;border:0;white-space:normal;overflow-wrap:anywhere;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jobs-table td::before {content:attr(data-label);color:var(--mp-muted);font-size:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-hero,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jazzradio-hero {padding:18px;gap:12px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-hero h2 {font-size:24px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-hero p {font-size:13px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-visualizer {height:100px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-topbar {padding:12px;gap:10px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-main {padding:12px 0;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-right {display:grid;grid-template-columns:1fr;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .games-shell {padding:14px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-dialog {padding:20px;max-height:calc(100dvh - 24px);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-theme-choices {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (prefers-reduced-motion:reduce) {html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) *,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) *::before,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

html[data-app-ui="v2"] .login-body {min-height:100dvh;background:var(--mp-bg);color:var(--mp-text);}
html[data-app-ui="v2"] .login-shell {width:min(430px,calc(100% - 32px));margin:auto;padding:40px 0;}
html[data-app-ui="v2"] .login-panel {padding:32px;border:1px solid var(--mp-line);border-radius:22px;background:var(--mp-panel);box-shadow:var(--mp-shadow);gap:20px;}
html[data-app-ui="v2"] .login-brand img {width:64px;height:64px;border-radius:16px;}
html[data-app-ui="v2"] .login-brand h1 {font-size:28px;margin:16px 0 8px;letter-spacing:-.04em;}
html[data-app-ui="v2"] .login-brand p {font-size:14px;color:var(--mp-muted);}
html[data-app-ui="v2"] .login-panel label>span {font-size:13px;color:var(--mp-muted);}
html[data-app-ui="v2"] .login-panel input:not([type=checkbox]) {width:100%;min-height:48px;border-radius:10px;border:1px solid var(--mp-line);padding:12px;background:var(--mp-soft);color:var(--mp-text);font-size:16px;}
html[data-app-ui="v2"] .login-panel button[type=submit] {min-height:48px;background:var(--mp-accent);color:var(--mp-on);border:0;border-radius:10px;}
html[data-app-ui="v2"] .login-error {color:var(--mp-danger);border:1px solid var(--mp-danger);background:transparent;border-radius:10px;padding:12px;}
html[data-app-ui="v2"][data-mp-nav-open] body {overflow:hidden;}
html[data-app-ui="v2"] .settings-subnav a[hidden] {display:none!important;}
html[data-app-ui="v2"] #app-main :is([id^="settings-"],h1,h2) {scroll-margin-top:85px;}

/* Replace legacy one-column overrides with a consistent cover grid. */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form > .work-filter-search,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form > .work-filter-actions {grid-column:auto!important;grid-row:auto!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form .mp-work-filters {min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form .work-filter-submit {min-width:56px;min-height:44px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .grid {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(168px,1fr))!important;gap:18px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-card {position:relative;display:flex!important;flex-direction:column;grid-template-areas:none!important;gap:8px!important;min-width:0;padding:12px!important;border:1px solid var(--mp-line);border-radius:14px;background:var(--mp-panel);box-shadow:none;overflow:hidden;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card>a:first-child {display:block!important;min-width:0;color:var(--mp-text);text-decoration:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .thumb {width:100%!important;aspect-ratio:3/4!important;height:auto!important;grid-area:auto!important;border-radius:9px!important;background:var(--mp-soft);overflow:hidden;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .thumb img {width:100%;height:100%;object-fit:cover;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card h2 {font-size:14px!important;line-height:1.5!important;min-height:3em;margin:10px 0 0!important;white-space:normal!important;overflow-wrap:anywhere;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card h2 span {white-space:normal!important;overflow-wrap:anywhere;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card p {min-height:0;margin:0!important;font-size:12px!important;line-height:1.5!important;color:var(--mp-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .summary-line {display:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .favorite-form {position:absolute;top:16px;right:16px;width:36px;height:36px;margin:0!important;z-index:2;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .favorite-button {display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--mp-line);border-radius:50%;background:var(--mp-panel);color:var(--mp-muted);font-size:18px;box-shadow:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .favorite-button.active {color:var(--mp-accent);border-color:var(--mp-accent);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card [data-favorite-label] {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .card-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:auto;padding-top:4px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .card-actions>a:first-child {grid-column:1/-1;background:var(--success-bg);color:var(--mp-accent);border-color:var(--mp-line);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .card-actions :is(a,button) {display:flex;align-items:center;justify-content:center;min-width:0!important;width:100%;min-height:36px!important;padding:7px 6px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;text-align:center;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .card-actions form {margin:0;min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .resume-info {font-size:11px;line-height:1.5;min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-title-row {min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .shelf-title-row h1 {min-width:0;white-space:normal;overflow-wrap:anywhere;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .jazzradio-app {--jazz-panel:var(--mp-panel);--jazz-text:var(--mp-text);--jazz-muted:var(--mp-muted);--jazz-line:var(--mp-line);padding:0;max-width:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.jazzradio-card,.jazzradio-player,.jazzradio-toolbar,.jazzradio-directory) {background:var(--mp-panel);color:var(--mp-text);border-color:var(--mp-line);box-shadow:none;border-radius:14px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mini-app-container {--app-bg-main:var(--mp-bg);--app-bg-card:var(--mp-panel);--app-border:var(--mp-line);--app-text-main:var(--mp-text);--app-text-sub:var(--mp-muted);background:var(--mp-bg);color:var(--mp-text);padding:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mini-top-banner,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mini-game-card {background:var(--mp-panel);color:var(--mp-text);border-color:var(--mp-line);box-shadow:none;border-radius:14px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-round {background:var(--mp-soft);color:var(--mp-text);border:1px solid var(--mp-line);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .music-player {box-shadow:none;}
@media(max-width:700px){
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-card {padding:9px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .favorite-form {top:13px;right:13px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-filter-form {grid-template-columns:minmax(0,1fr) auto auto!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .card-actions :is(a,button) {font-size:11px!important;}
}

html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page)>.page {margin-left:var(--mp-nav-width)!important;margin-right:0!important;width:auto!important;padding:calc(var(--mp-header-height) + 28px) clamp(20px,2.5vw,40px) 40px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-main {background:var(--mp-bg);color:var(--mp-text);min-width:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-root :is(.ks-eyebrow,.ks-welcome p,.ks-nav-item i,.ks-empty,.ks-empty p,.ks-pagination) {color:var(--mp-muted);}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .game-card {background:var(--mp-panel);color:var(--mp-text);border:1px solid var(--mp-line);border-radius:14px;box-shadow:none;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-layout {grid-template-columns:164px minmax(0,1fr)!important;}
@media(max-width:1023px){
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page)>.page {margin-left:0!important;padding:calc(var(--mp-header-height) + 20px) 20px 32px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .settings-layout {grid-template-columns:1fr!important;}
}
@media(max-width:700px){html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page)>.page{padding:calc(var(--mp-header-height) + 18px) 14px 28px!important;}}
/* Player width is relative to the content pane, not the full viewport. */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) :is(.music-app,.jazzradio-app) {width:100%!important;min-width:0!important;max-width:100%!important;}
html[data-app-ui="v2"][data-theme="eink"] body,html[data-app-ui="v2"][data-theme="kaleido"] body {transition:none!important;animation:none!important;}
@media(max-width:700px){
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-icon-button,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar .mp-icon-button {width:44px;min-width:44px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .favorite-form,html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .favorite-button {width:44px;height:44px;min-width:44px;min-height:44px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card .card-actions :is(a,button) {min-height:44px!important;}
}
/* v3: legible activity, compact shelves and media identity. */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page-loading-hud::before,
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .page-loading-hud::after {content:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page).is-page-loading .page-loading-hud {display:block!important;animation:mp-activity .85s linear infinite!important;will-change:transform;border:3px solid var(--mp-line)!important;border-top-color:var(--mp-accent)!important;}
@keyframes mp-activity {from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page).is-action-loading .page-loading-hud {display:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page).is-action-loading .page-loading::before {content:'';display:block;height:3px;background:var(--mp-accent);animation:page-loading-slide 1s ease-in-out infinite;}
html[data-app-ui="v2"] .library-card :is(.meta,.summary-line,.download-badge) {display:none!important;}
html[data-app-ui="v2"] .library-card .card-actions svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;}
html[data-app-ui="v2"] .library-card .card-actions [data-mp-compact] {gap:4px;}
@media(max-width:700px){
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-card .card-actions {display:flex!important;flex-wrap:nowrap!important;gap:3px!important;padding-top:0!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-card .card-actions>a:first-child {flex:1;grid-column:auto;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-card .card-actions :is(a,button) {min-height:44px!important;padding:4px!important;white-space:nowrap!important;font-size:11px!important;}
 html[data-app-ui="v2"] .library-card .card-actions [data-mp-compact] {width:38px!important;min-width:38px!important;}
 html[data-app-ui="v2"] .library-card .mp-action-text {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-card p {min-height:0!important;margin:0 0 5px!important;}
 html[data-app-ui="v2"] .library-card h2 :is(small,.badge) {display:none!important;}
}
html[data-app-ui="v2"] .mp-media-heading {display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:16px 18px;border:1px solid var(--mp-line);border-radius:18px;background:var(--mp-panel);flex:0 0 auto;}
html[data-app-ui="v2"] .mp-media-heading>svg {width:44px;height:44px;padding:10px;background:var(--mp-soft);color:var(--mp-accent);border-radius:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
html[data-app-ui="v2"] .mp-media-heading strong {display:block;font-size:18px;letter-spacing:-.03em;}
html[data-app-ui="v2"] .mp-media-heading small {display:block;margin-top:3px;color:var(--mp-muted);font-size:12px;}
html[data-app-ui="v2"] .mp-media-page :is(.music-hero,.jazzradio-hero) {border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-app-ui="v2"] .mp-media-page :is(.music-hero h2,.jazzradio-hero h2) {display:none;}
html[data-app-ui="v2"] .mp-media-page :is(input[type="search"],input[type="text"],select) {border-radius:12px!important;}
html[data-app-ui="v2"] .mp-media-page button {border-radius:12px;}
html[data-app-ui="v2"] .mp-media-page :is(.music-play,.jazzradio-play) {border-radius:50%;}
html[data-app-ui="v2"] .login-brand img,html[data-app-ui="v2"] .login-loading-mark img {background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;object-fit:contain!important;filter:drop-shadow(0 6px 12px #0002);}
html[data-app-ui="v2"] .login-panel {animation:mp-login-enter .6s ease-out both;}
@keyframes mp-login-enter {from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
html[data-app-ui="v2"] .login-loading {background:var(--mp-bg);gap:28px;}
html[data-app-ui="v2"] .login-loading-mark {background:transparent!important;box-shadow:none!important;animation:mp-login-breathe 2s ease-in-out infinite;}
html[data-app-ui="v2"] .login-loading-mark::before {inset:-16px;border:2px solid var(--mp-line);border-top-color:var(--mp-accent);animation:mp-activity 1s linear infinite;filter:none;}
html[data-app-ui="v2"] .login-loading strong {color:var(--mp-text);font-size:13px;letter-spacing:.16em;}
@keyframes mp-login-breathe {50%{transform:scale(1.04)}}
html[data-app-ui="v2"][data-theme="eink"] body:not(.reader-page):not(.game-player-page).is-page-loading .page-loading-hud,
html[data-app-ui="v2"][data-theme="kaleido"] body:not(.reader-page):not(.game-player-page).is-page-loading .page-loading-hud {animation:none!important;}
@media(prefers-reduced-motion:reduce){html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page).is-page-loading .page-loading-hud{animation:none!important;}html[data-app-ui="v2"] .login-panel,html[data-app-ui="v2"] .login-loading-mark,html[data-app-ui="v2"] .login-loading-mark::before{animation:none!important;}}

html[data-app-ui="v2"] .mp-media-page .fa-radio {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h18v12H3zM5%208l13-5M7%2012h3v4H7zM14%2012h4M14%2016h4%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h18v12H3zM5%208l13-5M7%2012h3v4H7zM14%2012h4M14%2016h4%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-radio::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-headphones-simple {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2014v-3a8%208%200%200%201%2016%200v3M4%2012h3v8H4zM17%2012h3v8h-3z%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2014v-3a8%208%200%200%201%2016%200v3M4%2012h3v8H4zM17%2012h3v8h-3z%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-headphones-simple::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-rotate {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%208a8%208%200%201%200%200%208M20%203v5h-5%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%208a8%208%200%201%200%200%208M20%203v5h-5%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-rotate::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-volume-low {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209h4l5-4v14l-5-4H3zM16%208a6%206%200%200%201%200%208%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209h4l5-4v14l-5-4H3zM16%208a6%206%200%200%201%200%208%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-volume-low::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-xmark {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%206l12%2012M6%2018%2018%206%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%206l12%2012M6%2018%2018%206%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-xmark::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-play {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%204%2014%208-14%208z%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%204%2014%208-14%208z%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-play::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-music {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2017V5l11-2v12M9%208l11-2M9%2017a3%203%200%201%201-3-3h3M20%2015a3%203%200%201%201-3-3h3%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2017V5l11-2v12M9%208l11-2M9%2017a3%203%200%201%201-3-3h3M20%2015a3%203%200%201%201-3-3h3%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-music::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-wave-square {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2017V7h6v10h6V7h6%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2017V7h6v10h6V7h6%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-wave-square::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-chevron-right {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%205%207%207-7%207%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%205%207%207-7%207%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-chevron-right::before {content:none;}
html[data-app-ui="v2"] .mp-media-page .fa-up-down-left-right {display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202v20M2%2012h20M8%206l4-4%204%204M8%2018l4%204%204-4M6%208l-4%204%204%204M18%208l4%204-4%204%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202v20M2%2012h20M8%206l4-4%204%204M8%2018l4%204%204-4M6%208l-4%204%204%204M18%208l4%204-4%204%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .mp-media-page .fa-up-down-left-right::before {content:none;}
html[data-app-ui="v2"] .ks-nav-item[data-view="home"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011l9-8%209%208M5%2010v11h14V10M9%2021v-7h6v7%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011l9-8%209%208M5%2010v11h14V10M9%2021v-7h6v7%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .ks-nav-item[data-view="search"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%203a7%207%200%201%200%200%2014%207%207%200%200%200%200-14M15%2015l6%206%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%203a7%207%200%201%200%200%2014%207%207%200%200%200%200-14M15%2015l6%206%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .ks-nav-item[data-view="queue"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16M4%2012h16M4%2019h16%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16M4%2012h16M4%2019h16%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .ks-nav-item[data-view="current"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%204%2014%208-14%208z%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%204%2014%208-14%208z%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .ks-nav-item[data-view="favorites"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%203%206%207%201-5%205%201%207-6-3-6%203%201-7-5-5%207-1z%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%203%206%207%201-5%205%201%207-6-3-6%203%201-7-5-5%207-1z%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .ks-nav-item[data-view="popular"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V11h4v10M10%2021V3h4v18M16%2021V7h4v14%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V11h4v10M10%2021V3h4v18M16%2021V7h4v14%22/%3E%3C/svg%3E") center/contain no-repeat;}
html[data-app-ui="v2"] .ks-nav-item[data-view="history"]>span {font-size:0;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208a8%208%200%201%201%200%208M4%203v5h5M12%207v5l3%202%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208a8%208%200%201%201%200%208M4%203v5h5M12%207v5l3%202%22/%3E%3C/svg%3E") center/contain no-repeat;}html[data-app-ui="v2"] :is(.tv-sidebar,.youtube-sidebar)>.mp-media-heading {border:0;border-bottom:1px solid var(--mp-line);border-radius:0;margin:0;padding:12px;}
html[data-app-ui="v2"] :is(.tv-sidebar,.youtube-sidebar)>.mp-media-heading small {font-size:11px;}
/* Explicit user preference: activity indicators remain animated in every theme.
   This exception is confined to pending activity, not content transitions. */
html[data-app-ui="v2"] body #mp-activity-ring {
 display:block!important;flex:none;width:44px!important;height:44px!important;
 box-sizing:border-box;border:3px solid var(--mp-line)!important;border-top-color:var(--mp-accent)!important;
 border-radius:50%!important;background:transparent!important;box-shadow:none!important;
 animation:mp-live-ring .9s linear infinite!important;will-change:transform;
}
@keyframes mp-live-ring {from{transform:translateZ(0) rotate(0deg)}to{transform:translateZ(0) rotate(360deg)}}
html[data-app-ui="v2"] body .page-loading-label::after {content:none!important;}
html[data-app-ui="v2"] body .page-loading-label {display:flex;align-items:center;justify-content:center;gap:2px;}
html[data-app-ui="v2"] body #mp-activity-dots {display:inline-flex!important;min-width:1.2em;gap:1px;margin-left:2px;}
html[data-app-ui="v2"] body #mp-activity-dots>i {display:inline-block;font-style:normal;animation:mp-live-dot 1.2s ease-in-out infinite!important;opacity:.25;}
html[data-app-ui="v2"] body #mp-activity-dots>i:nth-child(2) {animation-delay:.2s!important;}
html[data-app-ui="v2"] body #mp-activity-dots>i:nth-child(3) {animation-delay:.4s!important;}
@keyframes mp-live-dot {0%,65%,100%{opacity:.2}25%,40%{opacity:1}}
html[data-app-ui="v2"] body.is-action-loading .page-loading {gap:12px;}
html[data-app-ui="v2"] body.is-action-loading #mp-activity-ring {width:22px!important;height:22px!important;border-width:2px!important;}
html[data-app-ui="v2"] body:is(.is-action-loading-done,.is-action-loading-error) #mp-activity-ring,
html[data-app-ui="v2"] body:is(.is-action-loading-done,.is-action-loading-error) #mp-activity-dots {display:none!important;}
html[data-app-ui="v2"] body .login-loading-mark {animation:none!important;}
html[data-app-ui="v2"] body .login-loading-mark::before {content:none!important;}
html[data-app-ui="v2"] body .login-loading-mark #mp-activity-ring {position:absolute;inset:-16px;width:150px!important;height:150px!important;}
/* Catalog only: restore source-date chips and compact title/genre grouping. */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card.mp-catalog-card {gap:4px!important;align-self:start;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card.mp-catalog-card h2 {min-height:0!important;line-height:1.4!important;margin:8px 0 0!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .work-card.mp-catalog-card .work-description {margin:0!important;padding:0!important;min-height:0!important;line-height:1.4!important;}
html[data-app-ui="v2"] .mp-catalog-card .thumb {position:relative;}
html[data-app-ui="v2"] .mp-catalog-card .mp-date-chip {position:absolute;top:8px;left:8px;z-index:1;display:block;max-width:calc(100% - 56px);padding:4px 6px;border:1px solid var(--mp-line);border-radius:6px;background:var(--mp-panel);color:var(--mp-text);font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;pointer-events:none;}

/* v12 desktop horizontal navigation; mobile drawer remains unchanged. */
@media(min-width:1024px){
 html[data-app-ui="v2"],html[data-app-ui="v2"][data-sidebar="collapsed"]{--mp-nav-width:0px;--mp-header-height:112px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar{height:60px!important;min-height:60px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-menu-toggle{display:none!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-shell{inset:60px 0 auto 0!important;width:100%!important;height:52px!important;flex-direction:row!important;padding:4px 16px!important;border:0;border-bottom:1px solid var(--mp-line);overflow:hidden;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav]{flex-direction:row!important;align-items:center!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;gap:2px!important;scrollbar-width:thin;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a{width:auto!important;flex:0 0 auto;gap:6px;min-height:40px!important;padding:8px 10px!important;font-size:13px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar .mp-nav-group{display:none!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar .mp-nav-label{display:inline!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page)>.page{margin-left:0!important;max-width:none!important;width:100%!important;padding-left:20px!important;padding-right:20px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-layout{max-width:none!important;width:100%;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .library-sidebar{top:calc(var(--mp-header-height) + 16px);max-height:calc(100dvh - var(--mp-header-height) - 32px);}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .ks-nav{top:calc(var(--mp-header-height) + 16px);height:calc(100dvh - var(--mp-header-height) - 32px);}
}
@media(min-width:1024px){
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav]{flex:1 1 0!important;width:auto!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-arrow{display:grid!important;place-items:center;flex:0 0 28px;width:28px!important;min-width:28px!important;height:40px;padding:0!important;border:0!important;background:var(--mp-soft)!important;color:var(--mp-text)!important;border-radius:8px;}
}
@media(min-width:1024px){html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-arrow[hidden]{display:none!important;}}

/* v13 compact catalogs / explicit favorite selection */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-toolbar){display:flex;align-items:center;gap:8px;padding:10px;margin-bottom:10px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search){display:flex!important;flex:1 1 auto;align-items:center;gap:6px!important;min-width:0;margin:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search)>input[type="search"]{flex:1 1 200px;min-width:80px!important;width:auto!important;height:34px!important;min-height:34px!important;font-size:13px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search)>select{flex:0 1 120px;width:120px;min-width:64px;height:34px!important;min-height:34px!important;padding:4px 8px!important;font-size:12px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search)>select[name="genre"]{flex-basis:150px;width:150px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-actions button,.mp-catalog-search button,.mp-catalog-refresh button){height:34px!important;min-height:34px!important;padding:4px 10px!important;font-size:12px!important;white-space:nowrap;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-catalog-refresh{flex:none;margin:0;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .list-sort-tabs{gap:4px;margin-bottom:10px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .list-sort-tabs .button{min-height:22px!important;height:22px!important;padding:2px 7px!important;font-size:10px!important;line-height:16px!important;border-radius:6px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .favorite-button{background:var(--mp-panel)!important;color:var(--mp-muted)!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .favorite-button:is(.active,[aria-pressed="true"]){background:#fff5cf!important;border-color:#936300!important;color:#ffcc32!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .favorite-button:is(.active,[aria-pressed="true"])>[aria-hidden="true"]{color:#ffcc32!important;-webkit-text-stroke:1px #936300;text-shadow:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .favorite-button:focus-visible{outline:2px solid var(--mp-accent);outline-offset:2px;}
@media(min-width:1024px){
 html[data-app-ui="v2"],html[data-app-ui="v2"][data-sidebar="collapsed"]{--mp-header-height:64px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar{height:64px!important;min-height:64px!important;padding:0 16px!important;gap:16px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar>.brand{flex:0 0 auto;max-width:180px;font-size:15px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar-nav-shell{position:relative!important;inset:auto!important;flex:1 1 0;min-width:0;width:auto!important;height:48px!important;padding:4px 0!important;border:0!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav]{overflow:hidden!important;scrollbar-width:none!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav] a{font-size:12px!important;padding:8px!important;gap:5px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .topbar nav[data-main-nav]::-webkit-scrollbar{display:none;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-header-tools{flex:0 0 auto;margin-left:0;gap:6px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-location{display:none;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .ks-shell{display:flex!important;flex-direction:column;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .ks-nav{position:static!important;display:flex!important;flex-direction:row!important;align-items:center;gap:6px;width:100%;height:auto!important;min-height:0;padding:10px 0!important;border:0!important;overflow-x:auto;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .ks-nav-item{flex:0 0 auto;width:auto!important;min-height:40px;padding:8px 12px!important;gap:7px;white-space:nowrap;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .ks-nav-item b{white-space:nowrap;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.ks-nav-spacer,.ks-nav-brand){display:none!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .ks-main{width:100%;min-width:0;padding:0!important;}
}
@media(max-width:1023px){
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar{flex-wrap:wrap;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search){flex-wrap:wrap;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search)>input[type="search"]{flex:1 1 100%;width:100%!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.work-filter-form,.mp-catalog-search)>select{flex:1 1 90px;}
}
@media(min-width:1024px){
html[data-app-ui="v2"] body #app-main .work-filter-toolbar{flex-wrap:nowrap!important;}
html[data-app-ui="v2"] body #app-main :is(.work-filter-form,.mp-catalog-search){flex-wrap:nowrap!important;width:auto!important;}
html[data-app-ui="v2"] body #app-main .work-filter-actions{flex:0 0 auto!important;width:auto!important;margin:0!important;}
}
html[data-app-ui="v2"] body #app-main .list-sort-tabs{width:fit-content!important;max-width:100%;padding:3px!important;}

/* v14: single compact search/navigation rows */
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar{gap:6px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar .list-sort-tabs{flex:0 0 auto;order:2;display:flex;flex-wrap:nowrap;gap:3px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar .mp-catalog-refresh{order:3;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar :is(.list-sort-tabs .button,.work-filter-submit,.mp-catalog-refresh button){height:30px!important;min-height:30px!important;padding:4px 7px!important;font-size:11px!important;line-height:20px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar :is(input[type=search],select){height:30px!important;min-height:30px!important;font-size:12px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row{display:flex;align-items:center;gap:6px;min-width:0;width:100%;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row :is(.shelf-search-form,.mp-catalog-search){flex:1 1 0!important;min-width:0;width:auto!important;margin:0!important;display:flex!important;gap:5px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row input[type=search]{flex:1 1 0;min-width:70px!important;width:auto!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row .shelf-control-row{display:flex;flex:none;gap:5px;margin:0!important;padding:0!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row :is(.shelf-sort-form,.shelf-sort-chip){margin:0!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row .shelf-audience-tabs{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;width:auto!important;margin:0!important;gap:3px;padding:0!important;border:0!important;background:none!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row :is(button,input[type=search],select,.shelf-control-chip,.shelf-audience-tabs a){height:30px!important;min-height:30px!important;font-size:11px!important;line-height:20px!important;padding:4px 7px!important;white-space:nowrap;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row .shelf-audience-tabs a{flex:none!important;min-width:0!important;width:auto!important;border:1px solid var(--mp-line);border-radius:6px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row .shelf-sort-chip{display:flex;align-items:center;gap:3px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row .shelf-sort-chip select{height:26px!important;min-height:26px!important;padding:0!important;width:104px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .library-sidebar-actions{gap:4px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .library-sidebar-actions .icon-button{display:inline-grid;place-items:center;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:5px!important;border-radius:7px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .library-sidebar-actions svg{display:block;width:17px;height:17px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.library-sidebar,.library-nav){scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--mp-muted) 30%,var(--mp-panel)) transparent;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.library-sidebar,.library-nav)::-webkit-scrollbar{width:6px;height:6px;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.library-sidebar,.library-nav)::-webkit-scrollbar-track{background:transparent;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main :is(.library-sidebar,.library-nav)::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--mp-muted) 30%,var(--mp-panel));border-radius:8px;}
@media(min-width:1024px){
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-form>select{flex:0 1 78px!important;width:78px!important;min-width:55px!important;padding:3px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-form>input[type=search]{flex:1 1 90px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-catalog-search>select{flex:0 1 85px!important;width:85px!important;min-width:50px!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row{flex-wrap:nowrap;}
}
@media(max-width:1023px){
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row{flex-wrap:wrap;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row :is(.shelf-search-form,.mp-catalog-search){flex:1 1 100%!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .mp-search-row .shelf-audience-tabs{flex-wrap:wrap!important;}
html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) #app-main .work-filter-toolbar .list-sort-tabs{flex-wrap:wrap;}
}

/* Compact portrait catalog covers; desktop and landscape retain existing layout. */
@media (max-width:720px) and (orientation:portrait) {
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .grid.mp-mobile-three {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-mobile-three .work-card {padding:5px!important;gap:5px!important;border-radius:9px;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-mobile-three .work-card h2 {font-size:12px!important;line-height:1.35!important;min-width:0;overflow-wrap:anywhere;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-mobile-three .work-card p {font-size:11px!important;}
 html[data-app-ui="v2"] body:not(.reader-page):not(.game-player-page) .mp-mobile-three .mp-date-chip {font-size:9px;padding:2px 3px;max-width:100%;}
}
