/* Shared compact wrapper option. Apps opt in through the registry. */
.tg-compact-tool .breadcrumbs { padding: 8px 0; }
.tg-compact-tool .breadcrumbs .header-container { display: block; height: auto; min-height: 0; }
.tg-compact-tool .breadcrumbs ol { flex-wrap: nowrap; min-width: 0; width: 100%; }
.tg-compact-tool .breadcrumbs li { flex: 0 0 auto; }
.tg-compact-tool .breadcrumbs li:last-child { min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
.tg-compact-tool .breadcrumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; }
.tg-compact-tool .tool-page-header { padding: 16px 0; }
.tg-compact-tool .tool-header-meta { margin-bottom: 4px; gap: 8px; }
.tg-compact-tool .tool-header-meta .tool-card-status,
.tg-compact-tool .tool-header-meta .pro-badge { display: none; }
.tg-compact-tool .tool-page-header h1 { font-size: 26px; line-height: 1.25; }
.tg-compact-tool .tool-page-header p { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.tg-compact-tool .tool-header-links { margin-top: 8px; }
.tg-compact-tool .tool-field-guide-link { padding: 4px 8px; font-size: 12px; }
.tg-compact-tool .tool-embed-wrapper { padding: 12px 0; }
.tg-compact-tool .tool-embed-toolbar { padding: 8px 12px; }
/* Preserve existing gear eligibility, coffee and tracking actions in compact mode. */
@media (max-width: 600px) {
  .tg-compact-tool .tool-embed-toolbar { flex-direction: row; align-items: center; }
  .tg-compact-tool .tool-embed-label { flex: 0 0 auto; }
  .tg-compact-tool .tool-embed-actions { flex: 0 0 auto; width: auto; }
  .tg-compact-tool .tool-embed-actions .tool-action-btn { flex: none; }
  .tg-compact-tool .tool-embed-toolbar { gap: 6px; padding: 8px; }
  .tg-compact-tool .tool-embed-actions { gap: 4px; }
  .tg-compact-tool .tool-action-btn { padding: 6px; font-size: 12px; }
}
