.oe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(245, 248, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12000;
}

.oe-modal {
  position: relative;
  z-index: 12010;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(112, 136, 216, 0.22);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 32px 60px rgba(47, 74, 134, 0.18);
  color: #1f2559;
  font-family: 'Open Sans', sans-serif;
  width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

.oe-modal__header {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.oe-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: #4b5aa0;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
}

.oe-modal__close:hover {
  color: #182865;
}

.oe-modal__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oe-input,
.oe-modal input[type="text"],
.oe-modal textarea,
.oe-modal select {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(112, 136, 216, 0.35);
  border-radius: 12px;
  padding: 13px 14px;
  color: #1f2559;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oe-input:focus,
.oe-modal input[type="text"]:focus,
.oe-modal textarea:focus,
.oe-modal select:focus {
  outline: none;
  border-color: rgba(70, 96, 198, 0.6);
  box-shadow: 0 0 0 2px rgba(70, 96, 198, 0.15);
}

.oe-textarea,
.oe-modal textarea {
  min-height: 160px;
  resize: vertical;
}

.oe-modal button.primary,
.oe-command-console .primary {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  border: none;
  border-radius: 999px;
  color: #ffffff;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 10px 18px rgba(65, 132, 234, 0.18);
}

.oe-code-preview {
  background: rgba(244, 248, 255, 0.95);
  border-radius: 12px;
  padding: 16px;
  color: #1f2859;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  overflow-x: auto;
}

.oe-console-output {
  background: rgba(244, 248, 255, 0.95);
  border: 1px solid rgba(112, 136, 216, 0.28);
  border-radius: 12px;
  padding: 12px;
  min-height: 160px;
  max-height: 260px;
  overflow-y: auto;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  color: #1f2559;
}

.oe-palette-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}


.oe-palette-item {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border: 1px solid rgba(112, 136, 216, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oe-palette-item:hover,
.oe-palette-item.active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(236, 241, 255, 0.9);
  box-shadow: 0 8px 18px rgba(92, 122, 214, 0.18);
}

.oe-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oe-chip {
  background: rgba(99, 102, 241, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #1f2559;
}

.oe-two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.oe-command-console {
  position: fixed;
  bottom: calc(5% + 72px);
  left: calc(50% + 190px);
  transform: translateX(-50%);
  width: 320px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(112, 136, 216, 0.24);
  box-shadow: 0 22px 48px rgba(36, 52, 120, 0.22);
  font-family: 'Fira Code', monospace;
  color: #1f2559;
  z-index: 2200;
  pointer-events: auto;
}

.oe-command-console__header {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.oe-command-console__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #4b5aa0;
  font-size: 1.4rem;
  cursor: pointer;
}

.oe-command-console__close:hover {
  color: #182865;
}

.oe-console-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.oe-console-input-row .primary {
  padding-inline: 14px;
}

.oe-console-output div {
  margin-bottom: 4px;
}

.oe-console-output div:last-child {
  margin-bottom: 0;
}

.auth-modal__intro {
  display: grid;
  gap: 8px;
  background: linear-gradient(135deg, rgba(74, 93, 181, 0.08), rgba(41, 191, 255, 0.12));
  border: 1px solid rgba(112, 136, 216, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
}

.auth-modal__headline {
  font-weight: 700;
  color: #141a48;
  font-size: 1.05rem;
}

.auth-modal__subtext {
  color: #2d3368;
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form__row {
  display: grid;
  gap: 12px;
}

.auth-form__label {
  font-size: 0.9rem;
  color: #2a2f64;
  font-weight: 600;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  padding: 15px 15px;
}

.auth-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-form__links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.auth-form__link-button {
  background: none;
  border: none;
  color: #4b5aa0;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.auth-form__link-button:hover {
  color: #1f2859;
}

.auth-form__secondary {
  font-size: 0.9rem;
  color: #363d73;
}

.auth-form__secondary strong {
  color: #11173f;
}

.oe-modal ::-webkit-scrollbar,
.oe-console-output::-webkit-scrollbar,
.oe-palette-list::-webkit-scrollbar {
  width: 8px;
}

.oe-modal ::-webkit-scrollbar-track,
.oe-console-output::-webkit-scrollbar-track,
.oe-palette-list::-webkit-scrollbar-track {
  background: rgba(235, 240, 255, 0.7);
  border-radius: 999px;
}

.oe-modal ::-webkit-scrollbar-thumb,
.oe-console-output::-webkit-scrollbar-thumb,
.oe-palette-list::-webkit-scrollbar-thumb {
  background: rgba(112, 136, 216, 0.6);
  border-radius: 999px;
}

.oe-modal {
  scrollbar-color: rgba(112, 136, 216, 0.6) rgba(235, 240, 255, 0.7);
}

body.oe-overlay-active {
  cursor: auto;
}
