/* Editable source: Figma 53:1286 / 53:1874. Type and controls do not scale with the illustration. */
:root {
  --muted: #5e6855;
  --farmora-muted: var(--muted);
  --farmora-focus: #6d5622;
  --farmora-error: #9b3828;
  --farmora-error-soft: #fff0ea;
  --farmora-warning: #75521c;
  --farmora-space-sm: 8px;
  --farmora-space-md: 16px;
  --farmora-space-lg: 24px;
  --farmora-text-caption: 12px;
  --farmora-text-label: 14px;
  --farmora-text-body: 16px;
  --farmora-text-heading: 20px;
  --farmora-text-title: 24px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
.market-btn:focus-visible, .market-page input:focus-visible, .market-page select:focus-visible {
  outline: 3px solid var(--farmora-focus);
  outline-offset: 4px;
}
.btn { min-height: 48px; }
.btn[hidden] { display: none; }
.live-crop { width: 110px; height: 110px; }
.brand small, .site-footer, .small, .pool-meta, .preview-label { font-size: var(--farmora-text-caption); line-height: 24px; }
.page-header p { font-size: var(--farmora-text-body); line-height: 24px; }
.page-header { min-height: 0; margin: 32px 0 24px; }
.farm-layout { align-items: start; grid-template-columns: minmax(0, 1fr) 360px; }
.farm-sidebar { min-width: 0; }
.farm-sidebar .card { padding: 24px; display: grid; gap: 16px; }
.farm-sidebar .card .btn { margin-top: 0; }
.selected-plot { min-height: 0; flex: none; }
.farm-stage { min-width: 0; display: grid; gap: 16px; }
.farm-world { aspect-ratio: 1000 / 704; min-height: 0; width: 100%; border-radius: 24px; }
.farm-caption { display: grid; gap: 8px; }
.farm-caption p { font-size: 16px; line-height: 24px; }
.farm-caption small { font-size: 12px; line-height: 24px; color: var(--muted); }
.plot-picker { display: grid; gap: 16px; }
.plot-picker h2 { font-size: 20px; line-height: 32px; }
.plot-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.plot-choice { min-width: 0; padding: 16px; display: grid; justify-items: start; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.plot-choice.selected { border: 2px solid var(--green); padding: 15px; }
.plot-choice h3 { font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
.plot-choice small, .range-reading-note { font-size: 12px; line-height: 24px; color: var(--muted); overflow-wrap: anywhere; }
.plot-choice .btn { width: 100%; padding: 8px; font-size: 14px; }
.plot-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--cream); color: var(--muted); font-size: 12px; line-height: 24px; }
.plot-status[data-tone="in-range"] { background: var(--soft); color: var(--green); }
.plot-status[data-tone="out-of-range"] { color: var(--farmora-warning); }
.plot-button.selected { filter: drop-shadow(0 0 4px var(--green)) drop-shadow(0 0 2px var(--paper)); }
.welcome-card h2 { font-size: 20px; line-height: 32px; }
.welcome-card p { font-size: 16px; line-height: 24px; color: var(--muted); }
.welcome-card small { font-size: 12px; line-height: 24px; color: var(--muted); }
.farm-primary-dock { display: none; }
.live-field { gap: 8px; margin: 24px 0; font-size: 14px; line-height: 24px; }
.live-field small { font-size: 12px; line-height: 24px; color: var(--muted); }
.form-input { font-size: 16px; line-height: 24px; min-height: 48px; }
.farmora-modal { padding: 32px; }
.modal-copy { max-width: none; }
.modal-copy h2 { font-size: 24px; line-height: 32px; }
.modal-copy p { line-height: 24px; }
.modal-copy .btn { margin-top: 0; }
.modal-x { width: 44px; height: 44px; right: 12px; top: 12px; }
.modal-copy h2, .detail-content h2 { padding-right: 40px; }
.form-alert { padding: 16px; margin: 16px 0; border-radius: 16px; color: var(--farmora-error); background: var(--farmora-error-soft); font-size: 14px; line-height: 24px; }
.modal-copy .form-alert p { margin: 8px 0 0; color: inherit; font-size: 12px; line-height: 24px; }
.live-field:has([aria-invalid="true"]) { margin-bottom: 0; }
.field-error { display: block; margin: 8px 0 16px; }
.form-success { color: var(--green) !important; }
.field-error { color: var(--farmora-error); font-size: 12px; line-height: 24px; }
.live-field .field-error { color: var(--farmora-error); }
[aria-invalid="true"] { border: 2px solid var(--farmora-error); }
.form-alert[hidden], .field-error[hidden] { display: none; }
.error { color: var(--farmora-error) !important; }
.market-table-wrap { max-width: 100%; }
@media (max-width:1000px) {
  .farm-layout { grid-template-columns: 1fr; }
  .farm-layout.first-visit .farm-sidebar { grid-row: 1; }
  .farm-sidebar { display: block; }
  .farm-sidebar .card + .card { margin-top: 16px; }
}
@media (max-width:650px) {
  .site-shell { padding: 0 16px; }
  .site-header { padding: 16px 0; gap: 16px; }
  .main-nav { gap: 8px; }
  .main-nav .btn { min-height: 48px; padding: 8px 4px; font-size: 14px; border-radius: 12px; }
  .wallet { min-height: 48px; }
  .brand small { font-size: 12px; margin-top: 0; }
  .page-header { margin: 24px 0; }
  .page-header h1 { font-size: 24px; line-height: 32px; letter-spacing: 0; }
  .page-header p { font-size: 14px; line-height: 24px; margin-top: 8px; }
  .farm-page-actions { margin-top: 16px; }
  .farm-page-actions [data-action="mint"] { display: none; }
  .farm-layout { gap: 24px; }
  .farm-world { min-height: 0; border-radius: 12px; }
  .plot-picker-grid { grid-template-columns: 1fr; }
  .plot-choice { gap: 8px; }
  .farm-primary-dock { display: block; position: fixed; left: 16px; right: 16px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 10; padding: 8px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
  .site-shell:has(.farm-primary-dock) .site-footer { padding-bottom: 104px; }
  @supports (backdrop-filter: blur(12px)) { .farm-primary-dock { background: rgb(255 254 248 / .94); backdrop-filter: blur(12px); } }
  .farm-primary-dock .btn { width: 100%; }
  .farmora-modal, .farmora-modal.drawer { padding: 24px 16px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal-copy, .detail-content { padding: 0 !important; }
  .modal-copy h2 { padding-right: 44px; }
  .modal-copy .form-input { width: 100%; }
  .site-footer { font-size: 12px; line-height: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) { .farm-primary-dock { background: var(--paper); backdrop-filter: none; } }
