*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;background:#fff;color:#242b28;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{cursor:wait;opacity:.45}button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8bc6ae;outline-offset:3px}a{color:inherit;text-decoration:none}button:hover{filter:brightness(.94)}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:254px;background:#f5f6f8;border-right:1px solid #e9eceb;padding:27px 16px 17px;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;letter-spacing:-.8px;padding:0 6px}.brand-icon{background:#1d493b;color:#dcecbb;display:grid;place-items:center;width:35px;height:35px;border-radius:11px;font-size:24px;letter-spacing:-4px;padding-right:4px}.brand small{display:block;font-size:9px;letter-spacing:0;font-weight:400;color:#78827e;margin-top:4px}.new-case{margin:30px 0 14px;padding:13px 15px;text-align:left;background:white;box-shadow:0 1px 3px #172f2010;border:1px solid #e1e6e3;border-radius:11px;font-weight:600}.nav-item{display:block;padding:13px 14px;width:100%;border-radius:10px;text-align:left;margin:3px 0;color:#606b66;font-size:13px;word-spacing:4px}.nav-item.selected{background:#e8eeeb;color:#24513f;font-weight:600}.sidebar-note{padding:22px 14px;color:#858d89;font-size:10px}.small-label{font-size:9px;font-weight:600;letter-spacing:.8px;color:#7d8b84}.side-bottom{margin-top:auto}.account-card{padding:16px;background:#fff;border:1px solid #e3e9e6;border-radius:14px}.account-card strong{display:block;font-size:13px;margin:9px 0 7px}.account-card p{font-size:11px;line-height:1.6;color:#78847d;margin:0}.account-card button{background:#e8f0eb;border:1px solid #d7e4dc;border-radius:8px;width:100%;text-align:left;margin-top:13px;padding:10px 12px;font-size:12px;font-weight:600;color:#24533e}.telegram-link{display:block;margin:17px 13px 8px;font-size:11px;color:#657e70}.side-bottom>button{padding:8px 13px;font-size:10px;color:#858e89}.workspace{margin-left:254px;min-height:100dvh}.topbar{height:75px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #f1f3f2;position:sticky;top:0;background:#fffffff5;backdrop-filter:blur(14px);z-index:3}.assistant-title{display:flex;align-items:center;gap:11px;font-size:14px}.assistant-title strong{font-weight:600}.beta{font-size:9px;color:#7c877f;background:#f4f6f3;border:1px solid #e6ebe7;border-radius:6px;padding:5px 7px}.access-top{border:1px solid #e1e7e3;border-radius:9px;font-size:11px;padding:9px 12px;color:#4c6557}.mobile-brand,.mobile-nav{display:none}main{width:min(860px,100%);padding:0 32px;margin:auto}.welcome{text-align:center;padding-top:42px}.audience-tabs{display:inline-flex;padding:4px;border:1px solid #e4e9e5;border-radius:30px;background:#fafbfa;gap:3px}.audience-tabs button{padding:9px 18px;border-radius:24px;font-size:11px;color:#77827a}.audience-tabs button[aria-pressed=true]{background:white;color:#24543e;box-shadow:0 1px 4px #183a2120;font-weight:600}.hero-mark{margin:37px auto 19px;width:61px;height:61px;border-radius:20px;background:#eff5ee;display:grid;place-items:center;position:relative}.hero-mark svg{width:40px;fill:none;stroke:#41694c;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.hero-mark>span{position:absolute;right:-7px;top:-7px;background:#fff;border-radius:50%;padding:3px;font-size:23px;color:#79a466}h1{font-size:34px;font-weight:600;letter-spacing:-1.2px;line-height:1.2;margin:0 0 15px}.intro{font-size:14px;color:#7b847e;line-height:1.75;margin:0}.vehicle-types{display:flex;justify-content:center;align-items:center;gap:12px;margin:19px 0 0;font-size:10px;color:#8b948e}.vehicle-types i{width:3px;height:3px;background:#b4bdb6;border-radius:50%}.suggestions{display:flex;justify-content:center;gap:9px;margin:29px 0 14px}.suggestions button{border:1px solid #e3e8e4;background:white;border-radius:11px;padding:13px 14px;font-size:11px;color:#616d65;text-align:left}.welcome-hint{font-size:10px;color:#98a097;margin:0}.composer-wrap{margin:27px 0 0;background:#fff;position:relative;z-index:2}.composer{background:#fbfcfb;border:1px solid #dae2dc;border-radius:19px;padding:18px 15px 11px;box-shadow:0 5px 24px #18392306}.composer:focus-within{border-color:#9ebaa7}textarea{display:block;width:100%;resize:none;border:0;outline:none!important;background:transparent;color:#23352a;font-size:14px;line-height:1.55;padding:0 4px;min-height:51px;max-height:180px}textarea::placeholder{color:#a0aaa1}.composer-actions{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.attach-actions{display:flex;align-items:center;gap:5px}.attach-actions button{width:33px;height:33px;display:grid;place-items:center;border-radius:8px;color:#7c9181}.attach-actions button:hover{background:#eef2ee}.attach-actions svg{width:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.attach-actions span{font-size:10px;color:#9aa69c;margin-left:5px}#send{width:36px;height:36px;border-radius:12px;background:#264f3d;color:white;display:grid;place-items:center}#send svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.composer-foot{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#939d94;gap:10px;margin:9px 4px 0;line-height:1.5}.composer-foot button{font-size:10px;color:#6c8171;padding:4px 0}.notice{font-size:11px;color:#866f41;line-height:1.6;margin:7px 4px 0}.notice:empty{display:none}.next-actions{display:flex;justify-content:center;gap:29px;padding:32px 0 14px}.next-actions button{text-align:left;display:grid;grid-template-columns:28px 1fr;gap:4px 9px;padding:5px}.next-actions button>span{grid-row:1/3;font-size:22px;color:#9dad9a;align-self:center}.next-actions strong{font-size:11px;font-weight:500;color:#5f7064}.next-actions small{font-size:10px;color:#9da69d}footer{display:flex;justify-content:space-between;gap:10px;color:#a3ada4;font-size:8px;line-height:1.5;padding:24px 0}.messages{display:flex;flex-direction:column;gap:26px;padding-top:24px}.messages:empty{display:none}.bubble{line-height:1.8;font-size:14px;max-width:100%;overflow-wrap:anywhere}.bubble .text{white-space:pre-wrap}.bubble.user{align-self:flex-end;background:#f0f3f1;border-radius:17px 17px 3px 17px;padding:12px 17px;max-width:85%}.bubble.assistant{position:relative;padding:2px 0 2px 36px;align-self:stretch}.bubble.assistant:before{content:'а';display:grid;place-items:center;background:#e9f2e6;color:#49704c;border-radius:9px;width:24px;height:24px;position:absolute;left:0;top:5px;font-size:16px;font-weight:600}.bubble img{max-width:min(100%,420px);max-height:400px;border-radius:12px;display:block;margin:10px 0;object-fit:contain}.bubble audio{max-width:100%;margin-top:12px}.bubble a{color:#39744c;text-decoration:underline;text-underline-offset:3px}.file-link{display:block;margin-top:8px;font-size:12px}.choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.choices button,.choices a{border:1px solid #dce6dd;border-radius:9px;padding:9px 12px;font-size:11px;color:#527059;background:#f8fbf7;text-decoration:none}.thinking{display:flex;align-items:center;gap:5px;margin:20px 0 14px 36px;font-size:12px;color:#8b9a8c}.thinking>span{height:5px;width:5px;border-radius:50%;background:#9eafa0;animation:pulse 1.2s infinite}.thinking>span:nth-child(2){animation-delay:.2s}.thinking>span:nth-child(3){animation-delay:.4s}.thinking p{margin:0 0 0 6px}@keyframes pulse{50%{opacity:.35;transform:translateY(-2px)}}.mode{font-size:11px;background:#f3f5ee;border-radius:10px;padding:9px 12px;color:#617557}.mode button{color:#305d3c;text-decoration:underline}.file-preview{display:flex;align-items:center;justify-content:space-between;padding:10px 15px;background:#f0f5ec;border-radius:10px;font-size:12px;margin-bottom:8px}.file-preview button{font-size:21px}.recording{color:#c75550!important;background:#fff2f0!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}body.has-chat .welcome,body.has-chat .next-actions,body.has-chat footer{display:none}body.has-chat .composer-wrap{position:sticky;bottom:0;padding:12px 0 16px;margin-top:26px;background:linear-gradient(#ffffffdd,#fff 20px)}body.has-chat main{min-height:calc(100dvh - 75px);display:flex;flex-direction:column}body.has-chat .messages{flex:1}body.has-chat .thinking{flex:none}
dialog{border:1px solid #e0e7e1;border-radius:22px;width:min(980px,calc(100% - 34px));max-height:90dvh;padding:27px;background:#fff;color:#24352a;box-shadow:0 28px 120px #132a2540}dialog::backdrop{background:#10261e66;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dialog-head h2{font-size:26px;font-weight:600;margin:8px 0 0;letter-spacing:-.7px}.dialog-head>button{font-size:26px;line-height:1;border-radius:8px;background:#f3f5f2;padding:4px 10px}.access-intro{font-size:13px!important;color:#839080;line-height:1.7;margin:15px 0 21px!important}.identity-panel{display:flex;align-items:center;gap:20px;border:1px solid #dce6d9;border-radius:15px;background:#f6faf4;padding:20px}.identity-panel>div{flex:1}dialog h3{font-size:15px;font-weight:600;margin:6px 0 7px}dialog p{font-size:12px;line-height:1.65;color:#7b8b7b;margin:0}.primary-button{background:#28533e;color:white;border-radius:9px;padding:12px 16px;font-size:12px;white-space:nowrap}.link-panel{padding:17px;background:#f7f9f3;border-radius:12px;margin-top:12px}.link-panel strong{font-size:23px;letter-spacing:4px;color:#335d3e}.link-panel a{display:inline-block;margin:12px 0;color:#316341;text-decoration:underline}.link-panel button{margin-top:12px}.link-panel #cancel-account{padding:12px;font-size:12px}#access-notice{margin:10px 0;color:#8e7444}.profile-panel{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin:22px 0 25px}.profile-options{display:flex;gap:6px}.profile-options button{font-size:11px;border:1px solid #e2e7df;border-radius:9px;padding:10px 13px}.profile-options button[aria-pressed=true]{background:#eaf3e6;color:#365e3e;border-color:#cddcc7}.profile-panel label{font-size:12px;color:#809077}.profile-panel select{border:1px solid #dce3d7;border-radius:8px;background:#fafcf9;color:#617459;padding:9px;font-size:12px}.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.plan{border:1px solid #e2e7de;border-radius:15px;padding:19px;display:flex;flex-direction:column}.plan.featured{border-color:#a8c89a;background:#fafdf8}.plan-tag{font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:#77936a}.plan h3{font-size:21px;margin:12px 0 9px}.plan-price{font-size:18px;font-weight:600;letter-spacing:-.5px;color:#365238;margin:12px 0 4px}.plan-period{font-size:10px;color:#a0aa97}.plan ul{list-style:none;padding:0;font-size:11px;line-height:1.65;color:#76866e;flex:1;margin:20px 0}.plan li{position:relative;padding-left:17px;margin-bottom:10px}.plan li:before{content:'✓';position:absolute;left:0;color:#7da771}.plan button,.plan a{padding:11px 8px;border:1px solid #d4e1cc;border-radius:8px;text-align:center;background:#edf4e8;color:#48643e;font-size:11px}.reward-panel{display:flex;gap:16px;background:#f8f9f3;border-radius:12px;padding:18px;margin-top:20px}.reward-panel>span{font-size:26px;color:#aab783}.reward-panel button{font-size:11px;color:#648353;margin-top:10px;padding:0}.workshop-panel{border-top:1px solid #edf0e9;margin-top:21px;padding-top:18px;display:flex;align-items:center;gap:20px}.workshop-panel>div{flex:1}.workshop-panel button{font-size:12px;white-space:nowrap;color:#56794a}.access-fineprint{font-size:10px!important;text-align:center;margin-top:20px!important;color:#99a493!important}
@media(min-height:950px) and (min-width:1000px){.welcome{padding-top:75px}.hero-mark{margin-top:52px}.suggestions{margin-top:34px}.next-actions{padding-top:38px}}@media(max-width:1100px){.sidebar{width:225px}.brand{font-size:20px}.workspace{margin-left:225px}.topbar{padding:0 23px}main{padding:0 24px}h1{font-size:30px}.suggestions button{padding:12px 10px;font-size:10px}}@media(max-width:760px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:61px;padding:0 17px}.mobile-brand{display:block;font-weight:700;font-size:24px;color:#396444;letter-spacing:-4px;margin-right:5px}.assistant-title{font-size:12px;gap:7px}.beta{display:none}.access-top{font-size:10px;padding:8px 9px}.mobile-nav{display:flex;gap:10px;justify-content:space-between;padding:11px 18px 0}.mobile-nav button{font-size:10px;color:#89977e;padding:7px 0}main{padding:0 18px}.welcome{padding-top:20px}.audience-tabs button{font-size:10px;padding:8px 17px}.hero-mark{margin-top:30px;margin-bottom:17px;width:51px;height:51px;border-radius:17px}.hero-mark svg{width:34px}.hero-mark span{font-size:20px}h1{font-size:27px;letter-spacing:-.8px;margin-bottom:13px}.intro{font-size:12px;line-height:1.75;max-width:360px;margin:auto}.desktop-br{display:none}.vehicle-types{font-size:9px;gap:11px;margin-top:16px}.suggestions{gap:6px;margin:23px 0 13px}.suggestions button{font-size:10px;padding:11px 10px;line-height:1.4;flex:1}.welcome-hint{font-size:9px;line-height:1.6}.composer-wrap{margin-top:23px}.composer{padding:15px 12px 10px;border-radius:17px}textarea{font-size:16px;min-height:57px}.attach-actions span{font-size:9px}.composer-foot{font-size:8px}.composer-foot button{font-size:9px}.next-actions{gap:13px;justify-content:space-between;padding:25px 0 6px}.next-actions strong{font-size:10px}.next-actions small{font-size:9px}.next-actions button{grid-template-columns:19px 1fr;gap:4px 6px}.next-actions button>span{font-size:20px}footer{font-size:7px;padding:20px 0}.messages{gap:23px;padding-top:17px}.bubble{font-size:14px}.bubble.user{max-width:92%;padding:11px 14px}.bubble.assistant{padding-left:31px}.choices button,.choices a{font-size:11px}.thinking{margin-left:31px}body.has-chat main{min-height:calc(100dvh - 107px)}body.has-chat .composer-wrap{padding-bottom:calc(9px + env(safe-area-inset-bottom))}dialog{padding:20px 17px;width:calc(100% - 20px);border-radius:18px;max-height:92dvh}.dialog-head h2{font-size:22px}.identity-panel{flex-wrap:wrap;padding:16px;gap:13px}.identity-panel>div{flex-basis:100%}.identity-panel .primary-button{width:100%}.profile-panel{grid-template-columns:1fr;margin:21px 0}.profile-options button{flex:1}.plan-grid{grid-template-columns:1fr}.plan{padding:18px}.plan h3{font-size:20px}.plan ul{margin:16px 0 10px}.plan li{margin-bottom:7px}.workshop-panel{flex-direction:column;align-items:flex-start;gap:13px}.reward-panel{padding:15px;gap:11px}.access-fineprint{text-align:left}.primary-button{white-space:normal}.profile-panel select{font-size:14px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* Mobile capture and clearer, readable controls. */
.workspace{background:radial-gradient(ellipse at 65% 9%,#eef6f150,transparent 48%)}
.topbar{border-bottom-color:#e5ece7}.intro{color:#596d60}.vehicle-types{color:#667d6d}.welcome-hint{color:#697d70;font-size:12px}
.hero-mark{box-shadow:0 8px 25px #285a3e0b}.suggestions button{color:#3f5a48;border-color:#d6e3da;background:#ffffffdb;font-size:12px}
.composer{background:#fff;border-color:#adc7b6;box-shadow:0 8px 35px #264f3d0d}.composer:focus-within{box-shadow:0 0 0 3px #e4f0e9,0 8px 30px #264f3d0a}textarea::placeholder{color:#718779}
.attach-actions{gap:7px}.attach-actions button{width:40px;height:40px;color:#365d46;background:#f0f5f1}.attach-actions svg{width:21px;flex:none}
.attach-actions #camera{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;padding:0 11px;background:#e7f1e9;border:1px solid #d0e2d6}
.attach-actions #camera span{font-size:12px;color:#264f3d;font-weight:600;margin:0;white-space:nowrap}#send{width:44px;height:44px;border-radius:13px}
.file-preview{gap:12px;border:1px solid #d5e3d9;background:#f2f7f3;padding:10px 12px}.file-info{min-width:0;flex:1}.file-info span{display:block;overflow-wrap:anywhere;font-size:13px}.file-info small{display:block;margin-top:4px;color:#5e7666;font-size:11px}#file-thumbnail{width:64px;height:64px;object-fit:cover;border-radius:9px}.file-preview button{min-width:40px;min-height:40px}
.notice{font-size:13px;background:#fff8e9;color:#755d29;padding:10px 12px;border-radius:9px}.composer-foot{font-size:11px;color:#62786a}.composer-foot button{font-size:12px;color:#355e46}
.next-actions{gap:12px;padding-top:24px}.next-actions button{flex:1;max-width:350px;border:1px solid #dae5de;border-radius:12px;background:#f6faf7;padding:14px;gap:5px 9px}.next-actions strong{font-size:13px;font-weight:600;color:#345341}.next-actions small{font-size:12px;color:#6c8072}.next-actions button>span{color:#658e70}
@media(max-width:760px){.topbar{height:60px}.assistant-title{font-size:14px}.access-top{font-size:12px;min-height:38px}.mobile-nav{gap:7px;padding:7px 16px 0}.mobile-nav button{font-size:12px;min-height:36px;color:#4e6c57}.welcome{padding-top:14px}.audience-tabs button{font-size:12px;padding:9px 17px}.hero-mark{margin-top:20px;margin-bottom:14px;width:44px;height:44px}.hero-mark svg{width:32px}h1{font-size:28px}.intro{font-size:14px;line-height:1.6}.vehicle-types{font-size:11px;margin-top:13px}.suggestions{gap:7px;margin-top:19px}.suggestions button{font-size:12px;padding:12px 9px}.welcome-hint{font-size:11px}.composer-wrap{margin-top:18px}.composer{padding:14px 12px 10px}textarea{min-height:61px}.composer-foot{font-size:10px;align-items:flex-start}.composer-foot button{font-size:11px}.composer-foot>span{max-width:44%;text-align:right}.next-actions{padding-top:18px;gap:10px}.next-actions button{grid-template-columns:18px 1fr;padding:12px 10px;gap:5px 7px}.next-actions strong{font-size:12px;line-height:1.4}.next-actions small{font-size:11px;line-height:1.5}footer{font-size:10px;padding:18px 0}.bubble{font-size:16px}.notice{font-size:13px}body.has-chat .composer-wrap{box-shadow:0 -8px 20px #ffffffb0}}

/* A visible start/finish loop and the real trial balance. */
.trial-card{margin:18px auto 8px;padding:18px 20px;max-width:800px;border:1px solid #d4e3da;border-radius:18px;background:#f1f7f3;color:#29483b;font-size:13px;line-height:1.55}
.trial-card strong{display:block;font-size:14px;color:#193b2b}.trial-card p{margin:6px 0}.trial-card button{min-height:42px;margin-top:8px;padding:9px 14px;background:#254e3d;color:white;border:0;border-radius:10px;font:inherit;cursor:pointer}
.connection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 6px;padding:10px 13px;border-radius:10px;background:#f2f5f3;color:#516d5c;font-size:13px;line-height:1.5}
.connection[data-state="ready"]{background:transparent;padding:2px 0;color:#47775a;font-size:12px}.connection[data-state="ready"] span:before{content:'●';font-size:9px;margin-right:7px}.connection[data-state="error"]{background:#fff5de;color:#765519}.connection button{padding:9px 12px;border:1px solid currentColor;border-radius:8px;font-size:12px;flex-shrink:0}.task-status{font-size:13px;color:#46604f;margin:10px 0;line-height:1.5}body:not(.has-task) #finish-case{display:none}
@media(max-width:700px){.connection{flex-wrap:wrap;font-size:13px}.connection button{min-height:40px}.task-status{font-size:12px}}
body:not(.has-chat) #finish-case{display:none}.mobile-nav button{white-space:normal}.access-top{font-size:12px}
@media(max-width:700px){.trial-card{padding:14px 16px;margin-top:12px}.trial-card button{width:100%}.mobile-nav{gap:4px}.mobile-nav button{font-size:12px;padding:8px 5px}.assistant-title strong{font-size:15px}.access-top{padding:9px 10px}.topbar{gap:10px}}

/* Compact disclosure remains readable on phones. */
.service-notice{font-size:12px;line-height:1.5;color:var(--muted,#a7b6c8);margin:8px 4px;max-height:28vh;overflow:auto}.service-notice summary{cursor:pointer}.service-notice p{margin:10px 0}.service-notice a{color:inherit}#access-promo{font-size:14px;line-height:1.5;max-width:540px;margin:16px auto}#promo-action{padding:10px 16px;border-radius:14px}#referral-link{width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.file-preview{display:block}.file-preview-item{display:flex;align-items:center;gap:12px;min-width:0}.additional-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:8px}.additional-files:empty{display:none}.file-preview-item img{width:64px;height:64px;object-fit:cover;border-radius:9px}.file-preview-item button{margin-left:auto;min-width:44px;min-height:44px;font-size:22px}.message-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:10px}.message-attachments img{width:100%;height:auto;max-height:360px;margin:0}.message-attachments .file-link{grid-column:1/-1}.composer[data-drag=true]{border-color:#8bc6ae;background:#f1f8f3}.cabinet-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.cabinet-summary article{border:1px solid #d9e4dd;border-radius:13px;padding:14px;background:#f7faf8;display:flex;flex-direction:column;gap:6px}.cabinet-summary span,.cabinet-summary small{color:#65786c;font-size:11px}.cabinet-summary strong{font-size:15px;line-height:1.35}.cabinet-summary article[data-ready=false]{border-color:#d6a85d;background:#fff7e8}
@media(max-width:760px){.additional-files{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}.additional-files .file-preview-item{min-width:230px;scroll-snap-align:start}.message-attachments{grid-template-columns:repeat(2,minmax(0,1fr))}.cabinet-summary{grid-template-columns:1fr}.composer-wrap{max-height:calc(var(--app-height,100dvh) - 96px);overflow-y:auto;overscroll-behavior:contain}.chat-scroll{overscroll-behavior:contain;scroll-padding-bottom:180px}}
/* Multi-attachment composer: up to 10 images/PDFs in one diagnostic turn. */
.file-preview{flex-wrap:wrap}.file-list{display:flex;flex:1 0 100%;flex-wrap:wrap;gap:6px;padding-top:8px}.file-list:empty{display:none}.file-chip{display:flex;align-items:center;gap:6px;max-width:100%;padding:6px 8px;border:1px solid #d6e3da;border-radius:8px;background:#fff;font-size:11px;color:#496151}.file-chip span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip button{min-width:28px;min-height:28px;font-size:18px;line-height:1;border-radius:6px;background:#edf3ef;color:#496151}.bubble.user img+img{margin-top:6px}@media(max-width:760px){.file-chip{font-size:12px}.file-chip span{max-width:180px}}

/* ChatGPT-style response controls. */
.stop-generation{margin-top:10px;padding:7px 11px;border:1px solid #cdd9d1;border-radius:9px;background:#fff;color:#486052;font-size:11px}.stop-generation:disabled{opacity:.55}.message-tools{display:flex;gap:7px;margin-top:9px}.message-tools button{padding:6px 9px;border-radius:8px;color:#617469;background:#f5f8f6;border:1px solid #e0e7e2;font-size:10px}.message-tools button:hover{background:#edf3ef}@media(max-width:760px){.stop-generation{font-size:12px;min-height:38px}.message-tools button{font-size:11px;min-height:34px}}


/* Conversation history: grouped cases instead of a flat message list. */
.history-list{display:flex;flex-direction:column;gap:9px;margin-top:18px}
.conversation-card{width:100%;text-align:left;white-space:pre-line;padding:14px 15px;border:1px solid #dfe7e2;border-radius:12px;background:#fafcfb;color:#334b3d;line-height:1.5;font-size:12px}
.conversation-card.active{border-color:#a9c6b3;background:#eef6f1;color:#214b36}
.history-back{align-self:flex-start;padding:8px 0;color:#52705d;font-size:12px}
.history-conversation-title{margin:5px 0 2px;font-size:18px;color:#263d31}
.history-conversation-note{margin:0 0 8px!important;color:#6b7d72!important}
.history-resume{align-self:flex-start;padding:10px 13px;border-radius:9px;background:#28533e;color:#fff;font-size:12px;margin:5px 0 10px}
.history-entry{padding:11px 13px;border-radius:10px;white-space:pre-wrap;line-height:1.55;font-size:12px}
.history-entry.user{margin-left:12%;background:#f1f4f2}
.history-entry.assistant{margin-right:7%;background:#f8faf8;border:1px solid #e5ebe7}
@media(max-width:760px){.conversation-card{font-size:13px;padding:13px}.history-entry{font-size:13px}.history-entry.user{margin-left:7%}.history-entry.assistant{margin-right:3%}.history-resume{width:100%;min-height:42px}}

.conversation-card-meta,.conversation-card-preview{display:block;margin-top:4px}.conversation-card-meta{font-size:10px;color:#6b8072}.conversation-card-preview{font-size:11px;font-weight:400;color:#76877d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-card.active .conversation-card-meta{color:#4e755e}


/* Account dashboard: limits, cases, vehicles and future wallet state. */
.account-dashboard{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0 20px}
.account-dashboard article{min-height:104px;padding:14px;border:1px solid #dfe7e2;border-radius:13px;background:#f8fbf9;display:flex;flex-direction:column}
.account-dashboard article>span{font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:#718379}
.account-dashboard article>strong{font-size:20px;line-height:1.25;margin:9px 0 5px;color:#294c39}
.account-dashboard article>small{margin-top:auto;font-size:10px;line-height:1.4;color:#7d8c83}
.vehicle-section{margin:3px 0 20px;padding:16px;border:1px solid #e0e7e2;border-radius:14px;background:#fbfcfb}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.section-heading h3{margin:0}.section-heading span{font-size:10px;color:#7a8c81}
.vehicle-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.vehicle-card{padding:11px 12px;border-radius:10px;background:#f2f7f4;border:1px solid #dce7e0;min-width:0}
.vehicle-card strong,.vehicle-card small{display:block;overflow-wrap:anywhere}
.vehicle-card strong{font-size:12px;color:#31513f}.vehicle-card small{margin-top:4px;font-size:9px;line-height:1.4;color:#7a8a80}
@media(max-width:760px){.account-dashboard{grid-template-columns:repeat(2,1fr);gap:8px}.account-dashboard article{min-height:96px;padding:12px}.account-dashboard article>strong{font-size:18px}.vehicle-list{grid-template-columns:1fr}.vehicle-card strong{font-size:13px}.vehicle-card small{font-size:10px}}


.file-chip img{width:48px;height:48px;object-fit:cover;border-radius:6px}

/* Keep the composer usable with a batch of photos and the Android keyboard.
   Only the attachment strip scrolls; every file retains its remove button. */
.file-preview{display:flex;align-items:center;min-width:0}
.file-list{flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:4px;padding-bottom:4px}
.file-chip{flex:0 0 auto;max-width:min(320px,90%)}
.file-chip span{min-width:0;flex:1}
.file-chip img,.file-chip button{flex-shrink:0}

.referral-card{margin:20px 0;padding:20px;border:1px solid #385570;border-radius:20px;background:linear-gradient(135deg,#14263a,#0f1926)}.referral-card h3{margin-top:0}.referral-card a{color:#80c8ff}.referral-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.referral-card input{box-sizing:border-box;width:100%;min-width:0;margin:14px 0;padding:12px;border-radius:10px}.referral-card details{margin-top:20px}.referral-card summary{cursor:pointer}.referral-card p{overflow-wrap:anywhere}

.vehicle-section>summary{cursor:pointer;min-height:44px;list-style:disclosure-closed}.vehicle-section[open]>summary{list-style:disclosure-open;margin-bottom:16px}.vehicle-search-label{display:block;margin:12px 0 6px}#vehicle-search{box-sizing:border-box;width:100%;padding:12px;border:1px solid #60758b;border-radius:12px;font:inherit}#vehicle-search-status{font-size:14px;opacity:.8}#vehicle-more{margin-top:14px;width:100%}.vehicle-card[hidden]{display:none!important}[data-theme="light"] .referral-card{background:#f0f6ff;color:#152536}[data-theme="light"] .referral-card a{color:#17649f}

#vehicle-section>summary{display:flex;align-items:center;gap:10px}#vehicle-section>summary::after{content:"＋";margin-left:auto;color:var(--accent)}#vehicle-section[open]>summary::after{content:"−"}#vehicle-search{color:var(--text);background:var(--field)}.referral-actions [hidden]{display:none!important}

/* Compact capability carousel: one swipeable row above composer, never a column of ads. */
.capability-strip{display:none;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;
  padding:6px 12px 8px;max-width:100%;min-width:0;overscroll-behavior-inline:contain;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x}
.capability-strip::-webkit-scrollbar{display:none}
body[data-capability-cards="true"]:not(.has-chat) .capability-strip{display:flex}
body[data-capability-cards="true"] .start-scenarios{display:none}
.capability-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  flex:0 0 clamp(146px,39vw,188px);min-height:55px;min-width:0;scroll-snap-align:start;
  padding:9px 12px;border:1px solid #ccd9d2;border-radius:12px;background:rgba(255,255,255,.93);
  box-shadow:0 1px 6px #143f2410;text-align:left;white-space:normal}
.capability-card strong{display:block;font-size:12px;font-weight:650;line-height:1.25;color:#244533}
.capability-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
  font-size:10px;line-height:1.45;color:#64786b;margin-top:3px}
.capability-card:hover{border-color:#89b88c;background:#f4f9f5}
.capability-card:focus-visible,.capabilities-options button:focus-visible{outline:2px solid #248151;outline-offset:2px}
body:not([data-capability-cards="true"]) #open-capabilities{display:none}
.capabilities-dialog{max-width:min(95vw,600px);max-height:85dvh;overflow:auto;border:1px solid #d4ded8;border-radius:14px;padding:16px 18px}
.capabilities-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0}
.capabilities-options button{border:1px solid #d3ded7;border-radius:10px;padding:12px;text-align:left;background:#f7fbf8}
.capabilities-caveat{font-size:12px;color:#63786a}
@media(max-width:560px){.capability-strip{padding:5px 12px 7px;gap:7px}.capability-card{flex-basis:155px;min-height:52px;padding:8px 10px}
.capabilities-options{grid-template-columns:1fr}.capabilities-dialog{padding:12px}}

/* Scoped P1 conversation context selection (shown only on an unsent new chat). */
.context-selector{display:flex;gap:6px;align-items:center;min-width:0;padding:3px 12px 7px;flex-wrap:wrap;font-size:11px}
.context-selector[hidden],.context-indicator[hidden]{display:none!important}
.context-selector-label{font-size:11px;color:#5c7464;margin-right:2px}
.context-selector button{border:1px solid #ccd9d2;padding:5px 11px;border-radius:999px;font-size:11px;background:transparent;color:inherit;white-space:nowrap}
.context-selector button[aria-pressed="true"]{border-color:#5d9372;background:#e9f4e9;color:#1a4d30;font-weight:650}
.context-selector button:focus-visible{outline:2px solid #248151;outline-offset:2px}
.context-selector button:disabled{opacity:.5}
.context-indicator{margin:0;padding:3px 12px 7px;font-size:11px;color:#5b7261}

.context-selector button[hidden],#context-vehicle[hidden]{display:none!important}
#context-vehicle{min-width:155px;max-width:min(100%,340px);flex:1 1 210px;
  border:1px solid #ccd9d2;border-radius:9px;background:#f7faf8;color:#243e2f;
  min-height:33px;padding:5px 10px;font-size:12px}
#context-vehicle:focus-visible{outline:2px solid #248151;outline-offset:2px}
@media(max-width:480px){#context-vehicle{flex-basis:100%}}

.vehicle-outcomes{padding:0 12px 6px;font-size:12px}
.vehicle-outcomes[hidden],#vehicle-outcomes-content[hidden]{display:none!important}
.vehicle-outcomes>button{font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:8px;padding:5px 9px}
.vehicle-outcomes>button:focus-visible{outline:2px solid #248151;outline-offset:2px}
#vehicle-outcomes-content{max-height:25vh;overflow:auto;overflow-wrap:anywhere}
#vehicle-outcomes-content p{margin:6px 0}
