@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --primary: #E3F2FD;
  --secondary: #90CAF9;
  --tertiary: #42A5F5;
  --light: #1565C0;
  --lightest: #0D47A1;
  --bg: #ECEFF1;
  --white: #FFFFFF;
  --green: #43A047;
  --green-light: #E8F5E9;
  --yellow: #F9A825;
  --yellow-light: #FFF8E1;
  --orange: #EF6C00;
  --orange-light: #FFF3E0;
  --brown: #795548;
  --brown-light: #EFEBE9;
  --red: #E53935;
  --red-light: #FFEBEE;
  --shadow-sm: 0 1px 3px rgba(38,50,56,0.08);
  --shadow-md: 0 4px 12px rgba(38,50,56,0.1);
  --shadow-lg: 0 8px 24px rgba(38,50,56,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

::selection {
  background: var(--green);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  min-height: 100vh;
}

.app-container {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(67,160,71,0.15);
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(144,164,174,0.1);
}

.header-content {
  position: relative;
  z-index: 1;
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-subtitle {
  color: var(--lightest);
  font-size: 0.875rem;
  font-weight: 300;
  margin-top: 0.25rem;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--lightest);
  position: sticky;
  top: 0;
  z-index: 20;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-btn:hover:not(.active) {
  color: var(--secondary);
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-label {
  white-space: nowrap;
}

/* Main Content */
.main-content {
  padding: 1rem;
}

/* Grid Stats */
.grid-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stat-emoji {
  font-size: 1.25rem;
}

.stat-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter Row */
.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--lightest);
  border-radius: 20px;
  background: var(--white);
  color: var(--tertiary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.filter-btn:hover:not(.active) {
  border-color: var(--light);
}

/* Garden Grid */
.garden-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}

.plot-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
  padding: 2px;
  overflow: hidden;
}

.plot-cell:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.plot-available {
  background: var(--brown-light);
  border: 1px dashed var(--brown);
}

.plot-claimed {
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
}

.plot-planted {
  background: var(--green-light);
  border: 1px solid var(--green);
}

.plot-growing {
  background: #C8E6C9;
  border: 1px solid #2E7D32;
}

.plot-harvest {
  background: var(--orange-light);
  border: 1px solid var(--orange);
  animation: harvestPulse 2s ease-in-out infinite;
}

@keyframes harvestPulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 8px rgba(239,108,0,0.3); }
}

.plot-mine {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.plot-dimmed {
  opacity: 0.3;
}

.plot-emoji {
  font-size: 0.9rem;
  line-height: 1;
}

.plot-id {
  font-size: 0.5rem;
  color: var(--light);
  font-weight: 500;
}

.plot-label {
  font-size: 0.45rem;
  color: var(--secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.plot-mine-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.5rem;
  color: var(--yellow);
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.7rem;
  color: var(--light);
  padding: 0.5rem 0;
}

.legend-title {
  font-weight: 600;
  color: var(--tertiary);
}

.legend-item {
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38,50,56,0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: var(--bg);
  color: var(--tertiary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--lightest);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-available { background: var(--brown-light); color: var(--brown); }
.status-claimed { background: var(--yellow-light); color: var(--yellow); }
.status-planted { background: var(--green-light); color: var(--green); }
.status-growing { background: #C8E6C9; color: #2E7D32; }
.status-harvest { background: var(--orange-light); color: var(--orange); }

/* Plot Info Card */
.plot-info-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--lightest);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.8rem;
  color: var(--light);
  font-weight: 500;
}

.info-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* Empty Plot */
.empty-plot {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-plot-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-plot-text {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Claim Form */
.claim-form {
  padding-top: 0.5rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tertiary);
  margin-bottom: 0.3rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--lightest);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(67,160,71,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: #388E3C;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--bg);
  color: var(--tertiary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--lightest);
}

.btn-danger {
  background: var(--red-light);
  color: var(--red);
  margin-top: 1rem;
}

.btn-danger:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.btn-icon {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--lightest);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Owner Controls */
.owner-controls {
  border-top: 1px solid var(--bg);
  padding-top: 0.5rem;
}

.status-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.status-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--lightest);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  text-align: left;
}

.status-option:hover:not(:disabled) {
  border-color: var(--green);
}

.status-option.selected {
  border-color: var(--green);
  background: var(--green-light);
}

.status-option.current {
  opacity: 0.5;
  cursor: default;
}

.status-opt-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.status-opt-desc {
  font-size: 0.7rem;
  color: var(--light);
}

.log-input-row {
  display: flex;
  gap: 0.5rem;
}

.log-input-row .form-input {
  flex: 1;
}

/* Logs / Timeline */
.plot-logs {
  border-top: 1px solid var(--bg);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.log-list,
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0.5rem;
}

.log-item,
.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  position: relative;
}

.log-dot,
.activity-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.log-item:not(:last-child)::before,
.activity-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(0.5rem + 3px);
  top: 1.4rem;
  bottom: -0.1rem;
  width: 2px;
  background: var(--lightest);
}

.log-body,
.activity-body {
  display: flex;
  flex-direction: column;
}

.log-action,
.activity-action {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}

.log-meta,
.activity-meta {
  font-size: 0.7rem;
  color: var(--light);
}

/* Calendar */
.calendar-container {
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-month-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
}

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

.cal-day-header {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--light);
  text-transform: uppercase;
  padding: 0.3rem;
}

.cal-cell {
  aspect-ratio: 1;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid transparent;
}

.cal-empty {
  background: transparent;
}

.cal-today {
  border-color: var(--green);
  background: var(--green-light);
}

.cal-has-harvest {
  background: var(--orange-light);
}

.cal-day-num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
}

.cal-harvests {
  display: flex;
  gap: 1px;
  margin-top: 1px;
}

.cal-harvest-dot {
  font-size: 0.55rem;
  cursor: default;
}

.cal-harvest-more {
  font-size: 0.5rem;
  color: var(--orange);
  font-weight: 600;
}

/* Upcoming Harvests */
.upcoming-section {
  margin-top: 0.5rem;
}

.harvest-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.harvest-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--green);
  animation: fadeInUp 0.3s ease both;
}

.harvest-card:nth-child(1) { animation-delay: 0s; }
.harvest-card:nth-child(2) { animation-delay: 0.05s; }
.harvest-card:nth-child(3) { animation-delay: 0.1s; }
.harvest-card:nth-child(4) { animation-delay: 0.15s; }
.harvest-card:nth-child(5) { animation-delay: 0.2s; }

.harvest-plant-icon {
  font-size: 1.5rem;
}

.harvest-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.harvest-plant {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.harvest-gardener {
  font-size: 0.7rem;
  color: var(--light);
}

.harvest-date-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.harvest-date {
  font-size: 0.75rem;
  color: var(--tertiary);
  font-weight: 500;
}

.harvest-days {
  font-size: 0.65rem;
  color: var(--light);
  font-weight: 600;
}

.harvest-soon {
  color: var(--orange);
}

/* My Plots */
.my-plots-container {
  animation: fadeInUp 0.4s ease both;
}

.my-plots-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.plot-count-badge {
  background: var(--green-light);
  color: var(--green);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.my-plots-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.my-plot-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 4px solid var(--lightest);
  animation: fadeInUp 0.3s ease both;
}

.my-plot-card:nth-child(1) { animation-delay: 0s; }
.my-plot-card:nth-child(2) { animation-delay: 0.05s; }
.my-plot-card:nth-child(3) { animation-delay: 0.1s; }
.my-plot-card:nth-child(4) { animation-delay: 0.15s; }

.my-plot-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.status-border-claimed { border-left-color: var(--yellow); }
.status-border-planted { border-left-color: var(--green); }
.status-border-growing { border-left-color: #2E7D32; }
.status-border-harvest { border-left-color: var(--orange); }

.my-plot-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.my-plot-icon {
  font-size: 1.5rem;
}

.my-plot-title-group {
  flex: 1;
}

.my-plot-plant {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.my-plot-coords {
  font-size: 0.7rem;
  color: var(--light);
}

.status-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill-claimed { background: var(--yellow-light); color: var(--yellow); }
.status-pill-planted { background: var(--green-light); color: var(--green); }
.status-pill-growing { background: #C8E6C9; color: #2E7D32; }
.status-pill-harvest { background: var(--orange-light); color: var(--orange); }

.my-plot-harvest-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.harvest-label {
  color: var(--light);
}

.harvest-val {
  font-weight: 500;
  color: var(--secondary);
}

.days-badge {
  background: var(--bg);
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--tertiary);
}

.days-soon {
  background: var(--orange-light);
  color: var(--orange);
}

.my-plot-notes {
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 0.4rem;
  font-style: italic;
}

.my-plot-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--light);
}

.tap-hint {
  color: var(--green);
  font-weight: 500;
}

.my-activity-section {
  margin-top: 1.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-state-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.empty-state-hint {
  font-size: 0.85rem;
  color: var(--light);
}

/* Loading Skeleton */
.loading-skeleton {
  padding: 1rem 0;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.skeleton-plot {
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--lightest) 25%, var(--bg) 50%, var(--lightest) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-block {
  height: 200px;
  background: linear-gradient(90deg, var(--lightest) 25%, var(--bg) 50%, var(--lightest) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-tall {
  height: 400px;
}

.skeleton-card {
  height: 80px;
  background: linear-gradient(90deg, var(--lightest) 25%, var(--bg) 50%, var(--lightest) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 640px) {
  .app-title {
    font-size: 1.35rem;
  }

  .garden-grid {
    gap: 2px;
  }

  .plot-emoji {
    font-size: 0.7rem;
  }

  .plot-id {
    font-size: 0.4rem;
  }

  .plot-label {
    display: none;
  }

  .grid-stats {
    gap: 0.4rem;
  }

  .stat-chip {
    padding: 0.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .cal-day-num {
    font-size: 0.65rem;
  }

  .modal-content {
    max-height: 90vh;
    padding: 1.25rem;
  }

  .filter-btn {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (min-width: 641px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: var(--radius-lg);
    max-height: 80vh;
  }

  .main-content {
    padding: 1.5rem;
  }
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Community Garden! This is your shared garden map showing all 48 plots in a 6×8 grid. Each plot shows its status — available, claimed, planted, growing, or ready to harvest.", "view": "garden", "highlight_selector": ".garden-grid", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "At the top you can see quick stats showing how many plots are available, growing, and ready to harvest. Use the filters to show only available plots or your own.", "view": "garden", "highlight_selector": ".grid-stats", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Tap any available plot (the brown dashed ones) to claim it. You'll choose what to plant, set an expected harvest date, and add notes.", "view": "garden", "highlight_selector": ".plot-available", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Once you've claimed a plot, you can update its status as your plants grow — from Claimed to Planted, Growing, and finally Ready to Harvest.", "view": "garden", "highlight_selector": ".status-options", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Switch to My Plots to see all your claimed plots with their status, harvest dates, and activity logs in one convenient view.", "view": "myplots", "highlight_selector": ".my-plots-grid", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "The Harvests tab shows a calendar view of all expected harvests across the community, plus an upcoming harvest list so everyone knows what's ready!", "view": "calendar", "highlight_selector": ".calendar-grid", "wait_for": "tap_to_continue"}
]
-->

.auth-prompt-container {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-actions {
  margin-top: 1rem;
}

.member-identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.member-avatar {
  font-size: 0.9rem;
}

.member-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 640px) {
  .my-plots-header {
    flex-wrap: wrap;
  }

  .member-identity-chip {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

.garden-presence-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--lightest);
}

.presence-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.presence-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.presence-subtitle {
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 0.15rem;
}

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.presence-dot,
.presence-mini-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.presence-dot {
  width: 8px;
  height: 8px;
}

.presence-mini-dot {
  width: 10px;
  height: 10px;
  margin-left: auto;
}

.presence-dot-online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.12);
}

.presence-dot-idle {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.12);
}

.presence-dot-away {
  background: var(--light);
  box-shadow: 0 0 0 4px rgba(144, 164, 174, 0.12);
}

.presence-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.presence-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.presence-user.online {
  border-left: 3px solid var(--green);
}

.presence-user.idle {
  border-left: 3px solid var(--yellow);
}

.presence-user.away {
  border-left: 3px solid var(--light);
}

.presence-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.presence-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.presence-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.presence-user-status {
  font-size: 0.68rem;
  color: var(--light);
}

.presence-empty {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--light);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .presence-header {
    flex-direction: column;
  }

  .presence-badge {
    align-self: flex-start;
  }
}

.image-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.image-thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--lightest);
  background: var(--white);
}

.image-thumb,
.plot-image-thumb,
.log-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plot-image-block {
  margin: 0.5rem 0 0.75rem;
}

.plot-image-thumb {
  width: 100%;
  max-height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--lightest);
  box-shadow: var(--shadow-sm);
}

.log-thumb {
  width: 100%;
  max-width: 160px;
  max-height: 120px;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
  border: 1px solid var(--lightest);
  box-shadow: var(--shadow-sm);
}

.image-uploading {
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .plot-image-thumb {
    max-height: 140px;
  }

  .log-thumb {
    max-width: 100%;
  }
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--lightest);
  border-radius: 999px;
  background: var(--white);
  color: var(--tertiary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-btn:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-light);
}

.reaction-btn.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

.reaction-emoji {
  font-size: 0.9rem;
}

.reaction-label {
  white-space: nowrap;
}

.reaction-count {
  min-width: 0.9rem;
  text-align: center;
  font-size: 0.68rem;
}

.harvest-reactions-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.harvest-reactions-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.harvest-reactions-hint {
  font-size: 0.72rem;
  color: var(--light);
}

@media (max-width: 640px) {
  .harvest-reactions-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reaction-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.weather-advice-bar {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(76, 175, 80, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.weather-advice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.weather-advice-title {
  display: block;
  font-weight: 700;
}

.weather-advice-location {
  margin: 0.25rem 0 0;
  color: #5f6f55;
  font-size: 0.92rem;
}

.weather-advice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.weather-advice-pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.12);
  color: #2f5d36;
  font-size: 0.85rem;
  white-space: nowrap;
}

.weather-advice-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334;
}

.weather-advice-item + .weather-advice-item {
  margin-top: 0.4rem;
}

.weather-advice-error {
  margin: 0;
  color: #9b3d3d;
}

.weather-advice-forecast {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.weather-advice-day {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.08);
  min-width: 110px;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .weather-advice-header {
    flex-direction: column;
  }

  .weather-advice-meta {
    justify-content: flex-start;
  }
}
