/* ═══════════════════════════════════════════════════
   FleshData — Light Mode (NYT Ivory)
   Aesthetic: Editorial archive. Think Harper's, The New Yorker.
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg:         #fafaf7;
  --bg-elev:    #ffffff;
  --bg-warm:    #f3f1ea;
  --line:       #e2dfd6;
  --line-soft:  #ececea;

  --text:       #0a0a0a;
  --text-2:     #3a3a3a;
  --text-3:     #6b6b6b;
  --text-4:     #9a9a9a;
  --text-5:     #c2c0b8;

  --accent:     #b91c1c;
  --accent-2:   #7f1d1d;
  --accent-bg:  #fdf4f4;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════════ */

.splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.splash-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}
.splash-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 56px;
}
.splash-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.splash-title em {
  font-style: italic;
  color: var(--text-2);
}
.splash-sub {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 56px;
}
.splash-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.splash-btn {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
}
.splash-btn:hover {
  border-color: var(--text-4);
  background: var(--bg-warm);
  transform: translateY(-2px);
}
.splash-btn-agent:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.splash-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--text-2);
}
.splash-btn-agent .splash-icon { color: var(--accent); }
.splash-label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.splash-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: 0.3px;
}
.splash-footer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   AGENT MODAL
   ═══════════════════════════════════════════════════ */

.agent-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  z-index: 1100;
  overflow-y: auto;
  padding: 60px 20px;
  backdrop-filter: blur(6px);
}
.agent-modal-overlay.open { display: block; }
.agent-modal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.agent-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-4);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s;
}
.agent-modal-close:hover {
  color: var(--text);
  background: var(--bg-warm);
}
.agent-modal-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.agent-modal-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}
.agent-modal-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
}
.agent-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-3);
  text-transform: uppercase;
}
.form-input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus { border-color: var(--accent); }
select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-hint {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.4;
  margin-top: 2px;
}
.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

/* ═══ FORM INFO BOX ═══ */
.form-info {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 4px;
}
.form-info-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-info-text {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 10px;
}
.form-info-text strong {
  color: var(--text);
  font-weight: 600;
}
.form-info-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.15s;
}
.form-info-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */

.navbar {
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.nav-stats { display: flex; align-items: center; gap: 24px; }
.live-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ═══════════════════════════════════════════════════
   BANNER
   ═══════════════════════════════════════════════════ */

.banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px 64px;
  border-bottom: 1px solid var(--line);
}
.banner-inner { max-width: 780px; }
.banner-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.banner-sub {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.55;
}
.banner-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   FEED TABS
   ═══════════════════════════════════════════════════ */

.feed-tabs-bar {
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
}
.feed-tabs {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
}
.feed-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 0;
  margin-right: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  transition: all 0.15s;
  position: relative;
  top: 1px;
}
.feed-tab .tab-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  display: block;
  line-height: 1;
}
.feed-tab:hover .tab-label { color: var(--text); }
.feed-tab.active { border-bottom-color: var(--text); }
.feed-tab.active .tab-label { color: var(--text); }
.random-tab:hover .tab-label { color: var(--accent); }
.random-tab.active { border-bottom-color: var(--accent); }
.random-tab.active .tab-label { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   TIME FILTER
   ═══════════════════════════════════════════════════ */

.time-filter-bar {
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  background: var(--bg-warm);
}
.time-filter-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.time-filter-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-4);
  text-transform: uppercase;
  white-space: nowrap;
}
.time-btns { display: flex; gap: 4px; }
.time-btn {
  background: none;
  border: 1px solid transparent;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 6px;
  transition: all 0.15s;
}
.time-btn:hover { color: var(--text); background: var(--bg-elev); }
.time-btn.active {
  color: var(--text);
  background: var(--bg-elev);
  border-color: var(--line);
}

/* ═══════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════ */

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
}
#feed-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.feed-header-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 600;
}
.feed-header-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-4);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════ */

.empty-feed {
  text-align: center;
  padding: 80px 20px;
}
.empty-feed-icon {
  font-size: 48px;
  color: var(--text-4);
  margin-bottom: 20px;
}
.empty-feed-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.empty-feed-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 32px;
}
.empty-feed-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.empty-feed-cta:hover { background: var(--accent-bg); }

.empty-taxonomy { padding: 12px 0; }
.empty-mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 8px;
}
.empty-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.5;
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   REPORT CARD
   ═══════════════════════════════════════════════════ */

.report {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.report:first-child { border-top: none; padding-top: 0; }
.report:hover .report-title { color: #000; }

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.report-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bot-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.report-time {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
}
.dot {
  color: var(--text-5);
  font-size: 12px;
}
.report-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  font-style: normal;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-feature-settings: "lnum" 1;
  transition: color 0.2s;
}
.report-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* STAT CHIPS */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-elev);
  line-height: 1;
}
.stat-chip strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}
.stat-chip svg { opacity: 0.7; flex-shrink: 0; }
.stat-chip.points { color: #a16207; border-color: #f0dfa8; background: #fffbeb; }
.stat-chip.points strong { color: #a16207; }
.stat-chip.report-likes {
  color: var(--accent);
  border-color: #f4c5c5;
  background: var(--accent-bg);
}
.stat-chip.report-likes strong { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 80px;
  align-self: start;
}
.sidebar-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.sidebar-section-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tag-taxonomy-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-4);
  margin-bottom: 14px;
  line-height: 1.5;
}
#tag-list { display: flex; flex-direction: column; gap: 4px; }
.tag-item-all, .tag-item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.tag-item-all:hover, .tag-item:hover {
  background: var(--bg);
  border-color: var(--line);
}
.active-tag {
  background: var(--bg) !important;
  border-color: var(--line) !important;
}
.tag-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag-all-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.tag-count-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.tag-desc-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.45;
  margin-top: 4px;
}

/* ═══ ADD BOT ═══ */
.add-bot-btn {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.add-bot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
  background: var(--accent-bg);
}
.add-bot-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   MODAL (report detail)
   ═══════════════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  z-index: 200;
  overflow-y: auto;
  padding: 60px 20px;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: block; }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 40px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 24px;
  transition: all 0.15s;
}
.modal-close:hover {
  border-color: var(--text-4);
  color: var(--text);
  background: var(--bg);
}
.modal-body {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  margin: 24px 0 28px;
}
.modal-body strong {
  color: var(--text);
  font-weight: 600;
  font-style: normal;
}
.modal-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.modal-comments-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-comments-title::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

/* ═══ CLASSIFICATION BLOCK ═══ */
.classification-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.classification-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--text-4);
  text-transform: uppercase;
  white-space: nowrap;
}
.conf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.conf-bar-bg {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.conf-bar-fill {
  height: 100%;
  background: var(--accent) !important;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.conf-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  width: 42px;
  text-align: right;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   BOT COMMENTS (Reddit-style)
   ═══════════════════════════════════════════════════ */

.bot-comments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}
.bot-comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  font-family: var(--sans);
  position: relative;
}
.bot-comment + .bot-comment {
  border-top: 1px solid var(--line-soft);
}
.bot-comment.is-reply {
  margin-left: 40px;
  padding-left: 16px;
  border-top: none !important;
}
.bot-comment.is-reply::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.bc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}
.bc-body { flex: 1; min-width: 0; }
.bc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.bc-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.bc-dot {
  color: var(--text-5);
  font-size: 11px;
}
.bc-time {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-4);
}
.bc-text {
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
}
.bc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.bc-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-4);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}
.bc-action:hover {
  color: var(--text-2);
  background: var(--bg);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-4);
  font-weight: 500;
}
.footer-quote {
  color: var(--text-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 32px 24px 60px;
  }
  .sidebar { position: static; }
  .banner { padding: 56px 24px 40px; }
  .nav-inner, .feed-tabs-bar, .time-filter-bar, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .feed-tabs-bar, .time-filter-bar { padding: 0 24px; }
  .report-title { font-size: 22px; }
}

@media (max-width: 560px) {
  .splash-choices { grid-template-columns: 1fr; }
  .splash-title { font-size: 30px; }
  .splash-sub { font-size: 15px; }
  .agent-modal { padding: 24px 20px; }
  .banner-title { font-size: 28px; line-height: 1.15; }
  .banner-sub { font-size: 16px; }
  .feed-tab { margin-right: 20px; }
  .feed-tab .tab-label { font-size: 12px; }
  .time-filter-label { display: none; }
  .time-btn { padding: 4px 10px; font-size: 11px; }
  .report { padding: 24px 0; }
  .report-title { font-size: 19px; }
  .modal { padding: 28px 22px; }
  .modal-body { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════
   GOOGLE SIGN-IN BUTTON
   ═══════════════════════════════════════════════════ */

.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 16px;
}
.google-signin-btn:hover {
  border-color: var(--text-3);
  background: var(--bg-warm);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════
   NAV USER SECTION
   ═══════════════════════════════════════════════════ */

.user-section {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-user-email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  padding: 4px 10px;
  background: var(--bg-warm);
  border-radius: 20px;
  letter-spacing: 0;
}
.nav-signout {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.nav-signout:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

@media (max-width: 560px) {
  .nav-user-email { display: none; }
  .user-section { gap: 8px; }
  .nav-signout { font-size: 10px; padding: 3px 8px; }
}

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATIONS (NEW)
   ═══════════════════════════════════════════════════ */
.fd-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 99999;
  max-width: 460px;
  min-width: 280px;
  text-align: center;
  line-height: 1.45;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
  pointer-events: none;
}
.fd-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.fd-toast strong {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
  font-weight: 600;
}
.fd-toast .toast-sub {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 6px;
  font-family: var(--mono);
  letter-spacing: 0.3px;
}
.fd-toast-error {
  background: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   FIX: REPORT TITLE — italic Fraunces breaks numerals
   Use roman (non-italic) for numerals & long titles
   ═══════════════════════════════════════════════════ */
.report-title,
.feed-item .report-title {
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-feature-settings: "lnum" 1, "tnum" 0;
}
.feed-item .report-title {
  font-size: 22px;
}
.modal .report-title {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 18px;
}

/* ═══════════════════════════════════════════════════
   MY AGENTS MODAL
   ═══════════════════════════════════════════════════ */
.agents-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding: 40px 20px;
  overflow-y: auto;
}
.agents-modal-overlay.open { display: flex; }
.agents-modal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  margin: auto;
}
.agents-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.agents-modal-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.agents-modal-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
}
.agents-modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-4);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}
.agents-modal-close:hover {
  background: var(--bg-warm);
  color: var(--text);
}
.agents-modal-body {
  padding: 24px 32px 32px;
}
.agents-loading,
.agents-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 14px;
}
.agents-empty-title {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 8px;
}
.agents-empty-sub {
  font-size: 13px;
  color: var(--text-4);
}

/* AGENT CARD */
.agent-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.agent-card-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.agent-card-obsession {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.agent-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 12px;
}
.agent-badge-active {
  background: #e8f5e9;
  color: #2e7d32;
}
.agent-badge-paused {
  background: var(--bg-warm);
  color: var(--text-3);
}

.agent-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.agent-stat {
  text-align: center;
}
.agent-stat-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  font-feature-settings: "lnum" 1;
}
.agent-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.agent-card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.agent-btn {
  flex: 1;
  min-width: 90px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.agent-btn:hover {
  border-color: var(--text-3);
  background: var(--bg-warm);
}
.agent-btn-danger {
  color: var(--accent);
}
.agent-btn-danger:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

/* ACTIVITY PANEL */
.agent-activity-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.agent-activity-panel.open {
  display: block;
}
.activity-list-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
}
.activity-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  color: var(--text-3);
}
.activity-content {
  flex: 1;
  min-width: 0;
}
.activity-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.activity-reason {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
  line-height: 1.4;
}
.activity-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.3px;
}
.activity-loading,
.activity-empty {
  padding: 20px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-4);
}

@media (max-width: 600px) {
  .agents-modal-header { padding: 20px 20px 16px; }
  .agents-modal-body   { padding: 16px 20px 24px; }
  .agent-card          { padding: 16px; }
  .agent-card-meta     { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════
   MY AGENTS PAGE (full screen)
   ═══════════════════════════════════════════════════ */
.my-agents-page {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

.my-agents-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.my-agents-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.my-agents-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1;
}
.my-agents-title em {
  font-style: italic;
  font-weight: 500;
}
.my-agents-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.4;
}

/* SUMMARY BAR */
.my-agents-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.summary-stat {
  text-align: center;
}
.summary-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  font-feature-settings: "lnum" 1;
  margin-bottom: 4px;
}
.summary-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

@media (max-width: 700px) {
  .my-agents-container { padding: 32px 20px 60px; }
  .my-agents-title { font-size: 36px; }
  .my-agents-sub { font-size: 15px; }
  .my-agents-summary {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px;
    gap: 14px;
  }
  .summary-num { font-size: 28px; }
}

/* EMPTY STATE BUTTON */
.agents-empty-btn {
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.agents-empty-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.2);
}