html .app-shell .workspace.torrent-on{grid-template-columns:minmax(0,1fr)}
html .app-shell .workspace.torrent-on>.chat-panel{grid-column:1;grid-template-rows:26px minmax(0,1fr)}
.workspace.torrent-on>.roster-panel,.workspace.torrent-on #composer,.workspace.torrent-on #whisperDock,.workspace.torrent-on #snTyping{display:none!important}
.console-host .console.torrent-surface{padding:0;white-space:normal;background:var(--pt-base);color:var(--pt-text);font:12px/1.4 'Segoe UI',sans-serif;overflow:auto}
.torrent-surface.active{display:flex!important;flex-direction:column}
.torrent-toolbar,.torrent-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:7px 9px;border-bottom:1px solid var(--pt-border)}
.torrent-toolbar strong{margin-right:10px}.torrent-toolbar>span{margin-left:auto;color:var(--pt-muted);font-variant-numeric:tabular-nums}
.torrent-surface :is(button,input,select,textarea),.torrent-dialog :is(button,input,textarea){font:inherit;background:var(--pt-surface);color:var(--pt-text);border:1px solid var(--pt-border);border-radius:0;padding:4px 7px}
.torrent-surface button:hover,.torrent-dialog button:hover{background:var(--pt-hover);color:var(--pt-text)}
.torrent-surface :focus-visible,.torrent-dialog :focus-visible{outline:2px solid var(--pt-accent);outline-offset:-1px}
.torrent-tools input{min-width:120px;flex:1}#torrentStatus{padding:0 9px;color:var(--pt-accent);overflow-wrap:anywhere}#torrentStatus:not(:empty){padding:7px 9px}
.torrent-layout{flex:1;min-height:250px;display:grid;grid-template-columns:minmax(0,1fr) 245px;overflow:hidden}.torrent-main{min-width:0;min-height:0;display:flex;flex-direction:column}
.torrent-table-wrap{flex:1;min-height:160px;overflow:auto}.torrent-surface table{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}.torrent-surface th{position:sticky;top:0;background:var(--pt-surface);font-weight:500;color:var(--pt-muted)}.torrent-surface :is(td,th){padding:7px 9px;border-bottom:1px solid var(--pt-line);white-space:nowrap}.torrent-surface td:first-child{max-width:300px}.torrent-surface tr.selected{background:var(--pt-select)}.torrent-surface .torrent-name{background:transparent;border:0;text-align:left;padding:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:block}.torrent-surface progress{accent-color:var(--pt-accent);width:80px;height:6px}.torrent-surface td small{margin-left:5px}
#torrentEmpty{padding:60px 20px;text-align:center;font-size:16px;color:var(--pt-text)}#torrentEmpty small{display:inline-block;margin-top:8px;font-size:12px;color:var(--pt-muted)}
.torrent-side{overflow:auto;border-left:1px solid var(--pt-border);background:var(--pt-surface);padding:12px}.torrent-side h3{font-size:13px;overflow-wrap:anywhere}.torrent-side progress{width:100%;height:8px}.torrent-side dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px}.torrent-side dt{color:var(--pt-muted)}.torrent-side dd{margin:0;overflow-wrap:anywhere}.torrent-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.torrent-side p,#torrentNetwork{color:var(--pt-muted);font-size:11px}
#torrentDetails{border-top:1px solid var(--pt-border);padding:8px;max-height:45%;overflow:auto}#torrentDetails:empty{display:none}#torrentDetails nav{display:flex;gap:4px;margin-bottom:10px}#torrentDetails [aria-pressed=true]{border-color:var(--pt-accent);color:var(--pt-accent)}#torrentDetails ul{padding-left:18px;overflow-wrap:anywhere}#torrentDetails textarea{display:block;width:100%;min-height:55px;margin-bottom:6px}.torrent-file-list label{display:flex;gap:8px;align-items:center;padding:4px 0}.torrent-file-list span{flex:1;overflow-wrap:anywhere}.torrent-file-list small{color:var(--pt-muted);white-space:nowrap}.torrent-drag{outline:2px dashed var(--pt-accent);outline-offset:-4px}.torrent-error{color:var(--pt-accent)}
.torrent-dialog{width:min(570px,95vw);max-height:90vh;overflow:auto;background:var(--pt-base);color:var(--pt-text);border:1px solid var(--pt-border);font:12px/1.5 'Segoe UI',sans-serif;padding:20px}.torrent-dialog::backdrop{background:#0009}.torrent-dialog h2{font-size:16px;margin:0 0 15px}.torrent-dialog label{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.torrent-dialog input:not([type=checkbox]){width:100%;min-width:0}.torrent-dialog .torrent-check{flex-direction:row;align-items:center}.torrent-dialog fieldset{margin:14px 0;border:1px solid var(--pt-border)}.torrent-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.torrent-dialog p{color:var(--pt-muted)}.torrent-dialog footer{display:flex;justify-content:flex-end;gap:8px}.torrent-dialog input[type=checkbox]{accent-color:var(--pt-accent)}
@media(max-width:800px){.torrent-layout{grid-template-columns:minmax(0,1fr)}.torrent-side{border-left:0;border-top:1px solid var(--pt-border);max-height:240px}.torrent-layout{overflow:auto}.torrent-main{min-height:340px}.torrent-setting-grid{grid-template-columns:1fr}}
.console-host .console.torrent-surface{background:var(--pt-base)!important}
.torrent-surface input[type=checkbox],.torrent-dialog input[type=checkbox]{accent-color:var(--pt-accent)!important}
.torrent-surface button:disabled,.torrent-dialog button:disabled{opacity:.45;cursor:default}
