:root {
  --color-bg-canvas: #f5f5f3;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #f0f0ed;
  --color-bg-hover: #e9e9e5;
  --color-border: #deded9;
  --color-border-strong: #c8c8c1;
  --color-text-primary: #1a1a18;
  --color-text-secondary: #6d6d66;
  --color-accent: #d97757;
  --color-accent-strong: #c96546;
  --color-accent-soft: #faece7;
  --color-on-accent: #ffffff;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --radius-sm: 4px;
  --radius-control: 6px;
  --radius-panel: 8px;
  --radius-round: 999px;
  --shadow-panel: 0 2px 8px rgba(26, 26, 24, 0.06);
  --shadow-modal: 0 16px 48px rgba(26, 26, 24, 0.16);
  --font-sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --type-sm: 14px;
  --type-md: 20px;
  --type-lg: 28px;
  --line-sm: 22px;
  --line-md: 28px;
  --line-lg: 36px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 1440px;
  min-height: 900px;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--color-text-primary);
  background: var(--color-bg-canvas);
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  line-height: var(--line-sm);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

svg {
  flex: 0 0 auto;
}

.app-frame {
  width: 1440px;
  height: 900px;
  margin: 0 auto;
  background: var(--color-bg-canvas);
}

.primary-layout {
  display: flex;
  width: 1440px;
  height: 900px;
}

.secondary-layout {
  display: flex;
  flex-direction: column;
  width: 1440px;
  height: 900px;
}

.sidebar {
  display: flex;
  flex: 0 0 240px;
  flex-direction: column;
  height: 900px;
  padding: var(--space-3) var(--space-2);
  background: var(--color-bg-surface);
  border-right: 1px solid var(--color-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--space-5);
  padding: 0 var(--space-1);
  font-size: var(--type-md);
  font-weight: 600;
  line-height: var(--line-md);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-4);
  height: var(--space-4);
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-radius: var(--radius-control);
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-6);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  height: var(--space-6);
  padding: 0 var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-align: left;
}

.nav-item:hover {
  background: var(--color-bg-subtle);
}

.nav-item.is-active {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  font-weight: 600;
}

.sidebar-footer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: auto;
  padding: var(--space-2);
  background: var(--color-bg-subtle);
  border: 0;
  border-radius: var(--radius-panel);
  cursor: pointer;
  text-align: left;
}

.sidebar-footer:hover {
  background: var(--color-bg-hover);
}

.sidebar-footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-footer strong {
  font-weight: 500;
}

.sidebar-footer span:not(.status-dot) {
  color: var(--color-text-secondary);
}

.status-dot {
  width: var(--space-1);
  height: var(--space-1);
  margin-top: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

.main-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-4);
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

.topbar-left,
.topbar-right,
.farm-identity,
.topbar-actions,
.secondary-title,
.secondary-actions {
  display: flex;
  align-items: center;
}

.topbar-left {
  min-width: 0;
  gap: var(--space-2);
}

.farm-identity {
  gap: var(--space-2);
}

.farm-identity .label,
.label {
  color: var(--color-text-secondary);
}

.farm-identity strong {
  font-size: var(--type-md);
  font-weight: 500;
  line-height: var(--line-md);
}

.topbar-actions {
  gap: var(--space-2);
}

.content {
  flex: 1;
  min-height: 0;
  padding: var(--space-4);
}

.content--scroll {
  overflow: auto;
}

.content--scroll,
.detail-page,
.drawer-list,
.appearance-panel,
.modal {
  scrollbar-width: none;
}

.content--scroll::-webkit-scrollbar,
.detail-page::-webkit-scrollbar,
.drawer-list::-webkit-scrollbar,
.appearance-panel::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  display: none;
}

.content--tight {
  padding: var(--space-3) var(--space-4);
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.eyebrow {
  margin-bottom: var(--space-1);
  color: var(--color-text-secondary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: var(--type-lg);
  font-weight: 600;
  line-height: var(--line-lg);
}

h2 {
  margin-bottom: 0;
  font-size: var(--type-md);
  font-weight: 600;
  line-height: var(--line-md);
}

h3 {
  margin-bottom: var(--space-1);
  font-size: var(--type-sm);
  font-weight: 600;
  line-height: var(--line-sm);
}

.page-heading p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
}

.muted {
  color: var(--color-text-secondary);
}

.overview-number {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  padding-bottom: 2px;
}

.overview-number strong {
  color: var(--color-accent);
  font-size: var(--type-lg);
  font-weight: 600;
  line-height: var(--line-lg);
}

.overview-number span {
  color: var(--color-text-secondary);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.capacity-note,
.inline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
}

.divider {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--space-5);
  padding: 0 var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 500;
  line-height: var(--line-sm);
  white-space: nowrap;
}

.button:hover {
  border-color: var(--color-border-strong);
}

.button-primary {
  color: var(--color-on-accent);
  background: var(--color-accent);
}

.button-primary:hover {
  background: var(--color-accent-strong);
}

.button-secondary {
  background: var(--color-bg-surface);
  border-color: var(--color-border);
}

.button-secondary:hover {
  background: var(--color-bg-subtle);
}

.button-ghost {
  padding: 0 var(--space-1);
  background: transparent;
}

.button-danger {
  color: var(--color-on-accent);
  background: var(--color-accent);
}

.button-link {
  padding: 0;
  color: var(--color-accent-strong);
  background: transparent;
  border: 0;
}

.button[disabled] {
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border-color: var(--color-border);
  cursor: not-allowed;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-border);
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  width: 320px;
  height: var(--space-5);
  padding: 0 var(--space-2);
  color: var(--color-text-secondary);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.search-field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.search-field input {
  min-width: 0;
  flex: 1;
  color: var(--color-text-primary);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: var(--color-text-secondary);
}

.search-field--wide {
  width: 480px;
}

.shortcut {
  padding: 0 6px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  line-height: 20px;
  white-space: nowrap;
}

.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--space-5);
  padding: 0 var(--space-4);
  color: var(--color-text-secondary);
  background: var(--color-accent-soft);
  border-bottom: 1px solid #efd9d1;
}

.notice-bar > div {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.notice-bar strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.segment {
  height: 34px;
  padding: 0 var(--space-2);
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.segment:hover {
  color: var(--color-text-primary);
}

.segment.is-active {
  color: var(--color-text-primary);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-panel);
  font-weight: 500;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.fixed-zone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.area-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}

.fixed-zone-card {
  min-height: 362px;
  padding: 20px var(--space-3) 18px;
}

.fixed-zone-card .scene {
  height: 188px;
  margin-top: 12px;
}

.zone-title {
  font-size: 24px;
  line-height: 32px;
}

.area-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.area-card.is-hidden {
  display: none;
}

.area-card.is-highlighted {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.area-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.area-card-title {
  margin: 0;
}

.area-card-subtitle {
  margin: 2px 0 0;
  color: var(--color-text-secondary);
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-3);
  padding: 0 10px;
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-round);
  white-space: nowrap;
}

.tag--accent {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

.scene {
  position: relative;
  height: 96px;
  margin-top: var(--space-1);
  overflow: hidden;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-control);
}

.scene--water {
  background: #f2f2ef;
}

.scene--grass {
  background: var(--color-bg-subtle);
}

.ground-line,
.water-line {
  position: absolute;
  right: var(--space-3);
  left: var(--space-3);
  height: 1px;
  background: var(--color-border-strong);
}

.ground-line {
  bottom: var(--space-4);
}

.water-line {
  bottom: var(--space-3);
  height: 20px;
  border-bottom: 1px solid var(--color-border-strong);
  border-radius: 50%;
}

.animal {
  position: absolute;
  display: block;
  line-height: 0;
}

.area-card-footer {
  margin-top: auto;
  padding-top: var(--space-1);
}

.zone-card-footer {
  padding-top: 13px;
}

.zone-card-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--color-text-secondary);
}

.scene-window-pill,
.scene-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border-radius: var(--radius-round);
  white-space: nowrap;
}

.zone-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-text-secondary);
}

.zone-empty strong {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 500;
}

.zone-empty-action {
  color: var(--color-accent-strong);
  font-weight: 500;
}

.area-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-secondary);
}

.area-meta strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.progress-track {
  height: var(--space-1);
  margin-top: 6px;
  overflow: hidden;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-round);
}

.progress-value {
  height: 100%;
  background: var(--color-accent);
  border-radius: inherit;
}

.primary-topbar-search {
  width: 340px;
}

.farm-overview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
}

.farm-overview-meta strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: var(--space-6);
  text-align: center;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-panel);
}

.empty-state h2 {
  margin-bottom: var(--space-1);
}

.empty-state p {
  max-width: 420px;
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

.search-page {
  max-width: 960px;
}

.search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.search-heading p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
}

.result-list {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.result-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 148px 120px 24px;
  align-items: center;
  gap: var(--space-2);
  min-height: 80px;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row:hover {
  background: var(--color-bg-subtle);
}

.result-copy {
  min-width: 0;
}

.result-title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-excerpt {
  overflow: hidden;
  color: var(--color-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-control);
}

.result-place {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}

.settings-layout {
  max-width: 1040px;
}

.settings-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.settings-intro p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
}

.settings-group {
  margin-bottom: var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.settings-group-title {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.settings-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 72px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row:hover {
  background: var(--color-bg-subtle);
}

.settings-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-control);
}

.settings-row-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.settings-row-copy > span {
  display: block;
}

.settings-row-title {
  font-weight: 500;
}

.settings-row-description {
  color: var(--color-text-secondary);
}

.settings-row-value {
  color: var(--color-text-secondary);
}

.settings-row--danger .settings-row-title,
.settings-row--danger .settings-row-icon {
  color: var(--color-accent-strong);
}

.secondary-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-4);
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

.secondary-title {
  min-width: 0;
  gap: var(--space-2);
}

.secondary-title-copy {
  display: flex;
  flex-direction: column;
}

.secondary-title-copy strong {
  font-size: var(--type-md);
  font-weight: 500;
  line-height: var(--line-md);
}

.secondary-title-copy span {
  color: var(--color-text-secondary);
}

.secondary-actions {
  gap: var(--space-1);
}

.area-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.area-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.area-summary-copy {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.area-summary-copy p {
  margin: 0;
  color: var(--color-text-secondary);
}

.area-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.area-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.area-stage::before {
  position: absolute;
  right: 72px;
  bottom: 120px;
  left: 72px;
  height: 1px;
  background: var(--color-border);
  content: "";
}

.area-stage--water::before {
  bottom: 104px;
  height: 48px;
  border-bottom: 1px solid var(--color-border-strong);
  border-radius: 50%;
}

.forest-page {
  position: relative;
}

.forest-stage {
  background: #f2f2ef;
}

.forest-stage::before {
  display: none;
}

.forest-scenery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.forest-stage .stage-label,
.forest-stage .stage-animal,
.forest-stage .stage-empty {
  z-index: 1;
}

.forest-summary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.forest-footnote {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
}

.stage-label {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-secondary);
}

.stage-animal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 120ms ease;
}

.stage-animal:hover {
  transform: translateY(-3px);
}

.stage-animal:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-control);
}

.stage-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.stage-empty p {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.floating-action {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 2;
}

.form-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: var(--space-3);
  max-width: 1060px;
  margin: var(--space-4) auto 0;
}

.preview-panel {
  padding: var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.preview-stage {
  position: relative;
  height: 360px;
  margin-top: var(--space-2);
  overflow: hidden;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-control);
}

.preview-stage::after {
  position: absolute;
  right: var(--space-4);
  bottom: 96px;
  left: var(--space-4);
  height: 1px;
  background: var(--color-border-strong);
  content: "";
}

.preview-animal {
  position: absolute;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
}

.form-panel {
  padding: var(--space-4);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.form-section + .form-section {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-1);
  font-weight: 500;
}

.field-label span {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.input,
.textarea {
  width: 100%;
  color: var(--color-text-primary);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  outline: 0;
}

.input {
  height: var(--space-5);
  padding: 0 var(--space-2);
}

.textarea {
  min-height: 180px;
  padding: var(--space-2);
  resize: vertical;
}

.textarea--large {
  min-height: 330px;
}

.input:focus,
.textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.choice-grid {
  display: grid;
  gap: var(--space-1);
}

.choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 80px;
  padding: var(--space-2);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  cursor: pointer;
  text-align: left;
}

.choice-card:hover {
  border-color: var(--color-border-strong);
}

.choice-card.is-selected {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.choice-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.choice-card strong {
  font-weight: 500;
}

.choice-card span {
  color: var(--color-text-secondary);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.form-actions-right {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.editor-main,
.appearance-panel {
  min-height: 0;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.editor-main {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
}

.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.editor-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
}

.editor-status::before {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  content: "";
}

.editor-fields {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 0;
}

.editor-fields .textarea--large {
  flex: 1;
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.appearance-panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  overflow: auto;
}

.appearance-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin: var(--space-2) 0 var(--space-3);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-control);
}

.appearance-block + .appearance-block {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.appearance-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.appearance-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-4);
  padding: 0 12px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  cursor: pointer;
}

.appearance-chip:hover {
  border-color: var(--color-border-strong);
}

.appearance-chip.is-selected {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.species-readonly {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
}

.detail-page {
  height: 100%;
  overflow: auto;
  padding: var(--space-4);
}

.detail-layout {
  max-width: 880px;
  margin: 0 auto;
}

.detail-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  margin-bottom: var(--space-4);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.detail-content {
  padding: 0 var(--space-4) var(--space-6);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-4);
  color: var(--color-text-secondary);
}

.detail-release-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.detail-release-facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-release-facts span {
  color: var(--color-text-secondary);
}

.detail-release-facts strong {
  font-weight: 500;
}

.detail-body {
  font-size: var(--type-sm);
  line-height: 2;
}

.detail-body p {
  margin-bottom: var(--space-3);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(26, 26, 24, 0.38);
}

.modal {
  width: 480px;
  max-height: 720px;
  overflow: auto;
  background: var(--color-bg-surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-modal);
}

.modal--large {
  width: 640px;
}

.modal--small {
  width: 400px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) 0;
}

.modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-control);
}

.modal-body {
  padding: var(--space-2) var(--space-3) var(--space-3);
  color: var(--color-text-secondary);
}

.modal-body p {
  margin-bottom: var(--space-2);
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  padding: 0 var(--space-3) var(--space-3);
}

.modal-actions--split {
  justify-content: space-between;
}

.danger-note {
  padding: var(--space-2);
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border-radius: var(--radius-control);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: var(--space-2) 0;
  color: var(--color-text-primary);
}

.check-list div {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.option-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--space-6);
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  cursor: pointer;
  text-align: left;
}

.option-row:hover {
  background: var(--color-bg-subtle);
}

.option-row--danger {
  color: var(--color-accent-strong);
}

.option-row.is-selected {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.option-copy {
  display: flex;
  flex-direction: column;
}

.option-copy span {
  color: var(--color-text-secondary);
}

.drawer-overlay {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.drawer {
  display: flex;
  flex-direction: column;
  width: 520px;
  height: 900px;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-modal);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.drawer-list {
  flex: 1;
  overflow: auto;
}

.drawer-note {
  margin: var(--space-2) var(--space-3) var(--space-1);
  padding: 12px 14px;
  color: var(--color-text-secondary);
  background: var(--color-accent-soft);
  border: 1px solid #efd9d1;
  border-radius: var(--radius-control);
  line-height: 21px;
}

.drawer-note strong {
  color: var(--color-accent-strong);
  font-weight: 500;
}

.drawer-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: var(--space-2);
  min-height: 80px;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-align: left;
}

.drawer-item:hover {
  background: var(--color-bg-subtle);
}

.drawer-item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drawer-item-copy > span {
  display: block;
}

.drawer-item--forest {
  cursor: pointer;
}

.drawer-item--forest .button {
  min-height: var(--space-4);
  padding: 0 12px;
}

.reclaim-options {
  max-height: 232px;
  overflow: auto;
  scrollbar-width: none;
}

.reclaim-options::-webkit-scrollbar {
  display: none;
}

.reclaim-new-area {
  margin-top: var(--space-1);
}

.reclaim-modal {
  width: 520px;
}

.reclaim-copy {
  color: var(--color-text-primary);
  line-height: 24px;
}

.fixed-target-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: 15px var(--space-2);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-control);
}

.fixed-target-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--color-accent-strong);
  background: var(--color-bg-surface);
  border-radius: var(--radius-control);
}

.fixed-target-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.fixed-target-copy strong {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 500;
}

.fixed-target-copy span,
.fixed-target-count {
  color: var(--color-text-secondary);
}

.fixed-target-count {
  color: var(--color-accent-strong);
  white-space: nowrap;
}

.reclaim-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  line-height: 22px;
}

.drawer-item-title {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-item-meta {
  color: var(--color-text-secondary);
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: var(--space-4);
  left: 50%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--space-6);
  padding: 0 var(--space-2) 0 var(--space-3);
  color: var(--color-bg-surface);
  background: var(--color-text-primary);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-modal);
  transform: translateX(-50%);
}

.toast .button-link {
  color: #f3b49d;
}

.toast-close {
  color: var(--color-bg-subtle);
}

.small-text {
  color: var(--color-text-secondary);
}

.form-error {
  margin-top: var(--space-1);
  color: var(--color-accent-strong);
}

.divider-line {
  height: 1px;
  margin: var(--space-2) 0;
  background: var(--color-border);
}

.welcome-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 1440px;
  height: 900px;
  padding: 26px 48px 20px;
  overflow: hidden;
  color: #344f43;
  background: #c7dce3;
  isolation: isolate;
}

.welcome-screen::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(rgba(64, 78, 55, 0.12) 0.65px, transparent 0.65px);
  background-size: 5px 5px;
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.welcome-landscape {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-header,
.welcome-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-header {
  min-height: 40px;
}

.welcome-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.welcome-signature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fffbed;
  background: #4f6c58;
  border-radius: 50% 46% 52% 44%;
  transform: rotate(-5deg);
}

.welcome-signature-mark svg {
  transform: rotate(5deg);
}

.welcome-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.welcome-meta i {
  width: 7px;
  height: 7px;
  background: #62815f;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-sizing: content-box;
}

.welcome-main {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  justify-content: center;
}

.welcome-copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 68px;
  text-align: center;
}

.welcome-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #476458;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
}

.welcome-eyebrow span {
  width: 26px;
  height: 1px;
  background: #728d7c;
}

.welcome-title {
  display: flex;
  justify-content: center;
  margin: 15px 0 16px;
  color: #fffbed;
  font-family: "Arial Rounded MT Bold", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 100px;
  font-weight: 900;
  letter-spacing: 8px;
  line-height: 1.18;
  -webkit-text-stroke: 1.5px #617b70;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(79, 105, 91, 0.24), 0 12px 24px rgba(70, 94, 83, 0.1);
}

.welcome-title span {
  display: inline-block;
}

.welcome-title span:nth-child(1) {
  transform: rotate(-3deg) translateY(2px);
}

.welcome-title span:nth-child(2) {
  transform: rotate(2deg) translateY(-2px);
}

.welcome-title span:nth-child(3) {
  transform: rotate(-1deg) translateY(3px);
}

.welcome-title span:nth-child(4) {
  transform: rotate(2deg);
}

.welcome-title span:nth-child(5) {
  transform: rotate(-2deg) translateY(1px);
}

.welcome-copy p {
  margin: 0 0 25px;
  color: #405d51;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 27px;
}

.welcome-enter {
  min-width: 184px;
  min-height: 58px;
  padding: 0 8px 0 28px;
  gap: 20px;
  color: #fffdf3;
  background: #456552;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 0 #334e3e, 0 12px 22px rgba(52, 79, 61, 0.16);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.welcome-enter:hover {
  background: #365541;
  border: 0;
  box-shadow: 0 4px 0 #2c4636, 0 9px 18px rgba(52, 79, 61, 0.18);
  transform: translateY(2px);
}

.welcome-enter:active {
  box-shadow: 0 1px 0 #2c4636;
  transform: translateY(5px);
}

.welcome-enter:focus-visible {
  outline: 3px solid #fffbed;
  outline-offset: 5px;
}

.welcome-enter:disabled {
  cursor: wait;
  opacity: 0.8;
}

.welcome-enter-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #456552;
  background: #f8f3dd;
  border-radius: 50%;
}

.welcome-note {
  display: block;
  margin-top: 17px;
  color: #4c6759;
  font-size: 12px;
  letter-spacing: 1px;
}

.welcome-animals {
  position: absolute;
  z-index: 3;
  bottom: 91px;
  left: 50%;
  width: 630px;
  height: 190px;
  pointer-events: none;
  transform: translateX(-50%);
}

.welcome-animal {
  position: absolute;
  bottom: 18px;
  display: block;
  line-height: 0;
  transform-origin: center bottom;
}

.welcome-animal svg {
  position: relative;
  z-index: 1;
  overflow: visible;
  animation: welcome-animal-breathe 4.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 0 rgba(76, 91, 61, 0.08));
  transform-origin: center bottom;
}

.welcome-animal-shadow {
  position: absolute;
  z-index: 0;
  right: 13%;
  bottom: -2px;
  left: 13%;
  height: 17px;
  background: rgba(73, 94, 58, 0.17);
  border-radius: 50%;
  filter: blur(2px);
}

.welcome-animal--rabbit {
  bottom: 22px;
  left: 47px;
  transform: rotate(-3deg);
}

.welcome-animal--rabbit svg {
  animation-delay: -1.8s;
}

.welcome-animal--sheep {
  left: 215px;
}

.welcome-animal--sheep svg {
  animation-delay: -3.2s;
}

.welcome-animal--duck {
  right: 37px;
  bottom: 21px;
  transform: rotate(2deg);
}

.welcome-animal--duck svg {
  animation-delay: -0.8s;
}

.welcome-animal-caption {
  position: absolute;
  right: 0;
  bottom: -19px;
  left: 0;
  color: #304b3a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
}

.welcome-footer {
  color: #304535;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.welcome-footer span:last-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.welcome-cloud {
  transform-box: fill-box;
  transform-origin: center;
  animation: welcome-cloud-drift 12s ease-in-out infinite alternate;
}

.welcome-cloud--right {
  animation-delay: -6s;
  animation-duration: 15s;
}

.welcome-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: welcome-sun-glow 5s ease-in-out infinite;
}

.welcome-butterfly {
  transform-box: fill-box;
  transform-origin: center;
  animation: welcome-butterfly-float 5s ease-in-out infinite;
}

@keyframes welcome-animal-breathe {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-5px) rotate(-1deg); }
  55% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes welcome-cloud-drift {
  from { transform: translateX(-6px); }
  to { transform: translateX(10px); }
}

@keyframes welcome-sun-glow {
  0%, 100% { opacity: 0.82; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes welcome-butterfly-float {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(12px, -14px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-animal svg,
  .welcome-cloud,
  .welcome-sun,
  .welcome-butterfly {
    animation: none;
  }

  .welcome-enter {
    transition: none;
  }
}

@media (max-width: 1439px) {
  body {
    overflow: auto;
  }

  .app-frame,
  .primary-layout,
  .secondary-layout {
    margin: 0;
  }
}

/* Fourth version: only the farm overview uses the 3D clay scene. */
.v4-home-shell {
  background: #f2ede2;
}

.v4-home-shell .primary-layout {
  background: #f2ede2;
}

.v4-home-shell .sidebar {
  flex-basis: 240px;
  padding: 26px 22px 22px;
  background: rgba(249, 245, 236, 0.96);
  border-right-color: rgba(93, 91, 73, 0.12);
  box-shadow: 16px 0 44px rgba(73, 66, 49, 0.05);
}

.v4-home-shell .brand {
  min-height: 44px;
  padding: 0 6px 28px;
  gap: 12px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
}

.v4-home-shell .brand-mark {
  width: 42px;
  height: 42px;
  color: #fffaf1;
  background: #c87954;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(183, 105, 72, 0.2);
}

.v4-home-shell .primary-nav {
  gap: 8px;
  margin-top: 30px;
}

.v4-home-shell .nav-item {
  height: 48px;
  gap: 13px;
  padding: 0 15px;
  border-radius: 13px;
  color: #50564f;
  font-weight: 600;
}

.v4-home-shell .nav-item:hover {
  background: rgba(237, 232, 220, 0.82);
}

.v4-home-shell .nav-item.is-active {
  color: #9d5539;
  background: #f7e5dc;
}

.v4-home-shell .sidebar-footer {
  padding: 16px 15px;
  color: #646a61;
  background: rgba(238, 234, 222, 0.88);
  border: 1px solid rgba(93, 91, 73, 0.1);
  border-radius: 14px;
}

.v4-home-shell .sidebar-footer:hover {
  background: #e9e4d8;
}

.v4-home-shell .sidebar-footer strong {
  color: #555b54;
}

.v4-home-shell .status-dot {
  background: #de8158;
  box-shadow: 0 0 0 4px rgba(222, 129, 88, 0.12);
}

.v4-home-shell .main-column {
  position: relative;
  height: 900px;
  overflow: hidden;
  background: #f2ede2;
}

.v4-home-shell .topbar {
  height: 86px;
  flex: 0 0 86px;
  padding: 0 32px 0 38px;
  background: rgba(252, 249, 242, 0.94);
  border-bottom-color: rgba(93, 91, 73, 0.1);
  backdrop-filter: blur(16px);
}

.v4-home-shell .topbar-left {
  min-width: 260px;
}

.v4-home-shell .farm-identity {
  align-items: baseline;
  gap: 14px;
}

.v4-home-shell .farm-identity .label {
  color: #8b9088;
  font-size: 12px;
}

.v4-home-shell .farm-identity strong {
  color: #26362d;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.v4-home-shell .primary-topbar-search {
  width: 420px;
  height: 46px;
  padding: 0 13px 0 17px;
  color: #9b9e96;
  background: rgba(253, 251, 246, 0.9);
  border-color: rgba(91, 92, 78, 0.16);
  border-radius: 13px;
  font-size: 13px;
}

.v4-home-shell .primary-topbar-search:hover {
  color: #777c75;
  background: #fdfbf6;
  border-color: rgba(91, 92, 78, 0.24);
}

.v4-home-shell .primary-topbar-search .shortcut {
  border-color: rgba(91, 92, 78, 0.16);
  color: #9a9d95;
  background: rgba(247, 244, 237, 0.88);
  font-size: 10px;
}

.v4-home-shell .notice-bar {
  min-height: 47px;
  flex: 0 0 47px;
  padding: 0 30px 0 38px;
  color: #6f5c52;
  background: rgba(248, 225, 214, 0.9);
  border-bottom-color: rgba(193, 128, 100, 0.12);
  font-size: 12px;
  backdrop-filter: blur(14px);
}

.v4-home-shell .notice-bar strong {
  color: #6f5c52;
}

.v4-home-shell .notice-bar .button-link {
  color: #a3593c;
  font-size: 12px;
  font-weight: 700;
}

.v4-home-shell .notice-bar .icon-button {
  width: 26px;
  height: 26px;
  color: #987668;
  border-radius: 50%;
}

.v4-home-content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f2ede2;
}

.v4-home-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f2ede2;
}

.v4-home-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.v4-home-canvas:active {
  cursor: grabbing;
}

.v4-home-scene-wash {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(248, 244, 233, 0.72) 0, rgba(248, 244, 233, 0.2) 230px, rgba(248, 244, 233, 0) 350px),
    linear-gradient(180deg, rgba(250, 247, 239, 0.66) 0, rgba(250, 247, 239, 0) 160px),
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0) 0 38%, rgba(236, 228, 212, 0.16) 100%);
}

.v4-home-heading {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 38px;
  width: min(620px, 55%);
  padding: 19px 24px 20px;
  color: #26362d;
  background: linear-gradient(90deg, rgba(249, 246, 237, 0.9), rgba(249, 246, 237, 0.54) 72%, rgba(249, 246, 237, 0));
  border-left: 3px solid rgba(63, 93, 69, 0.46);
  border-radius: 0 12px 12px 0;
  pointer-events: none;
}

.v4-home-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7d857b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.v4-home-date::before {
  width: 18px;
  height: 1px;
  background: #9caa94;
  content: "";
}

.v4-home-title-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 7px;
}

.v4-home-title-row h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.v4-overview-number {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding-bottom: 4px;
  white-space: nowrap;
}

.v4-overview-number strong {
  color: #9b5b43;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.v4-overview-number span {
  color: #817567;
  font-size: 11px;
}

.v4-home-subtitle {
  margin: 9px 0 0;
  color: #686e65;
  font-size: 13px;
  line-height: 1.6;
}

.v4-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  color: #747a71;
  font-size: 10px;
}

.v4-home-meta span {
  padding-right: 8px;
  border-right: 1px solid rgba(84, 89, 81, 0.2);
}

.v4-home-meta span:last-child {
  padding-right: 0;
  border-right: 0;
}

.v4-scene-tip {
  position: absolute;
  z-index: 2;
  top: 38px;
  right: 32px;
  padding: 8px 12px;
  color: #85877f;
  background: rgba(251, 248, 240, 0.74);
  border: 1px solid rgba(94, 91, 74, 0.12);
  border-radius: 10px;
  font-size: 10px;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.v4-area-dock {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 28px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(892px, calc(100% - 68px));
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.v4-area-option {
  position: relative;
  display: grid;
  min-height: 154px;
  grid-template-columns: 126px minmax(0, 1fr) 76px;
  align-items: center;
  column-gap: 0;
  overflow: visible;
  padding: 18px 20px 18px 16px;
  color: #26362d;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    linear-gradient(180deg, #fffaf0 0%, #f4ecda 100%);
  background-size: 18px 18px, 100% 100%;
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(137, 111, 73, 0.08),
    0 18px 34px rgba(96, 79, 50, 0.14);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.v4-area-option::before {
  position: absolute;
  right: 20px;
  bottom: 8px;
  left: 145px;
  height: 4px;
  background: var(--v4-accent-soft);
  border-radius: 999px;
  content: "";
  opacity: 0.9;
}

.v4-area-option--grass {
  --v4-color: #516e4d;
  --v4-accent-soft: #cbdbba;
  --v4-tag-bg: #e2ecd8;
}

.v4-area-option--water {
  --v4-color: #4d7777;
  --v4-accent-soft: #c5dedb;
  --v4-tag-bg: #dcebea;
}

.v4-area-option:hover {
  border-color: rgba(94, 93, 70, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 0 rgba(137, 111, 73, 0.08),
    0 22px 38px rgba(96, 79, 50, 0.2);
  transform: translateY(-4px);
}

.v4-area-option:focus-visible {
  outline: 3px solid rgba(62, 90, 60, 0.28);
  outline-offset: 4px;
}

.v4-area-animal-wrap {
  position: relative;
  z-index: 2;
  width: 126px;
  height: 132px;
  margin: -22px 0 -6px -6px;
}

.v4-area-animal-wrap::after {
  position: absolute;
  z-index: 0;
  right: 15px;
  bottom: 7px;
  left: 15px;
  height: 18px;
  background: rgba(98, 80, 52, 0.18);
  border-radius: 50%;
  filter: blur(4px);
  content: "";
}

.v4-area-animal {
  position: relative;
  z-index: 1;
  display: block;
  width: 126px;
  height: 132px;
  object-fit: contain;
}

.v4-area-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-right: 8px;
}

.v4-area-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.v4-species-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 9px;
  color: #777d73;
  background: var(--v4-tag-bg);
  border: 1px solid rgba(84, 89, 80, 0.1);
  border-radius: 999px;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.v4-area-note {
  display: block;
  margin-top: 7px;
  color: #888a82;
  font-size: 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.v4-area-count {
  position: relative;
  z-index: 2;
  display: block;
  align-self: start;
  color: #5d635b;
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}

.v4-area-count em {
  display: block;
  margin-right: 0;
  margin-bottom: -1px;
  color: #92958d;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.v4-area-count strong {
  color: var(--v4-color);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.v4-area-count span {
  margin-left: 2px;
  font-size: 10px;
}

.v4-area-link {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 2 / 4;
  align-items: center;
  gap: 5px;
  color: var(--v4-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.v4-area-link-secondary {
  color: #96978e;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.v4-area-link svg {
  width: 14px;
  height: 14px;
}

.v4-home-loading {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  padding: 12px 22px;
  color: #8d8371;
  background: rgba(250, 247, 240, 0.94);
  border: 1px solid #e5ddcc;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 1px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.v4-home-loading[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .v4-area-option {
    transition: none;
  }
}

/* Fourth version: grass area uses the third-version clay landscape. */
.grass-area-shell .secondary-layout {
  height: 900px;
  overflow: hidden;
  background: #f2ede2;
}

.grass-area-shell .secondary-topbar {
  height: 88px;
  flex: 0 0 88px;
  padding: 0 30px;
  background: rgba(252, 249, 242, 0.96);
  border-bottom-color: rgba(93, 91, 73, 0.12);
  backdrop-filter: blur(14px);
}

.grass-area-shell .secondary-title {
  gap: 14px;
}

.grass-area-shell .secondary-title-copy strong {
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.grass-area-shell .secondary-title-copy span {
  color: #898e85;
  font-size: 10px;
}

.grass-area-shell .secondary-title > .icon-button,
.grass-area-shell .secondary-actions > .icon-button {
  width: 42px;
  height: 42px;
  color: #686e65;
  background: rgba(248, 244, 234, 0.82);
  border-color: rgba(95, 91, 72, 0.14);
  border-radius: 13px;
}

.grass-area-shell .secondary-actions {
  gap: 10px;
}

.grass-header-signature {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-right: 8px;
  color: #8f705a;
  font-family: "Segoe Print", "Bradley Hand", "STKaiti", "KaiTi", cursive;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(-1deg);
  transform-origin: center;
}

.grass-header-signature::before {
  width: 30px;
  height: 1px;
  background: rgba(143, 112, 90, 0.42);
  content: "";
}

.grass-top-search {
  width: 300px;
  height: 44px;
  padding: 0 14px;
  color: #979a91;
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(95, 91, 72, 0.14);
  border-radius: 13px;
}

.grass-top-search input,
.grass-side-search input {
  font-size: 12px;
}

.grass-top-add {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(180deg, #d58d67, #bf6f4d);
  border-color: rgba(147, 75, 49, 0.22);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 7px 14px rgba(147, 75, 49, 0.16);
}

.grass-area-c {
  display: grid;
  flex: 1;
  min-height: 0;
  height: 812px;
  grid-template-columns: 318px minmax(0, 1fr);
}

.grass-notebook {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 28px 24px 22px;
  background: rgba(252, 248, 239, 0.98);
  border-right: 1px solid rgba(95, 91, 72, 0.13);
}

.grass-notebook-intro .eyebrow {
  margin-bottom: 9px;
  color: #7d8279;
  font-size: 10px;
}

.grass-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grass-heading-row h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 39px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.grass-heading-row .tag {
  min-height: 22px;
  padding: 0 9px;
  color: #667066;
  background: #dce8d5;
  font-size: 10px;
}

.grass-notebook-intro p {
  margin: 12px 0 14px;
  color: #70766d;
  font-size: 11px;
}

.grass-notebook-intro .scene-count-badge {
  min-height: 30px;
  padding: 0 12px;
  color: #a65e42;
  background: #f3ded1;
  font-size: 10px;
}

.grass-side-search {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  padding: 0 13px;
  color: #979a91;
  background: #fffdf8;
  border-color: rgba(95, 91, 72, 0.14);
  border-radius: 13px;
}

.grass-resident-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 10px 8px;
  background: rgba(220, 232, 213, 0.72);
  border: 1px solid rgba(84, 105, 78, 0.12);
  border-radius: 18px;
}

.grass-resident-card img {
  display: block;
  width: 100px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px rgba(87, 71, 46, 0.18));
}

.grass-resident-card strong {
  display: block;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.grass-resident-card span {
  display: block;
  margin-top: 5px;
  color: #7d857b;
  font-size: 9px;
  line-height: 1.6;
}

.grass-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  color: #80857c;
  font-size: 10px;
}

.grass-list-heading strong {
  color: #4c564c;
  font-size: 12px;
}

.grass-list-heading .button-link {
  color: #92958d;
  font-size: 10px;
}

.grass-recent-list {
  min-height: 0;
  overflow: auto;
  margin-top: 6px;
  scrollbar-width: none;
}

.grass-recent-list::-webkit-scrollbar {
  display: none;
}

.grass-diary-row {
  display: grid;
  width: 100%;
  grid-template-columns: 8px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #4d574d;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(95, 91, 72, 0.1);
  text-align: left;
  cursor: pointer;
}

.grass-diary-row:hover {
  color: #9d5e44;
}

.grass-diary-dot {
  width: 7px;
  height: 7px;
  background: #c97954;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 121, 84, 0.1);
}

.grass-diary-copy {
  min-width: 0;
}

.grass-diary-copy strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grass-diary-copy span {
  display: block;
  margin-top: 3px;
  color: #969a92;
  font-size: 9px;
}

.grass-diary-row > svg {
  color: #a5a79f;
}

.grass-recent-empty {
  padding: 20px 8px;
  color: #8c9088;
  text-align: center;
}

.grass-recent-empty strong {
  display: block;
  color: #646b62;
  font-size: 12px;
}

.grass-recent-empty span {
  display: block;
  margin-top: 5px;
  font-size: 9px;
}

.grass-sidebar-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}

.grass-sidebar-actions .button {
  min-height: 46px;
  gap: 8px;
  border-radius: 14px;
  font-size: 11px;
}

.grass-sidebar-actions .button-primary {
  background: linear-gradient(180deg, #d58d67, #bf6f4d);
  border-color: rgba(147, 75, 49, 0.18);
}

.grass-stage-frame {
  position: relative;
  min-width: 0;
  margin: 24px 28px 28px;
  overflow: hidden;
  background: #f2ede2;
  border: 1px solid rgba(100, 91, 69, 0.16);
  border-radius: 26px;
  box-shadow: 0 20px 42px rgba(88, 75, 51, 0.14);
}

.grass-area-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.grass-area-canvas:active {
  cursor: grabbing;
}

.grass-stage-frame::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 247, 239, 0.16), rgba(250, 247, 239, 0) 40%),
    linear-gradient(0deg, rgba(74, 65, 42, 0.08), rgba(74, 65, 42, 0) 30%);
  content: "";
  pointer-events: none;
}

.grass-stage-label,
.grass-stage-hint {
  position: absolute;
  z-index: 2;
  padding: 7px 11px;
  color: #71786e;
  background: rgba(252, 249, 241, 0.84);
  border: 1px solid rgba(90, 91, 75, 0.12);
  border-radius: 10px;
  font-size: 10px;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.grass-stage-label {
  top: 20px;
  left: 20px;
}

.grass-stage-hint {
  right: 20px;
  bottom: 20px;
}

.grass-area-loading {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  padding: 11px 20px;
  color: #8d8371;
  background: rgba(250, 247, 240, 0.94);
  border: 1px solid #e5ddcc;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.grass-area-loading[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .grass-area-shell .button,
  .grass-diary-row,
  .grass-area-canvas {
    transition: none;
  }
}

/* Fourth version: released-animal forest uses the low-poly clay scene. */
.forest-3d-shell {
  background: #f2ede2;
}

.forest-3d-shell .primary-layout {
  background: #f2ede2;
}

.forest-3d-shell .sidebar {
  flex-basis: 240px;
  padding: 26px 22px 22px;
  background: rgba(249, 245, 236, 0.97);
  border-right-color: rgba(93, 91, 73, 0.12);
  box-shadow: 16px 0 44px rgba(73, 66, 49, 0.05);
}

.forest-3d-shell .brand {
  min-height: 44px;
  padding: 0 6px 28px;
  gap: 12px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
}

.forest-3d-shell .brand-mark {
  width: 42px;
  height: 42px;
  color: #fffaf1;
  background: #c87954;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(183, 105, 72, 0.2);
}

.forest-3d-shell .primary-nav {
  gap: 8px;
  margin-top: 30px;
}

.forest-3d-shell .nav-item {
  height: 48px;
  gap: 13px;
  padding: 0 15px;
  border-radius: 13px;
  color: #50564f;
  font-weight: 600;
}

.forest-3d-shell .nav-item:hover {
  background: rgba(237, 232, 220, 0.82);
}

.forest-3d-shell .nav-item.is-active {
  color: #9d5539;
  background: #f7e5dc;
}

.forest-3d-shell .sidebar-footer {
  padding: 16px 15px;
  color: #646a61;
  background: rgba(238, 234, 222, 0.9);
  border: 1px solid rgba(93, 91, 73, 0.1);
  border-radius: 14px;
}

.forest-3d-shell .status-dot {
  background: #de8158;
  box-shadow: 0 0 0 4px rgba(222, 129, 88, 0.12);
}

.forest-3d-column {
  position: relative;
  display: flex;
  height: 900px;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #f2ede2;
}

.forest-3d-shell .topbar {
  height: 88px;
  flex: 0 0 88px;
  padding: 0 32px 0 38px;
  background: rgba(252, 249, 242, 0.96);
  border-bottom-color: rgba(93, 91, 73, 0.1);
  backdrop-filter: blur(14px);
}

.forest-3d-shell .farm-identity {
  align-items: baseline;
  gap: 14px;
}

.forest-3d-shell .farm-identity .label {
  color: #8b9088;
  font-size: 12px;
}

.forest-3d-shell .farm-identity strong {
  font-size: 20px;
  font-weight: 700;
}

.forest-3d-shell .primary-topbar-search {
  width: 380px;
  height: 44px;
  padding: 0 14px;
  border-radius: 13px;
}

.forest-3d-page {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-rows: 104px minmax(0, 1fr) 156px;
  gap: 16px;
  padding: 16px 30px 24px;
}

.forest-3d-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.forest-3d-heading .eyebrow {
  margin-bottom: 8px;
  color: #7d837a;
  font-size: 10px;
}

.forest-3d-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forest-3d-title-row h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.forest-3d-title-row .tag {
  min-height: 23px;
  padding: 0 9px;
  color: #5f695e;
  background: #dfe8d8;
  font-size: 9px;
}

.forest-3d-heading p {
  margin: 9px 0 0;
  color: #6f756c;
  font-size: 11px;
}

.forest-3d-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
}

.forest-3d-summary-actions .button {
  min-height: 42px;
  border-radius: 13px;
  font-size: 10px;
}

.forest-count-tag {
  min-height: 30px;
  padding: 0 12px;
  color: #9b5d43;
  background: #f3ded1;
  font-size: 10px;
}

.forest-3d-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(250, 247, 239, 0.65);
  border: 1px solid rgba(96, 91, 71, 0.14);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(88, 75, 51, 0.12);
}

.forest-area-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.forest-area-canvas:active {
  cursor: grabbing;
}

.forest-stage-label,
.forest-stage-hint {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  color: #737b70;
  background: rgba(252, 249, 241, 0.9);
  border: 1px solid rgba(90, 91, 75, 0.12);
  border-radius: 9px;
  font-size: 8px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.forest-stage-label {
  top: 18px;
  left: 18px;
}

.forest-stage-hint {
  right: 18px;
  bottom: 16px;
}

.forest-area-loading {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  padding: 11px 20px;
  color: #8d8371;
  background: rgba(250, 247, 240, 0.95);
  border: 1px solid #e5ddcc;
  border-radius: 999px;
  font-size: 13px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.forest-area-loading[hidden] {
  display: none;
}

.forest-3d-bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 18px;
  padding: 15px 20px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    rgba(252, 248, 238, 0.96);
  background-size: 18px 18px, 100% 100%;
  border: 1px solid rgba(96, 91, 71, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(88, 75, 51, 0.12);
}

.forest-recent {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.forest-recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.forest-recent-heading strong {
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 21px;
  letter-spacing: 0.03em;
}

.forest-recent-heading span {
  color: #90948b;
  font-size: 9px;
}

.forest-recent-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.forest-recent-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #4e584e;
  background: rgba(246, 241, 230, 0.76);
  border: 1px solid rgba(96, 91, 71, 0.1);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.forest-recent-item:hover {
  border-color: rgba(88, 102, 83, 0.24);
  background: rgba(242, 238, 227, 0.96);
}

.forest-recent-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: rgba(228, 236, 220, 0.7);
  border-radius: 10px;
}

.forest-recent-thumb img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(84, 69, 43, 0.16));
}

.forest-recent-copy {
  min-width: 0;
}

.forest-recent-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forest-recent-copy span {
  display: block;
  margin-top: 2px;
  color: #90958c;
  font-size: 8px;
}

.forest-recent-copy em {
  display: block;
  margin-top: 2px;
  color: #a15e43;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.forest-recent-item > svg {
  color: #a4a69e;
}

.forest-recent-footnote {
  margin: 0;
  color: #93968d;
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}

.forest-recent-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  padding: 16px;
  color: #898d84;
  text-align: center;
}

.forest-recent-empty strong {
  color: #5f685e;
  font-size: 12px;
}

.forest-recent-empty span {
  margin-top: 4px;
  font-size: 9px;
}

.forest-3d-actions {
  display: grid;
  align-content: center;
  gap: 9px;
}

.forest-3d-actions .button {
  width: 100%;
  min-height: 44px;
  gap: 7px;
  border-radius: 13px;
  font-size: 10px;
}

.forest-3d-actions .button-primary {
  background: linear-gradient(180deg, #d58d67, #bf6f4d);
  border-color: rgba(147, 75, 49, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .forest-3d-actions .button,
  .forest-recent-item,
  .forest-area-canvas {
    transition: none;
  }
}

.water-area-shell .water-resident-card {
  background: rgba(216, 232, 230, 0.74);
  border-color: rgba(72, 111, 110, 0.12);
}

.water-area-shell .water-area-c .grass-diary-dot {
  background: #61918f;
  box-shadow: 0 0 0 4px rgba(97, 145, 143, 0.1);
}

/* ============================================================
   第四版 · 搜索 / 设置（农场风格）
   作用域挂在 .v4-page-shell 上，只影响这两页，不碰其它界面
   ============================================================ */

.v4-page-shell {
  --v4-kaiti: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  --v4-ink: #26362d;
  --v4-ink-2: #4d574d;
  --v4-muted: #8b9088;
  --v4-line: rgba(95, 91, 72, 0.13);
  --v4-line-2: rgba(95, 91, 72, 0.1);
  --v4-clay: #c87954;
  --v4-clay-2: #9d5539;
  --v4-clay-soft: #f7e5dc;
  --v4-clay-grad: linear-gradient(180deg, #d58d67, #bf6f4d);
  --v4-paper: linear-gradient(180deg, #fffdf6, #f7f0e0);
  --v4-paper-dot: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.6px);
  --v4-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 26px rgba(96, 79, 50, 0.1);
  color: var(--v4-ink);
  background: #f2ede2;
}

.v4-page-shell .primary-layout {
  background: #f2ede2;
}

/* ---------- 侧栏与顶栏（与农场主页同皮肤） ---------- */
.v4-page-shell .sidebar {
  flex-basis: 240px;
  padding: 26px 22px 22px;
  background: rgba(249, 245, 236, 0.96);
  border-right-color: rgba(93, 91, 73, 0.12);
  box-shadow: 16px 0 44px rgba(73, 66, 49, 0.05);
}

.v4-page-shell .brand {
  min-height: 44px;
  padding: 0 6px 28px;
  gap: 12px;
  font-family: var(--v4-kaiti);
  font-size: 24px;
  letter-spacing: 1px;
}

.v4-page-shell .brand-mark {
  width: 42px;
  height: 42px;
  color: #fffaf1;
  background: #c87954;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(183, 105, 72, 0.2);
}

.v4-page-shell .primary-nav {
  gap: 8px;
  margin-top: 30px;
}

.v4-page-shell .nav-item {
  height: 48px;
  gap: 13px;
  padding: 0 15px;
  border-radius: 13px;
  color: #50564f;
  font-weight: 600;
}

.v4-page-shell .nav-item:hover {
  background: rgba(237, 232, 220, 0.82);
}

.v4-page-shell .nav-item.is-active {
  color: #9d5539;
  background: #f7e5dc;
}

.v4-page-shell .sidebar-footer {
  padding: 16px 15px;
  color: #646a61;
  background: rgba(238, 234, 222, 0.88);
  border: 1px solid rgba(93, 91, 73, 0.1);
  border-radius: 14px;
}

.v4-page-shell .sidebar-footer:hover {
  background: #e9e4d8;
}

.v4-page-shell .sidebar-footer strong {
  color: #555b54;
}

.v4-page-shell .status-dot {
  background: #de8158;
  box-shadow: 0 0 0 4px rgba(222, 129, 88, 0.12);
}

.v4-page-shell .main-column {
  position: relative;
  height: 900px;
  overflow: hidden;
  background: #f2ede2;
}

.v4-page-column {
  display: flex;
  flex-direction: column;
}

.v4-page-shell .topbar {
  height: 88px;
  flex: 0 0 88px;
  padding: 0 30px 0 38px;
  background: rgba(252, 249, 242, 0.94);
  border-bottom-color: var(--v4-line-2);
  backdrop-filter: blur(16px);
}

.v4-page-shell .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v4-page-shell .farm-identity {
  align-items: baseline;
  gap: 14px;
}

.v4-page-shell .farm-identity .label {
  color: var(--v4-muted);
  font-size: 12px;
}

.v4-page-shell .farm-identity strong {
  color: var(--v4-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.v4-page-shell .search-field--wide {
  width: 420px;
  height: 46px;
  gap: 10px;
  padding: 0 13px 0 16px;
  color: #9b9e96;
  background: rgba(253, 251, 246, 0.9);
  border: 1px solid rgba(91, 92, 78, 0.16);
  border-radius: 13px;
}

.v4-page-shell .search-field--wide:focus-within {
  border-color: rgba(200, 121, 84, 0.42);
  box-shadow: 0 0 0 3px rgba(200, 121, 84, 0.1);
}

.v4-page-shell .search-field--wide input {
  font-size: 13px;
  color: #3f4b41;
}

.v4-page-shell .search-field--wide input::placeholder {
  color: #a3a69d;
}

.v4-page-shell .search-field--wide .shortcut {
  padding: 2px 8px;
  color: #9a9d95;
  background: rgba(247, 244, 237, 0.9);
  border: 1px solid rgba(91, 92, 78, 0.16);
  border-radius: 7px;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.04em;
}

.v4-page-shell .v4-topbar-tag {
  margin-right: 2px;
  color: #93968d;
  font-size: 11px;
}

/* ---------- 通用控件 ---------- */
.v4-page-shell .v4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.v4-page-shell .v4-btn--clay {
  color: #fffaf3;
  background: var(--v4-clay-grad);
  border-color: rgba(147, 75, 49, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 7px 14px rgba(147, 75, 49, 0.16);
}

.v4-page-shell .v4-btn--clay:hover {
  filter: brightness(1.03);
}

.v4-page-shell .v4-btn--paper {
  color: #5b615a;
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(95, 91, 72, 0.16);
}

.v4-page-shell .v4-btn--paper:hover {
  background: #fffdf8;
  border-color: rgba(95, 91, 72, 0.26);
}

.v4-page-shell .v4-btn--sm {
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 11px;
}

.v4-page-shell .v4-btn--danger {
  height: 40px;
  color: #a04f34;
  background: rgba(255, 253, 247, 0.85);
  border-color: rgba(193, 128, 100, 0.34);
  border-radius: 12px;
  font-size: 11px;
}

.v4-page-shell .v4-btn--danger:hover {
  background: #fff7f1;
  border-color: rgba(193, 128, 100, 0.52);
}

.v4-page-shell .button-secondary {
  height: 38px;
  padding: 0 16px;
  color: #9d5539;
  background: rgba(255, 253, 246, 0.9);
  border: 1px solid rgba(193, 128, 100, 0.3);
  border-radius: 11px;
  font-size: 11px;
}

/* ---------- 页面骨架 ---------- */
.v4-search-page,
.v4-settings-page {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 20px 30px 26px;
  overflow: hidden;
}

.v4-page-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.v4-page-head-copy {
  min-width: 0;
}

.v4-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: #7d857b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.v4-eyebrow::before {
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: #9caa94;
  content: "";
}

.v4-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.v4-title-row h1 {
  margin: 0;
  color: var(--v4-ink);
  font-family: var(--v4-kaiti);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.v4-page-sub {
  margin: 8px 0 0;
  color: #6f756c;
  font-size: 12px;
  line-height: 1.6;
}

.v4-page-head-side {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.v4-tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 10px;
  color: #667066;
  background: #dfe8d8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.v4-tag--quiet {
  color: #8b9088;
  background: rgba(238, 234, 222, 0.9);
}

.v4-tag--clay {
  color: #9b5d43;
  background: #f3ded1;
}

.v4-search-body,
.v4-settings-body {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.v4-search-col,
.v4-settings-col {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 11px;
}

.v4-settings-col {
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.v4-settings-col::-webkit-scrollbar {
  display: none;
}

/* ---------- 搜索：大搜索框 ---------- */
.v4-searchbar {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 12px 0 20px;
  background: linear-gradient(180deg, #fffdf6, #f6efdd);
  border: 1px solid rgba(157, 85, 57, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(96, 79, 50, 0.1);
}

.v4-searchbar:focus-within {
  border-color: rgba(200, 121, 84, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 28px rgba(96, 79, 50, 0.14);
}

.v4-searchbar-mag {
  display: grid;
  place-items: center;
  color: var(--v4-clay);
}

.v4-searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--v4-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.v4-searchbar input::placeholder {
  color: #a8aba3;
  font-size: 14px;
  font-weight: 400;
}

.v4-searchbar input::-webkit-search-cancel-button,
.v4-searchbar input::-webkit-search-decoration {
  display: none;
}

.v4-searchbar-hint {
  color: #a3a69d;
  font-size: 11px;
  white-space: nowrap;
}

.v4-searchbar-sep {
  width: 1px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--v4-line);
}

.v4-searchbar-clear {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #a5a79f;
  background: rgba(238, 234, 222, 0.9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.v4-searchbar-clear:hover {
  color: #8f4a2f;
  background: #f2ddcd;
}

.v4-searchbar-clear.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- 搜索：筛选 + 结果 ---------- */
.v4-search-results {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 11px;
}

.v4-search-filters {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.v4-chips {
  display: flex;
  align-items: center;
  gap: 7px;
}

.v4-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  color: #6f756c;
  background: rgba(255, 253, 246, 0.72);
  border: 1px solid rgba(95, 91, 72, 0.14);
  border-radius: 999px;
  font-size: 11px;
}

.v4-chip b {
  color: #a3a69d;
  font-size: 10px;
  font-weight: 600;
}

.v4-chip.is-on {
  color: #9d5539;
  background: #f7e5dc;
  border-color: rgba(200, 121, 84, 0.34);
  font-weight: 700;
}

.v4-chip.is-on b {
  color: #b87a5f;
}

.v4-search-count {
  color: var(--v4-muted);
  font-size: 10px;
  white-space: nowrap;
}

.v4-search-count strong {
  color: #9b5b43;
  font-weight: 700;
}

.v4-result-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.v4-result-list::-webkit-scrollbar {
  display: none;
}

.v4-result-list--fill .v4-result {
  flex: 1 1 0;
  max-height: 132px;
}

.v4-result {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  min-height: 94px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 12px 16px 12px 22px;
  background: var(--v4-paper-dot) 0 0 / 18px 18px, linear-gradient(180deg, #fffdf6, #f7f1e2);
  border: 1px solid rgba(125, 106, 77, 0.15);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 20px rgba(96, 79, 50, 0.07);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.v4-result:hover {
  border-color: rgba(157, 85, 57, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 26px rgba(96, 79, 50, 0.12);
  transform: translateY(-1px);
}

.v4-result:focus-visible {
  outline: 2px solid rgba(200, 121, 84, 0.5);
  outline-offset: 2px;
}

.v4-result::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 9px;
  width: 3px;
  background: var(--v4-ribbon, #9fbb8a);
  border-radius: 3px;
  content: "";
}

.v4-result--grass {
  --v4-ribbon: linear-gradient(180deg, #a9c493, #86a672);
}

.v4-result--water {
  --v4-ribbon: linear-gradient(180deg, #9cc7c4, #6e9d9a);
}

.v4-result--forest {
  --v4-ribbon: linear-gradient(180deg, #c9b98f, #a99a72);
}

.v4-result-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(84, 105, 78, 0.1);
  border-radius: 16px;
}

.v4-result-thumb--grass {
  background: rgba(220, 232, 213, 0.78);
}

.v4-result-thumb--water {
  background: rgba(216, 232, 230, 0.82);
  border-color: rgba(72, 111, 110, 0.12);
}

.v4-result-thumb--forest {
  background: rgba(232, 226, 210, 0.82);
  border-color: rgba(120, 105, 78, 0.12);
}

.v4-result-copy {
  min-width: 0;
}

.v4-result-title {
  margin: 0;
  overflow: hidden;
  color: var(--v4-ink);
  font-family: var(--v4-kaiti);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v4-result-excerpt {
  margin: 3px 0 0;
  overflow: hidden;
  color: #7d8279;
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v4-page-shell mark {
  padding: 0 1px;
  color: #93502f;
  background: linear-gradient(180deg, transparent 74%, rgba(206, 140, 104, 0.45) 74%);
  font-weight: 700;
}

.v4-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #9ba095;
  font-size: 10px;
}

.v4-dot-sep {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  background: #c9c6ba;
  border-radius: 50%;
}

.v4-result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}

.v4-result-pill--grass {
  color: #5b7455;
  background: #e5eeda;
}

.v4-result-pill--water {
  color: #4d7777;
  background: #dcebea;
}

.v4-result-pill--forest {
  color: #8d7a52;
  background: #efe6d2;
}

.v4-result-go {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 6px;
  color: #9d5539;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.v4-result-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--v4-muted);
  font-size: 10px;
}

.v4-result-foot strong {
  color: #9b5b43;
}

/* ---------- 搜索：空态 ---------- */
.v4-search-blank {
  display: flex;
  flex: 1 1 auto;
  min-height: 296px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  background: var(--v4-paper-dot) 0 0 / 20px 20px, linear-gradient(180deg, rgba(255, 253, 246, 0.9), rgba(247, 240, 224, 0.86));
  border: 1px dashed rgba(125, 106, 77, 0.24);
  border-radius: 20px;
}

.v4-search-blank-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  color: #a5654a;
  background: var(--v4-clay-soft);
  border-radius: 17px;
}

.v4-search-blank h2 {
  margin: 0;
  color: #3f4b41;
  font-family: var(--v4-kaiti);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.v4-search-blank p {
  margin: 0;
  max-width: 330px;
  color: var(--v4-muted);
  font-size: 11px;
  line-height: 1.8;
}

.v4-search-blank-hint {
  margin-top: 4px;
  color: #a3a69d;
  font-size: 10px;
}

.v4-search-blank .button {
  margin-top: 10px;
}

/* ---------- 右栏 ---------- */
.v4-rail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}

.v4-card {
  padding: 15px 17px 14px;
  background: var(--v4-paper-dot) 0 0 / 18px 18px, var(--v4-paper);
  border: 1px solid rgba(125, 106, 77, 0.16);
  border-radius: 22px;
  box-shadow: var(--v4-card-shadow);
}

.v4-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #3f4b41;
  font-family: var(--v4-kaiti);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.v4-card-title em {
  color: #a3a69d;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.v4-rail-rows {
  margin-top: 4px;
}

.v4-rail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #5b615a;
  border-bottom: 1px dashed rgba(95, 91, 72, 0.16);
  font-size: 11px;
}

.v4-rail-row:last-child {
  border-bottom: 0;
}

.v4-rail-row i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #a9c493;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(169, 196, 147, 0.18);
}

.v4-rail-row i.water {
  background: #8fbcb9;
  box-shadow: 0 0 0 4px rgba(143, 188, 185, 0.18);
}

.v4-rail-row i.forest {
  background: #c9b98f;
  box-shadow: 0 0 0 4px rgba(201, 185, 143, 0.18);
}

.v4-rail-row b {
  margin-left: auto;
  color: var(--v4-ink-2);
  font-size: 11px;
  font-weight: 700;
}

.v4-rail-row .unit {
  margin-left: 2px;
  color: #9ba095;
  font-size: 9px;
}

.v4-rail-foot {
  margin: 8px 0 0;
  padding-top: 10px;
  color: #93968d;
  border-top: 1px solid rgba(95, 91, 72, 0.1);
  font-size: 9px;
  line-height: 1.7;
}

.v4-tips {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 9px;
}

.v4-tip {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #5b615a;
  font-size: 11px;
  line-height: 1.6;
}

.v4-tip em {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #a5654a;
  background: var(--v4-clay-soft);
  border-radius: 8px;
  font-family: var(--v4-kaiti);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.v4-tip kbd {
  padding: 1px 5px;
  color: #8b7355;
  background: rgba(238, 232, 216, 0.9);
  border: 1px solid rgba(120, 100, 70, 0.18);
  border-radius: 5px;
  font-family: inherit;
  font-size: 9px;
}

.v4-note-card {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 148px;
  flex-direction: column;
  padding: 17px 17px 78px;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf1e2, #dce8d1);
  border: 1px solid rgba(84, 105, 78, 0.16);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 26px rgba(96, 79, 50, 0.08);
}

.v4-note-card strong {
  color: #3f4b41;
  font-family: var(--v4-kaiti);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.v4-note-card p {
  margin: 6px 0 0;
  max-width: 172px;
  color: #5f6f59;
  font-size: 10px;
  line-height: 1.75;
}

.v4-note-card span {
  margin-top: 8px;
  color: #8a9a82;
  font-family: var(--v4-kaiti);
  font-size: 11px;
}

.v4-note-card img {
  position: absolute;
  right: -18px;
  bottom: -14px;
  width: 146px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(84, 69, 43, 0.18));
}

/* ---------- 设置 ---------- */
.v4-id-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  margin-top: 10px;
  padding: 0 8px 0 18px;
  background: rgba(255, 253, 246, 0.86);
  border: 1px dashed rgba(157, 85, 57, 0.32);
  border-radius: 16px;
}

.v4-id-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--v4-ink);
  font-family: var(--v4-kaiti);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v4-icon-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #a5654a;
  background: #f8e8de;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

.v4-icon-btn:hover {
  background: #f4dccf;
}

.v4-id-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #93968d;
  font-size: 10px;
}

.v4-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.v4-tile {
  display: flex;
  flex-direction: column;
  min-height: 124px;
  padding: 13px 12px 11px;
  text-align: left;
  background: rgba(255, 253, 246, 0.8);
  border: 1px solid rgba(125, 106, 77, 0.14);
  border-radius: 17px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.v4-tile:hover {
  background: #fffdf6;
  border-color: rgba(157, 85, 57, 0.24);
}

.v4-tile-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #a5654a;
  background: #f8e8de;
  border-radius: 12px;
}

.v4-tile-ico--sage {
  color: #5b7455;
  background: #e6efdc;
}

.v4-tile-ico--water {
  color: #4d7777;
  background: #dcebea;
}

.v4-tile strong {
  margin-top: 9px;
  color: #3f4b41;
  font-size: 12px;
  font-weight: 700;
}

.v4-tile p {
  margin: 3px 0 0;
  color: #93968d;
  font-size: 9px;
  line-height: 1.65;
}

.v4-tile-go {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  padding-top: 8px;
  color: #9d5539;
  font-size: 9px;
  font-weight: 700;
}

.v4-row-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  text-align: left;
  background: rgba(255, 253, 246, 0.66);
  border: 1px solid rgba(125, 106, 77, 0.13);
  border-radius: 16px;
  cursor: pointer;
}

.v4-row-line:hover {
  background: #fffdf6;
}

.v4-row-ico {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  color: #5b7455;
  background: #e6efdc;
  border-radius: 11px;
}

.v4-row-copy {
  min-width: 0;
  flex: 1;
}

.v4-row-copy strong {
  display: block;
  color: #3f4b41;
  font-size: 12px;
  font-weight: 700;
}

.v4-row-copy span {
  display: block;
  margin-top: 2px;
  color: #93968d;
  font-size: 9px;
}

.v4-row-value {
  color: #a3a69d;
  font-size: 10px;
}

.v4-card--danger {
  background: linear-gradient(180deg, #fdf2ea, #f8e5d7);
  border-color: rgba(193, 128, 100, 0.3);
}

.v4-card-title--danger {
  color: #8f4a2f;
}

.v4-card-title--danger em {
  color: #b99280;
}

.v4-danger-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
}

.v4-danger-ico {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #a95f42;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(193, 128, 100, 0.22);
  border-radius: 14px;
}

.v4-danger-copy {
  min-width: 0;
  flex: 1;
}

.v4-danger-copy strong {
  display: block;
  color: #8f4a2f;
  font-size: 13px;
  font-weight: 700;
}

.v4-danger-copy span {
  display: block;
  margin-top: 3px;
  color: #a3806c;
  font-size: 10px;
  line-height: 1.6;
}

.v4-danger-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 11px 0 0;
  padding-top: 10px;
  color: #a3806c;
  border-top: 1px dashed rgba(193, 128, 100, 0.3);
  font-size: 9.5px;
  line-height: 1.7;
}

.v4-danger-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #b98a70;
}

.v4-stats {
  margin-top: 2px;
}

.v4-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(95, 91, 72, 0.16);
}

.v4-stat:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.v4-stat span {
  color: #7d8279;
  font-size: 11px;
}

.v4-stat strong {
  color: #9b5b43;
  font-family: var(--v4-kaiti);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.v4-stat em {
  margin-left: 3px;
  color: #9ba095;
  font-size: 9px;
  font-style: normal;
}

.v4-stat .sage {
  color: #5b7455;
}

.v4-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(95, 91, 72, 0.1);
}

.v4-mini-bars div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  color: #93968d;
  font-size: 9px;
}

.v4-mini-bars b {
  color: #6f756c;
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.v4-mini-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  background: rgba(95, 91, 72, 0.1);
  border-radius: 99px;
}

.v4-mini-bar em {
  display: block;
  height: 100%;
  background: #a9c493;
  border-radius: 99px;
}

.v4-mini-bar em.water {
  background: #8fbcb9;
}

.v4-keep-card {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  padding: 15px 17px 14px;
  background: linear-gradient(180deg, #eef4e6, #dfe9d4);
  border: 1px solid rgba(84, 105, 78, 0.16);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 26px rgba(96, 79, 50, 0.08);
}

.v4-keep-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.v4-keep-shield {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #4f6b4b;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 11px;
}

.v4-keep-title strong {
  color: #3f4b41;
  font-family: var(--v4-kaiti);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.v4-keep-card p {
  margin: 0;
  color: #5f6f59;
  font-size: 10px;
  line-height: 1.75;
}

.v4-keep-path {
  padding: 10px 12px;
  color: #6f7f68;
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(84, 105, 78, 0.26);
  border-radius: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.v4-keep-path span {
  display: block;
  margin-top: 2px;
  color: #96a38e;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  letter-spacing: 0;
}

.v4-keep-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7c8d74;
  font-size: 9px;
}

.v4-keep-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #8aa47a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(138, 164, 122, 0.16);
}

.v4-keep-card .v4-btn {
  width: 100%;
  height: 40px;
  margin-top: auto;
  border-radius: 12px;
  font-size: 11px;
}

.v4-about-line {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  color: #93968d;
  background: rgba(252, 249, 240, 0.6);
  border: 1px dashed rgba(120, 105, 78, 0.2);
  border-radius: 16px;
  font-size: 10px;
}

.v4-about-line strong {
  color: #6f756c;
  font-weight: 700;
}

/* ============================================================
   第四版 · 黏土动物形象（src/第四版/assets/animals/）
   详情页新布局 / 列表抽屉 / 结果行缩略图 / 外观面板
   ============================================================ */

/* ---------- 动物图基类 ---------- */
.animal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  -webkit-user-drag: none;
  user-select: none;
}

.animal-thumb {
  object-position: center 44%;
}

.animal-hero-img {
  object-position: center 47%;
}

.animal-preview {
  object-position: center 46%;
}

/* ---------- 日记详情 / 放生详情：文字为主体，动物图在右侧 ---------- */
.content.v4-detail-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 26px 34px 30px;
  background: #f2ede2;
}

.v4-detail-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 28px;
}

.v4-paper {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 34px 38px 30px;
  background: linear-gradient(180deg, #fffdf6, #f7f0e0);
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(137, 111, 73, 0.08), 0 18px 34px rgba(96, 79, 50, 0.13);
}

.v4-paper > * {
  width: 100%;
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.v4-paper-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7d857b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.v4-paper-eyebrow::before {
  width: 18px;
  height: 1px;
  background: #9caa94;
  content: "";
}

.v4-paper-title {
  margin: 14px 0 0;
  color: #2b332c;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.v4-paper-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #8b9088;
  font-size: 12px;
}

.v4-paper-meta span + span::before {
  margin-right: 8px;
  color: rgba(120, 118, 106, 0.5);
  content: "·";
}

.v4-paper-rule {
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, rgba(125, 106, 77, 0.2), rgba(125, 106, 77, 0));
}

.v4-paper-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  margin-top: 10px;
  padding: 8px 0 0 22px;
  overflow: hidden;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 33px,
    rgba(125, 106, 77, 0.1) 33px 34px
  );
  background-position: 0 8px;
  border-left: 2px solid rgba(157, 85, 57, 0.2);
}

.v4-paper-body {
  overflow-y: auto;
}

/* auto 边距居中：内容短时垂直居中，内容长时自动退回顶部并可滚动，不会裁掉开头 */
.v4-paper-mid {
  margin: auto 0;
}

.v4-paper-text {
  color: #3f4740;
  font-size: 15px;
  line-height: 34px;
}

.v4-paper-text p {
  margin: 0;
}

.v4-paper-sign {
  margin-top: 10px;
  color: #a09d8f;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-align: right;
}

.v4-paper-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px dashed rgba(125, 106, 77, 0.24);
}

.v4-who {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #6b7268;
  font-size: 12px;
}

.v4-who-av {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  background: #fcf5e3;
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 10px;
}

.v4-readonly-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 16px;
  color: #5d6b57;
  background: rgba(226, 236, 216, 0.6);
  border: 1px solid rgba(81, 110, 77, 0.18);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.6;
}

/* 右侧相片卡 */
.v4-detail-side {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.v4-photo {
  position: relative;
  height: 440px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fcf5e3;
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 34px rgba(96, 79, 50, 0.13);
}

.v4-photo-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
}

.v4-photo-seal {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 13px;
  color: #6f5747;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(146, 112, 74, 0.18);
  border-radius: 12px;
  font-size: 11px;
}

.v4-photo-seal strong {
  color: #9d5539;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 20px;
}

.v4-side-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 16px;
  color: #6b7268;
  background: rgba(252, 248, 240, 0.86);
  border: 1px solid rgba(95, 91, 72, 0.13);
  border-radius: 16px;
  font-size: 11.5px;
  line-height: 1.5;
}

.v4-side-note em {
  color: #8b9088;
  font-size: 11px;
  font-style: normal;
}

/* 标签配色补齐（草地 / 水边 / 放生林） */
.v4-tag--grass,
.v4-tag--sage {
  color: #4a6347;
  background: #e2ecd8;
}

.v4-tag--water,
.v4-tag--teal {
  color: #3f6666;
  background: #dcebea;
}

.v4-tag--forest {
  color: #8a6a45;
  background: #efe4d0;
}

/* ---------- 列表抽屉（区内日记 / 放生林） ---------- */
.drawer-overlay .drawer {
  width: 880px;
  height: 100%;
  background: #fbf7ee;
  border-left: 1px solid rgba(125, 106, 77, 0.18);
  box-shadow: -24px 0 60px rgba(64, 55, 40, 0.22);
}

.drawer-overlay .drawer-header {
  min-height: 0;
  align-items: flex-start;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(95, 91, 72, 0.13);
}

.drawer-overlay .drawer-header h2 {
  margin: 0;
  color: #2b332c;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.drawer-overlay .drawer-header .muted {
  display: block;
  margin-top: 7px;
  color: #8b9088;
  font-size: 11px;
}

.drawer-overlay .drawer-note {
  margin: 16px 28px 4px;
  padding: 12px 14px;
  color: #6b7268;
  background: rgba(247, 229, 220, 0.5);
  border: 1px solid rgba(157, 85, 57, 0.14);
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.65;
}

.drawer-overlay .drawer-note strong {
  color: #9d5539;
  font-weight: 600;
}

.drawer-overlay .drawer-list {
  padding: 6px 20px 18px;
  overflow: auto;
}

.v4-row {
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 11px 12px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(114, 106, 82, 0.1);
  text-align: left;
  cursor: pointer;
}

.v4-row--forest {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.v4-row:last-child {
  border-bottom: 0;
}

.v4-row:hover {
  background: rgba(255, 255, 255, 0.56);
}

.v4-row-av {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #fbf4e2;
  border: 1px solid rgba(114, 106, 82, 0.13);
  border-radius: 15px;
}

.v4-row-av--grass {
  border-color: #cfdcc0;
  box-shadow: inset 0 0 0 2px rgba(226, 237, 215, 0.75);
}

.v4-row-av--water {
  border-color: #c8dddb;
  box-shadow: inset 0 0 0 2px rgba(220, 235, 234, 0.8);
}

.v4-row-av--forest {
  border-color: #ded2b6;
  box-shadow: inset 0 0 0 2px rgba(238, 231, 209, 0.8);
}

.v4-row-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.v4-row-title {
  overflow: hidden;
  color: #26332a;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v4-row-dig {
  overflow: hidden;
  margin-top: 6px;
  color: #8d938a;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v4-row-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.v4-row-sub {
  color: #9aa095;
  font-size: 10.5px;
}

.v4-pill {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.v4-pill--grass {
  color: #4d6444;
  background: #e3edd7;
}

.v4-pill--water {
  color: #3f6666;
  background: #dcebea;
}

.v4-pill--forest {
  color: #8a6a45;
  background: #efe4d0;
}

.v4-row-go {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  color: #b2683f;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.v4-reclaim {
  display: inline-flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #9d5539;
  background: #f7e5dc;
  border: 1px solid rgba(157, 85, 57, 0.18);
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.v4-reclaim:hover {
  background: #f2d8cb;
}

/* ---------- 养一只 / 编辑：农场风表单 + 图片配饰 ---------- */
.editor-layout.v4-editor-page {
  height: auto;
  flex: 1;
  min-height: 0;
  padding: 26px 34px 30px;
  background: #f2ede2;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 26px;
}

.v4-editor-page .editor-main,
.v4-editor-page .appearance-panel {
  background: #fffdf6;
  border: 1px solid rgba(114, 106, 82, 0.14);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(92, 82, 56, 0.06);
}

.v4-editor-page .editor-main {
  padding: 28px 30px 24px;
}

.v4-editor-page .editor-heading h2 {
  margin: 0;
  color: #2b332c;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
}

.v4-editor-page .editor-heading .muted {
  color: #8b9088;
  font-size: 11.5px;
}

.v4-editor-page .field-label {
  color: #5c6359;
  font-size: 12px;
  font-weight: 600;
}

.v4-editor-page .field-label span {
  color: #a2a49b;
  font-size: 11px;
  font-weight: 500;
}

.v4-editor-page .input,
.v4-editor-page .textarea {
  color: #4f574e;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 13px;
  font-size: 14px;
}

.v4-editor-page .textarea {
  border-radius: 16px;
  line-height: 1.9;
}

.v4-editor-page .input:focus,
.v4-editor-page .textarea:focus {
  border-color: rgba(200, 121, 84, 0.42);
  box-shadow: 0 0 0 3px rgba(200, 121, 84, 0.1);
}

.v4-editor-page .appearance-panel {
  padding: 24px 22px;
}

.v4-editor-page .appearance-panel > div > h2 {
  margin: 0;
  color: #2b332c;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.v4-editor-page .appearance-panel .muted {
  margin: 8px 0 0;
  color: #8b9088;
  font-size: 11px;
  line-height: 1.6;
}

.v4-editor-page .appearance-preview {
  position: relative;
  height: 252px;
  min-height: 0;
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
  background: #fcf5e3;
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(96, 79, 50, 0.1);
}

.v4-look-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 0 10px;
  color: #5c6359;
  font-size: 12px;
  font-weight: 600;
}

.v4-look-head em {
  color: #a2a49b;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
}

.v4-look-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.v4-look-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 6px 8px;
  color: #6b7268;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(125, 106, 77, 0.18);
  border-radius: 14px;
  font-size: 10.5px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.v4-look-chip:hover {
  border-color: rgba(157, 85, 57, 0.24);
}

.v4-look-chip.is-selected {
  color: #9d5539;
  background: #f7e5dc;
  border-color: rgba(157, 85, 57, 0.28);
  box-shadow: 0 6px 14px rgba(183, 105, 72, 0.14);
}

.v4-look-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7eddd;
  border-radius: 10px;
}

/* 小尺寸配饰缩略图保留整只动物，不裁掉脚；底色与素材米色对齐，省掉抠图 */
.v4-look-thumb .animal-img {
  object-position: center 50%;
}

.v4-editor-page .species-readonly {
  margin-top: 16px;
  padding-top: 14px;
  color: #8b9088;
  border-top: 1px dashed rgba(125, 106, 77, 0.22);
  font-size: 11px;
}

.animal-3d-hover-card {
  position: absolute;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: 234px;
  padding: 10px 11px 11px;
  color: #4e493f;
  background: rgba(255, 251, 240, 0.96);
  border: 1px solid rgba(121, 107, 82, 0.18);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(79, 65, 43, 0.16);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: auto;
}

.animal-3d-hover-card[hidden] {
  display: none;
}

.animal-3d-hover-title {
  display: block;
  overflow: hidden;
  max-width: 212px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.animal-3d-hover-actions {
  display: flex;
  gap: 6px;
}

.animal-3d-hover-actions[hidden] {
  display: none;
}

.animal-3d-action {
  min-width: 52px;
  padding: 5px 10px;
  color: #8e573f;
  background: #f7e5dc;
  border: 1px solid rgba(157, 85, 57, 0.2);
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}

.animal-3d-action:hover {
  color: #76432f;
  background: #f1d8cc;
  border-color: rgba(157, 85, 57, 0.34);
}

.animal-3d-action:focus-visible {
  outline: 2px solid rgba(157, 85, 57, 0.55);
  outline-offset: 2px;
}

.animal-3d-hover-card.is-title-only {
  max-width: 234px;
}

.grass-area-canvas:focus-visible {
  outline: 2px solid rgba(157, 85, 57, 0.5);
  outline-offset: -3px;
}
