:root {
  --primary: #2e7d32;
  --primary-light: #e8f5e9;
  --bg: #fafaf7;
  --card-bg: #ffffff;
  --text: #222;
  --muted: #666;
  --border: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 2rem;
}

header {
  background: #fff;
  color: var(--text);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
}

.qr-thumb {
  height: 40px;
  width: 40px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.qr-overlay[hidden] {
  display: none;
}

.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
}

.qr-large {
  width: min(80vw, 360px);
  height: min(80vw, 360px);
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-sizing: border-box;
}

.qr-overlay p {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

#update-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#update-btn:disabled {
  opacity: 0.7;
}

.updated-info {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}

#tabs {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 9;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 1 0 auto;
  white-space: nowrap;
  border: none;
  background: none;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

#content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.75rem;
}

.day h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.25rem;
}

.day h2 .date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: normal;
}

.pass {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.75rem;
}

.card-time {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  font-size: 0.9rem;
  min-width: 3.2rem;
}

.card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.detail {
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.detail.description {
  color: var(--text);
  margin-top: 0.4rem;
}

.detail.note {
  color: var(--muted);
  font-style: italic;
}

.seminar {
  flex-direction: column;
}

.seminar .card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.seminar .card-header h3 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1rem;
}

.seminar-number {
  color: var(--primary);
  font-weight: 700;
}

.like-btn {
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}

.like-btn.liked {
  color: #f5a623;
}

.seminar details {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.seminar summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}

.seminar .speaker {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
  padding: 0 1rem;
}
