/* Emergency supplies: the Supplies screen, go bags and things to check (public/ui/ready.js). */
.rpic { width: 56px; height: 56px; object-fit: contain; flex: none; }
.rpic.wide { width: 112px; height: 75px; }
.rtick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff;
  font-size: .72rem; font-weight: 800; vertical-align: -3px; margin-right: .35rem; }
.rbar { height: 8px; border-radius: 4px; margin: .35rem 0 .3rem; }
.rbar i, .ltrack i { width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.rbar i.ok, .ltrack i.ok { background: var(--good); }
.rbar i.partial, .ltrack i.partial { background: var(--soon); }
.rbar i.none, .ltrack i.none { background: var(--past); }
.rname { display: block; font-family: var(--display); font-weight: 700; font-size: 1.04rem; line-height: 1.2; }
.rlead { margin-top: -.5rem; }
.rnote { margin: -.3rem 0 .6rem; }

.rcards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: .4rem; }
.rcard { display: flex; align-items: center; gap: .8rem; width: 100%; margin: 0; padding: .7rem; text-align: left; font: inherit; color: inherit;
  text-decoration: none; cursor: pointer; border-bottom-width: 3px; min-height: 0; justify-content: flex-start; }
.rcard .grow { flex: 1; min-width: 0; display: block; font-weight: 400; }
.rcard .small { display: block; line-height: 1.35; }
.rcard.done, .bagcard.done { border-color: var(--good); }
.rcard:active, .ktile:active { transform: translateY(2px); border-bottom-width: 1px; margin-bottom: 2px; }

.lhero { display: flex; align-items: center; gap: .9rem; }
.lhero .rpic { width: 88px; height: 88px; }
.lhero .rpic.wide { width: 128px; height: 86px; }
.lhero b { display: block; }
.lnum { font: 800 2.6rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lrow { display: grid; grid-template-columns: 48px 1fr auto; gap: .1rem .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.lrow .rpic { width: 48px; height: 48px; grid-row: span 2; }
.lname { font-weight: 650; }
.ldays { font-variant-numeric: tabular-nums; text-align: right; }
.ltrack { grid-column: 2 / 4; position: relative; height: 12px; border-radius: 6px; background: var(--deep); overflow: hidden; }
.ltrack i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; }
.ltrack u { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--card); }
.lscale { position: relative; height: 1.2rem; margin: .3rem 0 0 calc(48px + .7rem); }
.lscale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lscale span:last-child { transform: translateX(-100%); }

.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.ktile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: .6rem .7rem .7rem; background: var(--card);
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 16px; font: inherit; color: inherit; cursor: pointer; min-height: 0; }
.ktile .rpic { width: 88px; height: 88px; }
.ktile b { font-size: .98rem; line-height: 1.2; }
.ktile .rbar { width: 100%; }
.irow-pic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.irow-pic .rpic { width: 40px; height: 40px; }

.rsheet-top { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.rsheet-top .rpic { width: 84px; height: 84px; }
.rsheet-top h2 { margin: 0 0 .2rem; }
.rsheet-top p { margin: 0; }
.rhave { flex-wrap: nowrap; gap: .4rem; }

.bagcard { padding: 0; overflow: hidden; }
.baghead { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .8rem; background: none; border: 0; border-radius: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; min-height: 0; justify-content: flex-start; box-shadow: none; }
.baghead .grow { flex: 1; min-width: 0; display: block; font-weight: 400; }
.baghead .small { display: block; }
.bagfig { width: 44px; height: 84px; display: flex; align-items: flex-end; justify-content: center; flex: none; }
.bagfig .rpic { width: auto; height: 100%; max-width: 60px; }
.bagpic { width: 60px; height: 60px; }
.packlist { list-style: none; margin: 0; padding: 0 .8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 .8rem; }
.packlist label { display: flex; align-items: center; gap: .55rem; min-height: 44px; cursor: pointer; }
.packlist input:not(:checked) + span { color: var(--muted); }
.bagacts { padding: .5rem .8rem .8rem; }

.clist li { flex-wrap: wrap; }
.cpic { width: 44px; height: 44px; }
.cacts { flex-basis: 100%; padding-left: calc(44px + .7rem); }

.readyhome { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; }
.rmini { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.rmini > span { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rmini .rpic.wide { width: 100%; height: 48px; }
.rmini .sbar { width: 100%; margin: .2rem 0; }
.rmini small { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.2; }

@media (prefers-reduced-motion: reduce) { .rbar i, .ltrack i { transition: none; } }
:root[data-motion="off"] :is(.rbar i, .ltrack i) { transition: none; }
