:root{--cherry-primary:#075DAA;--cherry-accent:#E52575}.auspath-cherry-shell,.auspath-cherry-shell *{box-sizing:border-box}.auspath-cherry-shell{font-family:Inter,Arial,sans-serif;color:#132238}.cherry-panel{width:min(430px,calc(100vw - 24px));height:680px;max-height:86vh;background:#fff;border:1px solid #dbe4ee;border-radius:24px;box-shadow:0 24px 80px rgba(18,43,70,.24);overflow:hidden;display:flex;flex-direction:column}.cherry-header{display:flex;align-items:center;gap:11px;padding:13px 15px;background:linear-gradient(135deg,var(--cherry-primary),#0c78cd);color:#fff}.cherry-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;background:#fff;border:3px solid rgba(255,255,255,.65);flex:0 0 48px}.cherry-avatar img{width:100%;height:100%;object-fit:cover}.cherry-avatar-art{position:relative;width:100%;height:100%;background:linear-gradient(#fbe3cd,#fff)}.cherry-avatar-art .hair{position:absolute;inset:2px 5px 10px;background:#291b19;border-radius:50% 50% 42% 42%}.cherry-avatar-art .face{position:absolute;inset:8px 6px auto;text-align:center;font-size:27px;z-index:2}.cherry-avatar-art .shirt{position:absolute;left:8px;right:8px;bottom:-2px;height:18px;border-radius:50% 50% 0 0;background:var(--cherry-primary);color:#fff;text-align:center;font:700 10px/18px Arial}.cherry-title{min-width:0;flex:1}.cherry-title strong{font-size:17px;display:block}.cherry-title small{display:block;opacity:.88;font-size:11px;margin-top:2px}.cherry-close{border:0;background:transparent;color:#fff;font-size:30px;cursor:pointer;line-height:1}.cherry-hero{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(90deg,#fff5f9,#f4f9ff);border-bottom:1px solid #e8edf3}.cherry-big-smile{font-size:30px}.cherry-hero strong{display:block;font-size:14px}.cherry-hero small{display:block;color:#627287;margin-top:3px}.cherry-quick-actions{display:flex;gap:7px;overflow-x:auto;padding:10px 12px;border-bottom:1px solid #e8edf3;scrollbar-width:thin}.cherry-quick-actions button{white-space:nowrap;border:1px solid #d6e1ec;background:#fff;border-radius:999px;padding:8px 10px;font-size:11px;color:#25415f;cursor:pointer}.cherry-quick-actions button:hover{border-color:var(--cherry-primary);color:var(--cherry-primary)}.cherry-quick-actions span{margin-right:4px}.cherry-messages{flex:1;overflow:auto;padding:15px;background:#f5f8fc}.cherry-message{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:11px}.cherry-message.user{align-items:flex-end}.cherry-bubble{max-width:87%;padding:11px 13px;border-radius:16px;white-space:pre-wrap;line-height:1.43;font-size:14px;background:#fff;border:1px solid #e0e7ef;border-bottom-left-radius:5px}.cherry-message.user .cherry-bubble{background:var(--cherry-primary);color:#fff;border-color:var(--cherry-primary);border-bottom-left-radius:16px;border-bottom-right-radius:5px}.cherry-cta{display:inline-block;margin-top:7px;background:var(--cherry-accent);color:#fff!important;text-decoration:none;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:800;box-shadow:0 5px 15px rgba(229,37,117,.18)}.cherry-typing{padding:5px 15px;color:#6a7889;font-size:11px;background:#f5f8fc}.cherry-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e3e9ef;background:#fff}.cherry-chat-form textarea{flex:1;resize:none;border:1px solid #cbd6e2;border-radius:12px;padding:10px;font:inherit;outline:none}.cherry-chat-form textarea:focus{border-color:var(--cherry-primary);box-shadow:0 0 0 3px rgba(7,93,170,.1)}.cherry-chat-form button,.cherry-lead-form button{border:0;background:var(--cherry-primary);color:#fff;border-radius:11px;padding:10px 15px;font-weight:800;cursor:pointer}.cherry-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 11px 9px;background:#fff}.cherry-toolbar button{border:0;background:none;color:var(--cherry-primary);font-size:11px;cursor:pointer;padding:3px}.cherry-credit-balance{font-size:11px;font-weight:800;color:var(--cherry-accent)}.cherry-lead-form{padding:12px;background:#fff;border-top:1px solid #e3e9ef;display:grid;gap:8px;max-height:320px;overflow:auto}.cherry-lead-form[hidden]{display:none}.cherry-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cherry-lead-form input,.cherry-lead-form textarea,.cherry-lead-form select{width:100%;border:1px solid #cbd6e2;border-radius:9px;padding:9px;font:inherit}.cherry-lead-status{color:#50647b}.cherry-footer{padding:7px 12px;background:#eef3f8;color:#6b7785;font-size:9px;line-height:1.3}.is-floating{position:fixed;bottom:20px;z-index:999999}.is-floating.pos-right{right:20px}.is-floating.pos-left{left:20px}.cherry-launcher{display:flex;align-items:center;gap:8px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--cherry-primary),#0b78cf);color:#fff;padding:11px 16px 11px 12px;box-shadow:0 14px 35px rgba(0,0,0,.23);cursor:pointer}.cherry-launcher span{font-size:25px}.cherry-launcher b{font-size:13px}.is-floating .cherry-panel{display:none;margin-bottom:10px}.is-floating.open .cherry-panel{display:flex}.is-floating.open .cherry-launcher{display:none}.is-inline .cherry-panel{width:100%;max-width:900px;height:720px;max-height:82vh;margin:20px auto;box-shadow:0 12px 40px rgba(18,43,70,.12)}@media(max-width:560px){.is-floating{left:7px!important;right:7px!important;bottom:7px}.is-floating .cherry-panel{width:100%;height:86vh;border-radius:18px}.cherry-grid{grid-template-columns:1fr}.cherry-launcher{margin-left:auto}.is-inline .cherry-panel{height:80vh;border-radius:16px}.cherry-hero{padding:9px 12px}.cherry-quick-actions{padding:8px}.cherry-message{font-size:13px}}
.cherry-bug-panel{padding:12px;background:#fff;border-top:1px solid #e3e9ef;max-height:430px;overflow:auto}.cherry-bug-panel[hidden]{display:none}.cherry-bug-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}.cherry-bug-heading small{color:#627287;line-height:1.35}.cherry-bug-form{display:grid;gap:8px}.cherry-bug-form input,.cherry-bug-form textarea,.cherry-bug-form select{width:100%;border:1px solid #cbd6e2;border-radius:9px;padding:9px;font:inherit}.cherry-bug-form button{border:0;background:var(--cherry-primary);color:#fff;border-radius:11px;padding:10px 15px;font-weight:800;cursor:pointer}.cherry-upload{display:grid;gap:5px;padding:9px;border:1px dashed #afc0d1;border-radius:10px;color:#50647b;font-size:11px}.cherry-bug-status{display:block;color:#34516e;line-height:1.4}.cherry-ticket-list{display:grid;gap:7px;margin-top:12px}.cherry-ticket-list>strong{font-size:12px}.cherry-ticket-list article{position:relative;border:1px solid #dbe4ee;border-radius:10px;padding:9px;background:#f7faff}.cherry-ticket-list article b{font-size:12px}.cherry-ticket-list article span{float:right;background:#e6f1fb;color:#075daa;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.cherry-ticket-list article small{display:block;color:#718093;margin-top:3px}.cherry-ticket-list article p{margin:6px 0 0;font-size:11px;line-height:1.35}.cherry-toolbar{flex-wrap:wrap}.cherry-toolbar .cherry-bug-toggle{font-weight:800;color:#b42559}
/* Cherry's friend handoff */
.cherry-panel{position:relative}
.cherry-friend-offer{display:block;margin:2px 0 13px 12px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--cherry-accent),#bd1e65);color:#fff;padding:10px 15px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(229,37,117,.22)}
.cherry-friend-panel{position:absolute;inset:0;z-index:20;background:#fff;display:flex;flex-direction:column}
.cherry-friend-panel[hidden]{display:none}
.cherry-friend-panel>header{display:flex;align-items:center;justify-content:space-between;padding:15px;background:linear-gradient(135deg,#7c3aed,#c026d3);color:#fff}
.cherry-friend-panel>header strong,.cherry-friend-panel>header small{display:block}.cherry-friend-panel>header small{opacity:.86;margin-top:3px;font-size:11px}
.cherry-friend-close{border:0;background:transparent;color:#fff;font-size:30px;cursor:pointer}
.cherry-friend-intro{padding:12px 14px;background:#faf5ff;border-bottom:1px solid #eadcf5;color:#553268;font-size:12px;line-height:1.45}
.cherry-friend-messages{flex:1;overflow:auto;padding:15px;background:#f8f5fb}
.cherry-friend-panel .cherry-message.user .cherry-bubble{background:#7c3aed;border-color:#7c3aed}
.cherry-friend-typing{padding:5px 15px;color:#70517e;font-size:11px;background:#f8f5fb}
.cherry-friend-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e8dff0}
.cherry-friend-form textarea{flex:1;resize:none;border:1px solid #d5c4df;border-radius:12px;padding:10px;font:inherit}
.cherry-friend-form button{border:0;background:#7c3aed;color:#fff;border-radius:11px;padding:10px 15px;font-weight:800;cursor:pointer}
.cherry-back-to-work{margin:0 10px 10px;border:1px solid #d9cbe3;background:#fff;color:#603872;border-radius:10px;padding:9px;font-weight:700;cursor:pointer}
/* Independent premium companion: Shang */
.cherry-meet-shang{margin:0 10px 8px;border:0;background:linear-gradient(135deg,#db2777,#9333ea);color:#fff;border-radius:10px;padding:10px;font-weight:800;cursor:pointer}
.cherry-shang-panel{position:absolute;inset:0;z-index:30;background:#fff;display:flex;flex-direction:column}
.cherry-shang-panel[hidden]{display:none}
.cherry-shang-panel>header{display:flex;align-items:center;justify-content:space-between;padding:15px;background:linear-gradient(135deg,#be185d,#6d28d9);color:#fff}
.cherry-shang-panel>header strong,.cherry-shang-panel>header small{display:block}.cherry-shang-panel>header small{opacity:.86;margin-top:3px;font-size:11px}
.cherry-shang-close{border:0;background:transparent;color:#fff;font-size:30px;cursor:pointer}
.cherry-shang-intro{padding:12px 14px;background:#fff1f7;border-bottom:1px solid #f1d5e3;color:#6f204b;font-size:12px;line-height:1.45}
.cherry-shang-messages{flex:1;overflow:auto;padding:15px;background:#fff7fb}
.cherry-shang-panel .cherry-message.user .cherry-bubble{background:#be185d;border-color:#be185d}
.cherry-shang-typing{padding:5px 15px;color:#7d4763;font-size:11px;background:#fff7fb}
.cherry-shang-form{display:flex;gap:8px;padding:10px;border-top:1px solid #f0dce7}
.cherry-shang-form textarea{flex:1;resize:none;border:1px solid #ddbed0;border-radius:12px;padding:10px;font:inherit}
.cherry-shang-form button{border:0;background:#be185d;color:#fff;border-radius:11px;padding:10px 15px;font-weight:800;cursor:pointer}
.cherry-back-to-mia,.cherry-shang-back-to-work{margin:0 10px 8px;border:1px solid #e2c7d5;background:#fff;color:#77264f;border-radius:10px;padding:9px;font-weight:700;cursor:pointer}

.cherry-agent-toggle{margin:0 16px 10px;width:calc(100% - 32px);border:1px solid var(--cherry-primary);background:#fff;color:var(--cherry-primary);border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}
.cherry-agent-directory{margin:0 16px 12px;display:grid;gap:8px;max-height:310px;overflow:auto}
.cherry-agent-directory[hidden]{display:none}
.cherry-agent-card{display:flex;align-items:flex-start;gap:10px;text-align:left;border:1px solid #dbe5ee;background:#fff;border-radius:14px;padding:11px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.cherry-agent-card:hover{border-color:var(--cherry-primary);transform:translateY(-1px)}
.cherry-agent-card>span{font-size:24px;line-height:1}
.cherry-agent-card div{display:flex;flex-direction:column;gap:3px}
.cherry-agent-card strong{font-size:14px;color:#17324d}
.cherry-agent-card small{font-size:12px;line-height:1.35;color:#627487}

.cherry-reality-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 14px 10px}
.cherry-reality-actions button{border:1px solid #d7e1ec;background:#fff;border-radius:10px;padding:9px 8px;font-size:12px;font-weight:700;cursor:pointer;text-align:left}
.cherry-reality-actions button:hover{background:#f3f7fb}
@media(max-width:480px){.cherry-reality-actions{grid-template-columns:1fr}}


/* v3.2 automatic specialist routing and readable conversation layout */
.cherry-panel{width:min(448px,calc(100vw - 24px));height:740px;max-height:92vh}
.cherry-hero{padding:9px 14px;flex:0 0 auto}
.cherry-big-smile{font-size:23px}
.cherry-hero strong{font-size:13px}.cherry-hero small{font-size:11px;line-height:1.35}
.cherry-specialist-status{display:flex;align-items:center;gap:8px;padding:8px 14px;background:#edf7ff;border-bottom:1px solid #d7eaf8;color:#075daa;font-size:12px;flex:0 0 auto}
.cherry-specialist-status[hidden]{display:none}
.cherry-route-spinner{width:13px;height:13px;border:2px solid #b8d7ee;border-top-color:var(--cherry-primary);border-radius:50%;animation:cherrySpin .75s linear infinite}
@keyframes cherrySpin{to{transform:rotate(360deg)}}
.cherry-quick-actions{padding:8px 11px;flex:0 0 auto}
.cherry-messages{min-height:300px;overscroll-behavior:contain;scroll-behavior:smooth;padding:16px 14px 20px}
.cherry-message{margin-bottom:14px}
.cherry-speaker{font-size:10px;font-weight:800;color:#597087;margin:0 0 4px 5px;letter-spacing:.02em}
.cherry-message.user .cherry-speaker{display:none}
.cherry-bubble{max-width:90%;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.cherry-typing{flex:0 0 auto;padding:5px 14px}
.cherry-chat-form{align-items:flex-end;flex:0 0 auto;padding:9px 10px}
.cherry-chat-form textarea{min-height:44px;max-height:104px;height:44px;overflow-y:auto;line-height:1.4}
.cherry-chat-form button{height:44px;min-width:62px;padding:9px 13px}
.cherry-toolbar{flex:0 0 auto;padding:0 10px 7px;gap:3px;justify-content:flex-start}
.cherry-toolbar .cherry-credit-balance{margin-left:auto}
.cherry-footer{flex:0 0 auto}
.cherry-agent-toggle,.cherry-agent-directory{display:none!important}
@media(max-width:560px){
 .is-floating .cherry-panel{height:92vh;max-height:92vh}
 .cherry-panel{border-radius:17px}
 .cherry-messages{min-height:220px}
 .cherry-hero small{display:block}
 .cherry-toolbar button{font-size:10px}
}

/* v3.2.1: keep the normal chat footer deliberately minimal. */
.cherry-toolbar-minimal{justify-content:flex-start;padding:2px 12px 9px;border-top:0}
.cherry-toolbar-minimal .cherry-clear{color:#66778a;font-size:10px;padding:4px 0}
.cherry-toolbar-minimal .cherry-clear:hover{color:var(--cherry-primary)}


/* v3.3: clean conversational UI and protected structured responses */
.cherry-quick-actions{display:none!important}
.cherry-messages{background:#f4f7fb;padding:18px 14px 22px}
.cherry-message{gap:0}
.cherry-speaker{font-size:10px;text-transform:none;color:#526b82;margin:0 0 5px 7px}
.cherry-bubble{box-shadow:0 2px 8px rgba(26,55,84,.05);white-space:pre-wrap}
.cherry-message.assistant .cherry-bubble{background:#fff;border-color:#dbe5ef}
.cherry-message.user .cherry-bubble{box-shadow:none}
.cherry-cta{display:inline-flex;align-items:center;justify-content:center;max-width:90%;margin:8px 0 0 4px;padding:10px 14px;border-radius:11px}
.cherry-hero{border-bottom:1px solid #e6edf4}
.cherry-toolbar-minimal{min-height:25px}

/* v3.5 Job Preparation Engine */
.cherry-job-tools{padding:9px 12px;border-top:1px solid #e7edf4;background:#f8fbff;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.cherry-job-tools[hidden]{display:none!important}
.cherry-job-tools button,.cherry-job-select{border:1px solid #c9d7e7;background:#fff;border-radius:9px;padding:7px 9px;font-size:12px;color:#17466f;cursor:pointer;max-width:100%}
.cherry-job-tools button:hover{border-color:var(--cherry-primary);color:var(--cherry-primary)}
.cherry-job-tools button:disabled{opacity:.55;cursor:wait}
.cherry-job-select{flex:1 1 210px}
.cherry-job-context{display:flex;align-items:center;gap:7px;background:#e8f4ff;border:1px solid #a7d2f5;border-radius:999px;padding:5px 8px 5px 10px;max-width:100%;font-size:12px;font-weight:700;color:#0b568f}
.cherry-job-context[hidden]{display:none!important}
.cherry-job-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.cherry-job-context button{border:0;background:transparent;padding:0 2px;font-size:17px;line-height:1;color:#0b568f}
.cherry-job-status{display:block;flex-basis:100%;font-size:11px;color:#61758a;line-height:1.35}

/* v3.5.2 account-link, upload feedback and composer fixes */
.cherry-panel{overflow:hidden}
.cherry-job-tools{flex:0 0 auto;background:#f4f8fc;padding:9px 10px 8px}
.cherry-job-status:empty{display:none}
.cherry-uploaded-file{display:flex;align-items:center;gap:7px;flex:1 1 100%;min-width:0;background:#e9f8ef;border:1px solid #a9dfbd;border-radius:10px;padding:7px 9px;color:#17643a;font-size:11px;font-weight:700}
.cherry-uploaded-file[hidden]{display:none!important}
.cherry-uploaded-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.cherry-uploaded-file-remove{border:0!important;background:transparent!important;padding:0 3px!important;color:#17643a!important;font-size:17px!important;line-height:1!important}
.cherry-chat-form{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;padding:9px 10px;background:#fff;border-top:1px solid #dfe7ef;min-height:58px;box-sizing:border-box}
.cherry-chat-form textarea{width:100%;min-width:0;min-height:42px;max-height:120px;box-sizing:border-box;background:#fff}
.cherry-chat-form button{align-self:end;min-height:42px;padding:9px 13px}
.cherry-toolbar-minimal{background:#fff;padding:1px 10px 8px;min-height:24px}

/* v3.6.1 contextual interview preparation */
.cherry-interview-offer{flex:1 1 100%;text-align:left;background:#e9f4ff!important;border-color:#9bc8ee!important;color:#0b568f!important;font-weight:800}
.cherry-interview-offer[hidden]{display:none!important}

/* v3.6.2 conversation controls, larger composer and reliable upload layout */
.cherry-panel{height:min(760px,92vh);max-height:92vh}
.cherry-header,.cherry-hero,.cherry-specialist-status,.cherry-typing,.cherry-job-tools,.cherry-chat-form,.cherry-toolbar{flex-shrink:0}
.cherry-messages{min-height:150px;flex:1 1 auto;overflow-y:auto}
.cherry-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;padding:10px;background:#fff}
.cherry-chat-form textarea{min-height:78px;max-height:180px;width:100%;box-sizing:border-box;resize:vertical;line-height:1.4}
.cherry-chat-form button{min-height:46px;align-self:end}
.cherry-toolbar-minimal{display:flex!important;min-height:34px;padding:3px 11px 10px;border-top:0;background:#fff;position:relative;z-index:3}
.cherry-toolbar-minimal .cherry-clear{display:inline-flex!important;font-weight:700;color:var(--cherry-primary);padding:5px 2px}
.cherry-job-tools{max-height:150px;overflow-y:auto}
.cherry-uploaded-file{flex-basis:100%}
@media (max-height:700px){
  .cherry-panel{height:94vh;max-height:94vh}
  .cherry-hero{padding-top:7px;padding-bottom:7px}
  .cherry-messages{min-height:110px}
  .cherry-chat-form textarea{min-height:64px}
}
