/* Top Crop theme layer: appearance tokens (light / dark, accent, text size, motion), the readable
   farm-office palette, dark dialogs, and the small finishing touches. Loaded after every other sheet. */

/* ------------------------------------------------------------------ accents */
html[data-accent='prairie'] {
  --lime: #8fca6a;
}
html[data-accent='sky'] {
  --lime: #6fb3e8;
}
html[data-accent='sunset'] {
  --lime: #e8795a;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --fh-bg: #eef0e6;
  --fh-surface: #ffffff;
  --fh-surface-2: #f5f6f0;
  --fh-ink: #14291e;
  --fh-muted: #4c5d50;
  --fh-faint: #66766a;
  --fh-line: #14291e1a;
  --fh-line-strong: #14291e38;
  --fh-input: #ffffff;
  --fh-accent-ink: color-mix(in srgb, var(--lime) 45%, #3a2a00);
  --fh-accent-soft: color-mix(in srgb, var(--lime) 18%, transparent);
  --fh-good: #1a6e33;
  --fh-good-bg: #e3f2e6;
  --fh-warn: #855000;
  --fh-warn-bg: #fdf0d8;
  --fh-bad: #a8231b;
  --fh-bad-bg: #fbe8e5;
  --fh-info: #1c5a93;
  --fh-info-bg: #e3eefa;
  --fh-fair: #4c5d50;
  --fh-fair-bg: #eceee6;
  --fh-shadow: 0 1px 2px #14291e0d, 0 6px 18px #14291e0f;
}
html[data-theme='dark'] {
  --fh-bg: #0e1b14;
  --fh-surface: #15271e;
  --fh-surface-2: #1b3027;
  --fh-ink: #edf0e4;
  --fh-muted: #b6c3af;
  --fh-faint: #95a491;
  --fh-line: #ffffff17;
  --fh-line-strong: #ffffff33;
  --fh-input: #0f2018;
  --fh-accent-ink: var(--lime);
  --fh-good: #93d37e;
  --fh-good-bg: #1d3a25;
  --fh-warn: #f1c56c;
  --fh-warn-bg: #3a2f16;
  --fh-bad: #f29a8e;
  --fh-bad-bg: #43231e;
  --fh-info: #92c5ef;
  --fh-info-bg: #1a3146;
  --fh-fair: #cdd5c6;
  --fh-fair-bg: #24382d;
  --fh-shadow: 0 1px 2px #0005, 0 8px 22px #0004;
}
::selection {
  background: color-mix(in srgb, var(--lime) 45%, transparent);
}
html {
  scrollbar-color: color-mix(in srgb, var(--lime) 55%, #556) transparent;
}

/* ------------------------------------------------------------------ header theme button */
.theme-btn {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  background: transparent;
  color: var(--paper);
  font-size: 18px;
  line-height: 1;
}
.theme-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}
@media (max-width: 700px) {
  .theme-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
    margin-right: 6px;
  }
}

/* ------------------------------------------------------------------ farm office: surfaces */
#farm-hub {
  background: var(--fh-bg);
  color: var(--fh-ink);
}
#farm-hub .fh-main {
  background:
    radial-gradient(1200px 260px at 100% -40px, var(--fh-accent-soft), transparent 70%), var(--fh-bg);
}
#farm-hub :is(.fh-timeline, .fh-card, .fh-kpi, .fh-tile-add, .lab-card, .store-item) {
  background: var(--fh-surface);
  border: 1px solid var(--fh-line);
  box-shadow: var(--fh-shadow);
}
#farm-hub .fh-card .fh-kpi,
#farm-hub .fh-card .lab-card {
  background: var(--fh-surface-2);
  box-shadow: none;
}
#farm-hub .fh-bell {
  background: var(--fh-surface);
  color: var(--fh-ink);
  border-color: var(--fh-line-strong);
}
#farm-hub .fh-top {
  border-bottom-color: var(--fh-line);
}
#farm-hub
  :is(
    .fh-crumb,
    .fh-top-stats small,
    .fh-top-stats em,
    .fh-card-head small,
    .fh-kpi small,
    .fh-kpi span,
    .fh-seg-big small,
    .fh-empty,
    .tl-months span,
    .tl-label,
    .fh-legend-note,
    .fh-chart figcaption small,
    .fh-steps li,
    .fh-chart-table summary,
    .fh-legend
  ) {
  color: var(--fh-muted);
}
#farm-hub .fh-top-stats em.live,
#farm-hub .fh-steps li.done,
#farm-hub .positive,
#farm-hub .fh-kpi.pos b {
  color: var(--fh-good);
}
#farm-hub .negative,
#farm-hub .fh-kpi.neg b {
  color: var(--fh-bad);
}
#farm-hub .fh-steps li.next {
  color: var(--fh-ink);
}
#farm-hub .fh-chart-empty,
#farm-hub .tl-empty {
  color: var(--fh-faint);
}
#farm-hub .fh-seg {
  background: var(--fh-surface-2);
  border: 1px solid var(--fh-line);
}
#farm-hub .fh-seg button {
  color: var(--fh-ink);
}
#farm-hub .fh-seg button.active {
  background: var(--fh-surface);
  box-shadow:
    0 1px 3px #0002,
    inset 0 -2px 0 var(--lime);
}
#farm-hub #farm-message {
  background: var(--fh-good-bg);
  color: var(--fh-ink);
  border: 0;
  border-left: 4px solid var(--fh-good);
}
#farm-hub #farm-message.error {
  background: var(--fh-bad-bg);
  color: var(--fh-bad);
  border-left-color: var(--fh-bad);
}
#farm-hub #farm-message.working {
  background: var(--fh-warn-bg);
  border-left-color: var(--fh-warn);
}
#farm-hub .fh-alerts li {
  background: var(--fh-info-bg);
  color: var(--fh-ink);
}
#farm-hub .fh-status {
  background: var(--fh-good-bg);
  color: var(--fh-ink);
}
#farm-hub .fh-alerts li.good {
  background: var(--fh-good-bg);
}
#farm-hub :is(.fh-alerts li.warn, .fh-status.warn) {
  background: var(--fh-warn-bg);
}
#farm-hub :is(.fh-alerts li.bad, .fh-status.bad, .fh-restructure) {
  background: var(--fh-bad-bg);
}
#farm-hub .journal li.unread {
  background: var(--fh-warn-bg);
}
#farm-hub .fh-tour {
  background: var(--fh-surface);
  border-color: color-mix(in srgb, var(--lime) 60%, transparent);
}
#farm-hub .fh-machine.owned {
  background: var(--fh-good-bg);
}
#farm-hub .tl-app {
  box-shadow: 0 0 0 2px var(--fh-surface);
}
#farm-hub .fh-chart-plot .grid {
  stroke: var(--fh-line);
}
#farm-hub .fh-chart-plot .tick {
  fill: var(--fh-faint);
}
#farm-hub .fh-chart-plot .end-label {
  fill: var(--fh-muted);
}
#farm-hub .fh-chart-plot .cross {
  stroke: var(--fh-line-strong);
}
#farm-hub .fh-chart-plot .dot {
  stroke: var(--fh-surface);
}
#farm-hub .fh-tile-add {
  border: 2px dashed var(--fh-line-strong);
  color: var(--fh-ink);
}
#farm-hub .fh-tile.selected {
  border-color: var(--fh-ink);
}
#farm-hub .fh-skeleton i {
  background: linear-gradient(90deg, var(--fh-surface-2), var(--fh-surface), var(--fh-surface-2));
  background-size: 200% 100%;
}

/* ------------------------------------------------------------------ farm office: legacy controls
   Forms, tables and lab cards were first drawn for a dark dialog. These rules make them readable on
   the office background in both themes. */
#farm-hub .farm-form label {
  color: var(--fh-muted);
  font-weight: 600;
}
#farm-hub
  :is(
    .farm-form input,
    .farm-form select,
    .inline-search input,
    .inline-search select,
    .mix-row select,
    .mix-row input,
    .compare-pick select,
    .rate-cell input
  ) {
  background: var(--fh-input);
  color: var(--fh-ink);
  border: 1px solid var(--fh-line-strong);
  border-radius: 6px;
}
#farm-hub
  :is(
    .farm-form input,
    .farm-form select,
    .inline-search select,
    .mix-row select,
    .mix-row input
  ):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}
#farm-hub .farm-form input[type='checkbox'],
#farm-hub .plan-table input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--fh-good);
}
#farm-hub .farm-ledger th {
  color: var(--fh-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
#farm-hub .farm-ledger th,
#farm-hub .farm-ledger td {
  border-bottom: 1px solid var(--fh-line);
  padding: 11px 10px;
}
#farm-hub .farm-ledger td:nth-child(2) {
  color: var(--fh-ink);
  font-weight: 600;
}
#farm-hub .farm-ledger tbody tr:hover td {
  background: color-mix(in srgb, var(--fh-surface-2) 70%, transparent);
}
#farm-hub .farm-ledger small,
#farm-hub .market-crop h3 small,
#farm-hub .store-item small,
#farm-hub .journal small,
#farm-hub .mix-row small,
#farm-hub .sample-grid .choice span {
  color: var(--fh-muted);
}
#farm-hub .store-item p,
#farm-hub .forecast > div,
#farm-hub .lab-card.pending,
#farm-hub .narration small {
  color: var(--fh-muted);
}
#farm-hub .forecast > div {
  border-color: var(--fh-line);
  background: var(--fh-surface);
  border-radius: 8px;
}
#farm-hub .forecast b {
  color: var(--fh-ink);
}
#farm-hub .sandbox-note {
  color: var(--fh-muted) !important;
}
#farm-hub .notice {
  background: var(--fh-surface-2);
  color: var(--fh-ink);
  border: 1px solid var(--fh-line);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  font-size: 13px;
}
#farm-hub .notice small {
  color: var(--fh-muted);
}
#farm-hub .text-link {
  color: var(--fh-accent-ink);
  font-weight: 700;
  padding: 6px 0;
  display: inline-flex;
}
#farm-hub .text-link:hover {
  text-decoration: underline;
}
#farm-hub summary {
  color: var(--fh-accent-ink);
  font-weight: 600;
}
#farm-hub .secondary {
  background: var(--fh-surface-2);
  color: var(--fh-ink);
  border: 1px solid var(--fh-line-strong);
}
#farm-hub .secondary:hover:not(:disabled) {
  border-color: var(--lime);
}
#farm-hub .icon-btn {
  border-color: var(--fh-line-strong);
  color: var(--fh-ink);
  border-radius: 6px;
}
#farm-hub .mix-order,
#farm-hub .field-crop-icon,
#farm-hub .hand-character,
#farm-hub .hand-joke .eyebrow {
  color: var(--fh-accent-ink);
}
#farm-hub .farm-progress {
  background: var(--fh-line);
  border-radius: 3px;
}
#farm-hub .farm-progress i {
  background: var(--lime);
  border-radius: 3px;
}
#farm-hub :is(.hand-advice, .hand-joke, .narration, .practice-chips span, .planter-preview) {
  background: var(--fh-surface);
  border-color: var(--fh-line);
  border-radius: 8px;
}
#farm-hub .farm-alerts li {
  background: var(--fh-good-bg);
  border-left-color: var(--fh-good);
  color: var(--fh-ink);
  border-radius: 0 6px 6px 0;
}
#farm-hub .farm-alerts .warn {
  background: var(--fh-warn-bg);
  border-left-color: var(--fh-warn);
}
#farm-hub .farm-alerts .bad {
  background: var(--fh-bad-bg);
  border-left-color: var(--fh-bad);
}
#farm-hub .field-picker button {
  border: 1px solid var(--fh-line-strong);
  color: var(--fh-ink);
  background: var(--fh-surface);
  border-radius: 999px;
}
#farm-hub .field-picker .active {
  border-color: var(--fh-ink);
  background: var(--fh-ink);
  color: var(--fh-bg);
}
#farm-hub .farm-metrics > div,
#farm-hub .budget-summary > div {
  background: var(--fh-surface-2);
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  padding: 16px;
}
#farm-hub .farm-metrics small,
#farm-hub .budget-summary small {
  color: var(--fh-muted);
  font-size: 10px;
  font-weight: 700;
}
#farm-hub .farm-metrics b,
#farm-hub .budget-summary b {
  color: var(--fh-ink);
  font-family: 'Barlow Condensed', Impact, sans-serif;
  margin-top: 6px;
}
#farm-hub .budget-summary .negative {
  color: var(--fh-bad);
}
#farm-hub .choice {
  background: var(--fh-surface);
  border: 1px solid var(--fh-line-strong);
  color: var(--fh-ink);
  border-radius: 10px;
}
#farm-hub .choice:hover:not(:disabled) {
  border-color: var(--lime);
  background: var(--fh-surface);
}
#farm-hub .choice b {
  color: var(--fh-ink);
}
#farm-hub .choice.selected {
  border-color: var(--lime);
  background: var(--fh-accent-soft);
}
#farm-hub .season-over {
  background: var(--fh-surface);
  border-color: var(--lime);
  border-radius: 10px;
}
#farm-hub .harvest-night {
  color: var(--paper);
  border-radius: 12px;
}
#farm-hub .harvest-night .farm-metrics > div {
  background: #ffffff0d;
  border-color: #ffffff1f;
}
#farm-hub .harvest-night .farm-metrics b {
  color: #f4e3b4;
}
#farm-hub .harvest-night .farm-metrics small,
#farm-hub .harvest-night .sandbox-note {
  color: #c8d3bf !important;
}
/* Ratings: always text plus colour, never colour alone. */
#farm-hub .rating-deficient {
  color: var(--fh-bad);
  font-weight: 700;
}
#farm-hub .rating-low {
  color: var(--fh-warn);
  font-weight: 700;
}
#farm-hub .rating-high {
  color: var(--fh-info);
  font-weight: 700;
}
#farm-hub .rating-sufficient {
  color: var(--fh-good);
  font-weight: 700;
}

/* ------------------------------------------------------------------ lab results */
.lab-card {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
}
.lab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.lab-head b {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.lab-head span {
  color: var(--fh-muted);
  font-size: 13px;
}
.lab-head .text-link {
  margin-left: auto;
  font-size: 12px;
}
.lab-card h4 {
  margin: 16px 0 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-muted);
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 0;
}
.lab-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--fh-line);
  min-width: 0;
}
.lab-row dt {
  color: var(--fh-muted);
  font-size: 13px;
}
.lab-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.lab-val {
  color: var(--fh-ink);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.lab-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fh-fair-bg);
  color: var(--fh-fair);
  white-space: nowrap;
}
.lab-chip.good {
  background: var(--fh-good-bg);
  color: var(--fh-good);
}
.lab-chip.warn {
  background: var(--fh-warn-bg);
  color: var(--fh-warn);
}
.lab-chip.bad {
  background: var(--fh-bad-bg);
  color: var(--fh-bad);
}
.lab-chip.info {
  background: var(--fh-info-bg);
  color: var(--fh-info);
}
.farm-metrics .lab-chip {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }
}
.fh-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fh-accent-soft);
  border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent);
  font-size: 13px;
}
.fh-warn {
  color: var(--fh-bad);
  font-weight: 600;
  font-size: 13px;
  margin: 6px 0;
}

/* ------------------------------------------------------------------ soil & fertility */
.compare-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
}
.compare-pick label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 0;
}
.compare-pick select {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
}
.compare-tag {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: #2a78d6;
}
.compare-tag.b {
  background: #eb6834;
}
.compare-vs {
  color: var(--fh-faint);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
#farm-hub .compare-table td:nth-child(n + 2) {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fh-ink);
  white-space: nowrap;
}
.trend {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--fh-fair-bg);
  color: var(--fh-fair);
}
.trend.up {
  background: var(--fh-good-bg);
  color: var(--fh-good);
}
.trend.down {
  background: var(--fh-bad-bg);
  color: var(--fh-bad);
}
.plan-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 14px;
}
@media (max-width: 900px) {
  .plan-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.plan-cols {
  align-items: start;
}
@media (max-width: 1100px) {
  .plan-cols {
    grid-template-columns: 1fr;
  }
}
.plan-card h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--fh-accent-soft);
  color: var(--fh-accent-ink);
  font-size: 16px;
}
#farm-hub .plan-table td {
  vertical-align: top;
}
#farm-hub .plan-table td:nth-child(2) {
  white-space: normal;
}
#farm-hub .plan-table td small {
  margin-top: 4px;
  line-height: 1.45;
  font-weight: 400;
}
#farm-hub .plan-table tr.off td {
  opacity: 0.5;
}
.table-scroll .plan-table {
  min-width: 480px;
}
.rate-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rate-cell input {
  width: 76px;
  min-height: 34px;
  padding: 4px 6px;
  font: inherit;
}
.rate-cell em {
  font-style: normal;
  color: var(--fh-muted);
  font-size: 12px;
}
.plan-total {
  text-align: right;
  color: var(--fh-muted);
  margin: 10px 0;
}
.plan-total b {
  color: var(--fh-ink);
  font-size: 17px;
}
.plan-card > .primary {
  width: 100%;
}
.salt-meter {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--fh-good-bg);
  --c: var(--fh-good);
}
.salt-meter.warn {
  background: var(--fh-warn-bg);
  --c: var(--fh-warn);
}
.salt-meter.bad {
  background: var(--fh-bad-bg);
  --c: var(--fh-bad);
}
.salt-meter > div {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.salt-meter b {
  color: var(--c);
  font-size: 13px;
}
.salt-meter span {
  color: var(--fh-ink);
}
.salt-meter > i {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--c) var(--w),
    color-mix(in srgb, var(--c) 18%, transparent) var(--w)
  );
}
.furrow-box {
  border: 1px dashed var(--fh-line-strong);
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 0;
  min-width: 0;
}
.furrow-box legend {
  font-weight: 700;
  padding: 0 6px;
  color: var(--fh-ink);
}
.furrow-box legend small {
  font-weight: 400;
  color: var(--fh-muted);
}
.furrow-row {
  grid-template-columns: 24px minmax(0, 1fr) 80px auto auto 34px;
}
.furrow-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .furrow-row {
    grid-template-columns: 24px 1fr 70px 34px;
  }
  .furrow-row > span:nth-of-type(3),
  .furrow-row > small {
    display: none;
  }
}

/* ------------------------------------------------------------------ office sidebar */
.fh-appearance {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff0d;
  border: 1px solid #ffffff22;
  color: var(--paper);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  margin-top: auto;
}
.fh-appearance i {
  font-style: normal;
  width: 18px;
  text-align: center;
  color: var(--lime);
}
.fh-appearance:hover {
  border-color: var(--lime);
}
.fh-appearance + .fh-keys {
  margin-top: 0;
}
.fh-nav-group button.active {
  box-shadow: inset 3px 0 0 var(--lime);
}

/* ------------------------------------------------------------------ small touches */
.fh-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--lime);
}
#farm-hub .fh-card h3 {
  letter-spacing: 0.01em;
}
#farm-hub .fh-card-head h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 22px;
}
#farm-hub .fh-kpi {
  border-top: 3px solid color-mix(in srgb, var(--lime) 70%, transparent);
}
#farm-hub .primary {
  border-radius: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lime) 88%, #fff), var(--lime));
  color: #17291d;
}
.primary:hover:not(:disabled) {
  filter: brightness(1.05);
}
.toast {
  border-left: 4px solid var(--lime);
  box-shadow: 0 12px 40px #0005;
}
html[data-motion='full'] #farm-hub :is(.fh-kpi, .choice, .store-item, .fh-tile, .lab-card) {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
html[data-motion='full'] #farm-hub :is(.fh-kpi, .choice:not(:disabled), .store-item, .fh-tile):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #14291e1f;
}
html[data-motion='full'] .premiere-card,
html[data-motion='full'] .topic-finder {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
html[data-motion='full'] .premiere-card:hover,
html[data-motion='full'] .topic-finder:focus-within {
  border-color: color-mix(in srgb, var(--lime) 70%, transparent);
}

/* ------------------------------------------------------------------ text size and motion */
html[data-text='large'] .fh-main,
html[data-text='large'] #modal-content,
html[data-text='large'] .confirm-box {
  zoom: 1.12;
}
html[data-text='large'] .fh-nav-group button {
  font-size: 15px;
}
html[data-motion='calm'] *,
html[data-motion='calm'] *::before,
html[data-motion='calm'] *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html[data-motion='calm'] .cinematic-layer img {
  animation: none !important;
  transform: none !important;
}

/* ------------------------------------------------------------------ appearance dialog */
.look-group {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
.look-group legend {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0;
}
.look-seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.look-opt {
  position: relative;
  cursor: pointer;
}
.look-opt input,
.look-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.look-opt span {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #14291e2e;
  background: #fff;
  color: #14291e;
}
.look-opt small {
  color: #56675a;
  font-size: 12px;
}
.look-opt input:checked + span {
  border-color: var(--forest);
  box-shadow:
    0 0 0 2px var(--lime),
    inset 0 -3px 0 var(--lime);
}
.look-opt input:focus-visible + span,
.look-swatch input:focus-visible + i {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.look-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.look-swatch {
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  width: 88px;
  text-align: center;
}
.look-swatch i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 3px #ffffff80;
  border: 2px solid transparent;
}
.look-swatch input:checked + i {
  border-color: var(--forest);
  box-shadow:
    inset 0 0 0 3px #fff,
    0 0 0 2px var(--sw);
}

/* Read-aloud panel inside light dialogs (quiz decisions). Its base styles were drawn for the dark
   farm office, which left pale text on the cream dialog, most noticeable on phones. */
.modal .narration {
  background: #eef1e6;
  border-color: #d3dac7;
  border-radius: 6px;
  color: #304730;
}
.modal .narration > label,
.modal .narration-options label {
  color: #304730;
}
.modal .narration small {
  color: #4f604c;
}
.modal .narration select {
  background: #fff;
  color: #243a29;
  border-color: #c9d1bd;
}
html[data-theme='dark'] .modal .narration {
  background: #ffffff0b;
  border-color: #ffffff22;
  color: #d2dccb;
}
html[data-theme='dark'] .modal :is(.narration > label, .narration-options label) {
  color: #d2dccb;
}
html[data-theme='dark'] .modal .narration small {
  color: #a9b6a2;
}
html[data-theme='dark'] .modal .narration select {
  background: #0f2018;
  color: #edf0e4;
  border-color: #ffffff30;
}

/* ------------------------------------------------------------------ dark dialogs */
html[data-theme='dark'] .modal {
  background: #12261c;
  color: #edf0e4;
  box-shadow:
    0 30px 100px #0008,
    0 0 0 1px #ffffff14;
}
html[data-theme='dark'] .modal :is(h2, h3, h4, b, strong, legend) {
  color: #f5f3ea;
}
html[data-theme='dark'] .modal p,
html[data-theme='dark'] .modal li {
  color: #c4d0bb;
}
html[data-theme='dark'] .modal .eyebrow {
  color: #dcc17f;
}
html[data-theme='dark'] .modal .lead {
  color: #dfe6d6;
}
html[data-theme='dark'] .modal-close {
  background: #ffffff14;
  color: #f5f3ea;
}
html[data-theme='dark'] .modal :is(.question-context, .feedback, .notice, .episode-lessons, .metric-box) {
  background: #ffffff0b;
  color: #d2dccb;
  border-color: #ffffff22;
}
html[data-theme='dark']
  .modal
  :is(.metric-box small, .modal-foot small, .lesson-card small, .rank-table th, .look-opt small) {
  color: #a9b6a2;
}
html[data-theme='dark'] .modal .score-big {
  color: #a6d98f;
}
html[data-theme='dark']
  .modal
  :is(
    .choice,
    .lesson-card,
    .privacy-option,
    .backup-row,
    .contest-card,
    .review-list li,
    .episode-transcript,
    .farm-card,
    .control-grid div,
    .look-opt span
  ) {
  background: #1a3327;
  border-color: #ffffff22;
  color: #edf0e4;
}
html[data-theme='dark'] .modal :is(.choice, .lesson-card):hover:not(:disabled) {
  background: #21402f;
  border-color: color-mix(in srgb, var(--lime) 60%, transparent);
}
html[data-theme='dark'] .modal .choice-letter {
  border-color: #ffffff33;
  color: #c4d0bb;
}
html[data-theme='dark'] .modal .choice.correct,
html[data-theme='dark'] .modal .choice.selected {
  background: #1f3d26;
  border-color: #6fa365;
}
html[data-theme='dark'] .modal .choice.incorrect {
  background: #3d2b1b;
  border-color: #c49966;
}
html[data-theme='dark'] .modal .secondary {
  background: #ffffff14;
  color: #edf0e4;
  border-color: #ffffff2e;
}
html[data-theme='dark'] .modal .secondary.danger {
  background: #43231e;
  color: #f29a8e;
}
html[data-theme='dark'] .modal :is(.pill, .tabs button) {
  background: #ffffff12;
  color: #c9d2bf;
}
html[data-theme='dark'] .modal .tabs .active {
  background: var(--lime);
  color: #14291e;
}
html[data-theme='dark'] .modal .round-progress {
  background: #ffffff1a;
}
html[data-theme='dark'] .modal .rank-table th {
  border-color: #ffffff26;
}
html[data-theme='dark'] .modal .rank-table td,
html[data-theme='dark'] .modal .summary-list li {
  border-color: #ffffff14;
}
html[data-theme='dark'] .modal .rank-table tr.you {
  background: #21402f;
}
html[data-theme='dark']
  .modal
  :is(input:not([type='radio']):not([type='checkbox']), select, textarea, .farm-input) {
  background: #0f2018;
  color: #edf0e4;
  border-color: #ffffff30;
}
html[data-theme='dark'] .modal :is(.links-row a, .source-link, a:not(.primary):not(.secondary)) {
  color: var(--lime);
}
html[data-theme='dark'] .modal .look-opt input:checked + span {
  border-color: var(--lime);
}
html[data-theme='dark'] .modal .look-swatch input:checked + i {
  border-color: #f5f3ea;
  box-shadow:
    inset 0 0 0 3px #12261c,
    0 0 0 2px var(--sw);
}
html[data-theme='dark'] .confirm-box {
  background: #12261c;
  color: #edf0e4;
}
html[data-theme='dark'] .confirm-details div {
  border-color: #ffffff17;
}
html[data-theme='dark'] .confirm-details dt {
  color: #a9b6a2;
}
.look-link {
  background: none;
  color: #3f5a33;
  font-weight: 700;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-theme='dark'] .look-link {
  color: var(--lime);
}
#farm-hub .fh-solo .fh-back {
  color: var(--fh-ink);
}
@media (max-width: 700px) {
  /* The menu has an Appearance entry; keep the small header uncluttered. */
  .theme-btn {
    display: none;
  }
}

/* Sprayer setup station (Apply page) */
.setup-station {
  border: 1px solid var(--fh-line);
  background: var(--fh-surface);
  padding: 12px 14px;
  margin: 10px 0;
}
.setup-station h3 {
  margin: 14px 0 8px;
}
.setup-station h3:first-child {
  margin-top: 0;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 14px;
  align-items: start;
}
.setup-grid small,
.setup-check small,
.setup-jar small {
  display: block;
  color: var(--fh-muted);
  font-size: 12px;
  margin-top: 3px;
}
.setup-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}
.setup-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
}
.setup-readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0 6px;
}
.setup-readout > div {
  background: var(--fh-surface-2);
  border: 1px solid var(--fh-line);
  padding: 8px 10px;
}
.setup-readout span {
  display: block;
  font-size: 12px;
  color: var(--fh-muted);
}
.setup-readout b {
  font-size: 18px;
  color: var(--fh-ink);
}
.setup-jar {
  grid-column: 1 / -1;
}
.setup-jar .ok-note {
  color: var(--fh-good);
  margin: 6px 0 0;
}
.flight-hud b.off {
  color: var(--fh-warn);
}
.flight-hud small {
  color: var(--fh-muted);
}

/* Spray window (Apply page): hourly spray conditions for today */
#farm-hub #farm-message.warn {
  background: var(--fh-warn-bg);
  border-left-color: var(--fh-warn);
}
.spray-table td,
.spray-table th {
  white-space: nowrap;
}
.spray-table tr.chosen td {
  background: var(--fh-surface-2);
}
.spray-table button {
  min-width: 82px;
  padding: 4px 8px;
}
.spray-table small {
  color: var(--fh-muted);
}
.spray-rating {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.spray-rating.good {
  background: var(--fh-good-bg);
  color: var(--fh-good);
}
.spray-rating.fair {
  background: var(--fh-fair-bg);
  color: var(--fh-fair);
}
.spray-rating.caution {
  background: var(--fh-warn-bg);
  color: var(--fh-warn);
}
.spray-rating.poor {
  background: var(--fh-bad-bg);
  color: var(--fh-bad);
}
.spray-window .table-scroll {
  overflow-x: auto;
}
#farm-hub .notice.warn {
  background: var(--fh-warn-bg);
  border-left: 4px solid var(--fh-warn);
}

/* Play level badge (side menu, Harvest Night) and the level picker on the setup screen. */
.fh-level {
  justify-self: start;
  margin: 4px 0 2px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
span.fh-level {
  display: inline-block;
  margin: 0;
  padding: 0 7px;
  cursor: default;
}
.fh-level-easy {
  color: var(--fh-good);
  background: var(--fh-good-bg);
}
.fh-level-medium {
  color: var(--fh-info);
  background: var(--fh-info-bg);
}
.fh-level-hard {
  color: var(--fh-bad);
  background: var(--fh-bad-bg);
}
.level-pick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}
.level-pick legend {
  font-weight: 700;
  margin-bottom: 6px;
}
.level-pick > p {
  grid-column: 1 / -1;
  margin: 0;
}
.level-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--fh-line-strong);
  border-radius: 10px;
  background: var(--fh-surface-2);
  color: var(--fh-ink);
  cursor: pointer;
}
.level-option:has(input:checked) {
  border-color: var(--fh-accent-ink);
  box-shadow: 0 0 0 2px var(--fh-accent-soft);
}
.level-option input {
  margin-top: 4px;
}
.level-option span {
  display: grid;
  gap: 4px;
}
.level-option small {
  color: var(--fh-muted);
}
.level-option ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--fh-muted);
}

/* ------------------------------------------------------------------ real ground (aerial map + boundaries) */
.rg-overlay {
  z-index: 120;
}
.rg-box {
  background: var(--fh-surface);
  color: var(--fh-ink);
  border-radius: 12px;
  padding: 16px 18px;
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  box-shadow: 0 30px 80px #0006;
}
.rg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rg-head h3 {
  margin: 2px 0 4px;
}
.rg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin-top: 10px;
}
.rg-search {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rg-search input {
  flex: 1 1 180px;
  min-width: 0;
}
.rg-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.rg-results p {
  margin: 0;
}
.rg-mapwrap {
  position: relative;
}
.rg-map,
.gm {
  position: relative;
  overflow: hidden;
  height: min(60vh, 520px);
  min-height: 300px;
  border-radius: 8px;
  background: #22352a;
  touch-action: none;
  user-select: none;
  cursor: grab;
  outline-offset: 2px;
}
.gm.drawing {
  cursor: crosshair;
}
.gm-tiles {
  position: absolute;
  inset: 0;
}
.gm-tile {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  max-width: none;
}
.gm-tile.in {
  opacity: 1;
}
.gm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gm-shape path {
  fill: #f4d35e26;
  stroke: #f4d35e;
  stroke-width: 2;
  cursor: pointer;
}
.gm-shape.active path {
  fill: #9fe07a33;
  stroke: #9fe07a;
  stroke-width: 3;
}
.gm-shape text {
  fill: #fff;
  font:
    600 12px system-ui,
    sans-serif;
  paint-order: stroke;
  stroke: #000a;
  stroke-width: 3px;
  pointer-events: none;
}
.gm-draft {
  fill: #ffffff2e;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
  pointer-events: none;
}
.gm-vertex {
  fill: #fff;
  stroke: #14291e;
  stroke-width: 2;
  cursor: move;
}
.gm-vertex.first {
  fill: #9fe07a;
}
.gm-vertex.selected {
  fill: #f4d35e;
  stroke-width: 3;
}
.gm-mid {
  fill: #ffffff99;
  stroke: #14291e;
  stroke-width: 1;
  cursor: copy;
}
.gm-attr {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 11px;
  padding: 2px 6px;
  background: #000a;
  color: #fff;
  border-top-left-radius: 4px;
}
.rg-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  gap: 4px;
}
.rg-tools button {
  min-width: 38px;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid #0006;
  background: #fffffff0;
  color: #14291e;
  font:
    600 16px system-ui,
    sans-serif;
  cursor: pointer;
}
.rg-tools [data-rg-layer] {
  font-size: 12px;
}
.rg-drawbar {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.rg-drawbar p {
  margin: 0;
}
.rg-status.bad,
.rg-error {
  color: var(--fh-bad);
}
.rg-ok {
  color: var(--fh-good);
  margin: 0;
}
.rg-save,
.rg-rename {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
.rg-save label,
.rg-rename label {
  display: grid;
  gap: 2px;
  flex: 1 1 160px;
  font-size: 13px;
}
.rg-side {
  display: grid;
  gap: 10px;
  align-content: start;
}
.rg-side h4 {
  margin: 0;
  display: flex;
  justify-content: space-between;
}
.rg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rg-item {
  width: 100%;
  text-align: left;
  display: grid;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--fh-line-strong);
  background: var(--fh-surface-2);
  color: var(--fh-ink);
  font: inherit;
  cursor: pointer;
}
.rg-item.selected {
  border-color: var(--fh-good);
  box-shadow: inset 3px 0 0 var(--fh-good);
}
.rg-item small {
  color: var(--fh-muted);
}
.rg-row {
  display: flex;
  gap: 4px;
  align-items: stretch;
}
.rg-row .rg-item {
  flex: 1;
  min-width: 0;
}
.rg-3d {
  flex: none;
  padding: 4px 10px;
  white-space: nowrap;
}
.rg-preview-cta {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed var(--fh-good);
  background: var(--fh-surface-2);
}
.rg-preview-cta button {
  width: 100%;
}
.rg-preview-cta small {
  color: var(--fh-muted);
}
/* The field page's 3D banner (real fields) and the "preview real ground" invitation. */
.rg-field-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--fh-good);
  background: var(--fh-surface-2);
}
.rg-field-cta p {
  margin: 2px 0 0;
  color: var(--fh-muted);
}
.rg-detail {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--fh-line);
  padding-top: 8px;
}
.rg-soil-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  margin: 0;
}
.rg-soil-kpis div {
  background: var(--fh-surface-2);
  border: 1px solid var(--fh-line);
  border-radius: 6px;
  padding: 6px 8px;
}
.rg-soil-kpis dt {
  font-size: 11px;
  color: var(--fh-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rg-soil-kpis dd {
  margin: 0;
  font-weight: 600;
}
.rg-units td small {
  display: block;
  color: var(--fh-muted);
}
.rg-privacy {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--fh-muted);
}
.rg-setup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--fh-line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  background: var(--fh-accent-soft);
}
.rg-setup p {
  margin: 4px 0 0;
}
.rg-setup > div:first-child {
  flex: 1 1 280px;
}
.rg-setup #real-chosen {
  flex-basis: 100%;
}
.rg-chosen p {
  margin: 0 0 8px;
}
.rg-locked {
  font-size: 14px;
  color: var(--fh-muted);
}
.farm-form.real-mode .inline-search,
.farm-form.real-mode #geo-results,
.farm-form.real-mode select[name='soilType'] {
  opacity: 0.5;
}
.rg-store.locked {
  opacity: 0.85;
}
.fh-tile.real {
  position: relative;
  overflow: hidden;
}
.fh-tile .fh-outline {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 54px;
  height: 54px;
  opacity: 0.35;
  pointer-events: none;
}
.fh-outline path,
.rg-field-shape path {
  fill: currentColor;
  fill-opacity: 0.25;
  stroke: currentColor;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.rg-field summary {
  cursor: pointer;
}
.rg-field-body {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 8px;
}
.rg-field-shape {
  width: 110px;
  height: 110px;
  color: var(--fh-good);
}
@media (max-width: 820px) {
  .rg-body {
    grid-template-columns: 1fr;
  }
  .rg-overlay {
    padding: 0;
    place-items: end stretch;
  }
  .rg-box {
    border-radius: 12px 12px 0 0;
    max-height: 100vh;
  }
  .rg-map,
  .gm {
    height: 52vh;
  }
  .rg-field-body {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ friends' ground & Land Swap */
.rg-overlay ~ .confirm-overlay {
  z-index: 130;
}
.ls-box {
  width: min(860px, 100%);
}
.ls-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
  border-bottom: 1px solid var(--fh-line);
}
.ls-tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--fh-muted);
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ls-tabs button.active {
  color: var(--fh-ink);
  border-bottom-color: var(--fh-good);
}
.ls-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ls-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  background: var(--fh-bg);
}
.ls-shape {
  width: 72px;
  height: 72px;
  color: var(--fh-good);
}
.ls-shape path {
  fill: currentColor;
  fill-opacity: 0.25;
  stroke: currentColor;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.ls-shape-empty {
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--fh-faint);
}
.ls-main {
  min-width: 0;
}
.ls-main p {
  margin: 4px 0;
}
.ls-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ls-chip {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: var(--fh-good-bg);
  color: var(--fh-ink);
  font-size: 0.85rem;
}
.ls-form {
  margin: 6px 0;
  flex-wrap: wrap;
}
.ls-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-note {
  font-style: italic;
  color: var(--fh-muted);
}
.ls-new {
  border-top: 1px solid var(--fh-line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.ls-new h4 {
  margin: 0;
}
.ls-swap.ls-declined,
.ls-swap.ls-cancelled {
  opacity: 0.7;
}
.ls-compare {
  margin-top: 10px;
}
.ls-compare h4 {
  margin: 10px 0 4px;
}
.ls-results tr.you td {
  background: var(--fh-good-bg);
}
.ls-results small {
  color: var(--fh-muted);
}
.ls-top {
  color: var(--fh-warn);
}
.ls-guest-note {
  margin: 0 0 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--fh-info-bg);
  color: var(--fh-ink);
}
@media (max-width: 820px) {
  .ls-card {
    grid-template-columns: 1fr;
  }
}

/* Explore the show: a red call to action that stands out from the gold buttons. */
.promo-actions .primary.explore-show {
  background: #d63c2a;
  color: #fff;
  box-shadow: 0 4px 18px #d63c2a55;
}
.promo-actions .primary.explore-show:hover,
.promo-actions .primary.explore-show:focus-visible {
  background: #ef5039;
  color: #fff;
}
/* The ☰ menu's "Watch the show" entry. */
.modal .choice.choice-feature {
  background: #d63c2a;
  border-color: #d63c2a;
  color: #fff;
  font-weight: 800;
}
.modal .choice.choice-feature:hover:not(:disabled) {
  background: #ef5039;
  border-color: #ef5039;
  color: #fff;
}

/* Follow the show: the official social media pages (social.js). */
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.social-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #edd095;
  margin-right: 4px;
}
.social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff14;
  border: 1px solid #ffffff38;
  color: #fff;
  transition:
    background 0.2s,
    transform 0.2s;
}
.social-link svg {
  width: 17px;
  height: 17px;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  color: #fff;
}
.social-facebook:hover,
.social-facebook:focus-visible {
  background: #1877f2;
}
.social-instagram:hover,
.social-instagram:focus-visible {
  background: #d62976;
}
.social-youtube:hover,
.social-youtube:focus-visible {
  background: #ff0000;
}
.social-x:hover,
.social-x:focus-visible {
  background: #000;
}
.social-tiktok:hover,
.social-tiktok:focus-visible {
  background: #000;
  box-shadow:
    -2px 0 0 #25f4ee,
    2px 0 0 #fe2c55;
}
.intro-social {
  margin: 14px 0 4px;
}
body.playing .intro-social {
  display: none;
}
.modal .social-menu {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #d9dfd0;
}
.modal .social-menu .social-label {
  color: #5c7148;
}
.modal .social-menu .social-link {
  background: #304730;
  border-color: #304730;
}
.watch-footer .social-footer {
  flex-basis: 100%;
}
@media (max-width: 700px) {
  .promo-actions .primary.explore-show {
    font-size: 12px;
    letter-spacing: 1.2px;
    padding: 12px 14px;
  }
  .intro-social {
    margin: 10px 0 2px;
  }
  .social-link {
    width: 38px;
    height: 38px;
  }
}
/* Phones: room for the social row under the sponsor badge on the landing page. */
@media (max-width: 700px) {
  body:not(.playing) #world {
    min-height: 900px;
  }
  body.has-star-teaser:not(.playing) #world {
    min-height: 970px;
  }
}

/* Front page: "Now casting" pill under the intro links, opens /casting/. */
.casting-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 330px;
  margin: 4px 0 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 40px;
  background: #140d0bd0;
  border: 1px solid #e0493b99;
  color: #f6f1e4;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.casting-pill:hover,
.casting-pill:focus-visible {
  border-color: #ff6a57;
  background: #2a1310e6;
  transform: translateY(-1px);
}
.cp-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 30px;
  background: #e0493b;
  color: #fff;
  font:
    800 12px/1 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.cp-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: cp-rec 1.2s steps(2, start) infinite;
}
@keyframes cp-rec {
  to {
    visibility: hidden;
  }
}
.cp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.cp-text b {
  font:
    800 16px/1.05 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cp-text small {
  font-size: 11.5px;
  opacity: 0.8;
}
.cp-arrow {
  margin-left: 4px;
  color: #ff8a7a;
}
@media (max-width: 700px) {
  .casting-pill {
    max-width: 290px;
    padding: 4px 12px 4px 4px;
  }
  .cp-text small {
    display: none;
  }
}
@media (max-height: 800px) and (min-width: 901px) {
  .casting-pill {
    margin: 0 0 4px;
  }
  .cp-text small {
    display: none;
  }
}
:root[data-motion='calm'] .cp-rec i {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .cp-rec i {
    animation: none;
  }
}
/* The ☰ menu's casting call entry. */
.modal .choice.choice-casting {
  border-color: #e0493b;
  color: inherit;
  font-weight: 800;
}
.modal .choice.choice-casting:hover:not(:disabled) {
  background: #e0493b22;
}

/* Front page: crop tiles in "Find it in the show" (crop-picks.js); each opens the crop page. */
.crop-picks {
  display: grid;
  /* Two rows of three small tiles; minmax(0, …) lets them shrink so the row never runs off the card. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}
.topic-finder > * {
  min-width: 0;
}
.crop-pick {
  --tone: #e8b63f;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 2px 3px;
  border-radius: 7px;
  border: 1px solid #ffffff1f;
  background: radial-gradient(
    circle at 50% 30%,
    color-mix(in srgb, var(--tone) 22%, transparent),
    #0a1710cc 70%
  );
  color: #e9eee6;
  font: 800 8.5px/1 inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.crop-pick > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crop-pick svg {
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.crop-pick:hover,
.crop-pick:focus-visible {
  transform: translateY(-2px);
  border-color: var(--tone);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--tone) 35%, transparent);
  outline: none;
}
.crop-pick:hover svg,
.crop-pick:focus-visible svg {
  transform: scale(1.18) rotate(-6deg);
}
.crop-pick:active {
  transform: scale(0.96);
}
@media (max-height: 800px) and (min-width: 701px) {
  .crop-pick {
    padding: 3px 2px 2px;
  }
  .crop-pick svg {
    width: 18px;
    height: 18px;
  }
}
:root[data-motion='calm'] .crop-pick,
:root[data-motion='calm'] .crop-pick svg {
  transition: none;
  transform: none;
}
@media (max-width: 700px) {
  .crop-picks {
    gap: 4px;
  }
  .crop-pick {
    padding: 3px 2px 2px;
    font-size: 8px;
    background: #0c1b13e0;
    backdrop-filter: blur(8px);
  }
  .crop-pick svg {
    width: 18px;
    height: 18px;
  }
}

/* Site menu: the ☰ MENU button in the top bar (every screen size) and its grouped menu (openSiteMenu in app.js). */
@media (min-width: 701px) {
  .header .mobile-menu {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    margin-right: 8px;
    border-radius: 20px;
    border: 1px solid #ffffff30;
    background: transparent;
    color: var(--paper);
    font: 800 11px/1 inherit;
    letter-spacing: 1.4px;
    cursor: pointer;
  }
  .header .mobile-menu > span[aria-hidden] {
    font-size: 17px;
  }
  .header .mobile-menu:hover,
  .header .mobile-menu:focus-visible {
    border-color: var(--lime);
    color: var(--lime);
  }
}
@media (min-width: 701px) and (max-width: 1280px) {
  .header .mobile-menu {
    padding: 0;
    justify-content: center;
  }
  .header .mobile-menu .menu-word {
    display: none;
  }
}
@media (max-width: 700px) {
  .mobile-menu .menu-word {
    display: none;
  }
}
.site-menu h2 {
  margin-bottom: 12px;
}
.site-menu-filter {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  font: inherit;
  font-size: 14px;
}
.site-menu-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px 22px;
  margin: 18px 0 8px;
  align-items: start;
}
.site-menu-group {
  display: grid;
  gap: 4px;
}
.site-menu-group h3 {
  margin: 0 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.site-menu-item {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.site-menu-item b {
  font-size: 13.5px;
}
.site-menu-item small {
  font-size: 11.5px;
  opacity: 0.65;
}
.site-menu-item:hover,
.site-menu-item:focus-visible {
  background: color-mix(in srgb, currentColor 8%, transparent);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  outline: none;
}
.site-menu-item[hidden],
.site-menu-group[hidden] {
  display: none;
}
.site-menu-feature {
  background: color-mix(in srgb, #8fbf3f 18%, transparent);
}
.site-menu-casting {
  background: #e0493b1a;
}
.site-menu-none {
  opacity: 0.7;
  font-size: 13px;
}
@media (max-width: 700px) {
  .site-menu-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
