
    .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: visible;
      padding-bottom: 0.35rem;
    }
    .buddy-search-card,
    .buddy-search-form,
    .buddy-search-grid,
    .buddy-search-grid .form-row {
      overflow: visible;
    }
    .buddy-search-grid .form-row {
      position: relative;
      z-index: 1;
    }
    .buddy-search-grid .form-row:focus-within {
      z-index: 40;
    }
    .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: flex-start;
      font-weight: 600;
    }
    .buddy-summary-status {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex: 0 0 auto;
    }
    .buddy-summary-route-line {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      min-width: 0;
      flex: 1 1 auto;
    }
    .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: flex-start;
      align-items: center;
      gap: 0.6rem;
      margin-top: 0.35rem;
    }
    .buddy-summary-meta {
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .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: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.45rem 0.8rem;
      margin-top: 0.5rem;
      padding: 0.6rem;
      border-radius: 0.6rem;
      background: #eef2ff;
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .buddy-summary-details strong {
      color: var(--text);
      font-weight: 600;
    }
    .buddy-summary-actions {
      display: flex;
      gap: 0.4rem;
      align-items: center;
    }
    .buddy-status-badge {
      white-space: nowrap;
    }
    .buddy-status-badge.is-pending {
      background: #fff7ed;
      color: #f59e0b;
    }
    .buddy-status-badge.is-accepted {
      background: #ecfeff;
      color: #0284c7;
    }
    .buddy-status-badge.is-success {
      background: #ecfdf5;
      color: #16a34a;
    }
    .buddy-status-badge.is-muted {
      background: #f1f5f9;
      color: #64748b;
    }
    .buddy-card {
      border: 1px solid rgba(148, 163, 184, 0.18);
      border-radius: 1rem;
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
      padding: 0.95rem 1rem;
      text-align: left;
    }
    .buddy-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.7rem;
    }
    .buddy-card-route {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.01em;
    }
    .buddy-card-date-chip {
      flex: 0 0 auto;
      border: 1px solid var(--border-soft);
      border-radius: 999px;
      padding: 0.35rem 0.7rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      background: #fff;
    }
    .buddy-card-status-row {
      margin-top: 0.7rem;
      display: flex;
      justify-content: flex-start;
    }
    .buddy-card-chip-row {
      margin-top: 0.7rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
    }
    .buddy-card-chip {
      display: inline-flex;
      align-items: center;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      padding: 0.32rem 0.72rem;
      font-size: 0.84rem;
      color: #0ea5e9;
      background: #fff;
    }
    .buddy-card-subline {
      margin-top: 0.65rem;
      color: var(--text-muted);
      font-size: 0.88rem;
    }
    .buddy-card-footer {
      margin-top: 0.9rem;
      padding-top: 0.75rem;
      border-top: 1px solid rgba(226, 232, 240, 0.8);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .buddy-card-footer-left {
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    .buddy-card-link {
      border: none;
      background: transparent;
      color: #0ea5e9;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
    }
    .buddy-match-card-cell {
      padding: 0.25rem 0 !important;
      background: transparent !important;
    }
    .buddy-match-card .buddy-card-status-row {
      justify-content: flex-start;
    }
    .buddy-details-modal-card {
      width: min(420px, 96vw);
    }
    .buddy-details-modal-body {
      background: #f8fafc;
    }
    .buddy-detail-top-badge {
      display: flex;
      justify-content: center;
      margin-bottom: 1rem;
    }
    .buddy-detail-header {
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      margin-bottom: 1rem;
    }
    .buddy-detail-route {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.01em;
    }
    .buddy-detail-section {
      border: 1px solid rgba(203, 213, 225, 0.85);
      border-radius: 1rem;
      background: #ffffff;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .buddy-detail-section-title {
      text-transform: uppercase;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      color: #94a3b8;
      font-weight: 700;
      margin-bottom: 0.8rem;
    }
    .buddy-detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.8rem 1rem;
    }
    .buddy-detail-item {
      display: flex;
      flex-direction: column;
      gap: 0.18rem;
    }
    .buddy-detail-item span,
    .buddy-detail-ids span {
      color: #94a3b8;
      font-size: 0.78rem;
    }
    .buddy-detail-item strong,
    .buddy-detail-ids strong {
      color: var(--text);
      font-size: 0.95rem;
      font-weight: 600;
    }
    .buddy-detail-ids {
      margin-top: 0.9rem;
      padding-top: 0.9rem;
      border-top: 1px solid #e2e8f0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.9rem;
    }
    .buddy-journey {
      margin-top: 0.3rem;
    }
    .buddy-journey-step {
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 0.8rem;
      align-items: start;
      position: relative;
      padding-bottom: 0.8rem;
    }
    .buddy-journey-step:last-child {
      padding-bottom: 0;
    }
    .buddy-journey-dot {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: #cbd5e1;
      margin-top: 0.2rem;
      box-shadow: 0 0 0 3px #ffffff;
      border: 2px solid #cbd5e1;
    }
    .buddy-journey-step.is-active .buddy-journey-dot {
      background: #0ea5e9;
      border-color: #0ea5e9;
    }
    .buddy-journey-step:not(:last-child)::after {
      content: "";
      position: absolute;
      left: 5px;
      top: 16px;
      width: 2px;
      height: calc(100% - 6px);
      background: #cbd5e1;
    }
    .buddy-journey-step.is-active:not(:last-child)::after {
      background: #0ea5e9;
    }
    .buddy-journey-label {
      color: var(--text);
      font-weight: 600;
      font-size: 0.92rem;
    }
    .buddy-journey-sub {
      color: var(--text-muted);
      font-size: 0.82rem;
      margin-top: 0.1rem;
    }
    .buddy-details-actions {
      display: flex;
      gap: 0.7rem;
      justify-content: center;
      padding: 0 1.25rem 1.25rem;
      background: #f8fafc;
    }
    .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.8rem;
      }
      .buddy-search-table tbody tr td {
        width: 100%;
      }
      .buddy-search-table tbody tr {
        display: block;
        margin-bottom: 0.85rem;
      }
      .buddy-search-table tbody tr td.col-summary {
        display: block;
        width: 100%;
        border: 1px solid rgba(14, 165, 233, 0.18);
        border-radius: 0.85rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        background: #ffffff;
        padding: 0.85rem 0.8rem;
      }
      .buddy-summary-top {
        gap: 0.5rem;
        flex-wrap: wrap;
      }
      .buddy-action-label {
        display: none;
      }
      .buddy-result-actions [data-action="report"],
      .buddy-result-actions [data-action="block"] {
        display: none;
      }
      .buddy-detail-grid,
      .buddy-detail-ids {
        grid-template-columns: 1fr;
      }
    }
  
