/* Scoped customer tab additions; shared shell and reviewed navigation stay unchanged. */
.field-value-with-status{display:flex;align-items:flex-start;gap:8px}.field-value-with-status>span:last-child{min-width:0}.field-value-with-status>.customer-field-status{margin-top:calc(.8em - 8px)}.customer-field-status{display:inline-flex;flex:none;width:16px;height:16px;color:var(--control)}.customer-field-status svg{display:block;width:100%;height:100%}.customer-field-status.is-filled{color:#27654d}.customer-field-status.is-pending{color:var(--amber)}
.customer-context{font-size:11px;color:var(--muted);line-height:1.7;margin:-3px 0 19px;max-width:740px}.customer-context>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:5px}.customer-context [aria-current=true]{font-weight:650;color:var(--body)}
.customer-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:21px}.customer-card-head h3{margin:0 0 4px}.customer-scope{font-size:10px;color:var(--muted)}.customer-card-head .text-button{flex:none}
.customer-card-foot{margin-top:16px}.customer-prose{white-space:pre-wrap;line-height:1.9;color:var(--body);font-size:12px;overflow-wrap:anywhere}.customer-related{padding:12px 0;border-bottom:1px solid var(--line)}.customer-related:first-of-type{padding-top:0}.customer-related:last-child{border:0;padding-bottom:0}.customer-related strong{font-size:12px;font-weight:550;margin-right:12px}.customer-related p{margin:7px 0 0}.customer-record-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:10px}
.customer-pending{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border:1px solid var(--line);background:var(--blue-soft);border-radius:var(--radius);font-size:12px;color:var(--body);margin-bottom:18px}
#customer-form label,#customer-ai-form label{font-size:12px;color:var(--body);display:grid;gap:6px}#customer-form :is(input:not([type=checkbox],[type=radio]),select,textarea),#customer-ai-form :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;border:1px solid #bacbdd;border-radius:5px;padding:9px;background:var(--surface);color:var(--ink);font:inherit;line-height:1.6}#customer-form small{font-size:10px;color:var(--muted)}#customer-form :is(input[type=checkbox],input[type=radio]),#customer-ai-form input[type=checkbox]{accent-color:var(--blue);width:15px;height:15px;flex:none}
.customer-wide{grid-column:1/-1}.customer-multi{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px;grid-column:1/-1}.customer-multi legend{font-size:12px;color:var(--body);margin-bottom:8px}.customer-multi label,#customer-form .customer-radio{display:flex;gap:6px;align-items:center;font-size:11px}.customer-contact-edit,.customer-related-edit{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px;margin:0 0 12px;border:1px solid var(--line);border-radius:7px}.customer-contact-edit .text-button,.customer-related-edit .text-button{justify-self:end}.customer-radio{margin:9px 0}
.customer-review-intro{font-size:12px;line-height:1.8;color:var(--body)}.customer-suggestion{padding:18px;border:1px solid var(--line);border-radius:var(--radius);margin:16px 0}.customer-suggestion.stale{border-color:#e5c69e}.customer-suggestion.applied,.customer-suggestion.rejected{background:var(--canvas)}.customer-suggestion-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#customer-ai-form .customer-suggestion-head label{display:flex;align-items:center;gap:9px;color:var(--ink);font-weight:650}.customer-diff{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:16px 0}.customer-diff>div{min-width:0}.customer-diff .customer-prose{margin:4px 0}.customer-source{background:var(--canvas);border-left:2px solid #b9cce2;padding:10px 12px;margin-top:12px;font-size:10px;color:var(--muted)}.customer-source strong{font-weight:550}.customer-source span{margin-left:8px}.customer-source p{white-space:pre-wrap;line-height:1.8;margin:5px 0 0}.customer-review-actions{position:sticky;bottom:-16px;padding:12px 0;background:var(--surface);border-top:1px solid var(--line)}.customer-demo-scenario{margin-top:22px;color:var(--muted);font-size:11px}.customer-demo-scenario summary{cursor:pointer}.customer-audit{border-bottom:1px solid var(--line);padding:16px 0;font-size:12px}.customer-audit>span{display:block;font-size:10px;color:var(--muted);margin:4px 0}.customer-audit>p{white-space:pre-wrap;line-height:1.8}
@media(max-width:600px){.customer-diff,.customer-contact-edit,.customer-related-edit{grid-template-columns:1fr}.customer-suggestion{padding:13px}.customer-suggestion-head{align-items:flex-start}.customer-review-actions{bottom:-16px}.customer-context{font-size:11px}.customer-pending{align-items:flex-start}}

/* Edit scope information follows the fields, before save actions. */
#customer-form > .mode-notice{margin:17px 0}

/* Keep tall multi-selects from stretching adjacent edit controls. */
#customer-form .form-grid{align-items:start;gap:20px 18px}
#customer-form label{min-width:0;align-self:start;align-content:start;gap:7px}
#customer-form :is(input:not([type=checkbox],[type=radio]),select:not([multiple])){height:40px}
#customer-form select[multiple]{height:132px;min-height:132px;padding:6px;align-self:start}
#customer-form textarea{min-height:112px;resize:vertical}
#customer-form :is(.customer-contact-edit,.customer-related-edit){align-items:start}
#customer-form .customer-multi label,#customer-form .customer-radio{display:flex;align-items:center;gap:7px}
#customer-form :is(input,select,textarea):focus-visible{outline:2px solid var(--blue);outline-offset:2px}

.customer-section-heading{flex-wrap:wrap}.customer-heading-tools{min-width:0;flex-wrap:wrap;justify-content:flex-end}.customer-heading-tools .customer-record-meta{max-width:100%;min-width:0}.customer-heading-tools .customer-record-meta>span{min-width:0;overflow-wrap:anywhere}

.customer-title-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;min-width:0}.customer-update-meta{font-size:10px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
