/* Scoped additions. Existing X-ray and auscultation themes remain untouched. */
.view-boosty,.view-science{
  --vct-xs:.8125rem;--vct-sm:.875rem;--vct-base:1rem;--vct-lg:1.25rem;
  --vct-1:4px;--vct-2:8px;--vct-3:12px;--vct-4:16px;--vct-5:20px;--vct-6:24px;--vct-8:32px;
  background:var(--bg);
}
.view-boosty .page-head,.view-science .page-head{padding-bottom:var(--vct-6)}
.view-boosty .vcs-fact,.view-science .vcs-fact{border-radius:6px;background:transparent}
.view-boosty .btn-primary{background:var(--green);box-shadow:none}
.view-boosty .embed-window{box-shadow:none;border-color:var(--line-2)}
.view-boosty .embed-chrome{display:none}
.view-boosty .bo-banner{padding:var(--vct-6);background:var(--panel)}
.view-boosty .bo-banner-art{height:4px;margin:calc(-1 * var(--vct-6)) calc(-1 * var(--vct-6)) var(--vct-6);background:var(--green)}
.view-boosty .bo-ident{padding:0;gap:var(--vct-4);align-items:center}
.view-boosty .bo-avatar{margin:0;width:52px;height:52px;border-radius:12px;background:var(--green);box-shadow:none;border:0}
.view-boosty .bo-title{font-size:var(--vct-lg)}
.view-boosty .bo-handle{font-size:var(--vct-xs);overflow-wrap:anywhere}
.view-boosty .bo-bio{max-width:80ch;margin-top:var(--vct-4);font-size:var(--vct-base);line-height:1.65}
.view-boosty .bo-cols{padding:var(--vct-6);gap:var(--vct-8);grid-template-columns:minmax(0,1fr) 300px}
.view-boosty .bo-feed,.vcs-results{min-width:0}
.vcb-enhanced [data-boosty-posts],.vcb-enhanced [data-boosty-footer],.vcb-enhanced .vcb-legend{display:none!important}
.view-boosty .bo-section-h{font-size:var(--vct-lg);margin-bottom:var(--vct-4)}
.view-boosty .bo-tier{border-radius:8px;padding:var(--vct-4);background:var(--panel)}
.view-boosty .bo-tier-badge{font-size:.75rem;letter-spacing:0;position:static;display:table;margin-bottom:var(--vct-2)}
.view-boosty .bo-tier-hot{background:var(--panel-2)}
.view-boosty .bo-tier-top{align-items:flex-start;flex-wrap:wrap}
.view-boosty .bo-tier-desc{font-size:var(--vct-sm);line-height:1.5}
.view-boosty .bo-tiers{top:calc(var(--nav-h) + var(--vct-6))}
.view-boosty .bo-tier-price small{font-size:.75rem}
.view-boosty .embed-note{font-size:var(--vct-sm);line-height:1.6;color:var(--muted)}
.vct-field{display:flex;flex-direction:column;gap:var(--vct-2);min-width:0}
.vct-field label{font-size:var(--vct-sm);font-weight:600;color:var(--ink)}
.vct-input{box-sizing:border-box;min-width:0;width:100%;min-height:46px;padding:var(--vct-3);
  border:1px solid var(--line-2);border-radius:8px;background:var(--panel);color:var(--ink);font:400 var(--vct-sm)/1.4 var(--font)}
.vct-input::placeholder{color:var(--muted);opacity:1}
.vct-input:focus-visible,.vct-button:focus-visible,.vcb-link:focus-visible,
.view-science .pub-chip:focus-visible,.view-science .pc-fold:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.vct-filters{display:flex;flex-wrap:wrap;gap:var(--vct-2);margin-top:var(--vct-3)}
.vct-button{min-height:44px;padding:var(--vct-2) var(--vct-3);border:1px solid var(--line-2);
  border-radius:6px;background:var(--panel);color:var(--ink);font:600 var(--vct-sm)/1.4 var(--font);cursor:pointer}
.vct-button:hover{border-color:var(--green);background:var(--panel-2)}
.vct-button[aria-pressed="true"]{background:var(--green-2);border-color:var(--green-2);color:#fff}
[data-theme="dark"] .vct-button[aria-pressed="true"]{color:var(--bg)}
.vct-result{font-size:var(--vct-xs);color:var(--muted);line-height:1.5;margin:var(--vct-3) 0}
.vcb-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.vcb-item{min-width:0;border-bottom:1px solid var(--line)}
.vcb-link{display:flex;flex-direction:column;gap:var(--vct-2);padding:var(--vct-5) var(--vct-2);
  color:var(--ink);text-decoration:none;border-radius:4px}
.vcb-link:hover{background:var(--panel-2)}
.vcb-link:hover .vcb-post-title{color:var(--green-2)}
.vcb-meta{display:flex;flex-wrap:wrap;gap:var(--vct-2) var(--vct-3);align-items:center;font-size:var(--vct-xs);color:var(--muted)}
.vcb-access{display:inline-flex;align-items:center;gap:6px}
.vcb-access::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--muted)}
.vcb-access.is-open{color:#166534}.vcb-access.is-open::before{background:currentColor}
[data-theme="dark"] .vcb-access.is-open{color:#86efac}
.vcb-post-title{font-size:var(--vct-base);font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.vcb-level,.vcb-provenance{font-size:var(--vct-xs);color:var(--muted);line-height:1.6}
.vcb-provenance{padding-top:var(--vct-4);margin-top:var(--vct-4);border-top:1px solid var(--line)}
.vct-footer{display:flex;flex-wrap:wrap;gap:var(--vct-2);margin-top:var(--vct-4)}
.vct-empty{padding:var(--vct-8) var(--vct-5);background:var(--panel-2);border-radius:8px}
.vct-empty strong{color:var(--ink);font-size:var(--vct-base)}
.vct-empty p{color:var(--muted);font-size:var(--vct-sm);margin:var(--vct-2) 0 var(--vct-4);line-height:1.6}
.view-boosty [hidden],.view-science [hidden]{display:none!important}

.view-science .science-grid{grid-template-columns:280px minmax(0,1fr);gap:var(--vct-6);align-items:start}
.view-science .science-profile{padding:var(--vct-5);border-radius:10px;box-shadow:none;position:sticky;top:calc(var(--nav-h) + var(--vct-6))}
.view-science .sp-note{font-size:var(--vct-sm);line-height:1.65;color:var(--muted)}
.view-science .sp-stats{padding-top:var(--vct-4);gap:var(--vct-3)}
.view-science .sp-stats dt{font-size:.75rem;color:var(--muted)}
.view-science .sp-filter{display:flex;flex-direction:column;gap:var(--vct-2)}
.view-science .pub-chip{border-radius:6px;min-height:44px;padding:var(--vct-2) var(--vct-3);font-size:var(--vct-sm);text-align:left}
.view-science .pub-chip span{margin-left:auto;opacity:1}
.vcs-controls{display:grid;grid-template-columns:minmax(0,1fr) 154px;gap:var(--vct-3);margin-bottom:var(--vct-3)}
.vcs-controls .vct-result{grid-column:1/-1;margin:0}
.view-science .pub-list{gap:var(--vct-3)}
.view-science .pub-item{border:1px solid var(--line);border-radius:10px;box-shadow:none;grid-template-columns:140px minmax(0,1fr)}
.view-science .pub-item:hover{transform:none;box-shadow:none;border-color:var(--line-2)}
.view-science .pub-cover img{object-fit:contain}
.view-science .pub-item.pc-shut{grid-template-columns:76px minmax(0,1fr)}
.view-science .pub-item.pc-shut h4{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:var(--vct-base);line-height:1.5}
.view-science .pub-item.pc-ready .pub-body{padding:var(--vct-5)}
.view-science .pub-tags{gap:var(--vct-2)}
.view-science .pub-item h4{font-size:var(--vct-base);line-height:1.5;margin-bottom:var(--vct-2)}
.view-science .pub-desc{font-size:var(--vct-sm);line-height:1.7}
.view-science .pub-authors{font-size:var(--vct-xs);font-style:normal;color:var(--muted)}
.view-science .pub-journal,.view-science .pub-type{font-size:var(--vct-xs);color:var(--muted)}
.view-science .pub-year{color:var(--muted);font-size:var(--vct-xs)}
.view-science .pub-badge{font-size:.75rem;border-radius:4px;padding:var(--vct-1) var(--vct-2)}
html:not([data-theme="dark"]) .view-science [data-topic="morphology"]{--tc:#1d4ed8}
html:not([data-theme="dark"]) .view-science [data-topic="pulmonary"]{--tc:#0e6374}
html:not([data-theme="dark"]) .view-science [data-topic="metabolism"]{--tc:#6d28d9}
html:not([data-theme="dark"]) .view-science [data-topic="myocarditis"]{--tc:#b91c1c}
html:not([data-theme="dark"]) .view-science [data-topic="oncology"]{--tc:#be185d}
html:not([data-theme="dark"]) .view-science [data-topic="electro"]{--tc:#046449}
.view-science .pub-foot{align-items:flex-start;gap:var(--vct-3)}
.view-science .pub-link{font-size:var(--vct-xs);overflow-wrap:anywhere}
.view-science .pc-chev{display:none}
.view-science .pub-item .pc-fold{position:static;float:right;min-height:36px;margin:0 0 var(--vct-2) var(--vct-2);font-size:.75rem;border-radius:4px}
.view-science .pub-item.pc-shut .pc-fold{display:none!important}
.view-science .vcs-expand{display:none}
.view-science .pub-item.pc-shut .pub-body .vcs-expand{display:inline-flex!important;min-height:44px;font-size:.75rem;
  padding:var(--vct-1) var(--vct-2);margin-top:var(--vct-2);color:var(--green-2)}
.view-science .pc-bar{align-items:center;flex-wrap:wrap;font-size:var(--vct-xs);line-height:1.6;margin:0 0 var(--vct-1);gap:var(--vct-2)}
.view-science .pc-all{min-height:44px;border-radius:6px;font-size:var(--vct-xs);padding:var(--vct-2) var(--vct-3)}
.view-science .vcs-filtered{display:none!important}
.view-science .vcs-has-query #pcBar{display:none}
.view-science .sci-groups-wrap{margin-top:var(--vct-8)}
.view-science .sci-group{box-shadow:none;border-radius:10px}

@media(max-width:900px){
  .view-boosty .bo-cols{grid-template-columns:minmax(0,1fr)}
  .view-boosty .bo-tiers{position:static}
  .view-boosty .bo-tier-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--vct-3)}
  .view-science .science-grid{grid-template-columns:minmax(0,1fr)}
  .view-science .science-profile{position:static}
  .view-science .sp-filter{flex-direction:row;flex-wrap:wrap}
}
@media(max-width:560px){
  .view-boosty .bo-banner,.view-boosty .bo-cols{padding:var(--vct-4)}
  .view-boosty .bo-banner-art{margin:calc(-1 * var(--vct-4)) calc(-1 * var(--vct-4)) var(--vct-4)}
  .view-boosty .bo-title{font-size:1.125rem}
  .view-boosty .bo-avatar{width:44px;height:44px;flex:none}
  .view-boosty .bo-bio{font-size:var(--vct-sm)}
  .view-boosty .bo-tier-list{grid-template-columns:minmax(0,1fr)}
  .view-boosty .bo-ident>div{min-width:0}
  .view-science .science-profile{padding:var(--vct-4)}
  .view-science .science-grid{display:flex;flex-direction:column}
  .view-science .science-grid>*{width:100%;box-sizing:border-box}
  .view-science .vcs-results{display:contents}
  .view-science .vcs-controls{order:-1;width:100%}
  .view-science .pub-list{order:1;width:100%}
  .view-science .vcs-results>.vct-empty{order:2;width:100%;box-sizing:border-box}
  .view-science .sp-stats{display:none}
  .vcs-controls{grid-template-columns:minmax(0,1fr) 110px}
  .vcs-controls label{min-height:40px;display:flex;align-items:flex-end}
  .view-science .pub-item,.view-science .pub-item.pc-shut{grid-template-columns:minmax(0,1fr)}
  .view-science .pub-item .pub-cover{height:140px;min-height:0}
  .view-science .pub-item.pc-shut .pub-cover{display:none}
  .view-science .pub-item.pc-ready .pub-body{padding:var(--vct-4)}
  .view-science .pub-tags{padding:0;gap:var(--vct-2)}
  .view-science .pub-type{flex-basis:100%;order:3}
  .view-science .pub-year{margin-left:auto}
  .view-science .pub-item .pc-fold{float:none;display:table;margin:0 0 var(--vct-3) auto}
}
