.shop-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:12px 0 24px; }
html.ov-whimsy .emote-page:has(.shop-heading) { padding-top:24px; }
.shop-heading > a { flex-shrink:0; white-space:nowrap; }
html.ov-whimsy .emote-page a:not(.btn) { color:var(--ov-text, #151922); }
html.ov-whimsy .emote-page :is(.text-mono-xs,.availability-badge,.variant-note),
html.ov-whimsy .emote-page .emote-card-actions > .text-mono-xs { font-size:12px; }
html.ov-whimsy body:has(.shop-heading) .nav-soon { font-size:11px; }
html.ov-whimsy .shop-heading h1 { font-size:32px; line-height:1.2; margin:0; }
.shop-heading p { margin:8px 0 0; color:var(--ov-muted, var(--muted)); }
.shop-funding { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px; margin-bottom:24px; border:1px solid var(--ov-border, var(--line)); border-radius:4px; background:var(--ov-panel-alt, var(--surface-1)); }
.shop-funding > div { min-width:0; }
html.ov-whimsy .shop-funding h2 { margin:0; font-size:20px; line-height:1.3; letter-spacing:-.02em; }
.shop-funding p { margin:6px 0 0; font-size:14px; line-height:1.5; color:var(--ov-muted, var(--muted)); }
.shop-funding .btn { flex-shrink:0; white-space:nowrap; }
.shop-funding-link { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
.shop-funding a:focus-visible,.shop-funding-link:focus-visible { outline:3px solid currentColor; outline-offset:5px; }
.shop-tabs { display:flex; gap:32px; border-bottom:1px solid var(--ov-border, #888); margin-bottom:28px; }
.shop-tabs a { display:inline-flex; align-items:center; min-height:48px; color:inherit; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; }
.shop-tabs a[aria-current="page"], .shop-tabs a[aria-selected="true"] { border-bottom-color:currentColor; }
.shop-tabs a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
html.ov-whimsy .emote-page .emote-hero h2 { font-size:clamp(24px,3vw,40px); line-height:1.15; letter-spacing:-.03em; margin:0 0 16px; }
.shop-usage-grid h3 { margin-top:0; }
.shop-item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:32px; }
.shop-item-grid article { display:flex; flex-direction:column; align-items:flex-start; padding:24px; border:1px solid var(--ov-border, #888); }
.shop-item-grid h3 { margin:12px 0 0; }
.shop-item-grid button:disabled { opacity:1; color:var(--ov-muted,#626875); cursor:default; }
.shop-usage-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.shop-usage-grid article { border-top:1px solid var(--ov-border, #888); padding:24px 0; }
.shop-balance { font-size:24px; font-variant-numeric:tabular-nums; }
.shop-notice { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; padding:16px; margin-bottom:16px; border:1px solid var(--ov-border, #888); background:var(--ov-panel-alt, #eee); }
.shop-notice p { margin:0; flex:1 1 260px; }
.shop-notice button { min-height:44px; }
.shop-notice-setting { display:flex; align-items:center; gap:12px; min-height:48px; }
.shop-notice-setting input { width:20px; height:20px; flex-shrink:0; }
@media(max-width:640px) {
  .shop-heading { align-items:flex-start; }
  html.ov-whimsy .shop-heading h1 { font-size:28px; }
  .shop-usage-grid,.shop-item-grid { grid-template-columns:1fr; gap:16px; }
  .shop-tabs { gap:24px; }
}
@media(max-width:480px) {
  /* Reserve the existing 102px theme switch and 14px nav gap. */
  html.ov-whimsy body:has(.shop-heading) .nav-auth { flex-wrap:wrap; max-width:calc(100% - 116px); }
  html.ov-whimsy body:has(.shop-heading) .nav-auth-user { flex-basis:100%; }
  .shop-funding { align-items:stretch; flex-direction:column; gap:16px; padding:20px; }
}

.rescue-intro { max-width: 67ch; }
.rescue-intro h2 { margin: 0; }
.rescue-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 24px; }
.rescue-grid .emote-card-body h3 { min-height: 0; }
.rescue-grid .emote-card-body p { display: block; overflow: visible; }
.rescue-plate { position: relative; display: grid; place-items: center; height: clamp(165px,18vw,216px); padding: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #faf0d3, #ebdfbd); border-bottom: 1px solid var(--line); }
@media (max-width: 740px) {
  .rescue-grid { grid-template-columns: 1fr; }
}
.rescue-plate::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#927f5738 .6px, transparent .8px); background-size: 6px 6px; }
.rescue-plate img { position: relative; max-width: 100%; width: auto; height: 100%; object-fit: contain; min-height: 0; }
.rescue-controls { margin-top: auto; padding-top: 12px; width: 100%; display: grid; gap: 10px; border-top: 1px solid var(--ov-border,#888); }
.rescue-controls label { display: flex; gap: 10px; align-items: center; }
.rescue-controls input { width: 5em; min-height: 36px; font: inherit; color: inherit; background: var(--ov-panel-alt,transparent); border: 1px solid var(--ov-border,#888); padding: 4px 8px; }

.rescue-intro .rescue-fineprint { margin: 12px 0 0; font: 400 13px/1.5 "IBM Plex Mono", monospace; color: var(--ov-muted, var(--muted)); }
