.photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.photo-card { display:block; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--surface); text-decoration:none; }
.photo-card img { width:100%; height:240px; object-fit:cover; }
.photo-card-copy { padding:22px; overflow-wrap:anywhere; }
.photo-card-copy p { margin-bottom:12px; }
.photo-placeholder,.memory-cover { min-height:200px; display:flex; align-items:center; justify-content:center; padding:25px; background:var(--sage); color:var(--forest); text-align:center; }
.memory-cover { font-size:4rem; background:var(--sand); }
.photo-display { margin:0; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:16px; text-align:center; }
.photo-display img { display:block; max-width:100%; max-height:75vh; margin:auto; object-fit:contain; }
.photo-display figcaption { padding:20px 0 0; color:var(--muted); }
.memory-hero { display:flex; align-items:center; gap:40px; padding:32px; background:#f2ecdf; border-radius:22px; }
.memory-hero>img { max-width:38%; max-height:420px; object-fit:contain; border-radius:12px; }
.memory-hero>div { flex:1; }
@media(max-width:991px) { .photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { .photo-grid { grid-template-columns:1fr; } .memory-hero { flex-direction:column; padding:24px; gap:24px; } .memory-hero>img { max-width:100%; } .photo-display { padding:12px; } }
:root {
  --paper:#faf8f2;
  --surface:#fffefb;
  --forest:#244d42;
  --forest-deep:#183c32;
  --ink:#283e35;
  --muted:#6c746b;
  --line:#dfe3d7;
  --coral:#b46348;
  --sage:#e7eddf;
  --sand:#f3e7d9;
  --bs-primary:#244d42;
  --bs-body-color:#283e35;
  --bs-body-bg:#faf8f2
}
* {
  box-sizing:border-box
}
body {
  font-family:"Segoe UI",system-ui,sans-serif;
  line-height:1.6
}
h1,h2,h3,.brand {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  letter-spacing:-.035em;
  color:var(--forest-deep)
}
h1 {
  font-size:clamp(2.5rem,5vw,4.2rem);
  line-height:1.08
}
h2 {
  font-size:1.9rem;
  line-height:1.2
}
h3 {
  font-size:1.6rem
}
a {
  color:var(--forest);
  text-underline-offset:4px
}
a:hover {
  color:var(--forest-deep)
}
button,input,select,textarea {
  font:inherit
}
.container {
  max-width:1280px;
  padding-left:32px;
  padding-right:32px
}
.site-header {
  border-bottom:1px solid var(--line);
  background:var(--paper)
}
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:110px;
  gap:24px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-size:1.55rem;
  white-space:nowrap;
  line-height:1.25
}
.brand small {
  display:block;
  font-family:"Segoe UI",sans-serif;
  font-size:.67rem;
  letter-spacing:.1em;
  color:var(--muted);
  margin-top:5px
}
.brand-mark {
  font-size:3.1rem;
  color:var(--forest)
}
.primary-nav {
  display:flex;
  align-items:center;
  gap:20px;
  font-size:.86rem
}
.primary-nav a {
  text-decoration:none;
  white-space:nowrap;
  padding:8px 0
}
.primary-nav a[aria-current=page] {
  box-shadow:0 2px var(--forest)
}
.primary-nav form {
  margin:0
}
.admin-link {
  font-size:.75rem;
  border:1px solid var(--line);
  padding:6px 10px!important;
  border-radius:20px
}
.nav-logout,.text-button {
  background:none;
  border:0;
  padding:0;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:4px
}
.menu-toggle {
  display:none
}
.main-content {
  min-height:calc(100vh - 235px);
  padding-top:38px;
  padding-bottom:65px
}
.site-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:24px;
  padding-bottom:24px;
  color:var(--muted);
  font-size:.8rem
}
.site-footer>div {
  display:flex;
  align-items:center;
  gap:18px
}
.private-label {
  border:1px solid var(--line);
  border-radius:30px;
  padding:3px 10px;
  font-size:.7rem
}
.eyebrow {
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--coral);
  margin-bottom:18px
}
.welcome-hero {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  min-height:540px;
  gap:30px;
  align-items:center;
  margin-bottom:65px
}
.hero-copy h1 {
  font-size:clamp(3.4rem,5.8vw,5.4rem);
  line-height:1.02;
  margin-bottom:28px
}
.hero-copy h1 em,.login-story em {
  color:var(--coral);
  font-weight:400
}
.hero-copy>p:not(.eyebrow) {
  max-width:450px;
  color:var(--muted);
  font-size:1rem;
  margin-bottom:30px
}
.button-row {
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap
}
.btn {
  border-radius:9px;
  font-size:.88rem;
  padding:12px 20px;
  font-weight:600
}
.btn-primary {
  --bs-btn-bg:var(--forest);
  --bs-btn-border-color:var(--forest);
  --bs-btn-hover-bg:var(--forest-deep);
  --bs-btn-hover-border-color:var(--forest-deep);
  --bs-btn-active-bg:var(--forest-deep);
  --bs-btn-active-border-color:var(--forest-deep)
}
.btn-outline-primary {
  --bs-btn-color:var(--forest);
  --bs-btn-border-color:#b9c7bb;
  --bs-btn-hover-bg:var(--forest);
  --bs-btn-hover-border-color:var(--forest);
  --bs-btn-active-bg:var(--forest)
}
.quiet-link {
  font-weight:600;
  font-size:.85rem;
  text-decoration:none
}
.hero-garden {
  position:relative;
  border-radius:48% 48% 42% 42%;
  height:480px;
  background:#e8eddf;
  overflow:hidden;
  isolation:isolate
}
.garden-orbit {
  position:absolute;
  border:1px solid #cdd9c5;
  border-radius:50%;
  z-index:-1
}
.orbit-one {
  width:440px;
  height:440px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%)
}
.orbit-two {
  width:330px;
  height:330px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%)
}
.garden-tree {
  height:93%;
  width:100%;
  overflow:visible
}
.garden-tree path {
  fill:none;
  stroke:#7d9178;
  stroke-width:5;
  stroke-linecap:round
}
.garden-tree ellipse {
  fill:#97ac85
}
.garden-tree ellipse:nth-of-type(2) {
  fill:#c39b70
}
.garden-tree ellipse:nth-of-type(3) {
  fill:#b37052
}
.garden-tree circle {
  fill:var(--forest)
}
.garden-caption {
  position:absolute;
  bottom:30px;
  left:0;
  width:100%;
  text-align:center;
  font-family:Georgia,serif;
  font-style:italic;
  color:var(--forest);
  line-height:1.35
}
.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px
}
.section-heading h2 {
  margin:0
}
.section-heading .eyebrow {
  margin-bottom:10px
}
.count-note {
  font-size:.8rem;
  color:var(--muted)
}
.feature-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px
}
.feature-card {
  display:block;
  position:relative;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:18px;
  padding:30px;
  text-decoration:none;
  color:var(--ink);
  transition:transform .15s,border-color .15s
}
.feature-card[href]:hover {
  transform:translateY(-3px);
  border-color:#9cafa0
}
.feature-card p {
  font-size:.9rem;
  color:var(--muted);
  margin:16px 0 24px
}
.feature-card h2 {
  font-size:1.55rem
}
.feature-card h3 {
  margin-top:25px
}
.feature-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:var(--sage);
  border-radius:50%;
  font-size:1.6rem;
  color:var(--forest)
}
.warm-card {
  background:#f7eee5;
  border-color:#eadbc8
}
.warm-card .feature-icon {
  background:#ebdccb;
  color:var(--coral)
}
.muted-card {
  background:#eff0e8
}
.card-link {
  font-size:.8rem;
  font-weight:600
}
.small-tag {
  font-size:.65rem;
  letter-spacing:.06em;
  border:1px solid #c6cebd;
  border-radius:30px;
  padding:4px 10px;
  position:absolute;
  right:25px;
  top:30px
}
.empty-panel {
  padding:42px;
  border:1px dashed #bccbbd;
  border-radius:18px;
  text-align:center;
  background:#f0f3e9;
  margin-top:30px
}
.empty-panel p {
  color:var(--muted);
  max-width:580px;
  margin:14px auto 22px
}
.spacious {
  padding:80px 30px;
  margin:35px auto;
  max-width:850px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:center;
  margin:15px 0 35px
}
.page-heading .eyebrow {
  margin-bottom:12px
}
.page-heading p:not(.eyebrow) {
  color:var(--muted);
  margin:14px 0 0
}
.form-card {
  background:var(--surface);
  padding:34px;
  border:1px solid var(--line);
  border-radius:18px
}
.narrow-form {
  max-width:600px
}
.form-label {
  font-size:.88rem;
  font-weight:600
}
.form-control,.form-select {
  background-color:#fffefb;
  border-color:#cbd3c7;
  border-radius:8px;
  min-height:46px;
  color:var(--ink)
}
.form-control:focus,.form-select:focus {
  border-color:#6b8975;
  box-shadow:0 0 0 .2rem #244d421c
}
.form-check-input:checked {
  background-color:var(--forest);
  border-color:var(--forest)
}
.form-check-label,.form-text {
  font-size:.82rem
}
.validation-summary {
  color:#973d31;
  font-size:.87rem
}
.validation-summary-valid {
  display:none
}
.validation-summary ul {
  padding-left:20px
}
.input-validation-error {
  border-color:#b65a44
}
.form-actions {
  display:flex;
  gap:12px;
  margin-top:32px;
  padding-top:26px;
  border-top:1px solid var(--line)
}
.person-form {
  max-width:900px
}
.historical-date {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 2fr;
  gap:15px;
  max-width:680px;
  align-items:center
}
.historical-date>.form-check {
  margin-top:24px;
  margin-left:8px
}
legend {
  font-family:Georgia,serif;
  font-size:1.3rem;
  margin-bottom:15px
}
.search-bar {
  display:flex;
  gap:12px;
  align-items:center;
  max-width:700px;
  margin-bottom:30px
}
.search-bar .quiet-link {
  padding:5px
}
.people-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}
.person-card {
  display:flex;
  gap:18px;
  align-items:center;
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  padding:24px;
  position:relative
}
.person-card:hover {
  border-color:#94a791;
  background:#f4f6ef
}
.person-card h2 {
  font-size:1.4rem;
  margin-bottom:5px;
  overflow-wrap:anywhere
}
.person-card p {
  font-size:.8rem;
  color:var(--muted);
  margin-bottom:8px
}
.person-arrow {
  position:absolute;
  top:12px;
  right:14px;
  color:#84927f
}
.avatar {
  position:relative;
  overflow:hidden;
  width:60px;
  height:60px;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--sage);
  color:var(--forest);
  font-family:Georgia,serif;
  font-size:1.3rem
}
.avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.avatar img[hidden] { display:none; }
.tree-portrait { margin-bottom:18px; }
.event-cover { margin:24px 0; border-radius:22px; overflow:hidden; background:var(--sage); }
.event-cover img { display:block; width:100%; height:clamp(180px,32vw,420px); object-fit:cover; }
.event-cover[hidden], .event-card-cover[hidden] { display:none; }
.event-card-cover { margin-bottom:20px; border-radius:12px; overflow:hidden; background:var(--sage); }
.event-card-cover img { display:block; width:100%; height:170px; object-fit:cover; }
.visual-photo-options { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:16px; }
.visual-photo-option { display:flex; flex-direction:column; gap:12px; padding:16px; border:1px solid var(--line); border-radius:16px; cursor:pointer; overflow-wrap:anywhere; }
.visual-photo-option:has(input:checked) { border:2px solid var(--forest); background:#edf3e9; }
.visual-photo-option input { align-self:flex-start; width:20px; height:20px; accent-color:var(--forest); }
.visual-photo-option img { width:100%; height:150px; object-fit:cover; border-radius:10px; }
.visual-photo-option img[hidden] { display:none; }
.memorial-avatar {
  background:var(--sand);
  color:#8c523f;
  border:2px solid #b68c76
}
.large-avatar {
  width:110px;
  height:110px;
  font-size:2.3rem
}
.status-chip,.memory-chip {
  display:inline-block;
  font-size:.65rem;
  border:1px solid #d6dbd1;
  color:#646d62;
  border-radius:20px;
  padding:2px 8px;
  margin-right:4px;
  margin-top:3px
}
.active-chip {
  background:var(--sage);
  color:var(--forest);
  border-color:#b6c8ae
}
.memory-chip {
  background:#f7ede4;
  color:#905a43;
  border-color:#dfc4af
}
.back-link {
  font-size:.84rem;
  text-decoration:none;
  display:inline-block;
  margin-bottom:10px
}
.profile-hero {
  display:flex;
  align-items:center;
  gap:28px;
  padding:30px 0 40px;
  border-bottom:1px solid var(--line);
  margin-bottom:30px
}
.profile-hero h1 {
  font-size:clamp(2.3rem,4vw,3.5rem);
  overflow-wrap:anywhere
}
.profile-hero .eyebrow {
  margin-bottom:10px
}
.profile-hero>div {
  flex:1
}
.profile-columns {
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:25px
}
.profile-facts {
  display:grid;
  grid-template-columns:130px 1fr;
  font-size:.9rem;
  margin:24px 0
}
.profile-facts dt {
  color:var(--muted);
  font-weight:400
}
.preserve-lines {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.compact {
  align-items:center
}
.compact h2 {
  font-size:1.6rem
}
.relationship-row {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:14px;
  border-top:1px solid var(--line);
  padding:20px 0
}
.kinship-list {
  list-style:none;
  padding:0;
  margin:16px 0 0
}
.completion-person h2 {
  font-size:1.35rem
}
.completion-fields {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:20px;
  margin-top:20px
}
.completion-fields legend {
  font-size:1rem
}
.completion-fields input[readonly] {
  background:var(--sage);
  color:var(--muted)
}
.kinship-list li {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:2px 16px;
  border-top:1px solid var(--line);
  padding:8px 0;
  font-size:.88rem
}
.kinship-list a {
  font-weight:600;
  overflow-wrap:anywhere
}
.kinship-list span {
  color:var(--muted);
  font-size:.8rem
}
.relationship-management {
  margin-top:20px;
  font-size:.85rem
}
.relationship-management summary {
  cursor:pointer;
  color:var(--muted)
}
.relationship-row:last-child {
  padding-bottom:0
}
.relationship-row p {
  font-size:.8rem;
  margin:5px 0;
  color:var(--muted)
}
.relationship-row small {
  font-size:.75rem;
  color:var(--muted)
}
.relationship-row a {
  font-weight:600
}
.danger-link {
  color:#a44938;
  font-size:.75rem
}
.reading-column {
  max-width:740px;
  margin:20px auto
}
.reading-column h2 {
  font-size:1.6rem;
  margin:35px 0 15px
}
.login-layout {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:80px;
  align-items:center;
  min-height:650px;
  max-width:1080px;
  margin:auto
}
.login-story h1 {
  font-size:clamp(2.7rem,4.7vw,4.3rem);
  line-height:1.1
}
.login-story>p:not(.eyebrow) {
  color:var(--muted);
  max-width:370px;
  margin-top:25px
}
.login-leaf {
  font-size:5rem;
  color:#9bad8d;
  margin-top:15px
}
.login-card {
  padding:40px
}
.login-card h2 {
  font-size:2rem
}
.login-help {
  font-size:.77rem;
  color:var(--muted);
  margin:25px 0 0;
  padding-top:22px;
  border-top:1px solid var(--line)
}
.admin-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin:0 0 35px
}
.admin-stats>div {
  padding:25px;
  background:var(--sage);
  border-radius:14px
}
.admin-stats strong {
  display:block;
  font-family:Georgia,serif;
  font-size:2.3rem;
  font-weight:400
}
.admin-stats span {
  font-size:.8rem;
  color:var(--muted)
}
body.tree-page {
  display:flex;
  flex-direction:column;
  height:100vh;
  height:100dvh;
  overflow:hidden
}
.tree-page .site-header,.tree-page .site-footer {
  flex-shrink:0
}
.tree-page .header-inner {
  min-height:76px
}
.tree-page .site-footer {
  flex-direction:row;
  align-items:center;
  padding-top:8px;
  padding-bottom:8px
}
#main.tree-main {
  flex:1;
  min-height:0;
  position:relative;
  isolation:isolate;
  overflow:hidden
}
.tree-main>.alert {
  position:absolute;
  top:12px;
  left:25%;
  right:25%;
  z-index:6
}
.tree-page .tree-workspace {
  position:absolute;
  inset:0;
  display:block;
  min-height:0;
  border:0;
  border-radius:0;
  overflow:hidden;
  background:var(--surface)
}
.tree-page #family-tree {
  width:100%;
  height:100%;
  min-width:0;
  background-color:#f3f5ed;
  background-image:radial-gradient(#ced8c6 1px,transparent 1px);
  background-size:24px 24px;
  touch-action:none
}
.tree-page .tree-toolbar {
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  z-index:3;
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:12px;
  margin:0;
  pointer-events:none
}
.tree-summary,.tree-actions,.tree-page .tree-selection,.tree-help {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 3px 16px #244d4212;
  pointer-events:auto
}
.tree-summary {
  width:min(340px,42vw);
  padding:12px 16px
}
.tree-summary h1 {
  font-size:1.15rem;
  line-height:1.25;
  margin:0;
  overflow-wrap:anywhere
}
.tree-status {
  color:var(--muted);
  font-size:.73rem;
  margin:4px 0
}
.tree-finder {
  font-size:.8rem
}
.tree-finder summary,.tree-help summary {
  cursor:pointer;
  color:var(--forest)
}
.tree-search {
  margin-top:10px
}
.tree-search label {
  font-size:.75rem;
  margin-bottom:4px
}
.tree-page .tree-actions {
  padding:8px;
  gap:6px;
  justify-content:end
}
.tree-page .tree-toolbar .btn {
  padding:6px 10px;
  font-size:.8rem
}
.tree-page .tree-selection {
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:4;
  width:min(330px,calc(100% - 24px));
  max-height:calc(100% - 150px);
  overflow:auto;
  padding:16px;
  font-size:.85rem
}
.tree-page .tree-selection:has(#selected-person[hidden]) {
  display:none
}
.tree-page .tree-selection h2 {
  margin:0 22px 4px 0;
  font-size:1.3rem;
  overflow-wrap:anywhere
}
.tree-page .tree-selection p {
  margin-bottom:10px
}
.tree-page .tree-selection .button-row {
  gap:6px
}
.tree-page .tree-selection .btn {
  width:auto;
  padding:7px 10px;
  font-size:.78rem;
  margin:0
}
.tree-close {
  position:absolute;
  top:6px;
  right:8px;
  width:32px;
  height:32px;
  border:0;
  background:transparent;
  color:var(--forest);
  font-size:1.4rem
}
.tree-help {
  position:absolute;
  bottom:12px;
  left:12px;
  z-index:4;
  width:min(300px,calc(100% - 24px));
  max-height:calc(100% - 150px);
  overflow:auto;
  padding:8px 12px;
  font-size:.77rem
}
.tree-help:not([open]) {
  width:auto
}
.tree-help p {
  margin:8px 0 0
}
@media(max-width:767px) {
  .tree-page .header-inner {
    min-height:64px;
    padding-top:6px;
    padding-bottom:6px
  }
  .tree-page .brand small,.tree-page .site-footer>span {
    display:none
  }
  .tree-page .site-footer {
    justify-content:center
  }
  .tree-page .tree-toolbar {
    flex-direction:column;
    gap:8px
  }
  .tree-summary {
    width:min(300px,100%);
    padding:8px 12px
  }
  .tree-summary h1 {
    font-size:1rem
  }
  .tree-page .tree-selection {
    bottom:54px;
    max-height:calc(100% - 200px)
  }
}
.legend-dot {
  width:12px;
  height:12px;
  background:#e2e5db;
  border:1px solid #9da994;
  border-radius:50%;
  display:inline-block
}
.active-dot {
  background:var(--forest);
  border-color:var(--forest)
}
.memory-dot {
  background:var(--sand);
  border-color:var(--coral)
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  z-index:100;
  background:var(--forest);
  color:white;
  padding:12px
}
.skip-link:focus {
  top:10px
}
:focus-visible {
  outline:3px solid #bd7658;
  outline-offset:4px
}
.alert-success {
  background:#e8efdf;
  color:var(--forest);
  border-color:#c3d2b7
}
.alert {
  border-radius:12px
}
@media(min-width:1400px) {
  .welcome-hero {
    gap:90px
  }
  .primary-nav {
    gap:24px
  }
}
@media(max-width:1199px) {
  .primary-nav {
    gap:12px;
    font-size:.78rem
  }
  .brand {
    font-size:1.35rem
  }
  .people-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .hero-garden {
    height:420px
  }
  .login-layout {
    gap:40px
  }
  .container {
    padding-left:26px;
    padding-right:26px
  }
}
@media(max-width:991px) {
  .header-inner {
    min-height:90px;
    flex-wrap:wrap;
    padding-top:12px;
    padding-bottom:12px
  }
  .menu-toggle {
    display:block
  }
  .primary-nav {
    display:none;
    width:100%;
    flex-wrap:wrap;
    padding:12px 0;
    gap:16px;
    font-size:.9rem
  }
  .primary-nav.is-open {
    display:flex
  }
  .welcome-hero {
    min-height:450px;
    gap:25px
  }
  .hero-garden {
    height:360px
  }
  .hero-copy h1 {
    font-size:3.7rem
  }
  .feature-card {
    padding:23px
  }
  .feature-card h3 {
    font-size:1.4rem
  }
  .profile-columns {
    grid-template-columns:1fr
  }
  .login-layout {
    min-height:580px
  }
  .login-story h1 {
    font-size:3rem
  }
  .login-card {
    padding:28px
  }
  .page-heading {
    align-items:start
  }
  .page-heading>.button-row {
    justify-content:end
  }
  .historical-date {
    grid-template-columns:1.5fr 1fr 1fr
  }
  .historical-date>.form-check {
    grid-column:1/-1;
    margin-top:0
  }
  .feature-card .small-tag {
    right:15px;
    top:22px
  }
}
@media(max-width:767px) {
  .container {
    padding-left:20px;
    padding-right:20px
  }
  .main-content {
    padding-top:24px;
    padding-bottom:40px
  }
  .welcome-hero {
    grid-template-columns:1fr;
    gap:30px;
    margin-bottom:40px
  }
  .hero-copy h1 {
    font-size:3.8rem
  }
  .hero-copy {
    padding-top:15px
  }
  .hero-garden {
    height:280px;
    width:100%;
    max-width:450px;
    margin:auto;
    border-radius:45% 45% 35% 35%
  }
  .garden-tree {
    height:110%;
    position:relative;
    top:-25px
  }
  .garden-caption {
    bottom:20px;
    font-size:.9rem
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:12px
  }
  .feature-grid {
    grid-template-columns:1fr;
    gap:15px
  }
  .feature-card {
    padding:25px
  }
  .feature-card h3 {
    margin-top:15px
  }
  .feature-card p {
    margin:12px 0 20px
  }
  .site-footer {
    flex-direction:column;
    align-items:start;
    font-size:.75rem
  }
  .people-grid {
    grid-template-columns:1fr
  }
  .page-heading {
    flex-direction:column;
    gap:20px;
    margin-bottom:25px
  }
  .page-heading>.button-row {
    justify-content:start
  }
  .page-heading h1 {
    font-size:2.8rem
  }
  .form-card {
    padding:24px
  }
  .historical-date {
    gap:12px
  }
  .profile-hero {
    flex-wrap:wrap;
    gap:18px
  }
  .large-avatar {
    width:80px;
    height:80px;
    font-size:1.8rem
  }
  .profile-hero>div {
    min-width:180px
  }
  .profile-hero h1 {
    font-size:2.5rem
  }
  .compact {
    flex-direction:row
  }
  .relationship-row {
    gap:10px
  }
  .login-layout {
    grid-template-columns:1fr;
    gap:28px;
    min-height:0;
    margin-top:10px
  }
  .login-story h1 {
    font-size:2.9rem
  }
  .login-leaf {
    display:none
  }
  .login-story>p:not(.eyebrow) {
    margin:18px 0 0
  }
  .login-card {
    padding:28px
  }
  .admin-stats {
    grid-template-columns:repeat(2,1fr);
    gap:12px
  }
  .admin-stats>div {
    padding:18px
  }
  .spacious {
    padding:45px 24px
  }
  .empty-panel {
    padding:28px
  }
  .search-bar {
    gap:8px
  }
  .search-bar .btn {
    padding:11px 12px
  }
  .form-actions {
    flex-wrap:wrap
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
.seating-tables { display:grid; gap:24px; }
.seat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:14px; }
.seat-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; min-width:0; }
.seat-card h3 { font-size:1.05rem; margin-bottom:8px; }
.seat-card p { margin-bottom:12px; }
.seat-occupied { background:#f5f1e9; }
.seat-blocked { background:#ececea; border-style:dashed; }
.seat-mine { background:#edf5ed; border:2px solid var(--forest,#244d42); }
.activity-candidates { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:10px; }
.activity-candidate { display:flex; gap:12px; align-items:flex-start; padding:14px; border:1px solid var(--line); border-radius:12px; }
.activity-candidate input { margin-top:5px; }
.draw-count { max-width:100px; }
.draw-result { border-top:1px solid var(--line); padding-top:20px; }
.activity-timer { max-width:760px; margin-inline:auto; text-align:center; }
.timer-display { font-size:clamp(2.5rem,11vw,6rem); font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; color:var(--forest,#244d42); margin-block:24px 12px; }
.timer-status { min-height:3em; }
.timer-actions { justify-content:center; flex-wrap:wrap; }
.timer-duration-fields { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:center; gap:16px; }
.timer-duration-fields>div { width:112px; text-align:left; }
.activity-timer.is-finished .timer-display { color:#925b43; }
.christmas-welcome { background:radial-gradient(ellipse at top right,#ece4cc 0,transparent 55%),#edf1e8; padding:clamp(28px,6vw,72px); border-radius:28px; border:1px solid #d4ddcd; margin-top:20px; position:relative; overflow:hidden; }
.christmas-welcome:after { content:"✧"; position:absolute; right:30px; top:18px; font-size:96px; line-height:1; color:#7d8b63; opacity:.3; pointer-events:none; }
.christmas-welcome h1 { position:relative; font-size:clamp(2.5rem,7vw,5rem); max-width:900px; }
.christmas-date { color:#925b43; font-weight:600; margin:24px 0; }
.christmas-memories { padding:clamp(24px,4vw,42px); border:1px solid var(--line); border-radius:24px; background:#f4f0e7; }
.christmas-memories summary { cursor:pointer; }
.wall-feed { display:grid; gap:24px; max-width:860px; margin-inline:auto; }
.wall-conversation,.wall-editor { max-width:860px; margin-inline:auto; }
.wall-post { min-width:0; }
.wall-post-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.wall-post-header a { color:var(--forest,#244d42); }
.wall-post-body { margin-top:24px; overflow-wrap:anywhere; }
.wall-photo { background:#f1eee7; border-radius:16px; overflow:hidden; }
.wall-photo img { display:block; width:100%; max-height:560px; object-fit:contain; }
.wall-comment { padding:24px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.home-wall .wall-post-body { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.home-wall .wall-photo img { max-height:300px; }
