/* Minimalist Clean Design System - Overlap / Meeting Planner (Vertical Layout) */

:root {
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-muted: #f3f4f6;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;
  --border-dark: #111827;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;

  /* Default availability tokens: Ideal (Light Green), OK (Light Yellow), Bad (Light Red) */
  --availability-work: #86efac;
  --availability-work-bg: #dcfce7;
  --availability-work-border: #86efac;
  --availability-work-text: #166534;

  --availability-shoulder: #fde047;
  --availability-shoulder-bg: #fef9c3;
  --availability-shoulder-border: #fde047;
  --availability-shoulder-text: #854d0e;

  --availability-sleep: #fca5a5;
  --availability-sleep-bg: #fee2e2;
  --availability-sleep-border: #fca5a5;
  --availability-sleep-text: #991b1b;

  /* Legacy aliases */
  --hour-sleep: var(--availability-sleep-bg);
  --hour-shoulder: var(--availability-shoulder-bg);
  --hour-work: var(--availability-work-bg);

  --scrubber-bg: rgba(17, 24, 39, 0.12);
  --scrubber-border: #111827;

  --hour-height: 48px;
  --city-col-min-width: 102px;
}

/* Perception Theme (Sky) */
[data-theme="perception"] {
  --availability-work: #86efac;
  --availability-work-bg: #dcfce7;
  --availability-work-border: #86efac;
  --availability-work-text: #166534;

  --availability-shoulder: #fde047;
  --availability-shoulder-bg: #fef9c3;
  --availability-shoulder-border: #fde047;
  --availability-shoulder-text: #854d0e;

  --availability-sleep: #fca5a5;
  --availability-sleep-bg: #fee2e2;
  --availability-sleep-border: #fca5a5;
  --availability-sleep-text: #991b1b;
}

/* Grayscale Theme (Day/Night) */
[data-theme="grayscale"] {
  --availability-work: #86efac;
  --availability-work-bg: #dcfce7;
  --availability-work-border: #86efac;
  --availability-work-text: #166534;

  --availability-shoulder: #fde047;
  --availability-shoulder-bg: #fef9c3;
  --availability-shoulder-border: #fde047;
  --availability-shoulder-text: #854d0e;

  --availability-sleep: #fca5a5;
  --availability-sleep-bg: #fee2e2;
  --availability-sleep-border: #fca5a5;
  --availability-sleep-text: #991b1b;
}

/* Plain Theme (Classic Availability) */
[data-theme="plain"] {
  --availability-work: #86efac;
  --availability-work-bg: #dcfce7;
  --availability-work-border: #86efac;
  --availability-work-text: #166534;

  --availability-shoulder: #fde047;
  --availability-shoulder-bg: #fef9c3;
  --availability-shoulder-border: #fde047;
  --availability-shoulder-text: #854d0e;

  --availability-sleep: #fca5a5;
  --availability-sleep-bg: #fee2e2;
  --availability-sleep-border: #fca5a5;
  --availability-sleep-text: #991b1b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 60px;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Header & Controls */
header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand .tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.control-group label {
  font-weight: 500;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: var(--text-muted);
}

.checkbox-label:hover {
  color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--border-dark);
  width: 15px;
  height: 15px;
  margin: 0;
}

input[type="date"],
select {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

input[type="date"]:focus,
select:focus {
  border-color: var(--border-dark);
}

.btn-group {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.btn-pill {
  border: none;
  background: var(--bg);
  color: var(--text-main);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.btn-pill:last-child {
  border-right: none;
}

.btn-pill:hover {
  background: var(--bg-muted);
}

.btn-pill.active {
  background: var(--text-main);
  color: #ffffff;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-muted);
}

.btn-primary {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.btn-primary:hover {
  background: #2b3544;
  border-color: #2b3544;
}

.btn-secondary {
  background: var(--bg-subtle);
}

/* Main Layout */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Search Bar */
.search-container {
  position: relative;
  margin-bottom: 16px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-input-wrapper:focus-within {
  border-color: var(--border-dark);
  box-shadow: 0 0 0 1px var(--border-dark);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 8px;
  font-size: 0.9rem;
}

#city-search {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  color: var(--text-main);
  font-family: inherit;
}

.btn-geo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: inherit;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-geo:hover {
  background: var(--bg);
  color: var(--text-main);
  border-color: var(--border-dark);
}

.btn-geo .geo-icon {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-geo:hover .geo-icon {
  color: var(--text-main);
}

.btn-geo.locating {
  opacity: 0.75;
  pointer-events: none;
  background: var(--bg);
  border-color: var(--border-dark);
}

.btn-geo.locating .geo-icon {
  animation: geo-spin 1s linear infinite;
}

@keyframes geo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .btn-geo .btn-geo-text {
    display: none;
  }
  .btn-geo {
    padding: 4px 6px;
    margin-right: 6px;
  }
}

.search-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-subtle);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow-y: auto;
  z-index: 60;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover,
.search-item.selected {
  background: var(--bg-muted);
}

.search-item-title {
  font-weight: 500;
  color: var(--text-main);
}

.search-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Legend */
.legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.legend-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.legend-item.work {
  background: var(--availability-work-bg);
  color: var(--availability-work-text);
  border: 1px solid var(--availability-work-border);
}

.legend-item.shoulder {
  background: var(--availability-shoulder-bg);
  color: var(--availability-shoulder-text);
  border: 1px solid var(--availability-shoulder-border);
}

.legend-item.sleep {
  background: var(--availability-sleep-bg);
  color: var(--availability-sleep-text);
  border: 1px solid var(--availability-sleep-border);
}

.legend-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Split Workspace: 60% Left Timeline, 40% Right Workspace / Scroll Area */
.split-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.timeline-column {
  width: 60%;
  flex: 0 0 60%;
  min-width: 0;
}

.sidebar-column {
  width: 40%;
  flex: 0 0 40%;
  min-width: 0;
}

/* Vertical Timeline Viewport Window */
.timeline-viewport {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  height: 560px;
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  scroll-behavior: smooth;
}

/* Canvas containing all columns */
.timeline-canvas {
  position: relative;
  display: grid;
  width: max-content;
  min-width: 100%;
}

/* Sticky Headers */
.timeline-header-row {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  background: var(--bg);
  border-bottom: 2px solid var(--border-strong);
}

.city-header-cell {
  flex: 1;
  min-width: var(--city-col-min-width);
  background: var(--bg-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.city-header-cell.is-home {
  background: #ffffff;
  border-top: 3px solid var(--border-dark);
}

.city-header-cell:last-child {
  border-right: none;
}

/* Row 1: Star, Offset, Delete */
.city-head-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.city-head-diff {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
  flex: 1;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.icon-spacer {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Row 2: City Name */
.city-head-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  overflow: hidden;
}

.city-head-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.home-badge {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 3px;
  border-radius: 2px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Row 3: Current Local Time */
.city-head-time-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 1px 0;
}

.city-head-time {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Row 4: Subtitle / Country */
.city-head-sub-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.city-head-tz {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* Timeline Content Rows */
.timeline-body {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hour-row {
  display: flex;
  height: var(--hour-height);
  min-height: var(--hour-height);
  border-bottom: 1px solid var(--border-subtle);
}

.hour-row:last-child {
  border-bottom: none;
}

/* City Hour Cell */
.city-slot-cell {
  flex: 1;
  min-width: var(--city-col-min-width);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  position: relative;
}

.city-slot-cell:last-child {
  border-right: none;
}

/* Hour Text Availability Badge (Good / OK / Bad) */
.slot-time-text {
  position: relative;
  z-index: 5;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: pre;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.slot-time-text.is-work,
.city-slot-cell.is-work .slot-time-text {
  background: var(--availability-work-bg);
  color: var(--availability-work-text);
  border: 1px solid var(--availability-work-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.slot-time-text.is-shoulder,
.city-slot-cell.is-shoulder .slot-time-text {
  background: var(--availability-shoulder-bg);
  color: var(--availability-shoulder-text);
  border: 1px solid var(--availability-shoulder-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.slot-time-text.is-sleep,
.city-slot-cell.is-sleep .slot-time-text {
  background: var(--availability-sleep-bg);
  color: var(--availability-sleep-text);
  border: 1px solid var(--availability-sleep-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.slot-day-diff {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  font-size: 0.60rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
}

.slot-day-diff.next-day {
  background: #fef08a;
  color: #854d0e;
}

.slot-day-diff.prev-day {
  background: #fed7aa;
  color: #9a3412;
}

/* Vertical Scrubber Overlay */
.timeline-scrubber-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 35;
}

.scrubber-box {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--scrubber-bg);
  border: 2px solid var(--scrubber-border);
  border-radius: 4px;
  pointer-events: auto;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.scrubber-box:active {
  cursor: grabbing;
}

/* Current Time Marker (Horizontal Indicator) */
.current-time-marker {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  z-index: 36;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  transition: top 0.3s ease;
}

.current-time-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.55);
  border-radius: 1.5px;
  z-index: 1;
}

.current-time-badge {
  position: sticky;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.current-time-badge:hover {
  background: #dc2626;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.current-time-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse-current-time 2s infinite ease-in-out;
}

@keyframes pulse-current-time {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

/* Summary Card */
.summary-card {
  margin-top: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.summary-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.summary-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-header-title h2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
}

.score-badge.optimal {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.score-badge.fair {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde047;
}

.score-badge.poor {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-list {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.summary-item {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-item.is-sleep {
  border-color: #fca5a5;
  background: #fef2f2;
}

.summary-item.is-sleep .summary-day-status {
  color: #b91c1c;
  font-weight: 700;
}

.summary-city {
  display: flex;
  flex-direction: column;
}

.summary-city-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.summary-city-tz {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.summary-times {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.summary-time-range {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.summary-day-status {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--border-dark);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile & Small Screen Tweaks: Keeps 60% Left, 40% Right */
@media (max-width: 768px) {
  :root {
    --hour-height: 44px;
    --city-col-min-width: 80px;
  }

  .slot-day-diff {
    font-size: 0.56rem;
    padding: 1px 3px;
    right: 3px;
  }

  .city-head-time {
    font-size: 0.68rem;
  }

  .app-container {
    padding: 10px;
  }

  .split-layout {
    gap: 8px;
  }

  .timeline-column {
    width: 60%;
    flex: 0 0 60%;
  }

  .sidebar-column {
    width: 40%;
    flex: 0 0 40%;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .summary-header {
    padding: 8px 10px;
  }

  .summary-header-title h2 {
    font-size: 0.82rem;
  }

  .summary-actions {
    width: 100%;
    gap: 4px;
  }

  .summary-actions .btn {
    flex: 1;
    font-size: 0.72rem;
    padding: 4px 6px;
    justify-content: center;
  }

  .summary-list {
    padding: 8px;
    gap: 6px;
  }

  .summary-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
    gap: 4px;
  }

  .summary-times {
    align-items: flex-start;
    text-align: left;
  }
}
