dialog[open].customer-dialog{display:flex;flex-direction:column;max-width:760px;max-height:92dvh;overflow:hidden}
.customer-dialog .dialog-heading{flex-shrink:0;padding:23px 28px}
.customer-dialog #dialog-content{padding:0;display:flex;min-height:0;overflow:hidden}
#customer-form{display:flex;flex-direction:column;min-height:0;width:100%;max-height:calc(92dvh - 81px)}
.customer-form-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 28px}
.customer-intro{font-size:calc(12px * var(--font-scale));color:var(--muted);margin:0 0 24px;line-height:1.7}
.customer-intro>span{display:block;font-size:calc(10px * var(--font-scale));margin-top:5px}
.customer-section{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--border)}
.customer-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px}
.customer-section-heading>span[aria-hidden="true"]{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;font-size:calc(10px * var(--font-scale));font-weight:600;color:var(--accent-ink);background:var(--accent-soft)}
.customer-section-heading h3{font-size:calc(14px * var(--font-scale));font-weight:600;margin:0;letter-spacing:-.15px}
.customer-section .form-grid{gap:18px 20px}.customer-field{min-width:0;display:flex;flex-direction:column;gap:6px}
.customer-field>label{display:block}.customer-field>small,.phone-hint,.phone-result,.customer-location-hint{font-size:calc(10px * var(--font-scale));font-weight:400;color:var(--muted);line-height:1.7}
.customer-form-body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select){min-height:44px}
.customer-form-body textarea{min-height:86px}.customer-form-body label{font-size:calc(11px * var(--font-scale));gap:7px}
.inline-optional{font-size:calc(10px * var(--font-scale));font-weight:400;margin-left:5px;color:var(--muted)}
.phone-fieldset{padding:0;border:0;min-width:0;margin:19px 0 0}.phone-fieldset legend{font-size:calc(11px * var(--font-scale));font-weight:550;margin:0 0 10px;padding:0;color:var(--text)}
.phone-fieldset legend>span{font-size:calc(10px * var(--font-scale));color:var(--muted);font-weight:400;margin-left:5px}
.phone-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;align-items:start}
.phone-hint,.phone-result{display:block;margin-top:8px}.phone-result:empty{display:none}.customer-location-hint{margin:12px 0 0}
.search-picker{position:relative;min-width:0}.search-picker-input{width:100%;padding:10px 31px 10px 11px;border:1px solid var(--control-border);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;font-size:calc(12px * var(--font-scale));text-overflow:ellipsis;min-height:44px}
.picker-chevron{position:absolute;right:12px;top:10px;color:var(--muted);pointer-events:none;font-size:18px;line-height:24px}
.picker-popup{position:fixed;inset:auto;margin:0;padding:5px;background:var(--surface);color:var(--text);border:1px solid var(--control-border);border-radius:7px;box-shadow:var(--shadow);overflow:auto;overscroll-behavior:contain;z-index:50;font-family:var(--font-ui)}
.picker-popup::backdrop{background:transparent}.picker-option{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:4px;font-size:calc(12px * var(--font-scale));line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.picker-option:hover{background:var(--surface-hover)}.picker-option[aria-selected="true"]{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.picker-result-count{position:sticky;bottom:-5px;background:var(--surface);border-top:1px solid var(--border);padding:8px 10px 5px;font-size:calc(10px * var(--font-scale));color:var(--muted)}
.customer-optional{border:1px solid var(--border);border-radius:6px;margin-bottom:13px;background:var(--surface)}
.customer-optional summary{cursor:pointer;padding:13px 15px;font-size:calc(12px * var(--font-scale));font-weight:550;min-height:44px;color:var(--text)}
.customer-optional summary>span{font-size:calc(10px * var(--font-scale));font-weight:400;color:var(--muted);margin-left:8px}
.customer-optional>.form-grid,.customer-optional>.stack,.customer-optional>label{margin:4px 15px 17px}.customer-optional .full{grid-column:1/-1}
.customer-confirmation{margin:22px 0 4px;font-weight:400!important;line-height:1.8!important}.customer-confirmation input{width:18px;height:18px;flex:0 0 18px}
.customer-form-footer{padding:16px 28px;border-top:1px solid var(--border);background:var(--surface);display:flex;justify-content:space-between;align-items:center;gap:18px;flex-shrink:0}
.customer-form-footer>span{font-size:calc(10px * var(--font-scale));line-height:1.6;color:var(--muted);max-width:200px}.customer-form-footer .actions{flex-wrap:wrap;justify-content:flex-end}.customer-form-footer .button{min-height:44px}
.customer-form-error{padding:12px 14px;background:var(--danger-bg);color:var(--danger-text);border:1px solid currentColor;border-radius:5px;font-size:calc(12px * var(--font-scale));line-height:1.7;margin:0 0 20px}
.customer-brief{margin-top:24px}.customer-brief .customer-section-heading{flex-wrap:wrap}
.reference-upload{padding:17px;border:1px dashed var(--control-border);border-radius:7px;background:var(--surface)}
.reference-upload h4{font-size:calc(12px * var(--font-scale));line-height:1.6;margin:0 0 8px}.reference-upload h4 .inline-optional{display:inline-block}
.reference-file-label{display:flex;flex-direction:column;gap:8px!important}.reference-file-label input{width:100%;min-width:0;max-width:100%;font:inherit;white-space:normal}
.reference-file-label input::file-selector-button{min-height:44px;padding:8px 12px;margin-right:10px;border:1px solid var(--control-border);border-radius:4px;color:var(--text);background:var(--surface-hover);font:inherit;cursor:pointer}
.reference-files{list-style:none;margin:12px 0 0;padding:0}.reference-files:empty{display:none}.reference-files li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--border)}
.reference-files li>span{min-width:0;overflow-wrap:anywhere}.reference-files b,.reference-files small{display:block;font-size:calc(11px * var(--font-scale));line-height:1.6}.reference-files small{color:var(--muted);font-weight:400}.reference-files button{flex-shrink:0;min-height:44px}.reference-status{margin-bottom:0}
.saved-references{list-style:none;margin:10px 0;padding:0}.saved-references li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.saved-references li>span{min-width:0;overflow-wrap:anywhere}.saved-references small{display:block;color:var(--muted)}.saved-references button{flex-shrink:0}
.saved-references .actions{flex-wrap:wrap;justify-content:flex-end}.saved-references .button{min-height:44px}.reference-preview{min-width:0;display:grid;place-items:center;padding:12px;background:var(--canvas);border-radius:6px}.reference-preview :is(img,video){max-width:100%;max-height:65dvh;object-fit:contain}.reference-preview img{min-width:40px;image-rendering:auto}
@media(max-width:600px){.customer-dialog .dialog-heading{padding:20px}.customer-form-body{padding:19px 20px}.customer-section .form-grid,.phone-fields{grid-template-columns:1fr}.customer-section .full{grid-column:auto}.customer-form-footer{padding:13px 20px;gap:10px}.customer-form-footer>span{display:none}.customer-form-footer .actions{width:100%}.customer-form-footer .button{flex:1}.customer-optional>.form-grid{grid-template-columns:1fr}}
@media(forced-colors:active){.search-picker-input,.picker-popup,.customer-optional{border-color:ButtonText}.picker-option[aria-selected="true"]{background:Highlight;color:HighlightText;forced-color-adjust:none}}
