/* Day Care incubation console. Gameplay identity keeps the shared Inventory
   renderer and quality palette; this sheet owns only the station layout. */
.drawer.breeding-drawer,
.breeding-station {
  --breeding-case: #53616b;
  --breeding-case-light: #8b999f;
  --breeding-edge: #1e2b36;
  --breeding-eggshell: #e7dfc4;
  --breeding-case-ink: #27323b;
  --breeding-lcd: #0b1420;
  --breeding-amber: #e3bd70;
}
.drawer.breeding-drawer {
  width: min(calc(1240px + var(--ui-nav-rail-size)), 100%);
}
.breeding-drawer .drawer-panel {
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 8px 10px;
  border-left: 3px solid var(--breeding-edge);
  background: var(--breeding-case);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 3px var(--breeding-case-light), inset -3px -3px var(--breeding-edge);
}
.breeding-drawer .drawer-head {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  flex: none;
  min-height: 38px;
  padding: 0 2px 5px;
  border-bottom: 2px solid var(--breeding-edge);
  background: var(--breeding-case);
  box-shadow: 0 -8px var(--breeding-case);
}
.breeding-drawer #drawer-kicker { display: none; }
.breeding-drawer .drawer-head h2 {
  margin: 0;
  color: var(--breeding-eggshell);
  font: 28px/1 var(--ui-font-display);
}
.breeding-drawer .drawer-head button {
  border-color: var(--breeding-edge);
  background: var(--breeding-eggshell);
  color: var(--breeding-case-ink);
  box-shadow: inset 1px 1px #fff8e5, 2px 2px var(--breeding-edge);
}
.breeding-drawer #drawer-content {
  display: block;
  flex: none;
  min-height: 0;
  padding-top: 5px;
}
.breeding-station {
  --breeding-gap: 6px;
  display: grid;
  grid-template-rows: auto auto;
  width: 100%;
  flex: none;
  min-width: 0;
  min-height: 0;
  gap: 10px;
  font-family: var(--ui-font-body);
}
.breeding-drawer .drawer-title-row { align-items: center; gap: 8px 16px; }
.breeding-station .breeding-columns {
  grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr);
  grid-template-rows: max-content minmax(110px, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
}
.breeding-station .ui-section {
  min-width: 0;
  min-height: 0;
  padding: 6px;
  border: 2px solid var(--breeding-edge);
  border-radius: 0;
  background: var(--breeding-lcd);
  box-shadow: inset 1px 1px #30404c, 1px 1px var(--breeding-case-light);
}
.breeding-station .ui-section__title { margin: 0; font: 20px/1 var(--ui-font-display); }
.breeding-station .breeding-muted { margin-top: 4px; font-size: 10px; line-height: 1.25; }
.breeding-station .breeding-pair { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: auto auto auto; align-content: start; }
.breeding-station .breeding-incubator { grid-column: 1; grid-row: 2; }
.breeding-station .breeding-pair > .ui-section__title { margin-bottom: 6px; color: var(--breeding-amber); }
.breeding-station .breeding-slots { gap: 5px; align-items: stretch; }
.breeding-station .breeding-plus { align-self: center; }
.breeding-station .breeding-slot {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: stretch;
  min-height: 0;
  padding: 6px;
  gap: 6px;
  text-align: left;
  border-radius: 0;
}
.breeding-slot-header { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 32px; gap: 4px; }
.breeding-slot-content { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; min-width: 0; gap: 6px; }
.breeding-station .breeding-slot-label { min-width: 0; font-size: 10px; line-height: 16px; }
.breeding-station [data-breeding-parent-role="principal"] { border-color: var(--breeding-amber); }
.breeding-station [data-breeding-parent-role="principal"] .breeding-slot-label { color: var(--breeding-amber); }
.breeding-station .breeding-slot-placeholder { width: 38px; height: 38px; border-radius: 0; font-size: 24px; }
.breeding-station .breeding-slot small { font-size: 10px; line-height: 1.25; }
.breeding-station .breeding-slot .breeding-sprite { width: 40px; height: 40px; }
.breeding-slot-identity { display: grid; min-width: 0; gap: 1px; }
.breeding-slot-identity > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.breeding-slot-identity .pokemon-variant-name { display: flex; min-width: 0; max-width: 100%; }
.breeding-slot-identity .pokemon-variant-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breeding-slot-identity :is(.pokemon-variant-prefix, .pokemon-refinement-badge) { flex: none; }
.breeding-station .breeding-slot .breeding-badges { justify-content: start; flex-wrap: wrap; gap: 3px; }
.breeding-station :is(.breeding-iv, .breeding-quality, .breeding-tier) { padding: 1px 3px; border-radius: 0; font-size: 9px; white-space: nowrap; }
.breeding-station .breeding-slot-clear { position: static; flex: none; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; font-size: 22px; }
.breeding-station .breeding-analysis {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  max-height: none;
  overflow: visible;
  font-size: 12px;
}
.breeding-analysis-summary,
.breeding-analysis-actions { display: grid; align-content: start; min-width: 0; gap: 10px; }
.breeding-station .breeding-analysis-actions { border-left: 1px solid var(--breeding-case); padding-left: 12px; }
.breeding-station .breeding-child-title { color: var(--breeding-amber); }
.breeding-station .breeding-analysis > * + * { margin-top: 0; }
.breeding-station .breeding-analysis > .breeding-empty { grid-column: 1 / -1; padding: 16px 10px; }
.breeding-station .breeding-analysis .breeding-muted { font-size: 11px; line-height: 1.35; }
.breeding-station .breeding-empty { justify-items: start; gap: 5px; text-align: left; }
.breeding-station .breeding-empty > strong { color: var(--ui-color-text); font-size: 13px; }
.breeding-station .breeding-empty p { margin: 0; font-size: 11px; line-height: 1.3; }
.breeding-station .breeding-empty small { color: var(--breeding-amber); font-size: 10px; line-height: 1.3; }
.breeding-station .breeding-child { gap: 6px; }
.breeding-station .breeding-child .breeding-sprite { width: 42px; height: 42px; }
.breeding-station :is(.breeding-meter, .breeding-projection, .breeding-mode) { padding: 7px; border-radius: 0; }
.breeding-station .breeding-create { position: static; min-height: 36px; margin-top: 0; box-shadow: none; }
.breeding-station .breeding-incubator { max-height: none; overflow: visible; }
.breeding-station .breeding-incubator-head { gap: 4px; }
.breeding-station .breeding-incubator-head .ui-section__title { color: var(--breeding-amber); }
.breeding-station .breeding-incubator-head .ui-button { min-height: 22px; padding: 2px 5px; font-size: 10px; }
.breeding-station .breeding-eggs { gap: 4px; margin-top: 4px; }
.breeding-station .breeding-egg { min-height: 29px; gap: 4px; padding: 3px 4px; grid-template-columns: 18px minmax(0, 1fr) auto; border-radius: 0; }
.breeding-station .breeding-egg[data-empty="true"] { grid-template-columns: 18px minmax(0, 1fr); }
.breeding-station .breeding-egg-art { width: 16px; height: 16px; }
.breeding-station .breeding-egg strong { display: flex; align-items: center; gap: 3px; overflow: hidden; font-size: 11px; line-height: 16px; white-space: nowrap; }
.breeding-station .breeding-egg strong > .pokemon-variant-name { flex: 0 1 auto; max-width: none; }
.breeding-station .breeding-egg small { font-size: 10px; }
.breeding-station .breeding-egg .ui-progress { height: 4px; margin: 2px 0 1px; }
.breeding-station .breeding-egg .ui-button { min-height: 28px; padding: 2px 6px; font-size: 10px; }
.breeding-station .breeding-hatch-price { font-size: 9px; }
.breeding-station .breeding-box {
  display: grid;
  grid-template-rows: auto auto auto;
  overflow: visible;
  padding: 6px;
}
.breeding-station .breeding-box-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.breeding-station .breeding-box-head .ui-section__title { color: var(--breeding-eggshell); }
.breeding-station .breeding-box-head .breeding-muted { margin: 0; font-size: 10px; }
.breeding-station .breeding-filters { grid-template-columns: minmax(150px, 1.2fr) minmax(105px, .85fr) 92px 92px minmax(110px, .9fr); gap: 6px; padding-bottom: 6px; }
.breeding-station .breeding-filter { gap: 2px; font-size: 9px; }
.breeding-station .breeding-collections {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.breeding-station .breeding-collection {
  display: grid;
  grid-template-rows: 36px 20px minmax(0, 1fr);
  min-height: 0;
  height: 454px;
  padding: 0 6px 6px;
  border: 2px solid var(--breeding-edge);
  border-top-color: var(--breeding-case-light);
  border-radius: 0;
  background: var(--breeding-lcd);
  box-shadow: inset 1px 1px #30404c;
}
.breeding-collection-head { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 6px; }
.breeding-station .breeding-collection-head h4 { display: flex; align-items: center; flex-wrap: nowrap; gap: 5px; margin: 0; color: var(--breeding-eggshell); font: 21px/1 var(--ui-font-display); white-space: nowrap; }
.breeding-station .breeding-collection-head .ui-chip { padding: 1px 4px; font: 700 8px/1.1 var(--ui-font-body); color: var(--breeding-amber); }
.breeding-station .breeding-pane-note { overflow: hidden; margin: 0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.breeding-station .breeding-box-actions { flex: none; margin: 0; }
.breeding-station .breeding-collection-results { min-height: 0; max-height: none; margin: 0; overflow: auto; scrollbar-gutter: stable; scrollbar-width: thin; }
.breeding-station .breeding-filter-summary { height: 16px; margin: 0; font-size: 9px; line-height: 16px; white-space: nowrap; }
.breeding-station .breeding-grid { gap: 3px; margin: 0; }
.breeding-station .breeding-card-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  min-width: 0;
  height: 56px;
  padding: 0 4px 0 0;
  gap: 4px;
  border: 1px solid var(--ui-color-border);
  border-left: 2px solid var(--quality-color, var(--ui-color-border));
  background: var(--ui-color-surface-raised);
}
.breeding-station .breeding-card-entry:hover { background: var(--ui-color-surface-control); }
.breeding-station .breeding-card-entry.selected { border-color: var(--ui-color-primary); border-left-color: var(--quality-color, var(--ui-color-primary)); background: color-mix(in srgb, var(--ui-color-action) 13%, var(--breeding-lcd)); }
.breeding-station .breeding-card-entry[data-newborn="true"] { position: relative; }
.breeding-station .breeding-newborn-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 82px;
  color: var(--ui-color-success);
  font: 700 8px/12px var(--ui-font-body);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.breeding-station .breeding-card-entry[data-newborn="true"] > .breeding-move { align-self: end; margin-bottom: 3px; }
.breeding-station .breeding-card.depot-row {
  grid-template-columns: 36px minmax(0, 1fr) 47px;
  min-height: 0;
  height: 54px;
  padding: 2px 4px;
  gap: 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.breeding-station .breeding-card-entry .depot-identity { min-width: 0; gap: 0; }
.breeding-station .pokemon-entry-compact > strong { display: flex; align-items: center; gap: 4px; min-width: 0; height: 16px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.breeding-station .pokemon-entry-compact > strong > .pokemon-variant-name { display: inline-flex; flex: 0 1 auto; min-width: 0; }
.breeding-station .pokemon-entry-compact .pokemon-variant-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breeding-station .pokemon-entry-compact > strong > small { flex: none; font-size: 9px; line-height: 12px; }
.breeding-station .pokemon-entry-compact > strong > .pokemon-variant-badges { display: inline-flex; flex: none; gap: 2px; }
.breeding-station .pokemon-entry-compact .pokemon-variant-badge { min-height: 0; padding: 0 2px; font: 700 8px/12px var(--ui-font-body); }
.breeding-station .pokemon-entry-compact > span:not(.team-quality-line) { height: 14px; line-height: 14px; }
.breeding-station .pokemon-entry-compact .type-badges { gap: 2px; }
.breeding-station .pokemon-entry-compact .type-badge { min-height: 0; padding: 0 3px; font-size: 8px; line-height: 12px; }
.breeding-station .pokemon-entry-compact .team-quality-line { min-width: 0; flex-wrap: nowrap; height: 18px; gap: 4px; }
.breeding-station .pokemon-entry-compact .quality-badge { padding: 0 3px; font-size: 9px; line-height: 13px; }
.breeding-station .pokemon-entry-compact .team-iv-metric { min-height: 0; gap: 2px; font-size: 9px; line-height: 14px; }
.breeding-station .pokemon-entry-compact .pokemon-iv-total { font-size: 10px; line-height: 14px; }
.breeding-station .pokemon-entry-compact .pokemon-iv-max { font-size: 9px; }
.breeding-station .breeding-card .depot-metrics { grid-column: auto; }
.breeding-station .breeding-card:disabled,
.breeding-station .breeding-card[data-dim="true"] { opacity: .45; }
.breeding-station .breeding-card-entry:has(.breeding-card:disabled) { background: #0b1420; border-left-color: var(--ui-color-border); }
.breeding-station .breeding-card .team-power-metric strong { font-size: 13px; }
.breeding-station .breeding-card .team-power-metric small { font-size: 8px; }
.breeding-station .breeding-card-slot { top: 2px; left: 2px; width: 15px; height: 15px; font-size: 10px; }
.breeding-station .breeding-card-lock { bottom: 3px; left: 28px; width: 10px; height: 10px; }
.breeding-station :is(.breeding-move, [data-breeding-return-all]) {
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid var(--ui-color-primary-hover);
  border-bottom: 3px solid #6e1e2a;
  border-radius: 0;
  background: var(--ui-color-action);
  color: var(--ui-color-on-primary);
  box-shadow: inset 1px 1px #e36a72, 1px 1px var(--breeding-edge);
  font: 700 10px/1.1 var(--ui-font-body);
  white-space: nowrap;
}
.breeding-station .breeding-move { width: 82px; }
.breeding-station :is(.breeding-move, [data-breeding-return-all]):hover:not(:disabled) { background: var(--ui-color-action-hover); }
.breeding-station .breeding-move:disabled { opacity: .65; border-bottom-color: var(--breeding-edge); }
.breeding-station :is(button, input):focus-visible { outline: 2px solid var(--breeding-amber); outline-offset: -2px; }
@media (max-width: 1100px) {
  .breeding-station .breeding-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .breeding-station .breeding-pair { grid-column: 1; grid-row: 1; }
  .breeding-station .breeding-incubator { grid-column: 2; grid-row: 1; }
  .breeding-station .breeding-analysis { grid-column: 1 / -1; grid-row: 2; }
  .breeding-station .breeding-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; }
  .breeding-station .breeding-filter--search { grid-column: 1 / -1; }
  .breeding-slot-content { display: flex; flex-wrap: wrap; }
  .breeding-slot-identity { flex: 1 0 110px; max-width: 100%; }
  .breeding-station .breeding-card.depot-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: 18px 16px 16px;
    column-gap: 5px;
    row-gap: 0;
  }
  .breeding-station .breeding-card .depot-sprite { grid-column: 1; grid-row: 1 / span 2; }
  .breeding-station .breeding-card .depot-identity { display: contents; }
  .breeding-station .pokemon-entry-compact > strong { grid-column: 2; grid-row: 1; height: 18px; }
  .breeding-station .pokemon-entry-compact > span:not(.team-quality-line) { grid-column: 2; grid-row: 2; justify-self: start; }
  .breeding-station .pokemon-entry-compact > strong > .pokemon-variant-badges { display: none; }
  .breeding-station .pokemon-entry-compact .team-quality-line { grid-column: 1 / -1; grid-row: 3; height: 16px; }
  .breeding-station .breeding-card .depot-metrics { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; }
  .breeding-station .breeding-card .team-power-metric small { display: none; }
  .breeding-station .breeding-card .team-power-metric strong { font-size: 11px; line-height: 14px; }
  .breeding-station .breeding-card-lock { top: 24px; bottom: auto; }
}
@media (max-width: 640px) {
  .breeding-drawer .drawer-panel { padding: 6px; overflow-y: auto; }
  .breeding-drawer .drawer-head { position: sticky; top: 0; background: var(--breeding-case); box-shadow: 0 -6px var(--breeding-case); }
  .breeding-drawer .drawer-head button { width: 44px; height: 44px; }
  .breeding-drawer #drawer-content { flex: none; }
  .breeding-station { display: flex; flex-direction: column; flex: none; width: 100%; }
  .breeding-station .breeding-columns { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .breeding-station .breeding-pair { grid-column: 1; grid-row: 1; }
  .breeding-station .breeding-analysis { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); max-height: none; }
  .breeding-station .breeding-analysis-actions { border-left: 0; padding-left: 0; border-top: 1px solid var(--breeding-case); padding-top: 12px; }
  .breeding-station .breeding-incubator { grid-column: 1; grid-row: 3; max-height: none; }
  .breeding-station :is(.breeding-slot-clear, .breeding-incubator-head .ui-button, .breeding-egg .ui-button, .breeding-create) { min-width: 44px; min-height: 44px; }
  .breeding-slot-header { min-height: 44px; }
  .breeding-station .breeding-box { display: block; }
  .breeding-station .breeding-box-head { align-items: start; }
  .breeding-station .breeding-box-head .breeding-muted { max-width: 150px; text-align: right; }
  .breeding-station .breeding-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; }
  .breeding-station .breeding-filter--search { grid-column: 1 / -1; }
  .breeding-station .breeding-filter :is(input, .custom-select-trigger) { min-height: 44px; }
  .breeding-station .breeding-collections { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .breeding-station .breeding-collection { height: 430px; grid-template-rows: 46px 20px minmax(0, 1fr); }
  .breeding-station .breeding-collection-head h4 { font-size: 19px; }
  .breeding-station .breeding-card-entry { grid-template-columns: minmax(0, 1fr) 76px; }
  .breeding-station .breeding-card.depot-row { column-gap: 3px; padding: 2px; }
  .breeding-station .breeding-move { width: 76px; min-height: 44px; padding: 3px; font-size: 9px; }
  .breeding-station .breeding-newborn-badge { width: 76px; top: 0; line-height: 10px; }
  .breeding-station .breeding-card-entry[data-newborn="true"] > .breeding-move { margin-bottom: 0; }
  .breeding-station [data-breeding-return-all] { min-height: 44px; padding: 4px 6px; font-size: 9px; }
  .breeding-station .pokemon-entry-compact > strong { font-size: 11px; gap: 3px; }
  .breeding-station .pokemon-entry-compact .quality-badge { font-size: 8px; }
}
@media (max-width: 640px), (pointer: coarse) {
  .breeding-drawer .drawer-head button,
  .breeding-station :is(.breeding-slot-clear, .breeding-incubator-head .ui-button, .breeding-egg .ui-button, .breeding-create, .breeding-move, [data-breeding-return-all], .custom-select-trigger) {
    min-width: 44px;
    min-height: 44px;
  }
  .breeding-station :is(.breeding-slot-header, .custom-select-row, .breeding-double) { min-height: 44px; }
  .breeding-station .custom-select-option { min-height: 44px; }
  .breeding-station .breeding-newborn-badge { top: 0; line-height: 10px; }
  .breeding-station .breeding-card-entry[data-newborn="true"] > .breeding-move { margin-bottom: 0; }
}
