/* views.css — Plan view, tasks view, calendar, settings, more, partner view, reflection, goals, minimum day, insights, weekly planning, mode choice screen, partner mode */

.ob-logo [data-lucide],.ob-logo .lucide {
  width: 36px;
  height: 36px;
  color: var(--green);
  stroke-width: 1.4;
}

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

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

.onboarding {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  animation: breatheIn 0.4s var(--ease-out);
  background: radial-gradient(ellipse at 50% 70%,rgba(221,233,214,0.4) 0%,transparent 60%),radial-gradient(ellipse at 30% 30%,rgba(254,250,244,0.6) 0%,transparent 50%),radial-gradient(ellipse at 70% 20%,rgba(247,236,211,0.2) 0%,transparent 40%);
}

.ob-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: linear-gradient(145deg,var(--green-pale) 0%,rgba(221,233,214,0.4) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(122,158,109,0.12);
}

.ob-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--green-dark);
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(74,103,65,0.08);
}

.ob-tagline {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(80,60,30,0.04);
}

.ob-motto {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.65;
}

.ob-steps {
  width: 100%;
  max-width: 320px;
  margin-top: 40px;
}

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

.ob-q {
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-warm);
  letter-spacing: -0.2px;
}

.ob-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.ob-schedule {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.ob-schedule label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-date h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-warm);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

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

.plan-tasks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan-layout {
  display: flex;
  gap: 16px;
  min-height: 400px;
}

.plan-timeline-col {
  flex: 1;
  min-width: 0;
}

.pool-title {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-warm);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.pool-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pool-filters .chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-faint);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pool-filters .chip.active {
  background: var(--green-bg);
  color: var(--green-dark);
  border-color: var(--green);
}

.pool-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

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

.pool-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: grab;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  border: none;
  margin-bottom: 8px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease);
}

.pool-task-drag {
  color: var(--text-faint);
  opacity: 0.5;
  cursor: grab;
}

.pool-add-btn {
  margin-top: auto;
  font-size: 12px;
  padding: 6px;
  text-align: center;
  color: var(--green);
  cursor: pointer;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  background: none;
}

.plan-task-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.plan-task-bar {
  width: 3px;
  min-height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
}

.plan-task-bar.mental {
  background: var(--green);
}

.plan-task-bar.physical {
  background: var(--purple);
}

.plan-task-bar.spiritual {
  background: var(--gold);
}

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

.plan-task-range {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tasks-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.tasks-cat-section {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tasks-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tasks-cat-header:active {
  background: var(--bg-inset);
}

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

.tasks-cat-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex: 1;
}

.tasks-cat-name.mental {
  color: var(--green-dark);
}

.tasks-cat-name.physical {
  color: var(--purple);
}

.tasks-cat-name.spiritual {
  color: var(--gold);
}

.tasks-cat-chevron {
  color: var(--text-faint);
  transition: transform 0.2s ease;
}

.tasks-cat-section.expanded .tasks-cat-chevron {
  transform: rotate(180deg);
}

.tasks-cat-list {
  padding: 0 16px 12px;
  display: none;
}

.tasks-cat-section.expanded .tasks-cat-list {
  display: block;
}

.tasks-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.tasks-cat-item:last-child {
  border-bottom: none;
}

.tasks-cat-item-name {
  font-size: 14px;
  color: var(--text-secondary);
}

.tasks-cat-item-count {
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
}

.tasks-cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-inset);
  color: var(--text-faint);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
  margin-right: 8px;
}

.more-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.more-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,253,249,0.7);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(80,60,30,0.04);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-warm);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.more-item:active {
  transform: scale(0.97);
  background: var(--bg-inset);
}

.tasks-pillar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tasks-pillar-header:first-child {
  margin-top: 0;
}

.tasks-pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

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

.tasks-pillar-dot.physical {
  background: var(--gold);
}

.tasks-pillar-dot.spiritual {
  background: var(--purple);
}

.task-goal-link {
  font-size: 11px;
  color: var(--green-dark);
  margin-top: 4px;
  font-style: italic;
  opacity: 0.85;
}

.plan-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease);
}

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

.plan-date {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plan-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pool-task:hover {
  box-shadow: var(--shadow-float);
  transform: translateX(3px);
}

.view-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.view-topbar h2 {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
  flex: 1;
  font-style: italic;
  letter-spacing: -0.3px;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: space-between;
}

.partner-header h2 {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-warm);
  flex: 1;
}

.team-wins-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg,rgba(196,162,101,0.08),rgba(123,158,107,0.08));
  border: 1px solid rgba(196,162,101,0.15);
  border-radius: var(--radius-md, 12px);
  margin-bottom: 16px;
}

.team-wins-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.team-wins-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.shared-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: none;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid var(--border-light);
}

.shared-task-item:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-1px);
  border-left-color: var(--green-light);
}

.shared-task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

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

.shared-task-schedule {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.shared-task-assignee {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 5px 12px;
  background: var(--bg-inset);
  border-radius: var(--radius-full);
}

.more-item:hover {
  background: rgba(221,233,214,0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(80,60,30,0.04);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-header h2 {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-warm);
}

.cal-nav {
  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: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  cursor: pointer;
  color: var(--text-secondary);
}

.cal-nav:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-float);
  background: var(--green-bg);
  border-color: var(--green-border);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px;
  margin-bottom: 20px;
}

.cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 8px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cal-day {
  text-align: center;
  padding: 10px 0;
  border-radius: var(--radius-xs);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.cal-day.has-event::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin: 2px auto 0;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.cal-day.other-month {
  color: var(--text-faint);
  opacity: 0.4;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
}

.cal-event-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
}

.cal-event-body:hover {
  opacity: 0.8;
}

.cal-event.done {
  opacity: 0.5;
}

.cal-event.done .cal-event-name {
  text-decoration: line-through;
}

.cal-event-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--green-border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  position: relative;
}

.cal-event-check:hover {
  border-color: var(--green);
  background: var(--green-bg);
}

.cal-event-check.checked {
  background: var(--green);
  border-color: var(--green);
}

.cal-event-check.checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cal-event:hover {
  box-shadow: var(--shadow-float);
}

.cal-event.purple .cal-event-check {
  border-color: var(--purple);
}

.cal-event.purple .cal-event-check.checked {
  background: var(--purple);
  border-color: var(--purple);
}

.cal-event.gold .cal-event-check {
  border-color: var(--gold);
}

.cal-event.gold .cal-event-check.checked {
  background: var(--gold);
  border-color: var(--gold);
}

.cal-event.purple {
  border-left-color: var(--purple);
}

.cal-event.gold {
  border-left-color: var(--gold);
}

.cal-event-time {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 88px;
  font-weight: 600;
}

.cal-event-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-warm);
  flex: 1;
}

.cal-event-shared {
  font-size: 10px;
  color: var(--purple);
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: 0.8;
}

.cal-event.shared {
  border-left-style: dashed;
}

.reflection {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: breatheIn 0.6s var(--ease-out);
  padding-top: 8px;
}

.reflection-header {
  text-align: center;
  margin-bottom: 24px;
}

.reflection-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

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

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

.reflection-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.btn-save-reflection {
  margin-top: 16px;
}

.minimum-day {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  animation: breatheIn 0.6s var(--ease-out);
  padding-top: 8px;
}

.minimum-day h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-top: 12px;
  color: var(--text-warm);
}

.minimum-tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}

.minimum-task-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
}

.minimum-task-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-float);
}

.minimum-task-icon {
  font-size: 22px;
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.setting-item label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setting-group {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 4px;
}

.setting-group h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-warm);
  font-family: var(--font-display);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: var(--bg-warm);
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.sync-dot.online {
  background: var(--green);
  box-shadow: 0 0 6px rgba(122,158,109,0.4);
  animation: gentlePulse 2s infinite;
}

.sync-dot.offline {
  background: var(--text-faint);
}

.view-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.5;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.goal-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  border: none;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
}

.goal-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.goal-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

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

.goal-card-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  color: var(--text-warm);
}

.goal-card-target {
  font-size: 12px;
  color: var(--text-muted);
}

.goal-progress-bar {
  height: 7px;
  background: var(--bg-inset);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,var(--green-light),var(--green));
  border-radius: 6px;
  transition: width 0.6s var(--ease);
  position: relative;
}

.goal-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.goal-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 0;
  transition: all 0.3s var(--ease);
}

.goal-step-item:hover {
  color: var(--text-warm);
  transform: translateX(4px);
}

.goal-step-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.35s var(--ease-bounce);
}

.goal-step-item.linked .goal-step-check {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(107,143,94,0.25);
}

.goal-step-link {
  font-size: 11px;
  color: var(--green-dark);
  margin-left: auto;
  font-weight: 600;
}

.goal-step-input {
  margin-bottom: 10px;
}

.custom-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.plan-nav-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 4px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.plan-nav-arrow:hover {
  opacity: 1;
  background: var(--bg-inset);
}

.setting-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.5;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  border: none;
  box-shadow: var(--shadow-soft);
  margin-bottom: 8px;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid var(--border-light);
}

.contact-item:hover {
  box-shadow: var(--shadow-float);
}

.contact-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-warm);
}

.contact-phone {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-remove {
  color: var(--danger);
  font-size: 12px;
  transition: transform 0.3s var(--ease-bounce);
  opacity: 0.7;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--danger-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-remove:hover {
  transform: scale(1.3);
  opacity: 1;
}

.mode-choice {
  padding: 48px 32px;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.partner-mode {
  padding: 32px 22px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  height: 100%;
}

.app.partner-mode-active {
  background-image: none;
  background: var(--bg);
}

.pm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 60px 24px 16px;
  margin-bottom: 24px;
}

.pm-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-warm);
  margin: 0;
}

.pm-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.pm-settings-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-settings-btn:hover {
  background: var(--bg-inset);
}

.pm-settings-btn svg {
  width: 22px;
  height: 22px;
}

.pm-summary {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.pm-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  flex: 1;
}

.pm-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-warm);
  line-height: 1;
  font-family: var(--font-display);
}

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

.pm-tasks {
  flex: 1;
  padding: 0 16px 120px;
  overflow-y: auto;
}

.pm-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 16px;
  font-style: italic;
}

.pm-task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-light);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

.pm-task-item.done {
  opacity: 0.5;
  border-left-color: var(--border);
}

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

.pm-task-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pm-task-from {
  font-size: 11px;
  color: var(--green-dark);
  opacity: 0.7;
  margin-top: 2px;
}

.pm-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  padding-bottom: max(12px,env(safe-area-inset-bottom));
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  gap: 16px;
  margin-top: auto;
}

.pm-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.pm-action-btn:hover {
  color: var(--green-dark);
  background: var(--green-bg);
}

.pm-action-btn svg {
  width: 20px;
  height: 20px;
}

.pm-settings-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 1000;
  padding: 60px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

.pm-settings-panel.open {
  transform: translateX(0);
}

.pm-settings-panel .pm-settings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.pm-settings-panel .pm-settings-header h2 {
  font-family: "Playfair Display",serif;
  font-size: 22px;
  margin: 0;
}

.more-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--green-light);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.more-item:active::before {
  opacity: 1;
}

.reflection .textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-bg),var(--shadow-soft);
}

.shared-task-item:nth-child(odd) {
  border-left: 3px solid transparent;
}

.pool-title::before,.view-topbar h2::after {
  content: "·";
  margin: 0 8px;
  color: var(--gold-light);
  font-size: 1.2em;
}

.pool-title::before {
  margin-left: 0;
  margin-right: 10px;
}

.setting-item:hover {
  background: rgba(221,233,214,0.1);
  border-radius: var(--radius-xs);
}

.reschedule-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

.reschedule-opt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text-secondary);
}

.reschedule-opt:hover {
  border-color: var(--green-border);
  transform: translateY(-1px);
}

.reschedule-opt.active {
  background: var(--green-bg);
  color: var(--green-dark);
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(107,143,94,0.15);
}

#reschedule-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 16px;
  font-style: italic;
}

.reschedule-energy-context {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-bg);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  margin: 8px 0 4px;
  text-align: center;
}

.reschedule-custom {
  margin: 10px 0 4px;
}

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

.reschedule-custom-input {
  padding: 10px 14px !important;
  max-width: 140px;
  text-align: center;
  font-size: 15px !important;
  font-weight: 600;
}

.weekly-plan-field {
  margin-bottom: 16px;
}

.weekly-plan-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.weekly-plan-field textarea,.weekly-plan-field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  resize: vertical;
}

.weekly-plan-field textarea {
  min-height: 60px;
}

.wp-pillar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wp-pillar-options .chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wp-pillar-options .chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.voice-input-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 0;
}

.voice-mic-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  font-size: 36px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-mic-btn:active {
  transform: scale(0.92);
}

.voice-mic-btn.recording {
  animation: voicePulse 1.5s ease-in-out infinite;
  border-color: var(--danger);
  box-shadow: 0 0 0 8px rgba(196,80,80,0.1);
}

#voice-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#voice-transcript {
  font-size: 16px;
  color: var(--text);
  min-height: 40px;
  padding: 10px;
  background: var(--bg);
  border-radius: 10px;
  width: 100%;
  margin-bottom: 16px;
  font-style: italic;
}

#voice-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.setting-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.setting-pillar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.setting-pillar-header strong {
  font-size: 14px;
}

.setting-pillar-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.setting-pillar-icon.physical {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}

.setting-pillar-icon.mental {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
}

.setting-pillar-icon.spiritual {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
}

.setting-pillar-subs {
  padding-left: 38px;
}

.setting-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text);
}

.reschedule-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.wp-header {
  text-align: center;
  padding: 16px 0 24px;
}

.wp-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

.wp-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-warm);
  font-style: italic;
}

.wp-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.wp-last-week {
  background: linear-gradient(135deg,rgba(196,162,101,0.06),rgba(123,158,107,0.06));
  border: 1px solid rgba(196,162,101,0.12);
  border-radius: var(--radius-md, 12px);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.wp-summary-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.wp-summary-stats {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.wp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wp-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-warm);
  font-family: var(--font-display);
}

.wp-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.voice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.voice-mic-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-dream);
}

.voice-transcript {
  font-size: 16px;
  color: var(--text);
  text-align: center;
  min-height: 24px;
  font-style: italic;
  line-height: 1.5;
}

.cal-day:hover {
  background: var(--bg-inset);
}

.cal-day.selected {
  background: var(--green-bg);
  border: 1px solid var(--green);
  font-weight: 600;
}

.setting-item .input {
  max-width: 180px;
}

.more-item[data-view="calendar"] .more-icon {
  background: var(--gold-bg);
  color: var(--gold);
}

.more-item[data-view="partner"] .more-icon {
  background: var(--purple-bg);
  color: var(--purple);
}

.more-item[data-view="goals"] .more-icon {
  background: var(--green-bg);
  color: var(--green-dark);
}

.more-item[data-view="reflection"] .more-icon {
  background: var(--rose-bg);
  color: var(--rose);
}

.more-item[data-view="minimum"] .more-icon {
  background: var(--sage);
  color: var(--green-dark);
}

.more-item[data-view="settings"] .more-icon {
  background: var(--bg-inset);
  color: var(--text-muted);
}

.contact-item:last-child {
  border-bottom: none;
}

.shared-task-item:last-child {
  border-bottom: none;
}

.tasks-cat-item-meta {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.invite-link-box {
  user-select: all;
  transition: background 0.2s ease;
}

.invite-link-box:hover {
  background: var(--sage) !important;
}

.minimum-task-item.done {
  opacity: 0.5;
}

.minimum-task-item.gentle {
  opacity: 0.7;
}

.minimum-task-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.minimum-task-mini {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.insights-container {
  padding: 0 20px 32px;
}

.insights-header {
  text-align: center;
  padding: 24px 0 20px;
}

.insights-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.insights-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.insights-range {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ob-templates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
}

.ob-template-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease,background 0.2s ease,transform 0.15s ease;
  text-align: left;
}

.ob-template-card:hover {
  border-color: var(--green-light);
  transform: translateY(-1px);
}

.ob-template-card.selected {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 0 0 3px rgba(122,158,109,0.15);
}

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

.ob-tpl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.ob-tpl-desc {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

.more-item:hover .more-icon {
  transform: scale(1.08);
  background: var(--green-bg);
}

.voice-mic-btn [data-lucide],.voice-mic-btn svg {
  width: 28px;
  height: 28px;
}

.wp-icon [data-lucide],.wp-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.insights-icon [data-lucide],.insights-icon svg {
  width: 36px;
  height: 36px;
}

@media (max-width:600px) {
  .plan-layout {
    flex-direction: column;
  }

  .plan-pool-col {
    width: 100%;
    max-height: 250px;
  }
}

@media (hover:hover) {
  .more-item:hover {
    box-shadow: var(--shadow-float),inset 0 0 0 1px rgba(122,158,109,0.05);
  }
}

@media (max-width:380px) {
  .reschedule-opt {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ═══ DRAG-TO-TIMELINE ═══ */
.drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.92;
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  transition: opacity 0.15s ease;
}

.drag-ghost.drag-cancel {
  opacity: 0;
  transform: scale(0.85) rotate(0deg);
  transition: all 0.3s ease;
}

.time-block.empty.drop-target {
  background: rgba(122,158,109,0.12);
  border-left-color: var(--green);
  border-radius: var(--radius-sm);
}

.time-block.empty.drop-target .time-block-content.empty-slot {
  border-color: var(--green);
  border-style: solid;
  background: rgba(122,158,109,0.08);
}

.pool-task {
  touch-action: none;
}
