/* ============================================
   Time Tracker - Monochrome Theme
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #0d0d0d;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --surface-active: #1f1f1f;
  --border: #262626;
  --border-focus: #404040;
  --text: #fafafa;
  --muted: #737373;
  --dim: #525252;
  --accent: #a3a3a3;
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.15);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --glow: rgba(250, 250, 250, 0.06);

  --font-mono: 'JetBrains Mono', monospace;
  --transition: 180ms ease;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 2px var(--border-focus);
}

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

html {
  font-size: 12px;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Screens */
.screen {
  min-height: 100vh;
}

.screen.hidden {
  display: none;
}

/* Login Screen */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-container h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.google-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.google-btn:hover {
  background: var(--surface-hover);
  border-color: var(--muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.google-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--text);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info span {
  color: var(--muted);
  font-size: 0.8rem;
}

.logout-btn {
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.logout-btn:hover {
  border-color: var(--muted);
  color: var(--text);
}

.logout-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Timer Section */
.timer-section {
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--border);
}

.timer-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.timer-task {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.timer-task .timer-input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 120px;
}

.timer-task .timer-select {
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  min-width: 140px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border-left: 1px solid var(--border);
}

.timer-controls .timer-display {
  border-radius: 0;
  min-width: 100px;
}

.timer-controls .timer-btn {
  border-radius: 0;
}

.timer-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.timer-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}

.timer-input::placeholder {
  color: var(--dim);
}

.timer-select {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 150px;
}

.timer-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.timer-display {
  font-size: 1.35rem;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  color: var(--muted);
  padding: 0 1rem;
}

.timer-display.running {
  color: var(--success);
  text-shadow: 0 0 20px var(--success-soft);
}

.timer-btn {
  padding: 0.75rem 1.5rem;
  background: var(--text);
  border: none;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.timer-btn:hover {
  opacity: 0.92;
  background: #e5e5e5;
}

.timer-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--bg);
}

.timer-btn.running {
  background: var(--danger);
  color: var(--text);
  box-shadow: 0 0 24px var(--danger-soft);
}

.timer-btn.running:hover {
  background: #ef4444;
  opacity: 1;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  background: var(--bg-elevated);
  gap: 0.25rem;
}

.tab {
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab:hover {
  color: var(--text);
  background: var(--glow);
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
  background: transparent;
}

.tab:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Content */
.content {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Week View */
.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.week-nav-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.week-nav {
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.week-nav:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--surface-hover);
}

.week-nav:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.week-range {
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 140px;
  text-align: center;
  padding: 0 0.5rem;
  letter-spacing: 0.01em;
}

.week-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.today-btn {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.today-btn:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--surface-hover);
}

.week-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.week-days {
  display: grid;
  grid-template-columns: 80px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.day-header {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.day-header:first-child {
  background: var(--bg);
}

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

.day-header .day-num {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.day-header .day-name {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.day-header .day-total {
  font-size: 0.65rem;
  color: var(--dim);
  margin-top: 0.2rem;
}

.day-header.today {
  background: var(--glow);
}

.day-header.today .day-num {
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--border);
}

/* Timeline wrapper: labels + scrollable grid */
.timeline-wrapper {
  display: flex;
  height: calc(100vh - 320px);
  min-height: 400px;
  max-height: 800px;
  overflow: hidden;
}

/* Single scroll container so time labels and grid scroll together */
.timeline-scroll {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scroll-behavior: smooth;
}

/* Subtle scrollbar for timeline */
.timeline-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: var(--bg);
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.timeline-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--dim);
}

.time-labels {
  width: 80px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding-top: 0.5rem;
  min-width: 80px;
}

.time-label {
  height: 60px;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  color: var(--dim);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateY(-0.4em);
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}

.timeline-container {
  flex: 1;
  min-width: 0;
  min-height: min-content;
  padding-top: 0.5rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  position: relative;
  min-height: 1440px; /* 24 * 60px */
}

.timeline-column {
  border-right: 1px solid var(--border);
  position: relative;
  min-height: 1440px;
  min-width: 72px;
}

.timeline-column:last-child {
  border-right: none;
}

.hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

.time-block {
  position: absolute;
  left: 4px;
  right: 4px;
  background: var(--surface-hover);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  font-size: 0.72rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.time-block:hover {
  background: var(--surface-active);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.time-block .block-duration {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.time-block .block-desc {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
  font-size: 0.65rem;
}

/* Current time indicator */
.current-time-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #c084fc, transparent);
  z-index: 10;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.current-time-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -5px;
  width: 12px;
  height: 12px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* Legacy entries list (for other views) */
.entries-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.entry:hover {
  border-color: var(--muted);
  background: var(--surface-hover);
}

.entry-color {
  width: 4px;
  height: 100%;
  min-height: 40px;
  border-radius: 2px;
}

.entry-info {
  flex: 1;
}

.entry-description {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.entry-project {
  font-size: 0.8rem;
  color: var(--muted);
}

.entry-time {
  text-align: right;
}

.entry-duration {
  font-size: 0.9rem;
  font-weight: 500;
}

.entry-range {
  font-size: 0.75rem;
  color: var(--dim);
}

.no-entries {
  color: var(--dim);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 500;
}

.add-btn {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.add-btn:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--surface-hover);
}

.add-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Projects & Tags List */
.projects-list,
.tags-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-item,
.tag-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.project-item:hover,
.tag-item:hover {
  border-color: var(--muted);
  background: var(--surface-hover);
}

.project-color,
.tag-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.project-name,
.tag-name {
  flex: 1;
  font-size: 0.875rem;
}

/* Charts */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.report-section h2 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text);
}

.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  height: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.chart-container.small {
  max-height: 250px;
  height: auto;
  margin-bottom: 1.5rem;
}

.chart-container canvas {
  max-height: 200px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Calendar */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header h2 {
  font-size: 1rem;
  font-weight: 500;
}

.cal-nav {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.cal-nav:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--surface-hover);
}

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

.cal-day-header {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
}

.cal-day {
  padding: 0.75rem;
  min-height: 60px;
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cal-day:hover {
  background: var(--surface);
  border-radius: 2px;
}

.cal-day.other-month {
  color: var(--dim);
}

.cal-day.today {
  background: var(--surface);
}

.cal-day .date {
  font-size: 0.8rem;
}

.cal-day .hours {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.cal-day .indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.day-entries {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.day-entries.hidden {
  display: none;
}

.day-entries h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.modal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.modal-content--form .form-section + .form-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M2 4 L6 8 L10 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-input::placeholder {
  color: var(--dim);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}

.form-color {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.modal-actions > div,
.modal-actions-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text);
  border: none;
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.92;
  background: #e5e5e5;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--surface-hover);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--text);
}

.btn-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--danger-soft);
}

.btn-danger.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .timer-section {
    padding: 1rem;
  }

  .timer-row {
    flex-direction: column;
    border-radius: 4px;
  }

  .timer-task {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
  }

  .timer-task .timer-input {
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .timer-task .timer-select {
    border: none;
    border-left: none;
    border-radius: 0;
    min-width: 0;
  }

  .timer-controls {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: space-between;
  }

  .timer-controls .timer-display {
    flex: 1;
    text-align: left;
    padding-left: 1rem;
  }

  .timer-controls .timer-btn {
    flex-shrink: 0;
  }

  .week-header {
    gap: 0.75rem;
  }

  .week-nav-group {
    flex: 1;
    min-width: 0;
  }

  .week-range {
    min-width: 0;
    font-size: 0.9rem;
  }

  .week-view .week-days {
    grid-template-columns: 80px repeat(7, 72px);
  }

  .timeline-wrapper {
    height: 420px;
  }

  .timeline-grid {
    grid-template-columns: repeat(7, 72px);
  }

  .tabs {
    padding: 0 1rem;
    overflow-x: auto;
  }

  .tab {
    padding: 1rem;
    white-space: nowrap;
  }

  .content {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
