/* Shared resource browsing: quiet rows, contained search, visible primary actions.
   All colors follow the account theme; disclosures retain their native behavior. */
#home-view .home-history-panel .history-filters {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-subtle, var(--paper));
  gap: 12px 16px;
}
#home-view #history-list { gap: 0; }
#home-view #history-list > .history-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  padding: 18px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
#home-view #history-list > .history-card:last-child { border-bottom: 0; }
#home-view #history-list > .history-card:is(:hover, :focus-within, .selected) {
  background: color-mix(in srgb, var(--green) 5%, var(--paper));
}
#home-view #history-list .history-item {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 52px;
  padding: 0 0 0 44px;
  gap: 4px;
}
#home-view #history-list .history-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: 3px;
  width: 20px;
  height: 26px;
  border: 1.5px solid var(--green);
  border-radius: 4px;
  background: linear-gradient(var(--line), var(--line)) 4px 8px / 11px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 4px 13px / 11px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 4px 18px / 8px 1px no-repeat;
}
#home-view #history-list .history-open-audit { grid-column: 2; grid-row: 1; min-height: 44px; }
#home-view #history-list .history-more-actions { grid-column: 2; grid-row: 2; min-width: 0; border: 0; background: transparent; box-shadow: none; }
#home-view #history-list .history-more-actions > summary { min-height: 44px; padding: 10px; text-align: right; font-size: 13px; }
#home-view #history-list .history-more-actions > summary::after { content: "⌄"; width: 20px; height: 20px; border: 0; background: transparent; color: var(--muted); }
#home-view #history-list .history-more-actions[open] > summary { border-bottom: 0; }
#home-view #history-list .history-more-actions[open] > summary::after { content: "⌃"; }
#home-view #history-list .history-more-actions[open] { grid-column: 1 / -1; grid-row: 3; }
#home-view #history-list .history-more-body { margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }

#audit-data-panel .multi-file-queue { padding: 14px 16px; border-radius: 14px; box-shadow: none; }
#audit-data-panel .staged-files-list { gap: 0; }
#audit-data-panel .staged-file-item { min-height: 52px; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#audit-data-panel .staged-file-item:last-child { border-bottom: 0; }
#audit-data-panel .staged-file-item:hover { background: color-mix(in srgb, var(--green) 5%, var(--paper)); }
#audit-data-panel .queue-badge { border-radius: 6px; padding: 6px; min-width: 36px; text-align: center; }
#audit-data-panel .staged-file-name { white-space: normal; overflow-wrap: anywhere; }
#audit-data-panel .file-remove-btn { min-width: 44px; min-height: 44px; margin: 0; }
#audit-data-panel .file-queue-actions { border-top-style: solid; }

.help-center-page .guide-browser { border-radius: 16px; box-shadow: none; }
.help-center-page .guide-search { margin: 0 12px 12px; padding: 12px; border-radius: 12px; background: var(--paper-subtle, var(--paper)); }
.help-center-page .guide-search input { min-height: 44px; border-radius: 10px; background: var(--paper); }
.help-center-page .guide-topic-link { min-height: 52px; padding: 12px 16px; align-items: start; border-bottom: 1px solid var(--line); }
.help-center-page .guide-topic-link:last-child { border-bottom: 0; }
.help-center-page .guide-topic-number { display: grid; place-items: center; min-height: 26px; border-radius: 6px; background: var(--paper-subtle, var(--paper)); color: var(--green); }
.help-center-page .guide-topic-link small { line-height: 1.5; }
.member-help-search > div { padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-subtle, var(--paper)); }
.member-help-search input { border-color: transparent; background: transparent; }
:is(.history-item, .history-open-audit, .history-more-actions > summary, .file-remove-btn, .guide-topic-link):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 600px) {
  #home-view #history-list > .history-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 4px; }
  #home-view #history-list .history-item { grid-column: 1 / -1; grid-row: 1; }
  #home-view #history-list .history-open-audit { grid-column: 1; grid-row: 2; justify-self: start; }
  #home-view #history-list .history-more-actions { grid-column: 2; grid-row: 2; }
  #home-view #history-list .history-more-actions[open] { grid-column: 1 / -1; grid-row: 3; }
  #home-view .home-history-panel .history-filters { padding: 12px; }
  #audit-data-panel .staged-file-info { flex-wrap: wrap; gap: 6px; }
  #audit-data-panel .staged-file-name { flex: 1; min-width: 0; }
  #audit-data-panel .staged-file-size { margin-left: 0; }
}
@media print {
  .help-center-page .guide-topic-link, .help-center-page .guide-search { background: transparent; }
}
