/* Base: variables, reset, layout shell. Shared by all pages. */
:root {
  --bg: #1a1a1a;
  --text: #e8eaed;
  --border: #3c4043;
  --grid-line: #5f6368;
  --header-bg: #2d2d2d;
  --event-default: #1a73e8;
  --event-past-opacity: 0.6;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-weekday-letters: #e8eaed;
  --theme-past-dates: #9aa0a6;
  --theme-day-number: #e8eaed;
  --theme-today-outline: #ff3b30;
  --theme-event-day-header: #e8eaed;
  --theme-event-time: #bdc1c6;
  --theme-event-title: #e8eaed;
  --theme-calendars-label: #e8eaed;
  --theme-calendar-name: #e8eaed;
  --theme-update-label: #9aa0a6;
}

[data-theme="light"] {
  --bg: #fff;
  --text: #3c4043;
  --border: #dadce0;
  --grid-line: #e8eaed;
  --header-bg: #f8f9fa;
  --theme-weekday-letters: #3c4043;
  --theme-past-dates: #80868b;
  --theme-day-number: #3c4043;
  --theme-today-outline: #ff3b30;
  --theme-event-day-header: #3c4043;
  --theme-event-time: #5f6368;
  --theme-event-title: #3c4043;
  --theme-calendars-label: #3c4043;
  --theme-calendar-name: #3c4043;
  --theme-update-label: #80868b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

#app {
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

#gate {
  text-align: center;
  padding: 2rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.toolbar .legal-links {
  padding: 0;
  font-size: 0.8125rem;
  opacity: 0.75;
}

.toolbar .legal-links a {
  color: var(--text);
  text-decoration: none;
}

.toolbar .legal-links a:hover {
  text-decoration: underline;
}

.toolbar .legal-links-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
  user-select: none;
}

.toolbar-home-link {
  color: var(--text);
  text-decoration: none;
}

.toolbar-home-link:hover {
  text-decoration: underline;
}
