/* pinn. – Notices: way home, shopping notice, outlook (css/hinweise.css)
   Part of the styles that used to be inline in index.html (step 3 of splitting index.html). Plain CSS, no build
   step: linked in the head of index.html at exactly the place where the <style> block stood, so the order of
   the rules - and with it the look of the app - is unchanged.
   Contents: way home ("I'm on my way home") notice and popup, shopping notice near a shop (banner),
   week preview & month outlook (banner + page).
   Utility classes (Tailwind) live in vendor/pinn.css, not here. */

/* ---------- Way home ("I'm on my way home"): notice at the top + popup ---------- */
#hwOverlay { position: fixed; inset: 0; z-index: 460; display: grid; place-items: center; background: rgba(20,24,22,0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px); }
#hwOverlay.hidden { display: none; }
.hw-head { background: linear-gradient(135deg, var(--hw, var(--c-pine)) 0%, color-mix(in srgb, var(--hw, var(--c-pine)) 62%, #fff) 100%); }
.hw-head::before { animation: hwDrift 3.2s ease-in-out infinite; opacity: .7; }
.hw-head.done { background: linear-gradient(135deg, #256B42 0%, #4CA36F 100%); }
.hw-head.done::before { animation: none; opacity: .5; }
@keyframes hwDrift { 0%, 100% { transform: translateX(0) scale(.85); } 50% { transform: translateX(-26px) scale(1); } }
.hw-sec { font-size: 12px; color: rgba(37,35,31,0.5); margin: 10px 2px 6px; }
.hw-mine { border-radius: 14px; padding: 10px 12px 12px; background: color-mix(in srgb, var(--c-pine) 6%, #fff); border: 1px solid color-mix(in srgb, var(--c-pine) 22%, transparent); }
.hw-mine-h { font-weight: 600; font-size: 0.9rem; line-height: 1.35; word-break: break-word; }
.hw-calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sos-call.hw-call { background: var(--hw, var(--c-pine)); }
.hw-end { width: 100%; margin-top: 10px; padding: 11px 8px; border-radius: 12px; font-size: 0.875rem; font-weight: 600; background: rgba(47,125,79,0.12); color: #256B42; border: 1px solid rgba(47,125,79,0.35); }
.hw-end:disabled { opacity: .6; }
/* SOS button in one's own way home */
.hw-sos { position: relative; width: 100%; margin: 10px 0 2px; padding: 0; border-radius: 16px; overflow: hidden; color: #fff; text-align: left; background: linear-gradient(135deg, #B8261E 0%, #E5483D 100%); box-shadow: 0 6px 18px rgba(214,59,50,0.35); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .1s; }
.hw-sos:active { transform: scale(0.985); }
.hw-sos::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(229,72,61,0.55); animation: hwSosRing 2.2s ease-out infinite; pointer-events: none; }
.hw-sos-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,0.22); pointer-events: none; }
.hw-sos-in { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; pointer-events: none; }
.hw-sos-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 9999px; display: grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: .04em; background: #fff; color: #C62B22; box-shadow: 0 0 0 4px rgba(255,255,255,0.3); }
.hw-sos-txt { min-width: 0; display: flex; flex-direction: column; }
.hw-sos-txt b { font-size: 1rem; line-height: 1.25; }
.hw-sos-txt small { font-size: 11.5px; line-height: 1.35; opacity: .92; }
.hw-sos.counting { background: linear-gradient(135deg, #8F1C16 0%, #C62B22 100%); animation: sosBeat 0.9s ease-in-out infinite; }
.hw-sos.counting .hw-sos-ic { font-size: 22px; }
.hw-sos.counting::after, .hw-sos.sending::after { animation: none; }
.hw-sos.sending { opacity: .85; }
.hw-sos-note { font-size: 11px; line-height: 1.4; color: rgba(37,35,31,0.5); margin: 4px 2px 0; }
.hw-sos-err { font-size: 12px; line-height: 1.4; color: #B3302B; font-weight: 600; margin: 4px 2px 0; }
@keyframes hwSosRing { 0% { box-shadow: 0 0 0 0 rgba(229,72,61,0.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(229,72,61,0); } }
html.dark .hw-sos-note { color: rgba(237,234,226,0.55); }
html.dark .hw-sos-err { color: #F08A85; }
.hw-person { border-radius: 14px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--hw, var(--c-pine)) 30%, transparent); background: color-mix(in srgb, var(--hw, var(--c-pine)) 5%, #fff); }
.hw-dist { flex-shrink: 0; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 9999px; background: rgba(47,125,79,0.12); color: #256B42; white-space: nowrap; }
.hw-done { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 12px; background: rgba(47,125,79,0.07); margin-bottom: 6px; }

#hwBanner { position: fixed; z-index: 286; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 16px)); display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 14px; border-radius: 16px; overflow: hidden;
  background: #fff; color: #25231F; text-align: left; border: 1px solid color-mix(in srgb, var(--hw, var(--c-pine)) 35%, transparent); box-shadow: 0 12px 30px rgba(20,20,15,0.16); animation: ntHintIn .28s ease-out; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#hwBanner.hidden { display: none; }
#hwBanner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--hw, var(--c-pine)); }
#hwBanner:active { transform: translateX(-50%) scale(0.99); }
.hw-avas { display: flex; flex-shrink: 0; padding-left: 2px; }
.hw-avas .fam-ava + .fam-ava { margin-left: -10px; }
.hw-txt { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.hw-t { font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-s { font-size: 11.5px; line-height: 1.35; color: rgba(37,35,31,0.6); display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.hw-walk { display: inline-flex; gap: 3px; flex-shrink: 0; }
.hw-walk i { width: 4px; height: 4px; border-radius: 9999px; background: var(--hw, var(--c-pine)); opacity: .25; animation: hwStep 1.2s ease-in-out infinite; }
.hw-walk i:nth-child(2) { animation-delay: .2s; }
.hw-walk i:nth-child(3) { animation-delay: .4s; }
@keyframes hwStep { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.hw-chev { flex-shrink: 0; font-size: 22px; line-height: 1; color: rgba(37,35,31,0.3); }
.hw-x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9999px; font-size: 20px; line-height: 1; color: rgba(37,35,31,0.4); }
.hw-x:hover { background: rgba(37,35,31,0.06); color: rgba(37,35,31,0.85); }
.nt-card.hw { cursor: pointer; border-color: color-mix(in srgb, var(--hw, var(--c-pine)) 35%, transparent); background: color-mix(in srgb, var(--hw, var(--c-pine)) 6%, #fff); }
.nt-card.hw.done { --hw: #2F7D4F; }
html.dark #hwBanner { background: #2E2C28; color: #EDEAE2; }
html.dark .hw-s, html.dark .hw-sec { color: rgba(237,234,226,0.6); }
html.dark .hw-chev, html.dark .hw-x { color: rgba(237,234,226,0.45); }
html.dark .hw-mine { background: color-mix(in srgb, var(--c-pine) 16%, #2E2C28); }
html.dark .hw-person { background: color-mix(in srgb, var(--hw, var(--c-pine)) 12%, #2E2C28); }
html.dark .hw-done { background: rgba(76,163,111,0.14); }
html.dark .hw-dist { color: #8BD3A6; background: rgba(76,163,111,0.18); }
html.dark .nt-card.hw { background: color-mix(in srgb, var(--hw, var(--c-pine)) 14%, #2E2C28); }
@media (prefers-reduced-motion: reduce) { .hw-walk i, .hw-head::before, .hw-sos::after, .hw-sos.counting { animation: none; } }
/* ---------- Shopping notice: near a shop with an open list (banner, split for two shops) ---------- */
#lpBanner { position: fixed; z-index: 286; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 6px; padding: 7px 6px 8px 14px; border-radius: 16px; overflow: hidden;
  background: #fff; color: #25231F; text-align: left; border: 1px solid rgba(47,125,79,0.35); box-shadow: 0 12px 30px rgba(20,20,15,0.16); animation: ntHintIn .28s ease-out; -webkit-tap-highlight-color: transparent; }
#lpBanner.hidden { display: none; }
#lpBanner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #2F7D4F; }
.lp-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lp-q { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: #256B42; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-x { flex-shrink: 0; width: 26px; height: 26px; margin: -3px 0; border-radius: 9999px; font-size: 19px; line-height: 1; color: rgba(37,35,31,0.4); }
.lp-x:hover { background: rgba(37,35,31,0.06); color: rgba(37,35,31,0.85); }
.lp-tiles { display: flex; gap: 6px; padding-right: 2px; }
.lp-tile { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 12px; background: rgba(47,125,79,0.08); border: 1px solid rgba(47,125,79,0.16); text-align: left; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.lp-tile:hover { background: rgba(47,125,79,0.13); }
.lp-tile:active { transform: scale(0.98); }
.lp-ic { flex-shrink: 0; font-size: 20px; line-height: 1; }
.lp-txt { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.lp-t { font-size: 13.5px; line-height: 1.3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-s { font-size: 11.5px; line-height: 1.35; color: rgba(37,35,31,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chev { flex-shrink: 0; font-size: 20px; line-height: 1; color: rgba(37,35,31,0.3); }
html.dark #lpBanner { background: #2E2C28; color: #EDEAE2; }
html.dark .lp-q { color: #8BD3A6; }
html.dark .lp-tile { background: rgba(76,163,111,0.14); border-color: rgba(76,163,111,0.25); }
html.dark .lp-s, html.dark .lp-chev, html.dark .lp-x { color: rgba(237,234,226,0.55); }
@media (prefers-reduced-motion: reduce) { #lpBanner { animation: none; } }
/* ---------- Outlook: week preview & month outlook (banner + page) ---------- */
#abBanner { position: fixed; z-index: 285; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 16px)); display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 16px; overflow: hidden;
  background: #fff; color: #25231F; text-align: left; border: 1px solid color-mix(in srgb, var(--ab, var(--c-pine)) 35%, transparent); box-shadow: 0 12px 30px rgba(20,20,15,0.16); animation: ntHintIn .28s ease-out; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#abBanner.hidden { display: none; }
#abBanner:active { transform: translateX(-50%) scale(0.99); }
.ab-b-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: linear-gradient(135deg, var(--ab, var(--c-pine)) 0%, color-mix(in srgb, var(--ab, var(--c-pine)) 60%, #fff) 100%); position: relative; }
.ab-b-ic::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 9999px; background: #E5483D; border: 2px solid #fff; }
.ab-b-txt { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.ab-b-t { font-size: 13.5px; line-height: 1.3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-b-s { font-size: 11.5px; line-height: 1.35; color: rgba(37,35,31,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-b-x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9999px; font-size: 20px; line-height: 1; color: rgba(37,35,31,0.4); }
.ab-b-x:hover { background: rgba(37,35,31,0.06); color: rgba(37,35,31,0.85); }
html.dark #abBanner { background: #2E2C28; color: #EDEAE2; }
html.dark .ab-b-s, html.dark .ab-b-x { color: rgba(237,234,226,0.6); }
html.dark .ab-b-ic::after { border-color: #2E2C28; }

#abOverlay { position: fixed; inset: 0; z-index: 305; background: rgba(37,35,31,0.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 0; }
#abOverlay.hidden { display: none; }
.ab-sheet { position: relative; width: 100%; height: 100%; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--c-paper, #FFFBFB); color: #25231F; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
@media (min-width: 640px) { #abOverlay { padding: 24px; } .ab-sheet { max-width: 680px; height: auto; max-height: calc(100vh - 48px); border-radius: 22px; box-shadow: 0 24px 60px rgba(20,20,15,0.25); } }
.ab-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 9999px; font-size: 22px; line-height: 1; color: #fff; background: rgba(255,255,255,0.18); }
.ab-x:hover { background: rgba(255,255,255,0.3); }
@media (min-width: 640px) { .ab-x { top: 12px; } }
.ab-hero { position: relative; overflow: hidden; color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 22px) 20px 20px; background: linear-gradient(135deg, var(--ab, var(--c-pine)) 0%, color-mix(in srgb, var(--ab, var(--c-pine)) 62%, #000) 100%); }
.ab-hero::before, .ab-hero::after { content: ''; position: absolute; border-radius: 9999px; background: rgba(255,255,255,0.08); }
.ab-hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.ab-hero::after { width: 120px; height: 120px; right: 70px; bottom: -70px; }
.ab-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.ab-h1 { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1.15; margin: 2px 0 2px; }
.ab-hsub { font-size: 13px; opacity: .85; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.ab-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 9999px; background: rgba(255,255,255,0.16); white-space: nowrap; }
.ab-chip b { font-weight: 700; }
.ab-wrap { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .ab-wrap { padding: 18px 20px 0; } }
.ab-card { background: #fff; border: 1px solid rgba(37,35,31,0.08); border-radius: 16px; padding: 12px 14px; }
.ab-h2 { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 1.02rem; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.ab-h2 small { font-family: inherit; font-size: 11px; color: rgba(37,35,31,0.45); margin-left: auto; font-weight: 400; }
.ab-wx { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.ab-wx-d { border-radius: 12px; padding: 6px 2px; background: rgba(37,35,31,0.035); font-size: 11px; line-height: 1.3; }
.ab-wx-d .i { font-size: 20px; line-height: 1.2; display: block; }
.ab-wx-d b { font-size: 12.5px; }
.ab-wx-d span { color: rgba(37,35,31,0.45); }
.ab-wx-d.rain { background: rgba(61,90,128,0.08); }
.ab-hl { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13.5px; line-height: 1.35; }
.ab-hl + .ab-hl { border-top: 1px solid rgba(37,35,31,0.06); }
.ab-hl .i { width: 26px; text-align: center; flex-shrink: 0; font-size: 16px; }
.ab-hl small { display: block; font-size: 11.5px; color: rgba(37,35,31,0.5); }
.ab-hl .when { margin-left: auto; flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--ab-tone, rgba(37,35,31,0.55)); white-space: nowrap; }
.ab-day { padding: 10px 0; }
.ab-day + .ab-day { border-top: 1px solid rgba(37,35,31,0.07); }
.ab-day-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ab-day-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: rgba(37,35,31,0.05); flex-shrink: 0; }
.ab-day.today .ab-day-n { background: var(--c-pine); color: #fff; }
.ab-day-wd { font-size: 13.5px; font-weight: 600; text-transform: capitalize; }
.ab-day-wd small { display: block; font-weight: 400; font-size: 11px; color: rgba(37,35,31,0.45); text-transform: none; }
.ab-day-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 9999px; background: rgba(192,57,43,0.1); color: #A23126; font-weight: 600; white-space: nowrap; }
.ab-day-wx { margin-left: auto; font-size: 12px; color: rgba(37,35,31,0.55); white-space: nowrap; }
.ab-items { display: flex; flex-direction: column; gap: 4px; padding-left: 42px; }
.ab-it { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; padding: 5px 8px; border-radius: 10px; background: color-mix(in srgb, var(--c, #888) 11%, transparent); border-left: 3px solid var(--c, #888); min-width: 0; }
.ab-it.minor { font-size: 12px; padding: 3px 8px; opacity: .9; }
.ab-it .t { flex-shrink: 0; font-size: 11.5px; color: rgba(37,35,31,0.6); font-variant-numeric: tabular-nums; min-width: 40px; }
.ab-it .n { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.ab-it .who { flex-shrink: 0; font-size: 11px; color: rgba(37,35,31,0.55); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-it .amt { flex-shrink: 0; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-avas { display: inline-flex; flex-shrink: 0; }
.ab-avas > span { width: 18px; height: 18px; border-radius: 9999px; overflow: hidden; border: 1.5px solid #fff; display: inline-block; font-size: 10px; }
.ab-avas > span + span { margin-left: -6px; }
.ab-chiprow { display: flex; flex-wrap: wrap; gap: 4px; }
.ab-mini { font-size: 11.5px; padding: 3px 8px; border-radius: 9999px; background: rgba(37,35,31,0.05); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ab-free { font-size: 12px; color: rgba(37,35,31,0.4); font-style: italic; padding-left: 42px; }
.ab-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 520px) { .ab-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab-tile { border-radius: 12px; padding: 8px 10px; background: rgba(37,35,31,0.04); min-width: 0; }
.ab-tile small { display: block; font-size: 11px; color: rgba(37,35,31,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-tile b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-tile.good b { color: #2F7D4F; }
.ab-tile.bad b { color: #C0392B; }
.ab-tile.hero { background: color-mix(in srgb, var(--c-pine) 9%, transparent); }
.ab-bar { height: 6px; border-radius: 9999px; background: rgba(37,35,31,0.07); overflow: hidden; margin-top: 3px; }
.ab-bar > span { display: block; height: 100%; border-radius: 9999px; }
.ab-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; }
.ab-row + .ab-row { border-top: 1px solid rgba(37,35,31,0.06); }
.ab-row .d { flex-shrink: 0; width: 46px; font-size: 11.5px; color: rgba(37,35,31,0.5); font-variant-numeric: tabular-nums; }
.ab-row .n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-row .a { flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-row .a.in { color: #2F7D4F; }
.ab-note { font-size: 12px; line-height: 1.45; color: rgba(37,35,31,0.6); margin-top: 8px; }
.ab-note.warn { color: #9A6A00; }
.ab-kasse { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(37,35,31,0.6); text-transform: uppercase; letter-spacing: .05em; margin: 6px 2px -4px; }
.ab-kasse i { width: 10px; height: 10px; border-radius: 9999px; display: inline-block; }
.ab-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 14px; border-radius: 9999px; background: var(--c-pine); color: #fff; }
.ab-btn.ghost { background: rgba(37,35,31,0.06); color: inherit; }
.ab-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px 0 4px; }
.ab-empty { text-align: center; padding: 26px 12px; color: rgba(37,35,31,0.55); font-size: 13.5px; line-height: 1.5; }
.ab-empty .i { font-size: 34px; display: block; margin-bottom: 6px; }
.ab-load { opacity: .5; font-size: 12px; }
html.dark .ab-sheet { background: #24221F; color: #EDEAE2; }
html.dark .ab-card { background: #2E2C28; border-color: rgba(255,255,255,0.07); }
html.dark .ab-h2 small, html.dark .ab-hl small, html.dark .ab-day-wd small, html.dark .ab-day-wx, html.dark .ab-it .t, html.dark .ab-it .who,
html.dark .ab-tile small, html.dark .ab-row .d, html.dark .ab-note, html.dark .ab-free, html.dark .ab-wx-d span, html.dark .ab-empty { color: rgba(237,234,226,0.55); }
html.dark .ab-wx-d, html.dark .ab-tile, html.dark .ab-mini, html.dark .ab-day-n, html.dark .ab-btn.ghost { background: rgba(255,255,255,0.06); }
html.dark .ab-hl + .ab-hl, html.dark .ab-day + .ab-day, html.dark .ab-row + .ab-row { border-color: rgba(255,255,255,0.07); }
html.dark .ab-avas > span { border-color: #2E2C28; }
html.dark .ab-tile.good b { color: #8BD3A6; }
html.dark .ab-tile.bad b { color: #F08A85; }
html.dark .ab-row .a.in { color: #8BD3A6; }
html.dark .ab-day-tag { color: #F4A79E; background: rgba(240,138,133,0.15); }
.ab-set-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-band { position: relative; height: 92px; overflow: hidden; background: linear-gradient(135deg, var(--fz, var(--c-pine)) 0%, color-mix(in srgb, var(--fz, var(--c-pine)) 55%, #fff) 100%); }
.fam-ecg { position: absolute; left: 0; right: 0; bottom: 22px; width: 100%; height: 40px; }
.fam-ecg path { fill: none; stroke: rgba(255,255,255,0.65); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: famEcg 2.6s linear infinite; }
@keyframes famEcg { 0% { stroke-dashoffset: 420; } 70%, 100% { stroke-dashoffset: 0; } }
.fam-hero-ava { position: absolute; left: 18px; top: 50px; z-index: 1; }
.fam-hero-body { padding: 48px 16px 16px; }
.fam-list-row { display: flex; gap: 6px; align-items: center; }
.fam-list-row .fz-in { flex: 1 1 0; }
.fam-contact-row { padding: 8px; border-radius: 12px; background: rgba(37,35,31,0.03); }
.fam-x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9999px; display: grid; place-items: center; font-size: 18px; line-height: 1; color: rgba(37,35,31,0.45); }
.fam-x:hover { background: rgba(214,69,69,0.1); color: #B3302B; }
.fam-copy { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 6px 6px 10px; border-radius: 10px; background: rgba(37,35,31,0.05); }
.fam-copy code { flex: 1 1 auto; min-width: 0; font-size: 12px; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fam-steps { list-style: decimal; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; line-height: 1.45; }
.fam-emoji-row { display: flex; flex-wrap: wrap; gap: 4px; }
.fam-emoji { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; line-height: 1; display: grid; place-items: center; border: 1px solid transparent; }
.fam-emoji.active { border-color: var(--c-pine); background: color-mix(in srgb, var(--c-pine) 12%, transparent); }
.fam-pick-slot { position: relative; height: 240px; border-radius: 14px; overflow: hidden; background: #E8E4DA; }
.fam-pick-map { position: absolute; inset: 0; }
/* Card */
.fm-map { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; background: #E8E4DA; }
.fm-map:active { cursor: grabbing; }
.fm-pane { position: absolute; inset: 0; will-change: transform; }
.fm-tiles, .fm-marks { position: absolute; inset: 0; }
.fm-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; user-select: none; }
.fm-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fm-mk-wrap { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.fm-mk-wrap.is-place { pointer-events: none; }
.fm-mk { position: absolute; left: 0; top: -24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.fm-mk-ava { position: relative; width: 42px; height: 42px; border-radius: 9999px; border: 3px solid var(--fam, var(--c-pine)); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.28); }
.fm-mk-ava .fam-ava-in { font-size: 22px; }
.fm-mk-ava .fam-ava-in.ini { font-size: 16px; }
.fm-mk.live .fm-mk-ava::after { content: ''; position: absolute; inset: -6px; border-radius: 9999px; border: 3px solid #E0322B; animation: famRipple 1.6s ease-out infinite; pointer-events: none; }
.fm-mk.live .fm-mk-ava::before { content: ''; position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 9999px; background: #E0322B; border: 2px solid #fff; animation: famBlink 1.1s ease-in-out infinite; z-index: 1; }
.fm-mk.stale .fm-mk-ava { filter: grayscale(0.85); opacity: 0.8; }
.fm-mk-lbl { margin-top: 3px; margin-bottom: 2px; font-size: 11px; font-weight: 600; line-height: 1.3; background: rgba(255,255,255,0.94); color: #25231F; padding: 1px 7px; border-radius: 7px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.fm-mk.sel .fm-mk-lbl { background: var(--c-pine); color: #fff; }
.fm-place { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 20px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(255,255,255,0.9)) drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.fm-pick { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35)); }
.fm-ctrl { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.fm-ctrl button { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.95); color: #25231F; box-shadow: 0 1px 4px rgba(0,0,0,0.22); font-size: 18px; line-height: 1; display: grid; place-items: center; }
.fm-ctrl button.fm-me { background: var(--c-pine, #2F4B41); color: #fff; font-size: 17px; }
.fm-ctrl button.fm-me.hidden { display: none; }
.fm-attr { position: absolute; right: 4px; bottom: 2px; font-size: 9px; background: rgba(255,255,255,0.75); color: #333; padding: 0 4px; border-radius: 3px; z-index: 2; pointer-events: none; }
html.dark .fam-person, html.dark .fam-card, html.dark .fam-sel { background-color: #2E2C28; border-color: rgba(255,255,255,0.12); color: inherit; }
html.dark .fam-ava { box-shadow: 0 0 0 3px #2E2C28, 0 0 0 5px var(--fam, transparent); background: rgba(255,255,255,0.08); }
html.dark .fam-ava.sm { box-shadow: 0 0 0 2px #2E2C28, 0 0 0 3px var(--fam, transparent); }
html.dark .fam-ping { border-color: #2E2C28; }
html.dark .fam-sub, html.dark .fam-k { color: rgba(237,234,226,0.55); }
html.dark .fam-row + .fam-row { border-top-color: rgba(255,255,255,0.1); }
html.dark .fam-copy, html.dark .fam-contact-row { background: rgba(255,255,255,0.06); }
html.dark .fam-info { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
html.dark .fam-blood { color: #F08A85; }
