﻿    #iris-glow {
        position: fixed;
        bottom: -40px;
        right: -40px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
        z-index: 10990;
        pointer-events: none;
        transition: all 0.6s ease;
        filter: blur(20px);
      }

    #iris-glow.open {
      bottom: 440px;
      right: 60px;
      width: 200px;
      height: 200px;
    }

    #iris-glow.listening {
      background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, rgba(245, 166, 35, 0.04) 40%, transparent 70%);
    }

    #iris-glow.thinking {
      background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
    }

    #iris-glow.speaking {
      background: radial-gradient(circle, rgba(0, 243, 255, 0.18) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
    }

    /* Full-page Three.js canvas â€” ABOVE the panel so sphere renders in front */
    #iris-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10991;
        pointer-events: none;
      }

    /* Clickable hitbox over sphere */
    #iris-hitbox {
        position: fixed;
        bottom: 32px;
        right: 32px;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        z-index: 10996;
        cursor: pointer;
        pointer-events: none;
        display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      transform: scale(0.82);
      transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #iris-hitbox.active {
      opacity: 1;
      transform: scale(1);
      pointer-events: all;
    }

    #iris-hitbox-label {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: lowercase;
        color: rgba(255, 255, 255, 0.45);
        position: absolute;
        left: 50%;
        bottom: -18px;
        white-space: nowrap;
        opacity: 0;
        transform: translate(-50%, 8px);
        transition: color 0.3s, opacity 0.35s ease, transform 0.35s ease;
      }

    #iris-hitbox.active #iris-hitbox-label {
        opacity: 1;
        transform: translate(-50%, 0);
      }

    #iris-hitbox:hover #iris-hitbox-label {
      color: rgba(112, 225, 255, 0.8);
    }

    #iris-floating-stack {
        display: none !important;
        position: fixed;
        z-index: 10995;
        width: min(360px, calc(100vw - 180px));
        max-height: 280px;
        display: flex;
      flex-direction: column;
      justify-content: flex-end;
      gap: 10px;
      pointer-events: none;
      opacity: 0;
      transform: translate3d(0, 10px, 0);
      transition: opacity 0.45s ease, transform 0.45s ease;
      will-change: opacity, transform;
    }

    #iris-floating-stack.active {
      opacity: 1;
      transform: translate3d(0, 0, 0);
      pointer-events: auto;
    }

    #iris-floating-stack::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top,
          rgba(2, 6, 14, 0) 0%,
          rgba(2, 6, 14, 0) 56%,
          rgba(2, 6, 14, 0.2) 78%,
          rgba(2, 6, 14, 0.52) 100%);
      pointer-events: none;
      z-index: 2;
      border-radius: 28px;
    }

    #iris-floating-stack-track {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: flex-end;
      gap: 10px;
      max-height: 280px;
      overflow: hidden;
      padding: 18px 22px 12px 18px;
      mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
      -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
    }

    #iris-floating-controls {
      position: relative;
      z-index: 3;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 0 22px 0 18px;
      pointer-events: auto;
    }

    #iris-floating-compose {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(4, 10, 20, 0.58);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      color: rgba(255, 255, 255, 0.58);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    }

    #iris-floating-compose:hover {
      transform: scale(1.06);
      color: var(--iris-accent);
      border-color: rgba(0, 243, 255, 0.28);
      background: rgba(4, 10, 20, 0.82);
    }

    #iris-floating-input-shell {
      width: min(340px, calc(100vw - 190px));
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(4, 10, 20, 0.82);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
      opacity: 0;
      transform: translateY(10px) scale(0.96);
      pointer-events: none;
      transition: opacity 0.28s ease, transform 0.28s ease;
    }

    #iris-floating-input-shell.active {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .iris-floating-pill-btn {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(255, 255, 255, 0.5);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .iris-floating-pill-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    #iris-floating-voice.recording {
      background: rgba(245, 166, 35, 0.15);
      color: var(--iris-gold);
      border-color: rgba(245, 166, 35, 0.35);
      animation: irisMicPulse 1.5s infinite;
    }

    #iris-floating-send {
      background: rgba(0, 243, 255, 0.12);
      color: var(--iris-accent);
      border-color: rgba(0, 243, 255, 0.2);
    }

    #iris-floating-send:hover {
      background: rgba(0, 243, 255, 0.24);
    }

    #iris-floating-input {
      flex: 1;
      min-width: 0;
      background: transparent;
      border: none;
      outline: none;
      color: #fff;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      letter-spacing: 0.01em;
    }

    #iris-floating-input::placeholder {
      color: rgba(255, 255, 255, 0.26);
    }

    .iris-floating-msg {
      position: relative;
      max-width: 100%;
      font-family: 'Space Grotesk', sans-serif;
      line-height: 1.5;
      letter-spacing: 0.01em;
      word-break: break-word;
      text-wrap: pretty;
      text-shadow: 0 0 18px rgba(0, 243, 255, 0.18), 0 2px 18px rgba(0, 0, 0, 0.45);
      animation: irisFloatingIn 0.32s ease-out;
    }

    .iris-floating-msg.iris {
      color: rgba(205, 247, 255, 0.95);
      font-size: 15px;
      font-weight: 500;
    }

    .iris-floating-msg.user {
      color: rgba(255, 255, 255, 0.82);
      font-size: 13px;
      font-weight: 400;
    }

    .iris-floating-msg.system {
      color: rgba(255, 255, 255, 0.48);
      font-size: 12px;
      font-style: italic;
    }

    .iris-floating-msg.thinking {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: rgba(189, 159, 255, 0.88);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    .iris-floating-msg.thinking::before {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(139, 92, 246, 0.95);
      box-shadow: 0 0 14px rgba(139, 92, 246, 0.75);
      animation: irisFloatingPulse 1s ease-in-out infinite;
    }

    @keyframes irisFloatingIn {
      from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
      }
    }

    @keyframes irisFloatingPulse {
      0%, 100% { opacity: 0.45; transform: scale(0.9); }
      50% { opacity: 1; transform: scale(1.15); }
    }

    /* Main Panel */
    #iris-panel {
        position: fixed;
      bottom: 32px;
      right: 32px;
      width: 400px;
      height: 560px;
      min-width: 340px;
      min-height: 420px;
      max-width: 80vw;
      max-height: 80vh;
        background: var(--iris-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--iris-border);
        border-radius: var(--iris-radius);
        display: flex;
        flex-direction: column;
        z-index: 10999;
        pointer-events: all;
        transform: scale(0) translateY(40px);
      transform-origin: bottom right;
      opacity: 0;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
      overflow: hidden;
      box-shadow: 0 0 60px rgba(0, 243, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
      display: none;
      pointer-events: none;
    }

    #iris-panel.open {
      transform: scale(1) translateY(0);
      opacity: 1;
    }

    #iris-panel.minimized {
      height: 48px !important;
      min-height: 48px !important;
    }

    #iris-panel.minimized #iris-sphere-viewport,
    #iris-panel.minimized #iris-messages,
    #iris-panel.minimized #iris-input-area,
    #iris-panel.minimized #iris-file-overlay {
      display: none !important;
    }

    /* Title Bar */
    #iris-title-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      cursor: grab;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      flex-shrink: 0;
      user-select: none;
      background: rgba(0, 0, 0, 0.15);
    }

    #iris-title-bar:active {
      cursor: grabbing;
    }

    .iris-title-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .iris-status-led {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 6px #22c55e;
      transition: all 0.3s;
    }

    .iris-status-led.connecting {
      background: #f59e0b;
      box-shadow: 0 0 6px #f59e0b;
      animation: ledPulse 1.5s infinite;
    }

    .iris-status-led.offline {
      background: #ef4444;
      box-shadow: 0 0 6px #ef4444;
    }

    @keyframes ledPulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.4;
      }
    }

    .iris-title-text {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--iris-accent);
    }

    .iris-title-status {
      font-size: 9px;
      color: var(--iris-text-muted);
      margin-left: 4px;
      font-weight: 500;
      letter-spacing: 1px;
    }

    .iris-title-btns {
      display: flex;
      gap: 4px;
    }

    .iris-title-btns button {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(255, 255, 255, 0.5);
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .iris-title-btns button:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    /* Sphere Viewport â€” 80px */
    #iris-sphere-viewport {
      width: 100%;
      height: 80px;
      position: relative;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .iris-state-label {
      position: absolute;
      bottom: 6px;
      left: 0;
      right: 0;
      text-align: center;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 10px;
      color: rgba(255, 255, 255, 0.3);
      pointer-events: none;
      transition: color 0.3s;
    }

    /* Resize Handles */
    .iris-resize-handle {
        position: absolute;
        z-index: 11001;
      }

    .iris-resize-handle.n {
      top: -3px;
      left: 12px;
      right: 12px;
      height: 6px;
      cursor: n-resize;
    }

    .iris-resize-handle.s {
      bottom: -3px;
      left: 12px;
      right: 12px;
      height: 6px;
      cursor: s-resize;
    }

    .iris-resize-handle.e {
      right: -3px;
      top: 12px;
      bottom: 12px;
      width: 6px;
      cursor: e-resize;
    }

    .iris-resize-handle.w {
      left: -3px;
      top: 12px;
      bottom: 12px;
      width: 6px;
      cursor: w-resize;
    }

    .iris-resize-handle.ne {
      top: -4px;
      right: -4px;
      width: 14px;
      height: 14px;
      cursor: ne-resize;
    }

    .iris-resize-handle.nw {
      top: -4px;
      left: -4px;
      width: 14px;
      height: 14px;
      cursor: nw-resize;
    }

    .iris-resize-handle.se {
      bottom: -4px;
      right: -4px;
      width: 14px;
      height: 14px;
      cursor: se-resize;
    }

    .iris-resize-handle.sw {
      bottom: -4px;
      left: -4px;
      width: 14px;
      height: 14px;
      cursor: sw-resize;
    }

    .iris-resize-handle.se::after,
    .iris-resize-handle.ne::after,
    .iris-resize-handle.sw::after,
    .iris-resize-handle.nw::after {
      content: '';
      position: absolute;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(0, 243, 255, 0.25);
      opacity: 0;
      transition: opacity 0.2s;
    }

    #iris-panel:hover .iris-resize-handle::after {
      opacity: 1;
    }

    .iris-resize-handle.se::after {
      bottom: 3px;
      right: 3px;
    }

    .iris-resize-handle.ne::after {
      top: 3px;
      right: 3px;
    }

    .iris-resize-handle.sw::after {
      bottom: 3px;
      left: 3px;
    }

    .iris-resize-handle.nw::after {
      top: 3px;
      left: 3px;
    }

    /* File Drop Overlay */
    #iris-file-overlay {
      display: none !important;
      position: absolute;
      inset: 0;
      background: rgba(0, 243, 255, 0.06);
      border: 2px dashed rgba(0, 243, 255, 0.5);
      border-radius: var(--iris-radius);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10002;
        backdrop-filter: blur(4px);
      }

    #iris-file-overlay.active {
      display: flex;
    }

    .drop-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--iris-accent);
    }

    .drop-content i {
      font-size: 40px;
      opacity: 0.8;
    }

    .drop-content .drop-title {
      font-size: 14px;
      font-weight: 600;
    }

    .drop-content .drop-sub {
      font-size: 11px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.4);
    }

    /* Messages */
    #iris-messages {
      flex: 1;
      overflow-y: auto;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }

    #iris-messages::-webkit-scrollbar {
      width: 4px;
    }

    #iris-messages::-webkit-scrollbar-track {
      background: transparent;
    }

    #iris-messages::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
    }

    .iris-msg {
      max-width: 88%;
      padding: 10px 14px;
      border-radius: 16px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 13px;
      line-height: 1.55;
      word-wrap: break-word;
      animation: irisMsgIn 0.3s ease;
      position: relative;
    }

    @keyframes irisMsgIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .iris-msg.user {
      align-self: flex-end;
      background: rgba(0, 243, 255, 0.12);
      border: 1px solid rgba(0, 243, 255, 0.18);
      color: #e0f7ff;
      border-bottom-right-radius: 4px;
    }

    .iris-msg.iris {
      align-self: flex-start;
      background: rgba(139, 92, 246, 0.08);
      border: 1px solid rgba(139, 92, 246, 0.12);
      color: #e8e0ff;
      border-bottom-left-radius: 4px;
    }

    .iris-msg.system {
      align-self: center;
      background: none;
      color: rgba(255, 255, 255, 0.3);
      font-size: 11px;
      font-style: italic;
      padding: 4px;
    }

    /* Message actions */
    .iris-msg-actions {
      position: absolute;
      top: -10px;
      right: 8px;
      display: none;
      gap: 3px;
    }

    .iris-msg:hover .iris-msg-actions {
      display: flex;
    }

    .iris-msg-actions button {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.5);
      font-size: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }

    .iris-msg-actions button:hover {
      color: #fff;
      background: rgba(0, 0, 0, 0.9);
    }

    .iris-msg-time {
      font-size: 9px;
      color: rgba(255, 255, 255, 0.15);
      margin-top: 3px;
      display: none;
    }

    .iris-msg:hover .iris-msg-time {
      display: block;
    }

    /* Markdown content */
    .iris-md {
      font-size: 13px;
      line-height: 1.55;
    }

    .iris-md h1,
    .iris-md h2,
    .iris-md h3 {
      font-weight: 700;
      margin: 6px 0 3px;
      color: #fff;
    }

    .iris-md h1 {
      font-size: 15px;
    }

    .iris-md h2 {
      font-size: 14px;
    }

    .iris-md h3 {
      font-size: 13px;
    }

    .iris-md p {
      margin: 3px 0;
    }

    .iris-md strong {
      color: #fff;
      font-weight: 600;
    }

    .iris-md em {
      font-style: italic;
      color: rgba(255, 255, 255, 0.8);
    }

    .iris-md ul,
    .iris-md ol {
      margin: 3px 0;
      padding-left: 16px;
    }

    .iris-md li {
      margin: 2px 0;
    }

    .iris-md code {
      background: rgba(255, 255, 255, 0.08);
      padding: 1px 5px;
      border-radius: 4px;
      font-family: 'Fira Code', ui-monospace, monospace;
      font-size: 12px;
    }

    .iris-md pre {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 10px;
      margin: 5px 0;
      overflow-x: auto;
      position: relative;
    }

    .iris-md pre code {
      background: none;
      padding: 0;
      font-size: 11px;
      display: block;
    }

    .iris-md-copy-btn {
      position: absolute;
      top: 6px;
      right: 6px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      padding: 2px 8px;
      color: rgba(255, 255, 255, 0.4);
      font-size: 10px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .iris-md-copy-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
    }

    .iris-md a {
      color: var(--iris-accent);
      text-decoration: underline;
    }

    .iris-md blockquote {
      border-left: 3px solid rgba(0, 243, 255, 0.3);
      padding-left: 10px;
      margin: 4px 0;
      color: rgba(255, 255, 255, 0.6);
    }

    .iris-md table {
      border-collapse: collapse;
      margin: 4px 0;
      width: 100%;
      font-size: 12px;
    }

    .iris-md th,
    .iris-md td {
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 4px 8px;
      text-align: left;
    }

    .iris-md th {
      background: rgba(255, 255, 255, 0.05);
      font-weight: 600;
    }

    /* Streaming cursor */
    .iris-streaming-cursor {
      display: inline-block;
      width: 2px;
      height: 13px;
      background: var(--iris-accent);
      margin-left: 1px;
      vertical-align: text-bottom;
      animation: cursorBlink 0.8s step-end infinite;
    }

    @keyframes cursorBlink {

      0%,
      50% {
        opacity: 1;
      }

      51%,
      100% {
        opacity: 0;
      }
    }

    /* Typing indicator */
    .iris-typing-dots {
      display: flex;
      gap: 4px;
      padding: 6px 12px;
    }

    .iris-typing-dots span {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: rgba(139, 92, 246, 0.6);
      animation: irisDotBounce 1.2s infinite;
    }

    .iris-typing-dots span:nth-child(2) {
      animation-delay: 0.15s;
    }

    .iris-typing-dots span:nth-child(3) {
      animation-delay: 0.3s;
    }

    @keyframes irisDotBounce {

      0%,
      60%,
      100% {
        transform: translateY(0);
      }

      30% {
        transform: translateY(-5px);
      }
    }

    /* File preview cards */
    .iris-file-preview {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      padding: 8px 12px;
      margin: 2px 0;
      max-width: 88%;
      align-self: flex-end;
      animation: irisMsgIn 0.3s ease;
    }

    .iris-file-preview img {
      width: 44px;
      height: 44px;
      border-radius: 6px;
      object-fit: cover;
    }

    .iris-file-preview .file-icon {
      width: 44px;
      height: 44px;
      border-radius: 6px;
      background: rgba(0, 243, 255, 0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--iris-accent);
      font-size: 20px;
      flex-shrink: 0;
    }

    .iris-file-preview .file-info {
      flex: 1;
      overflow: hidden;
    }

    .iris-file-preview .file-name {
      font-size: 12px;
      color: #fff;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .iris-file-preview .file-size {
      font-size: 10px;
      color: var(--iris-text-muted);
    }

    .iris-file-preview .file-status {
      font-size: 10px;
      color: var(--iris-accent);
      margin-top: 1px;
    }

    /* Input area */
    #iris-input-area {
      padding: 10px 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      display: flex;
      gap: 6px;
      align-items: center;
      flex-shrink: 0;
    }

    #iris-input {
      flex: 1;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 9px 12px;
      color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 13px;
      outline: none;
      transition: border-color 0.2s;
    }

    #iris-input:focus {
      border-color: rgba(0, 243, 255, 0.4);
    }

    #iris-input::placeholder {
      color: rgba(255, 255, 255, 0.25);
    }

    .iris-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .iris-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    #iris-send-btn {
      background: var(--iris-accent-dim);
      color: var(--iris-accent);
      border-color: rgba(0, 243, 255, 0.25);
    }

    #iris-send-btn:hover {
      background: rgba(0, 243, 255, 0.25);
    }

    #iris-attach-btn,
    #iris-floating-attach {
      display: none !important;
    }

    /* Mic button states */
    #iris-mic-btn {
      position: relative;
      overflow: hidden;
    }

    #iris-mic-btn.recording {
      background: rgba(245, 166, 35, 0.15);
      color: var(--iris-gold);
      border-color: rgba(245, 166, 35, 0.4);
      animation: irisMicPulse 1.5s infinite;
    }

    @keyframes irisMicPulse {

      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.3);
      }

      50% {
        box-shadow: 0 0 0 8px rgba(245, 166, 35, 0);
      }
    }

    /* Waveform bars inside mic button */
    .iris-waveform {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      height: 100%;
      width: 100%;
      position: absolute;
      inset: 0;
    }

    .iris-waveform .bar {
      width: 3px;
      background: var(--iris-gold);
      border-radius: 2px;
      transition: height 0.06s ease;
      min-height: 3px;
    }

    /* Mobile responsive */
    @media (max-width: 480px) {
      #iris-floating-stack {
        width: min(240px, calc(100vw - 136px));
        max-height: 220px;
      }

      #iris-floating-stack-track {
        max-height: 220px;
        padding: 12px 16px 8px 10px;
      }

      #iris-floating-controls {
        padding: 0 16px 0 10px;
      }

      #iris-floating-input-shell {
        width: min(250px, calc(100vw - 140px));
      }

      #iris-panel.open {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        width: calc(100vw - 16px) !important;
        max-height: 70vh;
      }

      #iris-hitbox {
        width: 100px;
        height: 100px;
        bottom: 16px;
        right: 16px;
      }
    }

    :root {
      --iris-bg: rgba(10, 16, 30, 0.92);
      --iris-border: rgba(0, 243, 255, 0.12);
      --iris-accent: #00f3ff;
      --iris-accent-dim: rgba(0, 243, 255, 0.15);
      --iris-gold: #f5a623;
      --iris-purple: #8b5cf6;
      --iris-text: #e0f7ff;
      --iris-text-muted: rgba(255, 255, 255, 0.4);
      --iris-radius: 20px;
    }

