/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:           #0c0d14;
  --surface-1:    #12131f;
  --surface-2:    #1a1b2e;
  --surface-3:    #22243a;
  --border:       #262840;
  --border-light: #2f3150;

  --text-1: #ecedf5;
  --text-2: #9496b8;
  --text-3: #5a5c7a;

  --purple:       #7c3aed;
  --purple-h:     #6d28d9;
  --purple-light: #8b5cf6;
  --purple-faint: rgba(124,58,237,0.12);
  --cyan:         #22d3ee;
  --green:        #10b981;
  --red:          #f87171;
  --yellow:       #fbbf24;
  --pink:         #ec4899;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-purple: 0 4px 24px rgba(124,58,237,0.35);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
[data-theme="light"] {
  --bg:           #f5f5f7;
  --surface-1:    #ffffff;
  --surface-2:    #f0f0f5;
  --surface-3:    #e5e5ed;
  --border:       #dddde8;
  --border-light: #c8c8d8;

  --text-1: #0a0a0a;
  --text-2: #111122;
  --text-3: #444458;

  --purple:       #7c3aed;
  --purple-h:     #6d28d9;
  --purple-light: #7c3aed;
  --purple-faint: rgba(124,58,237,0.08);

  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-purple: 0 4px 20px rgba(124,58,237,0.25);
}

[data-theme="light"] .app-header {
  background: rgba(245,245,247,0.92);
}

[data-theme="light"] .nav {
  background: rgba(245,245,247,0.92);
}

[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,0.35);
}

[data-theme="light"] .wday-add-form input:focus,
[data-theme="light"] .list-card-add-form input:focus {
  background: var(--surface-3);
}

[data-theme="light"] .wday-header {
  background: #e5e5e5;
}

[data-theme="light"] .wday-task {
  background: #ffffff;
}

[data-theme="light"] .wday-task:hover {
  background: #f5f5f7;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 700px;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { background: var(--purple-h); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-light);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--text-3); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--text-1); background: var(--surface-2); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.825rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-icon:hover { color: var(--text-1); background: var(--surface-3); }
.btn-icon-danger:hover { color: var(--red); background: rgba(248,113,113,0.1); }

/* ============================================================
   FORMS
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 0.925rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-faint);
}

.field input::placeholder { color: var(--text-3); }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-error {
  background: rgba(248,113,113,0.1);
  border-color: rgba(248,113,113,0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
  color: #6ee7b7;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,13,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(38,40,64,0.6);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links { display: flex; align-items: center; gap: 0.75rem; }

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--purple-light);
  font-size: 0.7em;
}

/* ============================================================
   LANDING — HERO
   ============================================================ */
.landing { overflow-x: hidden; }

.hero {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  bottom: 0; right: 10%;
  background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--purple-faint);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 6px var(--purple-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* APP MOCKUP */
.mockup {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,0.1);
  overflow: hidden;
  text-align: left;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.mockup-url {
  margin-left: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.mockup-body {
  display: flex;
  height: 260px;
}

.mockup-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 1rem;
}

.mockup-logo {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}

.mockup-nav-item {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.2rem;
  cursor: default;
}

.mockup-nav-active {
  background: var(--purple-faint);
  color: var(--purple-light);
}

.mockup-main {
  flex: 1;
  padding: 1.25rem;
  overflow: hidden;
}

.mockup-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 1rem;
}

.mockup-cards { display: flex; flex-direction: column; gap: 0.6rem; }

.mockup-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mockup-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-card-title { font-size: 0.78rem; font-weight: 500; color: var(--text-1); }
.mockup-card-count { font-size: 0.68rem; color: var(--text-3); margin-top: 1px; }

/* ============================================================
   LANDING — FEATURES
   ============================================================ */
.features {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.feature-icon-purple { background: rgba(124,58,237,0.15); color: #a78bfa; }
.feature-icon-cyan   { background: rgba(34,211,238,0.12); color: var(--cyan); }
.feature-icon-green  { background: rgba(16,185,129,0.12); color: var(--green); }
.feature-icon-yellow { background: rgba(251,191,36,0.12); color: var(--yellow); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-1);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   LANDING — HOW IT WORKS
   ============================================================ */
.how {
  padding: 6rem 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-3);
  margin-top: 1.2rem;
  flex-shrink: 0;
}

/* ============================================================
   LANDING — CTA
   ============================================================ */
.cta-section { padding: 6rem 0; }

.cta-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  color: var(--text-2);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.825rem; color: var(--text-3); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(34,211,238,0.05) 0%, transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2rem;
}

.auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
}

.auth-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.auth-form { margin-top: 0.5rem; }

.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--purple-light);
  font-weight: 500;
}
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   APP SHELL (dashboard + list view)
   ============================================================ */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12,13,20,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.app-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.hide-done .wday-task-done,
body.hide-done .item-done,
body.hide-done .list-card-item-done { display: none; }

.theme-toggle-btn {
  color: var(--text-2);
}
.theme-toggle-btn:hover {
  color: var(--purple-light);
  background: var(--surface-2);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--purple-faint);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ============================================================
   USER MENU DROPDOWN
   ============================================================ */
.user-menu { position: relative; }

.user-menu-trigger {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.user-menu-trigger:hover { background: var(--surface-2); }

.user-menu-caret {
  opacity: 0.5;
  transition: transform 0.15s;
}
.user-menu-trigger[aria-expanded="true"] .user-menu-caret { transform: rotate(180deg); }

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 200;
  overflow: hidden;
}
.user-menu-dropdown.open { display: block; }

.user-menu-item {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.user-menu-item:hover { background: var(--surface-2); color: var(--text-1); }
.user-menu-item-active { color: var(--purple-light); font-weight: 500; }
.user-menu-item-btn { font-family: inherit; }

/* ============================================================
   PROFILE PAGE — CARD + FORM
   ============================================================ */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-header {
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--text-2); }
.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--purple);
}
.form-input option { background: var(--surface-1); }

.app-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

/* ============================================================
   LIST GRID (dashboard)
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.list-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.list-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.list-card[draggable="true"] { cursor: grab; }
.list-card[draggable="true"]:active { cursor: grabbing; }
.list-card-dragging { opacity: 0.4; }
.list-card-drop-before { box-shadow: -3px 0 0 var(--purple); }
.list-card-drop-after  { box-shadow:  3px 0 0 var(--purple); }

.list-card-drag-handle {
  color: var(--text-3);
  opacity: 0.4;
  cursor: grab;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.list-card:hover .list-card-drag-handle { opacity: 1; }

.list-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.list-card-color {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.list-card-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-card-title:hover { color: var(--purple-light); }

.list-card-delete-form { flex-shrink: 0; }

.list-card-link { display: block; }

/* Inline items inside unbound list cards */
.list-card-items {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.list-card-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-1);
  cursor: default;
}
.list-card-item:hover { background: var(--surface-2); }
.list-card-item:hover .drag-handle { opacity: 1; }
.list-card-item:hover .list-card-del-btn { opacity: 1; }

.list-card-item-done .list-card-item-text {
  text-decoration: line-through;
  color: var(--text-3);
}

.list-card-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-card-toggle-form { flex-shrink: 0; }
.list-card-del-form { flex-shrink: 0; margin-left: auto; }
.list-card-del-btn { opacity: 0; }

.list-card-add-form {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.25rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.list-card-add-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 0.82rem;
  font-family: var(--font);
  padding: 0.2rem 0.3rem;
}
.list-card-add-form input::placeholder { color: var(--text-3); }
.list-card-add-form input:focus { background: var(--surface-2); border-radius: var(--radius-sm); }

.list-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  text-decoration: none;
}
.list-card-footer .progress-bar { flex: 1; margin: 0; }
.list-card-footer-label {
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.list-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

.stat-done { color: var(--green); }

.progress-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-wide { margin-top: 0.5rem; }

.progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
  min-width: 4px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 1rem;
}

.empty-state-sm { padding: 3rem 2rem; }

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.empty-state h3 { font-size: 1.1rem; font-weight: 600; }
.empty-state p { font-size: 0.875rem; color: var(--text-2); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.15s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h2 { font-size: 1.2rem; font-weight: 600; }

.modal-form .field { margin-bottom: 1.25rem; }
.modal-form .field input { width: 100%; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* COLOR PICKER */
.color-picker {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.color-swatch input { display: none; }

.color-swatch span {
  display: block;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.color-swatch input:checked + span {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.color-swatch span:hover { transform: scale(1.1); }

/* ============================================================
   LIST VIEW
   ============================================================ */
.list-view-header { margin-bottom: 2rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.825rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text-1); }

.list-view-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.list-color-badge {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.list-view-meta {
  font-size: 0.825rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ADD ITEM FORM */
.add-item-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.add-item-form input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.add-item-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-faint);
}

.add-item-form input::placeholder { color: var(--text-3); }

/* ITEM LIST */
.item-list { display: flex; flex-direction: column; gap: 0.5rem; }

.item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.9rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.item:hover { border-color: var(--border-light); }
.item:hover .task-row-actions,
.item.editing .task-row-actions { opacity: 1; }

.item-done { opacity: 0.6; }

.item-toggle-form { flex-shrink: 0; }

.item-checkbox {
  width: 20px; height: 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: #fff;
  flex-shrink: 0;
}

.item-checkbox:hover { border-color: var(--purple); }

.item-checkbox-checked {
  background: var(--purple);
  border-color: var(--purple);
}

.item-checkbox-locked { cursor: default; pointer-events: none; }

.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.wday-task:hover .edit-btn,
.item:hover .edit-btn { opacity: 1; }
.edit-btn:hover { color: var(--text-1); background: var(--surface-3); }

.edit-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--purple);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: inherit;
  font-family: var(--font);
  padding: 0.1rem 0.4rem;
  outline: none;
  box-shadow: 0 0 0 2px var(--purple-faint);
}

.item-content {
  flex: 1;
  min-width: 0;
  font-size: 0.925rem;
  color: var(--text-1);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-done .item-content {
  text-decoration: line-through;
  color: var(--text-3);
}

.item-delete-form { flex-shrink: 0; }

.item-delete { opacity: 0.35; transition: opacity 0.15s; }
.item:hover .item-delete { opacity: 1; }

/* ============================================================
   SECTION HEADERS (dashboard)
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================================
   WEEK CALENDAR — 7 columns, tasks inside each
   ============================================================ */
.week-cal-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.week-cal {
  display: flex;
  align-items: stretch;
  min-height: 420px;
}

/* One day column */
.wday {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 120px;
}
/* Today is 50% wider than other days by default */
.wday-today { flex: 1.5 1.5 0; }
/* JS sets explicit px widths after user resizes; lock flex once set */
.wday[style*="width"] { flex: 0 0 auto; }

/* Column resize handle */
.col-resizer {
  flex: 0 0 4px;
  width: 4px;
  background: var(--border);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s;
}
.col-resizer:hover,
.col-resizer.resizing { background: var(--purple); }

/* Today accent: top colour bar */
.wday-today { background: rgba(124,58,237,0.03); }
.wday-today .wday-header { border-top: 3px solid var(--purple); }

/* Column header */
.wday-header {
  padding: 0.75rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
  flex-shrink: 0;
}

.wday-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wday-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.focus-day-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--purple-light);
  background: var(--purple-faint);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  padding: 0.15rem 0.5rem 0.15rem 0.6rem;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.focus-day-btn:hover { background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.4); color: var(--text-1); }

.wday-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.wday-date {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-3);
}

.wday-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
}

.wday-today-pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--purple-light);
  background: var(--purple-faint);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  width: fit-content;
}

.wday-count {
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

/* Task list — grows to fill column */
.wday-tasks {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0;
  overflow-y: auto;
}

/* Individual task */
.wday-task {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.5rem;
  margin: 0.2rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.1s, border-color 0.1s;
}
.wday-task:hover { background: var(--surface-2); border-color: var(--border-light); }

.task-row-main {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.task-row-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.1s;
}
.wday-task:hover .task-row-actions,
.wday-task.editing .task-row-actions { opacity: 1; }

.wday-task-done .wday-task-text {
  text-decoration: line-through;
  color: var(--text-3);
}

.wday-toggle-form { flex-shrink: 0; }

.wday-task-text {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--text-1);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-edit-bar {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.3rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--border);
}
.task-edit-bar .cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  font-family: var(--font);
  cursor: pointer;
  width: auto;
  height: auto;
  opacity: 1;
  transition: border-color 0.15s, background 0.15s;
}
.task-edit-bar .cat-btn:hover { border-color: var(--text-3); background: var(--surface-3); }

.wday-del-form { flex-shrink: 0; }

.wday-del-btn {
  opacity: 0.35;
  transition: opacity 0.1s;
  width: 1.4rem;
  height: 1.4rem;
}
.wday-task:hover .wday-del-btn { opacity: 1; }

/* Add-task input pinned to column bottom */
.wday-add-form {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto;
}

.wday-add-form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 0.8rem;
  font-family: var(--font);
}
.wday-add-form input::placeholder { color: var(--text-3); }
.wday-add-form input:focus { background: var(--surface-2); }

.wday-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
}
.wday-add-btn:hover { color: var(--purple-light); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem 0.3rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-1);
}

.cat-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-chip-name { font-weight: 500; }

.cat-chip-del-form { display: flex; }
.cat-chip-del {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 0; margin-left: 2px;
  opacity: 0; transition: opacity 0.15s, color 0.15s;
  line-height: 1;
}
.cat-chip:hover .cat-chip-del { opacity: 1; }
.cat-chip-del:hover { color: var(--red); }

/* Category dot button on task rows */
.cat-btn {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.wday-task:hover .cat-btn,
.list-card-item:hover .cat-btn,
.item:hover .cat-btn { opacity: 0.7; }
.cat-btn-set { opacity: 1 !important; border-width: 0; }
.cat-btn:hover { transform: scale(1.3); opacity: 1 !important; }

/* Category picker popover */
.cat-picker {
  position: absolute;
  z-index: 1000;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  min-width: 140px;
  display: none;
}
.cat-picker.open { display: flex; flex-direction: column; gap: 1px; }

.cat-picker-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.35rem 0.6rem 0.15rem;
  pointer-events: none;
}
.cat-picker-active { background: var(--surface-3); font-weight: 600; }

.cat-picker-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.cat-picker-opt:hover { background: var(--surface-3); }
.cat-picker-none { color: var(--text-3); font-style: italic; }

.cat-picker-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   PRIORITY
   ============================================================ */
.wday-task[data-priority="urgent"] .wday-task-text,
.item[data-priority="urgent"] .item-content,
.list-card-item[data-priority="urgent"] .list-card-item-text {
  font-size: 1.35em;
}
.wday-task[data-priority="unimportant"] .wday-task-text,
.item[data-priority="unimportant"] .item-content,
.list-card-item[data-priority="unimportant"] .list-card-item-text {
  font-size: 0.65em;
}

/* ============================================================
   DRAG AND DROP
   ============================================================ */
.drag-handle {
  display: flex;
  align-items: center;
  color: var(--text-3);
  cursor: grab;
  padding: 0 2px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.wday-task:hover .drag-handle,
.item:hover .drag-handle { opacity: 1; }
.drag-handle:active { cursor: grabbing; }

.drag-ghost { opacity: 0.35; }

.drop-indicator {
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  margin: 2px 6px;
  pointer-events: none;
  list-style: none;
}

.wday.drop-active { background: rgba(124,58,237,0.06); }
.wday.drop-active .wday-add-form { border-color: var(--purple-light); }

.list-card.drop-active {
  border: 2px solid var(--purple);
  background: rgba(124,58,237,0.08);
}
.list-card { border: 2px solid transparent; transition: border-color 0.15s, background 0.15s; }

.item-list.drop-active { background: rgba(124,58,237,0.04); border-radius: var(--radius); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   BREAK ITEMS
   ============================================================ */
.wday-task-break {
  background: var(--green) !important;
  border: none !important;
  border-radius: 2px;
  opacity: 0.5;
  height: 8px;
  min-height: 0;
  padding: 0;
  margin: 0.3rem 0.5rem;
  position: relative;
  overflow: visible;
}
.wday-task-break:hover { background: var(--green) !important; border-color: transparent !important; opacity: 0.75; }
.wday-task-break .drag-handle,
.wday-task-break .wday-break-label { display: none; }
.wday-task-break .wday-del-form {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.wday-task-break:hover .wday-del-form { display: block; }
.wday-task-break .wday-break-del { height: 1rem; width: 1rem; font-size: 0.65rem; }

.wday-break-label {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.wday-break-del {
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.wday-task-break:hover .wday-break-del { opacity: 1; }
.wday-break-del:hover { color: #fff !important; background: rgba(255,255,255,0.15) !important; }

.wday-add-break-form { flex-shrink: 0; }

.wday-add-break-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 1px dashed rgba(16,185,129,0.35);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.wday-add-break-btn:hover { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.6); }

.add-break-btn-wide { padding: 0.45rem 0.75rem; font-size: 0.825rem; }
.add-break-form { margin-bottom: 0.75rem; }

.item-break {
  background: var(--green) !important;
  border-radius: var(--radius-sm);
  opacity: 0.85;
  flex-direction: row;
  align-items: center;
  padding: 0.047rem 0.9rem;
  min-height: 0;
}
.item-break .drag-handle { color: rgba(255,255,255,0.5); opacity: 1; }
.item-break:hover .drag-handle { color: rgba(255,255,255,0.8); }

.item-break-label {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.item-break-del {
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.item-break:hover .item-break-del { opacity: 1; }
.item-break-del:hover { color: #fff !important; background: rgba(255,255,255,0.15) !important; }

/* ============================================================
   ADD-TASK CATEGORY BUTTON
   ============================================================ */
.add-cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.add-cat-btn:hover { border-color: var(--border-light); color: var(--text-2); background: var(--surface-2); }
.add-cat-btn.has-cat { background: var(--surface-2); }

.add-cat-btn-wide { width: 2.25rem; height: 2.25rem; }

.add-cat-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   DATE BAR
   ============================================================ */
.date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.date-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-bar-date {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}

.date-bar-workday {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--purple-light);
  background: var(--purple-faint);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.date-bar-weekend {
  color: var(--text-3);
  background: var(--surface-3);
}

.date-bar-carry {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero { padding: 5rem 0 3rem; }
  .hero-heading { font-size: 2.75rem; }
  .mockup-sidebar { display: none; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .section-heading { margin-bottom: 2rem; }
  .features, .how, .cta-section { padding: 4rem 0; }
  .list-grid { grid-template-columns: 1fr; }
  .add-item-form { flex-direction: column; }
  .modal { padding: 1.5rem; }
  .wday { grid-template-columns: 90px 1fr; }
  .wday-name { font-size: 0.8rem; }
}
