.ge-oral-open-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.85rem;
  color: #fff;
  font: 600 0.875rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.ge-oral-open-button:hover { background: rgba(255, 255, 255, 0.2); }
.ge-oral-open-button:active { transform: translateY(1px); }

.ge-oral-open-button:focus-visible,
.ge-oral-modal button:focus-visible {
  outline: 3px solid rgba(110, 231, 199, 0.75);
  outline-offset: 2px;
}

.ge-oral-open-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ge-oral-open-button.ge-oral-floating {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 14px 36px rgba(30, 64, 175, 0.32);
}

.ge-oral-is-open { overflow: hidden !important; }
.ge-oral-modal[hidden] { display: none !important; }

.ge-oral-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ge-oral-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 41, 0.68);
  backdrop-filter: blur(5px);
}

.ge-oral-dialog {
  position: relative;
  display: flex;
  width: min(36rem, 100%);
  max-height: min(46rem, calc(100dvh - 2rem));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 1.75rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 28px 90px rgba(7, 18, 40, 0.38);
  animation: ge-oral-dialog-in 180ms ease-out both;
}

.ge-oral-dialog-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: #14213d;
  color: #fff;
}

.ge-oral-heading-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(110, 231, 199, 0.16);
  color: #6ee7c7;
}

.ge-oral-heading-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ge-oral-eyebrow {
  margin: 0 0 0.16rem;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ge-oral-dialog-header h2 { margin: 0; font-size: 1.3rem; line-height: 1.2; }

.ge-oral-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.ge-oral-content { overflow-y: auto; padding: 1rem 1.15rem 1.15rem; }

.ge-oral-context {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 2.75rem;
  border: 1px solid #dbeafe;
  border-radius: 0.9rem;
  background: #eff6ff;
  padding: 0.72rem 0.85rem;
  color: #1e3a8a;
}

.ge-oral-context span { font-size: 0.8rem; font-weight: 650; }
.ge-oral-context strong { min-width: 0; overflow: hidden; font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }
.ge-oral-context em { margin-left: auto; color: #475569; font-size: 0.78rem; font-style: normal; white-space: nowrap; }

.ge-oral-empty {
  margin-top: 1rem;
  border: 1px dashed #93c5fd;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 2rem 1rem;
  color: #475569;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ge-oral-result {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%);
  padding: 1.3rem 1rem 1.2rem;
  text-align: center;
}

.ge-oral-result::after {
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
  content: "";
  right: -3rem;
  top: -4rem;
}

.ge-oral-result span {
  position: relative;
  z-index: 1;
  display: block;
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ge-oral-result strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.55rem;
  color: #111827;
  font-size: clamp(1.55rem, 7vw, 2.25rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ge-oral-result p {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ge-oral-result.ge-oral-reveal strong { animation: ge-oral-name-in 380ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }

.ge-oral-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: #475569;
  font-size: 0.82rem;
}

.ge-oral-progress-copy strong { color: #1e3a8a; }
.ge-oral-progress { height: 0.48rem; margin-top: 0.45rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.ge-oral-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #14b8a6); transition: width 260ms ease; }

.ge-oral-draw {
  display: flex;
  width: 100%;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 1rem;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.ge-oral-draw:hover:not(:disabled) { background: #1d4ed8; }
.ge-oral-draw:active:not(:disabled) { transform: translateY(1px); }
.ge-oral-draw:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; }

.ge-oral-draw svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ge-oral-history { margin-top: 1rem; border-top: 1px solid #e2e8f0; padding-top: 0.9rem; }
.ge-oral-history-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #334155; font-size: 0.84rem; font-weight: 750; }
.ge-oral-history-title button { border: 0; background: transparent; color: #2563eb; font: inherit; cursor: pointer; }
.ge-oral-history-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.65rem; }

.ge-oral-history-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0.42rem 0.65rem 0.42rem 0.45rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 650;
}

.ge-oral-history-list b { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 0.68rem; }

.ge-oral-dialog-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.78rem 1.15rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

@keyframes ge-oral-dialog-in {
  from { opacity: 0; transform: translateY(0.6rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ge-oral-name-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 580px) {
  .ge-oral-open-button:not(.ge-oral-floating) { width: 2.75rem; padding: 0; }
  .ge-oral-open-button:not(.ge-oral-floating) span { display: none; }
  .ge-oral-modal { align-items: end; padding: 0; }
  .ge-oral-dialog { width: 100%; max-height: 94dvh; border-width: 1px 0 0; border-radius: 1.5rem 1.5rem 0 0; }
  .ge-oral-dialog-header { padding: 0.9rem 1rem; }
  .ge-oral-content { padding: 0.9rem 1rem 1rem; }
  .ge-oral-context { display: grid; grid-template-columns: auto 1fr; gap: 0.12rem 0.5rem; }
  .ge-oral-context em { grid-column: 2; margin-left: 0; }
  .ge-oral-dialog-footer { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ge-oral-dialog,
  .ge-oral-result.ge-oral-reveal strong { animation: none; }
  .ge-oral-progress span { transition: none; }
}
