/* GRIP AI, the floating copilot (assets/js/copilot.js). Every rule for the widget is scoped to
   #copilot-widget-container, so the page's own rules (home.css and site.css style bare h2, li, a
   and button) cannot leak in. The regulator avatars come from site.css (.reg-avatar). */

/* === FLOATING BUTTON === */
#copilot-widget-container .copilot-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0f2b4a, #1a4268);
  box-shadow: 0 6px 22px rgba(15, 43, 74, 0.32);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: copilot-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}
#copilot-widget-container .copilot-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(15, 43, 74, 0.38);
}
#copilot-widget-container .copilot-fab:focus-visible {
  outline: 3px solid var(--lime, #7eb8f0);
  outline-offset: 3px;
}
#copilot-widget-container .copilot-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(126, 184, 240, 0.55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: copilot-ring 3.6s ease-out 1.5s infinite;
}
#copilot-widget-container.is-open .copilot-fab::after {
  display: none;
}
#copilot-widget-container .copilot-fab-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--lime, #7eb8f0);
}
#copilot-widget-container .copilot-fab.has-unread .copilot-fab-dot,
#copilot-widget-container .copilot-fab.has-attention .copilot-fab-dot {
  display: block;
}
#copilot-widget-container .copilot-fab.has-attention .copilot-fab-dot {
  animation: copilot-dot 1.8s ease-in-out infinite;
}
#copilot-widget-container .copilot-fab .copilot-icon {
  width: 26px;
  height: 26px;
}
#copilot-widget-container .copilot-fab .fab-close {
  display: none;
}
#copilot-widget-container.is-open .copilot-fab .fab-icon {
  display: none;
}
#copilot-widget-container.is-open .copilot-fab .fab-close {
  display: block;
}

@keyframes copilot-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes copilot-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.92);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
@keyframes copilot-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

/* === PANEL === */
#copilot-widget-container .copilot-panel {
  position: fixed;
  right: 28px;
  bottom: 100px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  width: min(404px, calc(100vw - 56px));
  height: min(640px, calc(100vh - 130px));
  height: min(640px, calc(100dvh - 130px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(9, 30, 54, 0.2);
  color: var(--ink, #0f2b4a);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
#copilot-widget-container.is-open .copilot-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Header */
#copilot-widget-container .copilot-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f2b4a, #1a4268);
}
#copilot-widget-container .copilot-brand {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
}
#copilot-widget-container .copilot-mark {
  display: block;
  width: 22px;
  height: 22px;
}
#copilot-widget-container .copilot-titles {
  flex: 1;
  min-width: 0;
}
#copilot-widget-container .copilot-title {
  margin: 0;
  font-family: "Manrope", "DM Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: #fff;
}
#copilot-widget-container .copilot-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}
#copilot-widget-container .copilot-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
#copilot-widget-container .copilot-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Conversation */
#copilot-widget-container .copilot-log {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper, #f7f9fc);
}
#copilot-widget-container .copilot-welcome {
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 14px;
}
#copilot-widget-container .copilot-welcome > p {
  font-size: 14px;
  line-height: 1.5;
}
#copilot-widget-container .copilot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
#copilot-widget-container .copilot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0f2b4a);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
}
#copilot-widget-container .copilot-chip:hover:not(:disabled) {
  background: var(--soft, #edf1f8);
}
#copilot-widget-container .copilot-chip.is-accent {
  border-color: var(--ink, #0f2b4a);
  background: var(--ink, #0f2b4a);
  color: #fff;
}
#copilot-widget-container .copilot-chip.is-accent:hover:not(:disabled) {
  background: #1a4268;
}
#copilot-widget-container .copilot-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Messages */
#copilot-widget-container .copilot-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 88%;
}
#copilot-widget-container .copilot-msg-user {
  align-self: flex-end;
  align-items: flex-end;
}
#copilot-widget-container .copilot-msg-ai {
  align-self: flex-start;
}
#copilot-widget-container .copilot-msg-body {
  padding: 10px 14px;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink, #0f2b4a);
}
#copilot-widget-container .copilot-msg-user .copilot-msg-body {
  border-radius: 16px 16px 4px 16px;
  background: var(--ink, #0f2b4a);
  color: #fff;
  white-space: pre-wrap;
}
#copilot-widget-container .copilot-msg-ai .copilot-msg-body {
  border: 1px solid var(--line, #dde3ed);
  border-radius: 16px 16px 16px 4px;
  background: #fff;
}
#copilot-widget-container .copilot-msg.is-error .copilot-msg-body {
  border-color: #e7c8bb;
  background: #fdf6f3;
}
#copilot-widget-container .copilot-msg.is-stopped .copilot-msg-body {
  border-style: dashed;
}
#copilot-widget-container .copilot-muted {
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-msg-time {
  padding: 0 4px;
  font-size: 11px;
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-msg-user .copilot-msg-time {
  text-align: right;
}

/* home.css gives every bare li a checkmark, a muted colour and a fixed size, and removes every
   list marker. Reset those here: the widget's lists show real bullets or numbers. */
#copilot-widget-container li {
  position: static;
  margin: 3px 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
#copilot-widget-container ul {
  padding: 0;
  list-style: disc outside;
}
#copilot-widget-container ol {
  padding: 0;
  list-style: decimal outside;
}
#copilot-widget-container .copilot-citations,
#copilot-widget-container .copilot-picker,
#copilot-widget-container .copilot-tags {
  list-style: none;
}

/* Markdown inside a reply (built by copilot.js; never raw HTML) */
#copilot-widget-container .copilot-msg-body p {
  margin: 0;
}
#copilot-widget-container .copilot-msg-body p + p {
  margin-top: 8px;
}
#copilot-widget-container .copilot-msg-body ul,
#copilot-widget-container .copilot-msg-body ol {
  margin: 6px 0;
  padding: 0 0 0 1.25em;
}
#copilot-widget-container .copilot-msg-body li {
  margin: 3px 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
#copilot-widget-container li::before {
  content: none;
}
#copilot-widget-container .copilot-msg-body strong {
  font-weight: 600;
}
#copilot-widget-container .copilot-msg-body em {
  font-style: italic;
}
#copilot-widget-container .copilot-msg-body code {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--soft, #edf1f8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
#copilot-widget-container .copilot-code {
  margin: 8px 0;
  padding: 8px 10px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--soft, #edf1f8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
#copilot-widget-container .copilot-heading {
  margin: 10px 0 4px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
#copilot-widget-container a {
  color: var(--ink, #0f2b4a);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Per-message actions: copy, try again */
#copilot-widget-container .copilot-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#copilot-widget-container .copilot-msg-actions:empty {
  display: none;
}
#copilot-widget-container .copilot-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted, #6b7a8d);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#copilot-widget-container .copilot-action:hover {
  background: var(--soft, #edf1f8);
  color: var(--ink, #0f2b4a);
}
#copilot-widget-container .copilot-action .copilot-icon {
  width: 14px;
  height: 14px;
}

/* Agent-mode extras under an answer: confidence, sources, missing info, proposals, actions */
#copilot-widget-container .copilot-msg-extras {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
#copilot-widget-container .copilot-msg-extras:empty {
  display: none;
}
#copilot-widget-container .copilot-confidence {
  align-self: flex-start;
  padding: 2px 9px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 999px;
  font-weight: 600;
}
#copilot-widget-container .copilot-confidence.is-high {
  border-color: #b9dcc8;
  background: #e3f1ea;
}
#copilot-widget-container .copilot-confidence.is-medium {
  border-color: #e6d7a8;
  background: #f6f0de;
}
#copilot-widget-container .copilot-confidence.is-low {
  border-color: #e7c8bb;
  background: #f9eeea;
}
#copilot-widget-container .copilot-citations {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#copilot-widget-container .copilot-citations li {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}
#copilot-widget-container .copilot-cite-id,
#copilot-widget-container .copilot-cite-tier {
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-citations blockquote {
  margin: 4px 0 0;
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-missing ul,
#copilot-widget-container .copilot-actions ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
#copilot-widget-container .copilot-actions summary {
  color: var(--muted, #6b7a8d);
  cursor: pointer;
}
#copilot-widget-container .copilot-proposal {
  padding: 8px;
  border: 1px dashed var(--line, #dde3ed);
  border-radius: 8px;
  background: #fff;
}
#copilot-widget-container .copilot-proposal p {
  margin: 4px 0;
}
#copilot-widget-container .copilot-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#copilot-widget-container .copilot-apply {
  padding: 4px 10px;
  border: 1px solid var(--ink, #0f2b4a);
  border-radius: 6px;
  background: var(--ink, #0f2b4a);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#copilot-widget-container .copilot-apply:disabled {
  cursor: default;
  opacity: 0.7;
}

/* Notices and the typing indicator */
#copilot-widget-container .copilot-notice {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 16px 16px 16px 4px;
  background: #fff;
}
#copilot-widget-container .copilot-typing span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted, #6b7a8d);
  animation: copilot-typing 1.2s infinite ease-in-out both;
}
#copilot-widget-container .copilot-typing span:nth-child(2) {
  animation-delay: -0.16s;
}
#copilot-widget-container .copilot-typing span:nth-child(3) {
  animation-delay: -0.32s;
}
@keyframes copilot-typing {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Regulator picker */
#copilot-widget-container .copilot-search {
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #0f2b4a);
  font: inherit;
  font-size: 13px;
}
#copilot-widget-container .copilot-search:focus {
  outline: none;
  border-color: var(--ink, #0f2b4a);
  box-shadow: 0 0 0 3px rgba(126, 184, 240, 0.35);
}
#copilot-widget-container .copilot-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  margin: 8px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
#copilot-widget-container .copilot-picker li {
  margin: 0;
  padding: 0;
}
#copilot-widget-container .copilot-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #0f2b4a);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
#copilot-widget-container .copilot-pick:hover {
  background: var(--soft, #edf1f8);
}
/* The name is printed beside the avatar, so the monogram shows no initials here (as on the pill). */
#copilot-widget-container .copilot-pick .reg-avatar {
  --reg-size: 26px;
}
#copilot-widget-container .copilot-pick .reg-avatar-initials,
#copilot-widget-container .copilot-assessment-head .reg-avatar-initials {
  display: none;
}
#copilot-widget-container .copilot-pick-country {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted, #6b7a8d);
  white-space: nowrap;
}

/* The regulator assessment card */
#copilot-widget-container .copilot-assessment {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#copilot-widget-container .copilot-assessment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
#copilot-widget-container .copilot-assessment-head .reg-avatar {
  --reg-size: 34px;
}
#copilot-widget-container .copilot-assessment-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
#copilot-widget-container .copilot-assessment-title strong {
  font-size: 14px;
  font-weight: 600;
}
#copilot-widget-container .copilot-assessment-title span {
  font-size: 12px;
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-status {
  flex: none;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
#copilot-widget-container .copilot-status.is-effective {
  border-color: #b9dcc8;
  background: #e3f1ea;
  color: #1f5b3d;
}
#copilot-widget-container .copilot-status.is-upcoming {
  border-color: #c3d6f0;
  background: #e8f0fb;
  color: #1d4f91;
}
#copilot-widget-container .copilot-status.is-expired {
  border-color: #e7c8bb;
  background: #f9eeea;
  color: #8a3b26;
}
#copilot-widget-container .copilot-status.is-unknown {
  border-color: #d5dae3;
  background: #eef0f4;
  color: #4b5563;
}
#copilot-widget-container .copilot-assessment-summary {
  font-size: 14px;
  line-height: 1.5;
}
#copilot-widget-container .copilot-section h3 {
  margin: 0 0 6px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-section > p {
  font-size: 13px;
}
#copilot-widget-container .copilot-section ul:not(.copilot-tags),
#copilot-widget-container .copilot-section ol:not(.copilot-citations) {
  margin: 0;
  padding-left: 1.25em;
}
#copilot-widget-container .copilot-section li {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.45;
}
#copilot-widget-container .copilot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#copilot-widget-container .copilot-tags li {
  margin: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--soft, #edf1f8);
  font-size: 12px;
}
#copilot-widget-container .copilot-warn {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #e7c8bb;
  border-radius: 8px;
  background: #fdf6f3;
  color: #8a3b26;
  font-size: 12px;
}
#copilot-widget-container .copilot-assessment-foot {
  padding-top: 8px;
  border-top: 1px dashed var(--line, #dde3ed);
  font-size: 11px;
  color: var(--muted, #6b7a8d);
}

/* Composer */
#copilot-widget-container .copilot-composer-wrap {
  flex: none;
  background: #fff;
  border-top: 1px solid var(--line, #dde3ed);
}
#copilot-widget-container .copilot-offline {
  margin: 0;
  padding: 6px 14px;
  border-bottom: 1px solid #e7c8bb;
  background: #fdf6f3;
  font-size: 12px;
  color: #8a3b26;
}
#copilot-widget-container .copilot-offline[hidden] {
  display: none;
}
#copilot-widget-container .copilot-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}
#copilot-widget-container .copilot-input {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 9px 14px;
  border: 1px solid var(--line, #dde3ed);
  border-radius: 18px;
  background: var(--paper, #f7f9fc);
  color: var(--ink, #0f2b4a);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
}
#copilot-widget-container .copilot-input:focus {
  outline: none;
  border-color: var(--ink, #0f2b4a);
  box-shadow: 0 0 0 3px rgba(126, 184, 240, 0.35);
}
#copilot-widget-container .copilot-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ink, #0f2b4a);
  border-radius: 50%;
  background: var(--ink, #0f2b4a);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
#copilot-widget-container .copilot-send:disabled {
  border-color: #aab4c3;
  background: #aab4c3;
  cursor: not-allowed;
}
#copilot-widget-container .copilot-send[data-mode="stop"] {
  border-color: var(--line, #dde3ed);
  background: #fff;
  color: var(--ink, #0f2b4a);
}
#copilot-widget-container .copilot-send .copilot-icon {
  width: 16px;
  height: 16px;
}
#copilot-widget-container .copilot-send .is-stop,
#copilot-widget-container .copilot-send[data-mode="stop"] .is-send {
  display: none;
}
#copilot-widget-container .copilot-send[data-mode="stop"] .is-stop {
  display: block;
}
#copilot-widget-container .copilot-login {
  padding: 14px 16px;
  border-top: 1px solid var(--line, #dde3ed);
  background: #fff;
  font-size: 14px;
  text-align: center;
  color: var(--muted, #6b7a8d);
}
#copilot-widget-container .copilot-login a {
  color: var(--ink, #0f2b4a);
  font-weight: 600;
  text-decoration: underline;
}

/* Icons (static SVG paths built in copilot.js) */
#copilot-widget-container .copilot-icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
#copilot-widget-container .copilot-fab .fab-close {
  display: none;
}

/* Keyboard focus */
#copilot-widget-container :focus-visible {
  outline: 3px solid var(--lime, #7eb8f0);
  outline-offset: 2px;
}
#copilot-widget-container .copilot-input:focus-visible,
#copilot-widget-container .copilot-search:focus-visible {
  outline: none;
}

/* Phones: the panel becomes a full-height sheet and the floating button steps aside */
@media (max-width: 600px) {
  #copilot-widget-container .copilot-fab {
    right: 18px;
    bottom: 18px;
  }
  #copilot-widget-container.is-open .copilot-fab {
    display: none;
  }
  #copilot-widget-container .copilot-panel {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
    transform: translateY(100%);
    transform-origin: bottom;
  }
  #copilot-widget-container.is-open .copilot-panel {
    transform: none;
  }
  #copilot-widget-container .copilot-log {
    padding: 14px;
  }
  #copilot-widget-container .copilot-msg {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #copilot-widget-container .copilot-fab,
  #copilot-widget-container .copilot-fab::after,
  #copilot-widget-container .copilot-fab-dot,
  #copilot-widget-container .copilot-panel,
  #copilot-widget-container .copilot-typing span {
    animation: none !important;
    transition: none !important;
  }
}

/* === SOCIAL LOGIN (login.html, signup.html; not part of the copilot) === */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted, #6b7a8d);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #dde3ed);
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.social-google {
  background: #fff;
  border: 1px solid var(--line, #dde3ed);
  color: #3c4043;
}
.social-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.social-apple {
  background: #000;
  border: 1px solid #000;
  color: #fff;
}
.social-apple:hover {
  background: #1a1a1a;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
