/* Ava chat panel — uses the same brand tokens as the OJ Security site CSS. */
.oj-ava-root {
  position: fixed;
  z-index: 50;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  font-family: inherit;
}

.oj-ava-panel {
  display: flex;
  flex-direction: column;
  width: min(26rem, calc(100vw - 2rem));
  max-height: min(40rem, calc(100dvh - 6.5rem));
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius, 0.75rem);
  background: var(--background, #fff);
  color: var(--foreground, #171717);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.oj-ava-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.oj-ava-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.oj-ava-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
  line-height: 0;
}

.oj-ava-icon-btn:focus-visible {
  outline: 2px solid var(--ring, #171717);
  outline-offset: 2px;
}

.oj-ava-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.oj-ava-body p {
  margin: 0 0 0.75rem;
}

.oj-ava-muted {
  color: var(--muted-foreground, #737373);
}

.oj-ava-greeting {
  border: 1px solid var(--border, #e5e5e5);
  background: var(--card, #fff);
  color: var(--foreground, #171717);
  padding: 0.5rem 0.75rem;
}

.oj-ava-contact {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: inherit;
  text-underline-offset: 4px;
}

.oj-ava-contact:focus-visible {
  outline: 2px solid var(--ring, #171717);
  outline-offset: 2px;
}

.oj-ava-host {
  min-width: 0;
  flex: 0 0 auto;
  padding: 0 1rem 1rem;
}

.oj-ava-launcher {
  appearance: none;
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: var(--primary, #171717);
  color: var(--primary-foreground, #fff);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.oj-ava-launcher:hover {
  background: #2e2e2e;
}

.oj-ava-launcher:focus-visible {
  outline: 2px solid var(--ring, #171717);
  outline-offset: 4px;
}
