/* Dominion Temple Assistant (WordPress): same look as the approved preview (navy, light blue, pearl, champagne accents). */
.icgca-launcher, .icgca-window, .icgca-window * { box-sizing: border-box; }
.icgca-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icgca-i20 { width: 20px; height: 20px; }
.icgca-i24 { width: 24px; height: 24px; }
.icgca-sky { color: #a9cbe1; }

button.icgca-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: flex; align-items: center; gap: 8px; height: 56px; margin: 0; padding: 0 20px 0 16px; border: 0; border-radius: 9999px; background: #102746; color: #f8f7f4; box-shadow: 0 0 0 2px rgba(201, 173, 120, .7), 0 20px 25px -5px rgba(16, 39, 70, .3); font: 600 14px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; transition: background .2s; }
button.icgca-launcher:hover { background: #1d3a63; color: #f8f7f4; }
button.icgca-launcher:focus-visible { outline: none; box-shadow: 0 0 0 4px #a9cbe1, 0 20px 25px -5px rgba(16, 39, 70, .3); }
@media (min-width: 640px) { button.icgca-launcher { right: 24px; bottom: 24px; } }
@media (max-width: 639px) { button.icgca-launcher.is-open { display: none; } }
@media (max-width: 380px) { .icgca-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } }

.icgca-window { position: fixed; left: 8px; right: 8px; top: 64px; bottom: 8px; z-index: 100000; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #f8f7f4; box-shadow: 0 0 0 1px rgba(16, 39, 70, .15), 0 25px 50px -12px rgba(16, 39, 70, .4); font: 400 15px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #102746; text-align: left; }
.icgca-window[hidden] { display: none; }
@media (min-width: 640px) { .icgca-window { left: auto; top: auto; right: 24px; bottom: 96px; width: 400px; height: min(640px, calc(100vh - 8rem)); } }

.icgca-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #102746; color: #f8f7f4; }
.icgca-avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #0a1a30; color: #a9cbe1; box-shadow: 0 0 0 1px rgba(201, 173, 120, .6); }
.icgca-titles { flex: 1; min-width: 0; }
.icgca-window h2.icgca-title { margin: 0; padding: 0; font: 700 15px/1.25 Montserrat, Inter, system-ui, sans-serif; letter-spacing: normal; text-transform: none; color: #f8f7f4; }
.icgca-window p.icgca-sub { margin: 0; font-size: 12px; line-height: 1.4; color: #a9cbe1; }
.icgca-window button.icgca-iconbtn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(248, 247, 244, .85); cursor: pointer; }
.icgca-window button.icgca-iconbtn:hover { background: #1d3a63; color: #f8f7f4; }
.icgca-window button.icgca-iconbtn:focus-visible { outline: 2px solid #a9cbe1; outline-offset: 0; }

.icgca-log { flex: 1; overflow-y: auto; padding: 16px; }
.icgca-msg { display: flex; margin: 0 0 16px; }
.icgca-msg--user { justify-content: flex-end; }
.icgca-msg--user .icgca-wrap { max-width: 85%; }
.icgca-msg--assistant .icgca-wrap { max-width: 92%; }
.icgca-bubble { white-space: pre-line; overflow-wrap: anywhere; padding: 12px 16px; border-radius: 16px 16px 16px 6px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 39, 70, .1), 0 1px 2px rgba(16, 39, 70, .06); font-size: 15px; line-height: 1.6; color: #102746; }
.icgca-bubble.is-error { box-shadow: 0 0 0 1px #fecaca; }
.icgca-msg--user .icgca-bubble { padding: 10px 16px; border-radius: 16px 16px 6px 16px; background: #102746; box-shadow: none; color: #f8f7f4; }
.icgca-window ul.icgca-links, .icgca-window ul.icgca-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.icgca-window ul.icgca-suggest { margin-top: 12px; }
.icgca-window ul.icgca-links li, .icgca-window ul.icgca-suggest li { margin: 0; padding: 0; list-style: none; }
.icgca-window ul.icgca-links li::before, .icgca-window ul.icgca-suggest li::before { content: none; display: none; }
.icgca-window a.icgca-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid #a9cbe1; border-radius: 9999px; background: #e4eef5; font-size: 14px; font-weight: 600; line-height: 1.3; color: #102746; text-decoration: none; }
.icgca-window a.icgca-link:hover, .icgca-window a.icgca-link:focus-visible { border-color: #102746; background: #102746; color: #f8f7f4; }
.icgca-window button.icgca-chip { margin: 0; padding: 6px 12px; border: 1px solid rgba(16, 39, 70, .2); border-radius: 9999px; background: #f8f7f4; font: 500 14px/1.3 Inter, system-ui, sans-serif; letter-spacing: normal; text-transform: none; color: #102746; cursor: pointer; }
.icgca-window button.icgca-chip:hover { border-color: #102746; background: #fff; }
.icgca-window button.icgca-chip:focus-visible { outline: 2px solid #102746; outline-offset: 1px; }
.icgca-typing { display: flex; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 39, 70, .1); }
.icgca-typing span { width: 8px; height: 8px; border-radius: 50%; background: #1d3a63; animation: icgca-bounce 1s infinite; }
.icgca-typing span:nth-child(1) { animation-delay: -.2s; }
.icgca-typing span:nth-child(2) { animation-delay: -.1s; }
@keyframes icgca-bounce { 0%, 100% { transform: translateY(-25%); } 50% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .icgca-typing span { animation: none; } }

.icgca-form { margin: 0; padding: 8px 12px 12px; border-top: 1px solid rgba(16, 39, 70, .1); background: #fff; }
.icgca-row { display: flex; align-items: flex-end; gap: 8px; }
.icgca-window textarea { flex: 1; min-height: 44px; max-height: 112px; margin: 0; padding: 10px 16px; border: 1px solid rgba(16, 39, 70, .2); border-radius: 16px; background: #f8f7f4; font: 400 15px/1.5 Inter, system-ui, sans-serif; color: #102746; resize: none; box-shadow: none; }
.icgca-window textarea:focus { border-color: #102746; outline: none; box-shadow: 0 0 0 2px rgba(16, 39, 70, .2); }
.icgca-window button.icgca-send { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #102746; color: #f8f7f4; cursor: pointer; }
.icgca-window button.icgca-send:hover { background: #1d3a63; }
.icgca-window button.icgca-send:disabled { opacity: .4; cursor: default; }
.icgca-window button.icgca-send:focus-visible { outline: 2px solid #a9cbe1; outline-offset: 1px; }
.icgca-window p.icgca-note { margin: 8px 0 0; padding: 0 4px; font-size: 11px; line-height: 1.4; color: rgba(16, 39, 70, .65); }
.icgca-window p.icgca-note a { font-weight: 600; color: #102746; text-decoration: underline; }

/* 1.0.1: keep the button off the page content. Phones: a compact round button (label kept for screen readers),
   clear of the iPhone home bar. Everywhere: slides away while scrolling down to read (assistant.js). */
button.icgca-launcher { transition: background .2s, transform .25s ease, opacity .25s ease; }
button.icgca-launcher.is-tucked { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
@media (max-width: 639px) {
  button.icgca-launcher { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; padding: 0; justify-content: center; }
  button.icgca-launcher .icgca-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { button.icgca-launcher { transition: background .2s; } }
