.ai-entry-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #262d3b;
  min-height: 560px;
  background: radial-gradient(1200px 500px at 18% 0%, rgba(82, 102, 255, 0.2), transparent 62%),
    radial-gradient(1200px 600px at 85% 100%, rgba(29, 184, 184, 0.18), transparent 65%),
    linear-gradient(160deg, #0d1118 0%, #0b0f16 45%, #0a0e15 100%);
}

.ai-entry-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.ai-entry-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.34;
  pointer-events: none;
  animation: aiGlowDrift 10s ease-in-out infinite;
}

.ai-entry-glow--one {
  background: #5470ff;
  left: -150px;
  top: -160px;
}

.ai-entry-glow--two {
  background: #24b7c6;
  right: -140px;
  bottom: -150px;
  animation-delay: -3s;
}

.ai-entry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
  gap: 28px;
  padding: 36px;
}

.ai-entry-kicker {
  margin: 0;
  color: #96a2bb;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.ai-entry-title {
  margin: 8px 0 8px;
  font-size: 34px;
  line-height: 1.1;
  color: #edf2ff;
}

.ai-entry-subtitle {
  margin: 0 0 22px;
  color: #b1bdd4;
  max-width: 620px;
}

.ai-entry-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-mode-card {
  border-radius: 14px;
  border: 1px solid #2a3244;
  background: linear-gradient(180deg, rgba(22, 28, 40, 0.9), rgba(16, 22, 34, 0.9));
  padding: 18px;
  color: #e4ebff;
  backdrop-filter: blur(2px);
}

.ai-mode-label {
  font-size: 11px;
  color: #9ea9c1;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-mode-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ai-mode-card p {
  margin: 0 0 14px;
  color: #a8b4cc;
  line-height: 1.55;
  min-height: 72px;
}

.ai-mode-btn {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  color: #f3f7ff;
  font-weight: 650;
}

.ai-mode-btn--kairos {
  background: linear-gradient(135deg, #7470ff, #936bff);
}

.ai-mode-btn--thiq {
  background: linear-gradient(135deg, #2f90b0, #2cbba8);
}

.ai-entry-presence {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ai-orb-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.ai-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c4d7ff, #6f7aff 35%, #313d88 70%, #161d47 100%);
  box-shadow: 0 0 55px rgba(113, 133, 255, 0.5), 0 0 130px rgba(74, 90, 201, 0.45);
  animation: aiOrbBreathe 4.8s ease-in-out infinite;
}

.ai-orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(185, 203, 255, 0.3);
  animation: aiRingSpin 12s linear infinite;
}

.ai-orb-ring--two {
  inset: -24px;
  border-color: rgba(149, 237, 231, 0.28);
  animation-direction: reverse;
  animation-duration: 18s;
}

.ai-presence-caption {
  margin-top: 16px;
  font-size: 12px;
  color: #94a3c1;
}

.ai-entry-mode-panel {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 48px auto 0;
  border-radius: 14px;
  border: 1px solid #2a3345;
  background: rgba(14, 20, 30, 0.92);
  padding: 24px;
}

.ai-entry-mode-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ai-entry-mode-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #9de8e0;
}

.ai-entry-back-btn {
  border: 1px solid #34415b;
  background: #172133;
  color: #cdd8ef;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
}

.ai-entry-mode-panel h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  color: #ecf3ff;
}

.ai-entry-mode-panel p {
  margin: 0 0 14px;
  color: #a5b5cf;
}

.ai-entry-mode-form {
  display: flex;
  gap: 10px;
}

.ai-entry-mode-input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #34425e;
  background: #111a2a;
  color: #e9f0ff;
  padding: 11px 12px;
  pointer-events: auto;
  z-index: 5;
}

.thiq-op-wrap {
  position: relative;
  z-index: 2;
  padding: 26px;
}

.thiq-op-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.thiq-op-title {
  margin: 6px 0 0;
  color: #ecf3ff;
  font-size: 26px;
}

.thiq-op-head-actions {
  display: flex;
  gap: 8px;
}

.thiq-op-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thiq-op-card {
  border: 1px solid #2f3a51;
  border-radius: 12px;
  background: rgba(15, 21, 33, 0.9);
  padding: 14px;
}

.thiq-op-card-title {
  font-size: 12px;
  color: #9fb0cd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.thiq-op-kpi-row {
  display: grid;
  gap: 8px;
  color: #cfdbf3;
  font-size: 14px;
}

.thiq-op-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thiq-op-command-form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.thiq-op-feed {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.thiq-op-feed-item {
  border: 1px solid #2d3a53;
  border-radius: 9px;
  padding: 9px 10px;
  background: #111a2a;
  display: grid;
  gap: 4px;
}

.thiq-op-feed-item strong {
  color: #e2ebff;
  font-size: 13px;
}

.thiq-op-feed-item span {
  color: #9dafcf;
  font-size: 12px;
}

.thiq-op-empty {
  color: #9dafcf;
  font-size: 13px;
}

.thiq-op-error {
  margin-top: 10px;
  color: #ff9ea3;
  font-size: 12px;
}

@keyframes aiGlowDrift {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-10px); opacity: 0.42; }
}

@keyframes aiOrbBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes aiRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .ai-entry-grid {
    grid-template-columns: 1fr;
  }
  .ai-entry-cards {
    grid-template-columns: 1fr;
  }
  .thiq-op-grid {
    grid-template-columns: 1fr;
  }
}

