.cc-role-chat {
  --guide-frame: var(--rg-frame, #4a3d60);
  --guide-border: var(--rg-border, #837496);
  --guide-surface: var(--rg-surface, #171421);
  --guide-raised: var(--rg-raised, #201a2c);
  --guide-hover: var(--rg-hover, #2a2038);
  --guide-separator: var(--rg-separator, #423750);
  --guide-avatar: var(--rg-avatar, #392652);
  --guide-accent: var(--rg-accent, #c9a7fb);
  --guide-head: var(--rg-head, #26183b);
  --guide-head-text: var(--rg-head-text, #fcf8ff);
  --guide-head-hover: var(--rg-head-hover, #432b60);
  --guide-user: var(--rg-user, #302045);
  --guide-action: var(--rg-action, #dfc5ff);
  --guide-action-idle: var(--rg-action-idle, #211b2e);
  --guide-action-idle-text: var(--rg-action-idle-text, #e4d4f5);
  --guide-action-idle-border: var(--rg-action-idle-border, #9383aa);
  --guide-action-text: var(--rg-action-text, #211335);
  --guide-action-hover: var(--rg-action-hover, #eddbff);
  --guide-action-glow: var(--rg-action-glow, #c49aff70);
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  width: 448px;
  max-width: calc(100vw - 32px);
  height: min(584px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid var(--guide-frame);
  border-radius: 22px;
  background: var(--guide-surface);
  box-shadow: 0 22px 60px #08051165, 0 3px 14px #08051135;
}
html[data-theme="light"] .cc-role-chat {
  --guide-frame: var(--rg-frame, #ccc0dd);
  --guide-border: var(--rg-border, #8b789f);
  --guide-surface: var(--rg-surface, #fcfbfe);
  --guide-raised: var(--rg-raised, #f4f0fa);
  --guide-hover: var(--rg-hover, #eae2f5);
  --guide-separator: var(--rg-separator, #d8cde5);
  --guide-avatar: var(--rg-avatar, #e9dcf9);
  --guide-accent: var(--rg-accent, #593483);
  --guide-head: var(--rg-head, #2c1944);
  --guide-head-hover: var(--rg-head-hover, #49315f);
  --guide-user: var(--rg-user, #ebe1f7);
  --guide-action: var(--rg-action, #492467);
  --guide-action-idle: var(--rg-action-idle, #f5edf9);
  --guide-action-idle-text: var(--rg-action-idle-text, #472860);
  --guide-action-idle-border: var(--rg-action-idle-border, #85689a);
  --guide-action-text: var(--rg-action-text, #ffffff);
  --guide-action-hover: var(--rg-action-hover, #62328a);
  --guide-action-glow: var(--rg-action-glow, #8344b44a);
  box-shadow: 0 22px 60px #311c4e35, 0 3px 14px #311c4e22;
}
.cc-role-chat:is(.cc-chat-expanded,.copilot-expanded) { inset: 20px; width: auto; max-width: none; height: auto; }
.cc-home-chat-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 62px;
  padding: 7px 12px 7px 22px;
  background: var(--guide-head);
  color: var(--guide-head-text);
}
.cc-home-chat-identity { flex: 1; min-width: 0; }
.cc-home-chat-identity strong { display: block; font-size: .9375rem; font-weight: 690; line-height: 1.35; letter-spacing: -.012em; }
.cc-home-chat-head button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
}
.cc-home-chat-head button:hover { background: var(--guide-head-hover); }
.cc-home-chat-head button:focus-visible { outline-color: #e3cbff; outline-offset: -3px; }
.cc-home-chat-head svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.cc-home-chat-messages { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 22px 18px; scrollbar-width: thin; touch-action: pan-y; }
.cc-home-chat-messages:focus-visible { outline-offset: -4px; }
.cc-home-chat-welcome,.cc-home-chat-log { max-width: 648px; margin-inline: auto; }
.cc-home-chat-greeting { display: grid; min-height: 100%; align-content: center; justify-items: center; gap: 9px; text-align: center; }
.cc-home-chat-greeting h2 { margin: 0; color: var(--chat-text); font-size: 1.625rem; line-height: 1.2; letter-spacing: -.03em; font-weight: 740; }
.cc-home-chat-greeting button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--guide-accent); text-decoration: underline; text-underline-offset: 4px; }
.cc-guide-wave { display: block; width: min(230px, 66vw, 34dvh); aspect-ratio: 1.13; border-radius: 48%; background: radial-gradient(ellipse, var(--guide-avatar), transparent 72%); }
.cc-home-chat .cc-guide-wave-svg { display: block; width: 100%; height: 100%; overflow: visible; stroke: none; }
.cc-guide-wave-arm { transform-origin: 547px 326px; animation: cc-guide-wave 1.16s var(--cc-ease-standard) both; }
@keyframes cc-guide-wave {
  0%, 100% { transform: rotate(0); }
  23%, 63% { transform: rotate(-17deg); }
  43%, 82% { transform: rotate(13deg); }
}
.cc-home-chat-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
  min-height: 108px;
  margin-bottom: 23px;
  padding: 14px 15px 14px 17px;
  border-radius: 15px;
  background: var(--guide-raised);
}
.cc-home-chat-intro h2 { margin: 0; color: var(--chat-text); font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 750; line-height: 1.16; letter-spacing: -.035em; }
.cc-home-chat-intro p { margin: 6px 0 0; color: var(--chat-muted); font-size: .875rem; line-height: 1.5; }
.cc-home-chat-portrait,.cc-home-chat-reply-avatar { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--guide-avatar); }
.cc-home-chat-portrait .cc-guide-robot-svg,.cc-home-chat-reply-avatar .cc-guide-robot-svg { display: block; width: 100%; height: 100%; }
.cc-home-chat-suggestions h3 { margin: 0 0 10px; color: var(--chat-text); font-size: .8125rem; font-weight: 720; line-height: 1.4; }
.cc-home-chat-prompts { display: grid; overflow: hidden; border: 1px solid var(--guide-separator); border-radius: 15px; }
.cc-role-chat .cc-home-chat-prompts button {
  display: block;
  min-height: 52px;
  padding: 12px 15px;
  text-align: left;
  color: var(--chat-text);
  background: transparent;
  border: 0;
  line-height: 1.4;
  font-size: .9375rem;
  font-weight: 620;
}
.cc-role-chat .cc-home-chat-prompts button+button { border-top: 1px solid var(--guide-separator); }
.cc-role-chat .cc-home-chat-prompts button:hover,.cc-role-chat .cc-home-chat-prompts button:active { background: var(--guide-hover); color: var(--guide-accent); }
.cc-home-chat-prompts button:focus-visible { outline-offset: -4px; }
.cc-home-chat-announcer { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cc-home-chat-turn+.cc-home-chat-turn { margin-top: 23px; }
.cc-home-chat-question {
  width: fit-content;
  max-width: 87%;
  margin: 0 0 14px auto;
  padding: 10px 15px;
  border-radius: 15px 15px 4px 15px;
  background: var(--guide-user);
  color: var(--chat-text);
  font-size: .9375rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cc-home-chat-reply { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: end; gap: 8px; }
.cc-home-chat-reply-avatar { margin-bottom: 3px; }
.cc-home-chat-answer {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--guide-separator);
  border-radius: 16px 16px 16px 4px;
  background: var(--guide-raised);
}
.cc-home-chat-answer-copy { padding: 13px 15px; }
.cc-home-chat-answer-copy p { font-size: .9375rem; line-height: 1.62; margin: 0; }
.cc-home-chat-answer-copy>div+div { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--guide-separator); }
.cc-home-chat-answer-actions { padding: 1px 11px; border-top: 1px solid var(--guide-separator); }
.cc-home-chat-answer-actions button,.cc-home-chat-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  text-align: left;
  color: var(--guide-accent);
  font-size: .8125rem;
  font-weight: 690;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cc-home-chat-answer-actions button { padding: 4px; border: 0; border-radius: 7px; background: transparent; }
.cc-home-chat-answer-actions button:hover { background: var(--guide-hover); }
.cc-home-chat-answer-actions button:focus-visible { outline-offset: -2px; }
.cc-home-chat-form { flex: none; padding: 13px 18px 3px; border-top: 1px solid var(--guide-separator); background: var(--guide-surface); }
.cc-home-chat-input-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cc-home-chat-form>div { display: flex; align-items: center; gap: 7px; max-width: 648px; margin-inline: auto; padding: 4px; border: 1px solid var(--guide-border); border-radius: 14px; background: var(--guide-raised); }
.cc-home-chat-form textarea { flex: 1; width: 0; min-width: 0; height: 44px; resize: none; background: transparent; border: 0; border-radius: 8px; color: var(--chat-text); padding: 10px; font-size: 16px; line-height: 1.5; overscroll-behavior: contain; }
.cc-home-chat-form textarea:focus-visible { outline-offset: -2px; }
.cc-home-chat-form textarea::placeholder { color: var(--chat-muted); opacity: 1; font-size: .875rem; }
.cc-home-chat-form button { min-height: 44px; flex: none; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; background: var(--guide-action); color: var(--guide-action-text); font-size: .875rem; font-weight: 720; transition: background-color 160ms ease, box-shadow 160ms ease; }
.cc-home-chat-form button:disabled { color: var(--guide-action-idle-text); background: var(--guide-action-idle); border: 1px solid var(--guide-action-idle-border); opacity: 1; cursor: default; }
@media (hover: hover) {
 .cc-home-chat-form button:hover { background: var(--guide-action-hover); color: var(--guide-action-text); box-shadow: 0 0 14px var(--guide-action-glow); }
 .cc-home-chat-form button:disabled:hover { background: var(--guide-hover); color: var(--guide-action-idle-text); box-shadow: 0 0 11px var(--guide-action-glow); }
}
.cc-home-chat-form button:focus-visible { background: var(--guide-action-hover); color: var(--guide-action-text); box-shadow: 0 0 14px var(--guide-action-glow); }
.cc-home-chat-footer { flex: none; display: flex; justify-content: center; padding: 0 18px max(6px, env(safe-area-inset-bottom)); background: var(--guide-surface); }
.cc-home-chat-footer button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--guide-accent); font-size: .8125rem; font-weight: 690; }
.cc-home-chat-footer button:hover { background: var(--guide-hover); }
@media (max-width:640px), (max-width:1000px) and (max-height:500px) {
  .cc-home-chat-launch { right: 6px; }
  .cc-home-chat,.cc-role-chat:is(.cc-chat-expanded,.copilot-expanded) { inset: var(--guide-viewport-top, 0px) 0 auto; width: 100%; max-width: none; height: var(--guide-viewport-height, 100dvh); border: 0; border-radius: 0; }
  .cc-home-chat-head { padding-top: max(7px, env(safe-area-inset-top)); }
  .cc-home-chat-head .cc-home-chat-expand { display: none; }
  .cc-home-chat-messages { padding: 17px 15px; }
  .cc-home-chat-form { padding-inline: 13px; }
}
@media (max-width:365px) {
  .cc-home-chat-intro { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; padding-inline: 12px; }
}

/* Legacy application events stay on their original controls. Only their chat skin changes. */
.cc-role-chat.cc-role-chat {
  --role-color: var(--role-dark);
  --chat-text: #f7f3fb;
  --chat-muted: #c9c1d2;
  --chat-purple: var(--guide-accent);
  --rg-accent: color-mix(in srgb,var(--role-color) 84%,white);
  --rg-head: color-mix(in srgb,var(--role-light) 35%,#15121c);
  --rg-head-hover: color-mix(in srgb,var(--role-light) 53%,#29242f);
  --rg-frame: color-mix(in srgb,var(--role-color) 28%,#2a2530);
  --rg-border: color-mix(in srgb,var(--role-color) 38%,#776d80);
  --rg-surface: color-mix(in srgb,var(--role-color) 4%,#13111a);
  --rg-raised: color-mix(in srgb,var(--role-color) 8%,#191620);
  --rg-hover: color-mix(in srgb,var(--role-color) 17%,#191620);
  --rg-separator: color-mix(in srgb,var(--role-color) 22%,#26222d);
  --rg-avatar: color-mix(in srgb,var(--role-color) 24%,#25212c);
  --rg-user: color-mix(in srgb,var(--role-color) 20%,#211928);
  --rg-action: color-mix(in srgb,var(--role-color) 67%,white);
  --rg-action-idle: var(--rg-raised);
  --rg-action-idle-text: var(--rg-accent);
  --rg-action-idle-border: var(--rg-border);
  --rg-action-hover: color-mix(in srgb,var(--role-color) 45%,white);
  --rg-action-glow: color-mix(in srgb,var(--role-color) 48%,transparent);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--chat-text);
  box-sizing: border-box;
  z-index: 1500;
}
html[data-theme="light"] .cc-role-chat.cc-role-chat {
  --role-color: var(--role-light);
  --chat-text: #221a2b;
  --chat-muted: #554961;
  --rg-accent: color-mix(in srgb,var(--role-color) 79%,#15121c);
  --rg-frame: color-mix(in srgb,var(--role-color) 27%,#e1dce7);
  --rg-border: color-mix(in srgb,var(--role-color) 52%,#ada1b8);
  --rg-surface: color-mix(in srgb,var(--role-color) 2%,#fff);
  --rg-raised: color-mix(in srgb,var(--role-color) 7%,#fcfbfe);
  --rg-hover: color-mix(in srgb,var(--role-color) 15%,#fcfbfe);
  --rg-separator: color-mix(in srgb,var(--role-color) 17%,#ece7f1);
  --rg-avatar: color-mix(in srgb,var(--role-color) 17%,#fcfbfe);
  --rg-user: color-mix(in srgb,var(--role-color) 15%,#fcfbfe);
  --rg-action: color-mix(in srgb,var(--role-color) 75%,#23132b);
  --rg-action-hover: color-mix(in srgb,var(--role-color) 88%,#23132b);
}
.cc-role-chat.cc-role-chat:not([hidden],[inert],[aria-hidden="true"]) {
  display:flex!important;position:fixed!important;inset:auto max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) auto!important;
  transform:none!important; margin:0!important; width:448px!important;max-width:calc(100vw - 32px)!important;
  height:min(584px,calc(100dvh - 40px))!important;max-height:none!important; flex-direction:column!important;gap:0!important;
  padding:0!important; border:1px solid var(--guide-frame)!important;border-radius:22px!important;
  background:var(--guide-surface)!important;overflow:hidden!important;box-shadow:0 22px 60px #08051165,0 3px 14px #08051135!important;
}
.cc-role-chat.cc-role-chat:is([hidden],[inert],[aria-hidden="true"]) {display:none!important}
.cc-role-chat.cc-role-chat:is(.cc-chat-expanded,.copilot-expanded):not([hidden],[inert],[aria-hidden="true"]){inset:20px!important;width:auto!important;max-width:none!important;height:auto!important;}
.cc-role-chat *, .cc-role-chat *::before, .cc-role-chat *::after {box-sizing:border-box;}
.cc-role-chat :where(button,input,textarea){font-family:inherit;}
.cc-role-chat :focus-visible{outline:3px solid var(--guide-accent);outline-offset:-3px}
.cc-role-chat.cc-role-chat .cc-home-chat-head {
  order:0; min-height:62px; padding:7px 12px 7px 22px!important; gap:5px!important;
  border:0!important; margin:0!important; display:flex!important; align-items:center; background:var(--guide-head)!important; color:var(--guide-head-text)!important;
}
.cc-role-chat.cc-role-chat .cc-home-chat-head>:not(button):not(.copilot-tools) {flex:1; min-width:0; display:flex; align-items:center; gap:0;}
.cc-role-chat.cc-role-chat .cc-home-chat-head .copilot-tools{display:flex;gap:5px}
.cc-role-chat.cc-role-chat .cc-home-chat-head :is(small, img, .assistant-orb, .assistant-bot-frame, .ai-bot-frame, .copilot-identity>span, .drawer-identity>span){display:none!important;}
.cc-role-chat.cc-role-chat .cc-home-chat-head :is(strong,b) {font-size:.9375rem;font-weight:690;letter-spacing:-.012em;line-height:1.35;color:inherit!important;}
.cc-role-chat.cc-role-chat .cc-home-chat-head button{
  width:44px!important;height:44px!important;min-height:44px!important; padding:0!important;
  border-radius:10px!important;background:transparent!important;color:inherit!important;border:0!important;
  box-shadow:none!important;transform:none!important;font-size:23px;font-weight:400;line-height:1;position:static!important;
}
.cc-role-chat.cc-role-chat .cc-home-chat-head button:hover{background:var(--guide-head-hover)!important}
.cc-role-chat.cc-role-chat .cc-home-chat-head button:not([data-cc-chat-expand],[data-native-chat-expand]){
  font-size:0!important; position:relative!important;
}
.cc-role-chat.cc-role-chat .cc-home-chat-head button:not([data-cc-chat-expand],[data-native-chat-expand])>*{display:none!important}
.cc-role-chat.cc-role-chat .cc-home-chat-head button:not([data-cc-chat-expand],[data-native-chat-expand])::before,
.cc-role-chat.cc-role-chat .cc-home-chat-head button:not([data-cc-chat-expand],[data-native-chat-expand])::after{
  content:"";position:absolute;left:calc(50% - 7px);top:calc(50% - 1px);width:14px;height:1.65px;background:currentColor;transform:rotate(45deg)
}
.cc-role-chat.cc-role-chat .cc-home-chat-head button:not([data-cc-chat-expand],[data-native-chat-expand])::after{transform:rotate(-45deg)}
.cc-role-chat .cc-home-chat-portrait img,.cc-role-chat .cc-home-chat-reply-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.cc-role-chat .cc-home-chat-prompts button{width:100%;box-shadow:none;border-radius:0;transform:none;font-family:inherit;white-space:normal;overflow-wrap:anywhere}
.cc-role-chat .cc-home-chat-link{background:none;border:0;box-shadow:none;padding:4px 8px 4px 0;cursor:pointer;}
.cc-role-chat .cc-home-chat-answer-actions button{box-shadow:none;transform:none;}
.cc-role-chat .cc-home-chat-messages{order:1;}
.cc-role-chat .cc-role-chat-hidden,.cc-role-chat :is(.copilot-support,.assistant-support,.cc-chat-feedback){display:none!important}
.cc-role-chat.cc-role-chat .cc-role-chat-native-body {display:contents!important}
.cc-role-chat.cc-role-chat .cc-role-chat-native-log {display:none!important}
.cc-role-chat[data-guide-mode="native"].cc-role-chat .cc-role-chat-native-log {
  display:block!important;order:1;flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;
  margin:0!important;padding:22px!important;background:transparent!important;border:0!important;border-radius:0!important;
  color:var(--chat-text)!important;font-size:.9375rem!important;line-height:1.62!important;
}
.cc-role-chat[data-guide-mode="native"] .cc-role-chat-main {order:2; flex:none; padding:0 22px;}
.cc-role-chat .cc-role-chat-native-log :is(.chat-message,.message.ai,.cc-message,.assistant-message.reply,.assistant-messages>*,.drawer-thread>*,.chat-messages>*){
  padding:10px 15px;max-width:min(87%,648px);width:fit-content;margin:0 0 14px;background:var(--guide-raised);color:var(--chat-text);
  border:1px solid var(--guide-separator);border-radius:16px 16px 16px 4px; font-size:.9375rem;line-height:1.55;overflow-wrap:anywhere;
}
.cc-role-chat .cc-role-chat-native-log :is(.user,.cc-message-user){margin-left:auto;background:var(--guide-user);border-radius:15px 15px 4px 15px;}
.cc-role-chat .cc-role-chat-native-form {
  order:3; flex:none!important; display:flex!important;align-items:center;gap:7px!important;
  width:auto!important;max-width:none!important;margin:13px 18px 3px!important;padding:4px!important;
  border:1px solid var(--guide-border)!important;border-radius:14px!important;background:var(--guide-raised)!important;
}
.cc-role-chat .cc-role-chat-native-form :is(.chat-input-wrap,.chat-tools,.copilot-composer>div){display:contents!important}
.cc-role-chat .cc-role-chat-native-form :is(input,textarea) {
  flex:1!important;min-width:0;width:0!important;height:44px!important;resize:none;
  background:transparent!important;border:0!important;border-radius:8px!important; padding:10px!important;
  color:var(--chat-text)!important;font:400 16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.cc-role-chat .cc-role-chat-native-form :is(input,textarea)::placeholder{color:var(--chat-muted)!important;opacity:1;font-size:.875rem;}
.cc-role-chat .cc-role-chat-native-form .cc-role-chat-send{
  display:grid!important;place-items:center;position:static!important;flex:none;width:auto!important;height:44px!important;
  padding:0 15px!important;border:1px solid transparent!important;border-radius:10px!important;background:var(--guide-action)!important;
  color:var(--guide-action-text)!important; font-size:0!important;font-family:inherit;box-shadow:none!important;transform:none!important;
  transition:background-color 160ms ease,box-shadow 160ms ease;cursor:pointer;
}
.cc-role-chat .cc-role-chat-send>*{display:none!important;}
.cc-role-chat .cc-role-chat-send::after{content:attr(data-chat-label);font-size:.875rem;font-weight:720;line-height:1.2}
.cc-role-chat .cc-role-chat-native-form .cc-role-chat-send:is(:disabled,[data-idle="true"]){
  color:var(--guide-action-idle-text)!important;background:var(--guide-action-idle)!important;border-color:var(--guide-action-idle-border)!important;opacity:1!important;cursor:default
}
@media(hover:hover){
  .cc-role-chat .cc-role-chat-native-form .cc-role-chat-send:hover{background:var(--guide-action-hover)!important;box-shadow:0 0 14px var(--guide-action-glow)!important}
  .cc-role-chat .cc-role-chat-native-form .cc-role-chat-send:is(:disabled,[data-idle="true"]):hover{background:var(--guide-hover)!important;box-shadow:0 0 11px var(--guide-action-glow)!important}
}
.cc-role-chat .cc-home-chat-footer{order:4;}
.cc-role-chat .cc-home-chat-footer button{font-family:inherit;box-shadow:none;transform:none;cursor:pointer}
@media(max-width:640px),(max-width:1000px) and (max-height:500px){
  .cc-role-chat.cc-role-chat:not([hidden],[inert],[aria-hidden="true"]){
    inset:var(--guide-viewport-top,0px) 0 auto!important;width:100%!important;max-width:none!important;
    height:var(--guide-viewport-height,100dvh)!important;border:0!important;border-radius:0!important;
  }
  .cc-role-chat.cc-role-chat .cc-home-chat-head button:is([data-cc-chat-expand],[data-native-chat-expand]){display:none!important}
  .cc-role-chat .cc-role-chat-native-form{margin-inline:13px!important}
}
@media(prefers-reduced-motion:reduce){.cc-role-chat *{transition:none!important;scroll-behavior:auto!important}}

html[data-theme="light"] .cc-role-chat.cc-role-chat:not([hidden],[inert],[aria-hidden="true"]){
  box-shadow:0 22px 60px #311c4e35,0 3px 14px #311c4e22!important;
}
.cc-role-chat.cc-role-chat .cc-home-chat-head button:is([data-cc-chat-expand],[data-native-chat-expand]) svg{
  stroke:currentColor;fill:none;width:19px;height:19px;
}

/* Keep the same type stack even when a legacy Clean theme overrides all descendants. */
html :is(#copilotPanel,#assistantDock,#salesCopilotPanel,#assistantDrawer,#aiPanel,#copilot-panel).cc-role-chat,
html :is(#copilotPanel,#assistantDock,#salesCopilotPanel,#assistantDrawer,#aiPanel,#copilot-panel).cc-role-chat * {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

/* First screen fits */
:is(.cc-home-chat,.cc-role-chat) .cc-home-chat-messages:has(.cc-home-chat-welcome){
  padding-block:14px 10px;
  scrollbar-gutter:auto;
}
:is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-intro{
  min-height:76px;
  margin-bottom:12px;
  padding-block:10px;
  grid-template-columns:minmax(0,1fr) 52px;
}
:is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-suggestions h3{margin-bottom:7px}
:is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-prompts button{
  min-height:44px;
  padding-block:9px;
}
.cc-role-chat .cc-chat-demo-footer{display:none!important}
@media (max-height:590px) {
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-messages:has(.cc-home-chat-welcome){padding-block:8px 5px}
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-intro{min-height:58px;margin-bottom:7px;padding-block:6px;grid-template-columns:minmax(0,1fr) 38px}
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-intro h2{font-size:1.125rem}
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-intro p{margin-top:3px}
}
@media (max-height:485px) and (orientation:landscape) and (min-width:500px) {
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-prompts{grid-template-columns:repeat(2,minmax(0,1fr))}
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-prompts button{border-top:0}
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-prompts button:nth-child(even){border-inline-start:1px solid var(--guide-separator)}
  :is(.cc-home-chat,.cc-role-chat) .cc-home-chat-welcome .cc-home-chat-prompts button:nth-child(n+3){border-top:1px solid var(--guide-separator)}
}
