:root {
  --bg-canvas: #f8f7f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f1efe9;
  --bg-hover: #f5f3ed;

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --border-subtle: #e4e2dc;
  --border-strong: #d0cdc4;

  --accent-primary: #c84b26;
  --accent-primary-hover: #ad3d1c;
  --accent-primary-soft: rgba(200, 75, 38, 0.09);

  --zone-1: #15803d;
  --zone-1-bg: #ecfdf3;
  --zone-1-border: #bbf7d0;

  --zone-2: #1d4ed8;
  --zone-2-bg: #eff6ff;
  --zone-2-border: #bfdbfe;

  --zone-3: #b45309;
  --zone-3-bg: #fffbeb;
  --zone-3-border: #fde68a;

  --cat-music: #9333ea;
  --cat-plays: #be123c;
  --cat-sports: #0f766e;

  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 4px 14px rgba(24, 24, 27, 0.06), 0 1px 3px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 16px 40px rgba(24, 24, 27, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Sync Bar */
.sync-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
}

.sync-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sync-status-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sync-badge.sync-live {
  background: #ecfdf3;
  color: #15803d;
}

.sync-badge.sync-loading {
  background: #fef3c7;
  color: #b45309;
}

.sync-badge.sync-loading .sync-dot {
  animation: pulseDot 1.1s infinite ease-in-out;
}

.sync-badge.sync-fallback {
  background: #f4f4f5;
  color: #52525b;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.sync-time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.sync-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost.spinning .icon {
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.hero-header {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.hero-header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 68ch;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-saved:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.btn-saved[aria-pressed="true"] {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.btn-saved[aria-pressed="true"] .count-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.view-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Main Content */
.main-content {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.kpi-card {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.kpi-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-md);
}

.kpi-card.zone-1.active {
  border-color: var(--zone-1);
  box-shadow: 0 0 0 1px var(--zone-1), var(--shadow-md);
}

.kpi-card.zone-2.active {
  border-color: var(--zone-2);
  box-shadow: 0 0 0 1px var(--zone-2), var(--shadow-md);
}

.kpi-card.zone-3.active {
  border-color: var(--zone-3);
  box-shadow: 0 0 0 1px var(--zone-3), var(--shadow-md);
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.zone-dot.z1 { background: var(--zone-1); }
.zone-dot.z2 { background: var(--zone-2); }
.zone-dot.z3 { background: var(--zone-3); }

.kpi-value {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-meta {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Insights Panel */
.insights-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.insight-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.insight-header h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 165px) 1fr 48px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.bar-row:hover {
  background: var(--bg-subtle);
}

.bar-row.static {
  cursor: default;
}

.bar-row.static:hover {
  background: transparent;
}

.bar-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 9px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  transition: width 0.35s ease;
}

.bar-fill.music { background: var(--cat-music); }
.bar-fill.plays { background: var(--cat-plays); }
.bar-fill.sports { background: var(--cat-sports); }
.bar-fill.week { background: #2563eb; }

.bar-count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

/* Filter Toolbar */
.filter-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-row-top {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-surface);
}

.select-group {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.select-group select {
  padding: 0.52rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.select-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.filter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.36rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1rem;
}

.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.zone-badge.z1 {
  background: var(--zone-1-bg);
  color: var(--zone-1);
  border-color: var(--zone-1-border);
}

.zone-badge.z2 {
  background: var(--zone-2-bg);
  color: var(--zone-2);
  border-color: var(--zone-2-border);
}

.zone-badge.z3 {
  background: var(--zone-3-bg);
  color: var(--zone-3);
  border-color: var(--zone-3-border);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
}

.save-icon-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.save-icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.save-icon-btn.saved {
  color: var(--accent-primary);
}

.save-icon-btn.saved svg {
  fill: var(--accent-primary);
}

.event-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.event-datetime {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.event-venue {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.event-summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary-sm:hover {
  background: var(--accent-primary-hover);
}

/* Timeline View */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.timeline-date-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: #ffffff;
}

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

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 2px solid var(--border-subtle);
  padding-left: 1.15rem;
  margin-left: 0.65rem;
}

.timeline-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.timeline-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.timeline-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 360px;
}

/* Table View */
.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.events-table th {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.events-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--bg-subtle);
  vertical-align: top;
}

.events-table tbody tr {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.events-table tbody tr:hover {
  background: var(--bg-hover);
}

.events-table tbody tr:last-child td {
  border-bottom: none;
}

/* Empty State */
.empty-state {
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state h3 {
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.empty-state p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 50;
}

.modal-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-title {
  margin: 0.65rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  padding-right: 2rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.9rem;
  background: var(--bg-canvas);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.modal-meta-item label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.modal-meta-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-summary {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary-lg:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary-lg:hover {
  background: var(--bg-subtle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1.1rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 960px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insights-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-header {
    padding: 1.25rem 1rem 1rem;
  }
  .main-content {
    padding: 0 1rem 2rem;
  }
  .sync-bar-inner {
    padding: 0.55rem 1rem;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}
