.ranch-master-shell {
  display: grid;
  gap: 26px;
  padding-bottom: 12px;
}

.ranch-master-shell img {
  display: block;
  max-width: 100%;
}

.ranch-master-hero-panel,
.ranch-master-panel {
  border: 1px solid rgba(131, 96, 50, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(249, 236, 210, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 60%);
  box-shadow:
    0 16px 28px rgba(91, 63, 27, 0.08),
    0 2px 6px rgba(91, 63, 27, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(214, 181, 128, 0.16);
}

.ranch-master-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 22px;
  padding: 24px;
}

.ranch-master-hero-copy h1,
.ranch-master-panel-head h2 {
  margin: 0;
  color: #1c150f;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.ranch-master-hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
}

.ranch-master-eyebrow,
.ranch-master-panel-kicker,
.ranch-master-summary-label {
  margin: 0 0 8px;
  color: #4f831d;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranch-master-lede,
.ranch-master-panel-copy,
.ranch-master-summary-note {
  margin: 0;
  color: #5d4a33;
  line-height: 1.68;
}

.ranch-master-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.ranch-master-button,
.ranch-master-summary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.ranch-master-button:hover,
.ranch-master-summary-button:hover {
  transform: translateY(-1px);
}

.ranch-master-button-primary,
.ranch-master-summary-button-primary {
  background: linear-gradient(180deg, #8bc53f, #74ab28);
  color: #fff9e7;
  box-shadow: 0 10px 18px rgba(91, 131, 32, 0.18);
}

.ranch-master-button-secondary,
.ranch-master-summary-button {
  background: rgba(255, 255, 255, 0.94);
  color: #6b4320;
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.14);
}

.ranch-master-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.ranch-master-kpi-card {
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 8px 14px rgba(91, 63, 27, 0.05),
    inset 0 0 0 1px rgba(131, 96, 50, 0.08);
}

.ranch-master-kpi-card span,
.ranch-master-mini-card span {
  display: block;
  margin-bottom: 4px;
  color: #6c5337;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ranch-master-kpi-card strong,
.ranch-master-mini-card strong,
.ranch-master-summary-head strong {
  display: block;
  color: #221811;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.ranch-master-kpi-card p,
.ranch-master-mini-card p {
  margin: 4px 0 0;
  color: #5d4a33;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ranch-master-hero-media {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ranch-master-hero-stack,
.ranch-master-summary-stack,
.ranch-master-priority-side {
  display: grid;
  gap: 16px;
}

.ranch-master-mini-card,
.ranch-master-shot-card,
.ranch-master-summary-card,
.ranch-master-track-card,
.ranch-master-season-card,
.ranch-master-pillar-card,
.ranch-master-priority-card,
.ranch-master-support-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 10px 18px rgba(91, 63, 27, 0.06),
    inset 0 0 0 1px rgba(131, 96, 50, 0.08);
}

.ranch-master-shot-card {
  margin: 0;
  overflow: hidden;
}

.ranch-master-shot-card img {
  width: 100%;
  background: #ead5aa;
}

.ranch-master-shot-card-banner img {
  padding: 10px;
  background: linear-gradient(180deg, #fff8ea, #f1ddb1);
}

.ranch-master-shot-card:not(.ranch-master-shot-card-banner) img {
  image-rendering: pixelated;
}

.ranch-master-shot-card figcaption {
  padding: 12px 14px 14px;
  color: #5d4a33;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ranch-master-mini-card {
  padding: 18px;
}

.ranch-master-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ranch-master-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.12);
  color: #674422;
  font-weight: 800;
  text-decoration: none;
}

.ranch-master-content-grid {
  display: grid;
  gap: 22px;
}

.ranch-master-panel {
  padding: 22px;
}

.ranch-master-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ranch-master-panel-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.ranch-master-panel-copy {
  max-width: 620px;
}

.ranch-master-tracker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.78fr);
  gap: 18px;
  align-items: start;
}

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

.ranch-master-track-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.ranch-master-track-card.is-done {
  background:
    linear-gradient(180deg, rgba(242, 251, 231, 0.96), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.9);
}

.ranch-master-track-card.is-warning {
  background:
    linear-gradient(180deg, rgba(255, 242, 233, 0.96), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.ranch-master-track-head,
.ranch-master-summary-head,
.ranch-master-summary-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.ranch-master-summary-head-tight {
  align-items: center;
}

.ranch-master-track-head h3,
.ranch-master-season-head h3,
.ranch-master-pillar-card h3,
.ranch-master-support-card h3 {
  margin: 0;
  color: #221811;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.55rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.ranch-master-track-badge,
.ranch-master-summary-pill,
.ranch-master-season-weather,
.ranch-master-priority-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f3ead7;
  color: #705827;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ranch-master-track-card.is-done .ranch-master-track-badge {
  background: #e4f0dd;
  color: #31592c;
}

.ranch-master-track-card.is-warning .ranch-master-track-badge {
  background: #f3dfdc;
  color: #a34337;
}

.ranch-master-track-target {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b5337;
  font-weight: 800;
}

.ranch-master-track-target strong {
  color: #2a1e14;
}

.ranch-master-track-field {
  display: grid;
  gap: 7px;
}

.ranch-master-track-field span {
  color: #6c5337;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ranch-master-track-field input {
  width: 100%;
  border: 1px solid #cfbd95;
  border-radius: 14px;
  background: #fffdf7;
  color: #2a1e14;
  font-size: 1.15rem;
  font-weight: 850;
  padding: 11px 13px;
  outline: none;
}

.ranch-master-track-field input:focus {
  border-color: #74ab28;
  box-shadow: 0 0 0 3px rgba(116, 171, 40, 0.16);
}

.ranch-master-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadcc0;
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.08);
}

.ranch-master-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7eb83c, #5c8f1c);
  transition: width 0.2s ease;
}

.ranch-master-track-card.is-warning .ranch-master-progress-bar span {
  background: linear-gradient(90deg, #d37b52, #b54b34);
}

.ranch-master-track-status {
  margin: 0;
  color: #2a1e14;
  font-weight: 800;
}

.ranch-master-track-note {
  margin: 0;
  color: #5d4a33;
  line-height: 1.55;
}

.ranch-master-summary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ranch-master-summary-card-progress {
  position: sticky;
  top: 22px;
}

.ranch-master-summary-card-progress .ranch-master-progress-bar {
  height: 14px;
}

.ranch-master-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ranch-master-mode-button {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.12);
  color: #5d4a33;
  text-align: left;
  cursor: pointer;
}

.ranch-master-mode-button strong {
  color: #2a1e14;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.ranch-master-mode-button span {
  color: #6c5337;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ranch-master-mode-button.is-active {
  background: linear-gradient(180deg, rgba(132, 193, 52, 0.2), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 0 0 2px rgba(116, 171, 40, 0.34);
}

.ranch-master-gap-list {
  display: grid;
  gap: 10px;
}

.ranch-master-gap-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(245, 233, 202, 0.9));
}

.ranch-master-gap-item strong {
  color: #221811;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.ranch-master-gap-item span,
.ranch-master-gap-empty {
  color: #5d4a33;
  line-height: 1.5;
}

.ranch-master-summary-actions {
  flex-wrap: wrap;
}

.ranch-master-season-grid,
.ranch-master-pillar-grid,
.ranch-master-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranch-master-season-card,
.ranch-master-pillar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.ranch-master-season-kicker,
.ranch-master-pillar-link {
  margin: 0;
  color: #6c5337;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.ranch-master-season-copy,
.ranch-master-pillar-copy,
.ranch-master-priority-card p,
.ranch-master-support-card p {
  margin: 0;
  color: #5d4a33;
  line-height: 1.6;
}

.ranch-master-season-stat-grid,
.ranch-master-pillar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ranch-master-season-stat,
.ranch-master-pillar-stat {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(245, 233, 202, 0.9));
}

.ranch-master-season-stat span,
.ranch-master-pillar-stat span {
  display: block;
  margin-bottom: 5px;
  color: #6c5337;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ranch-master-season-stat strong,
.ranch-master-pillar-stat strong {
  display: block;
  color: #221811;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.25rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.ranch-master-season-notes {
  margin: 0;
  padding-left: 1.2rem;
  color: #514638;
}

.ranch-master-season-notes li {
  margin: 6px 0;
}

.ranch-master-season-watch {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(131, 96, 50, 0.1);
  color: #5d4a33;
  line-height: 1.55;
}

.ranch-master-pillar-card img {
  width: 100%;
  border-radius: 18px;
  background: #f4ebd3;
}

.ranch-master-pillar-card img[data-pixelated="true"] {
  image-rendering: pixelated;
}

.ranch-master-pillar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #8bc53f, #74ab28);
  color: #fff9e7;
  font-weight: 800;
  text-decoration: none;
}

.ranch-master-priority-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.ranch-master-priority-grid {
  display: grid;
  gap: 12px;
}

.ranch-master-priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
}

.ranch-master-priority-card h3 {
  margin: 0 0 4px;
  color: #221811;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.45rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.ranch-master-priority-rank {
  align-self: start;
  min-width: 54px;
  min-height: 54px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(136, 196, 59, 0.18), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 0 0 2px rgba(116, 171, 40, 0.2);
  color: #31592c;
  font-size: 1.1rem;
}

.ranch-master-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranch-master-support-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
}

.ranch-master-support-card img {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 18px;
  background: #fff8ea;
  box-shadow: inset 0 0 0 1px rgba(131, 96, 50, 0.12);
  object-fit: cover;
}

.ranch-master-support-card img[src$=".png"] {
  image-rendering: pixelated;
}

.ranch-master-support-card h3 {
  font-size: 1.15rem;
}

@media (max-width: 1080px) {
  .ranch-master-tracker-layout,
  .ranch-master-priority-layout {
    grid-template-columns: 1fr;
  }

  .ranch-master-summary-card-progress {
    position: static;
  }

  .ranch-master-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ranch-master-hero-panel {
    grid-template-columns: 1fr;
  }

  .ranch-master-kpi-grid,
  .ranch-master-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ranch-master-panel-head {
    flex-direction: column;
  }

  .ranch-master-kpi-grid,
  .ranch-master-card-grid,
  .ranch-master-season-grid,
  .ranch-master-pillar-grid,
  .ranch-master-support-grid,
  .ranch-master-season-stat-grid,
  .ranch-master-pillar-stats {
    grid-template-columns: 1fr;
  }

  .ranch-master-anchor-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranch-master-support-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .ranch-master-hero-panel,
  .ranch-master-panel {
    border-radius: 24px;
  }

  .ranch-master-hero-panel,
  .ranch-master-panel {
    padding: 18px;
  }

  .ranch-master-track-head,
  .ranch-master-summary-head {
    flex-direction: column;
    align-items: start;
  }

  .ranch-master-mode-toggle,
  .ranch-master-anchor-nav {
    grid-template-columns: 1fr;
  }

  .ranch-master-support-card {
    flex-direction: column;
  }
}
