dialog.service-sheet-dialog[open]{display:flex;flex-direction:column;width:min(1320px,calc(100% - 20px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;border-radius:12px}
.service-sheet-dialog .modal-head{position:static;flex-shrink:0;padding:12px 20px}
.service-sheet-dialog .modal-head h2{font-size:19px}
#service-form{display:flex;flex-direction:column;min-height:0;flex:1}
#service-form [hidden]{display:none!important}
.service-sheet-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
.service-sheet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;align-items:start}
.service-sheet-grid>*,.service-sheet-grid label{min-width:0}
.service-sheet-grid label{font-size:12px;gap:5px}
.service-sheet-grid label>small{font-size:10px;font-weight:400;color:#607782;line-height:1.3}
.contact-matches{background:#f2f7f6;border:1px solid #d7e5e2;border-radius:7px;padding:10px 12px}
.contact-matches p{font-size:12px;margin:0 0 7px;color:#48616b}
.contact-options{display:flex;gap:7px;flex-wrap:wrap}
.contact-options button{text-align:left;flex:1 1 210px;min-width:0;padding:8px 10px;line-height:1.4}
.contact-options strong,.contact-options span{display:block;overflow-wrap:anywhere}
.contact-options strong{font-size:12px}
.contact-options span{font-size:11px;font-weight:400;color:#607782}
.service-sheet-grid input,.service-sheet-grid select,.service-sheet-grid textarea{font-size:13px;min-height:36px;padding:7px 9px;border-radius:5px}
.service-sheet-grid textarea{line-height:1.45;min-height:58px}
.service-sheet-grid .service-span-2{grid-column:span 2}
.service-sheet-grid .full{grid-column:1/-1}
.service-sheet-grid [aria-invalid=true]{border-color:#bd5550;outline-color:#bd5550}
.service-sheet-grid .confirmation{align-self:end;min-height:55px;padding:9px;background:#f2f7f0;font-size:12px}
.service-sheet-grid .confirmation input{width:18px;min-height:18px;height:18px}
.service-sheet-grid .calculation{grid-column:span 2;gap:4px 20px;padding:10px 14px;min-height:55px;font-size:12px;align-self:end}
.service-sheet-grid .calculation strong{font-size:17px;margin-left:6px}
.service-sheet-grid .calculation small{font-size:10px}
.service-sheet-grid .cost-suggestion{padding:8px 12px;gap:12px;font-size:12px;border-style:solid;line-height:1.4}
.service-sheet-grid .cost-suggestion button{font-size:12px;padding:7px 10px;min-height:32px}
.service-payment-summary{padding:7px 0;font-size:12px;line-height:1.5}
.service-payment-summary .payment-line{font-size:12px;padding:6px 0;gap:8px;flex-wrap:wrap}
.service-sheet-footer{flex-shrink:0;padding:10px 20px 12px;background:#fff;border-top:1px solid var(--line)}
.service-sheet-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.service-sheet-actions button,.service-sheet-actions a{font-size:11px;min-height:30px;padding:6px 10px}
.service-sheet-commit{display:flex;align-items:center;gap:10px}
.service-sheet-commit button{font-size:12px;min-height:36px;padding:8px 12px;white-space:nowrap}
.service-save-info{flex:1;font-size:12px;color:#48724d}
.service-save-info small{font-size:11px;line-height:1.4;margin-top:2px}
#service-flow-save-state.has-changes{color:#976516}
.service-sheet-footer .error{font-size:12px;line-height:1.5;margin-bottom:8px}
.service-source-values{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
.client-message-panel{padding:12px 14px;background:#f2f7f0;border:1px solid #d4e3cf;border-radius:7px}
.client-message-panel textarea{background:#fff;min-height:158px;resize:vertical}
.client-message-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.client-message-actions button,.client-message-actions a{font-size:12px;min-height:32px;padding:7px 10px}
.client-message-panel p{font-size:12px;margin:8px 0 3px;color:#48724d}
.client-message-panel .message-pending{color:#80601c}
.client-message-panel small{display:block;font-size:11px;color:var(--muted);line-height:1.5}
.client-message-panel [aria-disabled=true]{opacity:.5;cursor:default}
dialog.intake-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px)}
.intake-body{padding:18px 24px}
.intake-intro{margin:0 0 18px;color:#607782;font-size:14px;line-height:1.5}
.intake-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px}
.intake-grid label{font-size:13px;min-width:0}
.client-reply{padding:14px;border:1px solid var(--line);border-radius:10px;background:#f3f8f8}
.client-reply>small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}
.client-reply [data-reply-preview]{margin-top:14px}
.client-reply [data-reply-preview][hidden]{display:none}
.client-reply [data-reply-status]{font-size:13px;line-height:1.5}
[data-reply-address-details] summary{cursor:pointer;color:var(--ink);font-weight:600;margin-bottom:12px}
.intake-message textarea{min-height:170px;font-size:13px;line-height:1.5}
.intake-message-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.intake-message-actions button,.intake-message-actions a{font-size:12px;min-height:34px;padding:7px 12px}
#intake-whatsapp[aria-disabled=true]{opacity:.45;cursor:default}
#intake-whatsapp:not([aria-disabled]){background:var(--ink);color:#fff}
#intake-message-status{font-size:12px;line-height:1.5;color:#607782;margin:10px 0 0}
.intake-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:14px 24px}
#intake-save-state{display:block;font-size:12px;color:#48724d;margin-bottom:10px}
.intake-footer>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.intake-footer button{font-size:12px;min-height:36px;padding:9px 12px}
@media(max-width:550px){.intake-grid{grid-template-columns:1fr;gap:12px}.intake-body,.intake-footer{padding:16px}.intake-footer>div{flex-direction:column}}
@media(max-width:700px){
  dialog.service-sheet-dialog[open]{width:calc(100% - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:8px}
  .service-sheet-dialog .modal-head{padding:10px 12px}
  .service-sheet-body{padding:12px}
  .service-sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .service-sheet-footer{padding:8px 12px 10px}
  .service-sheet-actions{gap:5px}
  .service-sheet-actions button,.service-sheet-actions a{font-size:11px;padding:5px 8px}
  .service-sheet-commit{gap:6px;flex-wrap:wrap}
  .service-save-info{flex-basis:100%}
  .service-sheet-commit .primary{margin-left:auto}
  .service-sheet-grid .calculation span{display:inline}
  .service-sheet-grid .calculation strong{display:inline;margin:0 0 0 5px}
}
@media(max-width:380px){
  .service-sheet-grid{grid-template-columns:1fr}
  .service-sheet-grid .service-span-2,.service-sheet-grid .calculation{grid-column:1}
}
