*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --accent: #6D28D9;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 150ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  margin-right: 8px;
  flex-shrink: 0;
}

.header-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.tagline-ticker-wrap {
  display: flex;
  overflow: hidden;
  height: 1.15em;
  align-items: center;
}
#taglineTicker {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}
@keyframes tickerOut {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-130%); opacity: 0; }
}
@keyframes tickerIn {
  from { transform: translateY(130%);  opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
#taglineTicker.ticker-out { animation: tickerOut 320ms ease forwards; }
#taglineTicker.ticker-in  { animation: tickerIn  320ms ease forwards; }

/* ── Main ── */
.main {
  padding: 32px 0 64px;
}

/* ── Controls ── */
.controls {
  position: sticky;
  top: 77px; /* fallback; overridden by JS to match header height */
  z-index: 90;
  background: var(--bg);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.search-input::placeholder { color: var(--text-tertiary); }

/* ── Dropdowns ── */
.dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  user-select: none;
}

.dropdown-btn:hover { border-color: var(--accent); color: var(--accent); }

.dropdown-btn.active {
  border-color: var(--accent);
  background: rgba(109, 40, 217, 0.06);
  color: var(--accent);
  font-weight: 600;
}

.drop-caret {
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.dropdown-btn[aria-expanded="true"] .drop-caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 200;
  display: none;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.dropdown-menu::-webkit-scrollbar { width: 4px; }
.dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.dropdown-menu.open { display: flex; }

.drop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.drop-item:hover { background: var(--border-light); color: var(--text-primary); }

.drop-item.active {
  background: rgba(109, 40, 217, 0.08);
  color: var(--accent);
  font-weight: 600;
}

.drop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Stats bar ── */
.stats-bar {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.stats-sep { opacity: 0.4; }

/* ── Timeline ── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.relation-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.relation-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.55;
}

.timeline.has-active .timeline-item {
  opacity: 0.12;
  transition: opacity 220ms ease;
}
.timeline.has-active .timeline-item.is-active,
.timeline.has-active .timeline-item.is-related {
  opacity: 1;
}

.timeline-item.is-active .marker-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(109, 40, 217, 0.2);
}
.timeline-item.is-related .marker-dot {
  color: #D97706;
  background: #D97706;
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.2);
}
.timeline-item.is-related .event-title { color: #B45309; }

.timeline-item[data-related]:not([data-related=""]) { cursor: pointer; }

.relation-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: rgba(109, 40, 217, 0.07);
  border: 1px solid rgba(109, 40, 217, 0.18);
  padding: 2px 7px;
  border-radius: 100px;
  user-select: none;
}
.timeline-item.is-active .relation-badge {
  background: rgba(109, 40, 217, 0.18);
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 20px;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px currentColor;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.marker-dot { color: var(--accent); background: var(--accent); }

.marker-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
}

.timeline-item:last-child .marker-line { display: none; }

.timeline-content {
  position: relative;
  padding: 0 0 32px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 150ms ease;
}

.timeline-item:hover .marker-dot { transform: scale(1.3); }

.timeline-item:hover .timeline-content {
  border-color: #D1D5DB;
  background: #FAFAFA;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-item:hover .timeline-content .event-title {
  color: var(--accent);
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.event-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cat-color, var(--accent));
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 10%, transparent);
  padding: 2px 8px;
  border-radius: 100px;
}


.event-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  transition: color var(--transition);
}

.event-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--border-light);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Org chips ── */
.event-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.org-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 9px 3px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.org-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(109, 40, 217, 0.04);
}

.org-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Active org indicator ── */
.org-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.org-clear {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 1px;
  transition: color var(--transition);
}

.org-clear:hover { color: var(--text-primary); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state p { font-size: 15px; }

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
  height: 38px;
}

.btn-clear-filters:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

.btn-reset {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 7px 16px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.btn-reset:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 60px; /* extra bottom so content clears the fixed copyright bar */
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Fixed copyright bar ── */
.copyright-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 80;
  letter-spacing: 0.02em;
  gap: 16px;
}

.bmc-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 150ms ease, transform 150ms ease;
}
.bmc-btn:hover { opacity: 1; transform: scale(1.04); }
.bmc-img { height: 24px; width: auto; display: block; }

/* ── Search highlight ── */
mark.hl {
  background: #FEF08A;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

/* ── Heatmap bar ── */
.heatmap-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  padding: 0 2px 6px;
  margin-bottom: 16px;
  cursor: pointer;
}
.heatmap-col {
  flex: 1;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  background: #C4B5FD;
  transition: background 120ms ease, transform 120ms ease, opacity 120ms ease;
  position: relative;
}
.heatmap-col:hover {
  background: var(--accent);
  transform: scaleY(1.15);
  transform-origin: bottom;
  opacity: 1 !important;
}
.heatmap-col.active {
  background: var(--accent);
  opacity: 1 !important;
}
.heatmap-col[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* ── Load spinner ── */
.load-spinner {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loadSentinel { height: 1px; }

/* ── Utilities ── */
.hidden { display: none !important; }

/* ── Staggered fade animation ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timeline-item {
  opacity: 0;
}
.timeline-item.visible {
  animation: fadeSlideUp 240ms ease both;
}

/* ── Year pill ── */
.year-pill {
  position: fixed;
  left: max(12px, calc(50% - 620px));
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
  box-shadow: var(--shadow-sm);
  z-index: 50;
}

.year-pill.visible { opacity: 1; }

@keyframes pillPop {
  0%   { transform: translateY(-50%) scale(1); }
  40%  { transform: translateY(-50%) scale(1.15); color: var(--accent); }
  100% { transform: translateY(-50%) scale(1); }
}
.year-pill.pop { animation: pillPop 300ms ease; }

/* ── Responsive ── */
@media (max-width: 1200px) { .year-pill { display: none; } }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 4px; }
  .controls-row { flex-wrap: wrap; }
  .search-wrap { flex: 1 1 100%; }
  .timeline-item { grid-template-columns: 20px 1fr; gap: 0 14px; }
  .event-title { font-size: 15px; }
}

/* ── Suggest FAB ── */
@keyframes fabIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: .45; }
  70%  { transform: scale(1.9);  opacity: 0; }
  100% { transform: scale(1.9);  opacity: 0; }
}

.suggest-fab {
  position: fixed;
  bottom: 52px;
  right: 36px;
  z-index: 210;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(109,40,217,.4);
  animation: fabIn 400ms cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: 600ms;
  transition: transform 200ms cubic-bezier(.34,1.56,.64,1), box-shadow 150ms ease, background 150ms ease;
}
.suggest-fab:hover  { transform: scale(1.1); box-shadow: 0 6px 22px rgba(109,40,217,.5); }
.suggest-fab:active { transform: scale(0.94); }
.suggest-fab.open   { background: #5B21B6; transform: rotate(0deg); }

.suggest-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(109,40,217,.45);
  animation: pulse-ring 2.8s cubic-bezier(.4,0,.6,1) infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
.suggest-fab.open .suggest-fab-ring { animation: none; }

/* icon swap */
.fab-icon { position: absolute; display: flex; align-items: center; justify-content: center;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.34,1.56,.64,1); }
.fab-icon-edit  { opacity: 1; transform: rotate(0deg) scale(1); }
.fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.suggest-fab.open .fab-icon-edit  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.suggest-fab.open .fab-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* ── Suggest panel — blooms from FAB ── */
@keyframes panelBloom {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes panelShrink {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.7); }
}

.suggest-panel {
  position: fixed;
  bottom: 116px;
  right: 36px;
  z-index: 205;
  width: 380px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.16);
  padding: 22px;
  transform-origin: bottom right;
  animation: panelBloom 280ms cubic-bezier(.34,1.2,.64,1) both;
  display: none;
}
.suggest-panel.open   { display: block; animation: panelBloom 280ms cubic-bezier(.34,1.2,.64,1) both; }
.suggest-panel.closing { animation: panelShrink 200ms ease forwards; }

.suggest-header { margin-bottom: 12px; }
.suggest-title  { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }

/* mode toggle */
.sform-mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.sform-mode-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 150ms ease;
  user-select: none;
  flex: 1;
  justify-content: center;
}
.sform-mode-opt input[type="radio"] { display: none; }
.sform-mode-opt:hover { border-color: var(--accent); color: var(--accent); }
.sform-mode-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* thumbs */
.sform-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.thumb-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms cubic-bezier(.34,1.56,.64,1);
}
.thumb-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }
.thumb-btn.selected-up   { border-color: #16a34a; background: #f0fdf4; color: #16a34a; transform: scale(1.12); }
.thumb-btn.selected-down { border-color: #dc2626; background: #fef2f2; color: #dc2626; transform: scale(1.12); }

/* ── Form fields ── */
.sform-row { margin-bottom: 14px; position: relative; }
.sform-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sform-label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.sform-req { color: var(--accent); }
.sform-opt { font-weight: 400; color: var(--text-tertiary); }
.sform-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.sform-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}
.sform-input.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.sform-textarea { resize: vertical; min-height: 75px; }
.sform-charcount {
  position: absolute;
  right: 0;
  bottom: -17px;
  font-size: 10px;
  color: var(--text-tertiary);
}
.sform-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.sform-note { font-size: 11px; color: var(--text-tertiary); flex: 1; line-height: 1.4; }
.sform-submit {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform 100ms ease;
}
.sform-submit:hover  { background: #5B21B6; }
.sform-submit:active { transform: scale(0.97); }

/* ── Thank-you state ── */
@keyframes thanksIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.suggest-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 0 4px;
  text-align: center;
  animation: thanksIn 300ms cubic-bezier(.34,1.3,.64,1);
}
.suggest-thanks.hidden { display: none; }
.suggest-thanks-text { font-size: 15px; font-weight: 600; margin-top: 4px; }
.suggest-thanks-sub  { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }

@media (max-width: 600px) {
  .suggest-fab   { bottom: 48px; right: 16px; }
  .suggest-panel { right: 16px; width: calc(100vw - 32px); bottom: 110px; }
  .sform-cols    { grid-template-columns: 1fr; }
  .sform-actions { flex-direction: column; align-items: flex-end; }
}
