/* 
  OCA Days 2026 - Speed Meeting Stylesheet
  Inspired by Odoo Community Association branding (odoo-community.org)
  Metro / Architectural Swiss Style (Clean, sharp geometric lines, crisp borders, subtle radii)
*/

:root {
  --oca-navy: #1c233d;
  --oca-navy-deep: #111628;
  --oca-navy-light: #2c365d;
  --oca-coral: #fa6448;
  --oca-coral-hover: #e65236;
  --oca-coral-light: #fff1ee;
  --oca-coral-subtle: #fde5e0;
  --oca-blue-accent: #3b82f6;
  --oca-green-success: #10b981;
  --oca-amber-warning: #f59e0b;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  
  --border-light: #e2e8f0;
  --border-focus: #cbd5e1;
  
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Metro Style: crisp, sharp, subtle radii */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-pill: 2px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   OCA Top Navigation Bar
   ========================================================================== */
.oca-navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.oca-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background-color: var(--border-light);
}

.event-meta {
  display: flex;
  flex-direction: column;
}

.event-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oca-coral);
}

.nav-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--oca-navy);
  letter-spacing: -0.02em;
}

/* Timer Widget - Sharp Metro Style */
.timer-widget {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--oca-navy);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--oca-coral);
  box-shadow: var(--shadow-sm);
}

.timer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.timer-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 600;
}

.timer-display {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.timer-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-timer-ctrl {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.btn-timer-ctrl:hover {
  background: var(--oca-coral);
  border-color: var(--oca-coral);
}

/* Decorative OCA Color Accent Bar */
.oca-accent-bar {
  display: flex;
  height: 4px;
  width: 100%;
}
.oca-accent-bar .accent-coral { flex: 4; background-color: var(--oca-coral); }
.oca-accent-bar .accent-navy { flex: 5; background-color: var(--oca-navy); }
.oca-accent-bar .accent-coral-light { flex: 2; background-color: #ff9b84; }
.oca-accent-bar .accent-navy-dark { flex: 3; background-color: var(--oca-navy-deep); }

/* ==========================================================================
   App Layout
   ========================================================================== */
.app-layout {
  display: flex;
  flex: 1;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem;
  gap: 1.5rem;
}

/* ==========================================================================
   Sidebar Controls - Clean Metro Geometry
   ========================================================================== */
.sidebar-panel {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--oca-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background-color: var(--oca-coral);
  color: white;
  border: 1px solid var(--oca-coral-hover);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--oca-coral-hover);
  box-shadow: 0 2px 8px rgba(250, 100, 72, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--oca-navy);
  border-left: 3px solid var(--oca-coral);
  padding-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-counter {
  background: var(--oca-coral-light);
  color: var(--oca-coral);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--oca-coral-subtle);
  letter-spacing: 0.02em;
}

.roster-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-text {
  background: none;
  border: 1px solid transparent;
  color: var(--oca-coral);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.btn-text:hover {
  background: var(--oca-coral-light);
  border-color: var(--oca-coral-subtle);
}

/* Parameters Inputs */
.param-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.param-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.param-info label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.param-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.param-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.input-number {
  width: 52px;
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--oca-navy);
  font-family: inherit;
  background: var(--bg-card);
  transition: border-color 0.15s;
}

.input-number:focus {
  outline: none;
  border-color: var(--oca-coral);
  box-shadow: 0 0 0 2px rgba(250, 100, 72, 0.15);
}

.slider-control {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #cbd5e1;
  border-radius: 0;
  outline: none;
}

.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 18px;
  border-radius: var(--radius-xs);
  background: var(--oca-coral);
  cursor: pointer;
  border: 1px solid var(--oca-coral-hover);
  transition: background 0.1s ease;
}

.slider-control::-webkit-slider-thumb:hover {
  background: var(--oca-coral-hover);
}

.checkbox-row {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-light);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--oca-coral);
  width: 15px;
  height: 15px;
  border-radius: var(--radius-xs);
}

.checkbox-container label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Textareas */
.code-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-main);
  resize: vertical;
  background: #fff;
  transition: border-color 0.15s;
}

.code-textarea:focus {
  outline: none;
  border-color: var(--oca-coral);
  box-shadow: 0 0 0 2px rgba(250, 100, 72, 0.15);
}

.helper-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--oca-navy-light);
}

/* Collapsible Section */
.collapsible-section {
  padding: 0.85rem 1.15rem;
}

.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.collapsible-trigger::-webkit-details-marker {
  display: none;
}

.summary-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--oca-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.summary-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.15s;
}

details[open] .summary-arrow {
  transform: rotate(180deg);
}

.collapsible-content {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

.constraint-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Sidebar Footer */
.sidebar-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.sidebar-footer a {
  color: var(--oca-coral);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

#hide-help-link {
  display: none;
}

.help-text {
  display: none;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.help-text h4 {
  color: var(--oca-navy);
  margin-bottom: 0.35rem;
}

.help-text p {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Main Content & Dual-View Results
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* Toolbar - Metro Header Bar */
.results-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Round Tabs - Metro Segmented Tabs */
.rounds-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-card-alt);
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  color: var(--oca-navy);
  background: #fff;
  border-color: var(--border-light);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--oca-coral);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.tab-btn.recap-tab {
  background: rgba(250, 100, 72, 0.06);
  color: var(--oca-navy);
  border-color: rgba(250, 100, 72, 0.2);
}

.tab-btn.recap-tab.active {
  background: var(--oca-navy);
  color: #fff;
  border-color: var(--oca-navy);
}

/* Search Box - Stable Fixed Width (No Layout Shift on Focus) */
.search-box {
  position: relative;
  flex-shrink: 0;
}

.search-input {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 0.85rem;
  width: 220px;
  background: var(--bg-card-alt);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--oca-coral);
  box-shadow: 0 0 0 2px rgba(250, 100, 72, 0.15);
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--oca-navy);
  color: var(--oca-navy);
  background: var(--bg-card-alt);
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: #fff;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  border-left: 3px solid var(--oca-navy);
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ready {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-running {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.conflict-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   Results Container & Dual-View Round Display
   ========================================================================== */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.round-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--bg-card-alt);
  padding-bottom: 0.75rem;
}

.round-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.round-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oca-navy);
  letter-spacing: -0.01em;
}

.round-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.round-score-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.round-score-pill.zero-conflict {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* Side-by-Side Dual View Container */
.round-dual-view {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .round-dual-view {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Tables Grid - Sharp Metro Tiles */
.view-column-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--oca-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.15s ease;
  position: relative;
  border-top: 3px solid var(--oca-coral);
}

.table-card:hover {
  border-color: #cbd5e1;
  border-top-color: var(--oca-navy);
}

.table-card.highlighted-table {
  border-color: var(--oca-coral);
  box-shadow: 0 0 0 2px rgba(250, 100, 72, 0.25);
  background: #fffafa;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--oca-navy);
}

.table-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}

.table-participants-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.table-participant-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-xs);
  background: var(--bg-page);
  border: 1px solid transparent;
  transition: background 0.15s;
}

.table-participant-item.is-empty-seat {
  color: #94a3b8;
  font-style: italic;
  background: transparent;
  border: 1px dashed var(--border-light);
}

.participant-avatar-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--oca-coral);
  flex-shrink: 0;
}

.table-participant-item.is-empty-seat .participant-avatar-dot {
  background: #cbd5e1;
}

.table-participant-item.is-matched {
  background: #ffedd5;
  border-color: #fdba74;
  font-weight: 700;
  color: #9a3412;
}

/* Right Column: Alphabetical Participant Roster */
.participants-az-panel {
  background: var(--bg-card-alt);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.az-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.45rem;
}

.az-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.6rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.az-participant-row:hover {
  border-color: var(--oca-coral);
  background: #fffafa;
}

.az-participant-row.highlighted-row {
  border-color: var(--oca-coral);
  background: var(--oca-coral-light);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(250, 100, 72, 0.2);
}

.az-participant-row.is-empty-slot {
  opacity: 0.6;
}

.az-name {
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.az-table-badge {
  background: var(--oca-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.az-table-badge.empty-badge {
  background: #cbd5e1;
  color: #475569;
}

/* ==========================================================================
   Meeting Connections Recap Styles - Sharp Metro Cards
   ========================================================================== */
.recap-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recap-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-left: 4px solid var(--oca-coral);
}

.recap-intro h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oca-navy);
  letter-spacing: -0.01em;
}

.recap-intro p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.recap-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.recap-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.recap-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--oca-coral);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.recap-stat-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.connection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.15s ease;
  border-left: 4px solid var(--oca-navy);
}

.connection-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  border-left-color: var(--oca-navy);
}

.connection-card.has-repeats {
  border-left-color: var(--oca-amber-warning);
}

.connection-card.is-matched-card {
  border-color: var(--oca-coral);
  box-shadow: 0 0 0 2px rgba(250, 100, 72, 0.2);
  background: #fffdfc;
}

.connection-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-card-alt);
  padding-bottom: 0.5rem;
}

.connection-person-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Sharp Square Initials Avatar */
.connection-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--oca-coral-light);
  color: var(--oca-coral);
  border: 1px solid var(--oca-coral-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.connection-person-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--oca-navy);
}

.connection-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-unique-count {
  font-size: 0.7rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

.badge-repeat-warning {
  font-size: 0.7rem;
  font-weight: 800;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

.connection-rounds-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.connection-round-row {
  background: var(--bg-page);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--border-light);
}

.connection-round-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.connection-round-tag {
  font-weight: 800;
  color: var(--oca-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.connection-table-tag {
  background: var(--oca-navy);
  color: #fff;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.connection-peers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.peer-chip {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.5rem;
  font-size: 0.76rem;
  color: var(--text-main);
  font-weight: 600;
}

.peer-chip.is-repeat {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

.peer-chip.is-empty {
  color: #94a3b8;
  font-style: italic;
  background: transparent;
  border-style: dashed;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
@keyframes spinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: spinner 0.6s linear infinite;
  vertical-align: middle;
}

/* ==========================================================================
   Responsive & Print Styles
   ========================================================================== */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar-panel {
    width: 100%;
  }
}

@media print {
  .oca-navbar,
  .sidebar-panel,
  .results-toolbar,
  .status-banner,
  .conflict-badge,
  .btn-text,
  .timer-widget {
    display: none !important;
  }

  body {
    background: white;
    font-size: 11pt;
  }

  .app-layout {
    padding: 0;
    max-width: none;
  }

  .main-content {
    width: 100%;
  }

  .round-block, .connection-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }

  .round-dual-view {
    grid-template-columns: 1fr 1fr;
  }

  .az-roster-grid {
    max-height: none;
    overflow: visible;
  }
}