/* Meetings & Walkies /1/ */
:root {
  --paper: #f7f0e1; --card: #fffbf2; --line: #e2d7bf; --floor: #ecdfc4;
  --navy: #1f3157; --navy2: #2c4372; --sage: #b9c7a6; --sage2: #6f8560; --sagebg: #e6ecd9;
  --tan: #c8935b; --leather: #9a5b34; --tanbg: #f4e3cc; --red: #c2473c; --ink: #27304a; --dim: #7d7f7a;
  --display: 'Caprasimo', Georgia, serif; --sans: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --r: 16px; --floorh: 122px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper); overscroll-behavior: none; }
body { color: var(--ink); font: 16px/1.4 var(--sans); text-wrap: pretty; -webkit-text-size-adjust: 100%; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
input { -webkit-user-select: text; user-select: text; }
.ic { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; flex: none; }
.ic svg { width: 100%; height: 100%; fill: currentColor; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background:
    radial-gradient(circle at 12% 8%, #fff8ea 0, transparent 38%),
    radial-gradient(circle at 88% 30%, #fbf3e2 0, transparent 40%), var(--paper); }

/* ---- the top ---------------------------------------------------------- */
#top { position: relative; flex: none; height: 112px; display: flex; align-items: flex-end; justify-content: center; }
#top .title { position: relative; z-index: 2; text-align: center; padding: 0 0 18px; }
h1 { font: 400 27px/0.98 var(--display); color: var(--navy); letter-spacing: -.01em; width: 170px; margin: 0 auto; }
h1 i { font-style: normal; color: var(--tan); }
.dog { position: absolute; display: block; line-height: 0; -webkit-touch-callout: none; }
.dog img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
#golden { left: 2px; bottom: -8px; width: 104px; z-index: 3; }
#shepherd { right: 2px; bottom: -8px; width: 98px; z-index: 3; }
#more { position: absolute; right: 196px; top: 26px; width: 44px; height: 36px; display: none; gap: 4px; align-items: center; justify-content: center; z-index: 4; }
#more span, #more2 span { width: 5px; height: 5px; border-radius: 50%; background: var(--navy); opacity: .55; }

/* ---- the paper -------------------------------------------------------- */
#main { position: relative; flex: 1; min-height: 0; margin: 0 10px; background: var(--card); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 14px 70px; box-shadow: 0 -2px 14px #8a6a3a14; }
#tabsbar { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; padding: 12px 0 10px; background: linear-gradient(var(--card) 80%, transparent); }
#tabsbar button { flex: 1; height: 44px; border-radius: 999px; font: 700 16px var(--sans); color: var(--navy); background: #f1e8d4; }
#tabsbar button.on { background: var(--navy); color: #fff8e8; }
#tabsbar #more2 { flex: 0 0 44px; display: flex; gap: 3px; align-items: center; justify-content: center; }
.view { display: none; }
.view.on { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

.datehead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 4px 2px 10px; }
.datehead span { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sage2); }
.datehead b { font: 400 24px var(--display); color: var(--navy); }
.datehead .bones { margin-left: auto; font: 600 13px var(--sans); font-style: normal; color: var(--leather); background: var(--tanbg); padding: 4px 10px; border-radius: 999px; }

.nextcard { position: relative; border-radius: var(--r); padding: 16px 18px 18px; background: var(--navy); color: #fff8e8; cursor: pointer; overflow: hidden; }
.nextcard.walk { background: var(--leather); }
.nextcard.free { background: var(--sagebg); color: var(--sage2); cursor: default; }
.nextcard.free h2 { font-size: 20px; }
.nextcard .lab { font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.nextcard h2 { font: 400 27px/1.08 var(--display); margin: 4px 0 6px; overflow-wrap: anywhere; }
.nextcard .when { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 16px; opacity: .92; }
.nextcard .cd { font: 400 38px/1 var(--display); margin-top: 12px; color: #ffd98a; }
.nextcard.walk .cd { color: #ffe9c4; }
.nextcard.urgent { animation: urgent 1.2s ease-in-out infinite; }
.nextcard.live .cd { color: #fff; }
@keyframes urgent { 50% { box-shadow: 0 0 0 5px #c2473c66; } }
.nextcard .doit { position: absolute; right: 14px; bottom: 14px; height: 46px; padding: 0 16px; border-radius: 999px; background: #fff8e8; color: var(--leather); font-weight: 700; display: flex; gap: 6px; align-items: center; }

h3 { font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage2); margin: 20px 2px 8px; }
.empty { color: var(--dim); padding: 6px 2px 4px; font-size: 16px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px 8px 12px; margin-bottom: 8px; border-radius: 14px; background: #f6efdf; border-left: 6px solid var(--navy); cursor: pointer; }
.row.walk { border-left-color: var(--tan); background: #faf0e0; }
.row .t { font: 700 17px var(--sans); font-variant-numeric: tabular-nums; color: var(--navy); width: 52px; flex: none; }
.row .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .n b { font-weight: 600; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.row .n small { color: var(--dim); font-size: 13px; }
.row .rowkind { color: var(--navy); opacity: .4; font-size: 22px; margin-right: 12px; flex: none; }
.row .tick { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--tan); color: var(--tan); font-size: 20px; flex: none; }
.row .tick.on { background: var(--sage2); border-color: var(--sage2); color: #fff; }
.row.past { opacity: .5; }
.row.done { opacity: .62; }
.row.done .n b { text-decoration: line-through; }

/* ---- month ------------------------------------------------------------ */
.monthbar { display: flex; align-items: center; gap: 6px; padding: 2px 0 8px; }
.monthbar .mtitle { flex: 1; font: 400 23px var(--display); color: var(--navy); text-align: center; height: 46px; }
.monthbar .nav { width: 46px; height: 46px; border-radius: 50%; background: #f1e8d4; color: var(--navy); display: grid; place-items: center; font-size: 19px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; background: var(--navy); gap: 1.5px; }
.wd { background: var(--navy); color: #fff8e8; text-align: center; font: 600 12px var(--sans); padding: 6px 0; }
.cell { position: relative; background: var(--card); min-height: 62px; padding: 0; display: block; text-align: left; overflow: hidden; }
.cell .num { position: absolute; left: 0; top: 0; min-width: 24px; height: 22px; padding: 0 5px; display: grid; place-items: center; background: var(--sage); color: var(--navy); font: 700 13px var(--sans); border-radius: 0 0 9px 0; }
.cell.out { background: #f4ecda; }
.cell.out .num { background: #e3ddc9; color: #9a9889; }
.cell.gone .marks { opacity: .5; }
.cell.today .num { background: var(--red); color: #fff; }
.cell.today { box-shadow: inset 0 0 0 2.5px var(--red); }
.cell:active { background: var(--sagebg); }
.marks { position: absolute; left: 3px; right: 3px; bottom: 4px; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.mk { height: 9px; flex: 1 1 100%; max-width: 100%; border-radius: 3px; background: var(--navy); display: block; }
.mk.walk { flex: none; width: 13px; height: 13px; background: none; color: var(--tan); }
.mk.walk svg { width: 13px; height: 13px; fill: currentColor; display: block; }
.mk.walk.done { color: var(--sage2); }
.mk em { display: none; }
.marks .more { font: 700 10px var(--sans); color: var(--dim); }

/* ---- add bar and floor ------------------------------------------------ */
#addbar { position: relative; z-index: 3; flex: none; display: flex; gap: 10px; padding: 10px 12px; margin: 0 10px; background: var(--card); border: 1.5px solid var(--line); border-top: 1.5px dashed var(--line); border-bottom: 0; }
.big { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 16px; border-radius: 16px; font: 700 18px var(--sans); width: 100%; }
#addbar .big { flex: 1; }
.big.meeting { background: var(--navy); color: #fff8e8; }
.big.walk { background: var(--tan); color: #3b2411; }
.big.plain { background: #f1e8d4; color: var(--navy); }
.big.danger { background: #f6dcd7; color: #8f2c22; }
.big.save { background: var(--sage2); color: #fff; margin-top: 22px; min-height: 60px; font-size: 20px; }
.big:active, .chip:active, .row:active { transform: scale(.98); }
#beagle { right: 10px; bottom: 100%; margin-bottom: -5px; width: 84px; z-index: 5; }

#floor { position: relative; flex: none; height: calc(var(--floorh) + env(safe-area-inset-bottom)); background:
    repeating-linear-gradient(90deg, transparent 0 118px, #d9c9a655 118px 120px),
    linear-gradient(#e4d5b6 0, var(--floor) 12px); border-top: 2px solid #cdbb96; }
#lab { left: 2px; bottom: calc(6px + env(safe-area-inset-bottom)); width: 114px; }
#bowlspot { position: absolute; left: 120px; bottom: calc(8px + env(safe-area-inset-bottom)); width: 68px; height: 30px; }
#blanket { position: absolute; right: 2px; bottom: calc(2px + env(safe-area-inset-bottom)); width: 116px; line-height: 0; }
#blanket img { width: 100%; display: block; }
#stash { position: absolute; right: 0; bottom: calc(3px + env(safe-area-inset-bottom)); width: 40px; height: 34px; cursor: pointer; z-index: 3; }
#stash i { position: absolute; width: 9px; height: 8px; border-radius: 45%; background: #8a5a33; box-shadow: inset -1px -1px 0 #6b4324; }
#maggan { right: 20px; bottom: calc(13px + env(safe-area-inset-bottom)); width: 78px; z-index: 2; transform-origin: 50% 100%; }
#maggan.sneak { width: 97px; }
#maggan.caught { width: 54px; }
#maggan.happy { width: 71px; }
#maggan.flip img { transform: scaleX(-1); }
.asleep img { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scale(1.015, 1.045); } }
#maggan.sneak:not(.frozen) { animation: tiptoe .42s ease-in-out infinite; }
@keyframes tiptoe { 50% { translate: 0 -3px; rotate: -1.5deg; } }
.hop { animation: hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 30% { translate: 0 -16px; rotate: -4deg; } 60% { translate: 0 0; } 80% { translate: 0 -5px; } }
.wiggle { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { rotate: -5deg; } 50% { rotate: 4deg; } 75% { rotate: -3deg; } }
#shepherd.m1 { animation: alert 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
#shepherd.m2 { animation: alert .5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes alert { 50% { rotate: 2.5deg; translate: 0 -2px; } }
.heart { position: fixed; z-index: 20; pointer-events: none; color: var(--red); font-size: 20px; animation: heart 1.1s ease-out forwards; }
@keyframes heart { to { transform: translate(var(--dx, 0), -70px) scale(1.5); opacity: 0; } }
.zzz { position: fixed; z-index: 20; pointer-events: none; font: 400 18px var(--display); color: var(--navy); opacity: .7; animation: heart 1.6s ease-out forwards; }

/* ---- physics world ---------------------------------------------------- */
#world { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.body { position: absolute; left: 0; top: 0; pointer-events: auto; touch-action: none; will-change: transform; background: center / contain no-repeat; cursor: grab; }
.body.kibble { border-radius: 46%; background: #8a5a33; box-shadow: inset -1.5px -1.5px 0 #6b4324, inset 1px 1px 0 #a87446; }
.body.bowl { pointer-events: auto; cursor: pointer; z-index: 2; }
.body.toy { z-index: 3; }

/* ---- bubble, bark, toast ---------------------------------------------- */
#bubble { position: fixed; z-index: 25; max-width: 230px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--navy); color: var(--navy); font: 600 15px/1.3 var(--sans); box-shadow: 0 6px 18px #1f315726; opacity: 0; transform: scale(.8); transform-origin: var(--ox, 80%) 0; pointer-events: none; transition: opacity .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
#bubble.on { opacity: 1; transform: scale(1); }
#bark { position: fixed; z-index: 40; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 6px; border-radius: 20px; background: #fff; border: 3px solid var(--red); box-shadow: 0 12px 40px #0003; transform: translateY(-160%); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
#bark.on { transform: none; }
#bark img { width: 70px; flex: none; animation: alert .4s ease-in-out infinite; transform-origin: 50% 100%; }
#bark div { flex: 1; min-width: 0; }
#bark b { display: block; font: 400 22px/1.1 var(--display); color: var(--red); }
#bark span { font-weight: 600; overflow-wrap: anywhere; }
#bark button { height: 48px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; }
#toast { position: fixed; z-index: 45; left: 50%; bottom: calc(var(--floorh) + 86px); transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--navy); color: #fff8e8; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- sheets ----------------------------------------------------------- */
#shade { position: fixed; inset: 0; z-index: 29; background: #1f315755; opacity: 0; pointer-events: none; transition: opacity .25s; }
#shade.on { opacity: 1; pointer-events: auto; }
#sheet { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--card); border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -10px 40px #0003; }
#sheet.on { transform: none; }
#sheet .x { position: absolute; right: 10px; top: 10px; width: 46px; height: 46px; border-radius: 50%; background: #f1e8d4; color: var(--navy); display: grid; place-items: center; font-size: 18px; z-index: 2; }
#sheet h2 { font: 400 26px/1.1 var(--display); color: var(--navy); margin: 2px 52px 12px 2px; overflow-wrap: anywhere; }
#sheet .lab { font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage2); margin: 2px; }
#sheet .evsheet.walk .lab { color: var(--leather); }
.bigwhen { font-weight: 600; font-size: 17px; margin: 0 2px; }
.bigtime { font: 400 40px/1.1 var(--display); color: var(--navy); margin: 2px 2px 8px; }
.bits { color: var(--dim); margin: 6px 2px 12px; }
.two { display: flex; gap: 10px; margin-top: 10px; }
.two .big { flex: 1; }
#sheet .big + .big, #sheet .big + .two, #sheet .setrow + .big { margin-top: 10px; }
#sheet .two .big + .big { margin-top: 0; }
.daysheet .two { margin-top: 16px; }

.editor label { display: block; font: 700 14px var(--sans); color: var(--sage2); margin: 18px 2px 7px; letter-spacing: .02em; }
.editor label.chip { margin: 0; display: inline-flex; font: 600 16px var(--sans); color: var(--navy); letter-spacing: 0; cursor: pointer; }
.editor label.chip.on { color: #fff8e8; }
.morebtn { display: block; margin: 16px 2px 0; padding: 8px 0; font: 700 15px var(--sans); color: var(--sage2); text-decoration: underline; text-underline-offset: 3px; }
.morebox[hidden] { display: none; }
.savebar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 14px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--card) 22%); z-index: 3; }
.savebar .big.save { margin-top: 0; width: 100%; }
.editor input[type=text], .editor input.time { width: 100%; height: 58px; border-radius: 14px; border: 2px solid var(--line); background: #fff; padding: 0 14px; font-size: 20px; font-weight: 600; color: var(--ink); outline: 0; -webkit-appearance: none; appearance: none; }
.editor input.time { font: 400 30px var(--display); color: var(--navy); text-align: center; min-width: 0; }
.editor input:focus { border-color: var(--navy); }
.kinds { display: flex; gap: 8px; margin-right: 52px; }
.kind { flex: 1; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; background: #f1e8d4; color: var(--dim); }
.kind.meeting.on { background: var(--navy); color: #fff8e8; }
.kind.walk.on { background: var(--tan); color: #3b2411; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 46px; padding: 0 15px; border-radius: 999px; background: #f1e8d4; color: var(--navy); font: 600 16px var(--sans); display: inline-flex; align-items: center; position: relative; }
.chip.on { background: var(--navy); color: #fff8e8; }
.editor.walk .chip.on { background: var(--leather); }
.datechip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }

.setrow { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 14px; background: #f6efdf; font-weight: 600; margin-bottom: 8px; text-align: left; }
.setrow b { padding: 5px 12px; border-radius: 999px; background: #ddd5c2; color: #6c6a60; flex: none; }
.setrow.on b { background: var(--sage2); color: #fff; }

/* ---- the gift --------------------------------------------------------- */
#gift { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: var(--paper); transition: opacity .6s .7s; }
#gift.on { display: flex; }
#gift.open { opacity: 0; pointer-events: none; }
.tag { text-align: center; transform: rotate(-3deg); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 22px; box-shadow: 0 6px 18px #8a6a3a22; }
.tag b { display: block; font: 400 34px/1.1 var(--display); color: var(--red); }
.tag span { font: italic 500 17px var(--sans); color: var(--navy); }
.present { position: relative; width: 190px; height: 170px; animation: present 2.2s ease-in-out infinite; }
@keyframes present { 50% { transform: rotate(2deg) translateY(-4px); } 75% { transform: rotate(-2deg); } }
.present .box { position: absolute; left: 12px; right: 12px; bottom: 0; height: 118px; border-radius: 10px; background: linear-gradient(90deg, transparent 42%, var(--tan) 42% 58%, transparent 58%), var(--navy); }
.present .lid { position: absolute; left: 0; right: 0; top: 22px; height: 40px; border-radius: 10px; z-index: 2; background: linear-gradient(90deg, transparent 43%, var(--tan) 43% 57%, transparent 57%), var(--navy2); transition: transform .7s cubic-bezier(.2, .8, .3, 1), opacity .7s; }
.present .bow { position: absolute; left: 50%; top: -24px; width: 76px; height: 32px; margin-left: -38px; background: radial-gradient(ellipse 19px 15px at 19px 50%, transparent 55%, var(--tan) 58% 96%, transparent 100%), radial-gradient(ellipse 19px 15px at 57px 50%, transparent 55%, var(--tan) 58% 96%, transparent 100%); }
#gift.open .present { animation: none; }
#gift.open .lid { transform: translate(60px, -220px) rotate(50deg); opacity: 0; }
.hint { font: 700 15px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage2); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .35; } }

/* ---- wide screens ----------------------------------------------------- */
@media (min-width: 900px) {
  #top { height: 150px; }
  h1 { font-size: 44px; width: auto; }
  #golden { width: 150px; left: 40px; } #shepherd { width: 142px; right: 40px; }
  #main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 28px; padding: 18px 26px 80px; margin: 0 24px; align-content: start; }
  #tabsbar { display: none; }
  #more { display: flex; }
  .view { display: block !important; }
  #addbar { margin: 0 24px; padding: 12px 26px; justify-content: center; }
  #addbar .big { max-width: 300px; }
  .cell { min-height: 92px; }
  .marks { position: static; display: block; padding: 26px 4px 4px; }
  .mk, .mk.walk { display: flex; align-items: center; gap: 3px; width: auto; height: auto; background: #dfe6f1; color: var(--navy); border-radius: 5px; padding: 2px 5px; margin-bottom: 3px; font: 600 11px/1.3 var(--sans); }
  .mk.walk { background: var(--tanbg); color: var(--leather); }
  .mk.walk svg { width: 11px; height: 11px; flex: none; }
  .mk em { display: block; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #sheet { bottom: auto; top: 50%; border-radius: 24px; transform: translateY(-40%) scale(.96); opacity: 0; pointer-events: none; transition: .22s; max-height: 86dvh; }
  #sheet.on { transform: translateY(-50%); opacity: 1; pointer-events: auto; }
  :root { --floorh: 150px; }
  #lab { width: 170px; left: 60px; } #bowlspot { left: 260px; width: 86px; height: 38px; }
  #blanket { width: 160px; right: 60px; } #maggan { right: 86px; width: 104px; } #maggan.sneak { width: 129px; } #maggan.caught { width: 71px; } #maggan.happy { width: 95px; }
  #stash { right: 52px; }
  #beagle { width: 110px; }
}
@media (max-height: 640px) { #top { height: 92px; } :root { --floorh: 100px; } #lab { width: 106px; } #golden { width: 86px; } #shepherd { width: 82px; } }
@media (prefers-reduced-motion: reduce) { .asleep img, .present, .hint, #shepherd.m1, #shepherd.m2 { animation: none; } }
#lab.awake { width: 98px; }
@media (min-width: 900px) { #lab.awake { width: 146px; } }
@media (max-height: 640px) { #lab.awake { width: 91px; } }
#maggan.frozen { animation: none; }

/* ---- /2/: installing ---------------------------------------------------- */
.installcard { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: center; margin: 18px 0 6px; padding: 14px; border-radius: var(--r); background: #eef1e6; border: 1.5px solid var(--sage); }
.installcard img { width: 56px; height: 56px; border-radius: 14px; display: block; }
.installcard .tx b { display: block; font: 400 18px/1.15 var(--display); color: var(--navy); }
.installcard .tx span { display: block; font-size: 14px; line-height: 1.3; color: var(--dim); margin-top: 3px; }
.installcard .acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.installcard .acts .chip { flex: 1; justify-content: center; background: #fffbf2; }
.installcard .acts .chip.on { flex: 2; background: var(--navy); color: #fff8e8; }
.steps { list-style: none; margin: 4px 0 16px; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 18px; line-height: 1.3; font-weight: 600; }
.steps li:last-child { border-bottom: 0; }
.steps li > b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff8e8; display: grid; place-items: center; font: 400 17px var(--display); }
.steps li > span { padding-top: 5px; }
.steps .glyph { display: inline-block; vertical-align: -5px; margin-left: 6px; color: #2f7cf6; }
