:root {
  --ink: #172119;
  --muted: #697267;
  --line: #dfe5dc;
  --paper: #fbfcf6;
  --panel: #ffffff;
  --moss: #4f8d37;
  --fern: #7ed64d;
  --clay: #a56f32;
  --gold: #c49745;
  --water: #174f7c;
  --midnight: #050807;
  --medic-blue: #153e68;
  --shadow: 0 18px 45px rgba(19, 31, 24, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(126, 214, 77, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(21, 62, 104, 0.12), transparent 36%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: #eef5ec;
  background:
    linear-gradient(180deg, rgba(21, 62, 104, 0.62), rgba(5, 8, 7, 0.78)),
    #0b1615;
  min-width: 0;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #06100d;
  background: linear-gradient(145deg, #d9b86a, var(--gold));
  border: 1px solid rgba(126, 214, 77, 0.38);
  box-shadow: 0 0 0 3px rgba(21, 62, 104, 0.38);
  font-weight: 800;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.logo-image-mark {
  padding: 2px;
  background: #020403;
  border-color: rgba(196, 151, 69, 0.72);
}

.app-logo-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  box-shadow: 0 0 0 3px rgba(196, 151, 69, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.brand span,
.plan-box span {
  display: block;
  color: rgba(238, 245, 236, 0.72);
  font-size: 0.84rem;
}

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

.menu-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: #071008;
  background: linear-gradient(135deg, var(--fern), #b8ec80);
  font-weight: 900;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(238, 245, 236, 0.82);
  background: transparent;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.plan-box {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.plan-box p {
  margin: 10px 0 0;
  color: rgba(238, 245, 236, 0.72);
  line-height: 1.45;
  font-size: 0.92rem;
}

.main {
  padding: 28px;
  min-width: 0;
}

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

.eyebrow {
  margin: 0 0 4px;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 1.08rem;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.primary-action,
.dialog-actions button.primary-action {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #071008;
  background: linear-gradient(135deg, var(--fern), #68bd3e);
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(126, 214, 77, 0.24);
}

.hidden {
  display: none !important;
}

.secondary-action {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  min-width: 0;
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

.static-control {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8faf5;
  font-weight: 850;
}

select[multiple] {
  min-height: 108px;
  padding: 7px;
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--fern);
}

input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--fern);
}

.checkbox-label {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 9px;
  min-height: 42px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.animal-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 118px;
  padding: 17px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.dashboard-layout-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.setup-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(196, 151, 69, 0.34);
  border-radius: 8px;
  background: #fff9e9;
}

.setup-banner h2 {
  margin: 2px 0 4px;
}

.setup-banner p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.setup-empty-state {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  grid-column: 1 / -1;
  width: 100%;
  border: 1px dashed rgba(21, 62, 104, 0.34);
  border-radius: 8px;
  padding: 16px;
  background: #f7faf6;
}

.setup-empty-state h3 {
  margin: 2px 0 6px;
}

.setup-empty-state p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-layout-toolbar .active {
  color: #071008;
  border-color: var(--moss);
  background: var(--fern);
}

.dashboard-action-card {
  align-items: center;
}

.dashboard-action-card .mini-action {
  white-space: nowrap;
}

.dashboard-mini-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.dashboard-project-card .panel-header {
  margin-bottom: 0;
}

.panel-header-actions,
.tile-order-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tile-order-actions {
  display: none;
}

.dashboard-command-grid.editing-layout .tile-order-actions {
  display: flex;
}

.dashboard-command-grid.editing-layout .dashboard-tile {
  outline: 2px dashed rgba(65, 104, 82, 0.28);
  outline-offset: 3px;
}

.tile-order-actions .mini-action {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.tile-order-actions .mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.dashboard-alert.warn {
  border-color: #e7b6a8;
  background: #fff2ed;
}

.dashboard-quick-panel {
  grid-column: 1 / -1;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px;
}

.dashboard-quick-action {
  justify-content: center;
  min-height: 44px;
}

.sale-marketing-list {
  display: grid;
  gap: 14px;
}

.sale-handoff-overview {
  display: grid;
  gap: 12px;
}

.handoff-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.handoff-overview-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.handoff-overview-card.active {
  border-color: rgba(196, 151, 69, 0.45);
  background:
    linear-gradient(135deg, rgba(196, 151, 69, 0.11), transparent 45%),
    #fffdf7;
}

.handoff-overview-card strong {
  font-size: 1.45rem;
  color: var(--moss);
}

.handoff-overview-card span {
  font-weight: 900;
}

.handoff-overview-card small {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.handoff-path-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(21, 62, 104, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.07), transparent 48%),
    #fbfcfa;
}

.handoff-path-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.sale-species-group {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  background: #f8faf7;
  overflow: hidden;
}

.sale-species-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #e6ebe6;
}

.sale-species-header h3 {
  margin: 0;
}

.sale-species-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.sale-marketing-card {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sale-card-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sale-card-summary h3 {
  margin: 0 0 3px;
}

.sale-card-summary small {
  color: #647067;
}

.sale-card-summary > span {
  color: #36523f;
  font-weight: 800;
  white-space: nowrap;
}

.sale-marketing-card.is-open .sale-card-summary {
  border-bottom: 1px solid #e6ebe6;
  background: #fbfcfa;
}

.sale-marketing-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.buyer-handoff-center {
  gap: 14px;
}

.buyer-handoff-header,
.handoff-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.buyer-handoff-header {
  border: 1px solid rgba(21, 62, 104, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.07), transparent 48%),
    #fbfcfa;
}

.buyer-handoff-header h3,
.handoff-section-header h4 {
  margin: 0;
}

.buyer-handoff-header p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.handoff-step-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 8px;
}

.handoff-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 9px;
  background: #fff8f6;
}

.handoff-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f1dfd7;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
}

.handoff-step strong,
.handoff-step small {
  overflow-wrap: anywhere;
}

.handoff-step strong {
  font-size: 0.84rem;
}

.handoff-step small {
  color: var(--muted);
  font-size: 0.76rem;
}

.handoff-step.done {
  border-color: #d8e5d3;
  background: #f2f7ef;
}

.handoff-step.done span {
  background: #d8e5d3;
  color: var(--moss);
}

.handoff-center-section {
  display: grid;
  gap: 12px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.sale-pipeline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.sale-marketing-card textarea {
  margin-top: 7px;
  min-height: 190px;
  resize: vertical;
  line-height: 1.45;
}

.sale-marketing-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.animal-passport {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.passport-brand-strip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(196, 151, 69, 0.32);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.passport-brand-mark {
  width: 44px;
  height: 44px;
}

.passport-brand-strip strong {
  display: block;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.passport-brand-strip p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.passport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.passport-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.passport-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.passport-thumb {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
}

.passport-actions {
  display: flex;
  justify-content: flex-end;
}

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

.passport-section h3 {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.passport-lineage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
}

.passport-lineage-member {
  display: grid;
  gap: 4px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.passport-lineage-member span,
.passport-lineage-member small {
  color: var(--muted);
  font-size: 0.82rem;
}

.passport-print-marketing {
  display: none;
}

.passport-print-root {
  display: none;
}

body.printing-passport .passport-print-root {
  display: block;
}

@media print {
  body.printing-passport .app-shell {
    display: none;
  }

  body.printing-passport {
    background: #fff;
  }

  body.printing-passport .passport-print-root {
    display: block;
    padding: 0;
  }

  body.printing-passport .animal-passport {
    border: 0;
    padding: 0;
    background: #fff;
  }

  body.printing-passport .passport-actions {
    display: none;
  }

  body.printing-passport .passport-print-marketing {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    border: 1px solid rgba(196, 151, 69, 0.34);
    border-radius: 8px;
    padding: 12px;
    background:
      linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
      #fffdf7;
    break-inside: avoid;
  }

  body.printing-passport .passport-print-marketing strong {
    display: block;
    margin-bottom: 4px;
  }

  body.printing-passport .passport-print-marketing p {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
  }

  body.printing-passport .passport-lineage-member,
  body.printing-passport .fact {
    break-inside: avoid;
  }
}

@media (max-width: 680px) {
  .sale-species-header,
  .sale-card-summary,
  .buyer-handoff-header,
  .handoff-section-header,
  .sale-pipeline-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .handoff-step-strip {
    grid-template-columns: 1fr;
  }

  .handoff-section-header .secondary-action {
    width: 100%;
  }
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view.active > .panel + .panel {
  margin-top: 18px;
}

.split-layout,
.report-grid,
.breeding-layout,
.bulk-layout,
.incubation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.report-builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}

.report-builder-layout > .panel {
  min-width: 0;
}

.report-analytics-panel {
  margin-bottom: 18px;
}

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

.report-analytics-grid .metric-card {
  min-height: 128px;
}

.report-filter-form,
.report-summary-grid {
  display: grid;
  gap: 10px;
}

.report-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.report-filter-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.report-customer-toggle {
  align-self: end;
  min-height: 42px;
}

.report-document-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(196, 151, 69, 0.32);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.report-brand-mark {
  width: 44px;
  height: 44px;
}

.report-document-header strong {
  display: block;
  overflow-wrap: anywhere;
}

.report-document-header p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-table-scroll {
  overflow: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 520px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
}

.report-table {
  min-width: 0;
}

.report-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.report-table th,
.report-table td {
  padding: 10px;
  border-bottom: 1px solid #e6ebe6;
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
}

.report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8faf5;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header.compact {
  align-items: flex-start;
  margin-bottom: 12px;
}

.count-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #173511;
  background: #edf8e9;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.task-list,
.project-list,
.schedule-list,
.notes-list {
  display: grid;
  gap: 10px;
}

.task,
.project,
.schedule-row,
.note-row {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

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

.task p,
.project p,
.schedule-row p,
.animal-card p,
.note-row p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

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

.animal-card {
  min-height: 218px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.animal-card:hover,
.breeding-card:hover {
  border-color: rgba(65, 104, 82, 0.38);
  transform: translateY(-1px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.animal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.animal-visual {
  min-height: 72px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background:
    radial-gradient(circle at 16px 18px, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    linear-gradient(135deg, var(--fern), var(--water));
}

.animal-visual.photo-thumb {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.animal-visual.snake {
  background:
    radial-gradient(circle at 16px 18px, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #6f8d56, #2f5d52);
}

.animal-visual.gecko {
  background:
    radial-gradient(circle at 16px 18px, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.22) 0 12px, transparent 13px),
    linear-gradient(135deg, #d4a855, #7c8d5c);
}

.animal-visual.lizard {
  background:
    radial-gradient(circle at 16px 18px, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    linear-gradient(135deg, #c46c53, #d7a84e);
}

.animal-visual.chelonian {
  background:
    radial-gradient(circle at 16px 18px, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    linear-gradient(135deg, #4e8397, #416852);
}

.animal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.animal-meta span {
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  background: #f5f7f2;
  font-size: 0.78rem;
}

.card-action {
  width: 100%;
}

.detail-actions {
  margin-bottom: 14px;
}

.profile-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.profile-hero .animal-visual {
  min-height: 130px;
}

.profile-hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

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

.profile-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.profile-tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.profile-tab.active,
.profile-tab:hover {
  color: #071008;
  background: var(--fern);
  border-color: var(--moss);
}

.profile-tab-panel {
  min-width: 0;
}

.profile-span {
  grid-column: 1 / -1;
}

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

.fact {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #f8faf5;
}

.fact span,
.lineage-tree span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact strong,
.lineage-tree strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lineage-tree small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.lineage-tree .lineage-genetics {
  color: var(--ink);
}

.profile-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.lineage-tree {
  display: grid;
  gap: 10px;
}

.lineage-tree div {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  background: #f8faf5;
}

.lineage-thumb {
  min-height: 88px;
  margin-bottom: 10px;
}

.lineage-placeholder {
  display: grid;
  place-items: center;
}

.lineage-placeholder span {
  color: rgba(255, 255, 255, 0.9);
}

.lineage-tree div:nth-child(2) {
  border-left-color: var(--water);
}

.lineage-tree div:nth-child(3) {
  border-left-color: var(--clay);
}

.pairing-warning-panel,
.warning-stack {
  display: grid;
  gap: 8px;
}

.pairing-warning-panel {
  grid-column: 1 / -1;
}

.pairing-warning {
  border: 1px solid #f1d3ad;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff8ec;
}

.pairing-warning strong,
.pairing-warning span {
  display: block;
  line-height: 1.35;
}

.pairing-warning span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pairing-warning.avoid {
  border-color: #e7b6a8;
  border-left-color: var(--clay);
  background: #fff2ed;
}

.pairing-warning.watch {
  border-color: #c8dce4;
  border-left-color: var(--water);
  background: #f1f8fa;
}

.species-warning-list {
  margin-top: 12px;
}

.pairing-check-results {
  margin-top: 12px;
}

.positive-note {
  border-left: 4px solid #2f6f58;
  background: #f2faf5;
}

.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-span {
  grid-column: 1 / -1;
}

.photo-log-form {
  grid-template-columns: 140px minmax(0, 1.3fr) minmax(0, 1fr) 110px auto;
}

.external-photo-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-gallery figure {
  margin: 0;
  min-width: 0;
}

.photo-gallery .animal-visual {
  min-height: 110px;
}

.photo-gallery figcaption {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.photo-gallery figcaption strong {
  color: var(--ink);
}

.quick-log {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 120px minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.weight-log-form {
  grid-template-columns: 145px minmax(0, 1fr) auto;
}

.health-log-form {
  grid-template-columns: 145px 150px minmax(0, 1fr) auto;
}

.sale-intent-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.sale-intent-form label:has(textarea),
.sale-intent-form .primary-action {
  grid-column: 1 / -1;
}

.sale-intent-form textarea {
  min-height: 96px;
  resize: vertical;
}

.sale-handoff-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.sale-handoff-panel.compact {
  background: #fff;
}

.sale-handoff-panel.embedded {
  border: 0;
  padding: 0;
  background: transparent;
}

.sale-handoff-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.sale-handoff-form textarea {
  min-height: 86px;
  resize: vertical;
}

.handoff-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.handoff-checklist span {
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--clay);
  background: #fff8f6;
  font-size: 0.82rem;
  font-weight: 800;
}

.handoff-checklist span.done {
  border-color: #d8e5d3;
  color: var(--moss);
  background: #f2f7ef;
}

.transfer-package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(196, 151, 69, 0.32);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.transfer-package-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.transfer-package-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.transfer-package-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.transfer-brand-mark {
  width: 42px;
  height: 42px;
}

.transfer-package-brand strong {
  display: block;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.transfer-package-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(21, 62, 104, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.06), transparent 48%),
    #fbfcfa;
}

.transfer-package-preview h4,
.transfer-package-preview p {
  margin: 0;
}

.transfer-package-preview h4 {
  margin-top: 2px;
}

.transfer-package-preview p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.4;
}

.transfer-package-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.transfer-package-preview-grid span {
  display: grid;
  gap: 3px;
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff8f6;
}

.transfer-package-preview-grid span.done {
  border-color: #d8e5d3;
  background: #f2f7ef;
}

.transfer-package-preview-grid strong {
  font-size: 0.84rem;
}

.transfer-package-preview-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.transfer-in-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.transfer-request-list {
  display: grid;
  gap: 9px;
}

.transfer-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.transfer-request-card.transfer-ready,
.transfer-request-card.transfer-complete {
  border-color: #d8e5d3;
  background: #f7fbf4;
}

.transfer-request-card.transfer-needs-clearance {
  border-color: rgba(196, 151, 69, 0.42);
  background: #fffdf7;
}

.transfer-request-card.transfer-missing,
.transfer-request-card.transfer-needs-sale {
  border-color: #ead8d2;
  background: #fff8f6;
}

.transfer-request-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.4;
}

.transfer-edge-note {
  color: var(--clay) !important;
  font-weight: 750;
}

.transfer-request-card small {
  color: var(--muted);
}

.transfer-request-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.transfer-import-review {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(21, 62, 104, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.07), transparent 48%),
    #fbfcfa;
}

.transfer-import-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.transfer-import-brand h4 {
  margin: 0;
}

.transfer-import-brand p:not(.eyebrow) {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.transfer-import-includes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.transfer-import-includes span {
  display: grid;
  gap: 3px;
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff8f6;
}

.transfer-import-includes span.done {
  border-color: #d8e5d3;
  background: #f2f7ef;
}

.transfer-import-includes strong {
  font-size: 0.84rem;
}

.transfer-import-includes small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.transfer-import-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.backup-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.backup-summary-row strong {
  display: block;
  margin-bottom: 4px;
}

.backup-summary-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.backup-toggle {
  margin-top: 12px;
  align-items: flex-start;
}

.focused-export-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.focused-export-grid button {
  flex: 1 1 170px;
  min-height: 42px;
  white-space: normal;
}

.brand-asset-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbf7;
}

.brand-asset-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.brand-asset-summary strong {
  display: block;
  margin-bottom: 4px;
}

.brand-asset-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.brand-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 9px;
  margin-top: 12px;
}

.brand-asset-grid article {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.brand-asset-grid strong {
  display: block;
  margin-bottom: 5px;
}

.brand-asset-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.early-lead-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(196, 151, 69, 0.32);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.early-lead-summary strong,
.early-lead-list strong,
.early-lead-list span,
.early-lead-list small {
  display: block;
}

.early-lead-summary p,
.early-lead-list p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.early-lead-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.early-lead-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.early-lead-list span {
  margin-top: 4px;
  color: var(--moss);
  font-size: 0.84rem;
  font-weight: 850;
}

.early-lead-list small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.backend-readiness-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.backend-readiness-summary strong {
  display: block;
  margin-bottom: 4px;
}

.backend-readiness-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.backend-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.backend-readiness-card {
  display: grid;
  gap: 9px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.backend-readiness-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.backend-readiness-card h3,
.backend-readiness-card p {
  margin: 0;
}

.backend-readiness-card h3,
.database-blueprint-card strong,
.ownership-rule-grid strong {
  overflow-wrap: anywhere;
}

.backend-readiness-card .status,
.database-blueprint-card .status {
  white-space: normal;
  text-align: center;
}

.backend-readiness-card p,
.backend-readiness-card small {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hosted-command-center {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(196, 151, 69, 0.34);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.hosted-command-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hosted-command-header h3,
.hosted-command-header p {
  margin: 0;
}

.hosted-command-header p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.hosted-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 9px;
}

.hosted-command-grid article,
.hosted-next-action {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.hosted-command-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.hosted-command-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.45rem;
}

.hosted-command-grid p,
.hosted-next-action p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hosted-next-action strong {
  display: block;
}

.data-ownership-rules {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbf7;
}

.data-ownership-rules h3,
.data-ownership-rules p {
  margin: 0;
}

.data-ownership-rules > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

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

.ownership-rule-grid article {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.ownership-rule-grid strong {
  display: block;
  margin-bottom: 5px;
}

.ownership-rule-grid p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.database-blueprint {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.database-blueprint h3,
.database-blueprint p {
  margin: 0;
}

.database-blueprint > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.database-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.database-blueprint-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.database-blueprint-card div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.database-blueprint-card p,
.database-blueprint-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hosted-data-foundation {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(196, 151, 69, 0.34);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.hosted-data-foundation h3,
.hosted-data-foundation p {
  margin: 0;
}

.hosted-data-foundation > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.hosted-data-foundation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 9px;
}

.hosted-data-foundation-card,
.hosted-guardrail-grid article {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.hosted-data-foundation-card {
  display: grid;
  gap: 9px;
}

.hosted-data-foundation-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hosted-data-foundation-card strong,
.hosted-guardrail-grid strong {
  overflow-wrap: anywhere;
}

.hosted-data-foundation-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.hosted-data-foundation-card dt {
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hosted-data-foundation-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hosted-guardrail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 9px;
}

.hosted-guardrail-grid strong {
  display: block;
  margin-bottom: 5px;
}

.hosted-guardrail-grid p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hosted-roadmap {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbf7;
}

.hosted-roadmap h3,
.hosted-roadmap p {
  margin: 0;
}

.hosted-roadmap > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.hosted-roadmap-list {
  display: grid;
  gap: 9px;
}

.hosted-roadmap-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.hosted-roadmap-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold);
  color: #071008;
  font-weight: 900;
}

.hosted-roadmap-step div {
  min-width: 0;
}

.hosted-roadmap-step strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.hosted-roadmap-step p,
.hosted-roadmap-step small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.api-contract-map,
.cloudflare-route-map {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.api-contract-map h3,
.api-contract-map p,
.cloudflare-route-map h3,
.cloudflare-route-map p {
  margin: 0;
}

.api-contract-map > div:first-child p:last-child,
.cloudflare-route-map > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.api-contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.api-contract-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.api-contract-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.api-contract-card strong,
.cloudflare-route-grid strong {
  overflow-wrap: anywhere;
}

.api-contract-card p {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.api-contract-card dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.api-contract-card dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.api-contract-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cloudflare-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 9px;
}

.cloudflare-route-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.cloudflare-route-grid p,
.cloudflare-route-grid small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.provider-stack-plan {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(196, 151, 69, 0.34);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.provider-stack-plan h3,
.provider-stack-plan p {
  margin: 0;
}

.provider-stack-plan > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.provider-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 9px;
}

.provider-stack-card {
  display: grid;
  gap: 9px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.provider-stack-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-stack-card strong {
  overflow-wrap: anywhere;
}

.provider-stack-card p,
.provider-stack-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.payment-flow-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 9px;
}

.payment-flow-map article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.payment-flow-map article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold);
  color: #071008;
  font-weight: 900;
}

.payment-flow-map strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.payment-flow-map p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.implementation-artifacts {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.implementation-artifacts h3,
.implementation-artifacts p {
  margin: 0;
}

.implementation-artifacts > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.implementation-artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 9px;
}

.implementation-artifact-grid article {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.implementation-artifact-grid strong,
.implementation-artifact-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.implementation-artifact-grid p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.implementation-artifact-grid small {
  margin-top: 7px;
  color: var(--moss);
  font-weight: 850;
}

.migration-checklist {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbf7;
}

.migration-checklist h3,
.migration-checklist p {
  margin: 0;
}

.migration-checklist > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.migration-checklist-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.migration-checklist-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.migration-checklist-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold);
  color: #071008;
  font-weight: 900;
}

.migration-checklist-step div {
  min-width: 0;
}

.migration-checklist-step strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.migration-checklist-step p {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.migration-checklist-step dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 10px 0 0;
}

.migration-checklist-step dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.migration-checklist-step dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.launch-risk-checklist {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 14px;
  background: #fff8f6;
}

.launch-risk-checklist h3,
.launch-risk-checklist p {
  margin: 0;
}

.launch-risk-checklist > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.launch-risk-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.launch-risk-card {
  display: grid;
  gap: 10px;
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.launch-risk-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.launch-risk-heading > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--clay);
  font-weight: 900;
}

.launch-risk-heading strong {
  overflow-wrap: anywhere;
}

.launch-risk-heading em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.risk-high {
  color: #fff;
  background: var(--clay);
}

.risk-medium {
  color: #071008;
  background: var(--gold);
}

.risk-low {
  color: #071008;
  background: var(--fern);
}

.launch-risk-card p {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.launch-risk-card dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.launch-risk-card dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.launch-risk-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mvp-release-checklist {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbf7;
}

.mvp-release-checklist h3,
.mvp-release-checklist p {
  margin: 0;
}

.mvp-release-checklist > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.mvp-release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.mvp-release-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.mvp-release-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mvp-release-card strong {
  overflow-wrap: anywhere;
}

.mvp-release-card p {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mvp-release-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.mvp-release-card li {
  padding-left: 2px;
  overflow-wrap: anywhere;
}

.billing-readiness-plan {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(196, 151, 69, 0.34);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(21, 62, 104, 0.08), transparent 42%),
    #fffdf7;
}

.billing-readiness-plan h3,
.billing-readiness-plan p {
  margin: 0;
}

.billing-readiness-plan > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.billing-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.billing-readiness-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.billing-readiness-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-readiness-card strong {
  overflow-wrap: anywhere;
}

.billing-readiness-card p {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.billing-readiness-card dl {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.billing-readiness-card dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.billing-readiness-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.support-readiness-plan {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(21, 62, 104, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(116, 192, 87, 0.1), transparent 44%),
    #fbfefb;
}

.support-readiness-plan h3,
.support-readiness-plan p {
  margin: 0;
}

.support-readiness-plan > div:first-child p:last-child {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.support-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 9px;
}

.support-readiness-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid #e0e9df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.support-readiness-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.support-readiness-card strong,
.support-readiness-card p,
.support-readiness-card dd {
  overflow-wrap: anywhere;
}

.support-readiness-card p {
  color: var(--muted);
  line-height: 1.4;
}

.support-readiness-card dl {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.support-readiness-card dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.support-readiness-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.log-list,
.weight-bars {
  display: grid;
  gap: 9px;
}

.log-row {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 11px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff;
}

.log-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.weight-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 13px;
  border-radius: 999px;
  background: #edf1ea;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fern), var(--water));
}

.breeding-project-grid {
  display: grid;
  gap: 14px;
}

.breeding-production-panel {
  grid-column: 1 / -1;
}

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

.production-grid > section {
  min-width: 0;
}

.production-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.production-row {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.breeding-card,
.incubation-card {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
}

.completed-project {
  background: #f8faf5;
}

.completed-project .tag {
  background: #e5f0e8;
  color: #2f6f58;
}

.project-analytics {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  background: #f8faf5;
}

.project-analytics h4 {
  margin: 0;
  font-size: 1rem;
}

.breeding-card p,
.incubation-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.egg-collection-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6ebe6;
}

.egg-collection-form .eyebrow,
.egg-collection-form .checkbox-label,
.egg-collection-form .secondary-action {
  grid-column: 1 / -1;
}

.egg-collection-form .secondary-action {
  width: 100%;
}

.source-line {
  font-size: 0.82rem;
}

.source-line a {
  color: #2f6f58;
  font-weight: 800;
  text-decoration: none;
}

.species-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-action {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.incubation-grid {
  display: grid;
  gap: 14px;
}

.species-add-button {
  width: 100%;
  margin-bottom: 14px;
}

.species-empty-state {
  text-align: left;
}

.incubation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.incubation-form label:has(textarea),
.incubation-form .interval-setting,
.incubation-form .primary-action,
.settings-form .settings-unit-toggle,
.settings-form .primary-action {
  grid-column: 1 / -1;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
}

.account-plan-panel {
  grid-column: 1 / -1;
}

.account-onboarding-panel {
  grid-column: 1 / -1;
}

.account-admin-planning {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.account-admin-planning summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.account-admin-planning summary::-webkit-details-marker {
  display: none;
}

.account-admin-planning summary strong,
.account-admin-planning summary span {
  display: block;
}

.account-admin-planning summary em {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #071008;
  background: #eaf2e5;
  font-style: normal;
  font-weight: 900;
}

.account-admin-planning[open] summary {
  border-bottom: 1px solid var(--line);
}

.account-admin-planning[open] summary em {
  background: var(--gold);
}

.account-admin-planning[open] summary em {
  font-size: 0;
}

.account-admin-planning[open] summary em::after {
  content: "Close";
  font-size: 0.9rem;
}

.account-admin-planning:not([open]) .account-admin-grid {
  display: none;
}

.account-admin-grid {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #f8faf5;
}

.account-admin-subpanel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.backend-readiness-panel {
  grid-column: 1 / -1;
}

.shared-library-admin-panel {
  grid-column: 1 / -1;
}

.moderation-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.moderation-summary-grid article {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.moderation-summary-grid strong,
.moderation-summary-grid span,
.moderation-summary-grid small {
  display: block;
}

.moderation-summary-grid strong {
  font-size: 1.35rem;
}

.moderation-summary-grid span {
  margin-top: 2px;
  font-weight: 850;
}

.moderation-summary-grid small {
  margin-top: 4px;
  color: var(--muted);
}

.moderation-queue-list {
  display: grid;
  gap: 10px;
}

.moderation-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.moderation-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.moderation-card-main h3,
.moderation-card-main p {
  margin: 0;
  overflow-wrap: anywhere;
}

.moderation-card-main .status {
  flex: 0 0 auto;
  white-space: normal;
  text-align: center;
}

.moderation-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moderation-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.account-detail-panel {
  min-width: 0;
}

.account-current-plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8faf5;
}

.account-current-plan span {
  color: var(--muted);
  font-size: 0.84rem;
}

.account-current-plan strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.35rem;
}

.account-current-plan p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-current-plan b {
  color: var(--ink);
}

.account-current-plan .mini-action {
  margin-top: 12px;
}

.account-setup-meter {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3eadf;
}

.account-setup-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold-bright));
}

.account-fact-grid {
  margin-top: 14px;
}

.account-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-edit-form .form-span,
.account-form-actions {
  grid-column: 1 / -1;
}

.account-edit-form textarea {
  min-height: 86px;
  resize: vertical;
}

.account-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.onboarding-path {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.onboarding-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
}

.onboarding-summary-row span {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.onboarding-summary-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.onboarding-summary-row small {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.onboarding-step.complete {
  background: #f1f8f2;
  border-color: rgba(46, 125, 50, 0.35);
}

.onboarding-step.skipped {
  background: #fff8e7;
  border-color: rgba(178, 116, 20, 0.35);
}

.onboarding-step.required {
  border-color: rgba(170, 58, 58, 0.35);
}

.onboarding-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--ink);
  background: #edf1ea;
  font-weight: 900;
}

.onboarding-step.complete > span {
  color: #fff;
  background: #2e7d32;
}

.onboarding-step.skipped > span {
  background: #f4d494;
}

.onboarding-step h3 {
  margin: 0;
}

.onboarding-step h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.onboarding-step p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.onboarding-step-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.subscription-plan-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.plan-change-note {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8faf5;
}

.plan-change-note strong {
  color: var(--ink);
}

.plan-change-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.subscription-billing-toggle {
  margin-top: 14px;
}

.subscription-plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.subscription-plan-card.current {
  border-color: rgba(46, 125, 50, 0.5);
  background: #f1f8f2;
}

.subscription-plan-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.subscription-plan-card span,
.subscription-plan-card small,
.subscription-plan-card em {
  color: var(--muted);
  font-size: 0.84rem;
}

.subscription-plan-card strong {
  color: var(--ink);
  font-size: 1.25rem;
  white-space: nowrap;
}

.subscription-plan-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.subscription-plan-card .subscription-savings {
  color: #2e7d32;
  font-weight: 800;
}

.subscription-plan-card em {
  display: inline-block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
}

.subscription-plan-select {
  margin-top: 12px;
}

.interval-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.85fr);
  gap: 10px;
  align-items: end;
}

.unit-toggle {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.unit-toggle legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 7px;
}

.unit-toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.unit-toggle legend {
  grid-column: 1 / -1;
}

.incubation-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.hatchling-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hatchling-list span {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8faf5;
  color: var(--muted);
  font-size: 0.82rem;
}

.hatchling-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.hatch-check-task form,
.hatch-outcome-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.hatch-outcome-form > .eyebrow {
  grid-column: 1 / -1;
}

.hatch-check-list {
  display: grid;
  gap: 10px;
}

.hatch-check-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1fr) minmax(180px, 0.9fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.hatch-check-row fieldset {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 0;
  padding: 0;
  margin: 0;
}

.hatch-check-row legend {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.hatch-outcome-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6ebe6;
}

.hatchling-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.hatchling-detail-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.hatchling-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.hatchling-detail-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hatchling-detail-heading strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.genetics-edit-form {
  display: grid;
  gap: 12px;
}

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

.genetics-edit-form .form-span {
  grid-column: 1 / -1;
}

.focused-incubation,
.focused-project {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231, 170, 92, 0.18);
}

.outcome-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.outcome-list span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #5d4127;
  background: #fbefd8;
  font-size: 0.78rem;
  font-weight: 800;
}

.bulk-feed-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.bulk-feed-form .primary-action {
  grid-column: 1 / -1;
  width: 100%;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

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

.bulk-feed-header,
.bulk-feed-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 72px 72px 92px;
  gap: 8px;
  align-items: center;
}

.bulk-feed-header {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bulk-feed-row {
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
  min-width: 0;
}

.bulk-feed-row:hover {
  border-color: rgba(65, 104, 82, 0.38);
}

.bulk-animal {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.bulk-animal input {
  width: 18px;
  height: 18px;
}

.bulk-animal small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.3;
}

.bulk-feed-row .status {
  justify-content: center;
  min-width: 0;
  padding-inline: 8px;
  white-space: normal;
  text-align: center;
}

.bulk-care-header,
.bulk-care-row {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.7fr) 112px;
}

.sale-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.sale-checklist span {
  border: 1px solid #ead8d2;
  border-radius: 8px;
  padding: 10px;
  color: var(--clay);
  background: #fff8f6;
  font-size: 0.86rem;
  font-weight: 800;
}

.sale-checklist span.done {
  border-color: #d8e5d3;
  color: var(--moss);
  background: #f2f7ef;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 16px;
  border-left: 5px solid var(--gold);
  box-shadow: none;
}

.timeline-item:nth-child(even) {
  border-left-color: var(--water);
}

.schedule-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.schedule-mode-toggle {
  display: flex;
  gap: 8px;
}

.schedule-mode-toggle .active {
  color: #071008;
  background: var(--fern);
  border-color: var(--moss);
}

.schedule-action-card {
  align-items: start;
  width: 100%;
}

.schedule-check-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.schedule-check-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 160px);
  gap: 10px;
  align-items: center;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8faf5;
}

.schedule-check-row.read-only-row {
  grid-template-columns: 1fr;
}

.schedule-check-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.schedule-check-row input[type="checkbox"] {
  justify-self: end;
  width: 18px;
  height: 18px;
}

.schedule-inline-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.schedule-inline-actions .primary-action {
  align-self: end;
  min-width: 180px;
  width: 100%;
}

.schedule-inline-actions input[type="date"] {
  min-width: 150px;
}

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

.calendar-day {
  min-height: 150px;
  border: 1px solid #e6ebe6;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.calendar-day.today {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231, 170, 92, 0.16);
}

.calendar-day.has-events {
  background: #f8faf5;
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-day-header span,
.calendar-event-list small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.calendar-event-list {
  display: grid;
  gap: 6px;
}

.calendar-event-list span {
  border-radius: 8px;
  padding: 6px 7px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e6ebe6;
  font-size: 0.78rem;
  line-height: 1.25;
}

.status {
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 9px;
  color: #071008;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.status.warn {
  background: var(--clay);
  color: #fff;
}

.status.positive {
  background: var(--fern);
  color: #071008;
}

.status.danger {
  color: #fff;
  background: #8d2f2f;
}

.status.neutral {
  background: #eaf2e5;
}

dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(24, 32, 29, 0.25);
}

dialog::backdrop {
  background: rgba(24, 32, 29, 0.42);
}

#animalForm {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.wizard-progress span {
  min-height: 8px;
  border-radius: 999px;
  color: transparent;
  background: #e6ebe6;
}

.wizard-progress span.active {
  background: var(--gold);
}

.wizard-progress span.complete {
  background: var(--fern);
}

.wizard-step {
  display: grid;
  gap: 12px;
}

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

.wizard-step .compact-form .form-span,
.wizard-step .pairing-check-results {
  grid-column: 1 / -1;
}

.wizard-step h3 {
  margin: -6px 0 0;
}

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

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.het-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}

.het-panel:empty {
  display: none;
}

.het-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
}

.het-row span {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.het-row select {
  padding: 8px;
}

.dialog-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
}

@media (max-width: 1240px) {
  .insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subscription-plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    gap: 14px;
  }

  .sidebar .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
  }

  .nav-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transition: max-height 180ms ease, opacity 180ms ease;
  }

  .app-shell.menu-open .nav-list {
    max-height: 540px;
    opacity: 1;
  }

  .plan-box {
    display: none;
  }

  .app-shell.menu-open .plan-box {
    display: block;
  }

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

  .controls,
  .insight-grid,
  .dashboard-command-grid,
  .account-layout,
  .brand-asset-grid,
  .hosted-command-grid,
  .backend-readiness-grid,
  .database-blueprint-grid,
  .ownership-rule-grid,
  .api-contract-grid,
  .cloudflare-route-grid,
  .migration-checklist-list,
  .launch-risk-list,
  .mvp-release-grid,
  .billing-readiness-grid,
  .support-readiness-grid,
  .split-layout,
  .report-grid,
  .report-builder-layout,
  .breeding-layout,
  .production-grid,
  .bulk-layout,
  .incubation-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .profile-hero .status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .quick-log,
  .weight-log-form,
  .health-log-form,
  .photo-log-form,
  .external-photo-form,
  .sale-intent-form,
  .sale-handoff-form,
  .handoff-checklist,
  .transfer-in-form,
  .transfer-request-card,
  .transfer-package-preview-grid,
  .transfer-import-includes,
  .transfer-import-actions,
  .bulk-feed-form,
  .schedule-inline-actions {
    grid-template-columns: 1fr;
  }

  .sale-intent-form label,
  .sale-intent-form .primary-action,
  .sale-handoff-form .form-span {
    grid-column: 1;
  }

  .transfer-package-row {
    align-items: stretch;
    flex-direction: column;
  }

  .transfer-request-actions {
    justify-items: stretch;
  }

  .schedule-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-analytics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-feed-header {
    display: none;
  }

  .bulk-feed-row {
    grid-template-columns: 1fr 1fr;
  }

  .bulk-care-row {
    grid-template-columns: 1fr;
  }

  .bulk-feed-row .status {
    justify-self: start;
  }

  .profile-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .task,
  .setup-banner,
  .setup-empty-state,
  .backup-summary-row,
  .brand-asset-summary,
  .passport-brand-strip,
  .report-document-header,
  .backend-readiness-summary,
  .onboarding-summary-row,
  .onboarding-step,
  .schedule-row,
  .dialog-header,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-asset-summary {
    grid-template-columns: 1fr;
  }

  .onboarding-step {
    display: flex;
  }

  .onboarding-step-actions {
    justify-content: stretch;
  }

  .topbar {
    display: grid;
  }

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

  .form-grid,
  .animal-meta,
  .fact-grid,
  .account-edit-form,
  .wizard-review,
  .report-filter-form,
  .report-summary-grid,
  .incubation-form,
  .settings-form,
  .incubation-progress {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .subscription-plan-list {
    grid-template-columns: 1fr;
  }

  .profile-hero .animal-visual {
    min-height: 96px;
  }

  .log-row,
  .weight-row,
  .schedule-row,
  .schedule-check-row {
    grid-template-columns: 1fr;
  }

  .profile-tabs,
  .sale-checklist,
  .bulk-feed-row,
  .report-analytics-grid,
  .schedule-calendar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .main,
  .sidebar {
    padding: 14px;
  }

  .sidebar {
    gap: 12px;
  }

  .brand {
    align-items: flex-start;
  }

  .app-logo-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .menu-toggle,
  .nav-item,
  .primary-action,
  .secondary-action,
  .card-action,
  .profile-tab,
  .mini-action,
  .dialog-actions button {
    min-height: 44px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .view.active > .panel + .panel,
  .report-analytics-panel,
  .report-builder-layout,
  .profile-hero,
  .profile-tabs {
    margin-bottom: 12px;
  }

  .panel,
  .metric-card,
  .animal-card,
  .breeding-card,
  .incubation-card,
  .sale-marketing-card,
  .schedule-action-card,
  .production-row,
  .note-row,
  .project,
  .task {
    padding: 12px;
  }

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

  .animal-card {
    min-height: auto;
  }

  .animal-top,
  .panel-header,
  .sale-card-summary,
  .sale-species-header {
    align-items: stretch;
    flex-direction: column;
  }

  .animal-top .tag,
  .panel-header .status,
  .panel-header .count-pill {
    justify-self: start;
    align-self: start;
  }

  .profile-hero {
    gap: 12px;
  }

  .profile-hero h2 {
    font-size: 1.65rem;
  }

  .profile-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 6px;
    scroll-snap-type: x proximity;
  }

  .profile-tab {
    flex: 0 0 auto;
    min-width: 118px;
    scroll-snap-align: start;
  }

  .quick-log,
  .weight-log-form,
  .health-log-form,
  .photo-log-form,
  .external-photo-form,
  .sale-handoff-form,
  .transfer-in-form,
  .transfer-import-actions,
  .egg-collection-form,
  .compact-form,
  .wizard-step .compact-form,
  .incubation-form,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .quick-log > *,
  .weight-log-form > *,
  .health-log-form > *,
  .photo-log-form > *,
  .external-photo-form > *,
  .sale-handoff-form > *,
  .transfer-in-form > *,
  .transfer-import-actions > *,
  .egg-collection-form > *,
  .incubation-form > *,
  .settings-form > * {
    min-width: 0;
  }

  input,
  select,
  textarea {
    width: 100%;
    min-width: 0;
  }

  .wizard-actions,
  .report-actions,
  .schedule-inline-actions,
  .sale-marketing-actions,
  .species-card-actions,
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .wizard-actions button,
  .report-actions button,
  .schedule-inline-actions button,
  .sale-marketing-actions button,
  .species-card-actions button,
  .dialog-actions button {
    width: 100%;
  }

  .incubation-card .fact-grid,
  .project-analytics .fact-grid,
  .production-row .fact-grid,
  .sale-handoff-panel .fact-grid {
    grid-template-columns: 1fr;
  }

  .report-builder-layout > .panel,
  .report-table,
  .report-table-scroll {
    min-width: 0;
  }

  .report-table {
    overflow-x: auto;
  }

  .report-table table {
    min-width: 680px;
  }

  .report-document-header {
    grid-template-columns: 1fr;
  }

  .photo-gallery,
  .handoff-checklist,
  .transfer-import-includes {
    grid-template-columns: 1fr;
  }

  .schedule-action-card .panel-header {
    display: grid;
    gap: 8px;
  }

  .calendar-day {
    min-height: 118px;
  }

  dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  #animalForm {
    padding: 14px;
  }
}
