/* Incident detail redesign v320 */
#services.incident-detail-modal{
  box-sizing:border-box;width:min(1200px,calc(100vw - 40px));max-width:1200px;max-height:calc(100dvh - 32px);overflow-x:hidden;overflow-y:auto;padding:28px 34px;border:1px solid #dce5dc;border-radius:20px;background:#fbfcf9;color:var(--ink,#173e35);box-shadow:0 24px 80px #10231f30;overscroll-behavior:contain
}
#services.incident-detail-modal>.close{position:absolute;z-index:2;top:16px;right:18px;display:grid;place-items:center;width:40px;height:40px;margin:0;border:1px solid #dce5dc;border-radius:50%;background:#fff;color:#173e35;font-size:24px;line-height:1}
#services.incident-detail-modal #servicesBody{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:0}
#services .incident-detail-page{box-sizing:border-box;width:min(100%,1120px);max-width:100%;margin:0 auto;color:#173e35;font-family:var(--sans,Arial,sans-serif)}
#services .incident-detail-topbar{display:flex;align-items:center;min-height:32px;margin:0 54px 15px 0}
#services .incident-back-button{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 0;border:0;background:transparent;color:#173e35;font:500 14px/1.4 var(--sans,Arial,sans-serif);text-align:left;cursor:pointer}
#services .incident-back-button:hover{text-decoration:underline;text-underline-offset:4px}
#services .incident-detail-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px;padding-right:50px}
#services .incident-detail-heading{min-width:0}
#services .incident-detail-heading h2{margin:0;color:#173e35;font:600 clamp(24px,2.6vw,34px)/1.15 var(--serif,Georgia,serif);overflow-wrap:anywhere}
#services .incident-detail-heading p{margin:7px 0 0;color:#75817c;font-size:14px;line-height:1.45}
#services .incident-status-pill{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:7px 14px;border:1px solid #dfe7df;border-radius:999px;background:#fff;color:#25463d;font:500 14px/1.2 var(--sans,Arial,sans-serif);white-space:nowrap}
#services .incident-status-pill .incident-status-dot{width:9px;height:9px;border-radius:50%;background:currentColor}
#services .incident-status-pill.is-open{border-color:#ffc2b9;background:#fff0ed;color:#c94437}
#services .incident-status-pill.is-mediation{border-color:#f4d18a;background:#fff5dc;color:#9b6500}
#services .incident-status-pill.is-resolved{border-color:#b6dfc6;background:#edf8f0;color:#26734b}
#services .incident-property-card{box-sizing:border-box;display:grid;grid-template-columns:124px minmax(0,1fr) auto;align-items:center;gap:18px;min-width:0;min-height:0;margin:0 0 16px;padding:12px;border:1px solid #dfe6df;border-radius:15px;background:#fff}
#services .incident-property-photo,#services .incident-property-placeholder{display:grid;place-items:center;box-sizing:border-box;width:124px;height:106px;margin:0;border:0;border-radius:10px;object-fit:cover;background:#edf3ee;color:#285345;font-size:34px}
#services .incident-property-copy{display:grid;gap:7px;min-width:0;padding:0}
#services .incident-property-copy h3{margin:0;color:#173e35;font:600 22px/1.25 var(--serif,Georgia,serif);overflow-wrap:anywhere}
#services .incident-property-location{display:flex;align-items:center;gap:8px;min-width:0;margin:0;color:#73807a;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#services .incident-property-location svg{flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#services .incident-property-link{display:inline-flex;align-items:center;justify-self:end;gap:7px;max-width:180px;color:#173e35;font-size:14px;font-weight:500;text-underline-offset:3px;overflow-wrap:anywhere}
#services .incident-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.96fr);align-items:start;gap:14px;min-width:0;margin:0}
#services .incident-conversation,#services .incident-detail-sidebar{box-sizing:border-box;min-width:0;margin:0;padding:20px;border:1px solid #e0e7e0;border-radius:15px;background:#fff}
#services .incident-conversation{display:flex;flex-direction:column;min-height:0}
#services .incident-conversation h3,#services .incident-detail-sidebar h3{margin:0 0 18px;color:#173e35;font:600 25px/1.2 var(--serif,Georgia,serif)}
#services .incident-conversation-events{position:relative;display:flex;flex-direction:column;gap:0;max-height:min(50vh,540px);min-width:0;margin:0;padding:0 5px 8px 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
#services .incident-conversation-events:before{position:absolute;top:18px;bottom:24px;left:17px;width:1px;background:#e2e9e3;content:""}
#services .incident-conversation-event{position:relative;z-index:0;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:12px;min-width:0;padding:0 0 18px}
#services .incident-conversation-icon{position:relative;z-index:1;display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;border:1px solid #e5eee7;border-radius:50%;background:#edf5ef;color:#1c5948;font-size:15px;line-height:1}
#services .incident-event-content{display:grid;gap:4px;min-width:0;padding-top:1px}
#services .incident-event-content>strong{color:#193f37;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#services .incident-event-content time{color:#818b86;font-size:12px;line-height:1.4}
#services .incident-event-content>p{margin:2px 0 0;color:#718079;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#services .incident-message-bubble{box-sizing:border-box;max-width:100%;margin:4px 0 0;padding:11px 13px;border:0;border-radius:5px 13px 13px 13px;background:#f0f5f1;color:#314d44;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
#services .incident-message-bubble.is-own-message{background:#edf5ef}
#services .incident-message-bubble.is-other-message{background:#f3f4f5}
#services .incident-message-attachments{display:flex;flex-wrap:wrap;align-items:flex-start;gap:9px;max-width:100%;margin-top:8px}
#services .incident-attachment-image{display:block;width:min(190px,100%);height:132px;overflow:hidden;border:1px solid #dce5dc;border-radius:10px;background:#f1f4ef}
#services .incident-attachment-image img{display:block;width:100%;height:100%;object-fit:cover}
#services .incident-attachment-file{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-width:0;max-width:100%;padding:10px;border:1px solid #dce5dc;border-radius:10px;background:#f8faf7;color:#173e35;text-decoration:none}
#services .incident-attachment-file-icon{display:grid;flex:0 0 38px;place-items:center;width:38px;height:40px;border-radius:8px;background:#eaf1eb;color:#294d40;font-size:11px;font-weight:700}
#services .incident-attachment-file-copy{display:grid;gap:3px;min-width:0}
#services .incident-attachment-file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
#services .incident-attachment-file-copy small{color:#7b8781;font-size:11px}
#services .incident-message-composer{display:grid;gap:7px;min-width:0;margin:8px 0 0;padding:7px;border:1px solid #d5dfd7;border-radius:12px;background:#fff}
#services .incident-attachment-previews{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
#services .incident-attachment-previews[hidden]{display:none}
#services .incident-pending-attachment{position:relative;display:flex;align-items:center;gap:7px;box-sizing:border-box;max-width:100%;padding:5px 31px 5px 6px;border:1px solid #dce5dc;border-radius:9px;background:#f8faf7}
#services .incident-pending-attachment img{width:42px;height:36px;border-radius:6px;object-fit:cover}
#services .incident-pending-attachment>span:not(.incident-attachment-file-icon){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
#services .incident-pending-attachment .incident-attachment-file-icon{flex-basis:30px;width:30px;height:32px;font-size:9px}
#services .incident-pending-attachment button{position:absolute;top:4px;right:4px;width:22px;height:22px;border:1px solid #dce5dc;border-radius:50%;background:#fff;font-size:17px;line-height:1}
#services .incident-message-composer-row{display:flex;align-items:center;gap:8px;min-width:0}
#services .incident-message-composer textarea{box-sizing:border-box;flex:1 1 auto;width:100%;min-width:0;min-height:42px;max-height:120px;resize:none;overflow-y:auto;margin:0;padding:10px 5px;border:0;background:transparent;color:#203f37;font:400 15px/1.4 var(--sans,Arial,sans-serif)}
#services .incident-message-composer button{display:grid;flex:0 0 42px;place-items:center;width:42px;height:42px;margin:0;padding:9px;border:0;border-radius:50%;background:#174c3e;color:#fff;cursor:pointer}
#services .incident-message-composer button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#services .incident-message-composer button.incident-attach-button{flex-basis:40px;width:40px;height:40px;border-radius:10px;background:#edf4ef;color:#1c5948}
#services .incident-message-composer button.incident-attach-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#services .incident-message-composer button:disabled{opacity:.5;cursor:wait}
#services .incident-message-error{margin:0;padding:0 5px;color:#9f3427;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#services .incident-message-closed{margin:8px 0 0;padding:12px 13px;border-radius:10px;background:#f1f4f1;color:#68756e;font-size:13px;line-height:1.5}
#services .incident-detail-sidebar{padding:19px}
#services .incident-detail-sidebar>summary{display:none}
#services .incident-detail-sidebar h3{margin-bottom:12px}
#services .incident-detail-sidebar dl{display:grid;gap:0;margin:0}
#services .incident-detail-sidebar dl>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0;padding:12px 0;border-bottom:1px solid #edf0ed}
#services .incident-detail-sidebar dt,#services .incident-detail-sidebar dd{min-width:0;margin:0;font:400 13px/1.45 var(--sans,Arial,sans-serif);overflow-wrap:anywhere}
#services .incident-detail-sidebar dt{flex:0 1 44%;color:#78837e}
#services .incident-detail-sidebar dd{flex:1 1 56%;color:#1e4038;font-weight:500;text-align:right}
#services .incident-booking-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin:16px 0 0;padding:10px 14px;border:0;border-radius:9px;background:#1d463c;color:#fff;font:600 14px/1.3 var(--sans,Arial,sans-serif);cursor:pointer}
#services .incident-detail-sidebar .incident-withdraw-button{width:100%;margin-top:10px}
#services .incident-withdraw-status,#services .incident-withdraw-verification{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#services .incident-withdraw-verification[hidden]{display:none}
@media(max-width:760px){
  #services.incident-detail-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:52px 14px 14px;border-radius:16px}
  #services.incident-detail-modal>.close{top:8px;right:9px;width:36px;height:36px}
  #services .incident-detail-page{width:100%;max-width:100%}
  #services .incident-detail-topbar{min-height:30px;margin:0 40px 12px 0}
  #services .incident-back-button{min-height:30px;font-size:13px}
  #services .incident-detail-header{align-items:flex-start;gap:8px 12px;margin-bottom:14px;padding-right:0}
  #services .incident-detail-heading{flex:1 1 190px}
  #services .incident-detail-heading h2{font-size:22px;line-height:1.2}
  #services .incident-detail-heading p{margin-top:5px;font-size:12px}
  #services .incident-status-pill{min-height:32px;padding:6px 10px;font-size:12px}
  #services .incident-status-pill .incident-status-dot{width:7px;height:7px}
  #services .incident-property-card{grid-template-columns:84px minmax(0,1fr);grid-template-areas:"photo copy" "photo link";align-items:center;gap:4px 12px;margin-bottom:12px;padding:10px}
  #services .incident-property-photo,#services .incident-property-placeholder{grid-area:photo;width:84px;height:84px;border-radius:9px;font-size:26px}
  #services .incident-property-copy{grid-area:copy;align-self:end;gap:4px}
  #services .incident-property-copy h3{font-size:17px;line-height:1.2}
  #services .incident-property-location{align-items:flex-start;gap:5px;font-size:12px;line-height:1.35}
  #services .incident-property-location svg{flex-basis:15px;width:15px;height:15px;margin-top:1px}
  #services .incident-property-link{grid-area:link;justify-self:start;align-self:start;max-width:100%;font-size:12px}
  #services .incident-detail-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  #services .incident-conversation,#services .incident-detail-sidebar{padding:15px;border-radius:13px}
  #services .incident-conversation h3{margin-bottom:13px;font-size:22px}
  #services .incident-conversation-events{max-height:min(44dvh,420px);padding-right:1px}
  #services .incident-conversation-events:before{left:15px}
  #services .incident-conversation-event{grid-template-columns:32px minmax(0,1fr);gap:9px;padding-bottom:15px}
  #services .incident-conversation-icon{width:32px;height:32px;font-size:13px}
  #services .incident-event-content>strong{font-size:13px}
  #services .incident-event-content time{font-size:11px}
  #services .incident-event-content>p,#services .incident-message-bubble{font-size:13px}
  #services .incident-message-bubble{padding:9px 10px}
  #services .incident-attachment-image{width:min(170px,100%);height:120px}
  #services .incident-message-composer{position:sticky;bottom:0;z-index:1;margin-top:4px;padding:5px;background:#fff;box-shadow:0 -8px 16px #ffffffd9}
  #services .incident-message-composer-row{gap:5px}
  #services .incident-message-composer textarea{min-height:40px;padding:8px 3px;font-size:16px}
  #services .incident-message-composer button{flex-basis:38px;width:38px;height:38px;padding:8px}
  #services .incident-message-composer button.incident-attach-button{flex-basis:36px;width:36px;height:36px}
  #services .incident-message-composer button svg,#services .incident-message-composer button.incident-attach-button svg{width:20px;height:20px}
  #services .incident-message-closed{margin-top:4px;padding:10px;font-size:12px}
  #services .incident-detail-sidebar{padding:0;overflow:hidden}
  #services .incident-detail-sidebar>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 15px;color:#173e35;font:600 16px/1.3 var(--sans,Arial,sans-serif);list-style:none;cursor:pointer}
  #services .incident-detail-sidebar>summary::-webkit-details-marker{display:none}
  #services .incident-detail-sidebar>summary span{transition:transform .18s ease}
  #services .incident-detail-sidebar:not([open])>summary span{transform:rotate(-90deg)}
  #services .incident-details-content{padding:0 15px 14px}
  #services .incident-detail-sidebar h3{display:none}
  #services .incident-detail-sidebar dl>div{gap:9px;padding:10px 0}
  #services .incident-detail-sidebar dt,#services .incident-detail-sidebar dd{font-size:12px}
  #services .incident-booking-button{min-height:42px;margin-top:13px;font-size:13px}
}
@media(max-width:380px){
  #services.incident-detail-modal{padding-right:11px;padding-left:11px}
  #services .incident-detail-header{flex-wrap:wrap}
  #services .incident-status-pill{margin-left:auto}
  #services .incident-property-card{grid-template-columns:72px minmax(0,1fr);gap:4px 9px}
  #services .incident-property-photo,#services .incident-property-placeholder{width:72px;height:78px}
  #services .incident-property-copy h3{font-size:16px}
  #services .incident-detail-sidebar dt,#services .incident-detail-sidebar dd{font-size:11px}
}
