/* Tabs and selection controls retain their native game frames.
   The surrounding scene surfaces and portal-shell geometry stay unchanged. */
body[data-view=builder] :is(.build-meta,.arsenal-equipment,.workshop-scene,.sanctum-scene,.virtue-scene,.journal-scene,.stats-panel){
  border:0;
  border-image:none;
  box-shadow:0 6px 22px #0003;
}
body[data-view=builder] .build-record>summary{
  border:0;
  border-image:none;
  background:#b7945912;
  border-bottom:1px solid #b5986230;
}
body[data-view=builder] .builder-tabs{gap:.35rem;background:#201b1de8}
body[data-view=builder] :is(.scene-heading,.arsenal-heading):after{content:none}
body[data-view=builder] dialog .dialog-head{
  border:0;
  border-image:none;
  border-bottom:1px solid var(--line);
  padding:.4rem 0 .9rem;
}
body[data-view=builder] .inventory-preview{
  border:0;
  border-image:none;
  border-left:1px solid var(--line);
  background:transparent;
}
body[data-view=builder] .sanctum-scene .skill-inspection,
body[data-view=builder] .journal-scene .journal-page{
  border:0;
  border-image:none;
}
body[data-view=builder] .sanctum-scene .skill-inspection{box-shadow:none}
body[data-view=builder] .pact-arts-shelf .pact-ability{
  border:0;
  border-image:none;
  border-top:1px solid #705f5030;
  background:transparent;
}
body:not([data-view=builder]) :is(.panel,.doc-card,.resource-panel,.empty-state,.reading-view),
body[data-view] .tier-board{
  border:0;
  border-image:none;
  box-shadow:0 6px 22px #0002;
}
.tier-label:before{content:none}
body[data-view] .tier-item,
body[data-view] .tier-item:hover{
  border:1px solid #b5986230;
  border-image:none;
}
body[data-view] .tier-item:hover{border-color:var(--gold)}
body:not([data-view=builder]) .segmented button{border-color:transparent;box-shadow:none}
body:not([data-view=builder]) .segmented button[aria-pressed=true]{border-color:transparent;border-bottom-color:var(--gold)}
.button,.discord-btn,body[data-view=builder] .button,body[data-view=builder] .discord-btn{box-shadow:none}
body[data-view=builder] .build-record>summary:focus-visible{outline-offset:3px}
@media(max-width:760px){
  body[data-view=builder] .inventory-preview{border-left:0;border-top:1px solid var(--line)}
}
