/* ========================================
   TimeAgent Design System — Global Styles
   Light WeChat-Style Theme
   ======================================== */

/* --- Design Tokens (CSS Variables) --- */
:root {
  /* Background */
  --bg-primary: #F7F7F7;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EDEDED;
  --bg-overlay: rgba(0, 0, 0, 0.4);

  /* Accent — WeChat Green */
  --accent-gold: #07C160;
  --accent-gold-light: #4CD889;
  --accent-gold-dark: #06AE56;
  --accent-gold-15: rgba(7, 193, 96, 0.12);

  /* Schedule Colors */
  --schedule-meeting: #576B95;
  --schedule-meeting-15: rgba(87, 107, 149, 0.1);
  --schedule-conflict: #FA5151;
  --schedule-conflict-15: rgba(250, 81, 81, 0.1);
  --schedule-habit: #07C160;
  --schedule-habit-15: rgba(7, 193, 96, 0.1);
  --schedule-todo: #FFC300;
  --schedule-todo-15: rgba(255, 195, 0, 0.1);

  /* Agent */
  --agent-primary: #07C160;
  --agent-secondary: #06AE56;
  --agent-glow: rgba(7, 193, 96, 0.2);
  --agent-15: rgba(7, 193, 96, 0.1);

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Radii */
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 22px;
  --radius-tag: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-agent: 0 4px 16px rgba(7, 193, 96, 0.15);

  /* Typography */
  --font-cn: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-en: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', monospace;

  /* Sizes */
  --heading1: 28px;
  --heading2: 22px;
  --heading3: 17px;
  --body: 15px;
  --caption: 13px;

  /* Layout */
  --phone-width: 393px;
  --phone-height: 852px;
  --navbar-height: 56px;
  --tabbar-height: 83px;
  --safe-bottom: 34px;

  /* Dividers (light theme) */
  --divider: rgba(0, 0, 0, 0.05);
  --divider-strong: rgba(0, 0, 0, 0.08);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-cn);
  font-size: var(--body);
  color: var(--text-primary);
  background: #E8E8E8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
}

ul, ol { list-style: none; }

/* --- Phone Frame --- */
.phone-frame {
  width: var(--phone-width);
  height: var(--phone-height);
  margin: 20px auto;
  background: var(--bg-primary);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 2px #D1D1D6, 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Desktop: show in phone frame */
@media (min-width: 500px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
  }
}

/* Mobile: full screen */
@media (max-width: 499px) {
  .phone-frame {
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* --- Status Bar (simulated) --- */
.status-bar {
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 28px 8px;
  font-family: var(--font-en);
  font-size: var(--caption);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.status-bar .time { font-variant-numeric: tabular-nums; }
.status-bar .icons { display: flex; gap: 6px; align-items: center; }

/* --- Navigation Bar --- */
.navbar {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  background: var(--bg-primary);
  position: relative;
  z-index: 10;
}

.navbar-title {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-en);
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.navbar-subtitle {
  font-size: var(--caption);
  color: var(--text-secondary);
  margin-top: -4px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.2s;
  color: var(--text-primary);
}

.navbar-btn:active {
  background: var(--bg-tertiary);
}

/* --- Tab Bar --- */
.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 8px;
  background: var(--bg-secondary);
  border-top: 0.5px solid var(--divider);
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-tertiary);
  transition: color 0.2s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tab-item .tab-icon {
  font-size: 24px;
  line-height: 1;
}

.tab-item.active {
  color: var(--accent-gold);
}

.tab-item.agent-tab .tab-icon {
  filter: drop-shadow(0 0 4px var(--agent-glow));
}

/* --- Page Content Area --- */
.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--tabbar-height);
}

.page-content::-webkit-scrollbar {
  display: none;
}

/* --- Card --- */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-glow {
  border: 1px solid rgba(7, 193, 96, 0.2);
}

.card-elevated {
  box-shadow: var(--shadow-sm);
}

/* --- Agent Card (green left border) --- */
.agent-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-dark)) 1;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

/* --- Schedule Card --- */
.schedule-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}

.schedule-card:active {
  transform: scale(0.97);
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.schedule-card[data-type="meeting"]::before { background: var(--schedule-meeting); }
.schedule-card[data-type="conflict"]::before { background: var(--schedule-conflict); }
.schedule-card[data-type="habit"]::before { background: var(--schedule-habit); }
.schedule-card[data-type="todo"]::before { background: var(--schedule-todo); }

.schedule-card .sc-title {
  font-size: var(--body);
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.schedule-card .sc-time {
  font-size: var(--caption);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.schedule-card .sc-location {
  font-size: var(--caption);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.badge-conflict {
  background: var(--schedule-conflict-15);
  color: var(--schedule-conflict);
}

.badge-habit {
  background: var(--schedule-habit-15);
  color: var(--schedule-habit);
}

.badge-todo {
  background: var(--schedule-todo-15);
  color: var(--schedule-todo);
}

.badge-agent {
  background: var(--accent-gold-15);
  color: var(--accent-gold-dark);
}

/* --- Color Dot --- */
.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.color-dot.meeting { background: var(--schedule-meeting); }
.color-dot.conflict { background: var(--schedule-conflict); }
.color-dot.habit { background: var(--schedule-habit); }
.color-dot.todo { background: var(--schedule-todo); }
.color-dot.agent { background: var(--accent-gold); }

/* --- Chat Bubble --- */
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: var(--body);
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.chat-bubble.user {
  background: var(--accent-gold);
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
  color: #FFFFFF;
}

.chat-bubble.agent {
  background: var(--bg-secondary);
  border-radius: 4px 16px 16px 16px;
  border-left: 2px solid var(--accent-gold);
  align-self: flex-start;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* --- Quick Input --- */
.quick-input {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-top: 0.5px solid var(--divider);
}

.quick-input-field {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-input);
  padding: 10px 16px;
  gap: var(--spacing-sm);
}

.quick-input-field input {
  flex: 1;
  background: none;
  color: var(--text-primary);
  font-size: var(--body);
}

.quick-input-field input::placeholder {
  color: var(--text-tertiary);
}

.quick-input-field .send-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}

.quick-input-field .send-btn:active {
  transform: scale(0.9);
}

.quick-input-field .send-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.voice-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.2s;
  color: var(--text-secondary);
}

.voice-btn:active {
  background: var(--bg-tertiary);
}

/* --- Toggle Switch --- */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: #CCCCCC;
  border-radius: 14px;
  transition: background 0.3s;
}

.toggle .slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .slider {
  background: var(--accent-gold);
}

.toggle input:checked + .slider::after {
  transform: translateX(20px);
  background: #FFFFFF;
}

/* --- Segmented Control --- */
.segmented-control {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-button);
  padding: 2px;
  gap: 2px;
}

.segmented-control .seg-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: var(--caption);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
}

.segmented-control .seg-item.active {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* --- Section Header --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
}

.section-header .sh-title {
  font-size: var(--heading3);
  font-weight: 600;
  color: var(--text-primary);
}

.section-header .sh-count {
  font-size: var(--caption);
  color: var(--text-secondary);
}

/* --- Empty State --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px var(--spacing-xl);
  text-align: center;
}

.empty-state .es-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.empty-state .es-text {
  font-size: var(--body);
  color: var(--text-secondary);
}

/* --- Animations --- */

/* Agent thinking pulse */
@keyframes agentThink {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

.agent-thinking {
  display: flex;
  gap: 6px;
  padding: 8px 0;
}

.agent-thinking .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: agentThink 1.5s ease-in-out infinite;
}

.agent-thinking .dot:nth-child(2) { animation-delay: 0.3s; }
.agent-thinking .dot:nth-child(3) { animation-delay: 0.6s; }

/* Agent execute sweep */
@keyframes agentSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.agent-sweep {
  position: relative;
  overflow: hidden;
}

.agent-sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-gold-15), transparent);
  animation: agentSweep 0.8s linear;
}

/* Confirm bounce */
@keyframes confirmBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.confirm-bounce {
  animation: confirmBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Alert flash */
@keyframes alertFlash {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Green glow pulse */
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(7, 193, 96, 0.2); }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* --- Utility Classes --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.text-gold { color: var(--accent-gold); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-conflict { color: var(--schedule-conflict); }
.text-habit { color: var(--schedule-habit); }
.text-todo { color: var(--schedule-todo); }
.text-agent { color: var(--accent-gold); }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.rounded-card { border-radius: var(--radius-card); }
.rounded-button { border-radius: var(--radius-button); }
.rounded-input { border-radius: var(--radius-input); }

/* --- Scrollbar Hidden --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Page Layout --- */
.page-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
}

/* --- Avatar --- */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  background: var(--accent-gold-15);
}

/* --- Subtask --- */
.subtask {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 0;
  border-bottom: 0.5px solid var(--divider);
}

.subtask:last-child {
  border-bottom: none;
}

.subtask .checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.subtask .checkbox.checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.subtask .checkbox.checked::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.subtask .subtask-text {
  font-size: var(--body);
  flex: 1;
}

.subtask .subtask-text.completed {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

/* --- Settings Row --- */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--spacing-md);
  border-bottom: 0.5px solid var(--divider);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row .sr-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--body);
  color: var(--text-primary);
}

.settings-row .sr-value {
  font-size: var(--caption);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Settings Group --- */
.settings-group {
  margin: var(--spacing-md);
}

.settings-group-title {
  font-size: var(--caption);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 var(--spacing-md) var(--spacing-sm);
}

.settings-group .card {
  overflow: hidden;
}

/* --- Button --- */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-button);
  font-size: var(--body);
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.btn-primary:active {
  background: var(--accent-gold-dark);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-secondary:active {
  background: var(--accent-gold-15);
}

.btn-danger {
  color: var(--schedule-conflict);
  font-size: var(--body);
}

.btn-agent {
  background: var(--accent-gold);
  color: #FFFFFF;
}

/* --- Quick Tags --- */
.quick-tags {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  overflow-x: auto;
}

.quick-tags::-webkit-scrollbar { display: none; }

.quick-tag {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: var(--caption);
  white-space: nowrap;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.quick-tag:active {
  background: var(--accent-gold-15);
  color: var(--accent-gold);
}

/* --- Bottom Sheet --- */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-radius: 20px 20px 0 0;
  padding: var(--spacing-lg) var(--spacing-md) var(--tabbar-height);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #D1D1D6;
  margin: 0 auto var(--spacing-md);
}

/* --- Overlay --- */
.overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Timeline (Waterfall Schedule) --- */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  padding: 0 var(--spacing-md);
}

.timeline-item {
  display: flex;
  min-height: 72px;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 52px;
  flex-shrink: 0;
  position: relative;
}

.timeline-time {
  font-family: var(--font-en);
  font-size: var(--caption);
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 14px;
}

.timeline-line {
  flex: 1;
  width: 2px;
  background: var(--bg-tertiary);
  position: relative;
  margin: 6px 0;
}

/* Semantic color dot on the timeline */
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: -1px;
  right: -4px;
  border: 2px solid var(--bg-primary);
  z-index: 2;
}

.timeline-dot.meeting { background: var(--schedule-meeting); }
.timeline-dot.conflict { background: var(--schedule-conflict); }
.timeline-dot.habit { background: var(--schedule-habit); }
.timeline-dot.todo { background: var(--schedule-todo); }

/* Conflict dashed line */
.timeline-item.conflict .timeline-line {
  background: repeating-linear-gradient(
    to bottom,
    var(--schedule-conflict) 0px,
    var(--schedule-conflict) 4px,
    transparent 4px,
    transparent 8px
  );
  background-size: 2px 8px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* Timeline card (right side) */
.timeline-card {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin: 6px 0 6px 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
}

.timeline-card:active {
  transform: scale(0.98);
}

/* Top color bar */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.timeline-card[data-type="meeting"]::before { background: var(--schedule-meeting); }
.timeline-card[data-type="conflict"]::before { background: var(--schedule-conflict); }
.timeline-card[data-type="habit"]::before { background: var(--schedule-habit); }
.timeline-card[data-type="todo"]::before { background: var(--schedule-todo); }

.timeline-card .sc-title {
  font-size: var(--body);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-card .sc-meta {
  font-size: var(--caption);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-card .sc-meta .sc-sep {
  color: var(--text-tertiary);
}

.timeline-card .sc-location {
  font-size: var(--caption);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* "Now" indicator — pulsing green dot for current event */
.now-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-gold-15);
  color: var(--accent-gold);
  animation: nowPulse 2s ease-in-out infinite;
}

.now-indicator .now-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: agentThink 1.5s ease-in-out infinite;
}

@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0); }
  50% { box-shadow: 0 0 8px 2px rgba(7, 193, 96, 0.2); }
}
