/* Independent layouts. Theme 1 deliberately keeps the original stylesheet. */
.theme-dialog{width:min(1000px,96vw);max-width:1000px}.theme-dialog .dialog-head p{margin:6px 0 0}.theme-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.theme-choice{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:8px;padding:16px;background:#151f30;border:1px solid #35455b;border-radius:14px;color:#eaf1fa}.theme-choice:hover{background:#1c2b40}.theme-choice[aria-pressed=true]{border:2px solid #60e3b5;padding:15px}.theme-choice>strong{font-size:20px}.theme-number{font-size:10px;letter-spacing:1px;color:#9cb1ca}.theme-description{font-size:12px;line-height:1.5;color:#b2bfd0;min-height:36px}.theme-select-label{color:#78e4c1;font-size:12px;margin-top:auto}.theme-preview{height:135px;position:relative;overflow:hidden;border-radius:7px;background:#0b121e;display:block;margin-bottom:4px;border:1px solid #344158}.theme-preview i{position:absolute;display:block;border-radius:3px;background:#26354c}.theme-preview .mini-nav{left:0;top:0;bottom:0;width:16%;background:#172636}.theme-preview .mini-header{left:20%;top:8%;right:5%;height:8%;background:#62cdb6}.theme-preview .mini-chart{left:20%;top:23%;right:5%;height:18%;background:repeating-linear-gradient(0deg,#273c51 0 1px,#172636 1px 8px)}.theme-preview .mini-storage{left:20%;top:47%;right:5%;height:15%;background:#335269}.theme-preview .mini-table{left:20%;top:69%;width:53%;bottom:7%;background:repeating-linear-gradient(0deg,#2c4059 0 4px,#182636 4px 10px)}.theme-preview .mini-requests{right:5%;top:69%;width:18%;bottom:7%;background:#446e71}.preview-classic .mini-header{background:#78b5ff}.preview-classic .mini-table{top:24%;bottom:34%}.preview-classic .mini-requests{top:24%;bottom:7%;background:#3b527a}.preview-classic .mini-chart{top:73%;right:27%;height:20%}.preview-classic .mini-storage{top:66%;right:27%;height:4%}.preview-media{background:#1a1224}.preview-media .mini-nav{width:10%;background:#2b1c39}.preview-media .mini-header{left:15%;background:#f6bc72}.preview-media .mini-requests{left:15%;right:5%;top:24%;width:auto;height:40%;background:repeating-linear-gradient(90deg,#895270 0 17%,#25192e 17% 20%)}.preview-media .mini-table{left:15%;width:80%;top:72%;bottom:7%}.preview-media .mini-chart,.preview-media .mini-storage{display:none}.preview-compact{background:#e5ecf4}.preview-compact .mini-nav{width:100%;height:14%;bottom:auto;background:#cbd8e6}.preview-compact .mini-header{left:5%;top:21%;height:6%;background:#3a72b4}.preview-compact .mini-table{left:5%;top:34%;width:90%;bottom:7%;background:repeating-linear-gradient(0deg,#c1d1e3 0 4px,#f0f5fa 4px 11px)}.preview-compact .mini-chart,.preview-compact .mini-storage,.preview-compact .mini-requests{display:none}
#lowerArea{display:grid;gap:16px;margin-top:16px;min-width:0}#detailDock:empty{display:none}#detailDock:not(:has(dialog[open])){display:none}#detailDock dialog{position:static;display:none;width:100%;max-width:none;max-height:360px;margin:0;border-radius:10px;box-shadow:none;overflow:auto}#detailDock dialog[open]{display:block}#detailDock .detail-files{max-height:150px}#detailDock #detailStats{margin-bottom:8px}#detailDock h3{margin:12px 0 8px}.layout-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0 16px}.layout-tools>div{display:flex;gap:8px;flex-wrap:wrap}.layout-tools>span{font-size:12px}.layout-tools button{font-size:12px}.layout-tools button[aria-expanded=true]{border-color:currentColor}.requests-drawer{margin:0 0 0 auto;height:100dvh;max-height:100dvh;max-width:440px;width:min(440px,96vw);border-radius:0;padding:20px;overflow:auto}.requests-drawer .requests-panel{position:static;max-height:none;overflow:visible;border:0;padding:0}.requests-drawer .requests-panel>.panel-head{display:none}.requests-drawer #requestList{display:block}
/* 2 — classic client: dense list first, supporting tools below. */
:root[data-theme="2"]{--green:#83b9ff;--panel:#172232;--line:#304057;--muted:#a0aec1;background:#101822}
[data-theme="2"] aside{width:190px;background:#152031;padding:24px 12px}[data-theme="2"] main{margin-left:190px;width:calc(100% - 190px);padding:22px 24px 30px}[data-theme="2"] .brand{margin-bottom:25px}[data-theme="2"] .brand span{font-size:22px}[data-theme="2"] .eyebrow{display:none}[data-theme="2"] header{margin-bottom:16px}[data-theme="2"] h1{font-size:24px}[data-theme="2"] header p{font-size:12px}[data-theme="2"] .metrics{margin-bottom:16px;border-radius:7px;padding:10px 0}[data-theme="2"] .metrics strong{font-size:18px}[data-theme="2"] .workspace-grid{grid-template-columns:minmax(0,1fr) 290px;gap:14px}[data-theme="2"] .panel{border-radius:7px}[data-theme="2"] .torrent-panel .panel-head{padding:12px 14px}[data-theme="2"] .torrent-toolbar,[data-theme="2"] .bulk-toolbar{padding:8px 14px}[data-theme="2"] .torrent-table td{padding:7px 10px;font-size:11px}[data-theme="2"] .torrent-name{font-size:12px;color:#d5e7ff}[data-theme="2"] .torrent-scroll{max-height:calc(100dvh - 390px);min-height:180px}[data-theme="2"] .torrent-table .row-actions button{padding:3px 6px}[data-theme="2"] .requests-panel{max-height:calc(100dvh - 190px)}[data-theme="2"] .traffic-panel{margin:0}[data-theme="2"] #storageArea{border-top:1px solid var(--line);padding-top:12px}[data-theme="2"] nav button.selected{background:#244266;color:#c4dfff}[data-theme="2"] button.primary{color:#102b4b}[data-theme="2"] .request-title{color:#b6d8ff}
/* 3 — media library: covers first, warmer palette, lateral details sheet. */
:root[data-theme="3"]{--green:#f7c17e;--panel:#241d30;--line:#43354e;--muted:#b8abc4;background:#15111d;color:#eee7f4}
[data-theme="3"] aside{width:200px;background:#1c1526;border-color:#43354e}[data-theme="3"] main{margin-left:200px;width:calc(100% - 200px);padding:32px}[data-theme="3"] .brand span{font-size:22px}[data-theme="3"] nav button.selected{background:#493342;color:#ffd49f}[data-theme="3"] .sidebar-note{color:#dac5cf}[data-theme="3"] .metrics{background:transparent;border:0;padding:0;margin-bottom:26px}[data-theme="3"] .metrics article{padding:4px 20px;border-color:#43354e}[data-theme="3"] .metrics article:first-child{padding-left:0}[data-theme="3"] button.primary{background:#f7c17e;color:#392511}[data-theme="3"] button{background:#352a42;border-color:#554262}[data-theme="3"] button:hover{background:#493955}[data-theme="3"] input,[data-theme="3"] select,[data-theme="3"] textarea{background:#1b1525;border-color:#51415e;color:#f3edf7}[data-theme="3"] main>.requests-panel{position:static;max-height:540px;overflow:auto;background:transparent;padding:0 0 20px;border:0;border-radius:0;margin-bottom:20px}[data-theme="3"] .requests-panel>.panel-head{padding:0 0 12px}[data-theme="3"] .requests-panel h2{font-size:23px;letter-spacing:-.4px}[data-theme="3"] #requestFilter{width:230px}[data-theme="3"] #discordState{margin:10px 0 16px}[data-theme="3"] #requestList{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:16px}[data-theme="3"] .request-card{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid #4c3855;background:#2a2035;border-radius:12px;overflow:hidden;min-width:0}[data-theme="3"] .request-poster{width:100%;height:210px;border-radius:0;object-fit:cover}[data-theme="3"] .poster-link{width:100%}[data-theme="3"] .request-body{padding:13px;width:100%;display:flex;flex-direction:column}[data-theme="3"] .request-title{color:#ffdab1;font-size:15px;line-height:1.4}[data-theme="3"] .request-card p{color:#c0b0c9;font-size:11px}[data-theme="3"] .request-body .row-actions{margin-top:auto;padding-top:8px}[data-theme="3"] .workspace-grid{display:block}[data-theme="3"] .torrent-scroll{max-height:550px}[data-theme="3"] .torrent-table td{padding-top:14px;padding-bottom:14px}[data-theme="3"] .torrent-table th{background:#21192d;color:#cabbd6}[data-theme="3"] .torrent-table tbody tr:nth-child(odd){background:#271e33}[data-theme="3"] .torrent-table tbody tr:hover{background:#392a45}[data-theme="3"] .torrent-name{color:#f4dfc6}[data-theme="3"] #lowerArea{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px}[data-theme="3"] #storageArea{min-width:0}[data-theme="3"] .traffic-panel{height:100%;margin:0}[data-theme="3"] .favorite{background:#2b2136}[data-theme="3"] .disk-card{background:#2a2134}[data-theme="3"] .disk-global{background:#352738;border-color:#9a6d6c}
[data-theme="3"] #detailsDialog,[data-theme="4"] #detailsDialog{inset:0 0 0 auto;margin:0;width:min(700px,96vw);max-width:700px;height:100dvh;max-height:100dvh;border-radius:0;padding:24px}[data-theme="3"] #detailsDialog{background:#241d30;border-color:#594469}
/* 4 — compact light dashboard: full-width table and optional drawers. */
:root[data-theme="4"]{--green:#2265ad;--panel:#fff;--line:#d4dfec;--muted:#566b82;background:#eaf0f6;color:#25364b}
[data-theme="4"] aside{position:static;width:100%;height:auto;inset:auto;padding:12px 24px;background:#fff;display:flex;flex-direction:row;align-items:center;gap:24px;border:0;border-bottom:1px solid #d4dfec}[data-theme="4"] .brand{margin:0;font-size:26px}[data-theme="4"] .brand span{color:#213c5b;font-size:21px}[data-theme="4"] .brand small,[data-theme="4"] .sidebar-note{display:none}[data-theme="4"] nav{display:flex;gap:6px}[data-theme="4"] nav button{width:auto;margin:0;padding:9px 12px;white-space:nowrap}[data-theme="4"] nav button.selected{background:#e2edfa;color:#1a5da4}[data-theme="4"] .account{display:flex;align-items:center;gap:7px;margin-left:auto;border:0;padding:0;flex-wrap:wrap}[data-theme="4"] .account b{margin:0 8px 0 0;font-size:12px}[data-theme="4"] main{width:100%;margin:0;padding:20px 24px;max-width:none}[data-theme="4"] header{margin-bottom:15px}[data-theme="4"] header p,[data-theme="4"] .eyebrow{display:none}[data-theme="4"] h1{font-size:23px;margin:0}[data-theme="4"] .metrics{padding:10px 0;margin-bottom:0;border-radius:8px}[data-theme="4"] .metrics strong{font-size:19px}[data-theme="4"] .metrics span{margin-bottom:4px}[data-theme="4"] .metrics article:nth-child(2) strong{color:#18795f}[data-theme="4"] .workspace-grid{display:block}[data-theme="4"] .panel{box-shadow:0 2px 8px #263d5510;border-color:#d4dfec;border-radius:8px}[data-theme="4"] .torrent-scroll{max-height:calc(100dvh - 365px);min-height:220px}[data-theme="4"] .torrent-panel .panel-head{padding:12px 16px}[data-theme="4"] .torrent-toolbar,[data-theme="4"] .bulk-toolbar{padding:8px 16px;border-color:#d4dfec}[data-theme="4"] .torrent-table td{padding:8px 10px;border-color:#e2e9f1;color:#30455e}[data-theme="4"] .torrent-table th{background:#eef4fa;color:#506781;border-color:#d4dfec}[data-theme="4"] .torrent-table tbody tr:nth-child(odd){background:#f6f9fc}[data-theme="4"] .torrent-table tbody tr:hover{background:#eaf2fc}[data-theme="4"] .torrent-name{color:#1f4f7d}[data-theme="4"] .torrent-path{color:#62768d}[data-theme="4"] .torrent-table th button{color:#3c5875}[data-theme="4"] .torrent-table .upload-cell{color:#18795f}[data-theme="4"] .count,[data-theme="4"] .badge{background:#e6edf5;color:#3d5877}[data-theme="4"] .pagination,[data-theme="4"] .panel-footer{border-color:#d4dfec;color:#536d89}[data-theme="4"] button{background:#edf3fa;border-color:#c9d7e8;color:#2e5179}[data-theme="4"] button:hover{background:#dce9f8}[data-theme="4"] button.primary{background:#2265ad;color:#fff}[data-theme="4"] button.danger{background:#fff0f0;color:#a33141;border-color:#e6bdc3}[data-theme="4"] input,[data-theme="4"] select,[data-theme="4"] textarea{background:#fff;border-color:#c6d3e2;color:#253b56}[data-theme="4"] .state-pill{background:#e8eef7;color:#385a82}[data-theme="4"] .state-pill.seeding{background:#dcf3e9;color:#176b4c}[data-theme="4"] .state-pill.error{background:#fde5e8;color:#a52c3e}[data-theme="4"] .state-pill.downloading{background:#e0edff;color:#245d9f}[data-theme="4"] .table-mobile-hint{background:#eef4fa;color:#536d89}[data-theme="4"] .bulk-toolbar details[open]>div{background:white;border-color:#b8cbe0}[data-theme="4"] dialog{background:#fff;color:#25364b;border-color:#c4d2e2}[data-theme="4"] .request-title{color:#205c9a}[data-theme="4"] .request-card p,[data-theme="4"] .request-card .request-status{color:#526982}[data-theme="4"] .request-card{border-color:#d4dfec}[data-theme="4"] .active-reaction{background:#c5e7d9!important}[data-theme="4"] .favorite,[data-theme="4"] .disk-card{background:#fff;border-color:#c8d8e7;color:#334d68}[data-theme="4"] .favorite h3{color:#355675}[data-theme="4"] .disk-global{background:#e4effa;border-color:#8bafd0}[data-theme="4"] .disk-card h3,[data-theme="4"] .disk-card strong{color:#2b5076}[data-theme="4"] .favorite .free{color:#23745c}[data-theme="4"] .file-row{border-color:#d4dfec}[data-theme="4"] .file-row:hover{background:#eef4fa}[data-theme="4"] .browser-toolbar,[data-theme="4"] .browser-space{background:#f3f7fc;color:#46617e}[data-theme="4"] .file-name{color:#2d587f}[data-theme="4"] .file-name.folder{color:#24669d}[data-theme="4"] #trafficArea .traffic-panel{background:#172232;border-color:#304057;color:#eaf1fa;margin:0}[data-theme="4"] #trafficArea .hint{color:#a7b8cc}[data-theme="4"] .theme-choice{background:#f3f7fc;color:#233d5b;border-color:#bccfe3}[data-theme="4"] .theme-choice:hover{background:#e4eef9}[data-theme="4"] .theme-choice[aria-pressed=true]{border-color:#2265ad}[data-theme="4"] .theme-number,[data-theme="4"] .theme-description{color:#526b86}[data-theme="4"] .theme-select-label{color:#2265ad}[data-theme="4"] #toast{background:#183e63;color:#fff}
@media(min-width:2400px){[data-theme="2"] .workspace-grid{grid-template-columns:minmax(0,1fr) 340px}[data-theme="3"] #requestList{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}[data-theme="3"] .request-poster{height:240px}}
@media(max-width:1200px){[data-theme="2"] .workspace-grid{grid-template-columns:minmax(0,1fr)}[data-theme="2"] #requestsPanel{max-height:330px;position:static}[data-theme="2"] #requestList{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}[data-theme="3"] #lowerArea{grid-template-columns:minmax(0,1fr)}[data-theme="4"] aside{gap:12px;flex-wrap:wrap}[data-theme="4"] .account{gap:5px}}
@media(max-width:700px){.theme-dialog{padding:16px}.theme-choices{grid-template-columns:minmax(0,1fr)}.theme-preview{height:100px}.theme-description{min-height:0}.theme-choice>strong{font-size:18px}.theme-choice{gap:6px}.theme-dialog .dialog-head{align-items:flex-start}.layout-tools{display:block}.layout-tools>div{margin-top:10px}.layout-tools button{padding:8px;font-size:11px}[data-theme="2"] aside,[data-theme="3"] aside{position:static;width:100%;padding:12px;display:grid;grid-template-columns:25px 1fr auto;gap:8px}[data-theme="2"] .brand,[data-theme="3"] .brand{margin:0}[data-theme="2"] main,[data-theme="3"] main,[data-theme="4"] main{margin:0;width:100%;padding:18px 12px}[data-theme="2"] .torrent-scroll,[data-theme="4"] .torrent-scroll{max-height:60vh;min-height:160px}[data-theme="3"] #requestList{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}[data-theme="3"] .request-poster{height:190px}[data-theme="3"] .request-body{padding:9px}[data-theme="3"] .request-title{font-size:13px}[data-theme="3"] main>.requests-panel{max-height:520px}[data-theme="3"] .metrics{gap:12px;margin-bottom:20px}[data-theme="3"] .metrics article{padding:0 10px}[data-theme="3"] .metrics article:nth-child(3){padding-left:0}[data-theme="4"] aside{padding:10px 12px;gap:8px}[data-theme="4"] .brand{display:none}[data-theme="4"] nav{flex:1}[data-theme="4"] nav button{font-size:11px;padding:8px}[data-theme="4"] .account{width:100%;margin:0;justify-content:flex-start}[data-theme="4"] .account b{display:block}[data-theme="4"] .torrent-panel .panel-head{padding:12px}[data-theme="4"] #detailsDialog,[data-theme="3"] #detailsDialog{padding:16px;width:100vw;max-width:100vw}#detailDock dialog{padding:14px}}
/* Explicit cell backgrounds override the original alternating-row rules. */
[data-theme="3"] .torrent-toolbar{background:#21192d}[data-theme="3"] .torrent-table td{background:#241d30}[data-theme="3"] .torrent-table tr:nth-child(even) td{background:#2b2238}[data-theme="3"] .torrent-table tr:hover td{background:#392a45}
[data-theme="4"] .torrent-toolbar{background:#f0f5fb}[data-theme="4"] label{color:#4e657f}[data-theme="4"] .torrent-table td{background:#fff}[data-theme="4"] .torrent-table tr:nth-child(even) td{background:#f3f7fc}[data-theme="4"] .torrent-table tr:hover td{background:#e5effa}[data-theme="4"] .progress-label{color:#4d6784}[data-theme="4"] .torrent-error{color:#b12d42}
