/* Isolated inside the existing iframe: no portfolio selectors are changed. */
html, body {background:transparent!important;margin:0;overflow:hidden;min-height:0;color-scheme:normal;}
body {font-family:Archivo,Arial,sans-serif;}
.chat-launcher {right:4px;bottom:5px;box-shadow:none;background:var(--chat-bg);color:var(--chat-text);border-color:var(--chat-border);padding:5px 12px 5px 7px;min-height:48px;}
.chat-launcher:hover {box-shadow:none;transform:none;}
.launcher-logo {background:transparent;width:32px;height:32px;}
/* Host iframe supplies actual viewport geometry for all three modes. */
.chat-panel.mode-center,.chat-panel.mode-dock,.chat-panel.mode-full {
  inset:0;width:100%!important;height:100dvh;max-width:none;transform:none;
}
.chat-panel.mode-full {border-radius:0;}
.brand-logo {width:auto;min-width:0;gap:6px;letter-spacing:0;}
.brand-symbol {width:23px;height:23px;display:block;}
.welcome-logo {width:48px;height:48px;}
.zg-mascot {position:relative;display:block;width:100%;height:100%;}
.zg-mascot img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.zg-mascot-face {z-index:1;}
.zg-mascot-ring {animation:zg-mascot-turn 4s ease-in-out infinite;}
@keyframes zg-mascot-turn {0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
.assistant-avatar {background:transparent;border-radius:0;}
.answer-sources {display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:11px;}
.answer-sources span {width:100%;color:var(--chat-muted);}
.answer-sources a {color:var(--chat-text);border:1px solid var(--chat-border);padding:4px 7px;border-radius:7px;text-decoration:none;overflow-wrap:anywhere;}
.answer-sources a:hover {background:var(--chat-hover);}
.assistant-text,.user-bubble {overflow-wrap:anywhere;}
.assistant-disclaimer {font-size:10px;line-height:1.4;color:var(--chat-muted);text-align:center;margin:5px 0 0;}
button:disabled {cursor:not-allowed;opacity:.45;}
.chat-header {touch-action:none;}
.resize-handle {left:0;}
.toast {max-width:calc(100% - 24px);}
@media(max-width:600px){
  .chat-header{height:42px;min-height:42px;gap:3px;padding:0 6px;}
  .chat-brand{gap:4px;}
  .brand-logo{width:auto;min-width:0;gap:4px;font-size:10px;}
  .header-actions{gap:0;}
  .header-actions .icon-button{width:24px;height:30px;}
  .chat-launcher{right:4px;bottom:5px;}
  .composer textarea{font-size:16px;}
}
@media(prefers-reduced-motion:reduce){.zg-mascot-ring{animation:none;}}

body[data-compact="false"] .mode-dock .resize-handle {display:block!important;touch-action:none;}


/* Ask Ziraddin AI — Beta badge */
.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  padding: 3px 6px;
  border: 1px solid var(--chat-border);
  border-radius: 5px;

  background: var(--chat-hover);
  color: var(--chat-muted);

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}


/* Center the + icon inside its button */
.add-button {
  display: grid;
  place-items: center;
}

.add-button [data-icon="plus"] {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.add-button [data-icon="plus"] svg {
  display: block;
}



/* Remove unwanted shadows around chat window corners */
.chat-panel {
  box-shadow: none !important;
}
