/* Flat hierarchy: retain border widths for stable cards/virtualization, but let
   surface tones and existing spacing do the grouping. Inputs, focus outlines,
   semantic states and useful internal dividers keep their original affordance. */
.card,.panel,.taskcard,.execution,.table-wrap,.box,.audit,.next,.review,
.intake-review,.execution-stream,.inspect-intro,.inspect-card,.inspect-diff,
.tool-ledger,.usage-surface,.execution-context,.gallery-card,.delivery-section,
.sources-body,.workflow-times,.case-list article{border-color:transparent}
.card,.panel,.taskcard,.execution,.box,.inspect-card,.tool-ledger,.usage-surface,
.gallery-card,.delivery-section,.sources-body,.case-list article{background:var(--surface-flat)}
.card:hover,.taskcard:hover,.execution:hover{border-color:transparent;background:var(--surface-flat-hover)}
/* Selection remains readable without illuminating the entire card. */
.taskcard.selected{border-color:#6e6142;background:var(--surface-selected)}
.primary,.quiet,.quiet:hover,.close,.review button,.view-retry{border-color:transparent;box-shadow:none}
.quiet,.close,.view-retry{background:var(--surface-flat-raised)}
.quiet:hover,.close:hover,.view-retry:hover{background:var(--surface-track)}
.provider,.project-icon,.agent-orb,.inspect-icon,.tag,.messenger-badge,
.inspect-pills span,.inspect-status,.column-head b,.class,.view-toggle,.quota-account small,.demo{border-color:transparent}
.provider,.agent-orb,.inspect-icon,.tag,.messenger-badge,.view-toggle{background:var(--surface-flat-raised)}
.chat-message,.chat-message.user,.gallery-thumb,.gallery-thumb:hover,.drawer-current{border-color:transparent}
.chat-message{background:var(--surface-flat-raised)}
.event-link,.event-link:hover{border-color:transparent;background:var(--surface-flat-hover)}
/* Native modal elevation stays neutral; there is no gold frame or halo. */
dialog,.inspect-modal,.toast{border-color:transparent}
@media(forced-colors:active){
  .card,.panel,.taskcard,.execution,.table-wrap,.box,.inspect-card,.case-list article,
  .primary,.quiet,.close,.review button,.view-retry,.taskcard.selected,
  .chat-message,.gallery-thumb,dialog,.inspect-modal{border-color:CanvasText}
}
