/* AUFGETISCHT – lieblich, warm, herzlich (Topf · Herzen · Karo) */
.ag-page {
  --ag-cream: #f6efe4;
  --ag-paper: #fffaf3;
  --ag-ink: #3a2718;
  --ag-muted: #6e5846;
  --ag-line: rgba(92, 58, 32, 0.14);
  --ag-tomato: #c94a3a;
  --ag-terracotta: #b85c38;
  --ag-olive: #5f7a45;
  --ag-gold: #d4a84b;
  --ag-blush: #f3d9cf;
  --ag-mint: #e8f0dc;
  --ag-check-a: #c94a3a;
  --ag-check-b: #fffaf3;
  margin: 0;
  min-height: 100vh;
  color: var(--ag-ink);
  font-family: var(--ap-font, 'Nunito Sans', system-ui, sans-serif);
  background:
    radial-gradient(ellipse 55% 35% at 85% 8%, rgba(201, 74, 58, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 0%, rgba(95, 122, 69, 0.14), transparent 55%),
    linear-gradient(180deg, #efe3d1 0%, var(--ag-cream) 42%, #e8d9c4 100%);
  -webkit-font-smoothing: antialiased;
}

.ag-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 3.5rem;
  box-sizing: border-box;
}
.ag-wrap--form { max-width: 40rem; }

.ag-top { margin-bottom: 1.35rem; }
.ag-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--ag-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}
.ag-back:hover { color: var(--ag-tomato); }

.ag-head {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--ag-line);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(243, 217, 207, 0.55)),
    var(--ag-paper);
  box-shadow:
    0 14px 32px rgba(59, 42, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ag-head::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--ag-check-a) 0 10px,
      var(--ag-check-b) 10px 20px
    );
  opacity: 0.92;
}
.ag-head__brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 0.35rem;
}
.ag-logo {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(59, 42, 28, 0.16);
  border: 2px solid rgba(255, 250, 243, 0.95);
}
.ag-kicker {
  margin: 0;
  font-family: var(--ap-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ag-tomato);
  line-height: 1.15;
}
.ag-title {
  margin: 0.05rem 0 0;
  font-size: clamp(1.55rem, 4.2vw, 2.2rem);
  letter-spacing: 0.04em;
  font-weight: 800;
  color: var(--ag-ink);
}
.ag-sub {
  margin: 0.1rem 0 0;
  color: var(--ag-olive);
  font-size: 1rem;
  font-weight: 700;
}
.ag-motto {
  margin: 0.85rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(184, 92, 56, 0.28);
  font-family: var(--ap-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ag-muted);
  line-height: 1.25;
}

.ag-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.95rem;
}
.ag-nav__link {
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
  color: var(--ag-ink);
  background: rgba(255, 250, 243, 0.85);
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(59, 42, 28, 0.04);
  transition: transform 0.15s ease, background 0.15s ease;
}
.ag-nav__link:hover { transform: translateY(-1px); }
.ag-nav__link.is-active {
  background: linear-gradient(180deg, #d45a45, var(--ag-tomato));
  border-color: #b53d2e;
  color: #fffaf3;
  box-shadow: 0 8px 16px rgba(201, 74, 58, 0.28);
}

.ag-months {
  position: relative;
  display: inline-block;
  margin: 0.25rem 0 1rem;
  max-width: 100%;
}
.ag-months__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 250, 243, 0.95);
  border: 1px solid var(--ag-line);
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ag-ink);
  user-select: none;
  box-shadow: 0 6px 14px rgba(59, 42, 28, 0.05);
}
.ag-months__summary::-webkit-details-marker { display: none; }
.ag-months__summary::after {
  content: '▾';
  color: var(--ag-tomato);
  font-size: 0.85rem;
}
.ag-months[open] .ag-months__summary::after { content: '▴'; }
.ag-months__menu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.4rem;
  padding: 0.45rem;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(59, 42, 28, 0.1);
  max-height: 18rem;
  overflow: auto;
  min-width: min(16rem, 100%);
}
.ag-months__link {
  text-decoration: none;
  color: var(--ag-ink);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.ag-months__link:hover { background: rgba(201, 74, 58, 0.1); }
.ag-months__link.is-active {
  background: var(--ag-olive);
  color: #fffaf3;
}

.ag-weekbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  background:
    linear-gradient(180deg, #fffaf3, #f7ebe3);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(59, 42, 28, 0.05);
}
@media (min-width: 720px) {
  .ag-weekbar {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}
.ag-weekbar__btn {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  color: var(--ag-ink);
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  font-size: 0.9rem;
  background: rgba(255, 250, 243, 0.9);
}
.ag-weekbar__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.ag-weekbar__center { text-align: center; }
.ag-weekbar__kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-tomato);
  font-weight: 800;
}
.ag-weekbar__title {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 800;
}
.ag-weekbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
}
.ag-weekbar__links a { color: var(--ag-terracotta); text-decoration: none; }
.ag-weekbar--footer {
  margin: 1.35rem 0 0.35rem;
}
.ag-weekbar__title--sm {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}
.ag-week__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ag-muted);
  font-weight: 800;
}

.ag-flash {
  background: var(--ag-mint);
  border: 1px solid rgba(95, 122, 69, 0.35);
  color: #3d4a28;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-weight: 700;
}
.ag-crumb a { color: var(--ag-muted); text-decoration: none; font-weight: 700; }
.ag-page-title { margin: 0.4rem 0 1rem; font-size: 1.4rem; font-weight: 800; }
.ag-muted { color: var(--ag-muted); margin-top: 0; }
.ag-link-row { margin-top: 1.25rem; }
.ag-link-row a { color: var(--ag-terracotta); font-weight: 700; }

.ag-week { margin: 1.5rem 0 2rem; }
.ag-week h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.ag-days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
}
@media (min-width: 700px) {
  .ag-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ag-days--n7 > .ag-day:last-child,
  .ag-days--n9 > .ag-day:last-child,
  .ag-days--n5 > .ag-day:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.425rem);
    justify-self: center;
    width: 100%;
  }
}
@media (min-width: 1100px) {
  .ag-days {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .ag-days > .ag-day {
    grid-column: span 3;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }
  .ag-days--n7 > .ag-day:last-child,
  .ag-days--n9 > .ag-day:last-child,
  .ag-days--n5 > .ag-day:last-child {
    grid-column: span 3;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }
  .ag-days--n7 > .ag-day:nth-child(5) { grid-column: 3 / span 3; }
  .ag-days--n7 > .ag-day:nth-child(6) { grid-column: 6 / span 3; }
  .ag-days--n7 > .ag-day:nth-child(7) { grid-column: 9 / span 3; }
  .ag-days--n5 > .ag-day:nth-child(5) { grid-column: 5 / span 3; }
  .ag-days--n9 > .ag-day:nth-child(9) { grid-column: 5 / span 3; }
  .ag-days--n10 > .ag-day:nth-child(9) { grid-column: 4 / span 3; }
  .ag-days--n10 > .ag-day:nth-child(10) { grid-column: 7 / span 3; }
}

.ag-day {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  scroll-margin-top: 1.25rem;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: 0 10px 22px rgba(59, 42, 28, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ag-day__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.ag-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(59, 42, 28, 0.09);
}
.ag-day.is-cooked {
  border-color: rgba(95, 122, 69, 0.5);
  background:
    linear-gradient(180deg, #f7fbee, #fffaf3);
}
.ag-day.is-cooked::after {
  content: '♡';
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  color: var(--ag-tomato);
  font-size: 1rem;
  opacity: 0.85;
}
.ag-day__when {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ag-muted);
  font-weight: 800;
}
.ag-day__name { margin: 0 0 0.55rem; font-size: 1.08rem; line-height: 1.3; font-weight: 800; }
.ag-day__name a {
  color: var(--ag-terracotta);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.ag-day__name a:hover { color: var(--ag-tomato); }
.ag-day__line { margin: 0.18rem 0; font-size: 0.93rem; }
.ag-day__line span {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--ag-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.ag-day__kcal, .ag-day__prep {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ag-muted);
}
.ag-stars {
  margin: 0.5rem 0 0;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  line-height: 1;
}
.ag-star { color: rgba(92, 58, 32, 0.2); }
.ag-star.is-on { color: var(--ag-gold); text-shadow: 0 1px 0 rgba(184, 92, 56, 0.15); }
.ag-stars-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin: 0.65rem 0 0;
}
.ag-stars-rate__label {
  margin-right: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-muted);
  font-weight: 800;
}
.ag-star-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.2rem;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: rgba(92, 58, 32, 0.22);
  cursor: pointer;
  transition: transform 0.12s ease, color 0.12s ease;
}
.ag-star-btn:hover,
.ag-star-btn:focus-visible {
  transform: scale(1.18);
  color: var(--ag-gold);
  outline: none;
}
.ag-star-btn.is-on {
  color: var(--ag-gold);
  text-shadow: 0 1px 0 rgba(184, 92, 56, 0.18);
}
.ag-stars-edit {
  border: 1px solid var(--ag-line);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  margin: 0 0 0.85rem;
  background: #fff8f2;
}
.ag-stars-edit legend {
  padding: 0 0.25rem;
  font-weight: 800;
}
.ag-stars-edit__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}
.ag-stars-edit__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.ag-stars-edit__opt .ag-stars { margin: 0; }
.ag-recipe__meta {
  margin: 0.15rem 0 0;
  color: var(--ag-muted);
  font-size: 0.9rem;
}

.ag-day__status {
  display: inline-block;
  margin: 0.65rem 0.5rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-olive);
}
.ag-day__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  width: 100%;
}
.ag-day__actions .ag-btn { margin-top: 0; }
.ag-day__move-form {
  display: inline;
  margin: 0;
}
.ag-move-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--ag-line);
  background: #fff;
  color: var(--ag-ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.ag-move-btn:hover:not(.is-disabled) {
  border-color: var(--ag-olive);
  color: var(--ag-olive);
  background: #f7faf4;
}
.ag-move-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}
.ag-day.is-empty {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(212, 90, 69, 0.08), transparent 55%),
    linear-gradient(180deg, #fff8f2, #f7f4ec);
  border-style: dashed;
  border-color: rgba(201, 74, 58, 0.28);
}
.ag-day.is-empty .ag-day__name {
  color: var(--ag-tomato);
  font-weight: 800;
}
.ag-day__saying {
  margin: 0.55rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 74, 58, 0.12);
  font-size: 1.02rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ag-ink);
}

.ag-btn {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--ag-line);
  background: #fff;
  color: var(--ag-ink);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ag-btn--solid {
  background: linear-gradient(180deg, #d45a45, var(--ag-tomato));
  border-color: #b53d2e;
  color: #fffaf3;
  box-shadow: 0 6px 14px rgba(201, 74, 58, 0.22);
}

.ag-recipes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 700px) {
  .ag-recipes { grid-template-columns: 1fr 1fr; }
}
.ag-recipe {
  display: block;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(59, 42, 28, 0.05);
  transition: transform 0.15s ease;
}
.ag-recipe:hover { transform: translateY(-2px); }
.ag-recipe.is-tested { border-color: rgba(95, 122, 69, 0.5); }
.ag-recipe.is-fav {
  border-color: rgba(201, 74, 58, 0.45);
  background: linear-gradient(180deg, #fff4ef, #fffaf3);
}
.ag-recipe h2 { margin: 0.35rem 0 0.3rem; font-size: 1.08rem; font-weight: 800; }
.ag-recipe__line, .ag-recipe__meta {
  margin: 0.15rem 0 0;
  color: var(--ag-muted);
  font-size: 0.9rem;
}
.ag-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-olive);
  font-weight: 800;
}

.ag-form, .ag-status {
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(59, 42, 28, 0.04);
}
.ag-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--ag-muted);
  font-weight: 700;
}
.ag-form input,
.ag-form textarea,
.ag-form select {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  box-sizing: border-box;
  border: 1px solid var(--ag-line);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ag-ink);
  background: #fff;
}
.ag-status p { margin-top: 0; }

.ag-snapshot {
  background: var(--ag-mint);
  border: 1px solid rgba(95, 122, 69, 0.35);
  border-radius: 16px;
  padding: 0.95rem 1.05rem;
  margin-bottom: 1rem;
}
.ag-snapshot h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 800; }
.ag-snapshot p { margin: 0 0 0.7rem; color: var(--ag-muted); font-size: 0.9rem; }
.ag-snapshot dl { margin: 0; }
.ag-snapshot div { margin: 0.25rem 0; }
.ag-snapshot dt {
  display: inline;
  color: var(--ag-muted);
  font-size: 0.82rem;
  margin-right: 0.4rem;
  font-weight: 700;
}
.ag-snapshot dd { display: inline; margin: 0; }

.ag-wrap--shop { max-width: 48rem; }
.ag-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 0.75rem;
  align-items: end;
}
.ag-shop-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--ag-muted);
  font-weight: 700;
}
.ag-shop-filters select {
  border: 1px solid var(--ag-line);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--ag-ink);
  font-weight: 700;
}
.ag-shop-span {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ag-line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: end;
  background: rgba(255, 250, 243, 0.65);
}
.ag-shop-span legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ag-ink);
}
.ag-shop-section {
  margin-top: 1.1rem;
}
.ag-shop-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 850;
}
.ag-shop-section--frisch .ag-shop-section__title {
  color: var(--ag-olive);
}
.ag-shop-section--vorrat .ag-shop-section__title {
  color: var(--ag-terracotta);
}
.ag-shop-weeks {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(95, 122, 69, 0.14);
  color: var(--ag-olive);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ag-shop-block {
  position: relative;
  overflow: hidden;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: 1.1rem;
  margin: 1.25rem 0;
  box-shadow: 0 10px 24px rgba(59, 42, 28, 0.05);
}
.ag-shop-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--ag-check-a) 0 8px,
      var(--ag-check-b) 8px 16px
    );
}
.ag-shop-block > * { position: relative; }
.ag-shop-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}
.ag-shop-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.ag-shop-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-top: 1px dashed rgba(92, 58, 32, 0.12);
}
.ag-shop-item.is-checked .ag-shop-text strong,
.ag-shop-item.is-checked .ag-shop-edit input[name="name"] {
  text-decoration: line-through;
  color: var(--ag-muted);
}
.ag-check {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  border: 1px solid var(--ag-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--ag-olive);
  font-weight: 800;
  padding: 0;
  flex: 0 0 auto;
}
.ag-shop-text { flex: 1 1 12rem; min-width: 0; }
.ag-shop-text strong { font-size: 0.98rem; }
.ag-shop-count {
  margin-left: 0.35rem;
  color: var(--ag-muted);
  font-size: 0.85rem;
}
.ag-shop-qty {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--ag-tomato);
  font-size: 0.88rem;
  font-weight: 800;
}
.ag-shop-group { margin-top: 1rem; }
.ag-shop-group:first-of-type { margin-top: 0.5rem; }
.ag-shop-group__title {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-olive);
  font-weight: 800;
}
.ag-shop-group .ag-shop-list { margin-top: 0.25rem; }
.ag-shop-dishes {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--ag-muted);
}
.ag-shop-edit, .ag-shop-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 14rem;
  align-items: center;
}
.ag-shop-edit input, .ag-shop-add input {
  flex: 1 1 8rem;
  border: 1px solid var(--ag-line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.ag-shop-add {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(92, 58, 32, 0.14);
}
.ag-shop-add label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--ag-muted);
  flex: 1 1 10rem;
  font-weight: 700;
}
.ag-shop-missing {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: #f7ebe0;
  border: 1px solid rgba(184, 92, 56, 0.25);
}
.ag-shop-missing h3 { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 800; }
.ag-shop-missing ul { margin: 0; padding-left: 1.1rem; color: var(--ag-muted); font-size: 0.88rem; }

@media (max-width: 640px) {
  .ag-nav { flex-direction: column; }
  .ag-head__brand { align-items: flex-start; }
  .ag-logo { width: 3.85rem; height: 3.85rem; }
}

.ag-logout{margin-top:.5rem}
.ag-logout .ag-back{background:none;border:0;cursor:pointer;padding:0;font:inherit}

.ag-family {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (min-width: 700px) {
  .ag-family { grid-template-columns: 1fr 1fr; }
}
.ag-family__card {
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 22px rgba(59, 42, 28, 0.05);
}
.ag-family__card.is-online {
  border-color: rgba(95, 122, 69, 0.55);
  background: linear-gradient(180deg, #f7fbee, #fffaf3);
}
.ag-family__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ag-family__you {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--ag-tomato);
  color: #fffaf3;
  font-weight: 800;
}
.ag-family__user {
  margin: 0.2rem 0 0;
  color: var(--ag-muted);
  font-size: 0.9rem;
}
.ag-family__status {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ag-olive);
}
.ag-family__card:not(.is-online) .ag-family__status {
  color: var(--ag-muted);
  font-weight: 600;
}
