:root {
  color-scheme: light;
  --ink: #18241c;
  --muted: #657469;
  --line: #d7e4d8;
  --paper: #f5f8f3;
  --panel: #ffffff;
  --leaf: #2f9b58;
  --leaf-strong: #1f6f3b;
  --mint: #e8f4ec;
  --amber: #d9902f;
  --sky: #e8f3ff;
  --coral: #df6b58;
  --shadow: 0 12px 28px rgba(33, 54, 39, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html {
  min-height: 100%;
  background: #f8fbf9;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f8fbf9 280px),
    #f8fbf9;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}

button:hover,
.button:hover {
  border-color: #83bd92;
  box-shadow: 0 8px 20px rgba(22, 93, 49, 0.12);
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.page-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  background: #020a02;
}

.site-sidebar:empty {
  min-height: calc(100vh - 64px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 clamp(20px, 4vw, 36px);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--leaf-strong);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.brand strong::before {
  display: none;
}

.brand strong span {
  color: var(--leaf-strong);
}

.search-button {
  flex: 1;
  max-width: 520px;
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.header-search {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  margin-left: auto;
  transition:
    flex-basis 160ms ease,
    width 160ms ease;
}

.header-search.is-open,
.header-search.has-query {
  flex: 0 1 420px;
  width: 420px;
  max-width: 32vw;
}

.header-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #a7f947;
  transform: translateY(-50%);
  pointer-events: none;
}

.header-search-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search input {
  width: 100%;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  padding: 0 0 0 40px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.header-search input::placeholder {
  color: transparent;
}

.header-search.is-open input,
.header-search.has-query input {
  border-color: #a7f947;
  background: rgba(2, 10, 2, 0.82);
  color: #f9ffe9;
  caret-color: #f9ffe9;
  padding-right: 12px;
  box-shadow: 0 0 0 3px rgba(167, 249, 71, 0.14);
  cursor: text;
}

.header-search.is-open input::placeholder,
.header-search.has-query input::placeholder {
  color: #71816c;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 70;
  display: grid;
  gap: 4px;
  width: min(540px, calc(100vw - 32px));
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(155, 196, 135, 0.28);
  border-radius: 8px;
  background: #041004;
  padding: 6px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.header-search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: #f9ffe9;
}

.header-search-result:hover,
.header-search-result:focus {
  border-color: rgba(167, 249, 71, 0.35);
  background: rgba(167, 249, 71, 0.08);
  outline: none;
}

.header-search-result-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(167, 249, 71, 0.18);
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.1);
  color: #a7f947;
}

.header-search-result-icon.has-image {
  background: rgba(167, 249, 71, 0.08);
}

.header-search-result-icon img,
.search-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-search-result-icon > span,
.search-result-icon > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.header-search-result-icon .mutation-icon,
.search-result-icon .mutation-icon {
  width: 20px;
  height: 20px;
}

.header-search-result-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.header-search-result-copy strong {
  overflow: hidden;
  color: #f9ffe9;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-result-copy span {
  overflow: hidden;
  color: #94a38f;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-result-type {
  border-radius: 999px;
  background: rgba(167, 249, 71, 0.12);
  color: #a7f947;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.header-search-empty {
  border: 1px dashed rgba(155, 196, 135, 0.28);
  border-radius: 8px;
  color: #94a38f;
  padding: 14px;
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.top-link {
  position: relative;
  flex: 0 0 auto;
  padding: 23px 0 21px;
  border-radius: 0;
  color: #10223d;
  font-size: 14px;
  font-weight: 750;
}

.top-link:hover {
  color: var(--leaf-strong);
}

.top-link.active {
  color: var(--leaf-strong);
}

.top-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--leaf-strong);
}

.top-link.accent {
  color: var(--leaf-strong);
  font-weight: 700;
}

.sidebar,
.rail {
  display: none;
}

.nav-group {
  margin-bottom: 20px;
}

.nav-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #314139;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--mint);
  color: var(--leaf-strong);
}

.nav-link span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.view {
  min-width: 0;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 28px) 64px;
}

.view:focus {
  outline: none;
}

.view[data-route="calculator"] {
  width: min(100%, 900px);
  padding-top: 22px;
}

.view[data-route="admin"] {
  width: min(100%, 1560px);
  padding: 18px clamp(10px, 1.6vw, 20px) 64px;
}

.view[data-template="article"] {
  width: min(100%, 980px);
  padding-top: 26px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 16px 44px;
  color: #8aa0bf;
  background: #fff;
  text-align: center;
  font-size: 14px;
}

.page-head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.view[data-route="calculator"] .page-head {
  gap: 7px;
  margin-bottom: 14px;
}

.view[data-route="calculator"] h1 {
  font-size: clamp(28px, 3vw, 34px);
}

.view[data-route="calculator"] .lead {
  font-size: 13px;
  line-height: 1.45;
}

.eyebrow {
  color: var(--leaf-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--leaf-strong);
  padding-bottom: 8px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.lead {
  max-width: 860px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.band {
  margin: 22px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.band.soft {
  padding-top: 12px;
}

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

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.toolbar input,
.toolbar select,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #14220f;
}

.toolbar input {
  min-width: 260px;
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.related-grid .card {
  min-height: 150px;
}

.wiki-category-overview,
.wiki-category-section {
  margin: 18px 0;
}

.wiki-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wiki-category-grid button,
.wiki-category-grid a {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.wiki-category-grid button:hover,
.wiki-category-grid a:hover {
  border-color: #9fb9a6;
  transform: translateY(-1px);
}

.wiki-category-grid strong {
  font-size: 16px;
}

.wiki-category-grid span,
.wiki-category-section .muted {
  font-size: 12px;
  font-weight: 800;
}

.wiki-results {
  display: grid;
  gap: 22px;
}

.wiki-category-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--leaf-strong);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #9aaa9e;
}

.article-outline {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.article-outline h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.article-outline ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-outline li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf7;
  padding: 9px 10px;
}

.article-outline a {
  color: var(--leaf-strong);
  font-weight: 800;
}

.article-outline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reader-article {
  max-width: 960px;
  margin: 0 auto;
}

.reader-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.reader-head h1 {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: none;
  color: #fff8d7;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
}

.reader-head h1 span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 26px;
}

.reader-contents {
  width: min(100%, 280px);
  margin: 0 0 30px;
  border: 1px solid #3a7d2d;
  border-radius: 8px;
  background: #113f13;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.reader-contents h2 {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  color: #fff8d7;
  font-size: 16px;
}

.reader-contents ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.reader-contents li {
  color: #bfe5aa;
  line-height: 1.25;
}

.reader-contents li.depth-3 {
  margin-left: 12px;
  font-size: 13px;
}

.reader-contents a {
  color: #f4ffe8;
  font-weight: 800;
}

.reader-contents a:hover {
  color: var(--leaf-strong);
}

.reader-head h1 {
  color: var(--ink);
}

.reader-contents {
  border-color: var(--line);
  background: #fff;
}

.reader-contents h2 {
  color: var(--ink);
}

.reader-contents li {
  color: var(--muted);
}

.reader-contents a {
  color: var(--leaf-strong);
}

.reader-hero {
  margin-bottom: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-1px);
  border-color: #83bd92;
}

.card-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.simple-link-list {
  display: grid;
  gap: 10px;
}

.simple-link-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.simple-link-card:hover {
  border-color: #83bd92;
  transform: translateY(-1px);
}

.simple-link-card strong {
  color: var(--leaf-strong);
  font-size: 18px;
}

.simple-link-card span {
  color: var(--muted);
}

.guide-admin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.guide-admin-strip h2 {
  margin: 0 0 6px;
  border-bottom: 0;
  padding: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.guide-card-band {
  height: 44px;
  background: #197a12;
}

.guide-card.featured:nth-child(2) .guide-card-band,
.guide-card:nth-child(3n + 2) .guide-card-band {
  background: #143d8a;
}

.guide-card.featured:nth-child(3) .guide-card-band,
.guide-card:nth-child(3n + 3) .guide-card-band {
  background: #5d2888;
}

.guide-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.guide-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guide-card-actions {
  display: flex;
  gap: 12px;
  font-weight: 850;
}

.guide-card-actions a {
  color: var(--leaf-strong);
}

.notice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 22px 0;
  border: 1px solid #ffc86d;
  border-radius: 8px;
  background: #c87522;
  padding: 16px 18px;
  color: #fff8e9;
  box-shadow: var(--shadow);
}

.empty-row {
  color: #718169;
  font-style: italic;
  text-align: center;
}

.fact-table-block {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.source-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.fact-card {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}

.fact-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.fact-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
  color: #2d4c7a;
  font-weight: 900;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mutation-thumb {
  background: #10200e;
  color: #a7f947;
}

.mutation-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: #173114;
  box-shadow: inset 0 0 0 1px rgba(167, 249, 71, 0.26);
}

.thumb .mutation-icon {
  width: 30px;
  height: 30px;
}

.mutation-icon-gold {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.82) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 52%, #ffe27a 0 43%, #d78c15 44% 70%, #6a3d00 71%);
}

.mutation-icon-gold::after {
  content: "";
  width: 42%;
  height: 42%;
  border: 2px solid rgba(105, 59, 0, 0.58);
  border-radius: 999px;
}

.mutation-icon-rainbow {
  background: #10200e;
}

.mutation-icon-rainbow::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  top: 20%;
  height: 48%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #ff3d55, #ffb020, #fff45f, #59d66d, #43b6ff, #9b5cff);
}

.mutation-icon-rainbow::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  top: 42%;
  height: 28%;
  border-radius: 999px 999px 0 0;
  background: #10200e;
}

.mutation-icon-frozen {
  background: radial-gradient(circle at 50% 50%, #dffbff 0 11%, #60d3ff 12% 48%, #2056a9 49%);
}

.mutation-icon-frozen::before,
.mutation-icon-frozen::after {
  content: "";
  position: absolute;
  width: 72%;
  height: 2px;
  border-radius: 999px;
  background: #eaffff;
  box-shadow: 0 -5px 0 -1px rgba(234, 255, 255, 0.65), 0 5px 0 -1px rgba(234, 255, 255, 0.65);
}

.mutation-icon-frozen::after {
  transform: rotate(60deg);
}

.mutation-icon-electric {
  background: radial-gradient(circle at 35% 28%, #d6d0ff 0 12%, #6d5dff 13% 54%, #23116f 55%);
}

.mutation-icon-electric::before {
  content: "";
  width: 48%;
  height: 72%;
  background: #fbff4d;
  clip-path: polygon(58% 0, 20% 47%, 47% 47%, 34% 100%, 82% 36%, 54% 36%);
  filter: drop-shadow(0 0 5px rgba(251, 255, 77, 0.6));
}

.mutation-icon-bloodlit {
  background: radial-gradient(circle at 34% 26%, #ffd1dc 0 10%, #ef3348 11% 56%, #650313 57%);
}

.mutation-icon-bloodlit::before {
  content: "";
  width: 48%;
  height: 58%;
  border-radius: 58% 58% 58% 0;
  background: #ffccd4;
  transform: rotate(-45deg);
  opacity: 0.9;
}

.mutation-icon-chained {
  background: #0d5d38;
}

.mutation-icon-chained::before,
.mutation-icon-chained::after {
  content: "";
  position: absolute;
  width: 43%;
  height: 28%;
  border: 2px solid #cbffe0;
  border-radius: 999px;
  transform: rotate(-32deg);
}

.mutation-icon-chained::before {
  left: 18%;
}

.mutation-icon-chained::after {
  right: 18%;
}

.mutation-icon-starstruck {
  background: radial-gradient(circle at 50% 50%, #fff8a8 0 13%, #f5bd26 14% 58%, #6a4700 59%);
}

.mutation-icon-starstruck::before {
  content: "";
  width: 68%;
  height: 68%;
  background: #fff6a0;
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  filter: drop-shadow(0 0 5px rgba(255, 246, 160, 0.7));
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef4ef;
  color: #425348;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.tag.warn {
  background: #fff1d6;
  color: #76511b;
}

.tag.ok {
  background: #e7f6df;
  color: #2f6c35;
}

.tag.bad {
  background: #ffe9e4;
  color: #8a3425;
}

.tag.hot {
  background: #ffe9e4;
  color: #8a3425;
}

.muted {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d7f0c9;
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid #dce8d5;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  color: #14220f;
}

th {
  background: #263a2d;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.crop-table-sections {
  display: grid;
  gap: 22px;
}

.crop-tier-section {
  display: grid;
  gap: 10px;
}

.crop-tier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.crop-tier-heading h2 {
  margin: 0;
  color: var(--leaf-strong);
}

.crop-reference-table {
  min-width: 740px;
}

.crop-reference-table th {
  background: #263a2d;
  color: #fff;
}

.crop-reference-table tbody tr:nth-child(even) {
  background: #edf7e4;
}

.crop-reference-table td {
  vertical-align: middle;
}

.crop-reference-table td:nth-child(2) a {
  color: #19a71c;
  font-weight: 900;
}

.crop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #b9df8f;
  border-radius: 8px;
  background: #f0fbdf;
  color: var(--leaf-strong);
  font-size: 12px;
  font-weight: 900;
}

.crop-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tier-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #b7c6b9;
  border-radius: 999px;
  background: #edf0ed;
  color: #415042;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.view[data-route="crops"] {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #020a02;
  color: #e1f2d9;
  padding: 54px clamp(20px, 4vw, 48px) 88px;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-route="crops"] {
  background: #020a02;
  color: #e1f2d9;
}

body[data-route="crops"] .topbar {
  border-color: #21341d;
  background: rgba(2, 10, 2, 0.9);
  backdrop-filter: blur(12px);
}

body[data-route="crops"] .brand,
body[data-route="crops"] .top-link {
  color: #e1f2d9;
}

body[data-route="crops"] .brand-mark {
  background: #a7f947;
  color: #0f2000;
}

body[data-route="crops"] .brand strong span,
body[data-route="crops"] .top-link:hover,
body[data-route="crops"] .top-link.active {
  color: #a7f947;
}

body[data-route="crops"] .top-link.active::after {
  background: #a7f947;
}

body[data-route="crops"] .site-footer {
  border-color: #21341d;
  background: #020a02;
  color: #71816c;
}

.view[data-route="crops"] > * {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.crop-archive-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  border: 0;
  border-bottom: 1px solid #1a2f16;
  border-radius: 0;
  background: transparent;
  color: #e1f2d9;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 42px);
  box-shadow: none;
}

.crop-archive-hero::before {
  display: none;
}

.crop-archive-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
}

.crop-archive-kicker {
  width: max-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a7f947;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crop-archive-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fffbe7;
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.94;
}

.crop-archive-hero p {
  max-width: 660px;
  margin: 0;
  color: #b7c9af;
  font-size: 17px;
  line-height: 1.65;
}

.crop-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.crop-archive-vault {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 230px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
}

.crop-archive-vault::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(167, 249, 71, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.crop-archive-vault-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
}

.crop-archive-vault-ring > span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-left: -10px;
  border: 1px solid #27411f;
  border-radius: 8px;
  background: #0c1a0a;
  box-shadow: none;
}

.crop-archive-vault-ring > span:first-child {
  margin-left: 0;
}

.crop-archive-vault .crop-icon {
  width: 62px;
  height: 62px;
  border-color: transparent;
  background: transparent;
}

.crop-archive-vault strong {
  color: #fffbe7;
  font-size: 50px;
  line-height: 1;
}

.crop-archive-vault > span:last-child {
  color: #a4b89b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crop-archive-featured,
.crop-archive-panel {
  margin: 34px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.crop-archive-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1a2f16;
  padding-bottom: 14px;
}

.crop-archive-section-head > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: #10200e;
  color: #c7ff77;
}

.crop-archive-section-head h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: #fffbe7;
  font-size: 28px;
  letter-spacing: 0;
}

.crop-archive-section-head p {
  margin: 4px 0 0;
  color: #94a38f;
}

.crop-archive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.crop-archive-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-areas:
    "art source"
    "art copy"
    "art meta";
  align-items: center;
  gap: 8px 14px;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  color: #e1f2d9;
  padding: 14px;
}

.crop-archive-card:hover {
  transform: translateY(-2px);
  border-color: #c7ff77;
  background: #0c1a0a;
  box-shadow: none;
}

.crop-archive-card-source {
  grid-area: source;
  width: max-content;
  border-radius: 999px;
  background: #10200e;
  color: #a7f947;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crop-archive-card-source.source-pack {
  background: rgba(153, 199, 255, 0.14);
  color: #99c7ff;
}

.crop-archive-card-source.source-code {
  background: rgba(255, 186, 74, 0.15);
  color: #feba4a;
}

.crop-archive-card-art {
  grid-area: art;
  display: grid;
  place-items: center;
  width: 82px;
  min-height: 82px;
  border: 1px solid #27411f;
  border-radius: 8px;
  background: #0c1a0a;
}

.crop-archive-card-art .crop-icon {
  width: 70px;
  height: 70px;
  border-color: transparent;
  background: transparent;
}

.crop-archive-card-copy {
  grid-area: copy;
  display: grid;
  gap: 5px;
}

.crop-archive-card-copy strong {
  color: #f9ffe9;
  font-size: 18px;
  line-height: 1.15;
}

.crop-archive-card-copy span,
.crop-archive-card-meta {
  color: #94a38f;
  font-size: 13px;
}

.crop-archive-card-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.crop-archive-card-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  color: #e7f7dc;
  font-size: 11px;
  font-weight: 850;
}

.crop-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 220px;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #1a2f16;
  padding-bottom: 18px;
}

.crop-archive-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 0 12px;
}

.crop-archive-search span {
  color: #a7f947;
}

.crop-archive-search .home-icon {
  width: 17px;
  height: 17px;
}

.crop-archive-search input,
.crop-archive-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  color: #e1f2d9;
  padding: 0 12px;
}

.crop-archive-search input {
  min-height: auto;
  border: 0;
  padding: 0;
  outline: 0;
}

.crop-archive-results-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 16px;
  color: #94a38f;
  font-size: 13px;
}

.crop-archive-results-line strong {
  color: #fffbe7;
}

.view[data-route="crops"] .crop-table-sections {
  gap: 22px;
}

.view[data-route="crops"] .crop-tier-section {
  overflow: hidden;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
}

.view[data-route="crops"] .crop-tier-heading {
  border-bottom: 1px solid #1a2f16;
  background: #10200e;
  padding: 14px 16px;
}

.crop-tier-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crop-tier-orb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #c8cbd3;
  box-shadow: 0 0 0 5px rgba(200, 203, 211, 0.18);
}

.tier-common .crop-tier-orb {
  background: #d8d8e4;
  box-shadow: 0 0 0 5px rgba(216, 216, 228, 0.24);
}

.tier-uncommon .crop-tier-orb {
  background: #63d879;
  box-shadow: 0 0 0 5px rgba(99, 216, 121, 0.18);
}

.tier-rare .crop-tier-orb {
  background: #4ea8ff;
  box-shadow: 0 0 0 5px rgba(78, 168, 255, 0.16);
}

.tier-epic .crop-tier-orb {
  background: #b37bff;
  box-shadow: 0 0 0 5px rgba(179, 123, 255, 0.18);
}

.tier-legendary .crop-tier-orb {
  background: #ffba4a;
  box-shadow: 0 0 0 5px rgba(255, 186, 74, 0.18);
}

.tier-mythic .crop-tier-orb,
.tier-super .crop-tier-orb {
  background: #ff6b8a;
  box-shadow: 0 0 0 5px rgba(255, 107, 138, 0.16);
}

.view[data-route="crops"] .crop-tier-heading h2 {
  color: #fffbe7;
  font-size: 20px;
}

.view[data-route="crops"] .crop-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.view[data-route="crops"] .crop-reference-table {
  min-width: 860px;
}

.view[data-route="crops"] .crop-reference-table th {
  border-color: #1a2f16;
  background: #0c1a0a;
  color: #f9ffe9;
}

.view[data-route="crops"] .crop-reference-table td {
  border-color: #1a2f16;
  background: #061005;
  color: #dbe9d5;
}

.view[data-route="crops"] .crop-reference-table tbody tr:nth-child(even) {
  background: #071307;
}

.view[data-route="crops"] .crop-reference-table tbody tr:nth-child(even) td {
  background: #071307;
}

.view[data-route="crops"] .crop-reference-table td:nth-child(2) a {
  color: #a7f947;
}

.view[data-route="crops"] .crop-icon {
  border-radius: 10px;
}

.crop-model-note {
  color: #94a38f;
  font-size: 12px;
  font-weight: 750;
}

.storage-status {
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #33463a;
  font-size: 13px;
  font-weight: 800;
}

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

.slug-status {
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
}

.slug-status.ok {
  color: var(--leaf-strong);
}

.slug-status.warn {
  color: #76511b;
}

.slug-status.bad {
  color: #8a3425;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-toolbar button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.visual-builder {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 63, 18, 0.62);
  padding: 14px;
}

.visual-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-builder h2 {
  margin: 0 0 4px;
  border: 0;
  padding: 0;
  font-size: 18px;
}

.visual-builder p {
  margin: 0;
}

.image-drop-zone {
  display: grid;
  gap: 4px;
  border: 1px dashed #9ee76c;
  border-radius: 8px;
  background: rgba(158, 231, 108, 0.1);
  padding: 16px;
  color: #f4ffe8;
  cursor: pointer;
}

.image-drop-zone.dragover {
  border-style: solid;
  background: rgba(158, 231, 108, 0.2);
}

.image-drop-zone span {
  color: var(--muted);
  font-size: 13px;
}

.visual-blocks {
  display: grid;
  gap: 12px;
}

.visual-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f3410;
  padding: 12px;
}

.visual-block header {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
}

.visual-block .drag-handle {
  color: var(--leaf-strong);
  font-size: 0;
  font-weight: 900;
  cursor: grab;
}

.visual-block .drag-handle::after {
  content: "Move";
  font-size: 12px;
}

.visual-block input,
.visual-block select,
.visual-block textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: #14220f;
}

.visual-block textarea {
  min-height: 110px;
  resize: vertical;
}

.visual-block button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.visual-block button[data-visual-move] {
  font-size: 0;
}

.visual-block button[data-visual-move]::after {
  font-size: 12px;
}

.visual-block button[data-visual-move="up"]::after {
  content: "Up";
}

.visual-block button[data-visual-move="down"]::after {
  content: "Down";
}

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

.block-library button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.media-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.media-picker.empty {
  display: block;
}

.media-picker button {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 118px;
  padding: 7px;
  text-align: left;
}

.media-picker img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: contain;
  background: #f6fbf2;
}

.media-picker span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result {
  display: grid;
  gap: 10px;
  min-height: 220px;
  border-radius: 8px;
  background: #14251a;
  color: #f9fff5;
  padding: 20px;
}

.result .value {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  line-height: 1;
}

.result .small {
  color: #b9cdbb;
  font-size: 13px;
}

.calc-accuracy-panel {
  overflow: hidden;
  margin: 14px 0 16px;
  border: 1px solid #b9df8f;
  border-radius: 8px;
  background: #e8f7d8;
  box-shadow: var(--shadow);
}

.calc-accuracy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #103f12;
  padding: 8px 14px;
  color: #fff;
  font-weight: 900;
}

.calc-accuracy-title span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #4ed076;
  color: #063d13;
  font-size: 12px;
}

.calc-accuracy-panel p {
  margin: 0;
  padding: 11px 14px;
  color: #203519;
  font-size: 13px;
  line-height: 1.55;
}

.calc-workbench {
  display: grid;
  gap: 16px;
}

.calc-block-label,
.calc-mini-label {
  color: #b7dca7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calc-mini-label span {
  color: #6f9962;
  font-size: 10px;
}

.calc-search-field {
  display: grid;
  gap: 8px;
  margin-top: -10px;
}

.calc-search-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.calc-search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #123c19;
  padding: 12px 14px;
  color: #f8fff1;
}

.calc-search-field input::placeholder {
  color: #85a77a;
}

.calc-crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 12px;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #123814;
  padding: 12px;
  box-shadow: var(--shadow);
}

.calc-crop-card {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 112px;
  border: 1px solid #3a7342;
  border-radius: 8px;
  background: #0c2c13;
  padding: 10px 8px;
  color: #fff;
  text-align: center;
}

.calc-crop-card:hover,
.calc-crop-card.active {
  border-color: #b4ec72;
  background: #173f19;
  transform: translateY(-1px);
}

.calc-crop-card .crop-icon {
  width: 46px;
  height: 46px;
}

.calc-crop-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-crop-card .tier-pill {
  min-height: 18px;
  padding: 1px 6px;
  font-size: 8px;
}

.calc-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.calc-input-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #163e18;
  padding: 15px 18px;
  box-shadow: var(--shadow);
}

.calc-input-card > span {
  color: #b7dca7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-input-card div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-input-card input {
  width: 92px;
  border: 0;
  border-radius: 7px;
  background: #081f0b;
  padding: 10px 12px;
  color: #f7ffb8;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.calc-input-card small {
  color: #c7e8b9;
  font-weight: 800;
}

.calc-mutation-panel {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #123814;
  padding: 15px;
  box-shadow: var(--shadow);
}

.calc-mutation-panel h2 {
  margin: 0;
  border: 0;
  padding: 0;
}

.calc-mutation-panel .section-heading-row {
  align-items: start;
}

.calc-mutation-panel #calc-reset-mutations {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
}

.calc-mutation-group {
  display: grid;
  gap: 10px;
}

.calc-mutation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-mutation-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #86a2ff;
  border-radius: 999px;
  background: #122a1d;
  padding: 7px 13px;
  color: #eaf5ff;
  font-size: 12px;
}

.calc-mutation-button > .mutation-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.calc-mutation-button.gold {
  border-color: #f6c64b;
  color: #ffe98a;
}

.calc-mutation-button.rainbow {
  border-color: #ff6060;
  color: #fff;
}

.calc-mutation-button.frozen {
  border-color: #8fe8ff;
  color: #c8f6ff;
}

.calc-mutation-button.electric {
  border-color: #a59bff;
  color: #e4ddff;
}

.calc-mutation-button.bloodlit {
  border-color: #ff3e53;
  color: #ffd5dc;
}

.calc-mutation-button.starstruck {
  border-color: #f5d52f;
  color: #fff4a7;
}

.calc-mutation-button.active {
  background: #224f1d;
  box-shadow: inset 0 0 0 1px currentColor;
}

.calc-sell-result {
  position: relative;
  min-height: 155px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  background: #0b3112;
  text-align: center;
}

.calc-sell-result .small {
  color: #a3c596;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-sell-result .value {
  color: #dffbd6;
  text-shadow: 0 0 12px rgba(181, 255, 168, 0.65);
}

.calc-result-icon {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #a17837;
  font-weight: 900;
}

.calc-advanced {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #103713;
  padding: 12px;
}

.calc-advanced summary {
  cursor: pointer;
  color: #d9ffc9;
  font-weight: 900;
}

.calc-advanced .band {
  margin-top: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-basket-section .button-row button,
.calc-basket-section td button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.calc-basket-section td:last-child {
  width: 1%;
  white-space: nowrap;
}

#calc-basket-status {
  min-height: 20px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.view[data-route="calculator"] {
  width: min(100%, 1180px);
}

.view[data-route="calculator"] .page-head {
  margin-bottom: 18px;
}

.calc-accuracy-panel {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  overflow: hidden;
  margin: 16px 0 18px;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.calc-accuracy-title {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mint);
  padding: 14px 16px;
  color: var(--leaf-strong);
  font-weight: 900;
}

.calc-accuracy-title span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 0;
}

.calc-accuracy-title span::after {
  content: "OK";
  font-size: 10px;
  font-weight: 950;
}

.calc-accuracy-panel p {
  margin: 0;
  padding: 14px 16px;
  color: #405047;
  font-size: 13px;
  line-height: 1.55;
}

.calc-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 16px;
  align-items: start;
}

.calc-block-label,
.calc-search-field,
.calc-crop-grid,
.calc-input-row,
.calc-mutation-panel {
  grid-column: 1;
}

.calc-sell-result {
  grid-column: 2;
  grid-row: 1 / span 5;
  position: sticky;
  top: 72px;
}

.calc-advanced {
  grid-column: 1 / -1;
}

.calc-block-label,
.calc-mini-label {
  color: var(--leaf-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calc-mini-label span {
  color: var(--muted);
  font-size: 10px;
}

.calc-search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.calc-search-field input::placeholder {
  color: #8a9a8d;
}

.calc-crop-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  max-height: 360px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.calc-crop-card {
  min-height: 126px;
  border: 1px solid #dbe8dc;
  background: #fbfdf9;
  color: var(--ink);
}

.calc-crop-card:hover,
.calc-crop-card.active {
  border-color: var(--leaf);
  background: var(--mint);
  box-shadow: 0 8px 18px rgba(47, 155, 88, 0.14);
}

.calc-crop-card strong {
  color: var(--ink);
}

.calc-crop-card .tier-pill {
  background: #fff;
}

.calc-input-row {
  gap: 12px;
}

.calc-input-card {
  border: 1px solid var(--line);
  background: #fff;
}

.calc-input-card > span {
  color: var(--muted);
}

.calc-input-card input {
  border: 1px solid var(--line);
  background: #f7faf5;
  color: var(--ink);
}

.calc-input-card small {
  color: var(--leaf-strong);
}

.calc-mutation-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.calc-mutation-panel h2 {
  color: var(--ink);
}

.calc-mutation-panel #calc-reset-mutations {
  background: #f7faf5;
}

.calc-mutation-button {
  border-color: #d6e2d9;
  background: #fff;
  color: #34483b;
}

.calc-mutation-button > .mutation-icon {
  color: var(--leaf-strong);
}

.calc-mutation-button.gold {
  border-color: #d8aa35;
  color: #7a5311;
}

.calc-mutation-button.rainbow {
  border-color: #b88cff;
  color: #59368c;
}

.calc-mutation-button.frozen {
  border-color: #80bce8;
  color: #285d82;
}

.calc-mutation-button.electric {
  border-color: #9e94e8;
  color: #4d438c;
}

.calc-mutation-button.bloodlit {
  border-color: #dc7480;
  color: #8a2430;
}

.calc-mutation-button.starstruck {
  border-color: #d8bd36;
  color: #745f00;
}

.calc-mutation-button.active {
  background: #f1fbec;
  box-shadow: inset 0 0 0 1px currentColor;
}

.calc-sell-result {
  min-height: 360px;
  border: 1px solid #e1d1a9;
  background:
    radial-gradient(circle at top right, rgba(217, 144, 47, 0.22), transparent 36%),
    linear-gradient(160deg, #fffdf6, #f5efe0);
  color: var(--ink);
  text-align: left;
  padding: 22px;
}

.calc-sell-result .small {
  color: #6f6250;
}

.calc-sell-result .value {
  color: #2f2415;
  text-shadow: 0 8px 24px rgba(217, 144, 47, 0.28);
}

.calc-result-icon {
  justify-self: end;
  width: 28px;
  height: 28px;
  background: var(--amber);
  color: #fff8e9;
  font-size: 0;
}

.calc-result-icon::after {
  content: "$";
  font-size: 15px;
}

.calc-sell-result .tag {
  background: rgba(217, 144, 47, 0.12);
  color: #5b421e;
}

.calc-sell-result .tag.hot {
  background: #fff0ed;
  color: #8a3425;
}

.calc-advanced {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calc-advanced summary {
  background: #fff;
  color: var(--leaf-strong);
}

.view[data-route="calculator"] {
  width: min(100%, 1080px);
  padding-top: 58px;
}

.view[data-route="calculator"] .page-head {
  max-width: 690px;
  gap: 10px;
  margin-bottom: 32px;
}

.view[data-route="calculator"] .page-head .eyebrow {
  color: var(--leaf-strong);
  letter-spacing: 0.14em;
}

.view[data-route="calculator"] .page-head h1 {
  color: #12192b;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.08;
}

.view[data-route="calculator"] .page-head p {
  max-width: 670px;
  color: #65748a;
  font-size: 16px;
  line-height: 1.65;
}

.calc-accuracy-panel {
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  margin: 0 0 34px;
  border: 1px solid #d7ecd9;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.calc-accuracy-title {
  background: #f0faf2;
  padding: 20px;
  color: #08451f;
  font-size: 14px;
}

.calc-accuracy-title span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--leaf);
}

.calc-accuracy-panel p {
  padding: 20px 22px;
  color: #0f5c2b;
  font-size: 13px;
  line-height: 1.6;
}

.calc-workbench {
  grid-template-columns: 1fr;
  gap: 28px;
}

.calc-main-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
  gap: 30px;
  align-items: start;
}

.calc-entry-panel {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.calc-block-label {
  color: #8aa0bf;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.calc-search-field {
  position: relative;
  display: block;
}

.calc-search-field > span {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid #93a5bd;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 0;
  pointer-events: none;
}

.calc-search-field > span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #93a5bd;
  transform: rotate(45deg);
}

.calc-search-field input {
  border-color: #d9e4ef;
  border-radius: 12px;
  padding: 15px 16px 15px 44px;
  box-shadow: none;
}

.calc-crop-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
  max-height: 378px;
  border-color: #d9e4ef;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.calc-crop-card {
  min-height: 106px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f7f9fb;
  padding: 10px 8px;
  box-shadow: none;
}

.calc-crop-card:not(.active) img {
  filter: saturate(0.25) contrast(0.9);
  opacity: 0.78;
}

.calc-crop-card:hover,
.calc-crop-card.active {
  border-color: var(--leaf-strong);
  background: #effaf1;
  box-shadow: none;
}

.calc-crop-card strong {
  font-size: 11px;
  line-height: 1.2;
}

.calc-crop-card .tier-pill {
  border: 0;
  background: #e8eef5;
  color: #7f91a8;
  font-size: 9px;
}

.calc-crop-card.active .tier-pill {
  background: var(--leaf);
  color: #fff;
}

.calc-input-row {
  gap: 16px;
}

.calc-input-card {
  border-color: #d9e4ef;
  border-radius: 14px;
  padding: 22px;
  box-shadow: none;
}

.calc-input-card > span {
  color: #8aa0bf;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.calc-input-card div {
  gap: 12px;
}

.calc-input-card input {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fb;
  color: #111827;
  font-size: 26px;
  font-weight: 850;
}

.calc-input-card small {
  color: var(--leaf-strong);
  font-size: 18px;
}

.calc-mutation-panel {
  border-color: #d9e4ef;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 10px rgba(17, 38, 28, 0.04);
}

.calc-mutation-panel .section-heading-row {
  align-items: start;
}

.calc-mutation-panel h2 {
  color: #111827;
  font-size: 22px;
}

.calc-mutation-panel .muted {
  color: #8aa0bf;
}

.calc-mutation-panel #calc-reset-mutations {
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #8aa0bf;
  padding: 8px 12px;
}

.calc-mini-label {
  color: #8aa0bf;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.calc-mini-label span {
  color: #b7c4d5;
  letter-spacing: 0.08em;
}

.calc-mutation-button {
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px 8px 8px;
  font-size: 13px;
}

.calc-mutation-button > .mutation-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.calc-mutation-button.neutral > .mutation-icon {
  background: var(--leaf);
}

.calc-mutation-button.active {
  background: #f8fbff;
}

.calc-sell-result {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-height: 486px;
  border: 1px solid #010d09;
  border-radius: 28px;
  background:
    radial-gradient(circle at 60% 34%, rgba(28, 145, 80, 0.2), transparent 28%),
    linear-gradient(160deg, #062619, #03140e 72%);
  color: #fff;
  text-align: center;
  padding: 30px 28px 28px;
  box-shadow: 0 28px 54px rgba(7, 24, 17, 0.22);
  flex-direction: column;
  align-items: center;
  align-self: start;
  position: sticky;
  top: 82px;
}

.calc-result-icon {
  position: static;
  justify-self: auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #092314;
}

.calc-result-icon::after {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8ce17;
  color: #072214;
  font-size: 22px;
  font-weight: 950;
}

.calc-sell-result .small {
  color: var(--leaf);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.calc-sell-result .value {
  margin: 10px 0 22px;
  color: #fff;
  font-size: clamp(46px, 6vw, 58px);
  line-height: 1;
  text-shadow: none;
}

.calc-sell-result .value span {
  display: inline-block;
  margin-left: 4px;
  color: #8391a8;
  font-size: 18px;
  vertical-align: middle;
}

.calc-sell-result .tag-row {
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.calc-sell-result .tag,
.calc-sell-result .tag.hot,
.calc-sell-result .tag.warn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.calc-sell-result .tag.hot {
  border-color: rgba(47, 155, 88, 0.35);
  background: rgba(47, 155, 88, 0.24);
}

.calc-result-breakdown {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0 0;
  color: #c2ccda;
  font-size: 13px;
  line-height: 1.45;
}

.calc-result-breakdown strong {
  color: #7f8da5;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calc-result-breakdown b {
  color: #fff;
}

.calc-result-copy {
  width: 100%;
  margin-top: 30px;
  border: 0;
  border-radius: 10px;
  background: #178945;
  color: #fff;
  padding: 17px 18px;
  font-weight: 900;
}

.calc-result-copy:hover {
  background: var(--leaf);
  box-shadow: 0 14px 26px rgba(23, 137, 69, 0.24);
}

.calc-advanced {
  grid-column: 1;
  border-color: #d9e4ef;
  border-radius: 14px;
  box-shadow: none;
  margin-top: 28px;
}

.calc-advanced summary {
  min-height: 64px;
  color: #111827;
  font-size: 17px;
}

.calc-advanced summary::before {
  content: "+";
  margin-right: 12px;
  color: var(--leaf-strong);
}

.note-item {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.note-item:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.primary {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #11220e;
  font-weight: 800;
}

.danger {
  border-color: #e4a195;
  color: #8a3425;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 86px);
  overflow: auto;
}

.admin-sidebar-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-layout .field label {
  color: #d8f5c7;
}

.admin-editor-panel {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(440px, 0.9fr);
  gap: 14px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.page-editor-form {
  grid-column: 1;
  display: grid;
  gap: 14px;
}

.editor-topbar,
.editor-card,
.admin-live-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  box-shadow: var(--shadow);
}

.editor-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.editor-topbar h2 {
  margin: 0 0 4px;
  border: 0;
  padding: 0;
  color: #fff8d7;
  font-size: 22px;
}

.editor-topbar p {
  margin: 0;
}

.editor-card {
  display: grid;
  gap: 12px;
}

.editor-more {
  border: 1px solid rgba(158, 231, 108, 0.35);
  border-radius: 8px;
  padding: 10px;
}

.editor-more summary,
.admin-advanced summary {
  cursor: pointer;
  color: #d9ffc9;
  font-weight: 900;
}

.editor-more .field-grid {
  margin-top: 12px;
}

.body-card > label {
  color: #d8f5c7;
  font-size: 13px;
  font-weight: 800;
}

.body-card textarea {
  min-height: 520px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
}

.inline-image-tools {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.admin-message {
  grid-column: 1;
  margin-top: 0;
  min-height: 22px;
}

.autosave-recovery,
.page-audit,
.publish-brief,
.revision-panel {
  grid-column: 1;
}

.admin-live-preview {
  grid-column: 2;
  grid-row: 1 / span 8;
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 86px);
  overflow: auto;
  background: var(--paper);
}

.admin-live-preview .preview-shell > .muted {
  margin: 0 0 14px;
  color: #d8f5c7;
  font-size: 12px;
  font-weight: 850;
}

.admin-live-preview .reader-article {
  max-width: none;
  margin: 0;
}

.admin-live-preview .reader-head {
  margin-bottom: 18px;
}

.admin-live-preview .reader-head h1 {
  font-size: 30px;
}

.admin-live-preview .reader-head h1 span {
  width: 28px;
  height: 28px;
  font-size: 22px;
}

.admin-live-preview .reader-contents {
  width: 100%;
  margin-bottom: 18px;
}

.admin-live-preview .markdown h2 {
  font-size: 24px;
}

.admin-live-preview .markdown h3 {
  font-size: 18px;
}

@media (max-width: 1240px) {
  .view[data-route="admin"] {
    width: min(100%, 1040px);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-editor-panel {
    grid-template-columns: minmax(460px, 1fr) minmax(360px, 0.85fr);
  }
}

@media (max-width: 960px) {
  .admin-editor-panel {
    grid-template-columns: 1fr;
  }

  .admin-live-preview {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
  }
}

.admin-advanced {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-advanced-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-advanced-body > button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.admin-page-filters {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.admin-page-filters .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-page-count {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

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

.page-list button {
  width: 100%;
  padding: 10px;
  text-align: left;
}

.source-draft-queue,
.source-change-inbox,
.plant-builder {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfff8;
  padding: 12px;
}

.source-draft-queue .section-heading-row,
.source-change-inbox .section-heading-row,
.plant-builder .section-heading-row {
  margin-bottom: 0;
}

.source-draft-queue h2,
.source-change-inbox h2,
.plant-builder h2 {
  margin: 0;
  font-size: 18px;
}

.plant-builder button {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  font-weight: 800;
}

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

.source-queue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.source-queue-card p {
  margin: 4px 0 8px;
  font-size: 12px;
}

.source-queue-card button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.source-queue-card > .tag {
  align-self: start;
  justify-self: end;
}

.autosave-recovery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid #e4d19a;
  border-radius: 8px;
  background: #fff9e8;
  padding: 12px;
}

.autosave-recovery div:first-child {
  display: grid;
  gap: 3px;
}

.autosave-recovery button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.page-audit {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfff8;
  padding: 12px;
}

.page-audit h2 {
  margin: 0;
  font-size: 18px;
}

.audit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.audit-item {
  display: grid;
  gap: 3px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.audit-item strong {
  font-size: 13px;
}

.audit-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.audit-item.ok {
  border-color: #b8d6b8;
  background: #f3fbef;
}

.audit-item.warn {
  border-color: #e4d19a;
  background: #fff9e8;
}

.audit-item.bad {
  border-color: #e4a195;
  background: #fff0ed;
}

.publish-brief {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.publish-brief h2 {
  margin: 0;
  font-size: 18px;
}

.publish-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

.publish-route-card,
.search-snippet,
.publish-brief-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfff8;
  padding: 12px;
}

.publish-route-card {
  display: grid;
  gap: 4px;
}

.publish-route-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

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

.publish-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfff8;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.publish-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.search-snippet {
  display: grid;
  gap: 4px;
}

.search-snippet strong {
  color: #1a0dab;
  font-size: 16px;
  line-height: 1.3;
}

.search-snippet span {
  color: #1b6f39;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.search-snippet p {
  margin: 0;
  color: var(--muted);
}

.publish-brief-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
}

.publish-brief-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.launch-radar {
  display: grid;
  gap: 16px;
}

.launch-radar-grid,
.launch-radar-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.radar-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfff8;
  padding: 12px;
  color: inherit;
}

.radar-card strong {
  font-size: 18px;
}

.radar-card span:last-child,
.radar-list span {
  color: var(--muted);
}

.launch-radar h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.radar-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radar-list li {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.radar-list a {
  font-weight: 800;
}

.page-index-controls {
  display: grid;
  gap: 12px;
}

.page-index-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-index-results,
.page-index-section,
.page-index-list {
  display: grid;
  gap: 10px;
}

.page-index-section {
  margin-top: 18px;
}

.page-index-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: inherit;
}

.page-index-link > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-index-link strong,
.page-index-link span span {
  overflow-wrap: anywhere;
}

.page-index-link span span {
  color: var(--muted);
}

.revision-panel {
  margin-top: 18px;
}

.revision-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

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

.revision-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.revision-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.markdown-table {
  margin: 14px 0 18px;
}

.markdown {
  max-width: 880px;
  line-height: 1.75;
}

.reader-markdown {
  max-width: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}

.hero-media {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.hero-media.entity-hero-media {
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  min-height: 190px;
  padding: 18px;
}

.hero-media.entity-hero-media img {
  width: auto;
  height: auto;
  max-width: min(100%, 260px);
  max-height: 260px;
  object-fit: contain;
  background: transparent;
}

.hero-media.crop-hero-media {
  width: min(100%, 560px);
}

.hero-media.crop-hero-media img {
  max-width: min(100%, 420px);
  max-height: 320px;
}

.hero-media.pet-hero-media img {
  max-width: min(100%, 180px);
  max-height: 180px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.media-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f6fbf2;
}

.media-grid figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.markdown h2 {
  margin-top: 34px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--leaf-strong);
  font-size: 30px;
}

.markdown h2:first-child {
  margin-top: 0;
}

.markdown h3 {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.markdown ul {
  padding-left: 22px;
}

.markdown li {
  margin: 8px 0;
}

.markdown a {
  color: var(--leaf-strong);
  font-weight: 850;
}

.markdown blockquote {
  margin: 18px 0;
  border-left: 4px solid var(--leaf);
  background: var(--mint);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 700;
}

.markdown-image {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.markdown-image img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #f6fbf2;
}

.markdown-image.image-center {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.markdown-image.image-square {
  max-width: 380px;
  margin-right: auto;
  margin-left: auto;
}

.markdown-image.image-custom {
  max-width: var(--image-width, 70%);
  margin-right: auto;
  margin-left: auto;
}

.markdown-image.image-square img {
  aspect-ratio: 1 / 1;
  max-height: none;
  object-fit: cover;
}

.markdown-image figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-live-preview .preview-editable-image {
  position: relative;
  cursor: grab;
  outline: 1px dashed rgba(169, 243, 111, 0.75);
  outline-offset: 4px;
}

.admin-live-preview .preview-editable-image.dragging {
  cursor: grabbing;
  opacity: 0.6;
}

.admin-live-preview .preview-editable-image.resizing {
  cursor: nwse-resize;
}

.preview-image-tools {
  pointer-events: none;
}

.preview-image-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 1px solid rgba(169, 243, 111, 0.75);
  border-radius: 999px;
  background: rgba(12, 55, 12, 0.9);
  padding: 5px 8px;
  color: #fff8d7;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.preview-resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid #0c370c;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 45%, #0c370c 46% 55%, transparent 56%),
    var(--leaf-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  cursor: nwse-resize;
  pointer-events: auto;
}

.admin-live-preview .markdown [data-markdown-line].drop-before {
  box-shadow: 0 -3px 0 var(--leaf-strong);
}

.admin-live-preview .markdown [data-markdown-line].drop-after {
  box-shadow: 0 3px 0 var(--leaf-strong);
}

.text-large {
  color: #fff8d7;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.55;
}

.text-small {
  color: var(--muted);
  font-size: 13px;
}

.text-center {
  text-align: center;
}

.text-highlight {
  border: 1px solid #9ee76c;
  border-radius: 8px;
  background: rgba(158, 231, 108, 0.12);
  padding: 12px 14px;
  font-weight: 850;
}

.reader-section {
  scroll-margin-top: 70px;
}

.reader-source {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reader-source a {
  color: var(--leaf-strong);
}

.source-line {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.section-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.section-heading-row h2 {
  margin: 0;
}

.section-notes article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.section-notes ul {
  margin: 0;
  padding-left: 20px;
  color: #405047;
  line-height: 1.55;
}

.rail-section {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.rail-section h3 {
  font-size: 13px;
  text-transform: uppercase;
}

.rail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a,
.rail-list li {
  color: #34483b;
  font-size: 14px;
  line-height: 1.35;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  background: rgba(20, 37, 26, 0.36);
  padding: 8vh 18px;
}

.search-dialog {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.search-head h2 {
  margin: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
}

.search-input {
  width: 100%;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.search-results {
  display: grid;
  max-height: 54vh;
  overflow: auto;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
  gap: 10px;
  align-items: stretch;
  margin: 18px 0 10px;
}

.search-page-form input,
.search-page-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: #14220f;
}

.search-page-form button {
  padding: 0 16px;
  font-weight: 800;
}

.search-page-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 4px;
}

.search-result-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(40, 103, 43, 0.16);
  border-radius: 8px;
  background: rgba(40, 103, 43, 0.08);
  color: var(--leaf-strong);
}

.search-result-copy {
  min-width: 0;
}

.search-result-full {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.search-result-more {
  background: #fff;
}

.search-path {
  display: inline-block;
  margin-top: 4px;
  color: var(--leaf-strong);
  font-size: 12px;
  font-weight: 800;
}

.empty {
  border: 1px dashed #b8c6ba;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .topbar {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .crop-archive-hero,
  .crop-archive-toolbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .topbar {
    position: sticky;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
    padding-right: 10px;
  }

  .header-search {
    order: 2;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    margin-left: auto;
  }

  .header-search.is-open,
  .header-search.has-query {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .top-nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    gap: 18px;
    margin-left: 0;
  }

  .header-search-results {
    width: 100%;
    max-height: 320px;
  }

  .header-search-result {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .header-search-result-type {
    display: none;
  }

  .top-link {
    padding: 8px 0;
  }

  .top-link.active::after {
    bottom: 0;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }

  #main-nav {
    display: flex;
    overflow-x: auto;
  }

  .view {
    padding: 20px 14px 44px;
  }

  .crop-archive-hero {
    padding: 22px;
  }

  .crop-archive-hero h1 {
    font-size: 36px;
    overflow-wrap: anywhere;
  }

  .crop-archive-vault {
    min-height: 190px;
  }

  .crop-archive-card-grid {
    grid-template-columns: 1fr;
  }

  .crop-archive-section-head,
  .crop-archive-results-line {
    align-items: flex-start;
  }

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

  .simple-link-card,
  .notice-card,
  .guide-admin-strip {
    grid-template-columns: 1fr;
  }

  .guide-admin-strip {
    align-items: flex-start;
  }

  .stats,
  .split,
  .calc-workbench,
  .calc-input-row,
  .admin-layout,
  .admin-editor-panel,
  .inline-image-tools,
  .field-grid,
  .publish-brief-grid,
  .publish-brief-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-live-preview {
    position: static;
    max-height: none;
  }

  .editor-topbar {
    display: grid;
  }

  .reader-head h1 {
    align-items: flex-start;
    font-size: 30px;
  }

  .reader-contents {
    width: 100%;
  }

  .visual-builder-head,
  .visual-block header {
    grid-template-columns: 1fr;
  }

  .visual-builder-head {
    display: grid;
  }

  .calc-crop-grid {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    max-height: 280px;
    padding: 10px;
  }

  .calc-crop-card {
    min-height: 112px;
    padding: 8px 6px;
  }

  .calc-main-area {
    grid-template-columns: 1fr;
  }

  .calc-mutation-panel .section-heading-row {
    display: grid;
    gap: 10px;
  }

  .calc-input-card {
    padding: 14px;
  }

  .calc-block-label,
  .calc-search-field,
  .calc-crop-grid,
  .calc-input-row,
  .calc-mutation-panel,
  .calc-sell-result,
  .calc-advanced {
    grid-column: 1;
  }

  .calc-sell-result {
    grid-row: auto;
    position: static;
    min-height: 220px;
  }

  .calc-accuracy-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }
}

/* Stitch-inspired homepage */
body[data-route="home"] {
  background: #020a02;
  color: #e1f2d9;
}

body[data-route="home"] .topbar {
  border-color: #21341d;
  background: rgba(2, 10, 2, 0.9);
  backdrop-filter: blur(12px);
}

body[data-route="home"] .brand,
body[data-route="home"] .top-link {
  color: #e1f2d9;
}

body[data-route="home"] .brand-mark {
  background: #a7f947;
  color: #0f2000;
}

body[data-route="home"] .brand strong span,
body[data-route="home"] .top-link:hover,
body[data-route="home"] .top-link.active {
  color: #a7f947;
}

body[data-route="home"] .top-link.active::after {
  background: #a7f947;
}

body[data-route="home"] .site-footer {
  border-color: #21341d;
  background: #020a02;
  color: #71816c;
}

.view[data-route="home"] {
  width: 100%;
  min-height: calc(100vh - 64px);
  margin: 0;
  padding: 0;
  background: #020a02;
  color: #e1f2d9;
}

.home-doc-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-width: 0;
  min-height: calc(100vh - 64px);
}

.home-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: calc(100vh - 64px);
  overflow: auto;
  border-right: 1px solid #21341d;
  background: #020a02;
  padding: 28px 24px;
}

.home-sidebar-title,
.home-kicker,
.home-date,
.home-label {
  color: #768970;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-hero .home-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-kicker-icon {
  width: 15px;
  height: 15px;
  color: #a7f947;
  stroke-width: 2.4;
}

.home-sidebar nav {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.home-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #94a38f;
  font-size: 13px;
  font-weight: 800;
}

.home-sidebar a:hover,
.home-sidebar a.active {
  background: rgba(164, 211, 148, 0.12);
  color: #a7f947;
}

.home-sidebar-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  background: rgba(164, 211, 148, 0.08);
  color: #a4d394;
}

.home-sidebar a:hover .home-sidebar-icon,
.home-sidebar a.active .home-sidebar-icon {
  background: rgba(167, 249, 71, 0.16);
  color: #a7f947;
}

.home-sidebar-icon .home-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.35;
}

.home-sidebar-note {
  display: grid;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid #21341d;
  padding-top: 18px;
}

.home-sidebar-note-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.12);
  color: #a7f947;
}

.home-sidebar-note-icon .home-icon {
  width: 18px;
  height: 18px;
}

.home-sidebar-note strong {
  color: #f9ffe9;
  font-size: 14px;
}

.home-sidebar-note span {
  color: #94a38f;
  font-size: 12px;
  line-height: 1.6;
}

.home-content {
  width: min(100%, 1280px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 56px clamp(24px, 4vw, 56px) 88px;
}

.home-hero > div {
  width: min(100%, 920px);
  min-width: 0;
}

.home-section,
.home-quick-links,
.home-lower-grid {
  min-width: 0;
}

.home-hero {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-bottom: 56px;
  text-align: center;
}

.home-hero h1 {
  max-width: none;
  margin: 12px 0 18px;
  color: #f9ffe9;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 950;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.home-hero p {
  max-width: 690px;
  margin: 0 auto;
  color: #94a38f;
  font-size: 17px;
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid #21341d;
  border-radius: 8px;
  background: transparent;
  padding: 0 22px;
  color: #e1f2d9;
  font-size: 13px;
  font-weight: 900;
}

.home-button-icon,
.home-button-arrow {
  width: 16px;
  height: 16px;
}

.home-button-arrow {
  margin-left: 2px;
  opacity: 0.72;
}

.home-button:hover {
  border-color: #a7f947;
  background: #0c1a0a;
  color: #a7f947;
}

.home-button.primary {
  border-color: #a7f947;
  background: #a7f947;
  color: #0f2000;
}

.home-button.primary:hover {
  background: #c8ff7a;
  color: #0f2000;
}

.home-quick-links {
  display: flex;
  gap: 34px;
  margin-bottom: 60px;
  overflow-x: auto;
  border-block: 1px solid #21341d;
  padding: 22px 4px;
  scrollbar-width: thin;
}

.home-quick-links a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: #94a38f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-quick-links a:hover {
  color: #a7f947;
}

.home-section {
  margin-bottom: 64px;
}

.home-section-head {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.home-section-head::after {
  content: "";
  height: 1px;
  background: #21341d;
}

.home-section-head.compact {
  grid-template-columns: auto minmax(80px, 1fr);
}

.home-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
  color: #f9ffe9;
  font-size: 25px;
}

.home-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a7f947;
  font-size: 13px;
  font-weight: 900;
}

.home-heading-icon {
  width: 22px;
  height: 22px;
  color: #a7f947;
  stroke-width: 2.2;
}

.home-link-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.home-topic-card {
  display: grid;
  align-content: start;
  min-height: 150px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 20px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.home-topic-card:hover {
  transform: translateY(-2px);
  border-color: #a7f947;
  background: #0c1a0a;
}

.home-topic-card strong {
  margin-top: 14px;
  color: #e1f2d9;
  font-size: 14px;
}

.home-topic-card > span:last-child {
  margin-top: 7px;
  color: #94a38f;
  font-size: 12px;
  line-height: 1.45;
}

.home-topic-symbol {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #10200e;
  color: #a7f947;
  font-size: 12px;
  font-weight: 950;
}

.home-topic-symbol .home-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.home-topic-symbol.gold {
  background: rgba(255, 186, 74, 0.12);
  color: #feba4a;
}

.home-topic-symbol.mint {
  background: rgba(164, 211, 148, 0.12);
  color: #a4d394;
}

.home-topic-symbol.red {
  background: rgba(255, 180, 171, 0.12);
  color: #ffb4ab;
}

.home-topic-symbol.blue {
  background: rgba(153, 199, 255, 0.12);
  color: #99c7ff;
}

.home-topic-symbol.steel {
  background: rgba(225, 242, 217, 0.08);
  color: #e1f2d9;
}

.home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 44px;
}

.home-timeline {
  display: grid;
  border-left: 1px solid #21341d;
}

.home-timeline-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 0 0 34px 28px;
  color: #94a38f;
}

.home-timeline-dot {
  position: absolute;
  top: 6px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #414a36;
}

.home-timeline-dot.fresh {
  background: #a7f947;
}

.home-timeline-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(164, 211, 148, 0.1);
  color: #a7f947;
}

.home-timeline-icon .home-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.3;
}

.home-timeline-item strong {
  color: #f9ffe9;
  font-size: 18px;
}

.home-label {
  width: max-content;
  border-radius: 999px;
  background: rgba(164, 211, 148, 0.12);
  padding: 3px 8px;
  color: #a4d394;
  font-size: 10px;
}

.home-timeline-item > span:last-child {
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
}

.home-media-card {
  overflow: hidden;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 12px;
}

.home-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.25s ease;
}

.home-media-card:hover img {
  filter: grayscale(0);
}

.home-media-body {
  display: grid;
  gap: 16px;
  padding: 22px 12px 10px;
}

.home-media-body div {
  display: grid;
  gap: 6px;
}

.home-media-body strong {
  color: #f9ffe9;
}

.home-media-body span:not(.home-topic-symbol) {
  color: #94a38f;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .home-doc-shell {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
    display: none;
  }

  .home-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-route="home"] .topbar {
    align-items: center;
  }

  .home-content {
    overflow-x: hidden;
    padding: 38px 14px 62px;
  }

  .home-hero {
    min-height: 260px;
    margin-bottom: 38px;
    padding: 24px 16px;
  }

  .home-hero > div,
  .home-hero p,
  .home-actions {
    width: 100%;
    max-width: 100%;
  }

  .home-hero h1 {
    font-size: 28px;
    line-height: 1;
    word-break: break-word;
  }

  .home-hero p {
    max-width: 30ch;
    font-size: 16px;
    line-height: 1.6;
  }

  .home-actions,
  .home-lower-grid,
  .home-section-head {
    grid-template-columns: 1fr;
  }

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

  .home-section-head,
  .home-section-head.compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-section-head::after {
    display: none;
  }

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

  .home-topic-card {
    min-height: 138px;
    padding: 16px;
  }

  .home-lower-grid {
    gap: 18px;
  }
}

/* Homepage-style calculator */
body[data-route="calculator"] {
  background: #020a02;
  color: #e1f2d9;
}

body[data-route="calculator"] .topbar {
  border-color: #21341d;
  background: rgba(2, 10, 2, 0.9);
  backdrop-filter: blur(12px);
}

body[data-route="calculator"] .brand,
body[data-route="calculator"] .top-link {
  color: #e1f2d9;
}

body[data-route="calculator"] .brand-mark {
  background: #a7f947;
  color: #0f2000;
}

body[data-route="calculator"] .brand strong span,
body[data-route="calculator"] .top-link:hover,
body[data-route="calculator"] .top-link.active {
  color: #a7f947;
}

body[data-route="calculator"] .top-link.active::after {
  background: #a7f947;
}

body[data-route="calculator"] .site-footer {
  border-color: #21341d;
  background: #020a02;
  color: #71816c;
}

.view[data-route="calculator"] {
  width: min(100%, 1080px);
  background: #020a02;
  color: #e1f2d9;
  padding-top: 56px;
}

.view[data-route="calculator"] .page-head h1 {
  color: #f9ffe9;
}

.view[data-route="calculator"] .page-head p,
.view[data-route="calculator"] .lead,
.view[data-route="calculator"] .muted {
  color: #94a38f;
}

.view[data-route="calculator"] .page-head .eyebrow,
.view[data-route="calculator"] .calc-block-label,
.view[data-route="calculator"] .calc-mini-label {
  color: #768970;
}

.view[data-route="calculator"] .calc-mini-label span {
  color: #5f7059;
}

.view[data-route="calculator"] .calc-accuracy-panel,
.view[data-route="calculator"] .calc-crop-grid,
.view[data-route="calculator"] .calc-input-card,
.view[data-route="calculator"] .calc-mutation-panel,
.view[data-route="calculator"] .calc-advanced {
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  box-shadow: none;
}

.view[data-route="calculator"] .calc-accuracy-panel {
  overflow: hidden;
}

.view[data-route="calculator"] .calc-accuracy-title {
  background: #10200e;
  color: #f9ffe9;
}

.view[data-route="calculator"] .calc-accuracy-title span {
  background: #a7f947;
  color: #0f2000;
}

.view[data-route="calculator"] .calc-accuracy-panel p {
  color: #94a38f;
}

.view[data-route="calculator"] .calc-search-field > span {
  border-color: #768970;
}

.view[data-route="calculator"] .calc-search-field > span::after {
  background: #768970;
}

.view[data-route="calculator"] .calc-search-field input,
.view[data-route="calculator"] .calc-input-card input,
.view[data-route="calculator"] .calc-advanced input,
.view[data-route="calculator"] .calc-advanced select {
  border: 1px solid #1a2f16;
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="calculator"] .calc-search-field input::placeholder {
  color: #5f7059;
}

.view[data-route="calculator"] .calc-crop-card {
  border: 1px solid #1a2f16;
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="calculator"] .calc-crop-card:hover,
.view[data-route="calculator"] .calc-crop-card.active {
  border-color: #a7f947;
  background: #0c1a0a;
}

.view[data-route="calculator"] .calc-crop-card strong,
.view[data-route="calculator"] .calc-mutation-panel h2 {
  color: #f9ffe9;
}

.view[data-route="calculator"] .calc-crop-card .crop-icon {
  border-color: rgba(167, 249, 71, 0.18);
  background: rgba(167, 249, 71, 0.08);
}

.view[data-route="calculator"] .calc-crop-card .tier-pill {
  background: #10200e;
  color: #94a38f;
}

.view[data-route="calculator"] .calc-crop-card.active .tier-pill {
  background: #a7f947;
  color: #0f2000;
}

.view[data-route="calculator"] .calc-input-card > span {
  color: #768970;
}

.view[data-route="calculator"] .calc-input-card small {
  color: #a7f947;
}

.view[data-route="calculator"] .calc-mutation-panel #calc-reset-mutations,
.view[data-route="calculator"] .calc-advanced button {
  border: 1px solid #1a2f16;
  background: #10200e;
  color: #a7f947;
}

.view[data-route="calculator"] .calc-mutation-button {
  border: 1px solid #1a2f16;
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="calculator"] .calc-mutation-button.active {
  background: #0c1a0a;
  box-shadow: inset 0 0 0 1px currentColor;
}

.view[data-route="calculator"] .calc-sell-result {
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background:
    radial-gradient(circle at 60% 34%, rgba(167, 249, 71, 0.12), transparent 28%),
    linear-gradient(160deg, #061005, #020a02 72%);
  box-shadow: none;
}

.view[data-route="calculator"] .calc-sell-result .small {
  color: #a7f947;
}

.view[data-route="calculator"] .calc-result-copy {
  border-radius: 8px;
  background: #a7f947;
  color: #0f2000;
}

.view[data-route="calculator"] .calc-result-copy:hover {
  background: #c8ff7a;
  box-shadow: none;
}

.view[data-route="calculator"] .calc-advanced summary {
  background: transparent;
  color: #f9ffe9;
}

.view[data-route="calculator"] .calc-advanced summary::before {
  color: #a7f947;
}

.view[data-route="calculator"] .calc-advanced .band {
  border-top: 1px solid #1a2f16;
  padding-top: 18px;
}

.view[data-route="calculator"] .calc-advanced h2 {
  border-color: #21341d;
  color: #f9ffe9;
}

.view[data-route="calculator"] .calc-advanced .tag {
  border-color: #1a2f16;
  background: #10200e;
  color: #a7f947;
}

.view[data-route="calculator"] .calc-advanced .table-wrap {
  border-color: #1a2f16;
  background: #020a02;
}

.view[data-route="calculator"] .calc-advanced table th {
  background: #10200e;
  color: #f9ffe9;
}

.view[data-route="calculator"] .calc-advanced table td {
  border-color: #1a2f16;
  color: #d9e9d1;
}

.view[data-route="calculator"] .calc-advanced table tbody tr:nth-child(even) {
  background: #061005;
}

.view[data-route="calculator"] .empty {
  border-color: #1a2f16;
  color: #94a38f;
}

@media (max-width: 820px) {
  body[data-route="calculator"] {
    overflow-x: hidden;
  }

  .view[data-route="calculator"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 38px 14px 62px;
  }

  .view[data-route="calculator"] .page-head,
  .view[data-route="calculator"] .calc-workbench,
  .view[data-route="calculator"] .calc-main-area,
  .view[data-route="calculator"] .calc-entry-panel,
  .view[data-route="calculator"] .calc-accuracy-panel,
  .view[data-route="calculator"] .calc-search-field,
  .view[data-route="calculator"] .calc-crop-grid,
  .view[data-route="calculator"] .calc-input-row,
  .view[data-route="calculator"] .calc-mutation-panel,
  .view[data-route="calculator"] .calc-sell-result,
  .view[data-route="calculator"] .calc-advanced {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px);
    min-width: 0;
  }

  .view[data-route="calculator"] .calc-accuracy-panel > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .view[data-route="calculator"] .calc-accuracy-panel p {
    max-width: 30ch;
  }

  .view[data-route="calculator"] .page-head h1 {
    max-width: 100%;
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .view[data-route="calculator"] .page-head p {
    max-width: 31ch;
  }

  .view[data-route="calculator"] .calc-accuracy-panel,
  .view[data-route="calculator"] .calc-main-area {
    grid-template-columns: 1fr;
  }

  .view[data-route="calculator"] .calc-crop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: hidden;
    padding: 10px;
  }

  .view[data-route="calculator"] .calc-crop-card {
    min-width: 0;
  }

  .view[data-route="calculator"] .calc-sell-result {
    position: static;
    min-height: 300px;
  }
}

/* Homepage-style public pages */
body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) {
  background: #020a02;
  color: #e1f2d9;
}

body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .topbar {
  border-color: #21341d;
  background: rgba(2, 10, 2, 0.9);
  backdrop-filter: blur(12px);
}

body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .brand,
body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .top-link {
  color: #e1f2d9;
}

body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .brand-mark {
  background: #a7f947;
  color: #0f2000;
}

body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .brand strong span,
body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .top-link:hover,
body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .top-link.active {
  color: #a7f947;
}

body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .top-link.active::after {
  background: #a7f947;
}

body:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .site-footer {
  border-color: #21341d;
  background: #020a02;
  color: #71816c;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) {
  background: #020a02;
  color: #e1f2d9;
  padding-top: 56px;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) h1,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-head h1,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) h3,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) strong {
  color: #f9ffe9;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-head h1 span {
  display: none;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) h2 {
  border-color: #21341d;
  color: #f9ffe9;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .eyebrow,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .breadcrumbs a,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) a,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .guide-card-actions a,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-contents a {
  color: #a7f947;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .lead,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .muted,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) p,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) li,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .breadcrumbs,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .guide-card p,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .simple-link-card span,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .fact-card span,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .card span,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-markdown,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-section,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .source-line {
  color: #94a38f;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .stat,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .guide-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .simple-link-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .fact-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .panel,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .article-outline,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-contents,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .wiki-category-grid a,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .wiki-category-grid button,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .page-index-link,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .radar-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .source-queue-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .publish-route-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .notice-card,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .empty {
  border-color: #1a2f16;
  background: #061005;
  color: #e1f2d9;
  box-shadow: none;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .card:hover,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .guide-card:hover,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .simple-link-card:hover,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .page-index-link:hover,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .radar-card:hover {
  border-color: #a7f947;
  background: #0c1a0a;
  box-shadow: none;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .guide-admin-strip,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .launch-radar,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .source-draft-queue,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .source-change-inbox {
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  box-shadow: none;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .hero-media,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .media-grid figure,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .search-dialog,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .search-result {
  border-color: #1a2f16;
  background: #061005;
  color: #e1f2d9;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .media-grid img {
  background: #020a02;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .guide-card-band {
  background: #10200e;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .tag,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .tier-pill {
  border: 1px solid #1a2f16;
  background: #10200e;
  color: #a7f947;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .tag.warn {
  border-color: rgba(255, 186, 74, 0.3);
  background: rgba(255, 186, 74, 0.12);
  color: #feba4a;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .tag.ok {
  border-color: rgba(167, 249, 71, 0.3);
  background: rgba(167, 249, 71, 0.12);
  color: #a7f947;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .tag.bad,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .tag.hot {
  border-color: rgba(255, 180, 171, 0.3);
  background: rgba(255, 180, 171, 0.12);
  color: #ffb4ab;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .table-wrap {
  border-color: #1a2f16;
  background: #020a02;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) th {
  background: #10200e;
  color: #f9ffe9;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) td {
  border-color: #1a2f16;
  color: #d9e9d1;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) tbody tr:nth-child(even) {
  background: #061005;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) input,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) select,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) textarea {
  border-color: #1a2f16;
  background: #020a02;
  color: #e1f2d9;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) button,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .button {
  border-color: #1a2f16;
  background: #10200e;
  color: #a7f947;
  box-shadow: none;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) button:hover,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .button:hover {
  border-color: #a7f947;
  background: #0c1a0a;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .primary {
  border-color: #a7f947;
  background: #a7f947;
  color: #0f2000;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .thumb,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .crop-icon {
  border-color: rgba(167, 249, 71, 0.18);
  background: rgba(167, 249, 71, 0.08);
  color: #a7f947;
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-markdown h2,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-markdown h3,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-section h2,
.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-section h3 {
  border-color: #21341d;
  color: #a7f947;
}

@media (max-width: 820px) {
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 38px 14px 62px;
  }

  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) > *,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-article,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-head,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-markdown,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-section,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .page-head,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .stats,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .page-head h1,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .reader-head h1 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) p,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) li,
  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .hero-media img {
    max-height: 260px;
  }
}

.view:not([data-route="home"]):not([data-route="crops"]):not([data-route="calculator"]):not([data-route="admin"]) .hero-media.pet-hero-media img {
  width: auto;
  height: auto;
  max-width: min(100%, 180px);
  max-height: 180px;
  object-fit: contain;
}

.pet-article {
  --pet-accent: #a7f947;
  --pet-accent-soft: rgba(167, 249, 71, 0.12);
  display: grid;
  gap: 22px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.pet-tier-common {
  --pet-accent: #a7f947;
  --pet-accent-soft: rgba(167, 249, 71, 0.12);
}

.pet-tier-uncommon {
  --pet-accent: #76f0bc;
  --pet-accent-soft: rgba(118, 240, 188, 0.12);
}

.pet-tier-rare {
  --pet-accent: #6bbcff;
  --pet-accent-soft: rgba(107, 188, 255, 0.12);
}

.pet-tier-legendary {
  --pet-accent: #f6cf52;
  --pet-accent-soft: rgba(246, 207, 82, 0.12);
}

.pet-tier-mythic {
  --pet-accent: #c68cff;
  --pet-accent-soft: rgba(198, 140, 255, 0.14);
}

.pet-tier-super {
  --pet-accent: #ff8f6b;
  --pet-accent-soft: rgba(255, 143, 107, 0.14);
}

.pet-article .breadcrumbs {
  margin: 0;
}

.pet-article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 5vw, 64px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #1a2f16;
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 22%, var(--pet-accent-soft), transparent 34%),
    linear-gradient(135deg, #061005, #020a02 74%);
  padding: clamp(24px, 5vw, 56px);
}

.pet-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(167, 249, 71, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 78%, transparent);
}

.pet-article-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 320px;
}

.pet-kicker {
  width: max-content;
  color: var(--pet-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pet-article .pet-article-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fffbe7;
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0;
  line-height: 0.94;
}

.pet-article-copy p {
  max-width: 680px;
  margin: 0;
  color: #b7c9af;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.pet-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pet-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(167, 249, 71, 0.18);
  border-radius: 999px;
  background: rgba(167, 249, 71, 0.08);
  color: #e7f8de;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 850;
}

.pet-specimen-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid color-mix(in srgb, var(--pet-accent) 38%, #1a2f16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 38%, var(--pet-accent-soft), transparent 48%),
    linear-gradient(180deg, #0b1909, #030a03);
  padding: 24px;
}

.pet-specimen-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--pet-accent-soft), transparent 66%);
  filter: blur(4px);
}

.pet-specimen-image {
  position: relative;
  display: grid;
  place-items: center;
  width: min(72vw, 230px);
  aspect-ratio: 1;
}

.pet-specimen-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 170px);
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
}

.pet-image-placeholder {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(167, 249, 71, 0.24);
  border-radius: 22px;
  background: #10200e;
  color: var(--pet-accent);
  font-size: 34px;
  font-weight: 950;
}

.pet-specimen-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(167, 249, 71, 0.16);
  border-radius: 10px;
  background: rgba(2, 10, 2, 0.76);
  padding: 10px 12px;
}

.pet-specimen-label span {
  color: #94a38f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pet-specimen-label strong {
  color: #f9ffe9;
  text-align: right;
}

.pet-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pet-fact-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  border: 1px solid #1a2f16;
  border-radius: 10px;
  background: #061005;
  padding: 18px;
}

.pet-fact-grid span,
.pet-note-stack span {
  color: var(--pet-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pet-fact-grid strong {
  color: #f9ffe9;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
}

.pet-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
}

.pet-field-notes,
.pet-side-panel {
  border: 1px solid #1a2f16;
  border-radius: 12px;
  background: #061005;
  padding: clamp(18px, 3vw, 26px);
}

.pet-field-notes h2,
.pet-side-panel h2 {
  margin: 0;
  border: 0;
  padding: 0;
}

.pet-note-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pet-note-stack article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(167, 249, 71, 0.14);
  border-radius: 10px;
  background: #020a02;
  padding: 16px;
}

.pet-note-stack p {
  margin: 0;
  color: #c9d8c2;
  line-height: 1.65;
}

.pet-side-panel ul {
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.pet-side-panel li {
  color: #c9d8c2;
  line-height: 1.55;
}

.pet-article .related-section {
  margin: 0;
}

@media (max-width: 900px) {
  .pet-article {
    gap: 16px;
  }

  .pet-article-hero,
  .pet-article-layout {
    grid-template-columns: 1fr;
  }

  .pet-article-copy {
    min-height: 0;
  }

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

@media (max-width: 560px) {
  .pet-article-hero {
    padding: 22px;
  }

  .pet-article .pet-article-copy h1 {
    font-size: 42px;
  }

  .pet-fact-grid {
    grid-template-columns: 1fr;
  }

  .pet-specimen-card {
    min-height: 260px;
  }
}

/* Stitch-inspired codes archive */
body[data-route="codes"] {
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="codes"] {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #020a02;
  color: #e1f2d9;
  padding: 54px clamp(20px, 4vw, 48px) 88px;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.view[data-route="codes"] > * {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.codes-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-bottom: 1px solid #1a2f16;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 42px);
}

.codes-hero-copy {
  display: grid;
  gap: 14px;
}

.codes-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #a7f947;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.view[data-route="codes"] .codes-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fffbe7;
  font-size: clamp(42px, 6.4vw, 82px);
  letter-spacing: 0;
  line-height: 0.96;
}

.codes-hero p {
  max-width: 620px;
  margin: 0;
  color: #b7c9af;
  font-size: 17px;
  line-height: 1.65;
}

.codes-feature-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid #274c18;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 249, 71, 0.13), transparent 48%),
    #061005;
  padding: 24px;
}

.codes-feature-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(167, 249, 71, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

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

.codes-feature-panel > span,
.code-vault-label {
  color: #94a38f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.codes-feature-panel code {
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(167, 249, 71, 0.22);
  border-radius: 8px;
  background: #0c1a0a;
  color: #a7f947;
  padding: 10px 12px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: 0;
}

.codes-section {
  margin: 38px auto;
}

.view[data-route="codes"] .section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1a2f16;
  padding-bottom: 14px;
}

.view[data-route="codes"] .section-heading-row h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: #fffbe7;
  font-size: 28px;
  letter-spacing: 0;
}

.view[data-route="codes"] .section-heading-row p {
  max-width: 620px;
  margin: 6px 0 0;
  color: #94a38f;
  font-size: 14px;
  line-height: 1.55;
}

.view[data-route="codes"] .section-heading-row .tag {
  flex: 0 0 auto;
}

.code-vault-grid {
  display: grid;
  gap: 14px;
}

.code-vault-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  border: 1px solid #1d3a17;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(167, 249, 71, 0.08), transparent 48%),
    #061005;
  padding: 20px;
}

.code-vault-card.active:first-child {
  border-color: #8de83d;
}

.code-vault-main {
  display: grid;
  gap: 10px;
}

.code-vault-main code {
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #a7f947;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
}

.code-vault-main p {
  max-width: 620px;
  margin: 0;
  color: #cfe4c8;
  font-size: 15px;
  line-height: 1.55;
}

.code-vault-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 170px;
}

.code-vault-side > span:not(.code-status-pill) {
  display: grid;
  gap: 4px;
  color: #dbe9d5;
  font-size: 14px;
  text-align: right;
}

.code-vault-side strong {
  color: #94a38f;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(167, 249, 71, 0.34);
  border-radius: 999px;
  background: rgba(167, 249, 71, 0.13);
  color: #a7f947;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
}

.code-copy-button {
  min-height: 38px;
  border: 1px solid #a7f947;
  border-radius: 8px;
  background: #a7f947;
  color: #0f2000;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 950;
}

.code-copy-button:hover {
  background: #c7ff77;
  box-shadow: none;
}

body[data-route="codes"] .view[data-route="codes"] .code-copy-button {
  border-color: #a7f947;
  background: #a7f947;
  color: #0f2000;
  box-shadow: none;
}

body[data-route="codes"] .view[data-route="codes"] .codes-feature-panel button.code-copy-button,
body[data-route="codes"] .view[data-route="codes"] .code-vault-side button.code-copy-button {
  border-color: #a7f947;
  background: #a7f947;
  color: #0f2000;
  box-shadow: none;
}

body[data-route="codes"] .view[data-route="codes"] .code-copy-button:hover {
  border-color: #c7ff77;
  background: #c7ff77;
  color: #0f2000;
}

body[data-route="codes"] .view[data-route="codes"] .codes-feature-panel button.code-copy-button:hover,
body[data-route="codes"] .view[data-route="codes"] .code-vault-side button.code-copy-button:hover {
  border-color: #c7ff77;
  background: #c7ff77;
  color: #0f2000;
}

.codes-empty-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed #27411f;
  border-radius: 8px;
  background: #041006;
  padding: 22px;
  color: #94a38f;
  text-align: center;
}

.codes-empty-state strong {
  color: #f9ffe9;
}

.codes-empty-state p {
  max-width: 420px;
  margin: 6px 0 0;
  line-height: 1.55;
}

.codes-empty-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.08);
  color: #a7f947;
  font-weight: 950;
}

.codes-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.codes-checklist-grid article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 18px;
}

.codes-checklist-grid article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.1);
  color: #a7f947;
}

.codes-checklist-grid strong {
  color: #f9ffe9;
  font-size: 18px;
}

.codes-checklist-grid p {
  margin: 0;
  color: #94a38f;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .codes-hero,
  .code-vault-card,
  .codes-checklist-grid {
    grid-template-columns: 1fr;
  }

  .code-vault-side {
    justify-items: start;
  }

  .code-vault-side > span:not(.code-status-pill) {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .view[data-route="codes"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 42px 20px 68px;
  }

  .view[data-route="codes"] > *,
  .view[data-route="codes"] section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .view[data-route="codes"] .codes-hero h1 {
    font-size: 42px;
    overflow-wrap: anywhere;
  }

  .view[data-route="codes"] .section-heading-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

/* Stitch-inspired leaks archive */
body[data-route="leaks"] {
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="leaks"] {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #020a02;
  color: #e1f2d9;
  padding: 54px clamp(20px, 4vw, 48px) 88px;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.view[data-route="leaks"] > * {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.leaks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-bottom: 1px solid #1a2f16;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 42px);
}

.leaks-hero-copy {
  display: grid;
  gap: 14px;
}

.leaks-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #a7f947;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: #fffbe7;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.96;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: #b7c9af;
  font-size: 17px;
  line-height: 1.65;
}

.leaks-feature-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #274c18;
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 12%, rgba(167, 249, 71, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(167, 249, 71, 0.1), transparent 46%),
    #061005;
  padding: 24px;
}

.leaks-feature-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(167, 249, 71, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

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

.leaks-feature-panel > span,
.leak-card-kicker {
  color: #94a38f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-feature-panel strong {
  color: #a7f947;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-feature-panel p {
  max-width: 320px;
  margin: 0;
  color: #b7c9af;
  line-height: 1.6;
}

.leaks-disclaimer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 28px auto 42px;
  border: 1px solid rgba(255, 186, 74, 0.34);
  border-radius: 8px;
  background: rgba(255, 186, 74, 0.11);
  padding: 16px 18px;
}

.leaks-disclaimer > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 186, 74, 0.14);
  color: #feba4a;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-disclaimer strong {
  color: #fffbe7;
  font-size: 16px;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-disclaimer p {
  margin: 4px 0 0;
  color: #f3d6a7;
  font-size: 14px;
  line-height: 1.55;
}

.leaks-section {
  margin: 38px auto;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-section .section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1a2f16;
  padding-bottom: 14px;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-section .section-heading-row h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: #fffbe7;
  font-size: 28px;
  letter-spacing: 0;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-section .section-heading-row p {
  max-width: 650px;
  margin: 6px 0 0;
  color: #94a38f;
  font-size: 14px;
  line-height: 1.55;
}

.leak-watch-grid,
.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-route="leaks"] .view[data-route="leaks"] .leak-watch-card,
body[data-route="leaks"] .view[data-route="leaks"] .confidence-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 18px;
}

body[data-route="leaks"] .view[data-route="leaks"] .leak-watch-card.high,
body[data-route="leaks"] .view[data-route="leaks"] .confidence-card.high {
  border-color: rgba(167, 249, 71, 0.58);
  background:
    linear-gradient(180deg, rgba(167, 249, 71, 0.1), transparent 52%),
    #071607;
}

body[data-route="leaks"] .view[data-route="leaks"] .leak-watch-card.medium,
body[data-route="leaks"] .view[data-route="leaks"] .confidence-card.medium {
  border-color: rgba(255, 208, 90, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 208, 90, 0.09), transparent 52%),
    #071407;
}

body[data-route="leaks"] .view[data-route="leaks"] .leak-watch-card h3 {
  margin: 0;
  color: #a7f947;
  font-size: 20px;
  line-height: 1.2;
}

body[data-route="leaks"] .view[data-route="leaks"] .leak-watch-card p,
body[data-route="leaks"] .view[data-route="leaks"] .confidence-card p {
  margin: 0;
  color: #b7c9af;
  font-size: 14px;
  line-height: 1.55;
}

.leak-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.leak-card-meta span,
.confidence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #1a2f16;
  border-radius: 999px;
  background: #10200e;
  color: #a7f947;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
}

.confidence-pill.high {
  border-color: rgba(167, 249, 71, 0.42);
  color: #a7f947;
}

.confidence-pill.medium {
  border-color: rgba(255, 208, 90, 0.42);
  color: #ffd05a;
}

.confidence-pill.low {
  border-color: rgba(142, 158, 137, 0.42);
  color: #9dad95;
}

.confidence-card {
  align-content: start;
}

.confidence-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #a7f947;
  box-shadow: 0 0 0 7px rgba(167, 249, 71, 0.08);
}

.confidence-card.medium .confidence-orb {
  background: #ffd05a;
  box-shadow: 0 0 0 7px rgba(255, 208, 90, 0.08);
}

.confidence-card.low .confidence-orb {
  background: #8e9e89;
  box-shadow: 0 0 0 7px rgba(142, 158, 137, 0.08);
}

body[data-route="leaks"] .view[data-route="leaks"] .confidence-card strong {
  color: #fffbe7;
  font-size: 22px;
}

.leaks-empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #27411f;
  border-radius: 8px;
  background: #041006;
  padding: 22px;
  color: #94a38f;
  text-align: center;
}

.leaks-empty-state > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.08);
  color: #a7f947;
  font-weight: 950;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-empty-state strong {
  color: #f9ffe9;
}

body[data-route="leaks"] .view[data-route="leaks"] .leaks-empty-state p {
  max-width: 430px;
  margin: 6px 0 0;
  color: #94a38f;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .leak-watch-grid,
  .confidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .leaks-hero,
  .leak-watch-grid,
  .confidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .view[data-route="leaks"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 42px 20px 68px;
  }

  .view[data-route="leaks"] > *,
  .view[data-route="leaks"] section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-route="leaks"] .view[data-route="leaks"] .leaks-hero-copy h1 {
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  body[data-route="leaks"] .view[data-route="leaks"] .leaks-section .section-heading-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

/* Stitch-inspired updates archive */
body[data-route="updates"] {
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="updates"] {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #020a02;
  color: #e1f2d9;
  padding: 54px clamp(20px, 4vw, 48px) 88px;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.view[data-route="updates"] > * {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.updates-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-bottom: 1px solid #1a2f16;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 42px);
}

.updates-hero-copy {
  display: grid;
  gap: 14px;
}

.updates-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #a7f947;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-route="updates"] .view[data-route="updates"] .updates-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: #fffbe7;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.96;
}

body[data-route="updates"] .view[data-route="updates"] .updates-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: #b7c9af;
  font-size: 17px;
  line-height: 1.65;
}

.updates-feature-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #274c18;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 249, 71, 0.13), transparent 48%),
    #061005;
  padding: 24px;
}

.updates-feature-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(167, 249, 71, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

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

.updates-feature-panel > span,
.update-version {
  color: #94a38f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-route="updates"] .view[data-route="updates"] .updates-feature-panel strong {
  color: #a7f947;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.95;
}

body[data-route="updates"] .view[data-route="updates"] .updates-feature-panel p {
  max-width: 320px;
  margin: 0;
  color: #b7c9af;
  line-height: 1.6;
}

.updates-section {
  margin: 38px auto;
}

body[data-route="updates"] .view[data-route="updates"] .updates-section .section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1a2f16;
  padding-bottom: 14px;
}

body[data-route="updates"] .view[data-route="updates"] .updates-section .section-heading-row h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: #fffbe7;
  font-size: 28px;
  letter-spacing: 0;
}

body[data-route="updates"] .view[data-route="updates"] .updates-section .section-heading-row p {
  max-width: 650px;
  margin: 6px 0 0;
  color: #94a38f;
  font-size: 14px;
  line-height: 1.55;
}

.update-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.update-timeline-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.update-marker {
  display: grid;
  justify-items: center;
  width: 42px;
}

.update-marker::after {
  content: "";
  width: 1px;
  min-height: 100%;
  background: #1a2f16;
}

.update-marker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #274c18;
  border-radius: 50%;
  background: #071607;
  color: #a7f947;
  font-weight: 950;
}

.update-timeline-card.latest .update-marker span {
  border-color: #a7f947;
  background: #a7f947;
  color: #0f2000;
}

.update-card-body {
  display: grid;
  gap: 12px;
  min-height: 160px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 20px;
}

.update-timeline-card.latest .update-card-body {
  border-color: #8de83d;
  background:
    linear-gradient(90deg, rgba(167, 249, 71, 0.1), transparent 48%),
    #071607;
}

.update-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.update-version {
  color: #a7f947;
}

body[data-route="updates"] .view[data-route="updates"] .update-card-body h3 {
  margin: 0;
  color: #fffbe7;
  font-size: 24px;
  line-height: 1.18;
}

body[data-route="updates"] .view[data-route="updates"] .update-card-body p {
  max-width: 760px;
  margin: 0;
  color: #b7c9af;
  font-size: 15px;
  line-height: 1.6;
}

.update-watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-route="updates"] .view[data-route="updates"] .update-watch-grid article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  padding: 18px;
}

.update-watch-grid article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.1);
  color: #a7f947;
}

body[data-route="updates"] .view[data-route="updates"] .update-watch-grid strong {
  color: #f9ffe9;
  font-size: 18px;
}

body[data-route="updates"] .view[data-route="updates"] .update-watch-grid p {
  margin: 0;
  color: #94a38f;
  font-size: 14px;
  line-height: 1.55;
}

.updates-empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #27411f;
  border-radius: 8px;
  background: #041006;
  padding: 22px;
  color: #94a38f;
  text-align: center;
}

.updates-empty-state > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(167, 249, 71, 0.08);
  color: #a7f947;
  font-weight: 950;
}

body[data-route="updates"] .view[data-route="updates"] .updates-empty-state strong {
  color: #f9ffe9;
}

body[data-route="updates"] .view[data-route="updates"] .updates-empty-state p {
  max-width: 430px;
  margin: 6px 0 0;
  color: #94a38f;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .updates-hero,
  .update-watch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .view[data-route="updates"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 42px 20px 68px;
  }

  .view[data-route="updates"] > *,
  .view[data-route="updates"] section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-route="updates"] .view[data-route="updates"] .updates-hero-copy h1 {
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  body[data-route="updates"] .view[data-route="updates"] .updates-section .section-heading-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .update-timeline-card {
    grid-template-columns: 1fr;
  }

  .update-marker {
    display: none;
  }
}

/* Stitch-inspired guides archive */
body[data-route="guides"] {
  background: #020a02;
  color: #e1f2d9;
}

.view[data-route="guides"] {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #020a02;
  color: #e1f2d9;
  padding: 54px clamp(20px, 4vw, 48px) 88px;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.view[data-route="guides"] > * {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.view[data-route="guides"] .page-head {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid #1a2f16;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 42px);
}

.view[data-route="guides"] .page-head .eyebrow {
  color: #a7f947;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.view[data-route="guides"] .page-head h1 {
  max-width: 760px;
  color: #fffbe7;
  font-size: clamp(46px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.96;
}

.view[data-route="guides"] .page-head p {
  max-width: 640px;
  color: #b7c9af;
  font-size: 17px;
  line-height: 1.65;
}

.view[data-route="guides"] .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px auto 34px;
}

.view[data-route="guides"] .stat {
  min-height: 86px;
  border-color: #1a2f16;
  background: #061005;
  padding: 18px 20px;
}

.view[data-route="guides"] .stat strong {
  color: #fffbe7;
  font-size: 30px;
}

.view[data-route="guides"] .stat span {
  color: #94a38f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.view[data-route="guides"] section {
  margin: 34px auto;
}

.view[data-route="guides"] .section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1a2f16;
  padding-bottom: 14px;
}

.view[data-route="guides"] .section-heading-row h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: #fffbe7;
  font-size: 28px;
  letter-spacing: 0;
}

.view[data-route="guides"] .section-heading-row .tag {
  flex: 0 0 auto;
}

.view[data-route="guides"] .guides-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.view[data-route="guides"] .guides-see-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #a7f947;
  border-radius: 8px;
  background: #a7f947;
  color: #0f2000;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.view[data-route="guides"] .guides-see-all-link:hover {
  background: #c7ff77;
  color: #0f2000;
}

.view[data-route="guides"] .guides-see-all-link span {
  display: inline-block;
  color: #0f2000;
}

.view[data-route="guides"] .guides-see-all-link .home-icon {
  width: 16px;
  height: 16px;
  color: #0f2000;
  stroke: currentColor;
  opacity: 1;
}

.view[data-route="guides"] .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.view[data-route="guides"] .featured-guides,
.view[data-route="guides"] .guides-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.view[data-route="guides"] .guide-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid #1a2f16;
  border-radius: 8px;
  background: #061005;
  color: #e1f2d9;
  box-shadow: none;
}

.view[data-route="guides"] .featured-guides .guide-card {
  min-height: 250px;
  border-color: #274c18;
  background: #071607;
}

.view[data-route="guides"] .featured-guides .guide-card.featured:first-child {
  border-color: #8de83d;
}

.view[data-route="guides"] .guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(167, 249, 71, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(167, 249, 71, 0.06), transparent 46%);
  opacity: 0.75;
}

.view[data-route="guides"] .featured-guides .guide-card::before {
  background:
    linear-gradient(180deg, rgba(167, 249, 71, 0.13), transparent 42%),
    linear-gradient(90deg, rgba(167, 249, 71, 0.08), transparent 48%);
}

.view[data-route="guides"] .guide-card:hover {
  transform: translateY(-2px);
  border-color: #a7f947;
  background: #0c1a0a;
}

.view[data-route="guides"] .guide-card-band {
  display: none;
}

.view[data-route="guides"] .guide-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.view[data-route="guides"] .featured-guides .guide-card-body {
  min-height: 250px;
  padding: 22px;
}

.view[data-route="guides"] .guide-card h3 {
  margin: 0;
  color: #f9ffe9;
  font-size: 18px;
  line-height: 1.18;
}

.view[data-route="guides"] .guide-card h3 a {
  color: inherit;
}

.view[data-route="guides"] .featured-guides .guide-card h3 {
  color: #a7f947;
  font-size: 19px;
}

.view[data-route="guides"] .guide-card p {
  margin: 0;
  color: #b7c9af;
  font-size: 14px;
  line-height: 1.55;
}

.view[data-route="guides"] .guide-card .tag {
  width: max-content;
  border-color: #27411f;
  background: #10200e;
  color: #a7f947;
}

.view[data-route="guides"] .guide-card-actions {
  margin-top: auto;
  font-size: 14px;
  font-weight: 900;
}

.view[data-route="guides"] .guide-card-actions a {
  color: #a7f947;
}

.view[data-route="guides"] .band.soft {
  padding-top: 0;
}

.view[data-route="guides"] .guides-preview-section {
  margin-top: 50px;
}

.view[data-route="guides"] .guides-preview-grid .guide-card {
  min-height: 176px;
  border-color: #132715;
  background: #030d06;
}

.view[data-route="guides"] .guides-preview-grid .guide-card::before {
  background: linear-gradient(180deg, rgba(167, 249, 71, 0.035), transparent 46%);
  opacity: 1;
}

.view[data-route="guides"] .guides-preview-grid .guide-card:hover {
  border-color: #31552b;
  background: #061207;
}

.view[data-route="guides"] .guides-preview-grid .guide-card-body {
  min-height: 176px;
  gap: 10px;
  padding: 18px;
}

.view[data-route="guides"] .guides-preview-grid .guide-card h3 {
  color: #f9ffe9;
  font-size: 15px;
  line-height: 1.24;
}

.view[data-route="guides"] .guides-preview-grid .guide-card p {
  display: -webkit-box;
  overflow: hidden;
  color: #708372;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.view[data-route="guides"] .guides-preview-grid .guide-card .tag {
  border-color: #18311d;
  background: #061107;
  color: #6f8970;
}

.view[data-route="guides"] .guides-preview-grid .guide-card-actions {
  display: none;
}

body[data-route="guides"] .view[data-route="guides"] .featured-guides .guide-card.guide-card {
  border-color: #274c18;
  background: #071607;
}

body[data-route="guides"] .view[data-route="guides"] .featured-guides .guide-card.guide-card.featured:first-child {
  border-color: #8de83d;
}

body[data-route="guides"] .view[data-route="guides"] .featured-guides .guide-card.guide-card:hover {
  border-color: #a7f947;
  background: #0c1a0a;
}

body[data-route="guides"] .view[data-route="guides"] .featured-guides .guide-card.guide-card h3 {
  color: #a7f947;
}

body[data-route="guides"] .view[data-route="guides"] .featured-guides .guide-card.guide-card p {
  color: #b7c9af;
}

body[data-route="guides"] .view[data-route="guides"] .guides-preview-grid .guide-card.guide-card {
  border-color: #132715;
  background: #030d06;
}

body[data-route="guides"] .view[data-route="guides"] .guides-preview-grid .guide-card.guide-card:hover {
  border-color: #31552b;
  background: #061207;
}

body[data-route="guides"] .view[data-route="guides"] .guides-preview-grid .guide-card.guide-card h3 {
  color: #f9ffe9;
}

body[data-route="guides"] .view[data-route="guides"] .guides-preview-grid .guide-card.guide-card p {
  color: #708372;
}

body[data-route="guides"] .view[data-route="guides"] .guides-preview-grid .guide-card.guide-card .tag {
  border-color: #18311d;
  background: #061107;
  color: #6f8970;
}

@media (max-width: 1080px) {
  .view[data-route="guides"] .featured-guides,
  .view[data-route="guides"] .guides-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .view[data-route="guides"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 42px 20px 68px;
  }

  .view[data-route="guides"] > *,
  .view[data-route="guides"] .page-head,
  .view[data-route="guides"] .stats,
  .view[data-route="guides"] section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .view[data-route="guides"] .page-head h1 {
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  .view[data-route="guides"] .page-head p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .view[data-route="guides"] .stats,
  .view[data-route="guides"] .featured-guides,
  .view[data-route="guides"] .guide-grid {
    grid-template-columns: 1fr;
  }

  .view[data-route="guides"] .section-heading-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .view[data-route="guides"] .guides-section-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .view[data-route="guides"] .guides-see-all-link {
    width: 100%;
    justify-content: center;
  }
}
