
.idt-ai-fab, .idt-ai-fab *,
.idt-ai-overlay, .idt-ai-overlay * {
  box-sizing: border-box;
}

.idt-ai-fab, .idt-ai-overlay {
  --bz-navy-900: #02073e;
  --bz-navy-800: #080d4c;
  --bz-navy-700: #131c66;
  --bz-orange-500: #ff7800;
  --bz-orange-400: #ff9233;
  --bz-orange-600: #e36900;
  --bz-bg: #f4f5fa;
  --bz-surface: #ffffff;
  --bz-ink: #0b1130;
  --bz-ink-muted: #6b7290;
  --bz-border: #e4e7f1;
  --bz-success: #1fb978;
  --bz-danger: #d6432f;

}

@media (prefers-reduced-motion: reduce) {
  .idt-ai-fab *, .idt-ai-overlay * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.idt-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: rgba(2, 7, 62, 0.1);
  border: 1px solid rgba(2, 7, 62, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.idt-panel-close:hover {
  background: rgba(2, 7, 62, 0.25);
  transform: scale(1.05);
}
.idt-panel-close svg {
  width: 14px;
  height: 14px;
  stroke: var(--bz-navy-900);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.idt-ai-fab {
  position: fixed;
  bottom: 26px;
  right: 26px; 
  z-index: 999999;
}

.idt-ai-fab-btn {
  display: flex;
  flex-direction: column;
  width: 320px;
  background: linear-gradient(135deg, #000000, #000000);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  outline: none;
  text-align: left;
  box-shadow: 0 20px 50px rgb(0 0 0 / 34%), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s, border-color 0.25s;
}

.idt-ai-fab-btn:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.6); 
  box-shadow: 
    0 30px 60px rgb(0 0 0 / 50%), 0 0 15px rgb(0 0 0 / 30%), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.idt-ai-fab-btn:focus-visible { 
  outline: 3px solid var(--bz-navy-900); 
  outline-offset: 3px; 
}

.idt-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.idt-panel-logo-wrap {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idt-panel-logo-wrap img {
  width: 24px;
}

.idt-panel-prompt {
  font-family: var(--bz-font-body);
  font-size: 15px;
  font-weight: 700; 
  color: #ffffff; 
  line-height: 1.4;
  max-width: 200px;
}

.idt-quick-search {
  margin-bottom: 20px;
}

.idt-quick-title {
  font-family: var(--bz-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgb(255 255 255); 
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.idt-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.idt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(2, 7, 62, 0.06); 
  border: 1px solid rgb(255 120 0);
  color: #ffffff;
  font-family: var(--bz-font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}


.idt-tag-cmd {
  font-family: var(--bz-font-mono);
  color: var(--bz-orange-600); 
  font-weight: 800;
}

.idt-panel-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.25); 
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) inset;
}

.idt-panel-input-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.idt-icon-search {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

.idt-panel-placeholder {
  font-family: var(--bz-font-body);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.idt-sparkle {
  font-size: 12px;
  animation: idt-ai-float 3s ease-in-out infinite;
}

.idt-icon-arrow {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.idt-ai-fab-btn:hover .idt-icon-arrow {
  transform: translateX(3px);
}

/* Animations */
@keyframes idt-ai-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Responsive */
@media (max-width: 600px) {
  .idt-ai-fab { bottom: 18px; right: 18px; }
  .idt-ai-fab-btn { width: calc(100vw - 36px); max-width: 320px; padding: 15px; }
  .idt-quick-search, .idt-panel-header { margin-bottom: 15px; }
}
.idt-ai-fab-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idt-ai-fab-icon-wrap img{
  width:45px;
}

.idt-ai-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.idt-ai-fab-title {
  font-family: var(--bz-font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.idt-ai-sparkle { font-size: 12px; animation: idt-ai-float 3s ease-in-out infinite; }
@keyframes idt-ai-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.idt-ai-fab-sub {
  font-family: var(--bz-font-body);
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  margin-top: 2px;
}

.idt-ai-fab-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
 background: var(--bz-orange-500);
  margin-left: 6px;
  transition: background 0.2s, transform 0.2s;
}

.idt-ai-fab-btn:hover .idt-ai-fab-arrow {
   background: rgba(255,255,255,0.1);
  
  transform: translateX(3px);
}

.idt-ai-fab-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .idt-ai-fab { bottom: 18px; right: 18px; }
  .idt-ai-fab-sub { display: none; } 
  .idt-ai-fab-btn { padding: 6px 14px 6px 6px; }
}
.idt-ai-tt-wrap {
  display: flex;
  align-items: center;
  margin-right: 14px;
  opacity: 0;
  transform: translateX(-10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.34,1.2,.64,1);
}
.idt-ai-tt-wrap.idt-ai-tt-visible { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.idt-ai-tt-arrow { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 9px solid var(--bz-navy-900); flex-shrink: 0; }
.idt-ai-tt-body {
  background: var(--bz-navy-900);
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(2,7,62,0.40);
  white-space: nowrap;
  border-left: 3px solid var(--bz-orange-500);
}
.idt-ai-tt-title { font-family: var(--bz-font-display); font-size: 13.5px; font-weight: 700; color: #fff; display: block; }
.idt-ai-tt-sub { font-family: var(--bz-font-body); font-size: 11.5px; color: rgba(255,255,255,0.65); display: block; margin-top: 1px; }
.idt-ai-tt-close { width: 18px; height: 18px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; transition: background 0.15s; }
.idt-ai-tt-close:hover { background: rgba(255,255,255,0.22); }
.idt-ai-tt-close svg { width: 7px; height: 7px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }

@media (max-width: 600px) { .idt-ai-tt-wrap { display: none !important; } }

/* ═══ OVERLAY ══════════════════════════════════════════════════ */
.idt-ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(2,7,62,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  overscroll-behavior: contain;
}
.idt-ai-overlay.idt-ai-open { opacity: 1; visibility: visible; }

.idt-ai-modal {
  width: 100%;
  max-width: 760px;
  height: 84vh;
  max-height: 740px;
  background: var(--bz-bg);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.34,1.1,.64,1);
}
.idt-ai-overlay.idt-ai-open .idt-ai-modal { transform: translateY(0) scale(1); }

/* ── Header ── */
.idt-ai-header {
  background: linear-gradient(120deg, var(--bz-navy-900), var(--bz-navy-700));
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.idt-ai-header-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.idt-ai-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(150deg, white, white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(255,120,0,0.35);
}
.idt-ai-avatar img { width: 30px;}
.idt-ai-header-name { font-family: var(--bz-font-display); font-size: 15px; font-weight: 700; color: #fff; margin: 0; display: flex; align-items: center; gap: 7px; }
.idt-ai-badge { background: rgba(255,120,0,0.18); border: 1px solid rgba(255,120,0,0.5); color: var(--bz-orange-400); font-family: var(--bz-font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 5px; }
.idt-ai-header-sub { font-family: var(--bz-font-body); font-size: 12px; color: rgba(255,255,255,0.6); margin: 3px 0 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idt-ai-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bz-success); box-shadow: 0 0 0 3px rgba(31,185,120,0.22); flex-shrink: 0; animation: idt-ai-dotpulse 2s ease-in-out infinite; }
@keyframes idt-ai-dotpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.idt-ai-close { width: 32px; height: 32px; background: rgba(255,255,255,0.08); border: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; flex-shrink: 0; margin-left: 10px; }
.idt-ai-close:hover { background: rgba(255,255,255,0.18); }
.idt-ai-close svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2; }

/* ═══ THREAD ═══════════════════════════════════════════════════ */
.idt-ai-thread {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 22px 8px;
  scrollbar-width: thin;
  scrollbar-color: #d4d8e4 transparent;
  -webkit-overflow-scrolling: touch;
}
.idt-ai-thread::-webkit-scrollbar { width: 5px; }
.idt-ai-thread::-webkit-scrollbar-thumb { background: #d4d8e4; border-radius: 5px; }

/* ── Welcome state ── */
.idt-ai-welcome { padding: 14px 4px 22px; }
.idt-ai-eyebrow { font-family: var(--bz-font-mono); font-size: 10.5px; font-weight: 600; color: var(--bz-orange-500); letter-spacing: 0.14em; margin: 0 0 10px; }
.idt-ai-welcome-title { font-family: var(--bz-font-display); font-size: 23px; font-weight: 700; color: var(--bz-ink); margin: 0 0 8px; line-height: 1.25; }
.idt-ai-welcome-sub { font-family: var(--bz-font-body); font-size: 13.5px; color: var(--bz-ink-muted); margin: 0 0 22px; line-height: 1.6; max-width: 480px; }

.idt-ai-chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.idt-ai-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bz-surface); border: 1.5px solid var(--bz-border);
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  font-family: var(--bz-font-body); font-size: 12.5px; font-weight: 600; color: var(--bz-navy-900);
  transition: all 0.18s ease;
}
.idt-ai-chip-cmd { font-family: var(--bz-font-mono); color: var(--bz-orange-500); font-weight: 600; }
.idt-ai-chip:hover, .idt-ai-chip:focus-visible { border-color: var(--bz-orange-400); background: #fff8f2; transform: translateY(-1px); outline: none; }

/* ── Message rows ── */
.idt-ai-turn { margin-bottom: 18px; }

.idt-ai-msg-user { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.idt-ai-msg-user-bubble {
  background: var(--bz-orange-600); color: #fff;
  font-family: var(--bz-font-body); font-size: 15px; line-height: 1.55;
  padding: 11px 16px; border-radius: 14px 14px 3px 14px; max-width: 80%;
}

.idt-ai-msg-ai { display: flex; align-items: flex-start; gap: 10px; }
.idt-ai-msg-ai-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
      background: linear-gradient(150deg, #10185f, #080e4d);
  display: flex; align-items: center; justify-content: center;
}
.idt-ai-msg-ai-avatar img { width: 20px; }
.idt-ai-msg-ai-content { flex: 1; min-width: 0; }
.idt-ai-msg-ai-bubble {
  background: var(--bz-surface); border: 1px solid var(--bz-border);
  border-radius: 3px 14px 14px 14px; padding: 12px 16px;
  font-family: var(--bz-font-body); font-size: 13.5px; color: var(--bz-ink); line-height: 1.6;
}

/* ── Typing indicator ── */
.idt-ai-typing { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; }
.idt-ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--bz-orange-500); animation: idt-ai-bounce 1.1s ease-in-out infinite; }
.idt-ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.idt-ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes idt-ai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ── Filter pills (extracted query terms) ── */
.idt-ai-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.idt-ai-pill {
  font-family: var(--bz-font-mono); font-size: 10.5px; font-weight: 500; color: var(--bz-navy-900);
  background: #f0f2fa; border: 1px solid var(--bz-border); padding: 3px 9px; border-radius: 6px;
  letter-spacing: 0.02em;
}
.idt-ai-pill b { color: var(--bz-orange-600); font-weight: 600; }

.idt-ai-res-count { font-family: var(--bz-font-body); font-size: 12px; font-weight: 600; color: var(--bz-ink-muted); margin: 14px 0 10px; }
.idt-ai-res-count b { color: var(--bz-navy-900); font-weight: 700; }

/* ── Server cards ── */
.idt-ai-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.idt-ai-card { background: var(--bz-surface); border: 1.5px solid var(--bz-border); border-radius: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.idt-ai-card:hover { border-color: #ffcfa0; box-shadow: 0 10px 26px rgba(255,120,0,0.14); transform: translateY(-2px); }

.idt-ai-card-top { padding: 14px 14px 0; }
.idt-ai-card-name { font-family: var(--bz-font-display); font-size: 13.5px; font-weight: 700; color: var(--bz-navy-900); margin: 0; line-height: 1.3; }
.idt-ai-card-badge { display: inline-block; margin-top: 6px; background: var(--bz-bg); border-radius: 5px; padding: 2px 8px; font-family: var(--bz-font-mono); font-size: 9.5px; font-weight: 600; color: var(--bz-ink-muted); letter-spacing: 0.05em; text-transform: uppercase; }

.idt-ai-card-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 14px 0; }
.idt-ai-card-price-sup { font-family: var(--bz-font-mono); font-size: 12px; font-weight: 600; color: var(--bz-orange-500); }
.idt-ai-card-price-amt { font-family: var(--bz-font-display); font-size: 21px; font-weight: 800; color: var(--bz-navy-900); line-height: 1; }
.idt-ai-card-price-mo { font-family: var(--bz-font-body); font-size: 11px; color: var(--bz-ink-muted); }

.idt-ai-card-specs { display: flex; flex-direction: column; gap: 0; margin: 12px 14px 0; border-top: 1px dashed var(--bz-border); padding-top: 8px; }
.idt-ai-spec-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.idt-ai-spec-label { display: flex; align-items: center; gap: 6px; font-family: var(--bz-font-body); font-size: 11px; color: var(--bz-ink-muted); }
.idt-ai-spec-label svg { width: 12px; height: 12px; stroke: var(--bz-orange-500); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.idt-ai-spec-value { font-family: var(--bz-font-mono); font-size: 11.5px; font-weight: 600; color: var(--bz-navy-900); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }

.idt-ai-card-order {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: calc(100% - 28px);
  margin: 14px 14px 14px; background: var(--bz-navy-900); color: #fff;
  font-family: var(--bz-font-body); font-size: 12px; font-weight: 700; padding: 10px 16px; border-radius: 9px;
  text-decoration: none; letter-spacing: 0.02em; transition: background 0.15s, transform 0.12s;
}
.idt-ai-card-order:hover { background: var(--bz-orange-500); color: #fff; text-decoration: none; transform: scale(0.98); }
.idt-ai-card-order svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── Empty / error states ── */
.idt-ai-empty { text-align: center; padding: 18px 10px 6px; }
.idt-ai-empty svg { width: 36px; height: 36px; stroke: #c7cce0; stroke-width: 1.5; fill: none; margin-bottom: 10px; }
.idt-ai-empty p { font-family: var(--bz-font-body); font-size: 13px; color: var(--bz-ink-muted); margin: 0; line-height: 1.6; }
.idt-ai-empty a { color: var(--bz-orange-600); font-weight: 600; text-decoration: none; }

.idt-ai-error-bubble { border-color: #f4c4ba !important; background: #fff6f4 !important; }
.idt-ai-error-bubble .idt-ai-msg-ai-bubble { color: var(--bz-danger); }

/* ═══ INPUT BAR ════════════════════════════════════════════════ */
.idt-ai-inputbar {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 20px 18px; background: var(--bz-surface);
  border-top: 1px solid var(--bz-border); flex-shrink: 0;
}
.idt-ai-input-wrap {
  flex: 1; display: flex; align-items: center; background: var(--bz-bg);
  border: 1.5px solid var(--bz-border); border-radius: 14px; padding: 8px 8px 8px 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.idt-ai-input-wrap:focus-within { border-color: var(--bz-orange-400); box-shadow: 0 0 0 3px rgba(255,120,0,0.12); }
.idt-ai-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--bz-font-body); font-size: 13.5px; color: var(--bz-ink);
  resize: none; height: 22px; line-height: 22px; max-height: 90px; overflow-y: auto; padding: 0;
}
.idt-ai-input::placeholder { color: #9aa0bb; }

.idt-ai-clear { width: 24px; height: 24px; background: #e9ecf5; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #8088a8; transition: all 0.15s; flex-shrink: 0; opacity: 0; pointer-events: none; transform: scale(0.85); }
.idt-ai-clear.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.idt-ai-clear:hover { background: #dde1ee; color: var(--bz-orange-600); }
.idt-ai-clear svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.4; fill: none; }

.idt-ai-send {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; border: none; cursor: pointer;
  background: linear-gradient(150deg, var(--bz-orange-400), var(--bz-orange-600));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(255,120,0,0.35); transition: transform 0.12s, opacity 0.15s;
}
.idt-ai-send:hover { transform: scale(1.05); }
.idt-ai-send:active { transform: scale(0.95); }
.idt-ai-send:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.idt-ai-send svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.idt-ai-send-spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: idt-ai-spin 0.7s linear infinite; }
@keyframes idt-ai-spin { to { transform: rotate(360deg); } }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .idt-ai-fab { bottom: 18px; left: 18px; }
  .idt-ai-overlay { padding: 0; align-items: flex-end; }
  .idt-ai-modal { height: 92vh; max-height: none; border-radius: 18px 18px 0 0; }
  .idt-ai-header { padding: 14px 16px; }
  .idt-ai-thread { padding: 16px 14px 6px; }
  .idt-ai-welcome-title { font-size: 19px; }
  .idt-ai-inputbar { padding: 12px 14px 14px; }
  .idt-ai-card-grid { grid-template-columns: 1fr; }
  .idt-ai-msg-user-bubble { max-width: 90%; }
}