/* OMNIX — Omni Machine Neural Intelligence eXperience
   Zo Computer-inspired: clean, minimal, dark with cyan precision */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Zo-inspired: deep neutrals, not purple-dominant */
  --omnix-bg: #080808;
  --omnix-surface: #0f0f0f;
  --omnix-surface2: #161616;
  --omnix-surface3: #1c1c1c;
  --omnix-border: rgba(255, 255, 255, 0.07);
  --omnix-border-hover: rgba(255, 255, 255, 0.14);

  /* Cyan as primary — clean, precise, Zo-like */
  --omnix-primary: #00c8ff;
  --omnix-primary-bright: #33d6ff;
  --omnix-primary-dim: rgba(0, 200, 255, 0.12);
  --omnix-primary-glow: rgba(0, 200, 255, 0.15);

  /* Accents */
  --omnix-accent: #06d6a0;
  --omnix-accent2: #ff6b6b;
  --omnix-glow: rgba(0, 200, 255, 0.18);

  /* Text */
  --omnix-text: #efefef;
  --omnix-text-dim: rgba(239, 239, 239, 0.55);
  --omnix-text-muted: rgba(239, 239, 239, 0.28);

  /* Gradients */
  --omnix-gradient: linear-gradient(135deg, #00c8ff 0%, #06d6a0 100%);
  --omnix-gradient-2: linear-gradient(135deg, #003344 0%, #063b2f 100%);
  --omnix-gradient-warm: linear-gradient(135deg, #00c8ff 0%, #0070a8 100%);

  --omnix-radius: 12px;
  --omnix-font: 'Space Grotesk', system-ui, sans-serif;
  --omnix-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Force dark theme at root — prevents native form controls (selects, inputs) from using light OS theme */
html { color-scheme: dark; }
body { background: var(--omnix-bg); color: var(--omnix-text); }

/* ============================================
   OMNIX LANDING PAGE
   ============================================ */

.omnix-landing {
  min-height: 100vh;
  background: var(--omnix-bg);
  color: var(--omnix-text);
  font-family: var(--omnix-font);
  overflow-x: hidden;
}

/* Nav */
.omnix-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(3, 2, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--omnix-border);
}

.omnix-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.omnix-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--omnix-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 20px var(--omnix-glow);
}

.omnix-logo-text {
  font-size: 22px;
  font-weight: 800;
  background: var(--omnix-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.omnix-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.omnix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--omnix-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  outline: none;
}

.omnix-btn-ghost {
  background: transparent;
  color: var(--omnix-text-dim);
  border: 1px solid var(--omnix-border);
}

.omnix-btn-ghost:hover {
  background: var(--omnix-surface);
  color: var(--omnix-text);
  border-color: var(--omnix-primary);
}

.omnix-btn-primary {
  background: var(--omnix-gradient);
  color: white;
  box-shadow: 0 0 30px var(--omnix-glow);
}

.omnix-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px var(--omnix-glow), 0 8px 30px rgba(0,0,0,0.3);
}

.omnix-btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* Hero */
.omnix-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.omnix-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.omnix-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.omnix-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,255,0.25), transparent 70%);
  top: -200px;
  left: -200px;
}

.omnix-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,214,160,0.2), transparent 70%);
  bottom: -150px;
  right: -150px;
}

.omnix-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,200,255,0.1), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.omnix-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--omnix-primary-bright);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.omnix-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--omnix-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.omnix-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.omnix-hero h1 .gradient-text {
  background: var(--omnix-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.omnix-hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--omnix-text-dim);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.omnix-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Terminal preview in hero */
.omnix-terminal-preview {
  margin-top: 80px;
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.omnix-terminal-window {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px var(--omnix-glow);
}

.omnix-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--omnix-surface2);
  border-bottom: 1px solid var(--omnix-border);
}

.omnix-terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.omnix-terminal-dot:nth-child(1) { background: #ff5f57; }
.omnix-terminal-dot:nth-child(2) { background: #ffbd2e; }
.omnix-terminal-dot:nth-child(3) { background: #28c840; }

.omnix-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--omnix-text-muted);
  font-family: 'Monaco', monospace;
}

.omnix-terminal-body {
  padding: 24px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  min-height: 220px;
}

.omnix-term-line {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.omnix-term-prompt {
  color: var(--omnix-accent);
  font-weight: 700;
  white-space: nowrap;
}

.omnix-term-input {
  color: var(--omnix-text);
}

.omnix-term-response {
  color: var(--omnix-text-dim);
  padding-left: 24px;
  margin-bottom: 16px;
}

.omnix-term-response .highlight {
  color: var(--omnix-primary-bright);
}

.omnix-term-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--omnix-primary);
  animation: blink 1.2s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Features */
.omnix-features {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.omnix-section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--omnix-primary-bright);
  margin-bottom: 16px;
}

.omnix-section-title {
  text-align: center;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.omnix-section-sub {
  text-align: center;
  font-size: 18px;
  color: var(--omnix-text-dim);
  max-width: 600px;
  margin: 0 auto 64px;
  line-height: 1.6;
}

.omnix-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.omnix-feature-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: var(--omnix-radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.omnix-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--omnix-gradient-2);
  opacity: 0;
  transition: opacity 0.3s;
}

.omnix-feature-card:hover {
  border-color: var(--omnix-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--omnix-glow);
}

.omnix-feature-card:hover::before {
  opacity: 0.1;
}

.omnix-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.omnix-feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.omnix-feature-card p {
  font-size: 15px;
  color: var(--omnix-text-dim);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* CTA Section */
.omnix-cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.omnix-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.12) 0%, transparent 70%);
}

.omnix-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.omnix-cta-inner h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.omnix-cta-inner p {
  font-size: 18px;
  color: var(--omnix-text-dim);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Footer */
.omnix-footer {
  border-top: 1px solid var(--omnix-border);
  padding: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--omnix-text-muted);
}

.omnix-footer a {
  color: var(--omnix-text-dim);
  text-decoration: none;
}

.omnix-footer a:hover {
  color: var(--omnix-text);
}

/* ============================================
   OMNIX APP INTERFACE
   ============================================ */

.omnix-app {
  height: 100vh;
  display: flex;
  background: var(--omnix-bg);
  color: var(--omnix-text);
  font-family: var(--omnix-font);
  overflow: hidden;
}

/* Sidebar */
.omnix-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--omnix-surface);
  border-right: 1px solid var(--omnix-border);
  transition: width 0.3s;
}

.omnix-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--omnix-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.omnix-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.omnix-sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--omnix-text-muted);
  padding: 8px 8px 6px;
  margin-bottom: 4px;
}

.omnix-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--omnix-text-dim);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.omnix-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--omnix-text);
}

.omnix-sidebar-item.active {
  background: rgba(0, 200, 255, 0.08);
  color: var(--omnix-primary-bright);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.omnix-sidebar-item-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.omnix-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--omnix-border);
}

.omnix-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--omnix-surface2);
}

.omnix-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--omnix-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.omnix-user-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omnix-user-sub {
  font-size: 11px;
  color: var(--omnix-text-muted);
}

/* Main content area */
.omnix-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat interface */
.omnix-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.omnix-chat-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--omnix-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--omnix-surface);
}

.omnix-chat-header-info h2 {
  font-size: 18px;
  font-weight: 700;
}

.omnix-chat-header-info p {
  font-size: 13px;
  color: var(--omnix-text-muted);
}

.omnix-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--omnix-accent);
  font-weight: 600;
}

.omnix-status-dot {
  width: 7px;
  height: 7px;
  background: var(--omnix-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* Messages */
.omnix-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.omnix-messages::-webkit-scrollbar { width: 4px; }
.omnix-messages::-webkit-scrollbar-track { background: transparent; }
.omnix-messages::-webkit-scrollbar-thumb { background: var(--omnix-border); border-radius: 2px; }

.omnix-msg {
  display: flex;
  gap: 14px;
  max-width: 840px;
}

.omnix-msg.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.omnix-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.omnix-msg.assistant .omnix-msg-avatar {
  background: var(--omnix-gradient);
  box-shadow: 0 0 20px var(--omnix-glow);
}

.omnix-msg.user .omnix-msg-avatar {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  color: var(--omnix-text-dim);
}

.omnix-msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.omnix-msg-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--omnix-text-muted);
  letter-spacing: 0.5px;
}

.omnix-msg.user .omnix-msg-role {
  text-align: right;
}

.omnix-msg-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.omnix-msg.assistant .omnix-msg-bubble {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-top-left-radius: 4px;
  color: var(--omnix-text);
}

.omnix-msg.user .omnix-msg-bubble {
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-top-right-radius: 4px;
  color: var(--omnix-text);
  text-align: left;
}

.omnix-msg-bubble pre {
  background: var(--omnix-bg);
  border: 1px solid var(--omnix-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0;
  overflow-x: auto;
  font-size: 13px;
  font-family: 'Monaco', 'Courier New', monospace;
}

.omnix-msg-bubble code {
  background: rgba(0, 200, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--omnix-mono);
  font-size: 13px;
  color: var(--omnix-primary-bright);
}

.omnix-msg-time {
  font-size: 11px;
  color: var(--omnix-text-muted);
  margin-top: 2px;
}

.omnix-msg.user .omnix-msg-time {
  text-align: right;
}

/* Thinking animation */
.omnix-thinking {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.omnix-thinking-dot {
  width: 6px;
  height: 6px;
  background: var(--omnix-primary);
  border-radius: 50%;
  animation: thinking-bounce 1.4s infinite ease-in-out;
  opacity: 0.7;
}

.omnix-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.omnix-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* Welcome state */
.omnix-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.omnix-welcome-logo {
  width: 80px;
  height: 80px;
  background: var(--omnix-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 40px var(--omnix-glow);
  margin-bottom: 24px;
}

.omnix-welcome h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--omnix-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.omnix-welcome p {
  font-size: 16px;
  color: var(--omnix-text-dim);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.omnix-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 700px;
}

.omnix-suggestion {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-size: 14px;
  color: var(--omnix-text-dim);
  font-family: var(--omnix-font);
}

.omnix-suggestion:hover {
  border-color: var(--omnix-primary);
  background: rgba(0, 200, 255, 0.07);
  color: var(--omnix-text);
}

.omnix-suggestion-icon {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

/* Input area */
.omnix-input-area {
  padding: 20px 28px;
  border-top: 1px solid var(--omnix-border);
  background: var(--omnix-surface);
}

.omnix-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 16px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.omnix-input-wrap:focus-within {
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.08);
}

.omnix-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--omnix-text);
  font-family: var(--omnix-font);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  max-height: 200px;
  overflow-y: auto;
  min-height: 22px;
}

.omnix-textarea::placeholder {
  color: var(--omnix-text-muted);
}

.omnix-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--omnix-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--omnix-glow);
}

.omnix-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--omnix-glow);
}

.omnix-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.omnix-input-hint {
  text-align: center;
  font-size: 12px;
  color: var(--omnix-text-muted);
  margin-top: 10px;
}

/* ── AI Tools: Attach button ── */
.omnix-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--omnix-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s;
  color: var(--omnix-text-muted);
  opacity: 0.75;
}
.omnix-attach-btn:hover {
  background: rgba(0, 200, 255, 0.08);
  border-color: rgba(0, 200, 255, 0.3);
  opacity: 1;
}

/* ── File attachment preview bar ── */
.omnix-attachment-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 10px;
  font-size: 13px;
  color: var(--omnix-text-muted);
}
.omnix-attachment-icon { font-size: 15px; flex-shrink: 0; }
.omnix-attachment-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--omnix-text);
}
.omnix-attachment-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--omnix-text-muted);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s;
  flex-shrink: 0;
}
.omnix-attachment-remove:hover {
  color: var(--omnix-text);
  background: rgba(255, 255, 255, 0.1);
}

/* ── Generated image in messages ── */
.omnix-generated-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.omnix-generated-img {
  max-width: 100%;
  width: 420px;
  height: auto;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--omnix-border);
  display: block;
}
.omnix-generated-img:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.15);
}
.omnix-img-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.omnix-img-download {
  font-size: 12px;
  color: var(--omnix-primary-bright);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 6px;
  transition: all 0.15s;
  background: rgba(0, 200, 255, 0.05);
}
.omnix-img-download:hover {
  background: rgba(0, 200, 255, 0.12);
  border-color: var(--omnix-primary);
}
.omnix-img-hint {
  font-size: 11px;
  color: var(--omnix-text-muted);
  opacity: 0.7;
}

/* ── Thinking label (progress text during generation) ── */
.omnix-thinking-label {
  font-size: 13px;
  color: var(--omnix-text-muted);
  font-style: italic;
  animation: omnix-pulse 1.4s ease-in-out infinite;
}
@keyframes omnix-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Notes panel */
.omnix-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.omnix-panel-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--omnix-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--omnix-surface);
}

.omnix-panel-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.omnix-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.omnix-note-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s;
}

.omnix-note-card:hover {
  border-color: var(--omnix-primary);
}

.omnix-note-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.omnix-note-preview {
  font-size: 13px;
  color: var(--omnix-text-dim);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.omnix-note-date {
  font-size: 11px;
  color: var(--omnix-text-muted);
  margin-top: 8px;
}

/* Tasks panel */
.omnix-task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.2s;
}

.omnix-task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--omnix-border);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
  margin-top: 1px;
}

.omnix-task-checkbox.done {
  background: var(--omnix-accent);
  border-color: var(--omnix-accent);
  color: var(--omnix-bg);
}

.omnix-task-title {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}

.omnix-task-title.done {
  text-decoration: line-through;
  color: var(--omnix-text-muted);
}

.omnix-task-due {
  font-size: 12px;
  color: var(--omnix-text-muted);
  margin-top: 4px;
}

/* Empty state */
.omnix-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--omnix-text-muted);
}

.omnix-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.omnix-empty p {
  font-size: 15px;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .omnix-nav { padding: 16px 20px; }

  .omnix-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 200;
    transition: left 0.3s;
  }

  .omnix-sidebar.open {
    left: 0;
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }

  .omnix-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
  }

  .omnix-sidebar-overlay.show { display: block; }

  .omnix-chat-header { padding: 16px 16px; }
  .omnix-messages { padding: 16px; }
  .omnix-input-area { padding: 16px; }

  .omnix-suggestions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Auth pages */
.omnix-auth-page {
  min-height: 100vh;
  background: var(--omnix-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--omnix-font);
  color: var(--omnix-text);
  position: relative;
  overflow: hidden;
}

.omnix-auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.omnix-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  z-index: 1;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 60px var(--omnix-glow);
}

.omnix-auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.omnix-auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.omnix-auth-card .subtitle {
  text-align: center;
  color: var(--omnix-text-dim);
  font-size: 15px;
  margin-bottom: 32px;
}

.omnix-form-group {
  margin-bottom: 20px;
}

.omnix-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--omnix-text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.omnix-input {
  width: 100%;
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--omnix-text);
  font-family: var(--omnix-font);
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.omnix-input:focus {
  border-color: var(--omnix-primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.10);
}

.omnix-input::placeholder {
  color: var(--omnix-text-muted);
}

.omnix-btn-full {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--omnix-font);
  background: var(--omnix-gradient);
  color: white;
  box-shadow: 0 0 30px var(--omnix-glow);
  margin-top: 8px;
}

.omnix-btn-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px var(--omnix-glow), 0 8px 30px rgba(0,0,0,0.3);
}

.omnix-btn-full:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.omnix-auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--omnix-text-dim);
}

.omnix-auth-switch a {
  color: var(--omnix-primary-bright);
  text-decoration: none;
  font-weight: 600;
}

.omnix-error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #fca5a5;
  margin-bottom: 20px;
  display: none;
}

.omnix-error-msg.visible {
  display: block;
}

/* ═══════════════════════════════════════════════════
   OMNIX TERMINAL — Dark shell interface
   ═══════════════════════════════════════════════════ */

.omnix-terminal-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0a0a0a;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

.omnix-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111;
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}

.omnix-terminal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.omnix-terminal-title .term-dots {
  display: flex;
  gap: 6px;
}
.omnix-terminal-title .term-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.omnix-terminal-title .term-dots .dot-red   { background: #ff5f57; }
.omnix-terminal-title .term-dots .dot-yellow { background: #febc2e; }
.omnix-terminal-title .term-dots .dot-green  { background: #28c840; }

.omnix-terminal-title h2 {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  font-family: var(--omnix-font-mono, monospace);
  letter-spacing: 0.5px;
}

.omnix-terminal-actions {
  display: flex;
  gap: 8px;
}

.omnix-terminal-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #666;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--omnix-font-mono, monospace);
  transition: all 0.15s;
}
.omnix-terminal-btn:hover {
  border-color: #444;
  color: #aaa;
}

.omnix-terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  color: #e8e8e8;
  font-size: 13.5px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.omnix-terminal-output::-webkit-scrollbar { width: 6px; }
.omnix-terminal-output::-webkit-scrollbar-track { background: transparent; }
.omnix-terminal-output::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }

.omnix-term-block {
  margin-bottom: 8px;
}

.omnix-term-prompt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.omnix-term-prompt .prompt-user {
  color: #06d6a0;
  font-weight: 600;
  white-space: nowrap;
}

.omnix-term-prompt .prompt-host {
  color: #00c8ff;
  font-weight: 600;
}

.omnix-term-prompt .prompt-sep {
  color: #444;
}

.omnix-term-prompt .prompt-dir {
  color: #60a5fa;
}

.omnix-term-prompt .prompt-dollar {
  color: #e8e8e8;
}

.omnix-term-prompt .prompt-cmd {
  color: #fff;
  word-break: break-all;
}

.omnix-term-output-line {
  color: #ccc;
  white-space: pre-wrap;
  word-break: break-word;
  padding-left: 2px;
  font-size: 13px;
  line-height: 1.5;
}

.omnix-term-output-line.error {
  color: #f87171;
}

.omnix-term-output-line.success {
  color: #34d399;
}

.omnix-term-output-line.info {
  color: #93c5fd;
}

.omnix-terminal-welcome {
  color: #4ade80;
  font-size: 12px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.omnix-terminal-input-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #0f0f0f;
  border-top: 1px solid #1e1e1e;
  flex-shrink: 0;
  gap: 10px;
}

.omnix-terminal-prompt-label {
  color: #06d6a0;
  font-size: 13px;
  font-family: monospace;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.omnix-terminal-prompt-label .t-host { color: #00c8ff; }
.omnix-terminal-prompt-label .t-sep  { color: #444; }
.omnix-terminal-prompt-label .t-dir  { color: #60a5fa; }
.omnix-terminal-prompt-label .t-dollar { color: #ccc; }

.omnix-terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
  caret-color: #06d6a0;
}

.omnix-terminal-input::placeholder { color: #333; }

.omnix-term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #06d6a0;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.omnix-term-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 12px;
  padding: 4px 0;
}

.omnix-term-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid #333;
  border-top-color: #06d6a0;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   OMNIX FILE MANAGER — Advanced file browser
   ═══════════════════════════════════════════════════ */

.omnix-filemanager {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.omnix-fm-sidebar {
  width: 220px;
  min-width: 180px;
  background: #0d0d14;
  border-right: 1px solid var(--omnix-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.omnix-fm-sidebar::-webkit-scrollbar { width: 4px; }
.omnix-fm-sidebar::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 2px; }

.omnix-fm-sidebar-header {
  padding: 14px 16px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--omnix-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.omnix-fm-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  cursor: pointer;
  color: var(--omnix-text-muted);
  font-size: 13px;
  border-radius: 0;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.omnix-fm-tree-item:hover {
  background: rgba(0, 200, 255, 0.06);
  color: var(--omnix-text);
}
.omnix-fm-tree-item.active {
  background: rgba(0, 200, 255, 0.10);
  color: var(--omnix-primary);
  border-left-color: var(--omnix-primary);
}
.omnix-fm-tree-item .fm-tree-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.omnix-fm-tree-item .fm-tree-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.omnix-fm-tree-item .fm-tree-count {
  font-size: 10px;
  color: var(--omnix-text-muted);
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 10px;
}

.omnix-fm-tree-divider {
  height: 1px;
  background: var(--omnix-border);
  margin: 8px 12px;
}

.omnix-fm-new-folder-btn {
  margin: 8px 12px;
  padding: 7px 12px;
  background: transparent;
  border: 1px dashed rgba(0, 200, 255, 0.18);
  border-radius: 8px;
  color: rgba(0, 200, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--omnix-font);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.omnix-fm-new-folder-btn:hover {
  border-color: var(--omnix-primary);
  color: var(--omnix-primary);
  background: rgba(0, 200, 255, 0.05);
}

.omnix-fm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--omnix-bg);
}

.omnix-fm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--omnix-border);
  background: var(--omnix-surface);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.omnix-fm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--omnix-text-muted);
  flex: 1;
  min-width: 0;
}
.omnix-fm-breadcrumb .bc-sep { color: #333; }
.omnix-fm-breadcrumb .bc-part {
  cursor: pointer;
  color: var(--omnix-text-muted);
  transition: color 0.15s;
  white-space: nowrap;
}
.omnix-fm-breadcrumb .bc-part:hover { color: var(--omnix-primary); }
.omnix-fm-breadcrumb .bc-part.active { color: var(--omnix-text); font-weight: 500; }

.omnix-fm-search {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--omnix-text);
  font-size: 13px;
  outline: none;
  width: 200px;
  font-family: var(--omnix-font);
}
.omnix-fm-search:focus { border-color: var(--omnix-primary); }
.omnix-fm-search::placeholder { color: var(--omnix-text-muted); }

.omnix-fm-view-toggle {
  display: flex;
  gap: 2px;
  background: var(--omnix-surface2);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--omnix-border);
}
.omnix-fm-view-btn {
  background: transparent;
  border: none;
  color: var(--omnix-text-muted);
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.omnix-fm-view-btn.active {
  background: var(--omnix-surface);
  color: var(--omnix-primary);
}
.omnix-fm-view-btn:hover:not(.active) { color: var(--omnix-text); }

.omnix-fm-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.omnix-fm-body::-webkit-scrollbar { width: 6px; }
.omnix-fm-body::-webkit-scrollbar-thumb { background: var(--omnix-border); border-radius: 3px; }

/* List view */
.omnix-fm-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.omnix-fm-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.omnix-fm-list-item:hover {
  background: rgba(0, 200, 255, 0.05);
  border-color: rgba(0, 200, 255, 0.10);
}
.omnix-fm-list-item.selected {
  background: rgba(0, 200, 255, 0.08);
  border-color: rgba(0, 200, 255, 0.18);
}

.omnix-fm-file-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.omnix-fm-file-info {
  flex: 1;
  min-width: 0;
}
.omnix-fm-file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--omnix-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.omnix-fm-file-meta {
  font-size: 11px;
  color: var(--omnix-text-muted);
  margin-top: 1px;
}

.omnix-fm-file-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.omnix-fm-list-item:hover .omnix-fm-file-actions { opacity: 1; }
.omnix-fm-file-action-btn {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 6px;
  color: var(--omnix-text-muted);
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
}
.omnix-fm-file-action-btn:hover { color: var(--omnix-text); border-color: #444; }
.omnix-fm-file-action-btn.danger:hover { color: #f87171; border-color: rgba(248,113,113,0.4); }

/* Grid view */
.omnix-fm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.omnix-fm-grid-item {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 16px 12px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.omnix-fm-grid-item:hover {
  border-color: var(--omnix-primary);
  background: rgba(0, 200, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,200,255,0.08);
}
.omnix-fm-grid-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}
.omnix-fm-grid-name {
  font-size: 12px;
  color: var(--omnix-text);
  word-break: break-word;
  line-height: 1.3;
  font-weight: 500;
}
.omnix-fm-grid-meta {
  font-size: 10px;
  color: var(--omnix-text-muted);
  margin-top: 4px;
}
.omnix-fm-grid-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.omnix-fm-grid-item:hover .omnix-fm-grid-actions { opacity: 1; }

.omnix-fm-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-top: 1px solid var(--omnix-border);
  background: var(--omnix-surface);
  font-size: 11px;
  color: var(--omnix-text-muted);
  flex-shrink: 0;
}

/* Preview panel */
.omnix-fm-preview {
  width: 300px;
  min-width: 260px;
  background: var(--omnix-surface);
  border-left: 1px solid var(--omnix-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.omnix-fm-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--omnix-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--omnix-text-muted);
}

.omnix-fm-preview-close {
  background: none;
  border: none;
  color: var(--omnix-text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px;
  line-height: 1;
}
.omnix-fm-preview-close:hover { color: var(--omnix-text); }

.omnix-fm-preview-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.omnix-fm-preview-icon {
  font-size: 48px;
  text-align: center;
  display: block;
  margin-bottom: 12px;
}

.omnix-fm-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--omnix-text);
  word-break: break-all;
  margin-bottom: 12px;
}

.omnix-fm-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.omnix-fm-preview-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.omnix-fm-preview-meta-row .label { color: var(--omnix-text-muted); }
.omnix-fm-preview-meta-row .value { color: var(--omnix-text); font-weight: 500; }

.omnix-fm-preview-img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.omnix-fm-preview-code {
  background: #0a0a0a;
  border-radius: 8px;
  padding: 12px;
  font-size: 11.5px;
  font-family: monospace;
  color: #ccc;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #222;
  margin-bottom: 12px;
}

.omnix-fm-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Upload drop overlay for file manager */
.omnix-fm-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 200, 255, 0.10);
  border: 2px dashed var(--omnix-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.omnix-fm-drop-overlay.visible { opacity: 1; }
.omnix-fm-drop-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--omnix-primary);
}

/* Empty state for file manager */
.omnix-fm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--omnix-text-muted);
  text-align: center;
}
.omnix-fm-empty-icon { font-size: 48px; margin-bottom: 16px; }
.omnix-fm-empty p { font-size: 14px; margin-bottom: 16px; }

/* Rename inline input */
.omnix-fm-rename-input {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-primary);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--omnix-text);
  font-size: 13px;
  font-family: var(--omnix-font);
  outline: none;
  width: 180px;
}

@media (max-width: 768px) {
  .omnix-fm-sidebar { display: none; }
  .omnix-fm-preview { display: none; }
  .omnix-terminal-output { font-size: 12px; }
  .omnix-terminal-input { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════
   ZO-INSPIRED ENHANCEMENTS — Chat header, markdown, agents
   ═══════════════════════════════════════════════════ */

/* Chat header action buttons */
.omnix-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.omnix-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--omnix-border);
  border-radius: 8px;
  color: var(--omnix-text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--omnix-font);
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.omnix-header-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--omnix-border-hover);
  color: var(--omnix-text);
}

.omnix-header-btn .hb-icon {
  font-size: 13px;
  line-height: 1;
}

/* Markdown rendering in messages */
/* Explicit color on ALL markdown-generated elements — prevents browser defaults from rendering black text */
.omnix-msg.assistant .omnix-msg-bubble { color: var(--omnix-text); }
.omnix-msg-bubble strong { font-weight: 700; }
.omnix-msg.assistant .omnix-msg-bubble strong { color: var(--omnix-text); }
.omnix-msg.assistant .omnix-msg-bubble em { color: var(--omnix-text-dim); font-style: italic; }
.omnix-msg.assistant .omnix-msg-bubble a { color: var(--omnix-primary); text-decoration: none; }
.omnix-msg.assistant .omnix-msg-bubble a:hover { text-decoration: underline; }
.omnix-msg.assistant .omnix-msg-bubble li { color: var(--omnix-text); }
/* User message bubble inherits its own color */
.omnix-msg.user .omnix-msg-bubble strong { color: var(--omnix-text); }
.omnix-msg.user .omnix-msg-bubble em { color: var(--omnix-text-dim); }
.omnix-msg.user .omnix-msg-bubble a { color: var(--omnix-primary); }

.omnix-msg-bubble h1,
.omnix-msg-bubble h2,
.omnix-msg-bubble h3 {
  margin: 12px 0 6px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--omnix-text);
}

.omnix-msg-bubble h1 { font-size: 20px; }
.omnix-msg-bubble h2 { font-size: 17px; }
.omnix-msg-bubble h3 { font-size: 15px; }

.omnix-msg-bubble p {
  margin: 0 0 10px;
  line-height: 1.65;
}
.omnix-msg-bubble p:last-child { margin-bottom: 0; }

.omnix-msg-bubble ul,
.omnix-msg-bubble ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.omnix-msg-bubble li {
  margin-bottom: 4px;
  line-height: 1.6;
}

.omnix-msg-bubble blockquote {
  border-left: 3px solid var(--omnix-primary);
  margin: 10px 0;
  padding: 8px 14px;
  background: rgba(0, 200, 255, 0.05);
  border-radius: 0 6px 6px 0;
  color: var(--omnix-text-dim);
  font-style: italic;
}

.omnix-msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}

.omnix-msg-bubble th {
  background: rgba(0, 200, 255, 0.08);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--omnix-border);
  color: var(--omnix-primary-bright);
}

.omnix-msg-bubble td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--omnix-border);
  color: var(--omnix-text-dim);
}

.omnix-msg-bubble hr {
  border: none;
  border-top: 1px solid var(--omnix-border);
  margin: 12px 0;
}

/* Inline code copy blocks */
.omnix-code-block-wrap {
  position: relative;
  margin: 10px 0;
}

.omnix-code-block-wrap pre {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  font-family: var(--omnix-mono);
  line-height: 1.7;
  margin: 0;
}

.omnix-code-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 11px;
  color: var(--omnix-text-muted);
  font-family: var(--omnix-mono);
}

.omnix-code-lang-bar .lang-name {
  color: var(--omnix-primary);
  font-weight: 600;
  text-transform: lowercase;
}

.omnix-code-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--omnix-text-muted);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--omnix-font);
  transition: all 0.15s;
}

.omnix-code-copy-btn:hover {
  color: var(--omnix-text);
  background: rgba(255,255,255,0.08);
}

.omnix-code-block-wrap pre {
  border-radius: 0 0 10px 10px;
}

/* Streaming cursor */
.omnix-stream-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--omnix-primary);
  border-radius: 1px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
  margin-left: 2px;
}

/* Better agent card styles */
.omnix-agent-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.omnix-agent-card:hover {
  border-color: rgba(0, 200, 255, 0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.omnix-agent-card-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
}

.omnix-agent-card-status-bar.active {
  background: linear-gradient(180deg, #06d6a0, #00c8ff);
}

.omnix-agent-card-status-bar.paused {
  background: rgba(255,255,255,0.15);
}

.omnix-agent-schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(0, 200, 255, 0.07);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--omnix-primary-bright);
}

.omnix-agent-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.omnix-agent-status-pill.active {
  background: rgba(6, 214, 160, 0.1);
  color: #06d6a0;
  border: 1px solid rgba(6, 214, 160, 0.2);
}

.omnix-agent-status-pill.paused {
  background: rgba(255,255,255,0.05);
  color: var(--omnix-text-muted);
  border: 1px solid var(--omnix-border);
}

.omnix-agent-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--omnix-font);
  transition: all 0.18s;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.omnix-agent-action-btn.run {
  background: rgba(0, 200, 255, 0.08);
  border-color: rgba(0, 200, 255, 0.2);
  color: var(--omnix-primary-bright);
}

.omnix-agent-action-btn.run:hover {
  background: rgba(0, 200, 255, 0.18);
  border-color: rgba(0, 200, 255, 0.4);
}

.omnix-agent-action-btn.history {
  background: rgba(6, 214, 160, 0.07);
  border-color: rgba(6, 214, 160, 0.18);
  color: var(--omnix-accent);
}

.omnix-agent-action-btn.history:hover {
  background: rgba(6, 214, 160, 0.15);
}

.omnix-agent-action-btn.ghost {
  background: transparent;
  border-color: var(--omnix-border);
  color: var(--omnix-text-muted);
}

.omnix-agent-action-btn.ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--omnix-border-hover);
  color: var(--omnix-text);
}

.omnix-agent-action-btn.danger {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.omnix-agent-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.14);
}

/* Agent stats row */
.omnix-agent-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--omnix-border);
}

.omnix-agent-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.omnix-agent-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--omnix-text-muted);
}

.omnix-agent-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--omnix-text);
}

.omnix-agent-stat-value.accent { color: var(--omnix-primary-bright); }
.omnix-agent-stat-value.green { color: var(--omnix-accent); }

/* Agents panel header summary stats */
.omnix-agents-summary {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--omnix-border);
  background: var(--omnix-surface);
  flex-shrink: 0;
}

.omnix-agents-summary-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--omnix-text-muted);
}

.omnix-agents-summary-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--omnix-text);
  line-height: 1;
}

.omnix-agents-summary-num.green { color: var(--omnix-accent); }
.omnix-agents-summary-num.cyan { color: var(--omnix-primary); }

/* Run history modal - better log display */
.omnix-run-item {
  border: 1px solid var(--omnix-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.omnix-run-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--omnix-surface2);
  cursor: pointer;
  transition: background 0.15s;
}

.omnix-run-item-header:hover {
  background: var(--omnix-surface3);
}

.omnix-run-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.omnix-run-status-dot.completed { background: #06d6a0; }
.omnix-run-status-dot.failed { background: #ef4444; }
.omnix-run-status-dot.running { background: var(--omnix-primary); animation: pulse-dot 1.5s infinite; }
.omnix-run-status-dot.pending { background: #f59e0b; }

.omnix-run-output {
  padding: 14px 16px;
  background: #0a0a0a;
  border-top: 1px solid var(--omnix-border);
  font-size: 13px;
  color: var(--omnix-text-dim);
  line-height: 1.65;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--omnix-mono);
  display: none;
}

.omnix-run-output.open { display: block; }

/* Conversation export panel */
.omnix-export-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--omnix-text);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
}

.omnix-export-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .omnix-chat-header-actions .omnix-header-btn span { display: none; }
  .omnix-agents-summary { flex-wrap: wrap; gap: 12px; }
}


/* ============================================================
   OMNIX UI/UX UPGRADE — Premium Design System v2
   ============================================================ */

/* ── Message Action Buttons (hover reveal) ── */
.omnix-msg {
  position: relative;
}
.omnix-msg-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  margin-top: 4px;
  flex-wrap: wrap;
}
.omnix-msg:hover .omnix-msg-actions {
  opacity: 1;
  pointer-events: all;
}
.omnix-msg-action {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 8px;
  color: var(--omnix-text-dim);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
  display: flex;
  align-items: center;
  gap: 4px;
}
.omnix-msg-action:hover {
  background: var(--omnix-surface3);
  border-color: var(--omnix-border-hover);
  color: var(--omnix-text);
  transform: translateY(-1px);
}
.omnix-msg-action.liked {
  color: #06d6a0;
  border-color: rgba(6,214,160,0.3);
}

/* ── Code Block Syntax Highlight ── */
.omnix-msg-bubble pre {
  background: #0d0d14 !important;
  border: 1px solid rgba(0,200,255,0.12) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  margin: 10px 0 !important;
  overflow: hidden !important;
  font-size: 13px !important;
}
.omnix-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: var(--omnix-text-muted);
  font-family: var(--omnix-mono);
  letter-spacing: 0.5px;
}
.omnix-code-lang {
  color: var(--omnix-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}
.omnix-code-copy-btn {
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.15);
  border-radius: 6px;
  color: var(--omnix-text-dim);
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
}
.omnix-code-copy-btn:hover {
  background: rgba(0,200,255,0.15);
  color: var(--omnix-primary);
}
.omnix-msg-bubble pre code {
  display: block;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.65;
  color: #e2e8f0;
  background: transparent !important;
  font-size: 13px !important;
}

/* Syntax coloring tokens */
.tok-keyword  { color: #c792ea; }
.tok-string   { color: #c3e88d; }
.tok-comment  { color: #546e7a; font-style: italic; }
.tok-number   { color: #f78c6c; }
.tok-function { color: #82aaff; }
.tok-operator { color: #89ddff; }
.tok-variable { color: #eeffff; }
.tok-type     { color: #ffcb6b; }

/* ── Enhanced Message Bubbles ── */
.omnix-msg.assistant .omnix-msg-bubble {
  background: linear-gradient(180deg, var(--omnix-surface) 0%, rgba(15,15,15,0.95) 100%) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.omnix-msg.user .omnix-msg-bubble {
  background: linear-gradient(135deg, rgba(0,200,255,0.12), rgba(6,214,160,0.07)) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.omnix-msg {
  animation: msgFadeIn 0.25s ease-out;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Skeleton Loading ── */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.omnix-skeleton {
  background: linear-gradient(90deg, var(--omnix-surface) 25%, var(--omnix-surface2) 50%, var(--omnix-surface) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
.omnix-skeleton-line {
  height: 14px;
  margin: 8px 0;
  border-radius: 6px;
}
.omnix-skeleton-line.short { width: 55%; }
.omnix-skeleton-line.medium { width: 75%; }
.omnix-skeleton-line.long { width: 95%; }
.omnix-skeleton-msg {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}
.omnix-skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.omnix-skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

/* ── Enhanced Empty States ── */
.omnix-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 16px;
}
.omnix-empty-icon {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(0,200,255,0.2));
}
.omnix-empty h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--omnix-text);
  margin: 0;
}
.omnix-empty p {
  font-size: 14px;
  color: var(--omnix-text-muted);
  max-width: 340px;
  line-height: 1.65;
  margin: 0;
}
.omnix-empty-action {
  margin-top: 8px;
  padding: 9px 20px;
  background: var(--omnix-primary-dim);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 10px;
  color: var(--omnix-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--omnix-font);
}
.omnix-empty-action:hover {
  background: rgba(0,200,255,0.15);
  transform: translateY(-1px);
}

/* ── Enhanced Home View ── */
.omnix-home-view {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
}
.omnix-home-greeting {
  font-size: 28px;
  font-weight: 700;
  background: var(--omnix-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.omnix-home-subtitle {
  color: var(--omnix-text-muted);
  font-size: 14px;
  margin-top: 6px;
}
.omnix-home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.omnix-stat-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.omnix-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--omnix-gradient);
  opacity: 0;
  transition: opacity 0.2s;
}
.omnix-stat-card:hover {
  border-color: var(--omnix-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,200,255,0.08);
}
.omnix-stat-card:hover::before { opacity: 0.04; }
.omnix-stat-icon {
  font-size: 22px;
  margin-bottom: 10px;
}
.omnix-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--omnix-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.omnix-stat-label {
  font-size: 12px;
  color: var(--omnix-text-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.omnix-home-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--omnix-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.omnix-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.omnix-quick-btn {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: var(--omnix-font);
  color: var(--omnix-text);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.omnix-quick-btn-icon {
  font-size: 20px;
  line-height: 1;
}
.omnix-quick-btn:hover {
  border-color: var(--omnix-primary);
  background: var(--omnix-primary-dim);
  color: var(--omnix-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,200,255,0.1);
}

/* Recent activity in home */
.omnix-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.omnix-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--omnix-text);
}
.omnix-recent-item:hover {
  border-color: var(--omnix-border-hover);
  background: var(--omnix-surface2);
}
.omnix-recent-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--omnix-primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.omnix-recent-item-text {
  flex: 1;
  min-width: 0;
}
.omnix-recent-item-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.omnix-recent-item-time {
  font-size: 11px;
  color: var(--omnix-text-muted);
  margin-top: 2px;
}

/* ── Enhanced Task Cards ── */
.omnix-task-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 8px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.omnix-task-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.omnix-task-card.priority-urgent::before { background: #ff4757; }
.omnix-task-card.priority-high::before   { background: #ff6348; }
.omnix-task-card.priority-medium::before { background: #ffa502; }
.omnix-task-card.priority-low::before    { background: #2ed573; }
.omnix-task-card.priority-none::before   { background: var(--omnix-border); }
.omnix-task-card:hover {
  border-color: var(--omnix-border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.omnix-task-card.status-done {
  opacity: 0.55;
}
.omnix-task-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.omnix-task-checkbox2 {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--omnix-border);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}
.omnix-task-checkbox2.in_progress {
  border-color: var(--omnix-primary);
  background: var(--omnix-primary-dim);
  color: var(--omnix-primary);
}
.omnix-task-checkbox2.done {
  background: var(--omnix-accent);
  border-color: var(--omnix-accent);
  color: #000;
}
.omnix-task-title2 {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  line-height: 1.35;
}
.omnix-task-title2.done {
  text-decoration: line-through;
  color: var(--omnix-text-muted);
}
.omnix-task-priority-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.omnix-task-priority-badge.urgent { background: rgba(255,71,87,0.15); color: #ff4757; }
.omnix-task-priority-badge.high   { background: rgba(255,99,72,0.15);  color: #ff6348; }
.omnix-task-priority-badge.medium { background: rgba(255,165,2,0.15);  color: #ffa502; }
.omnix-task-priority-badge.low    { background: rgba(46,213,115,0.15); color: #2ed573; }
.omnix-task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.omnix-task-due {
  font-size: 12px;
  color: var(--omnix-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.omnix-task-due.overdue {
  color: #ff4757;
}
.omnix-task-status-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--omnix-border);
  background: var(--omnix-surface2);
  color: var(--omnix-text-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
  white-space: nowrap;
}
.omnix-task-status-btn.active-pending    { border-color: rgba(255,165,2,0.3); color: #ffa502; background: rgba(255,165,2,0.07); }
.omnix-task-status-btn.active-in_progress{ border-color: rgba(0,200,255,0.3); color: var(--omnix-primary); background: var(--omnix-primary-dim); }
.omnix-task-status-btn.active-done       { border-color: rgba(46,213,115,0.3); color: #2ed573; background: rgba(46,213,115,0.07); }
.omnix-task-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--omnix-border);
}
.omnix-task-action-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--omnix-border);
  background: transparent;
  color: var(--omnix-text-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
}
.omnix-task-action-btn:hover {
  border-color: var(--omnix-border-hover);
  color: var(--omnix-text);
  background: var(--omnix-surface2);
}
.omnix-task-action-btn.danger:hover {
  border-color: rgba(255,71,87,0.4);
  color: #ff4757;
  background: rgba(255,71,87,0.06);
}

/* Kanban View */
.omnix-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  height: 100%;
  overflow-x: auto;
}
.omnix-kanban-col {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.omnix-kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--omnix-border);
  margin-bottom: 4px;
}
.omnix-kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--omnix-text-dim);
}
.omnix-kanban-col-count {
  font-size: 12px;
  color: var(--omnix-text-muted);
  background: var(--omnix-surface2);
  border-radius: 20px;
  padding: 1px 8px;
}
.omnix-kanban-card {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.omnix-kanban-card:hover {
  border-color: var(--omnix-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.omnix-kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

/* Task view toggle buttons */
.omnix-view-toggle {
  display: flex;
  background: var(--omnix-surface2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.omnix-view-toggle-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--omnix-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
  font-weight: 500;
}
.omnix-view-toggle-btn.active {
  background: var(--omnix-surface3);
  color: var(--omnix-text);
}

/* ── Enhanced Skill Cards ── */
.omnix-skills-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 4px 0;
}
.omnix-skill-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.omnix-skill-card.enabled {
  border-color: rgba(0,200,255,0.25);
  background: linear-gradient(135deg, var(--omnix-surface) 0%, rgba(0,200,255,0.03) 100%);
}
.omnix-skill-card:hover {
  border-color: var(--omnix-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.omnix-skill-card.enabled:hover {
  box-shadow: 0 6px 20px rgba(0,200,255,0.08);
}
.omnix-skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.omnix-skill-icon {
  font-size: 26px;
  line-height: 1;
}
.omnix-skill-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  cursor: pointer;
}
.omnix-skill-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.omnix-skill-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--omnix-surface3);
  border-radius: 20px;
  transition: all 0.25s;
  border: 1px solid var(--omnix-border);
}
.omnix-skill-toggle input:checked + .omnix-skill-toggle-track {
  background: var(--omnix-primary);
  border-color: var(--omnix-primary);
  box-shadow: 0 0 10px rgba(0,200,255,0.3);
}
.omnix-skill-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.omnix-skill-toggle input:checked ~ .omnix-skill-toggle-knob {
  transform: translateX(16px);
}
.omnix-skill-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--omnix-text);
  line-height: 1.2;
}
.omnix-skill-desc {
  font-size: 12px;
  color: var(--omnix-text-muted);
  line-height: 1.5;
  flex: 1;
}
.omnix-skill-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--omnix-border);
  color: var(--omnix-text-muted);
  background: var(--omnix-surface2);
  letter-spacing: 0.3px;
  align-self: flex-start;
}
.omnix-skill-active-badge {
  position: absolute;
  top: 12px;
  right: 50px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0,200,255,0.15);
  color: var(--omnix-primary);
  border-radius: 20px;
  padding: 2px 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0,200,255,0.2);
}

/* Category filter pills */
.omnix-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.omnix-filter-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--omnix-border);
  background: var(--omnix-surface);
  color: var(--omnix-text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
  white-space: nowrap;
}
.omnix-filter-pill:hover {
  border-color: var(--omnix-border-hover);
  color: var(--omnix-text);
}
.omnix-filter-pill.active {
  background: var(--omnix-primary-dim);
  border-color: rgba(0,200,255,0.3);
  color: var(--omnix-primary);
}

/* ── Enhanced Memory View (in Settings) ── */
.omnix-memory-bank {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.omnix-memory-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s;
}
.omnix-memory-card:hover {
  border-color: var(--omnix-border-hover);
}
.omnix-memory-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
}
.omnix-memory-type.general    { background: rgba(0,200,255,0.12); color: var(--omnix-primary); }
.omnix-memory-type.preference { background: rgba(6,214,160,0.12); color: var(--omnix-accent); }
.omnix-memory-type.work       { background: rgba(139,92,246,0.12); color: #a78bfa; }
.omnix-memory-type.goal       { background: rgba(255,165,2,0.12); color: #ffa502; }
.omnix-memory-type.fact       { background: rgba(255,71,87,0.12); color: #ff4757; }
.omnix-memory-content {
  font-size: 13px;
  color: var(--omnix-text);
  line-height: 1.5;
}
.omnix-memory-meta {
  font-size: 11px;
  color: var(--omnix-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.omnix-memory-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.omnix-memory-card:hover .omnix-memory-actions {
  opacity: 1;
}

/* ── Keyboard Shortcuts Modal ── */
.omnix-kb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.omnix-kb-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.omnix-kb-modal {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border-hover);
  border-radius: 20px;
  padding: 28px 32px;
  width: 560px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.omnix-kb-modal-overlay.open .omnix-kb-modal {
  transform: scale(1);
}
.omnix-kb-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--omnix-text);
}
.omnix-kb-section {
  margin-bottom: 20px;
}
.omnix-kb-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--omnix-text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--omnix-border);
}
.omnix-kb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
}
.omnix-kb-desc {
  font-size: 13px;
  color: var(--omnix-text-dim);
}
.omnix-kb-keys {
  display: flex;
  gap: 4px;
  align-items: center;
}
.omnix-kbd {
  display: inline-block;
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border-hover);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: var(--omnix-mono);
  color: var(--omnix-text);
  box-shadow: 0 1px 0 var(--omnix-surface3);
}
.omnix-kb-plus {
  font-size: 11px;
  color: var(--omnix-text-muted);
}

/* ── Chat header enhancements ── */
.omnix-chat-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--omnix-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.omnix-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--omnix-primary-dim);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--omnix-primary);
  cursor: pointer;
  transition: all 0.15s;
}
.omnix-model-badge:hover {
  background: rgba(0,200,255,0.15);
}
.omnix-model-dot {
  width: 6px;
  height: 6px;
  background: var(--omnix-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Enhanced Welcome State ── */
.omnix-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  gap: 16px;
  text-align: center;
  flex: 1;
}
.omnix-welcome-logo {
  font-size: 48px;
  filter: drop-shadow(0 0 30px rgba(0,200,255,0.4));
  animation: welcome-float 3s ease-in-out infinite;
}
@keyframes welcome-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.omnix-welcome h2 {
  font-size: 28px;
  font-weight: 800;
  background: var(--omnix-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.omnix-welcome > p {
  color: var(--omnix-text-muted);
  font-size: 14px;
  margin: 0;
}
.omnix-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.omnix-suggestion {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--omnix-text-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--omnix-font);
}
.omnix-suggestion:hover {
  border-color: var(--omnix-primary);
  color: var(--omnix-primary);
  background: var(--omnix-primary-dim);
  transform: translateY(-1px);
}

/* ── Enhanced Quick Chips ── */
.omnix-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 4px;
  scrollbar-width: none;
}
.omnix-quick-chips::-webkit-scrollbar { display: none; }
.omnix-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--omnix-text-dim);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--omnix-font);
}
.omnix-chip:hover {
  border-color: var(--omnix-border-hover);
  color: var(--omnix-text);
  background: var(--omnix-surface2);
}

/* ── Settings panel improvements ── */
.omnix-settings-tab {
  padding: 8px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--omnix-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--omnix-font);
}
.omnix-settings-tab:hover {
  color: var(--omnix-text);
}
.omnix-settings-tab.active {
  color: var(--omnix-primary);
  border-bottom-color: var(--omnix-primary);
}
.omnix-settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.omnix-settings-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--omnix-text-dim);
}
.omnix-settings-value {
  color: var(--omnix-text-muted);
  font-size: 13px;
}

/* ── File Grid improvements ── */
.omnix-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 4px 0;
}
.omnix-file-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.omnix-file-card:hover {
  border-color: var(--omnix-border-hover);
  background: var(--omnix-surface2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.omnix-file-icon {
  font-size: 32px;
  line-height: 1;
}
.omnix-file-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--omnix-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.omnix-file-size {
  font-size: 11px;
  color: var(--omnix-text-muted);
}
.omnix-file-card-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.omnix-file-card:hover .omnix-file-card-actions {
  opacity: 1;
}

/* ── Terminal improvements ── */
.omnix-term-output-line {
  line-height: 1.6;
  font-size: 13px;
}
.omnix-term-output-line.error   { color: #ff4757; }
.omnix-term-output-line.success { color: #2ed573; }
.omnix-term-output-line.warning { color: #ffa502; }
.omnix-term-output-line.info    { color: var(--omnix-primary); }
.omnix-term-output-line.system  { color: var(--omnix-text-muted); font-style: italic; }
.omnix-term-prompt {
  color: var(--omnix-accent);
  user-select: none;
}
.omnix-term-user {
  color: var(--omnix-primary);
}

/* ── Notes improvements ── */
.omnix-note-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--omnix-primary-dim);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--omnix-primary);
  font-weight: 500;
}
.omnix-note-autosave {
  font-size: 11px;
  color: var(--omnix-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.5s;
}
.omnix-note-autosave.visible { opacity: 1; }

/* ── Panel entry animation ── */
.omnix-panel, .omnix-simple-view, .omnix-home-view, .omnix-chat, .omnix-terminal-view {
  animation: panelIn 0.2s ease-out;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sidebar active state glow ── */
.omnix-sidebar-item.active {
  background: var(--omnix-primary-dim) !important;
  border: 1px solid rgba(0,200,255,0.15) !important;
}

/* ── BRAND: OMNIX logo text ── */
.omnix-brand-text {
  font-size: 18px;
  font-weight: 800;
  background: var(--omnix-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* ── Scrollbar styling for all OMNIX panels ── */
.omnix-main *::-webkit-scrollbar { width: 4px; height: 4px; }
.omnix-main *::-webkit-scrollbar-track { background: transparent; }
.omnix-main *::-webkit-scrollbar-thumb { background: var(--omnix-border-hover); border-radius: 4px; }
.omnix-main *::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Mobile responsive improvements ── */
@media (max-width: 768px) {
  .omnix-home-view {
    padding: 20px 16px;
    gap: 20px;
  }
  .omnix-home-greeting { font-size: 22px; }
  .omnix-home-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .omnix-quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .omnix-quick-btn {
    padding: 10px 8px;
    font-size: 11px;
    gap: 6px;
  }
  .omnix-quick-btn-icon { font-size: 18px; }
  .omnix-kanban {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .omnix-kanban-col {
    max-height: 400px;
  }
  .omnix-skills-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .omnix-task-card { padding: 12px 14px; }
  .omnix-welcome h2 { font-size: 22px; }
  .omnix-welcome-logo { font-size: 36px; }
  .omnix-kb-modal { padding: 20px; }
  .omnix-memory-bank {
    grid-template-columns: 1fr;
  }
}

/* ── Glassmorphism panels ── */
.omnix-glass {
  background: rgba(15, 15, 15, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* ── Glow effects on primary actions ── */
.omnix-btn-primary {
  box-shadow: 0 0 0 0 rgba(0,200,255,0);
  transition: all 0.2s, box-shadow 0.2s !important;
}
.omnix-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(0,200,255,0.25) !important;
}

/* ── Send button animation ── */
.omnix-send-btn {
  transition: all 0.15s !important;
}
.omnix-send-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 4px 16px rgba(0,200,255,0.3) !important;
}
.omnix-send-btn:active {
  transform: scale(0.95) !important;
}

/* ── Input area lift ── */
.omnix-input-wrap {
  transition: box-shadow 0.2s !important;
}
.omnix-input-wrap:focus-within {
  box-shadow: 0 0 0 1px rgba(0,200,255,0.25), 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* ── Skill card class aliases (backward compat) ── */
.omnix-skill-library-card {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.omnix-skill-library-card.enabled {
  border-color: rgba(0,200,255,0.25);
  background: linear-gradient(135deg, var(--omnix-surface) 0%, rgba(0,200,255,0.03) 100%);
}
.omnix-skill-library-card:hover {
  border-color: var(--omnix-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.omnix-skill-library-card.enabled:hover {
  box-shadow: 0 6px 20px rgba(0,200,255,0.08);
}
.omnix-skill-lib-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.omnix-skill-lib-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.omnix-skill-lib-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--omnix-text);
  line-height: 1.2;
}
.omnix-skill-lib-cat {
  font-size: 11px;
  color: var(--omnix-text-muted);
  margin-top: 2px;
  text-transform: capitalize;
}
.omnix-skill-lib-desc {
  font-size: 13px;
  color: var(--omnix-text-muted);
  line-height: 1.5;
  flex: 1;
}
.omnix-skill-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--omnix-border);
}
/* Custom toggle track */
.omnix-skill-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.omnix-skill-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.omnix-skill-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--omnix-surface3);
  border-radius: 22px;
  border: 1px solid var(--omnix-border);
  transition: all 0.25s;
}
.omnix-skill-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.omnix-skill-toggle input:checked + .omnix-skill-toggle-slider {
  background: var(--omnix-primary);
  border-color: var(--omnix-primary);
  box-shadow: 0 0 10px rgba(0,200,255,0.3);
}
.omnix-skill-toggle input:checked + .omnix-skill-toggle-slider::after {
  transform: translateX(16px);
}

/* ── Memory list item improvements ── */
#memoriesList .omnix-memory-item {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#memoriesList .omnix-memory-item:hover {
  border-color: var(--omnix-border-hover);
}

/* ── Panel section headers ── */
.omnix-panel-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--omnix-text-muted);
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--omnix-border);
  margin-bottom: 12px;
}

/* ── Improved agent cards ── */
.omnix-agent-card {
  transition: all 0.2s !important;
}
.omnix-agent-card:hover {
  border-color: var(--omnix-border-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ── Note list item improvements ── */
.omnix-notes-list-item {
  transition: all 0.15s !important;
  border-radius: 10px !important;
}
.omnix-notes-list-item:hover {
  background: var(--omnix-surface2) !important;
}
.omnix-notes-list-item.active {
  background: var(--omnix-primary-dim) !important;
  border-left: 3px solid var(--omnix-primary) !important;
}

/* ── Terminal input line focus ── */
.omnix-term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.omnix-term-input {
  transition: border-color 0.15s !important;
}
.omnix-term-input:focus {
  border-color: rgba(0,200,255,0.25) !important;
  outline: none;
}

/* ── Mobile: chat chips horizontal scroll hint ── */
@media (max-width: 480px) {
  .omnix-quick-chips::after {
    content: '';
    display: block;
    min-width: 16px;
    flex-shrink: 0;
  }
  .omnix-home-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Memory Item Styles ── */
.omnix-memory-item {
  background: var(--omnix-surface);
  border: 1px solid var(--omnix-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.15s;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}
.omnix-memory-item.pinned {
  border-color: rgba(0,200,255,0.2);
  background: linear-gradient(135deg, var(--omnix-surface), rgba(0,200,255,0.02));
}
.omnix-memory-item:hover {
  border-color: var(--omnix-border-hover);
}
.omnix-memory-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  background: var(--omnix-primary-dim);
  border: 1px solid rgba(0,200,255,0.2);
  color: var(--omnix-primary);
  display: inline-block;
  margin-top: 2px;
}
.omnix-memory-content {
  font-size: 13px;
  color: var(--omnix-text);
  line-height: 1.5;
}
.omnix-memory-meta {
  font-size: 11px;
  color: var(--omnix-text-muted);
  margin-top: 4px;
}
.omnix-memory-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.omnix-memory-item:hover .omnix-memory-actions {
  opacity: 1;
}
.omnix-memory-action-btn {
  background: var(--omnix-surface2);
  border: 1px solid var(--omnix-border);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.omnix-memory-action-btn:hover {
  background: var(--omnix-surface3);
  border-color: var(--omnix-border-hover);
}
.omnix-memory-action-btn.pinned {
  color: var(--omnix-primary);
  border-color: rgba(0,200,255,0.25);
}
