/* LAWJ assistant. Reference-aligned presentation; no shared header changes. */
.assistant-mobile-only{display:none}
.assistant-page .assistant-suggestions button{background:#061e2c;color:#fff;border-color:#061e2c}
.assistant-page .assistant-suggestions button:hover{background:#061e2c;color:#fff;border-color:#061e2c}
.assistant-page .assistant-followups button[data-prompt]{background:#061e2c;color:#fff;border-color:#061e2c}
.assistant-page .assistant-followups button[data-prompt]:hover{background:#061e2c;color:#fff;border-color:#061e2c}
.assistant-page .assistant-followups button[data-prompt]:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Cpath d='M20 12H4m6-6-6 6 6 6'/%3E%3C/svg%3E")}
.assistant-page .assistant-followups h3{font-size:18px;line-height:1.5;font-weight:700}
.assistant-page #chat-voice:not(.is-listening){background:#061e2c;color:#fff;border-color:#061e2c}
.assistant-page #chat-reset{background:#d4af37;border:1px solid #d4af37;color:#061e2c;border-radius:8px;font-weight:800}
.assistant-page #chat-reset:hover{background:#c8a52e;border-color:#c8a52e}
.assistant-page #assistant-chat-placeholder{background:#061e2c;color:#fff;border-color:#061e2c;font-size:17px;font-weight:700}
.assistant-page #assistant-chat-placeholder .lj-icon{color:#e6bd59}
.assistant-page #chat-message{scrollbar-width:none}
.assistant-page #chat-message::-webkit-scrollbar{display:none;width:0;height:0}
.assistant-page .assistant-filter-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:48px;margin-bottom:18px;padding:10px 18px;border:1px solid #061e2c;border-radius:10px;background:#061e2c;color:#fff;font-size:17px;font-weight:700;line-height:1.5;text-align:center;cursor:pointer}
.assistant-page .assistant-filter-action:hover{background:#061e2c;border-color:#061e2c}
.assistant-page .assistant-filter-action .lj-icon{width:22px;height:22px;flex-shrink:0}
.assistant-page .assistant-filter-action circle{fill:#061e2c}
@media(min-width:768px){
 .assistant-page #assistant-start-compose #chat-message{text-align:center}
 .assistant-page #assistant-start-compose #chat-message::placeholder{font-weight:700;color:#061e2c;opacity:1}
 .assistant-page #assistant-start-compose #chat-message:placeholder-shown{height:44px;min-height:44px}
 .assistant-page #chat-reset{font-size:17px;font-weight:800;min-width:168px;min-height:48px;padding:10px 18px;gap:10px}
 .assistant-page #chat-reset>span:first-child{width:22px;height:22px;font-size:20px}
}
@media(min-width:1101px){
 .assistant-page .assistant-examples{justify-content:center;gap:8px;flex-wrap:wrap}
 .assistant-page .assistant-examples>p{font-size:17px;font-weight:700;color:#061e2c}
 .assistant-page .assistant-suggestions{flex:0 1 auto;justify-content:flex-start;gap:8px}
}
.assistant-page{--assistant-navy:#061e2c;--assistant-gold:#d4a64c;--assistant-muted:#6f88aa;--assistant-line:#dce6f3;--assistant-height:calc(100dvh - 98px);direction:rtl;color:var(--assistant-navy);background:linear-gradient(135deg,#fff,#f4f8fd);font:16px/1.65 Heebo,Arial,sans-serif;padding:8px 18px 20px 0;min-width:0}
.assistant-page *{box-sizing:border-box}
.assistant-page [hidden]{display:none!important}
.assistant-page button,.assistant-page textarea,.assistant-page select{font:inherit}
.assistant-page button{cursor:pointer}
.assistant-page button:disabled{opacity:.5;cursor:wait}
.assistant-page :is(button,a,textarea,select,input):focus-visible{outline:3px solid #ae812d;outline-offset:4px}
.assistant-page :is(h1,h2,h3,p){margin:0}
.assistant-page .lj-icon{width:23px;height:23px;flex-shrink:0}
.assistant-title-mobile,.assistant-description-mobile,.assistant-example-mobile{display:none}
.assistant-layout{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);grid-template-areas:'chat opening';gap:14px;height:100%;min-height:0;max-width:1920px;margin:auto}
.assistant-opening{grid-area:opening;display:flex;flex-direction:column;min-width:0;min-height:0}
.assistant-opening-hero{flex:0 0 46%;min-height:260px;position:relative;isolation:isolate;color:#fff;padding:38px 30px 76px;background:#061e2c;border-radius:0 9px 0 0;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.assistant-opening-hero:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#061e2c88,#061e2ce8 85%),var(--lawj-header-photo) 40% center / cover}
.assistant-hero-statue{position:absolute;inset:0 auto 0 0;width:43%;z-index:-1;background:linear-gradient(#061e2c55,#061e2cbb),url('../images/gavel.webp') 55% center / auto 100% no-repeat;mask-image:linear-gradient(90deg,#000 58%,transparent);opacity:.9;mix-blend-mode:luminosity}
.assistant-eyebrow{font-size:13px;color:#9b742b;font-weight:700;display:flex;gap:7px;align-items:center}
.assistant-opening-hero .assistant-eyebrow{font-size:18px;color:#eac371;margin-bottom:9px}
.assistant-opening h1{font-size:clamp(30px,3.2vw,48px);line-height:1.3;font-weight:800;color:#fff;letter-spacing:-.02em}
.assistant-opening h1 strong{font-weight:800;color:#efc36d}
.assistant-opening-hero p{color:#f0f4fb;font-size:clamp(15px,1.3vw,21px);line-height:1.7;margin-top:16px}
.assistant-opening-body{flex:1;flex-shrink:0;position:relative;padding:0 26px;display:flex;flex-direction:column;justify-content:space-between;margin-top:-44px;gap:0}
.assistant-topic-heading{display:none}
.assistant-topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;order:1}
.assistant-topics button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-width:0;min-height:108px;background:linear-gradient(#fff,#fbfcff);border:1px solid var(--assistant-line);border-radius:15px;box-shadow:0 4px 12px #061e2c0b;padding:14px 5px 12px;color:#061e2c;font-size:15px;font-weight:700;white-space:nowrap}
.assistant-topics .lj-icon{width:35px;height:35px;color:var(--assistant-gold)}
.assistant-topics button:hover{border-color:#d8b76e;background:#fffaf0}
.assistant-topics [data-specialty=criminal]{order:3}.assistant-topics [data-specialty=traffic]{order:4}
.assistant-or-divider{order:2;display:flex;align-items:center;gap:20px;justify-content:center;font-size:14px;color:#56708f;margin:18px 0}
.assistant-or-divider:before,.assistant-or-divider:after{content:'';height:1px;background:var(--assistant-line);flex:1}
#assistant-start-compose{order:3;min-width:0}
#assistant-compose-launcher{order:3;width:100%;display:flex;align-items:center;gap:10px;position:relative;text-align:right;min-height:65px;padding:14px 62px;border:1px solid #d7e4f5;border-radius:16px;background:#ebf2fb;color:#6a83a6;font-size:15px}
.assistant-launch-edit,.assistant-launch-send{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;position:absolute;top:11px}
.assistant-launch-edit{left:12px;color:#061e2c;background:white;font-size:26px}
.assistant-launch-send{right:12px;color:white;background:#061e2c}
.assistant-examples{order:4;display:flex;align-items:center;gap:9px;margin-top:16px}
.assistant-examples>p{font-size:12px;color:#516a8a;flex-shrink:0}
.assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px}
.assistant-suggestions button{min-height:35px;white-space:nowrap;padding:6px 11px;border:1px solid #d7e5f7;border-radius:24px;background:#edf3fb;color:#061e2c;font-size:11px;font-weight:500}
.assistant-suggestions button:hover{border-color:#afc3dd;background:#e4edf9}
.assistant-opening-benefits{order:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:20px;padding:19px 0 14px;border-top:1px solid #edf1f7}
.assistant-opening-benefits>span{display:flex;align-items:center;flex-direction:column;gap:2px;text-align:center;padding:0 8px;border-inline-end:1px solid #e4ebf5;min-width:0}
.assistant-opening-benefits>span:last-child{border:0}
.assistant-opening-benefits .lj-icon{width:25px;height:25px;margin-bottom:7px}
.assistant-opening-benefits strong{font-size:12px;line-height:1.5;white-space:nowrap}
.assistant-opening-benefits small{font-size:11px;color:#4d6787;line-height:1.55;white-space:nowrap}
.assistant-opening-notice{order:7;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;color:#061e2c;font-size:11px;line-height:1.6;padding:12px 10px;background:#edf3fb;border-radius:10px;margin-top:8px!important}
.assistant-opening-notice .lj-icon{width:16px;height:16px}
#assistant-resume{order:6;min-height:42px;padding:8px 16px;color:white;background:#061e2c;border:0;border-radius:12px;margin-top:10px}
.assistant-page[data-view=conversation] #assistant-resume{display:none}
.assistant-chat{grid-area:chat;display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid #dbe5f2;border-radius:18px;background:linear-gradient(120deg,#f9fbff,#f3f7fc);box-shadow:0 6px 22px #061e2c08;overflow:hidden}
.assistant-chat-header{display:flex;align-items:center;gap:14px;padding:20px 25px;background:linear-gradient(110deg,#061e2c,#061e2c);color:#fff;flex-shrink:0}
.assistant-heading-icon{order:0;color:#eec775;display:grid;place-items:center}
.assistant-heading-icon .lj-icon{width:33px;height:33px}
.assistant-chat-heading{order:1;flex:1;min-width:0}
.assistant-chat-header h2{color:#fff;font-size:21px;font-weight:700;line-height:1.4}
.assistant-chat-header p{font-size:12px;color:#e2eaf4;margin-top:2px}
.assistant-header-actions{order:2;display:flex;gap:7px;align-items:center}
.assistant-header-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #8d9faf;border-radius:13px;background:transparent;color:white;padding:8px 13px;font-size:12px;white-space:nowrap}
.assistant-header-actions button:hover{background:#ffffff12}
#chat-reset>span:first-child{display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:18px;line-height:1}
#assistant-back,#assistant-collapse{display:none}
#assistant-back .lj-icon{transform:rotate(180deg)}
.assistant-page[data-view=conversation] #assistant-collapse{display:flex;padding:8px}
#assistant-collapse span{display:none}#assistant-collapse .lj-icon{transform:rotate(-90deg)}
.is-intro-collapsed #assistant-collapse .lj-icon{transform:rotate(90deg)}
.assistant-chat-stage{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c1d0e2 transparent;scroll-padding-block:20px;padding-bottom:12px}
.assistant-page #chat-log{display:flex;flex-direction:column;gap:24px;padding:24px 20px 20px;outline-offset:-4px;overflow:visible;min-height:0}
.chat-bubble{width:fit-content;max-width:calc(100% - 52px);position:relative;flex-shrink:0;border-radius:16px;padding:15px 20px;overflow-wrap:anywhere;color:#061e2c;box-shadow:0 3px 9px #061e2c03}
.chat-bubble:before{content:'LawJ';position:absolute;top:0;width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:#061e2c;color:#fff;font:bold 17px/1 Georgia,serif;border:1px solid #d3dfec;white-space:nowrap;letter-spacing:-1px}
.chat-bubble--assistant{align-self:flex-end;margin-inline-end:53px;background:#fff;border:1px solid #e5edf7;border-start-end-radius:4px}
.chat-bubble--assistant:before{inset-inline-end:-54px}
.chat-bubble--user{align-self:flex-start;margin-inline-start:53px;background:#e7effa;border:1px solid #dce7f5;max-width:80%;padding:10px 16px}
.chat-bubble--user:before{content:'';inset-inline-start:-54px;background:#536f8b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='14' r='7' fill='white'/%3E%3Cpath d='M7 35v-4a13 12 0 0 1 26 0v4Z' fill='white'/%3E%3C/svg%3E") center / 86% no-repeat}
.chat-author{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-bubble p,.chat-bubble ul{font-size:17px;line-height:1.65;white-space:pre-wrap}
.chat-bubble p+p,.chat-bubble p+ul,.chat-bubble ul+p{margin-top:12px}
.chat-bubble ul{padding-inline-start:21px;margin:0}
.chat-bubble li{padding-inline-start:3px;margin-top:2px}
.chat-bubble li::marker{color:#b88c36}
.chat-bubble small{display:block;margin-top:12px;color:#6f86a3;font-size:11px;line-height:1.7}
.chat-timestamp{display:block;position:absolute;inset-inline-start:4px;bottom:-24px;font-size:11px;line-height:1.5;color:#7a92b1;font-weight:400;direction:ltr}
.assistant-followups{display:grid;gap:8px;border-radius:12px;background:#eaf1fa;margin:0 17px;padding:10px}
.assistant-followups h3{text-align:center;font-size:14px;font-weight:700;margin:0 0 2px}
.assistant-followups button{position:relative;width:100%;min-height:43px;text-align:center;padding:9px 25px;border:1px solid #d7e4f4;border-radius:15px;background:#fff;color:#061e2c;font-size:15px}
.assistant-followups button:after{content:'';position:absolute;left:13px;top:50%;transform:translateY(-50%);width:21px;height:21px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315355f' stroke-width='1.6'%3E%3Cpath d='M20 12H4m6-6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat}
.assistant-followups button:hover{background:#f9fbff;border-color:#aebfd6}
.assistant-conversation-tools{display:none;justify-content:flex-start;gap:12px;padding:7px 20px 0;flex-shrink:0}
.assistant-page.has-error .assistant-conversation-tools{display:flex}
.assistant-conversation-tools button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:#547396;font-size:11px;min-height:25px;padding:0}
.assistant-conversation-tools .lj-icon{width:15px;height:15px}
#assistant-match-count{border-radius:12px;min-width:18px;text-align:center;font-size:10px;background:#e0eafa;color:#061e2c}
#assistant-chat-compose{flex-shrink:0;min-width:0}
.assistant-page #chat-form{padding:14px 16px 10px;position:relative}
.chat-compose{display:flex;direction:ltr;align-items:center;gap:10px;border:1px solid #cbdaf0;border-radius:32px;background:#fff;padding:8px;min-height:64px;box-shadow:0 2px 8px #061e2c03}
.chat-compose:focus-within{border-color:#b08d40;box-shadow:0 0 0 3px #d3aa4e14}
.assistant-page #chat-message{order:2;flex:1;min-width:0;display:block;width:100%;direction:rtl;text-align:right;border:0!important;outline:0!important;resize:none;box-shadow:none;border-radius:0;background:transparent;padding:7px 0;min-height:42px;max-height:110px;font-size:16px;color:#061e2c;line-height:1.6}
.assistant-page #chat-message::placeholder{color:#7890b0;opacity:1}
.chat-compose-actions{display:contents}
.chat-voice-button,#chat-send{width:43px;height:43px;min-height:43px;flex-shrink:0;display:grid;place-items:center;padding:0;border-radius:50%}
.chat-voice-button{order:1;background:#fff;border:1px solid #d5e2f5;color:#061e2c}
.chat-voice-button.is-listening{background:#a02e44;color:white;border-color:#a02e44}
.assistant-page #chat-send{order:3;background:#061e2c;border:1px solid #061e2c;color:white;box-shadow:0 3px 9px #061e2c10}
.assistant-page #chat-send:hover{background:#061e2c}
.assistant-page #assistant-start-compose #chat-form{padding:0}
#assistant-start-compose .chat-compose{background:#edf3fc;border-color:#d9e5f6;border-radius:15px}
#assistant-start-compose .assistant-notice{display:none}
#assistant-start-compose .chat-voice-button{background:#fff;border-color:#e4eaf3}
#assistant-chat-placeholder{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 16px 18px;min-height:62px;width:calc(100% - 32px);padding:12px 20px;border:1px solid #d3e0f2;border-radius:32px;background:white;color:#7891af;text-align:right;font-size:14px}
.assistant-page[data-view=conversation] #assistant-chat-placeholder{display:none}
.chat-compose-meta{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.assistant-page.is-busy .chat-compose-meta,.assistant-page.has-voice-note .chat-compose-meta{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;display:flex;align-items:center;gap:10px;margin-top:7px;font-size:11px;color:#5a7291}
#chat-count{direction:ltr;font-size:10px;flex-shrink:0}
#chat-cancel{border:1px solid #edcbd2;border-radius:8px;min-height:32px;padding:3px 10px;background:#fff6f6;color:#91374a;font-size:12px;flex-shrink:0}
#chat-voice-status{margin:0;font-size:11px;line-height:1.7}
.assistant-page #chat-status{font-size:12px;color:#5c7696;margin-top:6px;line-height:1.6}
.assistant-page:not(.is-busy):not(.has-error) #chat-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.assistant-page #chat-status:empty{display:none}
.assistant-notice{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:1.5;color:#7490ad;margin-top:6px!important}
.assistant-notice .lj-icon{width:14px;height:14px}
.assistant-notice button{font-size:10px;border:0;background:transparent;color:#527596;text-decoration:underline;padding:0}
.assistant-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.8;color:#061e2c}
.assistant-consent input{width:21px;height:21px;margin-top:4px;flex-shrink:0;accent-color:#061e2c}
.assistant-consent-details{display:block;font-size:13px!important;color:#28517c;background:none;border:0;text-decoration:underline;padding:8px 0;margin-top:7px}
.assistant-consent-actions{display:flex;gap:10px;margin-top:22px}
.assistant-consent-actions button{border:1px solid #cad8e9;border-radius:10px;min-height:46px;padding:9px 15px;background:#fff;color:#061e2c;font-weight:700}
.assistant-consent-actions button[type=submit]{flex:1;background:#061e2c;border-color:#061e2c;color:#fff}
.assistant-dialog{width:min(480px,calc(100vw - 36px));max-height:calc(100dvh - 48px);margin:auto;padding:28px;border:1px solid var(--assistant-line);border-radius:22px;background:#fff;color:var(--assistant-navy);font:inherit;direction:rtl;overflow:auto;box-shadow:0 25px 100px #061e2c40}
.assistant-dialog::backdrop{background:#061e2ca8;backdrop-filter:blur(3px)}
.assistant-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.assistant-dialog-header h2{font-size:24px;line-height:1.4;color:var(--assistant-navy);margin:4px 0 0}
.assistant-dialog-header>button{border:0;background:#f0f4f9;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:25px;line-height:1;color:var(--assistant-navy)}
.assistant-dialog>p,.assistant-dialog #assistant-privacy p{font-size:14px;line-height:1.8;color:#566981;margin-bottom:16px}
#match-preferences{display:grid;gap:18px;margin-top:22px}
#match-preferences label{display:grid;gap:7px;font-size:14px;font-weight:700}
#match-preferences select{width:100%;min-height:50px;padding:10px 12px;border:1px solid #becde0;border-radius:10px;color:var(--assistant-navy);background:#fff;font-size:16px;font-weight:400}
#match-preferences button{background:var(--assistant-navy);color:#fff;border:0;min-height:48px;justify-content:center;margin-top:8px}
.assistant-text-button{background:none;border:0;color:#5d7594;text-decoration:underline;min-height:44px;font-size:13px;display:block;margin:8px auto 0}
.assistant-filter-action{margin-bottom:18px}
.assistant-next{padding:15px 17px;border-radius:12px;background:#fff8e8;border:1px solid #edddb5;margin-bottom:18px;font-size:14px}
.assistant-next strong{display:block;margin-bottom:5px}
.assistant-next p{font-size:13px}
.assistant-empty{border:1px dashed #c6d4e6;border-radius:12px;padding:22px;text-align:center;color:#607795;font-size:14px}
.assistant-match-note{font-size:12px!important;color:var(--assistant-muted);line-height:1.7;margin:15px 0!important}
.assistant-directory-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:14px;color:var(--assistant-navy);margin-top:18px}
.assistant-source-links{display:grid;gap:9px;list-style:none;margin:16px 0 0;padding:0;font-size:13px}
.assistant-source-links a{color:#224f80;text-underline-offset:3px}
.assistant-source-links small{font-size:11px}
.assistant-match--profile{margin-bottom:12px}
.assistant-profile-card{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px 12px;padding:14px;border:1px solid #d5e0ed;border-radius:14px;background:#fff;text-decoration:none;color:var(--assistant-navy)!important}
.assistant-profile-card:hover{border-color:#cfb16e;background:#fffcf4}
.assistant-profile-card-photo{width:60px;height:68px;border-radius:10px;overflow:hidden;background:#f0f4fa;color:var(--assistant-gold);display:grid;place-items:center;grid-row:1/3;font-size:27px}
.assistant-profile-card-photo img{width:100%;height:100%;object-fit:cover;object-position:top center}
.assistant-profile-card-copy{min-width:0;display:grid;gap:3px}
.assistant-profile-card-name{font-size:17px;line-height:1.5}
.assistant-profile-card-meta{font-size:12px;color:var(--assistant-muted)}
.assistant-profile-card-action{grid-column:2;justify-self:start;font-size:12px;font-weight:700;background:var(--assistant-navy);color:#fff;padding:7px 12px;min-height:36px;border-radius:7px;margin-top:4px}
.assistant-match-preferences{font-size:12px;color:var(--assistant-muted);padding:5px 10px}
.chat-voice-dialog-actions{display:flex;gap:10px;margin-top:20px}
.chat-voice-dialog-actions button{min-height:46px;flex:1;padding:10px;border-radius:10px;border:1px solid #becde0;background:#fff;color:var(--assistant-navy);font-weight:700}
.chat-voice-dialog-actions [data-voice-start]{background:var(--assistant-navy);color:#fff;border-color:var(--assistant-navy)}
.assistant-no-script{padding:24px;background:#fff}

body.lawj-assistant-app .assistant-page{height:var(--assistant-height)}
body.lawj-assistant-app>.site-footer{display:none}
.assistant-page.is-intro-collapsed .assistant-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:'chat';max-width:1180px}
.assistant-page.is-intro-collapsed .assistant-opening{display:none}
body.lawj-assistant-app.assistant-short-window .assistant-page{height:auto;min-height:var(--assistant-height)}
.assistant-short-window .assistant-layout{height:auto}
.assistant-short-window .assistant-chat-stage{overflow:visible;min-height:260px;flex:none}
.assistant-short-window .assistant-opening-hero{min-height:300px}
@media(min-width:768px) and (max-height:850px){
 .assistant-opening-hero{min-height:220px;padding:25px 24px 65px}.assistant-opening h1{font-size:clamp(27px,2.4vw,40px)}.assistant-opening-hero p{font-size:16px;margin-top:12px}.assistant-opening-hero .assistant-eyebrow{font-size:16px}.assistant-opening-body{padding-inline:20px}.assistant-topics button{min-height:94px;font-size:13px;gap:7px}.assistant-topics .lj-icon{width:31px;height:31px}.assistant-or-divider{margin:13px 0}.assistant-opening-benefits{margin-top:15px;padding-top:14px}.assistant-opening-benefits small{font-size:10px}.assistant-examples{margin-top:11px}.assistant-opening-notice{padding:10px;font-size:10px}
}
@media(min-width:768px) and (max-width:1100px){
 .assistant-layout{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
 .assistant-page{padding:8px 12px 16px 0}.assistant-layout{gap:10px}.assistant-opening-hero{padding:20px 19px 56px;flex-basis:36%}.assistant-opening h1{font-size:24px}.assistant-opening-hero p{font-size:14px}.assistant-opening-body{padding-inline:14px}.assistant-topics{gap:6px}.assistant-topics button{font-size:11px;min-height:88px}.assistant-topics .lj-icon{width:28px;height:28px}.assistant-opening-benefits{grid-template-columns:repeat(2,1fr);gap:14px}.assistant-opening-benefits>span:nth-child(2){border:0}.assistant-examples{align-items:flex-start}.assistant-suggestions button{font-size:10px;padding-inline:8px}.assistant-chat-header{padding:17px 16px;gap:8px}.assistant-chat-header h2{font-size:17px}.assistant-heading-icon{display:none}.assistant-header-actions button{padding:7px;font-size:11px}.assistant-chat-header p{font-size:10px}.chat-bubble{padding:14px;max-width:calc(100% - 42px)}.chat-bubble p,.chat-bubble ul{font-size:15px}.chat-bubble:before{width:34px;height:34px;font-size:14px}.chat-bubble--assistant{margin-inline-end:42px}.chat-bubble--assistant:before{inset-inline-end:-44px}.chat-bubble--user{margin-inline-start:42px}.chat-bubble--user:before{inset-inline-start:-44px}.assistant-followups button{font-size:12px;padding-inline:24px}
}
@media(max-width:767px){
 body.lawj-assistant-app{padding-bottom:0!important}body.lawj-assistant-app>.lawj-mobile-dock{display:none!important}
 .assistant-page{padding:0;background:#fff}.assistant-layout{display:block;height:auto}.assistant-opening{display:block;overflow:visible}
 body.lawj-assistant-app .assistant-page{height:auto;min-height:var(--assistant-height)}
 .assistant-title-desktop,.assistant-description-desktop,.assistant-example-desktop{display:none!important}.assistant-title-mobile,.assistant-description-mobile,.assistant-example-mobile{display:inline}
 .assistant-opening-hero{min-height:225px;height:225px;padding:34px 18px 38px;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;text-align:center;flex:none}
 .assistant-opening-hero:before{background:linear-gradient(90deg,#061e2c77,#061e2cd0),var(--lawj-header-photo) 30% center / cover}
 .assistant-hero-statue{width:64%;opacity:.6;mask-image:linear-gradient(90deg,#000 52%,transparent)}
 .assistant-opening-hero .assistant-eyebrow{display:none}
 .assistant-opening h1{font-size:25px;line-height:1.45;font-weight:800;letter-spacing:-.02em;margin:0}
 .assistant-opening-hero p{font-size:20px;line-height:1.55;margin-top:10px;color:#f0f4fb}
 .assistant-opening-body{display:flex;flex-direction:column;gap:0;margin-top:-19px;padding:16px 17px 14px;background:linear-gradient(#fff,#fcfdff);border-radius:24px 24px 0 0;position:relative}
 #assistant-start-compose{order:1}.assistant-page #assistant-start-compose #chat-form{padding:0}
 #assistant-start-compose .chat-compose{display:flex;flex-direction:column;align-items:stretch;gap:0;direction:ltr;min-height:138px;padding:12px 12px 10px;border-radius:16px;background:white;border:1px solid #d5e2f4;box-shadow:none}
 .assistant-page #assistant-start-compose #chat-message{order:1;flex:none;min-height:64px;font-size:16px;padding:0 0 6px;line-height:1.7;border:0!important;border-radius:0}
 #assistant-start-compose .chat-compose-actions{order:2;display:flex;align-items:center;justify-content:space-between;direction:ltr;margin-top:auto}
 #assistant-start-compose .chat-voice-button{order:1;width:43px;height:43px;background:white;border-color:#cedef3}
 #assistant-start-compose #chat-send{order:2;width:45px;height:45px}
 .assistant-topic-heading{order:2;display:block;font-size:16px;font-weight:700;text-align:right;margin:13px 2px 9px}
 .assistant-topics{order:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .assistant-topics button{min-height:72px;border-radius:14px;padding:9px;gap:4px;font-size:15px}
 .assistant-topics .lj-icon{width:29px;height:29px}
 .assistant-topics [data-specialty=work]{order:1}.assistant-topics [data-specialty=family]{order:2}.assistant-topics [data-specialty=criminal]{order:3}.assistant-topics [data-specialty=traffic]{order:4}
 .assistant-or-divider,.assistant-opening-benefits,#assistant-compose-launcher{display:none!important}
 .assistant-examples{order:4;display:block;margin-top:20px}
 .assistant-examples>p{font-size:14px;display:flex;align-items:center;gap:12px;margin-bottom:12px}
 .assistant-examples>p:after{content:'';height:1px;flex:1;background:#dce6f4}
 .assistant-suggestions{display:flex;gap:6px;flex-wrap:wrap}
 .assistant-suggestions button{font-size:12px;min-height:36px;background:white;border-color:#cbdcf1;padding:6px 8px;display:block}
 .assistant-opening-notice{order:6;background:transparent;color:#6b86a8;font-size:12px;line-height:1.6;padding:0;margin-top:19px!important;gap:5px}
 .assistant-opening-notice .lj-icon{width:16px;height:16px}
 #assistant-resume{order:5;margin-top:14px;font-size:14px}
 .assistant-page[data-view=welcome] .assistant-chat{display:none}.assistant-page[data-view=conversation] .assistant-opening{display:none}
 body.lawj-assistant-app .assistant-page[data-view=conversation]{height:var(--assistant-height);min-height:0}.assistant-page[data-view=conversation] .assistant-layout{height:100%}
 .assistant-chat{height:100%;border:0;border-radius:0;box-shadow:none;background:linear-gradient(110deg,#f9fcff,#f2f7fd)}
 .assistant-chat-header{min-height:43px;background:#fff;border-bottom:1px solid #e4ecf6;color:#061e2c;padding:4px 13px;gap:8px}
 .assistant-chat-heading{order:1}.assistant-chat-header h2{font-size:12px;color:#587696;font-weight:500}.assistant-chat-header p{display:none}.assistant-heading-icon{display:none}
 .assistant-header-actions{order:2;gap:5px}.assistant-header-actions button{border:0;color:#52708e;border-radius:8px;min-height:34px;width:34px;padding:4px;font-size:14px}
 #chat-reset>span:last-child{display:none}#chat-reset>span:first-child{width:19px;height:19px;font-size:17px}
 #assistant-back{display:flex}.assistant-page[data-view=conversation] #assistant-collapse{display:none}
 .assistant-chat-stage{padding-bottom:8px}
 .assistant-page #chat-log{gap:24px;padding:14px 14px 22px}
 .chat-bubble{padding:15px 17px;max-width:calc(100% - 47px);border-radius:16px}
 .chat-bubble--assistant{margin-inline-end:47px;border-start-end-radius:16px}
 .chat-bubble--user{margin-inline-start:47px;max-width:calc(100% - 72px);border-start-start-radius:16px;padding:11px 15px}
 .chat-bubble p,.chat-bubble ul{font-size:17px;line-height:1.6}
 .chat-bubble ul{padding-inline-start:19px}
 .chat-bubble p+p,.chat-bubble p+ul,.chat-bubble ul+p{margin-top:10px}
 .chat-bubble:before{width:39px;height:39px;font-size:16px}.chat-bubble--assistant:before{inset-inline-end:-48px}.chat-bubble--user:before{inset-inline-start:-48px}
 .chat-timestamp{font-size:11px;bottom:-24px}.chat-bubble small{font-size:11px;line-height:1.7}
 .assistant-followups{margin:0 17px;background:none;padding:0;gap:7px}.assistant-followups h3{display:none}.assistant-followups button{font-size:15px;min-height:43px;border-color:#b7cdea;border-radius:22px;padding:8px 28px;background:#fff}.assistant-followups button:after{left:15px;width:17px;height:17px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315355f' stroke-width='1.7'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E")}
 .assistant-conversation-tools{padding:3px 16px 2px;gap:13px;background:#fff;justify-content:flex-end}.assistant-conversation-tools button{font-size:10px;min-height:24px}.assistant-conversation-tools .lj-icon{width:13px;height:13px}
 #assistant-chat-compose{border-top:1px solid #e2eaf5;background:#fff}.assistant-page #chat-form{padding:10px 13px max(10px,env(safe-area-inset-bottom));background:white}
 .chat-compose{border:0;background:white;box-shadow:none;padding:0;gap:9px;min-height:48px;border-radius:0}
 .chat-compose:focus-within{box-shadow:none}
 .assistant-page #chat-message{font-size:16px;min-height:44px;max-height:110px;border:1px solid #d5e2f3!important;border-radius:26px;padding:10px 14px}
 .chat-voice-button{width:44px;height:44px;border-color:#d2e1f5}.assistant-page #chat-send{width:45px;height:45px}
 .assistant-notice{font-size:10px;line-height:1.5;margin-top:6px!important;gap:4px;color:#7793b4}.assistant-notice .lj-icon{width:14px;height:14px}.assistant-notice button{font-size:10px}
 .assistant-dialog{width:100%;max-width:none;max-height:calc(100dvh - 28px);margin:auto 0 0;border:0;border-radius:24px 24px 0 0;padding:25px 22px max(20px,env(safe-area-inset-bottom));box-shadow:0 -15px 60px #061e2c33}
 .assistant-dialog:before{content:'';display:block;width:36px;height:4px;border-radius:3px;background:#cbd7e7;margin:-12px auto 20px}.assistant-dialog-header h2{font-size:23px}.assistant-dialog>p,.assistant-dialog #assistant-privacy p{font-size:15px}
 .assistant-short-window .assistant-page[data-view=conversation] .assistant-layout{height:auto}.assistant-short-window .assistant-chat{height:auto;min-height:var(--assistant-height)}.assistant-short-window .assistant-chat-stage{min-height:150px}
 body.lawj-assistant-app.assistant-short-window .assistant-page[data-view=conversation]{height:auto;min-height:var(--assistant-height)}
}
@media(prefers-reduced-motion:reduce){.assistant-page *{scroll-behavior:auto!important;transition:none!important}}

/* Desktop reference selected by the owner on 20 October. Tablet/mobile keep their existing rules. */
.assistant-desktop-welcome,.assistant-reference-only,.chat-feedback,.assistant-followups [data-open-matches]>.lj-icon{display:none}
.assistant-privacy-trigger{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;min-height:0;padding:0;border:0;background:none;color:inherit;line-height:1}
@media(min-width:1101px){
 .assistant-page{--assistant-navy:#061e2c;--assistant-gold:#d7aa4e;--assistant-muted:#5e789a;--assistant-line:#dce6f3;padding:0 36px 28px;background:linear-gradient(115deg,#fff,#f5f9ff)}
 .assistant-layout{grid-template-columns:minmax(0,674fr) minmax(0,830fr);gap:12px;max-width:1640px}
 .assistant-opening{border:0;border-radius:0;background:transparent;overflow:visible}
 .assistant-opening-hero{flex:0 0 auto;height:calc(var(--assistant-height)*.448);min-height:300px;padding:20px 40px;border-radius:0 8px 0 0;justify-content:center}
 .assistant-opening-hero:before{background:linear-gradient(90deg,#061e2c66,#061e2c33),url('../images/assistant-library-reference-v3.png') center top / cover no-repeat}
 .assistant-hero-statue{display:none}
 .assistant-opening-hero .assistant-eyebrow{font-size:24px;line-height:1.4;color:#edc474;font-weight:600;margin-bottom:10px}
 .assistant-opening h1{font-size:48px;font-weight:800;line-height:1.2;letter-spacing:-.025em}
 .assistant-opening h1 strong{color:#efc36d;font-weight:800}
 .assistant-opening-hero p{font-size:22px;line-height:1.6;margin-top:22px;color:#f7f9fc;font-weight:400}
 .assistant-opening-body{margin-top:-56px;padding:0 34px 16px 40px;gap:0;justify-content:flex-start;flex:1;min-height:0}
 .assistant-topics{gap:9px;flex-shrink:0}
 .assistant-topics button{min-height:114px;border-radius:15px;padding:14px 6px 12px;gap:9px;font-size:18px;line-height:1.45;font-weight:700;background:linear-gradient(#fff,#fcfdff);box-shadow:0 4px 11px #061e2c0b;white-space:nowrap}
 .assistant-topics .lj-icon{width:39px;height:39px;color:var(--assistant-gold)}
 .assistant-or-divider{margin:22px 0 18px;gap:22px;font-size:17px;line-height:23px;flex-shrink:0}
 #assistant-compose-launcher{min-height:78px;padding:18px 83px;border-radius:17px;font-size:18px;background:linear-gradient(110deg,#edf3fb,#e8f0fb);color:#6881a4;flex-shrink:0}
 .assistant-launch-edit,.assistant-launch-send{width:52px;height:52px;top:12px}
 .assistant-launch-edit{left:16px;border:1px solid #e1eaf6}.assistant-launch-send{right:16px;background:#061e2c}
 .assistant-launch-edit .lj-icon{width:25px;height:25px}.assistant-launch-send .lj-icon{width:25px;height:25px}
 .assistant-examples{margin-top:20px;gap:10px;min-height:40px;align-items:center;flex-shrink:0}
 .assistant-examples>p{font-size:15px;line-height:1.6;color:#475f7d}
 .assistant-suggestions{gap:16px;flex:1;justify-content:center}
 .assistant-suggestions button{font-size:15px;min-height:40px;padding:7px 16px;font-weight:500;border-radius:24px;background:linear-gradient(#f2f6fd,#eaf1fb);color:#061e2c}
 .assistant-opening-benefits{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:22px;padding:25px 0 0;border-top:1px solid #e8eef8;flex-shrink:0}
 .assistant-opening-benefits>span{display:flex;flex-direction:column;gap:1px;text-align:center;border-inline-end:1px solid #e3ebf7;padding:0 7px}
 .assistant-opening-benefits>span:last-child{border:0}
 .assistant-opening-benefits .lj-icon{width:29px;height:29px;margin-bottom:7px;color:#061e2c}
 .assistant-opening-benefits>span:nth-child(n+2)>.lj-icon:not(.assistant-reference-only){display:none}
 .assistant-opening-benefits strong{font-size:16px;font-weight:700;line-height:1.3;white-space:nowrap;color:#061e2c}
 .assistant-opening-benefits small{font-size:15px;line-height:1.4;white-space:nowrap;color:#425e80}
 .assistant-opening-notice{min-height:50px;margin-top:auto!important;padding:11px 12px;font-size:13px;line-height:1.65;border-radius:10px;gap:8px;background:#eaf1fa;color:#061e2c;flex-shrink:0}
 .assistant-opening-notice .lj-icon{width:17px;height:17px}
 .assistant-chat{margin-top:6px;height:calc(100% - 6px);border-radius:18px;border-color:#dbe5f2;background:linear-gradient(110deg,#f9fcff,#f3f7fd);box-shadow:0 5px 20px #061e2c09}
 .assistant-chat-header{direction:ltr;min-height:94px;padding:20px 18px 20px 33px;gap:20px;background:linear-gradient(110deg,#061e2c,#061e2c)}
 .assistant-heading-icon .lj-icon{width:34px;height:34px;fill:#edc474;stroke-width:.8}
 .assistant-heading-icon>.lj-icon:not(.assistant-reference-only){display:none}
 .assistant-heading-icon>.assistant-reference-only{display:block;stroke:none}
 .assistant-chat-heading{direction:rtl;text-align:left}
 .assistant-chat-header h2{font-size:22px;line-height:1.45;font-weight:700}
 .assistant-chat-header p{font-size:14px;color:#e7edf7;line-height:1.5;margin-top:2px}
 .assistant-header-actions{direction:ltr;gap:7px}
 .assistant-header-actions button{font-size:14px;min-height:48px;border-radius:15px;padding:10px 16px;border-color:#6d859c}
 #chat-reset{flex-direction:row-reverse;gap:9px}
 .assistant-page[data-view=conversation] #assistant-collapse{min-height:34px;width:30px;padding:5px;border:0}
 .assistant-chat-stage{padding-bottom:0;background:transparent}
 .assistant-page #chat-log{padding:20px 18px 40px;gap:20px}
 .chat-bubble{padding:16px 20px;max-width:calc(100% - 50px);border-radius:16px;color:#061e2c;box-shadow:0 3px 8px #061e2c03}
 .chat-bubble--user{margin-inline-start:49px;padding:11px 16px;max-width:80%;background:#e8f0fa;border-color:#dbe6f5}
 .chat-bubble--user p{font-size:16px;line-height:1.7}
 .chat-bubble--user:before{width:36px;height:36px;inset-inline-start:-48px;background-color:#506d89}
 .chat-bubble--assistant{margin-inline-end:76px;max-width:calc(100% - 122px);border-radius:16px;border-color:#e5edf7;background:#fff}
 .chat-bubble--assistant:before{width:62px;height:62px;inset-inline-end:-76px;font-size:21px;letter-spacing:-1.3px;background:#061e2c}
 .chat-bubble--assistant:before{content:'Law';text-indent:-8px}
 .chat-bubble--assistant:after{content:'J';position:absolute;left:-32px;top:20px;color:#d7aa4e;font:700 21px/1 Georgia,serif;letter-spacing:-1px}
 .chat-bubble--assistant p,.chat-bubble--assistant ul{font-size:17px;line-height:1.6}
 .chat-bubble--assistant p+p,.chat-bubble--assistant p+ul,.chat-bubble--assistant ul+p{margin-top:12px}
 .chat-bubble strong{font-weight:700}
 .chat-bubble li::marker{color:#061e2c}
 .chat-timestamp{position:absolute;font-size:13px;line-height:1.5;color:#718aab;margin:0;direction:ltr}
 .chat-bubble--assistant .chat-timestamp{inset-inline-start:auto;left:5px;bottom:-27px}
 .chat-bubble--user .chat-timestamp{inset-inline-start:auto;left:-53px;top:50%;bottom:auto;transform:translateY(-50%)}
 .chat-feedback{display:flex;position:absolute;right:1px;bottom:-31px;gap:7px;direction:rtl}
 .chat-feedback button{display:grid;place-items:center;border:0;background:transparent;color:#5d769a;width:26px;min-height:30px;padding:3px;border-radius:5px}
 .chat-feedback svg{width:17px;height:17px}.chat-feedback button:hover,.chat-feedback button[aria-pressed=true]{background:#e4edf8;color:#061e2c}
 .assistant-followups{position:relative;margin:0 17px;padding:12px;background:#eaf1fa;border-radius:12px;gap:8px;flex-shrink:0}
 .assistant-followups h3{font-size:15px;font-weight:700;text-align:center;line-height:1.6;margin:0 20px}
 .assistant-followup-standard{display:none}.assistant-reference-only{display:inline}
 .assistant-followups button.assistant-reference-only{display:block}
 .assistant-followups button{font-size:16px;line-height:1.6;min-height:46px;border-radius:15px;border-color:#dbe6f4;padding:9px 34px;background:#fff;color:#061e2c}
 .assistant-followups button:after{left:14px;width:21px;height:21px}
 .assistant-followups [data-open-matches]{position:absolute;top:4px;left:4px;min-height:34px;width:34px;padding:7px;border:0;background:none;display:grid;place-items:center}
 .assistant-followups [data-open-matches]>.lj-icon{display:block;width:20px;height:20px}
 .assistant-followups [data-open-matches]>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .assistant-followups [data-open-matches]:after{display:none}
 .assistant-page #chat-form{padding:18px 17px 18px}
 .chat-compose{min-height:69px;padding:8px;gap:10px;border-radius:33px;background:white;border-color:#cfddf1;box-shadow:none}
 .assistant-page #chat-message{min-height:42px;font-size:16px;line-height:1.6;padding:7px 0;color:#061e2c}
 .assistant-page #chat-message::placeholder{color:#6d86a8}
 .assistant-page #chat-send{width:52px;height:52px;min-height:52px;background:#061e2c;border:1px solid #061e2c;border-radius:50%}
 .chat-voice-button{width:48px;height:48px;border-radius:50%;border-color:#d6e3f5}
 #assistant-chat-compose .assistant-notice{display:none}
 .assistant-page.is-intro-collapsed #assistant-chat-compose .assistant-notice{display:flex;font-size:13px;color:#475569}
 #assistant-start-compose .chat-compose{min-height:78px;border-radius:17px;background:#edf3fc;padding:10px 12px}
 #assistant-start-compose #chat-message{font-size:18px}
 #assistant-chat-placeholder{min-height:69px;font-size:16px}
 .assistant-page[data-view=welcome] .assistant-chat-stage{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px}
 .assistant-page[data-view=welcome] #chat-log{display:none}
 .assistant-page[data-view=welcome] .assistant-desktop-welcome{display:flex;flex-direction:column;align-items:center;max-width:430px;text-align:center;color:#061e2c}
 .assistant-welcome-symbol{display:grid;place-items:center;width:60px;height:60px;border:1px solid #dce6f3;background:white;border-radius:18px;margin-bottom:20px;color:#061e2c}
 .assistant-welcome-symbol .lj-icon{width:30px;height:30px}
 .assistant-desktop-welcome h3{font-size:26px;line-height:1.45;margin-bottom:12px}
 .assistant-desktop-welcome p{font-size:17px;line-height:1.7;color:#475f7d}
 .assistant-welcome-hint{font-size:15px;line-height:1.7;margin-top:18px;color:#475f7d}
 .assistant-page.is-intro-collapsed .assistant-layout{max-width:1180px;margin:auto}
 .assistant-page.is-intro-collapsed .chat-bubble--assistant{max-width:82%}
 .assistant-short-window .assistant-chat{height:auto;min-height:650px}
 .assistant-short-window .assistant-opening-hero{height:300px;min-height:300px}
 .assistant-short-window .assistant-opening-body{flex:none}
 .assistant-short-window .assistant-chat-stage{display:block;overflow:visible}
}
@media(min-width:1101px) and (max-height:940px){
 .assistant-opening-hero{min-height:260px;padding-inline:32px}
 .assistant-opening-hero .assistant-eyebrow{font-size:20px;margin-bottom:8px}.assistant-opening h1{font-size:42px}.assistant-opening-hero p{font-size:18px;margin-top:16px}
 .assistant-opening-body{padding-inline:28px;margin-top:-48px}
 .assistant-topics button{min-height:94px;font-size:16px;gap:7px}.assistant-topics .lj-icon{width:33px;height:33px}
 .assistant-or-divider{margin:15px 0;font-size:15px;line-height:22px}
 #assistant-compose-launcher,#assistant-start-compose .chat-compose{min-height:66px;font-size:16px}.assistant-launch-edit,.assistant-launch-send{width:44px;height:44px;top:10px}
 .assistant-examples{margin-top:15px;min-height:36px}.assistant-suggestions{gap:7px}.assistant-suggestions button{font-size:13px;min-height:35px;padding:6px 11px}
 .assistant-opening-benefits{margin-top:16px;padding:17px 0 12px}.assistant-opening-benefits .lj-icon{width:25px;height:25px;margin-bottom:7px}.assistant-opening-benefits strong{font-size:14px}.assistant-opening-benefits small{font-size:13px}
 .assistant-opening-notice{min-height:43px;font-size:12px;padding:9px 8px}
 .assistant-chat-header{min-height:84px;padding:16px 17px 16px 24px;gap:13px}.assistant-chat-header h2{font-size:20px}.assistant-chat-header p{font-size:12px}.assistant-heading-icon .lj-icon{width:30px;height:30px}.assistant-header-actions button{min-height:42px;font-size:12px;padding:8px 12px}
 .assistant-page #chat-log{padding:18px 16px 35px;gap:20px}.chat-bubble--assistant{margin-inline-end:62px;max-width:calc(100% - 100px)}.chat-bubble--assistant:before{width:49px;height:49px;inset-inline-end:-62px;font-size:18px}
 .chat-bubble--assistant:after{left:-26px;top:15px;font-size:18px}
 .assistant-followups button{font-size:15px;min-height:43px;padding-block:8px}.assistant-followups h3{font-size:14px}
 .assistant-page #chat-form{padding:14px 16px}.chat-compose{min-height:64px}.assistant-page #chat-send{width:46px;height:46px;min-height:46px}.chat-voice-button{width:44px;height:44px}
}
@media(min-width:1101px) and (max-height:850px){
 .assistant-opening-hero{height:calc(var(--assistant-height)*.34);min-height:220px;padding-block:16px}.assistant-opening h1{font-size:38px}.assistant-opening-hero .assistant-eyebrow{font-size:18px}.assistant-opening-hero p{font-size:17px;margin-top:12px}
 .assistant-opening-body{margin-top:-40px}.assistant-topics button{min-height:86px}.assistant-topics .lj-icon{width:30px;height:30px}
 .assistant-or-divider{margin:12px 0}.assistant-examples{margin-top:13px}.assistant-opening-benefits{margin-top:14px;padding-top:13px}
}

/* Mobile reference: opening, conversation, results, and an on-demand filter sheet.
   These overrides are deliberately last and never apply to the approved desktop. */
@media(max-width:767px){
 .assistant-mobile-only{display:block}
 .assistant-page,.assistant-layout,.assistant-chat-stage{overflow-anchor:none}
 body.lawj-assistant-app .assistant-page{display:flex;flex-direction:column;height:var(--assistant-height);min-height:0;padding:0;background:#f5f8fd}
 .assistant-layout{display:block;flex:1;min-height:0;width:100%;height:auto;overflow:auto;overscroll-behavior-y:contain}
 .assistant-opening{display:block;min-height:100%;background:linear-gradient(#fff,#f9fbff)}
 .assistant-opening-hero{height:248px;min-height:248px;padding:32px 16px 58px;justify-content:center;flex:none}
 .assistant-opening-hero:before{background:linear-gradient(90deg,#061e2c66,#061e2caa),url('../images/assistant-library-reference-v3.png') 24% top / auto 100% no-repeat;background-color:#061e2c}
 .assistant-hero-statue{display:none}
 .assistant-opening h1{font-size:27px;line-height:1.4;font-weight:800;letter-spacing:-.025em;text-shadow:0 2px 6px #061e2c44}
 .assistant-opening-hero p{font-size:21px;line-height:1.45;margin-top:10px;color:#f4f7fb}
 .assistant-opening-body{margin:-34px 6px 0;padding:50px 12px 18px;gap:0;border:1px solid #e1e9f4;border-bottom:0;border-radius:24px 24px 0 0;background:linear-gradient(#fff,#fbfdff);box-shadow:0 -5px 18px #061e2c05}
 .assistant-mobile-intro{order:0;text-align:center;margin-bottom:18px}
 .assistant-mobile-intro h2{font-size:25px;font-weight:800;line-height:1.45;color:#061e2c;letter-spacing:-.025em}
 .assistant-mobile-intro p{font-size:16px;line-height:1.65;color:#425e7e;margin-top:5px}
 .assistant-mobile-medallion{position:absolute;top:-30px;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:72px;height:72px;border:9px solid #fff;border-radius:50%;background:#061e2c;box-shadow:0 2px 6px #061e2c20}
 .assistant-mobile-medallion:after{content:'';position:absolute;inset:2px;border:1.5px solid #d6aa4d;border-radius:50%}
 .assistant-mobile-medallion .lj-icon{width:28px;height:28px;color:#e6b64e}
 .assistant-topic-heading,.assistant-examples,.assistant-opening-notice{display:none}
 .assistant-topics{order:1;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .assistant-topics button{min-height:92px;padding:12px 6px 10px;border:1px solid #cbd9ec;border-radius:15px;gap:6px;font-size:17px;line-height:1.4;box-shadow:0 3px 7px #061e2c0a}
 .assistant-topics .lj-icon{width:34px;height:34px;color:#cea044}
 .assistant-topics [data-specialty=work]{order:1}.assistant-topics [data-specialty=family]{order:2}.assistant-topics [data-specialty=criminal]{order:3}.assistant-topics [data-specialty=traffic]{order:4}
 .assistant-mobile-filter{order:2;display:flex;align-items:center;gap:12px;margin-top:20px}
 .assistant-mobile-filter:before,.assistant-mobile-filter:after{content:'';height:1px;background:#bdcfe5;flex:1}
 .assistant-mobile-filter button{display:flex;flex-shrink:0;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:7px 12px;border:1px solid #061e2c;border-radius:9px;background:#061e2c;color:#fff;font-size:15px;font-weight:600}
 .assistant-mobile-filter circle{fill:#061e2c}
 .assistant-mobile-filter .lj-icon{width:21px;height:21px}
 #assistant-resume{order:3;margin-top:12px}
 #assistant-mobile-compose{flex-shrink:0;border-top:1px solid #d9e4f2;background:#fff;padding-bottom:env(safe-area-inset-bottom,0px)}
 .assistant-page:not([data-view=welcome]) #assistant-mobile-compose{display:none}
 .assistant-page #assistant-mobile-compose #chat-form{padding:9px 12px 6px}
 #assistant-mobile-compose .chat-compose{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:0 10px;border:0;border-radius:0;box-shadow:none;background:white;padding:0;min-height:66px}
 .assistant-page #assistant-mobile-compose #chat-message{grid-column:1/-1;grid-row:1;min-height:80px;height:80px;max-height:160px;padding:8px 10px;font-size:18px;font-weight:700;line-height:1.6;color:#061e2c;border:2px solid #315579!important;border-radius:14px;background:#eef4fc;box-shadow:0 3px 10px #061e2c12;overflow-y:auto}
 .assistant-page #assistant-mobile-compose #chat-message::placeholder{font-size:19px;line-height:1.5;font-weight:700;color:#061e2c;opacity:1}
 .assistant-page #assistant-mobile-compose #chat-message:focus{border-color:#061e2c!important;background:#fff;box-shadow:0 0 0 3px #061e2c20}
 #assistant-mobile-compose .chat-voice-button{grid-column:1;grid-row:2;width:44px;height:44px}
 #assistant-mobile-compose #chat-send{grid-column:3;grid-row:2;width:46px;height:46px;min-height:46px}
 .assistant-page :is(#assistant-mobile-compose,#assistant-chat-compose) .assistant-notice{display:block;font-size:14px;line-height:1.65;margin-top:8px!important;color:#061e2c;text-align:center;overflow-wrap:break-word}
 .assistant-page .assistant-notice .lj-icon{display:inline-block;width:16px;height:16px;vertical-align:middle;margin-inline-end:4px}
 .assistant-page .assistant-notice button{display:inline-block;font-size:14px;line-height:1.65;min-height:32px;padding:2px 4px;color:#061e2c;vertical-align:baseline;white-space:nowrap}
 .assistant-page :is(#assistant-mobile-compose,#assistant-chat-compose) #chat-status{font-size:14px;line-height:1.65;color:#061e2c}
 .assistant-page:is(.is-busy,.has-voice-note) .chat-compose-meta{font-size:14px;line-height:1.65;color:#061e2c;flex-wrap:wrap}
 body.lawj-assistant-app .assistant-page[data-view=conversation]{height:var(--assistant-height);min-height:0}
 .assistant-page[data-view=conversation] .assistant-layout{overflow:hidden;height:auto}
 .assistant-page[data-view=matches] .assistant-opening,.assistant-page[data-view=matches] .assistant-chat{display:none}
 .assistant-mobile-results{display:none;min-height:100%;padding:0 14px 20px;background:linear-gradient(120deg,#f9fcff,#f3f7fd)}
 .assistant-page[data-view=matches] .assistant-mobile-results{display:block}
 .assistant-results-toolbar{display:flex;align-items:center;gap:8px;min-height:48px}
 .assistant-results-toolbar h2{font-size:15px;font-weight:600;flex:1;text-align:center}
 .assistant-results-toolbar button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:7px;border:0;border-radius:8px;background:transparent;color:#3d5e80}
 #assistant-results-back .lj-icon{transform:rotate(180deg)}
 .assistant-results-banner{display:flex;align-items:center;gap:14px;padding:15px 16px;margin-bottom:16px;border:1px solid #f8e7bb;border-radius:14px;background:linear-gradient(115deg,#fff4d7,#fbefd2);min-height:100px;text-align:center}
 .assistant-results-banner>.lj-icon{display:block;flex-shrink:0;width:42px;height:42px;padding:8px;border-radius:50%;background:#d1a13d;color:#fff}
 .assistant-results-banner p{flex:1;color:#061e2c;font-size:16px;line-height:1.6}.assistant-results-banner p span,.assistant-results-banner p strong{display:block}
 .assistant-mobile-results #chat-next{display:none}
 .assistant-mobile-results .assistant-match--profile{position:relative;padding:14px 12px 12px;margin-bottom:15px;border:1px solid #dfe8f5;border-radius:15px;background:#fff;box-shadow:0 3px 7px #061e2c08}
 .assistant-mobile-results .assistant-profile-card{grid-template-columns:82px minmax(0,1fr);gap:8px 12px;border:0;border-radius:0;background:transparent;padding:0;min-height:110px}
 .assistant-mobile-results .assistant-profile-card-photo{width:82px;height:96px;border-radius:11px;grid-row:1}
 .assistant-mobile-results .assistant-profile-card-copy{display:flex;flex-direction:column;gap:10px;text-align:center;align-self:start}
 .assistant-mobile-results .assistant-profile-card-name{font-size:21px;font-weight:700;line-height:1.45}
 .assistant-mobile-results .assistant-profile-card-meta{font-size:14px;line-height:1.65;color:#365679}
 .assistant-mobile-results .assistant-profile-card-action{display:none}
 .assistant-match-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px;margin-top:10px}
 .assistant-match-actions a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:7px 8px;border:1px solid #6f91b6;border-radius:9px;background:#fff;color:#061e2c;font-size:16px;font-weight:700;text-decoration:none}
 .assistant-match-actions a:first-child{background:#061e2c;color:white;border-color:#061e2c}
 .assistant-mobile-results .assistant-match-preferences{padding:0 94px 0 0;font-size:12px;line-height:1.5;margin-top:-24px;margin-bottom:5px}
 .assistant-mobile-results .lj-demo{display:block;position:static;width:fit-content;font-size:10px;margin:0 0 8px;color:#87652d;background:#fff5db;border-radius:5px;padding:2px 6px}
 .assistant-mobile-results .assistant-match>small{display:block;font-size:11px;color:#526f8e;margin:5px 0}
 .assistant-mobile-results .assistant-match-note{font-size:11px!important;color:#5c7593}
 .assistant-chat{background:linear-gradient(110deg,#f9fcff,#f2f7fd)}
 .assistant-chat-header{min-height:34px;padding:0 12px;background:transparent;border:0;gap:6px}
 .assistant-chat-heading h2{font-size:11px;color:#6a82a1}.assistant-header-actions button{min-height:32px;height:32px}
 .assistant-page #chat-log{padding:10px 14px 24px;gap:25px}
 .chat-bubble--user{margin-inline-start:42px;max-width:calc(100% - 70px);padding:12px 15px;border-radius:15px;background:#e7effa}
 .chat-bubble--user:before{width:32px;height:32px;inset-inline-start:-43px;top:12px}
 .chat-bubble--assistant{margin-inline-end:56px;max-width:calc(100% - 56px);padding:15px 17px 28px;border-radius:16px;background:#fff;box-shadow:0 2px 6px #061e2c05}
 .chat-bubble--assistant:before{width:44px;height:44px;inset-inline-end:-56px;font-size:17px}
 .chat-bubble p,.chat-bubble ul{font-size:16px;line-height:1.65}
 .chat-bubble p+p,.chat-bubble p+ul,.chat-bubble ul+p{margin-top:15px}
 .chat-bubble--assistant .chat-timestamp{position:static;text-align:left;margin:8px 0 -17px;font-size:12px}
 .chat-bubble--user .chat-timestamp{font-size:11px;bottom:-23px}
 .assistant-followups{background:transparent;border-radius:0;margin:0 14px;padding:0 0 10px;gap:8px}
 .assistant-followups h3{display:none}
 .assistant-followups button{min-height:45px;border:1px solid #061e2c;border-radius:23px;padding:8px 28px;font-size:16px;line-height:1.55;background:#061e2c;color:#fff;box-shadow:0 2px 5px #061e2c12}
 .assistant-followups button:hover,.assistant-suggestions button:hover{background:#061e2c;color:#fff;border-color:#061e2c}
 .assistant-suggestions button{background:#061e2c;color:#fff;border-color:#061e2c}
 .assistant-followups button:after{display:none}
 .assistant-followups button.assistant-reference-only{display:block}
 .assistant-followups [data-open-matches]{display:none}
 .assistant-followups #assistant-free-typing{display:block}
 .assistant-page .assistant-conversation-tools{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:8px;padding:8px 10px 10px;background:#fff}
 .assistant-page.has-error .assistant-conversation-tools{display:grid}
 .assistant-page .assistant-conversation-tools button{justify-content:center;min-width:0;min-height:60px;padding:10px 8px;gap:7px;border:1px solid #061e2c;border-radius:10px;background:#061e2c;color:#fff;font-size:19px;font-weight:800;line-height:1.4;text-align:center;overflow-wrap:anywhere}
 .assistant-page .assistant-conversation-tools button:hover{background:#061e2c;border-color:#061e2c}
 .assistant-page .assistant-conversation-tools .lj-icon{width:24px;height:24px;flex-shrink:0}
 .assistant-page .assistant-conversation-tools #assistant-match-count{display:inline-grid;place-items:center;min-width:26px;min-height:26px;padding:0 4px;border-radius:14px;background:#fff;color:#061e2c;font-size:16px;font-weight:800;line-height:1.4;flex-shrink:0}
 #assistant-chat-compose{border-top:1px solid #dde7f4;background:#fff;padding-bottom:env(safe-area-inset-bottom,0px)}
 .assistant-page #assistant-chat-compose #chat-form{padding:9px 12px 6px}
 #assistant-chat-compose .chat-compose{min-height:50px;border:0;padding:0;gap:10px;box-shadow:none;background:transparent}
 .assistant-page #assistant-chat-compose #chat-message{min-height:80px;max-height:160px;padding:10px 14px;border:2px solid #315579!important;border-radius:14px;font-size:18px;font-weight:700;line-height:1.6;color:#061e2c;background:#eef4fc;box-shadow:0 3px 10px #061e2c12;overflow-y:auto}
 .assistant-page #assistant-chat-compose #chat-message::placeholder{font-size:19px;font-weight:700;line-height:1.5;color:#061e2c;opacity:1}
 .assistant-page #assistant-chat-compose #chat-message:focus{border-color:#061e2c!important;box-shadow:0 0 0 3px #061e2c20}
 #assistant-chat-compose .chat-voice-button{width:44px;height:44px}.assistant-page #assistant-chat-compose #chat-send{width:47px;height:47px;min-height:47px}
 .assistant-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 36px);padding:24px 20px calc(20px + env(safe-area-inset-bottom,0px));border-radius:23px 23px 0 0;margin:auto auto 0;border-color:#e2e9f3;box-shadow:0 -10px 60px #061e2c33;overscroll-behavior:contain}
 .assistant-dialog:before{content:'';display:block;width:40px;height:5px;margin:-11px auto 22px;background:#c4d3e4;border-radius:6px}
 #assistant-preferences-dialog .assistant-dialog-header{position:relative;display:block;text-align:center;margin-bottom:7px;padding-top:15px}
 #assistant-preferences-dialog .assistant-dialog-header .assistant-eyebrow{display:none}
 #assistant-preferences-dialog .assistant-dialog-header h2{font-size:24px;font-weight:800;line-height:1.4;margin:0}
 #assistant-preferences-dialog .assistant-dialog-header>button{position:absolute;left:-9px;top:-24px;border:0;background:none;color:#061e2c;font-size:32px;width:40px;height:40px}
 #assistant-preferences-dialog>p{text-align:center;font-size:15px;line-height:1.7;margin:0;color:#486481}
 #assistant-preferences-dialog #match-preferences{gap:24px;margin-top:24px}
 #match-preferences label{gap:7px;font-size:17px;font-weight:700;color:#061e2c}
 #match-preferences select{border-color:#b8c9df;border-radius:10px;min-height:52px;font-size:17px;padding:10px 13px}
 #assistant-preferences-dialog #match-preferences button{min-height:49px;margin-top:12px;border-radius:9px;font-size:17px;font-weight:700}
 #assistant-clear-preferences{font-size:15px;text-decoration:none;font-weight:600;margin-top:6px;min-height:44px}
 body.lawj-assistant-app.assistant-short-window .assistant-page{height:auto;min-height:var(--assistant-height)}
 .assistant-short-window .assistant-layout{overflow:visible;flex:none}
 .assistant-short-window .assistant-chat{height:auto;min-height:0}
 .assistant-short-window .assistant-chat-stage{overflow:visible;flex:none;min-height:150px}
 .assistant-short-window #assistant-mobile-compose,.assistant-short-window #assistant-chat-compose{position:static}
 body.lawj-assistant-keyboard{overflow:hidden;overscroll-behavior-y:none}
 body.lawj-assistant-keyboard .assistant-page{position:fixed;inset-inline:0;top:var(--assistant-top,0px);height:var(--assistant-height);min-height:0;z-index:1000}
 .assistant-page.has-keyboard #assistant-mobile-compose #chat-message,.assistant-page.has-keyboard #assistant-chat-compose #chat-message{max-height:112px}
}
@media(max-width:767px) and (max-height:780px){
 .assistant-opening-hero{height:232px;min-height:232px;padding-bottom:48px}
 .assistant-opening-body{padding-top:53px;padding-bottom:16px}
 .assistant-mobile-intro{margin-bottom:20px}.assistant-mobile-intro h2{font-size:24px}
 .assistant-topics button{min-height:83px}.assistant-topics .lj-icon{width:31px;height:31px}.assistant-mobile-filter{margin-top:19px}
}
/* Reuse the directory card. Only adapt its layout to the available chat width. */
.assistant-native-card-host{container-type:inline-size;width:100%;min-width:0;margin:0 0 14px;white-space:normal}
.assistant-native-card-host:last-child{margin-bottom:0}
.assistant-native-card-host .lawj-lawyer-row{box-sizing:border-box;width:100%;min-width:0}
.assistant-source-links--cards{min-width:0;width:100%}
.assistant-inline-matches{margin:0;padding:0;list-style:none}
.assistant-inline-matches>li{margin:0;padding:0;min-width:0}
.assistant-inline-matches .assistant-profile-card--compact{box-sizing:border-box;display:grid;grid-template-columns:92px 56px minmax(0,1fr) 64px;align-items:center;gap:10px;min-height:78px;width:100%;max-width:none;margin-inline:auto;padding:8px 10px;border:1px solid #d5e0ed;border-radius:12px;background:#fff;box-shadow:0 2px 8px #061e2c08;direction:rtl;text-decoration:none}
.assistant-inline-matches .assistant-profile-card--compact:hover{border-color:#9cb2cd;background:#f8fbff}
.assistant-profile-card--compact .assistant-profile-card-photo{grid-row:auto;width:56px;height:60px;border-radius:9px}
.assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-photo{display:flex;align-items:center;justify-content:center}
.assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-photo img{inline-size:100%;block-size:100%;min-inline-size:0;min-block-size:0;object-fit:contain;object-position:center}
.assistant-profile-card--compact .assistant-profile-card-copy{gap:3px;text-align:right;align-self:center}
.assistant-profile-card--compact .assistant-profile-card-name{font-size:18px;font-weight:800;line-height:1.4;overflow-wrap:anywhere;color:#061e2c}
.assistant-profile-card--compact .assistant-profile-card-meta{font-size:14px;line-height:1.5;color:#587696;overflow-wrap:anywhere}
.assistant-profile-card--compact .assistant-profile-card-action{position:relative;grid-column:auto;grid-row:auto;justify-self:stretch;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;margin:0;padding:8px 6px;border:1px solid #061e2c;border-radius:9px;background:#061e2c;color:#fff;font-size:15px;font-weight:700;line-height:1.4;white-space:nowrap;box-shadow:0 2px 5px #061e2c14}
.assistant-profile-card--compact .assistant-profile-card-action:after{content:'';position:absolute;inset-inline-end:-6px;top:50%;height:52px;border-inline-end:1px solid #e2eaf5;transform:translateY(-50%)}
.assistant-profile-card-emblem{display:grid;place-items:center;box-sizing:border-box;width:64px;min-height:52px;border-inline-start:1px solid #e2eaf5}
.assistant-profile-card-emblem-circle{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(140deg,#e5bc56,#c99a29);color:#fff}
.assistant-profile-card-emblem svg{width:27px;height:27px}
.assistant-page .chat-bubble--user{box-sizing:border-box;min-width:76px;padding:14px 18px;border:1px solid #c1d2e9;background:#e5eefb;color:#061e2c}
.assistant-page .chat-bubble--user p{font-size:18px;font-weight:600;line-height:1.65;color:#061e2c}
.chat-bubble .assistant-source-links{padding:0;margin:16px 0 0;list-style:none;white-space:normal}
.chat-bubble .assistant-source-links>li{padding:0;margin:0;min-width:0}
.assistant-native-card-host .lawj-lawyer-row-title a{color:inherit;text-decoration:none}
.assistant-native-card-host .lawj-lawyer-row .lawj-lawyer-row-button{color:#061e2c;text-decoration:none}
.assistant-native-card-host .lawj-lawyer-row-phone{color:#fff;text-decoration:none}
.assistant-native-card-host .lawj-profile-metrics>a{color:#245994}
.assistant-native-card-host .lawj-lawyer-row-specialty{margin:4px 0;white-space:normal}
.assistant-native-card-host .lawj-lawyer-row-bio{margin:0 0 5px;white-space:normal}
.assistant-native-card-host .lawj-lawyer-row-facts,.assistant-native-card-host .lawj-lawyer-row-tags{padding:0;list-style:none;white-space:normal}
.assistant-native-card-host .lawj-lawyer-row-facts{margin:5px 0 0}
.assistant-native-card-host .lawj-lawyer-row-facts>li{padding:0;margin:0}
@container (max-width:639px){
 .assistant-native-card-host .lawj-lawyer-row.lawj-lawyer-row--current{grid-template-columns:78px minmax(0,1fr);gap:14px;min-height:0;padding:18px}
 .assistant-native-card-host .lawj-lawyer-row-portrait{grid-column:1;grid-row:1}
 .assistant-native-card-host .lawj-lawyer-row-photo{width:78px;height:94px;align-self:start}
 .assistant-native-card-host .lawj-lawyer-row .lawj-lawyer-row-title h3{font-size:22px}
 .assistant-native-card-host .lawj-lawyer-row-bio,.assistant-native-card-host .lawj-lawyer-row-tags{display:none}
 .assistant-native-card-host .lawj-lawyer-row-actions{grid-column:1/-1}
 .assistant-native-card-host .lawj-lawyer-row-phone{order:-1;background:#061e2c;border-color:#061e2c}
}
@media(max-width:767px){
 .assistant-inline-matches .assistant-profile-card--compact{grid-template-columns:56px minmax(0,1fr);grid-template-areas:'photo copy' 'action action';gap:10px;padding:12px;min-height:0;border:2px solid #061e2c;border-radius:14px;box-shadow:0 3px 10px #061e2c10}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-photo{grid-area:photo;width:56px;height:64px;align-self:start;border:1px solid #dce6f3;border-radius:9px}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-copy{grid-area:copy;gap:6px;align-self:center}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-name{font-size:18px;line-height:1.45;font-weight:800}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-meta{font-size:14px;line-height:1.6;color:#365679}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-action{grid-area:action;width:100%;min-height:44px;padding:10px 12px;font-size:16px;line-height:1.4;border-radius:10px}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-action:after{display:none}
 .assistant-inline-matches .assistant-profile-card--compact .assistant-profile-card-emblem{display:none}
 .assistant-page .assistant-chat-header{min-height:64px;box-sizing:border-box;padding:8px 12px;gap:10px;background:#fff;border-bottom:1px solid #d7e2f0}
 .assistant-page .assistant-chat-heading h2{font-size:17px;font-weight:700;line-height:1.45;color:#061e2c}
 .assistant-page .assistant-header-actions{gap:8px;flex-shrink:0}
 .assistant-page .assistant-header-actions button{min-width:44px;width:44px;min-height:44px;height:auto;padding:9px;border:1px solid #c1d2e9;color:#061e2c;background:#f0f5fc}
 .assistant-page .assistant-header-actions .lj-icon{width:24px;height:24px}
 .assistant-page .assistant-header-actions #chat-reset{width:auto;min-width:0;min-height:44px;padding:9px 10px;gap:6px;font-size:15px;font-weight:800;background:#d4af37;border-color:#d4af37}
 .assistant-page #chat-reset>span:first-child{width:21px;height:21px;font-size:20px;flex-shrink:0}
 .assistant-page #chat-reset>span:last-child{display:inline}
 .assistant-page .assistant-header-actions #assistant-back{background:#061e2c;border-color:#061e2c;color:#fff}
 .assistant-page .assistant-header-actions #assistant-back:hover{background:#061e2c;border-color:#061e2c}
}
/* Keep attached cards on the same edges as their reply and below its metadata. */
.assistant-page{--assistant-reply-offset:53px;--assistant-reply-width:calc(100% - 52px)}
.assistant-page :is(.chat-bubble--has-matches,.assistant-inline-matches){box-sizing:border-box;align-self:flex-end;width:var(--assistant-reply-width);max-width:var(--assistant-reply-width);margin-inline-end:var(--assistant-reply-offset)}
.assistant-page .assistant-inline-matches{margin-block:24px 0;margin-inline-start:0;padding:0}
@media(min-width:768px) and (max-width:1100px){
 .assistant-page{--assistant-reply-offset:42px;--assistant-reply-width:calc(100% - 42px)}
 .assistant-page .assistant-inline-matches{margin-block-start:12px}
}
@media(min-width:1101px){.assistant-page{--assistant-reply-offset:76px;--assistant-reply-width:calc(100% - 122px)}}
@media(min-width:1101px) and (max-height:940px){.assistant-page{--assistant-reply-offset:62px;--assistant-reply-width:calc(100% - 100px)}}
@media(min-width:1101px){.assistant-page.is-intro-collapsed{--assistant-reply-width:82%}}
@media(max-width:767px){
 .assistant-page{--assistant-reply-offset:56px;--assistant-reply-width:calc(100% - 56px)}
 .assistant-page .assistant-inline-matches{margin-block-start:0}
}
@media(min-width:768px){body.lawj-assistant-app>.site-footer{display:block}}
/* Desktop: continue page scrolling after the chat edge, with aligned rounded panels. */
@media(min-width:768px){.assistant-page .assistant-chat-stage{overscroll-behavior-y:auto}}
@media(min-width:1101px){
 .assistant-page{padding-top:18px}
 .assistant-page .assistant-chat{margin-top:0;height:100%;border-radius:18px}
 .assistant-page .assistant-opening{border:1px solid #dbe5f2;border-radius:18px;background:linear-gradient(110deg,#fff,#f8fbff);overflow:hidden;box-shadow:0 5px 20px #061e2c09}
 .assistant-page .assistant-opening-hero{border-radius:0}
}

/* Keep the existing desktop utility row at one height while a request is pending. */
@media(min-width:768px){
 .assistant-page #assistant-chat-compose #chat-form{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:36px auto;gap:7px}
 .assistant-page #assistant-chat-compose #assistant-directory-toggle{grid-column:1;grid-row:1;justify-self:center;align-self:center;margin:0}
 .assistant-page #assistant-chat-compose .chat-compose{grid-column:1;grid-row:2}
 .assistant-page #assistant-chat-compose :is(.chat-compose-meta,#chat-status,.assistant-notice){grid-column:1}
 .assistant-page.is-busy #assistant-chat-compose #assistant-directory-toggle{visibility:hidden;pointer-events:none}
 .assistant-page.is-busy #assistant-chat-compose .chat-compose-meta{grid-row:1;position:relative;z-index:1;justify-self:end;align-self:center;width:auto;height:32px;margin:0;white-space:nowrap}
 .assistant-page.is-busy #assistant-chat-compose :is(#chat-count,#chat-voice-status){display:none}
 .assistant-page.is-busy #assistant-chat-compose #chat-status{grid-row:1;position:relative;align-self:center;width:auto;max-height:36px;margin:0;padding-inline-end:100px;overflow:auto;line-height:1.4}
}
