
    .buddy-search-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-soft);
      border-radius: 1rem;
      padding: 1.25rem;
      box-shadow: var(--shadow-soft);
    }
    .buddy-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 1rem;
    }
    .buddy-tab {
      border: 1px solid var(--border-strong);
      background: #fff;
      color: var(--text);
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      font-weight: 600;
      cursor: pointer;
    }
    .buddy-tab.is-active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }
    .buddy-tab-panel {
      display: none;
      width: 100%;
      min-height: 120px;
    }
    .buddy-tab-panel.is-active {
      display: block;
    }
    body.buddy-match-active #buddyMatchPanel {
      display: block;
    }
    body.buddy-match-active #buddySearchPanel {
      display: none;
    }
    body.buddy-search-active #buddySearchPanel {
      display: block;
    }
    body.buddy-search-active #buddyMatchPanel {
      display: none;
    }
    .buddy-match-actions {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      align-items: center;
    }
    .buddy-consent {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .buddy-search-grid {
      display: grid;
      gap: 0.9rem;
      grid-auto-flow: column;
      grid-auto-columns: minmax(190px, 1fr);
      align-items: end;
      overflow-x: auto;
      padding-bottom: 0.35rem;
    }
    .buddy-search-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      justify-content: flex-end;
    }
    .buddy-search-message {
      margin-top: 0.6rem;
      font-size: 0.9rem;
      color: var(--text-muted);
    }
    .buddy-match-message-row td {
      padding: 0 0.5rem;
    }
    .buddy-match-message-row .buddy-search-message {
      margin-top: 0;
    }
    .buddy-search-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0 0.6rem;
      font-size: 0.9rem;
    }
    .buddy-search-table th {
      text-align: center;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      padding: 0 0.5rem;
    }
    .buddy-search-table td {
      background: #f8fafc;
      padding: 0.65rem 0.6rem;
      vertical-align: top;
      text-align: center;
    }
    .buddy-search-table .col-buddy {
      max-width: 160px;
    }
    .buddy-search-table .col-summary {
      display: none;
    }
    .buddy-summary-top {
      display: flex;
      justify-content: space-between;
      gap: 0.6rem;
      align-items: center;
      font-weight: 600;
    }
    .buddy-summary-route-line {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      min-width: 0;
    }
    .buddy-summary-date {
      font-size: 0.78rem;
      color: var(--text-muted);
      font-weight: 600;
    }
    .buddy-summary-route {
      color: var(--text-muted);
      font-weight: 500;
      font-size: 0.78rem;
    }
    .buddy-summary-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.6rem;
      margin-top: 0.35rem;
    }
    .buddy-summary-meta {
      font-size: 0.74rem;
      color: var(--text-muted);
    }
    .buddy-summary-more {
      font-size: 0.74rem;
      color: var(--primary);
      background: none;
      border: none;
      padding: 0;
      text-decoration: underline;
      cursor: pointer;
    }
    .buddy-consent-modal {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      z-index: 9999;
    }
    .buddy-consent-modal.is-open {
      display: flex;
    }
    .buddy-consent-modal-card {
      background: #ffffff;
      width: min(640px, 95vw);
      max-height: 80vh;
      border-radius: 16px;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .buddy-consent-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.25rem;
      border-bottom: 1px solid #e2e8f0;
    }
    .buddy-consent-modal-title {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
    }
    .buddy-consent-modal-close {
      border: none;
      background: transparent;
      font-size: 1.2rem;
      cursor: pointer;
      color: var(--text-muted);
    }
    .buddy-consent-modal-body {
      padding: 1rem 1.25rem 1.5rem;
      overflow: auto;
      color: var(--text);
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .buddy-summary-details {
      display: none;
      margin-top: 0.5rem;
      padding: 0.6rem;
      border-radius: 0.6rem;
      background: #eef2ff;
      font-size: 0.74rem;
      color: var(--text-muted);
    }
    .buddy-summary-details strong {
      color: var(--text);
      font-weight: 600;
    }
    .buddy-row-expanded .buddy-summary-details {
      display: block;
    }
    .buddy-row-expanded td {
      background: #eef2ff;
    }
    .buddy-summary-actions {
      display: flex;
      gap: 0.4rem;
      align-items: center;
    }
    .buddy-search-table tbody tr td:first-child {
      border-radius: 0.6rem 0 0 0.6rem;
    }
    .buddy-search-table tbody tr td:last-child {
      border-radius: 0 0.6rem 0.6rem 0;
    }
    .buddy-search-table .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: var(--primary-soft);
      color: var(--primary-deep);
      font-size: 0.7rem;
      font-weight: 600;
      padding: 0.2rem 0.5rem;
      border-radius: 999px;
    }
    .buddy-search-empty {
      text-align: center;
      color: var(--text-muted);
      padding: 1.2rem 0;
    }
    .buddy-search-pagination {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.6rem;
      margin-top: 0.8rem;
    }
    .buddy-search-page-info {
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .buddy-contact {
      margin-top: 0.2rem;
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .buddy-result-actions {
      display: flex;
      flex-direction: row;
      gap: 0.45rem;
      align-items: center;
      justify-content: center;
    }
    .buddy-result-actions .btn {
      white-space: nowrap;
    }
    .buddy-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .buddy-action-btn svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    .buddy-action-label {
      font-size: 0.8rem;
      font-weight: 600;
    }
    .buddy-consent-text {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-bottom: 0.3rem;
    }
    .buddy-consent-text .doc-font-sans {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .buddy-consent-text .doc-font-serif {
      font-family: Georgia, "Times New Roman", Times, serif;
    }
    .buddy-consent-text .doc-font-formal {
      font-family: Cambria, Georgia, "Times New Roman", serif;
    }
    @media (max-width: 900px) {
      .buddy-search-grid {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        overflow: visible;
        padding-bottom: 0;
      }
    }
    @media (max-width: 720px) {
      body.buddy-match-active #buddySearchForm {
        display: none;
      }
      .buddy-search-table thead {
        display: none;
      }
      .field-date,
      .field-transit,
      .field-flight {
        display: none;
      }
      .buddy-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .buddy-search-table {
        font-size: 0.78rem;
        table-layout: fixed;
      }
      .buddy-search-table th,
      .buddy-search-table td {
        padding: 0.5rem 0.4rem;
      }
      .buddy-search-table td {
        word-break: break-word;
      }
      .buddy-search-table .col-summary {
        display: table-cell;
        width: 100%;
      }
      .buddy-search-table .col-buddy,
      .buddy-search-table .col-date,
      .buddy-search-table .col-origin,
      .buddy-search-table .col-transit,
      .buddy-search-table .col-destination,
      .buddy-search-table .col-flight,
      .buddy-search-table .col-language,
      .buddy-search-table .col-sex,
      .buddy-search-table .col-status,
      .buddy-search-table .col-expires,
      .buddy-search-table .col-action {
        display: none;
      }
      .buddy-action-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
      }
      .buddy-summary-actions .buddy-action-btn {
        width: 32px;
        height: 32px;
      }
      .buddy-summary-meta {
        font-size: 0.74rem;
      }
      .buddy-summary-more {
        font-size: 0.72rem;
      }
      .buddy-search-table tbody tr td {
        width: 100%;
      }
      .buddy-action-label {
        display: none;
      }
      .buddy-result-actions [data-action="report"],
      .buddy-result-actions [data-action="block"] {
        display: none;
      }
    }
  
