* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #253329;
  overflow: hidden;
}

canvas {
  display: block;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell,
.login-scene,
.loading-scene,
.world-scene {
  width: 100%;
  height: 100%;
}

h1,
h2,
p {
  margin-top: 0;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #4e5e47;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid rgba(95, 121, 83, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #253329;
  outline: none;
}

input:focus {
  border-color: #6da870;
  box-shadow: 0 0 0 3px rgba(109, 168, 112, 0.18);
}

.primary-button,
.link-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.primary-button {
  margin-top: 8px;
  background: linear-gradient(135deg, #416f4e, #79a85e);
  color: white;
  font-weight: 800;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.link-button {
  margin-top: 10px;
  background: transparent;
  color: #496d4a;
  font-weight: 700;
}

.error {
  margin: 10px 0 0;
  color: #9b2f2f;
  font-weight: 700;
}
.login-scene {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 244, 208, 0.78), rgba(180, 221, 198, 0.7)),
    radial-gradient(circle at 50% 16%, #fff7cd 0 10%, transparent 32%),
    linear-gradient(145deg, #9dcaa4, #6ea58d 58%, #456f5f);
}

.sky-glow {
  position: absolute;
  inset: -15% -10% auto;
  height: 46%;
  background: radial-gradient(circle, rgba(255, 251, 218, 0.95), rgba(255, 223, 147, 0.3) 48%, transparent 70%);
}

.cottage-art {
  position: absolute;
  left: 8vw;
  bottom: 10vh;
  width: min(36vw, 460px);
  height: min(36vw, 420px);
}

.roof {
  position: absolute;
  left: 11%;
  top: 13%;
  width: 72%;
  height: 36%;
  background: #8d5638;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 0 22px 50px rgba(70, 47, 35, 0.24);
}

.house {
  position: absolute;
  left: 18%;
  top: 43%;
  width: 58%;
  height: 42%;
  border: 5px solid rgba(90, 58, 38, 0.35);
  background: linear-gradient(135deg, #e8ba73, #c9824e);
  box-shadow: 0 18px 50px rgba(49, 64, 41, 0.24);
}

.window,
.door {
  position: absolute;
  bottom: 22%;
  display: block;
  background: #fff0a8;
  box-shadow: 0 0 24px rgba(255, 242, 168, 0.9);
}

.window {
  left: 18%;
  width: 20%;
  height: 28%;
}

.door {
  right: 20%;
  width: 22%;
  height: 46%;
  background: #6f513a;
  box-shadow: inset 0 18px 0 rgba(255, 239, 154, 0.24);
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 252, 238, 0.76);
  box-shadow: 0 24px 80px rgba(52, 78, 60, 0.22);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #6e7d4f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-panel h1 {
  margin-bottom: 8px;
  color: #324f37;
  font-size: 36px;
}

.login-panel h2 {
  margin-bottom: 22px;
  color: #6b5942;
  font-size: 18px;
  font-weight: 700;
}

.loading-scene {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 242, 190, 0.9), transparent 32%),
    linear-gradient(145deg, #274937, #6d9f71);
}

.loading-card {
  width: min(520px, calc(100vw - 32px));
  text-align: center;
  color: white;
}

.loading-card p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.loading-card h1 {
  margin-bottom: 28px;
  font-size: 42px;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7d56f, #fff3b0);
  transition: width 0.18s ease;
}

.loading-card strong {
  display: block;
  margin-top: 14px;
  font-size: 24px;
}

.loading-card em {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}
.world-scene {
  position: relative;
  overflow: hidden;
  background: #6fa57a;
}

.world-root {
  position: absolute;
  inset: 0;
}

.ui-input-shield {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: transparent;
  pointer-events: auto;
}

.world-gull-layer {
  position: absolute;
  inset: 0;
  z-index: 28;
  pointer-events: none;
}
/* HUD, quick actions, minimap, audio and toolbelt styles. */

.world-hud {
  position: absolute;
  z-index: 50;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: calc(100vw - 112px);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(30, 51, 36, 0.74);
  color: white;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.world-hud span,
.world-hud strong {
  white-space: nowrap;
}

.world-hud .hud-weather {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: min(310px, calc(100vw - 52px));
}

.world-hud .hud-weather small {
  max-width: 170px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-account-actions {
  position: fixed;
  right: auto;
  bottom: 12px;
  left: 12px;
  z-index: 70;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.hud-system-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  padding: 4px 9px;
  background: rgba(30, 51, 36, 0.72);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.hud-system-trigger b {
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8df82;
  font-size: 11px;
}

.hud-system-menu {
  position: absolute;
  top: auto;
  right: auto;
  bottom: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 5px;
  width: 142px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(30, 51, 36, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  backdrop-filter: blur(14px);
}

.hud-system-menu::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 8px;
}

.hud-account-actions:hover .hud-system-menu,
.hud-account-actions:focus-within .hud-system-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hud-menu-group {
  position: relative;
  width: 100%;
}

.hud-menu-group::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 10px;
  height: 100%;
}

.hud-submenu-trigger b {
  color: #f8df82;
  font-size: 14px;
  line-height: 1;
}

.hud-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  display: grid;
  gap: 5px;
  width: 128px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(30, 51, 36, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  backdrop-filter: blur(14px);
}

.hud-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 10px;
}

.hud-menu-group:hover .hud-submenu,
.hud-menu-group:focus-within .hud-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hud-debug-time,
.hud-logout,
.hud-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.hud-debug-time b {
  color: #f8df82;
  font-size: 11px;
}

.hud-logout:hover:not(:disabled),
.hud-debug-time:hover,
.hud-debug-time.active,
.hud-admin:hover,
.hud-admin.active {
  border-color: rgba(255, 242, 168, 0.6);
  background: rgba(255, 242, 168, 0.16);
  color: #fff2a8;
}

.hud-debug-time.active {
  box-shadow: 0 0 0 1px rgba(255, 226, 132, 0.2), 0 0 18px rgba(255, 197, 78, 0.22);
}

.hud-logout:disabled {
  cursor: wait;
  opacity: 0.58;
}

.quick-actions {
  position: absolute;
  top: 44px;
  right: 12px;
  z-index: 69;
  display: grid;
  gap: 5px;
}

.quick-action {
  display: grid;
  grid-template-columns: 24px auto auto;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 4px 7px;
  background: rgba(30, 51, 36, 0.72);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.quick-action.compact {
  grid-template-columns: 22px auto auto;
  min-height: 29px;
  padding: 3px 6px;
  font-size: 11px;
}

.quick-action:hover,
.quick-action.active {
  border-color: rgba(248, 223, 130, 0.7);
  background: rgba(57, 92, 67, 0.88);
  color: #fff2a8;
}

.quick-action.voice-command-action.active {
  border-color: rgba(255, 184, 100, 0.88);
  background: rgba(132, 63, 44, 0.9);
}

.quick-action-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.quick-action.compact .quick-action-icon {
  width: 22px;
  height: 22px;
}

.quick-action kbd {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #f8df82;
  font: inherit;
  font-size: 11px;
}

.voice-command-toast {
  position: absolute;
  right: 112px;
  bottom: 22px;
  z-index: 72;
  display: grid;
  gap: 4px;
  width: min(360px, calc(100vw - 156px));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(30, 51, 36, 0.78);
  color: white;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.voice-command-toast strong {
  font-size: 13px;
}

.voice-command-toast span,
.voice-command-toast small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.minimap-panel {
  position: absolute;
  z-index: 46;
  right: 12px;
  bottom: 94px;
  width: 170px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 8px;
  background: rgba(33, 55, 39, 0.74);
  color: white;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.minimap-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.minimap-title strong {
  font-size: 12px;
}

.minimap-title span {
  color: #f8df82;
  font-size: 11px;
  font-weight: 900;
}

.minimap-map {
  position: relative;
  height: 98px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(196, 219, 164, 0.64), rgba(112, 163, 118, 0.72)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
}

.minimap-road,
.minimap-zone,
.minimap-dot {
  position: absolute;
  display: block;
}

.minimap-road {
  left: 22%;
  top: 50%;
  width: 64%;
  height: 12px;
  border-radius: 999px;
  background: rgba(216, 190, 128, 0.5);
  transform: rotate(-8deg);
}

.minimap-zone {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 249, 221, 0.22);
}

.minimap-zone.home {
  left: 22%;
  top: 31%;
  width: 18%;
  height: 17%;
}

.minimap-zone.woods {
  right: 20%;
  bottom: 21%;
  width: 20%;
  height: 18%;
  background: rgba(80, 119, 75, 0.26);
}

.minimap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(31, 51, 37, 0.45);
}

.minimap-dot.player {
  width: 11px;
  height: 11px;
  background: #f8df82;
  box-shadow: 0 0 0 3px rgba(33, 55, 39, 0.58), 0 0 14px rgba(248, 223, 130, 0.9);
}

.minimap-dot.building {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #f0b66e;
}

.minimap-dot.building[data-kind="shop"] {
  background: #db6c68;
}

.minimap-dot.building[data-kind="farm"] {
  background: #7fc06f;
}

.minimap-dot.building[data-kind="campfire"] {
  background: #f28d3a;
  box-shadow: 0 0 0 2px rgba(31, 51, 37, 0.45), 0 0 10px rgba(242, 141, 58, 0.8);
}

.minimap-dot.guide-target-dot {
  width: 13px;
  height: 13px;
  border: 2px solid #fff5a8;
  background: rgba(255, 205, 67, 0.82);
  box-shadow: 0 0 0 3px rgba(46, 45, 23, 0.55), 0 0 16px rgba(255, 213, 80, 0.92);
}

.minimap-dot.guide-target-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 245, 168, 0.7);
  border-radius: 50%;
}

.minimap-legend {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.minimap-legend span {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
}

.minimap-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ed186;
}

.minimap-legend i[data-kind="player"] {
  background: #f8df82;
}

.minimap-legend i[data-kind="building"] {
  border-radius: 2px;
  background: #f0b66e;
}

.minimap-legend i[data-kind="guide"] {
  background: #ffd550;
  box-shadow: 0 0 0 1px rgba(255, 245, 168, 0.8);
}

.audio-speed-widget {
  position: absolute;
  right: 196px;
  bottom: 94px;
  z-index: 48;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: auto;
}

.audio-speed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(32, 52, 38, 0.74);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: white;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(10px);
}

.audio-speed-toggle span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.audio-speed-toggle strong {
  color: #f8df82;
  font-size: 12px;
}

.audio-speed-toggle:hover,
.audio-speed-widget.open .audio-speed-toggle {
  border-color: rgba(248, 223, 130, 0.72);
  background: rgba(53, 82, 58, 0.88);
}

.audio-speed-popover {
  display: grid;
  gap: 9px;
  width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 10px;
  background: rgba(251, 248, 229, 0.94);
  box-shadow: 0 18px 46px rgba(23, 38, 26, 0.28);
  color: #253526;
}

.audio-speed-popover > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audio-speed-popover strong {
  font-size: 13px;
}

.audio-speed-popover span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.audio-speed-popover input[type="range"] {
  width: 100%;
  accent-color: #638d58;
}

.audio-speed-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.audio-speed-presets button {
  min-height: 28px;
  border: 1px solid rgba(76, 111, 72, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.audio-speed-presets button:hover,
.audio-speed-presets button.active {
  border-color: rgba(76, 111, 72, 0.42);
  background: rgba(224, 241, 210, 0.92);
}

.background-music-widget {
  position: absolute;
  right: 296px;
  bottom: 94px;
  z-index: 48;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(32, 52, 38, 0.74);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: white;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.background-music-widget.enabled {
  border-color: rgba(248, 223, 130, 0.68);
  background: rgba(53, 82, 58, 0.86);
}

.background-music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
}

.background-music-toggle span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(248, 223, 130, 0.16);
  color: #f8df82;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.background-music-toggle strong {
  font-size: 12px;
}

.background-music-volume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.background-music-volume span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.background-music-volume input {
  width: 62px;
  accent-color: #f8df82;
}

.toolbelt {
  position: absolute;
  left: 50%;
  z-index: 47;
  bottom: 10px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(32, 52, 38, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.tool-slot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  min-width: 92px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  text-align: left;
}

.tool-slot:hover,
.tool-slot.active {
  border-color: rgba(248, 223, 130, 0.75);
  background: rgba(255, 245, 190, 0.2);
}

.tool-slot.active {
  box-shadow: inset 0 0 0 1px rgba(248, 223, 130, 0.46), 0 0 18px rgba(248, 223, 130, 0.18);
}

.tool-slot kbd {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  color: #f8df82;
  font: inherit;
  font-weight: 900;
}

.tool-slot span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tool-slot strong {
  font-size: 12px;
  white-space: nowrap;
}

.tool-slot small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Admin model, map, question, voice-command, and vocabulary editor styles. */

.admin-model-editor {
  position: absolute;
  z-index: 86;
  left: 50%;
  top: 52%;
  width: min(1040px, calc(100vw - 56px));
  max-height: min(720px, calc(100vh - 96px));
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(250, 250, 241, 0.96);
  box-shadow: 0 28px 80px rgba(23, 38, 26, 0.36);
  color: #253526;
}

.admin-model-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(75, 100, 70, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

.admin-model-editor-head div {
  display: grid;
  gap: 2px;
}

.admin-model-editor-head strong {
  font-size: 18px;
}

.admin-model-editor-head span,
.admin-model-preview-panel small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.admin-model-editor-head button,
.admin-model-actions button {
  border: 1px solid rgba(70, 100, 68, 0.22);
  border-radius: 8px;
  padding: 7px 11px;
  background: #ffffff;
  color: #253526;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-model-editor-body {
  display: grid;
  grid-template-columns: 190px minmax(340px, 1fr) 280px;
  gap: 12px;
  padding: 14px;
}

.admin-model-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-model-list button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid rgba(70, 100, 68, 0.16);
  border-radius: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #253526;
  cursor: pointer;
  text-align: left;
}

.admin-model-list button.active {
  border-color: rgba(84, 125, 72, 0.56);
  background: #eef7e7;
}

.admin-model-list span {
  color: rgba(37, 53, 38, 0.58);
  font-size: 12px;
}

.admin-model-preview-panel {
  display: grid;
  grid-template-rows: minmax(340px, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.admin-model-preview {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(70, 100, 68, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(120, 150, 120, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(120, 150, 120, 0.08) 1px, transparent 1px),
    #f6f7ef;
  background-size: 24px 24px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-model-preview:active {
  cursor: grabbing;
}

.admin-model-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-model-preview > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(37, 53, 38, 0.68);
  font-weight: 900;
}

.admin-model-axis-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(30, 51, 36, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  pointer-events: none;
}

.admin-model-axis-legend b {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 900;
}

.admin-model-axis-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.admin-model-axis-legend .route {
  background: #4f9f59;
}

.admin-model-axis-legend .head {
  background: #f6c545;
}

.admin-model-axis-legend .feet {
  background: #5f8fd8;
}

.admin-model-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-model-preview-stats span {
  border: 1px solid rgba(70, 100, 68, 0.14);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #3c5d3d;
  font-size: 12px;
  font-weight: 900;
}

.admin-model-gui-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  min-width: 0;
}

.admin-model-gui {
  min-height: 420px;
}

.admin-model-gui .lil-gui {
  --background-color: rgba(30, 51, 36, 0.88);
  --title-background-color: rgba(21, 37, 26, 0.94);
  --text-color: rgba(255, 255, 255, 0.9);
  --number-color: #fff2a8;
  --widget-color: rgba(255, 255, 255, 0.13);
  --hover-color: rgba(255, 255, 255, 0.2);
  --focus-color: rgba(255, 242, 168, 0.22);
  --slider-knob-width: 4px;
  --font-size: 12px;
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  font-family: "Microsoft YaHei", sans-serif;
  box-shadow: 0 16px 36px rgba(23, 38, 26, 0.18);
}

.admin-model-gui .lil-gui.root {
  max-height: none;
}

.admin-model-gui .lil-gui .title {
  font-weight: 900;
}

.admin-model-gui-panel p {
  margin: 0;
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.admin-layout-editor {
  position: absolute;
  z-index: 86;
  left: 50%;
  top: 52%;
  display: flex;
  flex-direction: column;
  width: min(1060px, calc(100vw - 56px));
  height: min(720px, calc(100vh - 96px));
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(250, 250, 241, 0.96);
  box-shadow: 0 28px 80px rgba(23, 38, 26, 0.36);
  color: #253526;
}

.admin-layout-editor-body {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 300px;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.admin-layout-map-panel {
  display: grid;
  gap: 8px;
  min-height: 0;
  min-width: 0;
}

.admin-layout-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-layout-map-tabs button {
  min-height: 30px;
  border: 1px solid rgba(70, 100, 68, 0.18);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.66);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.admin-layout-map-tabs button.active {
  border-color: rgba(84, 125, 72, 0.56);
  background: #eef7e7;
  color: #253526;
}

.admin-layout-map {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(70, 100, 68, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    #8fbf93;
  background-size: 36px 36px;
  touch-action: none;
  user-select: none;
}

.admin-layout-map.interior {
  background:
    linear-gradient(90deg, rgba(104, 70, 44, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(104, 70, 44, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #e4c798 0 24%, #c99b68 24% 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.admin-layout-zone {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(244, 240, 216, 0.4);
  background: rgba(186, 216, 167, 0.54);
  color: rgba(48, 78, 54, 0.72);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

.admin-layout-zone.home {
  left: 16%;
  top: 34%;
  width: 16%;
  height: 15%;
}

.admin-layout-zone.woods {
  right: 8%;
  bottom: 15%;
  width: 18%;
  height: 17%;
}

.admin-layout-road {
  position: absolute;
  left: 18%;
  top: 55%;
  width: 66%;
  height: 8%;
  border-radius: 999px;
  background: rgba(217, 197, 142, 0.42);
  transform: rotate(-8deg);
  pointer-events: none;
}

.admin-layout-building {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 74px;
  max-width: 118px;
  min-height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(41, 76, 48, 0.82);
  color: #fff8c6;
  cursor: grab;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 10px 22px rgba(23, 38, 26, 0.24);
  transform: translate(-50%, -50%);
}

.admin-layout-building:active {
  cursor: grabbing;
}

.admin-layout-building.active {
  border-color: #ffe88a;
  background: rgba(86, 96, 49, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 232, 138, 0.18), 0 12px 26px rgba(23, 38, 26, 0.28);
}

.admin-layout-building[data-kind="shop"] {
  background: rgba(138, 83, 50, 0.88);
}

.admin-layout-building[data-kind="farm"] {
  background: rgba(74, 128, 72, 0.88);
}

.admin-layout-building[data-kind="campfire"] {
  background: rgba(155, 86, 43, 0.9);
}

.admin-layout-building[data-kind="order_board"] {
  background: rgba(96, 74, 54, 0.9);
}

.admin-layout-building.npc,
.admin-layout-building[data-kind="npc"] {
  min-width: 58px;
  border-radius: 14px;
  background: rgba(82, 122, 93, 0.94);
  color: #f7ffe2;
}

.admin-layout-building.npc::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 2px;
  background: #f3c58f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.admin-layout-map-panel small,
.admin-layout-form small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.admin-layout-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.admin-layout-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.admin-layout-list button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(70, 100, 68, 0.16);
  border-radius: 9px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #253526;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.admin-layout-list button.active {
  border-color: rgba(84, 125, 72, 0.56);
  background: #eef7e7;
}

.admin-layout-list span {
  color: rgba(37, 53, 38, 0.58);
  font-size: 12px;
}

.admin-layout-form {
  display: grid;
  gap: 8px;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.66);
}

.admin-layout-form label {
  display: grid;
  gap: 4px;
  color: rgba(37, 53, 38, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.admin-layout-form input {
  min-height: 32px;
  border: 1px solid rgba(70, 100, 68, 0.2);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #253526;
}

.admin-layout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-layout-actions button {
  min-height: 34px;
  border: 1px solid rgba(70, 100, 68, 0.22);
  border-radius: 8px;
  padding: 7px 12px;
  background: #ffffff;
  color: #253526;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-layout-actions button:last-child {
  background: rgba(73, 109, 74, 0.14);
  color: #3f633e;
}

.admin-layout-actions button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.admin-question-editor {
  position: absolute;
  z-index: 86;
  left: 50%;
  top: 52%;
  display: flex;
  flex-direction: column;
  width: min(1080px, calc(100vw - 56px));
  height: min(760px, calc(100vh - 96px));
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(250, 250, 241, 0.97);
  box-shadow: 0 28px 80px rgba(23, 38, 26, 0.36);
  color: #253526;
}

.admin-question-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(37, 53, 38, 0.12);
}

.admin-question-editor-head div {
  display: grid;
  gap: 4px;
}

.admin-question-editor-head strong {
  font-size: 16px;
}

.admin-question-editor-head small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.admin-question-editor-head button,
.admin-question-actions button,
.admin-question-new {
  min-height: 32px;
  border: 1px solid rgba(73, 109, 74, 0.22);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(73, 109, 74, 0.1);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.admin-question-editor-body {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.admin-question-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.admin-question-list button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(37, 53, 38, 0.12);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #253526;
  cursor: pointer;
  text-align: left;
}

.admin-question-list button.active {
  border-color: rgba(73, 109, 74, 0.46);
  background: rgba(226, 241, 214, 0.92);
}

.admin-question-list button.inactive {
  opacity: 0.62;
}

.admin-question-list span,
.admin-question-list small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.admin-question-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-question-form {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.admin-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-question-form label,
.admin-question-options label {
  display: grid;
  gap: 5px;
  color: rgba(37, 53, 38, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.admin-question-form input,
.admin-question-form select,
.admin-question-form textarea {
  min-width: 0;
  border: 1px solid rgba(37, 53, 38, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.76);
  color: #253526;
  font: inherit;
  font-size: 13px;
}

.admin-question-form textarea {
  resize: vertical;
}

.admin-question-check {
  align-content: center;
}

.admin-question-form .admin-question-check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  accent-color: #496d4a;
}

.admin-question-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-question-options label {
  grid-template-columns: 64px minmax(90px, 0.35fr) minmax(0, 1fr);
  align-items: center;
}

.admin-question-vocabulary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  border: 1px solid rgba(37, 53, 38, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.admin-question-vocabulary > strong {
  grid-column: 1 / -1;
  color: #324f37;
  font-size: 13px;
}

.admin-question-vocabulary label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(73, 109, 74, 0.12);
  border-radius: 8px;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.62);
  color: #425e43;
  font-size: 12px;
}

.admin-question-vocabulary input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #496d4a;
}

.admin-question-vocabulary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-question-vocabulary em {
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-style: normal;
  font-weight: 900;
}

.admin-question-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  background: linear-gradient(rgba(250, 250, 241, 0), rgba(250, 250, 241, 0.98) 24%);
}

.admin-question-actions button[type="submit"] {
  border-color: rgba(73, 109, 74, 0.42);
  background: rgba(73, 109, 74, 0.16);
}

.admin-voice-command-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.admin-voice-command-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.admin-voice-command-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(37, 53, 38, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-voice-command-card label {
  display: grid;
  gap: 5px;
  color: rgba(37, 53, 38, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.admin-voice-command-card input,
.admin-voice-command-card select,
.admin-voice-command-card textarea {
  min-width: 0;
  border: 1px solid rgba(37, 53, 38, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.76);
  color: #253526;
  font: inherit;
  font-size: 13px;
}

.admin-voice-enabled {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.admin-voice-enabled input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  accent-color: #496d4a;
}

.admin-vocabulary-editor {
  width: min(1160px, calc(100vw - 56px));
}

.admin-vocabulary-workbench {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.admin-vocabulary-sidebar,
.admin-vocabulary-detail,
.admin-vocabulary-empty {
  min-height: 0;
  border: 1px solid rgba(37, 53, 38, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-vocabulary-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.admin-vocabulary-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.admin-vocabulary-search label,
.admin-vocabulary-form label {
  display: grid;
  gap: 5px;
  color: rgba(37, 53, 38, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.admin-vocabulary-search input,
.admin-vocabulary-form input,
.admin-vocabulary-form textarea {
  min-width: 0;
  border: 1px solid rgba(37, 53, 38, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.78);
  color: #253526;
  font: inherit;
  font-size: 13px;
}

.admin-vocabulary-form textarea {
  resize: vertical;
}

.admin-vocabulary-search button,
.admin-vocabulary-detail-head button,
.admin-vocabulary-empty button,
.admin-vocabulary-footer button {
  min-height: 34px;
  border: 1px solid rgba(73, 109, 74, 0.22);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(73, 109, 74, 0.1);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.admin-vocabulary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-vocabulary-stats span,
.admin-vocabulary-detail-head small,
.admin-vocabulary-form small,
.admin-vocabulary-footer span,
.admin-vocabulary-list button span,
.admin-vocabulary-list button small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.admin-vocabulary-stats span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(73, 109, 74, 0.1);
  font-weight: 900;
}

.admin-vocabulary-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.admin-vocabulary-list button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(37, 53, 38, 0.12);
  border-radius: 9px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: #253526;
  cursor: pointer;
  text-align: left;
}

.admin-vocabulary-list button.active {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(226, 241, 214, 0.94);
  box-shadow: inset 3px 0 0 #6fa57a;
}

.admin-vocabulary-list button strong,
.admin-vocabulary-list button small,
.admin-vocabulary-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-vocabulary-list p {
  margin: 0;
  border: 1px dashed rgba(73, 109, 74, 0.18);
  border-radius: 9px;
  padding: 14px;
  color: rgba(37, 53, 38, 0.62);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.admin-vocabulary-detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.admin-vocabulary-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(37, 53, 38, 0.1);
}

.admin-vocabulary-detail-head div,
.admin-vocabulary-form section {
  display: grid;
  gap: 6px;
}

.admin-vocabulary-detail-head strong {
  color: #253526;
  font-size: 16px;
}

.admin-vocabulary-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.admin-vocabulary-form section {
  border: 1px solid rgba(73, 109, 74, 0.1);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-vocabulary-form h3 {
  margin: 0;
  color: #324f37;
  font-size: 14px;
}

.admin-vocabulary-rule-grid {
  display: grid;
  grid-template-columns: 160px 160px minmax(0, 1fr);
  gap: 10px;
}

.admin-vocabulary-binding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-vocabulary-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #324f37;
}

.admin-vocabulary-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(37, 53, 38, 0.12);
  background: rgba(250, 250, 241, 0.96);
}

.admin-vocabulary-footer button {
  border-color: rgba(73, 109, 74, 0.42);
  background: rgba(73, 109, 74, 0.16);
}

.admin-vocabulary-footer button:disabled {
  cursor: wait;
  opacity: 0.56;
}
/* Inventory, task, interaction, order, NPC, friends, farm, and related panel styles. */

.inventory-panel {
  position: absolute;
  z-index: 64;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 128px);
  display: grid;
  gap: 7px;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 252, 238, 0.9);
  color: #2b3f31;
  box-shadow: 0 18px 48px rgba(35, 54, 38, 0.22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.warehouse-panel {
  position: absolute;
  z-index: 64;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 252, 238, 0.9);
  color: #2b3f31;
  box-shadow: 0 18px 48px rgba(35, 54, 38, 0.22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.warehouse-section {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.warehouse-panel > .warehouse-section {
  min-height: 0;
}

.warehouse-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.warehouse-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(96, 120, 87, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.warehouse-transfer-section {
  min-height: 0;
}

.warehouse-transfer-list {
  max-height: min(430px, calc(100vh - 260px));
  padding-right: 4px;
  overscroll-behavior: contain;
}

.warehouse-transfer-row {
  width: 100%;
  min-height: 58px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.warehouse-transfer-row:hover,
.warehouse-transfer-row:focus-visible {
  border-color: rgba(73, 109, 74, 0.48);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.warehouse-transfer-row.can-deposit {
  box-shadow: inset 3px 0 0 rgba(75, 132, 81, 0.55);
}

.warehouse-transfer-row.can-withdraw {
  box-shadow: inset -3px 0 0 rgba(154, 106, 43, 0.45);
}

.warehouse-row b {
  color: #7b5a2d;
  white-space: nowrap;
}

.warehouse-counts {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 84px;
}

.warehouse-counts b:first-child {
  color: #3f633e;
}

.warehouse-row-hint {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: rgba(74, 90, 70, 0.48);
  font-size: 12px;
  white-space: nowrap;
}

.warehouse-row-hint .active {
  color: #4b7448;
  font-weight: 900;
}

.warehouse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.warehouse-actions button {
  min-height: 30px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 4px 10px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.warehouse-actions button:hover {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(73, 109, 74, 0.2);
}

.learning-manual-panel {
  position: absolute;
  z-index: 65;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 128px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(246, 252, 238, 0.93);
  color: #2b3f31;
  box-shadow: 0 18px 48px rgba(35, 54, 38, 0.24);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.learning-manual-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.learning-manual-controls label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #61705a;
  font-size: 11px;
  font-weight: 900;
}

.learning-manual-controls input {
  min-height: 32px;
  border: 1px solid rgba(76, 111, 72, 0.2);
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #324f37;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.learning-manual-controls input:focus {
  border-color: rgba(73, 109, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(73, 109, 74, 0.12);
}

.learning-manual-filters,
.learning-manual-pager div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.learning-manual-filters button,
.learning-manual-pager button {
  min-height: 30px;
  border: 1px solid rgba(76, 111, 72, 0.2);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.68);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.learning-manual-filters button.active,
.learning-manual-filters button:hover,
.learning-manual-pager button:hover:not(:disabled) {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(229, 242, 213, 0.86);
}

.learning-manual-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.learning-manual-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.learning-manual-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(76, 111, 72, 0.28);
  border-radius: 8px;
  padding: 22px;
  color: #61705a;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.learning-manual-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(76, 111, 72, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.learning-manual-card.mastered {
  border-color: rgba(109, 168, 112, 0.42);
  background: rgba(235, 249, 225, 0.76);
}

.learning-manual-card-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px auto;
  gap: 8px;
  align-items: center;
}

.learning-manual-image {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(111, 165, 122, 0.24), rgba(216, 155, 75, 0.18));
  color: #496d4a;
  font-weight: 900;
}

.learning-manual-card-head span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.learning-manual-card-head strong {
  overflow: hidden;
  color: #324f37;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-manual-card-head small,
.learning-manual-card > small {
  overflow: hidden;
  color: #68765f;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-manual-card-head b,
.learning-skill-row b {
  color: #496d4a;
  font-size: 12px;
}

.learning-audio-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(70, 112, 156, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #34566e;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.learning-audio-button:hover,
.learning-audio-button:focus-visible {
  border-color: rgba(70, 112, 156, 0.5);
  background: rgba(220, 239, 255, 0.92);
  outline: none;
}

.learning-skill-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
  color: #526d4d;
  font-size: 12px;
  font-weight: 900;
}

.learning-skill-row.muted {
  opacity: 0.72;
}

.learning-skill-row i {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(76, 111, 72, 0.12);
}

.learning-skill-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fa57a, #d89b4b);
}

.learning-manual-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(76, 111, 72, 0.12);
  padding-top: 8px;
}

.learning-manual-pager span,
.learning-manual-pager b {
  color: #61705a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #324f37;
}

.learning-manual-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
}

.panel-close-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(76, 111, 72, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.panel-close-button:hover {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(229, 242, 213, 0.86);
}

.panel-title strong {
  font-size: 15px;
}

.panel-title span {
  color: #6c7552;
  font-size: 12px;
  font-weight: 800;
}

.panel-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.panel-title-actions em {
  font-style: normal;
  white-space: nowrap;
}

.panel-title-actions button {
  min-height: 24px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.panel-title-actions button:hover:not(:disabled) {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(73, 109, 74, 0.2);
}

.panel-title-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-state {
  padding: 10px;
  border: 1px dashed rgba(83, 113, 78, 0.35);
  border-radius: 8px;
  color: #61705a;
  font-size: 12px;
  line-height: 1.5;
}

.panel-note {
  margin: 0;
  color: #6f765d;
  font-size: 12px;
  line-height: 1.45;
}

.inventory-list {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.inventory-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(96, 120, 87, 0.18);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.inventory-row:hover {
  border-color: rgba(77, 124, 73, 0.42);
  background: rgba(255, 255, 255, 0.82);
}

.item-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #86a96b;
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.item-mark[data-type="food"] {
  background: #bd5364;
}

.item-mark[data-type="seed"] {
  background: #8f9f43;
}

.item-mark[data-type="material"] {
  background: #7e8f7c;
}

.item-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-main strong,
.item-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-main strong {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
}

.item-main small {
  color: #728068;
  font-size: 11px;
}

.hot-sale-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(171, 94, 42, 0.24);
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(255, 236, 187, 0.75);
  color: #9a5c20;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.inventory-row b {
  color: #314a38;
}

.buy-actions,
.sell-actions,
.ground-actions {
  grid-column: 2 / 4;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.buy-actions button,
.sell-actions button,
.ground-actions button {
  min-height: 24px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(73, 109, 74, 0.1);
  color: #3f633e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.buy-actions button:hover:not(:disabled),
.sell-actions button:hover,
.ground-actions button:hover {
  border-color: rgba(73, 109, 74, 0.48);
  background: rgba(73, 109, 74, 0.18);
}

.ground-actions {
  grid-column: 1 / 4;
  justify-content: flex-start;
}

.ground-actions button {
  background: rgba(143, 110, 65, 0.1);
  color: #7a552c;
}

.buy-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.economy-toast {
  position: absolute;
  z-index: 60;
  left: 12px;
  top: 52px;
  max-width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(45, 75, 56, 0.78);
  color: #fff5bd;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.guide-toast {
  position: absolute;
  z-index: 60;
  left: 12px;
  top: 92px;
  width: min(300px, calc(100vw - 24px));
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 239, 157, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(65, 92, 55, 0.86);
  color: #fff7d0;
  box-shadow: 0 14px 36px rgba(25, 42, 29, 0.24);
  backdrop-filter: blur(10px);
}

.guide-toast strong {
  font-size: 13px;
}

.guide-toast span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.35;
}

.vocabulary-toast {
  position: absolute;
  z-index: 61;
  left: 12px;
  top: 142px;
  width: min(340px, calc(100vw - 24px));
  display: grid;
  gap: 4px;
  border: 1px solid rgba(143, 200, 255, 0.52);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(36, 65, 88, 0.9);
  color: #e9f5ff;
  box-shadow: 0 16px 40px rgba(20, 38, 54, 0.28);
  backdrop-filter: blur(10px);
}

.vocabulary-toast strong {
  color: #cbe9ff;
  font-size: 13px;
}

.vocabulary-toast span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.4;
}

.ready-order-toast {
  position: absolute;
  right: 18px;
  top: 168px;
  width: min(320px, calc(100vw - 36px));
  display: grid;
  gap: 5px;
  border: 1px solid rgba(226, 174, 62, 0.58);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 248, 213, 0.9);
  color: #324f37;
  box-shadow: 0 14px 36px rgba(123, 90, 45, 0.18);
  backdrop-filter: blur(10px);
}

.ready-order-toast strong {
  color: #7b5a2d;
  font-size: 13px;
}

.ready-order-toast span {
  color: #324f37;
  font-weight: 900;
}

.ready-order-toast small,
.ready-order-toast em {
  color: #75664d;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.ready-order-toast button {
  justify-self: end;
  min-height: 30px;
  border: 1px solid rgba(76, 111, 72, 0.24);
  border-radius: 8px;
  padding: 4px 10px;
  background: rgba(73, 109, 74, 0.14);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.ready-order-toast button:hover {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(73, 109, 74, 0.22);
}

.task-panels {
  position: absolute;
  z-index: 58;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(520px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 128px));
  transform: translate(-50%, -50%);
}

.daily-plan-panel {
  min-height: 0;
  max-height: min(640px, calc(100vh - 128px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 252, 238, 0.84);
  color: #2b3f31;
  box-shadow: 0 16px 42px rgba(35, 54, 38, 0.2);
  backdrop-filter: blur(12px);
}

.daily-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #324f37;
}

.daily-plan-head strong {
  font-size: 17px;
}

.daily-plan-head span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 11px;
  font-weight: 900;
}

.daily-plan-panel p {
  margin: 0;
  color: #5f6f58;
  font-size: 13px;
  line-height: 1.45;
}

.daily-plan-steps {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
}

.daily-plan-steps button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(96, 120, 87, 0.15);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.56);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.daily-plan-steps button:hover:not(:disabled),
.daily-plan-steps button:focus-visible {
  border-color: rgba(73, 109, 74, 0.36);
  background: rgba(255, 255, 255, 0.74);
  outline: none;
}

.daily-plan-steps button:disabled {
  cursor: default;
}

.daily-plan-steps button.ready {
  border-color: rgba(226, 174, 62, 0.42);
  background: rgba(255, 247, 202, 0.76);
  box-shadow: inset 3px 0 0 #e6b047;
}

.daily-plan-steps strong {
  color: #324f37;
  font-size: 13px;
}

.daily-plan-steps small {
  overflow: hidden;
  color: #728068;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: normal;
}

.daily-plan-steps em {
  justify-self: end;
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(73, 109, 74, 0.1);
  color: #496d4a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.daily-plan-steps button.ready em {
  background: rgba(226, 174, 62, 0.18);
  color: #8a5d20;
}

.daily-plan-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.daily-plan-actions button {
  min-height: 30px;
  border: 1px solid rgba(73, 109, 74, 0.18);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.daily-plan-actions button:hover {
  border-color: rgba(73, 109, 74, 0.42);
  background: rgba(73, 109, 74, 0.18);
}

.guide-panel {
  min-height: 0;
  max-height: min(640px, calc(100vh - 128px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 252, 238, 0.82);
  color: #2b3f31;
  box-shadow: 0 16px 42px rgba(35, 54, 38, 0.2);
  backdrop-filter: blur(12px);
}

.guide-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #324f37;
}

.guide-summary strong {
  font-size: 17px;
}

.guide-summary span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 11px;
  font-weight: 900;
}

.guide-focus {
  margin: 0;
  color: #6a765d;
  font-size: 13px;
  line-height: 1.45;
}

.guide-target {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: -2px 0 0;
  border: 1px solid rgba(73, 109, 74, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(235, 246, 224, 0.72);
  color: #496d4a;
  font-size: 11px;
  font-weight: 900;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.guide-target:hover {
  border-color: rgba(226, 174, 62, 0.45);
  background: rgba(255, 247, 202, 0.88);
  color: #6f5424;
}

.guide-target > span:not(.guide-target-main) {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 213, 80, 0.26);
  color: #80601d;
  font-size: 11px;
}

.guide-target-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guide-target-main strong,
.guide-target-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-target-main small {
  color: rgba(73, 109, 74, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.guide-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
}

.guide-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(96, 120, 87, 0.16);
  border-radius: 8px;
  min-height: 72px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  cursor: default;
  font: inherit;
  text-align: left;
}

.guide-row.done {
  background: rgba(229, 242, 213, 0.72);
}

.guide-row.active {
  border-color: rgba(226, 174, 62, 0.52);
  background: rgba(255, 247, 202, 0.82);
  box-shadow: inset 3px 0 0 #e6b047, 0 10px 24px rgba(75, 68, 35, 0.12);
  cursor: pointer;
}

.guide-row.active:hover,
.guide-row.active:focus-visible {
  border-color: rgba(226, 174, 62, 0.78);
  background: rgba(255, 242, 172, 0.92);
  outline: none;
}

.guide-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.guide-row.done .guide-check {
  background: #6da870;
  color: white;
}

.guide-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guide-main strong,
.guide-main small,
.guide-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-main strong {
  color: #324f37;
  font-size: 13px;
}

.guide-main small {
  color: #728068;
  font-size: 12px;
  white-space: normal;
}

.guide-main em {
  color: #926a1e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.guide-row b {
  color: #496d4a;
  font-size: 12px;
  white-space: nowrap;
}

.guide-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(73, 109, 74, 0.14);
}

.guide-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6da870, #f0c96a);
}

.panel-toggle {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(45, 75, 56, 0.78);
  color: white;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.panel-toggle:hover {
  background: rgba(57, 92, 67, 0.86);
}

.panel-toggle.alert {
  border-color: rgba(255, 218, 104, 0.7);
  background: rgba(86, 96, 49, 0.84);
  color: #fff3ba;
}

.shop-panel,
.craft-panel,
.farm-panel,
.campfire-panel,
.event-panel,
.order-panel,
.furniture-panel,
.npc-panel {
  position: absolute;
  z-index: 64;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 128px);
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 252, 238, 0.86);
  color: #2b3f31;
  box-shadow: 0 18px 48px rgba(35, 54, 38, 0.22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.furniture-panel {
  width: min(560px, calc(100vw - 32px));
}

.furniture-tv,
.furniture-table,
.furniture-chair {
  display: grid;
  gap: 10px;
}

.tv-screen-card,
.table-display-slot,
.chair-rest-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(66, 94, 72, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.tv-screen-card {
  border-color: rgba(80, 130, 154, 0.24);
  background: linear-gradient(135deg, rgba(78, 125, 154, 0.92), rgba(35, 64, 72, 0.88));
  color: #f8fbef;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.tv-screen-card span,
.table-display-slot span,
.chair-rest-card span {
  color: rgba(43, 63, 49, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.tv-screen-card span {
  color: rgba(248, 251, 239, 0.74);
}

.tv-screen-card strong,
.table-display-slot strong,
.chair-rest-card strong {
  font-size: 16px;
  line-height: 1.55;
}

.furniture-news-list {
  display: grid;
  gap: 8px;
}

.furniture-news-list p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: rgba(43, 63, 49, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.table-display-slot {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.table-display-slot span {
  grid-column: 1 / -1;
}

.table-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: min(300px, calc(100vh - 360px));
  overflow: auto;
  padding-right: 2px;
}

.table-item-grid button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(74, 109, 76, 0.16);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.56);
  color: #2b3f31;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.table-item-grid button:hover,
.table-item-grid button.active {
  border-color: rgba(92, 142, 95, 0.42);
  background: rgba(236, 248, 222, 0.86);
}

.table-item-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-item-grid small {
  color: rgba(43, 63, 49, 0.58);
  font-weight: 900;
}

.furniture-chair > button {
  justify-self: end;
}

.event-panel {
  width: min(560px, calc(100vw - 32px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.order-panel {
  width: clamp(840px, 78vw, 1120px);
  height: min(760px, calc(100vh - 56px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 56px);
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.shop-list,
.craft-list,
.farm-list,
.event-list,
.order-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.event-list {
  overflow-x: hidden;
  overflow-y: auto;
}

.market-tip {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(171, 94, 42, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 238, 202, 0.62);
}

.market-tip strong {
  color: #6d4725;
}

.market-tip span,
.market-tip small {
  color: #806846;
  font-size: 12px;
}

.shop-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
}

.shop-section-title strong {
  color: #324f37;
  font-size: 13px;
}

.shop-section-title span {
  color: #78906e;
  font-size: 11px;
  font-weight: 900;
}

.order-board-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(96, 120, 87, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.58);
}

.order-board-summary span {
  display: grid;
  gap: 3px;
}

.order-board-summary strong {
  color: #496d4a;
  font-size: 13px;
}

.order-board-summary small {
  color: #756850;
  line-height: 1.45;
}

.order-board-summary button {
  min-height: 32px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.order-board-summary button:hover {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(73, 109, 74, 0.2);
}

.order-board-summary[data-tone="ready"] {
  border-color: rgba(109, 168, 112, 0.42);
  background: rgba(232, 244, 218, 0.78);
}

.order-board-summary[data-tone="missing"] {
  border-color: rgba(226, 174, 62, 0.34);
  background: rgba(255, 244, 217, 0.76);
}

.order-board-summary[data-tone="locked"],
.order-board-summary[data-tone="done"] {
  background: rgba(244, 242, 230, 0.58);
}

.order-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.order-filter-tabs button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(76, 111, 72, 0.18);
  border-radius: 8px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.56);
  color: #496d4a;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.order-filter-tabs button.active {
  border-color: rgba(226, 174, 62, 0.58);
  background: rgba(255, 248, 213, 0.86);
  color: #7b5a2d;
}

.order-filter-tabs b {
  min-width: 18px;
  border-radius: 999px;
  padding: 1px 5px;
  background: rgba(73, 109, 74, 0.12);
  color: inherit;
  font-size: 11px;
}

.shop-row,
.craft-row,
.order-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(96, 120, 87, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.shop-row b,
.craft-meta,
.order-status {
  color: #7b5a2d;
  white-space: nowrap;
}

.shop-row.focused {
  border-color: rgba(226, 174, 62, 0.72);
  background: rgba(255, 248, 213, 0.84);
  box-shadow: inset 3px 0 0 #e2ae3e, 0 6px 18px rgba(123, 90, 45, 0.08);
}

.shop-focus-label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(226, 174, 62, 0.18);
  color: #8a5d20;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.shop-need-label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(92, 125, 145, 0.12);
  color: #4b6875;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.order-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 58px;
}

.order-meta small {
  color: #8a765a;
  font-size: 11px;
  font-weight: 800;
}

.shop-row button,
.craft-row button,
.order-row button,
.queue-title button,
.queue-row button {
  min-height: 30px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 4px 10px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.shop-row button:hover:not(:disabled),
.craft-row button:hover:not(:disabled),
.order-row button:hover:not(:disabled),
.queue-title button:hover,
.queue-row button:hover:not(:disabled) {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(73, 109, 74, 0.2);
}

.order-row button.secondary {
  border-color: rgba(171, 94, 42, 0.24);
  background: rgba(255, 238, 202, 0.68);
  color: #7b5a2d;
}

.order-row button.secondary:hover:not(:disabled) {
  border-color: rgba(171, 94, 42, 0.44);
  background: rgba(255, 224, 166, 0.78);
}

.shop-row button:disabled,
.craft-row button:disabled,
.order-row button:disabled,
.queue-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.craft-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.craft-row.focused {
  border-color: rgba(226, 174, 62, 0.72);
  background: rgba(255, 248, 213, 0.84);
  box-shadow: inset 3px 0 0 #e2ae3e, 0 6px 18px rgba(123, 90, 45, 0.08);
}

.recipe-focus-label {
  align-self: start;
  width: max-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(226, 174, 62, 0.18);
  color: #8a5d20;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.craft-row button,
.order-row button {
  grid-column: 3;
  grid-row: 2;
}

.order-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.order-row.ready {
  border-color: rgba(109, 168, 112, 0.5);
  background: rgba(229, 242, 213, 0.74);
}

.order-row.focused {
  border-color: rgba(226, 174, 62, 0.78);
  background: rgba(255, 248, 213, 0.86);
  box-shadow: inset 3px 0 0 #e2ae3e, 0 6px 18px rgba(123, 90, 45, 0.08);
}

.order-row.completed {
  opacity: 0.68;
}

.order-focus-label,
.order-weather-label {
  align-self: start;
  width: max-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(226, 174, 62, 0.18);
  color: #8a5d20;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.order-weather-label {
  background: rgba(92, 125, 145, 0.14);
  color: #4b6875;
}

.reward-use-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.reward-use-tags span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(73, 109, 74, 0.1);
  color: #496d4a;
  font-size: 11px;
  font-weight: 900;
}

.order-progress {
  grid-column: 2 / 4;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(96, 120, 87, 0.14);
}

.order-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #75a86f, #e2ae3e);
  transition: width 0.2s ease;
}

.order-row.ready .order-progress span {
  background: linear-gradient(90deg, #5b9f62, #8fc46f);
}

.order-row.completed .order-progress span {
  background: rgba(96, 120, 87, 0.34);
}

.order-panel .order-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  align-content: start;
  gap: 12px;
}

.order-panel .order-row {
  min-width: 0;
  height: 300px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-rows: 42px 5px 62px minmax(0, 1fr) 32px;
  grid-template-areas:
    "mark main meta"
    "progress progress progress"
    "advice advice advice"
    "details details details"
    "action action action";
  align-content: start;
  align-items: start;
  gap: 9px;
  padding: 11px;
  overflow: hidden;
}

.order-panel .order-row .item-mark {
  grid-area: mark;
  align-self: start;
}

.order-panel .order-row .item-main {
  grid-area: main;
  align-self: start;
  min-height: 0;
}

.order-panel .order-row .item-main strong,
.order-panel .order-row .item-main small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.order-panel .order-row .item-main strong {
  -webkit-line-clamp: 1;
}

.order-panel .order-row .item-main small {
  -webkit-line-clamp: 2;
}

.order-panel .order-row .order-meta {
  grid-area: meta;
  justify-items: end;
  min-width: 58px;
  align-self: start;
}

.order-panel .order-row .order-progress {
  grid-area: progress;
  grid-column: auto;
  align-self: center;
}

.order-panel .order-row .order-advice {
  grid-area: advice;
  grid-column: auto;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
}

.order-panel .order-row .recipe-lines {
  grid-area: details;
  grid-column: auto;
  min-height: 0;
  overflow: hidden;
}

.order-panel .order-row > button {
  grid-area: action;
  grid-column: auto;
  grid-row: auto;
  align-self: end;
  justify-self: stretch;
  margin-top: auto;
  min-width: 0;
}

.order-panel .recipe-costs {
  max-height: 58px;
  overflow: auto;
}

.order-panel .order-advice small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-panel .recipe-lines > small,
.order-panel .order-advice small,
.order-panel .item-main small {
  white-space: normal;
}

.order-panel .recipe-lines > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-panel .reward-use-tags {
  max-height: 24px;
  overflow: hidden;
}

.order-advice {
  grid-column: 2 / 4;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(96, 120, 87, 0.14);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(248, 248, 235, 0.72);
}

.order-advice strong {
  color: #496d4a;
  font-size: 12px;
}

.order-advice small {
  color: #756850;
  line-height: 1.45;
}

.order-advice[data-tone="ready"] {
  border-color: rgba(109, 168, 112, 0.36);
  background: rgba(232, 244, 218, 0.84);
}

.order-advice[data-tone="ready"] strong {
  color: #3f7040;
}

.order-advice[data-tone="missing"],
.order-advice[data-tone="daily"] {
  border-color: rgba(226, 174, 62, 0.28);
  background: rgba(255, 244, 217, 0.78);
}

.order-advice[data-tone="locked"],
.order-advice[data-tone="done"] {
  border-color: rgba(96, 120, 87, 0.12);
  background: rgba(244, 242, 230, 0.62);
}

.order-advice[data-tone="locked"] strong,
.order-advice[data-tone="done"] strong {
  color: #7b6b51;
}

.order-panel .order-row .order-progress,
.order-panel .order-row .order-advice,
.order-panel .order-row .recipe-lines,
.order-panel .order-row > button {
  grid-column: auto;
  grid-row: auto;
}

.order-panel .order-row .order-progress {
  grid-area: progress;
}

.order-panel .order-row .order-advice {
  grid-area: advice;
}

.order-panel .order-row .recipe-lines {
  grid-area: details;
}

.order-panel .order-row > button {
  grid-area: action;
}

.cottage-order-panel {
  position: relative;
  isolation: isolate;
  gap: 12px;
  border-color: rgba(96, 62, 35, 0.28);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 191, 91, 0.22), transparent 31%),
    linear-gradient(180deg, rgba(255, 250, 228, 0.96), rgba(235, 219, 182, 0.93)),
    repeating-linear-gradient(90deg, rgba(104, 72, 40, 0.055) 0 1px, transparent 1px 22px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 24px 58px rgba(56, 44, 28, 0.2);
}

.cottage-order-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(107, 72, 39, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.cottage-order-panel > * {
  position: relative;
  z-index: 1;
}

.order-board-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(96, 62, 35, 0.22);
  border-radius: 12px;
  padding: 11px 12px;
  background:
    linear-gradient(135deg, rgba(255, 252, 235, 0.9), rgba(245, 231, 194, 0.76)),
    repeating-linear-gradient(90deg, rgba(96, 62, 35, 0.04) 0 1px, transparent 1px 18px);
}

.order-board-emblem {
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(96, 62, 35, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 238, 166, 0.96) 0 20%, transparent 22%),
    linear-gradient(180deg, #8f653c, #614022);
  box-shadow: inset 0 0 0 3px rgba(255, 248, 217, 0.36);
}

.order-board-emblem span {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 11px;
  height: 22px;
  border: 1px solid rgba(67, 44, 25, 0.34);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 248, 213, 0.96), rgba(226, 174, 62, 0.78)),
    repeating-linear-gradient(0deg, rgba(67, 44, 25, 0.12) 0 1px, transparent 1px 7px);
  transform: rotate(-5deg);
}

.order-board-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-board-copy small,
.order-row-kicker {
  color: #8a663a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-board-copy strong {
  color: #314d34;
  font-size: 18px;
  line-height: 1.1;
}

.order-board-copy p {
  margin: 0;
  color: #766449;
  font-size: 13px;
  line-height: 1.45;
}

.order-board-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 190px;
}

.order-board-stats span,
.order-board-ribbon span,
.order-board-ribbon strong {
  border: 1px solid rgba(96, 62, 35, 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 248, 213, 0.78);
  color: #7b5a2d;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.order-board-stats span.ready {
  border-color: rgba(93, 143, 82, 0.26);
  background: rgba(226, 242, 201, 0.88);
  color: #3f7040;
}

.order-board-ribbon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(96, 62, 35, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  background:
    linear-gradient(90deg, rgba(107, 72, 39, 0.08), rgba(255, 248, 213, 0.54)),
    rgba(255, 252, 235, 0.64);
}

.order-board-ribbon strong {
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-board-ribbon button {
  min-height: 32px;
  border: 1px solid rgba(93, 143, 82, 0.32);
  border-radius: 9px;
  padding: 5px 11px;
  background: rgba(93, 143, 82, 0.14);
  color: #3f7040;
  cursor: pointer;
  font-weight: 950;
  white-space: nowrap;
}

.order-board-ribbon button:hover:not(:disabled) {
  border-color: rgba(93, 143, 82, 0.55);
  background: rgba(93, 143, 82, 0.23);
}

.order-board-ribbon button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cottage-order-panel .order-board-summary {
  border-color: rgba(96, 62, 35, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 246, 0.82), rgba(246, 236, 204, 0.7)),
    repeating-linear-gradient(90deg, rgba(96, 62, 35, 0.035) 0 1px, transparent 1px 16px);
}

.cottage-order-panel .order-board-summary[data-tone="ready"] {
  border-color: rgba(93, 143, 82, 0.38);
  background: linear-gradient(135deg, rgba(235, 248, 215, 0.9), rgba(255, 249, 220, 0.76));
}

.cottage-order-panel .order-board-summary[data-tone="missing"] {
  border-color: rgba(226, 174, 62, 0.4);
  background: linear-gradient(135deg, rgba(255, 246, 213, 0.92), rgba(250, 230, 178, 0.74));
}

.cottage-order-panel .order-filter-tabs {
  border-radius: 10px;
  padding: 4px;
  background: rgba(107, 72, 39, 0.08);
}

.cottage-order-panel .order-filter-tabs button {
  border-radius: 8px;
  background: rgba(255, 252, 235, 0.72);
}

.cottage-order-panel .order-filter-tabs button.active {
  border-color: rgba(226, 174, 62, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 248, 213, 0.96), rgba(243, 218, 157, 0.88));
  box-shadow: inset 0 -2px 0 rgba(139, 96, 55, 0.12);
}

.cottage-order-panel .order-list {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  grid-auto-rows: 320px;
}

.cottage-order-panel .order-paper {
  position: relative;
  isolation: isolate;
  height: 320px;
  border-color: rgba(107, 72, 39, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 252, 235, 0.96), rgba(245, 233, 197, 0.92)),
    repeating-linear-gradient(0deg, rgba(107, 72, 39, 0.04) 0 1px, transparent 1px 18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 10px 18px rgba(87, 62, 35, 0.1);
}

.cottage-order-panel .order-paper::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 0;
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: rgba(139, 96, 55, 0.22);
  transform: translateX(-50%);
}

.cottage-order-panel .order-paper > * {
  position: relative;
  z-index: 1;
}

.cottage-order-panel .order-paper.ready {
  border-color: rgba(93, 143, 82, 0.48);
  background:
    linear-gradient(180deg, rgba(246, 255, 226, 0.96), rgba(236, 244, 205, 0.9)),
    repeating-linear-gradient(0deg, rgba(74, 116, 68, 0.04) 0 1px, transparent 1px 18px);
}

.cottage-order-panel .order-paper.focused {
  border-color: rgba(226, 174, 62, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 4px 0 0 #e2ae3e,
    0 14px 24px rgba(123, 90, 45, 0.16);
}

.cottage-order-panel .order-paper.locked {
  background:
    linear-gradient(180deg, rgba(246, 242, 223, 0.9), rgba(230, 224, 203, 0.82)),
    repeating-linear-gradient(0deg, rgba(107, 72, 39, 0.035) 0 1px, transparent 1px 18px);
}

.cottage-order-panel .order-paper-pin {
  border-color: rgba(96, 62, 35, 0.22);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 238, 166, 0.96), transparent 34%),
    linear-gradient(180deg, #9f7041, #614022);
  color: #fff7dc;
  text-shadow: 0 1px 0 rgba(65, 42, 23, 0.36);
}

.cottage-order-panel .item-main {
  display: grid;
  gap: 4px;
}

.cottage-order-panel .item-main strong {
  color: #314d34;
  font-size: 15px;
}

.cottage-order-panel .order-row-kicker {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cottage-order-panel .order-meta {
  gap: 4px;
}

.order-stamp {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  border: 1px solid rgba(123, 90, 45, 0.22);
  border-radius: 5px;
  padding: 2px 5px;
  color: rgba(123, 90, 45, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.cottage-order-panel .order-paper.ready .order-stamp {
  border-color: rgba(63, 112, 64, 0.28);
  color: #3f7040;
}

.cottage-order-panel .order-progress {
  height: 7px;
  border: 1px solid rgba(96, 62, 35, 0.12);
  background: rgba(107, 72, 39, 0.1);
}

.cottage-order-panel .order-advice {
  border-radius: 9px;
  padding: 8px 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 246, 0.78), rgba(244, 236, 207, 0.62));
}

.cottage-order-panel .recipe-costs {
  max-height: 74px;
}

.cottage-order-panel .recipe-cost-chip {
  border-color: rgba(96, 62, 35, 0.16);
  background: rgba(255, 252, 235, 0.72);
}

.cottage-order-panel .recipe-cost-chip.missing {
  border-color: rgba(185, 96, 74, 0.28);
  background: rgba(255, 232, 210, 0.78);
}

.cottage-order-panel .reward-use-tags span {
  border: 1px solid rgba(93, 143, 82, 0.14);
  background: rgba(226, 242, 201, 0.68);
}

.cottage-order-panel .order-row > button {
  min-height: 34px;
  border-radius: 9px;
  border-color: rgba(93, 143, 82, 0.3);
  background:
    linear-gradient(180deg, rgba(235, 248, 215, 0.84), rgba(203, 229, 169, 0.72));
  color: #3f7040;
}

.cottage-order-panel .order-row > button.secondary {
  border-color: rgba(226, 174, 62, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 246, 213, 0.9), rgba(245, 219, 158, 0.72));
  color: #7b5a2d;
}

.event-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(96, 120, 87, 0.18);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.62);
}

.event-card.available {
  border-color: rgba(226, 174, 62, 0.5);
  background: rgba(255, 247, 202, 0.78);
  box-shadow: inset 3px 0 0 #e6b047;
}

.event-card.completed {
  background: rgba(229, 242, 213, 0.7);
}

.event-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.event-card-title strong {
  min-width: 0;
  color: #324f37;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.event-card-title span {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.event-card p {
  min-width: 0;
  margin: 0;
  color: #64745c;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-result {
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(73, 109, 74, 0.1);
}

.event-options {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-options button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.6);
  color: #314a38;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.event-options button:hover:not(:disabled) {
  border-color: rgba(73, 109, 74, 0.5);
  background: rgba(255, 255, 255, 0.82);
}

.event-options button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.event-options strong {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.event-options small,
.event-options em {
  min-width: 0;
  color: #6c7b63;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.event-options em {
  color: #7b5a2d;
  font-weight: 800;
}

.order-status {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.npc-panel {
  width: clamp(760px, 72vw, 980px);
  height: min(720px, calc(100vh - 56px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 56px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgba(255, 252, 238, 0.9);
}

.npc-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.npc-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: linear-gradient(145deg, #6fa57a, #d89b4b);
  color: white;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(45, 75, 56, 0.2);
}

.npc-card-head span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.npc-card-head strong {
  color: #324f37;
  font-size: 18px;
}

.npc-card-head small {
  color: #728068;
  font-size: 12px;
  font-weight: 800;
}

.npc-card-head b {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  white-space: nowrap;
}

.npc-dialog-body {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.npc-relationship {
  display: grid;
  align-content: start;
  align-self: stretch;
  gap: 7px;
  border: 1px solid rgba(93, 121, 88, 0.16);
  border-radius: 8px;
  padding: 10px;
  max-height: 100%;
  overflow: auto;
  background: rgba(247, 252, 235, 0.72);
}

.npc-relationship-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.npc-relationship-top strong {
  color: #324f37;
  font-size: 14px;
}

.npc-relationship-top span,
.npc-relationship small,
.npc-relationship p {
  margin: 0;
  color: #64735d;
  font-size: 12px;
  line-height: 1.45;
}

.npc-relationship em {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(216, 155, 75, 0.14);
  color: #93622c;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.npc-favor-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(72, 93, 68, 0.12);
}

.npc-favor-bar i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fa57a, #d89b4b);
  transition: width 0.25s ease;
}

.npc-gift-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(82, 137, 91, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(232, 246, 223, 0.7);
}

.npc-gift-card span {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(73, 109, 74, 0.13);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.npc-gift-card strong {
  color: #324f37;
}

.npc-gift-card p {
  margin: 0;
  color: #61715d;
  font-size: 12px;
  line-height: 1.5;
}

.npc-dialog-text {
  margin: 0;
  border: 1px solid rgba(96, 120, 87, 0.16);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #42543e;
  line-height: 1.55;
}

.npc-tab-area {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.npc-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.npc-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(76, 111, 72, 0.18);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #557152;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.npc-tabs button.active {
  border-color: rgba(73, 109, 74, 0.42);
  background: rgba(224, 241, 210, 0.9);
  color: #2f5634;
}

.npc-tabs b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(73, 109, 74, 0.12);
  font-size: 11px;
}

.npc-tab-page {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
}

.npc-lesson-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(85, 119, 157, 0.18);
  border-radius: 8px;
  padding: 11px;
  background: rgba(237, 246, 255, 0.72);
}

.npc-lesson-card.completed {
  border-color: rgba(109, 168, 112, 0.36);
  background: rgba(234, 248, 226, 0.76);
}

.npc-lesson-head {
  display: grid;
  gap: 4px;
}

.npc-lesson-head span {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(70, 112, 156, 0.12);
  color: #466985;
  font-size: 12px;
  font-weight: 900;
}

.npc-lesson-card.completed .npc-lesson-head span {
  background: rgba(73, 109, 74, 0.13);
  color: #496d4a;
}

.npc-lesson-head strong {
  color: #304e5e;
  font-size: 14px;
}

.npc-lesson-head small,
.npc-lesson-card > small,
.npc-lesson-card p {
  margin: 0;
  color: #5f6f77;
  font-size: 12px;
  line-height: 1.5;
}

.npc-lesson-card p {
  color: #354f5d;
  font-weight: 900;
}

.npc-question-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.npc-question-options button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(70, 112, 156, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.76);
  color: #34566e;
  cursor: pointer;
  text-align: left;
}

.npc-question-options button:hover:not(:disabled),
.npc-question-options button.selected {
  border-color: rgba(70, 112, 156, 0.48);
  background: rgba(220, 239, 255, 0.9);
}

.npc-question-options button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.npc-question-options button strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-question-options button i,
.npc-practice-options button i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(70, 112, 156, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  color: #34566e;
  cursor: pointer;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.npc-question-options button i:hover,
.npc-question-options button i:focus-visible,
.npc-practice-options button i:hover,
.npc-practice-options button i:focus-visible {
  border-color: rgba(70, 112, 156, 0.5);
  background: rgba(220, 239, 255, 0.92);
  outline: none;
}

.npc-voice-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(70, 112, 156, 0.16);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.58);
}

.npc-voice-answer button {
  min-height: 30px;
  border: 1px solid rgba(70, 112, 156, 0.24);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(220, 239, 255, 0.82);
  color: #34566e;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.npc-voice-answer button:hover:not(:disabled) {
  border-color: rgba(70, 112, 156, 0.48);
  background: rgba(201, 230, 255, 0.94);
}

.npc-voice-answer button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.npc-voice-answer small {
  min-width: 0;
  overflow: hidden;
  color: #5f6f77;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-voice-transcript {
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(237, 246, 255, 0.82);
  color: #2f526a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.npc-voice-answer.compact {
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  padding: 5px 7px;
}

.npc-voice-answer.compact button {
  width: 68px;
  min-height: 30px;
  padding-inline: 6px;
}

.npc-voice-answer.compact small {
  min-height: 30px;
  white-space: normal;
  line-height: 1.35;
}

.npc-voice-answer.compact .npc-voice-transcript {
  max-height: 46px;
  overflow: auto;
}

.npc-voice-answer.context-only {
  grid-template-columns: minmax(0, 1fr);
}

.npc-voice-answer.context-only small {
  white-space: normal;
  line-height: 1.4;
}

.npc-voice-answer.compact.context-only {
  grid-template-columns: minmax(0, 1fr);
}

.npc-practice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(85, 119, 157, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
}

.npc-practice-toolbar span {
  color: #466985;
  font-size: 12px;
  font-weight: 900;
}

.npc-practice-toolbar div {
  display: flex;
  gap: 6px;
}

.npc-practice-toolbar button {
  min-height: 28px;
  border: 1px solid rgba(70, 112, 156, 0.2);
  border-radius: 8px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.7);
  color: #34566e;
  cursor: pointer;
  font-weight: 900;
}

.npc-practice-toolbar button.active {
  border-color: rgba(70, 112, 156, 0.46);
  background: rgba(220, 239, 255, 0.9);
}

.npc-practice-empty {
  border: 1px dashed rgba(85, 119, 157, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(237, 246, 255, 0.52);
  color: #5f6f77;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.npc-practice-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 318px;
  gap: 10px;
  align-content: start;
}

.npc-practice-card {
  display: grid;
  grid-template-rows: auto minmax(48px, auto) 6px auto minmax(0, 1fr) auto;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(85, 119, 157, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(237, 246, 255, 0.72);
  cursor: pointer;
}

.npc-practice-card.completed {
  border-color: rgba(109, 168, 112, 0.38);
  background: rgba(234, 248, 226, 0.78);
}

.npc-practice-card.focused {
  border-color: rgba(226, 174, 62, 0.62);
  background: rgba(255, 248, 213, 0.82);
  box-shadow: inset 3px 0 0 #e2ae3e;
}

.npc-practice-card:focus-visible {
  outline: 2px solid rgba(226, 174, 62, 0.72);
  outline-offset: 2px;
}

.npc-practice-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.npc-practice-card-head span {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(70, 112, 156, 0.12);
  color: #466985;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.npc-practice-card.completed .npc-practice-card-head span {
  background: rgba(73, 109, 74, 0.13);
  color: #496d4a;
}

.npc-practice-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: #304e5e;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-practice-card p {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #354f5d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.npc-practice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.npc-practice-mastery {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(70, 112, 156, 0.12);
}

.npc-practice-mastery span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fa57a, #d89b4b);
}

.npc-practice-options button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(70, 112, 156, 0.2);
  border-radius: 8px;
  padding: 7px 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  color: #34566e;
  cursor: pointer;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-practice-options button:hover:not(:disabled),
.npc-practice-options button.selected {
  border-color: rgba(70, 112, 156, 0.48);
  background: rgba(220, 239, 255, 0.9);
}

.npc-practice-options button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.npc-practice-card > small {
  overflow: hidden;
  color: #5f6f77;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-gift-options {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(109, 168, 112, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(238, 249, 228, 0.64);
}

.npc-gift-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.npc-gift-title strong {
  color: #324f37;
  font-size: 14px;
}

.npc-gift-title span {
  color: #6b795f;
  font-size: 12px;
  font-weight: 900;
}

.npc-gift-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border: 1px solid rgba(76, 111, 72, 0.18);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.68);
  color: #3f633e;
  cursor: pointer;
  text-align: left;
}

.npc-gift-options button:hover:not(:disabled) {
  border-color: rgba(73, 109, 74, 0.44);
  background: rgba(225, 243, 213, 0.86);
}

.npc-gift-options button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.npc-gift-options button span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.npc-gift-options button strong,
.npc-gift-options button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-gift-options button strong {
  font-size: 13px;
}

.npc-gift-options button small {
  color: #6b795f;
  font-size: 11px;
  font-weight: 800;
}

.npc-recommend-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(123, 90, 45, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 245, 205, 0.58);
}

.npc-recommend-card.ready {
  border-color: rgba(109, 168, 112, 0.44);
  background: rgba(229, 242, 213, 0.72);
}

.npc-recommend-card span {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.npc-recommend-card strong {
  color: #324f37;
}

.npc-recommend-card small,
.npc-recommend-card p {
  margin: 0;
  color: #66725d;
  font-size: 12px;
  line-height: 1.5;
}

.npc-recommend-card button {
  justify-self: end;
  min-height: 32px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 5px 12px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.npc-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.npc-dialog-actions button {
  min-height: 32px;
  border: 1px solid rgba(76, 111, 72, 0.22);
  border-radius: 8px;
  padding: 5px 12px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font-weight: 900;
}

.npc-dialog-actions button.ghost {
  background: rgba(123, 90, 45, 0.1);
  color: #7b5a2d;
}

.npc-dialog-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.friends-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 86;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, calc(100vw - 36px));
  height: min(660px, calc(100vh - 52px));
  overflow: hidden;
  border: 1px solid rgba(72, 109, 75, 0.28);
  border-radius: 12px;
  background: rgba(252, 249, 235, 0.96);
  box-shadow: 0 28px 90px rgba(41, 58, 39, 0.3);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.friends-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(88, 120, 75, 0.16);
  padding: 14px 16px;
  background: rgba(239, 247, 224, 0.84);
}

.friends-panel-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.friends-panel-head strong {
  color: #304b36;
  font-size: 19px;
}

.friends-panel-head small {
  overflow: hidden;
  color: #68745f;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friends-panel button {
  border: 1px solid rgba(72, 109, 75, 0.24);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #35583a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.friends-panel button:hover:not(:disabled) {
  border-color: rgba(72, 109, 75, 0.48);
  background: rgba(229, 244, 215, 0.92);
}

.friends-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.friends-panel-body {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(420px, 1.2fr);
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.friends-side,
.friends-main {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
}

.friends-main {
  grid-template-rows: minmax(0, 1fr) auto;
}

.friends-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  border: 1px solid rgba(88, 120, 75, 0.16);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.friends-list-card {
  overflow: hidden;
}

.friends-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.friends-section-title strong {
  color: #304b36;
  font-size: 15px;
}

.friends-section-title span {
  color: #6a7761;
  font-size: 12px;
  font-weight: 900;
}

.friends-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.friends-search input {
  min-width: 0;
  border: 1px solid rgba(72, 109, 75, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.84);
  color: #304b36;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.friends-search-list,
.friend-request-list,
.friends-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.friends-search-list {
  max-height: 150px;
}

.friend-request-list {
  max-height: 190px;
}

.friends-list {
  align-content: start;
}

.friends-search-list article,
.friend-request-list article,
.friend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(72, 109, 75, 0.14);
  border-radius: 9px;
  padding: 9px;
  background: rgba(246, 251, 239, 0.72);
}

.friend-row.sharing {
  border-color: rgba(59, 157, 151, 0.3);
  background: rgba(226, 249, 244, 0.72);
}

.friends-search-list span,
.friend-request-list span,
.friend-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.friends-search-list strong,
.friend-request-list strong,
.friend-row strong {
  overflow: hidden;
  color: #304b36;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friends-search-list small,
.friend-request-list small,
.friend-row small,
.friend-row em {
  overflow: hidden;
  color: #68745f;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #35583a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.friend-request-list article > div {
  display: flex;
  gap: 6px;
}

.friends-search-list p,
.friend-request-list p,
.friends-list p {
  margin: 0;
  border: 1px dashed rgba(72, 109, 75, 0.2);
  border-radius: 9px;
  padding: 12px;
  color: #778267;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.recipe-lines {
  grid-column: 2 / 3;
  display: grid;
  gap: 6px;
  color: #69765f;
}

.recipe-result {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-lines .unlock-hint {
  color: #9a6a2f;
  font-weight: 900;
  white-space: normal;
}

.recipe-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.recipe-cost-chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 1px;
  max-width: 100%;
  border: 1px solid rgba(73, 109, 74, 0.24);
  border-radius: 8px;
  padding: 4px 7px;
  background: rgba(233, 244, 222, 0.72);
  color: #3f633e;
  cursor: pointer;
}

.recipe-cost-chip:hover,
.recipe-cost-chip:focus-visible {
  border-color: rgba(73, 109, 74, 0.48);
  background: rgba(223, 241, 209, 0.9);
  outline: none;
}

.recipe-cost-chip.missing {
  border-color: rgba(176, 99, 70, 0.34);
  background: rgba(255, 234, 220, 0.86);
  color: #8a4d31;
}

.recipe-cost-chip strong,
.recipe-cost-chip b,
.recipe-cost-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-cost-chip strong {
  font-size: 12px;
}

.recipe-cost-chip b {
  font-size: 12px;
  font-weight: 900;
}

.recipe-cost-chip em {
  grid-column: 1 / 3;
  color: #708066;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.recipe-cost-chip.missing em {
  color: #a45f3d;
}

.queue-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(96, 120, 87, 0.16);
  padding-top: 10px;
}

.queue-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.queue-title strong {
  color: #324f37;
}

.queue-title-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.queue-list {
  display: grid;
  gap: 8px;
}

.queue-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(96, 120, 87, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.queue-row.ready {
  border-color: rgba(109, 168, 112, 0.56);
  background: rgba(229, 242, 213, 0.78);
}

.queue-meta {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.queue-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.queue-actions button.ghost {
  background: rgba(123, 90, 45, 0.1);
  color: #7b5a2d;
}

.queue-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(73, 109, 74, 0.14);
}

.queue-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6da870, #f0c96a);
  transition: width 0.24s ease;
}

.queue-row.ready .queue-progress i {
  background: linear-gradient(90deg, #f0c96a, #fff0a8);
}

.workbench-panel {
  width: min(620px, calc(100vw - 32px));
  isolation: isolate;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(102, 70, 39, 0.28);
  background:
    radial-gradient(circle at 14% 0%, rgba(245, 199, 108, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 231, 0.95), rgba(238, 224, 190, 0.92)),
    repeating-linear-gradient(90deg, rgba(112, 75, 38, 0.05) 0 1px, transparent 1px 18px);
  color: #304331;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 20px 52px rgba(45, 39, 27, 0.24);
}

.workbench-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(112, 75, 38, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.workbench-panel > * {
  position: relative;
  z-index: 1;
}

.workbench-dialog-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(106, 78, 42, 0.18);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 246, 0.78), rgba(242, 233, 204, 0.7)),
    repeating-linear-gradient(0deg, rgba(111, 75, 42, 0.05) 0 1px, transparent 1px 14px);
}

.workbench-dialog-icon {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(102, 70, 39, 0.28);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(245, 202, 122, 0.78), rgba(134, 88, 48, 0.84)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.workbench-dialog-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 13px;
  width: 31px;
  height: 10px;
  border: 1px solid rgba(93, 58, 29, 0.34);
  border-radius: 4px;
  background: linear-gradient(180deg, #c88c54, #8c5a31);
  box-shadow: inset 0 1px 0 rgba(255, 239, 184, 0.42);
  transform: rotate(-18deg);
}

.workbench-dialog-icon::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 14px;
  width: 7px;
  height: 31px;
  border-radius: 999px;
  background: linear-gradient(180deg, #69513f, #a87845);
  transform: rotate(39deg);
}

.workbench-dialog-icon span {
  position: absolute;
  left: 10px;
  top: 14px;
  width: 21px;
  height: 13px;
  border: 1px solid rgba(77, 65, 58, 0.28);
  border-radius: 5px 5px 4px 4px;
  background: linear-gradient(180deg, #6f7b78, #465352);
  transform: rotate(39deg);
}

.workbench-dialog-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workbench-dialog-copy small,
.workbench-recipe-kicker {
  color: #8c6b3b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-dialog-copy strong {
  color: #31412f;
  font-size: 20px;
  line-height: 1.05;
}

.workbench-dialog-copy p {
  margin: 0;
  color: #6c684f;
  font-size: 12px;
  line-height: 1.45;
}

.workbench-dialog-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 172px;
}

.workbench-dialog-stats span,
.workbench-recipe-status {
  border: 1px solid rgba(130, 94, 50, 0.15);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 248, 213, 0.8);
  color: #7b5a2d;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.workbench-note-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px dashed rgba(116, 93, 58, 0.28);
  border-radius: 9px;
  padding: 8px 10px;
  background: rgba(255, 249, 224, 0.62);
}

.workbench-note-strip span {
  color: #7b694e;
  font-size: 12px;
  font-weight: 850;
}

.workbench-note-strip strong {
  color: #496d4a;
  font-size: 12px;
}

.workbench-empty-state {
  border-color: rgba(106, 78, 42, 0.14);
  background: rgba(255, 252, 235, 0.66);
}

.workbench-recipe-list {
  gap: 10px;
}

.workbench-recipe-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "mark main status"
    "mark details action"
    "mark meta action";
  gap: 8px 10px;
  align-items: start;
  border-color: rgba(106, 78, 42, 0.15);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 247, 0.72), rgba(247, 236, 210, 0.52)),
    linear-gradient(90deg, rgba(122, 82, 40, 0.04), transparent 38%);
}

.workbench-recipe-row.ready {
  border-color: rgba(88, 135, 82, 0.36);
  background:
    linear-gradient(180deg, rgba(250, 255, 236, 0.82), rgba(226, 241, 205, 0.58)),
    linear-gradient(90deg, rgba(104, 152, 83, 0.08), transparent 44%);
}

.workbench-recipe-row.blocked {
  border-color: rgba(176, 99, 70, 0.22);
}

.workbench-recipe-row.full {
  opacity: 0.78;
}

.workbench-recipe-row.focused {
  border-color: rgba(226, 174, 62, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 250, 220, 0.94), rgba(246, 225, 163, 0.7)),
    linear-gradient(90deg, rgba(226, 174, 62, 0.14), transparent 48%);
  box-shadow: inset 3px 0 0 #e2ae3e, 0 10px 22px rgba(123, 90, 45, 0.1);
}

.workbench-recipe-row .workbench-item-mark {
  grid-area: mark;
  align-self: start;
  border-color: rgba(116, 82, 45, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 236, 168, 0.92), rgba(170, 105, 54, 0.82));
  color: #fff7d4;
  text-shadow: 0 1px 0 rgba(73, 44, 21, 0.34);
}

.workbench-recipe-main {
  grid-area: main;
  display: grid;
  gap: 3px;
}

.workbench-recipe-main strong {
  color: #314832;
  font-size: 15px;
}

.workbench-recipe-main small {
  color: #6b735a;
  line-height: 1.45;
}

.workbench-recipe-status {
  grid-area: status;
  justify-self: end;
}

.workbench-recipe-row.ready .workbench-recipe-status {
  border-color: rgba(91, 151, 87, 0.32);
  background: rgba(232, 245, 216, 0.86);
  color: #426b3d;
}

.workbench-recipe-row.blocked .workbench-recipe-status {
  border-color: rgba(176, 99, 70, 0.28);
  background: rgba(255, 235, 221, 0.86);
  color: #8a4d31;
}

.workbench-craft-meta {
  grid-area: meta;
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(123, 90, 45, 0.1);
  color: #7b5a2d;
  font-size: 12px;
  font-weight: 950;
}

.workbench-recipe-lines {
  grid-area: details;
  grid-column: auto;
}

.workbench-recipe-result {
  color: #536d45;
  font-weight: 900;
}

.workbench-craft-button {
  grid-area: action;
  grid-column: auto;
  grid-row: auto;
  align-self: end;
  justify-self: end;
  min-width: 92px;
  border-color: rgba(72, 105, 65, 0.3);
  background: linear-gradient(180deg, rgba(247, 255, 232, 0.94), rgba(213, 236, 184, 0.8));
  color: #385d36;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.workbench-craft-button:hover:not(:disabled) {
  border-color: rgba(72, 105, 65, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 240, 0.96), rgba(197, 229, 159, 0.84));
}

.workbench-queue-section {
  border-top-color: rgba(106, 78, 42, 0.18);
}

.workbench-queue-section .queue-title > span:first-child {
  display: grid;
  gap: 2px;
}

.workbench-queue-section .queue-title small {
  color: #7b694e;
  font-size: 12px;
  font-weight: 850;
}

.workbench-queue-row {
  border-color: rgba(106, 78, 42, 0.15);
  border-radius: 10px;
  background: rgba(255, 254, 244, 0.62);
}

.workbench-queue-row.ready {
  border-color: rgba(226, 174, 62, 0.58);
  background: rgba(255, 248, 213, 0.78);
  box-shadow: inset 3px 0 0 #e2ae3e;
}

.workbench-queue-row .workbench-item-mark {
  border-color: rgba(116, 82, 45, 0.2);
  background: linear-gradient(180deg, rgba(226, 174, 92, 0.9), rgba(145, 93, 48, 0.82));
  color: #fff7d4;
}

.farm-panel {
  width: min(560px, calc(100vw - 32px));
  isolation: isolate;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(116, 80, 43, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 250, 228, 0.94), rgba(244, 232, 198, 0.91)),
    radial-gradient(circle at 18% 0%, rgba(247, 205, 118, 0.18), transparent 34%);
  color: #314832;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.46),
    0 20px 52px rgba(45, 44, 28, 0.22);
}

.farm-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(139, 96, 55, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.farm-panel > * {
  position: relative;
  z-index: 1;
}

.farm-dialog-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(106, 78, 42, 0.16);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 246, 0.78), rgba(244, 236, 207, 0.66)),
    repeating-linear-gradient(90deg, rgba(115, 78, 42, 0.05) 0 1px, transparent 1px 16px);
}

.farm-dialog-icon {
  position: relative;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(108, 77, 41, 0.26);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(129, 179, 103, 0.72) 0 44%, rgba(126, 82, 45, 0.82) 44% 100%),
    linear-gradient(135deg, rgba(255, 234, 151, 0.75), rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.farm-dialog-icon::before,
.farm-dialog-icon::after,
.farm-dialog-icon span::before {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 11px;
  height: 18px;
  border-radius: 70% 4px 70% 4px;
  background: #dcefa5;
  box-shadow: 0 0 0 1px rgba(51, 92, 50, 0.12);
  transform-origin: bottom center;
}

.farm-dialog-icon::before {
  left: 17px;
  transform: rotate(-34deg);
}

.farm-dialog-icon::after {
  right: 17px;
  transform: rotate(34deg);
}

.farm-dialog-icon span::before {
  left: 21px;
  bottom: 12px;
  height: 23px;
  background: #e9f6bd;
  transform: rotate(0deg);
}

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

.farm-dialog-copy small,
.farm-card-heading span,
.plot-head small {
  color: #8c6b3b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.farm-dialog-copy strong {
  color: #29442f;
  font-size: 20px;
  line-height: 1.05;
}

.farm-dialog-copy p {
  margin: 0;
  color: #66704f;
  font-size: 12px;
  line-height: 1.45;
}

.farm-dialog-stats,
.farm-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.farm-dialog-stats span,
.farm-card-badges span {
  border: 1px solid rgba(130, 94, 50, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 248, 213, 0.78);
  color: #7b5a2d;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.farm-weather-note {
  border: 1px dashed rgba(116, 150, 82, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(242, 250, 222, 0.64);
  color: #5c6d45;
}

.farm-empty-state {
  background: rgba(255, 252, 235, 0.66);
}

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

.farm-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(106, 78, 42, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 254, 244, 0.58);
}

.farm-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
}

.farm-card-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.farm-card-heading strong {
  overflow: hidden;
  color: #324f37;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-card-heading small {
  color: #6f765d;
  font-size: 12px;
  line-height: 1.45;
}

.farm-card-actions {
  display: inline-flex;
  gap: 6px;
}

.farm-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: stretch;
  border: 1px solid rgba(118, 143, 83, 0.18);
  border-radius: 9px;
  padding: 8px;
  background: rgba(237, 247, 218, 0.52);
}

.farm-batch-actions > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 3px;
  color: #607348;
  font-size: 12px;
  font-weight: 950;
}

.farm-card-title button,
.farm-batch-actions button,
.plot-card button {
  min-height: 34px;
  border: 1px solid rgba(72, 105, 65, 0.24);
  border-radius: 8px;
  padding: 5px 11px;
  background: linear-gradient(180deg, rgba(247, 255, 232, 0.92), rgba(213, 236, 184, 0.78));
  color: #385d36;
  cursor: pointer;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.farm-batch-actions button,
.crop-actions button {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
}

.farm-card-title button:hover:not(:disabled),
.farm-batch-actions button:hover:not(:disabled),
.plot-card button:hover:not(:disabled) {
  border-color: rgba(72, 105, 65, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 239, 0.95), rgba(197, 229, 159, 0.82));
}

.farm-batch-actions button.focused,
.crop-actions button.focused {
  border-color: rgba(215, 157, 70, 0.72);
  background: linear-gradient(180deg, rgba(255, 249, 211, 0.96), rgba(246, 223, 150, 0.82));
  color: #7b5a2d;
}

.farm-batch-actions button small,
.crop-actions button small {
  color: rgba(78, 91, 56, 0.76);
  font-size: 11px;
  font-weight: 850;
}

.farm-batch-actions button em,
.crop-actions button em {
  justify-self: start;
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.54);
  color: #8a5d20;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.plot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.plot-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(97, 77, 46, 0.22);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 247, 218, 0.72), rgba(215, 177, 118, 0.22)),
    linear-gradient(135deg, rgba(154, 104, 57, 0.2), rgba(255, 255, 255, 0.48));
}

.plot-card > :not(.plot-soil) {
  position: relative;
  z-index: 1;
}

.plot-soil {
  position: absolute;
  inset: auto 9px 9px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(101, 65, 35, 0.14);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(104, 65, 34, 0.26) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, rgba(160, 105, 61, 0.54), rgba(116, 77, 43, 0.48));
  opacity: 0.62;
}

.plot-soil span {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 238, 182, 0.22);
}

.plot-soil span:nth-child(1) {
  left: 26%;
}

.plot-soil span:nth-child(2) {
  left: 50%;
}

.plot-soil span:nth-child(3) {
  left: 74%;
}

.plot-card.planted::before,
.plot-card.ready::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 27px;
  z-index: 1;
  width: 18px;
  height: 26px;
  border-radius: 70% 6px 70% 6px;
  background: #79af64;
  box-shadow:
    -14px 6px 0 -3px #9ac873,
    12px 4px 0 -4px #629c59;
  transform: rotate(-18deg);
}

.plot-card.ready {
  border-color: rgba(113, 163, 83, 0.56);
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 205, 98, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(246, 255, 226, 0.86), rgba(231, 244, 203, 0.74));
}

.plot-card.ready::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0c96a;
  box-shadow: 0 0 0 5px rgba(240, 201, 106, 0.18);
}

.plot-card.focused {
  border-color: rgba(215, 157, 70, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 241, 180, 0.72), 0 8px 18px rgba(123, 90, 45, 0.1);
}

.plot-card.empty {
  background:
    linear-gradient(180deg, rgba(255, 248, 229, 0.78), rgba(230, 202, 155, 0.3)),
    linear-gradient(135deg, rgba(154, 104, 57, 0.2), rgba(255, 255, 255, 0.48));
}

.plot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.plot-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.plot-head strong {
  overflow: hidden;
  color: #324f37;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plot-head > span,
.plot-focus-label {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(73, 109, 74, 0.13);
  color: #496d4a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.plot-card.ready .plot-head > span {
  background: rgba(240, 201, 106, 0.3);
  color: #75521d;
}

.plot-focus-label {
  justify-self: start;
  background: rgba(226, 174, 62, 0.22);
  color: #8a5d20;
}

.plot-meta {
  min-height: 32px;
  color: #728068;
  font-size: 12px;
  line-height: 1.4;
}

.crop-actions {
  display: grid;
  gap: 6px;
}

.crop-actions button {
  width: 100%;
}

.farm-batch-actions button:disabled,
.plot-card button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}
/* Sleep overlay and independent game dialog styles. */

.sleep-dream-overlay {
  position: absolute;
  inset: 0;
  z-index: 68;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 28, 55, 0.82), rgba(25, 56, 64, 0.64)),
    radial-gradient(circle at 50% 18%, rgba(255, 244, 194, 0.34), transparent 34%);
  color: #fff8dc;
  pointer-events: auto;
}

.sleep-dream-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8%;
  height: 34%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(69, 112, 86, 0.72), transparent 62%),
    linear-gradient(180deg, transparent, rgba(10, 31, 29, 0.92));
}

.sleep-dream-sky {
  position: absolute;
  inset: 0;
}

.sleep-moon {
  position: absolute;
  right: 18%;
  top: 13%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff4bd;
  box-shadow: 0 0 40px rgba(255, 237, 169, 0.64);
}

.sleep-star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 250, 207, 0.92);
  box-shadow: 0 0 18px rgba(255, 245, 186, 0.78);
  animation: sleep-twinkle 2.6s ease-in-out infinite;
}

.sleep-star.star-a {
  left: 22%;
  top: 20%;
}

.sleep-star.star-b {
  left: 44%;
  top: 12%;
  animation-delay: 0.8s;
}

.sleep-star.star-c {
  right: 32%;
  top: 31%;
  animation-delay: 1.4s;
}

.sleep-cottage-light {
  position: absolute;
  left: 50%;
  bottom: 21%;
  width: 160px;
  height: 86px;
  transform: translateX(-50%);
  background:
    linear-gradient(135deg, transparent 0 24%, #7c5136 25% 48%, transparent 49%),
    linear-gradient(180deg, #d19a5d 0 100%);
  clip-path: polygon(50% 0, 100% 42%, 88% 42%, 88% 100%, 12% 100%, 12% 42%, 0 42%);
  box-shadow: 0 14px 42px rgba(255, 202, 104, 0.22);
}

.sleep-cottage-light::after {
  content: "";
  position: absolute;
  left: 64px;
  top: 50px;
  width: 32px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 223, 130, 0.9);
  box-shadow: 0 0 26px rgba(255, 211, 111, 0.76);
}

.sleep-dream-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(520px, calc(100vw - 42px));
  padding: 28px;
  border: 1px solid rgba(255, 246, 202, 0.28);
  border-radius: 8px;
  background: rgba(17, 30, 44, 0.48);
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.sleep-dream-copy strong {
  font-size: 30px;
  letter-spacing: 0;
}

.sleep-dream-copy span {
  color: rgba(255, 248, 220, 0.82);
  line-height: 1.7;
}

.sleep-dream-copy em {
  justify-self: center;
  min-width: 82px;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 244, 194, 0.16);
  color: #fff1b0;
  font-style: normal;
  font-weight: 900;
}

@keyframes sleep-twinkle {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.nback-dialog {
  position: absolute;
  z-index: 86;
  left: 50%;
  top: 52%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(820px, calc(100vw - 44px));
  height: min(720px, calc(100vh - 88px));
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  background: rgba(250, 250, 241, 0.97);
  box-shadow: 0 28px 80px rgba(23, 38, 26, 0.36);
  color: #253526;
}

.nback-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(37, 53, 38, 0.12);
}

.nback-head > div:first-child {
  display: grid;
  gap: 4px;
}

.nback-head strong {
  font-size: 17px;
}

.nback-head small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.nback-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nback-head button,
.nback-help-card button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(73, 109, 74, 0.22);
  border-radius: 8px;
  background: rgba(73, 109, 74, 0.1);
  color: #3f633e;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.nback-help-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 38, 26, 0.34);
  backdrop-filter: blur(3px);
}

.nback-help-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, 100%);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px;
  background: rgba(255, 252, 238, 0.98);
  box-shadow: 0 24px 70px rgba(23, 38, 26, 0.28);
}

.nback-help-card header,
.nback-help-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(37, 53, 38, 0.12);
}

.nback-help-card header > div {
  display: grid;
  gap: 4px;
}

.nback-help-card header strong {
  color: #253526;
  font-size: 17px;
}

.nback-help-card header small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.nback-help-content {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.nback-help-content section {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(73, 109, 74, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.nback-help-content h3,
.nback-help-content p,
.nback-help-content ul {
  margin: 0;
}

.nback-help-content h3 {
  color: #324f37;
  font-size: 14px;
}

.nback-help-content p,
.nback-help-content li {
  color: rgba(37, 53, 38, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.nback-help-content ul {
  display: grid;
  gap: 4px;
  padding-left: 20px;
}

.nback-help-card footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(37, 53, 38, 0.12);
  border-bottom: 0;
}

.nback-help-card footer button {
  width: auto;
  min-width: 96px;
  padding-inline: 14px;
  font-size: 13px;
}

.nback-choose {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 18px 20px 20px;
}

.nback-settings {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(73, 109, 74, 0.14);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.nback-settings > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.nback-settings strong {
  color: #324f37;
  font-size: 14px;
}

.nback-settings span {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.nback-settings input[type="range"] {
  width: 100%;
  accent-color: #638d58;
}

.nback-duration-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nback-duration-presets button {
  min-height: 32px;
  border: 1px solid rgba(73, 109, 74, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.nback-duration-presets button:hover,
.nback-duration-presets button:focus-visible,
.nback-duration-presets button.active {
  border-color: rgba(226, 174, 62, 0.56);
  background: rgba(255, 248, 213, 0.86);
  outline: none;
}

.nback-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  min-height: 0;
}

.nback-choose-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
  min-height: 0;
}

.nback-levels button {
  display: grid;
  gap: 8px;
  min-height: 110px;
  border: 1px solid rgba(73, 109, 74, 0.16);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #324f37;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.nback-levels button:hover,
.nback-levels button:focus-visible {
  border-color: rgba(226, 174, 62, 0.56);
  background: rgba(255, 248, 213, 0.86);
  outline: none;
}

.nback-levels strong {
  font-size: 24px;
}

.nback-levels small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
}

.nback-leaderboard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  border: 1px solid rgba(73, 109, 74, 0.14);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.nback-leaderboard header,
.nback-leaderboard footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.nback-leaderboard header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nback-leaderboard header strong {
  color: #324f37;
  font-size: 14px;
}

.nback-leaderboard header small {
  overflow: hidden;
  color: rgba(37, 53, 38, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nback-leaderboard header button,
.nback-leaderboard footer button {
  min-height: 30px;
  border: 1px solid rgba(73, 109, 74, 0.16);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.68);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.nback-leaderboard footer button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.nback-leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.nback-leaderboard-tabs button {
  min-height: 28px;
  border: 1px solid rgba(73, 109, 74, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.nback-leaderboard-tabs button:hover,
.nback-leaderboard-tabs button:focus-visible,
.nback-leaderboard-tabs button.active,
.nback-leaderboard header button:hover,
.nback-leaderboard header button:focus-visible,
.nback-leaderboard footer button:not(:disabled):hover,
.nback-leaderboard footer button:not(:disabled):focus-visible {
  border-color: rgba(226, 174, 62, 0.56);
  background: rgba(255, 248, 213, 0.86);
  outline: none;
}

.nback-leaderboard-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow: auto;
}

.nback-leaderboard-list > p {
  margin: 0;
  border: 1px dashed rgba(73, 109, 74, 0.18);
  border-radius: 8px;
  padding: 14px;
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.nback-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(73, 109, 74, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.54);
}

.nback-rank-row b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
}

.nback-rank-row span {
  overflow: hidden;
  color: #324f37;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nback-rank-row strong {
  color: #7b5a2d;
  font-size: 12px;
  white-space: nowrap;
}

.nback-rank-row small {
  color: rgba(37, 53, 38, 0.52);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.nback-leaderboard footer span {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.nback-play {
  display: grid;
  grid-template-rows: 30px 8px minmax(270px, 1fr) 172px;
  gap: 12px;
  min-height: 0;
  padding: 16px 20px 20px;
}

.nback-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  overflow: hidden;
}

.nback-status span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(73, 109, 74, 0.12);
  color: #496d4a;
  font-size: 12px;
  font-weight: 900;
}

.nback-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 53, 38, 0.1);
}

.nback-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fa57a, #e2ae3e);
}

.nback-question {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 22px;
  place-items: center;
  gap: 10px;
  min-height: 0;
}

.nback-question p {
  margin: 0;
  min-height: 18px;
  color: rgba(37, 53, 38, 0.68);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.nback-card {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-size: 900% 600%;
  image-rendering: auto;
}

.nback-card.large {
  width: min(280px, 36vh, 52vw);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(37, 53, 38, 0.1);
}

.nback-choice-zone {
  display: grid;
  min-height: 0;
}

.nback-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
}

.nback-preview-actions {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  height: 100%;
  border: 1px dashed rgba(73, 109, 74, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
}

.nback-preview-actions small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.nback-options button,
.nback-preview-actions button {
  border: 1px solid rgba(73, 109, 74, 0.16);
  border-radius: 10px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: #3f633e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.nback-options .nback-card {
  width: min(100%, 140px);
  max-height: 100%;
  margin: auto;
}

.nback-options button:hover,
.nback-options button:focus-visible,
.nback-preview-actions button:hover,
.nback-preview-actions button:focus-visible {
  border-color: rgba(226, 174, 62, 0.56);
  background: rgba(255, 248, 213, 0.86);
  outline: none;
}

.nback-preview-actions button {
  min-height: 36px;
  padding-inline: 16px;
}

.nback-result {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
}

.nback-result > strong {
  font-size: 64px;
}

.nback-result p {
  margin: 0;
  color: #324f37;
  font-size: 18px;
  font-weight: 900;
}

.nback-result > small {
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.nback-result div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nback-result button {
  min-height: 36px;
  border: 1px solid rgba(73, 109, 74, 0.22);
  border-radius: 8px;
  padding: 7px 14px;
  background: rgba(73, 109, 74, 0.12);
  color: #3f633e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}
/* Learning feedback and answer-result overlays. */

.learning-answer-notice {
  position: absolute;
  z-index: 92;
  left: 50%;
  top: 48%;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(460px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  padding: 24px 26px 22px;
  background: rgba(255, 252, 238, 0.98);
  box-shadow: 0 28px 80px rgba(23, 38, 26, 0.36);
  color: #253526;
  text-align: center;
}

.learning-answer-notice.correct {
  box-shadow: 0 28px 80px rgba(23, 88, 42, 0.34);
}

.learning-answer-notice.wrong {
  box-shadow: 0 28px 80px rgba(138, 78, 38, 0.32);
}

.learning-answer-notice button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(73, 109, 74, 0.18);
  border-radius: 8px;
  background: rgba(73, 109, 74, 0.08);
  color: #496d4a;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.learning-answer-notice button:hover {
  background: rgba(73, 109, 74, 0.16);
}

.learning-answer-notice b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: white;
  font-size: 34px;
  line-height: 1;
}

.learning-answer-notice.correct b {
  background: linear-gradient(135deg, #5c9f65, #8fc56f);
}

.learning-answer-notice.wrong b {
  background: linear-gradient(135deg, #c77c45, #e2ae3e);
}

.learning-answer-notice strong {
  color: #253526;
  font-size: 26px;
  line-height: 1.15;
}

.learning-answer-notice p {
  margin: 0;
  color: rgba(37, 53, 38, 0.76);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.65;
}

.learning-answer-notice small {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(73, 109, 74, 0.1);
  color: rgba(37, 53, 38, 0.62);
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 720px) {
  .cottage-art {
    opacity: 0.35;
    left: -8vw;
  }

  .login-panel {
    padding: 24px;
  }

  .login-panel h1,
  .loading-card h1 {
    font-size: 30px;
  }

  .world-hud {
    right: 12px;
    left: 12px;
    flex-wrap: wrap;
  }

  .world-hud .hud-weather small {
    display: none;
  }

  .inventory-panel {
    left: 12px;
    right: 12px;
    top: 52%;
    width: auto;
    max-height: calc(100vh - 128px);
    transform: translateY(-50%);
  }

  .learning-manual-panel {
    left: 12px;
    right: 12px;
    top: 52%;
    width: auto;
    transform: translateY(-50%);
  }

  .learning-manual-controls {
    grid-template-columns: 1fr;
  }

  .learning-manual-filters,
  .learning-manual-pager div {
    justify-content: flex-start;
  }

  .learning-manual-pager {
    align-items: flex-start;
    flex-direction: column;
  }

  .minimap-panel {
    right: 12px;
    bottom: 132px;
    width: 172px;
    padding: 8px;
  }

  .minimap-map {
    height: 96px;
  }

  .minimap-legend {
    display: none;
  }

  .audio-speed-widget {
    right: 12px;
    bottom: 94px;
  }

  .background-music-widget {
    right: 106px;
    bottom: 94px;
  }

  .background-music-volume input {
    width: 48px;
  }

  .task-panels {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 116px);
  }

  .nback-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 84px);
  }

  .nback-play {
    grid-template-rows: 30px 8px minmax(220px, 1fr) 190px;
    padding: 12px;
  }

  .nback-choose {
    padding: 12px;
  }

  .nback-choose-main {
    grid-template-columns: 1fr;
    overflow: auto;
  }

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

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

  .nback-leaderboard {
    min-height: 260px;
  }

  .nback-levels button {
    min-height: 82px;
  }

  .daily-plan-panel,
  .guide-panel {
    max-height: calc(100vh - 116px);
  }

  .daily-plan-steps small {
    white-space: normal;
  }

  .ready-order-toast {
    top: auto;
    right: 12px;
    bottom: 236px;
    left: 12px;
    width: auto;
  }

  .guide-row {
    grid-template-columns: 20px minmax(0, 1fr);
    min-height: 54px;
  }

  .guide-row b {
    grid-column: 2;
  }

  .shop-panel,
  .craft-panel,
  .farm-panel,
  .campfire-panel,
  .warehouse-panel,
  .event-panel,
  .npc-panel,
  .order-panel {
    left: 12px;
    right: 12px;
    top: 52%;
    width: auto;
    max-height: calc(100vh - 128px);
    transform: translateY(-50%);
  }

  .npc-panel {
    width: auto;
    height: calc(100vh - 96px);
    max-height: calc(100vh - 96px);
  }

  .order-panel {
    height: calc(100vh - 96px);
    max-height: calc(100vh - 96px);
  }

  .order-panel .order-list {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .npc-dialog-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .npc-relationship {
    max-height: 150px;
  }

  .npc-practice-board {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .npc-practice-card {
    min-height: 220px;
  }

  .admin-vocabulary-workbench {
    grid-template-columns: 1fr;
    grid-template-rows: 220px minmax(0, 1fr);
  }

  .admin-vocabulary-rule-grid,
  .admin-vocabulary-binding-grid {
    grid-template-columns: 1fr;
  }

  .admin-vocabulary-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-row,
  .craft-row,
  .order-row,
  .queue-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .order-panel .order-row {
    height: auto;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: none;
    grid-template-areas: none;
    overflow: visible;
  }

  .order-panel .order-row .item-mark,
  .order-panel .order-row .item-main,
  .order-panel .order-row .order-meta,
  .order-panel .order-row .order-progress,
  .order-panel .order-row .order-advice,
  .order-panel .order-row .recipe-lines,
  .order-panel .order-row > button {
    grid-area: auto;
  }

  .order-panel .order-row .order-progress,
  .order-panel .order-row .order-advice {
    grid-column: 2 / 4;
  }

  .order-panel .order-row .recipe-lines {
    grid-column: 2 / 3;
  }

  .order-panel .order-row > button {
    grid-column: 3;
    grid-row: 2;
  }

  .order-board-summary {
    grid-template-columns: 1fr;
  }

  .order-board-summary button {
    justify-self: end;
  }

  .cottage-order-panel {
    gap: 10px;
    padding: 12px;
  }

  .cottage-order-panel .order-board-head {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .cottage-order-panel .order-board-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .cottage-order-panel .order-board-ribbon {
    grid-template-columns: 1fr;
  }

  .cottage-order-panel .order-board-ribbon strong {
    justify-self: stretch;
    white-space: normal;
  }

  .cottage-order-panel .order-board-ribbon button {
    justify-self: end;
  }

  .cottage-order-panel .order-list {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .cottage-order-panel .order-paper {
    height: auto;
  }

  .cottage-order-panel .recipe-costs,
  .cottage-order-panel .reward-use-tags {
    max-height: none;
  }

  .shop-row button,
  .craft-row button,
  .order-row button,
  .queue-actions {
    grid-column: 2 / 4;
    grid-row: auto;
    justify-self: end;
  }

  .order-progress {
    grid-column: 2 / 4;
  }

  .recipe-lines {
    grid-column: 2 / 4;
  }

  .cottage-order-panel .order-row > button {
    grid-column: 2 / 4;
    grid-row: auto;
    justify-self: stretch;
  }

  .workbench-dialog-head,
  .workbench-note-strip {
    grid-template-columns: 1fr;
  }

  .workbench-dialog-stats {
    justify-content: flex-start;
    max-width: none;
  }

  .workbench-recipe-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas:
      "mark main status"
      "details details details"
      "meta action action";
  }

  .workbench-recipe-row .workbench-item-mark {
    grid-column: auto;
  }

  .workbench-recipe-status {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .workbench-recipe-row .workbench-craft-button {
    grid-area: action;
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
  }

  .queue-meta {
    grid-column: 3;
  }

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

  .toolbelt {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
    overflow-x: auto;
    transform: none;
  }

  .tool-slot {
    min-width: 116px;
  }
}
