/* ---------- Fonts ---------- */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/atkinson-hyperlegible-next-400-987ed25c.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/atkinson-hyperlegible-next-600-ee04ca6b.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/atkinson-hyperlegible-next-700-f8c47b13.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/atkinson-hyperlegible-next-800-a4598981.woff2") format("woff2");
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-family);
  font-size: var(--size-body);
  line-height: var(--line-body);
}

body:has(dialog[open]:modal) {
  overflow: hidden;
}

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
}

h1 {
  font-size: var(--size-title);
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: var(--size-card-title);
  font-weight: 700;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-button);
  color: var(--color-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

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

/* ---------- Components ---------- */

.card {
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.card--note {
  background: var(--color-note);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: var(--border);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-button);
  font: 700 var(--size-body) var(--font-family);
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms, box-shadow 80ms;
}

.button:active {
  transform: translateY(4px);
  box-shadow: none;
}

.button--primary {
  background: var(--color-primary);
  color: #fff;
}

.button--secondary {
  background: var(--color-card);
  color: var(--color-ink);
}

.button--gold {
  background: var(--color-gold);
  color: var(--color-ink);
}

.button--block {
  display: flex;
  width: 100%;
}

.link-button {
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: 0;
  background: none;
  color: var(--color-link);
  font: 600 var(--size-body) var(--font-family);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--color-card);
  color: var(--color-ink);
  border: var(--border);
  border-radius: var(--radius-button);
  cursor: pointer;
}

.icon {
  flex: none;
}

a:not(.button) > .icon {
  width: 0.9em;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -1px;
}

.icon-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
}

.icon-tile--sky { background: var(--tint-fish); }
.icon-tile--green { background: var(--tint-crafts); }
.icon-tile--gold { background: var(--tint-pantry); }
.icon-tile--lavender { background: var(--tint-bulletin); }
.icon-tile--blush { background: var(--tint-other); }

/* Bottom sheet on small screens, centered modal on larger ones. */
.sheet {
  width: 100%;
  max-width: none;
  margin: auto 0 0;
  padding: 0;
  border: var(--border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--color-card);
  color: var(--color-ink);
}

/* A literal, because ::backdrop does not reliably see custom properties. */
.sheet::backdrop {
  background: rgba(31, 58, 95, 0.45);
}

.sheet__inner {
  position: relative;
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  padding: var(--space-5) var(--space-5) var(--space-6);
  text-align: center;
}

.sheet__handle {
  width: 48px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-chip-border);
}

.sheet__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.sheet__art .raincloud {
  width: 140px;
}

.sheet__lede {
  color: var(--color-text-secondary);
}

.sheet__list {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  background: var(--color-page);
  border: var(--border-thin);
  border-radius: var(--radius-button);
  text-align: left;
}

.sheet__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sheet__note {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

@media (min-width: 760px) {
  .sheet {
    max-width: 440px;
    margin: auto;
    border-bottom: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

  .sheet__handle {
    display: none;
  }
}

.offline {
  position: relative;
  z-index: 20;
}

.offline__card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 560px;
  margin: var(--space-4) auto;
  padding: var(--space-4);
}

.offline__title {
  font-weight: 800;
}

/* ---------- Layout ---------- */

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-5);
  min-height: 80px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-sky);
}

.site-header--short {
  padding-bottom: 56px;
  border-bottom: var(--border);
}

.site-header--short .hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  color: var(--color-ink);
  font-size: var(--size-wordmark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  width: 52px;
  height: 48px;
}

/* The sky owns the middle column only, so no cloud can sit on the wordmark or
   the actions at any width. */
.site-header__sky {
  position: relative;
  align-self: stretch;
  min-height: 64px;
  overflow: hidden;
  pointer-events: none;
}

.sky-sun {
  position: absolute;
  top: 8px;
  left: 30%;
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 50%;
  background: var(--color-gold);
}

.sky-cloud {
  position: absolute;
  display: block;
  width: 64px;
}

.sky-cloud svg {
  display: block;
  width: 100%;
}

.sky-cloud--one {
  top: 30px;
  left: 52%;
}

.sky-cloud--two {
  top: 4px;
  left: 78%;
  width: 52px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--color-ink);
  font-weight: 700;
}

.site-header__menu {
  display: none;
}

.menu-popover {
  inset: auto;
  margin: 0;
  padding: var(--space-3);
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}

.menu-popover a {
  display: flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 var(--space-3);
  color: var(--color-ink);
  font-weight: 700;
}

@media (max-width: 759px) {
  .site-header {
    column-gap: var(--space-3);
    padding-inline: var(--space-4);
  }

  /* About, Privacy, and Terms keep their one button beside a tighter wordmark. */
  .site-header--short {
    grid-template-columns: 1fr auto;
  }

  .site-header--short .site-header__sky {
    display: none;
  }

  .site-header--short .logo-mark {
    width: 40px;
    height: 36px;
  }

  .site-header--short .wordmark {
    gap: var(--space-2);
    font-size: 1.125rem;
  }

  .site-header--short .button {
    min-height: var(--target);
    padding-inline: var(--space-3);
    font-size: 0.9375rem;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .sky-sun,
  .sky-cloud--two {
    display: none;
  }

  .sky-cloud--one {
    left: 10%;
  }

  .site-header--tall .site-header__actions .site-header__link,
  .site-header--tall .site-header__actions .button {
    display: none;
  }

  .site-header__menu {
    display: inline-flex;
  }

  .menu-popover {
    top: 72px;
    right: var(--space-4);
  }
}

.site-footer {
  background: var(--color-card);
  border-top: var(--border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-5);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 700;
}

.site-footer__disclaimer {
  max-width: 560px;
  text-align: right;
  color: var(--color-text-secondary);
  font-size: var(--size-footnote);
  line-height: var(--line-footnote);
}

@media (max-width: 759px) {
  .site-footer__disclaimer {
    text-align: left;
  }

  .site-footer__links {
    justify-content: space-between;
    width: 100%;
  }
}

.hills {
  display: block;
}

.hills__far,
.hills__near {
  stroke: var(--color-ink);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.hills__far {
  fill: var(--color-hill-light);
}

.hills__near {
  fill: var(--color-hill-dark);
}

/* ---------- Pages ---------- */

.hero {
  position: relative;
}

.hero__sky {
  position: relative;
  padding: var(--space-4) var(--space-4) 112px;
  background: var(--color-sky);
}

.hero__copy {
  max-width: var(--page-width);
  margin: 0 auto;
}

.hero__copy > * {
  max-width: 560px;
}

.hero__eyebrow {
  display: none;
  color: var(--color-text-on-sky);
}

.hero h1 {
  margin-top: var(--space-3);
  font-size: var(--size-hero-mobile);
}

.hero__lede {
  margin-top: var(--space-4);
  color: var(--color-text-on-sky);
  font-size: 1.125rem;
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.hero__actions .button {
  padding-inline: var(--space-3);
  white-space: nowrap;
}

.hero__footnote {
  margin-top: var(--space-3);
  color: var(--color-text-on-sky);
  font-size: var(--size-footnote);
  line-height: var(--line-footnote);
}

.hero .hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 88px;
  border-bottom: var(--border);
}

.sample {
  position: relative;
  width: calc(100% - 2 * var(--space-4));
  max-width: 520px;
  margin: var(--space-5) auto 0;
  padding: 0;
  overflow: hidden;
}

.sample__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--tint-crafts);
  border-bottom: var(--border);
}

.sample__title {
  font-weight: 700;
}

.sample__count {
  padding: 2px 12px;
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: 10px;
  font-weight: 700;
}

.sample__list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4);
  list-style: none;
}

.sample__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sample__row:nth-child(n+3) {
  display: none;
}

.sample__box {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: 6px;
  color: #fff;
}

.sample__box--on {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.sample__name {
  flex: 1;
}

.sample__row--done .sample__name {
  color: var(--color-text-done);
  text-decoration: line-through;
}

.sample__where {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.sample .raincloud {
  display: none;
}

.section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) 0;
}

.section--last {
  padding-bottom: var(--space-7);
}

.section h2 {
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
}

.benefits {
  display: grid;
  gap: var(--space-4);
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-4);
}

.benefit p {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
}

.sync {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-soft);
  border: 2px dashed var(--color-chip-border);
  border-radius: var(--radius-card);
}

.sync p {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
}

.devices {
  width: 96px;
}

.section .sync__title {
  margin-bottom: 0;
  font-size: var(--size-card-title);
  font-weight: 700;
}

@media (max-width: 379px) {
  .hero__actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .sync {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .hero__actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .hero__actions .button {
    padding-inline: var(--space-5);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero__eyebrow {
    display: block;
  }
}

@media (min-width: 1300px) {
  .hero h1 {
    max-width: 600px;
    font-size: 2.75rem;
  }
}

@media (min-width: 1100px) {
  .hero__sky {
    min-height: 660px;
    padding-top: var(--space-6);
  }

  .sample {
    position: absolute;
    top: 150px;
    right: max(var(--space-5), calc((100% - var(--page-width)) / 2));
    width: clamp(440px, 40vw, 560px);
    max-width: none;
    margin: 0;
    transform: rotate(1deg);
    overflow: visible;
  }

  .sample__head {
    border-radius: 15px 15px 0 0;
  }

  .sample__row:nth-child(n+3) {
    display: flex;
  }

  .sample .raincloud {
    display: block;
    position: absolute;
    top: -78px;
    left: 40%;
    width: 120px;
  }
}

/* About, Privacy, Terms */
.page {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
}

.page__lede {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
}

.page__grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.about-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.about-card p + p {
  margin-top: var(--space-3);
}

.about-note {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.prose {
  margin-top: var(--space-5);
}

.prose h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: var(--space-3);
}

.prose ul {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
}

.prose li + li {
  margin-top: var(--space-2);
}

.page__aside {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 2px dashed var(--color-chip-border);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .page__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page__grid > .span-all {
    grid-column: 1 / -1;
  }
}

.error {
  max-width: 900px;
  margin: var(--space-7) auto var(--space-8);
  padding: 0 var(--space-4);
}

.error__card {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
}

.error__art {
  display: grid;
  justify-items: center;
}

.error__art .raincloud {
  width: 160px;
}

.error__art .signpost {
  width: 140px;
  margin-top: calc(-1 * var(--space-3));
}

.error h1 {
  margin-top: var(--space-2);
}

.error h1 + p {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
}

.error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

@media (min-width: 760px) {
  .error__card--art {
    grid-template-columns: auto 1fr;
    gap: var(--space-7);
  }
}

/* ---------- Farms ---------- */

.field {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field legend,
.field label {
  padding: 0;
}

.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  min-height: var(--target);
  padding: 0 var(--space-3);
  background: var(--color-page);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font: inherit;
}

/* Season and bundle chips are radios or checkboxes wearing a label. */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.choice {
  display: inline-flex;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: 0 var(--space-4);
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-tile);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.choice input:focus-visible + span {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}

.choice--season input:checked + span {
  background: var(--color-hill-light);
  border-color: var(--color-ink);
  box-shadow: 0 3px 0 var(--color-ink);
}

.choice--pick input:checked + span {
  background: var(--color-card);
  border-color: var(--color-ink);
  box-shadow: 0 3px 0 var(--color-ink);
}

/* A tick keeps the chosen state from leaning on color alone. */
.choice--pick input:checked + span::before {
  content: "✓";
  margin-right: var(--space-1);
}

.stepper {
  display: flex;
  gap: var(--space-2);
}

.stepper__button {
  width: var(--target);
  min-height: var(--target);
  padding: 0;
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font: 800 1.25rem var(--font-family);
  cursor: pointer;
}

.stepper__button[hidden] {
  display: none;
}

.field input.stepper__input {
  width: 72px;
  text-align: center;
  font-weight: 700;
}

.farm-setup {
  display: grid;
  gap: var(--space-4);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.farm-setup__main {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  min-width: 0;
}

.farm-switcher {
  align-self: start;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.farm-switcher__list {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.farm-switcher__note,
.farm-switcher__cap {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.farm-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3);
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: var(--radius-button);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.farm-tile--current {
  background: var(--tint-crafts);
  border: var(--border);
  box-shadow: 0 4px 0 var(--color-ink);
}

.farm-tile--add {
  background: var(--color-page);
  border: 2px dashed var(--color-primary);
  color: var(--color-primary);
}

.farm-tile__text {
  display: grid;
}

.farm-tile small,
.farm-row small {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.farm-tile__editing {
  display: none;
}

.farm-tile--current .farm-tile__editing {
  display: block;
}

@media (min-width: 760px) {
  .farm-setup {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--space-5);
    padding-top: var(--space-6);
  }

  /* Before the first farm there is no farm list, so the form takes the whole width. */
  .farm-setup:not(:has(.farm-switcher)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .farm-switcher__list {
    flex-direction: column;
    overflow: visible;
  }

  .farm-tile__editing {
    display: none !important;
  }

  .farm-tile--current .farm-tile__meta {
    display: block;
  }
}

@media (max-width: 759px) {
  .farm-tile__meta {
    display: none;
  }

  .farm-tile--current .farm-tile__editing {
    display: block;
  }

  /* On a phone the list is a row of tiles above the form, and the heading follows it. */
  .farm-setup {
    padding-top: var(--space-4);
  }
}

.farm-form {
  display: grid;
  gap: var(--space-4);
}

.farm-errors {
  background: var(--color-note);
}

.farm-errors ul {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
}

.farm-details {
  display: grid;
  gap: var(--space-4);
}

.farm-details fieldset.field {
  min-width: max-content;
}

/* Name, season, and day share one row when they fit. When the row runs out of room the day,
   then the season, wrap below instead of sliding over the name. The name never shrinks below
   16rem. */
@media (min-width: 760px) {
  .farm-details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: var(--space-5);
  }

  .farm-details__name {
    flex: 1 1 16rem;
  }
}

.farm-mode {
  margin: 0;
  min-width: 0;
}

.farm-mode__title {
  float: left;
  width: 100%;
  padding: 0;
  font-size: 1.375rem;
  font-weight: 800;
}

.farm-mode__choices {
  clear: both;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 760px) {
  .farm-mode__choices {
    grid-template-columns: 1fr 1fr;
  }
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-button);
  cursor: pointer;
}

.mode-card:has(input:checked) {
  background: var(--tint-fish);
  border: var(--border);
  box-shadow: 0 4px 0 var(--color-ink);
}

.mode-card input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.mode-card__text {
  display: grid;
  gap: var(--space-1);
}

.farm-mode__hint {
  margin-top: var(--space-4);
  font-size: 0.9375rem;
}

/* Remixed picks only show while Remixed is selected. */
.farm-form:has(input[value="standard"]:checked) .remix-panel {
  display: none;
}

.remix-panel__head {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 760px) {
  .remix-panel__head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.psst {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 360px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-page);
  border: 2px dashed var(--color-chip-border);
  border-radius: var(--radius-button);
  font-size: 0.9375rem;
}

.psst .icon {
  flex: none;
  width: 32px;
  height: 32px;
}

.remix-panel__open {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-note);
  border: var(--border-thin);
  border-radius: var(--radius-button);
}

.pick-group {
  position: relative;
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pick-group__count {
  color: var(--color-text-secondary);
  font-size: var(--size-footnote);
}

.pick-group__count--over {
  color: var(--color-danger);
  font-weight: 700;
}

.pick-more {
  container-type: inline-size;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px dashed var(--color-chip-border);
}

.pick-more summary {
  min-height: var(--target);
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

/* One bordered band per room: the room and its count in a tinted column, one line per choosing slot. */
.pick-rooms {
  container-type: inline-size;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pick-band,
.pick-card {
  background: var(--color-card);
  border: var(--border-thin);
}

.pick-band--crafts, .pick-card--crafts { --pick-tint: var(--tint-crafts); }
.pick-band--pantry, .pick-card--pantry { --pick-tint: var(--tint-pantry); }
.pick-band--fish, .pick-card--fish { --pick-tint: var(--tint-fish); }
.pick-band--boiler, .pick-card--boiler { --pick-tint: var(--tint-boiler); }
.pick-band--bulletin, .pick-card--bulletin { --pick-tint: var(--tint-bulletin); }
.pick-band--other, .pick-card--other { --pick-tint: var(--tint-other); }

.pick-band {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 14px;
}

.pick-band__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 14px;
  background: var(--pick-tint);
  border-right: var(--border-thin);
}

.pick-band__head h3,
.pick-card__head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.pick-band__body {
  padding: 4px 14px;
}

.pick-pill {
  display: inline-block;
  padding: 1px 10px;
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: 999px;
  font-size: var(--size-footnote);
  font-weight: 700;
  white-space: nowrap;
}

.pick-pill--done {
  background: var(--color-gold);
}

.pick-line {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.pick-line + .pick-line {
  border-top: 2px solid var(--color-page);
}

.pick-line__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Separate chips of one fixed width, so they line up row after row. */
.pick-chips {
  display: grid;
  grid-template-columns: repeat(3, 170px);
  gap: var(--space-2);
  min-width: 0;
}

.pick-chips .choice,
.pick-rows .choice {
  display: flex;
}

.pick-chips .choice span,
.pick-rows .choice span {
  width: 100%;
  padding: 4px var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
}

/* A full group locks its unpicked chips: dashed and quiet, not a button; they fade back once a pick comes off. */
.choice--pick input:disabled:not(:checked) + span {
  background: transparent;
  border-style: dashed;
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

.choice:has(input:disabled:not(:checked)) {
  cursor: not-allowed;
}

/* Random items and either-or slots: one card per bundle, tinted by its room. */
.pick-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: var(--space-4);
}

.pick-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--color-ink);
}

.pick-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 12px;
  background: var(--pick-tint);
  border-bottom: var(--border-thin);
}

.pick-card__room {
  margin: 0;
  padding: var(--space-2) 12px 0;
  color: var(--color-text-secondary);
  font-size: var(--size-footnote);
}

.pick-line + .pick-line--stacked,
.pick-line--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 10px 12px 0;
  border-top: 0;
}

.pick-line--stacked:last-child {
  padding-bottom: 12px;
}

.pick-line--stacked .pick-line__label {
  font-size: var(--size-footnote);
  font-weight: 700;
}

.pick-chips--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Item rows: a checkbox square and the name, full width. */
.pick-rows {
  display: grid;
  gap: var(--space-2);
}

.choice--row span {
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 12px;
  text-align: left;
}

.choice--row span::before {
  content: "";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
}

.choice--row input:checked + span::before {
  content: "✓";
  margin: 0;
  background: var(--color-ink);
  color: var(--color-card);
}

.choice--row input:disabled:not(:checked) + span::before {
  background: transparent;
  border: 2px dashed var(--color-chip-border);
}

/* Narrower than the full layout: the band's name and count sit in a row above the slots. */
@container (max-width: 879px) {
  .pick-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-band__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-right: 0;
    border-bottom: var(--border-thin);
  }
}

@container (max-width: 719px) {
  .pick-line {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }
}

@container (max-width: 600px) {
  .pick-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pick-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (min-width: 601px) and (max-width: 879px) {
  .pick-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.farm-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-5);
}

.farm-form__actions a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 700;
}

@media (max-width: 759px) {
  .farm-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .farm-form__actions a {
    justify-content: center;
  }
}

/* The mode-switch warning. */
.confirm {
  display: grid;
  gap: var(--space-4);
  max-width: 520px;
  margin: var(--space-6) auto var(--space-7);
  width: calc(100% - 2 * var(--space-4));
}

.confirm h1:focus {
  outline: none;
}

.confirm__icon {
  width: 60px;
  height: 60px;
}

.confirm__count {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gold);
  border: var(--border-thin);
  border-radius: var(--radius-button);
}

.confirm__form {
  display: block;
}

/* The header chip and its panel. */
.farm-chip {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.farm-chip__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-button);
  color: var(--color-ink);
  font: inherit;
  cursor: pointer;
}

.farm-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-chip__detail {
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.site-header--farm .site-header__sky {
  grid-column: 2;
  grid-row: 1;
}

.site-header--farm .site-header__actions {
  grid-column: 3;
  grid-row: 1;
}

.farm-panel {
  inset: auto;
  top: 100px;
  left: clamp(16px, 28vw, 396px);
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: var(--space-4) var(--space-5) var(--space-3);
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}

.farm-panel h2 {
  margin-bottom: var(--space-3);
}

.farm-panel__date {
  display: grid;
  gap: var(--space-3);
}

.farm-panel__row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
}

.farm-panel__row .button {
  flex: 1;
}

.choice-row--quick {
  flex-wrap: nowrap;
}

.choice-row--quick .choice {
  flex: 1;
}

.choice-row--quick .choice span {
  width: 100%;
  padding: 0 var(--space-1);
  font-size: 0.9375rem;
}

.farm-panel__farms {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 2px dashed var(--color-chip-border);
}

.farm-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 52px;
  padding: var(--space-1) var(--space-3);
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-button);
  color: var(--color-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.farm-row--current {
  background: var(--tint-crafts);
  border: var(--border);
  cursor: default;
}

.farm-row .icon-tile {
  width: 36px;
  height: 36px;
}

.farm-row__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.farm-row__tag {
  font-size: 0.8125rem;
  font-weight: 700;
}

.farm-row__form {
  display: block;
}

.farm-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.farm-panel__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 700;
}

.farm-panel::backdrop {
  background: rgba(31, 58, 95, 0.45);
}

@media (max-width: 759px) {
  /* The label drops out on a phone and the arrow stays, so the farm chip has room. */
  .hide-small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-header--farm.site-header--short {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .farm-chip {
    justify-self: end;
    max-width: 100%;
  }

  .farm-chip__button {
    min-height: var(--target);
    padding: 0 var(--space-3);
  }

  .farm-chip__detail {
    display: none;
  }

  .farm-chip__name {
    max-width: 28vw;
  }

  .farm-panel {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: var(--space-5);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }
}

/* Merge sheet: both sides' farms. */
.merge {
  display: grid;
  gap: var(--space-4);
  max-width: 560px;
  margin: var(--space-6) auto var(--space-7);
  width: calc(100% - 2 * var(--space-4));
}

.merge__sides {
  display: grid;
  gap: var(--space-3);
}

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

.merge__side {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-button);
}

.merge__side--device {
  background: var(--tint-crafts);
}

.merge__side--account {
  background: var(--tint-fish);
}

.merge__side ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.merge__side strong,
.merge__count {
  display: block;
}

.merge__side strong {
  font-size: 1.1875rem;
}

.merge__psst {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-page);
  border: 2px dashed var(--color-chip-border);
  border-radius: var(--radius-button);
}

.merge__psst .icon {
  flex: none;
  width: 40px;
  height: 40px;
}

.merge__discard {
  color: var(--color-danger);
  text-decoration: underline;
}

.merge .button_to {
  display: block;
}

/* ---------- Item pages ---------- */
.item-page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.crumbs li + li::before {
  content: "›";
  margin-right: var(--space-2);
}

.crumbs [aria-current="page"] {
  font-weight: 800;
}

.item-page__grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.item-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.item-card__head .eyebrow {
  color: var(--color-primary);
}

.item-card__head h1 {
  margin: var(--space-1) 0 0;
}

.item-card__lede {
  margin: var(--space-4) 0;
  color: var(--color-text-secondary);
}

.item-card__label {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--size-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-card__places {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
}

.item-card__links {
  margin-top: var(--space-5);
}

.icon-tile--large {
  flex: none;
  width: 72px;
  height: 72px;
  border: var(--border);
  border-radius: var(--radius-card);
}

.icon-tile--large .icon {
  width: 40px;
  height: 40px;
}

.icon-tile--small {
  flex: none;
  width: 44px;
  height: 44px;
  border: var(--border-thin);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: 0;
}

.fact {
  padding: var(--space-3) var(--space-4);
  border: var(--border-thin);
  border-radius: var(--radius-button);
}

.fact dt {
  font-size: var(--size-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact dd {
  margin: var(--space-1) 0 0;
  font-weight: 800;
}

.fact--season { background: var(--tint-crafts); }
.fact--weather { background: var(--tint-fish); }
.fact--time { background: var(--tint-pantry); }
.fact--quality { background: var(--tint-bulletin); }

.item-side {
  display: grid;
  gap: var(--space-5);
}

.card--panel {
  padding: 0;
  overflow: hidden;
}

.card--panel > :not(.panel__head):not(.panel__list) {
  margin-right: var(--space-5);
  margin-left: var(--space-5);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--tint-fish);
  border-bottom: var(--border);
}

.panel__head h2,
.today h2 {
  font-size: var(--size-card-title);
}

.badge {
  padding: var(--space-1) var(--space-3);
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: var(--radius-button);
  font-weight: 800;
  white-space: nowrap;
}

.panel__list {
  margin: 0;
  padding: var(--space-3) var(--space-5);
  list-style: none;
}

.panel__empty {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.panel__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.panel__text {
  display: grid;
}

.panel__facts {
  color: var(--color-text-secondary);
  font-size: var(--size-footnote);
}

.panel__name--done {
  color: var(--color-text-done);
  text-decoration: line-through;
}

/* A drawn box, with a tick when on, so state never leans on color. */
.tick {
  flex: none;
  width: 24px;
  height: 24px;
  border: var(--border-thin);
  border-radius: 6px;
  background: var(--color-card);
}

.tick--on {
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* The side margins come from .card--panel, so only the top and bottom pad here. */
.today {
  padding: var(--space-5) 0;
}

.today > * + * {
  margin-top: var(--space-4);
}

.season-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.season-chip {
  display: grid;
  justify-items: center;
  padding: var(--space-2);
  border: var(--border-thin);
  border-color: var(--color-chip-border);
  border-radius: var(--radius-button);
  color: var(--color-text-secondary);
  font-weight: 700;
}

.season-chip__answer {
  font-size: var(--size-footnote);
}

.season-chip--on {
  border-color: var(--color-ink);
  color: var(--color-ink);
  box-shadow: 0 3px 0 var(--color-ink);
}

.season-chip--on.season-chip--spring { background: var(--color-hill-light); }
.season-chip--on.season-chip--summer { background: var(--color-gold); }
.season-chip--on.season-chip--fall { background: var(--tint-boiler); }
.season-chip--on.season-chip--winter { background: var(--tint-fish); }

/* Your farm's season gets a dashed outline, so it shows without color. */
.season-chip--current {
  outline: 3px dashed var(--color-ink);
  outline-offset: 2px;
}

.today__note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--tint-fish);
  border: var(--border-thin);
  border-radius: var(--radius-button);
}

.today__rule {
  color: var(--color-text-secondary);
}

@media (min-width: 1100px) {
  .item-page__grid {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* A page that looks like a dialog: a scrim over the real page, and a card above it. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(31, 58, 95, 0.45);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 41;
  display: grid;
  gap: var(--space-4);
  width: min(480px, calc(100% - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-4));
  padding: var(--space-5);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}

.modal h1 {
  font-size: var(--size-title);
  line-height: 1.2;
}

.modal h1:focus {
  outline: none;
}

.modal--center {
  justify-items: stretch;
  text-align: center;
}

.modal__art {
  display: flex;
  justify-content: center;
}

.modal__art .raincloud {
  width: 96px;
}

.modal__icon {
  width: 60px;
  height: 60px;
  justify-self: center;
}

.modal__lede {
  color: var(--color-text-secondary);
}

.modal__note {
  font-size: var(--size-footnote);
  line-height: var(--line-footnote);
  color: var(--color-text-secondary);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-width: 2px;
}

.modal__skip {
  justify-self: center;
  font-weight: 700;
}

.modal__form {
  display: grid;
  gap: var(--space-3);
  text-align: left;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.modal__actions > *,
.modal__action {
  flex: 1 1 140px;
}

.modal__actions .button {
  width: 100%;
}

.modal__or {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--color-text-secondary);
}

.modal__or::before,
.modal__or::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--color-chip-border);
}

.modal .field input[type="email"],
.account .field input[type="email"],
.method__add input[type="email"] {
  width: 100%;
  min-height: var(--target);
  padding: 0 var(--space-3);
  background: var(--color-page);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font: inherit;
}

.modal .field {
  text-align: left;
}

.field__error {
  color: var(--color-danger);
  font-weight: 700;
}

[data-flash] {
  width: min(var(--account-width), calc(100% - 2 * var(--space-4)));
  margin: var(--space-4) auto 0;
}

.modal [data-flash] {
  margin: 0;
  padding: var(--space-3);
  background: var(--color-note);
  border: var(--border-thin);
  border-radius: var(--radius-button);
  font-weight: 700;
}

@media (max-width: 759px) {
  /* Bottom sheet with a handle. */
  .modal--sheet {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 92dvh;
    transform: none;
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: none;
    padding-bottom: var(--space-6);
  }

  .modal--sheet .sheet__handle {
    justify-self: center;
  }
}

@media (min-width: 760px) {
  .modal--sheet .sheet__handle {
    display: none;
  }
}

/* Google's button. Colors, stroke, and type are Google's own; see the partial. */
@font-face {
  font-family: "Google Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/google-sans-medium-9eab4ce1.woff2") format("woff2");
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px 0 12px;
  background: #FFFFFF;
  border: 0;
  border-radius: var(--radius-button);
  box-shadow: inset 0 0 0 1px #747775;
  color: #1F1F1F;
  font: 500 14px/20px "Google Sans", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  cursor: pointer;
}

.google-button:hover {
  box-shadow: inset 0 0 0 1px #747775, 0 1px 3px rgba(60, 64, 67, 0.3);
}

.google-button:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}

.google-button__logo {
  flex: none;
}

/* ---------- Account ---------- */

.account {
  width: min(var(--account-width), calc(100% - 2 * var(--space-4)));
  margin: var(--space-6) auto var(--space-7);
}

.account h1 {
  margin-bottom: var(--space-5);
}

.account__grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 760px) {
  .account__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.account-card {
  display: grid;
  gap: var(--space-4);
}

.account-card h2 {
  font-size: var(--size-card-title);
}

.account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.account-name {
  font-size: var(--size-card-title);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-view {
  display: grid;
  gap: var(--space-1);
}

.account-view .account-value {
  font-weight: 400;
}

.account-divider {
  margin: 0;
  border: 0;
  border-top: 2px dashed var(--color-chip-border);
}

.account-signout {
  justify-self: start;
  padding: 0;
}

.account-form {
  display: grid;
  gap: var(--space-4);
}

.account-form .field input[type="text"] {
  background: var(--color-page);
  border: 2px solid var(--color-ink);
}

.account-value {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-note {
  font-size: var(--size-footnote);
  line-height: var(--line-footnote);
  color: var(--color-text-secondary);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.account-actions__form,
.method__form {
  display: block;
}

.button--small {
  min-height: var(--target);
  padding: 0 var(--space-4);
}

.button--danger {
  background: var(--color-danger);
  color: #fff;
}

.methods {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 2px dashed var(--color-chip-border);
}

.method:last-child {
  border-bottom: 0;
}

.method__icon {
  display: inline-flex;
  color: var(--color-ink);
}

.method__text {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.method .link-button {
  padding: 0 var(--space-2);
}

.method__state {
  font-size: var(--size-footnote);
  color: var(--color-text-secondary);
}

.method--email .method__state {
  display: block;
}

.method:not(.method--email) .method__state {
  font-size: inherit;
}

.method__add {
  display: flex;
  flex: 1 1 100%;
  gap: var(--space-2);
}

.method__add input {
  flex: 1;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 32px;
  padding: 0 var(--space-3);
  background: var(--tint-crafts);
  border: var(--border-thin);
  border-radius: var(--radius-tile);
  font-size: 0.9375rem;
  font-weight: 700;
}

.badge .icon {
  width: 16px;
  height: 16px;
}

.account-farms {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-farm {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: var(--border-thin);
  border-radius: var(--radius-button);
}

/* Tints alternate down the list, so neighbors never match. */
.account-farm--gold {
  background: var(--tint-pantry);
}

.account-farm--green {
  background: var(--tint-crafts);
}

.account-farm__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.account-farm__text small {
  color: var(--color-text-secondary);
  font-size: var(--size-footnote);
}

.add-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  background: var(--color-soft);
  border: 2px dashed var(--color-chip-border);
  border-radius: var(--radius-button);
  color: var(--color-link);
  font-weight: 700;
  text-decoration: none;
}

.import-form {
  display: contents;
}

.import-form__button:focus-within {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}

.confirm-page {
  display: grid;
  gap: var(--space-4);
  width: min(520px, calc(100% - 2 * var(--space-4)));
  margin: var(--space-6) auto var(--space-7);
}

.confirm-page h1:focus {
  outline: none;
}

@media (max-width: 759px) {
  /* A phone keeps the account page's back arrow on the left, as mocked. */
  .site-header--back-left {
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: var(--space-3);
  }

  .site-header--back-left .site-header__actions {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header--back-left .wordmark {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header--back-left .site-header__sky {
    grid-column: 3;
    grid-row: 1;
  }

  .account-actions .button {
    flex: 1 1 auto;
  }

  .icon-swap--back {
    display: none;
  }
}

.icon-swap--close {
  display: none;
}

@media (max-width: 759px) {
  .icon-swap--close {
    display: inline-flex;
  }
}

/* ---------- Tracker ---------- */

/* The hills follow the season filter. */
body[data-season="summer"] {
  --color-hill-light: #E2DB8C;
  --color-hill-dark: #C8C463;
}

body[data-season="fall"] {
  --color-hill-light: #F2C28A;
  --color-hill-dark: #DE9E5E;
}

body[data-season="winter"] {
  --color-hill-light: #E3EFF8;
  --color-hill-dark: #BCD5E8;
}


.tracker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 0 var(--space-7);
}

.tracker__main {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-4) var(--space-4) 0;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex: none;
  min-height: var(--target);
  padding: 0 var(--space-4);
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font: 600 0.9375rem/1 var(--font-family);
  white-space: nowrap;
  cursor: pointer;
}

.chip[aria-pressed="true"],
.chip--on {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
  box-shadow: 0 3px 0 var(--color-ink);
  transform: translateY(-1px);
}

.chip--gold {
  background: var(--color-gold);
  border: var(--border);
  box-shadow: var(--shadow-button);
  color: var(--color-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Phone chip row */
.chiprow {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-card);
  border-bottom: var(--border);
}

.chiprow::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.chiprow__scroll {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

/* Filters: a sheet on phones, a bar on tablet, a card on wide screens. */
.filters {
  inset: auto 0 0 0;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-5);
  overflow-y: auto;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--color-card);
  color: var(--color-ink);
}

.filters::backdrop {
  background: rgba(31, 58, 95, 0.45);
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.filters__group {
  min-width: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 0;
}

.filters__group legend,
.filters__group label.eyebrow {
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
}

/* The menu chip and its popover only exist on tablet; elsewhere the chips just sit in place. */
.chip--menu {
  display: none;
}

.chips--menu,
.chips--menu:popover-open {
  position: static;
  inset: auto;
  display: flex;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  color: inherit;
}

.filters__search {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--color-page);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font: inherit;
}

.filters__hide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
  border-top: 2px dashed var(--color-chip-border);
  font-weight: 700;
}

.filters__today {
  display: none;
}

.filters__done {
  margin-top: var(--space-2);
}

/* Progress */
.progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.progress__title {
  font-size: var(--size-title);
}

.progress__count {
  font-weight: 700;
}

.meter {
  --pct: 0;
  position: relative;
  height: 28px;
  margin: var(--space-3) 0;
  background: #E4EEF9;
  border: var(--border);
  border-radius: 999px;
}

.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pct) * 1%);
  background: var(--color-hill-dark);
  border-radius: 999px;
  transition: width 400ms ease;
}

.meter__star {
  position: absolute;
  top: 50%;
  left: clamp(14px, calc(var(--pct) * 1%), calc(100% - 14px));
  width: 26px;
  height: 26px;
  color: var(--color-ink);
  transform: translate(-50%, -50%);
  transition: left 400ms ease;
}

.meter__star .icon {
  width: 100%;
  height: 100%;
  fill: var(--color-gold);
}

.rooms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--target);
  padding: 0 14px;
  border: var(--border-thin);
  border-radius: var(--radius-tile);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.room-pill--crafts { background: var(--tint-crafts); }
.room-pill--pantry { background: var(--tint-pantry); }
.room-pill--fish { background: var(--tint-fish); }
.room-pill--boiler { background: var(--tint-boiler); }
.room-pill--bulletin { background: var(--tint-bulletin); }
.room-pill--other { background: var(--color-note); }

.tracker__summary,
.tracker__notice {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.tracker__notice {
  padding: var(--space-3) var(--space-4);
  background: var(--color-note);
  border: 2px dashed var(--color-chip-border);
  border-radius: var(--radius-button);
  color: var(--color-ink);
}

.tracker__summary .link-button {
  min-height: var(--target);
  padding: 0 var(--space-1);
  font-size: inherit;
}

.tracker__summary--today {
  padding: var(--space-3) var(--space-4);
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: var(--radius-button);
  color: var(--color-ink);
}

.tracker__section {
  display: grid;
  gap: var(--space-4);
}

.tracker__after {
  font-size: 1.25rem;
}

.tracker__after small {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 400;
}

.bundles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

/* Bundles */
.bundle {
  position: relative;
  scroll-margin-top: var(--space-6);
  padding: 0;
}

.bundle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--target);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border);
  border-radius: 15px 15px 0 0;
  list-style: none;
  cursor: pointer;
}

.bundle__head::-webkit-details-marker {
  display: none;
}

.bundle:not([open]) .bundle__head {
  border-bottom: 0;
  border-radius: 15px;
}

.bundle__title {
  display: grid;
  min-width: 0;
}

.bundle__title strong {
  font-size: var(--size-card-title);
}

.bundle__count {
  flex: none;
  padding: 5px 12px;
  background: var(--color-card);
  border: var(--border-thin);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.bundle--crafts .bundle__head { background: var(--tint-crafts); }
.bundle--pantry .bundle__head { background: var(--tint-pantry); }
.bundle--fish .bundle__head { background: var(--tint-fish); }
.bundle--boiler .bundle__head { background: var(--tint-boiler); }
.bundle--bulletin .bundle__head { background: var(--tint-bulletin); }
.bundle--other .bundle__head { background: var(--color-note); }

/* The sticker sits on the card's corner, never on the count. */
.bundle__star {
  position: absolute;
  top: -16px;
  left: -12px;
  display: none;
  width: 40px;
  height: 40px;
  color: var(--color-ink);
  transform: rotate(-12deg);
}

.bundle__star .icon {
  width: 100%;
  height: 100%;
  fill: var(--color-gold);
}

.bundle[data-complete="true"] .bundle__star {
  display: block;
}

.bundle__rows {
  margin: 0;
  padding: var(--space-1) var(--space-3) var(--space-2);
  list-style: none;
}

.bundle__note,
.bundle__foot {
  margin: 0;
  padding: 0 var(--space-4) var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--size-footnote);
  line-height: var(--line-footnote);
}

/* Rows */
.slot {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 56px;
}

.slot__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: 56px;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  border-radius: var(--radius-button);
  color: var(--color-ink);
  text-decoration: none;
}

a.slot__main:hover {
  background: var(--color-page);
}

.slot--open .slot__main {
  background: var(--color-page);
  box-shadow: inset 0 0 0 2px var(--color-chip-border);
}

.slot__main .icon-tile {
  width: 36px;
  height: 36px;
}

.slot__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.slot__meta {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.3;
}

.slot--done .slot__name {
  color: var(--color-text-done);
  text-decoration: line-through;
}

.slot__more {
  display: inline-flex;
  flex: none;
}

/* The checkbox is its own 44px target. */
.check {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--target);
  height: var(--target);
}

.check__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check__box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--color-card);
  border: 2px solid var(--color-chip-border);
  border-radius: 7px;
  color: #fff;
  pointer-events: none;
}

.check__box .icon {
  width: 18px;
  height: 18px;
  opacity: 0;
}

.check__input:checked + .check__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.check__input:checked + .check__box .icon {
  opacity: 1;
}

.check__input:focus-visible + .check__box {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}

.check--pop .check__box {
  animation: check-pop 320ms ease-out;
}

.check--pop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: -16px -12px 0 var(--color-gold), 16px -12px 0 var(--color-hill-light), -14px 14px 0 var(--color-hill-light), 15px 13px 0 var(--color-gold);
  opacity: 0;
  animation: check-sparkle 420ms ease-out;
}

@keyframes check-pop {
  40% { transform: scale(1.25); }
}

@keyframes check-sparkle {
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

/* Nothing matches */
.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.empty .raincloud {
  width: 120px;
}

/* Today's question: a sheet on phones, anchored beside its button above that. */
.today-panel {
  inset: auto 0 0 0;
  width: 100%;
  margin: 0;
  padding: var(--space-4) var(--space-5) var(--space-6);
  border: var(--border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--color-card);
  color: var(--color-ink);
}

.today-panel::backdrop {
  background: rgba(31, 58, 95, 0.45);
}

.today-panel__lede,
.today-panel__note {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.today-panel__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-2);
}

.today-panel__note .link-button {
  min-height: var(--target);
  padding: 0;
  font-size: inherit;
}

/* Item detail: a sheet below 1100px, a side panel beside the list above. */
.detail {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
}

.detail__inner {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5) var(--space-5);
}

.detail__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
}

.detail__strip {
  color: var(--color-text-secondary);
  font-weight: 600;
}

turbo-frame#item_detail:empty::before {
  content: "Loading...";
  color: var(--color-text-secondary);
}

.toast {
  position: fixed;
  top: auto;
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  border: 0;
  border-radius: var(--radius-button);
  color: #fff;
  font-weight: 600;
}

.site-header__coffee .icon {
  width: 24px;
  height: 24px;
}

.site-header__wide {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.menu-popover__button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--target);
  padding: 0 var(--space-3);
  background: none;
  border: 0;
  color: var(--color-ink);
  font: 700 var(--size-body) var(--font-family);
  cursor: pointer;
}

@media (max-width: 759px) {
  .site-header__wide {
    display: none;
  }

  .tracker__main {
    padding-top: var(--space-5);
  }

  .progress .rooms {
    display: none;
  }

  .toast {
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 760px) {
  .chiprow {
    display: none;
  }

  .tracker {
    padding: var(--space-5) var(--space-6) var(--space-7);
    gap: var(--space-5);
  }

  .tracker__main {
    padding: 0;
  }

  /* The popover attribute stays, but the block is simply on the page. */
  .filters {
    position: static;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--space-3) var(--space-4);
    max-height: none;
    padding: var(--space-4) var(--space-5);
    overflow: visible;
    border-bottom: var(--border);
    border-radius: var(--radius-card);
  }

  .filters__head,
  .filters__done {
    display: none;
  }

  .filters__group {
    order: 3;
    margin: 0;
  }

  .filters__group--search {
    flex: 1 1 320px;
    order: 1;
  }

  .filters__today {
    display: inline-flex;
    order: 2;
  }

  .filters__hide {
    order: 6;
    gap: var(--space-3);
    margin: 0 0 0 auto;
    padding: 0;
    border-top: 0;
  }

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

  .today-panel {
    inset: auto;
    width: min(332px, calc(100vw - 32px));
    padding-bottom: var(--space-4);
    border-bottom: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

  .today-panel::backdrop {
    background: none;
  }

  /* Detail on tablet: the centered sheet. */
  .detail {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    margin: auto;
    border-bottom: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

  .detail::backdrop {
    background: rgba(31, 58, 95, 0.45);
  }

  .toast {
    right: auto;
    left: var(--space-5);
    margin: 0;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .chip--menu {
    display: inline-flex;
  }

  /* The menu chip names the group, so its legend is only for screen readers. */
  .filters__group:has(.chip--menu) legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .chips--menu:not(:popover-open) {
    display: none;
  }

  .chips--menu:popover-open {
    position: fixed;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    min-width: 180px;
    padding: var(--space-3);
    background: var(--color-card);
    border: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }
}

@media (min-width: 1100px) {
  .tracker {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .tracker:has(.detail[open]:not(:modal)) {
    grid-template-columns: 264px minmax(0, 1fr) 360px;
  }

  .filters {
    position: sticky;
    top: var(--space-4);
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    max-height: calc(100vh - 2 * var(--space-4));
    overflow-y: auto;
  }

  .filters__group {
    margin-bottom: var(--space-4);
  }

  .filters__hide {
    margin: 0 0 var(--space-4);
    padding-top: var(--space-2);
    border-top: 2px dashed var(--color-chip-border);
  }

  .filters__today {
    display: flex;
    width: 100%;
  }

  .tracker__main {
    grid-column: 2;
    grid-row: 1;
  }

  /* Open beside the list instead of over it. */
  .detail:not(:modal) {
    position: sticky;
    top: var(--space-4);
    grid-column: 3;
    grid-row: 1;
    inset: auto;
    width: auto;
    max-height: calc(100vh - 2 * var(--space-4));
    margin: 0;
  }

  .toast {
    left: calc(264px + var(--space-6) + var(--space-5));
  }
}

.detail__tip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-page);
  border: 2px dashed var(--color-chip-border);
  border-radius: var(--radius-button);
}

.detail__tip .raincloud {
  flex: none;
  width: 44px;
}

.check__box .icon {
  stroke-width: 3.5;
}

/* Filter chips wear their tint, as mocked: a season or weather chip fills when picked, and each type always carries its own. */
.filters .chip[data-tracker-value-param="spring"][aria-pressed="true"] {
  background: var(--color-hill-light);
}

.filters .chip[data-tracker-value-param="summer"][aria-pressed="true"] {
  background: var(--color-gold);
}

.filters .chip[data-tracker-value-param="fall"][aria-pressed="true"] {
  background: var(--tint-boiler);
}

.filters .chip[data-tracker-value-param="winter"][aria-pressed="true"],
.filters .chip[data-tracker-target="weatherChip"][aria-pressed="true"] {
  background: var(--tint-fish);
}

.filters .chip--fishing {
  background: var(--tint-fish);
}

.filters .chip--foraging {
  background: var(--tint-crafts);
}

.filters .chip--mining {
  background: var(--tint-bulletin);
}

.filters .chip--farming {
  background: var(--tint-pantry);
}

.filters .chip--other {
  background: var(--tint-other);
}

.filters .chip[data-tracker-value-param][aria-pressed="true"] {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/* The row arrow points toward the item, as mocked. */
.slot__more .icon {
  transform: rotate(-90deg);
}

.mode-card__short {
  display: none;
}

.button--danger {
  justify-self: start;
}

@media (max-width: 759px) {
  /* Phone: the count shortens to the percentage and the title keeps one line. */
  .progress__of {
    display: none;
  }

  .progress__title {
    white-space: nowrap;
  }

  /* The heading leads, then the farms row, then the form. */
  .farm-setup__main {
    display: contents;
  }

  .farm-setup__main > h1 {
    order: -1;
  }

  .farm-details .field:has(.stepper) {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .farm-mode__choices {
    grid-template-columns: 1fr 1fr;
  }

  .mode-card__long {
    display: none;
  }

  .mode-card__short {
    display: inline;
  }
}

@media (min-width: 760px) {
  .farm-setup {
    max-width: none;
    padding-inline: var(--space-6);
  }
}
