.page-viewport {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}
.lineage-map > svg {
  width: 100%;
  height: 100%;
  max-width: none;
}
.nfc-source-sex > img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}
.stage-indicator > img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.task-progress-overview > .task-progress-track {
  height: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.v2-stack .mini-task-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #777e65 transparent;
}
.v2-stack .task-card > .section-head,
.v2-stack .task-card > .task-small-summary {
  flex: none;
}
.plan-phase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
}
.plan-phase-main,
.plan-parents-source {
  min-width: 0;
}
.plan-current-phase {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0 36px;
}
.plan-current-phase > .stage-art {
  width: 48px;
  height: 48px;
}
.plan-current-phase h2 {
  margin: 6px 0 0;
}
.plan-current-phase > .badge {
  margin-left: auto;
}
.plan-phase-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 12px;
  border-bottom: 1px solid #31372a1a;
}
.plan-phase-row.current {
  background: #ffffff65;
  border-radius: 14px;
}
.plan-phase-copy {
  flex: 1;
  min-width: 0;
}
.plan-phase-copy h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 500;
}
.plan-phase-copy > span,
.plan-phase-copy > small {
  display: block;
  font-size: 13px;
  color: #73796b;
  line-height: 1.8;
}
.plan-phase-row.completed .plan-phase-copy > small {
  color: #52775e;
}
.plan-progress-history {
  margin-top: 38px;
}
.plan-parent-source {
  margin-bottom: 22px;
}
.plan-parent-source > button {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 22px;
  grid-template-rows: 30px 26px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  padding: 15px 0;
  text-align: left;
}
.plan-parent-source > button > img {
  grid-row: 1/3;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
}
.plan-parent-source > button > strong {
  grid-column: 2;
  align-self: end;
}
.plan-parent-source > button > span {
  grid-column: 2;
  font-size: 13px;
  color: #73796b;
}
.plan-parent-source > button > svg {
  grid-column: 3;
  grid-row: 1/3;
  width: 18px;
  height: 18px;
}
.plan-parents-source > .button {
  width: 100%;
}
@media (max-width:800px) {
  .plan-phase-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .plan-parents-source {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .plan-parents-source > .panel-title,
  .plan-parents-source > .button {
    grid-column: 1/-1;
  }
  .plan-phase-row {
    gap: 10px;
    padding: 18px 4px;
    flex-wrap: wrap;
  }
  .plan-phase-row > .button {
    margin-left: auto;
  }
  .plan-phase-copy {
    min-width: 135px;
  }
  .plan-parent-source > button {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 7px;
  }
  .plan-parent-source > button > img {
    width: 50px;
    height: 50px;
  }
  .plan-parent-source > button > svg {
    display: none;
  }
}
.nfc-source-identity,
.nfc-source-sex {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nfc-source-sex {
  gap: 3px;
}
.nfc-source-sex svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.identity-user {
  min-width: 155px;
}
.identity-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.membership-link {
  display: inline-flex !important;
  background: #30332e !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 4px 7px !important;
  line-height: 1 !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0;
}
.main-nav {
  position: relative;
  isolation: isolate;
}
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 24px;
  background: #30322f;
  transition:
    transform 300ms cubic-bezier(.22, .68, .2, 1),
    width 300ms,
    height 300ms;
  pointer-events: none;
}
.main-nav > a.active,
.main-nav > .menu-wrap > button.active {
  background: transparent !important;
  box-shadow: none;
}
.main-nav > a,
.main-nav > .menu-wrap > button {
  transition: color 180ms;
}
.slide-enter,
.slide-leave {
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}
.slide-start {
  transform: translateY(-14px);
}
.slide-end {
  transform: translateY(0);
}
.slide-leave {
  pointer-events: none;
}
.menu {
  transform-origin: top center;
}
.page-body {
  overflow: clip;
  min-height: 540px;
}
.pet-photo-card,
.pet-photo-card:hover,
.pet-photo-card:active {
  transform: none !important;
  transition: none !important;
}
.pet-full-photo,
.pet-photo-card:hover .pet-full-photo {
  transform: none !important;
  transition: none !important;
}
.glass-identity {
  isolation: isolate;
  min-height: 0 !important;
  padding: 30px 18px 18px !important;
  background: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  transition: none !important;
}
.glass-identity::before {
  content: "";
  position: absolute;
  inset: -20px -12px -12px;
  z-index: -1;
  background:
    linear-gradient(
      0deg,
      rgba(28, 29, 25, .52),
      rgba(43, 43, 35, .25) 55%,
      transparent);
  backdrop-filter: blur(12px);
  mask-image:
    linear-gradient(
      0deg,
      #000 32%,
      transparent 100%);
  pointer-events: none;
}
.photo-top {
  justify-content: flex-end;
}
.photo-name {
  gap: 9px;
  justify-content: flex-start !important;
}
.photo-name strong {
  font-size: 22px;
}
.sex-token {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
.sex-token svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}
.photo-species {
  font-size: 13px;
  line-height: 1.6;
  white-space: normal !important;
  color: #fff !important;
}
.parent-legend {
  display: none !important;
}
.parent-distribution > .label > span:last-child:not(:first-child) {
  display: none;
}
.home-tasks-v2 {
  border: 1px solid #fff9;
  border-radius: 27px;
  background: #ffffff57;
  padding: 20px 15px !important;
  gap: 20px !important;
}
.home-progress {
  padding: 0 !important;
}
.v2-stack {
  padding-top: 14px;
}
.feed-art {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex: none;
}
.photo-meta,
.photo-location {
  display: none !important;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 0;
}
.panel-title svg {
  width: 20px;
  height: 20px;
}
.empty-inline {
  padding: 28px;
  color: #777;
  text-align: center;
}
.detail-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
}
.detail-rail {
  min-width: 0;
}
.detail-main {
  min-width: 0;
}
.detail-surface {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff80;
}
.detail-surface + .detail-surface {
  margin-top: 18px;
}
.detail-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #3d40251a;
  margin-bottom: 22px;
  overflow-x: auto;
}
.detail-tabs button {
  padding: 13px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: flex;
  gap: 7px;
  align-items: center;
}
.detail-tabs button.active {
  border-color: #33362e;
  color: #262922;
}
.detail-tabs svg {
  width: 17px;
  height: 17px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-grid label,
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #697061;
}
.field-grid input,
.field-grid select,
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9dcd4;
  background: #fff9;
  border-radius: 10px;
  font: inherit;
  color: #30342d;
}
.form-stack {
  display: grid;
  gap: 16px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.info-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  margin: 0;
  font-size: 14px;
}
.info-dl dt {
  color: #777c70;
}
.info-dl dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.detail-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #31372a12;
}
.detail-list-row > div {
  min-width: 0;
  flex: 1;
}
.detail-list-row p {
  margin: 4px 0 0;
  color: #7a7e72;
  font-size: 12px;
}
.detail-list-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.detail-list-row svg {
  width: 19px;
  height: 19px;
}
.context-note {
  color: #73796b;
  font-size: 12px;
  line-height: 1.8;
}
.state-error {
  color: #ad3737;
  padding: 10px 0;
  font-size: 13px;
}
.screen-swap {
  pointer-events: none;
}
.modal-backdrop .dialog {
  max-height: 86vh;
  overflow: auto;
}
.modal-backdrop[x-cloak] {
  display: none;
}
.stage-art {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}
.status-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-steps > button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7;
}
.status-steps > button.active {
  background: #e7e9d5;
  box-shadow: inset 0 0 0 1px #959e75;
}
.status-steps img {
  width: 23px;
  height: 23px;
}
.filter-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-line .search-box {
  flex: 1;
  min-width: 150px;
}
.filter-line select {
  max-width: 100%;
  padding: 10px;
  border: 1px solid #d5d8c9;
  border-radius: 10px;
  background: #fff7;
  font: inherit;
}
.wide-dialog .form-stack {
  gap: 14px;
}
@media (max-width:1100px) {
  .detail-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 18px;
  }
  .detail-surface {
    padding: 20px;
  }
}
@media (max-width:760px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-rail > .pet-photo-card {
    max-width: 350px;
    margin: auto;
    aspect-ratio: 1.1;
  }
  .field-grid {
    gap: 14px;
  }
  .photo-name strong {
    font-size: 19px;
  }
  .glass-identity {
    padding: 25px 13px 13px !important;
  }
  .photo-species {
    font-size: 12px;
  }
  .home-tasks-v2 {
    padding: 16px !important;
  }
  .detail-tabs button {
    padding: 11px 12px;
  }
  .detail-surface {
    padding: 18px;
  }
  .detail-list-row {
    gap: 10px;
  }
  .nav-indicator {
    border-radius: 18px;
  }
  .identity-user {
    min-width: 0;
  }
}
.sex-token img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.task-destination-list {
  padding: 0 4px;
}
.task-destination-group {
  margin: 28px 0;
}
.task-destination-group > header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #464b3624;
  padding-bottom: 12px;
}
.task-destination-group h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 500;
}
.task-destination-group > header > span {
  font-size: 12px;
  color: #7a806e;
}
.task-destination-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 6px;
  border-bottom: 1px solid #464b3617;
}
.task-destination-row > div {
  flex: 1;
  min-width: 0;
}
.task-destination-row h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.task-destination-row p {
  font-size: 12px;
  margin: 7px 0 0;
  color: #7c806f;
}
.task-location {
  font-size: 13px;
  color: #7c806f;
}
.task-date input {
  font: inherit;
  border: 1px solid #bcbfa850;
  border-radius: 10px;
  padding: 11px;
  background: #fff6;
}
.task-progress-track {
  flex: 1;
}
.task-progress-track > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
  font-size: 13px;
}
.progress-track {
  height: 9px;
  background: #393e3013;
  border-radius: 20px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  background: #5d6748;
  height: 100%;
  border-radius: inherit;
  transition: width 320ms;
}
.cabinet-detail-layout {
  display: grid;
  grid-template-columns: 200px minmax(300px, 1.35fr) minmax(230px, .85fr);
  gap: 26px;
  align-items: start;
}
.cabinet-task-rail .detail-surface {
  padding: 18px 14px;
}
.cabinet-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 10px;
  text-align: left;
  border-radius: 12px;
  margin-bottom: 5px;
  color: #636756;
  font-size: 14px;
}
.cabinet-kind.active {
  background: #e6e8d5;
  color: #343a27;
}
.cabinet-kind span {
  flex: 1;
}
.cabinet-kind small {
  font-size: 12px;
}
.cabinet-kind svg {
  width: 18px;
  height: 18px;
}
.cabinet-task-rail .action-row {
  display: grid;
}
.cabinet-task-rail .action-row .button {
  justify-content: flex-start;
}
.cabinet-board-section {
  min-width: 0;
}
.cabinet-board-large {
  padding: 14px 15px 28px 4px;
  background:
    linear-gradient(
      135deg,
      #eeeee7cc,
      #c3c6c05e);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 #ffffffcc, 0 15px 28px -25px #383e30;
}
.cabinet-board-large.black-cabinet {
  background:
    linear-gradient(
      135deg,
      #565953,
      #30332f);
}
.board-column-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-left: 29px;
  gap: 7px;
  margin-bottom: 12px;
}
.board-column-select button {
  font-size: 12px;
  color: #777c70;
  padding: 5px;
}
.black-cabinet .board-column-select button,
.black-cabinet .board-layer-label {
  color: #dfe2d7;
}
.board-layer {
  display: grid;
  grid-template-columns: 26px 1fr 1fr;
  gap: 4px;
  align-items: center;
  margin: 0 0 5px;
}
.board-layer-label {
  font-size: 12px;
  color: #777c70;
}
.board-drawer {
  position: relative;
  min-width: 0;
  padding: 0 0 23px;
  overflow: visible;
  transition: transform 220ms;
}
.board-drawer > img {
  width: 100%;
  display: block;
}
.board-drawer.selected {
  transform: translateY(6px);
}
.board-drawer.selected:after {
  position: absolute;
  content: "";
  left: 8%;
  right: 8%;
  bottom: 12px;
  border-bottom: 4px solid #ba4546;
  border-radius: 3px;
}
.board-drawer.dimmed {
  opacity: .32;
}
.board-slot {
  position: absolute;
  left: 14%;
  top: 27%;
  font-size: 10px;
  color: #62665d;
}
.black-cabinet .board-slot {
  color: #d1d6cd;
}
.board-resident {
  font-size: 12px;
  display: block;
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 4px;
  text-align: center;
  color: #555d4a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.black-cabinet .board-resident {
  color: #e5e8df;
}
.board-attention {
  position: absolute;
  right: 12%;
  top: 23%;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #b54e49;
}
.cabinet-selection-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
}
.cabinet-selection-footer .button {
  margin-left: auto;
}
.cabinet-selection-footer .filter-select {
  min-width: 65px;
}
.cabinet-resident-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid #484e3915;
}
.cabinet-resident-row > img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}
.cabinet-resident-row > span {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.cabinet-resident-row strong {
  font-size: 14px;
  font-weight: 500;
}
.cabinet-resident-row small {
  font-size: 11px;
  color: #787f6c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cabinet-resident-row svg {
  width: 16px;
  height: 16px;
}
.cabinet-resident-detail > .text-button {
  margin-top: 16px;
}
.enclosure-tile button {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  border: 1px solid #ffffffa0;
  border-radius: 23px;
  background: #fff7;
  gap: 8px;
}
.enclosure-tile img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.enclosure-tile strong {
  font-size: 18px;
}
.enclosure-tile span {
  font-size: 13px;
  color: #7c8273;
}
.enclosure-tile svg {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 18px;
  height: 18px;
}
.enclosure-detail-art {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
}
.pet-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.pet-overview-grid > button {
  position: relative;
  background: #ffffff85;
  min-height: 155px;
  padding: 24px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #ffffffa6;
}
.pet-overview-grid > button > svg:first-child {
  width: 30px;
  height: 30px;
  color: #72765f;
}
.pet-overview-grid > button > img {
  width: 48px;
  height: 42px;
  object-fit: contain;
}
.pet-overview-grid > button > span {
  font-size: 13px;
  color: #757b69;
}
.pet-overview-grid > button > strong {
  font-size: 18px;
  font-weight: 500;
}
.pet-overview-grid > button > svg:last-child {
  position: absolute;
  right: 20px;
  top: 23px;
  width: 18px;
  height: 18px;
}
.pet-overview-grid .wide-overview {
  grid-column: 1/-1;
  min-height: 112px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
}
.pet-overview-grid .wide-overview > svg:last-child {
  display: none;
}
.pet-followup {
  grid-column: 1/-1;
  padding: 20px;
  background: #eddfb145;
  border-radius: 18px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.pet-followup > span {
  display: flex;
  gap: 8px;
  font-size: 13px;
  align-items: center;
  color: #8c6e3b;
}
.pet-followup svg {
  width: 18px;
  height: 18px;
}
.pet-followup strong {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}
.pet-location-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 14px;
  color: #656e58;
}
.pet-location-line > svg {
  width: 16px;
  height: 16px;
}
.pet-location-line > button:first-of-type {
  flex: 1;
  text-align: left;
}
.recipe-display {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 160px;
  margin-bottom: 24px;
}
.recipe-display img {
  width: 150px;
  height: 125px;
  object-fit: contain;
}
.recipe-display strong {
  font-size: 20px;
  font-weight: 500;
}
.recipe-display p {
  font-size: 13px;
  color: #787e6b;
}
.weight-current {
  display: block;
  font-size: 45px;
  margin: 25px 0;
}
.care-material-fields {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.care-material-fields label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  min-width: 0;
}
.care-material-fields select {
  max-width: 240px;
}
.care-material-fields input {
  width: 75px;
  padding: 10px;
  border: 1px solid #d8dacc;
  border-radius: 9px;
  background: #fff;
}
.record-image-preview {
  max-width: 260px;
  max-height: 180px;
  object-fit: contain;
}
.breeding-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.breeding-plan-source {
  border: 1px solid #ffffffad;
  background: #fff7;
  border-radius: 24px;
  padding: 22px;
  text-align: left;
  min-width: 0;
}
.breeding-plan-source > header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.breeding-plan-source > header strong {
  font-size: 16px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.breeding-plan-source svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.breeding-parent-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}
.breeding-parent-pair > div {
  width: 40%;
  min-width: 0;
  display: grid;
  text-align: center;
  gap: 5px;
}
.breeding-parent-pair img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.breeding-parent-pair strong {
  font-size: 14px;
  font-weight: 500;
}
.breeding-parent-pair span {
  font-size: 11px;
  color: #78806a;
}
.breeding-parent-pair > .pairing-link {
  font-size: 26px;
  color: #91957d;
}
.breeding-plan-source > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #797f6d;
  border-top: 1px solid #383e2416;
  padding-top: 16px;
}
.breeding-plan-source > footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.plan-parent-aside h2 {
  font-size: 19px;
  font-weight: 500;
}
.plan-parent-link {
  position: relative;
  display: grid;
  width: 100%;
  text-align: center;
  padding: 18px 0;
  gap: 8px;
}
.plan-parent-link img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: auto;
}
.plan-parent-link svg {
  position: absolute;
  right: 12px;
  top: 20px;
  width: 17px;
  height: 17px;
}
.plan-parent-link small {
  font-size: 12px;
  color: #777e68;
}
.plan-parent-aside > .button {
  width: 100%;
  margin-top: 15px;
}
.genetics-source-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.genetics-information-source {
  padding: 0 24px;
  width: 100%;
  min-width: 0;
  background: #fff8;
  border-radius: 23px;
  border: 1px solid #fff9;
}
.genetics-species-source {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid #64684d20;
  font-size: 14px;
}
.genetics-species-source > span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.genetics-species-source svg {
  width: 18px;
  height: 18px;
}
.genetics-species-source strong {
  font-weight: 500;
}
.genetic-parent-source {
  padding: 20px 0 16px;
  min-width: 0;
}
.genetics-input-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #64684d20}
.genetics-input-heading .genetics-species-source{width:auto;gap:16px;border:0;padding:16px 0}
.genetics-rule-state{font-size:12px;color:#636c5e;text-align:right}
.genetics-parent-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:40px}
.genetics-parent-grid>.genetic-parent-source:nth-of-type(2){border-left:1px solid #64684d20;padding-left:28px}
.genetic-parent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.genetic-parent-heading h2{display:flex;align-items:center;gap:7px;margin:0;font-size:17px;line-height:24px}
.genetic-parent-heading .sex-token{display:flex;align-items:center}
.genetic-parent-heading .sex-token img{width:19px;height:19px;filter:brightness(0) saturate(100%) invert(35%) sepia(10%) saturate(730%) hue-rotate(60deg)}
.genetic-parent-heading .text-button{flex:none;font-size:13px;gap:6px}
.genetic-parent-heading .text-button svg{width:15px;height:15px}
.genetic-parent-identity{display:flex;align-items:center;min-height:76px;padding-top:12px}
.gene-chosen-pet{display:flex;align-items:center;gap:12px;min-width:0;width:100%}
.gene-chosen-pet>img{width:56px;height:56px;object-fit:cover;border-radius:12px;flex:none}
.gene-chosen-pet>span{display:grid;gap:5px;min-width:0;flex:1}
.gene-chosen-pet strong{font-size:16px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gene-chosen-pet small{font-size:12px;color:#636c5e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gene-chosen-pet .icon-button{width:30px;height:30px;min-height:30px;flex:none}
.gene-parent-empty{font-size:14px;color:#666f60}
.genetic-parent-genes{display:flex;align-items:center;gap:12px;min-height:47px}
.genetic-parent-genes .source-gene-tags{margin:0;flex:1;min-width:0}
.genetic-parent-genes>.text-button{flex:none;font-size:12px;gap:5px}
.genetic-parent-genes>.text-button svg{width:14px;height:14px}
.gene-parent-note{font-size:12px;line-height:18px;color:#636c5e}
.genetics-input-footer{display:flex;align-items:center;justify-content:flex-end;gap:24px;padding:14px 0;border-top:1px solid #64684d20;min-height:68px}
.genetics-input-footer>.state-error{flex:1;margin:0;font-size:13px}
.genetics-input-footer .action-row{margin:0;flex:none;gap:20px}
.genetics-input-footer .genetics-calculate-source{min-width:150px;flex:none}
.genetics-output-source{min-width:0;width:100%;padding:2px 10px}
.genetics-output-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.9fr);align-items:start;gap:36px}
.genetics-output-grid>.genetics-result-stage{min-height:240px;margin:8px 0;align-self:start}
.genetics-results-detail{min-width:0;padding:6px 0}
.genetics-results-detail>.detail-tabs{margin:0 0 12px}
.gene-result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:195px;gap:12px;color:#626b5c;text-align:center;padding:20px}
.gene-result-empty>svg{width:28px;height:28px;color:#8a9680}
.gene-result-empty>strong{font-size:15px;font-weight:400}
.gene-result-empty>span{font-size:12px}
.dialog:has(.gene-pet-picker){max-width:920px;width:min(920px,calc(100vw - 40px))}
.gene-pet-filters{display:flex;align-items:center;gap:12px}
.gene-pet-filters>.search-box{flex:1;min-width:0}
.gene-pet-filters input{width:100%}
.gene-pet-filters>select{max-width:190px;min-width:140px;font:inherit;border:1px solid #c4c9bb;border-radius:20px;padding:9px 12px;background:#fff9}
.gene-pet-context{display:flex;justify-content:space-between;gap:16px;font-size:13px;color:#636c5e;margin:17px 0}
.gene-pet-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}
.gene-pet-choice{min-width:0}
.gene-pet-choice .pet-photo-card{aspect-ratio:1;height:auto;border-radius:20px}
.gene-pet-choice .photo-name strong{font-size:18px}
.gene-pet-choice .photo-species{font-size:12px}
.gene-pet-choice .glass-identity{padding:16px 14px}
.gene-pet-choice .photo-open:disabled{cursor:not-allowed;opacity:.48}
.gene-pet-location{display:block;font-size:12px;line-height:18px;margin:7px 3px 0;overflow-wrap:anywhere;color:#59634f}
.gene-choice-reason{display:block;font-size:11px;color:#7c6951;margin:3px}
.gene-species-options{max-height:52vh;overflow:auto}
.gene-species-options>button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;text-align:left;padding:14px 8px;border-bottom:1px solid #c4c9bb66}
.gene-species-options>button>span:first-child{display:grid;gap:5px}
.gene-species-options strong{font-size:15px;font-weight:400}
.gene-species-options small{font-size:12px;color:#626b5c}
.gene-species-options svg{width:18px;height:18px}
@media(max-width:700px){.genetics-input-heading{gap:12px}.genetics-rule-state{max-width:150px}.genetics-parent-grid{grid-template-columns:1fr;gap:0}.genetics-parent-grid>.genetic-parent-source:nth-of-type(2){border-left:0;border-top:1px solid #64684d20;padding-left:0}.genetics-output-grid{grid-template-columns:1fr;gap:10px}.genetics-input-footer{align-items:flex-end;flex-direction:column;gap:12px}.genetics-input-footer>.state-error{width:100%}.gene-pet-options{grid-template-columns:repeat(2,minmax(0,1fr))}.gene-pet-filters{flex-wrap:wrap}.gene-pet-filters>.search-box{flex-basis:100%}.gene-pet-choice .photo-name strong{font-size:15px}.gene-pet-choice .photo-species{font-size:11px}.gene-pet-choice .glass-identity{padding:10px}}
.genetic-parent-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  font-size: 14px;
}
.genetic-parent-trigger > span:first-child {
  flex: 1;
  text-align: left;
}
.genetic-parent-trigger > span:nth-child(2) {
  font-size: 12px;
  color: #79816a;
}
.genetic-parent-trigger svg {
  width: 16px;
  height: 16px;
}
.source-gene-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  min-height: 34px;
}
.source-gene-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 7px 9px;
  background: #e7e9dd;
  color: #5e6650;
  font-size: 12px;
}
.source-gene-tags b {
  font-weight: 400;
}
.source-gene-tags button {
  display: flex;
  padding: 0;
}
.source-gene-tags svg {
  width: 13px;
  height: 13px;
}
.source-gene-tags > .gene-placeholder {
  color: #929782;
  background: none;
  padding: 0;
}
.genetics-calculate-source {
  flex: 1;
  justify-content: center;
}
.genetics-output-source .panel-title {
  margin-top: 2px;
}
.genetics-result-stage {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  margin: 12px 0 26px;
}
.source-donut {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  flex: none;
}
.source-donut.empty {
  background: #dce0d1;
}
.source-donut > div {
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: #f4f4e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px;
  gap: 12px;
  text-align: center;
}
.source-donut strong {
  font-size: 35px;
  font-weight: 400;
}
.source-donut span {
  font-size: 12px;
  color: #737c63;
  line-height: 1.6;
}
.genetic-result-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 12px;
  border-bottom: 1px solid #313b2415;
  text-align: left;
  font-size: 13px;
}
.genetic-result-list > button.active {
  background: #ffffff80;
  border-radius: 12px;
}
.genetic-result-list > button > span:nth-child(2) {
  flex: 1;
  overflow-wrap: anywhere;
}
.result-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.genetic-result-list strong {
  font-weight: 500;
}
.locus-fieldset {
  border: 1px solid #dcded2;
  border-radius: 15px;
  padding: 14px;
  margin: 0;
}
.locus-fieldset legend {
  font-size: 14px;
  padding: 0 7px;
}
.locus-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.locus-options button {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e0e2d5;
  font-size: 12px;
  background: #f8f9f2;
}
.locus-options button.active {
  background: #333b2b;
  border-color: #333b2b;
  color: white;
}
.lineage-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lineage-toolbar > select {
  font: inherit;
  border: 1px solid #ccd1bc;
  background: #fff8;
  border-radius: 12px;
  padding: 10px;
  min-width: 160px;
}
.lineage-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 22px;
  align-items: start;
}
.lineage-canvas {
  position: relative;
  min-height: 660px;
  max-height: 800px;
  overflow: auto;
  border-radius: 24px;
  background-color: #e9ece57d;
  background-image: radial-gradient(#969f8438 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid #fff9;
}
.lineage-map {
  position: relative;
  margin: auto;
  transition: transform 320ms;
  overflow: visible;
}
.lineage-map > svg {
  position: absolute;
  inset: 0;
  fill: none;
  stroke: #9da68c;
  stroke-width: 1.5;
  pointer-events: none;
}
.lineage-node {
  position: absolute;
  border: 1px solid #f6f8ed;
  background: #f5f7ec;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 3px #4d56340b;
  padding: 6px;
  gap: 5px;
  color: #4c563d;
}
.lineage-node.selected {
  border: 2px solid #73905e;
  box-shadow: 0 0 0 4px #7c926522;
}
.lineage-node > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.lineage-node-name {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.lineage-node-meta {
  font-size: 8px;
  line-height: 1.4;
  word-break: break-all;
  color: #829170;
}
.lineage-node-genes {
  font-size: 9px;
  color: #6d7b59;
  line-height: 1.4;
}
.lineage-node.unknown {
  border: 1px dashed #9fa88d;
  background: #ffffff50;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #9ba58a;
}
.lineage-node.unknown > span {
  font-size: 30px;
}
.lineage-node.unknown strong {
  font-size: 11px;
  font-weight: 400;
}
.lineage-node.external {
  background: #eee7d7;
}
.lineage-fan {
  position: absolute;
  border: 1px solid #d6ddca;
  background: #f3f6e8;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 16px;
}
.lineage-fan > span:last-child {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #81916c;
}
.lineage-fan svg {
  width: 16px;
  height: 16px;
}
.lineage-inspector {
  padding: 22px 18px;
  background: #ffffff80;
  border-radius: 22px;
}
.lineage-inspector .panel-title {
  align-items: flex-start;
  flex-wrap: wrap;
}
.lineage-inspector .info-dl {
  font-size: 12px;
  gap: 14px;
}
.lineage-inspector .info-dl dd {
  word-break: break-word;
}
.lineage-actions {
  margin-top: 20px;
}
.lineage-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  width: 100%;
  font-size: 12px;
  padding: 13px 0;
  border-top: 1px solid #46563114;
}
.lineage-actions svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.lineage-empty {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.lineage-empty > svg {
  width: 55px;
  height: 55px;
  color: #88966b;
}
.lineage-empty h2 {
  font-size: 21px;
  font-weight: 400;
}
.lineage-candidate-list {
  max-height: 340px;
  overflow: auto;
}
.lineage-candidate {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px !important;
  padding: 13px 4px;
  border-bottom: 1px solid #464f3412;
}
.lineage-candidate > input {
  width: 16px !important;
  min-width: 16px;
  flex: none;
}
.lineage-candidate > span {
  display: grid;
  gap: 5px;
}
.lineage-candidate strong {
  font-size: 14px;
  font-weight: 500;
}
.lineage-candidate small {
  font-size: 11px;
  color: #7f8870;
}
.lineage-candidate.disabled {
  opacity: .45;
}
.lineage-batch-table > div {
  display: grid;
  grid-template-columns: 24px minmax(70px, 1fr) 100px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.lineage-batch-table input,
.lineage-batch-table select {
  padding: 9px;
}
.batch-sex-actions {
  display: flex;
  gap: 12px;
}
.lineage-trace {
  margin-top: 22px;
  font-size: 11px;
}
.lineage-trace h3 {
  font-weight: 500;
}
.lineage-trace p {
  display: grid;
  gap: 5px;
  color: #78846a;
}
.lineage-trace strong {
  font-weight: 400;
}
.daily-prep-date{font-size:13px;color:#636b5c;margin-left:12px}
.daily-preparation{min-width:0;padding:4px 6px 28px}
.daily-prep-overview{display:grid;grid-template-columns:1fr 1fr 1fr;gap:32px;padding:20px 12px 28px;border-bottom:1px solid #64684d24}
.daily-prep-overview>div,.daily-prep-overview>button{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;min-width:0}
.daily-prep-overview>button{border-left:1px solid #64684d24;padding-left:32px}
.daily-prep-overview>div>span:first-child,.daily-prep-overview>button>span{display:flex;align-items:center;gap:9px;font-size:14px;color:#5c6556}
.daily-prep-overview svg{width:14px;height:14px}
.daily-prep-overview strong{font-size:31px;line-height:1.2;font-weight:400;min-height:38px}
.daily-prep-overview strong>b{font-weight:400}
.daily-prep-overview strong>small{font-size:14px;color:#65715e}
.daily-prep-overview>button>small{font-size:12px;color:#626b5c;line-height:18px}
.daily-prep-progress{width:min(170px,80%);height:4px;background:#c6cec188;border-radius:4px;margin-top:3px;overflow:hidden}
.daily-prep-progress>i{display:block;height:100%;background:#697e60;border-radius:4px;transition:width 200ms}
.daily-prep-list-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 10px 17px}
.daily-prep-list-heading h2{margin:0;font-size:19px}
.daily-prep-list-heading>span{font-size:12px;color:#606957}
.daily-prep-list{display:flex;flex-direction:column;gap:10px}
.daily-prep-item{display:grid;grid-template-columns:84px minmax(0,1fr) 82px minmax(95px,.38fr) 160px;align-items:center;gap:24px;padding:22px 26px;background:#fff9;border:1px solid #fff9;border-radius:22px;transition:background 180ms}
.daily-prep-item.is-ready{background:#edf2e7b3}
.daily-prep-art{width:84px;height:84px;display:grid;place-items:center;background:#e8e9de80;border-radius:18px;color:#7b795d}
.daily-prep-art>img{width:100%;height:100%;object-fit:contain}
.daily-prep-art>svg{width:36px;height:36px;stroke-width:1.35}
.daily-prep-identity{min-width:0}
.daily-prep-identity h3{font-size:19px;font-weight:400;margin:0 0 7px;overflow-wrap:anywhere}
.daily-prep-identity>span{font-size:13px;color:#616a59}
.daily-prep-inventory{display:flex;align-items:center;gap:6px;font-size:12px;color:#65735e;margin-top:12px;text-align:left}
.daily-prep-inventory>svg{width:12px;height:12px;flex:none}
.daily-prep-quantity{display:flex;align-items:baseline;justify-content:flex-end;gap:7px}
.daily-prep-quantity>strong{font-size:29px;font-weight:400}
.daily-prep-quantity>span{font-size:13px;color:#606957}
.daily-prep-cost{display:flex;flex-direction:column;gap:8px;min-width:0;padding-left:24px;border-left:1px solid #68705d24}
.daily-prep-cost>span{font-size:12px;color:#606957}
.daily-prep-cost>strong{font-size:17px;font-weight:400}
.daily-prep-cost>small{font-size:11px;color:#886b3e}
.daily-prep-actions{display:flex;justify-content:flex-end;align-items:center;min-width:0}
.daily-prep-actions .button{justify-content:center;min-width:136px;font-size:13px;padding:11px 14px;white-space:nowrap}
.daily-prep-actions .button>svg{width:16px;height:16px}
.daily-prep-ready{display:flex;align-items:center;gap:8px;color:#496940;font-size:13px}
.daily-prep-ready>svg{width:18px;height:18px}
.daily-prep-empty{display:flex;flex-direction:column;align-items:center;gap:13px;text-align:center;padding:65px 20px}
.daily-prep-empty>svg{width:36px;height:36px;color:#6d8560;stroke-width:1.25}
.daily-prep-empty h3{font-size:18px;font-weight:400;margin:0}
.daily-prep-empty p{font-size:13px;color:#606957;margin:0 0 8px}
.daily-prep-undo{position:fixed;z-index:50;bottom:28px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:13px 18px;border-radius:14px;background:#30372d;color:#fff;font-size:13px;box-shadow:0 6px 20px #26302024}
.daily-prep-undo>svg{width:18px;height:18px}
.daily-prep-undo>button{color:#f2dc86;margin-left:16px}
.daily-thaw-dialog{display:flex;flex-direction:column;gap:18px}
.daily-thaw-context{font-size:14px;color:#626b5c;margin:0 0 4px}
.daily-thaw-minutes{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:14px}
.daily-thaw-minutes>span:last-child{display:flex;align-items:center;gap:10px}
.daily-thaw-minutes input{width:104px;min-height:44px;padding:10px 12px;border:1px solid #bfc7b7;border-radius:12px;background:#fff;font:inherit;text-align:center}
.daily-thaw-minutes small{font-size:13px;color:#626b5c}
.daily-thaw-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.daily-thaw-presets>button{border:1px solid #b8c1af;border-radius:12px;padding:10px 5px;font-size:12px}
.daily-thaw-presets>button[aria-pressed="true"]{background:#e6eadc;border-color:#65735e;color:#384633}
.daily-thaw-dialog>.button{justify-content:center}
.daily-thaw-complete{display:flex;align-items:center;gap:14px;padding:18px 2px;border-top:1px solid #bcc4b066;text-align:left}
.daily-thaw-complete>span{display:flex;flex-direction:column;gap:6px;flex:1}
.daily-thaw-complete strong{font-weight:400;font-size:15px}
.daily-thaw-complete small{font-size:12px;color:#626b5c}
.daily-thaw-complete>svg{width:20px;height:20px;color:#69835e}
.daily-cost-dialog>.segmented{display:flex;margin-bottom:20px;gap:4px}
.daily-cost-dialog>.segmented>button{border-radius:18px;padding:9px 15px;font-size:13px}
.daily-cost-line{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:18px 2px;border-bottom:1px solid #bfc7b766}
.daily-cost-line>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.daily-cost-line strong{font-size:15px;font-weight:400;overflow-wrap:anywhere}
.daily-cost-line small{font-size:12px;color:#626b5c;line-height:18px;overflow-wrap:anywhere}
.daily-cost-line>span{flex:none;font-size:17px}
.daily-cost-dialog>.text-button{margin-top:22px}
@media(max-width:900px){.daily-prep-item{grid-template-columns:64px minmax(0,1fr) 60px 140px;gap:16px;padding:20px}.daily-prep-art{width:64px;height:64px}.daily-prep-cost{display:none}.daily-prep-overview{gap:20px}.daily-prep-overview>button{padding-left:20px}}
@media(max-width:600px){.daily-preparation{padding:0 0 20px}.daily-prep-date{display:block;margin:8px 0 0}.daily-prep-overview{gap:12px;padding:12px 0 22px}.daily-prep-overview>button{padding-left:12px}.daily-prep-overview strong{font-size:23px}.daily-prep-overview strong>small{font-size:11px}.daily-prep-overview>button>small{font-size:11px}.daily-prep-overview>div>span:first-child,.daily-prep-overview>button>span{font-size:12px}.daily-prep-overview svg{display:none}.daily-prep-list-heading{align-items:flex-start;margin:22px 4px 14px}.daily-prep-list-heading>span{max-width:150px;text-align:right;line-height:18px}.daily-prep-item{grid-template-columns:54px minmax(0,1fr) 48px;gap:12px;padding:17px 15px}.daily-prep-art{width:54px;height:62px;grid-row:1/3;border-radius:12px}.daily-prep-identity h3{font-size:17px}.daily-prep-actions{grid-column:2/4;justify-content:flex-start}.daily-prep-quantity>strong{font-size:24px}.daily-prep-actions .button{padding:8px 12px;min-height:36px}.daily-prep-undo{white-space:nowrap;bottom:18px}}
.stock-balance {
  font-size: 12px;
  color: #8c927d;
}
.water-prep-symbol {
  width: 88px;
  display: flex;
  justify-content: center;
}
.water-prep-symbol svg {
  width: 34px;
  height: 34px;
  color: #7e978a;
}
.stock-source-list {
  max-width: 1100px;
}
.stock-source-row {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 25px 5px;
  text-align: left;
  border-bottom: 1px solid #3d46241a;
}
.stock-source-row > img,
.stock-source-row > .material-symbol {
  width: 76px;
  height: 65px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stock-source-row .material-symbol > svg {
  width: 32px;
  height: 32px;
  color: #858b73;
}
.stock-source-row > span:nth-of-type(2) {
  flex: 1;
  display: grid;
  gap: 8px;
}
.stock-source-row strong {
  font-weight: 500;
  font-size: 17px;
}
.stock-source-row small {
  font-size: 12px;
  color: #81896f;
}
.stock-source-row b {
  font-size: 23px;
  font-weight: 400;
  margin-left: auto;
  white-space: nowrap;
}
.stock-source-row > svg {
  width: 19px;
  height: 19px;
  margin-left: 20px;
}
.expense-source {
  max-width: 950px;
}
.expense-total {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.expense-total > span {
  font-size: 17px;
}
.expense-total strong {
  font-weight: 400;
  font-size: 42px;
}
.material-source-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 45px;
  align-items: start;
}
.material-source-summary > img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.material-source-summary > h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 12px;
}
.material-source-summary > strong {
  font-size: 64px;
  font-weight: 400;
}
.material-source-summary > span {
  margin-left: 10px;
  color: #838b74;
}
.material-source-summary > p {
  font-size: 13px;
  color: #7e886b;
}
.nfc-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}
.nfc-source-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 85.60/53.98;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c7d0ba;
  border-radius: 12px;
  background: #f7faf6;
  color: #174d4b;
  box-shadow:
    0 2px 0 #adb5a7,
    0 7px 10px #2331281a,
    0 20px 28px -14px #23312855;
  text-align: left;
}
.nfc-source-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 63.06%;
  height: 100%;
  object-fit: contain;
}
.nfc-source-content {
  position: absolute;
  inset: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  min-width: 0;
}
.nfc-source-content > strong {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 80%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.nfc-source-identity {
  font-size: 12px;
  color: #266963;
  max-width: 65%;
  margin-top: 3px;
}
.nfc-source-gene {
  display: flex;
  gap: 5px;
  width: 35%;
  align-items: center;
  font-size: 13px;
  margin-top: 16px;
}
.nfc-source-gene svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.nfc-source-gene > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nfc-source-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #266963;
  margin-top: auto;
  max-width: 80%;
  min-width: 0;
}
.nfc-source-location svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.nfc-source-location > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nfc-source-uid {
  align-self: flex-end;
  font:
    10px/1.6 ui-monospace,
    Consolas,
    monospace;
  color: #266963;
  margin-top: 5px;
  max-width: 100%;
}
.nfc-source-symbol {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: #68978b;
}
.nfc-source-symbol > svg {
  width: 76px;
  height: 76px;
  stroke-width: 1.2;
}
.nfc-source-grid article > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  font-size: 12px;
  color: #768068;
}
.membership-source-periods {
  display: flex;
  gap: 3px;
  background: #eaecdf8c;
  border-radius: 24px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  margin: 8px 0 30px;
}
.membership-source-periods button {
  min-width: 85px;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 22px;
  transition: background 180ms;
}
.membership-source-periods button.active {
  background: #2b3028;
  color: #fff;
}
.membership-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.membership-source-plan {
  position: relative;
  border: 1px solid #fff9;
  border-radius: 25px;
  padding: 35px 26px 26px;
  background: #f9faf3;
}
.membership-source-plan.standard {
  background: #fff;
}
.membership-source-plan.premium {
  background: #282a26;
  color: #f3f4ed;
}
.member-edge-tag {
  position: absolute;
  right: 25px;
  top: 0;
  background: #dddfb8;
  color: #5e673e;
  padding: 6px 12px;
  border-radius: 0 0 10px 10px;
  font-size: 10px;
}
.premium .member-edge-tag {
  background: #f1d774;
  color: #494626;
}
.member-source-code {
  font-size: 12px;
  display: block;
  margin-top: 3px;
  color: #878d6e;
}
.premium .member-source-code {
  color: #ddca8c;
}
.membership-source-plan h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 13px 0;
}
.member-source-price {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 95px;
}
.member-source-price strong {
  font-size: 45px;
  font-weight: 400;
}
.member-source-price span {
  font-size: 12px;
  color: #979c8b;
}
.member-feature-table {
  display: grid;
  gap: 20px;
  margin: 23px 0 35px;
}
.member-feature-table > div {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.member-feature-table > div > span:last-child {
  font-size: 11px;
  color: #929a80;
}
.premium .member-feature-table > div > span:last-child {
  color: #ccd2ba;
}
.member-feature-table svg {
  width: 18px;
  height: 18px;
  color: #90b391;
  background: #eef6e6;
  border-radius: 50%;
  padding: 3px;
}
.premium .member-feature-table svg {
  color: #e9d176;
  background: #444a35;
}
.membership-source-plan > .button {
  width: 100%;
  justify-content: center;
  min-height: 45px;
  background: #ecefe3;
  color: #969d86;
}
.premium > .button {
  background: #f5f2de;
  color: #82886b;
}
.data-source-art {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.help-copy h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 25px 0 12px;
}
.help-copy p {
  font-size: 13px;
  line-height: 1.9;
  color: #6f7960;
}
.modal-backdrop select,
.modal-backdrop textarea {
  max-width: 100%;
}
.dialog .check-label {
  flex-direction: row !important;
  align-items: center;
}
.dialog .check-label input {
  width: 16px !important;
  flex: none;
}
@media (max-width:1200px) {
  .cabinet-detail-layout {
    grid-template-columns: 170px minmax(250px, 1.2fr) minmax(200px, .8fr);
    gap: 18px;
  }
  .cabinet-task-rail .detail-surface {
    padding: 16px 10px;
  }
  .cabinet-task-rail .panel-title h2 {
    font-size: 17px;
  }
  .nfc-source-grid {
    grid-template-columns: 1fr 1fr;
  }
  .breeding-plan-source {
    padding: 19px;
  }
  .lineage-source-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .lineage-toolbar {
    gap: 14px;
  }
  .member-feature-table > div {
    gap: 12px;
  }
  .membership-source-plan {
    padding: 32px 20px 22px;
  }
}
@media (max-width:960px) {
  .cabinet-detail-layout {
    grid-template-columns: 160px 1fr;
  }
  .cabinet-resident-detail {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr;
  }
  .cabinet-resident-detail > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .cabinet-resident-detail .panel-title {
    grid-column: 1/-1;
  }
  .breeding-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lineage-source-layout {
    grid-template-columns: 1fr;
  }
  .lineage-inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .lineage-actions {
    margin: 0;
    grid-column: 2;
    grid-row: 1/4;
  }
  .lineage-inspector .info-dl {
    align-content: start;
  }
  .genetics-source-layout {
    gap: 22px;
    grid-template-columns: 1fr 1fr;
  }
  .preparation-material-row {
    gap: 15px;
  }
  .preparation-material-row .stock-balance {
    display: none;
  }
  .membership-source-grid {
    gap: 14px;
  }
  .membership-source-plan {
    padding: 32px 16px 22px;
  }
  .member-feature-table > div {
    font-size: 12px;
    gap: 7px;
  }
  .member-feature-table > div > span:last-child {
    font-size: 10px;
  }
  .plan-source-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width:760px) {
  .task-destination-row {
    gap: 11px;
    flex-wrap: wrap;
    padding: 18px 0;
  }
  .task-destination-row > div {
    flex-basis: 50%;
  }
  .task-destination-row .task-location {
    display: none;
  }
  .task-date input {
    padding: 8px;
    width: 130px;
    font-size: 11px;
  }
  .task-progress-overview {
    flex-wrap: wrap;
  }
  .task-total {
    min-width: 65px;
  }
  .task-total > strong {
    font-size: 35px;
  }
  .task-date {
    margin-left: auto;
  }
  .task-progress-track {
    min-width: 100px;
  }
  .cabinet-detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cabinet-task-rail .detail-surface {
    background: none;
    padding: 0;
  }
  .cabinet-task-rail .panel-title {
    margin-bottom: 10px;
  }
  .cabinet-kind {
    width: auto;
    display: inline-flex;
    padding: 9px 10px;
    font-size: 12px;
    gap: 5px;
  }
  .cabinet-kind small {
    display: none;
  }
  .cabinet-task-rail .action-row {
    display: flex;
    margin-top: 8px;
  }
  .cabinet-board-large {
    max-width: 520px;
    margin: auto;
  }
  .cabinet-selection-footer {
    gap: 10px;
  }
  .cabinet-selection-footer .button {
    width: 100%;
    margin: 4px 0 0;
    justify-content: center;
  }
  .cabinet-resident-detail > div {
    grid-template-columns: 1fr;
  }
  .pet-overview-grid {
    gap: 12px;
  }
  .pet-overview-grid > button {
    padding: 17px;
    min-height: 143px;
  }
  .pet-overview-grid > button > strong {
    font-size: 15px;
  }
  .pet-overview-grid > button > svg:last-child {
    right: 12px;
    top: 18px;
  }
  .pet-overview-grid > button > img {
    width: 43px;
    height: 36px;
  }
  .pet-overview-grid .wide-overview {
    padding-right: 16px;
    grid-template-columns: 27px 1fr auto;
    gap: 8px;
    min-height: 90px;
  }
  .pet-followup {
    flex-wrap: wrap;
    padding: 16px;
  }
  .pet-followup strong {
    flex-basis: 40%;
  }
  .care-material-fields {
    flex-direction: column;
    gap: 12px;
  }
  .care-material-fields select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
  }
  .care-material-fields label {
    justify-content: space-between;
  }
  .task-flow-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .result-options {
    gap: 5px;
  }
  .result-options button {
    padding: 8px 11px;
    font-size: 12px;
  }
  .breeding-plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-source-layout {
    grid-template-columns: 1fr;
  }
  .plan-parent-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .plan-parent-aside h2 {
    grid-column: 1/-1;
    margin: 0;
  }
  .plan-parent-aside .button {
    grid-column: 1/-1;
    margin: 0;
  }
  .plan-parent-link img {
    width: 100px;
    height: 100px;
  }
  .plan-parent-link {
    padding: 10px 0;
  }
  .status-steps {
    gap: 6px;
  }
  .status-steps > button {
    padding: 8px;
    font-size: 12px;
  }
  .status-steps img {
    width: 20px;
    height: 20px;
  }
  .genetics-source-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .genetics-information-source {
    padding: 0 18px 20px;
  }
  .source-donut {
    width: 190px;
    height: 190px;
  }
  .source-donut > div {
    inset: 24px;
  }
  .lineage-toolbar {
    gap: 10px;
  }
  .lineage-toolbar > select {
    min-width: 100%;
    max-width: 100%;
  }
  .lineage-toolbar .check-label {
    font-size: 11px;
    gap: 6px;
  }
  .lineage-toolbar .icon-button {
    width: 31px;
    height: 31px;
    min-height: 31px;
  }
  .lineage-source-layout {
    display: flex;
    flex-direction: column;
  }
  .lineage-canvas {
    width: 100%;
    min-height: 610px;
    max-height: 650px;
    border-radius: 20px;
  }
  .lineage-map {
    margin-left: 0;
  }
  .lineage-inspector {
    width: 100%;
    padding: 20px;
    gap: 15px;
  }
  .lineage-inspector .panel-title {
    grid-column: 1/-1;
    margin: 0;
  }
  .lineage-actions {
    grid-row: auto;
    grid-column: 1/-1;
  }
  .lineage-inspector .info-dl {
    grid-column: 1/-1;
  }
  .lineage-actions button {
    font-size: 13px;
    padding: 14px 0;
  }
  .preparation-source {
    padding: 10px 0;
  }
  .preparation-material-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .preparation-material-row > img,
  .water-prep-symbol {
    width: 60px;
    height: 55px;
  }
  .preparation-material-row > strong {
    font-size: 20px;
  }
  .preparation-material-row h2 {
    font-size: 17px;
  }
  .preparation-material-row > .check-label {
    margin-left: 74px;
  }
  .preparation-material-row > div {
    flex-basis: 40%;
  }
  .stock-source-row {
    gap: 15px;
    padding: 20px 0;
  }
  .stock-source-row > img,
  .stock-source-row > .material-symbol {
    width: 50px;
    height: 50px;
  }
  .stock-source-row strong {
    font-size: 15px;
  }
  .stock-source-row small {
    font-size: 10px;
  }
  .stock-source-row b {
    font-size: 20px;
  }
  .stock-source-row > svg {
    margin-left: 0;
    width: 15px;
  }
  .expense-total {
    flex-direction: column;
    align-items: flex-start;
  }
  .expense-total strong {
    font-size: 35px;
  }
  .material-source-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .material-source-summary > img {
    height: 170px;
  }
  .material-source-summary > strong {
    font-size: 50px;
  }
  .nfc-source-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .nfc-type-filter {
    display: flex;
    flex-wrap: wrap;
  }
  .nfc-type-filter > button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .nfc-source-content {
    inset: 15px 17px 12px;
  }
  .nfc-source-content > strong {
    font-size: 21px;
  }
  .nfc-source-gene {
    margin-top: 12px;
    font-size: 12px;
  }
  .nfc-source-location {
    font-size: 10px;
  }
  .nfc-source-uid {
    font-size: 9px;
  }
  .membership-source-periods {
    width: 100%;
  }
  .membership-source-periods button {
    min-width: 0;
    flex: 1;
    padding: 10px 6px;
    font-size: 12px;
  }
  .membership-source-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .membership-source-plan {
    padding: 32px 24px 25px;
  }
  .member-feature-table > div {
    font-size: 14px;
  }
  .member-feature-table > div > span:last-child {
    font-size: 12px;
  }
  .member-source-price {
    min-height: 75px;
  }
  .member-feature-table {
    gap: 20px;
  }
  .membership-source-plan h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
