/* Shared glass material for the real parent Onix shell and restricted child dialogs.
   The authenticated scope outranks late-loaded Onix V4 styles without touching
   runtime layout, conversation ownership, permissions, or review actions. */
/* Vault already makes Onix inert while open; also remove its competing text layer.
   Its existing close path removes fcc-vault-open and restores the same conversation. */
body.fcc-liquid-glass.logged-in.fcc-vault-open:not(.fcc-auth-screen) #commandAiUploadPanel { visibility: hidden !important; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel {
  --onix-v2-ink: #faf6ff;
  --onix-v2-muted: #ded6e9;
  --onix-v2-line: rgba(235,229,255,.22);
  --onix-v2-soft-purple: rgba(191,153,238,.16);
  --onix-v4-ink: #faf6ff;
  --onix-v4-muted: #ded6e9;
  --onix-v4-line: rgba(235,229,255,.22);
  --onix-v4-canvas: transparent;
  --onix-v4-card: rgba(255,255,255,.08);
  --onix-v4-user: rgba(178,124,224,.2);
  --onix-thread-ink: #faf6ff;
  --onix-thread-muted: #ded6e9;
  --onix-thread-line: rgba(235,229,255,.22);
  --onix-glass-panel: linear-gradient(125deg,rgba(255,255,255,.06),rgba(255,255,255,.015)),rgba(23,27,42,.22);
  --onix-glass-card: linear-gradient(125deg,rgba(255,255,255,.12),rgba(255,255,255,.035));
  color-scheme: dark;
  background: var(--onix-glass-panel) !important;
  color: #faf6ff !important;
  border: 1px solid rgba(235,229,255,.36) !important;
  box-shadow: var(--glass-shadow),0 28px 90px rgba(4,7,20,.35) !important;
  backdrop-filter: blur(2px) saturate(115%);
  -webkit-backdrop-filter: blur(2px) saturate(115%);
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadBackdrop.command-ai-upload-backdrop,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel::backdrop {
  background: rgba(8,12,24,.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .command-ai-upload-panel-inner,.fcc-ask-shell,.fcc-onix-chat-stage,.fcc-ask-workspace,.fcc-ask-canvas,.command-ai-composer-wrap
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #askFccChatShell,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #askFccChatThread {
  background: transparent !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .fcc-ask-header,.command-ai-upload-header,.fcc-onix-thread-drawer-head
) {
  background: rgba(255,255,255,.045) !important;
  border-color: var(--onix-v4-line) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.14) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #askFccComposer {
  background: linear-gradient(180deg,transparent,rgba(20,24,39,.14)) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #askFccChatThread :is(
  .fcc-msg-card,.fcc-msg-bubble,.ask-fcc-bubble,.fcc-ios-card,.action-card,.ask-fcc-route-card,.ask-fcc-inline-card,
  .command-ai-chat-bubble,.command-ai-upload-chooser-card,.command-ai-upload-source-card
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .ask-fcc-composer-row,[data-onix-mobile-composer],.fcc-onix-thread-empty,.fcc-onix-thread-item.is-active,
  .ask-fcc-attachment-menu,.command-ai-upload-review-grid,.command-ai-upload-modal-content
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel article {
  background: var(--onix-glass-card) !important;
  border: 1px solid rgba(235,229,255,.24) !important;
  color: #faf6ff !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24),0 8px 22px rgba(4,7,20,.12) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #askFccChatThread :is(
  .fcc-msg-user > .fcc-msg-bubble,.ask-fcc-message--user > .ask-fcc-bubble,.command-ai-chat-bubble--user
) {
  background: linear-gradient(120deg,rgba(194,152,238,.30),rgba(162,116,204,.18)) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .fcc-onix-thread-drawer,.fcc-onix-thread-toast,.fcc-onix-thread-options > button
) {
  background: var(--onix-glass-panel) !important;
  color: #faf6ff !important;
  border-color: var(--onix-v4-line) !important;
  backdrop-filter: blur(2px) saturate(115%);
  -webkit-backdrop-filter: blur(2px) saturate(115%);
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .fcc-onix-thread-item-title,.fcc-ask-title,.fcc-onix-v4-brand-name,.fcc-onix-thread-drawer-title strong,
  .fcc-form-label,.command-ai-upload-field label,.ask-fcc-att-item,.command-ai-chat-bubble p,
  .fcc-msg-card p,.ask-fcc-bubble p,.fcc-msg-card li,.ask-fcc-bubble li,.fcc-msg-card strong,.ask-fcc-bubble strong
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel :is(h2,h3,p,label) {
  color: #faf6ff !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .fcc-ask-subtitle,.command-ai-upload-subtitle,.fcc-onix-message-time,.fcc-onix-thread-group-label,
  .fcc-onix-thread-item-time,.fcc-onix-thread-item-preview,.fcc-onix-clear-scope,.fcc-onix-thread-drawer-title span,
  .command-ai-upload-extract-status,.muted,.fcc-ask-footnote
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel [role=status] {
  color: #ded6e9 !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .fcc-ask-close,.fcc-onix-thread-header-btn,.fcc-onix-thread-drawer-close,.fcc-onix-clear-view,
  .ask-fcc-att-item,.btn-secondary,.command-ai-chat-chip,.command-ai-upload-chip,.fcc-onix-thread-options > summary
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #commandAiAttachBtn,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #commandAiComposerMic,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel button,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-top-entry {
  background: rgba(255,255,255,.10) !important;
  color: #faf6ff !important;
  border-color: rgba(235,229,255,.28) !important;
  min-height: 44px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.18),0 4px 10px rgba(4,7,20,.12) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  .fcc-ask-close,.fcc-onix-thread-header-btn,.fcc-onix-thread-drawer-close
) {
  width: 44px !important; height: 44px !important; min-width: 44px !important; flex-basis: 44px !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(
  input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select
),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel :is(input,textarea,select) {
  color: #faf6ff !important;
  background: rgba(10,15,28,.22) !important;
  border-color: rgba(235,229,255,.3) !important;
  caret-color: #fff;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #commandAiComposerInput {
  background: transparent !important;
  color: #faf6ff !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #commandAiComposerInput::placeholder {
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open .command-ai-composer-wrap {
  border-color: transparent !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(input,textarea)::placeholder,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel :is(input,textarea)::placeholder {
  color: #d3c9e0 !important; opacity: 1;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open select option,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel select option { background: #302b43; color: #fff; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(button,input,textarea,select,summary):focus-visible,
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel :is(button,input,textarea,select):focus-visible {
  outline: 3px solid #e1c4ff !important; outline-offset: 2px !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(button,.fcc-onix-thread-item):hover:not(:disabled),
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel button:hover:not(:disabled) {
  border-color: rgba(245,236,255,.65) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open .fcc-onix-thread-item:hover {
  background: rgba(255,255,255,.09) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(.command-ai-upload-warning-chip,.command-ai-upload-review-badge,.command-ai-upload-safety-note,.command-ai-upload-mismatch-note) {
  color: #ffe1ae !important; background: rgba(150,94,28,.24) !important; border-color: rgba(255,211,145,.4) !important;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open .fcc-onix-thread-options > button { color: #ffbac5 !important; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel {
  overflow: auto;
  border-radius: 24px;
  padding: clamp(16px,3vw,28px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel .child-onix-source { border-color: rgba(235,229,255,.24); }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel article { overflow-wrap: anywhere; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel form { gap: 8px; }
body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel form input { min-width: min(180px,100%); box-sizing: border-box; }
@media (max-width: 720px) {
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open #commandAiComposerInput { font-size: 16px !important; }
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open {
    border: 0 !important; border-radius: 0 !important;
  }
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(.fcc-ask-header,.command-ai-upload-header) {
    gap: 6px !important; padding-left: 8px !important; padding-right: 8px !important;
  }
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(.fcc-ask-header-brain-legacy,.command-ai-upload-header-brain) {
    width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 30px !important; flex-basis: 30px !important;
  }
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open :is(input,textarea,select),
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel :is(input,textarea,select) { font-size: 16px !important; }
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel form input { flex-basis: 100%; width: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open,
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel {
    --onix-glass-panel: #25283b; --onix-glass-card: #35374c;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open * { transition: none !important; animation: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) #commandAiUploadPanel.command-ai-upload-panel.is-open,
  body.fcc-liquid-glass.logged-in:not(.fcc-auth-screen) .child-onix-panel { --onix-glass-panel: #25283b; --onix-glass-card: #35374c; }
}
