/* Rescates: controls stay in normal flow on phones and in installed web apps. */
.rescue-entry,.rescue-screen,.rescue-dialog-content,.rescue-order-notice{min-width:0;max-width:100%;overflow-wrap:anywhere}
.rescue-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:14px 16px;border:1px solid #e1cbe9;border-radius:13px;background:#fff9ff}
.rescue-entry-copy{display:grid;gap:4px;min-width:0;flex:1}
.rescue-entry-copy strong{font-size:14px;color:#49245c}
.rescue-entry-copy p{font-size:12px;line-height:1.5;color:#625669}
.rescue-entry-actions,.rescue-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rescue-entry .button,.rescue-actions .button{min-height:44px;min-width:0;white-space:normal;text-align:center}
.rescue-request-button{background:#743c87;color:#fff}
.rescue-screen{display:grid;gap:18px}
.rescue-screen-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rescue-screen-heading h2{font-size:21px;line-height:1.25;margin:0 0 6px}
.rescue-screen-heading p{font-size:13px;line-height:1.55;color:#625669;max-width:650px}
.rescue-screen-heading .rescue-actions{flex-shrink:0}
.rescue-section{display:grid;gap:12px;min-width:0}
.rescue-section h3{font-size:15px;margin:0}
.rescue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.rescue-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;border:1px solid var(--line,#e5e9e6);border-radius:16px;background:#fff}
.rescue-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rescue-card-header h4{font-size:15px;line-height:1.4;margin:0}
.rescue-card-header .badge{white-space:normal;max-width:100%}
.rescue-card p{font-size:13px;line-height:1.55;margin:0}
.rescue-card .rescue-actions{margin-top:auto}
.rescue-meta{display:flex;gap:8px 14px;flex-wrap:wrap;color:#625669;font-size:12px;line-height:1.5}
.rescue-privacy-note{font-size:12px!important;color:#625669;line-height:1.6}
.rescue-empty{padding:22px;border:1px dashed #d9cfe0;border-radius:13px;background:#fff;font-size:13px;line-height:1.6;color:#625669}
.rescue-status-message{padding:12px 14px;border-radius:10px;background:#f3edff;border:1px solid #e1d5f2;font-size:13px;line-height:1.6;margin:0}
.rescue-status-message.is-error{background:#fff3f1;border-color:#ebcfc9;color:#8a3025}
.rescue-emergency{padding:12px 14px;border:1px solid #e8d5ad;border-radius:10px;background:#fff9ec;color:#704f1c;font-size:13px;line-height:1.55}
.rescue-dialog-content{display:grid;gap:16px}
.rescue-dialog-content h3{font-size:15px;margin:0}
.rescue-dialog-content p{line-height:1.6}
.rescue-form{display:grid;gap:16px;min-width:0}
.rescue-form fieldset{min-width:0;margin:0;padding:13px;border:1px solid var(--line,#e5e9e6);border-radius:11px;display:grid;gap:12px}
.rescue-form legend{padding:0 5px;font-size:14px;font-weight:700}
.rescue-form label,.rescue-form input,.rescue-form select,.rescue-form textarea{min-width:0;max-width:100%}
.rescue-form label{line-height:1.5}
.rescue-form .checkbox{align-items:flex-start;gap:10px}
.rescue-form .checkbox input{flex:0 0 20px;width:20px;min-height:20px;height:20px;margin:2px 0 0}
.rescue-form .checkbox span{flex:1;min-width:0}
.rescue-form .button{min-height:44px;white-space:normal;min-width:0}
.rescue-location-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rescue-location-feedback{font-size:12px;line-height:1.6;min-height:1.6em;color:#625669}
.rescue-form-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line,#e5e9e6)}
.rescue-form-actions .button{flex:1 1 180px}
.rescue-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0;counter-reset:rescue-step}
.rescue-steps li{counter-increment:rescue-step;display:grid;align-content:start;justify-items:start;gap:6px;padding:10px;border:1px solid #e4dce9;border-radius:10px;font-size:11px;line-height:1.45;color:#625669;min-width:0}
.rescue-steps li:before{content:counter(rescue-step);display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#eee6f5;color:#49245c;font-size:12px;font-weight:750}
.rescue-steps li.is-done{background:#edf6ef;border-color:#cfe2d3;color:#2b5940}
.rescue-steps li.is-done:before{background:#d5e9da;color:#205537}
.rescue-steps li[aria-current=step]{background:#f3edff;border-color:#a37acb;color:#49245c}
.rescue-info{display:grid;gap:12px;margin:0}
.rescue-info>div{display:grid;grid-template-columns:minmax(110px,.6fr) minmax(0,1.4fr);gap:8px;padding:9px 0;border-bottom:1px solid #eee7f1}
.rescue-info dt{font-size:12px;color:#625669}
.rescue-info dd{font-size:13px;margin:0;min-width:0;line-height:1.55}
.rescue-location{display:grid;gap:10px;padding:14px;border:1px solid #ded1ea;border-radius:12px;background:#fcfaff}
.rescue-location p{font-size:13px}
.rescue-location .rescue-actions .button{flex:1 1 140px}
.rescue-order-list{display:grid;gap:7px;padding:0;margin:0;list-style:none}
.rescue-order-list li{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;border:1px solid var(--line,#e5e9e6);border-radius:9px;padding:10px;font-size:12px;line-height:1.5;min-width:0}
.rescue-order-list li span{min-width:0}
.rescue-order-list li b{white-space:normal}
.rescue-history{border-top:1px solid var(--line,#e5e9e6);padding-top:12px;font-size:12px;line-height:1.6}
.rescue-history summary{cursor:pointer;font-weight:650;min-height:36px;display:flex;align-items:center}
.rescue-history ol{padding-left:19px;margin:8px 0 0}
.rescue-history li{margin-bottom:8px}
.rescue-order-notice{flex:1 1 100%;display:grid;gap:8px;padding:11px 12px;border:1px solid #e1cbe9;border-radius:10px;background:#fff9ff;color:#49245c;font-size:12px;line-height:1.5}
.rescue-order-notice .button{white-space:normal!important;min-height:44px}
.rescue-tabs{flex-wrap:wrap;gap:0 20px}
.rescue-tabs .tab{min-height:44px;white-space:normal}
.rescue-tabs .tab .count{flex-shrink:0}
@media(max-width:700px){.rescue-list{grid-template-columns:minmax(0,1fr)}.rescue-entry{align-items:flex-start;flex-wrap:wrap}.rescue-entry-actions{width:100%}.rescue-entry-actions .button{flex:1 1 135px}}
@media(max-width:420px){
 .rescue-entry{padding:13px}
 .rescue-screen-heading .rescue-actions{width:100%}
 .rescue-screen-heading .rescue-actions .button{flex:1 1 125px}
 .rescue-card{padding:14px}
 .rescue-card .rescue-actions{width:100%}
 .rescue-card .rescue-actions .button{flex:1 1 125px}
 .rescue-form input,.rescue-form select,.rescue-form textarea{font-size:16px}
 .rescue-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rescue-info>div{grid-template-columns:minmax(0,1fr);gap:4px}
 .rescue-location-controls .button{width:100%}
 .rescue-tabs{column-gap:13px}
 .rescue-tabs .tab{font-size:12px;gap:6px}
 .rescue-tabs .tab .icon{width:16px;height:16px}
}
@media print{.rescue-entry,.rescue-screen,.rescue-order-notice{display:none!important}}
