:root {
  --fd-green: #347553;
  --fd-green-soft: #eaf4ed;
  --fd-green-border: #b9d7c3;
  --fd-tomato: #c94f43;
  --fd-wheat: #b77b18;
  --fd-ink: #1e2a23;
  --fd-line: #dfe6e1;
  --fd-paper: #f6f8f6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

.fd-page {
  background: #fff;
  color: var(--text-primary);
}

.fd-page::before {
  display: none;
}

.fd-page img {
  image-rendering: pixelated;
}

.fd-page button,
.fd-page input {
  font: inherit;
}

.fd-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 208px;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}

.fd-sidebar {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  padding: 24px 18px 34px;
  border-right: 1px solid var(--border);
  background: var(--bg-primary);
  scrollbar-width: thin;
}

.fd-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
}

.fd-sidebar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.fd-sidebar-brand span,
.fd-sidebar-brand strong,
.fd-sidebar-brand small {
  display: block;
}

.fd-sidebar-brand small {
  color: var(--fd-green);
  font-size: 0.68rem;
  font-weight: 800;
}

.fd-sidebar-brand strong {
  margin-top: 2px;
  font-size: 1rem;
}

.fd-section-nav {
  display: grid;
  gap: 2px;
  padding: 15px 0;
}

.fd-section-nav a,
.fd-back-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.fd-section-nav svg,
.fd-back-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.fd-section-nav a:hover,
.fd-section-nav a.active {
  color: var(--fd-green);
  border-left-color: var(--fd-green);
  background: var(--fd-green-soft);
}

.fd-back-link {
  border-top: 1px solid var(--border);
  border-left: 0;
  border-radius: 0;
  padding-top: 16px;
}

.fd-back-link:hover {
  color: var(--green-dark);
}

.fd-main {
  min-width: 0;
  padding: 38px clamp(28px, 4vw, 62px) 80px;
}

.fd-main > .wiki-breadcrumb,
.fd-main > section,
.fd-article {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.fd-main .wiki-breadcrumb a {
  color: var(--text-muted);
}

.fd-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  min-height: 310px;
  align-items: center;
  gap: 30px;
  padding: 38px 42px;
  border: 1px solid var(--fd-green-border);
  border-radius: 8px;
  background: var(--fd-green-soft);
  overflow: hidden;
  scroll-margin-top: 86px;
}

.fd-kicker {
  margin: 0 0 7px;
  color: var(--fd-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.fd-intro h1 {
  margin: 0;
  color: var(--fd-ink);
  font-size: 2.7rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.fd-intro-copy > p:not(.fd-kicker) {
  max-width: 600px;
  margin: 15px 0 0;
  color: #4e6155;
  font-size: 1rem;
  line-height: 1.8;
}

.fd-intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}

.fd-intro-stats div {
  min-width: 72px;
}

.fd-intro-stats strong,
.fd-intro-stats span {
  display: block;
}

.fd-intro-stats strong {
  color: var(--fd-ink);
  font-size: 1.35rem;
}

.fd-intro-stats span {
  margin-top: 2px;
  color: #718076;
  font-size: 0.76rem;
}

.fd-food-display {
  position: relative;
  min-height: 220px;
}

.fd-food-display img {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(42, 73, 53, 0.18));
}

.fd-food-display img:nth-child(1) {
  width: 116px;
  height: 116px;
  left: 4px;
  top: 16px;
}

.fd-food-display img:nth-child(2) {
  width: 112px;
  height: 112px;
  right: 0;
  top: 62px;
}

.fd-food-display img:nth-child(3) {
  width: 66px;
  height: 66px;
  left: 76px;
  bottom: 3px;
}

.fd-food-display img:nth-child(4) {
  width: 70px;
  height: 70px;
  right: 82px;
  top: 0;
}

.fd-search-panel {
  position: relative;
  z-index: 20;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 58, 42, 0.08);
}

.fd-search-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 13px;
}

.fd-search-heading span {
  display: block;
  color: var(--fd-tomato);
  font-size: 0.72rem;
  font-weight: 800;
}

.fd-search-heading h2 {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.fd-search-heading p,
.fd-search-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.fd-search-box,
.fd-recipe-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd7ce;
  border-radius: 7px;
  background: var(--fd-paper);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.fd-search-box:focus-within,
.fd-recipe-search:focus-within {
  border-color: var(--fd-green);
  box-shadow: 0 0 0 3px rgba(52, 117, 83, 0.12);
}

.fd-search-box > svg,
.fd-recipe-search > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--fd-green);
}

.fd-search-box input,
.fd-recipe-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.fd-search-box input::placeholder,
.fd-recipe-search input::placeholder {
  color: #8a9990;
}

.fd-clear-search,
.fd-icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
}

.fd-clear-search {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border: 0;
  background: transparent;
}

.fd-clear-search svg,
.fd-icon-button svg {
  width: 18px;
  height: 18px;
}

.fd-icon-button:hover,
.fd-clear-search:hover {
  color: var(--fd-green);
  border-color: var(--fd-green-border);
  background: var(--fd-green-soft);
}

.fd-search-hint {
  margin-top: 9px;
}

.fd-search-suggestions {
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(100% - 15px);
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--fd-green-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 58, 42, 0.16);
}

.fd-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--fd-line);
  background: #fff;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.fd-suggestion:last-child {
  border-bottom: 0;
}

.fd-suggestion:hover,
.fd-suggestion.active {
  background: var(--fd-green-soft);
}

.fd-suggestion img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.fd-suggestion-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fd-green-border);
  border-radius: 7px;
  background: var(--fd-green-soft);
  color: var(--fd-green);
}

.fd-suggestion-icon svg {
  width: 20px;
  height: 20px;
}

.fd-suggestion-empty {
  padding: 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

.fd-suggestion strong,
.fd-suggestion small {
  display: block;
}

.fd-suggestion small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.fd-suggestion > span:last-child {
  color: var(--fd-green);
  font-size: 0.76rem;
  font-weight: 700;
}

.fd-article > section {
  padding: 64px 0 58px;
  border-bottom: 1px solid var(--fd-line);
  scroll-margin-top: 78px;
}

.fd-article > section:last-child {
  border-bottom: 0;
}

.fd-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.fd-section-number {
  flex: 0 0 auto;
  min-width: 36px;
  padding-top: 5px;
  color: var(--fd-green);
  font-size: 0.76rem;
  font-weight: 800;
}

.fd-heading-row p {
  margin: 0 0 3px;
  color: var(--fd-wheat);
  font-size: 0.76rem;
  font-weight: 800;
}

.fd-heading-row h2 {
  margin: 0;
  color: var(--fd-ink);
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.fd-article section > p,
.fd-media-copy p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 12px 0;
}

.fd-article h3 {
  margin: 28px 0 13px;
  color: var(--text-primary);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.fd-timeline {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.fd-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  min-height: 78px;
  padding-bottom: 18px;
}

.fd-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 37px;
  bottom: 0;
  width: 1px;
  background: var(--fd-green-border);
}

.fd-timeline li > span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fd-green-border);
  border-radius: 50%;
  background: var(--fd-green-soft);
  color: var(--fd-green);
  font-weight: 800;
}

.fd-timeline strong,
.fd-timeline p {
  display: block;
}

.fd-timeline strong {
  padding-top: 2px;
  color: var(--text-primary);
}

.fd-timeline p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.fd-notice,
.fd-callout {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--fd-green-border);
  border-radius: 8px;
  background: var(--fd-green-soft);
}

.fd-notice svg,
.fd-callout > svg {
  width: 23px;
  height: 23px;
  margin-top: 1px;
  color: var(--fd-green);
}

.fd-notice p,
.fd-callout p {
  margin: 0;
  color: #4d6255;
  line-height: 1.65;
}

.fd-notice strong,
.fd-callout strong {
  display: block;
  margin-bottom: 3px;
  color: var(--fd-ink);
}

.fd-callout {
  margin-top: 23px;
}

.fd-callout.neutral {
  border-color: #ced9e2;
  background: #f1f5f8;
}

.fd-callout.neutral > svg {
  color: var(--green-dark);
}

.fd-crop-table {
  margin: 25px 0 18px;
  border-top: 1px solid var(--fd-line);
  border-bottom: 1px solid var(--fd-line);
}

.fd-crop-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1fr;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--fd-line);
}

.fd-crop-row:last-child {
  border-bottom: 0;
}

.fd-crop-row > span {
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.fd-crop-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-weight: 700;
}

.fd-crop-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.fd-crop-head {
  min-height: 42px;
  background: var(--fd-paper);
}

.fd-crop-head > span {
  color: var(--text-muted) !important;
  font-size: 0.76rem;
  font-weight: 800 !important;
}

.fd-muted {
  color: var(--text-muted) !important;
  font-size: 0.86rem;
}

.fd-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.fd-guide-grid article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: #fff;
}

.fd-guide-grid img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.fd-guide-grid h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.fd-guide-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
}

.fd-process {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) 28px minmax(116px, 1fr) 28px minmax(116px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 25px 0 28px;
  padding: 22px;
  border-top: 1px solid var(--fd-line);
  border-bottom: 1px solid var(--fd-line);
  background: var(--fd-paper);
}

.fd-process > div {
  min-width: 0;
  text-align: center;
}

.fd-process img {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: contain;
  margin: 0 auto 8px;
}

.fd-process span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
}

.fd-process > svg {
  width: 22px;
  color: var(--fd-green);
}

.fd-process-text > svg {
  width: 45px;
  height: 45px;
  margin-bottom: 10px;
  color: var(--fd-wheat);
}

.fd-plain-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
  counter-reset: fd-steps;
}

.fd-plain-steps li {
  counter-increment: fd-steps;
  min-height: 126px;
  padding: 16px;
  border-top: 3px solid var(--fd-green-border);
  background: var(--fd-paper);
}

.fd-plain-steps li::before {
  content: counter(fd-steps, decimal-leading-zero);
  display: block;
  margin-bottom: 11px;
  color: var(--fd-green);
  font-size: 0.72rem;
  font-weight: 800;
}

.fd-plain-steps strong,
.fd-plain-steps span {
  display: block;
}

.fd-plain-steps strong {
  margin-bottom: 5px;
  color: var(--text-primary);
}

.fd-plain-steps span {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.fd-text-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid var(--fd-green-border);
  border-radius: 7px;
  background: #fff;
  color: var(--fd-green);
  font-weight: 700;
  cursor: pointer;
}

.fd-text-action:hover {
  background: var(--fd-green-soft);
}

.fd-text-action svg {
  width: 17px;
  height: 17px;
}

.fd-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.fd-two-column > div {
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: var(--fd-paper);
}

.fd-two-column img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.fd-two-column h3 {
  margin: 12px 0 6px;
}

.fd-two-column p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.fd-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 13px 0 24px;
  list-style: none;
}

.fd-tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--fd-line);
  border-radius: 6px;
  background: var(--fd-paper);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.fd-media-copy {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  padding: 24px 0;
}

.fd-media-copy > img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 12px 9px rgba(31, 58, 42, 0.15));
}

.fd-effect-feature {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
  border-left: 4px solid var(--fd-wheat);
  background: #fff8e9;
}

.fd-effect-feature > svg {
  width: 42px;
  height: 42px;
  color: var(--fd-wheat);
}

.fd-effect-feature h3 {
  margin: 0 0 6px;
}

.fd-effect-feature p {
  margin: 0;
  color: #625640;
  line-height: 1.7;
}

.fd-effect-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border-top: 1px solid var(--fd-line);
  border-left: 1px solid var(--fd-line);
}

.fd-effect-table > div {
  min-height: 76px;
  padding: 14px 16px;
  border-right: 1px solid var(--fd-line);
  border-bottom: 1px solid var(--fd-line);
}

.fd-effect-table strong,
.fd-effect-table span {
  display: block;
}

.fd-effect-table strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.fd-effect-table span {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.fd-check-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.fd-check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.fd-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fd-green-soft);
  color: var(--fd-green);
  font-size: 0.72rem;
  font-weight: 900;
}

.fd-feast-strip {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  margin: 24px 0;
  padding: 18px;
  border-top: 1px solid var(--fd-line);
  border-bottom: 1px solid var(--fd-line);
  background: var(--fd-paper);
}

.fd-feast-strip img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 6px rgba(31, 58, 42, 0.12));
}

.fd-recipe-toolbar {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: flex;
  gap: 9px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(31, 58, 42, 0.07);
  backdrop-filter: blur(10px);
}

.fd-recipe-search {
  flex: 1;
  min-width: 0;
  min-height: 42px;
}

.fd-filter-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 13px 1px 8px;
  scrollbar-width: thin;
}

.fd-filter-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--fd-line);
  border-radius: 6px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
}

.fd-filter-tabs button:hover,
.fd-filter-tabs button.active {
  border-color: var(--fd-green);
  background: var(--fd-green-soft);
  color: var(--fd-green);
}

.fd-filter-tabs button strong {
  margin-left: 4px;
  font-size: 0.72rem;
}

.fd-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 8px 0 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.fd-results-summary strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

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

.fd-recipe-card {
  scroll-margin-top: 140px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fd-recipe-card:hover {
  border-color: var(--fd-green-border);
  box-shadow: 0 7px 18px rgba(31, 58, 42, 0.07);
}

.fd-recipe-card.fd-highlight {
  border-color: var(--fd-wheat);
  box-shadow: 0 0 0 3px rgba(183, 123, 24, 0.15);
}

.fd-recipe-card-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--fd-line);
  background: var(--fd-paper);
}

.fd-result-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.fd-result-identity > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.fd-result-identity h3,
.fd-result-identity p {
  overflow-wrap: anywhere;
}

.fd-result-identity h3 {
  margin: 0 0 3px;
  color: var(--text-primary);
  font-size: 1rem;
}

.fd-result-identity p {
  margin: 0;
  color: var(--text-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.7rem;
}

.fd-station-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--fd-green-border);
  border-radius: 6px;
  background: var(--fd-green-soft);
  color: var(--fd-green);
  font-size: 0.75rem;
  font-weight: 800;
}

.fd-recipe-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.38fr);
  gap: 18px;
  padding: 17px 16px;
}

.fd-recipe-diagram {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.fd-ingredient-grid {
  width: 168px;
  min-height: 168px;
  flex: 0 0 168px;
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-auto-rows: 52px;
  gap: 6px;
  align-content: center;
}

.fd-ingredient-grid.fd-six-grid {
  min-height: 110px;
  grid-template-rows: repeat(2, 52px);
}

.fd-linear-inputs,
.fd-output-stack {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.fd-slot {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd7cf;
  border-radius: 6px;
  background: #f5f7f5;
}

.fd-slot.empty {
  opacity: 0.38;
  background: #eef1ef;
}

.fd-slot img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.fd-slot-count,
.fd-slot-chance {
  position: absolute;
  right: 2px;
  bottom: 1px;
  min-width: 16px;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(23, 32, 27, 0.86);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.fd-slot-chance {
  left: 2px;
  right: auto;
  background: var(--fd-tomato);
}

.fd-slot-options {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
}

.fd-recipe-arrow {
  flex: 0 0 auto;
  color: var(--fd-green);
}

.fd-recipe-arrow svg {
  width: 22px;
  height: 22px;
}

.fd-result-slot {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-color: var(--fd-green-border);
  background: var(--fd-green-soft);
}

.fd-result-slot img {
  width: 52px;
  height: 52px;
}

.fd-recipe-meta {
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--fd-line);
}

.fd-recipe-meta dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
  font-size: 0.76rem;
}

.fd-recipe-meta dt {
  color: var(--text-muted);
}

.fd-recipe-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.fd-option-list {
  grid-column: 1 / -1;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--fd-line);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.fd-option-list strong {
  color: var(--text-secondary);
}

.fd-empty-state {
  padding: 55px 20px;
  text-align: center;
  color: var(--text-muted);
}

.fd-empty-state svg {
  width: 38px;
  height: 38px;
}

.fd-empty-state h3 {
  margin: 12px 0 4px;
  color: var(--text-primary);
}

.fd-empty-state p {
  margin: 0;
}

.fd-load-more {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--fd-green-border);
  border-radius: 7px;
  background: var(--fd-green-soft);
  color: var(--fd-green);
  font-weight: 800;
  cursor: pointer;
}

.fd-load-more:hover {
  background: #deeee3;
}

.fd-load-more svg {
  width: 18px;
  height: 18px;
}

.fd-faq {
  margin-top: 22px;
  border-top: 1px solid var(--fd-line);
}

.fd-faq details {
  border-bottom: 1px solid var(--fd-line);
}

.fd-faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.fd-faq summary::-webkit-details-marker {
  display: none;
}

.fd-faq summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.fd-faq details[open] summary svg {
  transform: rotate(180deg);
}

.fd-faq details p {
  margin: 0;
  padding: 0 34px 18px 2px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.fd-outline {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  padding: 32px 22px;
  border-left: 1px solid var(--border);
}

.fd-outline > strong {
  color: var(--text-primary);
  font-size: 0.78rem;
}

.fd-outline nav {
  display: grid;
  gap: 2px;
  margin-top: 11px;
}

.fd-outline nav a {
  display: block;
  padding: 6px 0 6px 11px;
  border-left: 2px solid var(--fd-line);
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  text-decoration: none;
}

.fd-outline nav a:hover,
.fd-outline nav a.active {
  border-left-color: var(--fd-green);
  color: var(--fd-green);
}

.fd-outline-data {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--fd-line);
}

.fd-outline-data span,
.fd-outline-data strong,
.fd-outline-data small {
  display: block;
}

.fd-outline-data span,
.fd-outline-data small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.fd-outline-data strong {
  margin: 3px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.fd-mobile-bar {
  display: none;
}

.fd-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fd-green-border);
  border-radius: 50%;
  background: #fff;
  color: var(--fd-green);
  box-shadow: 0 8px 20px rgba(31, 58, 42, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.fd-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fd-back-top svg {
  width: 19px;
  height: 19px;
}

.fd-footer {
  position: relative;
  z-index: 3;
}

.fd-footer a {
  color: var(--green-light);
}

@media (max-width: 1240px) {
  .fd-layout {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .fd-outline {
    display: none;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 112px;
  }

  .fd-mobile-bar {
    position: sticky;
    top: 64px;
    z-index: 75;
    min-height: 48px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .fd-mobile-bar strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fd-mobile-bar .fd-icon-button {
    width: 38px;
    height: 38px;
  }

  .fd-layout {
    display: block;
  }

  .fd-sidebar {
    position: fixed;
    left: 0;
    top: 112px;
    bottom: 0;
    z-index: 74;
    width: min(300px, 86vw);
    height: auto;
    transform: translateX(-102%);
    box-shadow: 16px 0 36px rgba(20, 35, 26, 0.16);
    transition: transform 0.22s ease;
  }

  .fd-sidebar.open {
    transform: translateX(0);
  }

  .fd-main {
    padding: 26px 22px 64px;
  }

  .fd-article > section,
  .fd-intro {
    scroll-margin-top: 122px;
  }

  .fd-recipe-toolbar {
    top: 120px;
  }
}

@media (max-width: 680px) {
  .qq-float-btn {
    top: 12px;
    right: 72px;
    bottom: auto;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .qq-float-btn .qq-tooltip {
    display: none;
  }

  .fd-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fd-main > .wiki-breadcrumb {
    margin-bottom: 12px;
  }

  .fd-intro {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 27px 22px 20px;
  }

  .fd-intro h1 {
    font-size: 2.1rem;
  }

  .fd-intro-stats {
    gap: 18px;
  }

  .fd-food-display {
    min-height: 130px;
  }

  .fd-food-display img:nth-child(1) {
    width: 90px;
    height: 90px;
    left: 2%;
    top: 3px;
  }

  .fd-food-display img:nth-child(2) {
    width: 84px;
    height: 84px;
    right: 4%;
    top: 26px;
  }

  .fd-food-display img:nth-child(3) {
    width: 54px;
    height: 54px;
    left: 36%;
    bottom: 0;
  }

  .fd-food-display img:nth-child(4) {
    width: 58px;
    height: 58px;
    right: 34%;
    top: 0;
  }

  .fd-search-panel {
    padding: 18px 15px;
  }

  .fd-search-heading {
    display: block;
  }

  .fd-search-heading > p {
    margin-top: 6px;
  }

  .fd-search-suggestions {
    left: 15px;
    right: 15px;
  }

  .fd-suggestion {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .fd-suggestion > span:last-child {
    grid-column: 2;
  }

  .fd-article > section {
    padding: 49px 0 44px;
  }

  .fd-heading-row {
    gap: 8px;
  }

  .fd-heading-row h2 {
    font-size: 1.42rem;
  }

  .fd-section-number {
    min-width: 30px;
  }

  .fd-crop-table {
    overflow-x: auto;
  }

  .fd-crop-row {
    min-width: 680px;
  }

  .fd-guide-grid,
  .fd-two-column,
  .fd-effect-table {
    grid-template-columns: 1fr;
  }

  .fd-guide-grid article {
    min-height: 112px;
  }

  .fd-process {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fd-process > svg {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .fd-plain-steps {
    grid-template-columns: 1fr;
  }

  .fd-plain-steps li {
    min-height: 0;
  }

  .fd-media-copy {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 15px;
  }

  .fd-media-copy > img {
    width: 88px;
    height: 88px;
  }

  .fd-feast-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .fd-feast-strip img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .fd-results-summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 7px 0;
  }

  .fd-recipe-card-header {
    align-items: flex-start;
  }

  .fd-result-identity {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .fd-result-identity > img {
    width: 42px;
    height: 42px;
  }

  .fd-recipe-card-body {
    grid-template-columns: 1fr;
  }

  .fd-recipe-diagram {
    overflow-x: auto;
    padding-bottom: 7px;
  }

  .fd-recipe-meta {
    padding: 13px 0 0;
    border-top: 1px solid var(--fd-line);
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .fd-intro-stats {
    justify-content: space-between;
    gap: 8px;
  }

  .fd-intro-stats div {
    min-width: 62px;
  }

  .fd-search-box input,
  .fd-recipe-search input {
    font-size: 0.88rem;
  }

  .fd-media-copy {
    grid-template-columns: 1fr;
  }

  .fd-media-copy > img {
    width: 108px;
    height: 108px;
    margin: 0 auto;
  }

  .fd-effect-feature {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 17px 14px;
  }

  .fd-effect-feature > svg {
    width: 32px;
    height: 32px;
  }

  .fd-recipe-card-header {
    display: grid;
  }

  .fd-station-badge {
    margin-left: 56px;
    justify-self: start;
  }

  .fd-ingredient-grid {
    width: 144px;
    min-height: 144px;
    flex-basis: 144px;
    grid-template-columns: repeat(3, 44px);
    grid-auto-rows: 44px;
    gap: 6px;
  }

  .fd-ingredient-grid.fd-six-grid {
    min-height: 94px;
    grid-template-rows: repeat(2, 44px);
  }

  .fd-slot {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .fd-slot img {
    width: 36px;
    height: 36px;
  }

  .fd-result-slot {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .fd-result-slot img {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
