/* Omni Native/Core visibility contract
   Omni-Bot AI UI is available on the website and apps through Cloudflare Pages.
   Native-only and Omni-Engine controls remain hidden until Capacitor/Tauri runtime classes are applied. */
[data-omni-native-only],
[data-omni-engine-ui] {
  display: none !important;
}

[data-omni-ai-ui] {
  display: block !important;
}

[data-omni-ai-ui][data-omni-display="inline"] { display: inline !important; }
[data-omni-ai-ui][data-omni-display="inline-block"] { display: inline-block !important; }
[data-omni-ai-ui][data-omni-display="flex"] { display: flex !important; }
[data-omni-ai-ui][data-omni-display="inline-flex"] { display: inline-flex !important; }
[data-omni-ai-ui][data-omni-display="grid"] { display: grid !important; }
[data-omni-ai-ui][data-omni-display="contents"] { display: contents !important; }

.omni-runtime-native [data-omni-native-only],
.omni-runtime-native [data-omni-engine-ui] {
  display: block !important;
}

.omni-runtime-native [data-omni-display="inline"] { display: inline !important; }
.omni-runtime-native [data-omni-display="inline-block"] { display: inline-block !important; }
.omni-runtime-native [data-omni-display="flex"] { display: flex !important; }
.omni-runtime-native [data-omni-display="inline-flex"] { display: inline-flex !important; }
.omni-runtime-native [data-omni-display="grid"] { display: grid !important; }
.omni-runtime-native [data-omni-display="contents"] { display: contents !important; }

.omni-native-ui-host {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2147482600;
}

.omni-bot-panel,
.omni-engine-progress-card {
  box-sizing: border-box;
  color: #eefcff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: auto;
}

.omni-bot-panel {
  --omni-bot-safe-top: env(safe-area-inset-top, 0px);
  --omni-bot-safe-right: env(safe-area-inset-right, 0px);
  --omni-bot-safe-bottom: env(safe-area-inset-bottom, 0px);
  position: fixed;
  top: calc(84px + var(--omni-bot-safe-top));
  right: calc(18px + var(--omni-bot-safe-right));
  width: min(390px, calc(100vw - 36px - var(--omni-bot-safe-right)));
  max-height: calc(100dvh - 120px - var(--omni-bot-safe-top) - var(--omni-bot-safe-bottom));
  z-index: 2147482600;
}

.omni-bot-launcher {
  appearance: none;
  border: 1px solid rgba(102, 252, 241, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102, 252, 241, 0.18), rgba(157, 78, 221, 0.2)), rgba(3, 9, 17, 0.92);
  color: #cffffb;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 28px rgba(102, 252, 241, 0.22);
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  min-height: 48px;
  padding: 0.72rem 1.05rem;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.omni-bot-launcher:hover,
.omni-bot-launcher:focus-visible {
  border-color: rgba(102, 252, 241, 0.78);
  outline: none;
  transform: translateY(-1px);
}

.omni-bot-panel-shell {
  backdrop-filter: blur(24px);
  background:
    radial-gradient(circle at top left, rgba(102, 252, 241, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(157, 78, 221, 0.18), transparent 38%),
    rgba(3, 8, 17, 0.94);
  border: 1px solid rgba(102, 252, 241, 0.28);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 34px rgba(102, 252, 241, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: inherit;
  overflow: hidden;
  padding: 1rem;
}

.omni-bot-panel[data-omni-panel-state="collapsed"] {
  width: auto;
}

.omni-bot-panel[data-omni-panel-state="collapsed"] .omni-bot-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.omni-bot-panel[data-omni-panel-state="collapsed"] .omni-bot-panel-shell {
  display: none;
}

.omni-bot-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.omni-bot-title-wrap {
  min-width: 0;
}

.omni-bot-eyebrow {
  color: rgba(160, 251, 255, 0.7);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.omni-bot-title {
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.26rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0.22rem 0 0;
}

.omni-bot-scope {
  color: rgba(238, 252, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0.28rem 0 0;
}

.omni-bot-collapse-button {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(238, 252, 255, 0.88);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 1.3rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.omni-bot-usage-badge {
  align-items: center;
  align-self: flex-start;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid rgba(102, 252, 241, 0.18);
  border-radius: 999px;
  color: #bffcff;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.45rem 0.7rem;
}

.omni-bot-usage-badge[data-state="limited"] {
  background: rgba(255, 207, 102, 0.1);
  border-color: rgba(255, 207, 102, 0.24);
  color: #ffe0a1;
}

.omni-bot-usage-badge[data-state="unlimited"] {
  background: rgba(103, 255, 168, 0.1);
  border-color: rgba(103, 255, 168, 0.28);
  color: #bafdd5;
}

.omni-bot-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.omni-bot-action-button,
.omni-bot-send-button,
.omni-engine-cancel {
  appearance: none;
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 44px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.omni-bot-action-button {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 252, 255, 0.9);
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.68rem 0.7rem;
  text-align: left;
}

.omni-bot-action-button:hover,
.omni-bot-action-button:focus-visible,
.omni-bot-send-button:hover,
.omni-bot-send-button:focus-visible,
.omni-engine-cancel:hover,
.omni-engine-cancel:focus-visible {
  border-color: rgba(102, 252, 241, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.omni-bot-stream {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 140px;
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: thin;
}

.omni-bot-message {
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 92%;
  padding: 0.64rem 0.76rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.omni-bot-message--assistant,
.omni-bot-message--info,
.omni-bot-message--loading {
  align-self: flex-start;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid rgba(102, 252, 241, 0.14);
  color: #dffeff;
}

.omni-bot-message--user {
  align-self: flex-end;
  background: rgba(157, 78, 221, 0.18);
  border: 1px solid rgba(157, 78, 221, 0.24);
  color: #ffffff;
}

.omni-bot-message--warning {
  align-self: flex-start;
  background: rgba(255, 189, 89, 0.12);
  border: 1px solid rgba(255, 189, 89, 0.24);
  color: #ffe3aa;
}

.omni-bot-prompt-box {
  align-items: stretch;
  display: flex;
  gap: 0.55rem;
}

.omni-bot-prompt-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 18px;
  color: #ffffff;
  flex: 1 1 auto;
  font: inherit;
  line-height: 1.35;
  min-height: 50px;
  outline: none;
  padding: 0.78rem 0.86rem;
  resize: vertical;
}

.omni-bot-prompt-input::placeholder {
  color: rgba(238, 252, 255, 0.42);
}

.omni-bot-prompt-input:focus {
  border-color: rgba(102, 252, 241, 0.7);
  box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.1);
}

.omni-bot-send-button {
  background: linear-gradient(135deg, #66fcf1, #9d4edd);
  color: #041016;
  flex: 0 0 auto;
  padding: 0 1rem;
}

.omni-bot-footnote {
  color: rgba(238, 252, 255, 0.46);
  font-size: 0.68rem;
  line-height: 1.35;
}

.omni-bot-panel[data-omni-bot-busy="true"] .omni-bot-send-button,
.omni-bot-panel[data-omni-bot-busy="true"] .omni-bot-action-button {
  cursor: wait;
  opacity: 0.68;
}

.omni-engine-progress-card {
  backdrop-filter: blur(20px);
  background: rgba(3, 8, 17, 0.9);
  border: 1px solid rgba(102, 252, 241, 0.22);
  border-radius: 20px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 24px rgba(102, 252, 241, 0.1);
  left: calc(18px + env(safe-area-inset-left, 0px));
  max-width: min(410px, calc(100vw - 36px));
  padding: 0.95rem;
  position: fixed;
  width: 410px;
  z-index: 2147482500;
}

.omni-engine-title {
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  margin: 0;
}

.omni-engine-status {
  color: rgba(238, 252, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0.35rem 0 0.7rem;
}

.omni-engine-meter {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.omni-engine-meter-bar {
  background: linear-gradient(90deg, #66fcf1, #9d4edd);
  border-radius: inherit;
  height: 100%;
  transition: width 180ms ease;
  width: 0%;
}

.omni-engine-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: #eefcff;
  margin-top: 0.7rem;
  padding: 0.55rem 0.85rem;
}

@media (max-width: 720px) {
  .omni-bot-panel {
    bottom: 0;
    left: 0;
    max-height: calc(86dvh - env(safe-area-inset-top, 0px));
    right: 0;
    top: auto;
    width: 100%;
  }

  .omni-bot-panel[data-omni-panel-state="collapsed"] {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: auto;
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: auto;
  }

  .omni-bot-launcher {
    min-height: 54px;
    padding: 0.78rem 1rem;
  }

  .omni-bot-panel-shell {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    max-height: inherit;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .omni-bot-actions {
    grid-template-columns: 1fr;
  }

  .omni-bot-action-button,
  .omni-bot-send-button {
    min-height: 52px;
  }

  .omni-bot-stream {
    min-height: 120px;
  }

  .omni-bot-prompt-box {
    align-items: stretch;
  }

  .omni-bot-prompt-input {
    max-height: 30dvh;
    min-height: 54px;
  }

  .omni-bot-send-button {
    min-width: 76px;
  }

  .omni-engine-progress-card {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    max-width: calc(100vw - 24px);
    right: 12px;
    width: auto;
  }
}

@media (max-width: 420px) {
  .omni-bot-prompt-box {
    flex-direction: column;
  }

  .omni-bot-send-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omni-bot-launcher,
  .omni-bot-action-button,
  .omni-bot-send-button,
  .omni-engine-meter-bar,
  .omni-engine-cancel {
    transition: none;
  }
}

/* Omni-Science Phase 7K: app-only tool integration dock. */
.omni-tool-native-integration {
  --omni-tool-native-safe-bottom: env(safe-area-inset-bottom, 0px);
  --omni-tool-native-safe-left: env(safe-area-inset-left, 0px);
  --omni-tool-native-safe-right: env(safe-area-inset-right, 0px);
  backdrop-filter: blur(22px);
  background:
    radial-gradient(circle at top left, rgba(102, 252, 241, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(157, 78, 221, 0.16), transparent 38%),
    rgba(3, 8, 17, 0.91);
  border: 1px solid rgba(102, 252, 241, 0.24);
  border-radius: 24px;
  bottom: calc(18px + var(--omni-tool-native-safe-bottom));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46), 0 0 30px rgba(102, 252, 241, 0.1);
  box-sizing: border-box;
  color: #eefcff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  left: 50%;
  max-width: min(760px, calc(100vw - 36px - var(--omni-tool-native-safe-left) - var(--omni-tool-native-safe-right)));
  padding: 0.95rem;
  pointer-events: auto;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 2147482450;
}

.omni-tool-native-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.omni-tool-native-title-wrap {
  min-width: 0;
}

.omni-tool-native-eyebrow,
.omni-tool-native-group-label {
  color: rgba(160, 251, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.omni-tool-native-title {
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0.16rem 0 0;
}

.omni-tool-native-subtitle {
  color: rgba(238, 252, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.28rem 0 0;
  max-width: 46rem;
}

.omni-tool-native-collapse,
.omni-tool-native-button {
  appearance: none;
  border: 1px solid rgba(102, 252, 241, 0.24);
  border-radius: 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.omni-tool-native-collapse {
  background: rgba(102, 252, 241, 0.1);
  color: #dffeff;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
}

.omni-tool-native-body {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, auto));
  margin-top: 0.8rem;
}

.omni-tool-native-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.omni-tool-native-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.omni-tool-native-button {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 252, 255, 0.92);
  font-size: 0.76rem;
  line-height: 1.2;
  min-height: 42px;
  padding: 0.55rem 0.68rem;
  text-align: left;
}

.omni-tool-native-button:hover,
.omni-tool-native-button:focus-visible,
.omni-tool-native-collapse:hover,
.omni-tool-native-collapse:focus-visible {
  border-color: rgba(102, 252, 241, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.omni-tool-native-status {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(238, 252, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 0.72rem;
  padding: 0.48rem 0.68rem;
}

.omni-tool-native-status[data-state="running"] {
  border-color: rgba(102, 252, 241, 0.28);
  color: #bffcff;
}

.omni-tool-native-status[data-state="warning"] {
  border-color: rgba(255, 189, 89, 0.28);
  color: #ffe3aa;
}

.omni-tool-native-status[data-state="done"] {
  border-color: rgba(103, 255, 168, 0.28);
  color: #bafdd5;
}

.omni-tool-native-integration[data-omni-tool-native-busy="true"] .omni-tool-native-button {
  cursor: wait;
  opacity: 0.68;
}

.omni-tool-native-integration[data-omni-tool-native-collapsed="true"] {
  width: auto;
}

.omni-tool-native-integration[data-omni-tool-native-collapsed="true"] .omni-tool-native-title-wrap,
.omni-tool-native-integration[data-omni-tool-native-collapsed="true"] .omni-tool-native-body,
.omni-tool-native-integration[data-omni-tool-native-collapsed="true"] .omni-tool-native-status {
  display: none;
}

@media (max-width: 980px) {
  .omni-tool-native-integration {
    left: calc(12px + var(--omni-tool-native-safe-left));
    right: calc(12px + var(--omni-tool-native-safe-right));
    transform: none;
    width: auto;
  }

  .omni-tool-native-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .omni-tool-native-integration {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 0;
    border-right: 0;
    bottom: 0;
    left: 0;
    max-height: min(58dvh, 520px);
    max-width: none;
    overflow-y: auto;
    padding: 0.95rem 0.95rem calc(0.95rem + var(--omni-tool-native-safe-bottom));
    right: 0;
    width: 100%;
  }

  .omni-tool-native-header {
    align-items: center;
  }

  .omni-tool-native-subtitle {
    display: none;
  }

  .omni-tool-native-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .omni-tool-native-button,
  .omni-tool-native-collapse {
    min-height: 50px;
  }
}

/* Omni-Bot navigation integration: shared home/tool chrome styling. */
.omni-has-omni-bot-nav-trigger .omni-bot-panel[data-omni-panel-state="collapsed"] {
  display: none !important;
}

.omni-bot-nav-button,
.omni-bot-dock-button,
.omni-coin-top-up-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.omni-bot-nav-button {
  width: 100%;
}

.omni-bot-dock-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.omni-bot-dock-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  pointer-events: auto;
}

.omni-bot-dock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(102, 252, 241, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.94), rgba(9, 13, 18, 0.88)),
    radial-gradient(circle at 28% 18%, rgba(102, 252, 241, 0.18), transparent 48%);
  color: #cffffb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.03) inset;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.omni-bot-dock-button:hover,
.omni-bot-dock-button:focus-visible {
  border-color: rgba(102, 252, 241, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,0.32), 0 0 24px rgba(102,252,241,0.18);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.omni-coin-card {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.35rem;
}

.omni-coin-line {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: max-content;
  max-width: 100%;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(102,252,241,0.24);
  background: rgba(102,252,241,0.08);
  color: #dffeff;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.omni-coin-line[data-omni-coin-state="low"] {
  border-color: rgba(255, 207, 102, 0.32);
  background: rgba(255, 207, 102, 0.1);
  color: #ffe0a1;
}

.omni-coin-line[data-omni-coin-state="unlimited"] {
  border-color: rgba(103, 255, 168, 0.32);
  background: rgba(103, 255, 168, 0.1);
  color: #bafdd5;
}

.omni-coin-top-up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 102, 0.32);
  background: rgba(255, 207, 102, 0.12);
  color: #ffe0a1;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.omni-coin-top-up-button:hover,
.omni-coin-top-up-button:focus-visible {
  border-color: rgba(255, 207, 102, 0.68);
  background: rgba(255, 207, 102, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.omni-bot-panel-shell {
  background:
    radial-gradient(circle at top left, rgba(102, 252, 241, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.16), transparent 38%),
    rgba(31, 40, 51, 0.86);
  border-color: rgba(102,252,241,0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.52), 0 0 0 1px rgba(255,255,255,0.035) inset, 0 0 34px rgba(102,252,241,0.10);
}

.omni-bot-launcher {
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.94), rgba(9, 13, 18, 0.88)),
    radial-gradient(circle at 28% 18%, rgba(102, 252, 241, 0.18), transparent 48%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

@media (max-width: 767px) {
  .omni-bot-dock-button {
    min-height: 2.45rem;
    padding-inline: 0.78rem;
    font-size: 0.7rem;
  }
}

/* === Omni-Bot home-shell alignment pass === */
.omni-bot-header-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0.48rem 0.72rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(102,252,241,0.28);
  background:
    linear-gradient(90deg, rgba(102,252,241,0.14), rgba(139,92,246,0.12)),
    rgba(11,12,16,0.74);
  color: #dffeff;
  box-shadow: 0 0 18px rgba(102,252,241,0.10), inset 0 0 0 1px rgba(255,255,255,0.025);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.omni-bot-header-button:hover,
.omni-bot-header-button:focus-visible {
  border-color: rgba(102,252,241,0.72);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(102,252,241,0.18), 0 0 22px rgba(139,92,246,0.12);
  outline: none;
  transform: translateY(-1px);
}

.omni-bot-header-button i {
  color: #66FCF1;
  filter: drop-shadow(0 0 8px rgba(102,252,241,0.45));
}

#omniSiteSidebar.is-collapsed .omni-bot-header-button {
  width: 2.15rem;
  padding-inline: 0;
}

#omniSiteSidebar.is-collapsed .omni-bot-header-button .sidebar-text {
  display: none !important;
}

.omni-bot-panel[data-omni-panel-state="open"] {
  inset: 0;
  width: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1.25rem + var(--omni-bot-safe-top)) calc(1.25rem + var(--omni-bot-safe-right)) calc(1.25rem + var(--omni-bot-safe-bottom)) calc(1.25rem + env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at 18% 12%, rgba(102,252,241,0.18), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(139,92,246,0.20), transparent 42%),
    linear-gradient(135deg, rgba(2,4,8,0.68), rgba(11,12,16,0.82));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
  width: min(980px, 100%);
  min-height: min(620px, calc(100dvh - 3rem - var(--omni-bot-safe-top) - var(--omni-bot-safe-bottom)));
  max-height: min(760px, calc(100dvh - 2.5rem - var(--omni-bot-safe-top) - var(--omni-bot-safe-bottom)));
  padding: clamp(1rem, 2vw, 1.45rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(102,252,241,0.22);
  background:
    linear-gradient(135deg, rgba(31,40,51,0.78), rgba(11,12,16,0.92)),
    radial-gradient(circle at top left, rgba(102,252,241,0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(139,92,246,0.18), transparent 40%);
  box-shadow: 0 32px 90px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 42px rgba(102,252,241,0.14);
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell::before {
  content: "";
  display: block;
  width: calc(100% + 2.9rem);
  height: 5px;
  margin: calc(-1 * clamp(1rem, 2vw, 1.45rem)) calc(-1 * clamp(1rem, 2vw, 1.45rem)) 1rem;
  background: linear-gradient(90deg, #66FCF1, #8B5CF6, #C53FF2);
  box-shadow: 0 0 22px rgba(102,252,241,0.38);
}

.omni-bot-panel-header {
  align-items: center;
  padding: 0.15rem 0 0.25rem;
}

.omni-bot-panel-header-lead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.omni-bot-brand-mark {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(102,252,241,0.32);
  background: linear-gradient(135deg, rgba(102,252,241,0.24), rgba(139,92,246,0.20)), rgba(11,12,16,0.78);
  color: #66FCF1;
  box-shadow: 0 0 24px rgba(102,252,241,0.18), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.omni-bot-brand-mark i { font-size: 1.18rem; }

.omni-bot-eyebrow {
  color: rgba(102,252,241,0.78);
  letter-spacing: 0.22em;
}

.omni-bot-title {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(102,252,241,0.12);
}

.omni-bot-collapse-button {
  border-radius: 0.9rem;
  background: rgba(11,12,16,0.72);
  border-color: rgba(102,252,241,0.18);
  color: #dffeff;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.omni-bot-collapse-button:hover,
.omni-bot-collapse-button:focus-visible {
  border-color: rgba(102,252,241,0.66);
  background: rgba(102,252,241,0.10);
  outline: none;
  transform: translateY(-1px);
}

.omni-bot-usage-badge {
  border-color: rgba(102,252,241,0.28);
  background: linear-gradient(90deg, rgba(102,252,241,0.12), rgba(139,92,246,0.08));
  box-shadow: 0 0 18px rgba(102,252,241,0.09);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.05em;
}

.omni-bot-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.omni-bot-action-button {
  border-radius: 1rem;
  background: rgba(11,12,16,0.54);
  border-color: rgba(102,252,241,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
  color: rgba(238,252,255,0.92);
}

.omni-bot-stream {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(11,12,16,0.62), rgba(3,8,17,0.72)),
    radial-gradient(circle at 20% 0%, rgba(102,252,241,0.08), transparent 36%);
  border-color: rgba(102,252,241,0.14);
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.omni-bot-message {
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.omni-bot-message--assistant,
.omni-bot-message--info,
.omni-bot-message--loading {
  background: linear-gradient(135deg, rgba(102,252,241,0.12), rgba(31,40,51,0.42));
  border-color: rgba(102,252,241,0.20);
}

.omni-bot-message--user {
  background: linear-gradient(135deg, rgba(139,92,246,0.24), rgba(102,252,241,0.10));
  border-color: rgba(139,92,246,0.30);
}

.omni-bot-prompt-box {
  border: 1px solid rgba(102,252,241,0.14);
  border-radius: 1.35rem;
  background: rgba(11,12,16,0.50);
  padding: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.omni-bot-prompt-input {
  border: 0;
  background: transparent;
  border-radius: 1rem;
  min-height: 58px;
}

.omni-bot-send-button {
  border-radius: 1rem;
  background: linear-gradient(90deg, #66FCF1, #8B5CF6);
  box-shadow: 0 0 22px rgba(102,252,241,0.16);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.omni-bot-footnote {
  border-top: 1px solid rgba(102,252,241,0.10);
  padding-top: 0.65rem;
  color: rgba(238,252,255,0.56);
}

@media (max-width: 860px) {
  .omni-bot-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .omni-bot-panel[data-omni-panel-state="open"] {
    align-items: flex-end;
    padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 0 0;
  }

  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    width: 100%;
    min-height: min(82dvh, 720px);
    max-height: min(88dvh, 760px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell::before {
    width: calc(100% + 2rem);
  }

  .omni-bot-panel-header-lead { gap: 0.7rem; }
  .omni-bot-brand-mark { width: 2.65rem; height: 2.65rem; border-radius: 0.85rem; }
  .omni-bot-title { font-size: 1.35rem; }
  .omni-bot-scope { font-size: 0.72rem; }
  .omni-bot-actions { grid-template-columns: 1fr; }
  .omni-bot-stream { min-height: 160px; }
}



/* === Omni-Bot exact home-page styling + collapsed-nav correction === */
@media (min-width: 768px) {
  body #omniSiteSidebar.is-collapsed {
    width: 5rem !important;
  }

  body #omniSiteSidebar.is-collapsed .omni-bot-header-button {
    display: none !important;
  }
}

.omni-bot-header-button {
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(102, 252, 241, 0.22);
  background: rgba(31, 40, 51, 0.35);
  color: #66FCF1;
  box-shadow: 0 0 14px rgba(102, 252, 241, 0.08);
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.omni-bot-header-button:hover,
.omni-bot-header-button:focus-visible {
  background: rgba(31, 40, 51, 0.55);
  border-color: rgba(102, 252, 241, 0.5);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(102, 252, 241, 0.12);
}

.omni-bot-panel[data-omni-panel-state="open"] {
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell,
.omni-bot-panel-shell {
  background: rgba(31, 40, 51, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(102, 252, 241, 0.1) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 0 0 1px rgba(102,252,241,0.04) inset, 0 0 40px rgba(0,0,0,0.42) !important;
  color: #C5C6C7;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
  width: min(980px, 100%);
  min-height: min(620px, calc(100dvh - 3rem - var(--omni-bot-safe-top) - var(--omni-bot-safe-bottom)));
  max-height: min(760px, calc(100dvh - 2.5rem - var(--omni-bot-safe-top) - var(--omni-bot-safe-bottom)));
  padding: clamp(1rem, 2vw, 1.5rem);
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell::before {
  display: none !important;
}

.omni-bot-panel-shell:hover {
  border-color: rgba(102,252,241,0.26) !important;
  box-shadow: 0 0 0 1px rgba(102,252,241,0.10) inset, 0 0 28px rgba(102,252,241,0.10), 0 24px 70px rgba(0,0,0,0.50) !important;
}

.omni-bot-panel-header {
  border-bottom: 1px solid rgba(31, 40, 51, 0.75);
  padding: 0 0 1rem;
}

.omni-bot-brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #1F2833;
  border: 1px solid rgba(31, 40, 51, 0.75);
  color: #66FCF1;
  box-shadow: 0 0 14px rgba(102,252,241,0.10);
}

.omni-bot-eyebrow {
  color: #45A29E;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.omni-bot-title {
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  text-shadow: none;
}

.omni-bot-scope,
.omni-bot-footnote {
  color: rgba(197, 198, 199, 0.82);
}

.omni-bot-collapse-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(11, 12, 16, 0.55);
  border: 1px solid rgba(31, 40, 51, 0.75);
  color: #66FCF1;
}

.omni-bot-usage-badge {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(102,252,241,0.35);
  background: linear-gradient(90deg, rgba(102,252,241,0.12), rgba(139,92,246,0.10));
  box-shadow: 0 0 18px rgba(102,252,241,0.12);
  color: #CFFCF8;
}

.omni-bot-action-button,
.omni-bot-stream,
.omni-bot-prompt-box,
.omni-bot-message,
.omni-bot-footnote {
  border-radius: 0.75rem !important;
}

.omni-bot-action-button {
  background: rgba(11, 12, 16, 0.40);
  border: 1px solid rgba(31, 40, 51, 0.70);
  color: #C5C6C7;
}

.omni-bot-action-button:hover,
.omni-bot-action-button:focus-visible {
  border-color: rgba(102,252,241,0.50);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(102,252,241,0.10);
}

.omni-bot-stream {
  background: rgba(11, 12, 16, 0.40);
  border: 1px solid rgba(31, 40, 51, 0.75);
  box-shadow: none;
}

.omni-bot-message--assistant,
.omni-bot-message--info,
.omni-bot-message--loading {
  background: rgba(31, 40, 51, 0.65);
  border: 1px solid rgba(102,252,241,0.16);
  color: #E7FFFF;
}

.omni-bot-message--user {
  background: rgba(102,252,241,0.12);
  border: 1px solid rgba(102,252,241,0.24);
  color: #ffffff;
}

.omni-bot-message--warning {
  background: rgba(255, 189, 89, 0.10);
  border: 1px solid rgba(255, 189, 89, 0.28);
  color: #FFE3AA;
}

.omni-bot-prompt-box {
  background: rgba(11, 12, 16, 0.50);
  border: 1px solid rgba(31, 40, 51, 0.75);
  padding: 0.55rem;
}

.omni-bot-prompt-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.5rem;
  color: #ffffff;
}

.omni-bot-prompt-input:focus {
  border-color: #00f2ff;
  box-shadow: 0 0 15px rgba(0,242,255,0.20);
}

.omni-bot-send-button {
  border-radius: 0.5rem;
  border: 0;
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(0,114,255,0.30);
}

.omni-bot-footnote {
  border-top: 1px solid rgba(31, 40, 51, 0.75);
}

@media (max-width: 720px) {
  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}

/* === Omni-Bot Markdown rendering === */
.omni-bot-message-content {
  display: block;
  max-width: 100%;
}

.omni-bot-message-content > * + * {
  margin-top: 0.65rem;
}

.omni-bot-message-content p {
  margin: 0;
  line-height: 1.58;
}

.omni-bot-message-content h3,
.omni-bot-message-content h4,
.omni-bot-message-content h5,
.omni-bot-message-content h6 {
  margin: 0.15rem 0 0.45rem;
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.omni-bot-message-content h3 { font-size: 1.05rem; }
.omni-bot-message-content h4 { font-size: 0.98rem; }
.omni-bot-message-content h5,
.omni-bot-message-content h6 { font-size: 0.92rem; }

.omni-bot-message-content strong {
  color: #ffffff;
  font-weight: 900;
}

.omni-bot-message-content em {
  color: rgba(207, 252, 248, 0.96);
}

.omni-bot-message-content a {
  color: #66FCF1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.omni-bot-message-content ul,
.omni-bot-message-content ol {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.omni-bot-message-content li {
  margin: 0.28rem 0;
  line-height: 1.55;
}

.omni-bot-message-content blockquote {
  margin: 0.6rem 0;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid rgba(102, 252, 241, 0.72);
  border-radius: 0.6rem;
  background: rgba(102, 252, 241, 0.08);
  color: rgba(238, 252, 255, 0.92);
}

.omni-bot-message-content code {
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.38);
  color: #CFFCF8;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12rem 0.32rem;
}

.omni-bot-message-content pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.7rem 0 0;
  padding: 0.9rem;
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.48);
}

.omni-bot-message-content pre code {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  white-space: pre;
}

.omni-bot-message-content hr {
  border: 0;
  border-top: 1px solid rgba(102, 252, 241, 0.18);
  margin: 0.8rem 0;
}

.omni-bot-markdown-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 0.75rem;
}

.omni-bot-message-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 26rem;
  background: rgba(0, 0, 0, 0.24);
}

.omni-bot-message-content th,
.omni-bot-message-content td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.omni-bot-message-content th {
  color: #ffffff;
  background: rgba(102, 252, 241, 0.08);
  font-weight: 900;
}

.omni-bot-message-content tr:last-child td {
  border-bottom: 0;
}

.omni-bot-task-item {
  list-style: none;
  margin-left: -1.1rem !important;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.omni-bot-task-item input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: #66FCF1;
}

/* === Omni-Bot exact home-shell/mobile repair pass === */
#omniSiteSidebar.is-collapsed .omni-bot-header-button,
#omniSiteSidebar.is-collapsed [data-omni-bot-nav-trigger] {
  display: none !important;
}

@media (min-width: 768px) {
  body #omniSiteSidebar.is-collapsed {
    width: 5rem !important;
    min-width: 5rem !important;
    flex-basis: 5rem !important;
  }
}

.omni-bot-header-button {
  appearance: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2.1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(102, 252, 241, 0.22);
  background: rgba(31, 40, 51, 0.35);
  color: #66FCF1;
  box-shadow: 0 0 14px rgba(102, 252, 241, 0.08);
  cursor: pointer;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .20s ease, box-shadow .20s ease, background-color .20s ease, border-color .20s ease, color .20s ease;
  white-space: nowrap;
}

.omni-bot-header-button:hover,
.omni-bot-header-button:focus-visible {
  background: rgba(31, 40, 51, 0.55);
  border-color: rgba(102, 252, 241, 0.50);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(102, 252, 241, 0.12);
  outline: none;
  transform: translateX(2px);
}

.omni-bot-header-button i {
  color: #66FCF1;
  filter: drop-shadow(0 0 8px rgba(102,252,241,0.45));
}

.omni-bot-panel[data-omni-panel-state="open"] {
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-height: none !important;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) calc(1.25rem + env(safe-area-inset-right, 0px)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) calc(1.25rem + env(safe-area-inset-left, 0px)) !important;
  background: rgba(2, 4, 8, 0.72) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  pointer-events: auto;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell,
.omni-bot-panel-shell {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  background: rgba(31, 40, 51, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(102, 252, 241, 0.1) !important;
  border-radius: 0.75rem !important;
  color: #C5C6C7;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5) !important;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
  width: min(980px, 100%) !important;
  min-height: min(620px, calc(100dvh - 3rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
  max-height: min(760px, calc(100dvh - 2.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem;
  padding: clamp(1rem, 2vw, 1.5rem) !important;
}

.omni-bot-panel-shell:hover {
  border-color: rgba(102,252,241,0.26) !important;
  box-shadow:
    0 0 0 1px rgba(102,252,241,0.10) inset,
    0 0 28px rgba(102,252,241,0.10),
    0 0 40px rgba(0, 0, 0, 0.5) !important;
}

.omni-bot-panel-shell::after {
  content:"";
  position:absolute;
  top:-20%;
  left:-60%;
  width: 60%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: translateX(-140%) skewX(-14deg);
  opacity: 0;
  pointer-events:none;
}

.omni-bot-panel-shell:hover::after {
  animation: omniSheen 4.8s ease-in-out infinite;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell::before {
  display: none !important;
}

.omni-bot-panel-header {
  position: relative;
  z-index: 1;
  align-items: center !important;
  border-bottom: 1px solid rgba(31, 40, 51, 0.75);
  padding: 0 0 1rem !important;
}

.omni-bot-brand-mark {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1F2833 !important;
  border: 1px solid rgba(31, 40, 51, 0.75) !important;
  color: #66FCF1 !important;
  box-shadow: 0 0 14px rgba(102,252,241,0.10) !important;
}

.omni-bot-eyebrow {
  color: #45A29E !important;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.omni-bot-title {
  color: #ffffff !important;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-shadow: none !important;
  text-transform: none !important;
}

.omni-bot-scope,
.omni-bot-footnote {
  color: rgba(197, 198, 199, 0.82) !important;
}

.omni-bot-collapse-button {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.5rem !important;
  background: rgba(11, 12, 16, 0.55) !important;
  border: 1px solid rgba(31, 40, 51, 0.75) !important;
  color: #66FCF1 !important;
}

.omni-bot-usage-badge {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  border-radius: 999px !important;
  border: 1px solid rgba(102,252,241,0.35) !important;
  background: linear-gradient(90deg, rgba(102,252,241,0.12), rgba(139,92,246,0.10)) !important;
  box-shadow: 0 0 18px rgba(102,252,241,0.12) !important;
  color: #CFFCF8 !important;
}

.omni-bot-actions,
.omni-bot-stream,
.omni-bot-prompt-box,
.omni-bot-footnote {
  position: relative;
  z-index: 1;
}

.omni-bot-action-button,
.omni-bot-stream,
.omni-bot-prompt-box,
.omni-bot-message,
.omni-bot-footnote {
  border-radius: 0.75rem !important;
}

.omni-bot-action-button {
  background: rgba(11, 12, 16, 0.40) !important;
  border: 1px solid rgba(31, 40, 51, 0.70) !important;
  color: #C5C6C7 !important;
}

.omni-bot-action-button:hover,
.omni-bot-action-button:focus-visible {
  border-color: rgba(102,252,241,0.50) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(102,252,241,0.10) !important;
  transform: translateX(2px) !important;
}

.omni-bot-stream {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: rgba(11, 12, 16, 0.40) !important;
  border: 1px solid rgba(31, 40, 51, 0.75) !important;
  box-shadow: none !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.omni-bot-message {
  white-space: normal !important;
}

.omni-bot-message--assistant,
.omni-bot-message--info,
.omni-bot-message--loading {
  background: rgba(31, 40, 51, 0.65) !important;
  border: 1px solid rgba(102,252,241,0.16) !important;
  color: #E7FFFF !important;
}

.omni-bot-message--user {
  background: rgba(102,252,241,0.12) !important;
  border: 1px solid rgba(102,252,241,0.24) !important;
  color: #ffffff !important;
  white-space: pre-wrap !important;
}

.omni-bot-message--warning {
  background: rgba(255, 189, 89, 0.10) !important;
  border: 1px solid rgba(255, 189, 89, 0.28) !important;
  color: #FFE3AA !important;
}

.omni-bot-prompt-box {
  flex: 0 0 auto !important;
  background: rgba(11, 12, 16, 0.50) !important;
  border: 1px solid rgba(31, 40, 51, 0.75) !important;
  padding: 0.55rem !important;
}

.omni-bot-prompt-input {
  appearance: none;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 0.5rem !important;
  color: #ffffff !important;
  font-size: 16px !important;
  min-height: 3.25rem !important;
  max-height: 34dvh;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
}

.omni-bot-prompt-input:focus {
  border-color: #00f2ff !important;
  box-shadow: 0 0 15px rgba(0,242,255,0.20) !important;
  outline: none !important;
}

.omni-bot-send-button {
  border-radius: 0.5rem !important;
  border: 0 !important;
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%) !important;
  color: #ffffff !important;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  box-shadow: 0 0 20px rgba(0,114,255,0.30) !important;
}

.omni-bot-footnote {
  border-top: 1px solid rgba(31, 40, 51, 0.75) !important;
  padding-top: 0.65rem !important;
}

@media (max-width: 720px) {
  .omni-bot-panel[data-omni-panel-state="open"] {
    align-items: stretch !important;
    justify-content: flex-end !important;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 0 0 !important;
  }

  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    width: 100% !important;
    min-height: 0 !important;
    height: calc(100dvh - 0.65rem - env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100dvh - 0.65rem - env(safe-area-inset-top, 0px)) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 0.9rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .omni-bot-panel-header {
    padding-bottom: 0.75rem !important;
  }

  .omni-bot-brand-mark {
    width: 2.55rem !important;
    height: 2.55rem !important;
  }

  .omni-bot-title {
    font-size: 1.25rem !important;
  }

  .omni-bot-scope,
  .omni-bot-footnote {
    font-size: 0.68rem !important;
  }

  .omni-bot-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }

  .omni-bot-action-button {
    min-height: 2.75rem !important;
    padding: 0.58rem 0.62rem !important;
    font-size: 0.72rem !important;
  }

  .omni-bot-stream {
    min-height: 0 !important;
  }

  .omni-bot-prompt-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
  }

  .omni-bot-prompt-input {
    width: 100% !important;
    min-width: 0 !important;
    resize: none !important;
  }

  .omni-bot-send-button {
    width: auto !important;
    min-width: 4.7rem !important;
    min-height: 3.25rem !important;
    padding-inline: 0.85rem !important;
  }
}

@media (max-width: 420px) {
  .omni-bot-actions {
    grid-template-columns: 1fr !important;
  }

  .omni-bot-prompt-box {
    grid-template-columns: 1fr !important;
  }

  .omni-bot-send-button {
    width: 100% !important;
  }
}

/* === Omni-Bot final polish: home-page style match + mobile usability === */
.omni-bot-panel[data-omni-panel-state="open"] {
  background:
    radial-gradient(circle at 20% 10%, rgba(102, 252, 241, 0.08), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(139, 92, 246, 0.12), transparent 28%),
    rgba(11, 12, 16, 0.86) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell,
.omni-bot-panel-shell {
  background: rgba(31, 40, 51, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(102, 252, 241, 0.1) !important;
  border-radius: 0.75rem !important;
  color: #C5C6C7 !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5) !important;
}

.omni-bot-panel-shell::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent) !important;
}

.omni-bot-eyebrow {
  display: none !important;
}

.omni-bot-title {
  color: #ffffff !important;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0.03em !important;
}

.omni-bot-brand-mark {
  background: #1F2833 !important;
  border: 1px solid rgba(31, 40, 51, 0.75) !important;
  color: #66FCF1 !important;
}

.omni-bot-usage-badge {
  border: 1px solid rgba(102,252,241,0.35) !important;
  background: linear-gradient(90deg, rgba(102,252,241,0.12), rgba(139,92,246,0.10)) !important;
  color: #CFFCF8 !important;
  box-shadow: 0 0 18px rgba(102,252,241,0.12) !important;
}

.omni-bot-action-button,
.omni-bot-stream,
.omni-bot-prompt-box,
.omni-bot-message,
.omni-bot-footnote {
  border-radius: 0.75rem !important;
}

.omni-bot-action-button,
.omni-bot-stream,
.omni-bot-prompt-box {
  background: rgba(11, 12, 16, 0.40) !important;
  border: 1px solid rgba(31, 40, 51, 0.75) !important;
}

.omni-bot-action-button:hover,
.omni-bot-action-button:focus-visible {
  background: rgba(31, 40, 51, 0.5) !important;
  border-color: rgba(102,252,241,0.50) !important;
  color: #66FCF1 !important;
  box-shadow: 0 0 14px rgba(102,252,241,0.10) !important;
}

.omni-bot-message--assistant,
.omni-bot-message--info,
.omni-bot-message--loading {
  background: rgba(31, 40, 51, 0.65) !important;
  border: 1px solid rgba(102,252,241,0.16) !important;
  color: #E7FFFF !important;
}

.omni-bot-message--user {
  background: rgba(102,252,241,0.12) !important;
  border: 1px solid rgba(102,252,241,0.24) !important;
  color: #ffffff !important;
}

.omni-bot-prompt-input {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 0.5rem !important;
  color: #ffffff !important;
  font-size: 16px !important;
}

.omni-bot-prompt-input:focus {
  border-color: #00f2ff !important;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2) !important;
}

.omni-bot-send-button {
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 0 20px rgba(0,114,255,0.30) !important;
}

.omni-bot-footnote {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-top: 0.5rem !important;
  border-top: 1px solid rgba(31, 40, 51, 0.75) !important;
  color: rgba(197, 198, 199, 0.58) !important;
  font-size: 0.68rem !important;
}

.omni-bot-powered-link {
  color: rgba(197, 198, 199, 0.66) !important;
  text-decoration: none !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.omni-bot-powered-link:hover,
.omni-bot-powered-link:focus-visible {
  color: #66FCF1 !important;
  text-decoration: underline !important;
  outline: none !important;
}

@media (max-width: 720px) {
  .omni-bot-panel[data-omni-panel-state="open"] {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 0 0 !important;
  }

  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    width: 100vw !important;
    height: calc(100dvh - 0.35rem - env(safe-area-inset-top, 0px)) !important;
    min-height: calc(100dvh - 0.35rem - env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100dvh - 0.35rem - env(safe-area-inset-top, 0px)) !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(42dvh, 1fr) auto auto !important;
    gap: 0.5rem !important;
    padding: 0.68rem 0.68rem calc(0.68rem + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
  }

  .omni-bot-panel-header {
    padding-bottom: 0.45rem !important;
    gap: 0.55rem !important;
  }

  .omni-bot-panel-header-lead {
    min-width: 0 !important;
    gap: 0.55rem !important;
  }

  .omni-bot-brand-mark {
    width: 2.3rem !important;
    height: 2.3rem !important;
    border-radius: 0.65rem !important;
  }

  .omni-bot-title {
    font-size: 1.08rem !important;
    line-height: 1.05 !important;
  }

  .omni-bot-scope {
    font-size: 0.66rem !important;
    line-height: 1.25 !important;
    max-width: 58vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .omni-bot-collapse-button {
    width: 2.15rem !important;
    height: 2.15rem !important;
    min-width: 2.15rem !important;
  }

  .omni-bot-usage-badge {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.34rem 0.55rem !important;
    font-size: 0.66rem !important;
  }

  .omni-bot-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.38rem !important;
  }

  .omni-bot-action-button {
    min-height: 2.2rem !important;
    height: auto !important;
    padding: 0.4rem 0.45rem !important;
    font-size: 0.62rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .omni-bot-stream {
    min-height: 42dvh !important;
    height: auto !important;
    overflow-y: auto !important;
    padding: 0.62rem !important;
    scroll-padding-bottom: 1rem !important;
  }

  .omni-bot-message {
    max-width: 100% !important;
    padding: 0.62rem !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  .omni-bot-prompt-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 0.45rem !important;
    padding: 0.45rem !important;
  }

  .omni-bot-prompt-input {
    min-height: 3rem !important;
    max-height: 20dvh !important;
    padding: 0.68rem !important;
    resize: none !important;
  }

  .omni-bot-send-button {
    min-height: 3rem !important;
    min-width: 4.15rem !important;
    padding: 0 0.7rem !important;
    font-size: 0.72rem !important;
  }

  .omni-bot-footnote {
    justify-content: center !important;
    padding-top: 0.35rem !important;
    font-size: 0.58rem !important;
  }
}

@media (max-width: 420px) {
  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    grid-template-rows: auto auto auto minmax(45dvh, 1fr) auto auto !important;
  }

  .omni-bot-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .omni-bot-action-button {
    min-height: 2.05rem !important;
    padding: 0.35rem 0.35rem !important;
    font-size: 0.58rem !important;
  }

  .omni-bot-stream {
    min-height: 45dvh !important;
  }

  .omni-bot-prompt-box {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .omni-bot-send-button {
    width: auto !important;
    min-width: 3.95rem !important;
  }
}


/* Omni-Bot attachment, Markdown copy block, and tool-control pass. */
.omni-bot-tool-control-toggle {
  align-items: center;
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 16px;
  color: rgba(238, 252, 255, 0.86);
  cursor: pointer;
  display: flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 0.55rem;
  line-height: 1.25;
  padding: 0.55rem 0.68rem;
}

.omni-bot-tool-control-toggle input {
  accent-color: #66fcf1;
  flex: 0 0 auto;
}

.omni-bot-prompt-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "input send"
    "tools tools";
}

.omni-bot-prompt-input { grid-area: input; }
.omni-bot-send-button { grid-area: send; }

.omni-bot-prompt-tools {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  grid-area: tools;
  min-width: 0;
}

.omni-bot-attach-button {
  appearance: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 999px;
  color: rgba(238, 252, 255, 0.9);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
}

.omni-bot-attachment-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.omni-bot-attachment-chip {
  align-items: center;
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 999px;
  color: rgba(238, 252, 255, 0.78);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 750;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 28px;
  overflow: hidden;
  padding: 0.24rem 0.34rem 0.24rem 0.54rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omni-bot-attachment-remove {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  color: rgba(238, 252, 255, 0.82);
  cursor: pointer;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.omni-bot-code-block {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 16px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.omni-bot-code-toolbar {
  align-items: center;
  background: rgba(102, 252, 241, 0.08);
  border-bottom: 1px solid rgba(102, 252, 241, 0.12);
  color: rgba(238, 252, 255, 0.66);
  display: flex;
  font-size: 0.66rem;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 0.42rem 0.55rem;
  text-transform: uppercase;
}

.omni-bot-code-toolbar button {
  appearance: none;
  background: rgba(102, 252, 241, 0.16);
  border: 1px solid rgba(102, 252, 241, 0.22);
  border-radius: 999px;
  color: #cffffb;
  cursor: pointer;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 0.24rem 0.48rem;
}

.omni-bot-code-block pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.72rem;
  white-space: pre;
}

.omni-bot-code-block code {
  color: #eaffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.omni-bot-media-result {
  display: grid;
  gap: 0.5rem;
  max-width: 100%;
}

.omni-bot-media-result img,
.omni-bot-media-result video {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 14px;
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 720px) {
  .omni-bot-panel {
    max-height: calc(94dvh - env(safe-area-inset-top, 0px));
  }

  .omni-bot-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .omni-bot-action-button {
    font-size: 0.7rem;
    min-height: 38px;
    padding: 0.46rem 0.5rem;
    text-align: center;
  }

  .omni-bot-stream {
    min-height: 260px;
  }

  .omni-bot-prompt-box {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .omni-bot-send-button {
    min-height: 46px;
    min-width: 68px;
    padding: 0 0.7rem;
    width: auto;
  }

  .omni-bot-prompt-input {
    min-height: 46px;
    resize: none;
  }
}

@media (max-width: 420px) {
  .omni-bot-prompt-box {
    flex-direction: initial;
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .omni-bot-send-button {
    width: auto;
  }

  .omni-bot-stream {
    min-height: 240px;
  }
}

/* Omni-Bot Phase 1 mode routing */
.omni-bot-mode-toolbar {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.omni-bot-mode-toggle {
  appearance: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 999px;
  color: rgba(238, 252, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  min-height: 34px;
  overflow: hidden;
  padding: 0.42rem 0.5rem;
  text-overflow: ellipsis;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.omni-bot-mode-toggle:hover,
.omni-bot-mode-toggle:focus-visible {
  border-color: rgba(102, 252, 241, 0.64);
  color: #eaffff;
  outline: none;
  transform: translateY(-1px);
}

.omni-bot-mode-toggle.is-active,
.omni-bot-mode-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(102, 252, 241, 0.22), rgba(157, 78, 221, 0.2));
  border-color: rgba(102, 252, 241, 0.58);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(102, 252, 241, 0.08), 0 10px 24px rgba(102, 252, 241, 0.08);
}

.omni-bot-mode-progress {
  background: rgba(3, 8, 17, 0.72);
  border: 1px solid rgba(102, 252, 241, 0.18);
  border-radius: 16px;
  color: rgba(238, 252, 255, 0.88);
  display: grid;
  gap: 0.46rem;
  padding: 0.62rem 0.7rem;
}

.omni-bot-mode-progress[hidden] {
  display: none !important;
}

.omni-bot-mode-progress-label {
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

.omni-bot-mode-progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.omni-bot-mode-progress-meter {
  background: linear-gradient(90deg, #66fcf1, #9d4edd);
  border-radius: inherit;
  height: 100%;
  transition: width 220ms ease;
  width: 0%;
}

.omni-bot-mode-progress[data-state="running"] .omni-bot-mode-progress-meter {
  animation: omni-bot-progress-pulse 1.35s ease-in-out infinite;
}

@keyframes omni-bot-progress-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.omni-bot-panel[data-omni-bot-mode="create-image"] .omni-bot-prompt-input,
.omni-bot-panel[data-omni-bot-mode="create-video"] .omni-bot-prompt-input,
.omni-bot-panel[data-omni-bot-mode="edit-image"] .omni-bot-prompt-input,
.omni-bot-panel[data-omni-bot-mode="edit-video"] .omni-bot-prompt-input {
  border-color: rgba(157, 78, 221, 0.42);
  box-shadow: 0 0 0 1px rgba(157, 78, 221, 0.08);
}

@media (max-width: 720px) {
  .omni-bot-mode-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.34rem;
  }

  .omni-bot-mode-toggle {
    font-size: 0.66rem;
    min-height: 38px;
    padding-inline: 0.42rem;
  }
}

/* Omni-Bot Phase 2 universal media/file cards */
:root {
  --omni-media-action-size: 36px;
  --omni-media-action-gap: 6px;
  --omni-media-action-radius: 12px;
}

.omni-media-card {
  background: rgba(3, 8, 17, 0.64);
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  color: rgba(238, 252, 255, 0.94);
  display: grid;
  max-width: min(100%, 420px);
  overflow: hidden;
  position: relative;
}

.omni-media-card__frame {
  background: rgba(0, 0, 0, 0.22);
  display: block;
  min-height: 0;
  position: relative;
}

.omni-media-card__preview {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 92px;
  overflow: hidden;
}

.omni-media-card__preview img,
.omni-media-card__preview video {
  background: rgba(0, 0, 0, 0.28);
  border: 0;
  border-radius: 0;
  display: block;
  max-height: 340px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.omni-media-card__preview audio {
  max-width: 100%;
  width: min(320px, 100%);
}

.omni-media-card__file-preview {
  align-items: center;
  display: grid;
  gap: 0.42rem;
  justify-items: center;
  min-height: 132px;
  padding: 1rem;
  text-align: center;
  width: 100%;
}

.omni-media-card__file-preview--audio {
  min-height: 118px;
}

.omni-media-card__file-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(102, 252, 241, 0.16), rgba(157, 78, 221, 0.14));
  border: 1px solid rgba(102, 252, 241, 0.22);
  border-radius: 18px;
  color: #eaffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  letter-spacing: 0.05em;
  min-width: 58px;
  padding: 0 0.72rem;
}

.omni-media-card__file-title {
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.omni-media-card__file-meta,
.omni-media-card__meta {
  color: rgba(238, 252, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
}

.omni-media-card__actions {
  align-items: center;
  display: flex;
  gap: var(--omni-media-action-gap);
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
}

.omni-media-card__action {
  align-items: center;
  appearance: none;
  backdrop-filter: blur(14px);
  background: rgba(3, 8, 17, 0.74);
  border: 1px solid rgba(102, 252, 241, 0.22);
  border-radius: var(--omni-media-action-radius);
  color: rgba(238, 252, 255, 0.94);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  min-height: var(--omni-media-action-size);
  min-width: var(--omni-media-action-size);
  padding: 0 0.62rem;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.omni-media-card__action:hover,
.omni-media-card__action:focus-visible {
  background: rgba(102, 252, 241, 0.16);
  border-color: rgba(102, 252, 241, 0.6);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.omni-media-card__action:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.omni-media-card__body {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.58rem 0.72rem 0.68rem;
}

.omni-media-card__name {
  color: rgba(238, 252, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omni-media-card__status {
  color: rgba(102, 252, 241, 0.9);
  font-size: 0.68rem;
  font-weight: 900;
  min-height: 0.9rem;
}

.omni-media-card__status[data-state="error"] {
  color: #ffb4c4;
}

.omni-media-card__status[data-state="running"] {
  color: #f7e7a1;
}

.omni-bot-file-fallback {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 14px;
  color: rgba(238, 252, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.7rem;
}

.omni-bot-media-result .omni-media-card + .omni-media-card {
  margin-top: 0.1rem;
}

@media (max-width: 640px) {
  .omni-media-card {
    max-width: 100%;
  }

  .omni-media-card__actions {
    background: rgba(3, 8, 17, 0.62);
    border-top: 1px solid rgba(102, 252, 241, 0.12);
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
    position: static;
    width: 100%;
  }

  .omni-media-card__action {
    min-height: 40px;
    width: 100%;
  }

  .omni-media-card__preview img,
  .omni-media-card__preview video {
    max-height: 260px;
  }

  .omni-media-card__body {
    padding: 0.62rem 0.7rem calc(0.68rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Omni-Bot History */
.omni-bot-header-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.omni-bot-history-open {
  align-items: center;
  appearance: none;
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 14px;
  color: rgba(238, 252, 255, 0.9);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.68rem;
}

.omni-bot-history-open:hover,
.omni-bot-history-open:focus-visible {
  background: rgba(102, 252, 241, 0.16);
  border-color: rgba(102, 252, 241, 0.56);
  color: #ffffff;
  outline: none;
}

.omni-bot-panel-shell {
  position: relative;
}

.omni-bot-history-view {
  backdrop-filter: blur(22px);
  background:
    radial-gradient(circle at top right, rgba(102, 252, 241, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(157, 78, 221, 0.18), transparent 36%),
    rgba(2, 7, 15, 0.97);
  border-radius: 22px;
  color: #eefcff;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  inset: 0;
  overflow: hidden;
  padding: 0.92rem;
  position: absolute;
  z-index: 12;
}

.omni-bot-history-view[hidden] {
  display: none !important;
}

.omni-bot-history-header,
.omni-bot-history-search-row,
.omni-bot-history-filters,
.omni-bot-history-detail-header,
.omni-bot-history-detail-actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.omni-bot-history-header,
.omni-bot-history-detail-header {
  justify-content: space-between;
}

.omni-bot-history-eyebrow {
  color: rgba(102, 252, 241, 0.7);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  margin: 0 0 0.15rem;
  text-transform: uppercase;
}

.omni-bot-history-header h3,
.omni-bot-history-detail-header h4,
.omni-bot-history-assets h5 {
  color: #ffffff;
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
  margin: 0;
}

.omni-bot-history-detail-header p {
  color: rgba(238, 252, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 750;
  margin: 0.24rem 0 0;
}

.omni-bot-history-close,
.omni-bot-history-new,
.omni-bot-history-detail-actions button {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(102, 252, 241, 0.18);
  border-radius: 13px;
  color: rgba(238, 252, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 38px;
  padding: 0 0.62rem;
}

.omni-bot-history-close {
  border-radius: 14px;
  font-size: 1.24rem;
  line-height: 1;
  min-width: 40px;
  padding: 0;
}

.omni-bot-history-close:hover,
.omni-bot-history-close:focus-visible,
.omni-bot-history-new:hover,
.omni-bot-history-new:focus-visible,
.omni-bot-history-detail-actions button:hover,
.omni-bot-history-detail-actions button:focus-visible {
  background: rgba(102, 252, 241, 0.14);
  border-color: rgba(102, 252, 241, 0.5);
  color: #ffffff;
  outline: none;
}

.omni-bot-history-detail-actions button.is-danger {
  border-color: rgba(255, 106, 136, 0.28);
  color: #ffc2ce;
}

.omni-bot-history-search-row {
  align-items: stretch;
}

.omni-bot-history-search {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 14px;
  color: #ffffff;
  flex: 1 1 auto;
  font: inherit;
  font-size: 0.82rem;
  min-height: 42px;
  min-width: 0;
  padding: 0 0.78rem;
}

.omni-bot-history-search:focus {
  border-color: rgba(102, 252, 241, 0.58);
  outline: none;
}

.omni-bot-history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.omni-bot-history-filters select {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 12px;
  color: rgba(238, 252, 255, 0.88);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 36px;
  min-width: 0;
  padding: 0 0.52rem;
}

.omni-bot-history-runtime {
  background: rgba(102, 252, 241, 0.075);
  border: 1px solid rgba(102, 252, 241, 0.12);
  border-radius: 13px;
  color: rgba(190, 252, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 0.48rem 0.62rem;
}

.omni-bot-history-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 0;
  overflow: hidden;
}

.omni-bot-history-list,
.omni-bot-history-detail {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.omni-bot-history-list {
  display: grid;
  gap: 0.52rem;
}

.omni-bot-history-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(102, 252, 241, 0.12);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 0.28rem;
  padding: 0.7rem;
}

.omni-bot-history-card:hover,
.omni-bot-history-card:focus-visible,
.omni-bot-history-card.is-selected {
  background: rgba(102, 252, 241, 0.11);
  border-color: rgba(102, 252, 241, 0.44);
  outline: none;
}

.omni-bot-history-card-title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.25;
}

.omni-bot-history-card-meta,
.omni-bot-history-card p,
.omni-bot-history-empty {
  color: rgba(238, 252, 255, 0.64);
  font-size: 0.7rem;
  line-height: 1.35;
  margin: 0;
}

.omni-bot-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.omni-bot-history-tags span,
.omni-bot-history-tag {
  align-items: center;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 7px;
  color: rgba(208, 252, 255, 0.88);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 850;
  gap: 0.22rem;
  line-height: 1.1;
  max-width: min(8.4rem, 48%);
  overflow: hidden;
  padding: 0.12rem 0.3rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omni-bot-history-tag b {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 0.05rem 0.16rem;
  text-transform: uppercase;
}

.omni-bot-history-detail {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.7rem;
}

.omni-bot-history-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.omni-bot-history-messages {
  display: grid;
  gap: 0.45rem;
}

.omni-bot-history-message {
  border-radius: 14px;
  display: grid;
  gap: 0.18rem;
  padding: 0.6rem;
}

.omni-bot-history-message--user {
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid rgba(102, 252, 241, 0.16);
}

.omni-bot-history-message--assistant {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.omni-bot-history-message strong {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
}

.omni-bot-history-message p {
  color: rgba(238, 252, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.38;
  margin: 0;
  overflow-wrap: anywhere;
}

.omni-bot-history-assets {
  display: grid;
  gap: 0.48rem;
}

.omni-bot-history-asset-fallback {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(102, 252, 241, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 0.18rem;
  padding: 0.64rem;
}

.omni-bot-history-asset-fallback strong {
  color: #ffffff;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.omni-bot-history-asset-fallback span,
.omni-bot-history-asset-fallback p {
  color: rgba(238, 252, 255, 0.62);
  font-size: 0.68rem;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 720px) {
  .omni-bot-header-actions {
    gap: 0.35rem;
  }

  .omni-bot-history-open {
    font-size: 0.68rem;
    min-height: 38px;
    padding: 0 0.55rem;
  }

  .omni-bot-history-view {
    border-radius: 0;
    inset: -1rem;
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 0.75rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }

  .omni-bot-history-header,
  .omni-bot-history-search-row,
  .omni-bot-history-detail-header {
    align-items: stretch;
  }

  .omni-bot-history-search-row,
  .omni-bot-history-detail-header {
    flex-direction: column;
  }

  .omni-bot-history-filters,
  .omni-bot-history-grid {
    grid-template-columns: 1fr;
  }

  .omni-bot-history-grid {
    overflow: auto;
  }

  .omni-bot-history-list,
  .omni-bot-history-detail {
    overflow: visible;
  }
}

.omni-bot-history-asset-item {
  display: grid;
  gap: 0.42rem;
}

.omni-bot-history-asset-actions {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.omni-bot-history-asset-actions button {
  appearance: none;
  background: rgba(102, 252, 241, 0.075);
  border: 1px solid rgba(102, 252, 241, 0.16);
  border-radius: 12px;
  color: rgba(238, 252, 255, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  min-height: 36px;
  padding: 0 0.48rem;
}

.omni-bot-history-asset-actions button:hover,
.omni-bot-history-asset-actions button:focus-visible {
  background: rgba(102, 252, 241, 0.14);
  border-color: rgba(102, 252, 241, 0.48);
  color: #ffffff;
  outline: none;
}

@media (max-width: 720px) {
  .omni-bot-history-asset-actions {
    grid-template-columns: 1fr;
  }
}

/* Omni-Bot testing debugger. Hidden entirely unless omni-tool-debugger.js runs on approved debug hosts. */
.omni-tool-debugger {
  --omni-debug-bg: rgba(4, 8, 18, 0.96);
  --omni-debug-border: rgba(102, 252, 241, 0.26);
  --omni-debug-text: rgba(240, 253, 255, 0.94);
  --omni-debug-muted: rgba(203, 238, 243, 0.68);
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 2147482500;
  color: var(--omni-debug-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.omni-tool-debugger * {
  box-sizing: border-box;
}

.omni-debug-badge,
.omni-debugger-actions button {
  appearance: none;
  border: 1px solid rgba(102, 252, 241, 0.34);
  background: linear-gradient(135deg, rgba(102, 252, 241, 0.18), rgba(126, 87, 255, 0.2));
  color: #f7feff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  min-height: 34px;
  touch-action: manipulation;
}

.omni-debug-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 26px rgba(102, 252, 241, 0.16);
  padding: 0.5rem 0.8rem;
  pointer-events: auto;
}

.omni-debug-badge::before {
  content: '';
  display: inline-block;
  width: 0.52rem;
  height: 0.52rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: #66fcf1;
  box-shadow: 0 0 12px rgba(102, 252, 241, 0.85);
}

.omni-debugger-panel {
  display: none;
  width: min(720px, calc(100vw - 28px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(78vh, 760px);
  margin-top: 0.65rem;
  border: 1px solid var(--omni-debug-border);
  border-radius: 22px;
  background: var(--omni-debug-bg);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.omni-tool-debugger[data-open="true"] .omni-debugger-panel {
  display: block;
}

.omni-tool-debugger[data-open="true"] .omni-debug-badge {
  display: none;
}

.omni-debugger-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border-bottom: 1px solid rgba(102, 252, 241, 0.14);
}

.omni-debugger-header strong {
  display: block;
  font-size: 0.98rem;
}

.omni-debugger-header span,
.omni-debugger-status,
.omni-debug-grid small,
.omni-debug-row span,
.omni-debug-route-status small,
.omni-debug-bridge-card small {
  color: var(--omni-debug-muted);
}

.omni-debugger-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.36rem;
}

.omni-debugger-actions button {
  border-radius: 12px;
  font-size: 0.68rem;
  padding: 0 0.52rem;
}

.omni-debug-badge:hover,
.omni-debug-badge:focus-visible,
.omni-debugger-actions button:hover,
.omni-debugger-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.omni-debugger-status {
  border-bottom: 1px solid rgba(102, 252, 241, 0.1);
  font-size: 0.76rem;
  padding: 0.52rem 0.85rem;
}

.omni-debugger-status[data-tone="success"] { color: #9ffcf6; }
.omni-debugger-status[data-tone="warning"] { color: #ffe29a; }
.omni-debugger-status[data-tone="error"] { color: #ffaaa8; }

.omni-debugger-body {
  max-height: calc(min(78vh, 760px) - 112px);
  overflow: auto;
  padding: 0.85rem;
}

.omni-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.omni-debug-grid > div,
.omni-debug-route-status,
.omni-debug-bridge-card,
.omni-debug-row,
.omni-debug-empty {
  border: 1px solid rgba(102, 252, 241, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.58rem;
}

.omni-debug-grid span,
.omni-debug-route-status span,
.omni-debug-bridge-card span {
  display: block;
  color: rgba(182, 230, 237, 0.72);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.omni-debug-grid strong,
.omni-debug-route-status strong,
.omni-debug-bridge-card strong {
  display: block;
  margin-top: 0.22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omni-debugger-sections {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.82rem;
}

.omni-debugger-sections details {
  border: 1px solid rgba(102, 252, 241, 0.12);
  border-radius: 16px;
  background: rgba(2, 5, 12, 0.42);
  overflow: hidden;
}

.omni-debugger-sections summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 0.62rem 0.7rem;
}

.omni-debugger-sections summary::-webkit-details-marker {
  display: none;
}

.omni-debugger-sections summary b {
  color: #66fcf1;
  float: right;
}

.omni-debug-list {
  display: grid;
  gap: 0.42rem;
  padding: 0 0.58rem 0.58rem;
}

.omni-debug-row {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.omni-debug-row strong,
.omni-debug-row span,
.omni-debug-row code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.omni-debug-row strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
}

.omni-debug-row code {
  display: block;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(218, 249, 255, 0.88);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  padding: 0.32rem 0.42rem;
  white-space: nowrap;
}

.omni-debug-row.is-error {
  border-color: rgba(255, 118, 118, 0.34);
  background: rgba(255, 82, 82, 0.08);
}

.omni-debug-row--muted {
  opacity: 0.78;
}

.omni-debug-empty {
  color: var(--omni-debug-muted);
  font-size: 0.76rem;
}

.omni-debug-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  padding: 0 0.58rem 0.58rem;
}

.omni-debug-pill {
  border: 1px solid rgba(102, 252, 241, 0.18);
  border-radius: 999px;
  background: rgba(102, 252, 241, 0.08);
  color: #eaffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.52rem;
}

.omni-debug-bridge-card.is-ok {
  border-color: rgba(102, 252, 241, 0.34);
  background: rgba(102, 252, 241, 0.08);
}

.omni-debug-highlight-control {
  outline: 3px solid rgba(102, 252, 241, 0.92) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 7px rgba(102, 252, 241, 0.18), 0 0 34px rgba(102, 252, 241, 0.36) !important;
}

@media (max-width: 720px) {
  .omni-tool-debugger {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .omni-debug-badge {
    width: 100%;
    min-height: 44px;
  }

  .omni-debugger-panel {
    width: 100%;
    max-height: min(82vh, 720px);
    border-radius: 18px;
  }

  .omni-debugger-header,
  .omni-debugger-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .omni-debugger-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .omni-debugger-actions button {
    min-height: 40px;
  }

  .omni-debug-grid {
    grid-template-columns: 1fr;
  }
}

/* === Omni-Bot post-overhaul fix phase: compact mobile controls, mode drawer, and home-page visual match === */
.omni-bot-panel,
.omni-bot-panel * {
  box-sizing: border-box;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell.glass-panel,
.omni-bot-panel-shell {
  background:
    radial-gradient(circle at 18% 0%, rgba(102,252,241,0.10), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(139,92,246,0.14), transparent 30%),
    rgba(31,40,51,0.72) !important;
  border: 1px solid rgba(31,40,51,0.74) !important;
  border-left: 4px solid #66FCF1 !important;
  border-radius: 0.75rem !important;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.28),
    0 0 0 1px rgba(102,252,241,0.08) inset !important;
  color: #C5C6C7 !important;
  overflow: hidden !important;
}

.omni-bot-panel-shell.glass-panel::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 60%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: translateX(-140%) skewX(-14deg);
  opacity: 0;
  pointer-events: none;
}

.omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell.glass-panel:hover::after {
  animation: omniSheen 4.8s ease-in-out infinite;
}

.omni-bot-title,
.omni-bot-eyebrow,
.omni-bot-active-mode-label {
  color: #66FCF1 !important;
}

.omni-bot-scope,
.omni-bot-footnote,
.omni-bot-mode-meta {
  color: rgba(197,198,199,0.78) !important;
}

.omni-bot-collapse-button,
.omni-bot-history-open,
.omni-bot-mode-drawer-trigger,
.omni-bot-action-button,
.omni-bot-mode-toggle {
  background: rgba(11,12,16,0.54) !important;
  border-color: rgba(31,40,51,0.92) !important;
  color: #C5C6C7 !important;
}

.omni-bot-collapse-button:hover,
.omni-bot-history-open:hover,
.omni-bot-mode-drawer-trigger:hover,
.omni-bot-action-button:hover,
.omni-bot-mode-toggle:hover,
.omni-bot-mode-toggle:focus-visible,
.omni-bot-action-button:focus-visible {
  border-color: rgba(102,252,241,0.52) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(102,252,241,0.12) !important;
}

.omni-bot-send-button {
  background: linear-gradient(90deg, #66FCF1, #8B5CF6) !important;
  color: #0B0C10 !important;
  box-shadow: 0 0 22px rgba(102,252,241,0.18) !important;
}

.omni-bot-prompt-input:focus {
  border-color: #66FCF1 !important;
  box-shadow: 0 0 15px rgba(102,252,241,0.20) !important;
}

.omni-bot-usage-badge,
.omni-bot-mode-meta {
  flex: 0 0 auto !important;
}

.omni-bot-mode-drawer {
  display: grid;
  flex: 0 0 auto;
  gap: 0.36rem;
  position: relative;
  z-index: 2;
}

.omni-bot-mode-drawer-trigger {
  align-items: center;
  appearance: none;
  border: 1px solid rgba(102,252,241,0.18);
  border-radius: 0.75rem;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 0.16rem 0.5rem;
  grid-template-columns: auto 1fr auto auto;
  min-height: 42px;
  padding: 0.46rem 0.62rem;
  text-align: left;
  width: 100%;
}

.omni-bot-mode-drawer-kicker {
  color: rgba(197,198,199,0.70);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.omni-bot-active-mode-label {
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.omni-bot-mode-cost {
  background: rgba(102,252,241,0.10);
  border: 1px solid rgba(102,252,241,0.20);
  border-radius: 999px;
  color: #E7FFFF;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.44rem;
  white-space: nowrap;
}

.omni-bot-mode-drawer-icon {
  color: #66FCF1;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.omni-bot-mode-drawer.is-open .omni-bot-mode-drawer-icon {
  transform: rotate(180deg) translateY(1px);
}

.omni-bot-mode-drawer .omni-bot-mode-toolbar {
  display: grid !important;
  gap: 0.35rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: max-height 180ms ease, opacity 160ms ease, transform 160ms ease;
}

.omni-bot-mode-drawer.is-open .omni-bot-mode-toolbar {
  max-height: 260px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.omni-bot-mode-toggle {
  align-items: center;
  border-radius: 0.7rem !important;
  display: grid;
  gap: 0.12rem;
  justify-items: start;
  min-height: 36px !important;
  padding: 0.34rem 0.46rem !important;
  white-space: normal !important;
}

.omni-bot-mode-toggle span {
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
}

.omni-bot-mode-toggle small {
  color: rgba(197,198,199,0.72);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
}

.omni-bot-mode-toggle.is-active,
.omni-bot-mode-toggle[aria-pressed="true"] {
  background: rgba(102,252,241,0.12) !important;
  border-color: rgba(102,252,241,0.48) !important;
  color: #ffffff !important;
}

.omni-bot-mode-toggle.is-active small,
.omni-bot-mode-toggle[aria-pressed="true"] small {
  color: rgba(231,255,255,0.86);
}

.omni-bot-mode-meta {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 0.85rem;
}

.omni-bot-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

.omni-bot-action-button {
  border-radius: 999px !important;
  flex: 1 1 calc(50% - 0.35rem) !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
  min-height: 30px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0.34rem 0.52rem !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.omni-bot-stream {
  border-color: rgba(31,40,51,0.86) !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

@media (min-width: 721px) {
  .omni-bot-actions {
    max-height: 72px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .omni-bot-action-button {
    flex-basis: calc(25% - 0.35rem) !important;
  }
}

@media (max-width: 720px) {
  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    gap: 0.52rem !important;
    padding: 0.72rem 0.72rem calc(0.72rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .omni-bot-panel-header {
    padding-bottom: 0.2rem !important;
  }

  .omni-bot-usage-badge {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .omni-bot-mode-drawer-trigger {
    min-height: 38px;
    padding: 0.38rem 0.52rem;
  }

  .omni-bot-active-mode-label {
    font-size: 0.74rem;
  }

  .omni-bot-mode-cost {
    font-size: 0.62rem;
    padding: 0.14rem 0.36rem;
  }

  .omni-bot-mode-drawer .omni-bot-mode-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .omni-bot-mode-toggle {
    min-height: 32px !important;
    padding: 0.28rem 0.38rem !important;
  }

  .omni-bot-mode-toggle span {
    font-size: 0.62rem;
  }

  .omni-bot-mode-toggle small {
    font-size: 0.52rem;
  }

  .omni-bot-mode-meta {
    font-size: 0.6rem;
  }

  .omni-bot-actions {
    max-height: 48px !important;
    overflow-y: auto !important;
    padding-right: 0.08rem;
    scrollbar-width: thin;
  }

  .omni-bot-action-button {
    flex: 1 1 calc(50% - 0.35rem) !important;
    font-size: 0.6rem !important;
    min-height: 23px !important;
    padding: 0.22rem 0.38rem !important;
  }

  .omni-bot-stream {
    min-height: 24dvh !important;
  }

  .omni-bot-prompt-box {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 420px) {
  .omni-bot-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 52px !important;
  }

  .omni-bot-action-button {
    width: 100% !important;
  }

  .omni-bot-mode-drawer-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
}

@keyframes omniSheen {
  0% { transform: translateX(-140%) skewX(-14deg); opacity: 0; }
  8% { opacity: .75; }
  28% { opacity: .75; }
  40% { transform: translateX(140%) skewX(-14deg); opacity: 0; }
  100% { transform: translateX(140%) skewX(-14deg); opacity: 0; }
}

/* Omni-Bot mobile fit + History cleanup patch. */
@media (max-width: 720px) {
  .omni-bot-panel[data-omni-panel-state="open"] {
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    left: max(8px, env(safe-area-inset-left, 0px)) !important;
    max-height: none !important;
    right: max(8px, env(safe-area-inset-right, 0px)) !important;
    top: max(8px, env(safe-area-inset-top, 0px)) !important;
    width: auto !important;
  }

  .omni-bot-panel[data-omni-panel-state="open"] .omni-bot-panel-shell {
    border: 1px solid rgba(102, 252, 241, 0.24) !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0.58rem 0.58rem calc(0.58rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .omni-bot-panel-header {
    align-items: flex-start !important;
    gap: 0.48rem !important;
    min-height: 0 !important;
  }

  .omni-bot-eyebrow {
    font-size: 0.54rem !important;
    letter-spacing: 0.13em !important;
  }

  .omni-bot-title {
    font-size: 0.98rem !important;
    line-height: 1.05 !important;
    margin-top: 0.1rem !important;
  }

  .omni-bot-scope {
    display: none !important;
  }

  .omni-bot-collapse-button {
    border-radius: 13px !important;
    font-size: 1.05rem !important;
    height: 36px !important;
    min-height: 36px !important;
    width: 36px !important;
  }

  .omni-bot-history-open {
    font-size: 0.62rem !important;
    min-height: 34px !important;
    padding: 0 0.5rem !important;
  }

  .omni-bot-usage-badge,
  .omni-bot-mode-meta,
  .omni-bot-footnote {
    display: none !important;
  }

  .omni-bot-mode-drawer-trigger {
    min-height: 34px !important;
    padding: 0.3rem 0.46rem !important;
  }

  .omni-bot-actions {
    max-height: 42px !important;
  }

  .omni-bot-action-button {
    font-size: 0.56rem !important;
    min-height: 20px !important;
    padding: 0.18rem 0.32rem !important;
  }

  .omni-bot-stream {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 0.56rem !important;
  }

  .omni-bot-prompt-box {
    align-items: stretch !important;
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 0.42rem !important;
    grid-template-columns: minmax(0, 1fr) 64px !important;
  }

  .omni-bot-prompt-input {
    max-height: 92px !important;
    min-height: 44px !important;
  }

  .omni-bot-send-button {
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 0 0.48rem !important;
    width: auto !important;
  }
}

.omni-bot-history-grid {
  flex: 1 1 auto;
}

.omni-bot-history-card-title,
.omni-bot-history-card p,
.omni-bot-history-card-meta,
.omni-bot-history-tags span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.omni-bot-history-card-title,
.omni-bot-history-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.omni-bot-history-card-title {
  -webkit-line-clamp: 2;
}

.omni-bot-history-card p {
  -webkit-line-clamp: 2;
}

.omni-bot-history-card-meta {
  white-space: nowrap;
}

.omni-bot-history-view,
.omni-bot-history-view * {
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .omni-bot-history-view {
    border-radius: 20px !important;
    gap: 0.46rem !important;
    inset: 0 !important;
    overflow: hidden !important;
    padding: 0.58rem !important;
  }

  .omni-bot-history-header {
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 0.48rem !important;
    min-height: 0 !important;
  }

  .omni-bot-history-eyebrow {
    font-size: 0.5rem !important;
    margin: 0 !important;
  }

  .omni-bot-history-header h3 {
    font-size: 0.86rem !important;
    line-height: 1.08 !important;
  }

  .omni-bot-history-close {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
    width: 34px !important;
  }

  .omni-bot-history-search-row {
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 0.42rem !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .omni-bot-history-search {
    font-size: 0.72rem !important;
    min-height: 36px !important;
    padding: 0 0.62rem !important;
  }

  .omni-bot-history-new {
    font-size: 0.62rem !important;
    min-height: 36px !important;
    padding: 0 0.56rem !important;
    white-space: nowrap !important;
  }

  .omni-bot-history-filters {
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 0.36rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .omni-bot-history-filters select {
    font-size: 0.62rem !important;
    min-height: 32px !important;
    padding: 0 0.38rem !important;
  }

  .omni-bot-history-runtime {
    display: none !important;
  }

  .omni-bot-history-grid {
    display: grid !important;
    flex: 1 1 0 !important;
    gap: 0.48rem !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(92px, 36%) minmax(0, 1fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .omni-bot-history-list,
  .omni-bot-history-detail {
    min-height: 0 !important;
    overflow: auto !important;
  }

  .omni-bot-history-list {
    gap: 0.42rem !important;
  }

  .omni-bot-history-card {
    border-radius: 14px !important;
    gap: 0.18rem !important;
    padding: 0.52rem !important;
  }

  .omni-bot-history-card-title {
    font-size: 0.72rem !important;
  }

  .omni-bot-history-card-meta,
  .omni-bot-history-card p,
  .omni-bot-history-empty {
    font-size: 0.62rem !important;
  }

  .omni-bot-history-tags {
    gap: 0.18rem !important;
  }

  .omni-bot-history-tags span,
  .omni-bot-history-tag {
    border-radius: 6px !important;
    font-size: 0.54rem !important;
    max-width: min(7.4rem, 48%) !important;
    padding: 0.1rem 0.26rem !important;
  }

  .omni-bot-history-tag b {
    font-size: 0.48rem !important;
    padding: 0.04rem 0.13rem !important;
  }

  .omni-bot-history-detail {
    border-radius: 15px !important;
    gap: 0.5rem !important;
    padding: 0.52rem !important;
  }

  .omni-bot-history-detail-header {
    align-items: stretch !important;
    display: grid !important;
    gap: 0.42rem !important;
  }

  .omni-bot-history-detail-header h4 {
    font-size: 0.78rem !important;
  }

  .omni-bot-history-detail-header p {
    font-size: 0.6rem !important;
  }

  .omni-bot-history-detail-actions {
    display: grid !important;
    gap: 0.34rem !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .omni-bot-history-detail-actions button {
    font-size: 0.58rem !important;
    min-height: 32px !important;
    padding: 0 0.28rem !important;
  }

  .omni-bot-history-message {
    padding: 0.48rem !important;
  }

  .omni-bot-history-message strong {
    font-size: 0.62rem !important;
  }

  .omni-bot-history-message p {
    font-size: 0.64rem !important;
    line-height: 1.28 !important;
  }
}

@media (max-width: 380px) {
  .omni-bot-history-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .omni-bot-history-filters {
    grid-template-columns: 1fr !important;
  }

  .omni-bot-history-grid {
    grid-template-rows: minmax(82px, 32%) minmax(0, 1fr) !important;
  }
}

/* Omni-Bot History: action-only list items, no preview pane. */
.omni-bot-history-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

.omni-bot-history-detail {
  display: none !important;
}

.omni-bot-history-card-actions {
  display: none;
  gap: 0.42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.35rem;
}

.omni-bot-history-card.is-selected .omni-bot-history-card-actions,
.omni-bot-history-card:focus-within .omni-bot-history-card-actions {
  display: grid;
}

.omni-bot-history-card-actions button {
  appearance: none;
  background: rgba(102, 252, 241, 0.075);
  border: 1px solid rgba(102, 252, 241, 0.18);
  border-radius: 12px;
  color: rgba(238, 252, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  min-height: 36px;
  padding: 0 0.48rem;
}

.omni-bot-history-card-actions button:hover,
.omni-bot-history-card-actions button:focus-visible {
  background: rgba(102, 252, 241, 0.16);
  border-color: rgba(102, 252, 241, 0.5);
  color: #ffffff;
  outline: none;
}

.omni-bot-history-card-actions button.is-danger {
  border-color: rgba(255, 106, 136, 0.34);
  color: #ffc2ce;
}

@media (max-width: 720px) {
  .omni-bot-history-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .omni-bot-history-list {
    overflow: auto !important;
  }
}


/* Omni-Bot mode drawer: keep the tool-control toggle inside the dropdown only. */
.omni-bot-mode-toolbar .omni-bot-tool-control-toggle--drawer {
  align-items: center;
  background: rgba(102, 252, 241, 0.055);
  border: 1px solid rgba(102, 252, 241, 0.14);
  border-radius: 14px;
  color: rgba(238, 252, 255, 0.9);
  cursor: pointer;
  display: flex;
  font-size: 0.74rem;
  font-weight: 850;
  gap: 0.58rem;
  min-height: 42px;
  padding: 0.68rem 0.75rem;
  width: 100%;
}

.omni-bot-mode-toolbar .omni-bot-tool-control-toggle--drawer input {
  accent-color: #66fcf1;
  flex: 0 0 auto;
}

.omni-bot-panel-shell > .omni-bot-tool-control-toggle:not(.omni-bot-tool-control-toggle--drawer) {
  display: none !important;
}

/* History cards are action tabs only: clicking a card never reveals chat content preview. */
.omni-bot-history-view[data-history-actions-only="true"] [data-omni-bot-history-detail],
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-detail,
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-detail-header,
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-detail-actions,
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-messages,
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-message,
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-assets {
  display: none !important;
}

.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-card [data-history-preview],
.omni-bot-history-view[data-history-actions-only="true"] .omni-bot-history-card-preview {
  display: none !important;
}
