/* ============================================================
   Remi — Design System
   Mobile-first PWA • Things 3 / Todoist inspired
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-surface-hover: #f2f1ee;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-tertiary: #9a9a9a;
  --color-border: #e8e7e4;
  --color-border-light: #f0efec;

  /* Accent */
  --color-primary: #4a6cf7;
  --color-primary-light: #eef1fe;
  --color-primary-dark: #3a56d4;

  /* Status */
  --color-overdue: #e54d42;
  --color-overdue-bg: #fef2f1;
  --color-due-today: #f5a623;
  --color-due-today-bg: #fef8ee;
  --color-done: #2ecc71;
  --color-done-bg: #eefbf3;
  --color-snoozed: #9b59b6;
  --color-snoozed-bg: #f5eef8;

  /* Owners */
  --color-akshay: #4a6cf7;
  --color-ishita: #e57cd8;

  /* Layout */
  --nav-height: 64px;
  --fab-size: 56px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-fab: 0 4px 12px rgba(74, 108, 247, 0.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Safe areas for notch / home indicator */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 600; }

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   Login Page
   ============================================================ */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.login-logo p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

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

.btn-danger {
  background: var(--color-overdue);
  color: #fff;
}

.btn-danger:hover {
  background: #d13b30;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 0.15s var(--ease-out);
}

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

.login-error {
  background: var(--color-overdue-bg);
  color: var(--color-overdue);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  text-align: center;
}

/* ============================================================
   App Shell
   ============================================================ */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* --- Top Header --- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 12px 20px;
  padding-top: calc(12px + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-header h1 {
  font-size: 1.375rem;
}

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

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  padding: 16px 16px;
  padding-bottom: calc(var(--nav-height) + var(--fab-size) + 24px);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  margin-top: 24px;
}

.section-header:first-child {
  margin-top: 8px;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
}

.section-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  background: var(--color-border-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ============================================================
   Reminder Cards
   ============================================================ */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  cursor: pointer;
}

.card:active {
  transform: scale(0.985);
}

/* Swipe container */
.card-swipe {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.card-swipe-action {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.card-swipe-action.done {
  left: 0;
  background: var(--color-done);
}

.card-swipe-action.snooze {
  right: 0;
  background: var(--color-snoozed);
}

.card-inner {
  background: var(--color-surface);
  position: relative;
  z-index: 1;
  transition: transform 0.25s var(--ease-out);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--color-border-light);
}

/* Overdue styling */
.card.overdue,
.card-inner.overdue {
  border-left: 3px solid var(--color-overdue);
}

.card.due-today,
.card-inner.due-today {
  border-left: 3px solid var(--color-due-today);
}

/* Card layout */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  flex: 1;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-snooze {
  background: var(--color-snoozed-bg);
  color: var(--color-snoozed);
}

.badge-recurring {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.card-due {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-due.overdue {
  color: var(--color-overdue);
  font-weight: 600;
}

.card-due.today {
  color: var(--color-due-today);
  font-weight: 600;
}

.card-owner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.owner-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.owner-dot.akshay { background: var(--color-akshay); }
.owner-dot.ishita { background: var(--color-ishita); }

/* Card description preview */
.card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Note Cards
   ============================================================ */
.note-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.note-card:active {
  transform: scale(0.985);
}

.note-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.note-preview {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-date {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 6px;
}

/* ============================================================
   Bottom Navigation
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--nav-height) + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--color-text-tertiary);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item:hover {
  color: var(--color-text-secondary);
}

.nav-item.active:hover {
  color: var(--color-primary);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  fill: none;
  stroke: currentColor;
}

/* ============================================================
   Floating Action Button
   ============================================================ */
.fab {
  position: fixed;
  right: 20px;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  z-index: 150;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-fab);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

.fab:active {
  transform: scale(0.92);
}

.fab.open {
  transform: rotate(45deg);
}

.fab svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* FAB Menu */
.fab-menu {
  position: fixed;
  right: 20px;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--fab-size) + 28px);
  z-index: 149;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.fab-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.fab-option-label {
  background: var(--color-surface);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.fab-option-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.fab-option-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* FAB backdrop */
.fab-backdrop {
  position: fixed;
  inset: 0;
  z-index: 148;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
}

.fab-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-tertiary);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 0.875rem;
}

/* ============================================================
   Modal / Bottom Sheet
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Form within modals */
.modal-sheet .form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * {
  flex: 1;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--color-text);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

/* ============================================================
   Archive & Stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-number.akshay { color: var(--color-akshay); }
.stat-number.ishita { color: var(--color-ishita); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.stat-period {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  margin-top: 24px;
}

.stat-period:first-of-type {
  margin-top: 8px;
}

/* ============================================================
   Snooze Picker
   ============================================================ */
.snooze-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.snooze-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--color-text);
}

.snooze-option:hover {
  background: var(--color-surface-hover);
}

.snooze-option-icon {
  color: var(--color-snoozed);
  font-size: 1.125rem;
}

.snooze-option-text {
  font-size: 0.9375rem;
  font-weight: 500;
}

.snooze-option-date {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ============================================================
   Confirmation Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 400;
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================================
   Detail View
   ============================================================ */
.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background 0.15s;
  text-decoration: none;
}

.back-btn:hover {
  background: var(--color-surface-hover);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.detail-title {
  font-size: 1.375rem;
  font-weight: 700;
}

.detail-body {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.detail-field {
  margin-bottom: 16px;
}

.detail-field:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.detail-actions .btn {
  flex: 1;
}

/* ============================================================
   Tab Bar (within Work/Home)
   ============================================================ */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border-light);
}

.tab-item {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.tab-item.active {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   Responsive — larger screens
   ============================================================ */
@media (min-width: 768px) {
  .main-content {
    padding: 24px;
    padding-bottom: calc(var(--nav-height) + var(--fab-size) + 32px);
  }

  .modal-sheet {
    border-radius: var(--radius-lg);
    max-width: 480px;
    margin-bottom: 20px;
  }

  .modal-overlay {
    align-items: center;
    justify-content: center;
  }

  .modal-overlay.open .modal-sheet {
    transform: translateY(0);
  }
}
