/* eagraiclainne demo — the app's own styles, ported from web/src/app.css.
   RULE: blocks are verbatim copies with source-line comments; the only
   adaptations are (a) html font-size → .app-frame (the frame, not the page,
   is the app root), (b) 100dvh → frame heights below the demo top bar,
   (c) the reduced-motion guard rescoped to the frame. Colours resolve through
   ../assets/css/app-themes.css via data-theme/data-mode on .app-frame.
   Fredoka loads here only — the site's own pages never fetch it. */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/Fredoka-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/Fredoka-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Demo chrome (site voice, not app voice) ---------- */
:root {
  --demo-band: #14382E; --demo-on-band: #F3F1E8; --demo-on-band-soft: #AFC6BB;
  --demo-topbar-h: 3.4rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--demo-band); }

.demo-topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--demo-topbar-h);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 1rem;
  padding: 0.4rem 1rem;
  background: var(--demo-band); color: var(--demo-on-band);
  font-family: "Atkinson Hyperlegible Next", sans-serif; font-size: 0.85rem;
}
.demo-topbar a { color: var(--demo-on-band); font-weight: 700; }
.demo-topbar .demo-note { color: var(--demo-on-band-soft); }
.demo-topbar .demo-controls {
  margin-left: auto; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.demo-topbar select {
  font-family: inherit; font-size: 0.85rem; font-weight: 700;
  min-height: 40px; padding: 0.25rem 0.5rem;
  border: 2px solid var(--demo-on-band-soft); border-radius: 8px;
  background: var(--demo-band); color: var(--demo-on-band); cursor: pointer;
}
.demo-topbar button.demo-mode {
  font-family: inherit; font-size: 0.8rem; font-weight: 700;
  min-height: 40px; padding: 0.25rem 0.7rem;
  border: 2px solid transparent; border-radius: 999px;
  background: transparent; color: var(--demo-on-band); cursor: pointer;
}
.demo-topbar button.demo-mode[aria-pressed="true"] {
  border-color: var(--demo-on-band);
}
.demo-topbar :focus-visible { outline: 3px solid var(--demo-on-band); outline-offset: 2px; }

/* ---------- app.css 1–65: base, rescoped to the frame ---------- */
.app-frame {
  /* adaptation (a): the frame is the app's <html> */
  font-size: calc(var(--base, 18px) * var(--text-scale, 1));
  /* v0.6.0: the whole app lives on the noticeboard — a faint pin grid
     over the surface (app.css body). */
  background:
    radial-gradient(
        color-mix(in srgb, var(--accent) 13%, transparent) 1px,
        transparent 1.3px
      )
      0 0 / 24px 24px,
    var(--surface);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", sans-serif;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s ease, color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  /* adaptation (c): app.css guards body *; here the frame is the world */
  .app-frame,
  .app-frame * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
.app-frame h1,
.app-frame h2,
.app-frame h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
.app-frame h1 { font-size: 1.9rem; letter-spacing: 0.005em; }
.icon {
  width: 1.15em; height: 1.15em;
  vertical-align: -0.2em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.app-frame a { color: var(--accent); }
.app-frame :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.app-frame button { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- app.css 66–210: app shell + tab bar ---------- */
.shell {
  min-height: calc(100dvh - var(--demo-topbar-h)); /* adaptation (b) */
  display: flex;
  flex-direction: column;
}
.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}
.shell-header .family-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.6rem;
}
.shell-header .family-name::after {
  content: "·";
  color: var(--ink-soft);
  margin-left: 0.6rem;
  font-family: "Atkinson Hyperlegible Next", sans-serif;
}
@media (max-width: 560px) {
  .shell-header .family-name { display: none; }
}
.shell-header .today-date {
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell-header .header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shell-main {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
}
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom));
  z-index: 10;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 60px;
  min-height: 48px;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}
.tab .tab-icon { width: 1.45rem; height: 1.45rem; }
/* app.css 232–239 (v0.24.2): the system mark rides in both bar shapes */
.tabbar-logo {
  flex: 0 0 auto;
  align-self: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.5rem;
}
.tab:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.tab.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
@media (min-width: 900px) {
  .shell { flex-direction: row; }
  .tabbar {
    position: sticky;
    top: var(--demo-topbar-h);                      /* adaptation (b) */
    bottom: auto;
    align-self: flex-start;
    height: calc(100dvh - var(--demo-topbar-h));    /* adaptation (b) */
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.4rem;
    border-top: none;
    border-right: 1px solid var(--line);
    padding: 1rem 0.6rem;
  }
  .tabbar-logo {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto 0.6rem;
  }
  .shell-body { flex: 1; min-width: 0; }
  .shell-main { padding-bottom: 2rem; }
  .tab { width: 100%; }
}
.shell-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---------- app.css 210–447 (subset): shared pieces ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-mode="dark"] .card {
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
}
.btn,
.btn-done,
.choice,
.profile-tile,
.tab,
.sheet-close {
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}
.btn:active,
.btn-done:active,
.choice:active,
.profile-tile:active,
.sheet-close:active {
  transform: scale(0.97);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--ink));
}
.btn-quiet {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--line);
}
.btn-quiet:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: var(--accent);
}
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.mark-sm { width: 28px; height: 28px; font-size: 0.85rem; }
.mark-lg { width: 72px; height: 72px; font-size: 2.1rem; }
.alert-danger {
  background: color-mix(in srgb, var(--danger) 12%, var(--card));
  border-left: 5px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.alert-danger .icon { color: var(--danger); }
.empty-state {
  color: var(--ink-soft);
  text-align: center;
  padding: 2.5rem 1rem;
}
.choice-row {                       /* app.css 2190–2217 */
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.choice {
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.choice:hover { border-color: var(--accent); }
.choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- app.css 2283–2310: header icon buttons (bell, mode toggle) ---------- */
.bell,
.mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.bell:hover,
.mode-toggle:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.bell svg,
.mode-toggle svg {
  width: 1.35em;
  height: 1.35em;
}

/* ---------- app.css 140–161 (v0.24.2): the header's points chip ----------
   demo-only addition: button resets, since the app renders this as a Link. */
.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0 0.2rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.points-chip .icon { color: var(--celebrate); }
.points-chip-count {
  display: inline-block;
  width: 6ch;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

/* ---------- app.css 1137–1262 (v0.24.2): my name opens a pinned note ---------- */
.me-menu {
  position: relative;
}
.me-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.me-link:hover span {
  text-decoration: underline;
}
.me-link.active span {
  color: var(--accent);
}
.me-link .me-caret {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--ink-soft);
  transition: rotate 0.18s ease;
}
.me-link .me-caret.open {
  rotate: 180deg;
}
/* The note itself: the same paper as every card, hung under the name at the
   house angle, from a pin in the member's own mark colour. Wide screens
   halve the tilt like every other pinned card. */
.me-menu-note {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 12.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.16);
  padding: 0.4rem;
  rotate: calc(-1.2deg * var(--tilt-scale, 1));
  transform-origin: top right;
  z-index: 30;
  animation: me-note-pin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 900px) {
  .me-menu-note {
    --tilt-scale: 0.5;
  }
}
.me-menu-note::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  right: 1.1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--me-pin, var(--accent));
  box-shadow:
    inset -1px -2px 2px rgb(0 0 0 / 0.25),
    0 1px 2px rgb(0 0 0 / 0.3);
}
@keyframes me-note-pin {
  from {
    opacity: 0;
    translate: 0 -6px;
    rotate: 0.6deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: calc(-1.2deg * var(--tilt-scale, 1));
  }
}
.me-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.3rem 0.65rem;
  border-radius: calc(var(--radius) - 4px);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
/* demo-only addition: the demo scopes link colour as .app-frame a, which
   outranks the single-class item rule the app relies on. */
a.me-menu-item {
  color: var(--ink);
}
/* Sign out is a button among links; dress it the same. */
button.me-menu-item {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.me-menu-item .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--ink-soft);
}
.me-menu-item:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.me-menu-item[aria-current="page"],
.me-menu-item[aria-current="page"] .icon {
  color: var(--accent);
}

/* ---------- app.css 670–829: Today board ---------- */
.today-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0 0.25rem;
}
.today-hero h1 { margin: 0; }
.today-hero-sub {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
}
.board-section { margin-top: 1.75rem; }
.board-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.board-count {
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
}
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--ink-soft);
}
.event-name { flex: 1; min-width: 0; }
.event-time {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.event-people { display: flex; gap: 0.25rem; }
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.job-card,
.reward-card {
  border-left: 4px solid var(--mark-edge, var(--line));
}

/* v0.6.0 noticeboard look: notes pinned by different hands — each small
   card hangs at its own slight angle, cycling by list position; wide
   screens halve the angle (app.css). */
.job-card,
.reward-card {
  rotate: calc(var(--tilt, 0deg) * var(--tilt-scale, 1));
}
.job-card:nth-child(4n + 1), .reward-card:nth-child(4n + 1) { --tilt: -1.2deg; }
.job-card:nth-child(4n + 2), .reward-card:nth-child(4n + 2) { --tilt: 0.9deg; }
.job-card:nth-child(4n + 3), .reward-card:nth-child(4n + 3) { --tilt: -0.5deg; }
.job-card:nth-child(4n + 4), .reward-card:nth-child(4n + 4) { --tilt: 1.6deg; }
@media (min-width: 900px) {
  .job-card,
  .reward-card { --tilt-scale: 0.5; }
}
.job-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
}
.job-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}
.badge-overdue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--danger);
  color: var(--danger);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.points-strip {
  background: var(--card);
  border: 2px solid var(--celebrate);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
}
.points-strip .icon,
.reward-strip .icon { color: var(--celebrate); }
.reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  background: var(--card);
  border: 2px solid var(--celebrate);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.reward-strip:hover { text-decoration: underline; }
/* demo-only addition: the app renders the strips as Links; the demo's
   buttons need the link's text metrics back, and its full width — a
   flex Link fills the section, a button shrink-wraps. */
button.reward-strip {
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.reward-strip-part {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ---------- app.css 829–964 (subset): Jobs page ---------- */
.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.view-toggle { margin-bottom: 0.5rem; }
.job-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
.job-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.job-deadline {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
}
.btn-done {
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.btn-done:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--ink));
}
.job-card.is-stamping {
  background: color-mix(in srgb, var(--celebrate) 20%, var(--card));
}
.job-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.job-stamp-mark {
  display: inline-grid;
  animation: stamp 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.job-stamp-mark .mark {
  width: 56px;
  height: 56px;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
}
@keyframes stamp {
  0% {
    transform: scale(2.6) rotate(-16deg);
    opacity: 0;
  }
  60% { opacity: 1; }
  100% {
    transform: scale(1) rotate(-8deg);
    opacity: 1;
  }
}
.job-done-row .event-icon {
  color: var(--accent);
  font-weight: 700;
}
.job-done-row .event-name { color: var(--ink-soft); }
.member-group-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- app.css 2099–2123: the claim moment (shared by points jobs) ---------- */
.reward-card.is-celebrating,
.job-card.is-celebrating {
  background: color-mix(in srgb, var(--celebrate) 24%, var(--card));
}
.claim-burst {
  font-size: 2.6rem;
  animation: celebrate 0.9s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}
@keyframes celebrate {
  0% {
    transform: scale(0.3) rotate(-20deg);
    opacity: 0;
  }
  45% {
    transform: scale(1.5) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ---------- app.css 2789–2835: confetti ---------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 999;
}
.confetti-piece {
  position: absolute;
  animation: confetti-path var(--dur) linear var(--delay) both;
}
@keyframes confetti-path {
  0% {
    transform: translate(0, 0);
    animation-timing-function: cubic-bezier(0.15, 0.65, 0.35, 1);
  }
  18% {
    transform: translate(var(--mx), var(--my));
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.6);
  }
  100% {
    transform: translate(var(--ex), var(--ey));
  }
}
.confetti-flake {
  display: block;
  animation: confetti-sway var(--sway) ease-in-out var(--sdelay) infinite alternate;
}
@keyframes confetti-sway {
  from {
    transform: translateX(calc(-1 * var(--amp))) rotate(var(--r1));
  }
  to {
    transform: translateX(var(--amp)) rotate(var(--r2));
  }
}

/* ---------- app.css 173–182 (v0.24.2): the colophon ---------- */
.shell-colophon {
  margin: 2.5rem 0 0;
  text-align: center;
  font-family: "Fredoka", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ---------- app.css 1452–1466 (v0.24.2): the card body opens the sheet ---------- */
.job-open {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  justify-content: center;
  border-radius: calc(var(--radius) - 4px);
}

/* ---------- app.css 2146–2158 (v0.24.2): agenda rows as buttons ---------- */
.cal-row {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
}

/* ---------- app.css 3054–3059 (v0.24.2): the ↻ marker on repeating jobs ---------- */
.job-repeat-mark {
  width: 0.95em;
  height: 0.95em;
  color: var(--ink-soft);
  flex-shrink: 0;
}

/* ---------- app.css 3613–3680 (v0.24.2): worth line + sub-task steps (ADR-0015/0025) ---------- */
.job-worth {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
}
.job-steps-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
}
.job-steps-left {
  opacity: 0.7;
  cursor: default;
  text-align: center;
}
.job-step-row {
  align-items: center;
  gap: 0.5rem;
}
.job-step-title {
  flex: 1;
  min-width: 0;
}
.job-step-done {
  color: var(--ink-soft);
  text-decoration: line-through;
}
.job-step-tick {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--celebrate);
  cursor: pointer;
}
.job-step-tick:disabled {
  cursor: default;
  opacity: 0.6;
}
.job-step-tick .job-step-unticked { opacity: 0.15; }

/* ---------- app.css 1036–1046, 570–578, 1572–1575, 1129–1133 (v0.24.2):
   link buttons + fields (the sheet's Steps label and hint) ---------- */
.link-btn {
  background: none;
  border: none;
  padding: 0.4rem 0;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field .field-label {
  font-weight: 700;
  font-size: 0.9rem;
}
.field .field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- app.css 2161–2325 (subset, v0.24.2): the sheet ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
  display: grid;
  place-items: end center;
  z-index: 20;
  animation: overlay-in 0.25s ease-out;
}
@keyframes overlay-in {
  from { background: rgb(0 0 0 / 0); }
}
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 34rem;
  max-height: 85dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.3);
  animation: sheet-up 0.25s ease-out;
}
@keyframes sheet-up {
  from { transform: translateY(2rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding: 5px 6px;
  margin: -5px -6px;
}
@media (min-width: 700px) {
  .sheet-overlay { place-items: center; }
  .sheet { border-radius: var(--radius); }
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.sheet-title {
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
}
.sheet-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.sheet-close .icon {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: initial;
}
.sheet-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.sheet-detail {
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
}

/* ---------- app.css 927–950, 2321–2338, 2446–2482, 2670–2685 (v0.24.2):
   the Family grid, the member sheet's people, and their labels ---------- */
/* Tiles wear a hint of their person's mark colour — the noticeboard thread. */
.profile-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 0.5rem;
  min-height: 8rem;
  border: 2px solid
    color-mix(in srgb, var(--tile-mark, var(--line)) 40%, var(--line));
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.profile-tile:hover {
  border-color: var(--tile-mark, var(--accent));
  background: color-mix(in srgb, var(--tile-mark, var(--accent)) 7%, var(--card));
}
.profile-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.family-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.family-birthday {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
/* Smaller tiles for tree-only members and the Remembering section. */
.family-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
}
.profile-tile-sm {
  gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  min-height: 5.75rem;
}
.profile-tile-sm .profile-name {
  font-size: 0.9rem;
}
.sheet-who {
  margin-bottom: 1rem;
}
.sheet-people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.sheet-person {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.member-detail-role {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.relation-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

/* ---------- Demo-only: the tabs-not-covered notice (site voice) ---------- */
.demo-notice {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1rem 0 0;
  border: 1.5px solid var(--celebrate);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  background: var(--card);
}
.demo-notice button {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 0 0.4rem;
}
