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

body {
  font-family: 'Georgia', serif;
  background: #fff;
  color: #111;
}

/* Nav */
nav {
  background: #111;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 52px;
}
nav .logo {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
}
nav .logo span { color: #c0392b; }
nav a {
  color: #aaa;
  text-decoration: none;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
nav a:hover, nav a.active { color: #fff; }

/* Page layout */
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
h1 { font-size: 24px; margin-bottom: 24px; font-weight: normal; letter-spacing: -0.5px; }

/* Earnings calendar table */
.calendar-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Helvetica Neue', sans-serif;
}
.calendar-filters input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  width: 220px;
}
.calendar-filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

table { width: 100%; border-collapse: collapse; font-family: 'Helvetica Neue', sans-serif; font-size: 14px; }
thead th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #111; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; }
tbody tr { border-bottom: 1px solid #eee; cursor: pointer; }
tbody tr:hover { background: #f9f9f9; }
tbody td { padding: 10px 12px; }
.symbol { font-weight: bold; color: #c0392b; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  background: #f0f0f0;
  color: #555;
}
.badge.has-quotes { background: #fdecea; color: #c0392b; }
.view-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-family: 'Helvetica Neue', sans-serif;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.view-btn.active { background: #111; color: #fff; border-color: #111; }

/* Transcript reader */
.transcript-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.transcript-body {
  font-size: 15px;
  line-height: 1.8;
  word-wrap: break-word;
}
.transcript-body p {
  margin-bottom: 20px;
}

.highlight-ai {
  background: #f5f5f5;
  border-bottom: 2px solid #aaa;
  cursor: pointer;
}
.highlight-human {
  background: #fdecea;
  border-bottom: 2px solid #c0392b;
  cursor: pointer;
}

.sidebar {
  position: sticky;
  top: 24px;
  font-family: 'Helvetica Neue', sans-serif;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

#quote-list {
  overflow-y: auto;
  flex: 1;
  min-height: 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#quote-list::-webkit-scrollbar { display: none; }
.sidebar h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; margin-bottom: 12px; }
.sidebar-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 16px; cursor: pointer; }
.sidebar-toggle input { cursor: pointer; accent-color: #c0392b; }

.quote-card {
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.15s;
}
.quote-card:hover { border-color: #c0392b; }
.quote-card .q-tag { font-size: 11px; color: #c0392b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.quote-card .q-speaker { font-size: 11px; color: #888; margin-top: 6px; }
.quote-card .q-text { color: #333; }
.quote-card.source-ai { border-left: 3px solid #aaa; }
.quote-card.source-manual { border-left: 3px solid #c0392b; }

/* Highlight modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  padding: 28px;
  width: 460px;
  max-width: 90vw;
  font-family: 'Helvetica Neue', sans-serif;
}
.modal h3 { font-size: 15px; margin-bottom: 16px; }
.modal .selected-quote {
  background: #fdecea;
  border-left: 3px solid #c0392b;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #333;
}
.modal label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: #666; display: block; margin-bottom: 4px; }
.modal input, .modal select, .modal textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}
.modal textarea { min-height: 70px; resize: vertical; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn {
  padding: 8px 20px;
  font-size: 13px;
  font-family: 'Helvetica Neue', sans-serif;
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}
.btn-primary { background: #c0392b; color: #fff; }
.btn-primary:hover { background: #a93226; }
.btn-secondary { background: #f0f0f0; color: #333; }
.btn-secondary:hover { background: #e0e0e0; }

/* Quotes feed */
.feed-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Helvetica Neue', sans-serif;
  flex-wrap: wrap;
}
.feed-filters select, .feed-filters input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}
.feed-quote-card {
  border: 1px solid #eee;
  padding: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.feed-quote-card:hover { border-color: #c0392b; }
.feed-quote-card .meta {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.feed-quote-card .meta .symbol { color: #c0392b; font-weight: bold; font-size: 13px; }
.feed-quote-card .quote-text { color: #222; margin-bottom: 8px; }
.feed-quote-card .summary { font-family: 'Helvetica Neue', sans-serif; font-size: 13px; color: #666; font-style: italic; }
.tag { display: inline-block; padding: 2px 8px; background: #f0f0f0; font-size: 11px; color: #555; font-family: 'Helvetica Neue', sans-serif; }
.tag.red { background: #fdecea; color: #c0392b; }
