/* Rescue stays direct: white space, clear rows, and calm touch controls. */
.pet-rescue{max-width:980px;margin:0 auto;color:var(--ink)}
.rescue-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;padding:22px 0 36px}
.rescue-heading>div:first-child{min-width:0}
.rescue-heading h1{font-size:40px;line-height:1.2;font-weight:650;letter-spacing:-1.2px;margin:0 0 16px;overflow-wrap:anywhere}
.rescue-heading p{color:var(--muted);font-size:15px;line-height:1.8;margin:0;max-width:44ch}
.rescue-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:22px;flex:none}
.rescue-heading-actions>.text-button{font-size:13px;font-weight:400}
.rescue-filters{border-bottom:1px solid var(--line)}
.rescue-kind-filter{display:flex;gap:4px;width:fit-content;max-width:100%;padding:4px;border-radius:14px;background:var(--surface)}
.rescue-kind-filter>button{min-height:46px;position:relative;padding:10px 22px;border-radius:11px;font-size:14px;white-space:nowrap;color:var(--muted)}
.rescue-kind-filter>button[aria-pressed=true]{color:var(--ink);background:var(--white);font-weight:650}
.rescue-kind-filter>button[aria-pressed=true]:after{content:none}
.rescue-filter-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;min-width:0}
.rescue-district-label{display:flex;align-items:center;gap:12px;min-width:0;font-size:13px;color:var(--muted);white-space:nowrap}
.rescue-district-label select{font:inherit;font-size:16px;min-width:0;max-width:170px;min-height:44px;color:var(--ink);background:var(--surface);border:0;border-radius:12px;padding:9px 32px 9px 14px}
.rescue-mine-button{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:9px 15px;border-radius:999px;color:var(--muted);font-size:13px}
.rescue-mine-button[aria-pressed=true]{background:var(--ink);color:var(--white)}
.rescue-mine-button svg{width:17px;height:17px}
.rescue-source-note{color:var(--muted);font-size:12px;line-height:1.8;margin:20px 0 5px}
.rescue-feed{min-width:0}
.rescue-feed-status{padding:22px 0;color:var(--muted);font-size:14px;line-height:1.8}
.rescue-feed-error{padding:16px 18px;border-radius:12px;background:#fff4f2;color:#b42318;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.rescue-feed-error p{margin:0 0 12px}
.rescue-posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.rescue-post{min-width:0;border-bottom:1px solid var(--line)}
.rescue-post-link{width:100%;min-width:0;display:flex;gap:20px;text-align:left;padding:28px 0}
.rescue-post-link:hover .rescue-post-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-weight:600;font-size:21px;line-height:1.45;letter-spacing:-.4px;margin-bottom:10px}
.rescue-post-photo{width:112px;height:140px;object-fit:cover;flex:none;border-radius:14px;background:var(--surface)}
.rescue-post-copy{display:block;min-width:0;flex:1}
.rescue-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:10px}
.rescue-post-meta>span:first-child{color:var(--ink);font-weight:500}
.rescue-post-status{font-weight:500}
.rescue-post-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-weight:550;font-size:19px;line-height:1.5;letter-spacing:-.2px;margin-bottom:9px}
.rescue-post-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:14px;line-height:1.8;color:var(--muted);margin-bottom:14px}
.rescue-post-place{display:flex;align-items:flex-start;gap:5px;color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:7px;min-width:0}
.rescue-post-place>svg{width:14px;height:14px;margin-top:3px}
.rescue-post-place>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.rescue-post-date{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;line-height:1.7;font-variant-numeric:tabular-nums}
.rescue-post-date>span{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
.rescue-post-date svg{width:15px;height:15px}
.rescue-post:has(.rescue-post-actions) .rescue-post-link{padding-bottom:12px}
.rescue-post-actions{display:flex;justify-content:flex-end;padding:0 0 26px}
.rescue-post-actions>.secondary{font-size:13px;min-height:44px;padding:10px 18px;border:0;border-radius:999px;background:var(--surface);color:var(--ink)}
.rescue-post-actions svg{width:16px;height:16px}
.rescue-empty{max-width:none;min-height:290px;padding:42px;border-radius:16px;background:var(--surface);margin-top:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.rescue-empty h2{font-size:29px;line-height:1.4;font-weight:600;letter-spacing:-.7px;margin:0 0 14px;overflow-wrap:anywhere}
.rescue-empty p{font-size:15px;line-height:1.8;color:var(--muted);max-width:440px;margin:0 0 27px}
.rescue-page-note{font-size:12px;line-height:1.9;color:var(--muted);margin:30px 0 0;max-width:570px}
.rescue-form{display:grid;gap:22px;min-width:0}
.rescue-form .form-grid{gap:20px;min-width:0}
.rescue-form .field>label{font-size:13px;font-weight:600}
.rescue-form .field input,.rescue-form .field select,.rescue-form .field textarea{font-size:16px;min-width:0;max-width:100%;min-height:48px}
.rescue-form .field textarea{line-height:1.7}
.rescue-form .field small{font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.rescue-form-intro{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.rescue-publish-form{gap:17px}
.rescue-choices{border:0;padding:0;margin:0;min-width:0}
.rescue-choices>legend{padding:0;margin:0 0 9px;font-size:13px;font-weight:600}
.rescue-choices>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rescue-choice{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:46px;padding:9px 5px;border:1px solid transparent;border-radius:12px;background:var(--surface);color:var(--ink);font-size:13px;cursor:pointer}
.rescue-choice>input{width:16px;height:16px;min-height:0;flex:none;margin:0;accent-color:var(--accent)}
.rescue-choice>span{white-space:nowrap}
.rescue-choice:has(input:checked){background:var(--accent-soft);border-color:var(--accent);color:#005ebf;font-weight:600}
.rescue-choice:has(input:disabled){opacity:.55;cursor:default}
.rescue-choice:has(input:focus-visible),.rescue-more>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.rescue-choice>input:focus-visible{outline:0}
.rescue-location-fields{display:grid;grid-template-columns:108px minmax(0,1fr);gap:12px;min-width:0}
.rescue-location-fields select{padding-left:10px;padding-right:10px}
.rescue-publish-form #rescue-description{min-height:104px}
.rescue-publish-form .rescue-file-field input[type=file]{padding:4px 8px 4px 4px;line-height:1.6}
.rescue-publish-form .rescue-file-field input[type=file]::file-selector-button{border-radius:9px;margin-right:9px}
.rescue-more{min-width:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rescue-more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 0;color:var(--muted);font-size:13px;cursor:pointer;list-style:none}
.rescue-more>summary::-webkit-details-marker{display:none}
.rescue-more>summary:after{content:"+";font-size:21px;font-weight:400;line-height:1}
.rescue-more[open]>summary:after{content:"−"}
.rescue-more-fields{display:grid;gap:17px;padding:8px 0 19px;min-width:0}
.rescue-more-fields textarea{min-height:88px}
.rescue-publish-form .rescue-consent{font-size:12px;line-height:1.8}
.rescue-optional{font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}
.rescue-file-field input[type=file]{padding:8px;font-size:13px;background:var(--surface);border:0;border-radius:12px;line-height:1.8}
.rescue-file-field input[type=file]::file-selector-button{font:inherit;color:var(--ink);background:var(--white);border:0;border-radius:9px;min-height:44px;padding:9px 13px;margin-right:9px;cursor:pointer}
.rescue-consent{align-items:flex-start;color:var(--muted);min-width:0;min-height:44px;padding-block:4px}
.rescue-consent>input{flex:none;margin-top:4px;accent-color:var(--accent)}
.rescue-consent>span{overflow-wrap:anywhere}
.rescue-form-error{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.rescue-form-error:empty{display:none}
.rescue-hint{font-size:12px;line-height:1.9;color:var(--muted);margin:0;overflow-wrap:anywhere}
.rescue-detail{min-width:0}
.rescue-detail-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 20px}
.rescue-detail-meta>span:first-child{color:var(--green);font-weight:500}
.rescue-detail-photo{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:16px;background:var(--surface);margin:0 0 28px}
.rescue-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px;margin:0 0 28px}
.rescue-facts>div{min-width:0}
.rescue-facts dt{font-size:12px;color:var(--muted);margin-bottom:6px}
.rescue-facts dd{font-size:14px;line-height:1.8;margin:0;overflow-wrap:anywhere}
.rescue-facts .rescue-fact-location{grid-column:1/-1}
.rescue-detail-section{margin:0 0 25px}
.rescue-detail-section h3{font-size:16px;font-weight:550;line-height:1.6;margin:0 0 9px}
.rescue-detail-section p{font-size:14px;line-height:1.9;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.rescue-detail-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;min-width:0}
.rescue-withdraw{color:#b42318;font-size:13px}
.rescue-closed-note{font-size:13px;color:var(--muted);line-height:1.8;background:var(--surface);border-radius:12px;padding:15px 17px;margin:24px 0 0}
.rescue-message-context{font-size:14px;line-height:1.8;color:var(--muted);margin:0;overflow-wrap:anywhere}
.rescue-message-presets{display:flex;gap:9px;flex-wrap:wrap;min-width:0}
.rescue-message-presets>button{min-height:44px;padding:10px 16px;border:0;border-radius:999px;font-size:13px;color:var(--ink);background:var(--surface)}
.rescue-message-presets>button:hover{background:#e8e8ed}
.rescue-original-message{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}
.rescue-original-message>span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.rescue-original-message>p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}
.rescue-inbox{min-width:0}
.rescue-inbox-group{margin:0 0 30px}
.rescue-inbox-group>h3{font-size:16px;line-height:1.6;font-weight:550;margin:0 0 6px}
.rescue-inbox-message{padding:20px 0;border-bottom:1px solid var(--line);min-width:0}
.rescue-message-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px 18px;flex-wrap:wrap;margin:0 0 8px}
.rescue-message-heading h4{font-size:15px;line-height:1.8;font-weight:500;overflow-wrap:anywhere;margin:0}
.rescue-message-heading time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.rescue-message-contact{font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere;margin:0 0 8px}
.rescue-message-text,.rescue-message-reply p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.rescue-inbox-message>.text-button{margin-top:9px;font-size:13px}
.rescue-message-reply{margin-top:17px;padding:17px;border-radius:12px;background:var(--surface);min-width:0}
.rescue-message-reply>span{font-size:12px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}
.rescue-message-reply p{margin-top:6px}
.rescue-message-pending{color:var(--muted);font-size:12px;line-height:1.8;margin:14px 0 0}
.rescue-inbox-empty{padding:28px;border-radius:16px;background:var(--surface)}
.rescue-inbox-empty h3{font-size:20px;font-weight:500;line-height:1.6;margin:0 0 10px}
.rescue-inbox-empty p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
@media(max-width:900px){.rescue-posts{grid-template-columns:minmax(0,1fr)}.rescue-post-photo{width:120px;height:140px}.rescue-heading{align-items:flex-start;flex-direction:column;gap:16px}.rescue-heading-actions{width:100%;justify-content:space-between}}
@media(max-width:600px){.rescue-heading{padding:12px 0 28px;gap:16px}.rescue-heading h1{font-size:32px;letter-spacing:-.85px;margin-bottom:12px}.rescue-heading p{font-size:14px;line-height:1.8}.rescue-heading-actions{gap:12px}.rescue-kind-filter{width:100%;justify-content:space-between;gap:3px;border-radius:12px}.rescue-kind-filter>button{flex:1;font-size:13px;padding:10px 7px;border-radius:9px}.rescue-filter-row{gap:12px;padding:12px 0}.rescue-district-label{gap:8px;font-size:12px}.rescue-district-label select{max-width:143px;padding-left:9px;padding-right:22px}.rescue-mine-button{font-size:12px;padding:8px}.rescue-source-note{font-size:12px;margin-top:18px}.rescue-post-link{gap:16px;padding:26px 0}.rescue-post-photo{width:96px;height:122px;border-radius:12px}.rescue-post-title{font-size:20px;letter-spacing:-.35px;margin-bottom:9px}.rescue-post-meta{font-size:12px;gap:5px 9px;margin-bottom:8px}.rescue-post-description{font-size:13px;margin-bottom:10px}.rescue-empty{padding:30px 25px;min-height:270px}.rescue-empty h2{font-size:26px;letter-spacing:-.6px}.rescue-empty p{font-size:14px}.rescue-page-note{margin-top:24px}.rescue-form .form-grid{gap:18px 12px}.rescue-form .field input[type=date]{width:100%}.rescue-detail-photo{max-height:330px}.rescue-facts{gap:15px 12px}.rescue-facts dd{font-size:13px}.rescue-message-heading{display:block}.rescue-message-heading time{display:block;margin-top:3px}}
@media(max-width:360px){.rescue-heading h1{font-size:29px}.rescue-kind-filter{gap:3px}.rescue-kind-filter>button{font-size:12px;padding-inline:5px}.rescue-post-photo{width:82px;height:108px}.rescue-post-link{gap:12px}.rescue-post-title{font-size:18px}.rescue-district-label select{max-width:128px}.rescue-form .form-grid{grid-template-columns:minmax(0,1fr)}.rescue-form .full-width{grid-column:auto}}
@media(max-width:1049px){.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding-left:8px;padding-right:8px}.bottom-nav .nav-link{min-width:0;padding-left:4px;padding-right:4px;white-space:nowrap}}
/* Keep only rescue form actions reachable while the form body scrolls. */
#sheet:has(.rescue-form),#sheet-content:has(.rescue-form){max-height:88dvh}
#sheet-content:has(.rescue-form)>.sheet-header,#sheet-content:has(.rescue-form)>.sheet-footer{flex-shrink:0}
#sheet-content:has(.rescue-form)>.sheet-body{min-height:0;scroll-padding-block:16px}
#sheet-content:has(.rescue-form)>.sheet-footer>.primary{width:100%;min-height:48px}
@media(max-width:767px){#sheet:has(.rescue-form),#sheet-content:has(.rescue-form){max-height:92dvh}.rescue-publish-form{gap:16px}}
@media(max-width:360px){.rescue-choices>div{gap:6px}.rescue-choice{gap:5px;font-size:12px}.rescue-choice>input{width:14px;height:14px}.rescue-location-fields{grid-template-columns:100px minmax(0,1fr);gap:10px}}
@media(max-height:550px){#sheet:has(.rescue-form),#sheet-content:has(.rescue-form){max-height:calc(100dvh - 12px)}#sheet-content:has(.rescue-form)>.sheet-header{padding-top:11px;padding-bottom:10px}#sheet-content:has(.rescue-form)>.sheet-footer{padding-top:10px;padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}}
