/* =====================================================================
   TIMELINE.CSS — Calendar view
   ===================================================================== */

.timeline-grid {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 1000px;
}

.tl-day {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .12s;
}
.tl-day:hover { border-color: var(--border-strong); }
.tl-day[open] { box-shadow: var(--shadow-card); }

.tl-day > summary {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tl-day > summary::-webkit-details-marker { display: none; }

.tl-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px;
  padding: 4px 10px;
  background: var(--bg-app);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.tl-day-num { font-size: 22px; font-weight: 800; line-height: 1; color: var(--text); }
.tl-month { font-size: 10px; color: var(--text-mute); font-weight: 600; margin-top: 2px; }

.tl-meta { display: flex; align-items: center; gap: 10px; }
.tl-count {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg-app); color: var(--text-mute);
}

.tl-bar {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; flex-wrap: wrap;
  max-width: 320px;
}
.tl-pill {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.tl-pill.priority-urgent  { background: var(--danger); }
.tl-pill.priority-high    { background: var(--warn); }
.tl-pill.priority-medium  { background: var(--accent); }
.tl-pill.priority-low     { background: var(--text-faint); }
.tl-more { font-size: 11px; color: var(--text-mute); font-weight: 700; }

.tl-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
  padding: 4px 16px 16px;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 12px;
}

.tl-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none; color: inherit;
  position: relative;
  transition: all .12s;
}
.tl-card::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 0 2px 2px 0;
}
.tl-card.priority-urgent::before { background: var(--danger); }
.tl-card.priority-high::before   { background: var(--warn); }
.tl-card.priority-medium::before { background: var(--accent); }
.tl-card.priority-low::before    { background: var(--text-faint); }
.tl-card:hover { transform: translateX(2px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }

.tl-card-head { display: flex; align-items: center; gap: 6px; padding-left: 6px; }
.tl-card-title { font-size: 13px; font-weight: 600; line-height: 1.3; padding-left: 6px; }
.tl-card-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11px; color: var(--text-mute);
  padding-left: 6px;
}
.tl-card-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: var(--r-sm);
  background: var(--bg-board); color: var(--text);
  align-self: flex-start; margin-left: 6px;
}

.more-notice {
  text-align: center; padding: 16px;
  color: var(--text-mute); font-size: 12px;
  background: var(--bg-light); border: 1px dashed var(--border);
  border-radius: var(--r); margin-top: 12px;
}

.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { color: var(--text-mute); }
