/* breeding/breeding.css: Baby Feeding Calculator page styles.
   Cosmic theme, system tokens from /style.css (--bg-deep, --bg-card, --cyan, etc.)
   Radius from DESIGN.md scale: 8/10/12/14/16/999. No new hex colours, only token references. */

/* ── Page tokens ── */
/* --red is not in style.css; scoped here. #f87171 matches this sheet's error rgba. */
/* --text-dim lifted on this page: small labels sit on card gradients
   where the site value measures 4.1-4.4:1 (QA-102 r2 row 4). */
.breed-page { --red: #f87171; --text-dim: #8585a0; }


/* Public tool frame (match Tinkering Desk) */
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; }
.tool-chips .chip { flex: 0 1 auto; margin: 0; max-width: 100%; font-size: 12px; height: auto; white-space: normal; line-height: 1.35; padding-top: 4px; padding-bottom: 4px; }
.tool-chips .chip-live { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); }
.tool-lede { margin: 0 0 8px; font-size: 16px; color: var(--text-secondary); max-width: 70ch; }
.tool-lede a { color: var(--cyan); text-decoration: none; }
.tool-lede a:hover { color: var(--cyan-hover); }
.tool-update { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--text-dim); max-width: 70ch; }
.tool-hero { margin: 8px 0 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-deep); height: 180px; }
.tool-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.tool-omit .results.desk-hwrap { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 12px; }
.tool-omit ul { margin: 10px 0 0; padding-left: 22px; color: var(--text-secondary); font-size: 14px; max-width: 62ch; }
.tool-omit li { margin: 5px 0; line-height: 1.55; }
.guide-cta { margin: 24px 0 8px; }
@media (max-width: 640px) {
  .tool-hero { height: 120px; }
}
/* ── Page shell ── */
/* Widen a wrapping .shell so the 3-column grid fits. */
.shell:has(.breed-page) { max-width: 1280px; padding-left: 2rem; padding-right: 2rem; }
main.container.breed-page { max-width: 1200px; margin: 0 auto; padding-bottom: 42px; }

/* ── Hero ── */
.breed-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 16px;
  min-height: 205px;
  padding: 28px 30px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  background: var(--bg-card);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  margin-bottom: 16px;
}
.breed-eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.breed-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .breed-live-dot { box-shadow: none; }
}
.breed-hero h1 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.06;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.breed-hero-sub {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.breed-hero-credit {
  display: inline-flex;
  margin-top: 17px;
  gap: 8px;
  align-items: center;
  /* wraps gracefully by default; single-line only where it provably fits
     (nowrap at all widths clipped the pill on narrow tablets ~521-1000px) */
  flex-wrap: wrap;
  border: 1px solid rgba(34, 211, 238, 0.13);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--text-secondary);
  font-size: 12px;
  background: rgba(10, 10, 15, 0.62);
}
.breed-hero-credit a {
  color: var(--text-aside);
  text-decoration: none;
}
.breed-hero-credit a:hover { color: var(--cyan); }
.breed-mobile-art {
  display: none;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin: 6px auto -6px;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.09));
}

/* ── Server / Rate card (inside hero) ── */
.breed-server-card {
  margin: 0 0 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(17, 17, 24, 0.74);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px;
  position: relative;
  z-index: 2;
}
.breed-server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.breed-server-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.breed-server-age {
  font-size: 12px;
  color: var(--text-dim);
}
.breed-field-label {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
}

/* Rate toggle (QA / Manual segmented control) */
.breed-rate-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-deep);
  border: 1px solid rgba(34, 211, 238, 0.15);
}
.breed-rate-mode {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.breed-rate-mode.active {
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.22), rgba(14, 116, 144, 0.26));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 22px rgba(34, 211, 238, 0.08);
}
.breed-rate-mode:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

/* Rate inputs grid */
.breed-rates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}
.breed-rate {
  padding: 8px 6px;
  text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.8), rgba(10, 10, 15, 0.72));
}
.breed-rate span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.breed-rate-ref-note {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breed-rate-ref input {
  cursor: default;
}
.breed-rate input {
  width: 48px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: 700 19px/1 var(--font-body);
  text-align: right;
  outline: 0;
}
.breed-rate input:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
  border-radius: 4px;
}
.breed-rate.mag input { color: var(--cyan); }
.breed-rate input:disabled { opacity: 1; -webkit-text-fill-color: currentColor; }
.breed-rate b { font-size: 13px; color: var(--text-secondary); margin-left: 1px; }
.breed-rate:not(.manual) b { display: none; }
.rate-lock {
  display: inline-block;
  width: 12px;
  height: 14px;
  vertical-align: middle;
  margin-left: 2px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.breed-rate.manual .rate-lock { display: none; }
.breed-rate.manual { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.24); }
.breed-rate-note {
  margin-top: 11px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.breed-rate-note b { color: var(--text-primary); font-weight: 600; }
.breed-species-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* ── Main grid (inputs | results | trough) ── */
.breed-grid {
  display: grid;
  grid-template-columns: 320px minmax(460px, 1fr) 320px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

/* ── Card chrome ── */
.breed-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.91), rgba(10, 10, 15, 0.89));
  border-radius: 14px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.breed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px 12px;
}
.breed-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  font-weight: 700;
}
.breed-tag {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-deep);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Form controls ── */
.breed-form { padding: 0 17px 17px; }
.breed-control { padding: 13px 0; border-bottom: 1px solid rgba(34, 211, 238, 0.08); }
.breed-control:last-of-type { border-bottom: 0; }
.breed-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.breed-control label {
  font-size: 12px;
  color: var(--text-primary);
}
.breed-control small {
  font-size: 12px;
  color: var(--text-dim);
}
.breed-control select,
.breed-control input[type=number] {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
}
.breed-control select:focus-visible,
.breed-control input[type=number]:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

/* Slider row */
.breed-slider {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 10px;
  align-items: center;
}
.breed-slider input[type=range] { width: 100%; accent-color: var(--cyan); }
.breed-slider output {
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 10px;
  padding: 8px;
  background: var(--bg-deep);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}

/* Primary calculate button */
.breed-calc-btn {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.62);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.45), rgba(14, 116, 144, 0.3));
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.08), 0 0 18px rgba(34, 211, 238, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  color: var(--cyan);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.breed-calc-btn:hover {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.55), rgba(14, 116, 144, 0.4));
}
.breed-calc-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

/* ── Results panel ── */
.breed-results { padding: 0 14px 14px; }
.breed-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.breed-metric {
  min-height: 104px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 17, 24, 0.76), rgba(10, 10, 15, 0.9));
  padding: 13px;
}
.breed-metric .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.breed-metric .v {
  font-size: 22px;
  margin: 7px 0 4px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.breed-metric .s {
  font-size: 12px;
  color: var(--text-secondary);
}
.breed-metric.cyan .v { color: var(--cyan); }
.breed-metric.mag .v  { color: var(--cyan); }
.breed-metric.green .v { color: var(--cyan); }

/* ── Growth timeline ── */
.breed-timeline {
  margin-top: 13px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-deep);
}
.breed-timeline-visual {
  position: relative;
  height: 210px;
  background: var(--bg-card);
}
.breed-timeline-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.05), rgba(10, 10, 15, 0.55));
}
.breed-timeline-label {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 13px;
  padding: 7px 10px;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 999px;
  color: var(--text-aside);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.breed-timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
}
.breed-step { padding: 10px 12px; }
.breed-step strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
}
.breed-step span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.breed-step.now {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent);
}
.breed-step.now strong { color: var(--cyan); }

/* ── Visual stack (incubation + milestones images) ── */
.breed-visual-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.breed-visual-tile {
  position: relative;
  min-height: 166px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
}
.breed-visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.78;
}
.breed-visual-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.88) 90%);
}
.breed-visual-caption {
  position: absolute;
  z-index: 2;
  left: 13px;
  right: 13px;
  bottom: 11px;
}
.breed-visual-caption strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
}
.breed-visual-caption span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Trough planner (right column) ── */
.breed-right-col {
  display: contents;
}
.breed-trough-art {
  height: 205px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}
.breed-trough-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}
.breed-trough-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.1), rgba(10, 10, 15, 0.64));
}
.breed-table { padding: 0 14px 14px; }
.breed-table-head,
.breed-baby-row {
  display: grid;
  grid-template-columns: 1fr 80px 66px;
  gap: 8px;
  align-items: center;
}
.breed-table-head {
  padding: 11px 5px 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.breed-baby-row {
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  padding: 11px 5px;
}
.breed-baby-row.has-warn {
  background: rgba(227, 182, 94, 0.06);
}
.breed-baby-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px;
  color: var(--amber);
  text-align: left;
  line-height: 1.4;
}
.breed-trough-empty,
.breed-trough-none {
  padding: 14px 5px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.breed-trough-none {
  color: var(--amber);
}
.breed-baby-row strong {
  font-size: 12px;
  color: var(--text-primary);
}
.breed-baby-row span {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}
.breed-add-btn {
  width: 100%;
  margin-top: 8px;
  border: 1px dashed rgba(34, 211, 238, 0.22);
  background: rgba(10, 10, 15, 0.5);
  border-radius: 10px;
  padding: 10px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.breed-add-btn:hover { border-color: var(--cyan); }
.breed-add-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}
.breed-warning {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(227, 182, 94, 0.14);
  border-radius: 12px;
  background: rgba(44, 35, 11, 0.12);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.breed-warning strong { color: var(--text-primary); }

.breed-ghost-btn {
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-aside);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.breed-ghost-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.breed-ghost-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

/* ── Footer ── */
.breed-footer {
  padding: 18px 0 4px;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}
.breed-footer a {
  color: var(--text-aside);
  text-decoration: none;
}
.breed-footer a:hover { color: var(--cyan); }

/* ── Rate error banner ── */
.breed-rate-error {
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  background: rgba(72, 20, 20, 0.22);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.55;
}
.breed-rate-error b { color: var(--red); font-weight: 600; }
.breed-cache-btn {
  display: inline-block;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: var(--bg-deep);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--text-aside);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.breed-cache-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.breed-cache-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

/* ── Reset button (manual mode) ── */
.breed-reset-btn { margin-top: 10px; width: 100%; text-align: center; }

/* ── Trough interactive controls ── */
.breed-trough-sel {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: var(--bg-deep);
  border-radius: 8px;
  padding: 6px 7px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12px;
}
.breed-trough-sel:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}
.breed-trough-mat-cell {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-dim);
}
.breed-trough-mat {
  width: 54px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: var(--bg-deep);
  border-radius: 8px;
  padding: 5px 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}
.breed-trough-mat:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}
.breed-trough-qty-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}
.breed-trough-qty {
  width: 36px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: var(--bg-deep);
  border-radius: 8px;
  padding: 5px 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}
.breed-trough-qty:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}
.breed-trough-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  background: transparent;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.breed-trough-remove:hover { border-color: var(--red); color: var(--red); }
.breed-trough-remove:focus-visible {
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.45);
}

/* Trough stacks row */
.breed-trough-stacks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 5px;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}
.breed-trough-stacks-row label {
  font-size: 12px;
  color: var(--text-secondary);
}
.breed-trough-stacks-row input,
.breed-trough-stacks-row select {
  width: 56px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: var(--bg-deep);
  border-radius: 8px;
  padding: 6px 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}
.breed-trough-stacks-row select {
  width: auto;
  min-width: 148px;
  font-family: var(--font-body);
  font-size: 12px;
  text-align: left;
}
.breed-trough-stacks-row input:focus-visible,
.breed-trough-stacks-row select:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}
.breed-trough-mae-hint {
  margin: 0 5px 4px;
  padding: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Trough result */
.breed-trough-result {
  margin-top: 10px;
  min-height: 0;
}
.breed-trough-life {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}
.breed-trough-life-k {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.breed-trough-life-v {
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.breed-trough-detail {
  font-size: 12px;
  color: var(--text-dim);
  padding-bottom: 2px;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 1200px) {
  .breed-grid {
    grid-template-columns: 280px minmax(420px, 1fr);
  }
  .breed-right-col {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .breed-right-col .breed-card { height: 100%; }
  .breed-trough-art { height: 185px; }
}

@media (max-width: 860px) {
  .breed-hero {
    min-height: auto;
    display: block;
    padding: 19px 17px 17px;
    background: var(--bg-card);
  }
  .breed-hero h1 { font-size: 30px; }
  .breed-hero-sub { font-size: 12px; max-width: 92%; }
  .breed-server-card { margin-top: 18px; }
  .breed-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .breed-rates > .breed-rate:last-child { grid-column: 1 / -1; }
  .breed-grid { display: block; }
  .breed-card { margin-top: 12px; }
  .breed-grid > .breed-card:first-child { margin-top: 0; }
  .breed-right-col { display: block; }
  .breed-result-grid { grid-template-columns: 1fr 1fr; }
  .breed-metric { min-height: 96px; }
  .breed-timeline-visual { height: 175px; }
  .breed-visual-stack { grid-template-columns: 1fr; }
  .breed-visual-tile { min-height: 195px; }
  .breed-right-col .breed-card { margin-top: 12px; }
  .breed-mobile-art {
    display: block;
  }
}

@media (max-width: 620px) {
  .breed-rate-toggle { margin-bottom: 4px; }
  .breed-rate-mode { padding: 11px 8px; }
  .breed-rate input { width: 43px; font-size: 18px; }
}

@media (max-width: 520px) {
  .breed-hero-credit { display: none; }
  .breed-server-card { padding: 12px; }
  .breed-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 3px;
  }
  .breed-grid { margin-top: 12px; }
  .breed-result-grid { grid-template-columns: 1fr 1fr; }
  .breed-metric .v { font-size: 18px; }
  .breed-timeline-steps { grid-template-columns: 1fr 1fr; }
  .breed-step:nth-child(3),
  .breed-step:nth-child(4) {
    border-top: 1px solid rgba(34, 211, 238, 0.08);
  }
  .breed-trough-art { height: 185px; }
  .breed-form,
  .breed-results,
  .breed-table { padding-left: 12px; padding-right: 12px; }
  .breed-hero { border-radius: 14px; }
  .breed-card { border-radius: 12px; }
  .breed-mobile-art { max-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .breed-rate-mode,
  .breed-calc-btn,
  .breed-ghost-btn,
  .breed-add-btn { transition: none; }
}

@media (min-width: 1024px) {
  .breed-hero-credit { flex-wrap: nowrap; white-space: nowrap; }
}
