@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --dave: #FFF700;
  --lac: #CC79A7;
  --gavin: #0072B2;
  --hudson: #009E73;
  --family: #2F3A45;

  --bg: #f7f4ec;
  --bg-warm: #efe9da;
  --card: #ffffff;
  --card-hover: #fbf9f4;
  --border: rgba(30, 25, 10, 0.1);
  --border-strong: rgba(30, 25, 10, 0.18);
  --text: #1c1a12;
  --text-dim: #625d4e;
  --text-faint: #9b9483;
  --accent: #1f4d3a;
  --accent-tint: rgba(31, 77, 58, 0.07);
  --warn-bg: #fdf3e0;
  --warn-border: #e6bf80;
  --warn-text: #8a5209;
  --radius: 8px;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mono { font-family: var(--mono); }

/* ---------- Layout shell ---------- */

.shell {
  display: flex;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
}

.sidebar {
  width: 224px;
  flex-shrink: 0;
  padding: 36px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 6px 28px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 3px;
}

nav.main-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 500;
  padding: 18px 8px 6px;
}

nav.main-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, color 0.15s;
}

nav.main-nav a:hover { background: var(--bg-warm); color: var(--text); }

nav.main-nav a.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border);
}

nav.main-nav a .swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.weather-widget {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px 12px;
  border-top: 1px solid var(--border);
  min-height: 30px;
}

.weather-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
}

.weather-icon svg { width: 100%; height: 100%; }

.weather-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.weather-loc {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.weather-temps { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.weather-hi { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.weather-lo { font-size: 0.85rem; color: var(--text-faint); }
.weather-cond { font-size: 0.68rem; color: var(--text-dim); }

.weather-unavailable {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.sidebar-footer {
  padding: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

main.content {
  flex: 1;
  padding: 20px 48px 90px;
  min-width: 0;
}

header.mobile-header { display: none; }
nav.mobile-nav { display: none; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { display: none; }
  header.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-nav a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    padding: 7px 13px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    white-space: nowrap;
  }
  .mobile-nav a.active { color: var(--text); border-color: var(--border-strong); }
  main.content { padding: 22px 18px 60px; }
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  padding: 0 0 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-strong);
}

.masthead-logo {
  height: 240px;
  width: auto;
}

.masthead-meta {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Hero / headers ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero .date {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.hero .hero-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: right;
}

.devotional {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 36px;
}

.devotional-quote {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
}

.devotional-ref {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.devotional-link {
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

section.block { margin-bottom: 42px; }

section.block h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 500;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

section.block h2 a.view-all {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.78rem;
}

/* ---------- Legend ---------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 0 22px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-item .swatch { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.marker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Pill tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  line-height: 1.5;
  white-space: nowrap;
}

.tag .swatch { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.tag-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 1px;
}

.day-view-event .tag-marker { margin-right: 8px; }

.tag[data-event-id] {
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.tag[data-event-id]:hover { filter: brightness(0.94); }
.tag[data-event-id]:active { transform: scale(0.97); }

.day-view-event[data-event-id] { cursor: pointer; transition: background 0.15s; }
.day-view-event[data-event-id]:hover { background: var(--card-hover); }

/* ---------- Event detail modal ---------- */

.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 18, 0.32);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.detail-overlay.open { display: flex; }

.detail-card {
  background: var(--card);
  border-radius: 14px;
  padding: 28px 26px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(20, 16, 5, 0.22);
  position: relative;
  border-top: 3px solid var(--accent, #78766d);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-close:hover { background: var(--border-strong); }

.detail-person {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
  padding-right: 20px;
}

.detail-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.detail-body {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  max-height: 50vh;
  overflow-y: auto;
}

.detail-callout {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  color: var(--warn-text);
  font-size: 0.85rem;
}

/* ---------- Cards ---------- */

.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.person-card {
  background: var(--card);
  padding: 18px 20px;
}

.person-card h3 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-card h3::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #999);
}

.person-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.person-card li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.person-card li:first-child { border-top: none; padding-top: 2px; }

.card-highlight {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.45;
}

.no-events {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: var(--mono);
}

.time {
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 8px;
  font-size: 0.78rem;
  font-family: var(--mono);
}

/* Needs attention */

.attention-list { display: grid; gap: 8px; }

.attention-item {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #4a3419;
}

.attention-item .icon { color: var(--warn-text); flex-shrink: 0; }
.attention-item .badge { font-family: var(--mono); font-weight: 600; color: var(--warn-text); margin-right: 6px; }

.attention-item-clickable { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.attention-item-clickable:hover { background: color-mix(in srgb, var(--warn-bg) 70%, #000 8%); border-color: var(--warn-text); }

/* Week strip (home preview) */

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 760px) {
  .week-strip { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

.week-day {
  background: var(--card);
  padding: 10px 10px 12px;
  min-height: 96px;
  min-width: 0;
  overflow: hidden;
}

.week-day .day-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 8px;
}

.week-day.is-today { background: var(--accent-tint); }
.week-day.is-today .day-label { color: var(--accent); }

.chip-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chip-row .tag { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Notices */

.notice-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
}

.notice-card-clickable { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.notice-card-clickable:hover { background: var(--card-hover); border-color: var(--border-strong); }

.notice-more {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.notice-card.flagged { border-color: var(--warn-border); background: var(--warn-bg); }

.notice-card .source { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 600; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.notice-card .source .tag-marker { text-transform: none; }
.notice-card.flagged .source { color: var(--warn-text); }
.notice-card .subject { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.notice-card .snippet { font-size: 0.83rem; color: var(--text-dim); }

/* ---------- Person page ---------- */

.person-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.3rem;
  background: var(--accent, #999);
}

.person-hero h1 { margin: 0; font-size: 1.7rem; }
.person-hero .role { color: var(--text-faint); font-family: var(--mono); font-size: 0.76rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.highlight-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #999);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.highlight-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 6px;
}

.highlight-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.agenda-day {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #999);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 9px;
}

.agenda-day h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.agenda-event {
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.category-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-left: 8px;
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 20px;
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.notes-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

footer {
  text-align: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 30px 0 10px;
}

/* ---------- Calendar page ---------- */

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.cal-nav { display: flex; align-items: center; gap: 10px; }

.cal-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
}

.cal-nav button:hover { background: var(--bg-warm); }

.cal-nav .cal-label {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}

.cal-nav .today-btn {
  width: auto;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
}

.view-toggle {
  display: flex;
  background: var(--bg-warm);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.view-toggle button {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: 17px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--mono);
}

.view-toggle button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* Month grid */

.month-grid-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 840px;
}

.month-dow {
  background: var(--bg-warm);
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 500;
}

.month-cell {
  background: var(--card);
  min-height: 100px;
  min-width: 0;
  padding: 7px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.month-cell:hover { background: var(--card-hover); }
.month-cell.outside { background: var(--bg); }
.month-cell.outside .month-daynum { color: var(--text-faint); }
.month-cell.is-today { background: var(--accent-tint); }

.month-daynum {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.month-cell.is-today .month-daynum { color: var(--accent); }

.month-dot-row { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.month-dot-row .tag {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.month-more { font-family: var(--mono); font-size: 0.64rem; color: var(--text-faint); margin-top: 1px; }

/* Outlook-style time grid: Week + Day views ---------- */

.week-timegrid-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.tg-wrap { background: var(--card); min-width: 826px; }

.day-timegrid { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

.tg-header-row,
.tg-allday-row,
.tg-body-row {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(110px, 1fr));
}

.tg-body-row.single,
.tg-allday-row.single {
  grid-template-columns: 56px 1fr;
}

.tg-gutter-spacer { border-bottom: 1px solid var(--border); }

.tg-day-header {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: center;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.tg-day-header.is-today { color: var(--accent); font-weight: 700; }

.tg-allday-row { border-bottom: 1px solid var(--border); }

.tg-gutter-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  padding: 8px 6px 0;
}

.tg-allday-col {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
  min-height: 24px;
}

.tg-allday-col .tag { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.tg-gutter { position: relative; }

.tg-hour-label {
  position: absolute;
  top: 0;
  right: 8px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.tg-day-col {
  position: relative;
  border-left: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--border) 0,
    var(--border) 1px,
    transparent 1px,
    transparent 52px
  );
}

.tg-day-col.is-today { background-color: var(--accent-tint); }
.tg-day-col.wide { min-height: 120px; }

.tg-empty {
  position: absolute;
  top: 10px;
  left: 10px;
}

.tg-event {
  position: absolute;
  border-radius: 6px;
  border-left: 3px solid;
  padding: 3px 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(20, 16, 5, 0.08);
  transition: filter 0.15s, box-shadow 0.15s;
  z-index: 2;
}

.tg-event:hover { filter: brightness(0.96); box-shadow: 0 2px 6px rgba(20, 16, 5, 0.14); z-index: 3; }

.tg-event-body { display: flex; flex-direction: column; gap: 1px; overflow: hidden; min-width: 0; }

.tg-event-title {
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-event-time {
  font-size: 0.64rem;
  font-family: var(--mono);
  opacity: 0.85;
  white-space: nowrap;
}

.tg-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #d64545;
  z-index: 4;
}

.tg-now-line::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d64545;
}
