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

  /* 0. Enterprise Aesthetics (Fonts, Colors, Shadow) */
  :root {
    /* Industrial Deep Space Palette */
    --gray-20: #f8fafc !important;
    --gray-50: #f1f5f9 !important;
    --gray-100: #e2e8f0 !important;
    --gray-200: #cbd5e1 !important;
    --gray-300: #94a3b8 !important;
    --gray-400: #64748b !important;
    --gray-500: #475569 !important;
    --gray-600: #334155 !important;
    --gray-700: #1e293b !important;
    --gray-800: #0f172a !important;
    --gray-850: #0b1120 !important;
    --gray-900: #020617 !important;

    /* Technical Accents (Electric Cyan / Blue) */
    --green-50: #e0f2fe !important;
    --green-100: #bae6fd !important;
    --green-200: #7dd3fc !important;
    --green-300: #38bdf8 !important;
    --green-400: #0ea5e9 !important;
    --green-500: #0284c7 !important;
    --green-600: #0369a1 !important;
    --green-700: #075985 !important;
    --green-800: #0c4a6e !important;
    --green-900: #082f49 !important;
    --green-950: #041421 !important;
  }

  /* Apply Golos Text font for analytical/data feel with Cyrillic support */
  body, html, h1, h2, h3, h4, h5, h6, p, span, div, button, input, textarea {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.01em;
  }
  
  pre, code, pre *, code *, .font-mono {
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace !important;
  }

  /* Specific UI Polish */
  .dark {
    --brand-purple: #0ea5e9 !important;
    --surface-primary: var(--gray-900) !important;
    --surface-secondary: var(--gray-850) !important;
    --surface-tertiary: var(--gray-800) !important;
    --text-primary: #f8fafc !important;
    --text-secondary: #94a3b8 !important;
    --border-light: rgba(255,255,255,0.05) !important;
    --border-medium: rgba(255,255,255,0.1) !important;
    --border-heavy: rgba(255,255,255,0.2) !important;
  }
  
  .dark body, .dark html {
    background-color: var(--gray-900) !important;
    background-image: 
      radial-gradient(ellipse at 10% 0%, rgba(14, 165, 233, 0.15), transparent 60%),
      radial-gradient(ellipse at 90% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
      repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px),
      radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px !important;
    background-position: center center !important;
    background-attachment: fixed !important;
  }

  body, html {
    background-color: var(--gray-50) !important;
    background-image: 
      radial-gradient(ellipse at 10% 0%, rgba(14, 165, 233, 0.1), transparent 60%),
      radial-gradient(ellipse at 90% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
      repeating-radial-gradient(circle at 50% 120%, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 40px),
      radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px !important;
    background-position: center center !important;
    background-attachment: fixed !important;
  }

  /* Industrial Shapes (Sharpen the bubbly ChatGPT look) */
  .rounded-xl, .rounded-2xl, .rounded-3xl, .rounded-lg, .rounded-md, .rounded,
  .rounded-t-3xl, .sm\:rounded-3xl, .sm\:rounded-2xl, .sm\:rounded-xl, .rounded-t-2xl {
    border-radius: 2px !important;
  }
  
  /* Square Tables / Grids */
  .markdown th:first-child,
  .markdown th:last-child,
  .markdown tbody tr:last-child td:first-child,
  .markdown tbody tr:last-child td:last-child,
  table th, table td, table tr {
    border-radius: 0px !important;
  }
  
  /* Audit Trail Message Structure */
  .message-render {
    border-bottom: 1px solid var(--border-light) !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 0 !important;
  }

  /* Ensure the last message doesn't have a border */
  .message-render:last-of-type {
    border-bottom: none !important;
  }

  /* Input Area Styling (Command Console Feel) */
  form {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* Remove the previous overly-broad layout frame */
  form > div {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
  }

  /* Target the exact chat input wrapper */
  form > div > div.relative.flex.w-full.flex-grow.flex-col {
    border-radius: 2px !important;
    border: 1px solid var(--border-medium) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    background-color: var(--surface-secondary) !important;
  }
  
  /* Ensure textarea and buttons don't have residual curves inside it */
  form > div > div.relative.flex.w-full.flex-grow.flex-col * {
    border-radius: 2px !important;
  }
  
  textarea {
    border-radius: 2px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    background: transparent !important;
  }

  /* Top Header Anchoring */
  [data-testid="header"], header, .sticky.top-0 {
    border-bottom: 1px solid var(--border-medium) !important;
    background-color: var(--surface-secondary) !important;
    backdrop-filter: blur(8px) !important;
  }

  /* Scrollbars - Enterprise Standard */
  ::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
  }
  ::-webkit-scrollbar-track {
    background: transparent !important;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--gray-600) !important;
    border-radius: 0 !important;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500) !important;
  }

  /* 1. Hide Sidebar & Nav toggles */
  .nav, .nav-mask, [data-testid="nav"], div.flex-shrink-0.overflow-hidden:has(> [data-testid="nav"]) { display: none !important; width: 0 !important; }
  button:has(svg.lucide-panel-left),
  button:has(svg.lucide-panel-left-open),
  button:has(svg.lucide-panel-left-close),
  button:has(svg.lucide-align-justify),
  button[aria-label*="sidebar" i] { display: none !important; }

  /* 2. Attach Files & Drag/Drop */
  #attach-file,
  button:has(svg.lucide-paperclip),
  button:has(svg[class*="paperclip" i]),
  button[aria-label*="Attach" i],
  input[type="file"] { display: none !important; }

  /* 3. Share & Export Menu */
  #export-menu-button,
  button:has(svg.lucide-share),
  button:has(svg.lucide-share-2),
  button[aria-label*="Share" i],
  button[aria-label*="Export" i],
  button[title*="Share" i] { display: none !important; }

  /* Microphone / Audio Recorder */
  #audio-recorder { display: none !important; }

  /* Message Actions: Fork */
  button:has(svg.lucide-git-fork) { display: none !important; }

  /* Message Actions: Read Aloud */
  button[title*="Read aloud" i],
  button[title*="Stop" i]:has(svg),
  button:has(svg path[d^="M11 4.9099"]),
  button:has(svg path[d^="M11 4.474"]) { display: none !important; }

  /* Message Actions: Feedback (Like/Dislike) */
  button:has(svg path[d^="M12.592"]),
  button:has(svg path[d^="M12.131"]),
  button:has(svg path[d^="M11.407"]),
  button:has(svg path[d^="M11.872"]) { display: none !important; }

  /* 4. Hide User Profile Picture in Chat */
  img[alt="avatar"] { display: none !important; }
  .message-render:has(.user-turn) > .flex-shrink-0 { display: none !important; }
  .message-render:has(.user-turn) > div:first-child:not(.user-turn) { display: none !important; }
  div:has(> img[alt="avatar"]) { display: none !important; }

  /* 5. Expose Background Through Layout Containers */
  #root,
  #root > div,
  main,
  [data-testid="presentation"],
  .bg-presentation,
  .dark\:bg-presentation,
  .dark .dark\:bg-gray-800.transition-width,
  .transition-width.bg-white,
  .relative.flex.h-full.max-w-full.flex-1.flex-col.overflow-hidden,
  .relative.flex.w-full.grow.overflow-hidden {
    background-color: transparent !important;
    background-image: none !important;
  }
