.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
:is(#account-dialog,#customer-chat,.admin-shell){--account-ink:#191d25;--account-muted:#697384;--account-paper:#f3f5f8;--account-line:#dce1e8;--account-red:#c7192d;color:var(--account-ink);font-size:14px;line-height:1.65}
:is(#account-dialog,#customer-chat,.admin-shell) button,:is(#account-dialog,#customer-chat,.admin-shell) a{touch-action:manipulation}
:is(#account-dialog,#customer-chat,.admin-shell) button:focus-visible,:is(#account-dialog,#customer-chat,.admin-shell) a:focus-visible{outline:3px solid #c7192d70;outline-offset:3px}
:is(#account-dialog,#customer-chat,.admin-shell) button{min-height:44px}
:is(#account-dialog,#customer-chat,.admin-shell) .btn{min-height:48px;font-size:14px;gap:10px;border-radius:12px}
:is(#account-dialog,#customer-chat,.admin-shell) .mini-link{min-height:44px;font-size:14px;line-height:1.5;margin-top:12px}
:is(#account-dialog,#customer-chat,.admin-shell) .form{gap:18px}
:is(#account-dialog,#customer-chat,.admin-shell) .form label{font-size:14px;font-weight:650;gap:8px}
:is(#account-dialog,#customer-chat,.admin-shell) input,:is(#account-dialog,#customer-chat,.admin-shell) select,:is(#account-dialog,#customer-chat,.admin-shell) textarea{font:inherit;font-size:16px;border:1px solid #dce1e8;background:#fff;color:#191d25;border-radius:12px;min-height:48px;padding:12px 14px;max-width:100%}
:is(#account-dialog,#customer-chat,.admin-shell) textarea{min-height:108px;resize:vertical}
.account-muted{font-size:14px;line-height:1.75;color:#697384;margin:12px 0 22px}
.account-footnote{font-size:14px!important;line-height:1.7!important;color:#697384!important;margin:14px 0 0!important}
.account-error{color:#b72531;font-size:14px;line-height:1.7;margin-top:12px;overflow-wrap:anywhere}
.account-error:empty{display:none}
#account-dialog{width:min(600px,calc(100% - 32px));max-height:90dvh;padding:28px;border:0;border-radius:24px;background:#fff;color:#191d25;overflow:auto;box-shadow:0 28px 90px #191d2533;overscroll-behavior:contain}
#account-dialog::backdrop,#customer-chat::backdrop{background:#191d2547;backdrop-filter:blur(5px)}
.account-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}
.account-dialog-head>b{font-size:12px;letter-spacing:.16em;color:#697384}
.account-dialog-head>button,#customer-chat>header>button{width:44px;height:44px;flex-shrink:0;border:0;border-radius:50%;font-size:28px;line-height:1;background:#f3f5f8;color:#191d25}
#account-body>h2{font-size:28px;line-height:1.2;letter-spacing:-.8px;margin:0 0 14px;color:#191d25}
.account-kicker{display:block;font-size:12px;font-weight:750;letter-spacing:.1em;text-transform:uppercase;color:#c7192d;margin:0 0 10px}
.account-signin-card{background:#f3f5f8;border-radius:18px;padding:22px;margin:22px 0}
.account-signin-card h3{font-size:18px;line-height:1.4;margin:0 0 10px;letter-spacing:-.3px}
.account-signin-card>p{font-size:14px;color:#697384;margin:0 0 18px}
.account-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}
.account-shortcuts>button{text-align:left;background:#f3f5f8;border-radius:16px;border:1px solid #dce1e8;padding:18px}
.account-shortcuts b{display:block;font-size:16px;color:#191d25}
.account-shortcuts span{display:block;font-size:14px;color:#697384;margin-top:5px}
.account-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 14px}
.account-section-title>h3{font-size:18px;margin:0;letter-spacing:-.3px}
.account-section-title>button{font-size:14px;font-weight:700;border:1px solid #dce1e8;border-radius:12px;padding:8px 15px;background:white}
.account-vehicles{display:grid;gap:10px}
.account-vehicles article{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce1e8;border-radius:16px;padding:16px}
.account-vehicles article b{display:block;font-size:16px;line-height:1.5}
.account-vehicles article span{display:block;font-size:14px;color:#697384;margin-top:5px;overflow-wrap:anywhere}
.account-vehicles article>div:last-child{display:flex;gap:4px;flex-shrink:0}
.account-vehicles article button{font-size:14px;font-weight:650;padding:5px 10px;color:#c7192d}
.account-vehicles article button:last-child{font-size:26px;min-width:44px;color:#697384}
.account-admin-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:#697384;margin-top:18px;text-decoration:underline;text-underline-offset:3px}
.account-signout{display:inline-flex;align-items:center;margin-right:16px}
.account-thread-list,.chat-thread-choices{display:grid;gap:10px}
.account-thread-list>button,.chat-thread-choices>button{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px;border:1px solid #dce1e8;border-radius:16px;text-align:left;max-width:100%;overflow:hidden}
.account-thread-list>button>span,.chat-thread-choices>button>span{min-width:0}
.account-thread-list b,.chat-thread-choices b{display:block;font-size:15px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.account-thread-list small,.chat-thread-choices small{display:block;font-size:14px;line-height:1.6;color:#697384;margin-top:5px;max-width:390px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-thread-list i,.chat-thread-choices i{font-size:12px;font-style:normal;border-radius:20px;background:#c7192d;color:white;padding:2px 8px;align-self:center;flex-shrink:0}
.request-saved{background:#edf5ed;color:#477354;width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:27px;margin-bottom:22px}
.chat-launch{position:fixed;right:24px;bottom:22px;z-index:35;display:flex;align-items:center;gap:10px;min-height:52px;padding:13px 20px;box-shadow:0 8px 28px #191d251f;border-radius:999px;background:#fff;color:#191d25;font-size:14px;font-weight:700;border:1px solid #dce1e8}
.chat-launch svg{width:22px;height:22px;fill:none;stroke:#c7192d;stroke-width:1.6}
.chat-launch>b{font-size:12px;background:#c7192d;color:#fff;border-radius:20px;padding:1px 7px}
#customer-chat{position:fixed;inset:auto 24px 24px auto;margin:0;width:430px;max-width:calc(100vw - 32px);max-height:min(780px,calc(100dvh - 48px));padding:0;border:0;border-radius:24px;background:#fff;box-shadow:0 24px 80px #191d2533;overflow:hidden;overscroll-behavior:contain}
#customer-chat>header{background:#f3f5f8;color:#191d25;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;gap:14px;border-bottom:1px solid #dce1e8}
#customer-chat>header b{font-size:17px;display:block;line-height:1.4}
#customer-chat>header span{display:block;font-size:13px;color:#697384;margin-top:5px;line-height:1.5}
#customer-chat-content{padding:22px;overflow:auto;max-height:calc(min(780px,100dvh - 48px) - 105px);overscroll-behavior:contain}
.chat-intro h3{font-size:21px;line-height:1.3;letter-spacing:-.5px;margin:0}
.chat-intro p{font-size:14px;color:#697384;line-height:1.75;margin:10px 0 22px}
.chat-thread-choices{margin-bottom:24px;max-height:190px;overflow:auto}
.chat-topic{padding-bottom:15px;border-bottom:1px solid #dce1e8}
.chat-topic>button{font-size:14px;color:#c7192d;text-decoration:underline;text-underline-offset:4px;margin-bottom:7px;padding:0;min-height:44px}
.chat-topic>b{display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.chat-earlier{display:block;margin:8px auto 0;font-size:14px;text-decoration:underline;text-underline-offset:3px;color:#697384}
.chat-messages{display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;padding:18px 0;min-height:120px;max-height:330px}
.chat-message{padding:14px 16px;border-radius:16px;max-width:92%;min-width:125px;align-self:flex-start;background:#f3f5f8;color:#191d25}
.chat-message.from-customer{align-self:flex-end;background:#fff0f2;color:#191d25}
.chat-message>span{font-size:12px;font-weight:700;color:#697384}
.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:5px 0 0}
.chat-message time{display:block;font-size:11px;margin-top:9px;color:#697384}
.chat-reply-form{display:grid;gap:10px;border-top:1px solid #dce1e8;padding-top:18px}
.chat-reply-form label{font-size:14px;font-weight:650}
.chat-reply-form textarea{width:100%;resize:vertical;min-height:84px!important;max-height:180px}
.admin-shell{max-width:1440px;margin:auto;padding:28px 36px 40px}
.admin-top{display:flex;align-items:center;gap:32px;padding-bottom:24px;border-bottom:1px solid #dce1e8}
.admin-brand{font-size:22px;font-weight:800;letter-spacing:-.7px;min-height:44px;display:flex;align-items:center}
.admin-top>div{display:flex;flex-direction:column;font-size:14px;color:#697384;gap:4px}
.admin-top strong{color:#191d25;font-size:14px}
.admin-top>a:last-child{margin-left:auto;font-size:14px;min-height:44px;display:flex;align-items:center}
.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px 0 12px}
.admin-toolbar h1{font-size:32px;letter-spacing:-1px;line-height:1.3;margin:0}
.admin-toolbar p{font-size:14px;color:#697384;margin-top:8px}
#admin-notice{font-size:14px;color:#697384;line-height:1.7;margin:10px 0 20px;min-height:24px}
.admin-workspace{display:grid;grid-template-columns:350px minmax(0,1fr);min-height:650px;border:1px solid #dce1e8;border-radius:22px;overflow:hidden}
.admin-inbox{border-right:1px solid #dce1e8;background:#f3f5f8;max-height:800px;overflow:auto}
.admin-filters{display:flex;flex-wrap:wrap;gap:7px;padding:16px;border-bottom:1px solid #dce1e8}
.admin-filters>button{border:1px solid #dce1e8;border-radius:11px;padding:8px 11px;font-size:14px;background:#fff}
.admin-filters>button.active{background:#c7192d;border-color:#c7192d;color:#fff}
.admin-thread{display:block;width:100%;text-align:left;border-bottom:1px solid #dce1e8;padding:18px 20px}
.admin-thread.active{background:white;box-shadow:inset 3px 0 #c7192d}
.admin-thread-meta{display:flex;justify-content:space-between;gap:15px;color:#697384;font-size:12px}
.admin-thread-meta time{font-size:12px}
.admin-thread>b{font-size:16px;display:block;margin:10px 0 4px;overflow-wrap:anywhere}
.admin-thread>span:not(.admin-thread-meta){font-size:14px;color:#697384}
.admin-thread>p{font-size:14px;margin:8px 0 12px;color:#697384;line-height:1.6;max-height:46px;overflow:hidden}
.admin-thread>div{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.admin-thread small{font-size:12px;color:#697384}
.admin-thread i{font-size:12px;font-style:normal;border-radius:20px;background:#c7192d;color:white;padding:2px 8px}
.thread-status{margin-left:auto}
.admin-conversation{min-width:0;display:flex;flex-direction:column;max-height:800px;background:white}
.admin-conversation-head{display:flex;justify-content:space-between;align-items:center;padding:24px;gap:20px;border-bottom:1px solid #dce1e8}
.admin-conversation-head h2{font-size:22px;letter-spacing:-.5px;line-height:1.35;overflow-wrap:anywhere;margin:0}
.admin-conversation-head p{font-size:14px;color:#697384;margin-top:8px}
.admin-conversation-head a{color:#191d25;font-weight:700}
.admin-conversation-head>button{font-size:14px;padding:8px 13px;border:1px solid #dce1e8;border-radius:11px;white-space:nowrap}
.admin-messages{max-height:none;flex:1;padding:22px 24px;min-height:220px}
.admin-request-details{font-size:14px;margin:16px 24px 0}
.admin-request-details summary{cursor:pointer;color:#697384;min-height:44px;display:flex;align-items:center}
.admin-request-details summary::-webkit-details-marker{display:none}
.admin-request-details dl{display:grid;grid-template-columns:120px 1fr;gap:9px 14px;background:#f3f5f8;padding:17px;border-radius:12px;margin:0 0 8px}
.admin-request-details dt{color:#697384}
.admin-request-details dd{margin:0;overflow-wrap:anywhere;max-height:120px;overflow:auto}
.admin-reply-form{padding:20px 24px;border-top:1px solid #dce1e8}
.admin-reply-form>label{font-size:14px;font-weight:700;display:block;margin-bottom:9px}
.admin-reply-form textarea{display:block;width:100%;min-height:90px;max-height:180px;resize:vertical}
.admin-reply-form>div{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px}
.admin-reply-form>div>span{font-size:13px;color:#697384}
.account-empty{text-align:center;color:#697384;padding:60px 28px;margin:auto}
.account-empty h2,.account-empty h3{font-size:23px;letter-spacing:-.5px;color:#191d25;margin-bottom:12px}
.account-empty p{font-size:14px;line-height:1.8}
.admin-denied{max-width:600px;margin:90px auto;padding:30px;font-size:16px;line-height:1.7}
.admin-denied h1{font-size:32px;letter-spacing:-1px}
.admin-denied p{margin:15px 0}.admin-denied>a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
@media(max-width:900px){.admin-shell{padding:24px}.admin-workspace{grid-template-columns:300px minmax(0,1fr)}.admin-conversation-head{padding:20px;flex-wrap:wrap;gap:12px}.admin-messages{padding:20px}.admin-reply-form{padding:18px}}
@media(max-width:650px){
  #account-dialog{padding:22px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:20px}
  #account-body>h2{font-size:25px}.account-dialog-head{margin-bottom:20px}.account-signin-card{padding:18px}.account-shortcuts{gap:8px}.account-shortcuts>button{padding:15px}.account-shortcuts span{font-size:13px}
  .account-vehicles article{align-items:flex-start;flex-wrap:wrap}.account-vehicles article>div:last-child{margin-left:auto}.account-thread-list small,.chat-thread-choices small{max-width:100%}
  .chat-launch{right:16px;bottom:16px;min-height:48px;padding:12px 17px;font-size:13px}
  #customer-chat{inset:auto 10px 10px 10px;width:calc(100% - 20px);max-width:none;max-height:calc(100dvh - 20px);border-radius:22px}
  #customer-chat>header{padding:17px 18px}#customer-chat-content{padding:18px;max-height:calc(100dvh - 120px)}.chat-messages{max-height:calc(100dvh - 410px);min-height:120px}.chat-thread-choices{max-height:145px}.chat-message{max-width:94%}
  .admin-shell{padding:16px}.admin-top{gap:14px;flex-wrap:wrap}.admin-brand{font-size:20px}.admin-top>div{font-size:13px}.admin-top strong{font-size:13px}.admin-toolbar{align-items:flex-start;padding-top:26px}.admin-toolbar h1{font-size:27px}.admin-toolbar p{font-size:14px}.admin-toolbar .btn{padding:0 14px}
  .admin-workspace{grid-template-columns:1fr;border-radius:18px}.admin-inbox{max-height:320px;border-right:0;border-bottom:1px solid #dce1e8}.admin-conversation{max-height:850px}.admin-conversation-head{padding:18px}.admin-conversation-head h2{font-size:20px}.admin-request-details{margin:12px 18px 0}.admin-request-details dl{grid-template-columns:90px 1fr;gap:8px}.admin-messages{min-height:220px;max-height:380px}.admin-reply-form>div>span{font-size:12px}.admin-thread-meta time{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#account-dialog,#customer-chat,.chat-launch{animation:none;transition:none}}

/* Match the crimson and graphite storefront; keep success and error feedback distinct. */
:is(#account-dialog,#customer-chat,.admin-shell) .btn-red{background:#c7192d;color:#fff;border-color:#c7192d}
:is(#account-dialog,#customer-chat,.admin-shell) .btn-red:hover{background:#981326;border-color:#981326}
:is(#account-dialog,#customer-chat,.admin-shell) :is(input,select,textarea):focus-visible{outline:2px solid #c7192d;outline-offset:2px;border-color:#c7192d}
:is(#account-dialog,#customer-chat,.admin-shell) .mini-link{color:#c7192d}
.account-shortcuts>button,.account-vehicles article,.account-thread-list>button,.chat-thread-choices>button{background:#fff}
:is(.account-shortcuts,.account-thread-list,.chat-thread-choices)>button:hover{background:#fff5f6;border-color:#c7192d}
.account-section-title>button:hover{color:#981326;border-color:#c7192d;background:#fff5f6}
.chat-launch:hover{border-color:#c7192d;color:#981326}
.chat-message.from-customer{border:1px solid #f1d4d9}
.admin-filters>button:hover:not(.active){border-color:#c7192d;color:#981326}
.admin-thread:hover:not(.active){background:#fff5f6}
.admin-conversation-head>button:hover{background:#fff5f6;border-color:#c7192d;color:#981326}
/* Keep chat available without covering the mobile search or catalog. */
@media(max-width:600px){
 .chat-launch{display:flex;width:48px;height:48px;min-height:48px;justify-content:center;padding:0;border-radius:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 .chat-launch>span{display:none}
 .chat-launch>b{position:absolute;right:-3px;top:-3px}
}
