
/* GeoStudent Floating Assistant — B18.4 */
.gs-assistant-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #0f4c81;
  color: #fff;
  font: inherit;
  font-weight: 750;
  box-shadow: 0 14px 36px rgba(15,76,129,.28);
  cursor: pointer;
}
.gs-assistant-launcher:hover,
.gs-assistant-launcher:focus-visible {
  background: #0b3b65;
  transform: translateY(-2px);
}
.gs-assistant-launcher:focus-visible,
.gs-assistant-close:focus-visible,
.gs-assistant-form input:focus-visible,
.gs-suggestion:focus-visible {
  outline: 3px solid rgba(35,145,177,.38);
  outline-offset: 3px;
}
.gs-assistant-launcher-icon { font-size: 1.2rem; line-height: 1; }
.gs-assistant-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 1201;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 7rem));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbdce8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(10,44,72,.22);
}
.gs-assistant-panel[aria-hidden="false"] { display: flex; }
.gs-assistant-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1rem .85rem;
  background: #f3f8fb;
  border-bottom: 1px solid #dbe7ef;
}
.gs-assistant-header h2 { margin: 0; font-size: 1.05rem; }
.gs-assistant-header p { margin: .25rem 0 0; font-size: .88rem; color: #52697a; }
.gs-assistant-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.gs-assistant-body { overflow-y: auto; padding: 1rem; }
.gs-assistant-warning {
  padding: .75rem;
  margin-bottom: .9rem;
  border-left: 4px solid #d29a19;
  border-radius: 8px;
  background: #fff8df;
  font-size: .84rem;
}
.gs-assistant-suggestions { display: grid; gap: .5rem; margin: .6rem 0 1rem; }
.gs-suggestion {
  width: 100%;
  text-align: left;
  padding: .65rem .75rem;
  border: 1px solid #d6e3ec;
  border-radius: 10px;
  background: #fff;
  color: #17324a;
  font: inherit;
  cursor: pointer;
}
.gs-suggestion:hover { background: #eef7fb; border-color: #87b7cc; }
.gs-assistant-form { display: flex; gap: .5rem; }
.gs-assistant-form input {
  flex: 1;
  min-width: 0;
  padding: .75rem;
  border: 1px solid #bfcfdb;
  border-radius: 10px;
  font: inherit;
}
.gs-assistant-form button {
  padding: .75rem .9rem;
  border: 0;
  border-radius: 10px;
  background: #0f4c81;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gs-assistant-results { margin-top: 1rem; }
.gs-answer {
  padding: .85rem;
  border-radius: 12px;
  background: #f4f8fb;
  border: 1px solid #d8e4ec;
}
.gs-answer h3 { margin: 0 0 .5rem; font-size: 1rem; }
.gs-answer p { margin: 0 0 .65rem; line-height: 1.55; }
.gs-answer-meta { display: block; margin-top: .6rem; font-size: .78rem; color: #627786; }
.gs-assistant-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .85rem 1rem 1rem;
  border-top: 1px solid #e1e9ee;
  background: #fafcfd;
}
.gs-assistant-footer a { font-size: .82rem; font-weight: 700; }
@media (max-width: 640px) {
  .gs-assistant-launcher {
    right: .75rem;
    bottom: .75rem;
    min-height: 3rem;
    padding: .72rem .9rem;
  }
  .gs-assistant-launcher-label { display: none; }
  .gs-assistant-panel {
    right: .5rem;
    bottom: 4.5rem;
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 5.5rem);
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gs-assistant-launcher { transition: none; }
}
