/* Stephen AI extensions reuse the existing live chat and firm palette. */
.stephen-enhanced{max-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.stephen-enhanced .chat-card{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.stephen-enhanced .chat-scroll{min-height:80px;flex:1;overflow-y:auto;overscroll-behavior:contain}.stephen-enhanced .chat-compose{flex-shrink:0}.stephen-enhanced .chat-bubble p{white-space:pre-line;overflow-wrap:anywhere}.stephen-enhanced .chat-bubble time{display:block;font-size:10px;opacity:.7;margin-top:5px}.stephen-enhanced .chat-contact{overflow:auto;min-height:0}.stephen-enhanced .chat-footer{max-height:130px;overflow:auto;flex-shrink:0}.stephen-followups,.stephen-actions{display:flex;gap:7px;flex-wrap:wrap;padding:10px}.stephen-followups button,.stephen-actions button{font-size:12px;padding:8px;border:1px solid #648da8;border-radius:6px;text-align:left}.stephen-actions{flex-shrink:0;border-top:1px solid #648da840}.stephen-urgent{display:block;background:#fff2d6;color:#6b4200;padding:10px;border-radius:5px}.stephen-enquiry label{display:block;margin:12px 0}.stephen-enquiry input,.stephen-enquiry select,.stephen-enquiry textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #7898ad;border-radius:4px;background:#fff;color:#133651}.stephen-enquiry textarea{min-height:100px}.stephen-enquiry fieldset{min-width:0;border:0}.stephen-enquiry .stephen-consent input{width:auto;margin-right:7px}.stephen-enquiry .honeypot{display:none}.stephen-enhanced a:focus-visible,.stephen-enhanced button:focus-visible,.stephen-enhanced input:focus-visible{outline:3px solid #397dab;outline-offset:3px}.stephen-admin{max-width:1100px;margin:24px auto;padding:24px;color:#133651;background:#f3f6f9;font:15px/1.5 Arial,sans-serif}.stephen-admin h1{font:36px Georgia,serif;margin:20px 0}.stephen-admin h2{font:26px Georgia,serif}.stephen-admin section{padding:20px;border:1px solid #d2dee6;background:white;border-radius:8px;margin:20px 0}.stephen-admin label{display:block;margin:12px 0}.stephen-admin input:not([type=checkbox]),.stephen-admin textarea,.stephen-admin select{display:block;width:100%;padding:9px;box-sizing:border-box;border:1px solid #7898ad;border-radius:4px}.stephen-admin button{padding:9px 14px;border:1px solid #19435e;border-radius:5px;margin:5px;background:#19435e;color:white;cursor:pointer}.stephen-admin .stephen-toolbar{position:sticky;top:0;background:#f3f6f9;border:1px solid #d2dee6;padding:10px;z-index:2}.stephen-edit-row{border-bottom:1px solid #d2dee6;padding:10px}.stephen-admin [role=alert]{color:#922}.stephen-admin #admin-status{position:sticky;top:0;background:#fff;padding:12px;z-index:3}.chat-dark .stephen-urgent{color:#fff0cc;background:#594000}@media(max-width:600px){.stephen-enhanced{width:100%!important;max-width:100%!important;padding:8px!important}.stephen-enhanced .chat-footer{max-height:100px}.stephen-enhanced .chat-header{flex-shrink:0}.stephen-actions{gap:4px;padding:6px}.stephen-actions button{font-size:11px;padding:6px}.stephen-admin{padding:12px}.stephen-admin .stephen-toolbar{position:static}.stephen-admin section{padding:12px}}
.stephen-enhanced .chat-header{padding:12px;gap:10px;flex-shrink:0}.stephen-enhanced .chat-avatar{width:44px;height:44px;min-width:44px;flex-shrink:0;overflow:hidden}.stephen-enhanced .chat-avatar img{width:100%;height:100%;object-fit:cover}.stephen-enhanced .chat-identity{flex:1;min-width:0}.stephen-enhanced .chat-identity h2{font-size:19px!important;line-height:1.2!important;letter-spacing:0}.stephen-enhanced .chat-identity p{font-size:9px!important;letter-spacing:1px}.stephen-enhanced .chat-tools{flex-shrink:0;gap:2px}.stephen-enhanced .chat-tools button{padding:5px}.stephen-enhanced .chat-footer{max-height:100px;padding:8px 12px}.stephen-enhanced .chat-footer p{margin:2px 0}.stephen-enhanced .chat-footer summary{font-size:11px;cursor:pointer;margin-top:4px}.management-filters{flex-wrap:wrap}.management-filters input[type=checkbox]{width:auto}.management-filters select{max-width:100%}
.stephen-enhanced{height:min(100dvh,var(--stephen-viewport,100dvh))!important}@media(prefers-reduced-motion:reduce){.stephen-enhanced *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.stephen-enhanced .chat-suggestions button small{display:block;font-weight:700;font-size:11px;margin-bottom:3px}
.management-badge.status-read,.management-badge.status-replied{background:#e4f0fc;color:#20639b}.management-badge.status-under-review{background:#fff1d6;color:#916017}.management-badge.status-accepted{background:#e0f3ec;color:#27634f}.management-badge.status-rejected{background:#fce8e8;color:#852020}.management-badge.status-closed{background:#edf0f3;color:#657785}.stephen-admin #mail,.stephen-admin #audit,.stephen-admin #unanswered,.stephen-admin #assignments{overflow-wrap:anywhere}.stephen-enhanced .chat-enquiry select{max-width:100%}
@media(max-height:520px){.stephen-enhanced{padding:6px!important;gap:6px!important}.stephen-enhanced .chat-header{padding:6px 10px}.stephen-enhanced .chat-avatar{display:none}.stephen-enhanced .chat-identity h2{font-size:17px!important}.stephen-enhanced .chat-identity p{margin-top:2px}.stephen-enhanced .chat-tabs{padding:5px}.stephen-enhanced .chat-tabs button{padding:7px 5px}.stephen-enhanced .chat-scroll{min-height:40px;padding:10px}.stephen-enhanced .chat-compose{padding:6px 8px}.stephen-enhanced .stephen-actions{flex-wrap:nowrap;overflow-x:auto;padding:4px;white-space:nowrap}.stephen-enhanced .stephen-actions button{padding:5px;flex-shrink:0;font-size:10px}.stephen-enhanced .chat-footer{max-height:48px;padding:4px 8px}.stephen-enhanced .chat-footer p{font-size:9px}.stephen-enhanced .chat-footer summary{font-size:10px}}

.stephen-enquiry fieldset[hidden]{display:none}.stephen-enquiry progress{width:100%;accent-color:#173e58}.stephen-enquiry dl,.management-detail dl{overflow-wrap:anywhere}.stephen-enquiry dd,.management-detail dd{margin:0 0 .7rem}.stephen-enquiry dt,.management-detail dt{font-weight:600}.stephen-status{font-family:Arial,sans-serif;max-width:640px;margin:2rem auto;padding:1rem;color:#0b293b}.stephen-status label{display:block;margin:1rem 0}.stephen-status input,.stephen-status select{display:block;box-sizing:border-box;width:100%;padding:.7rem}.stephen-status button{padding:.8rem;background:#0b293b;color:white;border:0;border-radius:4px}
.stephen-options{flex-shrink:0;border-top:1px solid #648da840;max-height:32vh;overflow-y:auto}.stephen-options>summary{cursor:pointer;padding:9px 12px;font-size:12px;font-weight:600}.stephen-options .stephen-actions{border-top:0}.stephen-options>summary:focus-visible{outline:3px solid #397dab;outline-offset:-3px}@media(max-height:520px){.stephen-options>summary{padding:5px 10px;font-size:11px}}
