:root {
  --bg: #f3efe6;
  --bg-deep: #e7dfd1;
  --ink: #1c2a24;
  --ink-soft: #5a6b63;
  --panel: rgba(255, 252, 247, 0.88);
  --accent: #1f4d3a;
  --accent-2: #c45c26;
  --line: rgba(28, 42, 36, 0.12);
  --shadow: 0 24px 60px rgba(28, 42, 36, 0.12);
  --radius: 24px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(31, 77, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(196, 92, 38, 0.12), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, var(--bg) 45%, var(--bg-deep) 100%);
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #f7f3ea;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-lg {
  padding: 0.9rem 1.35rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.open-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: #f7f3ea;
  overflow: hidden;
}

.open-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.open-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 32, 26, 0.55) 0%, rgba(16, 32, 26, 0.28) 42%, rgba(16, 32, 26, 0.72) 100%);
}

.open-nav,
.open-hero-copy {
  position: relative;
  z-index: 1;
}

.open-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.brand--light,
.nav-link--light {
  color: #f7f3ea;
}

.open-hero-copy {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 10vh 0 6rem;
  display: grid;
  align-content: end;
  gap: 0.75rem;
  animation: rise 800ms ease both;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.open-hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  line-height: 1.15;
}

.open-hero-copy .lede {
  margin: 0.25rem 0 0.5rem;
  max-width: 28ch;
  color: rgba(247, 243, 234, 0.9);
}

.btn-light {
  background: rgba(255, 255, 255, 0.16);
  color: #f7f3ea;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.trust-line--light {
  color: rgba(247, 243, 234, 0.82);
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.auth-layout--compact .auth-photo p {
  display: none;
}

@media (max-width: 900px) {
  .open-hero-copy {
    padding-top: 18vh;
  }

  .auth-layout,
  .auth-layout--compact {
    grid-template-columns: 1fr;
  }

  /* Form first on phones so Sign in is immediately usable */
  .auth-layout--compact .auth-card {
    order: -1;
  }

  .auth-layout--compact .auth-photo {
    min-height: 18vh;
    max-height: 22vh;
  }

  .auth-layout--compact .auth-photo img {
    min-height: 18vh;
    max-height: 22vh;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 3rem;
  }

  .auth-form input {
    font-size: 16px; /* prevents iOS zoom */
    min-height: 48px;
  }

  .btn-lg {
    min-height: 52px;
  }

  .auth-error {
    margin: 0 0 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fdecec;
    border: 1px solid #f3b4b0;
    color: #7a1c16;
    font-weight: 600;
  }
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.5rem auto 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  min-height: min(78vh, 720px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0.25rem;
  animation: rise 700ms ease both;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
}

.hero h1,
.app-title,
.features h2,
.pricing h2,
.lifestyle-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  max-width: none;
}

.hero-subhead {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 22ch;
}

.trust-line {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.how {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  text-align: center;
}

.how h2,
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1.2rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.how-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.how-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #f7f3ea;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.how-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

.how-cta,
.final-cta {
  margin-top: 1.4rem;
}

.final-cta {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  box-shadow: var(--shadow);
}

.btn-on-dark {
  background: #f7f3ea;
  color: var(--accent);
  margin-top: 0.75rem;
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  z-index: 40;
}

.invite-card {
  background: rgba(31, 77, 58, 0.08);
  border: 1px solid rgba(31, 77, 58, 0.16);
  border-radius: 18px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.invite-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.invite-url-line {
  font-size: 0.88rem;
  word-break: break-all;
  color: var(--ink-soft);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.invite-message {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  margin: 0.35rem 0 0.55rem;
  resize: vertical;
}

.linkish {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 0.35rem;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: block;
  }

  .page-landing {
    padding-bottom: 5.5rem;
  }
}

.lede {
  margin: 1rem 0 1.5rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 900ms ease both;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(28, 42, 36, 0.35));
}

.photo-strip {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.photo-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--shadow);
  animation: rise 800ms ease both;
}

.photo-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.photo-strip figure:hover img {
  transform: scale(1.04);
}

.photo-strip figcaption {
  padding: 0.85rem 1rem 1rem;
  font-weight: 600;
  background: var(--panel);
}

.features {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.feature h2 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.feature p,
.section-sub,
.hint,
.auth-sub {
  color: var(--ink-soft);
}

.lifestyle-band {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}

.lifestyle-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.lifestyle-copy {
  background: #1f4d3a;
  color: #f7f3ea;
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.lifestyle-copy p {
  margin: 0;
  opacity: 0.9;
}

.pricing {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  text-align: center;
}

.pricing h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.price-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.price-card--featured {
  border-color: rgba(31, 77, 58, 0.35);
  box-shadow: var(--shadow);
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0;
}

.install {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.install-icon {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  margin: 0 auto 0.85rem;
  display: block;
  box-shadow: 0 10px 24px rgba(31, 77, 58, 0.2);
}

.install h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.install-steps {
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  max-width: 28rem;
}

.install-steps li {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(31, 77, 58, 0.06);
  color: var(--ink-soft);
}

.install-steps strong {
  color: var(--accent);
}

.price span {
  font-size: 1rem;
  color: var(--ink-soft);
}

.price-card ul {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
}

.page-auth {
  min-height: 100vh;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-photo {
  position: relative;
  min-height: 280px;
}

.auth-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100vh;
}

.auth-photo p {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 2rem;
  margin: 0;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.auth-card--solo {
  min-height: 100vh;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0.2rem 0;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-form input,
.inline-form input,
.chore-form input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.soft-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}

.flash-wrap {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(520px, calc(100% - 2rem));
}

.flash {
  margin: 0 0 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.flash--error {
  border-left: 4px solid #b42318;
}

.flash--ok {
  border-left: 4px solid var(--accent);
}

.auth-error {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fdecec;
  border: 1px solid #f3b4b0;
  color: #7a1c16;
  font-weight: 600;
}

.page-app {
  width: min(980px, calc(100% - 1.5rem));
  margin: 0 auto 3rem;
}

body.page-app {
  overflow-x: clip;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1.25rem 0 0.75rem;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chore-groups {
  display: grid;
  gap: 0.85rem;
}

.chore-group {
  position: relative;
  border: 0;
  border-radius: 20px;
  padding: 0.95rem 1rem 0.55rem;
  overflow: hidden;
  box-shadow:
    0 12px 26px rgba(28, 42, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.chore-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--chore-accent, var(--accent));
}

.chore-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  padding-left: 0.35rem;
}

.chore-group-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.chore-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.chore-color-pick {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.chore-color-swatch {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(28, 42, 36, 0.18);
  padding: 0;
  cursor: pointer;
}

.chore-color-swatch.is-active {
  box-shadow:
    0 0 0 2px rgba(28, 42, 36, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: scale(1.12);
}

.chore-swatch-blue { background: #4f8fd6; }
.chore-swatch-sky { background: #6eb8e6; }
.chore-swatch-pink { background: #e07aa0; }
.chore-swatch-rose { background: #f0a0b8; }
.chore-swatch-green { background: #3f8f6e; }
.chore-swatch-teal { background: #3f97ad; }
.chore-swatch-gold { background: #d0a12e; }
.chore-swatch-coral { background: #d96b45; }

.chore-person-blue {
  --chore-tint: linear-gradient(145deg, #d9ebff, #b7d7fb);
  --chore-fill: #c8e0ff;
  --chore-ink: #1d4f86;
  --chore-accent: #3b7fc4;
  --chore-soft: rgba(59, 127, 196, 0.16);
}
.chore-person-sky {
  --chore-tint: linear-gradient(145deg, #dff4ff, #b5e2f7);
  --chore-fill: #c8ecfb;
  --chore-ink: #1d5f7a;
  --chore-accent: #4aa3c8;
  --chore-soft: rgba(74, 163, 200, 0.16);
}
.chore-person-pink {
  --chore-tint: linear-gradient(145deg, #ffe0ec, #ffc2d7);
  --chore-fill: #ffd0e2;
  --chore-ink: #8a2f52;
  --chore-accent: #e07aa0;
  --chore-soft: rgba(224, 122, 160, 0.16);
}
.chore-person-rose {
  --chore-tint: linear-gradient(145deg, #ffe8f1, #ffd0e4);
  --chore-fill: #ffe0ec;
  --chore-ink: #9a3a5e;
  --chore-accent: #eb91b3;
  --chore-soft: rgba(235, 145, 179, 0.16);
}
.chore-person-green {
  --chore-tint: linear-gradient(145deg, #dff7ea, #bfead3);
  --chore-fill: #c8eed9;
  --chore-ink: #1f4d3a;
  --chore-accent: #2f8f63;
  --chore-soft: rgba(47, 143, 99, 0.14);
}
.chore-person-teal {
  --chore-tint: linear-gradient(145deg, #dff3f8, #bfe4ef);
  --chore-fill: #c8eaf1;
  --chore-ink: #1d5a6b;
  --chore-accent: #3f97ad;
  --chore-soft: rgba(63, 151, 173, 0.14);
}
.chore-person-gold {
  --chore-tint: linear-gradient(145deg, #fff0c8, #ffe29a);
  --chore-fill: #ffe9b0;
  --chore-ink: #6b5200;
  --chore-accent: #d0a12e;
  --chore-soft: rgba(208, 161, 46, 0.16);
}
.chore-person-coral {
  --chore-tint: linear-gradient(145deg, #ffe7d6, #ffd0b0);
  --chore-fill: #ffd9bf;
  --chore-ink: #8a3b12;
  --chore-accent: #d96b45;
  --chore-soft: rgba(217, 107, 69, 0.14);
}
.chore-person-neutral {
  --chore-tint: linear-gradient(145deg, #efeae2, #e2dbd0);
  --chore-fill: #ebe4da;
  --chore-ink: #5a6b63;
  --chore-accent: #8a7f70;
  --chore-soft: rgba(90, 107, 99, 0.12);
}

.chore-group.chore-person-blue,
.chore-group.chore-person-sky,
.chore-group.chore-person-pink,
.chore-group.chore-person-rose,
.chore-group.chore-person-green,
.chore-group.chore-person-teal,
.chore-group.chore-person-gold,
.chore-group.chore-person-coral,
.chore-group.chore-person-neutral {
  background: var(--chore-tint);
}

.chore-group.chore-person-blue .chore-group-name,
.chore-group.chore-person-sky .chore-group-name,
.chore-group.chore-person-pink .chore-group-name,
.chore-group.chore-person-rose .chore-group-name,
.chore-group.chore-person-green .chore-group-name,
.chore-group.chore-person-teal .chore-group-name,
.chore-group.chore-person-gold .chore-group-name,
.chore-group.chore-person-coral .chore-group-name,
.chore-group.chore-person-neutral .chore-group-name {
  color: var(--chore-ink);
}

.chore-group.chore-person-blue .chore-group-count,
.chore-group.chore-person-sky .chore-group-count,
.chore-group.chore-person-pink .chore-group-count,
.chore-group.chore-person-rose .chore-group-count,
.chore-group.chore-person-green .chore-group-count,
.chore-group.chore-person-teal .chore-group-count,
.chore-group.chore-person-gold .chore-group-count,
.chore-group.chore-person-coral .chore-group-count,
.chore-group.chore-person-neutral .chore-group-count {
  background: var(--chore-soft);
  color: var(--chore-ink);
}

.chore-group .chore-group-list li {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(28, 42, 36, 0.08);
  border-radius: 12px;
  margin-bottom: 0.35rem;
}

.chore-group .item-check {
  color: var(--chore-accent, var(--accent));
}

.grocery-print-sheet {
  display: none;
}

.chore-print-calendar {
  display: none;
}

.chore-group-count {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(28, 42, 36, 0.06);
}

#panel-chores .chore-form {
  padding: 0.85rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(126, 191, 154, 0.16), rgba(240, 160, 122, 0.14));
  border: 1px solid rgba(28, 42, 36, 0.08);
  margin-bottom: 1rem;
}

.chore-print-box,
.print-only {
  display: none;
}

.app-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.app-top-actions {
  display: flex;
  gap: 0.8rem;
}

.banner {
  background: rgba(31, 77, 58, 0.1);
  border: 1px solid rgba(31, 77, 58, 0.18);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.banner--warn {
  background: rgba(196, 92, 38, 0.12);
  border-color: rgba(196, 92, 38, 0.25);
}

.app-hero-band {
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0.9rem;
  aspect-ratio: 3 / 1;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: #d7cfc0;
  isolation: isolate;
}

.app-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 42, 36, 0.06),
    transparent 50%,
    rgba(28, 42, 36, 0.1)
  );
  pointer-events: none;
  z-index: 1;
}

.app-hero-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 160ms ease;
}

.app-hero-band img.is-fading {
  opacity: 0;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tab.is-active {
  background: var(--accent);
  color: #f7f3ea;
  border-color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  animation: rise 400ms ease both;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.panel-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.6rem;
}

.panel-thumb {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
}

.grocery-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.35fr);
  gap: 1rem;
  align-items: start;
}

.grocery-side {
  display: grid;
  gap: 0.85rem;
}

.grocery-add-form {
  margin-bottom: 0;
}

.grocery-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.15rem 1.1rem 1.2rem;
  color: #f7f3ea;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(145deg, #1f4d3a 0%, #2a6b4f 48%, #c45c26 140%);
  box-shadow: 0 18px 40px rgba(31, 77, 58, 0.22);
  min-height: 180px;
}

.grocery-side-card::after {
  content: "🛒";
  position: absolute;
  right: 0.55rem;
  bottom: 0.2rem;
  font-size: 3.4rem;
  opacity: 0.22;
  transform: rotate(-8deg);
  pointer-events: none;
}

.grocery-side-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.grocery-side-title {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.grocery-side-copy {
  margin: 0;
  max-width: 18rem;
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0.9;
}

.grocery-side-count {
  display: inline-flex;
  margin: 0.9rem 0 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
}

.grocery-main {
  min-width: 0;
}

.grocery-item-list {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 0.15rem;
}

.grocery-item-list .grocery-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(196, 92, 38, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.88));
  box-shadow: 0 8px 22px rgba(28, 42, 36, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.grocery-item-list .grocery-row:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 92, 38, 0.28);
  box-shadow: 0 12px 28px rgba(28, 42, 36, 0.08);
}

.grocery-item-list .grocery-row.is-done {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.55);
}

.grocery-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 8px;
  border: 1.75px solid #c45c26;
  background: #fff;
  color: #c45c26;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.grocery-row.is-done .grocery-check {
  background: #c45c26;
  color: #fffaf2;
}

.grocery-row-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 1.5rem;
  text-align: center;
}

.grocery-row-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.grocery-row-body .item-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.grocery-row-aisle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f4d3a;
  opacity: 0.75;
}

.grocery-empty {
  border-radius: 16px;
  border: 1px dashed var(--line);
  padding: 1.1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 820px) {
  .grocery-layout {
    grid-template-columns: 1fr;
  }

  .grocery-item-list {
    max-height: none;
  }
}

.inline-form,
.chore-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.chore-form {
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.75fr auto;
}

.chore-form select,
.reminder-form select,
.reminder-form input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.schedule-form {
  grid-template-columns: 0.7fr 1fr 0.7fr 0.55fr 0.55fr auto;
  align-items: start;
}

.schedule-form .schedule-weekdays {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  padding: 0.35rem 0.15rem 0.15rem;
}

.schedule-form .schedule-weekdays label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.88rem;
  color: var(--ink-soft, #5a6b63);
}

.schedule-form #schedule-notes {
  grid-column: 1 / -2;
}

.schedule-print-section-label {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f4d3a;
}

.reminder-form {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr auto;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.notify-enable {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.notify-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  min-width: min(100%, 18rem);
  flex: 1 1 16rem;
}

.notify-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.notify-toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 1.55rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: rgba(28, 42, 36, 0.18);
  transition: background 0.15s ease;
}

.notify-toggle-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(28, 42, 36, 0.2);
  transition: transform 0.15s ease;
}

.notify-toggle input:checked + .notify-toggle-ui {
  background: var(--accent);
}

.notify-toggle input:checked + .notify-toggle-ui::after {
  transform: translateX(1.15rem);
}

.notify-toggle input:focus-visible + .notify-toggle-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notify-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.notify-toggle-copy strong {
  font-size: 0.95rem;
}

.notify-toggle-copy .hint {
  margin: 0;
}

.notify-enable .btn {
  flex: 0 0 auto;
}

.reminder-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 42, 36, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.reminder-popup[hidden] {
  display: none !important;
}

.reminder-popup-card {
  width: min(420px, 100%);
  background: #fffdf8;
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.reminder-popup-card ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.item-list,
.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.item-list li,
.people-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.item-list li.is-done .item-title {
  text-decoration: line-through;
  color: var(--ink-soft);
}

.item-check,
.item-remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--accent);
}

.item-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.meals-week,
.meals-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.meals-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.meal-day-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 7.4rem;
  padding: 0.85rem 0.7rem 0.75rem;
  border: 0;
  border-radius: 18px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #1c2a24;
  overflow: hidden;
  box-shadow:
    0 12px 26px rgba(28, 42, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.meal-day-btn::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.meal-day-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 16px 32px rgba(28, 42, 36, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.meal-day-btn:active {
  transform: translateY(-1px);
}

.meal-day-btn.is-open {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px rgba(28, 42, 36, 0.18),
    0 18px 34px rgba(28, 42, 36, 0.18);
  filter: saturate(1.08);
}

.meal-day-tone-0 {
  background: linear-gradient(160deg, #7ebf9a 0%, #3f8f6e 55%, #2f6f55 100%);
  color: #f4fff8;
}

.meal-day-tone-1 {
  background: linear-gradient(160deg, #f0a07a 0%, #d96b45 55%, #b84d2e 100%);
  color: #fff7f2;
}

.meal-day-tone-2 {
  background: linear-gradient(160deg, #7ec8d4 0%, #3f97ad 55%, #2b7388 100%);
  color: #f3fcff;
}

.meal-day-tone-3 {
  background: linear-gradient(160deg, #e7c46a 0%, #d0a12e 55%, #b07f12 100%);
  color: #fffaf0;
}

.meal-day-tone-4 {
  background: linear-gradient(160deg, #e089a8 0%, #c45c7a 55%, #9e3f5c 100%);
  color: #fff5f8;
}

.meal-day-tone-5 {
  background: linear-gradient(160deg, #7aa6e8 0%, #4578c8 55%, #2f5ba0 100%);
  color: #f4f8ff;
}

.meal-day-tone-6 {
  background: linear-gradient(160deg, #efa07a 0%, #d46a4a 40%, #a84538 100%);
  color: #fff6f2;
}

.meal-day-kicker {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.meal-day-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.1rem 0 0.15rem;
}

.meal-day-name {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
}

.meal-day-preview {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.92;
}

.meal-day-preview.is-empty {
  opacity: 0.75;
  font-weight: 500;
}

.meal-day-count {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(28, 42, 36, 0.2);
  color: inherit;
}

.meals-week-journal {
  min-height: 0;
}

.meal-day-panel {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(28, 42, 36, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 243, 234, 0.92));
  box-shadow: 0 16px 36px rgba(28, 42, 36, 0.1);
  animation: rise 280ms ease both;
}

.meal-day-panel.is-open {
  display: flex;
}

.meal-day-panel.meal-day-tone-0 {
  border-top: 5px solid #3f8f6e;
}
.meal-day-panel.meal-day-tone-1 {
  border-top: 5px solid #d96b45;
}
.meal-day-panel.meal-day-tone-2 {
  border-top: 5px solid #3f97ad;
}
.meal-day-panel.meal-day-tone-3 {
  border-top: 5px solid #d0a12e;
}
.meal-day-panel.meal-day-tone-4 {
  border-top: 5px solid #c45c7a;
}
.meal-day-panel.meal-day-tone-5 {
  border-top: 5px solid #4578c8;
}
.meal-day-panel.meal-day-tone-6 {
  border-top: 5px solid #d46a4a;
}

.meal-day-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meal-day-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.meal-day-panel-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.meal-day-slots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meal-cell {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meal-cell-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meal-cell-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meal-cell-input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.1rem 0;
  outline: none;
}

.meal-cell-input::placeholder {
  color: var(--ink-soft);
  font-weight: 600;
  opacity: 0.75;
}

.meal-cell-input:focus {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.meal-cell-input.is-saving {
  opacity: 0.65;
}

.meal-cell-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.meal-cell-details {
  border: 0;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(31, 77, 58, 0.1);
  color: var(--accent);
}

.meal-cell-details:hover {
  background: rgba(31, 77, 58, 0.16);
}

.meal-cell-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.meal-cue {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  background: rgba(31, 77, 58, 0.1);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
}

.meal-editor {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 42, 36, 0.45);
  display: grid;
  align-items: end;
  padding: 0;
}

.meal-editor[hidden] {
  display: none;
}

.meal-editor-card {
  background: #f7f3ea;
  border-radius: 24px 24px 0 0;
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.75rem;
  box-shadow: var(--shadow);
  width: min(640px, 100%);
  margin: 0 auto;
}

.meal-editor-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.meal-editor-form {
  display: grid;
  gap: 0.75rem;
}

.meal-editor-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.meal-editor-form input[type="text"],
.meal-editor-form input[type="url"] {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  min-height: 48px;
}

.meal-editor-open-link {
  font-weight: 700;
  text-decoration: none;
}

.meal-ingredients-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.meal-ingredients-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.meal-ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.meal-ingredient-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.4rem;
  align-items: center;
}

.meal-ingredient-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
}

.meal-ingredient-row input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  min-height: 44px;
  width: 100%;
}

.meal-ingredient-row .qty {
  max-width: 5.5rem;
}

.meal-ingredient-row .item-remove {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0.25rem 0.4rem;
}

.meal-editor-actions {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .meal-editor {
    align-items: center;
    padding: 1.5rem;
  }

  .meal-editor-card {
    border-radius: 24px;
    max-height: min(85vh, 820px);
  }

  .meal-editor-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.invite-box {
  background: rgba(31, 77, 58, 0.08);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.invite-code {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  margin: 0.35rem 0;
}

.people-list li {
  grid-template-columns: 1fr;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reset-box {
  background: rgba(31, 77, 58, 0.1);
  border: 1px solid rgba(31, 77, 58, 0.2);
  border-radius: 16px;
  padding: 1rem;
  margin: 0.5rem 0 1rem;
  word-break: break-all;
}

.reset-box--ready {
  background: rgba(31, 77, 58, 0.14);
  border-width: 2px;
}

.reset-ready-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.reset-link {
  font-weight: 700;
}

.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.admin-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-card--wide {
  grid-column: 1 / -1;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-table a {
  color: var(--accent);
  word-break: break-all;
}

.admin-send-form textarea {
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.admin-send-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}

.admin-message-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.admin-message-log__item {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(31, 77, 58, 0.06);
  border: 1px solid var(--line);
}

.admin-message-log__item--failed {
  background: rgba(196, 92, 40, 0.08);
  border-color: rgba(196, 92, 40, 0.25);
}

.admin-message-log__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.admin-message-log__subject {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.account-card--photo {
  padding: 0;
  overflow: hidden;
}

.account-card--photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.account-card--photo > div {
  padding: 1.2rem;
}

.stack-form {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.plain-list {
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .photo-strip,
  .features,
  .lifestyle-band,
  .price-grid,
  .auth-layout,
  .account-grid,
  .chore-form,
  .schedule-form,
  .reminder-form {
    grid-template-columns: 1fr;
  }

  .auth-photo img {
    min-height: 240px;
  }

  .meals-week,
  .meals-grid {
    overflow-x: visible;
  }

  .meals-week-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .meal-day-btn {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
    padding: 0.9rem 1rem;
  }

  .meal-day-btn::before {
    width: 4.5rem;
    height: 4.5rem;
  }

  .meal-day-kicker {
    order: 1;
  }

  .meal-day-num {
    order: 2;
    font-size: 1.55rem;
    margin: 0;
  }

  .meal-day-name {
    order: 3;
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
  }

  .meal-day-preview {
    order: 5;
    flex: 1 1 100%;
    margin-top: 0.15rem;
    padding-top: 0;
    -webkit-line-clamp: 1;
  }

  .meal-day-count {
    order: 4;
    position: static;
    margin-left: auto;
  }

  .meal-day-preview {
    max-width: none;
  }

  .hero {
    min-height: unset;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0.25in;
  }

  html,
  body {
    height: 100%;
  }

  body {
    background: #fffaf2 !important;
    color: #1c2a24;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.printing-chores {
    overflow: hidden !important;
  }

  body.printing-work,
  body.printing-combined {
    overflow: hidden !important;
  }

  body.printing-groceries {
    overflow: hidden !important;
  }

  .flash-wrap,
  .site-nav,
  .tabs,
  .no-print,
  .panel-thumb,
  .panel-head-actions,
  .app-top-actions,
  .app-hero-band,
  .banner,
  .auth-photo,
  .mobile-cta,
  .panel-head,
  #reminder-popup,
  #meal-editor,
  #panel-meals,
  #panel-reminders,
  #panel-people {
    display: none !important;
  }

  /* Styled calendar print hides the on-screen chore list */
  body.printing-chores .chore-groups {
    display: none !important;
  }

  body.printing-chores #panel-groceries,
  body.printing-chores #panel-schedule,
  body.printing-groceries #panel-chores,
  body.printing-groceries #panel-schedule,
  body.printing-work #panel-groceries,
  body.printing-work #panel-chores,
  body.printing-combined #panel-groceries,
  body.printing-combined #panel-chores {
    display: none !important;
  }

  body.printing-chores #panel-chores,
  body.printing-groceries #panel-groceries,
  body.printing-work #panel-schedule,
  body.printing-combined #panel-schedule,
  body:not(.printing-chores):not(.printing-groceries):not(.printing-work):not(.printing-combined) #panel-chores.is-active {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.printing-work .schedule-groups,
  body.printing-combined .schedule-groups {
    display: none !important;
  }

  body.printing-chores #grocery-list,
  body.printing-groceries #grocery-list {
    display: none !important;
  }

  .page-app {
    width: 100%;
    margin: 0;
    max-width: none;
    padding: 0 !important;
  }

  .app-top {
    display: none !important;
  }

  body.printing-chores .chore-print-calendar,
  body.printing-chores .chore-print-calendar.print-only,
  body.printing-chores .chore-print-calendar[hidden] {
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 0.1in);
    max-height: 7.5in;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.printing-work .schedule-print-calendar,
  body.printing-work .schedule-print-calendar.print-only,
  body.printing-work .schedule-print-calendar[hidden],
  body.printing-combined .schedule-print-calendar,
  body.printing-combined .schedule-print-calendar.print-only,
  body.printing-combined .schedule-print-calendar[hidden] {
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 0.1in);
    max-height: 7.5in;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.printing-chores-week .chore-print-calendar {
    height: calc(100vh - 0.1in);
    max-height: 7.5in;
    overflow: hidden;
  }

  .chore-cal-header {
    text-align: center;
    margin-bottom: 0.15rem;
    flex: 0 0 auto;
  }

  .chore-cal-kicker {
    margin: 0;
    font-weight: 700;
    color: #1f4d3a;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
  }

  .chore-cal-title {
    margin: 0.05rem 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.15;
    color: #1c2a24;
  }

  .chore-cal-sub {
    margin: 0;
    color: #5a6b63;
    font-size: 0.72rem;
  }

  .chore-cal-quote {
    margin: 0.12rem 0 0;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 600;
    color: #1f4d3a;
    line-height: 1.15;
  }

  .chore-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    margin: 0.2rem 0 0.3rem;
    flex: 0 0 auto;
  }

  .chore-cal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--chore-fill, var(--chore-tint));
    color: var(--chore-ink);
    border: 1px solid color-mix(in srgb, var(--chore-accent) 40%, white);
  }

  .chore-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(var(--week-rows, 5), minmax(0, 1fr));
    gap: 0.15rem;
    flex: 1 1 auto;
    min-height: 0;
  }

  .chore-cal-dow {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #1f4d3a;
    padding: 0.05rem;
    line-height: 1.1;
  }

  .chore-cal-day {
    min-height: 0;
    height: 100%;
    border: 1.25px solid #d7cfc0;
    border-radius: 7px;
    padding: 0.15rem 0.18rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 242, 0.9));
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .chore-cal-day.is-empty {
    background: #f3efe6;
    border-style: dashed;
    opacity: 0.55;
  }

  .chore-cal-daynum {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: #1f4d3a;
    margin-bottom: 0.08rem;
    line-height: 1;
  }

  .chore-cal-entry {
    display: grid;
    grid-template-columns: 0.55rem 1fr;
    gap: 0.18rem;
    align-items: start;
    font-size: 0.55rem;
    line-height: 1.15;
    margin-bottom: 0.1rem;
    padding: 0.08rem 0.12rem;
    border-radius: 4px;
    background: var(--chore-fill, #ebe4da);
    color: var(--chore-ink);
  }

  .chore-cal-check {
    width: 0.5rem;
    height: 0.5rem;
    border: 1.25px solid var(--chore-accent);
    border-radius: 2px;
    margin-top: 0.05rem;
    background: white;
    display: inline-block;
  }

  .chore-cal-entry-text {
    font-weight: 700;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .chore-cal-more {
    font-size: 0.5rem;
    color: #5a6b63;
    font-weight: 700;
  }

  .chore-cal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.12rem;
    margin-top: 0.2rem;
    padding-top: 0.15rem;
    border-top: 1px solid #d7cfc0;
    text-align: center;
    font-size: 0.62rem;
    color: #5a6b63;
    flex: 0 0 auto;
  }

  .chore-cal-footer-home {
    font-weight: 800;
    color: #1f4d3a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .chore-cal-footer-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    color: #1f4d3a;
  }

  .chore-week-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.28rem;
    flex: 1 1 auto;
    min-height: 0;
  }

  .chore-week-cal-day {
    min-height: 0;
    height: 100%;
    border: 1.5px solid #d7cfc0;
    border-radius: 10px;
    padding: 0.35rem 0.3rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.92));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .chore-week-cal-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #e5ddd0;
    padding-bottom: 0.2rem;
  }

  .chore-week-cal-dow {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1f4d3a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .chore-week-cal-day .chore-cal-daynum {
    font-size: 1.05rem;
    margin: 0;
  }

  .chore-week-cal-day .chore-cal-entry {
    font-size: 0.68rem;
    grid-template-columns: 0.7rem 1fr;
    padding: 0.18rem 0.22rem;
    margin-bottom: 0.12rem;
  }

  .chore-week-cal-day .chore-cal-check {
    width: 0.62rem;
    height: 0.62rem;
    margin-top: 0.1rem;
  }

  .chore-week-cal-empty {
    margin: 0.35rem 0 0;
    font-size: 0.7rem;
    color: #8a7f70;
    font-style: italic;
  }

  .print-only:not(.chore-print-calendar):not(.grocery-print-sheet):not(.schedule-print-calendar),
  .chore-print-box {
    display: none !important;
  }
}

@page grocery-sheet {
  size: portrait;
  margin: 0.45in;
}

body.printing-groceries {
  page: grocery-sheet;
}

@media print {
  body.printing-groceries .grocery-print-sheet,
  body.printing-groceries .grocery-print-sheet.print-only,
  body.printing-groceries .grocery-print-sheet[hidden] {
    display: block !important;
  }

  .grocery-sheet {
    font-family: var(--font-body);
    color: #1c2a24;
    background:
      radial-gradient(ellipse 70% 45% at 0% 0%, rgba(196, 92, 38, 0.1), transparent 55%),
      radial-gradient(ellipse 55% 40% at 100% 100%, rgba(31, 77, 58, 0.1), transparent 50%),
      linear-gradient(180deg, #fffaf2, #f4eee3);
    border: 1.75px solid #d2c7b4;
    border-radius: 20px;
    padding: 0.7rem;
    min-height: 9.4in;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .grocery-sheet::before {
    content: "";
    position: absolute;
    inset: 0.28rem;
    border: 1px dashed rgba(196, 92, 38, 0.3);
    border-radius: 16px;
    pointer-events: none;
  }

  .grocery-sheet-layout,
  .grocery-sheet-footer {
    position: relative;
    z-index: 1;
  }

  .grocery-sheet-layout {
    display: grid;
    grid-template-columns: 2.35in 1fr;
    gap: 0.7rem;
    flex: 1 1 auto;
    min-height: 0;
  }

  .grocery-sheet-aside {
    border-radius: 16px;
    padding: 0.95rem 0.85rem 1rem;
    color: #fffaf2;
    background:
      radial-gradient(ellipse 90% 70% at 110% -10%, rgba(255, 255, 255, 0.2), transparent 45%),
      linear-gradient(160deg, #1f4d3a 0%, #2f6a50 52%, #c45c26 125%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .grocery-sheet-brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.92;
  }

  .grocery-sheet-kicker {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
  }

  .grocery-sheet-title {
    margin: 0.35rem 0 0.15rem;
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1.05;
  }

  .grocery-sheet-tagline {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.25;
    opacity: 0.95;
  }

  .grocery-sheet-date {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.88;
  }

  .grocery-sheet-stats {
    margin-top: auto;
    padding-top: 0.85rem;
    display: grid;
    gap: 0.1rem;
  }

  .grocery-sheet-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
  }

  .grocery-sheet-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  .grocery-sheet-aside-note {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    opacity: 0.8;
  }

  .grocery-sheet-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .grocery-sheet-main-label {
    margin: 0.1rem 0 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c45c26;
  }

  .grocery-sheet-body {
    display: grid;
    gap: 0.55rem;
  }

  .grocery-sheet-aisle {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(28, 42, 36, 0.1);
    border-radius: 14px;
    padding: 0.45rem 0.5rem 0.55rem;
  }

  .grocery-sheet-aisle-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
  }

  .grocery-sheet-aisle-mark {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #c45c26;
    box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.15);
  }

  .grocery-sheet-aisle-title {
    margin: 0;
    flex: 1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f4d3a;
  }

  .grocery-sheet-aisle-count {
    min-width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(31, 77, 58, 0.12);
    color: #1f4d3a;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .grocery-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.28rem 0.45rem;
  }

  .grocery-sheet-item {
    display: grid;
    grid-template-columns: 0.85rem 1.1rem 1fr;
    gap: 0.35rem;
    align-items: center;
    padding: 0.32rem 0.4rem;
    border-radius: 10px;
    background: rgba(255, 252, 247, 0.95);
    border: 1px solid rgba(28, 42, 36, 0.1);
    box-shadow: 0 4px 10px rgba(28, 42, 36, 0.04);
  }

  .grocery-sheet-item.is-done .grocery-sheet-name {
    text-decoration: line-through;
    opacity: 0.55;
  }

  .grocery-sheet-check {
    width: 0.75rem;
    height: 0.75rem;
    border: 1.75px solid #c45c26;
    border-radius: 3px;
    background: #fff;
  }

  .grocery-sheet-icon {
    font-size: 0.98rem;
    line-height: 1;
  }

  .grocery-sheet-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1c2a24;
  }

  .grocery-sheet-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(28, 42, 36, 0.12);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.82rem;
    color: #5a6b63;
  }

  .grocery-sheet-footer-dot {
    color: #c45c26;
  }
}
