/* 1038: the person's home. Tokens only (app.css). */
.hm { max-width: 980px; margin: 0 auto; padding: 14px 16px 24px; display: grid; gap: 14px; }
.hm .ago { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--ink); min-height: 72px; }
.hm .ago img, .hm .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: block; }
.hm .ago b { display: block; font-size: 17px; }
.hm .ago > span > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hm .ago span { color: var(--muted); font-size: 16px; }
.hm .tabs { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; }
.hm .tabs button { all: unset; cursor: pointer; flex: 1; text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 10px; color: var(--muted); }
.hm .tabs button[aria-pressed=true] { background: var(--surface); color: var(--ink); font-weight: 600; }
.hm .tabs button:focus-visible, .hm .hrow:focus-visible, .hm .keep:focus-visible { outline: 2px solid var(--accent); }
.hm .hlist { display: grid; gap: 10px; padding: 0; margin: 0; width: 100%; align-content: start; }
.hm #view { display: grid; gap: 14px; min-width: 0; }
.hm .hrow { display: grid; width: 100%; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px 14px; min-height: 56px; }
.hm .hrow > div { min-width: 0; }
.hm .hrow span { display: block; }
.hm .hrow b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.hm .hrow span { color: var(--muted); font-size: 16px; }
.hm .hrow::after { content: "›"; color: var(--muted); font-size: 24px; }
[dir=rtl] .hm .hrow::after { content: "‹"; }
.hm .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .hm .tiles { grid-template-columns: repeat(5, 1fr); } }
html[data-theme=large] .hm .tiles { grid-template-columns: repeat(2, 1fr); }
.hm .tile { display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.hm .tile .ph { width: 100%; height: auto; aspect-ratio: 1; }
.hm .tile .t { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm .empty { text-align: center; display: grid; gap: 10px; padding: 24px 0; }
.hm .empty p { margin: 0; color: var(--muted); font-size: 16px; }
.hm .keep { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 0 20px; justify-self: center; }
.hm .back { all: unset; cursor: pointer; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.hm .find { -webkit-appearance: none; appearance: none; display: block; margin: 0; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; font-size: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; }
.hm .made h2 { font-size: 17px; margin: 0 0 8px; }
.hm .strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.hm .mm, .hm .shelf { display: flex; align-items: center; min-height: 48px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 6px 14px; text-decoration: none; }
.hm .mm { flex: 0 0 auto; max-width: 70%; }
.hm .mm b { font-size: 17px; overflow-wrap: anywhere; }
.hm .shelf { justify-content: space-between; }
.hm .shelf span { color: var(--muted); font-size: 16px; }
.hm .cnt { text-align: center; color: var(--muted); font-size: 16px; margin: 8px 0; }
.hm .more { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; background: var(--surface); color: var(--accent); border-radius: 12px; font-size: 16px; }

/* 2821 J14: the wallet. Search first, chips by kind, a masonry of kept things that look like what they are. */
.hm .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hm .chips button { all: unset; cursor: pointer; flex: none; box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 22px; background: var(--surface-2); color: var(--ink); font-size: 16px; }
.hm .chips button[aria-pressed=true] { background: var(--ink); color: var(--bg, var(--surface)); font-weight: 600; }
.hm .chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm .find { min-height: 52px; border-radius: 16px; font-size: 17px; }
.hm .mas { columns: 2; column-gap: 10px; }
@media (min-width: 700px) { .hm .mas { columns: 3; } }
@media (min-width: 1000px) { .hm .mas { columns: 4; } }
.hm .kc { break-inside: avoid; margin-bottom: 10px; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; }
.hm .kc:focus-visible { outline: 2px solid var(--accent); }
.hm .kc img { width: 100%; display: block; }
.hm .kt { display: block; padding: 8px 10px 10px; font-size: 16px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.hm .km { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 3px; }
.hm .site { display: block; padding: 22px 12px 6px; font-weight: 700; font-size: 15px; color: var(--muted); background: var(--surface-2); overflow-wrap: anywhere; }
.hm .slip { display: block; padding: 0 10px 10px; color: var(--muted); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.hm .k-note .kt { font-family: ui-serif, Georgia, serif; }
.hm .voice { display: flex; gap: 2px; align-items: center; height: 70px; padding: 0 12px; background: #2b2620; }
.hm .voice i { width: 3px; border-radius: 2px; background: var(--accent); display: block; }
.hm .hi { background: #ffe9a8; color: #1f1b16; border-radius: 3px; padding: 0 1px; }

/* 2821 J14: the PinOnce bar, the Kept / + / Make bar, moments with the person's photo, receipt slips. Tokens only. */
.wbar { justify-content: space-between; }
.wbar .brand { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap, 44px); padding: 0 10px; color: var(--ink); text-decoration: none; font: 700 20px/1 ui-serif, Georgia, serif; }
.wbar .brand i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: block; }
.wbar .pg { display: inline-flex; align-items: center; min-height: var(--tap, 44px); padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.hm { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.wst { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.35; }
.wst button { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.wtabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: end; background: var(--bg); border-top: .5px solid var(--line); padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); }
.wtabs a { display: grid; justify-items: center; gap: 2px; min-height: 52px; align-content: center; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.wtabs a.on { color: var(--accent); }
.wtabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wtabs .plus { all: unset; cursor: pointer; justify-self: center; width: 56px; height: 56px; margin-top: -22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.wtabs .plus svg { width: 28px; height: 28px; stroke-width: 2.4; }
.wtabs a:focus-visible, .wtabs .plus:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 900px) { .wtabs { display: none; } .hm { padding-bottom: 24px; } }
.hm .chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
[dir=rtl] .hm .chips { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.hm .moments h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.hm .moments .strip { scroll-snap-type: x proximity; gap: 12px; }
.hm .mo { flex: 0 0 min(78%, 280px); scroll-snap-align: start; display: grid; align-content: start; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; padding-bottom: 12px; }
.hm .mo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hm .mo b { padding: 8px 14px 0; font-size: 18px; font-family: ui-serif, Georgia, serif; }
.hm .mo span { padding: 0 14px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.hm .mo i { font-style: normal; margin: 6px 14px 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; }
.hm .rcpt { display: grid; gap: 4px; padding: 14px 12px; background: var(--surface-2); font: 600 14px/1.3 ui-monospace, Menlo, monospace; color: var(--ink); border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.hm .rcpt span { font-weight: 400; color: var(--muted); }
.hm #view { grid-template-columns: minmax(0, 1fr); }
.hm .rcpt b { font-weight: 600; }
.hm .moments .strip { align-items: flex-start; }

/* 2821: grey card text stays 4.5:1 on white and on the card tints */
.hm { --muted: light-dark(#55555a, #b4b4bb); }

/* 2821 live review 3: the first screen shows what was kept. Short moment cards, no gap, wide on a laptop, short in landscape. */
.hm .mo { flex: 0 0 min(72%, 260px); gap: 2px; padding-bottom: 10px; }
.hm .mo img { aspect-ratio: 3 / 2; max-height: 130px; }
.hm .mo b { padding-top: 6px; font-size: 17px; }
.hm .mo span { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm .mo i { min-height: 44px; margin-top: 4px; background: var(--surface-2); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hm .moments .strip { padding-bottom: 0; }
.hm .moments { margin: 0; }
@media (min-width: 700px) { .hm .moments .strip { overflow: visible; } .hm .mo { flex: 1 1 0; min-width: 0; } .hm .mo img { max-height: 150px; } }
@media (max-height: 500px) and (orientation: landscape) {
  .hm .mo img { display: none; }
  .hm .mo span { display: none; }
  .hm .mo { flex-basis: 200px; }
  .hm .moments h2 { margin-bottom: 4px; }
  .wtabs a { min-height: 40px; } .wtabs .plus { margin-top: -14px; width: 48px; height: 48px; }
  .hm { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
.hm .moments .strip { align-items: stretch; }
.hm .mo { align-content: start; }
.hm .mo span { -webkit-line-clamp: 1; }
.hm .mo i { margin-top: auto; }
.hm .mo { grid-template-rows: auto auto auto 1fr; }
.hm .mo i { padding: 6px 10px; text-align: center; line-height: 1.2; font-size: 15px; }
@media (min-width: 700px) { .hm .mo span { -webkit-line-clamp: 3; } }
@media (max-height: 500px) and (orientation: landscape) { .hm .moments { order: 9; } .hm .mas, .hm .hlist, .hm .ago, .hm .made { order: 2; } .hm .mo { flex-basis: 210px; } }
