:root {
  --ink:#073f3d; --teal:#08766f; --mint:#e4f4f0; --paper:#fffefd;
  --line:#bad5cd; --muted:#456865; --error:#a53333;
  font-family:'Plus Jakarta Sans',system-ui,sans-serif; color:var(--ink);
  background:var(--mint); font-size:16px; -webkit-font-smoothing:antialiased;
}
* { box-sizing:border-box; }
html { scroll-padding-top:24px; }
body { margin:0; }
.intro { min-width:0; margin-bottom:32px; text-align:center; }
.intro .headline { max-width:780px; margin:0 auto; font-size:42px; font-weight:600; letter-spacing:-.045em; line-height:1.14; text-wrap:balance; }
.headline>span { color:var(--teal); }
.subheadline { max-width:710px; margin:18px auto 0; color:var(--muted); font-size:14px; line-height:1.75; text-wrap:pretty; }
.photo-gallery { --photo-width:240px; --photo-gap:12px; position:relative; height:184px; margin-top:26px; overflow:hidden; border-radius:16px; text-align:left; }
.photo-track { display:flex; width:max-content; height:100%; animation:photos-scroll 32s linear infinite; will-change:transform; }
.photo-group { display:flex; height:100%; gap:var(--photo-gap); padding-right:var(--photo-gap); flex-shrink:0; }
.photo-group img { display:block; width:var(--photo-width); height:100%; flex-shrink:0; object-fit:cover; border-radius:14px; object-position:50% 38%; }
.photo-group .portrait { object-position:82% 35%; }
.photo-group .community { object-position:58% 35%; }
.photo-group .walk { object-position:40% 40%; }
@keyframes photos-scroll { to { transform:translateX(-50%); } }
.gallery-toggle { position:absolute; bottom:9px; right:9px; display:grid; place-items:center; width:36px; height:36px; border:1px solid #ffffff90; border-radius:50%; color:var(--ink); background:#fffefde8; }
.gallery-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gallery-toggle .play-icon { display:none; }
.photo-gallery.is-paused .photo-track { animation-play-state:paused; }
.photo-gallery.is-paused .pause-icon { display:none; }
.photo-gallery.is-paused .play-icon { display:block; }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
[hidden] { display:none!important; }
.page { width:min(960px,calc(100% - 48px)); margin:40px auto; }
.page.is-complete { width:min(760px,calc(100% - 48px)); }
.card { width:100%; max-width:760px; min-width:0; margin:0 auto; background:var(--paper); border:1px solid #cde2d9; border-radius:20px; padding:34px; }
.form-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:30px; }
.step-count { font-size:14px; font-weight:600; color:var(--teal); font-variant-numeric:tabular-nums; }
.progress { display:flex; align-items:center; gap:8px; }
.progress button { position:relative; border:0; border-radius:4px; width:48px; height:24px; background:transparent; padding:0; }
.progress button::before { content:''; display:block; height:4px; background:#d7e5e2; border-radius:4px; }
.progress button.active::before,.progress button.completed::before { background:var(--teal); }
h1,h2 { margin:0 0 32px; font-size:32px; font-weight:600; letter-spacing:-.045em; line-height:1.25; outline:none; }
.fields { display:grid; gap:26px; }
.two-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.field { display:flex; flex-direction:column; gap:10px; min-width:0; margin:0; padding:0; border:0; }
.field>label,.field legend { font-size:14px; font-weight:600; line-height:1.65; }
.field legend { padding:0; margin-bottom:10px; }
.field input:not([type=radio]),.field select { width:100%; min-width:0; min-height:51px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); padding:12px 14px; font-size:16px; }
.field input::placeholder { font-size:14px; color:#657e77; opacity:1; }
.field input:focus,.field select:focus { border-color:var(--teal); box-shadow:0 0 0 3px #08766f18; outline:none; }
button:focus-visible,.choice input:focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
a:focus-visible,.privacy-consent input:focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
.privacy-intro { margin:-18px 0 26px; font-size:12px; line-height:1.6; }
.privacy-intro a,.legal-page a { color:var(--teal); text-underline-offset:3px; }
.privacy-consent { display:flex; align-items:flex-start; gap:12px; margin-top:26px; color:var(--muted); font-size:13px; line-height:1.7; cursor:pointer; }
.privacy-consent input { flex-shrink:0; width:19px; height:19px; margin:3px 0 0; accent-color:var(--teal); }
.privacy-consent:has([aria-invalid=true]) { color:var(--error); }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.legal-page { max-width:760px; }
.legal-page h1 { margin-bottom:12px; }
.legal-page h2 { margin:28px 0 10px; font-size:18px; letter-spacing:-.025em; }
.legal-page p,.legal-page li { font-size:14px; line-height:1.8; color:var(--muted); }
.legal-page ul { padding-left:20px; }
.legal-page .legal-version { margin:0 0 24px; font-size:12px; }
.legal-page .preview-note { padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:#f1faf7; }
.admin-page { width:min(1100px,calc(100% - 48px)); }
.admin-tabs { display:flex; gap:22px; margin-bottom:30px; }
.admin-tabs a { color:var(--muted); padding-bottom:8px; text-decoration:none; font-size:14px; border-bottom:2px solid transparent; }
.admin-tabs a[aria-current=page] { color:var(--ink); border-color:var(--teal); }
.admin-heading,.detail-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:28px; }
.admin-heading h1 { margin-bottom:10px; }
.admin-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.admin-secondary { padding:13px 16px; background:var(--paper); border:1px solid var(--line); color:var(--ink); border-radius:8px; font-size:14px; min-height:48px; }
.admin-export { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.admin-card { max-width:none; padding:0; overflow:hidden; }
.admin-empty { text-align:center; padding:64px 24px; margin:0; color:var(--muted); }
.admin-table-wrap { overflow-x:auto; }
.admin-table-wrap table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; }
.admin-table-wrap th { color:var(--muted); font-weight:500; background:#f1faf7; }
.admin-table-wrap th,.admin-table-wrap td { padding:20px 22px; border-bottom:1px solid #d7e5e2; overflow-wrap:anywhere; }
.admin-table-wrap tr:last-child td { border-bottom:0; }
.admin-open { background:transparent; border:0; padding:8px 0; color:var(--teal); text-decoration:underline; text-underline-offset:3px; white-space:nowrap; font-size:13px; }
.response-dialog { width:min(700px,calc(100% - 28px)); max-height:85dvh; overflow-y:auto; padding:28px; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:var(--paper); }
.response-dialog::backdrop { background:#073f3d80; }
.detail-heading h2 { font-size:25px; margin:0 0 8px; overflow-wrap:anywhere; }
.response-fields { margin:0; }
.response-fields>div { padding:14px 0; border-top:1px solid #d7e5e2; }
.response-fields dt { color:var(--muted); font-size:12px; margin-bottom:5px; }
.response-fields dd { margin:0; font-size:14px; line-height:1.65; overflow-wrap:anywhere; white-space:pre-wrap; }
.choices { display:grid; gap:10px; }
.choice { border:1px solid var(--line); border-radius:8px; min-height:51px; display:flex; align-items:center; gap:11px; padding:12px 14px; cursor:pointer; background:#fff; font-size:14px; line-height:1.6; }
.choice:hover { border-color:var(--teal); }
.choice:has(input:checked) { border-color:var(--teal); background:#f1faf7; box-shadow:inset 0 0 0 1px var(--teal); }
.choice input { margin:0; width:18px; height:18px; flex-shrink:0; accent-color:var(--teal); }
.weight-control { display:flex; max-width:260px; }
.weight-control input { border-radius:8px 0 0 8px!important; }
.weight-control select { width:82px; flex-shrink:0; border-left:0; border-radius:0 8px 8px 0; }
.hint { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.form-actions { border-top:1px solid #d7e5e2; padding-top:24px; margin-top:32px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.primary-button { border:1px solid var(--ink); background:var(--ink); color:white; border-radius:8px; font-size:14px; font-weight:600; min-height:50px; min-width:144px; padding:14px 24px; margin-left:auto; }
.primary-button:hover { background:var(--teal); border-color:var(--teal); }
.primary-button:disabled { opacity:.6; }
.back-button { background:transparent; color:var(--muted); border:0; padding:14px 0; font-size:14px; }
.form-error { padding:12px 14px; background:#fff5f1; border:1px solid #e6b9b2; border-radius:8px; color:var(--error); line-height:1.6; font-size:14px; margin-bottom:22px; }
.field input[aria-invalid=true] { border-color:var(--error); }
.completion { min-height:370px; display:grid; place-items:center; text-align:center; }
.completion h1 { margin:0; font-size:38px; line-height:1.4; }
@media(max-width:800px) {
  .page { margin:32px auto; }
  .intro { margin-bottom:28px; }
  .intro .headline { font-size:34px; }
  .subheadline { margin-top:14px; }
  .photo-gallery { --photo-width:210px; height:172px; margin-top:22px; }
}
@media(max-width:600px) {
  .admin-heading { flex-direction:column; }
  .admin-actions { width:100%; }
  .admin-actions>* { flex:1; }
  .admin-table-wrap th,.admin-table-wrap td { padding:16px; min-width:130px; }
  .page { width:calc(100% - 28px); margin:20px auto; }
  .intro { padding:8px 8px 0; }
  .intro .headline { font-size:28px; }
  .subheadline { font-size:13px; line-height:1.65; }
  .photo-gallery { --photo-width:172px; --photo-gap:10px; height:144px; margin-top:20px; border-radius:12px; }
  .photo-group img { border-radius:10px; }
  .card { padding:28px 22px; border-radius:16px; }
  .form-header { margin-bottom:26px; }
  h1,h2 { font-size:28px; margin-bottom:28px; }
  .fields { gap:23px; }
  .two-cols { grid-template-columns:1fr; gap:23px; }
  .choices.two-cols { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .choice { padding:12px; }
  .completion { min-height:390px; }
  .completion h1 { font-size:30px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; }
  .photo-track { animation:none!important; }
  .gallery-toggle { display:none; }
}
