@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --ink: #eef8f3;
  --muted: #9db2aa;
  --muted-2: #70857e;
  --bg: #04110e;
  --bg-deep: #020b09;
  --surface: #081a16;
  --surface-2: #0d241d;
  --surface-3: #122e25;
  --line: rgba(189, 224, 208, 0.12);
  --line-bright: rgba(189, 224, 208, 0.24);
  --emerald: #2cd69f;
  --emerald-soft: #7ce5bd;
  --gold: #d5a853;
  --gold-soft: #f0cc7f;
  --ivory: #f4ecda;
  --danger: #ff9898;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button,
a,
input {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.container {
  width: min(calc(100% - 44px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  right: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #09110d;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  position: relative;
  z-index: 120;
  min-height: 36px;
  border-bottom: 1px solid rgba(213, 168, 83, 0.18);
  background: #07100e;
  color: #b9c9c2;
  font-size: 0.72rem;
}

.announcement .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.announcement p {
  margin: 0;
}

.announcement a {
  color: var(--gold-soft);
  font-weight: 700;
}

.announcement-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(44, 214, 159, 0.1);
}

.site-header {
  position: sticky;
  z-index: 110;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(4, 17, 14, 0.76);
  backdrop-filter: blur(22px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(3, 14, 11, 0.93);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(213, 168, 83, 0.32);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(213, 168, 83, 0.14), rgba(44, 214, 159, 0.06));
  color: var(--gold-soft);
  box-shadow: inset 0 0 25px rgba(213, 168, 83, 0.05);
}

.brand-symbol svg {
  fill: currentColor;
  stroke: none;
}

.brand-copy {
  display: grid;
  line-height: 1.35;
}

.brand-copy strong {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.6rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-inline: auto;
  color: #a7bbb3;
  font-size: 0.82rem;
  font-weight: 500;
}

.primary-nav a {
  position: relative;
  padding: 7px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.primary-nav a:hover {
  color: var(--ink);
}

.primary-nav a:hover::after {
  width: 100%;
}

.header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(213, 168, 83, 0.42);
  border-radius: 12px;
  background: rgba(213, 168, 83, 0.08);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-cta span {
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 116px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 40%, rgba(14, 102, 78, 0.28), transparent 27%),
    radial-gradient(circle at 22% 70%, rgba(213, 168, 83, 0.07), transparent 20%),
    linear-gradient(135deg, #020b09 0%, #051711 48%, #03100d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 11, 9, 0.97) 0%, rgba(2, 11, 9, 0.62) 40%, transparent 69%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(124, 229, 189, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 229, 189, 0.15) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 30px;
  padding-block: 64px 90px;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1px solid rgba(124, 229, 189, 0.18);
  border-radius: 100px;
  background: rgba(124, 229, 189, 0.05);
  color: var(--emerald-soft);
  font-size: 0.7rem;
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--emerald);
  border-radius: inherit;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -2.6px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--gold-soft), #fff0c6 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content > p {
  max-width: 630px;
  margin: 25px 0 30px;
  color: #a7bbb3;
  font-size: 1rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-soft), #c99639);
  color: #171108;
  box-shadow: 0 15px 44px rgba(213, 168, 83, 0.17);
}

.button-ghost {
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: rgba(124, 229, 189, 0.35);
  background: rgba(124, 229, 189, 0.05);
}

.play {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding-right: 2px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--emerald-soft);
  font-size: 0.6rem;
}

.hero-facts {
  display: flex;
  gap: 0;
  margin: 40px 0 0;
}

.hero-facts div {
  min-width: 145px;
  padding: 0 17px;
  border-right: 1px solid var(--line);
}

.hero-facts div:first-child {
  padding-right: 0;
  border-right: 0;
}

.hero-facts dt {
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 37%;
  bottom: 0;
  left: -11%;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.rooster-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform:
    rotateX(var(--hero-rx, 0deg))
    rotateY(var(--hero-ry, 0deg))
    translate3d(var(--hero-tx, 0px), var(--hero-ty, 0px), 0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.rooster-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.92) contrast(1.03);
}

.scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #03100d 0%, rgba(3, 16, 13, 0.72) 20%, transparent 47%),
    linear-gradient(0deg, #03100d 0%, transparent 20%);
}

.visual-halo {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(124, 229, 189, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.halo-one {
  width: 480px;
  height: 480px;
  top: 17%;
  right: 29%;
  box-shadow: 0 0 90px rgba(44, 214, 159, 0.06);
}

.halo-two {
  width: 590px;
  height: 590px;
  top: 10%;
  right: 22%;
  border-color: rgba(213, 168, 83, 0.08);
}

.orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(213, 168, 83, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 570px;
  height: 250px;
  top: 38%;
  right: 19%;
  transform: rotate(-14deg);
}

.orbit-two {
  width: 410px;
  height: 710px;
  top: 2%;
  right: 32%;
  transform: rotate(36deg);
}

.orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 18px var(--gold);
}

.orbit i:nth-child(1) { top: 10%; left: 25%; }
.orbit i:nth-child(2) { right: 4%; bottom: 30%; }
.orbit i:nth-child(3) { bottom: 2%; left: 37%; }

.science-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(212, 232, 222, 0.17);
  border-radius: 14px;
  background: rgba(5, 21, 17, 0.79);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
  transform: translateZ(50px);
}

.science-card-top {
  top: 23%;
  right: 17%;
}

.science-card-bottom {
  right: 53%;
  bottom: 17%;
}

.science-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.3);
  border-radius: 11px;
  color: var(--gold-soft);
  font-size: 0.65rem;
  font-weight: 900;
}

.science-card div {
  display: grid;
  line-height: 1.5;
}

.science-card small {
  color: var(--muted);
  font-size: 0.55rem;
}

.science-card strong {
  font-size: 0.73rem;
}

.spec-label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c4d5ce;
  font-size: 0.61rem;
}

.spec-label i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--emerald-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(44, 214, 159, 0.08);
}

.spec-label-one {
  top: 39%;
  right: 43%;
}

.spec-label-two {
  right: 24%;
  bottom: 32%;
}

.hero-scroll {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 0.58rem;
  transform: translateX(50%);
}

.hero-scroll i {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--muted-2), transparent);
}

.trust-bar {
  border-bottom: 1px solid var(--line);
  background: #061512;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.trust-grid > div:last-child {
  border-left: 0;
}

.trust-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.trust-grid p {
  display: grid;
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.6;
}

.trust-grid strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.section {
  padding: 110px 0;
}

.encyclopedia {
  background:
    radial-gradient(circle at 0 30%, rgba(44, 214, 159, 0.055), transparent 24%),
    var(--bg);
}

.section-heading {
  margin-bottom: 46px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 80px;
}

.section-heading h2,
.tools-copy h2,
.standards-copy h2,
.final-cta h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.4;
  letter-spacing: -1.5px;
}

.overline {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.overline::before {
  content: "";
  width: 22px;
  height: 1px;
  display: inline-block;
  margin-left: 9px;
  vertical-align: middle;
  background: currentColor;
}

.split-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.breed-search-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 27px;
}

.breed-search {
  flex: 1;
  max-width: 535px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.breed-search span {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.breed-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
}

.breed-search input::placeholder {
  color: #63766f;
}

.search-tags {
  display: flex;
  gap: 8px;
}

.search-tags button {
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.66rem;
}

.search-tags button:hover,
.search-tags button.active {
  border-color: rgba(213, 168, 83, 0.35);
  background: rgba(213, 168, 83, 0.08);
  color: var(--gold-soft);
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.breed-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.breed-card:hover {
  z-index: 2;
  border-color: rgba(213, 168, 83, 0.3);
  transform: translateY(-7px) perspective(800px) rotateX(1deg);
}

.breed-card[hidden] {
  display: none;
}

.breed-art {
  position: relative;
  height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.breed-art::before,
.breed-art::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.14;
}

.breed-art::before {
  width: 180px;
  height: 180px;
}

.breed-art::after {
  width: 125px;
  height: 125px;
}

.breed-art-bronze { color: #d8a352; background: radial-gradient(circle, #2c2618, #0a1511 68%); }
.breed-art-silver { color: #d8e0dc; background: radial-gradient(circle, #27302d, #0a1511 68%); }
.breed-art-ivory { color: #e8d9b8; background: radial-gradient(circle, #303025, #0a1511 68%); }
.breed-art-black { color: #55b99b; background: radial-gradient(circle, #162925, #07100e 68%); }
.breed-art-copper { color: #dd8c5c; background: radial-gradient(circle, #342016, #0a1511 68%); }
.breed-art-gold { color: #f0cc7f; background: radial-gradient(circle, #352d16, #0a1511 68%); }
.breed-art-pearl { color: #edf0e3; background: radial-gradient(circle, #303633, #0a1511 68%); }
.breed-art-ruby { color: #df777c; background: radial-gradient(circle, #35181a, #0a1511 68%); }
.breed-art-jade { color: #7ce5bd; background: radial-gradient(circle, #18362c, #07100e 68%); }
.breed-art-blue { color: #aebaff; background: radial-gradient(circle, #222b43, #08100f 68%); }

.breed-silhouette {
  position: relative;
  z-index: 2;
  color: currentColor;
  font-size: 6rem;
  line-height: 1;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.4));
  transform: rotate(-10deg);
}

.card-status {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(1, 8, 6, 0.55);
  color: var(--muted);
  font-size: 0.52rem;
}

.breed-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}

.breed-card-body small {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 1.3px;
}

.breed-card-body h3 {
  margin: 1px 0 0;
  font-size: 1.12rem;
}

.breed-card-body button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--emerald-soft);
  cursor: pointer;
}

.breed-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 12px 18px 17px;
  border-top: 1px solid var(--line);
}

.breed-card dl div {
  display: grid;
}

.breed-card dt {
  color: var(--muted-2);
  font-size: 0.75rem;
}

.breed-card dd {
  margin: 0;
  color: #c3d2cc;
  font-size: 0.82rem;
}

.breed-empty {
  padding: 20px;
  border: 1px dashed var(--line-bright);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.breed-comparison {
  position: relative;
  margin-top: 42px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(124, 229, 189, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(44, 214, 159, 0.11), transparent 30%),
    radial-gradient(circle at 92% 100%, rgba(213, 168, 83, 0.09), transparent 34%),
    rgba(9, 31, 25, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.breed-comparison::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.025), transparent 36%);
}

.breed-comparison-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 28px;
}

.breed-comparison-intro .overline {
  margin-bottom: 7px;
}

.breed-comparison-intro h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.breed-comparison-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.breed-comparison-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 14, 11, 0.5);
}

.breed-comparison-form label {
  display: grid;
  gap: 7px;
  color: #d7e6e0;
  font-size: 0.84rem;
  font-weight: 800;
}

.breed-comparison-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  outline: 0;
  background: #071c17;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.breed-comparison-form select:focus-visible {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(44, 214, 159, 0.12);
}

.breed-comparison-form > button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(44, 214, 159, 0.28);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(44, 214, 159, 0.16), rgba(44, 214, 159, 0.07));
  color: var(--emerald-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
}

.breed-comparison-form > button:hover,
.breed-comparison-form > button:focus-visible {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.breed-comparison-form .breed-comparison-swap {
  width: 48px;
  padding: 0;
  color: var(--gold-soft);
  font-size: 1.25rem;
}

.breed-comparison-status {
  min-height: 24px;
  margin: 12px 2px 0;
  color: var(--emerald-soft);
  font-size: 0.82rem;
}

.breed-comparison-status.error {
  color: var(--danger);
}

.breed-comparison-result {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.breed-comparison-result[hidden] {
  display: none;
}

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

.breed-comparison-heading,
.breed-comparison-detail,
.breed-comparison-table,
.breed-comparison-trust {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.breed-comparison-heading {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.breed-comparison-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breed-comparison-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(213, 168, 83, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.13), transparent 24%),
    rgba(213, 168, 83, 0.09);
  color: var(--gold-soft);
  font-size: 1.55rem;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.025);
}

.breed-comparison-identity small {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.breed-comparison-identity h4 {
  margin: 2px 0 0;
  font-size: 1.22rem;
}

.breed-comparison-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.breed-comparison-heading button {
  min-height: 42px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: transparent;
  color: var(--emerald-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.breed-comparison-table,
.breed-comparison-detail,
.breed-comparison-trust {
  padding: 18px;
}

.breed-comparison-table > h4,
.breed-comparison-detail > h4,
.breed-comparison-trust > h4 {
  margin: 0 0 12px;
  font-size: 1.03rem;
}

.breed-comparison-rows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.breed-comparison-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
}

.breed-comparison-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.breed-comparison-row > * {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  font-size: 0.84rem;
  line-height: 1.65;
}

.breed-comparison-row > *:not(:last-child) {
  border-left: 1px solid var(--line);
}

.breed-comparison-row > span {
  color: var(--muted);
  font-weight: 800;
}

.breed-comparison-row-head {
  background: rgba(44, 214, 159, 0.055);
  color: var(--emerald-soft);
}

.breed-comparison-columns > article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 14, 11, 0.34);
}

.breed-comparison-columns article > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.breed-comparison-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breed-comparison-columns li {
  position: relative;
  padding-right: 15px;
  color: #c8d7d1;
  font-size: 0.84rem;
  line-height: 1.8;
}

.breed-comparison-columns li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.breed-comparison-review {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(213, 168, 83, 0.22);
  border-radius: 999px;
  background: rgba(213, 168, 83, 0.06);
  color: var(--gold-soft);
  font-size: 0.72rem;
}

.breed-comparison-trust article > small {
  display: block;
  color: var(--muted-2);
  font-size: 0.75rem;
}

.breed-comparison-sources {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.breed-comparison-sources a {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--emerald-soft);
  font-size: 0.82rem;
}

.breed-comparison-sources a small {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.section-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 24px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.72rem;
}

.section-action a,
.inline-link {
  color: var(--gold-soft);
  font-weight: 700;
}

.section-action b,
.inline-link span {
  margin-right: 7px;
}

.platform-section {
  padding: 110px 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(5, 19, 15, 0.94), rgba(5, 19, 15, 0.94)),
    repeating-linear-gradient(45deg, transparent 0, transparent 28px, rgba(124, 229, 189, 0.07) 29px);
}

.centered-heading {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading .overline::after {
  content: "";
  width: 22px;
  height: 1px;
  display: inline-block;
  margin-right: 9px;
  vertical-align: middle;
  background: currentColor;
}

.centered-heading > p:last-child {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.platform-card {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.platform-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -110px;
  left: -100px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.06;
  filter: blur(8px);
}

.platform-card:hover {
  transform: translateY(-7px);
}

.academy-card { color: #d6ad65; }
.clinic-card { color: #5ae0b4; }
.market-card { color: #b1b9f4; }

.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 70px;
}

.platform-card-head > span {
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.platform-card-head i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.platform-card > div:nth-child(2) p {
  margin: 0;
  color: currentColor;
  font-size: 0.65rem;
}

.platform-card h3 {
  margin: 2px 0 5px;
  color: var(--ink);
  font-size: 1.55rem;
}

.platform-card > div:nth-child(2) > span {
  color: var(--muted);
  font-size: 0.75rem;
}

.platform-card ul {
  display: grid;
  gap: 7px;
  margin: 24px 0 25px;
  padding: 0;
  color: #afc1ba;
  list-style: none;
  font-size: 0.7rem;
}

.platform-card li::before {
  content: "—";
  margin-left: 7px;
  color: currentColor;
}

.platform-card > a {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 700;
}

.official-products-section {
  position: relative;
  background:
    radial-gradient(circle at 90% 25%, rgba(213, 168, 83, 0.07), transparent 24%),
    #030e0b;
}

.official-brand-banner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 13px 18px;
  border: 1px solid rgba(213, 168, 83, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(100deg, rgba(213, 168, 83, 0.08), transparent 48%),
    var(--surface);
}

.official-brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
}

.official-brand-mark > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.35);
  border-radius: 14px;
  background: rgba(213, 168, 83, 0.08);
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.official-brand-mark div {
  display: grid;
  line-height: 1.3;
}

.official-brand-mark strong {
  letter-spacing: 2px;
}

.official-brand-mark small {
  color: var(--gold);
  font-size: 0.47rem;
  letter-spacing: 1.1px;
}

.official-brand-banner > p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
}

.official-badge {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.53rem;
}

.official-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.official-product-card {
  --product-accent: var(--emerald);
  min-height: 310px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.official-product-card:hover {
  border-color: color-mix(in srgb, var(--product-accent) 35%, transparent);
  transform: translateY(-5px);
}

.accent-gold { --product-accent: var(--gold-soft); }
.accent-amber { --product-accent: #df8e47; }
.accent-violet { --product-accent: #a8a0eb; }

.official-product-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--product-accent) 17%, transparent), transparent 43%),
    linear-gradient(145deg, #0c241d, #06120f);
}

.official-product-art::before,
.official-product-art::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--product-accent) 24%, transparent);
  border-radius: 50%;
}

.official-product-art::before {
  width: 145px;
  height: 145px;
}

.official-product-art::after {
  width: 95px;
  height: 190px;
  transform: rotate(38deg);
}

.official-product-icon {
  position: relative;
  z-index: 2;
  color: var(--product-accent);
  font-size: 4.6rem;
  text-shadow: 0 0 40px color-mix(in srgb, var(--product-accent) 25%, transparent);
}

.product-status {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 22%, transparent);
  border-radius: 8px;
  background: rgba(3, 14, 11, 0.75);
  color: var(--product-accent);
  font-size: 0.5rem;
}

.official-product-content {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.official-product-content > small {
  color: var(--product-accent);
  font-size: 0.55rem;
}

.official-product-content h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.official-product-content > b {
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.48rem;
  letter-spacing: 0.7px;
}

.official-product-content > p {
  margin: 13px 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.official-product-content ul {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #bacbc4;
  font-size: 0.57rem;
}

.official-product-content li::before {
  content: "✓";
  margin-left: 7px;
  color: var(--product-accent);
}

.official-product-content button {
  min-height: 39px;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--product-accent) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--product-accent) 7%, transparent);
  color: var(--product-accent);
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 800;
}

.official-product-content button.joined {
  background: color-mix(in srgb, var(--product-accent) 14%, transparent);
}

.equipment-library-section {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 25%, rgba(143, 167, 255, 0.075), transparent 26%),
    radial-gradient(circle at 100% 80%, rgba(44, 214, 159, 0.055), transparent 28%),
    #061611;
}

.equipment-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.equipment-category-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.equipment-category-filters button {
  min-width: max-content;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.equipment-category-filters button:hover,
.equipment-category-filters button.active {
  border-color: rgba(143, 167, 255, 0.32);
  background: rgba(143, 167, 255, 0.08);
  color: #c8d0ff;
}

.equipment-search {
  width: min(100%, 360px);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  background: rgba(2, 14, 11, 0.68);
}

.equipment-search span {
  color: var(--muted);
  font-size: 1.15rem;
}

.equipment-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.equipment-library-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.016);
}

.equipment-library-trust > div {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.equipment-library-trust > div:not(:last-child) {
  border-left: 1px solid var(--line);
}

.equipment-library-trust span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.74rem;
}

.equipment-library-trust p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.equipment-library-trust strong {
  color: var(--text);
}

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

.equipment-guide-card {
  --equipment-accent: var(--emerald);
  min-height: 300px;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(8, 28, 22, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.equipment-guide-card:hover {
  border-color: color-mix(in srgb, var(--equipment-accent) 34%, transparent);
  transform: translateY(-4px) perspective(900px) rotateX(0.8deg);
}

.equipment-guide-card.accent-amber { --equipment-accent: #e2a45f; }
.equipment-guide-card.accent-violet { --equipment-accent: #aaa1ef; }
.equipment-guide-card.accent-blue { --equipment-accent: #8fa7ff; }
.equipment-guide-card.accent-gold { --equipment-accent: var(--gold-soft); }
.equipment-guide-card.accent-copper { --equipment-accent: #d88b62; }

.equipment-guide-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--equipment-accent) 16%, transparent), transparent 43%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent);
}

.equipment-guide-art::before,
.equipment-guide-art::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--equipment-accent) 22%, transparent);
  border-radius: 50%;
}

.equipment-guide-art::before {
  width: 125px;
  height: 125px;
}

.equipment-guide-art::after {
  width: 75px;
  height: 165px;
  transform: rotate(38deg);
}

.equipment-guide-index {
  position: absolute;
  top: 12px;
  right: 12px;
  color: color-mix(in srgb, var(--equipment-accent) 70%, #ffffff);
  font-family: Georgia, serif;
  font-size: 0.74rem;
}

.equipment-guide-icon {
  position: relative;
  z-index: 2;
  color: var(--equipment-accent);
  font-size: 3.8rem;
  text-shadow: 0 0 34px color-mix(in srgb, var(--equipment-accent) 30%, transparent);
}

.equipment-guide-art small {
  position: absolute;
  right: 11px;
  bottom: 11px;
  left: 11px;
  z-index: 2;
  color: color-mix(in srgb, var(--equipment-accent) 78%, #ffffff);
  font-size: 0.72rem;
  text-align: center;
}

.equipment-guide-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.equipment-guide-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.equipment-guide-card-head small {
  color: var(--equipment-accent);
  font-size: 0.7rem;
  letter-spacing: 0.7px;
}

.equipment-guide-card-head h3 {
  margin: 2px 0 0;
  font-size: 1.08rem;
}

.equipment-favorite {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
}

.equipment-favorite.active {
  border-color: rgba(213, 168, 83, 0.3);
  background: rgba(213, 168, 83, 0.07);
  color: var(--gold-soft);
}

.equipment-guide-body > p {
  margin: 13px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.82;
}

.equipment-guide-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.equipment-guide-uses span {
  padding: 5px 7px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--equipment-accent) 7%, transparent);
  color: #c4d3cd;
  font-size: 0.72rem;
}

.equipment-guide-status {
  display: block;
  margin: 13px 0;
  color: var(--gold);
  font-size: 0.72rem;
  line-height: 1.6;
}

.equipment-guide-open {
  min-height: 43px;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--equipment-accent) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--equipment-accent) 7%, transparent);
  color: var(--equipment-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}

.equipment-guide-empty {
  padding: 24px;
  border: 1px dashed var(--line-bright);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.equipment-guide-dialog {
  width: min(calc(100% - 30px), 940px);
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(143, 167, 255, 0.22);
  border-radius: 23px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.equipment-guide-dialog::backdrop {
  background: rgba(0, 8, 6, 0.84);
  backdrop-filter: blur(9px);
}

.equipment-guide-dialog-shell {
  position: relative;
}

.equipment-guide-dialog-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 10%, rgba(143, 167, 255, 0.12), transparent 28%),
    rgba(5, 22, 18, 0.72);
}

.equipment-dialog-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 167, 255, 0.25);
  border-radius: 20px;
  background: rgba(143, 167, 255, 0.07);
  color: #bcc7ff;
  font-size: 2.4rem;
}

.equipment-guide-dialog-head small {
  color: #aebaff;
  font-size: 0.73rem;
  letter-spacing: 1px;
}

.equipment-guide-dialog-head h2 {
  margin: 2px 0 5px;
  font-size: 1.65rem;
}

.equipment-guide-dialog-head p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.equipment-guide-dialog-head > span {
  align-self: start;
  margin-left: 38px;
  padding: 6px 9px;
  border: 1px solid rgba(213, 168, 83, 0.22);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.74rem;
}

.equipment-guide-review {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.equipment-guide-review > div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px 18px;
}

.equipment-guide-review > div:not(:last-child) {
  border-left: 1px solid var(--line);
}

.equipment-guide-review small {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.equipment-guide-review strong {
  color: #d2dfda;
  font-size: 0.82rem;
}

.equipment-dialog-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 20px;
}

.equipment-dialog-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.equipment-dialog-section.warning {
  border-color: rgba(255, 152, 152, 0.18);
  background: rgba(255, 152, 152, 0.035);
}

.equipment-dialog-section h3 {
  margin: 0 0 11px;
  color: var(--emerald-soft);
  font-size: 1rem;
}

.equipment-dialog-section.warning h3 {
  color: #efb0b0;
}

.equipment-dialog-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipment-dialog-section li {
  position: relative;
  padding-right: 16px;
  color: #c5d3ce;
  font-size: 0.84rem;
  line-height: 1.8;
}

.equipment-dialog-section li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.equipment-dialog-section.warning li::before {
  background: var(--danger);
}

.equipment-guide-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.equipment-guide-dialog-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.equipment-guide-dialog-footer button {
  min-width: 170px;
  min-height: 43px;
  border: 1px solid rgba(143, 167, 255, 0.28);
  border-radius: 10px;
  background: rgba(143, 167, 255, 0.07);
  color: #c5ceff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}

.equipment-guide-dialog-footer button.active {
  border-color: rgba(213, 168, 83, 0.28);
  background: rgba(213, 168, 83, 0.07);
  color: var(--gold-soft);
}

@media (max-width: 820px) {
  .equipment-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .equipment-search {
    width: 100%;
  }

  .equipment-library-trust,
  .equipment-guide-grid,
  .equipment-dialog-content {
    grid-template-columns: 1fr;
  }

  .equipment-library-trust > div:not(:last-child),
  .equipment-guide-review > div:not(:last-child) {
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .equipment-guide-review {
    grid-template-columns: 1fr;
  }

  .equipment-guide-dialog-head {
    grid-template-columns: 68px 1fr;
  }

  .equipment-dialog-icon {
    width: 64px;
    height: 64px;
  }

  .equipment-guide-dialog-head > span {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0;
  }
}

@media (max-width: 560px) {
  .equipment-guide-card {
    grid-template-columns: 1fr;
  }

  .equipment-guide-art {
    min-height: 175px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .equipment-guide-dialog-head {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .equipment-guide-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .equipment-guide-dialog-footer button {
    width: 100%;
  }
}

.academy-hub-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 5% 50%, rgba(44, 214, 159, 0.06), transparent 25%),
    var(--bg);
}

.academy-personas {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  overflow-x: auto;
}

.academy-personas button,
.market-filters button {
  min-height: 37px;
  min-width: max-content;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.61rem;
}

.academy-personas button.active,
.market-filters button.active,
.academy-personas button:hover,
.market-filters button:hover {
  border-color: rgba(44, 214, 159, 0.27);
  background: rgba(44, 214, 159, 0.06);
  color: var(--emerald-soft);
}

.academy-tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.academy-track-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(44, 214, 159, 0.035), transparent 50%),
    var(--surface);
}

.academy-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.academy-track-head > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 12px;
  color: var(--emerald-soft);
  font-family: Georgia, serif;
  font-size: 0.7rem;
}

.academy-track-head b {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--gold-soft);
  font-size: 0.48rem;
  font-weight: 500;
}

.academy-track-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.academy-track-content h3 {
  margin: 0;
  font-size: 1rem;
}

.academy-track-content > p {
  margin: 4px 0 13px;
  color: var(--muted);
  font-size: 0.62rem;
}

.academy-track-meta {
  display: flex;
  gap: 6px;
}

.academy-track-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.49rem;
}

.academy-track-content ul {
  display: grid;
  gap: 5px;
  margin: 17px 0;
  padding: 0;
  list-style: none;
  font-size: 0.57rem;
}

.academy-track-content li::before {
  content: "—";
  margin-left: 7px;
  color: var(--emerald-soft);
}

.academy-track-content button {
  min-height: 40px;
  margin-top: auto;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 10px;
  background: rgba(44, 214, 159, 0.055);
  color: var(--emerald-soft);
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 800;
}

.academy-track-content button.active {
  border-color: rgba(213, 168, 83, 0.25);
  background: rgba(213, 168, 83, 0.07);
  color: var(--gold-soft);
}

.academy-progress-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr 45px;
  align-items: center;
  gap: 18px;
  margin-top: 17px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.academy-progress-panel > div:first-child {
  display: grid;
  line-height: 1.5;
}

.academy-progress-panel small {
  color: var(--muted);
  font-size: 0.49rem;
}

.academy-progress-panel strong {
  font-size: 0.66rem;
}

.academy-progress-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.academy-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-soft));
  transition: width 0.3s ease;
}

.academy-progress-panel > b {
  color: var(--gold-soft);
  font-size: 0.64rem;
}

.clinic-hub-section {
  background:
    radial-gradient(circle at 12% 35%, rgba(83, 177, 152, 0.08), transparent 25%),
    #041310;
}

.clinic-hub-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 75px;
}

.clinic-copy h2 {
  margin: 6px 0 17px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.4;
}

.clinic-copy > p:not(.overline) {
  color: var(--muted);
  font-size: 0.78rem;
}

.clinic-principles {
  display: grid;
  gap: 8px;
  margin-top: 25px;
}

.clinic-principles > div {
  display: grid;
  grid-template-columns: 33px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
}

.clinic-principles > div:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.clinic-principles span {
  color: var(--emerald-soft);
  font-family: Georgia, serif;
  font-size: 0.67rem;
}

.clinic-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.61rem;
}

.clinic-principles strong {
  color: var(--ink);
}

.clinic-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 15px;
  border: 1px solid rgba(44, 214, 159, 0.3);
  border-radius: 12px;
  color: var(--emerald-soft);
  background: rgba(44, 214, 159, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
}

.clinic-portal-link:hover {
  background: rgba(44, 214, 159, 0.16);
}

.triage-card {
  display: grid;
  gap: 15px;
  padding: 23px;
  border: 1px solid rgba(44, 214, 159, 0.17);
  border-radius: 21px;
  background:
    radial-gradient(circle at 80% 10%, rgba(44, 214, 159, 0.07), transparent 28%),
    var(--surface);
  box-shadow: var(--shadow);
}

.triage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.triage-card-head div {
  display: grid;
  line-height: 1.5;
}

.triage-card-head small {
  color: var(--emerald-soft);
  font-size: 0.5rem;
}

.triage-card-head strong {
  font-size: 0.82rem;
}

.triage-card-head > span {
  color: var(--muted);
  font-size: 0.51rem;
}

.triage-card label,
.triage-card legend {
  color: #c5d6ce;
  font-size: 0.59rem;
  font-weight: 700;
}

.triage-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.triage-card label {
  display: grid;
  gap: 6px;
}

.triage-card select,
.triage-card textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #061612;
  color: var(--ink);
  font: inherit;
  font-size: 0.62rem;
}

.triage-card select {
  height: 43px;
}

.triage-card fieldset {
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.triage-symptoms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 7px;
}

.triage-symptom {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.triage-symptom input {
  position: absolute;
  opacity: 0;
}

.triage-symptom span {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
}

.triage-symptom input:checked + span {
  border-color: var(--emerald);
  background: var(--emerald);
  box-shadow: inset 0 0 0 4px var(--surface);
}

.triage-symptom strong {
  font-size: 0.51rem;
  font-weight: 500;
}

.triage-submit {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--emerald);
  color: #06140f;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
}

.triage-result {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.59rem;
}

.triage-result[hidden] {
  display: none;
}

.triage-result.urgent {
  border-color: rgba(255, 152, 152, 0.3);
  background: rgba(255, 152, 152, 0.07);
  color: #ffc4c4;
}

.triage-result.appointment,
.triage-result.warning {
  border-color: rgba(213, 168, 83, 0.3);
  background: rgba(213, 168, 83, 0.07);
  color: var(--gold-soft);
}

.triage-result.monitor {
  border-color: rgba(44, 214, 159, 0.25);
  background: rgba(44, 214, 159, 0.06);
  color: var(--emerald-soft);
}

.clinic-appointments-panel {
  grid-column: 2;
  display: grid;
  gap: 13px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.clinic-appointments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.clinic-appointments-head > div {
  display: grid;
  line-height: 1.5;
}

.clinic-appointments-head small {
  color: var(--muted);
  font-size: 0.49rem;
}

.clinic-appointments-head strong {
  font-size: 0.76rem;
}

.clinic-appointments-head > span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--gold-soft);
  font-size: 0.48rem;
}

.appointment-form {
  display: grid;
  gap: 10px;
}

.appointment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.appointment-form label {
  display: grid;
  gap: 5px;
  color: #c5d6ce;
  font-size: 0.56rem;
  font-weight: 700;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #061612;
  color: var(--ink);
  font: inherit;
  font-size: 0.59rem;
}

.appointment-form > button {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 9px;
  background: rgba(44, 214, 159, 0.07);
  color: var(--emerald-soft);
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 800;
}

.appointment-form > p {
  min-height: 15px;
  margin: 0;
  color: var(--emerald-soft);
  font-size: 0.49rem;
}

.appointment-list {
  display: grid;
  gap: 7px;
}

.appointment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}

.appointment-item > div {
  display: grid;
  line-height: 1.45;
}

.appointment-item strong {
  font-size: 0.59rem;
}

.appointment-item small {
  color: var(--muted);
  font-size: 0.46rem;
}

.appointment-item > span {
  color: var(--gold-soft);
  font-size: 0.47rem;
}

.health-tools-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 35%, rgba(255, 152, 152, 0.045), transparent 22%),
    radial-gradient(circle at 10% 65%, rgba(44, 214, 159, 0.055), transparent 22%),
    #030e0b;
}

.health-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.hatch-diagnostic-card,
.biosecurity-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.hatch-diagnostic-card > header,
.biosecurity-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.hatch-diagnostic-card > header > span,
.biosecurity-card > header > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.22);
  border-radius: 13px;
  color: var(--gold-soft);
  font-weight: 900;
}

.biosecurity-card > header > span {
  border-color: rgba(44, 214, 159, 0.2);
  color: var(--emerald-soft);
}

.hatch-diagnostic-card > header div,
.biosecurity-card > header div {
  display: grid;
  line-height: 1.45;
}

.hatch-diagnostic-card header small,
.biosecurity-card header small {
  color: var(--muted);
  font-size: 0.49rem;
}

.hatch-diagnostic-card header h3,
.biosecurity-card header h3 {
  margin: 0;
  font-size: 0.82rem;
}

.biosecurity-card header b {
  margin-right: auto;
  color: var(--emerald-soft);
  font-size: 0.7rem;
}

.hatch-diagnostic-card form {
  display: grid;
  gap: 11px;
}

.hatch-diagnostic-card label {
  display: grid;
  gap: 5px;
  color: #c5d6ce;
  font-size: 0.57rem;
  font-weight: 700;
}

.hatch-diagnostic-card select,
.hatch-diagnostic-card input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #061612;
  color: var(--ink);
  font: inherit;
  font-size: 0.59rem;
}

.diagnostic-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.hatch-diagnostic-card form > button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(213, 168, 83, 0.22);
  border-radius: 9px;
  background: rgba(213, 168, 83, 0.065);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 800;
}

.hatch-diagnostic-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.hatch-diagnostic-result[hidden] {
  display: none;
}

.diagnostic-result-head,
.diagnostic-warning {
  grid-column: 1 / -1;
}

.diagnostic-result-head {
  display: grid;
  line-height: 1.5;
}

.diagnostic-result-head small {
  color: var(--gold);
  font-size: 0.48rem;
}

.diagnostic-result-head strong {
  font-size: 0.7rem;
}

.hatch-diagnostic-result section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hatch-diagnostic-result h4 {
  margin: 0 0 7px;
  font-size: 0.6rem;
}

.hatch-diagnostic-result section p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.5rem;
}

.hatch-diagnostic-result section p::before {
  content: "—";
  margin-left: 6px;
  color: var(--gold);
}

.diagnostic-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.48rem;
}

.biosecurity-progress {
  height: 5px;
  margin-bottom: 13px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.biosecurity-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-soft));
  transition: width 0.25s ease;
}

.biosecurity-checklist {
  display: grid;
  gap: 7px;
}

.biosecurity-item {
  min-height: 47px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.biosecurity-item input {
  position: absolute;
  opacity: 0;
}

.biosecurity-item > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
}

.biosecurity-item > span::after {
  content: "✓";
  color: #06130f;
  font-size: 0.61rem;
  font-weight: 900;
  opacity: 0;
}

.biosecurity-item > div {
  display: grid;
  line-height: 1.45;
}

.biosecurity-item small {
  color: var(--muted-2);
  font-size: 0.43rem;
}

.biosecurity-item strong {
  font-size: 0.54rem;
  font-weight: 500;
}

.biosecurity-item.completed {
  border-color: rgba(44, 214, 159, 0.17);
  background: rgba(44, 214, 159, 0.035);
}

.biosecurity-item.completed > span {
  border-color: var(--emerald);
  background: var(--emerald);
}

.biosecurity-item.completed > span::after {
  opacity: 1;
}

.biosecurity-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.biosecurity-actions button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.49rem;
}

.biosecurity-actions small {
  color: var(--muted-2);
  font-size: 0.47rem;
}

.marketplace-section {
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.market-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
}

.market-search {
  width: min(100%, 350px);
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.market-search span {
  color: var(--muted);
}

.market-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.62rem;
}

.market-listings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.market-listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.market-listing-card:hover {
  border-color: rgba(213, 168, 83, 0.25);
  transform: translateY(-4px);
}

.market-listing-art {
  position: relative;
  height: 150px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(213, 168, 83, 0.1), transparent 43%),
    #071711;
}

.market-listing-icon {
  color: var(--gold-soft);
  font-size: 3.6rem;
}

.market-listing-art small {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.44rem;
}

.market-listing-content {
  padding: 14px;
}

.market-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-title-row h3 {
  margin: 0;
  font-size: 1rem;
}

.favorite {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.favorite.active {
  border-color: rgba(255, 122, 145, 0.25);
  background: rgba(255, 122, 145, 0.07);
  color: #ff8fa4;
}

.market-listing-content > p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.51rem;
}

.market-listing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.market-listing-details span {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #afc0b9;
  font-size: 0.45rem;
}

.market-listing-content > b {
  display: block;
  margin-top: 11px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 500;
}

.market-empty {
  padding: 20px;
  border: 1px dashed var(--line-bright);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.purchase-requests {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid rgba(143, 167, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 4% 10%, rgba(143, 167, 255, 0.11), transparent 29%),
    radial-gradient(circle at 100% 100%, rgba(44, 214, 159, 0.075), transparent 32%),
    rgba(9, 25, 24, 0.72);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.2);
}

.purchase-request-copy {
  align-self: start;
  padding: 8px 6px;
}

.purchase-request-copy h3 {
  margin: 7px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.purchase-request-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.purchase-request-notice {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgba(213, 168, 83, 0.2);
  border-radius: 14px;
  background: rgba(213, 168, 83, 0.055);
}

.purchase-request-notice span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(213, 168, 83, 0.1);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.purchase-request-notice p {
  margin: 9px 0 0;
  color: #c2ccc8;
  font-size: 0.82rem;
  line-height: 1.8;
}

.purchase-request-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 14px;
}

.purchase-request-form,
.purchase-request-list-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(2, 14, 11, 0.48);
}

.purchase-request-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

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

.purchase-request-form label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: #d7e3df;
  font-size: 0.84rem;
  font-weight: 800;
}

.purchase-request-form input,
.purchase-request-form select,
.purchase-request-form textarea {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  outline: 0;
  background: #071b17;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.purchase-request-form textarea {
  min-height: 104px;
  resize: vertical;
}

.purchase-request-form input:focus-visible,
.purchase-request-form select:focus-visible,
.purchase-request-form textarea:focus-visible {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(44, 214, 159, 0.11);
}

.purchase-request-form .invalid-field {
  border-color: rgba(255, 152, 152, 0.7);
}

.purchase-request-form .field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.55;
}

.purchase-request-form > button {
  min-height: 48px;
  border: 1px solid rgba(44, 214, 159, 0.28);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(44, 214, 159, 0.18), rgba(44, 214, 159, 0.07));
  color: var(--emerald-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
}

.purchase-request-form > button:hover,
.purchase-request-form > button:focus-visible {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

#purchase-request-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

#purchase-request-status.error {
  color: var(--danger);
}

#purchase-request-status.success {
  color: var(--emerald-soft);
}

.purchase-request-list-panel {
  min-width: 0;
}

.purchase-request-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.purchase-request-list-head div {
  display: grid;
}

.purchase-request-list-head small {
  color: var(--muted-2);
  font-size: 0.73rem;
}

.purchase-request-list-head strong {
  font-size: 1rem;
}

.purchase-request-list-head > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(143, 167, 255, 0.08);
  color: #bdc7ff;
  font-size: 0.75rem;
}

.purchase-request-list {
  max-height: 610px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-left: 3px;
}

.purchase-request-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px dashed var(--line-bright);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.purchase-request-empty span {
  color: var(--gold-soft);
  font-size: 1.7rem;
}

.purchase-request-empty strong {
  color: var(--text);
  font-size: 0.9rem;
}

.purchase-request-empty p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
}

.purchase-request-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(5, 22, 18, 0.68);
}

.purchase-request-card.status-paused {
  opacity: 0.7;
}

.purchase-request-card-head,
.purchase-request-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.purchase-request-category,
.purchase-request-state {
  font-size: 0.7rem;
}

.purchase-request-category {
  color: var(--gold-soft);
  font-weight: 900;
}

.purchase-request-state {
  color: var(--emerald-soft);
}

.status-paused .purchase-request-state {
  color: var(--muted);
}

.purchase-request-card h4 {
  margin: 9px 0;
  font-size: 1rem;
}

.purchase-request-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.purchase-request-details span {
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #c4d2cd;
  font-size: 0.74rem;
}

.purchase-request-card > p {
  margin: 11px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.purchase-request-card footer {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.purchase-request-card footer > small {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.purchase-request-actions {
  display: flex;
  gap: 6px;
}

.purchase-request-actions button {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: transparent;
  color: var(--emerald-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 800;
}

.purchase-request-actions button.danger {
  border-color: rgba(255, 152, 152, 0.2);
  color: #efb0b0;
}

@media (max-width: 1050px) {
  .purchase-requests {
    grid-template-columns: 1fr;
  }

  .purchase-request-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .purchase-request-copy .overline,
  .purchase-request-copy h3 {
    grid-column: 1;
  }

  .purchase-request-copy > p,
  .purchase-request-notice {
    grid-column: 2;
  }

  .purchase-request-copy > p {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 820px) {
  .purchase-request-copy,
  .purchase-request-workspace {
    grid-template-columns: 1fr;
  }

  .purchase-request-copy .overline,
  .purchase-request-copy h3,
  .purchase-request-copy > p,
  .purchase-request-notice {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .purchase-requests {
    padding: 18px;
    border-radius: 18px;
  }

  .purchase-request-form-grid {
    grid-template-columns: 1fr;
  }

  .purchase-request-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-request-actions,
  .purchase-request-actions button {
    width: 100%;
  }

  .purchase-request-actions button {
    justify-content: center;
  }
}

.retention-section {
  background:
    linear-gradient(rgba(4, 17, 14, 0.95), rgba(4, 17, 14, 0.95)),
    radial-gradient(circle, rgba(44, 214, 159, 0.13) 1px, transparent 1px);
  background-size: auto, 25px 25px;
}

.retention-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.retention-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.retention-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 12px;
  color: var(--emerald-soft);
  font-weight: 900;
}

.retention-card small {
  color: var(--gold);
  font-size: 0.48rem;
}

.retention-card h3 {
  margin: 2px 0 5px;
  font-size: 0.83rem;
}

.retention-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.57rem;
}

.community-join-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 25px;
  border: 1px solid rgba(213, 168, 83, 0.21);
  border-radius: 19px;
  background:
    radial-gradient(circle at 10% 40%, rgba(213, 168, 83, 0.09), transparent 24%),
    var(--surface);
}

.community-join-card small {
  color: var(--gold-soft);
  font-size: 0.51rem;
}

.community-join-card h3 {
  margin: 3px 0 5px;
  font-size: 1.05rem;
}

.community-join-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.58rem;
}

.community-join-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.community-join-card input {
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #061612;
  color: var(--ink);
  font-size: 0.6rem;
}

.community-join-card button {
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #171108;
  cursor: pointer;
  font-size: 0.56rem;
  font-weight: 900;
}

.community-join-card > p {
  grid-column: 2;
  color: var(--emerald-soft);
  font-size: 0.49rem;
}

.member-center-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 35%, rgba(143, 167, 255, 0.06), transparent 24%),
    #030e0b;
}

.smart-tools-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 30%, rgba(143, 167, 255, 0.07), transparent 22%),
    radial-gradient(circle at 90% 70%, rgba(44, 214, 159, 0.055), transparent 24%),
    var(--bg);
}

.smart-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.smart-tool-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.smart-tool-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.smart-tool-card > header > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 167, 255, 0.21);
  border-radius: 13px;
  color: #bec8ff;
  font-family: Georgia, serif;
  font-weight: 900;
}

.cost-calculator-card > header > span {
  border-color: rgba(213, 168, 83, 0.22);
  color: var(--gold-soft);
}

.hatch-performance-card > header > span {
  border-color: rgba(44, 214, 159, 0.24);
  color: var(--emerald-soft);
}

.feed-planner-card > header > span {
  border-color: rgba(223, 142, 71, 0.24);
  color: #efb276;
}

.smart-tool-card > header div {
  display: grid;
  line-height: 1.45;
}

.smart-tool-card > header small {
  color: var(--muted);
  font-size: 0.49rem;
}

.smart-tool-card > header h3 {
  margin: 0;
  font-size: 0.85rem;
}

.smart-tool-form {
  display: grid;
  gap: 12px;
}

.smart-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.smart-tool-form label {
  display: grid;
  gap: 5px;
  color: #c2d2cb;
  font-size: 0.57rem;
  font-weight: 700;
}

.smart-tool-form select,
.smart-tool-form input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #061612;
  color: var(--ink);
  font: inherit;
  font-size: 0.59rem;
}

.smart-tool-form > button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid rgba(143, 167, 255, 0.22);
  border-radius: 10px;
  background: rgba(143, 167, 255, 0.07);
  color: #bec8ff;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 800;
}

.cost-calculator-card .smart-tool-form > button {
  border-color: rgba(213, 168, 83, 0.22);
  background: rgba(213, 168, 83, 0.065);
  color: var(--gold-soft);
}

.breed-advisor-result,
.cost-calculator-result {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.breed-advisor-result[hidden],
.cost-calculator-result[hidden] {
  display: none;
}

.advisor-result-heading {
  display: grid;
  line-height: 1.5;
}

.advisor-result-heading small {
  color: #bec8ff;
  font-size: 0.49rem;
}

.advisor-result-heading strong {
  font-size: 0.68rem;
}

.advisor-breed-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink);
  cursor: pointer;
  text-align: right;
}

.advisor-breed-row:hover {
  border-color: rgba(143, 167, 255, 0.23);
  background: rgba(143, 167, 255, 0.035);
}

.advisor-breed-row > span {
  color: #aebaff;
  font-family: Georgia, serif;
  font-size: 0.61rem;
}

.advisor-breed-row div {
  display: grid;
  line-height: 1.45;
}

.advisor-breed-row strong {
  font-size: 0.61rem;
}

.advisor-breed-row small {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.46rem;
}

.advisor-breed-row b {
  color: var(--emerald-soft);
  font-size: 0.5rem;
}

.breed-advisor-result > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.48rem;
}

.cost-calculator-result {
  grid-template-columns: 1fr 1fr;
}

.cost-calculator-result > div {
  display: grid;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cost-calculator-result small {
  color: var(--muted);
  font-size: 0.47rem;
}

.cost-calculator-result strong {
  color: var(--gold-soft);
  font-size: 0.61rem;
}

.cost-calculator-result > p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.48rem;
}

.cost-calculator-result.error {
  display: block;
  color: var(--danger);
  font-size: 0.57rem;
}

.smart-metric-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.smart-metric-result[hidden] {
  display: none;
}

.smart-metric-result > div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.smart-metric-result small {
  color: var(--muted);
  font-size: var(--ui-meta-size, 0.76rem);
  line-height: 1.7;
}

.smart-metric-result strong {
  color: var(--emerald-soft);
  font-size: 1rem;
}

.feed-planner-card .smart-metric-result strong {
  color: #efb276;
}

.smart-metric-result > p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: var(--muted);
}

.smart-metric-result.error {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 152, 152, 0.25);
  border-radius: 10px;
  background: rgba(255, 152, 152, 0.05);
  color: var(--danger);
}

.member-center-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 17px;
}

.member-profile-card,
.flock-manager {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.member-profile-card {
  position: sticky;
  top: 105px;
}

.member-profile-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(143, 167, 255, 0.07), transparent),
    rgba(255, 255, 255, 0.016);
}

.member-profile-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 167, 255, 0.25);
  border-radius: 13px;
  background: rgba(143, 167, 255, 0.08);
  color: #bec8ff;
  font-weight: 900;
}

.member-profile-head div {
  display: grid;
  line-height: 1.5;
}

.member-profile-head small {
  color: var(--muted);
  font-size: 0.5rem;
}

.member-profile-head strong {
  font-size: 0.74rem;
}

.member-profile-form {
  display: grid;
  gap: 12px;
  padding: 17px;
}

.member-profile-form label,
.flock-form label {
  display: grid;
  gap: 5px;
  color: #c3d3cc;
  font-size: 0.57rem;
  font-weight: 700;
}

.member-profile-form input,
.member-profile-form select,
.flock-form input,
.flock-form select,
.flock-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #061612;
  color: var(--ink);
  font: inherit;
  font-size: 0.6rem;
}

.flock-form textarea {
  padding-block: 9px;
}

.member-profile-form button {
  min-height: 42px;
  border: 1px solid rgba(143, 167, 255, 0.23);
  border-radius: 10px;
  background: rgba(143, 167, 255, 0.08);
  color: #bec8ff;
  cursor: pointer;
  font-size: 0.59rem;
  font-weight: 800;
}

.member-profile-form p {
  min-height: 16px;
  margin: 0;
  color: var(--emerald-soft);
  font-size: 0.5rem;
}

.member-plan {
  display: grid;
  gap: 2px;
  margin: 0 17px 17px;
  padding: 13px;
  border: 1px solid rgba(213, 168, 83, 0.2);
  border-radius: 11px;
  background: rgba(213, 168, 83, 0.055);
}

.member-plan small {
  color: var(--gold);
  font-size: 0.48rem;
}

.member-plan strong {
  color: var(--gold-soft);
  font-size: 0.69rem;
}

.member-plan span {
  color: var(--muted);
  font-size: 0.49rem;
}

.flock-manager {
  min-height: 565px;
}

.flock-manager-head {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.flock-manager-head > div {
  display: grid;
  line-height: 1.55;
}

.flock-manager-head small {
  color: var(--muted);
  font-size: 0.5rem;
}

.flock-manager-head strong {
  font-size: 0.79rem;
}

.flock-manager-head button {
  min-height: 37px;
  padding: 0 11px;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 9px;
  background: rgba(44, 214, 159, 0.055);
  color: var(--emerald-soft);
  cursor: pointer;
  font-size: 0.55rem;
  font-weight: 800;
}

.flock-form {
  display: grid;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.flock-form[hidden] {
  display: none;
}

.flock-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flock-form-actions {
  display: flex;
  gap: 8px;
}

.flock-form-actions button {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.54rem;
}

.flock-form-actions button:first-child {
  border-color: rgba(44, 214, 159, 0.2);
  background: rgba(44, 214, 159, 0.08);
  color: var(--emerald-soft);
}

.flock-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 16px;
}

.flock-empty {
  grid-column: 1 / -1;
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.flock-empty span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(44, 214, 159, 0.17);
  border-radius: 22px;
  background: rgba(44, 214, 159, 0.045);
  color: var(--emerald-soft);
  font-size: 1.5rem;
}

.flock-empty h3 {
  margin: 0;
  font-size: 0.9rem;
}

.flock-empty p {
  max-width: 400px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.6rem;
}

.flock-record-card {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(44, 214, 159, 0.035), transparent),
    rgba(255, 255, 255, 0.017);
}

.flock-record-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
}

.flock-record-head h3 {
  margin: 0;
  font-size: 0.75rem;
}

.flock-record-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.49rem;
}

.flock-record-head button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 152, 152, 0.15);
  border-radius: 8px;
  background: rgba(255, 152, 152, 0.035);
  color: #eeb1b1;
  cursor: pointer;
}

.flock-record-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 17px 0;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}

.flock-record-stats > div {
  display: grid;
  text-align: center;
}

.flock-record-stats > div + div {
  border-right: 1px solid var(--line);
}

.flock-record-stats small {
  color: var(--muted-2);
  font-size: 0.43rem;
}

.flock-record-stats strong {
  font-size: 0.52rem;
}

.flock-record-note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.52rem;
}

.flock-record-actions {
  margin-top: 11px;
}

.flock-record-actions button {
  width: 100%;
  min-height: 35px;
  border: 1px solid rgba(44, 214, 159, 0.18);
  border-radius: 8px;
  background: rgba(44, 214, 159, 0.045);
  color: var(--emerald-soft);
  cursor: pointer;
  font-size: 0.52rem;
}

.breed-dialog {
  width: min(calc(100% - 30px), 900px);
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(189, 224, 208, 0.2);
  border-radius: 23px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.65);
}

.course-dialog {
  width: min(calc(100% - 28px), 1050px);
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(189, 224, 208, 0.2);
  border-radius: 23px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.7);
}

.course-dialog::backdrop,
.flock-event-dialog::backdrop {
  background: rgba(0, 8, 6, 0.84);
  backdrop-filter: blur(9px);
}

.course-dialog-shell {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 330px 1fr;
}

.dialog-close-button {
  position: absolute;
  z-index: 5;
  top: 13px;
  left: 13px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2, 11, 9, 0.75);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.course-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #061612;
}

.course-sidebar-head {
  padding: 25px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.course-sidebar-head small {
  color: var(--gold-soft);
  font-size: 0.49rem;
}

.course-sidebar-head h2 {
  margin: 2px 0 4px;
  font-size: 1.2rem;
}

.course-sidebar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.55rem;
}

.course-sidebar-head > span {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(213, 168, 83, 0.18);
  border-radius: 999px;
  background: rgba(213, 168, 83, 0.045);
  color: var(--gold-soft);
  font-size: 0.7rem;
  line-height: 1.5;
}

.course-progress-wrap {
  display: grid;
  gap: 6px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.course-progress-wrap > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.49rem;
}

.course-progress-wrap b {
  color: var(--emerald-soft);
}

.course-dialog-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.course-dialog-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-soft));
}

.course-lessons {
  display: grid;
  gap: 5px;
  padding: 11px;
  overflow-y: auto;
}

.course-quiz-button {
  min-height: 46px;
  margin: 0 11px 11px;
  border: 1px solid rgba(143, 167, 255, 0.2);
  border-radius: 10px;
  background: rgba(143, 167, 255, 0.055);
  color: #c0c9ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}

.course-quiz-button:hover,
.course-quiz-button.active {
  border-color: rgba(143, 167, 255, 0.4);
  background: rgba(143, 167, 255, 0.11);
}

.course-quiz-button.completed {
  border-color: rgba(44, 214, 159, 0.28);
  color: var(--emerald-soft);
}

.course-lesson-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
}

.course-lesson-item:hover,
.course-lesson-item.active {
  border-color: rgba(44, 214, 159, 0.18);
  background: rgba(44, 214, 159, 0.045);
}

.course-lesson-item > span {
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.56rem;
}

.course-lesson-item > div {
  display: grid;
  line-height: 1.45;
}

.course-lesson-item strong {
  font-size: 0.54rem;
}

.course-lesson-item small {
  color: var(--muted-2);
  font-size: 0.43rem;
}

.course-lesson-item.completed small,
.course-lesson-item.completed > span {
  color: var(--emerald-soft);
}

.lesson-player {
  display: grid;
  grid-template-rows: 0.75fr 1.25fr;
  min-width: 0;
}

.lesson-player-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(44, 214, 159, 0.12), transparent 30%),
    linear-gradient(145deg, #082019, #04110e);
}

.lesson-player-visual > span {
  position: relative;
  z-index: 2;
  width: 115px;
  height: 115px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.25);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  box-shadow: 0 0 65px rgba(213, 168, 83, 0.08);
}

.lesson-orbit {
  position: absolute;
  border: 1px solid rgba(44, 214, 159, 0.13);
  border-radius: 50%;
}

.lesson-orbit-a {
  width: 330px;
  height: 150px;
  transform: rotate(-12deg);
}

.lesson-orbit-b {
  width: 180px;
  height: 350px;
  border-color: rgba(213, 168, 83, 0.13);
  transform: rotate(33deg);
}

.lesson-player-content {
  display: flex;
  flex-direction: column;
  padding: 25px;
  overflow-y: auto;
}

.lesson-view {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.lesson-view[hidden],
.course-quiz-view[hidden] {
  display: none;
}

.lesson-view > small,
.course-quiz-view > small {
  color: var(--gold);
  font-size: 0.5rem;
}

.lesson-view h3,
.course-quiz-view h3 {
  margin: 3px 0 8px;
  font-size: 1.25rem;
}

.lesson-view > p,
.course-quiz-view > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.lesson-key-points {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.lesson-key-points article {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lesson-key-points span {
  color: var(--emerald-soft);
  font-family: Georgia, serif;
  font-size: 0.55rem;
}

.lesson-key-points p {
  margin: 0;
  color: #c0d0c9;
  font-size: 0.57rem;
}

.lesson-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 7px;
  margin-top: auto;
}

.lesson-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.53rem;
}

.lesson-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}

.lesson-actions #complete-lesson {
  border-color: rgba(44, 214, 159, 0.2);
  background: rgba(44, 214, 159, 0.06);
  color: var(--emerald-soft);
  font-weight: 800;
}

.lesson-actions #complete-lesson.completed {
  border-color: rgba(213, 168, 83, 0.22);
  background: rgba(213, 168, 83, 0.06);
  color: var(--gold-soft);
}

.course-quiz-view {
  min-height: 100%;
}

.course-quiz-view > p {
  line-height: 1.85;
}

#course-quiz-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.course-quiz-questions {
  display: grid;
  gap: 12px;
}

.course-quiz-questions fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.course-quiz-questions fieldset.correct {
  border-color: rgba(44, 214, 159, 0.25);
  background: rgba(44, 214, 159, 0.035);
}

.course-quiz-questions fieldset.incorrect {
  border-color: rgba(255, 152, 152, 0.2);
  background: rgba(255, 152, 152, 0.03);
}

.course-quiz-questions legend {
  padding: 0 4px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.75;
}

.course-quiz-questions label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #c5d2cd;
  cursor: pointer;
  font-size: 0.84rem;
}

.course-quiz-questions label:hover,
.course-quiz-questions label:has(input:checked) {
  border-color: rgba(143, 167, 255, 0.22);
  background: rgba(143, 167, 255, 0.055);
}

.course-quiz-questions input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--emerald);
}

.course-quiz-questions fieldset > small {
  display: block;
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

#course-quiz-form > button {
  min-height: 47px;
  border: 1px solid rgba(143, 167, 255, 0.3);
  border-radius: 10px;
  background: rgba(143, 167, 255, 0.08);
  color: #c5ceff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

#course-quiz-result {
  min-height: 24px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

#course-quiz-result.passed {
  border-color: rgba(44, 214, 159, 0.24);
  background: rgba(44, 214, 159, 0.04);
  color: var(--emerald-soft);
}

#course-quiz-result.needs-review,
#course-quiz-result.error {
  border-color: rgba(255, 152, 152, 0.2);
  background: rgba(255, 152, 152, 0.035);
  color: #efb0b0;
}

.flock-event-dialog {
  width: min(calc(100% - 28px), 800px);
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(189, 224, 208, 0.2);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
}

.flock-event-shell {
  position: relative;
}

.flock-event-shell > header {
  padding: 24px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(44, 214, 159, 0.07), transparent);
}

.flock-event-shell > header small {
  color: var(--emerald-soft);
  font-size: 0.49rem;
}

.flock-event-shell > header h2 {
  margin: 2px 0;
  font-size: 1.15rem;
}

.flock-event-shell > header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.54rem;
}

.flock-event-form {
  display: grid;
  gap: 11px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}

.flock-event-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.flock-event-form label {
  display: grid;
  gap: 5px;
  color: #c5d6ce;
  font-size: 0.56rem;
  font-weight: 700;
}

.flock-event-form input,
.flock-event-form select,
.flock-event-form textarea {
  width: 100%;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #061612;
  color: var(--ink);
  font: inherit;
  font-size: 0.59rem;
}

.flock-event-form > button {
  min-height: 41px;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 9px;
  background: rgba(44, 214, 159, 0.07);
  color: var(--emerald-soft);
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 800;
}

.flock-event-list {
  display: grid;
  gap: 8px;
  padding: 17px 21px 22px;
}

.flock-event-empty {
  margin: 0;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  font-size: 0.57rem;
}

.flock-event-item {
  display: grid;
  grid-template-columns: 1fr 29px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-right: 3px solid var(--emerald);
  border-radius: 10px;
}

.flock-event-item.status-attention {
  border-right-color: var(--gold);
}

.flock-event-item.status-critical {
  border-right-color: var(--danger);
}

.flock-event-item > div {
  display: grid;
  line-height: 1.5;
}

.flock-event-item strong {
  font-size: 0.59rem;
}

.flock-event-item p {
  margin: 1px 0;
  color: var(--muted);
  font-size: 0.5rem;
}

.flock-event-item small {
  color: var(--muted-2);
  font-size: 0.44rem;
}

.flock-event-item button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 152, 152, 0.15);
  border-radius: 8px;
  background: rgba(255, 152, 152, 0.035);
  color: #eeb1b1;
  cursor: pointer;
}

.notification-button {
  position: fixed;
  z-index: 150;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.27);
  border-radius: 15px;
  background: rgba(5, 20, 16, 0.92);
  color: var(--gold-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.notification-button > b {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--danger);
  color: #160707;
  font-size: 0.48rem;
}

.notification-panel {
  position: fixed;
  z-index: 151;
  right: 18px;
  bottom: 76px;
  width: min(calc(100% - 36px), 350px);
  max-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 17px;
  background: rgba(5, 20, 16, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel > header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.notification-panel header > div {
  display: grid;
  line-height: 1.45;
}

.notification-panel header small {
  color: var(--gold);
  font-size: 0.45rem;
}

.notification-panel header strong {
  font-size: 0.69rem;
}

.notification-panel header button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.notification-list {
  max-height: 410px;
  display: grid;
  gap: 6px;
  padding: 9px;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--ink);
  cursor: pointer;
  text-align: right;
}

.notification-item.unread {
  background: rgba(213, 168, 83, 0.045);
}

.notification-item > span {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.notification-item.type-health > span,
.notification-item.type-learning > span {
  background: var(--emerald);
}

.notification-item > div {
  display: grid;
  line-height: 1.45;
}

.notification-item strong {
  font-size: 0.55rem;
}

.notification-item p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.48rem;
}

.notification-item small {
  color: var(--muted-2);
  font-size: 0.41rem;
}

.notification-empty {
  margin: 0;
  padding: 30px 15px;
  color: var(--muted);
  text-align: center;
  font-size: 0.54rem;
}

.breed-dialog::backdrop {
  background: rgba(0, 8, 6, 0.82);
  backdrop-filter: blur(9px);
}

.breed-dialog-shell {
  position: relative;
}

.close-breed-dialog {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2, 11, 9, 0.7);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.breed-profile-header {
  min-height: 205px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 17% 50%, rgba(213, 168, 83, 0.13), transparent 21%),
    linear-gradient(120deg, #071812, #0a211a);
}

.breed-profile-symbol {
  width: 135px;
  height: 135px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.24);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 5.2rem;
  box-shadow: inset 0 0 45px rgba(213, 168, 83, 0.07);
}

.breed-profile-header > div:nth-child(2) small {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
}

.breed-profile-header h2 {
  margin: 1px 0 5px;
  font-size: 2rem;
}

.breed-profile-header p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.breed-profile-header > span {
  padding: 6px 8px;
  border: 1px solid rgba(213, 168, 83, 0.2);
  border-radius: 8px;
  color: var(--gold-soft);
  font-size: 0.48rem;
}

.breed-profile-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.breed-profile-trust > div {
  display: grid;
  padding: 13px 18px;
}

.breed-profile-trust > div + div {
  border-right: 1px solid var(--line);
}

.breed-profile-trust small {
  color: var(--muted-2);
  font-size: 0.47rem;
}

.breed-profile-trust strong {
  font-size: 0.58rem;
}

.breed-tabs {
  display: flex;
  gap: 5px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.breed-tabs button {
  min-height: 35px;
  min-width: max-content;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.54rem;
}

.breed-tabs button.active {
  border-color: rgba(44, 214, 159, 0.2);
  background: rgba(44, 214, 159, 0.055);
  color: var(--emerald-soft);
}

.breed-profile-content {
  min-height: 250px;
  padding: 22px;
}

.breed-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 17px;
}

.breed-profile-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--gold-soft);
  font-size: 0.49rem;
}

.breed-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.breed-overview-grid > div {
  min-height: 90px;
  display: grid;
  align-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.017);
}

.breed-overview-grid small {
  color: var(--muted-2);
  font-size: 0.48rem;
}

.breed-overview-grid strong {
  font-size: 0.62rem;
}

.breed-guidance-list h3 {
  margin: 0 0 13px;
  font-size: 0.85rem;
}

.breed-guidance-list article {
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.breed-guidance-list article > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.61rem;
}

.breed-guidance-list article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.61rem;
}

.breed-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.breed-profile-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.49rem;
}

.breed-profile-footer button {
  min-height: 36px;
  min-width: max-content;
  padding: 0 11px;
  border: 1px solid rgba(213, 168, 83, 0.2);
  border-radius: 9px;
  background: rgba(213, 168, 83, 0.055);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.52rem;
}

.breed-profile-footer button.active {
  border-color: rgba(44, 214, 159, 0.2);
  background: rgba(44, 214, 159, 0.06);
  color: var(--emerald-soft);
}

.breed-source-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.breed-source-panel > div:first-child {
  display: grid;
  gap: 2px;
}

.breed-source-panel > div:first-child small {
  color: var(--gold);
}

.breed-source-panel h3 {
  margin: 0;
  font-size: 0.92rem;
}

.breed-source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.breed-source-list a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.breed-source-list a:hover {
  border-color: rgba(44, 214, 159, 0.24);
}

.breed-source-list a > span {
  color: var(--emerald-soft);
}

.breed-source-list a > div {
  display: grid;
  gap: 2px;
}

.breed-source-list strong {
  font-size: 0.78rem;
}

.breed-source-list small {
  color: var(--muted);
}

.breed-source-list > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.tools-section {
  background: #030e0b;
}

.tools-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
  align-items: center;
}

.tools-copy {
  position: sticky;
  top: 130px;
}

.tools-copy > p:not(.overline) {
  margin: 17px 0 21px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-stack {
  display: grid;
  gap: 12px;
}

.tool-card {
  display: grid;
  grid-template-columns: 38px 52px 1fr auto;
  align-items: center;
  gap: 17px;
  min-height: 105px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover,
.tool-card-active {
  border-color: rgba(44, 214, 159, 0.27);
  background: linear-gradient(90deg, rgba(44, 214, 159, 0.055), transparent), var(--surface);
  transform: translateX(-7px);
}

.tool-index {
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.75rem;
}

.tool-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 13px;
  color: var(--emerald-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.tool-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.tool-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.tool-state {
  min-width: 78px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.57rem;
}

.tool-card-active .tool-state {
  border-color: rgba(44, 214, 159, 0.22);
  color: var(--emerald-soft);
}

.tool-workbench {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.tool-workbench-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.tool-workbench-heading h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.tool-workbench-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

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

.tool-workbench-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
}

.tool-workbench-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.tool-workbench-card > header > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(44, 214, 159, 0.22);
  border-radius: 12px;
  color: var(--emerald-soft);
  font-weight: 900;
}

.tool-workbench-card > header small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.tool-workbench-card > header h4 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.tool-workbench-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-workbench-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tool-workbench-form input,
.tool-workbench-form select {
  width: 100%;
  min-height: 43px;
  padding: 0 10px;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  outline: 0;
  background: rgba(2, 14, 11, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.tool-workbench-form input:focus,
.tool-workbench-form select:focus {
  border-color: rgba(44, 214, 159, 0.55);
  box-shadow: 0 0 0 3px rgba(44, 214, 159, 0.1);
}

.tool-workbench-form button {
  grid-column: 1 / -1;
  min-height: 45px;
  margin-top: 3px;
  border: 1px solid rgba(44, 214, 159, 0.3);
  border-radius: 10px;
  background: rgba(44, 214, 159, 0.09);
  color: var(--emerald-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.tool-workbench-form button:hover,
.tool-secondary-button:hover {
  background: rgba(44, 214, 159, 0.16);
}

.tool-result {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.8;
}

.tool-result[hidden],
.tool-empty[hidden] {
  display: none;
}

.tool-result h3 {
  margin: 0 0 9px;
  font-size: 0.95rem;
}

.id-card-header,
.id-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.id-card-header {
  color: var(--emerald-soft);
  font-weight: 800;
}

.id-card-number {
  color: var(--gold-soft);
}

.id-card-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin: 12px 0;
}

.id-card-qr {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.id-card-info h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.id-card-info table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.id-card-info td {
  padding: 2px 0;
  color: var(--muted);
}

.id-card-info td:last-child {
  color: var(--text);
  text-align: left;
}

.id-card-footer {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.tool-saved-list {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tool-saved-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: right;
}

.tool-saved-list small {
  color: var(--muted);
}

.tool-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.tool-secondary-button {
  width: 100%;
  min-height: 39px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.space-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.space-item {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.space-item span,
.vaccine-note,
.space-note,
.tool-error {
  color: var(--muted);
  font-size: 0.74rem;
}

.space-item strong {
  color: var(--emerald-soft);
  font-size: 0.9rem;
}

.vaccine-table {
  overflow-x: auto;
}

.vaccine-row {
  min-width: 560px;
  display: grid;
  grid-template-columns: 42px 1.2fr 1fr 1.2fr 58px;
  gap: 7px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.vaccine-header {
  color: var(--muted);
  font-weight: 800;
}

.vaccine-check {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
}

.vaccine-progress-bar {
  height: 7px;
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.vaccine-progress-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--emerald);
}

.converter-result {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr;
  gap: 9px;
  align-items: center;
}

.conv-to {
  color: var(--emerald-soft);
  font-size: 1.05rem;
  font-weight: 900;
}

.converter-result small {
  grid-column: 1 / -1;
  color: var(--muted);
}

/* ===== نقشه پرورش‌دهندگان و خدمات (TASK-054) ===== */
.breeder-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 22px 0 18px;
}

.breeder-map-field {
  display: grid;
  gap: 5px;
  min-width: 160px;
}

.breeder-map-field > span {
  font-size: 0.8rem;
  color: var(--muted);
}

.breeder-map-field select,
.breeder-map-field input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface, #fff);
  color: inherit;
}

.breeder-map-field-search {
  flex: 1 1 220px;
}

.breeder-map-counter {
  margin: 0 0 2px;
  font-size: 0.85rem;
  color: var(--emerald-soft, var(--muted));
}

.breeder-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.breeder-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: var(--surface, #fff);
}

.breeder-card.is-favorite {
  border-color: var(--emerald-soft, var(--gold, #c9a227));
}

.breeder-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breeder-card-icon {
  font-size: 1.3rem;
}

.breeder-card-title {
  margin: 0;
  font-size: 1.02rem;
  flex: 1;
}

.breeder-card-kind {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
  white-space: nowrap;
}

.breeder-card-place {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breeder-card-summary {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.breeder-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breeder-tag {
  font-size: 0.75rem;
  background: rgba(16, 128, 95, 0.08);
  color: var(--emerald-soft, #10805f);
  border-radius: 999px;
  padding: 3px 10px;
}

.breeder-tag-breed {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold, #8a6d1a);
}

.breeder-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.breeder-card-sample {
  color: var(--muted);
  font-size: 0.72rem;
}

.breeder-card-star {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.breeder-card-star[aria-pressed="true"] {
  border-color: var(--gold, #c9a227);
  color: var(--gold, #8a6d1a);
}

.breeder-map-empty {
  margin: 10px 2px 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .breeder-map-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breeder-card,
  .breeder-card-star {
    transition: none;
  }
}

/* ===== یادآورهای پرورش (TASK-053) ===== */
.reminders-section {
  border-top: 1px solid var(--line);
}

.reminders-section .section-heading {
  max-width: 620px;
}

.reminders-panel {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.reminders-form {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.reminders-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}

.reminders-form input,
.reminders-form select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  direction: rtl;
}

.reminders-form button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--emerald);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reminders-form-status {
  margin: 0;
  color: var(--emerald-soft);
  font-size: 0.74rem;
}

.reminders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
}

.reminders-head h3 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.reminders-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1f16;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.reminder-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.reminder-item.is-today {
  border-color: rgba(212, 175, 55, 0.45);
}

.reminder-item.is-overdue {
  border-color: rgba(231, 111, 81, 0.5);
}

.reminder-item.is-done {
  opacity: 0.55;
}

.reminder-item.is-done .reminder-body strong {
  text-decoration: line-through;
}

.reminder-icon {
  font-size: 1.25rem;
}

.reminder-body {
  display: grid;
  gap: 2px;
}

.reminder-body strong {
  font-size: 0.9rem;
}

.reminder-body small {
  color: var(--muted);
  font-size: 0.72rem;
}

.reminder-body p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.reminder-actions {
  display: flex;
  gap: 5px;
}

.reminder-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.reminder-toggle:hover {
  border-color: var(--emerald);
  color: var(--emerald-soft);
}

.reminder-remove:hover {
  border-color: rgba(231, 111, 81, 0.6);
  color: #e76f51;
}

.reminders-empty {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .reminders-panel {
    grid-template-columns: 1fr;
  }
}

.purchase-request-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.purchase-request-consent input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--emerald);
}

.purchase-request-consent > span {
  grid-column: 2;
}

.purchase-request-consent .field-error {
  grid-column: 2;
}

.purchase-request-consent a,
.appointment-consent a {
  color: var(--emerald-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .tool-workbench-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .tool-workbench-grid {
    grid-template-columns: 1fr;
  }

  .tool-workbench-form {
    grid-template-columns: 1fr;
  }

  .tool-workbench-form button {
    grid-column: auto;
  }

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

  .id-card-qr {
    order: 2;
  }

  .space-result-grid {
    grid-template-columns: 1fr;
  }
}

.membership-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 45%, rgba(44, 214, 159, 0.09), transparent 25%),
    radial-gradient(circle at 20% 60%, rgba(213, 168, 83, 0.07), transparent 20%),
    linear-gradient(145deg, #061712, #020b09);
}

.membership-section[hidden] {
  display: none;
}

.membership-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(124, 229, 189, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 229, 189, 0.12) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 65% 50%, black, transparent 68%);
}

.membership-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  align-items: center;
  gap: 72px;
}

.membership-copy h2 {
  margin: 6px 0 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.42;
  letter-spacing: -1.4px;
}

.membership-copy > p:not(.overline) {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.persona-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 28px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.persona-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.persona-switch button.active {
  background: linear-gradient(135deg, rgba(213, 168, 83, 0.2), rgba(44, 214, 159, 0.11));
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(213, 168, 83, 0.2);
}

.membership-points {
  display: grid;
  gap: 10px;
}

.membership-points > div {
  display: grid;
  grid-template-columns: 33px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.membership-points > div:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.membership-points span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

.membership-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.membership-points strong {
  color: var(--ink);
}

.dashboard-stage {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  perspective: 1500px;
}

.dashboard-orbit {
  position: absolute;
  border: 1px solid rgba(213, 168, 83, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  width: 680px;
  height: 320px;
  transform: rotate(-12deg);
}

.orbit-b {
  width: 390px;
  height: 700px;
  border-color: rgba(44, 214, 159, 0.1);
  transform: rotate(35deg);
}

.dashboard-shell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  z-index: 3;
  width: min(100%, 800px);
  overflow: hidden;
  border: 1px solid rgba(187, 224, 207, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.055), transparent 26%),
    rgba(5, 20, 16, 0.93);
  box-shadow:
    0 45px 100px rgba(0, 0, 0, 0.43),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  transform:
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotateZ(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.dashboard-header {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-user > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.25);
  border-radius: 11px;
  background: rgba(213, 168, 83, 0.08);
  color: var(--gold-soft);
  font-weight: 900;
}

.dashboard-user div {
  display: grid;
  line-height: 1.45;
}

.dashboard-user strong {
  font-size: 0.72rem;
}

.dashboard-user small {
  color: var(--muted);
  font-size: 0.52rem;
}

.dashboard-actions {
  display: flex;
  gap: 6px;
}

.dashboard-actions i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.dashboard-body {
  display: grid;
  grid-template-columns: 57px 1fr;
  min-height: 500px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.dashboard-sidebar button {
  width: 35px;
  height: 35px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.dashboard-sidebar button.active,
.dashboard-sidebar button:hover {
  border-color: rgba(44, 214, 159, 0.18);
  background: rgba(44, 214, 159, 0.08);
  color: var(--emerald-soft);
}

.dashboard-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.dashboard-welcome,
.widget-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.dashboard-welcome div,
.widget-heading div {
  display: grid;
  line-height: 1.5;
}

.dashboard-welcome small,
.widget-heading small,
.subscription-widget small {
  color: var(--muted);
  font-size: 0.51rem;
}

.dashboard-welcome h3 {
  margin: 1px 0 0;
  font-size: 0.98rem;
}

.dashboard-date {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-soft);
  font-size: 0.52rem;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
}

.incubation-widget,
.learning-widget,
.alert-widget,
.flock-widget,
.subscription-widget {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
}

.incubation-widget {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  background:
    radial-gradient(circle at 50% 55%, rgba(213, 168, 83, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.02);
}

.widget-heading strong {
  font-size: 0.68rem;
}

.widget-heading > span {
  color: var(--emerald-soft);
  font-size: 0.53rem;
}

.live-badge {
  padding: 4px 7px;
  border: 1px solid rgba(44, 214, 159, 0.18);
  border-radius: 7px;
  background: rgba(44, 214, 159, 0.05);
}

.incubation-visual {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 140px;
}

.egg-core {
  position: relative;
  z-index: 2;
  width: 75px;
  height: 94px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(240, 204, 127, 0.34);
  border-radius: 50% 50% 46% 46% / 59% 59% 41% 41%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.18), transparent 12%),
    linear-gradient(145deg, rgba(240, 204, 127, 0.28), rgba(213, 168, 83, 0.06));
  color: var(--gold-soft);
  box-shadow: 0 0 40px rgba(213, 168, 83, 0.09);
  text-align: center;
}

.egg-core span {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.egg-core small {
  color: #c6b58f;
  font-size: 0.5rem;
}

.egg-ring {
  position: absolute;
  border-radius: 50%;
}

.ring-progress {
  width: 140px;
  height: 140px;
  border: 1px solid rgba(213, 168, 83, 0.22);
  border-left-color: var(--gold-soft);
  transform: rotate(-30deg);
}

.ring-guide {
  width: 165px;
  height: 95px;
  border: 1px dashed rgba(44, 214, 159, 0.13);
  transform: rotate(12deg);
}

.incubation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.incubation-stats div {
  display: grid;
  text-align: center;
}

.incubation-stats div + div {
  border-right: 1px solid var(--line);
}

.incubation-stats small {
  color: var(--muted-2);
  font-size: 0.48rem;
}

.incubation-stats strong {
  color: #d8e5df;
  font-size: 0.62rem;
}

.dashboard-side-widgets {
  display: grid;
  gap: 12px;
}

.learning-widget {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.lesson-preview {
  min-height: 75px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(44, 214, 159, 0.11), rgba(213, 168, 83, 0.04)),
    var(--surface);
  color: var(--muted);
  font-size: 0.53rem;
}

.lesson-preview i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 50%;
  color: var(--emerald-soft);
  font-size: 0.5rem;
  font-style: normal;
}

.mini-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-progress span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-soft));
}

.alert-widget {
  display: grid;
  grid-template-columns: 39px 1fr;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.alert-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.24);
  border-radius: 11px;
  background: rgba(213, 168, 83, 0.07);
  color: var(--gold-soft);
  font-family: Georgia, serif;
}

.alert-widget > div:last-child {
  display: grid;
  line-height: 1.55;
}

.alert-widget small {
  color: var(--gold);
  font-size: 0.47rem;
}

.alert-widget strong {
  font-size: 0.61rem;
}

.alert-widget span {
  color: var(--muted);
  font-size: 0.48rem;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flock-widget,
.subscription-widget {
  min-height: 110px;
  padding: 14px;
}

.flock-bars {
  height: 48px;
  display: flex;
  align-items: end;
  gap: 7px;
  margin-top: 8px;
}

.flock-bars i {
  flex: 1;
  height: var(--bar);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(0deg, rgba(44, 214, 159, 0.16), var(--emerald));
  opacity: 0.72;
}

.subscription-widget {
  display: grid;
  align-content: center;
  gap: 4px;
  border-color: rgba(213, 168, 83, 0.2);
  background:
    radial-gradient(circle at 85% 20%, rgba(213, 168, 83, 0.11), transparent 32%),
    rgba(213, 168, 83, 0.035);
}

.subscription-widget strong {
  color: var(--gold-soft);
  font-size: 0.67rem;
}

.subscription-widget > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.subscription-widget span {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.43rem;
}

.floating-module {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  background: rgba(6, 24, 19, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: translateZ(80px);
}

.floating-module > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(44, 214, 159, 0.09);
  color: var(--emerald-soft);
  font-size: 0.61rem;
  font-weight: 900;
}

.floating-module div {
  display: grid;
  line-height: 1.45;
}

.floating-module strong {
  font-size: 0.61rem;
}

.floating-module small {
  color: var(--muted);
  font-size: 0.48rem;
}

.floating-module-one {
  top: 7%;
  left: -3%;
}

.floating-module-two {
  right: -1%;
  bottom: 4%;
}

.incubation-app-section {
  position: relative;
  overflow: hidden;
  padding: 115px 0;
  border-top: 1px solid var(--line);
  background: #03100d;
}

.incubation-app-section[hidden] {
  display: none;
}

.incubation-app-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 10%;
  left: -230px;
  border-radius: 50%;
  background: rgba(213, 168, 83, 0.07);
  filter: blur(90px);
  pointer-events: none;
}

.incubation-heading {
  position: relative;
}

.incubation-app-layout {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.cycle-panel,
.calendar-workspace {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.cycle-panel {
  position: sticky;
  top: 105px;
  overflow: hidden;
}

.cycle-panel-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.cycle-panel-head > div {
  display: grid;
  line-height: 1.55;
}

.cycle-panel-head small {
  color: var(--muted);
  font-size: 0.53rem;
}

.cycle-panel-head strong {
  font-size: 0.82rem;
}

.cycle-panel-head button {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(44, 214, 159, 0.22);
  border-radius: 11px;
  background: rgba(44, 214, 159, 0.07);
  color: var(--emerald-soft);
  cursor: pointer;
  font-size: 1.2rem;
}

.incubation-form {
  display: grid;
  gap: 13px;
  padding: 19px;
  border-bottom: 1px solid var(--line);
}

.incubation-form label {
  display: grid;
  gap: 6px;
  color: #c8d8d1;
  font-size: 0.62rem;
  font-weight: 700;
}

.incubation-form input,
.incubation-form select {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #061612;
  color: var(--ink);
  font-size: 0.66rem;
}

.incubation-form input::placeholder {
  color: var(--muted-2);
}

.incubation-form input.invalid-field,
.incubation-form select.invalid-field {
  border-color: var(--danger);
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-error {
  min-height: 14px;
  color: var(--danger);
  font-size: 0.52rem;
  font-weight: 400;
}

.create-cycle-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-soft), #c79437);
  color: #171108;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 900;
}

.cycle-form-status {
  min-height: 18px;
  margin: 0;
  color: var(--emerald-soft);
  font-size: 0.55rem;
}

.saved-cycles {
  max-height: 275px;
  display: grid;
  gap: 7px;
  padding: 12px;
  overflow-y: auto;
}

.saved-cycle {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
}

.saved-cycle:hover,
.saved-cycle.active {
  border-color: rgba(44, 214, 159, 0.18);
  background: rgba(44, 214, 159, 0.055);
}

.saved-cycle > span {
  display: grid;
  line-height: 1.5;
}

.saved-cycle strong {
  font-size: 0.64rem;
}

.saved-cycle small {
  color: var(--muted);
  font-size: 0.5rem;
}

.saved-cycle b {
  min-width: max-content;
  color: var(--gold-soft);
  font-size: 0.54rem;
}

.no-saved-cycles {
  margin: 0;
  padding: 13px;
  color: var(--muted-2);
  text-align: center;
  font-size: 0.56rem;
}

.calendar-workspace {
  min-height: 700px;
  padding: 20px;
}

.calendar-empty {
  min-height: 650px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.empty-egg {
  width: 105px;
  height: 132px;
  display: grid;
  place-content: center;
  margin-bottom: 23px;
  border: 1px solid rgba(213, 168, 83, 0.28);
  border-radius: 50% 50% 46% 46% / 59% 59% 41% 41%;
  background: linear-gradient(145deg, rgba(213, 168, 83, 0.13), rgba(44, 214, 159, 0.04));
  color: var(--gold-soft);
  box-shadow: 0 0 65px rgba(213, 168, 83, 0.08);
}

.empty-egg span {
  font-family: Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
}

.empty-egg small {
  font-size: 0.54rem;
}

.calendar-empty h3 {
  margin: 0;
  font-size: 1.25rem;
}

.calendar-empty p {
  max-width: 430px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.calendar-dashboard {
  display: grid;
  gap: 14px;
}

.calendar-dashboard[hidden] {
  display: none;
}

.cycle-summary {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5px 14px;
  border-bottom: 1px solid var(--line);
}

.cycle-summary > div:first-child {
  display: grid;
  line-height: 1.5;
}

.cycle-summary p {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.54rem;
}

.cycle-summary h3 {
  margin: 1px 0;
  font-size: 1.15rem;
}

.cycle-summary > div:first-child > span {
  color: var(--muted);
  font-size: 0.58rem;
}

.cycle-summary-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cycle-summary-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 152, 152, 0.18);
  border-radius: 8px;
  background: rgba(255, 152, 152, 0.04);
  color: #eeb2b2;
  cursor: pointer;
  font-size: 0.53rem;
}

.cycle-summary-actions span {
  padding: 6px 9px;
  border: 1px solid rgba(44, 214, 159, 0.2);
  border-radius: 8px;
  color: var(--emerald-soft);
  font-size: 0.54rem;
}

.cycle-overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.cycle-progress-card,
.cycle-dates-card,
.today-tasks-card,
.cycle-timeline-card,
.scientific-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.cycle-progress-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 22% 50%, rgba(213, 168, 83, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.018);
}

.cycle-day-orbit {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
}

.cycle-day-core {
  position: relative;
  z-index: 2;
  width: 95px;
  height: 120px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(240, 204, 127, 0.32);
  border-radius: 50% 50% 46% 46% / 59% 59% 41% 41%;
  background: linear-gradient(145deg, rgba(240, 204, 127, 0.23), rgba(213, 168, 83, 0.04));
  color: var(--gold-soft);
  text-align: center;
  box-shadow: 0 0 45px rgba(213, 168, 83, 0.08);
}

.cycle-day-core span {
  font-family: Georgia, serif;
  font-size: 2.15rem;
  line-height: 1;
}

.cycle-day-core small {
  color: #bba97f;
  font-size: 0.5rem;
}

.cycle-progress-ring {
  --cycle-progress: 0deg;
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) var(--cycle-progress), rgba(255, 255, 255, 0.06) 0);
  mask: radial-gradient(circle, transparent 67%, #000 68%);
  transform: rotate(-90deg);
}

.cycle-progress-copy {
  display: grid;
  align-content: center;
}

.cycle-progress-copy small {
  color: var(--emerald-soft);
  font-size: 0.57rem;
}

.cycle-progress-copy strong {
  margin: 3px 0 8px;
  font-size: 1.15rem;
}

.cycle-progress-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.cycle-dates-card {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  overflow: hidden;
}

.cycle-dates-card > div {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 17px;
}

.cycle-dates-card > div + div {
  border-top: 1px solid var(--line);
}

.cycle-dates-card small {
  color: var(--muted-2);
  font-size: 0.52rem;
}

.cycle-dates-card strong {
  font-size: 0.66rem;
}

.today-tasks-card,
.cycle-timeline-card {
  padding: 17px;
}

.calendar-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.calendar-card-heading > div {
  display: grid;
  line-height: 1.55;
}

.calendar-card-heading small {
  color: var(--muted);
  font-size: 0.5rem;
}

.calendar-card-heading strong {
  font-size: 0.76rem;
}

.calendar-card-heading > span {
  color: var(--emerald-soft);
  font-size: 0.53rem;
}

.cycle-tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cycle-task {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cycle-task:hover {
  border-color: rgba(44, 214, 159, 0.22);
  background: rgba(44, 214, 159, 0.025);
}

.cycle-task input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cycle-task > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
}

.cycle-task > span::after {
  content: "✓";
  color: #06130f;
  font-size: 0.65rem;
  font-weight: 900;
  opacity: 0;
}

.cycle-task strong {
  font-size: 0.59rem;
  font-weight: 500;
}

.cycle-task.completed {
  border-color: rgba(44, 214, 159, 0.16);
  background: rgba(44, 214, 159, 0.04);
}

.cycle-task.completed > span {
  border-color: var(--emerald);
  background: var(--emerald);
}

.cycle-task.completed > span::after {
  opacity: 1;
}

.cycle-task.completed strong {
  color: var(--muted);
  text-decoration: line-through;
}

.cycle-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.timeline-milestone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.timeline-milestone::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 17px;
  right: -50%;
  left: 50%;
  height: 1px;
  background: var(--line);
}

.timeline-milestone:first-child::before {
  right: 50%;
}

.timeline-milestone > span {
  position: relative;
  z-index: 1;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 0.64rem;
}

.timeline-milestone > div {
  display: grid;
  line-height: 1.45;
}

.timeline-milestone strong {
  font-size: 0.54rem;
}

.timeline-milestone small {
  color: var(--muted-2);
  font-size: 0.43rem;
}

.timeline-milestone.passed > span {
  border-color: rgba(44, 214, 159, 0.3);
  background: rgba(44, 214, 159, 0.12);
  color: var(--emerald-soft);
}

.timeline-milestone.current > span {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #171108;
  box-shadow: 0 0 0 6px rgba(213, 168, 83, 0.08);
}

.scientific-note {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.scientific-note > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.2);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: Georgia, serif;
}

.scientific-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.55rem;
}

.standards-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  border-block: 1px solid rgba(213, 168, 83, 0.13);
  background:
    radial-gradient(circle at 28% 50%, rgba(213, 168, 83, 0.12), transparent 25%),
    #071510;
}

.standards-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(213, 168, 83, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 168, 83, 0.13) 1px, transparent 1px);
  background-size: 58px 58px;
}

.standards-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 90px;
}

.standards-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.anatomy-ring {
  position: absolute;
  border: 1px solid rgba(213, 168, 83, 0.23);
  border-radius: 50%;
}

.anatomy-ring-one {
  width: 350px;
  height: 350px;
  box-shadow: 0 0 80px rgba(213, 168, 83, 0.06);
}

.anatomy-ring-two {
  width: 240px;
  height: 240px;
  border-style: dashed;
  animation: rotate 28s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.anatomy-core {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 168, 83, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 168, 83, 0.13), transparent 70%);
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 2.4rem;
}

.anatomy-point {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8d5d0;
  font-size: 0.64rem;
}

.anatomy-point i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(213, 168, 83, 0.08);
}

.point-one { top: 13%; right: 48%; }
.point-two { top: 49%; right: 7%; }
.point-three { bottom: 10%; right: 44%; }
.point-four { top: 50%; left: 7%; }

.standards-copy > p:not(.overline) {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.standards-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
}

.standards-copy li span {
  margin-left: 8px;
  color: var(--gold-soft);
}

.roadmap-section {
  background: var(--bg);
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  list-style: none;
  overflow: hidden;
}

.roadmap-list li {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.roadmap-list li:last-child {
  border-left: 0;
}

.roadmap-list li.current {
  background:
    radial-gradient(circle at 70% 20%, rgba(44, 214, 159, 0.1), transparent 35%),
    var(--surface-2);
}

.roadmap-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 45px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 0.78rem;
}

.roadmap-list small {
  color: var(--emerald-soft);
  font-size: 0.57rem;
}

.roadmap-list h3 {
  margin: 2px 0 5px;
  font-size: 1rem;
}

.roadmap-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.roadmap-list b {
  width: fit-content;
  margin-top: auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 500;
}

.current b {
  border-color: rgba(44, 214, 159, 0.2);
  color: var(--emerald-soft);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 65px 0;
  border-block: 1px solid rgba(213, 168, 83, 0.24);
  background: linear-gradient(110deg, #162418, #16281f 55%, #0b221c);
}

.final-cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle, var(--gold-soft) 1px, transparent 1px);
  background-size: 22px 22px;
}

.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr auto;
  align-items: center;
  gap: 50px;
}

.final-cta span {
  color: var(--gold-soft);
  font-size: 0.6rem;
}

.final-cta h2 {
  max-width: 600px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.final-cta p {
  margin: 0;
  color: #a8bcb4;
  font-size: 0.75rem;
}

.final-cta a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #171208;
  font-size: 0.7rem;
  font-weight: 800;
}

footer {
  padding: 62px 0 18px;
  background: #020907;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.65fr 1.1fr;
  gap: 60px;
}

.footer-brand > p,
.footer-note p {
  max-width: 320px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.footer-column strong {
  margin-bottom: 5px;
  color: #d8e5df;
  font-size: 0.75rem;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.67rem;
}

.footer-column a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.58rem;
}

@media (max-width: 1050px) {
  .primary-nav {
    gap: 18px;
  }

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

  .hero-content {
    width: 58%;
  }

  .hero-visual {
    right: 27%;
    left: -25%;
  }

  .breed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-card:last-child {
    grid-column: 1 / -1;
    min-height: 400px;
  }

  .academy-tracks,
  .retention-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-listings {
    grid-template-columns: 1fr 1fr;
  }

  .clinic-hub-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .clinic-appointments-panel {
    grid-column: auto;
  }

  .health-tools-grid {
    grid-template-columns: 1fr;
  }

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

  .smart-tools-grid {
    grid-template-columns: 1fr;
  }

  .member-profile-card {
    position: static;
  }

  .roadmap-list {
    grid-template-columns: 1fr 1fr;
  }

  .roadmap-list li:nth-child(2) {
    border-left: 0;
  }

  .roadmap-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1180px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .primary-nav {
    position: fixed;
    top: 106px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line-bright);
    border-radius: 18px;
    background: rgba(6, 21, 18, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a {
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .announcement a,
  .header-cta {
    display: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .primary-nav {
    position: fixed;
    top: 106px;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line-bright);
    border-radius: 18px;
    background: rgba(6, 21, 18, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: 780px;
    align-items: start;
    padding-top: 62px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content > p {
    max-width: 560px;
  }

  .hero-visual {
    top: 245px;
    right: 17%;
    bottom: 0;
    left: -32%;
    opacity: 0.62;
  }

  .hero::before {
    z-index: 2;
    background: linear-gradient(180deg, #020b09 0%, rgba(2, 11, 9, 0.9) 40%, transparent 72%);
  }

  .science-card,
  .spec-label {
    display: none;
  }

  .hero-facts {
    position: absolute;
    top: 525px;
    right: 0;
    left: 0;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid > div:nth-child(2) {
    border-left: 0;
  }

  .trust-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split-heading,
  .breed-search-wrap,
  .standards-layout,
  .final-cta-inner {
    align-items: start;
    flex-direction: column;
  }

  .split-heading {
    display: flex;
    gap: 20px;
  }

  .breed-search-wrap {
    display: flex;
  }

  .breed-search {
    width: 100%;
    max-width: none;
  }

  .breed-comparison-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .breed-comparison-form {
    grid-template-columns: 1fr 48px 1fr;
  }

  .breed-comparison-form > button[type="submit"] {
    grid-column: 1 / -1;
  }

  .search-tags {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .search-tags button {
    min-width: max-content;
  }

  .tools-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .tools-copy {
    position: static;
  }

  .membership-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .cycle-panel {
    position: static;
  }

  .saved-cycles {
    max-height: 190px;
  }

  .dashboard-stage {
    min-height: 630px;
  }

  .standards-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .standards-visual {
    order: 2;
  }

  .final-cta-inner {
    display: flex;
    gap: 20px;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .announcement {
    font-size: 0.6rem;
  }

  .announcement .container {
    justify-content: flex-start;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .hero-layout {
    min-height: 790px;
    padding-top: 45px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.25rem);
    letter-spacing: -1.5px;
  }

  .hero-content > p {
    font-size: 0.86rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    top: 350px;
    right: -18%;
    left: -70%;
  }

  .rooster-scene img {
    object-position: 63% center;
  }

  .hero-facts {
    top: 620px;
    justify-content: center;
  }

  .hero-facts div {
    min-width: auto;
    flex: 1;
    padding-inline: 8px;
  }

  .hero-facts dd {
    font-size: 0.54rem;
  }

  .hero-scroll {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    min-height: 78px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .platform-section,
  .membership-section,
  .incubation-app-section,
  .standards-section {
    padding: 78px 0;
  }

  .section-heading h2,
  .tools-copy h2,
  .standards-copy h2 {
    font-size: 2rem;
  }

  .breed-grid,
  .platform-grid,
  .official-products-grid,
  .academy-tracks,
  .market-listings,
  .retention-grid,
  .roadmap-list,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .breed-comparison {
    padding: 18px;
    border-radius: 18px;
  }

  .breed-comparison-form,
  .breed-comparison-headings,
  .breed-comparison-columns {
    grid-template-columns: 1fr;
  }

  .breed-comparison-form .breed-comparison-swap {
    width: 100%;
    min-height: 42px;
    transform: rotate(90deg);
  }

  .breed-comparison-form > button[type="submit"] {
    grid-column: auto;
  }

  .breed-comparison-table {
    overflow-x: auto;
  }

  .breed-comparison-rows {
    min-width: 560px;
  }

  .official-brand-banner,
  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .official-brand-banner > p {
    margin: 0;
  }

  .official-badge {
    width: fit-content;
  }

  .official-product-card {
    grid-template-columns: 1fr;
  }

  .official-product-art {
    min-height: 210px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .academy-progress-panel {
    grid-template-columns: 1fr 45px;
  }

  .academy-progress-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .triage-form-grid,
  .triage-symptoms,
  .appointment-form-grid,
  .diagnostic-context-grid {
    grid-template-columns: 1fr;
  }

  .market-search {
    width: 100%;
  }

  .community-join-card {
    grid-template-columns: 1fr;
  }

  .community-join-card form {
    grid-template-columns: 1fr;
  }

  .community-join-card button {
    min-height: 43px;
  }

  .community-join-card > p {
    grid-column: auto;
  }

  .flock-form-grid,
  .flock-list,
  .smart-form-grid {
    grid-template-columns: 1fr;
  }

  .advisor-breed-row {
    grid-template-columns: 28px 1fr;
  }

  .advisor-breed-row b {
    grid-column: 2;
  }

  .breed-profile-header {
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .breed-profile-symbol {
    width: 85px;
    height: 85px;
    font-size: 3.2rem;
  }

  .breed-profile-header > span {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .breed-profile-header h2 {
    font-size: 1.4rem;
  }

  .breed-profile-trust,
  .breed-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .breed-profile-trust > div + div {
    border-right: 0;
  }

  .breed-profile-trust > div {
    border-bottom: 1px solid var(--line);
  }

  .breed-profile-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .breed-profile-footer button {
    width: 100%;
  }

  .course-dialog {
    overflow: auto;
  }

  .course-dialog-shell {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    min-height: 300px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .course-lessons {
    max-height: 240px;
  }

  .lesson-player {
    min-height: 580px;
  }

  .lesson-actions {
    grid-template-columns: 1fr;
  }

  .flock-event-form-grid,
  .hatch-diagnostic-result {
    grid-template-columns: 1fr;
  }

  .diagnostic-result-head,
  .diagnostic-warning {
    grid-column: auto;
  }

  .breed-art {
    height: 260px;
  }

  .platform-card,
  .platform-card:last-child {
    min-height: 430px;
    grid-column: auto;
  }

  .tool-card {
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
  }

  .tool-index {
    display: none;
  }

  .tool-icon {
    width: 42px;
    height: 42px;
  }

  .tool-state {
    min-width: 65px;
  }

  .dashboard-stage {
    min-height: 610px;
  }

  .dashboard-shell {
    border-radius: 18px;
    transform: none;
  }

  .dashboard-body {
    grid-template-columns: 44px 1fr;
  }

  .dashboard-content {
    padding: 12px;
  }

  .dashboard-main-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side-widgets {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-bottom-grid {
    display: none;
  }

  .floating-module,
  .dashboard-orbit {
    display: none;
  }

  .calendar-workspace {
    min-height: 0;
    padding: 13px;
  }

  .calendar-empty {
    min-height: 430px;
  }

  .cycle-overview-grid,
  .cycle-progress-card {
    grid-template-columns: 1fr;
  }

  .cycle-progress-card {
    justify-items: center;
    text-align: center;
  }

  .cycle-tasks {
    grid-template-columns: 1fr;
  }

  .cycle-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .timeline-milestone {
    grid-template-columns: 35px 1fr;
    align-items: center;
    justify-items: start;
    text-align: right;
  }

  .timeline-milestone::before {
    display: none;
  }

  .timeline-milestone > div {
    text-align: right;
  }

  .roadmap-list li {
    min-height: 220px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .roadmap-list li:last-child {
    border-bottom: 0;
  }

  .anatomy-ring-one {
    width: 290px;
    height: 290px;
  }

  .anatomy-ring-two {
    width: 190px;
    height: 190px;
  }

  .anatomy-point {
    font-size: 0.55rem;
  }

  .footer-main {
    gap: 32px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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

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

  .rooster-scene {
    transform: none !important;
  }
}

/* Readability pass: product, tool, member and operational UI */
.official-product-content > small,
.product-status,
.academy-track-head b,
.academy-progress-panel small,
.triage-card-head small,
.triage-card-head > span,
.appointment-form label,
.smart-tool-card > header small,
.advisor-result-heading small,
.cost-calculator-result small,
.member-profile-head small,
.member-plan small,
.flock-manager-head small,
.flock-record-stats small,
.flock-event-shell > header small,
.calendar-card-heading small,
.cycle-dates-card small,
.timeline-milestone small {
  font-size: 0.72rem;
}

.official-product-content > p,
.official-product-content ul,
.academy-track-content > p,
.academy-track-content ul,
.clinic-principles p,
.triage-card label,
.triage-card legend,
.triage-card select,
.triage-card textarea,
.triage-result,
.appointment-form input,
.appointment-form select,
.appointment-form textarea,
.smart-tool-form label,
.smart-tool-form select,
.smart-tool-form input,
.advisor-breed-row small,
.breed-advisor-result > p,
.cost-calculator-result > p,
.member-profile-form label,
.flock-form label,
.member-profile-form input,
.member-profile-form select,
.flock-form input,
.flock-form select,
.flock-form textarea,
.flock-empty p,
.flock-record-head p,
.flock-record-note,
.flock-event-form label,
.flock-event-form input,
.flock-event-form select,
.flock-event-form textarea,
.tool-card p,
.membership-points p,
.cycle-progress-copy p,
.scientific-note p {
  font-size: 0.8rem;
  line-height: 1.85;
}

.official-product-content h3 {
  font-size: 1.16rem;
}

.official-product-content > b {
  font-size: 0.68rem;
}

.official-product-content button,
.academy-personas button,
.market-filters button,
.academy-track-content button,
.triage-submit,
.smart-tool-form > button,
.member-profile-form button,
.flock-manager-head button,
.flock-form-actions button,
.flock-record-actions button,
.flock-event-form > button {
  font-size: 0.76rem;
}

.smart-tool-card > header h3,
.tool-card h3 {
  font-size: 0.96rem;
}

.advisor-result-heading strong,
.advisor-breed-row strong,
.cost-calculator-result strong,
.member-profile-head strong,
.member-plan strong,
.flock-manager-head strong,
.flock-record-stats strong,
.flock-event-item strong,
.calendar-card-heading strong,
.cycle-dates-card strong,
.cycle-task strong,
.timeline-milestone strong {
  font-size: 0.78rem;
}

.advisor-breed-row b,
.member-profile-form p,
.member-plan span,
.flock-event-item small,
.tool-state {
  font-size: 0.7rem;
}

.member-auth-state {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid rgba(143, 167, 255, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(100deg, rgba(143, 167, 255, 0.07), transparent),
    rgba(255, 255, 255, 0.016);
}

.member-auth-state > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-auth-state > div:first-child > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid rgba(143, 167, 255, 0.25);
  border-radius: 12px;
  background: rgba(143, 167, 255, 0.08);
  color: #bec8ff;
  font-weight: 900;
}

.member-auth-state p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.member-auth-state small {
  color: #bec8ff;
  font-size: 0.72rem;
}

.member-auth-state strong {
  font-size: 0.84rem;
}

.member-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-auth-actions a,
.member-auth-actions button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(143, 167, 255, 0.23);
  border-radius: 9px;
  background: rgba(143, 167, 255, 0.075);
  color: #bec8ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.member-auth-actions button {
  border-color: rgba(255, 152, 152, 0.2);
  background: rgba(255, 152, 152, 0.045);
  color: #eeb2b2;
}

.header-cta.signed-in {
  border-color: rgba(44, 214, 159, 0.3);
  background: rgba(44, 214, 159, 0.08);
  color: var(--emerald-soft);
}

@media (max-width: 700px) {
  .member-auth-state {
    align-items: stretch;
    flex-direction: column;
  }

  .member-auth-actions,
  .member-auth-actions a,
  .member-auth-actions button {
    width: 100%;
  }

  .member-auth-actions a,
  .member-auth-actions button {
    justify-content: center;
  }
}

/* Platform-wide readable typography */
:root {
  --ui-copy-size: 0.86rem;
  --ui-control-size: 0.9rem;
  --ui-label-size: 0.82rem;
  --ui-meta-size: 0.76rem;
}

.primary-nav a,
.header-cta,
.inline-link {
  font-size: var(--ui-control-size);
}

#makiano-products :where(p, li),
#academy :where(p, li),
#clinic :where(p, li),
#market :where(p, li),
#community :where(p, li),
#smart-tools :where(p, li),
#health-tools :where(p, li),
#tools :where(p, li),
#member-center :where(p, li),
#incubation :where(p, li) {
  font-size: var(--ui-copy-size) !important;
  line-height: 1.85;
}

#makiano-products :where(button, input, select, textarea),
#academy :where(button, input, select, textarea),
#clinic :where(button, input, select, textarea),
#market :where(button, input, select, textarea),
#community :where(button, input, select, textarea),
#smart-tools :where(button, input, select, textarea),
#health-tools :where(button, input, select, textarea),
#tools :where(button, input, select, textarea),
#member-center :where(button, input, select, textarea),
#incubation :where(button, input, select, textarea) {
  font-size: var(--ui-control-size) !important;
}

#makiano-products :where(label, legend),
#academy :where(label, legend),
#clinic :where(label, legend),
#market :where(label, legend),
#community :where(label, legend),
#smart-tools :where(label, legend),
#health-tools :where(label, legend),
#tools :where(label, legend),
#member-center :where(label, legend),
#incubation :where(label, legend) {
  font-size: var(--ui-label-size) !important;
}

#makiano-products small,
#academy small,
#clinic small,
#market small,
#community small,
#smart-tools small,
#health-tools small,
#tools small,
#member-center small,
#incubation small {
  font-size: var(--ui-meta-size) !important;
  line-height: 1.65;
}

.academy-personas button,
.market-filters button {
  min-height: 44px;
  padding-inline: 16px;
}

.academy-track-content h3,
.smart-tool-card > header h3,
.hatch-diagnostic-card header h3,
.biosecurity-card header h3,
.tool-card h3,
.official-product-content h3,
.flock-record-head h3 {
  font-size: 1.08rem !important;
}

.academy-track-meta span,
.market-listing-details span,
.product-status,
.tool-state {
  font-size: var(--ui-meta-size) !important;
}

.academy-track-content button,
.official-product-content button,
.triage-submit,
.appointment-form > button,
.smart-tool-form > button,
.hatch-diagnostic-card form > button,
.biosecurity-actions button,
.community-join-card button,
.member-profile-form button,
.flock-manager-head button,
.flock-form-actions button,
.flock-record-actions button,
.create-cycle-button {
  min-height: 46px;
  padding-inline: 15px;
}

.hatch-diagnostic-result h4,
.diagnostic-result-head strong,
.biosecurity-item strong,
.appointment-item strong,
.advisor-breed-row strong,
.cost-calculator-result strong,
.flock-record-stats strong,
.cycle-task strong,
.timeline-milestone strong {
  font-size: var(--ui-label-size) !important;
}

.hatch-diagnostic-result section p,
.diagnostic-warning,
.biosecurity-item small,
.biosecurity-actions small,
.appointment-item small,
.appointment-item > span,
.advisor-breed-row small,
.breed-advisor-result > p,
.cost-calculator-result > p,
.field-error,
.cycle-form-status,
.saved-cycle small,
.saved-cycle b,
.timeline-milestone small,
.scientific-note p {
  font-size: var(--ui-meta-size) !important;
}

.course-dialog :where(p, label),
.breed-dialog :where(p, label),
.flock-event-dialog :where(p, label),
.notification-panel p {
  font-size: var(--ui-copy-size) !important;
  line-height: 1.8;
}

.course-dialog :where(button, input, select, textarea),
.breed-dialog :where(button, input, select, textarea),
.flock-event-dialog :where(button, input, select, textarea),
.notification-panel button {
  font-size: var(--ui-control-size) !important;
}

.course-dialog small,
.breed-dialog small,
.flock-event-dialog small,
.notification-panel small {
  font-size: var(--ui-meta-size) !important;
}

.course-lesson-item strong,
.lesson-key-points p,
.breed-profile-trust strong,
.breed-overview-grid strong,
.notification-item strong,
.flock-event-item strong {
  font-size: var(--ui-label-size) !important;
}

.breed-tabs button,
.lesson-actions button {
  min-height: 44px;
  padding-inline: 14px;
}

.footer-brand > p,
.footer-note p,
.footer-column a,
.footer-bottom {
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  :root {
    --ui-copy-size: 0.9rem;
    --ui-control-size: 0.92rem;
    --ui-label-size: 0.86rem;
    --ui-meta-size: 0.78rem;
  }

  .academy-track-card,
  .smart-tool-card,
  .hatch-diagnostic-card,
  .biosecurity-card,
  .official-product-content {
    padding: 18px;
  }

  .tool-card {
    min-height: 118px;
  }

  .smart-metric-result {
    grid-template-columns: 1fr;
  }

  .smart-metric-result > div {
    min-height: 62px;
  }
}
.published-content-section {
  border-top: 1px solid var(--line);
}

.published-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.published-content-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 53, 43, 0.8), rgba(4, 18, 15, 0.82));
  box-shadow: var(--shadow-soft);
}

.published-content-type {
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.published-content-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
}

.published-content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.published-content-meta {
  align-self: end;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.published-content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.published-content-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
}

.published-content-link {
  color: var(--emerald-soft);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .published-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .published-content-grid {
    grid-template-columns: 1fr;
  }
}

.content-detail-page {
  min-height: 100vh;
  background: var(--ink, #061512);
}

.content-detail-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.content-detail-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--mint, #b6f5d1);
}

.content-detail-card {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(182, 245, 209, 0.2);
  border-radius: 28px;
  background: rgba(12, 35, 29, 0.86);
}

.content-detail-card h1 {
  margin: 14px 0 20px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.content-detail-cover {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 24px 0;
  border-radius: 20px;
  object-fit: cover;
}

.content-detail-summary {
  color: rgba(246, 250, 247, 0.82);
  font-size: 1.2rem;
  line-height: 2;
}

.content-detail-body {
  margin-top: 28px;
  color: rgba(246, 250, 247, 0.86);
  font-size: 1.05rem;
  line-height: 2.15;
}

.content-detail-body p {
  margin: 0 0 18px;
}

.content-detail-meta,
.content-detail-loading,
.content-detail-error {
  color: rgba(246, 250, 247, 0.64);
  margin-top: 22px;
}

.content-detail-error {
  color: #ffb4a8;
}

@media (max-width: 640px) {
  .content-detail-shell {
    padding: 32px 0;
  }
}

/* کارت‌های ابزار به‌صورت لینک (tools.html) */
a.tool-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
