/* base.css — Reset, app shell, screens, icons, inputs, buttons, chips, toggles, scrollbar, utilities */

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

html,body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.6;
  touch-action: manipulation;
  letter-spacing: 0;
  font-weight: 400;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #faf8f4;
  background-image: radial-gradient(ellipse at 20% 20%,rgba(221,233,214,0.45) 0%,transparent 50%),radial-gradient(ellipse at 80% 10%,rgba(238,227,244,0.25) 0%,transparent 40%),radial-gradient(ellipse at 50% 90%,rgba(247,236,211,0.35) 0%,transparent 45%),radial-gradient(ellipse at 70% 55%,rgba(242,204,208,0.06) 0%,transparent 30%);
}

.app::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%,rgba(247,236,211,0.22) 0%,transparent 70%);
  animation: ambientBreathe 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.screen {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.ob-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.ob-step.active {
  display: flex;
}

[data-lucide],.lucide {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.6;
  color: currentColor;
  transition: transform 0.3s var(--ease-gentle),color 0.3s var(--ease);
}

.inline-icon {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

.more-icon [data-lucide],.more-icon .lucide {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.minimum-icon [data-lucide],.minimum-icon .lucide {
  width: 32px;
  height: 32px;
  color: var(--green);
}

.pillar-setup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s var(--ease-gentle);
}

.pillar-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-float);
}

.pillar-item:active {
  transform: scale(0.98);
}

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

.pillar-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-warm);
}

.pillar-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  font-style: italic;
}

.textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}

.select-sm {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.main-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.view {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 28px 22px calc(var(--nav-height) + var(--safe-bottom) + 20px);
  -webkit-overflow-scrolling: touch;
  contain: layout style;
  overflow-wrap: break-word;
  word-wrap: break-word;
  scroll-behavior: smooth;
}

.rhythm-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-faint);
}

.dashboard-progress {
  display: flex;
  justify-content: center;
  padding: 14px 0 8px;
  position: relative;
}

.progress-track {
  fill: none;
  stroke: rgba(242,236,227,0.6);
  stroke-width: 13;
}

.progress-segment {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
}

.seg-mental {
  stroke: rgba(164,196,149,0.35);
}

.seg-physical {
  stroke: rgba(196,168,210,0.3);
}

.seg-spiritual {
  stroke: rgba(220,196,142,0.3);
}

.progress-arc {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
  transition: stroke-dasharray 1s var(--ease-out),stroke-dashoffset 1s var(--ease-out);
  filter: drop-shadow(0 0 3px currentColor);
}

.arc-mental {
  stroke: var(--green);
  filter: drop-shadow(0 0 4px rgba(122,158,109,0.2));
}

.arc-physical {
  stroke: var(--purple);
  filter: drop-shadow(0 0 4px rgba(154,125,168,0.2));
}

.arc-spiritual {
  stroke: var(--gold);
  filter: drop-shadow(0 0 4px rgba(196,162,101,0.2));
}

.focus-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  display: block;
  margin-bottom: 6px;
}

.focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.focus-heart {
  font-size: 18px;
  color: var(--rose);
  flex-shrink: 0;
  margin-left: 12px;
  opacity: 0.7;
  animation: heartPulse 3s ease-in-out infinite;
}

.tasks-subcat-group {
  margin-bottom: 8px;
}

.tasks-subcat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
}

.tasks-subcat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.tasks-subcat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.tasks-subcat-count {
  font-size: 11px;
  color: var(--text-faint);
}

.add-subcat-btn {
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.more-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-bg);
  font-size: 24px;
  flex-shrink: 0;
}

.energy-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  animation: floatUp 0.4s var(--ease-out) both;
}

.energy-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.energy-info {
  flex: 1;
  min-width: 0;
}

.energy-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.energy-bar {
  height: 5px;
  background: var(--sand);
  border-radius: 3px;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg,var(--green),var(--gold));
  border-radius: 3px;
  transition: width 0.6s var(--ease-out);
}

.pillar-progress {
  background: rgba(255,253,249,0.8);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
  animation: floatUp 0.6s var(--ease-out) 0.1s both;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pillar-progress::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: radial-gradient(ellipse at 25% 40%,rgba(164,196,149,0.06) 0%,transparent 60%),radial-gradient(ellipse at 75% 60%,rgba(247,236,211,0.05) 0%,transparent 50%);
  pointer-events: none;
}

.pillar-counts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.pillar-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  border: 1px solid var(--border-whisper);
  box-shadow: var(--shadow-whisper);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  width: 24px;
  text-align: right;
}

.pillar-count:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.pillar-count strong {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.pc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.pillar-count.mental .pc-dot {
  background: var(--green);
}

.pillar-count.physical .pc-dot {
  background: var(--purple);
}

.pillar-count.spiritual .pc-dot {
  background: var(--gold);
}

.daily-quote {
  background: linear-gradient(145deg,rgba(255,253,249,0.9) 0%,rgba(247,236,211,0.3) 100%);
  border-radius: var(--radius);
  padding: 24px 50px 24px 24px;
  margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  box-shadow: var(--shadow-card);
  animation: floatUp 0.6s var(--ease-out) 0.2s both;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.daily-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,var(--gold-pale),var(--gold-light),var(--gold-pale));
  opacity: 0.7;
}

.quote-text {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.quote-sub {
  font-size: 16px;
  margin-top: 8px;
  font-style: italic;
  color: var(--text-secondary);
  font-family: var(--font-display);
  line-height: 1.5;
}

.quote-heart {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--rose);
  transition: all 0.4s var(--ease-bounce);
  opacity: 0.4;
}

.quote-heart:hover {
  transform: translateY(-50%) scale(1.3);
  color: var(--rose);
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(212,134,142,0.35));
}

.tasks-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: var(--shadow-whisper);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.tasks-list-item:active {
  transform: scale(0.98);
}

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

.tasks-list-info {
  flex: 1;
  min-width: 0;
}

.tasks-list-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tasks-list-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.tasks-list-meta span {
  white-space: nowrap;
}

.tasks-list-chevron {
  color: var(--text-faint);
  flex-shrink: 0;
}

.done-section {
  margin-top: 16px;
}

.done-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-inset);
  border: none;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.02em;
}

.done-section-toggle:hover {
  background: var(--bg-warm);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(80,60,30,0.04);
}

.done-section-toggle:active {
  transform: scale(0.98);
}

.done-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  max-height: 3000px;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out),opacity 0.3s ease,margin 0.3s ease;
  opacity: 1;
}

.done-section.collapsed .done-section-list {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.task-drag {
  color: var(--text-faint);
  font-size: 16px;
  padding: 4px;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.task-focus-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.task-focus-pill.deep {
  background: rgba(139,92,246,0.12);
  color: #7c3aed;
}

.task-focus-pill.light {
  background: rgba(96,165,250,0.12);
  color: #3b82f6;
}

.task-subcat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
  letter-spacing: 0.02em;
}

.task-mini-label {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 1px;
  font-style: normal;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-group {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
}

.category-group:hover {
  box-shadow: var(--shadow-float);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.category-header:hover {
  background: var(--bg-warm);
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1),inset 0 1px 2px rgba(255,255,255,0.2);
}

.category-icon.mental {
  background: linear-gradient(135deg,var(--green),var(--green-dark));
}

.category-icon.physical {
  background: linear-gradient(135deg,var(--purple),#7a5a87);
}

.category-icon.spiritual {
  background: linear-gradient(135deg,var(--gold),#9a7a4a);
}

.category-title {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-warm);
}

.category-chevron {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.4s var(--ease-bounce);
}

.category-group.open .category-chevron {
  transform: rotate(180deg);
}

.subcategory-list {
  padding: 0 20px 16px;
  display: none;
  animation: breatheIn 0.3s var(--ease-out);
}

.category-group.open .subcategory-list {
  display: block;
}

.subcategory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}

.subcategory-count {
  background: var(--bg-inset);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.add-subcategory {
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
}

.partner-avatars {
  display: flex;
  gap: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transition: transform 0.3s var(--ease-bounce);
}

.avatar:hover {
  transform: scale(1.1);
}

.avatar.you {
  background: var(--green);
}

.avatar.partner {
  background: var(--purple);
}

.partner-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-inset);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.tab {
  flex: 1;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  margin-bottom: -1px;
}

.tab.active {
  border-bottom-color: var(--green-dark);
  color: var(--text-warm);
}

.partner-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.shared-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ref-q label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: var(--text-warm);
}

.minimum-header {
  margin-bottom: 28px;
  text-align: center;
}

.minimum-icon {
  font-size: 40px;
  animation: floatGentle 4s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(107,143,94,0.2));
}

.minimum-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  font-style: italic;
  line-height: 1.5;
}

.minimum-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.5;
}

.pairing-code-display {
  text-align: center;
  margin: 12px 0;
}

.pairing-code {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--green-dark);
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 2px dashed var(--green-border);
  display: inline-block;
  margin-top: 8px;
}

.save-btn {
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--green);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.duration-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dur-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  color: var(--text-primary);
}

.dur-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-float);
}

.focus-type-options {
  display: flex;
  gap: 8px;
}

.custom-date-wrap {
  position: relative;
  flex: 1;
}

.custom-date-label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s ease;
  display: block;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
}

.custom-time-wrap {
  flex: 1;
}

.custom-time-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ width=\'12\'\ height=\'12\'\ viewBox=\'0\ 0\ 24\ 24\'\ fill=\'none\'\ stroke=\'%238d9a82\'\ stroke-width=\'2\'%3E%3Cpolyline\ points=\'6\ 9\ 12\ 15\ 18\ 9\'%3E%3C/polyline%3E%3C/svg%3E);
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  width: 100%;
}

.time-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg,rgba(221,233,214,0.2) 0%,rgba(247,236,211,0.15) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122,158,109,0.15);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  animation: breatheIn 0.4s var(--ease-out);
}

.time-suggestion:hover {
  background: linear-gradient(135deg,rgba(221,233,214,0.3) 0%,rgba(247,236,211,0.2) 100%);
  border-color: rgba(122,158,109,0.25);
}

.time-suggestion .suggestion-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.time-suggestion .suggestion-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.time-suggestion .suggestion-text strong {
  color: var(--green-dark);
  font-weight: 600;
}

.day-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  color: var(--text-muted);
  cursor: pointer;
}

.day-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-float);
}

.day-btn.active {
  background: var(--green);
  color: white;
  box-shadow: 0 3px 12px rgba(107,143,94,0.3);
  transform: scale(1.05);
  border-color: var(--green);
}

.hidden {
  display: none !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}

::-webkit-scrollbar {
  width: 4px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

::selection {
  background: rgba(122,158,109,0.2);
  color: var(--text);
}

.mc-header {
  text-align: center;
  margin-bottom: 36px;
}

.mc-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--gold);
}

.mc-icon svg {
  width: 48px;
  height: 48px;
}

.mc-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-warm);
  margin-bottom: 8px;
}

.mc-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

.mc-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.mc-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

.mc-option:hover {
  border-color: var(--green-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.mc-option:active {
  transform: scale(0.98);
}

.mc-opt-icon {
  flex-shrink: 0;
  color: var(--green-dark);
  margin-top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-bg);
}

.mc-opt-icon svg {
  width: 28px;
  height: 28px;
}

.mc-opt-info strong {
  font-size: 16px;
  color: var(--text-warm);
  display: block;
  margin-bottom: 4px;
}

.mc-opt-info p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  margin-top: 4px;
}

.mc-opt-details {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.mc-opt-details li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 0;
  padding-left: 16px;
  position: relative;
}

.mc-opt-details li::before {
  content: "✓ ";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: inherit;
}

.celebration-petal {
  filter: drop-shadow(0 1px 3px rgba(196,162,101,0.3));
}

.daily-quote::after {
  content: "\"";
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold-pale);
  line-height: 1;
  pointer-events: none;
  opacity: 0.6;
}

.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.template-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.template-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.template-info {
  flex: 1;
}

.template-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.template-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.template-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 8px;
}

.ics-import-area {
  text-align: center;
  padding: 20px;
}

#ics-import-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.adjust-day-btn {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.adjust-day-btn:hover {
  background: rgba(251,191,36,0.2);
}

.task-share-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
}

.task-share-btn:hover {
  color: var(--green);
  background: rgba(34,197,94,0.08);
}

.focus-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.focus-close-btn:hover {
  background: var(--bg-inset);
  color: var(--text);
}

.focus-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--sand);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

.focus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,var(--green) 0%,var(--green-light) 100%);
  border-radius: 4px;
  transition: width 0.6s var(--ease-out);
}

.focus-progress-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.focus-card-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.focus-task-pillar {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.focus-task-pillar.mental {
  background: var(--green);
}

.focus-task-pillar.physical {
  background: var(--purple);
}

.focus-task-pillar.spiritual {
  background: var(--gold);
}

.focus-task-notes {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.5;
}

.focus-done-celebration {
  text-align: center;
  animation: breatheIn 0.5s var(--ease-out);
}

.focus-done-emoji {
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
  animation: floatGentle 2s ease-in-out infinite;
}

.focus-done-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--green-dark);
  font-style: italic;
}

.focus-done-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.focus-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-bottom: 32px;
}

.focus-done-btn {
  width: 100%;
  max-width: 320px;
  padding: 18px 32px;
  background: linear-gradient(140deg,var(--green) 0%,var(--green-dark) 100%);
  color: white;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(74,103,65,0.25);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.focus-done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74,103,65,0.3);
}

.focus-done-btn:active {
  transform: scale(0.97);
}

.focus-skip-btn {
  font-size: 14px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.focus-skip-btn:hover {
  color: var(--text-secondary);
}

.minimum-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-warm);
  margin-top: 12px;
}

.partner-tabs .tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.partner-tabs .tab.active {
  background: var(--bg-card);
  color: var(--text-warm);
  box-shadow: var(--shadow-soft);
}

.save-btn:hover {
  background: var(--green-dark);
}

.mc-opt-info {
  flex: 1;
}

.view::-webkit-scrollbar {
  width: 4px;
}

.view::-webkit-scrollbar-track {
  background: transparent;
}

.view::-webkit-scrollbar-thumb {
  background: rgba(80,60,30,0.08);
  border-radius: 4px;
}

.day-btn:hover:not(.active) {
  border-color: var(--green-border);
  background: var(--green-bg);
}

.custom-date-wrap,.custom-time-wrap {
  flex: 1;
  position: relative;
}

.ref-mood-row {
  justify-content: center;
}

.task-toggles {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.duration-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dur-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.pillar-color-picker {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: none;
  -webkit-appearance: none;
}

.pillar-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.pillar-color-picker::-webkit-color-swatch {
  border: 2px solid var(--border);
  border-radius: 8px;
}

.pillar-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-inset);
  cursor: pointer;
  transition: background 0.15s;
}

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

.insight-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.insight-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.insight-ring {
  display: block;
}

.insight-ring-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ring-pct {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.ring-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insight-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.insight-chart-card {
  margin-bottom: 12px;
}

.insight-chart-card h4,.insight-pillar-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.insight-day-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 80px;
  gap: 6px;
}

.insight-day-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.dot-bar {
  width: 100%;
  max-width: 28px;
  background: var(--green);
  border-radius: 4px 4px 0 0;
  opacity: var(--fill-opacity, 0.3);
  margin-top: auto;
  min-height: 3px;
  transition: height 0.6s ease;
}

.dot-label {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 6px;
  font-weight: 600;
}

.dot-count {
  font-size: 9px;
  color: var(--text-faint);
  position: absolute;
  top: -2px;
  opacity: 0;
}

.insight-pillar-card {
  margin-bottom: 12px;
}

.insight-pillar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.insight-pillar-row:last-child {
  margin-bottom: 0;
}

.pillar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  width: 90px;
  flex-shrink: 0;
}

.pillar-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-inset);
  border-radius: 4px;
  overflow: hidden;
}

.pillar-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  min-width: 2px;
}

.pillar-bar-fill.mental {
  background: var(--green);
}

.pillar-bar-fill.physical {
  background: var(--purple);
}

.pillar-bar-fill.spiritual {
  background: var(--gold);
}

.insight-mini {
  text-align: center;
  padding: 16px 12px;
}

.mini-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.mini-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mini-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.mini-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.insight-encourage {
  text-align: center;
  background: linear-gradient(135deg,var(--bg-card),var(--green-pale));
  border: 1px solid var(--green-light);
  padding: 24px;
}

.insight-encourage p {
  font-size: 15px;
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1.5;
  font-style: italic;
}

.insight-trend-card h4,.insight-pattern-card h4,.insight-balance-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.insight-trend-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  height: 80px;
  margin-bottom: 12px;
}

.trend-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 48px;
}

.trend-bar-track {
  width: 100%;
  height: 60px;
  background: var(--bg-subtle);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.trend-bar-fill {
  width: 100%;
  background: var(--green);
  border-radius: 6px;
  transition: height 0.8s var(--ease);
  min-height: 3px;
}

.trend-week.current .trend-bar-fill {
  background: linear-gradient(to top,var(--green),var(--gold));
  box-shadow: 0 0 8px rgba(196,162,101,0.3);
}

.trend-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.trend-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.trend-message {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  margin-top: 4px;
}

.insight-pattern-card,.insight-balance-card {
  background: linear-gradient(135deg,var(--bg-card),rgba(196,162,101,0.06));
  border: 1px solid var(--gold-light, var(--border));
}

.pattern-text,.balance-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.pattern-text strong,.balance-text strong {
  color: var(--text);
  font-weight: 600;
}

.dashboard-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(221,233,214,0.25) 0%,rgba(238,227,244,0.12) 35%,rgba(247,236,211,0.08) 60%,transparent 80%);
  animation: circleAura 7s ease-in-out infinite;
  pointer-events: none;
}

.partner-avatars .avatar {
  box-shadow: 0 2px 8px rgba(80,60,30,0.08);
}

button:focus:not(:focus-visible) {
  outline: none;
}

.app.atm-dawn {
  background-image: radial-gradient(ellipse at 30% 20%,rgba(242,204,208,0.2) 0%,transparent 50%),radial-gradient(ellipse at 70% 30%,rgba(247,236,211,0.35) 0%,transparent 45%),radial-gradient(ellipse at 50% 80%,rgba(221,233,214,0.2) 0%,transparent 50%);
}

.app.atm-morning {
  background-image: radial-gradient(ellipse at 20% 20%,rgba(221,233,214,0.4) 0%,transparent 50%),radial-gradient(ellipse at 80% 15%,rgba(247,236,211,0.3) 0%,transparent 45%),radial-gradient(ellipse at 50% 85%,rgba(238,227,244,0.15) 0%,transparent 50%);
}

.app.atm-afternoon {
  background-image: radial-gradient(ellipse at 40% 30%,rgba(221,233,214,0.3) 0%,transparent 50%),radial-gradient(ellipse at 70% 60%,rgba(238,227,244,0.15) 0%,transparent 40%),radial-gradient(ellipse at 30% 80%,rgba(247,236,211,0.2) 0%,transparent 50%);
}

.app.atm-golden {
  background-image: radial-gradient(ellipse at 50% 30%,rgba(247,236,211,0.4) 0%,transparent 55%),radial-gradient(ellipse at 20% 60%,rgba(220,196,142,0.2) 0%,transparent 45%),radial-gradient(ellipse at 80% 70%,rgba(242,204,208,0.15) 0%,transparent 40%);
}

.app.atm-evening {
  background-image: radial-gradient(ellipse at 50% 20%,rgba(238,227,244,0.3) 0%,transparent 50%),radial-gradient(ellipse at 20% 70%,rgba(196,168,210,0.15) 0%,transparent 45%),radial-gradient(ellipse at 80% 50%,rgba(247,236,211,0.2) 0%,transparent 40%);
}

.app.atm-night {
  background-color: #f4f0ea;
  background-image: radial-gradient(ellipse at 40% 40%,rgba(196,168,210,0.12) 0%,transparent 50%),radial-gradient(ellipse at 60% 60%,rgba(196,162,101,0.1) 0%,transparent 45%),radial-gradient(ellipse at 30% 80%,rgba(221,233,214,0.08) 0%,transparent 40%);
}

.view::-webkit-scrollbar-thumb:hover {
  background: rgba(80,60,30,0.15);
}

.suggestion-icon [data-lucide],.suggestion-icon svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  vertical-align: -2px;
}

@media (min-width:481px) {
  body {
    background: linear-gradient(155deg,#ede5d6 0%,#d8e4d0 35%,#ece0f2 70%,#f7ecd3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }

  .app {
    height: 100vh;
    max-height: 900px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(80,60,30,0.08),0 8px 24px rgba(80,60,30,0.04),0 0 0 1px rgba(255,255,255,0.6) inset;
  }
}

@media (display-mode:standalone) {
  body {
    background: var(--bg) !important;
  }

  .app {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}

@supports (-webkit-touch-callout:none) {
  .app {
    padding-top: env(safe-area-inset-top);
  }

  .screen {
    padding-top: env(safe-area-inset-top);
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fireflies {
    display: none;
  }
}

@media (max-width:380px) {
  .view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pillar-progress {
    padding: 18px 14px;
    gap: 14px;
  }

  .pillar-count {
    padding: 5px 8px;
    font-size: 12px;
    gap: 6px;
  }

  .daily-quote {
    padding: 20px 18px;
  }

  .energy-indicator {
    padding: 12px 14px;
  }
}
