/* The laboratory is a small, deliberate workflow: record a tested pair,
   then its observed outcome. It never suggests a combination. */
#lab .section-heading { margin-bottom: 18px; }
#lab .experiment-sheet { max-width: none; margin-top: 0; padding: 0; overflow: hidden; border-top-width: 3px; }
.lab-workflow { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(310px, .75fr); gap: 0; }
.lab-step { padding: 25px; min-width: 0; }
.lab-parents-step { border-right: 1px solid rgba(95, 215, 221, .2); }
.lab-result-step { background: linear-gradient(145deg, rgba(16, 83, 96, .5), rgba(7, 35, 49, .1)); }
.lab-step-head { display: flex; align-items: flex-start; gap: 11px; }
.lab-step-head { margin-bottom: 19px; }
.lab-step-number { flex: 0 0 23px; display: grid; place-items: center; width: 23px; height: 23px; color: #052431; background: var(--fern); font: 900 13px/1 Impact, "Arial Narrow", sans-serif; box-shadow: 2px 2px 0 #197b8a; }
.lab-step h3, .lab-details-head h3 { margin: 0; color: #e9fdff; font: 800 15px/1.1 "Arial Narrow", Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.lab-step-head p, .lab-details-head p { margin: 5px 0 0; color: #83b4be; font-size: 12px; line-height: 1.35; }
.lab-workflow .pairing { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; gap: 10px; }
.lab-workflow .plus { display: grid; place-items: center; height: 44px; align-self: center; padding: 0; font: 30px/1 Arial, sans-serif; color: #6de9ea; }
.lab-step .pal-picker > span { margin-bottom: 8px; }
.lab-step select { height: 44px; }
.lab-step .picker-preview { min-height: 66px; height: auto; margin-top: 5px; padding: 9px 10px; border: 1px solid transparent; border-left: 2px solid rgba(103, 228, 229, .25); background: rgba(4, 27, 40, .26); }
.lab-step .picker-preview:not(.empty) { border-color: rgba(102, 228, 229, .3); border-left-color: var(--fern); background: rgba(12, 66, 80, .52); }
.lab-step .picker-preview img { width: 46px; height: 46px; }
.lab-notes { display: block; margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(95, 215, 221, .18); }
.lab-notes > span { display: block; margin-bottom: 8px; color: #a0ced6; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lab-notes em { margin-left: 5px; color: #6f9faa; font-style: normal; font-weight: 500; }
.lab-notes input { height: 43px; }
.lab-result-step .pal-picker { display: block; }
.lab-result-step .picker-preview { min-height: 123px; margin-top: 8px; padding: 14px; align-items: center; border: 1px dashed rgba(110, 228, 229, .38); border-left: 3px solid #ffc35b; background: rgba(5, 33, 47, .56); }
.lab-result-step .picker-preview:not(.empty) { border-style: solid; border-color: #65e5e5; border-left-color: #ffc35b; background: linear-gradient(105deg, rgba(17, 93, 102, .72), rgba(6, 35, 49, .85)); box-shadow: inset 0 0 22px rgba(103, 228, 229, .1); }
.lab-result-step .picker-preview img { width: 78px; height: 78px; filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .32)); }
.lab-result-step .picker-preview b { display: block; color: #edffff; font-size: 15px; }
.lab-result-step .picker-preview .element-badges { margin-top: 6px; color: #8fdde1; font-size: 11px; }
.lab-save-area { display: grid; gap: 11px; margin-top: 14px; }
.lab-save-area p { margin: 0; color: #83b4be; font-size: 11px; line-height: 1.35; }
.lab-save-area .button { width: 100%; min-height: 44px; }
.form-note { position: relative; margin: 0 25px 22px; padding: 13px 0 0 15px; border-top: 1px solid rgba(95, 215, 221, .18); }
.form-note::before { content: "i"; position: absolute; left: 0; top: 0; color: #7ae5e5; font-weight: 800; }
@media (max-width: 880px) { .lab-workflow { grid-template-columns: 1fr; }.lab-parents-step { border-right: 0; border-bottom: 1px solid rgba(95, 215, 221, .2); }.lab-result-step { min-height: 0; }.lab-result-step .picker-preview { min-height: 94px; } }
@media (max-width: 600px) { #lab .section-heading.wide { display: block; padding-right: 0; } #lab .privacy-chip { display: inline-flex; margin-top: 13px; } .lab-step { padding: 20px 17px; }.lab-workflow .pairing { grid-template-columns: 1fr; gap: 7px; }.lab-workflow .plus { height: 20px; }.lab-result-step .picker-preview { min-height: 90px; }.form-note { margin: 0 17px 19px; }.lab-step h3 { font-size: 14px; } }

/* Card palette: choosing a Pal is a direct, visual action, while the result
   remains unknown until the player explicitly records it. */
.lab-hidden-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#lab .experiment-sheet { padding: 0; }
.lab-board { padding: 28px; }
.lab-slots { display: grid; grid-template-columns: minmax(180px, 1fr) 42px minmax(180px, 1fr) 42px minmax(190px, 1fr); gap: 9px; align-items: center; max-width: 900px; margin: 0 auto 28px; }
.lab-slot { position: relative; min-height: 184px; display: grid; place-items: center; gap: 9px; padding: 19px 12px; color: #d7f8fb; border: 2px solid #347f91; background: linear-gradient(145deg, rgba(9, 49, 66, .9), rgba(5, 28, 41, .9)); cursor: pointer; transition: .2s border-color, .2s background, .2s transform; }
.lab-slot:hover, .lab-slot:focus-visible { outline: 0; border-color: #70e8e6; transform: translateY(-3px); }
.lab-slot.active { border-color: #6ee7e5; box-shadow: 0 0 0 2px rgba(103, 228, 229, .16), inset 0 0 24px rgba(103, 228, 229, .08); }
.lab-slot.result { border-color: #cba545; background: linear-gradient(145deg, rgba(43, 52, 33, .45), rgba(6, 29, 42, .92)); }
.lab-slot.result.active { border-color: #ffdc65; box-shadow: 0 0 0 2px rgba(255, 211, 101, .13), inset 0 0 24px rgba(255, 202, 84, .06); }
.slot-marker { position: absolute; top: -17px; right: -11px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font: 800 23px/1 Arial, sans-serif; box-shadow: 0 3px 0 rgba(3, 26, 38, .65); }
.slot-marker.male { background: #3f9de7; }.slot-marker.female { background: #eb6da8; }
.lab-slot img { display: none; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.38)); }
.lab-slot.filled img { display: block; }.lab-slot.filled .slot-label { color: #eaffff; font-size: 15px; }.lab-slot.filled .slot-marker { display: none; }
.slot-label { max-width: 100%; color: #d7f8fb; font: 800 17px/1.15 "Arial Narrow", Arial, sans-serif; letter-spacing: .03em; text-align: center; }
.lab-operator { display: grid; place-items: center; color: #70e8e6; font: 400 48px/1 Arial, sans-serif; }.lab-operator.equal { color: #ffca65; }
.lab-palette-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid rgba(103, 228, 229, .2); }
.lab-palette-head .eyebrow { margin: 0 0 4px; }.lab-palette-head p:not(.eyebrow) { margin: 0; color: #86b6c1; font-size: 12px; }
#lab-active-slot { padding: 7px 10px; color: #8df1ed; border: 1px solid rgba(103, 228, 229, .4); background: rgba(15, 95, 107, .28); font: 800 10px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lab-palette-tools { display: flex; align-items: center; gap: 13px; margin: 0 0 12px; }.lab-palette-tools .search { width: min(560px, 100%); }.lab-palette-tools .count-label { margin-left: auto; }
.lab-pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 350px; padding-right: 8px; overflow-y: auto; scrollbar-color: #4fa2b2 #082738; }
.lab-pal-choice { min-height: 142px; display: grid; grid-template-rows: 88px auto; align-items: center; padding: 8px; color: #e6ffff; border: 1px solid #2d7187; background: linear-gradient(145deg, rgba(16, 63, 83, .96), rgba(8, 36, 52, .98)); cursor: pointer; transition: .18s border-color, .18s transform, .18s background; }
.lab-pal-choice:hover, .lab-pal-choice:focus-visible { outline: 0; border-color: #72e9e6; background: linear-gradient(145deg, #17647a, #0b4056); transform: translateY(-3px); }.lab-pal-choice.selected { border-color: #ffcf62; box-shadow: inset 0 0 0 1px #ffcf62; }
.lab-pal-choice img { width: 78px; height: 78px; margin: auto; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); }.lab-pal-choice span { overflow: hidden; font: 800 12px/1.15 "Arial Narrow", Arial, sans-serif; letter-spacing: .03em; text-align: center; text-overflow: ellipsis; text-transform: uppercase; }
.lab-board-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: end; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(103, 228, 229, .2); }.lab-board-bottom .lab-notes { margin: 0; padding: 0; border: 0; }.lab-board-bottom .lab-save-area { margin: 0; }
@media (max-width: 760px) { .lab-board { padding: 26px 18px; }.lab-slots { grid-template-columns: 1fr 26px 1fr; gap: 7px; }.lab-slots .lab-slot { min-height: 132px; }.lab-slots .lab-slot.result { grid-column: 1 / -1; min-height: 116px; }.lab-slots .lab-operator.equal { grid-column: 2; grid-row: 2; }.lab-slot img { width: 76px; height: 76px; }.slot-label { font-size: 14px; }.lab-palette-head { align-items: flex-start; flex-direction: column; }.lab-palette-tools .search { width: 100%; }.lab-palette-tools .count-label { margin-left: 0; }.lab-pal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 320px; }.lab-board-bottom { grid-template-columns: 1fr; }.lab-operator { font-size: 34px; } }
@media (max-width: 420px) { .lab-slots { grid-template-columns: 1fr; }.lab-slots .lab-slot, .lab-slots .lab-slot.result { grid-column: auto; min-height: 108px; }.lab-slots .lab-operator, .lab-slots .lab-operator.equal { grid-column: auto; grid-row: auto; height: 20px; transform: rotate(90deg); }.lab-pal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Laboratory queue: an experiment travels from a planned pair, through
   incubation, to a confirmed result. The egg is the visual waypoint. */
#lab .experiment-sheet { border-top-color: #6ce1df; }
#lab .lab-board { padding: 0 28px 28px; }
#lab .lab-composer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 0 20px; border-bottom: 1px solid rgba(103, 228, 229, .2); }
#lab .lab-composer-head .eyebrow { margin: 0 0 7px; }
#lab .lab-composer-head h3 { margin: 0; color: #edffff; font: 900 25px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
#lab .lab-composer-head p:not(.eyebrow) { max-width: 620px; margin: 8px 0 0; color: #99c5cc; font-size: 13px; line-height: 1.45; }
#lab .lab-composer-head .text-button { flex: 0 0 auto; padding: 9px 11px; border: 1px solid rgba(105, 224, 225, .42); background: rgba(11, 67, 81, .36); }
#lab .lab-slots { max-width: none; margin: 29px 0 24px; }
#lab .lab-slot { min-height: 174px; }
#lab .lab-slot.egg-preview { border-color: #d7b461; background: linear-gradient(150deg, rgba(76, 61, 31, .35), rgba(7, 31, 43, .95)); }
#lab .lab-slot.egg-preview img { filter: drop-shadow(0 10px 7px rgba(0, 0, 0, .42)); }
#lab .lab-slot:disabled { cursor: default; opacity: .94; }
#lab .lab-slot:disabled:hover { transform: none; border-color: #d7b461; }
#lab .lab-egg-and-timer { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 19px; border: 1px solid rgba(103, 228, 229, .22); background: rgba(5, 31, 44, .35); }
#lab .egg-picker-head { display: flex; justify-content: space-between; gap: 12px; }
#lab .egg-picker-head .eyebrow, #lab .timer-panel .eyebrow { margin: 0 0 6px; }
#lab .egg-picker-head p:not(.eyebrow), #lab .timer-panel > p:last-child { margin: 0; color: #89b5be; font-size: 11px; line-height: 1.4; }
#lab .egg-type-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
#lab .egg-type { display: grid; grid-template-rows: 48px auto; gap: 4px; min-width: 0; padding: 5px 3px; color: #b9dce1; border: 1px solid rgba(85, 165, 178, .45); background: rgba(8, 43, 58, .65); cursor: pointer; transition: .16s transform, .16s border-color, .16s background; }
#lab .egg-type:hover, #lab .egg-type:focus-visible { outline: 0; border-color: #83e7e4; background: rgba(17, 84, 96, .78); transform: translateY(-2px); }
#lab .egg-type.selected { color: #efffff; border-color: #f0cc73; box-shadow: inset 0 0 0 1px #f0cc73; }
#lab .egg-type img { width: 48px; height: 48px; margin: auto; object-fit: contain; }
#lab .egg-type span { overflow: hidden; font: 800 9px/1.1 "Arial Narrow", Arial, sans-serif; letter-spacing: .02em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
#lab .timer-panel { position: relative; padding-left: 18px; border-left: 1px solid rgba(103, 228, 229, .2); }
#lab .timer-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.timer-panel-head .eyebrow { margin-bottom: 0 !important; }
#lab .timer-status { padding: 5px 7px; color: #8fb7be; border: 1px solid rgba(94, 163, 175, .32); border-radius: 999px; background: rgba(5, 31, 44, .5); font: 800 9px/1 Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; transition: .24s color, .24s border-color, .24s background, .24s transform; }.timer-status.is-set { color: #073846; border-color: #74e3d9; background: #74e3d9; box-shadow: 0 0 16px rgba(111, 226, 218, .2); animation: timer-status-enter .32s ease-out; }
#lab .timer-control { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; align-items: stretch; margin-top: 13px; }.timer-step { display: grid; place-items: center; min-height: 42px; color: #99c9d1; border: 1px solid rgba(89, 177, 189, .43); border-radius: 11px; background: rgba(8, 48, 64, .78); font: 400 22px/1 Arial, sans-serif; cursor: pointer; transition: .18s transform, .18s color, .18s border-color, .18s background; }.timer-step:hover, .timer-step:focus-visible { outline: 0; color: #062f3d; border-color: #7ae5e3; background: #7ae5e3; transform: translateY(-1px); }
#lab .timer-input { display: flex; align-items: stretch; min-width: 0; margin: 0; }.timer-input input { min-width: 0; width: 100%; height: 42px; color: #efffff; border-color: #357c8d; border-radius: 11px 0 0 11px; background: rgba(5, 35, 49, .84); font: 800 18px/1 Arial, sans-serif; text-align: center; transition: .2s border-color, .2s box-shadow; }.timer-input input:focus { border-color: #7ae5e3; box-shadow: 0 0 0 3px rgba(110, 229, 224, .12); outline: 0; }.timer-input span { display: grid; place-items: center; padding: 0 9px; color: #b8d8dc; border: 1px solid #357c8d; border-left: 0; border-radius: 0 11px 11px 0; background: #0b2b3c; font-size: 10px; }
#lab .timer-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 11px 0 12px; }.timer-shortcuts button { min-height: 31px; color: #abd5dc; border: 1px solid rgba(89, 177, 189, .42); border-radius: 9px; background: rgba(10, 56, 71, .65); font: 800 10px/1 Arial, sans-serif; cursor: pointer; transition: .18s transform, .18s color, .18s border-color, .18s background, .18s box-shadow; }.timer-shortcuts button:hover, .timer-shortcuts button:focus-visible { outline: 0; color: #eaffff; border-color: #76dadd; background: rgba(35, 114, 127, .8); transform: translateY(-1px); }.timer-shortcuts button.active { color: #052c38; border-color: #7ae5e3; background: #7ae5e3; box-shadow: 0 5px 15px rgba(81, 221, 215, .18); }
#lab .timer-panel > p:last-child { max-width: 235px; }
@keyframes timer-status-enter { from { transform: translateY(-2px); opacity: .55; } to { transform: none; opacity: 1; } }
#lab .lab-board-bottom { grid-template-columns: minmax(0, 1fr) minmax(310px, .63fr); }
#lab .lab-actions { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 9px; }
#lab .lab-actions .button { min-width: 0; padding-inline: 12px; }
#lab .lab-queue { margin-top: 22px; padding: 25px 28px 28px; border: 1px solid rgba(80, 178, 193, .34); border-top: 3px solid #49b8c7; background: linear-gradient(115deg, rgba(6, 37, 52, .84), rgba(10, 58, 70, .46)); }
#lab .lab-queue-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
#lab .lab-queue-head .eyebrow { margin: 0 0 7px; }
#lab .lab-queue-head h3 { margin: 0; color: #efffff; font: 900 28px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
#lab .lab-queue-head p:not(.eyebrow) { margin: 7px 0 0; color: #91bcc5; font-size: 12px; }
#lab .lab-queue-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
#lab .lab-queue-filters button { min-height: 32px; padding: 0 9px; color: #9ccbd2; border: 1px solid rgba(92, 180, 191, .35); background: rgba(7, 42, 57, .65); font: 800 10px/1 Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
#lab .lab-queue-filters button span { margin-left: 5px; color: #75e5e1; }
#lab .lab-queue-filters button.active { color: #062d39; border-color: #7de7e4; background: #7de7e4; }
#lab .lab-queue-filters button.active span { color: #0a5968; }
#lab .lab-experiment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
#lab .lab-experiment-card { min-height: 224px; padding: 15px; border: 1px solid rgba(84, 172, 186, .46); background: rgba(6, 35, 50, .77); }
#lab .lab-experiment-card.planned { border-top: 3px solid #6caecd; }.lab-experiment-card.incubating { border-top: 3px solid #e1b665; }.lab-experiment-card.completed { border-top: 3px solid #6cd2ad; }
#lab .lab-experiment-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#lab .lab-status { padding: 5px 7px; font: 800 9px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }.lab-status.planned { color: #a6e3ff; background: rgba(80, 147, 193, .2); }.lab-status.incubating { color: #ffd68a; background: rgba(217, 164, 73, .16); }.lab-status.completed { color: #9bf1cb; background: rgba(88, 191, 145, .16); }
#lab .lab-experiment-card time { color: #83b4be; font-size: 10px; text-align: right; }
#lab .lab-experiment-line { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); gap: 4px; align-items: center; margin-top: 17px; }
#lab .lab-experiment-line > b { color: #76dcda; font: 26px/1 Arial, sans-serif; text-align: center; }.lab-experiment-line > b:nth-of-type(2) { color: #e8bd67; }
#lab .lab-queue-pal, #lab .lab-queue-egg { display: grid; justify-items: center; gap: 5px; min-width: 0; color: #d9f7f8; font: 800 10px/1.12 "Arial Narrow", Arial, sans-serif; text-align: center; }
#lab .lab-queue-pal img, #lab .lab-queue-egg img { width: 43px; height: 43px; object-fit: contain; }.lab-queue-egg img { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .4)); }.lab-queue-pal.result { color: #b7fbd6; }
#lab .lab-experiment-card > p { min-height: 35px; margin: 14px 0 0; color: #9ac2c9; font-size: 11px; line-height: 1.45; }
#lab .lab-experiment-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }.lab-experiment-actions .button { min-height: 36px; padding: 9px 11px; font-size: 10px; }.lab-experiment-actions .text-button { padding: 9px 0; }.lab-delete-experiment { width: 34px; height: 34px; margin-left: auto; color: #c9e4e7; border: 1px solid rgba(107, 181, 190, .33); background: transparent; font-size: 20px; cursor: pointer; }.lab-delete-experiment:hover { color: #ffc4af; border-color: #c9745b; }
.hatch-notification { position: fixed; z-index: 40; right: 22px; bottom: 22px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 26px; gap: 12px; align-items: start; width: min(360px, calc(100vw - 28px)); padding: 15px; color: #eaffff; border: 1px solid #73e5df; border-left: 4px solid #edc76e; background: #092d3d; box-shadow: 0 14px 34px rgba(0, 0, 0, .38); transform: translateY(13px); opacity: 0; transition: .25s opacity, .25s transform; }.hatch-notification.visible { transform: none; opacity: 1; }.hatch-notification[hidden] { display: none; }.hatch-bell { display: grid; place-items: center; width: 34px; height: 34px; color: #0b3c4a; background: #edc76e; font-size: 22px; }.hatch-notification strong { color: #efffff; font: 800 13px/1.2 "Arial Narrow", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }.hatch-notification p { margin: 5px 0 0; color: #a7cbd0; font-size: 12px; line-height: 1.38; }.hatch-notification button { width: 26px; height: 26px; color: #9edce0; border: 1px solid rgba(114, 222, 222, .32); background: transparent; font-size: 18px; cursor: pointer; }
@media (max-width: 950px) { #lab .lab-egg-and-timer { grid-template-columns: 1fr; } #lab .timer-panel { padding: 16px 0 0; border-top: 1px solid rgba(103, 228, 229, .2); border-left: 0; } #lab .timer-input { max-width: 210px; } #lab .timer-shortcuts { max-width: 250px; } #lab .lab-experiment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { #lab .lab-board { padding: 0 17px 20px; } #lab .lab-composer-head, #lab .lab-queue-head { display: block; } #lab .lab-composer-head .text-button { margin-top: 14px; } #lab .egg-type-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } #lab .lab-board-bottom { grid-template-columns: 1fr; } #lab .lab-queue { padding: 21px 16px; } #lab .lab-queue-filters { justify-content: flex-start; margin-top: 16px; } #lab .lab-experiment-list { grid-template-columns: 1fr; } }

/* Softer laboratory surface: warm, compact and easier to scan at a glance. */
#lab .experiment-sheet { overflow: visible; border: 1px solid rgba(112, 219, 220, .4); border-top: 3px solid #73ddda; border-radius: 18px; background: linear-gradient(145deg, rgba(9, 47, 61, .94), rgba(5, 34, 48, .9)); clip-path: none; box-shadow: 0 16px 38px rgba(0, 0, 0, .18); }
#lab .lab-board { padding: 0 24px 23px; }
#lab .lab-composer-head { padding: 21px 2px 17px; border-bottom-color: rgba(118, 217, 218, .16); }
#lab .lab-composer-head h3 { font-size: 23px; letter-spacing: .025em; }
#lab .lab-composer-head p:not(.eyebrow) { margin-top: 6px; line-height: 1.5; }
#lab .lab-slots { grid-template-columns: minmax(155px, 1fr) 34px minmax(155px, 1fr) 34px minmax(170px, 1fr); gap: 12px; margin: 25px 0 19px; }
#lab .lab-slot { min-height: 150px; padding: 17px 11px; border: 1px solid rgba(114, 212, 216, .54); border-radius: 16px; background: linear-gradient(145deg, rgba(18, 82, 96, .76), rgba(7, 39, 53, .9)); box-shadow: inset 0 1px rgba(232, 255, 255, .07), 0 7px 16px rgba(0, 0, 0, .11); }
#lab .lab-slot:hover, #lab .lab-slot:focus-visible { border-color: #8cedea; background: linear-gradient(145deg, rgba(22, 100, 112, .86), rgba(8, 49, 63, .96)); box-shadow: 0 8px 20px rgba(0, 0, 0, .16); transform: translateY(-2px); }
#lab .lab-slot.active { border-color: #83e4e1; box-shadow: 0 0 0 3px rgba(126, 225, 223, .11), inset 0 1px rgba(235, 255, 255, .11); }
#lab .lab-slot.result, #lab .lab-slot.egg-preview { border-color: rgba(229, 194, 108, .78); border-radius: 18px; background: radial-gradient(circle at 50% 25%, rgba(235, 204, 124, .11), transparent 48%), linear-gradient(145deg, rgba(59, 66, 42, .55), rgba(7, 36, 49, .94)); }
#lab .lab-slot:disabled:hover { box-shadow: inset 0 1px rgba(232, 255, 255, .07), 0 7px 16px rgba(0, 0, 0, .11); }
#lab .lab-slot img { width: 93px; height: 93px; }
#lab .slot-label { font-size: 15px; letter-spacing: .015em; }
#lab .lab-operator { width: 32px; height: 32px; margin: auto; border-radius: 50%; color: #83e7e5; background: rgba(94, 203, 206, .08); font-size: 31px; }
#lab .lab-operator.equal { color: #f0c96f; background: rgba(232, 190, 98, .09); }
#lab .lab-egg-and-timer { gap: 20px; padding: 17px 18px; border-color: rgba(121, 209, 212, .23); border-radius: 14px; background: rgba(3, 27, 39, .28); }
#lab .egg-type-grid { gap: 8px; margin-top: 12px; }
#lab .egg-type { grid-template-rows: 44px auto; padding: 6px 4px; border-radius: 11px; border-color: rgba(103, 190, 197, .35); background: rgba(12, 59, 73, .54); }
#lab .egg-type.selected { border-color: #efd17b; border-radius: 12px; box-shadow: 0 0 0 2px rgba(239, 209, 123, .2), inset 0 1px rgba(255, 255, 255, .15); }
#lab .egg-type img { width: 44px; height: 44px; }
#lab .egg-type span { min-height: 20px; overflow: visible; line-height: 1.08; white-space: normal; }
#lab .timer-panel { padding-left: 20px; }
#lab .timer-input input { border-radius: 9px 0 0 9px; }
#lab .timer-input span { border-radius: 0 9px 9px 0; }
#lab .timer-shortcuts button { border-radius: 8px; }
#lab .lab-palette-head { padding: 17px 2px 10px; border-top: 0; }
#lab-active-slot { border-radius: 999px; }
#lab .timer-input { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#lab .timer-input label { display: flex; min-width: 0; }
#lab .timer-input .timer-number { min-width: 0; width: 100%; height: 42px; color: #efffff; border-color: #357c8d; border-radius: 10px 0 0 10px; background: rgba(5, 35, 49, .84); font: 800 18px/1 Arial, sans-serif; text-align: center; transition: .2s border-color, .2s box-shadow; }
#lab .timer-input .timer-number:focus { border-color: #7ae5e3; box-shadow: 0 0 0 3px rgba(110, 229, 224, .12); outline: 0; }
#lab .timer-input label span { min-width: 27px; padding: 0 6px; border-radius: 0 10px 10px 0; }
#lab .timer-panel { padding-left: 18px; }
#lab .timer-input { gap: 0; margin-top: 13px; padding: 4px; border: 1px solid rgba(83, 168, 180, .48); border-radius: 14px; background: rgba(6, 37, 51, .62); }
#lab .timer-input label { align-items: center; padding: 0 5px; }.timer-input label + label { border-left: 1px solid rgba(89, 177, 189, .26); }
#lab .timer-input .timer-number { height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; font-size: 20px; }.timer-input .timer-number:focus { background: rgba(42, 110, 124, .26); box-shadow: none; }
#lab .timer-input label span { min-width: auto; padding: 0 4px; color: #86b7c0; border: 0; border-radius: 0; background: transparent; font: 800 10px/1 Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
#lab .lab-pal-grid { gap: 9px; max-height: min(34vh, 290px); padding: 3px 7px 3px 1px; }
#lab .lab-pal-choice { min-height: 125px; grid-template-rows: 75px auto; border-radius: 13px; border-color: rgba(83, 172, 187, .48); background: linear-gradient(150deg, rgba(18, 76, 95, .82), rgba(8, 42, 57, .94)); }
#lab .lab-pal-choice img { width: 68px; height: 68px; }
#lab .lab-board-bottom { gap: 15px; margin-top: 14px; padding-top: 15px; }
#lab .lab-notes input { border-radius: 9px; }
#lab .lab-actions .button { border-radius: 9px; }
#lab .lab-queue { margin-top: 18px; padding: 23px 24px 24px; border: 1px solid rgba(91, 184, 195, .32); border-top: 0; border-radius: 18px; background: linear-gradient(145deg, rgba(8, 44, 59, .77), rgba(7, 37, 51, .55)); box-shadow: 0 13px 28px rgba(0, 0, 0, .1); }
#lab .lab-queue-head { margin-bottom: 17px; }
#lab .lab-queue-head h3 { font-size: 25px; letter-spacing: .02em; }
#lab .lab-queue-filters { gap: 7px; }
#lab .lab-queue-filters button { border-radius: 999px; padding: 0 11px; }
#lab .lab-experiment-list { gap: 13px; }
#lab .lab-experiment-card { min-height: 0; padding: 16px; border: 1px solid rgba(92, 180, 193, .37); border-radius: 15px; background: linear-gradient(150deg, rgba(13, 63, 78, .62), rgba(5, 34, 49, .82)); box-shadow: 0 7px 16px rgba(0, 0, 0, .09); }
#lab .lab-experiment-card.planned, #lab .lab-experiment-card.incubating, #lab .lab-experiment-card.completed { border-top-width: 1px; }
#lab .lab-status { border-radius: 999px; }
#lab .lab-experiment-actions .button, #lab .lab-delete-experiment { border-radius: 9px; }
@media (max-width: 980px) { #lab .lab-slots { grid-template-columns: minmax(130px, 1fr) 30px minmax(130px, 1fr) 30px minmax(145px, 1fr); gap: 8px; } #lab .lab-slot { min-height: 140px; } #lab .egg-type-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) { #lab .experiment-sheet, #lab .lab-queue { border-radius: 14px; } #lab .lab-board { padding: 0 15px 18px; } #lab .lab-composer-head { padding-top: 19px; } #lab .lab-slots { grid-template-columns: 1fr 28px 1fr; gap: 7px; margin-top: 23px; } #lab .lab-slots .lab-slot { min-height: 123px; border-radius: 13px; } #lab .lab-slots .lab-slot.result { min-height: 112px; } #lab .lab-operator { width: 27px; height: 27px; font-size: 27px; } #lab .lab-egg-and-timer { padding: 14px; border-radius: 12px; } #lab .timer-panel { padding-left: 0; } #lab .lab-palette-head { padding-top: 15px; } #lab .lab-pal-grid { max-height: 285px; } #lab .lab-queue { margin-top: 15px; padding: 19px 15px; } }
@media (max-width: 420px) { #lab .lab-slots { grid-template-columns: 1fr; } #lab .lab-slots .lab-operator, #lab .lab-slots .lab-operator.equal { width: 25px; height: 25px; transform: rotate(90deg); } #lab .egg-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } #lab .lab-pal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pal palette cards: compact character portraits, with a calm collection feel. */
#lab .lab-pal-choice { position: relative; min-height: 136px; grid-template-rows: 86px minmax(28px, auto); gap: 5px; overflow: hidden; padding: 8px 7px 7px; border-color: rgba(91, 191, 204, .48); border-radius: 15px; background: linear-gradient(155deg, rgba(24, 94, 111, .92), rgba(7, 43, 58, .98)); box-shadow: inset 0 1px rgba(232, 255, 255, .1), 0 5px 12px rgba(0, 0, 0, .13); }
#lab .lab-pal-choice::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 28%, rgba(131, 235, 233, .18), transparent 35%), linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 23% 66%, rgba(80, 220, 221, .08)); }
#lab .lab-pal-choice::after { content: ""; position: absolute; z-index: 0; inset: 6px; border: 1px solid rgba(167, 245, 243, .17); border-radius: 10px; pointer-events: none; }
#lab .lab-pal-choice img { position: relative; z-index: 1; width: 80px; height: 80px; filter: drop-shadow(0 10px 7px rgba(0, 0, 0, .38)); transition: .2s transform, .2s filter; }
#lab .lab-pal-choice span { position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; min-height: 28px; padding: 4px 5px; overflow: hidden; color: #edffff; border: 1px solid rgba(135, 224, 228, .18); border-radius: 8px; background: rgba(3, 26, 39, .64); font-size: 11px; line-height: 1.1; text-overflow: ellipsis; text-shadow: 0 1px rgba(0, 0, 0, .45); }
#lab .lab-pal-choice:hover, #lab .lab-pal-choice:focus-visible { border-color: #8ae9e6; background: linear-gradient(155deg, rgba(32, 116, 130, .98), rgba(8, 54, 69, 1)); box-shadow: 0 0 0 2px rgba(121, 229, 227, .13), 0 11px 20px rgba(0, 0, 0, .18); transform: translateY(-3px); }
#lab .lab-pal-choice:hover img, #lab .lab-pal-choice:focus-visible img { filter: drop-shadow(0 13px 8px rgba(0, 0, 0, .42)); transform: translateY(-3px) scale(1.06); }
#lab .lab-pal-choice.selected { border-color: #f2ce73; background: linear-gradient(155deg, rgba(83, 90, 55, .88), rgba(20, 57, 61, .98)); box-shadow: 0 0 0 2px rgba(242, 206, 115, .23), inset 0 0 22px rgba(242, 206, 115, .1), 0 9px 18px rgba(0, 0, 0, .18); }
#lab .lab-pal-choice.selected::after { border-color: rgba(255, 228, 149, .45); }
@media (max-width: 700px) { #lab .lab-pal-choice { min-height: 124px; grid-template-rows: 76px minmax(26px, auto); border-radius: 13px; } #lab .lab-pal-choice img { width: 70px; height: 70px; } #lab .lab-pal-choice span { font-size: 10px; } }

/* The egg is a small checkpoint directly beneath the equals sign: it belongs
   to the pair, while the three larger cards remain the primary action. */
#lab .lab-slots { grid-template-columns: minmax(185px, 270px) 36px minmax(185px, 270px) 36px 94px minmax(190px, 270px); grid-template-rows: minmax(160px, auto); justify-content: center; gap: 12px; max-width: 1042px; margin-inline: auto; }
#lab .lab-slot { min-height: 160px; }
#lab .lab-slot[data-lab-slot="a"] { grid-column: 1; grid-row: 1; }
#lab .lab-operator:not(.equal) { grid-column: 2; grid-row: 1; }
#lab .lab-slot[data-lab-slot="b"] { grid-column: 3; grid-row: 1; }
#lab .lab-operator.equal { grid-column: 4; grid-row: 1; }
#lab .lab-egg-shortcut { z-index: 1; grid-column: 5; grid-row: 1; align-self: center; justify-self: center; display: grid; place-items: center; width: 94px; height: 86px; padding: 8px; color: #d8f8f8; border: 1px solid rgba(226, 190, 104, .62); border-radius: 15px; background: linear-gradient(155deg, rgba(75, 67, 39, .62), rgba(10, 45, 57, .9)); box-shadow: inset 0 1px rgba(255, 246, 212, .14), 0 5px 11px rgba(0, 0, 0, .14); cursor: pointer; transition: .18s transform, .18s border-color, .18s background; }
#lab .lab-slot.result { grid-column: 6; grid-row: 1; }
#lab .lab-egg-shortcut:hover, #lab .lab-egg-shortcut:focus-visible { outline: 0; border-color: #f1d37a; background: linear-gradient(155deg, rgba(101, 87, 43, .7), rgba(12, 55, 67, .96)); transform: translateY(-2px); }
#lab .lab-egg-shortcut img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .38)); }
@media (max-width: 980px) { #lab .lab-slots { grid-template-columns: minmax(140px, 225px) 30px minmax(140px, 225px) 30px 84px minmax(145px, 225px); gap: 8px; } #lab .lab-slot { min-height: 148px; } #lab .lab-egg-shortcut { width: 84px; height: 78px; } }
@media (max-width: 700px) { #lab .lab-slots { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); grid-template-rows: 123px 28px 68px 112px; max-width: none; } #lab .lab-slot[data-lab-slot="a"] { grid-column: 1; grid-row: 1; } #lab .lab-operator:not(.equal) { grid-column: 2; grid-row: 1; } #lab .lab-slot[data-lab-slot="b"] { grid-column: 3; grid-row: 1; } #lab .lab-operator.equal { grid-column: 2; grid-row: 2; } #lab .lab-egg-shortcut { grid-column: 2; grid-row: 3; width: 68px; height: 62px; } #lab .lab-slot.result { grid-column: 1 / -1; grid-row: 4; } }
@media (max-width: 420px) { #lab .lab-slots { grid-template-columns: 1fr; grid-template-rows: 108px 25px 108px 25px 62px 108px; } #lab .lab-slot[data-lab-slot="a"] { grid-column: 1; grid-row: 1; } #lab .lab-operator:not(.equal) { grid-column: 1; grid-row: 2; } #lab .lab-slot[data-lab-slot="b"] { grid-column: 1; grid-row: 3; } #lab .lab-operator.equal { grid-column: 1; grid-row: 4; } #lab .lab-egg-shortcut { grid-column: 1; grid-row: 5; } #lab .lab-slot.result { grid-column: 1; grid-row: 6; } }

/* Each Pal in an experiment is a small field badge, so the breeding chain is
   easier to follow even when its source portrait has a transparent background. */
#lab .lab-queue-pal { position: relative; gap: 7px; }
#lab .lab-queue-pal img { box-sizing: border-box; width: 54px; height: 54px; padding: 3px; border: 1px solid rgba(117, 227, 226, .72); border-radius: 16px; background: radial-gradient(circle at 32% 22%, rgba(188, 255, 252, .22), transparent 38%), linear-gradient(145deg, rgba(28, 100, 115, .95), rgba(5, 39, 54, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .15), 0 5px 11px rgba(0, 0, 0, .28); }
#lab .lab-queue-pal span { max-width: 76px; overflow: hidden; color: #e9ffff; font-size: 10px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
#lab .lab-queue-pal.result img { border-color: rgba(130, 239, 180, .9); background: radial-gradient(circle at 32% 22%, rgba(208, 255, 205, .22), transparent 38%), linear-gradient(145deg, rgba(38, 116, 91, .95), rgba(5, 47, 50, .98)); box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 0 0 2px rgba(114, 235, 168, .12), 0 6px 13px rgba(0, 0, 0, .3); }
#lab .lab-queue-pal.result span { color: #aaffce; }
#lab .lab-experiment-card.incubating time { padding: 5px 7px; color: #ffdc8d; border: 1px solid rgba(231, 185, 91, .36); border-radius: 999px; background: rgba(132, 91, 25, .14); font-weight: 800; letter-spacing: .02em; }

/* The reminder is a tiny hatch signal: the exact egg from the experiment is
   the focus, with a brief pulse that draws attention without demanding it. */
.hatch-notification { grid-template-columns: 52px minmax(0, 1fr) 28px; gap: 13px; width: min(385px, calc(100vw - 28px)); padding: 16px; overflow: hidden; border: 1px solid rgba(119, 231, 229, .8); border-left: 4px solid #f0c96f; border-radius: 14px; background: linear-gradient(125deg, rgba(12, 63, 78, .98), rgba(5, 37, 51, .98)); box-shadow: 0 18px 40px rgba(0, 0, 0, .38), inset 0 1px rgba(235, 255, 255, .11); }
.hatch-notification::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 10% 22%, rgba(255, 216, 117, .2), transparent 31%), linear-gradient(112deg, transparent 0 46%, rgba(115, 236, 232, .07) 46.2% 46.6%, transparent 46.9%); }
.hatch-notification > * { position: relative; z-index: 1; }.hatch-egg { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(245, 211, 121, .76); border-radius: 15px; background: radial-gradient(circle, rgba(255, 225, 138, .16), transparent 62%), rgba(5, 38, 51, .68); box-shadow: inset 0 1px rgba(255,255,255,.13), 0 0 0 4px rgba(240, 201, 111, .08); }.hatch-egg img { width: 43px; height: 43px; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(0,0,0,.35)); }
.hatch-notification strong { color: #efffff; font-size: 14px; letter-spacing: .055em; }.hatch-notification p { color: #afd4da; line-height: 1.46; }.hatch-notification button { width: 28px; height: 28px; border-radius: 8px; color: #b7e5e8; border-color: rgba(127, 223, 223, .36); }.hatch-notification button:hover { color: #062d39; border-color: #80e8e5; background: #80e8e5; }
@media (prefers-reduced-motion: no-preference) { .hatch-notification.visible .hatch-egg { animation: hatch-egg-signal 1.15s ease-in-out 2; }.hatch-notification.visible::before { animation: hatch-sheen 1.6s ease-out 1; } } @keyframes hatch-egg-signal { 0%, 100% { transform: none; } 26% { transform: rotate(-7deg) scale(1.05); } 52% { transform: rotate(7deg) scale(1.11); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 0 0 7px rgba(240, 201, 111, .12), 0 0 23px rgba(240, 201, 111, .32); } 76% { transform: rotate(-4deg) scale(1.04); } } @keyframes hatch-sheen { from { transform: translateX(-55%); opacity: 0; } 28% { opacity: 1; } to { transform: translateX(55%); opacity: 0; } }
