:root {
  --bg-body: #ffffff;
  --bg-elevated: #ffffff;
  --bg-chip: #f8fafc;
  --border-subtle: #e2e8f0;
  --accent: #0ea5e9;
  --accent-soft: #f0f9ff;
  --accent-strong: #0284c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
}

.app-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.app-header {
  display: flex;
  align-items: center;
  padding: 16px 0 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.app-main {
  padding: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.event-card {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.event-card.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.event-tag {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
}

.event-detail-header {
  padding: 0 0 20px;
}

.event-detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-container {
  position: relative;
  padding: 8px 0 4px;
}

.timeline-date-group {
  margin-bottom: 24px;
}

.timeline-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.timeline-date-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
}

.timeline-date-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 12px;
  padding-bottom: 8px;
}

.timeline-dot {
  position: relative;
  margin-top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-line {
  position: absolute;
  left: 25px;
  top: 26px;
  width: 1px;
  bottom: 0;
  background: var(--border-subtle);
}

.timeline-card {
  margin-top: 4px;
  margin-bottom: 6px;
  padding: 12px 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.timeline-time {
  color: var(--accent-strong);
  font-weight: 500;
}

.timeline-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

.timeline-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .app-shell {
    padding: 16px 16px 32px;
  }
  
  .event-list {
    gap: 8px;
  }
  
  .event-card {
    padding: 8px 14px;
    font-size: 13px;
  }
}
