/* Harvest Planner — "almanac" design: printed paper, ink linework, seasonal accents. */

:root {
  --paper: #efe5cd;
  --paper-2: #f7f0de;
  --paper-3: #e4d6b6;
  --ink: #2b2418;
  --ink-2: #5a4c36;
  --ink-3: #8a7a5c;
  --rule: #b9a47c;
  --good: #3f6b2a;
  --bad: #9a3418;
  --gold: #c9971f;
  --frost: #3b6e96;
  --accent: #4f7f35;
  --accent-ink: #fffaf0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --shadow: 3px 3px 0 rgba(43, 36, 24, 0.85);
  --radius: 6px;
  color-scheme: light;
}

body[data-season="spring"] { --accent: #4f7f35; --season-wash: #e3ead0; }
body[data-season="summer"] { --accent: #b86e0e; --season-wash: #f3e1b8; }
body[data-season="autumn"] { --accent: #a3431d; --season-wash: #f0d6c0; }
body[data-season="winter"] { --accent: #35617f; --season-wash: #dbe3e6; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 500px at 50% -10%, var(--season-wash), transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(120, 90, 40, 0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(120, 90, 40, 0.05) 0 1px, transparent 1.5px);
  background-size: auto, 7px 7px, 11px 11px;
  transition: background-color 0.6s ease;
}

h1, h2, h3, p { margin: 0; }

button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ------------------------------------------------------------ masthead */

.masthead {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  border-bottom: 4px double var(--ink);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark svg { width: 48px; height: 48px; display: block; }
.brand h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  line-height: 1;
}
.tagline { font-style: italic; color: var(--ink-2); font-size: 0.95rem; }

.menu { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.link-button {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font-variant: small-caps; letter-spacing: 0.05em; font-size: 1.02rem;
  border-bottom: 2px solid transparent;
}
.link-button:hover { border-bottom-color: var(--accent); }
.link-button[aria-pressed="false"] { color: var(--ink-3); }

/* ------------------------------------------------------------ layout */

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "status" "calendar" "field" "ledger";
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "status status" "calendar calendar" "field ledger";
    align-items: start;
  }
  .ledger { position: sticky; top: 112px; max-height: calc(100vh - 124px); overflow: auto; padding: 2px 6px 6px 2px; }
}

.status { grid-area: status; }
.calendar { grid-area: calendar; }
.field-section { grid-area: field; }
.ledger { grid-area: ledger; display: flex; flex-direction: column; gap: 16px; }

.section-title {
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.eyebrow {
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-3);
}

.card, .status, .calendar, .plot-card, .orders, .notes {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

/* ------------------------------------------------------------ status bar */

.status {
  position: sticky;
  top: 6px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
}
.status-when { flex: 1 1 200px; }
.season-line { font-size: 1.45rem; font-weight: 700; color: var(--accent); line-height: 1.1; transition: color 0.6s; }
.turn-text { font-size: 1rem; font-weight: 400; color: var(--ink-2); font-style: italic; }

.pips { display: flex; gap: 4px; margin-top: 2px; }
.pip { width: 20px; height: 24px; color: var(--paper-3); }
.pip svg { width: 100%; height: 100%; display: block; }
.pip.full { color: var(--accent); }

.score { font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.best { font-size: 0.8rem; color: var(--ink-3); font-style: italic; min-height: 1em; }

.status-controls { display: flex; gap: 8px; margin-left: auto; }

.button {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--paper-2);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.2s;
}
.button:hover:not(:disabled) { background: var(--paper); }
.button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.button.primary.armed { background: var(--bad); }
.button.primary.nudge { animation: nudge 1.6s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { box-shadow: 2px 2px 0 var(--ink), 0 0 0 0 rgba(0, 0, 0, 0); }
  50% { box-shadow: 2px 2px 0 var(--ink), 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); }
}

/* ------------------------------------------------------------ calendar */

.calendar-strip {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}
.day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px 4px;
  border-top: 4px solid var(--season-col);
  background: var(--paper);
  border-radius: 0 0 4px 4px;
}
.day.spring { --season-col: #6f9a4e; }
.day.summer { --season-col: #d39a2c; }
.day.autumn { --season-col: #b9603a; }
.day.winter { --season-col: #5f86a2; }
.day.season-start { margin-left: 4px; }
.day.season-start:first-child { margin-left: 0; }
.season-tag {
  position: absolute; top: -19px; left: 0;
  font-size: 0.72rem; font-variant: small-caps; letter-spacing: 0.08em; text-transform: lowercase;
  color: var(--ink-2); white-space: nowrap;
}
.day-icon svg { width: 34px; height: 34px; display: block; }
.day-num { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day.past { opacity: 0.45; }
.day.now {
  background: var(--paper-2);
  outline: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 1;
}
.day.now .day-num { color: var(--ink); font-weight: 700; }
.day.frosty.ahead, .day.frosty.now { background: #dfe8ee; }
.weather-note { margin-top: 10px; font-size: 0.95rem; color: var(--ink-2); }
.calendar-strip.turned .day.now { animation: arrive 0.5s ease-out; }
@keyframes arrive { from { transform: translateY(-6px); } to { transform: none; } }

/* ------------------------------------------------------------ field */

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.section-head .section-title { flex: 1 1 auto; }
.field-hint { font-size: 0.9rem; font-style: italic; color: var(--ink-2); margin-bottom: 10px; }

.field {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 8px);
  padding: clamp(6px, 1.4vw, 12px);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 14px),
    #4a3320;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.plot {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid rgba(20, 12, 4, 0.45);
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.09) 0 2px, transparent 2px 9px);
  transition: transform 0.1s ease, box-shadow 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.plot:hover { filter: brightness(1.07); }
.plot.soil-0 {
  background-color: #b4a487;
  background-image:
    radial-gradient(circle at 30% 40%, #8f8169 0 3px, transparent 3.5px),
    radial-gradient(circle at 70% 70%, #8f8169 0 2px, transparent 2.5px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 9px);
}
.plot.soil-1 { background-color: #a07b52; }
.plot.soil-2 { background-color: #7c5734; }
.plot.soil-3 { background-color: #573a20; }
.plot.wild {
  background-color: #b9b98a;
  background-image:
    repeating-linear-gradient(45deg, rgba(70, 80, 30, 0.18) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-45deg, rgba(70, 80, 30, 0.12) 0 2px, transparent 2px 8px);
  opacity: 0.6;
  border-style: dashed;
}
.plot.wild.frontier { opacity: 0.95; }

.plot-art {
  position: absolute; inset: 14% 12% 10%;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.plot-art svg {
  width: 100%; height: 100%;
  transform: scale(var(--grow, 1));
  transform-origin: 50% 100%;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25));
}
.plot-name, .plot-soil {
  position: absolute; font-size: clamp(0.55rem, 1.4vw, 0.7rem); line-height: 1;
  color: rgba(255, 248, 230, 0.8); pointer-events: none; letter-spacing: 0.04em;
}
.plot-name { top: 4px; left: 5px; }
.plot-soil { bottom: 4px; left: 5px; letter-spacing: -0.5px; }
.wild .plot-name, .wild .plot-soil, .soil-0 .plot-name, .soil-0 .plot-soil { color: rgba(43, 36, 24, 0.75); }
.plot-badge:empty { display: none; }
.plot-badge {
  position: absolute; right: 3px; bottom: 3px;
  font-size: clamp(0.6rem, 1.5vw, 0.75rem); line-height: 1; font-weight: 700;
  background: rgba(247, 240, 222, 0.92); color: var(--ink);
  padding: 2px 4px; border-radius: 999px; pointer-events: none;
}
.plot-flag { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; pointer-events: none; }
.plot-flag svg { width: 100%; height: 100%; display: block; }

.plot.ready { box-shadow: inset 0 0 0 3px var(--gold); }
.plot.ready .plot-badge { background: var(--gold); color: #fff; }
.plot.ready .plot-art svg { animation: ripe 2.4s ease-in-out infinite; }
@keyframes ripe { 50% { transform: translateY(-2px) rotate(-1.5deg); } }

.plot.risk::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(190, 220, 240, 0.55), rgba(190, 220, 240, 0.1));
}
.plot.thirsty .plot-flag { opacity: 0.55; filter: grayscale(1); }
.plot.watered .plot-art svg { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)) saturate(1.15); }

.plot.selected {
  outline: 3px solid var(--paper-2);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--accent);
  z-index: 2;
}
.plot.ready.selected { box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 5px var(--accent); }
.plot.linked { box-shadow: inset 0 0 0 2px rgba(255, 248, 230, 0.85); }
.plot:focus-visible { outline: 3px solid var(--paper-2); box-shadow: 0 0 0 6px var(--ink); }

.plot.pulse { animation: pulse 0.35s ease-out; }
@keyframes pulse { 40% { transform: scale(0.93); } }

.float {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%, 0);
  font-weight: 700; font-size: 1.1rem; color: #fff6d8;
  text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: float 1s ease-out forwards;
}
@keyframes float { to { transform: translate(-50%, -110%); opacity: 0; } }

.legend {
  list-style: none; padding: 0; margin: 12px auto 0; max-width: 640px;
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center;
  font-size: 0.85rem; color: var(--ink-2);
}
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.4); display: inline-block; }
.swatch.soil-0 { background: #b4a487; }
.swatch.soil-1 { background: #a07b52; }
.swatch.soil-2 { background: #7c5734; }
.swatch.soil-3 { background: #573a20; }
.swatch.wild { background: #b9b98a; border-style: dashed; }

/* ------------------------------------------------------------ plot card */

.plot-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.sheet h2:focus { outline: none; }

.soil-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 0.92rem; color: var(--ink-2); margin-bottom: 8px; }
.soil-chip .dots { color: var(--accent); letter-spacing: -0.5px; }
.card-text { font-size: 0.95rem; color: var(--ink-2); margin: 6px 0; }
.card-subhead { font-variant: small-caps; letter-spacing: 0.08em; text-transform: lowercase; font-weight: 700; margin-top: 8px; }
.tip { font-size: 0.9rem; font-style: italic; color: var(--accent); margin: 6px 0; }
.alert {
  margin: 8px 0; padding: 8px 10px; border-left: 4px solid var(--frost);
  background: #e1ebf1; font-size: 0.95rem; border-radius: 0 4px 4px 0;
}

.crop-head { display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; }
.crop-head-art svg { width: 52px; height: 52px; display: block; }
.crop-name { font-weight: 700; font-size: 1.15rem; }

.breakdown { list-style: none; padding: 0; margin: 8px 0; font-size: 0.95rem; }
.breakdown li { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dotted var(--rule); }
.breakdown li.total { font-weight: 700; border-bottom: 0; border-top: 1.5px solid var(--ink); margin-top: 2px; }

.act-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.act {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.15s;
  margin-top: 6px;
}
.act-list .act { margin-top: 0; }
.act:hover:not(:disabled) { background: var(--season-wash); }
.act:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.act:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.act.primary-act { background: var(--accent); color: var(--accent-ink); }
.act.primary-act:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.act-art svg { width: 34px; height: 34px; display: block; }
.act-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.act-label { font-weight: 700; }
.act-detail { font-size: 0.82rem; opacity: 0.85; }
.act kbd {
  font-family: var(--serif); font-size: 0.75rem; border: 1px solid currentColor; border-radius: 3px;
  padding: 0 5px; opacity: 0.65;
}
.act-why { font-size: 0.82rem; font-style: italic; color: var(--bad); margin: 2px 0 0 4px; }
.act-warn { font-size: 0.82rem; font-style: italic; color: var(--bad); margin: -2px 0 2px 4px; }

/* ------------------------------------------------------------ orders */

.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.order {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
  padding: 6px 8px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
}
.order-art svg { width: 40px; height: 40px; display: block; }
.order-title { font-weight: 700; text-transform: capitalize; }
.order-when { font-size: 0.82rem; color: var(--ink-2); }
.order-bar { height: 6px; background: var(--paper-3); border-radius: 999px; margin-top: 4px; overflow: hidden; }
.order-bar span { display: block; height: 100%; background: var(--accent); transition: width 0.4s; }
.order-reward { text-align: right; line-height: 1.1; }
.order-reward span { font-weight: 700; font-size: 1.1rem; color: var(--gold); display: block; }
.order-reward small { color: var(--ink-3); }
.order.upcoming { opacity: 0.75; border-style: dashed; }
.order.done { background: #e4ecd6; }
.order.done .order-when { color: var(--good); font-weight: 700; }
.order.expired { opacity: 0.45; }
.order.expired .order-title { text-decoration: line-through; }

/* ------------------------------------------------------------ notes */

.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.note { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dotted var(--rule); color: var(--ink-2); }
.note:first-child { color: var(--ink); }
.note-turn { flex: none; font-size: 0.72rem; color: var(--ink-3); padding-top: 2px; min-width: 2em; }
.note.good { color: var(--good); }
.note.bad { color: var(--bad); }
.note.season { font-weight: 700; color: var(--accent); }

/* ------------------------------------------------------------ dialogs */

.sheet {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(43, 36, 24, 0.9);
}
.sheet::backdrop { background: rgba(43, 36, 24, 0.55); }
.sheet-inner { padding: 22px 24px; border: 4px double var(--rule); margin: 6px; border-radius: 6px; }
.sheet h2 { font-size: 1.6rem; font-variant: small-caps; letter-spacing: 0.03em; margin-bottom: 8px; }
.sheet h3 { font-size: 1rem; font-variant: small-caps; letter-spacing: 0.08em; text-transform: lowercase; margin: 14px 0 4px; color: var(--accent); }
.lede { font-size: 1.05rem; margin-bottom: 6px; }
.rules { display: grid; gap: 0 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); font-size: 0.95rem; }
.rules ul { margin: 0; padding-left: 1.1em; }
.rules li { margin: 3px 0; }
.help-modes { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); }
.sheet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.result { display: flex; align-items: center; gap: 16px; margin: 10px 0 14px; }
.medal svg { width: 92px; height: 92px; display: block; }
.result-score { font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; }
.result-rating { font-size: 1.25rem; font-variant: small-caps; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.result-next { font-size: 0.9rem; color: var(--ink-3); font-style: italic; }
.result-best { font-size: 0.95rem; color: var(--good); font-weight: 700; }

.tally { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.95rem; }
.tally th { text-align: left; font-weight: 400; }
.tally td { text-align: right; font-variant-numeric: tabular-nums; }
.tally th, .tally td { padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.tally thead th { font-variant: small-caps; text-transform: lowercase; letter-spacing: 0.06em; color: var(--ink-3); text-align: right; }
.tally thead th:first-child { text-align: left; }
.tally tr.total th, .tally tr.total td { font-weight: 700; border-top: 1.5px solid var(--ink); border-bottom: 0; }

.badges { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.badges li {
  display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); font-size: 0.82rem; background: #f3e6c2;
}
.badges li strong { font-size: 0.92rem; }
.badges li.locked { border-style: dashed; border-color: var(--ink-3); background: transparent; color: var(--ink-3); }

/* ------------------------------------------------------------ misc */

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 40;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  padding: 9px 16px; border-radius: 999px;
  font-size: 0.95rem; max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { background: var(--bad); }

.colophon {
  max-width: 1180px; margin: 0 auto; padding: 10px 20px 32px;
  border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--ink-3); text-align: center;
}
.noscript { padding: 20px; text-align: center; }

/* ------------------------------------------------------------ small screens */

@media (max-width: 979px) {
  .layout { display: flex; flex-direction: column; padding: 12px 10px 24px; }
  .ledger { display: contents; }
  .status { order: 1; padding: 8px 12px; gap: 6px 16px; }
  .calendar { order: 2; }
  .field-section { order: 3; }
  .plot-card {
    order: 4;
    position: sticky; bottom: 6px; z-index: 9;
    max-height: 46vh; overflow: auto;
    box-shadow: 0 -4px 18px rgba(43, 36, 24, 0.25), var(--shadow);
  }
  .orders { order: 5; }
  .notes { order: 6; }
  .colophon { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .masthead { padding: 12px 12px 8px; }
  .menu { gap: 2px 12px; }
  .link-button { font-size: 0.9rem; padding: 4px 0; }
  .plot-card { max-height: 36vh; padding: 8px 10px; }
  .plot-title { font-size: 1.05rem; margin-bottom: 0; }
  .soil-chip { font-size: 0.82rem; margin-bottom: 2px; }
  .plot-card .card-text { font-size: 0.85rem; margin: 2px 0; }
  .card-subhead { display: none; }
  .act-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .act-list .act-warn { grid-column: 1 / -1; }
  .act { padding: 5px 7px; gap: 6px; }
  .act-art svg { width: 26px; height: 26px; }
  .act-detail { font-size: 0.72rem; line-height: 1.25; }
  .crop-head-art svg { width: 38px; height: 38px; }
  .breakdown { font-size: 0.85rem; margin: 4px 0; }
  .tagline { display: none; }
  .brand-mark svg { width: 38px; height: 38px; }
  .season-line { font-size: 1.2rem; }
  .score { font-size: 1.4rem; }
  .status-controls { width: 100%; margin-left: 0; }
  .status-controls .button { flex: 1; }
  .day-icon svg { width: 22px; height: 22px; }
  .calendar { padding: 10px 8px; }
  .calendar-strip { gap: 2px; }
  .day.season-start { margin-left: 2px; }
  .season-tag { font-size: 0.62rem; }
  .plot-name { display: none; }
  .sheet-inner { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (hover: none) {
  .act kbd { display: none; }
}
