.farm-view {
  min-height: calc(100vh - 58px);
  background:
    radial-gradient(circle at top left, rgba(246, 214, 122, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(127, 185, 101, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f0d5 0%, #f8f4e6 14%, #f3f6ec 48%, #eef3ea 100%);
}

.farm-shell {
  width: min(1464px, calc(100% - 48px));
  padding-top: 96px;
  padding-bottom: 72px;
}

.farm-shell-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.farm-shell-intro h1 {
  margin: 0 0 10px;
  color: #2d2416;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
}

.farm-shell-intro p {
  max-width: 840px;
  margin: 0;
  color: #655940;
  font-size: 16px;
}

.farm-shell-eyebrow {
  margin: 0 0 10px;
  color: #8a6d2a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.farm-shell-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.farm-shell-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  color: #4c431d;
  background: rgba(255, 251, 235, 0.92);
  border: 1px solid rgba(160, 138, 71, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(91, 78, 42, 0.08);
}

.farm-root {
  display: block;
}

.farm-dashboard {
  display: grid;
  gap: 22px;
  position: relative;
}

.farm-bottom-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.farm-bottom-action {
  min-height: 52px;
  color: #413620;
  background: rgba(255, 250, 235, 0.95);
  border: 1px solid rgba(170, 153, 111, 0.18);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(69, 61, 33, 0.08);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.farm-status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.farm-status-pill,
.farm-grid-panel,
.farm-info-card {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(170, 153, 111, 0.18);
  box-shadow: 0 16px 36px rgba(69, 61, 33, 0.075);
}

.farm-status-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
}

.farm-status-pill-action {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 251, 237, 0.98) 0%, rgba(248, 241, 214, 0.96) 100%);
}

.farm-status-pill-action.is-claimed {
  opacity: 0.88;
}

.farm-status-pill span {
  color: #7e7253;
  font-size: 13px;
  font-weight: 700;
}

.farm-status-pill strong {
  color: #302717;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
}

.farm-playground {
  display: grid;
  grid-template-columns: 236px 860px 332px;
  gap: 18px;
  align-items: start;
  justify-content: center;
}

.farm-grid-panel {
  padding: 20px;
  border-radius: 24px;
  min-height: 100%;
}

.farm-center-stage {
  display: grid;
  gap: 18px;
}

.farm-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.farm-panel-head h2 {
  margin: 4px 0 0;
  color: #302717;
  font-size: 28px;
}

.farm-panel-head p {
  max-width: 360px;
  margin: 0;
  color: #76694e;
  font-size: 14px;
  text-align: right;
}

.farm-panel-eyebrow {
  margin: 0;
  color: #998243;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.farm-grid {
  display: grid;
  grid-template-columns: repeat(3, 264px);
  gap: 14px;
  align-items: start;
  align-content: start;
  justify-content: center;
}

.farm-grid.is-task-focus {
  opacity: 0.92;
}

.farm-bulk-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 86px;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(170, 153, 111, 0.18);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(69, 61, 33, 0.075);
}

.farm-bulk-action-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px 22px;
  color: #302717;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.farm-bulk-action-card + .farm-bulk-action-card::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(105, 163, 87, 0.42) 48%, transparent 100%);
}

.farm-bulk-action-card:hover {
  background: rgba(113, 171, 81, 0.08);
}

.farm-bulk-action-card:focus-visible {
  outline: 3px solid rgba(165, 137, 65, 0.35);
  outline-offset: -3px;
}

.farm-bulk-action-card[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.farm-bulk-action-card[disabled]:hover {
  background: transparent;
}

.farm-bulk-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fffdf7;
  background: #2ebb4d;
  border-radius: 14px;
}

.farm-bulk-action-card.is-harvest .farm-bulk-action-icon {
  background: #ea8e00;
}

.farm-bulk-action-card.is-care .farm-bulk-action-icon {
  background: #2f61da;
}

.farm-bulk-action-card.is-remove .farm-bulk-action-icon {
  background: #d9574f;
}

.farm-bulk-action-icon svg {
  width: 24px;
  height: 24px;
}

.farm-bulk-action-copy {
  min-width: 0;
  display: grid;
  gap: 0;
}

.farm-bulk-action-copy strong {
  overflow: hidden;
  color: #131313;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-bulk-action-copy span {
  overflow: hidden;
  color: #5c553f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-land-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 168px;
  min-height: 168px;
  padding: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(246, 243, 236, 0.96) 100%);
  border: 1px solid rgba(180, 164, 120, 0.12);
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.farm-land-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(73, 61, 26, 0.08);
}

.farm-land-card:focus-visible {
  outline: 3px solid rgba(165, 137, 65, 0.35);
  outline-offset: 4px;
}

.farm-land-card.is-selected {
  border-color: rgba(152, 122, 40, 0.48);
  box-shadow: 0 0 0 3px rgba(228, 194, 108, 0.22);
}

.farm-land-card.is-locked {
  background: linear-gradient(180deg, rgba(244, 241, 231, 0.94) 0%, rgba(233, 228, 212, 0.92) 100%);
}

.farm-land-card.is-black {
  background: linear-gradient(180deg, rgba(244, 244, 244, 0.96) 0%, rgba(224, 220, 208, 0.96) 100%);
  border-color: rgba(58, 82, 47, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(29, 41, 27, 0.08),
    0 16px 36px rgba(69, 61, 33, 0.075);
}

.farm-land-card.is-black::before {
  position: absolute;
  inset: -1px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(58, 232, 255, 0.76);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(218, 255, 255, 0.48),
    inset 0 0 18px rgba(0, 210, 255, 0.14),
    0 0 12px rgba(0, 210, 255, 0.46),
    0 0 28px rgba(0, 156, 220, 0.26);
}

.farm-land-card.is-black::after {
  position: absolute;
  inset: -18px;
  content: "";
  pointer-events: none;
  background:
    url("./assets/farm/black-land-electric-border.gif") center / 282% 168% no-repeat;
  border-radius: inherit;
  filter: saturate(1.18) brightness(1.08) contrast(1.08);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.farm-land-card.is-black.is-selected::before {
  box-shadow:
    inset 0 0 0 1px rgba(218, 255, 255, 0.58),
    inset 0 0 20px rgba(0, 210, 255, 0.18),
    0 0 14px rgba(0, 210, 255, 0.56),
    0 0 34px rgba(0, 156, 220, 0.32);
}

.farm-land-card.is-gold {
  background: linear-gradient(180deg, rgba(255, 248, 219, 0.98) 0%, rgba(240, 219, 149, 0.92) 100%);
}

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

.farm-land-index,
.farm-land-quality {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.farm-land-index {
  color: #6d613e;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.farm-land-quality {
  color: #4e4124;
  background: rgba(232, 200, 109, 0.24);
}

.farm-land-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding-top: 8px;
}

.farm-land-status {
  margin: 0 0 4px;
  color: #251e12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.farm-land-copy,
.farm-land-meta {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #7d7052;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.farm-land-meta + .farm-land-meta {
  margin-top: 6px;
}

.farm-land-crop-name {
  overflow: hidden;
  margin: 0 0 4px;
  color: #2e2617;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-land-action,
.farm-land-actions {
  margin-top: auto;
}

.farm-land-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.farm-land-event {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-top: 12px;
  margin-bottom: 12px;
  background: rgba(120, 174, 85, 0.12);
  border: 1px solid rgba(120, 174, 85, 0.2);
  border-radius: 16px;
}

.farm-land-event strong {
  color: #2f4920;
  font-size: 14px;
}

.farm-land-event span {
  color: #5d7247;
  font-size: 12px;
}

.farm-land-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: #fffdf7;
  background: linear-gradient(180deg, #6ea94f 0%, #56843b 100%);
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.farm-land-action.is-secondary {
  color: #534627;
  background: rgba(255, 247, 221, 0.92);
}

.farm-land-action.is-danger {
  color: #e0342b;
  background: rgba(255, 241, 240, 0.96);
  border: 1px solid rgba(242, 183, 179, 0.92);
  box-shadow: none;
}

.farm-land-action[disabled] {
  cursor: not-allowed;
  opacity: 0.66;
}

.farm-left-rail,
.farm-right-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.farm-info-card {
  padding: 18px 20px;
  border-radius: 22px;
}

.farm-profile-card {
  position: relative;
  width: 100%;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  box-shadow: 0 18px 34px rgba(73, 61, 26, 0.08);
}

.farm-profile-card.is-guest {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.98);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.farm-profile-card.is-authenticated {
  padding-right: 54px;
}

.farm-profile-card.is-guest:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(73, 61, 26, 0.1);
}

.farm-profile-card.is-guest:focus-visible {
  outline: 3px solid rgba(165, 137, 65, 0.28);
  outline-offset: 4px;
}

.farm-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 24px;
  background: linear-gradient(180deg, rgba(255, 244, 209, 0.96) 0%, rgba(241, 230, 186, 0.96) 100%);
  border: 1px solid rgba(174, 151, 86, 0.18);
  box-shadow: inset 0 -2px 0 rgba(162, 136, 63, 0.08);
}

.farm-profile-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.farm-profile-copy strong {
  color: #181818;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.farm-profile-copy span {
  color: #64583d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.farm-profile-logout {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #7d6b46;
  background: rgba(255, 247, 221, 0.92);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.farm-profile-logout-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.farm-profile-logout-icon svg {
  width: 16px;
  height: 16px;
}

.farm-nav-title {
  margin: 0 0 18px;
  color: #2f2617;
  font-size: 14px;
  font-weight: 700;
}

.farm-nav-list {
  display: grid;
  gap: 12px;
}

.farm-nav-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: #2f2617;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.farm-nav-item.is-active {
  color: #24843f;
  background: linear-gradient(90deg, rgba(205, 244, 211, 0.92) 0%, rgba(228, 246, 229, 0.92) 100%);
}

.farm-account-card {
  display: grid;
  gap: 10px;
}

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

.farm-account-head h3 {
  margin: 0;
}

.farm-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #7f6a36;
  background: rgba(255, 245, 210, 0.96);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.farm-account-badge.is-online {
  color: #f8fff6;
  background: linear-gradient(180deg, #6ea94f 0%, #56843b 100%);
}

.farm-account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.farm-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  font-size: 26px;
  background: linear-gradient(180deg, rgba(255, 244, 209, 0.96) 0%, rgba(241, 230, 186, 0.96) 100%);
  border: 1px solid rgba(174, 151, 86, 0.2);
  border-radius: 18px;
  box-shadow: inset 0 -2px 0 rgba(162, 136, 63, 0.08);
}

.farm-account-profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.farm-account-user {
  margin: 0;
  color: #2b2416;
  font-size: 18px;
  font-weight: 800;
}

.farm-account-handle {
  margin: 0;
  color: #8a7a59;
  font-size: 12px;
  line-height: 1.5;
}

.farm-account-copy,
.farm-account-meta,
.farm-account-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.farm-account-copy,
.farm-account-meta {
  color: #73664a;
}

.farm-account-copy.is-success {
  color: #2d6d38;
}

.farm-account-copy.is-warning {
  color: #9a6b14;
}

.farm-account-copy.is-error {
  color: #b84545;
}

.farm-account-copy.is-info {
  color: #3664a1;
}

.farm-account-detail {
  margin: -2px 0 0;
  color: #8a7a59;
  font-size: 12px;
  line-height: 1.6;
}

.farm-account-error {
  color: #b84545;
}

.farm-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.farm-info-card-emphasis {
  background:
    linear-gradient(180deg, rgba(255, 251, 239, 0.98) 0%, rgba(245, 238, 212, 0.96) 100%);
}

.farm-card-label {
  margin: 0 0 8px;
  color: #94793a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.farm-info-card h3 {
  margin: 0 0 16px;
  color: #302717;
  font-size: 16px;
}

.farm-metric-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 86px;
  padding: 16px 22px 16px 28px;
  border-radius: 22px;
}

.farm-metric-card.is-disabled {
  opacity: 0.58;
}

.farm-metric-card.is-disabled .farm-metric-icon {
  filter: saturate(0.35);
}

.farm-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.farm-metric-icon.is-gold {
  background: #ea8e00;
}

.farm-metric-icon.is-green {
  background: #2ebb4d;
}

.farm-metric-icon.is-blue {
  background: #2f61da;
}

.farm-metric-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.farm-metric-copy strong {
  color: #131313;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.farm-metric-copy span {
  color: #5c553f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.farm-sign-in-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  place-items: center;
  gap: 0;
  padding-left: 22px;
}

.farm-sign-in-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  padding: 0 16px;
  color: #fffdf7;
  background: linear-gradient(180deg, #6ea94f 0%, #56843b 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 -2px 0 rgba(53, 86, 35, 0.18);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.farm-sign-in-button.is-claimed {
  color: #f9f6ea;
  background: linear-gradient(180deg, #7f996f 0%, #647957 100%);
  opacity: 1;
}

.farm-sign-in-button[disabled] {
  cursor: not-allowed;
  color: #f9f6ea;
  background: linear-gradient(180deg, #7f996f 0%, #647957 100%);
  box-shadow: none;
}

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

.farm-info-head h3 {
  margin: 0;
}

.farm-info-list,
.farm-check-list,
.farm-crop-config-meta {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.farm-info-list li,
.farm-crop-config-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.farm-info-list span,
.farm-crop-config-meta span,
.farm-crop-unlock {
  color: #7b6d50;
  font-size: 14px;
}

.farm-info-list strong,
.farm-crop-config-meta strong {
  color: #312818;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.farm-crop-list {
  display: grid;
  gap: 12px;
}

.farm-crop-category,
.farm-modal-crop-section {
  display: grid;
  gap: 12px;
}

.farm-crop-category + .farm-crop-category,
.farm-modal-crop-section + .farm-modal-crop-section {
  margin-top: 8px;
}

.farm-crop-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(96, 206, 132, 0.22);
}

.farm-crop-category-head h4 {
  margin: 0;
  color: #20934f;
  font-size: 17px;
  font-weight: 900;
}

.farm-crop-category-head span {
  color: #7daf8c;
  font-size: 12px;
  font-weight: 800;
}

.farm-log-list {
  display: grid;
  gap: 12px;
}

.farm-event-list {
  display: grid;
  gap: 12px;
}

.farm-task-list,
.farm-quick-actions {
  display: grid;
  gap: 12px;
}

.farm-highlight-stack {
  display: grid;
  gap: 10px;
}

.farm-highlight-item,
.farm-collection-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 18px;
}

.farm-highlight-item span,
.farm-collection-chip span {
  color: #7d7052;
  font-size: 13px;
}

.farm-highlight-item strong,
.farm-collection-chip strong {
  color: #2f2617;
  font-size: 18px;
  font-weight: 800;
}

.farm-collection-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.farm-panel-toggle,
.farm-side-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.farm-panel-toggle {
  flex-shrink: 0;
  color: #584a2a;
  background: rgba(255, 247, 221, 0.92);
  cursor: pointer;
}

.farm-panel-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.66;
}

.farm-crop-config-card {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 18px;
}

.farm-task-card {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 18px;
}

.farm-task-card.is-ready {
  border-color: rgba(121, 170, 83, 0.34);
  box-shadow: inset 0 0 0 1px rgba(121, 170, 83, 0.1);
}

.farm-task-card.is-claimed {
  opacity: 0.72;
}

.farm-task-head,
.farm-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.farm-task-head {
  margin-bottom: 8px;
}

.farm-task-head strong {
  color: #312818;
  font-size: 15px;
}

.farm-task-head span,
.farm-task-foot span {
  color: #786a4d;
  font-size: 12px;
  font-weight: 800;
}

.farm-task-card p {
  margin: 0 0 14px;
  color: #6f6348;
  font-size: 13px;
}

.farm-task-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 16px;
}

.farm-task-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.farm-collapsible-head {
  align-items: center;
  justify-content: space-between;
}

.farm-task-panel-head h3 {
  margin: 0;
  color: #302717;
  font-size: 16px;
  line-height: 1.2;
}

.farm-task-panel-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: visible;
  padding-right: 2px;
  pointer-events: none;
}

.farm-rule-panel {
  display: grid;
  gap: 12px;
}

.farm-rule-list {
  display: grid;
  gap: 10px;
}

.farm-rule-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 18px;
}

.farm-rule-item strong {
  display: block;
  margin-bottom: 6px;
  color: #312818;
  font-size: 14px;
}

.farm-rule-item p {
  margin: 0;
  color: #786a4d;
  font-size: 13px;
  line-height: 1.55;
}

.farm-task-card-figure {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(194, 176, 134, 0.14);
}

.farm-task-head-figure {
  align-items: flex-start;
  margin-bottom: 6px;
}

.farm-task-head-figure strong {
  color: #312818;
  font-size: 13px;
  line-height: 1.35;
}

.farm-task-head-figure span {
  color: #312818;
  font-size: 14px;
  font-weight: 800;
}

.farm-task-copy {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #7b6d50;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.farm-task-foot-figure {
  align-items: center;
}

.farm-task-foot-figure span {
  color: #7b6d50;
  font-size: 12px;
}

.farm-task-state {
  min-width: 76px;
  min-height: 32px;
  padding: 0 10px;
  color: #8e7d59;
  background: rgba(255, 248, 224, 0.9);
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: auto;
}

.farm-task-state.is-ready {
  color: #fffdf7;
  background: linear-gradient(180deg, #6ea94f 0%, #56843b 100%);
}

.farm-task-state.is-muted,
.farm-task-state[disabled] {
  cursor: not-allowed;
  opacity: 1;
}

.farm-crop-config-card.is-unlocked {
  border-color: rgba(121, 170, 83, 0.34);
  box-shadow: inset 0 0 0 1px rgba(121, 170, 83, 0.08);
}

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

.farm-crop-config-head strong {
  color: #312818;
  font-size: 17px;
}

.farm-crop-config-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.farm-crop-config-head span {
  color: #8a7440;
  font-size: 12px;
  font-weight: 800;
}

.farm-rarity-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.farm-rarity-tag.is-普通 {
  color: #667561;
  background: rgba(241, 244, 235, 0.96);
}

.farm-rarity-tag.is-优良 {
  color: #2a65e0;
  background: rgba(230, 237, 255, 0.96);
}

.farm-rarity-tag.is-稀有 {
  color: #7c4cff;
  background: rgba(241, 232, 255, 0.96);
}

.farm-rarity-tag.is-传奇,
.farm-rarity-tag.is-传说 {
  color: #ea7a14;
  background: rgba(255, 241, 228, 0.96);
}

.farm-crop-unlock {
  margin: 12px 0 0;
}

.farm-log-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 18px;
}

.farm-event-card {
  padding: 14px 16px;
  background: rgba(246, 252, 240, 0.9);
  border: 1px solid rgba(122, 172, 88, 0.22);
  border-radius: 18px;
}

.farm-event-head,
.farm-event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.farm-event-head {
  margin-bottom: 8px;
}

.farm-event-head strong {
  color: #2d391c;
  font-size: 15px;
}

.farm-event-head span,
.farm-event-foot span {
  color: #6c7759;
  font-size: 12px;
  font-weight: 700;
}

.farm-event-card p {
  margin: 0 0 14px;
  color: #465438;
  font-size: 13px;
}

.farm-event-foot .farm-land-action {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.farm-log-item p {
  margin: 0 0 8px;
  color: #332a1b;
  font-size: 14px;
  font-weight: 700;
}

.farm-log-item span,
.farm-empty-copy,
.farm-collapsed-copy {
  color: #7b6d50;
  font-size: 13px;
}

.farm-empty-copy,
.farm-collapsed-copy {
  margin: 0;
}

.farm-side-actions {
  margin-top: 14px;
}

.farm-side-action {
  width: 100%;
  color: #fffdf7;
  background: linear-gradient(180deg, #6ea94f 0%, #56843b 100%);
  cursor: pointer;
}

.farm-side-action.is-secondary {
  color: #584a2a;
  background: rgba(255, 247, 221, 0.92);
}

.farm-side-action[disabled] {
  cursor: not-allowed;
  opacity: 0.66;
}

.farm-side-summary-card {
  min-height: 112px;
}

.farm-side-summary-card.is-active {
  box-shadow: 0 0 0 2px rgba(172, 214, 178, 0.36);
}

.farm-side-summary-action {
  display: grid;
  align-content: start;
  justify-items: start;
  text-align: left;
  cursor: pointer;
}

.farm-side-summary-copy {
  margin: 0;
  color: #2f2617;
  font-size: 13px;
  line-height: 1.6;
}

.farm-side-summary-meta {
  display: inline-block;
  margin-top: 12px;
  color: #7b6d50;
  font-size: 12px;
  line-height: 1.6;
}

.farm-check-list li {
  position: relative;
  padding-left: 18px;
  color: #655a42;
  font-size: 14px;
}

.farm-check-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: #8aaf5e;
  border-radius: 999px;
}

.farm-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 24, 15, 0.46);
  backdrop-filter: blur(8px);
}

.farm-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: min(82vh, 900px);
  overflow: auto;
  padding: 26px;
  background: linear-gradient(180deg, #fffdf4 0%, #f8f1dc 100%);
  border: 1px solid rgba(161, 139, 77, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 64px rgba(24, 21, 12, 0.22);
}

.farm-modal-wide {
  width: min(1080px, calc(100vw - 32px));
}

.farm-modal-confirm {
  width: min(520px, calc(100vw - 32px));
}

.farm-modal-crop-picker {
  width: min(1680px, calc(100vw - 40px));
}

.farm-modal-auth {
  width: min(620px, calc(100vw - 40px));
}

.farm-modal-collection-book {
  display: flex;
  flex-direction: column;
}

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

.farm-modal-head h3 {
  margin: 6px 0 0;
  color: #302717;
  font-size: 30px;
}

.farm-modal-close {
  width: 42px;
  height: 42px;
  color: #4f4428;
  background: rgba(255, 248, 229, 0.92);
  border: 1px solid rgba(167, 145, 80, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.farm-modal-copy {
  margin: 0 0 20px;
  color: #6a5d41;
  font-size: 15px;
}

.farm-modal-copy-strong {
  margin-bottom: 10px;
  color: #748866;
  font-size: 17px;
  font-weight: 700;
}

.farm-auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.farm-auth-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.farm-auth-hero-copy {
  min-width: 0;
}

.farm-auth-hero-copy h3 {
  margin: 0 0 8px;
  color: #302717;
  font-size: 28px;
}

.farm-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.farm-auth-field {
  display: grid;
  gap: 8px;
}

.farm-auth-field span {
  color: #6b5f44;
  font-size: 13px;
  font-weight: 700;
}

.farm-auth-field input {
  min-height: 46px;
  padding: 0 14px;
  color: #2c2517;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(180, 164, 120, 0.24);
  border-radius: 14px;
  font-size: 14px;
}

.farm-auth-field input:focus {
  outline: none;
  border-color: rgba(88, 132, 59, 0.5);
  box-shadow: 0 0 0 3px rgba(110, 169, 79, 0.14);
}

.farm-auth-submit {
  width: 100%;
  min-height: 46px;
}

.farm-modal-crop-list {
  display: grid;
  gap: 24px;
}

.farm-modal-collection-book .farm-modal-crop-list {
  min-height: 0;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 8px;
}

.farm-modal-crop-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.farm-modal-crop-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  min-height: 220px;
  padding: 16px 14px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(69, 61, 33, 0.06);
}

.farm-modal-crop-picker:not(.farm-modal-collection-book) .farm-modal-crop-card {
  gap: 16px;
  min-height: 230px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(202, 214, 204, 0.76);
  border-radius: 14px;
  box-shadow: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.farm-modal-crop-picker:not(.farm-modal-collection-book) .farm-modal-crop-card:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(31, 166, 79, 0.95);
  box-shadow: 0 16px 30px rgba(26, 110, 59, 0.12);
}

.farm-modal-crop-card.is-disabled {
  opacity: 0.72;
}

.farm-modal-crop-picker:not(.farm-modal-collection-book) .farm-modal-crop-card.is-disabled:hover {
  transform: none;
  border-color: rgba(202, 214, 204, 0.76);
  box-shadow: none;
}

.farm-modal-crop-card.is-collected {
  border-color: rgba(121, 170, 83, 0.32);
  box-shadow: inset 0 0 0 1px rgba(121, 170, 83, 0.1);
}

.farm-collection-crop-card {
  align-items: center;
  justify-content: start;
  gap: 12px;
  min-height: 252px;
  padding: 22px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid rgba(206, 209, 216, 0.82);
  border-radius: 26px;
  box-shadow: 0 10px 22px rgba(43, 49, 40, 0.05);
}

.farm-collection-crop-card.is-disabled {
  opacity: 0.58;
}

.farm-collection-crop-card.is-collected {
  border-color: rgba(121, 170, 83, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(121, 170, 83, 0.1),
    0 12px 24px rgba(43, 49, 40, 0.06);
}

.farm-collection-crop-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 92px;
  margin-top: 2px;
}

.farm-collection-crop-figure img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.farm-collection-crop-main {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
  min-width: 0;
}

.farm-collection-crop-main strong {
  color: #183021;
  font-size: 21px;
  line-height: 1.15;
  text-align: center;
}

.farm-collection-crop-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #6e7b6f;
  font-size: 15px;
  font-weight: 800;
}

.farm-collection-quality-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
}

.farm-collection-quality-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(44, 42, 64, 0.12);
}

.farm-collection-quality-chip.is-普通 {
  background: #7a8190;
}

.farm-collection-quality-chip.is-优良 {
  background: #3f73ff;
}

.farm-collection-quality-chip.is-稀有 {
  background: #8358f1;
}

.farm-collection-quality-chip.is-传说 {
  background: #f08a2d;
}

.farm-collection-locked-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 12px;
  color: #7a6f66;
  background: rgba(228, 226, 221, 0.82);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.farm-modal-crop-main {
  min-width: 0;
  display: grid;
  gap: 16px;
  flex: 1;
}

.farm-modal-crop-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}

.farm-modal-crop-title strong {
  color: #1f2f23;
  font-size: 18px;
  line-height: 1.2;
}

.farm-modal-crop-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.farm-modal-crop-collect {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  color: #168548;
  background: rgba(53, 190, 100, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.farm-modal-crop-meta {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.farm-modal-crop-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.farm-modal-crop-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #7a867a;
  font-size: 15px;
  font-weight: 700;
}

.farm-modal-crop-meta strong {
  color: #1f2f23;
  font-size: 16px;
  font-weight: 900;
}

.farm-modal-crop-meta strong.is-cost {
  color: #ef313b;
}

.farm-modal-crop-meta strong.is-harvest {
  color: #18a24f;
}

.farm-modal-crop-unlock {
  min-height: 18px;
  margin: 0;
  color: #7b8a7c;
  font-size: 12px;
  font-weight: 700;
}

.farm-modal-crop-action {
  width: 100%;
  min-height: 40px;
  padding: 0 18px;
  color: #fffef8;
  background: #1fa24e;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.farm-modal-crop-action[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.farm-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.farm-development-grid,
.farm-record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.farm-development-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 164, 120, 0.16);
  border-radius: 20px;
}

.farm-development-card h4 {
  margin: 0 0 14px;
  color: #312818;
  font-size: 18px;
}

.farm-record-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 18px;
}

.farm-panel-toggle.is-active {
  color: #fffdf7;
  background: linear-gradient(180deg, #6ea94f 0%, #56843b 100%);
}

.farm-record-list {
  display: grid;
  gap: 12px;
}

.farm-guide-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: #5f543c;
  font-size: 14px;
}

.farm-toast-layer {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 140;
  display: grid;
  gap: 10px;
}

.farm-toast {
  min-width: 220px;
  padding: 14px 16px;
  color: #fffdf5;
  background: rgba(47, 76, 29, 0.94);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(23, 34, 15, 0.18);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1499px) {
  .farm-shell {
    width: min(100%, calc(100% - 24px));
  }

  .farm-playground {
    grid-template-columns: minmax(0, 860px);
  }

  .farm-left-rail {
    width: 236px;
    justify-self: start;
  }

  .farm-right-rail {
    width: 332px;
    justify-self: end;
  }
}

@media (max-width: 1279px) {
  .farm-shell-intro,
  .farm-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .farm-shell-badges,
  .farm-panel-head p {
    justify-content: flex-start;
    text-align: left;
  }

  .farm-playground {
    grid-template-columns: minmax(0, 860px);
  }

  .farm-bottom-actions,
  .farm-development-grid,
  .farm-record-summary {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 960px) {
  .farm-playground {
    grid-template-columns: 1fr;
  }

  .farm-left-rail,
  .farm-right-rail {
    width: auto;
    justify-self: stretch;
  }

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

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

  .farm-bottom-actions,
  .farm-development-grid,
  .farm-record-summary {
    grid-template-columns: 1fr;
  }

  .farm-modal-crop-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .farm-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 88px;
  }

  .farm-status-bar,
  .farm-grid,
  .farm-bulk-actions {
    grid-template-columns: 1fr;
  }

  .farm-bulk-action-card + .farm-bulk-action-card::before,
  .farm-bulk-action-card:nth-child(3)::before {
    top: 0;
    right: 16px;
    bottom: auto;
    left: 16px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(105, 163, 87, 0.42) 48%, transparent 100%);
  }

  .farm-grid-panel,
  .farm-info-card {
    padding: 18px;
    border-radius: 20px;
  }

  .farm-modal {
    width: min(100vw - 16px, 100%);
    padding: 18px;
    border-radius: 20px;
  }

  .farm-modal-head h3 {
    font-size: 24px;
  }
}
