/* Hearth — ported from the Organic design system (design-system/styles.css)
   plus the screen styles from the Hearth handoff. Tokens first, screens after. */
@import url('https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed; --color-neutral-200: #eee7db; --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5; --color-neutral-500: #a19786; --color-neutral-600: #82796a;
  --color-neutral-700: #645c50; --color-neutral-800: #474238; --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb; --color-accent-200: #ffe1d0; --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b; --color-accent-500: #d67f48; --color-accent-600: #b2622d;
  --color-accent-700: #8c491a; --color-accent-800: #643312; --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1; --color-accent-2-200: #e1eecc; --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92; --color-accent-2-500: #8fa073; --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f; --color-accent-2-800: #3d472b; --color-accent-2-900: #272e1b;

  /* App pastels — additions to the system, one per app. */
  --app-packing: #ffdcc6; --app-groceries: #dcefc9; --app-meals: #fbe8ae;
  --app-chores: #c9e8e2;  --app-budget: #d3e3f7;    --app-birthdays: #fbd8e2;
  --app-photos: #e5dcf5;  --app-house: #ece0c8;     --app-health: #cdecd8;
  --app-trips: #ffd2cc;   --app-projects: #e6ecb8;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px; --space-2: 8.8px; --space-3: 13.2px;
  --space-4: 17.6px; --space-6: 26.4px; --space-8: 35.2px;

  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 25px; }
h4 { font-size: 20px; } h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* — buttons (system) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 999px;
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-block { width: 100%; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 14px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; border: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-btn { cursor: pointer; }
.tag-btn:hover { filter: brightness(0.96); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 60;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6); border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title { font-family: var(--font-heading); font-size: 20px; }
.dialog-body { font-size: 14px; opacity: 0.85; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ══════════════════ Hearth screens ══════════════════ */

#app { min-height: 100vh; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; }

/* Full-bleed colour bands, capped content — the mock is drawn at 1280. */
.app-header, .home-body, .packing-body, .meals-body { max-width: 1284px; margin-inline: auto; width: 100%; }
.band > * { max-width: 1200px; margin-inline: auto; }
.signin { max-width: 1280px; margin-inline: auto; width: 100%; }
.pin-screen { max-width: 1280px; margin-inline: auto; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 999px; background: var(--color-accent); flex: none; }
.brand-name { font-family: var(--font-heading); font-size: 19px; }

/* — profile picker — */
.signin { flex: 1; display: flex; }
.signin-left { flex: 1; padding: 52px 0 48px 60px; display: flex; flex-direction: column; min-width: 0; }
.signin-hero { margin-top: auto; max-width: 560px; }
.date-eyebrow { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.5; }
.signin-hero h1 { font-size: 62px; margin: 14px 0 12px; line-height: 1.02; text-wrap: balance; }
.signin-hero .sub { font-size: 17px; opacity: 0.62; max-width: 400px; margin: 0; }
.profiles { display: flex; gap: 38px; margin-top: 44px; align-items: flex-start; flex-wrap: wrap; }
.prof {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; background: none; border: 0; padding: 0;
}
.prof-name { font-family: var(--font-heading); font-size: 17px; }
.pav {
  border-radius: 999px; display: grid; place-items: center;
  font-family: var(--font-heading); color: var(--color-text);
  width: 124px; height: 124px; font-size: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(46, 43, 37, 0.14);
  background-size: cover; background-position: center;
}
.prof:hover .pav, .prof:focus-visible .pav {
  transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(46, 43, 37, 0.2);
}
.prof-add .pav { background: transparent; border: 2px dashed rgba(32, 30, 29, 0.22); box-shadow: none; font-size: 34px; }
.prof-add { opacity: 0.5; }
.prof-add .prof-name { font-family: var(--font-body); font-size: 13px; }
.signin-foot { margin-top: auto; padding-top: 40px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.signin-foot .hint { font-size: 12.5px; opacity: 0.55; }
.signin-right { width: 470px; padding: 44px; display: flex; align-items: center; position: relative; flex: none; }
.blob { position: absolute; border-radius: 999px; }
.blob-sage { top: 60px; right: 64px; width: 150px; height: 150px; background: var(--color-accent-2-200); }
.blob-peach { bottom: 74px; left: 8px; width: 86px; height: 86px; background: var(--color-accent-200); }
.signin-photo {
  position: relative; width: 100%; height: 520px;
  border-radius: 220px 220px 34px 220px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(46, 43, 37, 0.18);
}
.signin-photo img { width: 100%; height: 100%; object-fit: cover; }

/* — PIN screen — */
.pin-screen { flex: 1; display: flex; align-items: center; position: relative; }
.pin-brand { position: absolute; top: 34px; left: 60px; }
.pin-left { flex: 1; padding-left: 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.pin-left .pav { width: 150px; height: 150px; font-size: 54px; }
.pin-left h1 { font-size: 50px; margin: 0 0 6px; }
.pin-left .sub { font-size: 16px; opacity: 0.6; margin: 0; }
.pin-right { width: 520px; padding-right: 60px; display: flex; justify-content: center; flex: none; }
.keypad-panel {
  background: var(--color-surface); border-radius: 38px; padding: 34px 36px 30px;
  box-shadow: 0 12px 32px rgba(46, 43, 37, 0.16); width: 328px;
}
.pin-dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 28px; }
.pin-dot { width: 15px; height: 15px; border-radius: 999px; border: 2px solid rgba(32, 30, 29, 0.2); }
.pin-dot.filled { background: var(--color-accent); border-color: var(--color-accent); }
.pin-dots.shake { animation: pin-shake 0.4s ease; }
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.key {
  height: 66px; border-radius: 999px; background: var(--color-bg); border: 0;
  display: grid; place-items: center; font-family: var(--font-heading);
  font-size: 23px; cursor: pointer; transition: background 0.15s ease;
}
.key:hover { background: #e0cdad; }
.key-back { background: transparent; font-size: 17px; opacity: 0.55; }
.pin-foot { text-align: center; margin-top: 22px; font-size: 12px; opacity: 0.45; }
.pin-foot label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.pin-msg { text-align: center; font-size: 12.5px; min-height: 18px; margin-top: 10px; color: var(--color-accent-800); }

/* — shared app header — */
.app-header { display: flex; align-items: center; gap: 16px; padding: 18px 42px 0; }
.app-header .brand-mark { width: 24px; height: 24px; }
.app-header .brand-name { font-size: 18px; }
.app-header .date { font-size: 13px; opacity: 0.5; margin-left: auto; }
.avatar-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 15px;
  padding: 0; color: var(--color-text);
}
.member-menu {
  position: absolute; top: 58px; right: 42px; z-index: 50; min-width: 210px;
  background: var(--color-surface); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.member-menu button {
  text-align: left; background: none; border: 0; border-radius: 14px;
  padding: 9px 12px; font-size: 13.5px; cursor: pointer;
}
.member-menu button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.member-menu .menu-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; padding: 6px 12px 2px; }

/* — home — */
.home-body { padding: 26px 42px 40px; }
.home-body h1 { font-size: 44px; margin: 0 0 6px; }
.home-sub { font-size: 16px; opacity: 0.6; margin: 0 0 26px; }
.section-label { margin: 0 0 12px; opacity: 0.55; }
.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.today-card {
  border-radius: 24px; padding: 16px 18px; display: flex; gap: 14px;
  align-items: flex-start; text-decoration: none; color: inherit;
}
.tico {
  width: 34px; height: 34px; flex: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); display: grid; place-items: center;
}
.today-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.today-title { font-family: var(--font-heading); font-size: 18px; margin-top: 4px; }
.today-meta { font-size: 12px; opacity: 0.55; margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; min-height: 134px;
  padding: 15px 15px 14px; border-radius: 26px; cursor: pointer;
  text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(46, 43, 37, 0.10);
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46, 43, 37, 0.16); }
.tile .tico { width: 38px; height: 38px; }
.tile-foot { margin-top: auto; }
.tnm { font-family: var(--font-heading); font-size: 16.5px; line-height: 1.15; letter-spacing: -0.01em; }
.tmt { font-size: 11.5px; opacity: 0.6; margin-top: 3px; }
.more-apps { display: none; margin: 16px auto 0; background: none; border: 0; font-size: 12.5px; opacity: 0.55; cursor: pointer; }

/* — app band (packing / meals / generic) — */
.band { padding: 20px 42px 26px; }
.band-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.band .btn-ghost { font-size: 13px; margin-left: -4px; color: var(--color-accent-800); }
.band-avatars { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.band-avatars .pav { width: 30px; height: 30px; font-size: 13px; box-shadow: none; }
.band-title-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.band-title-row h1 { font-size: 46px; margin: 0; }
.band .tag-date { background: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.band-count { margin-left: auto; text-align: right; margin-bottom: 6px; }
.band-count .n { font-family: var(--font-heading); font-size: 22px; }
.band-count .l { font-size: 11.5px; opacity: 0.6; }
.progress { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); margin-top: 14px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--color-accent); border-radius: 999px; transition: width 0.3s ease; }

/* — packing body — */
.packing-body { display: flex; gap: 26px; padding: 26px 42px 40px; align-items: flex-start; }
.cat-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; min-width: 0; }
.cat-card { background: var(--color-surface); border-radius: 26px; padding: 18px 20px; }
.cat-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cat-name { font-family: var(--font-heading); font-size: 17px; }
.cat-count { font-size: 11.5px; opacity: 0.5; margin-left: auto; }
.pitem {
  display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 13.5px;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
}
.chk {
  width: 19px; height: 19px; flex: none; border-radius: 999px;
  border: 2px solid rgba(32, 30, 29, 0.24); display: grid; place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pitem.packed .chk { background: var(--color-accent-2-500); border-color: var(--color-accent-2-500); }
.pitem .chk svg { opacity: 0; }
.pitem.packed .chk svg { opacity: 1; }
.pitem-label { min-width: 0; }
.pitem.packed .pitem-label { opacity: 0.42; text-decoration: line-through; }
.pitem .tag { margin-left: auto; font-size: 10px; flex: none; }
.cat-more { font-size: 12.5px; opacity: 0.55; padding-top: 8px; background: none; border: 0; cursor: pointer; display: block; }
.cat-add-inline {
  width: 100%; border: 0; background: none; font-size: 13px; padding: 8px 0 2px;
  color: var(--color-text); opacity: 0.85;
}
.cat-add-inline::placeholder { color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.packing-side { width: 288px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--color-surface); border-radius: 26px; padding: 18px 20px; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; }
.fact-row .k { opacity: 0.6; }
.suggest-card { background: var(--color-accent-2-200); border-radius: 26px; padding: 18px 20px; }
.suggest-card h6 { margin: 0 0 6px; opacity: 0.6; }
.suggest-card .src { font-size: 12.5px; opacity: 0.6; margin: 0 0 12px; }
.suggest-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest-tags .tag { background: rgba(255, 255, 255, 0.7); cursor: pointer; }
.filter-row { display: none; }

/* — meals — */
.meals-band .band-title-row { margin-top: 14px; }
.week-stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.week-stepper .btn { height: 32px; border-color: rgba(32, 30, 29, 0.18); }
.week-label { font-size: 14px; opacity: 0.7; }
.meals-send { margin-left: auto; margin-bottom: 8px; height: 40px; font-size: 14px; }
.meals-body { padding: 26px 42px 40px; }
.dinner-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px 12px; }
.day-label { font-size: 12px; opacity: 0.5; }
.day-label.today { opacity: 1; color: var(--color-accent-700); font-weight: 600; }
.meal-card {
  background: var(--app-meals); border-radius: 22px; padding: 14px; min-height: 150px;
  display: flex; flex-direction: column; text-align: left; border: 0; cursor: pointer;
}
.mob-day { display: none; }
.meal-dish { font-family: var(--font-heading); font-size: 16px; line-height: 1.2; }
.meal-note { font-size: 11.5px; opacity: 0.55; margin-top: 5px; }
.meal-cook { margin-top: auto; display: flex; align-items: center; gap: 6px; }
.meal-cook .pav { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
.meal-cook span { font-size: 11px; opacity: 0.55; }
.meal-empty {
  border: 1.5px dashed rgba(32, 30, 29, 0.18); background: transparent;
  border-radius: 22px; min-height: 150px; display: grid; place-items: center;
  font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 40%, transparent);
  cursor: pointer;
}
.away-card {
  background: var(--app-packing); border-radius: 22px; padding: 18px 22px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.away-eyebrow { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.away-title { font-family: var(--font-heading); font-size: 26px; line-height: 1.1; }
.away-body { font-size: 13px; opacity: 0.6; max-width: 520px; }
.away-actions { display: flex; gap: 8px; margin-top: 8px; }
.away-actions .tag { background: rgba(255, 255, 255, 0.65); cursor: pointer; }
.lunch-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.lunch-chip {
  background: var(--color-surface); border-radius: 18px; padding: 11px 13px;
  font-size: 12.5px; border: 0; text-align: left; cursor: pointer; min-height: 41px;
}
.lunch-add {
  border: 1.5px dashed rgba(32, 30, 29, 0.18); background: transparent; border-radius: 18px;
  padding: 11px 13px; font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 40%, transparent);
  text-align: left; cursor: pointer;
}
.grocer-banner {
  display: flex; align-items: center; gap: 18px; margin-top: 26px;
  background: var(--app-groceries); border-radius: 26px; padding: 18px 22px;
}
.grocer-banner .tico { width: 38px; height: 38px; }
.grocer-title { font-family: var(--font-heading); font-size: 17px; }
.grocer-sub { font-size: 12.5px; opacity: 0.6; margin-top: 2px; }
.grocer-banner .btn { margin-left: auto; height: 38px; border-color: rgba(32, 30, 29, 0.2); flex: none; }

/* — groceries + placeholder apps — */
.simple-body { padding: 26px 42px 40px; max-width: 804px; margin-inline: auto; width: 100%; }
.glist { background: var(--color-surface); border-radius: 26px; padding: 12px 20px; }
.glist .pitem { border-bottom: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent); }
.glist .pitem:last-child { border-bottom: 0; }
.gsource { margin-left: auto; font-size: 10.5px; opacity: 0.45; flex: none; }
.gadd-row { display: flex; gap: 10px; margin: 16px 0 0; }
.empty-state { text-align: center; padding: 70px 30px; max-width: 420px; margin: 0 auto; }
.empty-state .tico { width: 54px; height: 54px; margin: 0 auto 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { opacity: 0.6; font-size: 14px; }

/* — journeys, projects, expenses, household lists — */
.dialog-wide { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }
.wchips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.wchip {
  border: 0; cursor: pointer; font-size: 12.5px; padding: 6px 13px; border-radius: 999px;
  background: var(--color-neutral-100); color: var(--color-neutral-800);
}
.wchip:hover { filter: brightness(0.96); }
.wchip.on { background: var(--color-accent); color: var(--color-bg); }
.nj-dates { display: flex; gap: 12px; }
.nj-guest-row { margin-top: 8px; }
.nj-generate { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; cursor: pointer; opacity: 0.85; }
.nj-generate input { margin-top: 3px; accent-color: var(--color-accent); }

.jcard {
  display: flex; flex-direction: column; gap: 10px; background: var(--color-surface);
  border-radius: 26px; padding: 18px 20px; margin-bottom: 14px;
  text-decoration: none; color: inherit;
}
.jcard-top { display: flex; align-items: flex-start; gap: 12px; }
.jcard-name { font-family: var(--font-heading); font-size: 20px; }
.jcard-dates { font-size: 12.5px; opacity: 0.55; margin-top: 2px; }
.jcard-avs { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.jcard-avs .pav { box-shadow: none; }
.jcard-progress { display: flex; align-items: center; gap: 12px; }
.jcard-progress .progress { flex: 1; margin-top: 0; height: 8px; }
.jcard-count { font-size: 11.5px; opacity: 0.5; flex: none; }
.jcard-actions { display: flex; gap: 10px; align-items: center; }
.proj-card { cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.exp-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent); }
.exp-row:last-child { border-bottom: 0; }
.exp-date { font-size: 11.5px; opacity: 0.5; width: 52px; flex: none; }
.exp-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-amount { font-weight: 600; flex: none; }
.exp-row .rm, .pitem-row .rm { padding: 6px 8px; }
.band-count-btn { background: none; border: 0; cursor: pointer; text-align: right; padding: 0; border-radius: 12px; }
.band-count-btn:hover { opacity: 0.8; }

.pitem-row { display: flex; align-items: center; }
.pitem-row .pitem { flex: 1; min-width: 0; }
.pitem-note { display: block; font-size: 11.5px; opacity: 0.55; margin-top: 1px; }
.pitem.packed .pitem-note { opacity: 0.35; }
.gadd-row .btn-primary { flex: none; }

@media (max-width: 700px) {
  .nj-dates { flex-direction: column; gap: 8px; }
  .gadd-row { flex-wrap: wrap; }
}

/* — toast — */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--color-neutral-900); color: var(--color-bg);
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 80;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* — loading splash — */
.splash { flex: 1; display: grid; place-items: center; opacity: 0.5; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .tile:hover, .prof:hover .pav { transform: none; }
}

/* ══════════════════ phone (≤ 700px) ══════════════════ */
@media (max-width: 700px) {
  .signin-left { padding: 74px 26px 44px; }
  .signin-hero h1 { font-size: 40px; }
  .signin-hero .sub { font-size: 15px; }
  .profiles { gap: 20px; margin-top: 38px; }
  .pav { width: 104px; height: 104px; font-size: 38px; }
  .signin-right { display: none; }

  .pin-screen { flex-direction: column; align-items: stretch; padding: 84px 26px 40px; gap: 26px; }
  .pin-brand { top: 40px; left: 26px; }
  .pin-left { padding-left: 0; gap: 16px; }
  .pin-left .pav { width: 104px; height: 104px; font-size: 38px; }
  .pin-left h1 { font-size: 36px; }
  .pin-right { width: auto; padding: 0; }
  .keypad-panel { width: 100%; max-width: 340px; margin: 0 auto; }

  .app-header { padding: 16px 20px 0; }
  .home-body { padding: 20px 20px 36px; }
  .home-body h1 { font-size: 32px; }
  .home-sub { font-size: 14px; margin-bottom: 18px; }
  .today-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .today-grid .today-card:nth-child(n+3) { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 110px; }
  .tiles:not(.expanded) .tile:nth-child(n+7) { display: none; }
  .more-apps { display: block; }
  .member-menu { right: 20px; }

  .band { padding: 16px 22px 20px; }
  .band-title-row h1 { font-size: 34px; }
  .band-count { display: none; }
  .band .tag-date { margin-bottom: 6px; }
  .packing-body { flex-direction: column; padding: 18px 22px 30px; gap: 14px; }
  .cat-grid { grid-template-columns: 1fr; width: 100%; gap: 12px; }
  .packing-side { width: 100%; }
  .filter-row { display: flex; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
  .filter-row .tag { cursor: pointer; }
  .filter-row .tag.active { background: var(--color-accent); color: var(--color-bg); }

  .meals-body { padding: 18px 22px 30px; }
  .dinner-grid, .lunch-grid { grid-template-columns: 1fr 1fr; }
  .dinner-grid .day-label { display: none; }
  .meal-card, .meal-empty, .away-card { min-height: 120px; }
  .mob-day { font-size: 11px; opacity: 0.5; margin-bottom: 4px; display: block; }
  .away-card { grid-column: 1 / -1 !important; }
  .away-title { font-size: 20px; }
  .band-title-row .meals-send { margin-left: 0; width: 100%; order: 9; }
  .grocer-banner { flex-wrap: wrap; }
  .grocer-banner .btn { margin-left: 0; }
  .simple-body { padding: 18px 22px 30px; }
}
