/* ═══════════════════════════════════════════
   Daily Rhythm — Complete Stylesheet
   Warm, minimal, routine-focused design
   ═══════════════════════════════════════════ */

/* ═══ VARIABLES ═══ */
:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #2D3142;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E8E4DF;
  --primary: #b5a07a;
  --primary-light: #F3E8E0;
  --primary-dark: #96845f;
  --green: #4a7c59;
  --green-light: #E8F5EE;
  --red: #D4645C;
  --red-light: #FDE8E6;
  --purple: #7C6FA0;
  --purple-light: #F0ECF5;
  --orange: #D4874D;
  --orange-light: #FDF0E6;
  --blue: #5B8DB8;
  --blue-light: #E8F0F8;
  --nav-height: 72px;
  --header-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 24px;
}

/* ═══ RESET ═══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ═══ APP SHELL ═══ */
#app {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  background: var(--bg);
  z-index: 1;
}

.screen.active {
  display: flex;
}

/* ═══ ONBOARDING ═══ */
#screen-onboarding {
  justify-content: center;
  align-items: center;
}

.onboarding-container {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  text-align: center;
}

.onboarding-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.onboarding-step.active {
  display: flex;
}

.onboarding-logo {
  margin-bottom: 8px;
}

.logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.onboarding-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.onboarding-container h2 {
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ═══ PILLAR GRID (onboarding) ═══ */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 16px 0;
}

.pillar-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.pillar-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pillar-card .pillar-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.pillar-card .pillar-label {
  font-size: 13px;
  font-weight: 500;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:active {
  transform: scale(0.97);
  background: var(--primary-dark);
}

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s;
  margin-right: 8px;
  margin-bottom: 8px;
}

.btn-outline:active {
  background: var(--primary-light);
}

.btn-outline.btn-danger {
  color: var(--red);
  border-color: var(--red);
}

.btn-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.btn-link {
  display: block;
  color: var(--primary);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 0;
  text-align: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.icon-btn:active {
  background: var(--primary-light);
}

/* ═══ FORM ELEMENTS ═══ */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.3s;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
  background: var(--green);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row span {
  font-size: 15px;
}

.toggle-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* ═══ HEADER ═══ */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  height: var(--header-height);
  flex-shrink: 0;
}

.header-logo {
  color: var(--primary);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  padding-left: 12px;
}

.header-center h2 {
  font-size: 20px;
  font-weight: 700;
}

.view-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 30px 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

/* ═══ TAB CONTENT ═══ */
.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.tab-content.active {
  display: flex;
}

.tab-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* ═══ BOTTOM NAVIGATION ═══ */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--nav-height);
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  transition: color 0.2s;
}

.nav-fab {
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 158, 111, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: -16px;
}

.nav-fab:active {
  transform: scale(0.9);
}

/* ═══ PRESENT MOMENT TAB ═══ */
.present-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.greeting {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 2px;
}

.present-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.current-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.block-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.block-name {
  font-size: 15px;
  font-weight: 600;
}

.block-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.block-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
}

.block-toggle svg {
  transition: transform 0.2s ease;
}
.block-toggle.expanded svg {
  transform: rotate(90deg);
}
.routine-block .block-tasks.collapsed {
  display: none;
}

.task-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.task-checkbox.checked {
  background: var(--green);
  border-color: var(--green);
}

.task-checkbox.checked::after {
  content: '';
  width: 8px;
  height: 5px;
  border: 2px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.task-check-label {
  font-size: 14px;
}

.task-check-label.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Next Up */
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.next-up-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ═══ TODAY TAB ═══ */
.today-rhythm-layout {
  display: flex;
  gap: 0;
  position: relative;
  min-height: 100%;
}

.timeline-bar {
  width: 28px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}

.timeline-gradient {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    #1a1040 0%,
    #2d1b69 6%,
    #5a2d82 14%,
    #8b3a8a 22%,
    #c4567a 30%,
    #e8855f 40%,
    #f5a623 48%,
    #ffd460 55%,
    #f5a623 62%,
    #e8855f 70%,
    #c4567a 78%,
    #8b3a8a 86%,
    #5a2d82 92%,
    #1a1040 100%
  );
  z-index: 0;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  background: none;
  border-radius: 50%;
  padding: 0;
}

.timeline-icon.icon-moon-top { top: 2px; }
.timeline-icon.icon-sun { color: #f5a623; }
.timeline-icon.icon-moon-bot { bottom: 2px; }

.timeline-now-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f5a623;
  box-shadow: 0 0 6px rgba(245, 166, 35, 0.4);
  z-index: 3;
}

.today-blocks-col {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
}

.today-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.routine-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.routine-block .block-header {
  margin-bottom: 8px;
}

.routine-block .block-tasks {
  padding-left: 0;
}

.unfinished-section {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.unfinished-section h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ═══ CALENDAR TAB ═══ */
.cal-tabs {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.cal-tab {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.cal-tab.active {
  background: var(--primary);
  color: white;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav h3 {
  font-size: 16px;
  font-weight: 600;
}

.cal-day-view {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left: 3px solid var(--primary);
}

.cal-event-time {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 90px;
}

.cal-event-name {
  font-size: 14px;
  font-weight: 500;
}

/* ═══ CALENDAR WEEK VIEW ═══ */
.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-week-day {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  min-height: 120px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1.5px solid var(--border);
}

.cal-week-day:hover {
  background: var(--primary-light);
}

.cal-week-day.today {
  border-color: var(--primary);
  background: var(--primary-light);
}

.cal-week-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.cal-week-day-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-week-day-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-week-day-num.today {
  background: var(--primary);
  color: white;
}

.cal-week-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-week-event {
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cal-week-event-name {
  font-weight: 500;
}

.cal-week-empty {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  display: block;
  padding: 4px 0;
}

/* ═══ CALENDAR MONTH VIEW ═══ */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-month-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 8px 4px;
}

.cal-month-cell {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  min-height: 48px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.cal-month-cell:hover {
  background: var(--primary-light);
}

.cal-month-cell.today {
  border-color: var(--primary);
  background: var(--primary-light);
}

.cal-month-cell.other-month {
  opacity: 0.35;
}

.cal-month-day-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-month-cell.today .cal-month-day-num {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.cal-month-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.cal-month-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══ MORE TAB ═══ */
.more-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.menu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-text strong {
  font-size: 15px;
  font-weight: 600;
}

.menu-text small {
  font-size: 13px;
  color: var(--text-secondary);
}

.menu-chevron {
  color: var(--text-muted);
}

/* ═══ SUB-PAGES ═══ */
.sub-page {
  display: flex !important;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
}

.sub-page.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  height: var(--header-height);
  flex-shrink: 0;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 40px;
  -webkit-overflow-scrolling: touch;
}

.page-intro {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ═══ PILL TABS ═══ */
.tab-row, .pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 6px;
}

.tab-row::-webkit-scrollbar {
  display: none;
}

.tab-row .pill-tab {
  padding: 8px 14px;
  font-size: 12px;
}

.pill-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.pill-tab:active {
  transform: scale(0.96);
}

.pill-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Day type toggle */
.day-type-toggle {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.day-type-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.day-type-btn.active {
  background: var(--primary);
  color: white;
}

/* Day toggles (habit frequency) */
.day-toggles {
  display: flex;
  gap: 6px;
}

.day-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.day-toggle.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* ═══ TASK LIST ═══ */
.task-list {
  display: flex;
  flex-direction: column;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.task-item:active {
  background: var(--primary-light);
}

.task-item .task-checkbox {
  width: 20px;
  height: 20px;
}

.task-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-item-title {
  font-size: 15px;
  font-weight: 500;
}

.task-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

.task-item-due {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  background: var(--primary-light, #f0e8dc);
  color: var(--primary);
}
.task-item-due.due-today {
  background: #fff3e0;
  color: #e67e22;
}

/* ═══ PROGRESS ═══ */
.progress-list {
  display: flex;
  flex-direction: column;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.progress-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.progress-item-body {
  flex: 1;
}

.progress-item-title {
  font-size: 15px;
  font-weight: 500;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
}

.badge-red {
  background: var(--red-light);
  color: var(--red);
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
}

/* ═══ SETTINGS ═══ */
.settings-section {
  margin-bottom: 28px;
}

.settings-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

/* ═══ SHARE SECTION ═══ */
.share-section {
  margin-bottom: 24px;
}

.share-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ═══ PILLAR VISIONS ═══ */
.pillar-visions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 400px) {
  .pillar-visions {
    grid-template-columns: 1fr;
  }
}

.vision-card {
  background: var(--surface);
  border-radius: var(--radius, 12px);
  padding: 16px;
  border: 1px solid var(--border, #eee);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vision-card-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.vision-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vision-card-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.vision-card-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

/* ═══ ROUTINE LIST (builder) ═══ */
.routine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.routine-list-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.routine-list-item:active {
  border-color: var(--primary);
}

.routine-list-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.routine-list-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

.routine-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.routine-chevron {
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.routine-block-card {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.vision-card textarea {
  margin-top: 6px;
  font-size: 13px;
  resize: none;
  min-height: 60px;
  width: 100%;
  box-sizing: border-box;
}

.vision-dreams {
  margin: 4px 0;
}

/* ═══ BOTTOM SHEET ═══ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 101;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
}

.bottom-sheet.active {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 10px auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 12px;
}

.sheet-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.sheet-body {
  padding: 0 20px 32px;
  overflow-y: auto;
  flex: 1;
}

/* Add menu options */
.add-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.add-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border-radius: var(--radius);
  text-align: left;
  transition: background 0.2s;
}

.add-option:active {
  background: var(--primary-light);
}

.add-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light, #f0ebe3);
  border-radius: 10px;
  color: var(--primary);
}

.add-icon svg {
  width: 20px;
  height: 20px;
}

/* Inline Lucide icons in text */
.dr-icon {
  display: inline-block;
  vertical-align: middle;
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.vision-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-card-icon svg {
  width: 22px;
  height: 22px;
}

.progress-icon svg {
  width: 18px;
  height: 18px;
}

.toggle-row .dr-icon {
  margin-right: 4px;
}

.add-text {
  display: flex;
  flex-direction: column;
}

.add-text strong {
  font-size: 15px;
  font-weight: 600;
}

.add-text small {
  font-size: 13px;
  color: var(--text-secondary);
}

.add-form.hidden {
  display: none;
}

/* ═══ FORM ENHANCEMENTS (Add Forms) ═══ */
.add-form .form-group:last-of-type {
  margin-bottom: 24px;
}

.add-form .btn-primary {
  margin-top: 8px;
}

/* Input row — side-by-side elements */
.input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-row .input-field {
  flex: 1;
  min-width: 0;
}

/* All-day checkbox */
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

/* Textarea in forms */
.add-form textarea.input-field {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

/* Assign to row — person icons */
.assign-row {
  gap: 10px;
}

.assign-row .pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
}

.assign-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Radio group (Set Reminder) */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.radio-option:hover {
  background: var(--bg);
}

.radio-option.active {
  background: var(--primary-light);
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

/* Desktop: center the sheet as a modal card */
@media (min-width: 600px) {
  .bottom-sheet {
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    max-width: 420px;
    width: 90%;
    border-radius: 16px;
    max-height: 85vh;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .bottom-sheet.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .sheet-handle {
    display: none;
  }
}

/* ═══ UTILITIES ═══ */
.hidden {
  display: none !important;
}

.text-muted {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content.active .tab-body > * {
  animation: fadeIn 0.3s ease;
}

/* Toast */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.96); }
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  max-width: calc(100vw - 48px);
}

.toast.show {
  animation: toastIn .28s cubic-bezier(.21,1.02,.73,1) forwards;
}

.toast.hide {
  animation: toastOut .22s ease forwards;
}

.toast-icon { display: flex; flex-shrink: 0; }
.toast-msg  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toast--success { background: #2d8a4e; }
.toast--error   { background: #c0392b; }
.toast--info    { background: var(--text); }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 768px) {
  #screen-main {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ═══ VIEW SELECT WRAPPER ═══ */
.view-select-wrapper {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-end;
}

.view-select-wrapper .view-select {
  font-size: 14px;
}

/* ═══ ROUTINE BUILDER ENHANCEMENTS ═══ */
.routine-task-table {
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.routine-task-table table {
  width: 100%;
  border-collapse: collapse;
}

.routine-task-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.routine-task-table td,
.routine-task-table th {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.routine-block-card {
  border-radius: 10px !important;
  background: var(--surface);
  margin-bottom: 8px;
  transition: box-shadow 0.2s;
}

.routine-block-card:active {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.routine-block-expand {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}

/* ═══ PILLAR DETAIL VIEW ═══ */
.pillar-detail-view {
  display: none;
}

.pillar-detail-back {
  text-align: left !important;
  padding: 4px 0 !important;
}

.pillar-detail-view .section-label {
  margin-top: 16px;
}

/* ═══ CALENDAR ENHANCEMENTS ═══ */
.cal-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left: 3px solid var(--primary);
  margin-bottom: 4px;
}

.cal-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-event-time {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 100px;
  white-space: nowrap;
}

.cal-event-name {
  font-size: 14px;
  font-weight: 600;
}

/* ═══ ASSIGNMENT ICONS ═══ */
.assign-icons {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

/* ═══ SECTION HEADERS IN TASKS ═══ */
.task-list .section-label {
  padding-top: 4px;
}

/* ═══ MENU ICON COLORS ═══ */
.menu-item[data-page="tasks"] .menu-icon { color: var(--primary); background: var(--primary-light); }
.menu-item[data-page="routine-builder"] .menu-icon { color: var(--green); background: var(--green-light); }
.menu-item[data-page="vision-builder"] .menu-icon { color: var(--orange); background: var(--orange-light); }
.menu-item[data-page="partner"] .menu-icon { color: var(--blue); background: var(--blue-light); }
.menu-item[data-page="progress"] .menu-icon { color: var(--red); background: var(--red-light); }
.menu-item[data-page="notes"] .menu-icon { color: var(--purple); background: var(--purple-light); }
.menu-item[data-page="settings"] .menu-icon { color: var(--text-secondary); background: #f0f0f0; }
.menu-item[data-page="reminders"] .menu-icon { color: var(--orange); background: var(--orange-light); }
.menu-item[data-page="help"] .menu-icon { color: var(--blue); background: var(--blue-light); }
.menu-item[data-page="about"] .menu-icon { color: var(--text-secondary); background: #f0f0f0; }

/* ═══ DREAM SCHEDULE ═══ */
.dream-schedule-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ═══ PROGRESS ENHANCEMENTS ═══ */
.progress-item {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  padding: 12px 4px;
}

.progress-item:active {
  background: var(--primary-light);
}

/* ═══ UNFINISHED SECTION FIX ═══ */
.unfinished-section:empty {
  display: none;
  margin: 0;
  padding: 0;
}

/* ═══ CUSTOM MODAL ═══ */
.dr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.dr-modal-overlay.visible { opacity: 1; }

.dr-modal {
  background: var(--surface);
  border-radius: var(--radius-lg, 16px);
  padding: 28px 24px 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(10px) scale(0.97);
  transition: transform 0.2s ease;
}
.dr-modal-overlay.visible .dr-modal {
  transform: translateY(0) scale(1);
}

.dr-modal h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.dr-modal-field {
  margin-bottom: 14px;
}
.dr-modal-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.dr-modal-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.dr-modal-field input:focus {
  border-color: var(--primary);
}
.dr-modal-field select,
.dr-modal-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
.dr-modal-field select:focus,
.dr-modal-field textarea:focus {
  border-color: var(--primary);
}
.dr-modal-field textarea {
  resize: vertical;
  min-height: 60px;
}
.dr-modal-field input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
}

.modal-danger-secondary {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.modal-danger-secondary:hover {
  text-decoration: underline;
}

/* Edit trigger hover */
.task-edit-trigger:hover,
.habit-edit-trigger:hover,
.routine-task-edit:hover,
.today-task-edit:hover {
  background: var(--bg);
  border-radius: var(--radius-sm, 8px);
}

.dr-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.dr-modal-actions button {
  padding: 8px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.dr-modal-actions .modal-cancel {
  background: var(--bg);
  color: var(--text-muted);
}
.dr-modal-actions .modal-cancel:hover { background: var(--border); }
.dr-modal-actions .modal-confirm {
  background: var(--primary);
  color: white;
}
.dr-modal-actions .modal-confirm:hover { opacity: 0.9; }
.dr-modal-actions .modal-confirm-danger {
  background: var(--red);
  color: white;
}
.dr-modal-actions .modal-confirm-danger:hover { opacity: 0.9; }

/* Confirm modal (destructive) */
.dr-modal-actions .modal-danger {
  background: #D4645C;
  color: white;
}
.dr-modal-actions .modal-danger:hover { opacity: 0.9; }

/* ═══ INLINE ADD INPUT ═══ */
.inline-add-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  margin-top: 6px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.inline-add-input:focus {
  border-color: var(--primary);
  border-style: solid;
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(181, 160, 122, 0.12);
}
.inline-add-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ═══ PRESENT VIEW SELECT (hidden — JS also hides it) ═══ */
#present-view-select {
  display: none;
}

/* ═══ ACTION MENU (context popover) ═══ */
.dr-action-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity 0.15s;
}
.dr-action-menu-overlay.visible {
  opacity: 1;
  background: rgba(0,0,0,0.15);
}
.dr-action-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface, #fff);
  border-radius: var(--radius, 12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 200px;
  max-width: 280px;
  overflow: hidden;
  z-index: 1101;
}
.action-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  transition: background 0.1s;
}
.action-menu-item:hover { background: var(--bg, #f5f5f5); }
.action-menu-item:not(:last-child) { border-bottom: 1px solid var(--border, #eee); }
.action-menu-item.danger { color: var(--red, #D4645C); }
.action-menu-icon { display: flex; align-items: center; flex-shrink: 0; }

/* ═══ TASK DELETE BUTTON ═══ */
.task-delete-btn {
  padding: 4px;
  margin-left: 4px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.task-delete-btn:hover { opacity: 1; }

/* ═══ ROUTINE SELECTOR ═══ */
.routine-selector-row .pill-tab { cursor: pointer; }
.routine-selector-row .pill-tab.active {
  background: var(--primary);
  color: white;
}

/* ═══ NEXT-UP CARD CLICKABLE ═══ */
#next-up-card { cursor: pointer; transition: transform 0.15s; }
#next-up-card:active { transform: scale(0.98); }

/* ═══ CALENDAR TODAY BUTTON ═══ */
#cal-today { white-space: nowrap; }

/* ═══ FAQ ACCORDION ═══ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  gap: 12px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 16px 14px;
}

.faq-answer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ═══ NOTE / REMINDER CARDS ═══ */
.note-card:active,
.reminder-card:active {
  background: var(--bg);
}

/* ═══ DREAM SCHEDULE ═══ */
.dream-freq-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-right: 8px;
  flex-shrink: 0;
}

.dream-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dream-schedule-entry {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}

.dream-schedule-entry:hover {
  background: var(--bg);
}

.dream-schedule-entry:active {
  background: var(--border);
}

.dream-schedule-name {
  flex: 1;
  color: var(--text);
}

.dream-schedule-pillar {
  font-size: 11px;
  font-weight: 500;
  margin-right: 10px;
  flex-shrink: 0;
}

.dream-schedule-duration {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.freq-pills {
  display: flex;
  gap: 6px;
}

.freq-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.freq-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}

.freq-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Sparkle icon animation */
.sparkle-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Partner heart icon */
.partner-heart-icon {
  text-align: center;
  padding: 16px 0 8px;
  opacity: 0.9;
}

/* Block pillar icon */
.block-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.block-pillar-icon svg {
  width: 16px;
  height: 16px;
}

/* Reminder toggle row */
.reminder-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reminder-toggle-row .toggle {
  flex-shrink: 0;
}

.reminder-toggle-row .input-field {
  flex: 1;
}

/* Vision pencil icon */
.vision-pencil-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vision-pencil-icon:hover {
  opacity: 1;
}

