:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #667382;
  --accent: #176b83;
  --accent-hover: #10576b;
  --accent-soft: #eef7fa;
  --paper: #ffffff;
  --line: #e5eaf0;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --positive: #26745c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { max-width: 1180px; margin: auto; min-height: 66px; padding: 14px 28px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
header .brand { min-width:0; }
header strong { display:block; font-size:19px; font-weight:700; letter-spacing:-.03em; }
header small { color:var(--muted); font-size:12px; }
.settings-link { font-size:13px; text-decoration:none; }
.header-account { display:flex; align-items:center; justify-content:flex-end; gap:10px; color:var(--muted); font-size:13px; }
.account-summary { display:grid; gap:0; min-width:140px; padding:6px 12px; border:1px solid #eadfe5; border-radius:10px; background:#fff9fb; }
.account-summary span { color:#806d77; font-size:10px; line-height:1.25; text-transform:uppercase; letter-spacing:.07em; }
.account-summary strong { overflow:hidden; color:#382b33; font-size:14px; line-height:1.35; letter-spacing:0; text-overflow:ellipsis; white-space:nowrap; }
.header-account > a { text-decoration:none; }
.change-name-link, .header-account .settings-link { display:inline-flex; min-height:38px; align-items:center; justify-content:center; padding:7px 12px; border:1px solid #e6dce1; border-radius:9px; color:#674354; background:#fff; }
.change-name-link:hover, .header-account .settings-link:hover { background:#fff7fa; border-color:#d6bdca; }
nav { display:flex; align-items:center; gap:4px; overflow:auto; background:#fff; border-block:1px solid var(--line); position:sticky; top:0; z-index:2; padding:6px max(20px,calc((100% - 1124px)/2)); }
nav a { padding:9px 12px; color:var(--muted); text-decoration:none; font-size:14px; font-weight:600; white-space:nowrap; border-radius:8px; }
nav a:hover, nav a:focus-visible { background:var(--surface-alt); color:var(--ink); }
.nav-spacer { flex:1; }
main { max-width:1180px; margin:auto; padding:42px 28px 80px; }
h1 { font-size:32px; line-height:1.15; margin:0; letter-spacing:-.04em; font-weight:700; }
h2 { font-size:20px; line-height:1.3; margin:0; letter-spacing:-.025em; }
h3 { font-size:17px; line-height:1.35; margin:5px 0 0; letter-spacing:-.015em; }
h4 { font-size:14px; margin:0; }
p { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0 12px; }
a { color:var(--accent); font-weight:600; overflow-wrap:anywhere; }
small { display:block; font-size:13px; color:var(--muted); }
.page-intro { color:var(--muted); margin:10px 0 28px; }
.profile-line { color:var(--muted); margin:-18px 0 24px; font-size:14px; }
.panel, .tile { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px; margin:0 0 14px; box-shadow:none; }
.panel .panel { margin:10px 0; padding:14px; box-shadow:none; }
.hero { display:flex; align-items:center; gap:24px; padding:0 0 24px; }
.hero-copy { min-width:0; }
.hero .portrait { flex:0 0 96px; margin:0; }
.hero h2 { font-size:28px; margin:2px 0 3px; }
.portrait { width:96px; height:96px; object-fit:cover; border-radius:50%; border:1px solid var(--line); }
.placeholder { display:grid; place-items:center; background:var(--surface-alt); color:var(--accent); font:36px Georgia,serif; }
.eyebrow { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:700; margin:0 0 6px; }
.tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.tile { display:block; color:var(--ink); text-decoration:none; margin:0; padding:17px; min-height:96px; transition:border-color .12s ease,background .12s ease; }
.tile:hover { border-color:#b8c8d3; background:#fcfdfe; }
.tile strong { display:block; font-size:16px; margin-bottom:4px; }
.item { padding:13px 0; border-bottom:1px solid var(--line); }
.item:last-child { border-bottom:0; }
.muted { color:var(--muted); }
.status-pill { display:inline-block; background:var(--accent-soft); color:var(--accent); padding:3px 9px; border-radius:20px; font-size:12px; font-weight:650; }
.arrangement-next { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.arrangement-next > div { min-width:0; }
.arrangement-next strong { display:block; font-weight:600; }
form { margin:12px 0 2px; }
label { display:block; font-size:14px; font-weight:600; margin:12px 0; }
input, textarea, select { width:100%; font:inherit; font-size:16px; color:var(--ink); padding:11px 12px; border:1px solid #ccd5de; border-radius:8px; background:white; margin-top:5px; }
input:focus, textarea:focus, select:focus { outline:3px solid #c8e8f0; border-color:var(--accent); }
textarea { resize:vertical; }
input[type=checkbox] { width:auto; min-width:18px; height:18px; margin-right:8px; vertical-align:middle; }
button, .secondary { font:inherit; font-weight:650; display:inline-block; min-height:42px; border-radius:8px; border:0; background:var(--accent); color:white; padding:9px 15px; margin:5px 0; cursor:pointer; text-decoration:none; }
button:hover { background:var(--accent-hover); }
.secondary { background:var(--accent-soft); color:var(--accent); font-size:14px; }
details summary { cursor:pointer; font-weight:650; color:var(--accent); padding:8px 0; }
fieldset { border:1px solid var(--line); border-radius:9px; padding:10px 14px; margin:16px 0; }
.memory-photo { width:100%; max-height:460px; object-fit:contain; border-radius:10px; background:var(--surface-alt); }

.category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.category-card { min-height:126px; display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:12px; color:var(--ink); text-decoration:none; transition:border-color .14s ease,transform .14s ease; }
.category-card:hover { border-color:#b5c7d2; transform:translateY(-1px); }
.category-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:12px; background:var(--accent-soft); color:var(--accent); font-size:24px; font-weight:600; }
.category-copy { flex:1; min-width:0; }
.category-copy strong { display:block; font-size:16px; margin-bottom:5px; }
.category-copy small { margin-top:2px; }
.category-arrow { color:#8b99a5; font-size:20px; }
.overview-section { margin-top:40px; }
.section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:12px; }
.section-heading span { color:var(--muted); font-size:13px; }
.section-heading a { font-size:14px; }
.milestone-list { border-top:1px solid var(--line); }
.milestone-row { display:grid; grid-template-columns:minmax(0,1fr) 180px 130px; gap:18px; align-items:center; padding:13px 4px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); }
.milestone-row small { font-size:13px; }
.milestone-row time { color:var(--muted); font-size:13px; text-align:right; }
.empty-state { color:var(--muted); padding:18px 0; }
.back-link { display:inline-block; margin:0 0 24px; font-size:14px; text-decoration:none; }
.category-heading { display:flex; align-items:center; gap:16px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.category-heading .category-icon { width:54px; height:54px; flex-basis:54px; font-size:26px; }
.category-heading p { color:var(--muted); font-size:14px; margin:4px 0 0; }
.decision-list { margin-top:6px; }
.decision-section { padding:24px 0; border-bottom:1px solid var(--line); }
.decision-header { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.decision-header time { color:var(--muted); font-size:13px; white-space:nowrap; padding-top:3px; }
.decision-state { color:var(--accent); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.decision-state.closed { color:var(--positive); }
.parameters { margin:15px 0 18px; padding:12px 15px; background:var(--surface-alt); border-radius:8px; }
.parameters p { margin:4px 0 0; }
.empty-hint { color:var(--muted); font-size:14px; margin:12px 0; }
.decision-outcome { margin:14px 0; }
.decision-outcome p { margin:3px 0; }
.actions-heading { margin:16px 0 4px; }
.action-row { border-top:1px solid var(--line); padding:15px 0; }
.action-title { display:flex; align-items:center; gap:9px; }
.action-title strong { font-weight:650; }
.open-dot, .done-check { width:18px; height:18px; flex:0 0 18px; display:grid; place-items:center; border:1.5px solid #9eacb8; border-radius:50%; color:var(--positive); font-size:12px; }
.done-check { border-color:#78ac98; background:#eff8f4; }
.is-done .action-title strong { color:var(--muted); text-decoration:line-through; }
.action-meta { display:flex; flex-wrap:wrap; gap:14px; margin:5px 0 0 27px; color:var(--muted); font-size:12px; }
.action-detail { margin:8px 0 8px 27px; color:#455362; font-size:14px; }
.action-response { margin:12px 0 6px 27px; padding:10px 13px; background:var(--surface-alt); border-left:2px solid #b7d9e2; border-radius:0 7px 7px 0; }
.action-response p { margin:3px 0 0; font-size:14px; }
.action-updates { margin-left:27px; }
.action-updates summary { font-size:13px; }
.comment { padding:8px 0; border-top:1px solid var(--line); }
.comment strong { font-size:12px; }
.comment p { margin:2px 0; font-size:14px; }
.action-updates form { max-width:720px; }
.action-row > .action-main > form { display:inline-block; margin-left:27px; }
.action-row > .action-main > form label { font-size:12px; }
.action-row > .action-main > form select { min-width:200px; font-size:14px; }
.add-action, .add-decision { margin-top:12px; }
.add-action summary, .add-decision summary { font-size:14px; }
.category-empty { padding:26px 0; }
@media (max-width:850px) {
  .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  header { min-height:58px; padding:12px 16px; }
  nav { justify-content:flex-start; padding:6px 8px; }
  nav a { padding:9px 10px; }
  .nav-spacer { flex:0 0 0; }
  main { padding:28px 16px 56px; }
  h1 { font-size:28px; }
  .hero { gap:16px; padding:10px 0 22px; }
  .hero .portrait { flex-basis:76px; width:76px; height:76px; }
  .hero h2 { font-size:24px; }
  .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .tile { padding:14px; min-height:88px; }
  .panel { padding:16px; border-radius:10px; }
  .arrangement-next { grid-template-columns:1fr; gap:8px; }
  .category-grid { grid-template-columns:1fr; gap:9px; }
  .category-card { min-height:92px; padding:13px; }
  .category-icon { width:42px; height:42px; flex-basis:42px; border-radius:10px; }
  .milestone-row { grid-template-columns:minmax(0,1fr) auto; gap:3px 12px; }
  .milestone-row small { grid-column:1; }
  .milestone-row time { grid-column:2; grid-row:1 / span 2; }
  .decision-header { align-items:flex-start; }
  .decision-header time { white-space:normal; text-align:right; max-width:96px; }
}

/* Decision log, optional discussion, and family media browsers */
.log-concluded { margin-top:38px; padding-top:24px; border-top:1px solid var(--line); }
.decision-comment-list { border-top:1px solid var(--line); margin-top:12px; }
.memory-tabs { display:flex; gap:8px; overflow:auto; padding:16px 0 22px; }
.memory-tabs a { white-space:nowrap; text-decoration:none; padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); }
.memory-tabs a:hover, .memory-tabs a:focus-visible { border-color:#aac5d0; background:#f7fbfc; }
.carousel { position:relative; max-width:920px; margin:8px auto 30px; outline:none; }
.carousel-slide[hidden] { display:none !important; }
.photo-carousel .carousel-slide { margin:0; }
.photo-open { display:block; width:100%; height:min(62vh,620px); min-height:240px; padding:0; overflow:hidden; background:#f2f6f8; border-radius:16px; }
.photo-open:hover { background:#edf3f6; }
.photo-open img { width:100%; height:100%; object-fit:contain; display:block; }
.photo-carousel figcaption { display:grid; grid-template-columns:1fr auto; gap:3px 16px; padding:14px 4px; }
.photo-carousel figcaption strong { font-size:17px; }
.photo-carousel figcaption span { grid-column:1 / -1; white-space:pre-wrap; }
.photo-carousel figcaption small { grid-column:1 / -1; }
.carousel-controls { display:flex; justify-content:center; align-items:center; gap:18px; margin:8px auto; }
.carousel-controls button { width:46px; min-height:46px; padding:5px; border-radius:50%; font-size:22px; }
.carousel-controls span { min-width:64px; text-align:center; font-size:13px; color:var(--muted); }
.photo-viewer { position:fixed; max-width:96vw; max-height:94vh; width:max-content; height:max-content; padding:38px 12px 12px; border:0; border-radius:14px; background:#101820; }
.photo-viewer::backdrop { background:rgba(10,18,24,.88); }
.photo-viewer img { display:block; max-width:92vw; max-height:84vh; object-fit:contain; }
.viewer-close { position:absolute; right:8px; top:4px; width:38px; min-height:34px; padding:0; font-size:25px; background:transparent; }
.music-carousel { min-height:320px; padding:20px; border-radius:22px; background:linear-gradient(135deg,#eff8fb,#f5f4ff 60%,#fff7f0); }
.music-slide { min-height:260px; display:flex; align-items:center; gap:clamp(20px,6vw,70px); justify-content:center; }
.music-disc { width:clamp(160px,28vw,250px); aspect-ratio:1; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; color:#fff; font-size:90px; background:radial-gradient(circle at center,#eaf5f8 0 8%,#263747 9% 17%,#111922 18% 58%,#263747 59% 61%,#111922 62%); box-shadow:0 18px 42px #15233433; }
.music-track { max-width:420px; min-width:0; }
.music-track small { letter-spacing:.12em; font-size:10px; font-weight:700; }
.music-track h2 { margin:8px 0; font-size:clamp(24px,4vw,38px); }
.music-track p { color:var(--muted); }
.music-track audio { display:block; width:min(100%,360px); margin:16px 0; }
.music-track a { display:inline-block; margin:8px 0; }
.memory-stream { max-width:760px; }
@media (max-width:680px) {
  .photo-open { height:54vh; min-height:220px; border-radius:12px; }
  .music-carousel { min-height:0; padding:14px; }
  .music-slide { min-height:390px; flex-direction:column; gap:16px; text-align:center; }
  .music-disc { width:min(54vw,210px); font-size:70px; }
  .music-track { width:100%; }
  .music-track audio { margin:16px auto; }
}
.music-browse { margin:28px 0; }
.music-status { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 22px; color:var(--muted); font-size:13px; }
.music-slots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.music-slot { display:flex; gap:12px; padding:14px; border-top:1px solid var(--line); background:#fbfcfd; }
.music-slot > div { min-width:0; }
.slot-number { color:#9aa8b4; font-size:13px; font-weight:700; }
.music-slot strong, .music-slot span { display:block; }
.music-slot strong { margin-top:5px; }
.slot-current { margin-top:6px; }
.chosen-track { display:grid; grid-template-columns:105px 1fr; gap:2px 12px; padding:12px 0; border-bottom:1px solid var(--line); }
.chosen-track small { grid-row:span 2; }
.chosen-track span, .chosen-track a { color:var(--muted); font-size:13px; }
.track-discussion { margin-top:12px; max-width:520px; }
.track-discussion summary { font-size:13px; }
.track-discussion form { margin:4px 0; }
.track-discussion textarea { min-height:70px; }
.music-artist { font-size:17px; }
.music-track .action { margin-top:14px; }
@media (max-width:680px) {
 .music-slots { grid-template-columns:1fr; gap:4px; }
 .music-slot { padding:12px 4px; }
 .music-slide { text-align:left; }
 .music-track { text-align:left; }
 .chosen-track { grid-template-columns:86px 1fr; }
}

/* Calm shared-space layout: content is organized by headings and dividers, not stacks of boxes. */
:root { --ink:#202b35; --muted:#687581; --accent:#187b78; --accent-hover:#126461; --accent-soft:#eaf5f3; --line:#e6eaed; --surface-alt:#f8faf9; --positive:#327b5f; }
body { background:#fff; }
header { max-width:1100px; }
nav { box-shadow:0 1px 0 rgba(20,40,50,.02); }
nav a[aria-current="page"] { color:var(--accent); background:var(--accent-soft); }
main { max-width:1100px; padding-top:38px; }
h1 { font-size:clamp(29px,4vw,38px); font-weight:650; letter-spacing:-.045em; }
h2 { font-size:20px; font-weight:650; }
.panel, .tile { padding:20px 0; margin:0; border:0; border-radius:0; border-bottom:1px solid var(--line); background:transparent; }
.panel .panel { padding:15px 0; border:0; border-top:1px solid var(--line); }
.panel h2 { margin-bottom:10px; }
.overview-metrics { display:flex; gap:12px 28px; flex-wrap:wrap; align-items:center; border-block:1px solid var(--line); padding:15px 0; margin:24px 0 4px; color:var(--muted); font-size:14px; }
.overview-metrics strong { color:var(--ink); font-size:20px; margin-right:5px; }
.overview-metrics a { margin-left:auto; }
.overview-section { margin-top:34px; }
.section-heading { margin-bottom:10px; }
.category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 34px; border-top:1px solid var(--line); }
.category-card { min-height:90px; padding:14px 4px; border:0; border-bottom:1px solid var(--line); border-radius:0; gap:13px; }
.category-card:hover { border-color:var(--line); background:#fbfcfc; transform:none; }
.category-icon { width:40px; height:40px; flex-basis:40px; border-radius:12px; background:#f0f5f3; color:#347a71; font-size:20px; }
.category-copy strong { font-weight:650; }
.category-arrow { display:none; }
.news-feed { border-top:1px solid var(--line); }
.news-row { display:grid; grid-template-columns:12px minmax(0,1fr); gap:12px; padding:15px 4px; border-bottom:1px solid var(--line); }
.news-row > div { min-width:0; }
.news-row a { color:inherit; text-decoration:none; }
.news-row a:hover strong { color:var(--accent); }
.news-row small { margin-top:2px; }
.news-row p { margin:5px 0 0; }
.news-dot { width:8px; height:8px; margin-top:7px; background:#70a9a1; border-radius:50%; }
.news-dot.update { background:#d29a63; }
.decision-row { display:grid; grid-template-columns:24px minmax(0,1fr) 20px; gap:8px; align-items:start; padding:14px 4px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.decision-row:hover { background:#fbfcfc; }
.decision-mark { color:var(--accent); font-size:19px; line-height:1.2; }
.decision-mark.concluded { color:var(--positive); }
.decision-row-copy strong, .decision-row-copy small { display:block; }
.decision-row-copy small { margin-top:2px; }
.decision-preview { margin-top:5px; }
.decision-arrow { color:#9aa6ad; text-align:right; }
.empty-state { padding:13px 4px; }
.quick-compose { margin-top:14px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:12px 4px; }
.quick-compose summary { color:var(--accent); }
.quick-compose form { max-width:720px; }
.quick-compose p { margin:7px 0; }
.action-row { border-color:var(--line); }
.action-meta { font-size:13px; }
button, .secondary { border-radius:9px; }
fieldset { border:0; border-top:1px solid var(--line); border-radius:0; padding:12px 0; }
.memory-tabs { border-bottom:1px solid var(--line); }
.memory-tabs a { border:0; border-radius:0; background:transparent; padding:8px 12px; }
.memory-tabs a:hover, .memory-tabs a:focus-visible { background:#f4f7f6; }
.music-carousel { background:#f8faf9; border-radius:18px; }
.music-disc { box-shadow:none; }
.track-votes { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; margin:13px 0 3px; font-size:13px; }
.track-votes span { color:var(--muted); }
.track-votes strong { color:var(--accent); }
.photo-picks { margin:22px 0 24px; padding:16px 0; border-block:1px solid var(--line); }
.photo-picks h2 { margin-bottom:8px; }
.photo-picks > div { display:flex; flex-wrap:wrap; gap:4px 12px; padding:8px 0; border-top:1px solid var(--line); }
.photo-picks strong { min-width:160px; }
.photo-download { margin:8px 0; font-size:14px; }
.photo-picks span { color:var(--muted); }
.photo-select-actions { display:flex; flex-wrap:wrap; gap:5px 10px; margin-top:10px; }
.photo-select-actions form { margin:0; }
.photo-badge { display:inline-block; margin:8px 8px 0 0; color:#286c62; background:#eaf5f3; border-radius:20px; padding:3px 9px; font-size:12px; }
.photo-collection { margin-top:26px; }
.photo-carousel figcaption { padding:14px 4px; }
.photo-carousel figcaption > div { grid-column:1 / -1; }
.photo-viewer { border-radius:10px; }
@media (max-width:680px) {
  header { padding:11px 16px; }
  main { padding:27px 16px 70px; }
  nav { position:fixed; inset:auto 0 0; padding:5px 5px max(6px,env(safe-area-inset-bottom)); justify-content:space-around; border-top:1px solid var(--line); border-bottom:0; box-shadow:0 -5px 20px rgba(20,40,50,.06); }
  nav a { flex:1; text-align:center; font-size:12px; padding:10px 4px; }
  nav a[href="/calendar"], nav a[href="/memories/photos"], nav a[href="/memories/music"], nav a[href="/memories"] { display:none; }
  nav .nav-spacer { display:none; }
  nav a[href="/more"] { display:inline-block; }
  .overview-metrics { gap:8px 15px; }
  .overview-metrics a { width:100%; margin:0; }
  .category-grid { grid-template-columns:1fr; gap:0; }
  .category-card { min-height:76px; }
  .music-carousel { border-radius:12px; }
  .photo-picks strong { min-width:0; width:100%; }
  .photo-picks > div { display:block; }
  .photo-select-actions { display:grid; grid-template-columns:1fr; }
}
.more-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; }
.more-links a { display:block; padding:13px 4px; border-bottom:1px solid var(--line); text-decoration:none; }
@media (max-width:680px) { .more-links { grid-template-columns:1fr; } }

/* Final interface pass: let the information lead, with fewer nested boxes. */
:root { --ink:#202a33; --muted:#687680; --accent:#176f6b; --accent-hover:#125b58; --accent-soft:#edf6f4; --line:#e7eceb; --surface-alt:#f7faf9; }
body { font-size:16px; line-height:1.6; }
header { max-width:1120px; min-height:72px; }
header strong { font-size:20px; letter-spacing:-.04em; }
nav { border-block:1px solid #edf0ef; background:rgba(255,255,255,.96); gap:8px; }
nav a { padding:9px 13px; border-radius:7px; }
nav a[href="/"] { color:var(--accent); }
main { max-width:1120px; padding:42px 28px 88px; }
h1 { font-size:34px; letter-spacing:-.045em; }
h2 { font-size:21px; letter-spacing:-.03em; }
.page-intro { max-width:720px; font-size:16px; line-height:1.65; margin:12px 0 30px; }
.panel { padding:20px 0; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.panel .panel { padding:14px 0; border:0; }
.tile { border:1px solid var(--line); border-radius:10px; }
.category-grid { gap:10px; }
.category-card { min-height:104px; border-radius:10px; padding:16px; }
.category-card:hover { background:#fbfdfc; box-shadow:0 4px 14px #14201a0a; }
.category-icon { border-radius:14px; background:#eef5f3; color:#286e68; }
.overview-section { margin-top:34px; }
.section-heading { margin-bottom:14px; }
.decision-section { padding:23px 0; }
.parameters { background:#f7faf9; border-radius:8px; padding:12px 15px; }
.action-row { padding:15px 0 17px; }
.action-title strong { font-size:16px; }
.action-meta { font-size:13px; }
details summary { width:fit-content; padding:8px 0; }
.quick-compose, .add-action, .add-decision, .resolve-decision { margin:16px 0 4px; }
.quick-compose > summary, .add-action > summary, .add-decision > summary, .resolve-decision > summary { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-weight:700; }
button, .secondary { min-height:44px; border-radius:7px; }
button { box-shadow:0 1px 2px #15201a12; }
.secondary { border:1px solid #dce9e6; background:#f4f9f7; }
.status-pill { background:#edf6f4; color:#286e68; }
.music-carousel { border:1px solid #e9efed; }
.photo-open { background:#f7faf9; border-radius:10px; }
.photo-download { font-size:14px; }
.category-contacts { margin:34px 0; }
.contact-list { border-top:1px solid var(--line); }
.contact-row { display:grid; grid-template-columns:minmax(180px,1fr) minmax(120px,.8fr) minmax(220px,1fr); gap:12px; align-items:center; padding:13px 4px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
.contact-row strong { font-size:15px; }
.contact-row span, .contact-row small { color:var(--muted); font-size:13px; }
.contact-row:hover { background:#f8fbfa; }
input, textarea, select { border-color:#d7dfdd; border-radius:7px; }
input:focus, textarea:focus, select:focus { outline-color:#cce5df; }
@media (max-width:680px) {
  header { min-height:60px; }
  main { padding:28px 18px 88px; }
  h1 { font-size:29px; }
  .category-card { min-height:84px; }
  .panel { padding:16px 0; }
  .decision-header { gap:10px; }
  .decision-header time { max-width:90px; }
  .quick-compose > summary, .add-action > summary, .add-decision > summary, .resolve-decision > summary { min-height:44px; }
  .photo-open { min-height:200px; }
  .contact-row { grid-template-columns:1fr; gap:2px; padding:12px 4px; }
}

/* One destination per content type: categories hold topic content; globals show cross-category views. */
.nav-more { display:none; }
.category-subnav { display:flex; gap:20px; flex-wrap:wrap; border-block:1px solid var(--line); margin:16px 0; padding:9px 2px; }
.category-subnav a { text-decoration:none; font-size:14px; }
.music-entry-link { margin:8px 0 18px; }
.category-updates { margin:30px 0 8px; }
.upcoming-row { display:grid; grid-template-columns:140px minmax(0,1fr); gap:18px; padding:12px 4px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.upcoming-row time { color:var(--muted); font-size:14px; }
.share-something { margin-top:18px; }
.share-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:8px; }
.share-options > details { border-top:1px solid var(--line); padding:10px 4px; }
.full-news-feed { margin-top:20px; }
@media (max-width:680px) {
  nav a[href="/calendar"], nav a[href="/contacts"] { display:none; }
  nav a { flex:1 1 auto; text-align:center; padding:9px 4px; font-size:13px; white-space:nowrap; }
  nav .nav-more { display:inline-block; flex:1 1 auto; text-align:center; padding:9px 4px; color:var(--muted); text-decoration:none; font-size:12px; font-weight:600; }
  .share-options { grid-template-columns:1fr; gap:6px; }
  .upcoming-row { grid-template-columns:100px minmax(0,1fr); gap:10px; }
}

/* Shared guest planning. */
.guest-list { margin:20px 0 12px; }
.guest-row { padding:16px 4px; border-top:1px solid var(--line); }
.guest-summary { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.guest-summary > div { min-width:0; }
.guest-summary strong { display:block; font-size:16px; }
.guest-summary small { margin-top:2px; overflow-wrap:anywhere; }
.guest-summary .status-pill { flex:0 0 auto; white-space:normal; text-align:center; }
.guest-row > p { margin:6px 0 4px; }
.guest-row details, .record-discussion { margin-top:8px; }
.guest-row details > summary, .record-discussion > summary { font-size:13px; }
.guest-row details form { max-width:700px; }
.record-discussion { border-top:1px solid #edf0ef; padding-top:5px; }
.record-discussion > form { max-width:640px; }
.record-discussion textarea { min-height:72px; }
@media (max-width:680px) {
  .guest-summary { display:block; }
  .guest-summary .status-pill { margin-top:8px; }
  .guest-row { padding:14px 2px; }
}

/* Family Space current visual system */
:root {
  --ink:#28252a;
  --muted:#746e73;
  --accent:#76515f;
  --accent-hover:#5f3e4b;
  --accent-soft:#f3ecef;
  --line:#e9e2e2;
  --surface:#fff;
  --surface-alt:#faf7f6;
  --positive:#567768;
}
body { background:#fcfaf9; color:var(--ink); }
.site-header { display:block; width:100%; max-width:none; min-height:0; margin:0; padding:0; border-bottom:1px solid #eadfe3; background:linear-gradient(105deg,#f8f0f3 0%,#fff 42%,#fbf6f7 100%); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; max-width:1080px; min-height:92px; margin:0 auto; padding:12px 30px; }
.brand { display:flex; align-items:center; gap:13px; min-width:0; color:var(--ink); text-decoration:none; }
.brand img { display:block; width:54px; height:54px; flex:0 0 54px; border:1px solid #fff; border-radius:15px; box-shadow:0 3px 10px #3b28300d; }
.brand-copy { display:grid; gap:1px; min-width:0; }
.brand-copy strong { font-size:21px; line-height:1.2; letter-spacing:-.035em; }
.brand-copy small { color:#766b70; font-size:12px; line-height:1.35; }
.header-account { flex:0 0 auto; gap:9px; }
.account-summary { min-width:154px; border-color:#e9dce2; background:#fff; }
.change-name-link, .header-account .settings-link { border-color:#e3d6dc; color:#674354; }
nav { background:rgba(255,255,255,.96); border-color:var(--line); }
nav a { border-radius:999px; }
main { max-width:1080px; padding:38px 30px 96px; }
h1 { font-size:34px; letter-spacing:-.045em; }
.page-intro { max-width:690px; margin:10px 0 22px; font-size:16px; }
.hero { align-items:flex-start; gap:22px; margin:0 0 24px; padding:22px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(115deg,#fff 45%,#f8f2f3); }
.hero .portrait { width:100px; height:100px; flex-basis:100px; border:3px solid #fff; box-shadow:0 2px 10px #35252c18; }
.hero-copy { padding-top:8px; }
.hero h2 { font-size:29px; }
.eyebrow { color:var(--accent); letter-spacing:.13em; }
.photo-quick-add { margin-top:12px; }
.photo-quick-add p { margin:0 0 4px; color:var(--muted); font-size:14px; }
.photo-quick-add form { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin:0; }
.photo-quick-add label { margin:0; color:var(--muted); font-size:12px; }
.photo-quick-add label input { max-width:270px; padding:6px 0; border:0; background:transparent; font-size:13px; }
.photo-quick-add form > label:nth-of-type(2) { display:none; }
.photo-quick-add button { min-height:36px; margin:0; padding:7px 13px; font-size:13px; }
.overview-metrics { display:flex; gap:12px; margin:20px 0 26px; }
.overview-metrics > span { display:flex; align-items:baseline; gap:7px; padding:11px 15px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--muted); font-size:13px; }
.overview-metrics strong { color:var(--ink); font-size:20px; }
.category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; border:0; }
.category-card { min-height:148px; align-items:flex-start; gap:13px; padding:17px; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:0 2px 10px #3a2c3007; }
.category-card:hover { border-color:#cbb9bf; background:#fff; box-shadow:0 8px 22px #3a2c3010; transform:translateY(-2px); }
.category-icon { width:42px; height:42px; flex-basis:42px; border-radius:13px; background:var(--accent-soft); color:var(--accent); font-size:21px; }
.category-copy strong { font-size:15px; margin:2px 0 7px; }
.category-copy .category-help { min-height:38px; color:#6f696e; font-size:12px; line-height:1.45; }
.category-copy small:not(.category-help) { color:#898187; font-size:11px; }
.category-arrow { margin-left:auto; font-size:17px; }
.overview-section { margin-top:38px; }
.section-heading { align-items:center; padding-bottom:10px; border-bottom:1px solid var(--line); }
.section-heading h2 { font-size:20px; }
.decision-section { padding:20px 0; }
.panel, .tile { border-radius:14px; }
.quick-compose.share-something { padding:14px 17px; border:1px solid #e5d9dd; border-radius:13px; background:#fff; }
.quick-compose.share-something > summary { color:var(--accent); }
button, .secondary { border-radius:9px; }
.empty-state { padding:15px 0; }
@media (max-width:850px) {
  main { padding-inline:22px; }
  .header-inner { padding-inline:22px; }
  .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  header { padding-inline:17px; }
  main { padding:25px 16px 92px; }
  h1 { font-size:29px; }
  .hero { gap:14px; padding:16px; border-radius:15px; }
  .hero .portrait { width:76px; height:76px; flex-basis:76px; }
  .hero-copy { padding-top:2px; }
  .hero h2 { font-size:23px; }
  .photo-quick-add form { display:block; }
  .photo-quick-add label input { display:block; max-width:100%; }
  .overview-metrics { gap:7px; }
  .overview-metrics > span { flex:1; display:block; padding:9px 10px; }
  .overview-metrics strong { display:block; }
  .category-grid { grid-template-columns:1fr; gap:9px; }
  .category-card { min-height:unset; align-items:center; padding:13px; }
  .category-copy .category-help { min-height:unset; }
}

/* Dashboard: orient, offer useful actions, then show a short family timeline. */
:root { --ink:#30252c; --muted:#70666e; --accent:#75435d; --accent-hover:#5e344a; --accent-soft:#f5eaf0; --line:#e8e4e7; --surface-alt:#f8f7f9; --positive:#4c755d; }
body { background:#fff; }
main { max-width:1160px; }
main > h1 { margin-bottom:16px; font-size:14px; font-weight:650; letter-spacing:.04em; color:#765969; }
.hero { position:relative; overflow:hidden; min-height:174px; align-items:center; margin:0 0 30px; padding:24px 28px; border:1px solid #e8dce2; border-radius:20px; background:linear-gradient(105deg,#fff 0%,#fff 58%,#f6eef3 100%); box-shadow:0 6px 22px #35242d0b; }
.hero::after { content:""; position:absolute; inset:0 0 0 auto; width:5px; background:#b57991; }
.hero .portrait { width:116px; height:116px; flex-basis:116px; border-color:#fff; box-shadow:0 5px 15px #35242d20; }
.hero .placeholder { background:#f2e8ed; color:#86536c; }
.hero h2 { font-family:Georgia,serif; font-size:33px; font-weight:500; letter-spacing:-.025em; }
.hero-message { margin:5px 0 0; color:#716166; font-size:14px; }
.hero-copy { padding:0; }
.eyebrow { color:#966b65; }
.photo-quick-add { margin-top:10px; }
.photo-quick-add p { color:#705b60; }
.help-panel { margin:0 0 30px; }
.help-panel .section-heading { border:0; margin:0 0 12px; padding:0; }
.help-panel .section-heading .eyebrow { margin:0 0 2px; }
.help-panel .section-heading h2 { font-size:22px; }
.help-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.help-card { min-height:112px; display:grid; grid-template-columns:42px 1fr 16px; align-items:center; gap:11px; padding:17px; border:1px solid transparent; border-radius:17px; color:var(--ink); text-decoration:none; transition:transform .16s ease,box-shadow .16s ease; }
.help-card:hover { transform:translateY(-2px); box-shadow:0 8px 22px #4a342716; }
.help-card > span:nth-child(2) { min-width:0; }
.help-card strong, .help-card small { display:block; }
.help-card strong { font-size:14px; line-height:1.3; }
.help-card small { margin-top:5px; color:#6f6465; font-size:12px; line-height:1.35; }
.help-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; font-size:22px; }
.help-arrow { align-self:start; color:#887478; }
.help-photo { background:#fff3dc; border-color:#f0dfbd; }
.help-photo .help-icon { background:#f7dca8; color:#875d24; }
.help-music { background:#f0ebfa; border-color:#ded5ef; }
.help-music .help-icon { background:#ded2f1; color:#654e89; }
.help-guests { background:#e9f4ed; border-color:#cfe2d5; }
.help-guests .help-icon { background:#cfe3d3; color:#446e53; }
.help-done { background:#f9e9e8; border-color:#efd3d4; }
.help-done .help-icon { background:#edcfc4; color:#8a5647; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr); gap:20px; align-items:start; }
.dashboard-main, .dashboard-side { display:grid; gap:18px; min-width:0; }
.dashboard-card { padding:20px 22px; border:1px solid #e9e6e9; border-radius:16px; background:#fff; box-shadow:0 4px 16px #32232d08; }
.dashboard-card .section-heading { margin:0 0 12px; padding:0; border:0; align-items:center; }
.dashboard-card .section-heading .eyebrow { margin:0 0 2px; }
.dashboard-card .section-heading h2 { font-size:20px; }
.dashboard-card .section-heading > a { flex:0 0 auto; font-size:13px; }
.dashboard-hint { margin:0 0 8px; color:#7c6e6b; font-size:12px; }
.family-timeline { list-style:none; margin:2px 0 4px; padding:0 0 0 8px; }
.family-timeline li { position:relative; display:grid; grid-template-columns:88px minmax(0,1fr); gap:12px; min-height:66px; padding:0 0 16px 20px; border-left:2px solid #e4d6df; }
.family-timeline li:last-child { border-left-color:transparent; padding-bottom:0; }
.family-timeline li::before { content:""; position:absolute; left:-6px; top:3px; width:10px; height:10px; border:2px solid #fff; border-radius:50%; background:#86536c; box-shadow:0 0 0 1px #c4a5b4; }
.family-timeline time { color:#75435d; font-size:13px; font-weight:700; }
.timeline-entry strong, .timeline-entry small { display:block; }
.timeline-entry { color:var(--ink); text-decoration:none; }
.timeline-entry:hover strong { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.timeline-entry strong { font-size:14px; line-height:1.35; }
.timeline-entry small { margin-top:3px; color:#837779; font-size:12px; }
.timeline-empty { margin:0 0 16px; padding:8px 0 10px; }
.timeline-activity { margin:18px 0 0; padding-top:14px; border-top:1px solid #efe4de; }
.timeline-activity h3 { margin:0 0 8px; color:#8b5e52; font-size:13px; font-weight:700; letter-spacing:.02em; }
.timeline-activity .news-feed { border:0; }
.timeline-activity .news-row { padding:10px 2px; border-color:#f0e7e2; }
.timeline-activity .news-row p { font-size:13px; }
.timeline-activity .news-row small { font-size:11px; }
.compact-task { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 0; border-top:1px solid #efe5e0; }
.compact-task-copy { min-width:0; }
.compact-task strong { display:block; font-size:14px; }
.compact-task small { margin-top:3px; font-size:11px; }
.compact-task-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.compact-task-actions form { flex:0 0 auto; margin:0; }
.compact-task-open { display:inline-flex; min-width:110px; min-height:38px; align-items:center; justify-content:center; gap:7px; padding:7px 11px; border:1px solid #d7e4df; border-radius:8px; background:#f3f8f6; color:#315e57; font-size:12px; font-weight:700; text-decoration:none; white-space:nowrap; }
.compact-task-open:hover { background:#e9f3ef; border-color:#b9d1c8; }
.compact-task-actions form button { min-height:38px; margin:0; padding:6px 11px; border:1px solid #e5d8dd; background:#fff; color:#674354; font-size:12px; white-space:nowrap; }
.compact-task-actions form button:hover { background:#faf4f6; }
.dashboard-card .decision-row { border-color:#efe5e0; }
.dashboard-card .decision-row:hover { background:#fff7f0; }
.topic-directory { margin:26px 0 0; padding:14px 18px; border:1px solid #e9e6e9; border-radius:14px; background:#fff; }
.topic-directory > summary { display:flex; justify-content:space-between; align-items:center; padding:3px 0; color:#704e5b; list-style:none; }
.topic-directory > summary::-webkit-details-marker { display:none; }
.topic-directory > summary::after { content:"＋"; margin-left:10px; font-size:19px; }
.topic-directory[open] > summary::after { content:"−"; }
.topic-directory > summary span { margin-left:auto; color:#8a7c79; font-size:12px; font-weight:500; }
.topic-directory .category-grid { margin-top:12px; padding-top:12px; border-top:1px solid #efe4de; }
.topic-directory .category-card { min-height:120px; }
.topic-directory .category-copy .category-help { min-height:unset; }
#share-photo, #suggest-track, #add-guest, #open-actions { scroll-margin-top:100px; }
#share-photo:target, #suggest-track:target, #add-guest:target, #open-actions:target { outline:3px solid #e9c9a5; outline-offset:5px; border-radius:12px; }
@media (max-width:980px) {
  .help-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-columns { grid-template-columns:1fr; }
  .dashboard-side { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media (max-width:680px) {
  .site-header { display:block; padding:0; }
  .header-inner { display:grid; grid-template-columns:minmax(0,1fr); min-height:0; gap:10px; padding:12px 16px 10px; }
  .brand { gap:10px; }
  .brand img { width:46px; height:46px; flex-basis:46px; border-radius:13px; }
  .brand-copy strong { font-size:18px; }
  .brand-copy small { font-size:11px; }
  .header-account { grid-column:1; display:flex; justify-content:space-between; gap:7px; padding-top:9px; border-top:1px solid #eadfe3; }
  .account-summary { display:flex; align-items:center; gap:7px; min-width:0; padding:0; border:0; background:transparent; }
  .account-summary span { flex:0 0 auto; font-size:10px; }
  .account-summary strong { font-size:13px; }
  .change-name-link, .header-account .settings-link { min-height:34px; padding:5px 9px; font-size:12px; }
  main > h1 { margin-bottom:14px; }
  .hero { min-height:0; gap:14px; padding:17px; border-radius:18px; }
  .hero .portrait { width:80px; height:80px; flex-basis:80px; }
  .hero h2 { font-size:25px; }
  .hero-message { font-size:13px; }
  .help-grid { gap:8px; }
  .help-card { min-height:100px; grid-template-columns:34px minmax(0,1fr); gap:8px; padding:11px; border-radius:14px; }
  .help-card .help-icon { width:34px; height:34px; border-radius:11px; font-size:19px; }
  .help-card strong { font-size:12px; }
  .help-card small { font-size:11px; }
  .help-arrow { display:none; }
  .dashboard-side { grid-template-columns:1fr; }
  .dashboard-card { padding:16px; border-radius:14px; }
  .family-timeline li { grid-template-columns:75px minmax(0,1fr); gap:8px; }
  .topic-directory { padding:12px; }
}

/* Expandable action categories and photo contribution controls */
.task-category-list { display:grid; gap:10px; margin:18px 0 30px; }
.task-category { overflow:hidden; border:1px solid #e9e2e5; border-radius:15px; background:#fff; box-shadow:0 3px 12px #32232d06; }
.task-category > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:68px; padding:13px 17px; cursor:pointer; list-style:none; }
.task-category > summary::-webkit-details-marker { display:none; }
.task-category > summary::after { content:"＋"; color:#82566c; font-size:20px; font-weight:400; }
.task-category[open] > summary::after { content:"−"; }
.task-category > summary:hover { background:#fff9f6; }
.task-category-name { display:flex; align-items:center; gap:12px; min-width:0; }
.task-category-name .category-icon { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:12px; background:#f4e9ed; color:#75435d; font-size:19px; }
.task-category-name strong { color:var(--ink); font-size:16px; }
.task-category-count { margin-left:auto; color:#887b7d; font-size:12px; white-space:nowrap; }
.task-category-content { padding:4px 17px 17px; border-top:1px solid #f0e9e9; }
.task-category-content > .muted { margin:13px 0; font-size:13px; }
.task-category-content .action-row { margin:0; padding:16px 0; border-top:1px solid #f0e9e9; }
.task-category-content .action-row:first-of-type { border-top:0; }
.action-row .task-goal { margin:14px 0; padding:13px 15px; border:1px solid #eadfe1; border-left:3px solid #aa7b8f; border-radius:10px; background:#fffaf8; }
.task-goal h4 { margin:0 0 5px; color:#704b5d; font-size:13px; }
.task-goal p { margin:0; white-space:pre-wrap; line-height:1.5; }
.task-edit, .contact-response { margin-top:10px; }
.task-edit > summary, .contact-response > summary, .action-assign > summary { width:max-content; color:#71475b; font-size:13px; cursor:pointer; }
.task-edit form, .contact-response form { margin-top:10px; }
.task-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:13px; }
.task-controls form { margin:0; }
.task-controls button, .task-controls summary { min-height:38px; }
.task-controls .action-assign { display:flex; align-items:center; }
.task-controls .action-assign[open] { display:block; width:100%; }
.add-action { margin-top:12px; padding:12px 14px; border:1px dashed #d8c3cb; border-radius:12px; background:#fffdfb; }
.add-action > summary { color:#75435d; font-weight:650; cursor:pointer; }
.add-action form { margin-top:13px; }
.add-category-action { border-style:solid; }
.photo-upload { margin:0 0 24px; }
.photo-upload > summary { display:inline-flex; min-height:42px; align-items:center; padding:0 16px; border:1px solid #765267; border-radius:9px; background:#765267; color:#fff; font-weight:700; cursor:pointer; list-style:none; }
.photo-upload > summary::-webkit-details-marker { display:none; }
.photo-upload > summary::marker { content:""; }
.photo-upload > summary:hover, .photo-upload > summary:focus-visible { background:#624354; border-color:#624354; }
.photo-upload[open] { flex:1 0 100%; margin:8px 0 10px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.photo-upload[open] > summary { background:#fff; color:var(--accent); }
.photo-upload > p { margin:9px 0; }
.photo-upload form { margin-top:12px; max-width:720px; }
.photo-collection { margin-top:18px; }
.photo-collection-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 18px; margin-bottom:10px; }
.photo-collection-head h2 { margin:0; }
.photo-collection-head .photo-upload { margin:0; }
.photo-swipe-hint { margin:-21px 0 24px; color:var(--muted); font-size:13px; text-align:center; }
.photo-votes { grid-column:1 / -1; margin:6px 0 0; color:#75435d; font-size:13px; font-weight:650; }
.photo-carousel figcaption > form { grid-column:1 / -1; justify-self:start; margin:4px 0; }
.photo-carousel figcaption > form button { min-height:40px; }
@media (max-width:680px) {
  .task-category > summary { min-height:62px; padding:11px 12px; }
  .task-category-count { font-size:11px; }
  .task-category-content { padding:2px 12px 13px; }
  .task-category-name { gap:8px; }
  .task-category-name .category-icon { width:34px; height:34px; flex-basis:34px; }
  .task-category-name strong { font-size:14px; }
  .action-row .task-goal { padding:11px; }
}

/* Final UX polish: one restrained palette, aligned masthead, clear action links. */
body { background:#fff; }
.site-header { border-bottom:1px solid #e9e3e5; background:#fff; }
.header-inner { max-width:1160px; min-height:86px; }
.brand img { width:52px; height:52px; flex-basis:52px; border:0; border-radius:14px; box-shadow:0 2px 8px #30252c12; }
.account-summary { min-width:0; padding:4px 14px; border:0; border-left:1px solid #e8e1e4; border-radius:0; background:transparent; }
.change-name-link, .header-account .settings-link { min-height:0; padding:8px 5px; border:0; border-radius:4px; color:var(--accent); background:transparent; font-size:13px; }
.change-name-link:hover, .header-account .settings-link:hover { color:var(--accent-hover); background:transparent; text-decoration:underline; text-underline-offset:3px; }
.hero { border-color:#e8e2e4; background:#fff; box-shadow:0 3px 14px #30252c08; }
.hero::after { display:none; }
.hero .placeholder { display:grid; place-items:center; border:1px solid #e5d9de; background:#f7f3f5; color:#75435d; font-family:Georgia,serif; font-size:39px; font-weight:600; letter-spacing:.02em; box-shadow:none; }
.hero .eyebrow { color:#75435d; }
.hero-message { color:#5e555a; }
.photo-quick-add input[type="file"] { max-width:340px; border:0; background:transparent; }
.photo-quick-add input[type="file"]::file-selector-button { margin-right:10px; padding:8px 12px; border:1px solid #ded4d9; border-radius:6px; background:#fff; color:#463a40; font:600 13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor:pointer; }
.photo-quick-add input[type="file"]::file-selector-button:hover { border-color:#bba9b1; background:#faf7f8; }
button, .secondary { box-shadow:none; border-radius:7px; }
button { background:var(--accent); }
button:hover { background:var(--accent-hover); }
.help-card, .help-photo, .help-music, .help-guests, .help-done { border:1px solid #e6e0e3; border-left:3px solid #8a6878; border-radius:12px; background:#fff; box-shadow:none; }
.help-card:hover { transform:translateY(-1px); border-color:#cdbfc5; border-left-color:var(--accent); background:#fff; box-shadow:0 5px 16px #30252c0b; }
.help-icon, .help-photo .help-icon, .help-music .help-icon, .help-guests .help-icon, .help-done .help-icon { border-radius:10px; background:#f3eef0; color:#75435d; }
.help-card strong { color:#30252c; }
.help-card small { color:#6e666b; }
.help-arrow { color:#75435d; }
.compact-task { border-color:#eee9eb; }
.compact-task-title { display:block; color:var(--ink); text-decoration:none; }
.compact-task-title:hover strong { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.compact-task > div > small { margin-top:3px; color:#7a7277; }
.all-actions-footer { margin-top:9px; padding-top:12px; border-top:1px solid #eee9eb; }
.all-actions-footer a { display:flex; align-items:center; justify-content:space-between; color:var(--accent); font-size:13px; text-decoration:none; }
.all-actions-footer a:hover { text-decoration:underline; text-underline-offset:3px; }
.family-timeline li { border-left-color:#e6dfe3; }
.family-timeline li::before { background:#76515f; box-shadow:0 0 0 1px #c8b6be; }
.family-timeline time, .timeline-date-tbc { color:#75435d; font-size:12px; font-weight:700; }
.timeline-date-tbc { display:block; padding-top:1px; letter-spacing:.04em; }
.timeline-entry small { color:#746c71; }
.timeline-unscheduled .timeline-entry small { color:#75435d; }
.dashboard-card { border-color:#e8e2e4; box-shadow:0 2px 10px #30252c06; }
.dashboard-hint { color:#70666e; }
.task-category { border-color:#e7e1e4; box-shadow:none; }
.task-category > summary:hover { background:#faf7f8; }
.task-category-name .category-icon { background:#f3eef0; color:#75435d; }
.task-category-count { color:#70666e; }
.task-category-content { border-top-color:#eee9eb; }
.action-row .task-goal { border-color:#e8e2e4; border-left-color:#8a6878; background:#fbf9fa; }
.task-goal h4, .task-edit > summary, .contact-response > summary, .action-assign > summary { color:#674354; }
.add-action { border-color:#ded4d9; background:#fff; }
.add-action > summary { color:#674354; }
.task-category > summary::after { color:#75435d; }
.task-category-content .action-row { border-top-color:#eee9eb; }
.photo-votes { color:#674354; }
.category-card .category-icon { background:#f3eef0; color:#75435d; }
.status-pill { background:#f3eef0; color:#674354; }
@media (max-width:850px) {
  .header-inner { max-width:1160px; }
}
@media (max-width:680px) {
  .header-inner { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; padding:11px 16px 9px; }
  .brand img { width:44px; height:44px; flex-basis:44px; border-radius:12px; }
  .brand-copy strong { font-size:18px; }
  .header-account { justify-content:flex-start; gap:10px; padding-top:8px; border-top:1px solid #eee8eb; }
  .account-summary { flex:1 1 auto; padding:2px 10px 2px 0; border-left:0; }
  .account-summary span { font-size:9px; }
  .account-summary strong { font-size:13px; }
  .change-name-link, .header-account .settings-link { padding:6px 2px; font-size:12px; }
  .hero { background:#fff; }
  .hero .portrait { width:76px; height:76px; flex-basis:76px; }
  .hero .placeholder { font-size:29px; }
  .help-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .help-card { min-height:96px; grid-template-columns:34px minmax(0,1fr); padding:12px; }
  .help-card .help-icon { width:32px; height:32px; font-size:18px; }
  .help-card strong { font-size:13px; }
  .help-card small { font-size:11px; }
}

/* Four muted tetradic accents: hues 330°, 60°, 150° and 240°. */
.help-photo { --help-accent:hsl(330 24% 40%); --help-tint:hsl(330 26% 95%); }
.help-music { --help-accent:hsl(240 24% 40%); --help-tint:hsl(240 26% 95%); }
.help-guests { --help-accent:hsl(150 24% 40%); --help-tint:hsl(150 26% 95%); }
.help-done { --help-accent:hsl(60 24% 40%); --help-tint:hsl(60 26% 95%); }
.help-card { border-left-color:var(--help-accent); }
.help-card:hover { border-left-color:var(--help-accent); background:#fdfcfd; }
.help-photo .help-icon, .help-music .help-icon, .help-guests .help-icon, .help-done .help-icon { background:var(--help-tint); color:var(--help-accent); }
.help-arrow { color:var(--help-accent); }
.help-card:focus-visible { outline:3px solid var(--help-tint); outline-offset:2px; border-color:var(--help-accent); }

/* Clear, calm forms and direct access to the family memories. */
form:not(.inline-form) { max-width:760px; }
form label { color:#554b51; font-size:13px; font-weight:650; line-height:1.4; }
form input, form textarea, form select { border:1px solid #dcd5d9; border-radius:9px; background:#fff; box-shadow:0 1px 2px #30252c08; }
form input:focus, form textarea:focus, form select:focus { border-color:#9b7485; outline:3px solid #f1e8ed; }
form button { min-height:42px; margin-top:8px; padding-inline:18px; }
.form-section { margin:0 0 22px; padding:0 0 16px; border-bottom:1px solid #eee8eb; }
.form-section h3 { margin:0 0 4px; font-size:16px; }
.form-section > p { margin:0 0 10px; color:var(--muted); font-size:13px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.form-grid label { min-width:0; }
.guest-compose, .contact-create, .calendar-create, .update-compose { margin:24px 0 34px; padding:24px; border:1px solid #e7dfe3; border-radius:16px; background:linear-gradient(130deg,#fff 0%,#fff 70%,#faf5f7 100%); }
.guest-compose > div > p:last-child, .contact-create > div > p:last-child, .calendar-create > div > p:last-child { max-width:660px; color:var(--muted); }
.guest-compose h2, .contact-create h2, .calendar-create h2, .update-compose h2 { margin:0 0 5px; font-size:22px; }
.guest-editor { max-width:none !important; }
.guest-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:15px 0 7px; padding:12px 0; border-block:1px solid #eee8eb; }
.guest-meta span { display:block; min-width:0; }
.guest-meta small, .guest-meta strong { display:block; }
.guest-meta small { color:var(--muted); font-size:11px; }
.guest-meta strong { margin-top:3px; font-size:13px; font-weight:650; overflow-wrap:anywhere; }
.guest-edit { margin-top:12px; }
.guest-edit > summary { color:var(--accent); font-size:13px; }
.guest-list .guest-row { padding:18px 8px; }
.guest-invited { background:#edf5ef; color:#416b4e; }
.guest-not-invited { background:#f8f0e7; color:#805b33; }
.contacts-directory, .calendar-section, .updates-section { margin:28px 0 34px; }
.contacts-empty { margin:14px 0; padding:25px; border:1px dashed #d9cbd1; border-radius:13px; background:#fcfafb; }
.contacts-empty strong { font-size:16px; }
.contacts-empty p { margin:6px 0 0; color:var(--muted); }
.contact-create .contact-editor { max-width:none; }
.contact-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.contact-editor label:nth-of-type(7), .contact-editor label:nth-of-type(8), .contact-editor label:nth-of-type(9) { grid-column:1 / -1; }
.contact-editor button { grid-column:1 / -1; justify-self:start; }
.calendar-create .event-editor { max-width:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.event-editor label:nth-of-type(4), .event-editor label:nth-of-type(5), .event-editor label:nth-of-type(9), .event-editor button { grid-column:1 / -1; }
.calendar-section .calendar-event { display:grid; grid-template-columns:150px minmax(0,1fr); gap:18px; padding:17px 8px; border-top:1px solid #eee8eb; }
.calendar-event-date strong, .calendar-event-date span { display:block; }
.calendar-event-date strong { font-size:15px; }
.calendar-event-date span { margin-top:3px; color:var(--muted); font-size:13px; }
.calendar-event-copy > strong { font-size:16px; }
.calendar-event-copy > p { margin:6px 0; }
.update-compose { display:grid; grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr); gap:24px; align-items:start; }
.update-compose .update-editor { max-width:none; margin:0; }
.update-editor textarea { min-height:132px; }
.decision-row-copy { min-width:0; }
.decision-row-copy .decision-question-label { display:block; margin:0 0 3px; color:#806b75; font-size:10px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.decision-row-copy > strong { font-size:18px; line-height:1.35; }
.decision-row-copy > small { margin-top:6px; color:var(--muted); font-size:12px; }
.decision-preview { display:block; margin-top:8px; padding:9px 12px; border-left:3px solid #78947d; border-radius:0 7px 7px 0; background:#f2f7f2; }
.decision-preview small, .decision-preview strong { display:block; }
.decision-preview small { margin:0 0 3px; color:#56715c; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.decision-preview strong { font-size:15px; line-height:1.4; }
.hero img.portrait { width:38%; height:260px; flex:0 0 38%; object-fit:contain; object-position:left center; border:0; border-radius:18px; box-shadow:none; -webkit-mask-image:linear-gradient(to right,#000 0%,#000 94%,transparent 100%); mask-image:linear-gradient(to right,#000 0%,#000 94%,transparent 100%); }
.hero img.portrait.circle { width:220px; height:220px; flex:0 0 220px; object-fit:cover; border-radius:50%; -webkit-mask-image:none; mask-image:none; }
.hero-copy { position:relative; z-index:1; margin-left:-24px; }
.hero .placeholder { width:176px; height:176px; flex:0 0 176px; border-radius:50%; font-size:48px; }
.hero .placeholder.rectangle { border-radius:18px; }
.hero .placeholder.circle { border-radius:50%; }
/* Native date controls and select boxes should occupy the same visual rhythm. */
.guest-editor input, .guest-editor select, .guest-editor textarea,
.event-editor input, .event-editor select, .event-editor textarea,
.contact-editor input, .contact-editor select, .contact-editor textarea,
.update-editor input, .update-editor select, .update-editor textarea {
  box-sizing:border-box; min-height:48px; padding:11px 13px; border:1px solid #d8d0d5; border-radius:9px;
  color:#30252c; background-color:#fff; font-family:inherit; font-size:16px; font-weight:400; line-height:1.3;
}
.guest-editor input[type="date"], .event-editor input[type="date"], .contact-editor input[type="date"] { appearance:auto; -webkit-appearance:auto; }
.guest-editor input[list] { background-image:none; }
.profile-photo-setting { display:grid; grid-template-columns:104px minmax(0,1fr); align-items:center; gap:18px; margin:14px 0 20px; }
.profile-photo-setting img, .profile-photo-placeholder { display:grid; place-items:center; width:104px; height:104px; object-fit:cover; border-radius:50%; border:3px solid #fff; box-shadow:0 2px 11px #30252c18; }
.profile-photo-setting img.rectangle, .profile-photo-placeholder.rectangle { border-radius:16px; object-fit:contain; }
.profile-photo-setting img.circle, .profile-photo-placeholder.circle { border-radius:50%; object-fit:cover; }
.profile-photo-placeholder { background:#f7f3f5; color:#75435d; font-family:Georgia,serif; font-size:30px; }
.profile-photo-setting p { margin:5px 0 10px; }
.profile-photo-setting form { margin:0; }
.profile-photo-setting form label { margin-top:8px; }
.profile-photo-setting form label input { max-width:460px; }
.profile-photo-setting form > label:nth-of-type(2) { display:none; }
.service-overview, .service-detail-card, .wake-plan-form { margin:22px 0 28px; padding:22px; border:1px solid #e7dfe3; border-radius:15px; background:#fff; }
.service-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:16px 0; }
.service-facts > div { min-width:0; }
.service-facts small, .service-facts strong { display:block; }
.service-facts small { color:var(--muted); font-size:12px; }
.service-facts strong { margin-top:5px; font-size:17px; overflow-wrap:anywhere; }
.service-notes { margin:4px 0 14px; white-space:pre-wrap; }
.service-edit { margin-top:10px; border-top:1px solid #eee8eb; }
.service-edit > summary { color:var(--accent); }
.service-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.service-editor label:nth-of-type(4), .service-editor label:nth-of-type(8), .service-editor button { grid-column:1 / -1; }
.service-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.service-detail-grid .service-detail-card { min-width:0; margin:0; }
.service-detail-card .section-heading h2 { margin:0; font-size:19px; }
.service-detail-card .section-heading a { white-space:nowrap; font-size:13px; }
.service-order { margin-top:18px; }
.service-order-item { display:grid; grid-template-columns:34px minmax(0,1fr); gap:5px 12px; padding:14px 0; border-top:1px solid var(--line); }
.service-order-number { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-weight:700; }
.service-order-copy small { text-transform:uppercase; letter-spacing:.06em; font-size:11px; }
.service-order-copy .service-order-attribution { display:block; margin-top:5px; color:var(--muted); text-transform:none; letter-spacing:0; font-size:12px; }
.service-order-copy h3 { margin:2px 0; }
.service-order-copy p { margin:5px 0 0; }
.service-order-actions { grid-column:2; display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; }
.service-order-actions form { margin:0; }
.service-order-actions button, .service-order-edit > summary { min-height:34px; padding:5px 10px; font-size:13px; }
.service-order-edit > summary { color:var(--accent); cursor:pointer; }
.service-order-edit[open] { flex:1 0 100%; }
.service-order-edit form { margin-top:10px; }
.service-order-remove button { border-color:transparent; background:transparent; color:#805361; }
.service-order-add { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.service-order-add > summary { display:inline-flex; min-height:42px; align-items:center; padding:0 15px; border:1px solid var(--accent); border-radius:9px; color:var(--accent); font-weight:700; cursor:pointer; }
.service-order-add form { max-width:760px; margin-top:14px; }
.service-order-add form label, .service-order-edit form label { display:block; margin:0 0 12px; }
.service-order-add form input, .service-order-add form select, .service-order-add form textarea,
.service-order-edit form input, .service-order-edit form select, .service-order-edit form textarea { width:100%; }
.service-photo-strip { display:flex; gap:10px; overflow-x:auto; padding:7px 0 14px; }
.service-photo-strip a { display:block; flex:0 0 118px; height:100px; overflow:hidden; border-radius:10px; background:#f5f2f3; }
.service-photo-strip img { width:100%; height:100%; object-fit:cover; }
.service-choice { display:grid; grid-template-columns:90px minmax(0,1fr); gap:2px 12px; padding:11px 2px; border-top:1px solid #eee8eb; }
.service-choice small { grid-row:span 2; color:var(--muted); }
.service-choice strong { overflow-wrap:anywhere; }
.service-choice span { color:var(--muted); font-size:13px; }
.service-guest-list { border-top:1px solid #eee8eb; }
.service-guest { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(85px,.8fr) minmax(90px,.8fr); gap:4px 10px; padding:11px 2px; border-bottom:1px solid #eee8eb; }
.service-guest small { grid-column:1 / -1; color:var(--muted); }
.wake-plan-form { margin-top:20px; background:linear-gradient(130deg,#fff 0%,#fff 70%,#faf5f7 100%); }
.wake-plan-form h2 { margin:0 0 14px; font-size:21px; }
.wake-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.wake-editor label:nth-of-type(3), .wake-editor label:nth-of-type(9), .wake-editor label:nth-of-type(10), .wake-editor label:nth-of-type(11), .wake-editor label:nth-of-type(13), .wake-editor label:nth-of-type(14), .wake-editor button { grid-column:1 / -1; }
.wake-date-note { padding:11px 14px; border-left:3px solid var(--accent); background:#faf6f8; }
.calendar-plan-links { display:flex; flex-wrap:wrap; gap:12px 22px; margin:8px 0 20px; }
.venue-detail-list { display:flex; flex-wrap:wrap; gap:14px 24px; margin:10px 0; padding:12px 0; border-top:1px solid #eee8eb; }
.venue-detail-list > div { min-width:140px; max-width:100%; }
.venue-detail-list small, .venue-detail-list strong { display:block; }
.venue-detail-list small { color:var(--muted); font-size:11px; }
.venue-detail-list strong { margin-top:3px; font-size:14px; overflow-wrap:anywhere; }
.reception-location { margin:18px 0; padding:16px 18px; border:1px solid #e7dfe3; border-radius:12px; background:#fff; }
.reception-location h2 { margin:0 0 7px; font-size:18px; }
.reception-location p { margin:0; }
nav a[href="/memories/photos"], nav a[href="/memories/music"] { color:#654253; }
@media (max-width:680px) {
  nav a[href="/decisions"], nav a[href="/calendar"], nav a[href="/contacts"] { display:none; }
  nav a[href="/memories/photos"], nav a[href="/memories/music"] { display:block; }
  nav a { flex:1 1 0; min-width:0; font-size:11px; }
  .guest-compose, .contact-create, .calendar-create, .update-compose { padding:17px; border-radius:13px; }
  .form-grid, .contact-editor, .calendar-create .event-editor, .update-compose { grid-template-columns:1fr; }
  .contact-editor label, .contact-editor button, .event-editor label, .event-editor button { grid-column:auto !important; }
  .guest-meta { grid-template-columns:1fr; gap:8px; }
  .calendar-section .calendar-event { grid-template-columns:100px minmax(0,1fr); gap:12px; }
  .photo-collection-head { align-items:flex-start; }
  .photo-upload[open] { flex-basis:100%; }
  .profile-photo-setting { grid-template-columns:84px minmax(0,1fr); gap:12px; }
  .profile-photo-setting img, .profile-photo-placeholder { width:84px; height:84px; }
  .service-overview, .service-detail-card, .wake-plan-form { padding:16px; }
  .service-facts { grid-template-columns:1fr; gap:10px; }
  .service-detail-grid { grid-template-columns:1fr; }
  .service-editor, .wake-editor { grid-template-columns:1fr; }
  .service-editor label, .wake-editor label, .service-editor button, .wake-editor button { grid-column:auto !important; }
  .service-guest { grid-template-columns:minmax(0,1fr) auto; }
  .service-guest small { grid-column:1 / -1; }
  nav a[href="/funeral"], nav a[href="/reception"] { display:none; }
  .hero img.portrait { width:140px; height:140px; flex:0 0 140px; border-radius:14px; object-position:left center; -webkit-mask-image:linear-gradient(to right,#000 0%,#000 94%,transparent 100%); mask-image:linear-gradient(to right,#000 0%,#000 94%,transparent 100%); }
  .hero img.portrait.circle { width:140px; height:140px; flex:0 0 140px; border-radius:50%; -webkit-mask-image:none; mask-image:none; }
  .hero .placeholder { width:140px; height:140px; flex:0 0 140px; }
  .hero-copy { margin-left:0; }
  .hero .placeholder { font-size:40px; }
  .decision-row-copy > strong { font-size:16px; }
}

/* Consistent, calm form controls across the app. */
label { color:#443a40; line-height:1.4; }
input, select, textarea { min-height:48px; padding:11px 13px; border:1px solid #d5ddda; border-radius:10px; background:#fff; color:var(--ink); font-family:inherit; font-size:16px; }
textarea { min-height:104px; line-height:1.5; }
input:focus, select:focus, textarea:focus { outline:3px solid #d6e9e4; border-color:#548d82; }
input[type="checkbox"], input[type="radio"] { width:auto; min-width:18px; min-height:18px; height:18px; padding:0; vertical-align:middle; }
.check { display:flex; align-items:center; gap:9px; }
.check input { flex:0 0 auto; margin:0; }
button { min-height:44px; border-radius:9px; }
.family-form { min-width:0; }
.family-form > button { justify-self:start; }
.family-form input[type="file"] { padding:9px; background:#fff; }
.family-form input[type="file"]::file-selector-button { margin-right:11px; padding:8px 12px; border:1px solid #d5ddda; border-radius:7px; background:#f7faf9; color:#315e57; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.family-form input[type="file"]::file-selector-button:hover { border-color:#9fb9af; background:#edf6f2; }
.login-form { max-width:440px; }
.service-order-move { display:flex; align-items:center; }

/* The service outline is edited in a focused composer, not a loose stack of fields. */
.service-order-add { margin:14px 0 0; padding:0; border:0; }
.service-order-add > summary { min-height:44px; padding:0 16px; border-color:#176f6b; background:#176f6b; color:#fff; list-style:none; }
.service-order-add > summary::-webkit-details-marker { display:none; }
.service-order-add > summary::marker { content:""; }
.service-order-add > summary:hover, .service-order-add > summary:focus-visible { background:#125b58; border-color:#125b58; }
.service-order-add-content { margin-top:13px; padding:18px; border:1px solid #dde6e2; border-radius:13px; background:#f8faf9; }
.service-order-add-content > p { margin:0 0 12px; color:var(--muted); font-size:14px; }
.service-order-form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; max-width:none; margin:0; }
.service-order-fields { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr); gap:0 16px; }
.service-order-fields > label { margin:0 0 12px; font-size:13px; font-weight:650; }
.service-order-fields > label:last-child { grid-column:1 / -1; }
.service-order-fields textarea { min-height:110px; }
.service-order-form > button { justify-self:start; min-width:150px; margin:0; }
.service-order-actions { gap:6px; }
.service-order-actions button { min-height:36px; margin:0; }
.service-order-actions .service-order-edit > summary { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 12px; border:1px solid #d8e1dd; border-radius:8px; background:#fff; color:#315e57; cursor:pointer; list-style:none; }
.service-order-edit > summary::-webkit-details-marker { display:none; }
.service-order-edit > summary::marker { content:""; }
.service-order-edit[open] { flex:1 0 100%; margin-top:8px; padding:14px; border:1px solid #dde6e2; border-radius:12px; background:#f8faf9; }
.service-order-edit .service-order-fields { grid-template-columns:minmax(0,1fr); }
.service-order-icon { display:grid; width:36px; min-height:36px; place-items:center; padding:0; border:1px solid #d8e1dd; background:#fff; color:#315e57; font-size:17px; }
.service-order-icon:hover { border-color:#9fb9af; background:#edf6f2; color:#174d45; }
.service-order-remove button { min-height:36px; padding:4px 9px; border:0; background:transparent; color:#76515f; font-size:13px; }
.service-order-remove button:hover { background:#f8eff2; color:#633d4c; }
.delete-item-form { display:inline-flex; width:max-content; max-width:100%; align-items:center; margin:5px 0; }
.delete-item-form button { min-height:36px; margin:0; padding:5px 11px; border:1px solid #eadde1; background:#fff; color:#7b4d5b; font-size:13px; }
.delete-item-form button:hover { border-color:#d9b9c1; background:#fbf2f4; color:#663c49; }
.action-confirm { width:min(420px,calc(100vw - 32px)); padding:26px; border:1px solid #e5e8e6; border-radius:18px; background:#fff; color:var(--ink); box-shadow:0 24px 80px #17212b38; }
.action-confirm::backdrop { background:#202a3370; backdrop-filter:blur(2px); }
.action-confirm-icon { display:grid; width:38px; height:38px; place-items:center; margin-bottom:14px; border-radius:12px; background:#fbf1f3; color:#80505e; font-weight:800; }
.action-confirm h2 { margin:0; font-size:21px; }
.action-confirm p { margin:8px 0 20px; color:var(--muted); font-size:14px; }
.action-confirm-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; }
.action-confirm-actions button { min-width:112px; margin:0; }
.action-confirm-actions .secondary { border:1px solid #dce4e0; background:#fff; color:#315e57; }
.action-confirm-actions .danger-action { background:#80505e; color:#fff; }
.action-confirm-actions .danger-action:hover { background:#673d4a; }
@media (max-width:680px) {
  .service-order-fields { grid-template-columns:minmax(0,1fr); }
  .service-order-add-content { padding:14px; }
  .compact-task { grid-template-columns:minmax(0,1fr); gap:8px; }
  .compact-task-actions { justify-content:flex-start; }
  .action-confirm { padding:22px; }
}

/* Mobile navigation and form controls: one predictable pattern across every page. */
.reception-venues { margin:24px 0 30px; }
.reception-venue-card { margin:12px 0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.reception-venue-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; min-height:0; margin:0; padding:0; }
.reception-venue-heading h3 { margin:8px 0 2px; }
.reception-contact-person { margin:4px 0; color:var(--muted); font-size:14px; }
.reception-call { display:inline-flex; align-items:center; min-height:40px; padding:7px 12px; border:1px solid var(--line); border-radius:9px; text-decoration:none; white-space:nowrap; }
.reception-venue-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.reception-contact-history { margin-top:14px; padding-top:13px; border-top:1px solid var(--line); }
.reception-contact-history h4 { margin-bottom:7px; }
.reception-chosen-mark { background:#eaf5ef; color:#27624a; }
.reception-selection-note { margin:14px 0 4px; padding:10px 12px; border-left:3px solid #64a584; background:#f3f9f5; }
.reception-choose { margin-top:12px; padding:10px 12px; border:1px solid #dce9e1; border-radius:10px; background:#f8fbf9; }
.reception-choose > summary { color:#28634d; }
.reception-choose-form { max-width:560px !important; }
.reception-contact-log { padding:10px 0; border-top:1px solid #edf0f2; }
.reception-contact-log strong { display:inline; font-size:14px; }
.reception-contact-log time { float:right; color:var(--muted); font-size:12px; }
.reception-contact-log p { clear:both; margin:5px 0 0; }
.reception-log-add, .reception-venue-edit, .reception-add-venue, .decision-edit { margin-top:12px; padding-top:9px; border-top:1px solid #edf0f2; }
.reception-add-venue { padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface-alt); }
.venue-extra-fields { margin:10px 0 14px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.venue-first-contact { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.venue-first-contact h4 { margin-bottom:5px; }
.reception-venue-form { max-width:none !important; }
.decision-edit-form { max-width:760px !important; }
@media (max-width:680px) {
  body { padding-bottom:calc(74px + env(safe-area-inset-bottom)); }
  main { padding:24px 16px calc(28px + env(safe-area-inset-bottom)); }
  nav[aria-label="Main navigation"] { position:fixed; inset:auto 0 0; z-index:20; display:flex; justify-content:space-around; align-items:stretch; gap:2px; width:100%; min-height:62px; padding:5px 6px max(5px,env(safe-area-inset-bottom)); overflow:visible; border:0; border-top:1px solid #dfe5e7; background:rgba(255,255,255,.98); box-shadow:0 -6px 20px rgba(23,33,43,.09); }
  nav[aria-label="Main navigation"] a { display:flex !important; flex:1 1 20%; min-width:0; min-height:48px; align-items:center; justify-content:center; padding:7px 2px; border-radius:8px; color:#52616e; font-size:11px; line-height:1.15; text-align:center; white-space:normal; }
  nav[aria-label="Main navigation"] a[href="/updates"], nav[aria-label="Main navigation"] a[href="/decisions"], nav[aria-label="Main navigation"] a[href="/tasks"], nav[aria-label="Main navigation"] a[href="/more"] { display:flex !important; }
  nav[aria-label="Main navigation"] a:not([href="/"]):not([href="/updates"]):not([href="/decisions"]):not([href="/tasks"]):not([href="/more"]) { display:none !important; }
  nav[aria-label="Main navigation"] a[aria-current="page"] { color:#176b83; background:#eef7fa; }
  nav[aria-label="Main navigation"] a.nav-more-current { color:#176b83; background:#eef7fa; }
  form:not(.inline-form) { width:100%; max-width:none !important; }
  form label { display:block; width:100%; margin:12px 0; }
  form input:not([type="checkbox"]):not([type="radio"]), form select, form textarea { display:block; width:100%; max-width:100%; min-height:48px; font-size:16px; }
  form textarea { min-height:112px; }
  form button, form > button { display:block; width:100%; min-height:48px; margin:12px 0 2px; }
  .form-grid, .contact-editor, .event-editor, .service-editor, .wake-editor, .reception-venue-facts { grid-template-columns:minmax(0,1fr) !important; }
  .form-grid > *, .contact-editor > *, .event-editor > *, .service-editor > *, .wake-editor > * { grid-column:1 !important; }
  .reception-venue-card { padding:15px; border-radius:12px; }
  .reception-venue-heading { flex-direction:column; gap:7px; }
  .reception-call { width:100%; justify-content:center; }
  .reception-contact-log time { float:none; display:block; margin-top:2px; }
  .reception-contact-log p { clear:none; }
  .reception-add-venue { padding:12px; }
  .section-heading { align-items:flex-start; }
}

/* Calendar: one chronological family timeline, with editing tools kept out of the way. */
.calendar-timeline { margin:24px 0 30px; }
.calendar-timeline-item { position:relative; display:grid; grid-template-columns:58px minmax(0,1fr); gap:14px; padding:14px 8px; border-top:1px solid var(--line); }
.calendar-timeline-item::before { content:""; position:absolute; left:27px; top:0; bottom:-1px; width:2px; background:#dfe9e8; }
.calendar-timeline-item:last-of-type::before { bottom:50%; }
.calendar-date-badge { position:relative; z-index:1; display:flex; width:48px; min-height:52px; flex-direction:column; align-items:center; justify-content:center; border:1px solid #dce7e4; border-radius:12px; background:#fff; color:#315c54; }
.calendar-date-badge small { color:#687d78; font-size:11px; line-height:1; text-transform:uppercase; }
.calendar-date-badge strong { margin-top:3px; font-size:20px; line-height:1.1; }
.calendar-timeline-copy { min-width:0; padding:2px 0; }
.calendar-timeline-copy > strong { display:block; margin-top:3px; font-size:16px; line-height:1.35; }
.calendar-entry-kind { color:#6e7d87; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.calendar-timeline-event .calendar-date-badge { color:#315c54; }
.calendar-timeline-reminder .calendar-date-badge { color:#69556a; border-color:#e8e0e9; }
.calendar-timeline-reminder .calendar-date-badge small { color:#817185; }
.calendar-entry-details { margin-top:7px; }
.calendar-entry-details > summary { padding:4px 0; font-size:13px; }
.calendar-entry-details[open] { padding:8px 12px; border-radius:9px; background:#f7f9fa; }
.calendar-earlier { margin:16px 0 0 8px; padding:10px 0 0; border-top:1px solid var(--line); }
.calendar-earlier > summary { color:var(--muted); font-size:13px; }
.calendar-funeral-highlight { display:flex; flex-wrap:wrap; gap:5px 12px; margin:18px 0; padding:13px 16px; border-left:3px solid #76515f; border-radius:0 10px 10px 0; background:#fbf6f8; }
.calendar-funeral-highlight strong { color:#624351; }
.calendar-funeral-highlight span { color:var(--muted); }
.calendar-composer { margin:12px 0; border:1px solid var(--line); border-radius:12px; background:#fff; }
.calendar-composer > summary { padding:13px 16px; color:#315e57; list-style:none; }
.calendar-composer > summary::-webkit-details-marker { display:none; }
.calendar-composer > summary::marker { content:""; }
.calendar-composer > summary::after { content:"＋"; float:right; color:#627e75; }
.calendar-composer[open] > summary::after { content:"−"; }
.calendar-composer[open] > summary { border-bottom:1px solid var(--line); }
.calendar-composer > div { padding:14px 16px 16px; }
.calendar-composer form { margin-top:8px; }
.calendar-subscription { margin-top:22px; }
@media (max-width:680px) {
  .calendar-timeline-item { grid-template-columns:48px minmax(0,1fr); gap:10px; padding:12px 2px; }
  .calendar-timeline-item::before { left:23px; }
  .calendar-date-badge { width:42px; min-height:48px; }
  .calendar-date-badge strong { font-size:18px; }
  .calendar-timeline-copy > strong { font-size:15px; }
  .calendar-composer > div { padding:12px; }
}

/* Music: show all ideas together and keep selection actions beside each track. */
.music-service-plan { margin:20px 0 30px; padding:18px; border:1px solid #dfe9e5; border-radius:15px; background:linear-gradient(135deg,#f5faf7,#fff 75%); }
.music-service-plan .section-heading { margin:0 0 8px; }
.music-slots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:10px 0 0; }
.music-slot { min-width:0; min-height:94px; display:flex; gap:10px; padding:13px; border:1px solid #e2e9e7; border-radius:11px; background:#fff; }
.music-slot > div { min-width:0; }
.music-slot > div > small:first-child { color:#6e7d78; font-size:10px; font-weight:750; letter-spacing:.08em; }
.music-slot strong, .music-slot span, .music-slot a { display:block; overflow-wrap:anywhere; }
.music-slot strong { margin-top:7px; font-size:14px; line-height:1.35; }
.music-slot span, .music-slot a { margin-top:3px; color:var(--muted); font-size:12px; }
.music-slot .slot-number { flex:0 0 auto; color:#80928a; }
.music-choice-reason { margin:14px 0 0; padding-top:12px; border-top:1px solid #e4ece8; font-size:14px; }
.music-browse { margin:24px 0 16px; }
.music-suggestion { margin:10px 0; padding:16px 18px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.music-suggestion-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.music-suggestion-heading h3 { margin:0; font-size:18px; }
.music-suggestion-heading p { margin:2px 0 0; color:var(--muted); font-size:14px; }
.music-suggested-by { margin-top:8px; font-size:12px; }
.music-suggestion-note { margin:10px 0; }
.music-selected-badge { flex:0 0 auto; padding:5px 9px; border-radius:999px; background:#eaf5ef; color:#27624a; font-size:11px; font-weight:700; }
.music-suggestion audio { width:min(100%,420px); margin:12px 0 4px; }
.music-suggestion .track-link { display:inline-flex; margin:10px 0 2px; }
.music-suggestion-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.music-suggestion-actions form { margin:0; }
.music-suggestion-actions button { min-height:38px; margin:0; }
.music-suggestion-actions .secondary { border:1px solid #dce5e0; background:#f7faf8; color:#315e57; }
.music-assign, .music-comments { margin-top:10px; padding-top:8px; border-top:1px solid #edf0f2; }
.music-assign > summary, .music-comments > summary { font-size:13px; }
.music-assign form { max-width:420px; }
.music-assign form select { margin-bottom:5px; }
.music-comments[open] { padding:8px 12px; border-radius:9px; background:#f8faf9; }
.music-add, .music-conclude, .music-reopen { margin:14px 0; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.music-add > summary, .music-conclude > summary, .music-reopen > summary { list-style:none; }
.music-add > summary::-webkit-details-marker, .music-conclude > summary::-webkit-details-marker, .music-reopen > summary::-webkit-details-marker { display:none; }
.music-add > summary::marker, .music-conclude > summary::marker, .music-reopen > summary::marker { content:""; }
.music-add > summary::after, .music-conclude > summary::after, .music-reopen > summary::after { content:"＋"; float:right; }
.music-add[open] > summary::after, .music-conclude[open] > summary::after, .music-reopen[open] > summary::after { content:"−"; }
.music-add-form, .music-conclude-form { max-width:620px !important; }
.music-next-step { margin:14px 2px; color:var(--muted); font-size:14px; }
@media (max-width:680px) {
  .music-service-plan { padding:14px; }
  .music-slots { grid-template-columns:1fr; gap:7px; }
  .music-slot { min-height:0; padding:11px 12px; }
  .music-suggestion { padding:14px; }
  .music-suggestion-heading { flex-direction:column; gap:8px; }
  .music-selected-badge { align-self:flex-start; }
  .music-suggestion-actions { display:grid; grid-template-columns:1fr; align-items:stretch; }
  .music-suggestion-actions form, .music-suggestion-actions button, .music-assign { width:100%; }
  .music-assign form { max-width:none; }
  .music-add, .music-conclude, .music-reopen { padding:12px; }
}

/* Photos: let the family scan the whole collection without carousel paging. */
.photo-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:16px 0 24px; }
.photo-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fff; }
.photo-thumbnail { display:block; width:100%; height:190px; min-height:0; margin:0; padding:0; overflow:hidden; border:0; border-radius:0; background:#f2f5f4; }
.photo-thumbnail:hover { background:#e9efed; }
.photo-thumbnail img { display:block; width:100%; height:100%; object-fit:cover; }
.photo-card-copy { padding:12px 14px 14px; }
.photo-card-copy h3 { margin:0; font-size:16px; }
.photo-card-copy > p { margin:5px 0; font-size:13px; }
.photo-card-copy > small { margin-top:7px; font-size:11px; }
.photo-card-badges { margin-top:6px; }
.photo-card-copy .photo-votes { color:var(--muted); font-size:12px; }
.photo-card-actions { margin-top:9px; padding-top:8px; border-top:1px solid #edf0f2; }
.photo-card-actions > summary, .photo-card-comments > summary { font-size:12px; }
.photo-card-actions[open] { padding:8px 10px; border-radius:9px; background:#f8faf9; }
.photo-card-actions > form { margin:5px 0; }
.photo-card-actions .photo-select-actions { display:grid; grid-template-columns:1fr; gap:3px; }
.photo-card-actions .photo-select-actions button, .photo-card-actions > form button { width:100%; min-height:38px; }
.photo-card-actions .photo-download { margin:8px 0; font-size:12px; }
.photo-card-comments { margin-top:6px; padding-top:5px; border-top:1px solid #e8eeeb; }
@media (max-width:900px) { .photo-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) {
  .photo-gallery { grid-template-columns:1fr; gap:11px; }
  .photo-thumbnail { height:220px; }
  .photo-card-copy { padding:12px; }
}

/* Shared page controls and secondary navigation. */
.guest-compose, .update-compose, .contact-create, .simple-composer, .settings-section { border:1px solid var(--line); border-radius:12px; background:#fff; }
.guest-compose, .update-compose, .contact-create { margin:14px 0; padding:0 15px 14px; }
.guest-compose > summary, .update-compose > summary, .contact-create > summary, .simple-composer > summary, .settings-section > summary { display:block; padding:14px 0; color:#315e57; list-style:none; cursor:pointer; }
.guest-compose > summary::-webkit-details-marker, .update-compose > summary::-webkit-details-marker, .contact-create > summary::-webkit-details-marker, .simple-composer > summary::-webkit-details-marker, .settings-section > summary::-webkit-details-marker { display:none; }
.guest-compose > summary::marker, .update-compose > summary::marker, .contact-create > summary::marker, .simple-composer > summary::marker, .settings-section > summary::marker { content:""; }
.guest-compose > summary::after, .update-compose > summary::after, .contact-create > summary::after, .simple-composer > summary::after, .settings-section > summary::after { content:"＋"; float:right; margin-left:10px; color:#627e75; }
.guest-compose[open] > summary::after, .update-compose[open] > summary::after, .contact-create[open] > summary::after, .simple-composer[open] > summary::after, .settings-section[open] > summary::after { content:"−"; }
.guest-compose > summary strong, .guest-compose > summary small, .update-compose > summary strong, .update-compose > summary small, .contact-create > summary strong, .contact-create > summary small { display:block; }
.guest-compose > summary strong, .update-compose > summary strong, .contact-create > summary strong { margin-top:2px; }
.guest-compose > div { padding-top:2px; }
.update-compose { display:block; }
.update-compose form { max-width:760px; }
.simple-composer { margin:16px 0; padding:0 15px 12px; }
.settings-section { margin:12px 0; padding:0 12px 12px; }
.more-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.more-section { padding:16px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.more-section h2 { margin-bottom:8px; color:#52666a; font-size:15px; }
.more-section .more-links { display:grid; grid-template-columns:1fr; gap:0; }
.more-links a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 2px; }
.more-links a span { color:#8b99a5; }
@media (max-width:680px) {
  .more-sections { grid-template-columns:1fr; gap:10px; }
  .more-section { padding:13px; }
  .guest-compose, .update-compose, .contact-create { padding:0 12px 12px; }
  .simple-composer { padding:0 12px 10px; }
}
