:root {
  color-scheme: light;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #182a1a;
  background: #faf8f3;
  --ink: #182a1a;
  --muted: #50644f;
  --line: #d7e4d4;
  --forest: #14502b;
  --lime: #e4fa8e;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
:focus-visible { outline: 3px solid #028001; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.shell { max-width: 1184px; margin-inline: auto; padding-inline: 28px; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner, .brand { display: flex; align-items: center; }
.topbar-inner { min-height: 76px; justify-content: space-between; gap: 12px; }
.brand { gap: 11px; text-decoration: none; }
.brand strong { display: block; font-size: 1.32rem; letter-spacing: -.045em; line-height: 1.12; }
.brand small { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.brand-mark, .circle-icon { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 14px; background: var(--forest); color: var(--lime); font-size: 1.55rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 12px; border: 1px solid transparent; color: var(--ink); font-weight: 670; }
.outline { background: #fff; border-color: var(--line); }
.outline:hover { background: #e9f5e6; }
.primary { background: var(--lime); border-color: #cddd84; }
.primary:hover { background: #edffa6; }
.hero { margin-top: 30px; min-height: 347px; border-radius: 27px; background: var(--forest); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero-copy { padding: 37px 42px; position: relative; z-index: 1; max-width: 580px; }
.hero-label { color: var(--lime); font-size: .92rem; font-weight: 700; margin-bottom: 13px; }
h1 { font-size: clamp(2.65rem, 6.6vw, 4.55rem); line-height: .98; letter-spacing: -.073em; font-weight: 800; }
.hero-copy > p:nth-of-type(2) { color: #e9f5e6; line-height: 1.55; max-width: 44ch; margin-block: 17px 21px; }
.hero-art { position: absolute; height: 119%; aspect-ratio: 1; right: 4%; bottom: -20%; display: grid; place-items: center; transform: rotate(-12deg); }
.plate { width: 92%; aspect-ratio: 1; border-radius: 50%; background: #028001; border: 12px solid #65ad58; box-shadow: 0 16px 0 #103d20, inset 0 0 0 15px #028001, inset 0 0 0 17px #a5d897, inset 0 0 0 39px #028001, inset 0 0 0 42px #a5d897; display: grid; place-items: center; }
.plate span { display: block; color: var(--lime); font-size: clamp(7rem, 15vw, 12.5rem); line-height: 1; transform: rotate(23deg); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 28px; margin-top: 34px; align-items: start; }
.feed-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.date { color: var(--muted); font-size: .9rem; margin-bottom: 3px; }
.date::first-letter { text-transform: uppercase; }
.feed-header h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -.055em; line-height: 1.1; }
.filters { display: flex; padding: 3px; gap: 2px; background: #e6f0e1; border-radius: 12px; }
.filters button { border: 0; background: transparent; color: #315535; padding: 7px 11px; min-height: 44px; border-radius: 9px; font-weight: 650; font-size: .9rem; }
.filters button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #20412020; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; min-width: 0; }
.post img { display: block; width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; background: #d7e4d4; }
.post-info { padding: 12px 14px; }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.author { overflow-wrap: anywhere; }
.badge { border-radius: 20px; background: #edf5e7; color: #254d26; font-size: .8rem; padding: 4px 9px; white-space: nowrap; }
.caption { color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.remove { padding: 0 3px; min-height: 44px; background: transparent; color: var(--forest); border: 0; text-decoration: underline; text-underline-offset: 3px; }
.circle-card { background: #e7f2e2; border: 1px solid #d3e5cb; padding: 20px; border-radius: 18px; }
.circle-icon { background: #fff; color: var(--forest); }
.circle-card h2 { font-size: 1.29rem; letter-spacing: -.035em; margin: 11px 0 7px; overflow-wrap: anywhere; }
.circle-card p { color: #39533c; line-height: 1.5; margin-bottom: 15px; }
.empty { grid-column: 1 / -1; padding: 25px; background: #fff; border: 1px dashed #a1b99a; border-radius: 16px; color: var(--muted); }
.footer { display: flex; gap: 12px; justify-content: space-between; color: var(--muted); font-size: .875rem; padding-block: 28px; }
#notice, .feedback { margin-block: 12px; color: #24582a; overflow-wrap: anywhere; }
dialog { width: min(464px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: #faf8f3; color: var(--ink); }
dialog::backdrop { background: #142918ab; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 1.65rem; letter-spacing: -.045em; overflow-wrap: anywhere; }
.close { flex: none; width: 44px; height: 44px; background: #e7f2e2; border: 0; border-radius: 12px; font-size: 1.5rem; }
dialog p { color: var(--muted); line-height: 1.46; }
dialog form, #invite-panel { display: grid; gap: 14px; }
dialog label { display: block; font-weight: 620; }
dialog input:not([type='radio'], [type='file']), textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #81967e; border-radius: 10px; background: #fff; color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; font-weight: 620; margin-bottom: 5px; }
.meal-choices, .photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meal-choices label { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; gap: 5px; border-radius: 10px; background: #e7f2e2; }
.meal-choices input { accent-color: var(--forest); }
.photo-box { display: grid; gap: 10px; }
.photo-box img { width: 100%; max-height: 30dvh; object-fit: contain; border-radius: 10px; background: #e7f2e2; }
.photo-actions .file-button { display: inline-flex; position: relative; cursor: pointer; flex: 1 1 150px; font-size: .92rem; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #028001; outline-offset: 3px; }
.optional { color: var(--muted); font-size: .875rem; font-weight: 400; }
@media (max-width: 850px) {
  .hero-art { right: -6%; height: 104%; }
  .layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
}
@media (max-width: 660px) {
  .shell { padding-inline: 15px; }
  .topbar-inner { min-height: 65px; }
  .hero { margin-top: 16px; min-height: 0; border-radius: 19px; }
  .hero-copy { padding: 24px 17px; }
  .hero-copy > p:nth-of-type(2) { max-width: 30ch; }
  .hero-art { height: 81%; right: -32%; bottom: -22%; opacity: .45; }
  .layout { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .feed-header { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero-art { height: 75%; right: -33%; }
}
.joined .hero { min-height: 0; background: transparent; margin-top: 16px; }
.joined .hero-copy { padding: 0; }
.joined .hero-art, .joined .hero-copy > :not(button) { display: none; }
#settings, #history-label { margin-block: 16px; }
#settings { display: grid; gap: 12px; }
#history-label { display: block; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#reminder { display: block; width: 100%; min-height: 44px; font: inherit; }
#table-name { font-size: clamp(1.7rem,4vw,2.8rem); margin-bottom: 14px; overflow-wrap: anywhere; }
.button[href] { text-decoration: none; }
.dialog-home { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); }
#private-gate { padding-block: 42px; }
#private-title { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 14px; }
#private-gate p { margin-bottom: 14px; }
#gate-setup { margin-inline-start: 8px; }
.site-signature { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; text-underline-offset: 3px; }
.site-signature img { display: block; width: 134px; height: auto; }
.invitation-page { padding-top: clamp(36px, 12vh, 112px); }
.invitation-card {
  max-width: 530px;
  margin-inline: auto;
  padding: clamp(26px, 7vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  text-align: center;
}
.invitation-icon { display: block; margin: 0 auto 16px; }
.invitation-brand { margin-bottom: 12px; color: var(--forest); font-weight: 700; }
.invitation-card h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.invitation-card h1 + p { max-width: 37ch; margin-inline: auto; color: var(--muted); line-height: 1.55; }
.invitation-footer { padding-block: 24px 32px; text-align: center; color: var(--muted); font-size: .875rem; }
#owner-access { padding-block: 42px; }
#owner-access-form { margin-top: 20px; }
.install-help { margin-top: 24px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.install-help summary { padding: 12px 0; cursor: pointer; color: var(--forest); font-weight: 650; }
.install-help p, .install-help ul { margin-block: 0 12px; color: var(--muted); line-height: 1.55; }
.install-help ul { padding-inline-start: 20px; }
.install-help li + li { margin-top: 8px; }


.topbar-inner{flex-wrap:wrap}
.idea-header{padding-block:1rem}.idea-header a{color:var(--forest);font-weight:700}
.idea-main{max-width:42rem;margin:auto;padding:0 1rem 2rem}
.idea-main h1{font-size:clamp(1.75rem,6vw,3rem);margin:1.25rem 0}
.idea-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:white}
.idea-card img{display:block;width:100%;height:auto;aspect-ratio:18/11;object-fit:cover}
.idea-copy{padding:1.25rem}.idea-copy h2{margin:0 0 1rem;line-height:1.22}
.idea-copy a{margin:.25rem .3rem .25rem 0}
