:root {
  color-scheme: light;
  --bg: #f7f6ed;
  --paper: #fffdf5;
  --paper-2: #f1f7e8;
  --ink: #203225;
  --muted: #687463;
  --line: #d8dfc6;
  --green: #3f8d3f;
  --green-dark: #27682d;
  --leaf: #a8c76d;
  --tomato: #d9513d;
  --amber: #d88b2a;
  --sky: #4d91c8;
  --violet: #856caf;
  --danger: #c84435;
  --shadow: 0 18px 50px rgba(51, 70, 38, 0.13);
  --radius: 8px;
  font-family: "Yu Gothic", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 199, 109, 0.2), transparent 22rem),
    radial-gradient(circle at 88% 3%, rgba(216, 139, 42, 0.14), transparent 20rem),
    linear-gradient(135deg, #fbfaf2 0%, var(--bg) 45%, #eef5e4 100%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ui-icon,
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.ui-icon svg,
.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-frame {
  min-height: 100vh;
  padding: 22px;
}

.shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.side {
  position: sticky;
  top: 22px;
  align-self: start;
  min-height: calc(100vh - 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.9);
  box-shadow: var(--shadow);
  padding: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e6f0d8;
  border: 1px solid #c9d9ad;
  font-size: 25px;
}

.brand h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 0;
  color: var(--green-dark);
}

.brand p,
.muted {
  margin: 0;
  color: var(--muted);
}

.side-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: #f1f7e8;
  border: 1px solid #dce9c8;
}

.climate-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border-radius: var(--radius);
  border: 1px solid #dce9c8;
  background: #f6faef;
}

.climate-card.compact {
  margin-top: 12px;
}

.climate-card.compact .climate-metrics {
  grid-template-columns: 1fr;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.climate-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.nav button,
.tab-btn,
.icon-btn,
.plain-btn,
.primary-btn,
.secondary-btn,
.chip,
.date-pill {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 42px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.nav button.active {
  background: var(--green-dark);
  color: #fff;
}

.main {
  min-width: 0;
}

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

.topbar h2 {
  margin: 0 0 4px;
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn,
.plain-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-btn {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.secondary-btn {
  background: #fffdf7;
  border-color: var(--line);
  color: var(--green-dark);
}

.plain-btn {
  background: transparent;
  color: var(--green-dark);
}

.icon-btn {
  width: 42px;
  padding: 0;
  background: #fffdf7;
  border-color: var(--line);
}

.grid {
  display: grid;
  gap: 14px;
}

.focus-panel {
  border-color: #bed5a4;
  background: linear-gradient(180deg, #fffefa, #f8fcf0);
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.panel {
  background: rgba(255, 253, 245, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(51, 70, 38, 0.08);
  padding: 16px;
}

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

.panel h3 {
  margin: 0;
  font-size: 18px;
}

.section-title {
  margin: 18px 0 10px;
  font-size: 17px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(63, 141, 63, 0.12), rgba(77, 145, 200, 0.07)),
    #fffdf5;
}

.hero-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 36px);
}

.garden-visual {
  position: relative;
  min-height: 170px;
  border-radius: var(--radius);
  background: #fffdf5;
  border: 1px solid #c9d9ad;
  overflow: hidden;
}

.garden-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.task-list,
.crop-list,
.alert-list,
.recommend-list,
.timeline,
.settings-list,
.history-list {
  display: grid;
  gap: 9px;
}

.source-list {
  margin-top: 12px;
}

.task,
.crop-card,
.alert,
.recommend-card,
.timeline-item,
.setting-row,
.history-row {
  display: grid;
  gap: 6px;
  border: 1px solid #dde4cb;
  border-radius: var(--radius);
  background: #fffefa;
  padding: 12px;
}

.task {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.task-icon,
.crop-icon,
.alert-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: #eef6df;
  font-size: 22px;
}

.crop-icon {
  width: 54px;
  height: 54px;
  background: #fffdf5;
  border: 1px solid #d8e6c7;
}

.task-icon {
  width: 54px;
  height: 54px;
  background: #fffdf5;
  border: 1px solid #d8e6c7;
}

.crop-icon svg,
.garden-crop-icon svg,
.crop-pick-icon svg,
.detail-crop-icon svg,
.inline-crop-icon svg,
.task-icon svg,
.event-task-icon svg,
.crop-icon img,
.garden-crop-icon img,
.crop-pick-icon img,
.detail-crop-icon img,
.inline-crop-icon img,
.task-icon img,
.event-task-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.garden-crop-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 2px rgba(54, 46, 32, 0.18));
}

.crop-pick-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  background: #fffdf5;
  border: 1px solid #d8e6c7;
}

.detail-title,
.history-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.detail-title h3 {
  margin: 0;
}

.detail-crop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: #fffdf5;
  border: 1px solid #d8e6c7;
}

.inline-crop-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #fffdf5;
  border: 1px solid #d8e6c7;
  flex: 0 0 auto;
}

.task-title,
.crop-title {
  font-weight: 800;
}

.crop-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.task-meta,
.crop-meta,
.alert p,
.recommend-card p,
.timeline-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge.green {
  background: #e5f2d8;
  color: #2f722e;
}

.badge.amber {
  background: #fff0d7;
  color: #975a0b;
}

.badge.blue {
  background: #e7f2fb;
  color: #286d9f;
}

.badge.red {
  background: #fee9e4;
  color: #b83628;
}

.badge.violet {
  background: #eee9f6;
  color: #664d90;
}

.crop-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.crop-card:hover,
.crop-card:focus-visible {
  border-color: #b7d49a;
  background: #fffef8;
  box-shadow: 0 10px 24px rgba(51, 70, 38, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.crop-card.selected {
  border-color: #90bc64;
  background:
    linear-gradient(90deg, rgba(168, 199, 109, 0.14), transparent 42%),
    #fffefa;
  box-shadow: inset 3px 0 0 var(--green), 0 10px 24px rgba(51, 70, 38, 0.08);
}

.crop-card button {
  min-height: 34px;
}

.crop-detail-panel {
  scroll-margin-top: 18px;
}

.crop-detail-panel:focus {
  outline: none;
}

.state-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.state-summary > div {
  display: grid;
  gap: 5px;
  border: 1px solid #dde4cb;
  border-radius: var(--radius);
  background: #fbfff4;
  padding: 11px;
}

.summary-progress {
  min-width: 0;
}

.crop-progress {
  height: 8px;
  border-radius: 999px;
  background: #eceddc;
  overflow: hidden;
  margin-top: 5px;
}

.crop-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--green));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.stat {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #dce4c9;
  background: #f8fbf0;
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--green-dark);
}

.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn,
.chip,
.date-pill {
  padding: 8px 12px;
  background: #fffdf7;
  border-color: var(--line);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2f6e8;
}

.segmented button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: #fffdf7;
  color: var(--green-dark);
  border-color: #dbe5c9;
  box-shadow: 0 4px 14px rgba(51, 70, 38, 0.08);
}

.upcoming-list {
  display: grid;
  gap: 9px;
}

.tab-btn.active,
.chip.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cdd8ba;
  border-radius: var(--radius);
  background: #fffefa;
  color: var(--ink);
  padding: 9px 10px;
}

textarea {
  resize: vertical;
  min-height: 74px;
}

.crop-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  padding-right: 3px;
}

.crop-pick {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffefa;
}

.crop-pick.active {
  border-color: var(--green);
  background: #ecf6df;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border-radius: var(--radius);
  background: #f5f6ea;
  color: var(--muted);
  font-size: 13px;
}

.step-dot span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5ead8;
  font-weight: 900;
}

.step-dot.active,
.step-dot.done {
  color: var(--green-dark);
  background: #eaf4dd;
}

.step-dot.active span,
.step-dot.done span {
  background: var(--green);
  color: #fff;
}

.selected-crop-strip,
.confirm-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #d8e6c7;
  border-radius: var(--radius);
  background: #fffefa;
  padding: 12px;
}

.selected-crop-strip p,
.confirm-card p {
  margin: 2px 0 0;
}

.calendar-shell {
  display: grid;
  gap: 12px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.day {
  min-height: 112px;
  border: 1px solid #dfe5cc;
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.86);
  padding: 7px;
}

.day.out {
  opacity: 0.4;
}

.day.today {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(63, 141, 63, 0.18);
}

.day-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.day.today .day-num {
  background: var(--green);
  color: #fff;
}

.event {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.25;
  background: #e9f3dc;
  color: #315c2c;
}

.event-task-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.event-weather-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.event-weather-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event.weather {
  background: #e7f2fb;
  color: #286d9f;
}

.event.harvest {
  background: #fff0d7;
  color: #8c5510;
}

.event.care {
  background: #eee9f6;
  color: #5f4b87;
}

.alert {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.alert.low .alert-icon {
  background: #e7f2fb;
}

.alert.hot .alert-icon {
  background: #fff0d7;
}

.alert.rain .alert-icon {
  background: #eaf0ff;
}

.weather-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 8px 0 6px;
}

.weather-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #d8e6c7;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffefa, #f3f9eb);
}

.weather-main-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fffdf5;
  border: 1px solid #d8e6c7;
  overflow: hidden;
}

.weather-main-icon img,
.weather-alert-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weather-alert-icon {
  background: #fffdf5;
  border: 1px solid #d8e6c7;
  overflow: hidden;
}

.weather-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 17px;
}

.weather-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.weather-day-label {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.alert-day-groups {
  display: grid;
  gap: 12px;
}

.alert-day-group {
  display: grid;
  gap: 8px;
}

.alert-day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
}

.alert-day-heading span {
  color: var(--muted);
  font-size: 12px;
}

.alert-empty {
  padding: 11px 12px;
  border: 1px dashed #d8e6c7;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fffefa;
  font-size: 13px;
}

.affected-crops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.affected-label {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #d8e6c7;
  border-radius: 999px;
  background: #eef6df;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.muted-chip {
  background: #fffdf5;
  color: var(--muted);
}

.recommend-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.recommend-score {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5f2d8;
  color: var(--green-dark);
  font-weight: 900;
}

.timeline-item {
  position: relative;
  padding-left: 42px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dbe5c9;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fffefa;
  z-index: 1;
}

.timeline-item.done .timeline-dot {
  background: var(--leaf);
}

.timeline-item.soon .timeline-dot {
  background: var(--amber);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(32, 50, 37, 0.42);
  padding: 18px;
}

.modal {
  width: min(860px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(18, 30, 22, 0.28);
  padding: 18px;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-start,
.premium-nudge,
.action-empty {
  display: grid;
  gap: 10px;
}

.quick-start p,
.action-empty p {
  margin: 0;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.feedback-form {
  align-items: end;
}

.settings-list + .actions {
  margin-top: 12px;
}

.onboarding {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.onboarding-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.94);
  box-shadow: var(--shadow);
  padding: 22px;
}

.onboarding h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 64px);
  color: var(--green-dark);
  letter-spacing: 0;
}

.onboarding p {
  color: var(--muted);
  line-height: 1.8;
}

.mini-preview {
  border: 1px solid #cfdcbb;
  border-radius: var(--radius);
  background: #fffefa;
  padding: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: var(--radius);
  background: #263b2a;
  color: #fff;
  padding: 13px 15px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.empty {
  border: 1px dashed #cbd9b6;
  border-radius: var(--radius);
  padding: 18px;
  background: #fbfff4;
  color: var(--muted);
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .app-frame {
    padding: 12px;
    padding-bottom: 86px;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    min-height: auto;
    padding: 13px;
  }

  .brand {
    margin-bottom: 8px;
  }

  .side-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .climate-metrics {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    z-index: 5;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 245, 0.96);
    box-shadow: var(--shadow);
  }

  .nav button {
    justify-content: center;
    padding: 8px 4px;
    min-height: 48px;
    font-size: 12px;
  }

  .nav button span:last-child {
    display: none;
  }

  .topbar,
  .hero,
  .dashboard-grid,
  .onboarding-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .weather-overview {
    grid-template-columns: 1fr;
  }

  .state-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day {
    min-height: 86px;
    padding: 5px;
  }

  .event {
    font-size: 10px;
    padding: 4px;
  }
}

@media (max-width: 640px) {
  .side-meta {
    grid-template-columns: 1fr;
  }

  .crop-card,
  .task,
  .recommend-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .crop-card > button,
  .recommend-score {
    grid-column: 1 / -1;
    width: 100%;
  }

  .calendar-grid {
    gap: 4px;
  }

  .day {
    min-height: 72px;
  }

  .state-summary,
  .stepper {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .crop-card {
    transition: none;
  }

  .crop-card:hover,
  .crop-card:focus-visible {
    transform: none;
  }
}
