/* ============================================
   FIND BEST TIME POPOVER
   ============================================
   Dropdown popover for finding optimal meeting times
   ============================================ */

.fbt-popover {
  position: fixed;
  z-index: var(--z-popover);
  /* Clamp to viewport so 480-640px mobile landscape doesn't overflow
     before the full-screen-sheet breakpoint takes over (audit Finding 4). */
  width: min(580px, 100vw - 16px);
  max-height: 88vh;
  background: var(--surface-primary, #ffffff);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #e2e8f0);
  overflow: hidden;
  animation: fbt-popover-in 0.2s ease;
}

@keyframes fbt-popover-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fbt-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--surface-secondary, #f8fafc);
}

.fbt-popover-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.fbt-popover-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full, 9999px);
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbt-popover-close:hover {
  background: var(--surface-hover, #e2e8f0);
  color: var(--text-primary, #1e293b);
}

/* Duration Selection Row */
.fbt-popover-duration {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--surface-primary, #ffffff);
}

.fbt-popover-duration-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fbt-popover-duration-label i {
  font-size: 11px;
}

.fbt-popover-duration-chips {
  display: flex;
  gap: 6px;
  flex: 1;
}

.fbt-popover-duration-chips .fbt-duration-chip {
  padding: 5px 12px;
  font-size: 12px;
  min-height: auto;
  border-radius: 16px;
}

body.dark-mode .fbt-popover-duration {
  background: var(--surface-primary, #1e293b);
  border-color: var(--border-color, #334155);
}

.fbt-popover .fbt-results {
  max-height: calc(88vh - 120px);
  overflow-y: auto;
  padding: 20px;
}

.fbt-popover .fbt-results-loading,
.fbt-popover .fbt-results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 8px;
  color: var(--text-secondary, #64748b);
  font-size: 13px;
}

.fbt-popover .fbt-results-list:not(:empty) ~ .fbt-results-loading,
.fbt-popover .fbt-results-list:not(:empty) ~ .fbt-results-empty {
  display: none;
}

.fbt-popover .fbt-results-loading {
  display: flex;
}

.fbt-popover .fbt-results.loaded .fbt-results-loading {
  display: none;
}

.fbt-popover .fbt-results.empty .fbt-results-empty {
  display: flex;
}

/* Dark mode */
body.dark-mode .fbt-popover {
  background: var(--surface-primary, #1e293b);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-popover-header {
  background: var(--surface-secondary, #0f172a);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-popover-title {
  color: var(--text-primary, #f1f5f9);
}

/* Popover result items - more compact */
.fbt-popover .fbt-result-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--surface-secondary, #f8fafc);
  border-radius: 16px;
  border: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbt-popover .fbt-result-item:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--accent, #3b82f6);
}

.fbt-popover .fbt-result-item:last-child {
  margin-bottom: 0;
}

.fbt-popover .fbt-result-rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #3b82f6);
  color: white;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
}

.fbt-popover .fbt-result-main {
  flex: 1;
  min-width: 0;
}

.fbt-popover .fbt-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fbt-popover .fbt-time-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.fbt-popover .fbt-participation {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary, #64748b);
}

.fbt-popover .fbt-participation-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.fbt-popover .fbt-participation.full .fbt-participation-count {
  color: var(--success-color, #22c55e);
}

.fbt-popover .fbt-participation.low .fbt-participation-count {
  color: var(--warning-color, #f59e0b);
}

.fbt-popover .fbt-quality-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 6px 8px;
  background: var(--surface-primary, #ffffff);
  border-radius: 6px;
}

.fbt-popover .fbt-quality-ring {
  display: none; /* Hide ring in compact view */
}

.fbt-popover .fbt-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fbt-popover .fbt-metric {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: var(--m-color, #64748b);
  background: color-mix(in srgb, var(--m-color, #64748b) 15%, transparent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
}

.fbt-popover .fbt-metric i {
  font-size: 10px;
  color: var(--m-color, #64748b);
}

.fbt-popover .fbt-result-summary {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  margin-bottom: 6px;
}

.fbt-popover .fbt-result-times {
  display: none; /* Hide detailed times in compact view */
}

.fbt-popover .fbt-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.fbt-popover .fbt-issue {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color, #ef4444);
  border-radius: 4px;
  font-size: 10px;
}

.fbt-popover .fbt-result-action {
  display: none; /* Hide action button in popover */
}

/* Dark mode popover items */
body.dark-mode .fbt-popover .fbt-result-item {
  background: var(--surface-secondary, #0f172a);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-popover .fbt-result-item:hover {
  background: var(--surface-hover, #1e293b);
}

body.dark-mode .fbt-popover .fbt-time-value {
  color: var(--text-primary, #f1f5f9);
}

body.dark-mode .fbt-popover .fbt-quality-bar {
  background: var(--surface-tertiary, #1e293b);
}

/* ============================================
   FIND BEST TIME PANEL (Legacy)
   ============================================ */

.fbt-panel {
  position: relative;
  margin: 0 16px 16px;
  background: var(--surface-primary, #ffffff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e2e8f0);
  overflow: hidden;
  transition: all 0.3s ease;
}

.fbt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

/* Toggle Button */
.fbt-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent, #3b82f6) 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fbt-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fbt-toggle-btn:active {
  transform: translateY(0);
}

.fbt-toggle-btn i {
  font-size: 14px;
}

/* Expanded state button */
.fbt-panel.expanded .fbt-toggle-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.fbt-panel.expanded .fbt-toggle-btn:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Duration Selector */
.fbt-duration-select {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.fbt-panel.expanded .fbt-duration-select {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.fbt-duration-chip {
  min-height: 44px;
  padding: 12px 16px;
  background: var(--surface-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fbt-duration-chip:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--accent, #3b82f6);
  color: var(--accent, #3b82f6);
}

.fbt-duration-chip.active {
  background: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
  color: white;
}

/* ============================================
   FILTER TABS
   ============================================ */

.fbt-filters {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 16px;
  transition: all 0.3s ease;
  border-top: 1px solid transparent;
}

.fbt-panel.expanded .fbt-filters {
  max-height: 120px;
  opacity: 1;
  padding: 12px 16px;
  border-top-color: var(--border-color, #e2e8f0);
}

.fbt-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fbt-filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fbt-filter-tab:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--accent, #3b82f6);
  color: var(--accent, #3b82f6);
}

.fbt-filter-tab.active {
  background: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
  color: white;
}

/* Work filter tab - Blue (consistent with Review Center) */
.fbt-filter-tab[data-filter="work"].active,
.fbt-filter-tab[data-category="work"].active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, #2563eb 100%);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.fbt-filter-tab[data-filter="work"]:not(.active):hover,
.fbt-filter-tab[data-category="work"]:not(.active):hover {
  border-color: #3b82f6;
  color: #2563eb;
}

/* Personal filter tab - Purple (consistent with Review Center) */
.fbt-filter-tab[data-filter="personal"].active,
.fbt-filter-tab[data-category="personal"].active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, #7c3aed 100%);
  border-color: #8b5cf6;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.fbt-filter-tab[data-filter="personal"]:not(.active):hover,
.fbt-filter-tab[data-category="personal"]:not(.active):hover {
  border-color: #8b5cf6;
  color: #7c3aed;
}

.fbt-filter-tab i {
  font-size: 11px;
}

/* More Dropdown Container */
.fbt-filter-more {
  position: relative;
}

.fbt-filter-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbt-filter-more-btn:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--text-tertiary, #94a3b8);
}

.fbt-filter-more-btn.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #8b5cf6;
  color: white;
}

.fbt-filter-more-btn.open {
  border-color: var(--accent, #3b82f6);
}

.fbt-more-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.fbt-filter-more-btn.open .fbt-more-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.fbt-filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--surface-primary, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.fbt-filter-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fbt-filter-dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbt-filter-dropdown-item:last-child {
  border-bottom: none;
}

.fbt-filter-dropdown-item:first-child {
  border-radius: 11px 11px 0 0;
}

.fbt-filter-dropdown-item:last-child {
  border-radius: 0 0 11px 11px;
}

.fbt-filter-dropdown-item:only-child {
  border-radius: 11px;
}

.fbt-filter-dropdown-item:hover {
  background: var(--surface-hover, #f1f5f9);
}

.fbt-filter-dropdown-item.active {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.fbt-filter-dropdown-item i {
  font-size: 12px;
  margin-right: 6px;
}

.fbt-filter-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary, #64748b);
  margin-left: 18px;
}

.fbt-filter-dropdown-item.active .fbt-filter-desc {
  color: #8b5cf6;
}

/* Filter Info Bar */
.fbt-filter-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--surface-secondary, #f8fafc);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-secondary, #64748b);
}

.fbt-filter-info i {
  font-size: 11px;
  color: var(--accent, #3b82f6);
}

/* Results Container */
.fbt-results {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fbt-panel.expanded .fbt-results {
  max-height: 800px;
  overflow-y: auto;
}

.fbt-results-loading,
.fbt-results-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 12px;
  color: var(--text-secondary, #64748b);
  font-size: 13px;
  text-align: center;
}

.fbt-results-loading i,
.fbt-results-empty i {
  font-size: 24px;
  color: var(--text-tertiary, #94a3b8);
}

.fbt-results.loading .fbt-results-loading {
  display: flex;
}

.fbt-results.loading .fbt-results-list {
  display: none;
}

.fbt-results.empty .fbt-results-empty {
  display: flex;
}

.fbt-results.empty .fbt-results-list {
  display: none;
}

/* Dedicated error pane (audit Wave 3B). Distinct from .empty so users
   see "we failed" vs "no overlap" instead of a single ambiguous message. */
.fbt-results-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-secondary, #64748b);
}
.fbt-results-error i {
  font-size: 1.5rem;
  color: var(--shading-busy, #dc2626);
}
.fbt-results-error .fbt-error-title {
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}
.fbt-results-error .fbt-error-hint {
  font-size: 0.875rem;
  max-width: 320px;
}
.fbt-results.errored .fbt-results-error {
  display: flex;
}
.fbt-results.errored .fbt-results-list,
.fbt-results.errored .fbt-results-empty,
.fbt-results.errored .fbt-results-loading {
  display: none;
}

/* The new hint inside .fbt-results-empty (audit F-02). */
.fbt-results-empty .fbt-empty-title {
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}
.fbt-results-empty .fbt-empty-hint {
  font-size: 0.875rem;
  max-width: 320px;
  color: var(--text-secondary, #64748b);
}

/* Results List */
.fbt-results-list {
  padding: 0 12px 12px;
}

/* Result Item */
.fbt-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--surface-secondary, #f8fafc);
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbt-result-item:last-child {
  margin-bottom: 0;
}

.fbt-result-item:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--accent, #3b82f6);
  transform: translateX(2px);
}

/* Rank Badge */
.fbt-result-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent, #3b82f6);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fbt-result-item:first-child .fbt-result-rank {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Result Main Content */
.fbt-result-main {
  flex: 1;
  min-width: 0;
}

/* Result Header - time + participation */
.fbt-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.fbt-result-time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fbt-time-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

/* Fairness Badge */
.fbt-fairness-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.fbt-fairness-badge.fairness-excellent {
  background: rgba(91, 33, 182, 0.15);
  color: #4c1d95;
}

.fbt-fairness-badge.fairness-good {
  background: rgba(109, 40, 217, 0.15);
  color: #5b21b6;
}

.fbt-fairness-badge.fairness-fair {
  background: rgba(124, 58, 237, 0.15);
  color: #6d28d9;
}

.fbt-fairness-badge.fairness-challenging {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

.fbt-fairness-badge.fairness-difficult {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

/* Additional fairness traffic light classes */
.fbt-fairness-badge.fairness-warning {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

.fbt-fairness-badge.fairness-critical {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

/* Date display in result cards */
.fbt-date-display {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-600, #0d9488);
  margin-right: 6px;
}

/* Result item border accent based on fairness */
.fbt-result-item.fairness-excellent {
  border-left: 3px solid #5b21b6;
}

.fbt-result-item.fairness-good {
  border-left: 3px solid #6d28d9;
}

.fbt-result-item.fairness-fair {
  border-left: 3px solid #7c3aed;
}

.fbt-result-item.fairness-warning {
  border-left: 3px solid #8b5cf6;
}

.fbt-result-item.fairness-critical {
  border-left: 3px solid #8b5cf6;
}

/* Warning Badges */
.fbt-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.fbt-warning.minor {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

/* Result Summary */
.fbt-result-summary {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Timezone Times */
.fbt-result-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fbt-tz-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--surface-primary, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary, #64748b);
}

.fbt-tz-time.home {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent, #3b82f6);
}

.fbt-tz-time i {
  font-size: 10px;
}

/* Timezone status indicators */
.fbt-tz-time.unavailable {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
  text-decoration: line-through;
  opacity: 0.8;
}

.fbt-tz-time.sleep-hour {
  background: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.3);
  color: #7c3aed;
}

.fbt-tz-time.outside-hours {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  color: #d97706;
}

/* ============================================
   TIMEZONE AVATAR DISPLAY
   ============================================ */

.fbt-result-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fbt-tz-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--surface-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 24px;
  cursor: default;
  transition: all 0.15s ease;
}

.fbt-tz-item:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--accent, #14b8a6);
}

.fbt-tz-item.home {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.3);
}

.fbt-tz-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
}

/* Status ring colours — read from canonical --status-* tokens
   (view-mode-strip.css :root) so "acceptable" matches the same tentative
   amber that cells / team-bar / level badges all use. The ring class
   vocabulary (ring-optimal / ring-acceptable / ring-poor) is a deliberate
   time-picker dialect; see GLOSSARY.md (optimal ≡ excellent).
   Leak audit 2026-05-22: ring encodes per-attendee local-hour fitness
   (each invitee's own working-hour status), not organizer-private
   priority — safe to render in shared poll/voting UI. */
.fbt-tz-avatar.ring-optimal {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-available, #22c55e) 50%, transparent);
}

.fbt-tz-avatar.ring-acceptable {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-tentative, #f59e0b) 50%, transparent);
}

.fbt-tz-avatar.ring-poor {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--shading-busy, #dc2626) 50%, transparent);
}

.fbt-home-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 7px;
  background: var(--accent, #14b8a6);
  color: white;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

.fbt-status-icon {
  font-size: 10px;
  color: var(--text-secondary, #64748b);
}

.fbt-tz-time-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

/* Dark mode */
body.dark-mode .fbt-tz-item {
  background: var(--surface-tertiary, #1e293b);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-tz-item.home {
  background: rgba(20, 184, 166, 0.15);
}

body.dark-mode .fbt-tz-time-label {
  color: var(--text-primary, #f1f5f9);
}

body.dark-mode .fbt-home-badge {
  border-color: var(--surface-primary, #0f172a);
}

/* ============================================
   PARTICIPATION METRICS
   ============================================ */

.fbt-participation {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.fbt-participation.full {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.fbt-participation.high {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.fbt-participation.medium {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

.fbt-participation.low {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.fbt-participation-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.fbt-participation-count i {
  font-size: 11px;
}

.fbt-participation-percent {
  opacity: 0.8;
}

.fbt-participation-label {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.9;
}

/* ============================================
   FAIRNESS SCORE BREAKDOWN
   ============================================ */

.fbt-score-breakdown {
  margin-bottom: 8px;
}

.fbt-score-bar {
  position: relative;
  height: 6px;
  background: var(--surface-tertiary, #e2e8f0);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.fbt-score-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #22c55e, #84cc16);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.fbt-score-value {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

.fbt-score-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fbt-score-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-secondary, #64748b);
  cursor: help;
}

.fbt-score-item i {
  font-size: 10px;
  opacity: 0.7;
}

/* ============================================
   WHY THIS TIME RATIONALE
   ============================================ */

.fbt-rationale {
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--accent, #3b82f6);
}

.fbt-rationale-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent, #3b82f6);
  margin-bottom: 6px;
}

.fbt-rationale-header i {
  font-size: 12px;
  color: #fbbf24;
}

.fbt-rationale-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fbt-rationale-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}

.fbt-rationale-list li i {
  font-size: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.fbt-rationale-list li.best i {
  color: #fbbf24;
}

.fbt-rationale-list li.participation i {
  color: #10b981;
}

.fbt-rationale-list li.fairness i {
  color: #3b82f6;
}

.fbt-rationale-list li.business i {
  color: #6366f1;
}

.fbt-rationale-list li.sleep i {
  color: #8b5cf6;
}

.fbt-rationale-list li.availability i {
  color: #22c55e;
}

/* ============================================
   ISSUES / WARNINGS
   ============================================ */

.fbt-issues {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0;
}

.fbt-issue {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.fbt-issue i {
  font-size: 10px;
  flex-shrink: 0;
}

.fbt-issue-unavailable {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.fbt-issue-sleep {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Schedule Button */
.fbt-result-action {
  flex-shrink: 0;
}

.fbt-schedule-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbt-schedule-btn:hover {
  background: #2563eb;
  transform: scale(1.1);
}

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode .fbt-panel {
  background: var(--surface-primary, #1e293b);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-duration-chip {
  background: var(--surface-secondary, #0f172a);
  border-color: var(--border-color, #334155);
  color: var(--text-secondary, #94a3b8);
}

body.dark-mode .fbt-duration-chip:hover {
  background: var(--surface-hover, #1e293b);
}

body.dark-mode .fbt-duration-chip.active {
  background: var(--accent, #3b82f6);
  color: white;
}

/* Dark mode: Filter Tabs */
body.dark-mode .fbt-filters {
  border-top-color: var(--border-color, #334155);
}

body.dark-mode .fbt-filter-tab {
  background: var(--surface-secondary, #0f172a);
  border-color: var(--border-color, #334155);
  color: var(--text-secondary, #94a3b8);
}

body.dark-mode .fbt-filter-tab:hover {
  background: var(--surface-hover, #1e293b);
}

body.dark-mode .fbt-filter-tab.active {
  background: var(--accent, #3b82f6);
  color: white;
}

/* Dark mode: Work filter tab - Blue */
body.dark-mode .fbt-filter-tab[data-filter="work"].active,
body.dark-mode .fbt-filter-tab[data-category="work"].active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #60a5fa;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

body.dark-mode .fbt-filter-tab[data-filter="work"]:not(.active):hover,
body.dark-mode .fbt-filter-tab[data-category="work"]:not(.active):hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

/* Dark mode: Personal filter tab - Purple */
body.dark-mode .fbt-filter-tab[data-filter="personal"].active,
body.dark-mode .fbt-filter-tab[data-category="personal"].active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #a78bfa;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

body.dark-mode .fbt-filter-tab[data-filter="personal"]:not(.active):hover,
body.dark-mode .fbt-filter-tab[data-category="personal"]:not(.active):hover {
  border-color: #a78bfa;
  color: #a78bfa;
}

body.dark-mode .fbt-filter-more-btn {
  background: var(--surface-secondary, #0f172a);
  border-color: var(--border-color, #334155);
  color: var(--text-secondary, #94a3b8);
}

body.dark-mode .fbt-filter-more-btn:hover {
  background: var(--surface-hover, #1e293b);
}

body.dark-mode .fbt-filter-more-btn.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

body.dark-mode .fbt-filter-dropdown {
  background: var(--surface-primary, #1e293b);
  border-color: var(--border-color, #334155);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .fbt-filter-dropdown-item {
  color: var(--text-primary, #f1f5f9);
  border-bottom-color: var(--border-color, #334155);
}

body.dark-mode .fbt-filter-dropdown-item:hover {
  background: var(--surface-hover, #334155);
}

body.dark-mode .fbt-filter-dropdown-item.active {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

body.dark-mode .fbt-filter-dropdown-item.active .fbt-filter-desc {
  color: #a78bfa;
}

body.dark-mode .fbt-filter-info {
  background: var(--surface-secondary, #0f172a);
  color: var(--text-secondary, #94a3b8);
}

body.dark-mode .fbt-result-item {
  background: var(--surface-secondary, #0f172a);
}

body.dark-mode .fbt-result-item:hover {
  background: var(--surface-hover, #1e293b);
}

body.dark-mode .fbt-time-value {
  color: var(--text-primary, #f1f5f9);
}

body.dark-mode .fbt-tz-time {
  background: var(--surface-tertiary, #1e293b);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-tz-time.home {
  background: rgba(59, 130, 246, 0.2);
}

body.dark-mode .fbt-tz-time.unavailable {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

body.dark-mode .fbt-tz-time.sleep-hour {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
  color: #a78bfa;
}

body.dark-mode .fbt-tz-time.outside-hours {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

/* Dark mode: Participation */
body.dark-mode .fbt-participation.full {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

body.dark-mode .fbt-participation.high {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

body.dark-mode .fbt-participation.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

body.dark-mode .fbt-participation.low {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Dark mode: Score breakdown */
body.dark-mode .fbt-score-bar {
  background: var(--surface-tertiary, #334155);
}

body.dark-mode .fbt-score-value {
  color: var(--text-primary, #f1f5f9);
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

body.dark-mode .fbt-score-item {
  color: var(--text-secondary, #94a3b8);
}

/* Dark mode: Rationale */
body.dark-mode .fbt-rationale {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--accent, #3b82f6);
}

body.dark-mode .fbt-rationale-list li {
  color: var(--text-secondary, #94a3b8);
}

/* Dark mode: Issues */
body.dark-mode .fbt-issue-unavailable {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .fbt-issue-sleep {
  background: rgba(147, 51, 234, 0.15);
  color: #a78bfa;
  border-color: rgba(147, 51, 234, 0.3);
}

/* Dark mode: Fairness badges */
body.dark-mode .fbt-fairness-badge.fairness-excellent {
  background: rgba(91, 33, 182, 0.25);
  color: #8b5cf6;
}

body.dark-mode .fbt-fairness-badge.fairness-good {
  background: rgba(109, 40, 217, 0.25);
  color: #a78bfa;
}

body.dark-mode .fbt-fairness-badge.fairness-fair {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
}

body.dark-mode .fbt-fairness-badge.fairness-warning {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

body.dark-mode .fbt-fairness-badge.fairness-critical {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

body.dark-mode .fbt-date-display {
  color: var(--primary-400, #2dd4bf);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .fbt-panel {
    margin: 0 12px 12px;
  }

  .fbt-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .fbt-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .fbt-duration-select {
    justify-content: center;
  }

  .fbt-result-item {
    flex-direction: column;
    gap: 8px;
  }

  .fbt-result-rank {
    position: absolute;
    top: 8px;
    left: 8px;
  }

  .fbt-result-item {
    position: relative;
    padding-left: 44px;
  }

  .fbt-result-action {
    align-self: flex-end;
  }

  /* Responsive: Header */
  .fbt-result-header {
    flex-direction: column;
    gap: 6px;
  }

  .fbt-participation {
    align-self: flex-start;
  }

  /* Responsive: Rationale */
  .fbt-rationale {
    padding: 6px 8px;
  }

  .fbt-rationale-list li {
    font-size: 10px;
  }

  /* Responsive: Score breakdown */
  .fbt-score-details {
    gap: 8px;
  }

  .fbt-score-item {
    font-size: 9px;
  }

  /* Responsive: Issues */
  .fbt-issue {
    font-size: 10px;
    padding: 3px 6px;
  }

  /* Responsive: Filters */
  .fbt-filter-tabs {
    gap: 4px;
  }

  .fbt-filter-tab {
    padding: 5px 10px;
    font-size: 11px;
  }

  .fbt-filter-tab span {
    display: none;
  }

  .fbt-filter-tab i {
    margin: 0;
  }

  .fbt-filter-more-btn span {
    display: none;
  }

  .fbt-filter-info {
    font-size: 10px;
  }

  .fbt-filter-dropdown {
    min-width: 200px;
    right: 0;
    left: auto;
  }
}

@media (max-width: 480px) {
  .fbt-duration-chip {
    padding: 4px 8px;
    font-size: 11px;
  }

  .fbt-btn-text {
    display: none;
  }

  .fbt-toggle-btn {
    padding: 10px 14px;
  }

  .fbt-result-times {
    flex-direction: column;
    gap: 4px;
  }

  .fbt-tz-time {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fbt-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fbt-panel.expanded .fbt-result-item {
  animation: fbt-slide-in 0.2s ease forwards;
}

.fbt-panel.expanded .fbt-result-item:nth-child(1) { animation-delay: 0.05s; }
.fbt-panel.expanded .fbt-result-item:nth-child(2) { animation-delay: 0.1s; }
.fbt-panel.expanded .fbt-result-item:nth-child(3) { animation-delay: 0.15s; }
.fbt-panel.expanded .fbt-result-item:nth-child(4) { animation-delay: 0.2s; }
.fbt-panel.expanded .fbt-result-item:nth-child(5) { animation-delay: 0.25s; }

/* ============================================
   TIME SLOT QUALITY SCORES
   ============================================
   User-friendly scoring for each time slot:
   - Can Join: How many people can attend?
   - Not Sleeping: No one needs to wake up
   - Fair for All: Burden shared fairly
   - Calendars Clear: No conflicts
   - Reasonable Hour: Within 6am-11pm
   - Work Hours: Within 9am-5pm
   ============================================ */

/* Compact Quality Bar - single row layout */
.fbt-quality-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 8px 12px;
  background: var(--surface-secondary, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
}

/* Ring Score */
.fbt-quality-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.fbt-quality-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fbt-ring-bg {
  fill: none;
  stroke: var(--surface-tertiary, #e2e8f0);
  stroke-width: 3.5;
}

.fbt-ring-fill {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.fbt-quality-ring.excellent .fbt-ring-fill { stroke: #10b981; }
.fbt-quality-ring.good .fbt-ring-fill { stroke: #22c55e; }
.fbt-quality-ring.fair .fbt-ring-fill { stroke: #f59e0b; }
.fbt-quality-ring.poor .fbt-ring-fill { stroke: #ef4444; }

.fbt-ring-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 700;
}

.fbt-quality-ring.excellent .fbt-ring-val { color: #059669; }
.fbt-quality-ring.good .fbt-ring-val { color: #16a34a; }
.fbt-quality-ring.fair .fbt-ring-val { color: #d97706; }
.fbt-quality-ring.poor .fbt-ring-val { color: #dc2626; }

/* Metrics Row */
.fbt-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

/* Individual Metric Chip */
.fbt-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--surface-primary, #fff);
  border-radius: 6px;
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 11px;
  cursor: help;
  transition: all 0.15s ease;
}

.fbt-metric:hover {
  border-color: var(--m-color);
  background: color-mix(in srgb, var(--m-color) 8%, var(--surface-primary, #fff));
}

.fbt-metric i {
  font-size: 10px;
  color: var(--m-color);
}

.fbt-metric-val {
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.fbt-metric.perfect .fbt-metric-val,
.fbt-metric.good .fbt-metric-val {
  color: var(--m-color);
}

.fbt-metric.fair .fbt-metric-val {
  color: #d97706;
}

.fbt-metric.poor {
  opacity: 0.7;
}

.fbt-metric.poor .fbt-metric-val {
  color: #dc2626;
}

/* ============================================
   QUALITY BAR - Compact Variant
   For use in proposal slots, quota cards, etc.
   ============================================ */

.fbt-quality-bar-compact {
  margin: 6px 0 4px;
  padding: 5px 8px;
  gap: 8px;
  border-radius: 8px;
}

.fbt-quality-bar-compact .fbt-quality-ring {
  width: 32px;
  height: 32px;
}

.fbt-quality-bar-compact .fbt-ring-val {
  font-size: 10px;
}

.fbt-quality-bar-compact .fbt-ring-bg,
.fbt-quality-bar-compact .fbt-ring-fill {
  stroke-width: 3;
}

.fbt-quality-bar-compact .fbt-metrics {
  gap: 4px;
}

.fbt-quality-bar-compact .fbt-metric {
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 4px;
}

.fbt-quality-bar-compact .fbt-metric i {
  font-size: 8px;
}

.fbt-quality-bar-compact .fbt-metric-val {
  font-size: 10px;
}

/* ============================================
   QUALITY BAR - Dark Mode
   ============================================ */

body.dark-mode .fbt-quality-bar {
  background: var(--surface-secondary, #0f172a);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-ring-bg {
  stroke: var(--surface-tertiary, #1e293b);
}

body.dark-mode .fbt-metric {
  background: var(--surface-tertiary, #1e293b);
  border-color: var(--border-color, #334155);
}

body.dark-mode .fbt-metric-val {
  color: var(--text-secondary, #94a3b8);
}

body.dark-mode .fbt-quality-ring.excellent .fbt-ring-val { color: #34d399; }
body.dark-mode .fbt-quality-ring.good .fbt-ring-val { color: #4ade80; }
body.dark-mode .fbt-quality-ring.fair .fbt-ring-val { color: #fbbf24; }
body.dark-mode .fbt-quality-ring.poor .fbt-ring-val { color: #f87171; }

/* ============================================
   QUALITY BAR - Responsive
   ============================================ */

@media (max-width: 768px) {
  .fbt-quality-bar {
    padding: 6px 10px;
    gap: 10px;
  }

  .fbt-quality-ring {
    width: 38px;
    height: 38px;
  }

  .fbt-ring-val {
    font-size: 11px;
  }

  .fbt-metrics {
    gap: 4px;
  }

  .fbt-metric {
    padding: 3px 6px;
    font-size: 10px;
  }

  .fbt-metric i {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .fbt-quality-bar {
    flex-wrap: wrap;
  }

  .fbt-metrics {
    width: 100%;
  }
}

/* ============================================
   POPOVER - Mobile (full-screen sheet under 640px)
   ============================================ */

@media (max-width: 640px) {
  .fbt-popover {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    transform: none !important;
  }

  .fbt-popover-header {
    padding: 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .fbt-popover-close {
    width: 44px;
    height: 44px;
  }

  .fbt-popover .fbt-results {
    max-height: none;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
