/* Iris 1.0: collapsible starter chips + document preview */
@import "./iris-file-manager.css";

:root {
  --iris-home-sidebar-width: 116px;
  --iris-home-shell-gap: 16px;
  --iris-home-panels-z: 1;
  --iris-home-sidebar-z: 300;
  --iris-home-sidebar-flyout-z: 320;
  --iris-public-catalog-z: 1;
  --iris-sidebar-float-label-gap: 12px;
  --iris-sidebar-icon-hit: 64px;
  --iris-sidebar-icon-size: 34px;
  --iris-sidebar-label-size: 9px;
  --iris-globe-size: 62px;
  --iris-globe-hit: 72px;
  --iris-globe-glow: 0 0 5px rgba(56, 189, 248, 0.35);
  --iris-globe-glow-strong: 0 0 7px rgba(56, 189, 248, 0.7);
  --iris-thunder-width: 34px;
  --iris-thunder-height: 68px;
}

html[data-theme="light"] {
  --iris-globe-glow: 0 0 6px rgba(2, 132, 199, 0.38);
  --iris-globe-glow-strong: 0 0 8px rgba(2, 132, 199, 0.72);
}

.js-home-sidebar.is-apps-rail-expanded,
.js-home-sidebar.is-apps-rail-expanded .home-sidebar__strip,
.js-home-sidebar.is-apps-rail-expanded .home-sidebar__bottom,
.js-home-sidebar.is-apps-rail-expanded .home-sidebar__apps-wrap {
  overflow: visible;
}

.js-home-sidebar .home-sidebar__strip {
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main content stays below the sidebar and its flyout menus */
.home-panels {
  position: relative;
  z-index: var(--iris-home-panels-z, 1);
}

/* Floating workspace nav — no rail panel behind the icon column */
.home-sidebar {
  position: relative;
  z-index: var(--iris-home-sidebar-z, 300);
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
}

.js-home-sidebar .home-sidebar__strip,
.js-home-sidebar .home-sidebar__nav,
.js-home-sidebar .home-sidebar__bottom-nav,
.js-home-sidebar .home-sidebar__nav-icons {
  overflow: visible;
}

/* Desktop sidebar flyout menus (must live in bundled CSS, not inline HTML) */
.home-sidebar__nav-group {
  position: relative;
  width: 100%;
  overflow: visible;
  z-index: 1;
}

.home-sidebar__nav-group:hover,
.home-sidebar__nav-group:focus-within {
  z-index: calc(var(--iris-home-sidebar-flyout-z, 320) - 1);
}

@media (hover: none), (pointer: coarse) {
  .home-sidebar__nav-group.is-expanded {
    z-index: calc(var(--iris-home-sidebar-flyout-z, 320) - 1);
  }
}

.home-sidebar__nav-group-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.home-sidebar__nav-group-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  min-height: var(--iris-sidebar-icon-hit);
}

.home-sidebar__nav-group-trigger:hover,
.home-sidebar__nav-group-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

@media (hover: none), (pointer: coarse) {
  .home-sidebar__nav-group.is-expanded .home-sidebar__nav-group-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
  }
}

html[data-theme="light"] .home-sidebar__nav-group-trigger:hover,
html[data-theme="light"] .home-sidebar__nav-group-trigger:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

@media (hover: none), (pointer: coarse) {
  html[data-theme="light"] .home-sidebar__nav-group.is-expanded .home-sidebar__nav-group-trigger {
    background: rgba(15, 23, 42, 0.06);
  }
}

.home-sidebar__nav-flyout {
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  z-index: var(--iris-home-sidebar-flyout-z, 320);
  display: none;
  align-items: center;
  padding-left: 10px;
  pointer-events: none;
}

.home-sidebar__nav-flyout::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 14px;
}

@media (hover: hover) {
  .home-sidebar__nav-group:hover .home-sidebar__nav-flyout {
    display: flex;
    pointer-events: auto;
  }

  .home-sidebar__nav-group:hover .home-sidebar__nav-group-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
  }

  html[data-theme="light"] .home-sidebar__nav-group:hover .home-sidebar__nav-group-trigger {
    background: rgba(15, 23, 42, 0.06);
  }
}

.home-sidebar__nav-group:focus-within .home-sidebar__nav-flyout {
  display: flex;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .home-sidebar__nav-group.is-expanded .home-sidebar__nav-flyout {
    display: flex;
    pointer-events: auto;
  }
}

.home-sidebar__nav-flyout-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .home-sidebar__nav-flyout-panel {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.home-sidebar__nav-flyout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
  box-shadow: none;
  box-sizing: border-box;
}

.home-sidebar__nav-flyout-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--accent-2);
}

.home-sidebar__nav-flyout-item-icon img,
.home-sidebar__nav-flyout-item-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.home-sidebar__nav-flyout-item-text {
  flex: 1 1 auto;
  min-width: 0;
}

.home-sidebar__nav-flyout-item:hover,
.home-sidebar__nav-flyout-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

html[data-theme="light"] .home-sidebar__nav-flyout-item:hover,
html[data-theme="light"] .home-sidebar__nav-flyout-item:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

.home-sidebar__nav-flyout-item--soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.home-sidebar__nav-flyout-soon {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

html[data-theme="light"] .home-sidebar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home-sidebar__brand,
.home-mobile-workspace-sheet__brand {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.home-sidebar__brand .brand-mark--fm,
.home-sidebar__brand .brand-mark--iris {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-sidebar__brand .brand-mark--fm,
html[data-theme="light"] .home-sidebar__brand .brand-mark--iris {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home-sidebar__brand:hover .brand-mark--fm,
.home-sidebar__brand:hover .brand-mark--iris,
.home-mobile-workspace-sheet__brand:hover .brand-mark--fm,
.home-mobile-workspace-sheet__brand:hover .brand-mark--iris {
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-sidebar__brand:hover .brand-mark--fm,
html[data-theme="light"] .home-sidebar__brand:hover .brand-mark--iris {
  border: none !important;
  box-shadow: none !important;
}

/* Sidebar threads toggle (top of nav) */
.home-sidebar__threads {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--iris-sidebar-icon-hit);
  height: var(--iris-sidebar-icon-hit);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  line-height: 0;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.home-sidebar__threads[hidden] {
  display: none !important;
}

.home-sidebar__threads:hover,
.home-sidebar__threads:focus-visible {
  border: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-theme="light"] .home-sidebar__threads:hover,
html[data-theme="light"] .home-sidebar__threads:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

.home-sidebar__threads-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.home-sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 85;
  overflow: visible;
}

.home-sidebar__bottom-nav {
  width: 100%;
}

.home-sidebar__bottom-nav .home-sidebar__nav-icons {
  gap: 10px;
}

.home-sidebar__apps-wrap {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.home-sidebar__apps-wrap.is-expanded {
  align-items: center;
  overflow: visible;
}

.home-sidebar__apps-toggle {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--iris-sidebar-icon-hit);
  height: var(--iris-sidebar-icon-hit);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-sidebar__apps-toggle:hover,
.home-sidebar__apps-toggle:focus-visible {
  border: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-theme="light"] .home-sidebar__apps-toggle:hover,
html[data-theme="light"] .home-sidebar__apps-toggle:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-toggle {
  display: none !important;
}

.home-sidebar__apps-toggle-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-sidebar__apps-collapse {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  width: var(--iris-sidebar-icon-hit);
  height: 32px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.88);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-sidebar__apps-collapse[hidden] {
  display: none !important;
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-collapse {
  display: flex;
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-collapse:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}

.home-sidebar__apps-collapse:hover,
.home-sidebar__apps-collapse:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .home-sidebar__apps-collapse:hover,
html[data-theme="light"] .home-sidebar__apps-collapse:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

/* No full-screen overlay — outside clicks close via JS in home-sidebar.js */
.home-sidebar__apps-backdrop {
  display: none !important;
}

.home-sidebar__apps-menu {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-menu {
  max-height: 340px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  align-items: center;
  overflow: visible !important;
}

.home-sidebar__apps-item {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: auto;
  min-height: var(--iris-sidebar-icon-hit);
  margin: 0 auto;
  padding: 4px 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  opacity: 0;
  overflow: visible;
  transform: scale(0.88);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item {
  width: 100%;
  max-width: 100%;
  padding: 4px 0;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
}

/* Permanent nav items must not inherit collapsed apps-menu visibility */
.home-sidebar__nav-icons > .home-sidebar__builder,
.home-sidebar__bottom-nav .home-sidebar__builder {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-collapse {
  transition-delay: 0s;
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item:nth-child(2) {
  transition-delay: 0.04s;
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item:nth-child(3) {
  transition-delay: 0.08s;
}

.home-sidebar__apps-item:hover,
.home-sidebar__apps-item:focus-visible,
.home-sidebar__apps-item.is-active {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: var(--text);
}

html[data-theme="light"] .home-sidebar__apps-item:hover,
html[data-theme="light"] .home-sidebar__apps-item:focus-visible,
html[data-theme="light"] .home-sidebar__apps-item.is-active {
  background: rgba(15, 23, 42, 0.06);
}

.home-sidebar__apps-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--iris-sidebar-icon-size);
  min-width: var(--iris-sidebar-icon-size);
  height: var(--iris-sidebar-icon-size);
  color: var(--accent-2);
}

.home-sidebar__apps-item-icon svg {
  width: var(--iris-sidebar-icon-size);
  height: var(--iris-sidebar-icon-size);
}

.home-sidebar__apps-toggle-grid svg {
  width: 24px;
  height: 24px;
}

.home-sidebar__apps-item-label {
  position: static;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: var(--iris-sidebar-label-size);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
  text-shadow: none;
  pointer-events: none;
  transform: none;
  z-index: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item-label {
  opacity: 1;
  visibility: visible;
}

html[data-theme="light"] .home-sidebar__apps-item-label {
  color: #64748b;
  text-shadow: none;
}

html[data-theme="light"] .home-sidebar__apps-item-icon {
  color: #2563eb;
}

html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__builder,
html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__builder:hover,
html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__builder:focus-visible,
html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__builder.is-active,
html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__featured-code,
html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__featured-code:hover,
html[data-theme="light"] .home-sidebar__nav-icons .home-sidebar__featured-code:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-sidebar__builder-icon .home-sidebar__nav-icon-img,
html[data-theme="light"] .home-sidebar__featured-code .home-sidebar__nav-icon-img {
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.14));
}

.home-sidebar .home-sidebar__public-globe {
  margin-top: 0;
}

.home-sidebar__nav-icons .home-sidebar__featured-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: auto;
  margin: 0 auto;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
  overflow: visible;
  color: inherit;
}

.home-sidebar__nav-icons .home-sidebar__featured-code:hover,
.home-sidebar__nav-icons .home-sidebar__featured-code:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

.home-sidebar__nav-icons .home-sidebar__featured-code .home-sidebar__code-thunder-icon {
  margin: 0 auto;
}

.home-mobile-bottom-bar {
  display: none;
}

@media (max-width: 980px) {
  .js-home-sidebar [data-iris-public-agents-nav],
  .js-home-sidebar [data-iris-public-apps-nav],
  .js-home-sidebar [data-iris-code-thunder] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Desktop sidebar rail — borderless icons (blend with background) */
.home-sidebar .home-sidebar__builder {
  width: 100%;
  height: auto;
  min-height: var(--iris-sidebar-icon-hit);
  border: none;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.home-sidebar .home-sidebar__notif.home-sidebar__builder {
  width: 100%;
  height: auto;
  min-height: var(--iris-sidebar-icon-hit);
  color: var(--accent-2);
  cursor: pointer;
}

.home-sidebar__notif .home-sidebar__builder-icon {
  position: relative;
}

.home-sidebar__notif .home-sidebar__notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
}

.home-sidebar__nav,
.home-sidebar__nav-icons,
.js-home-sidebar .home-sidebar__strip {
  overflow: visible !important;
}

.home-sidebar .home-sidebar__public-globe {
  width: var(--iris-globe-hit);
  height: var(--iris-globe-hit);
  min-width: var(--iris-globe-hit);
  min-height: var(--iris-globe-hit);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.home-sidebar .home-sidebar__public-globe:hover,
.home-sidebar .home-sidebar__public-globe:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

.home-sidebar .home-sidebar__public-globe:hover .home-sidebar__public-globe-icon,
.home-sidebar .home-sidebar__public-globe:focus-visible .home-sidebar__public-globe-icon {
  filter: drop-shadow(var(--iris-globe-glow-strong));
}

.home-sidebar .home-sidebar__public-globe.is-active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text);
}

.home-sidebar .home-sidebar__builder:hover,
.home-sidebar .home-sidebar__builder:focus-visible,
.home-sidebar .home-sidebar__notif:hover,
.home-sidebar .home-sidebar__notif:focus-visible {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}

.home-sidebar .home-sidebar__builder.is-active {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: var(--text);
}

html[data-theme="light"] .home-sidebar .home-sidebar__public-globe:hover,
html[data-theme="light"] .home-sidebar .home-sidebar__public-globe:focus-visible,
html[data-theme="light"] .home-sidebar .home-sidebar__public-globe.is-active {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-sidebar .home-sidebar__builder:hover,
html[data-theme="light"] .home-sidebar .home-sidebar__builder:focus-visible,
html[data-theme="light"] .home-sidebar .home-sidebar__notif:hover,
html[data-theme="light"] .home-sidebar .home-sidebar__notif:focus-visible,
html[data-theme="light"] .home-sidebar .home-sidebar__builder.is-active {
  background: rgba(15, 23, 42, 0.06);
}

.home-sidebar .home-sidebar__builder-icon {
  filter: none;
}

.home-sidebar .home-sidebar__public-globe-icon {
  position: relative;
  display: block;
  width: var(--iris-globe-size);
  height: var(--iris-globe-size);
  min-width: var(--iris-globe-size);
  min-height: var(--iris-globe-size);
  flex-shrink: 0;
  overflow: hidden;
  color: var(--accent, #5dd6ff);
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(var(--iris-globe-glow));
  transition: filter 0.2s ease;
}

.home-sidebar__public-globe-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--iris-globe-size);
  height: var(--iris-globe-size);
  pointer-events: none;
}

.home-sidebar__public-globe-fallback-svg {
  display: block;
  width: var(--iris-globe-size);
  height: var(--iris-globe-size);
}

.home-sidebar__public-globe-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: var(--iris-globe-size);
  height: var(--iris-globe-size);
  max-width: none;
  border: none;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: none;
  box-shadow: none;
}

.home-sidebar__public-globe-icon.is-webgl .home-sidebar__public-globe-img {
  display: none !important;
}

.home-sidebar__public-globe-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: var(--iris-globe-size);
  height: var(--iris-globe-size);
  pointer-events: none;
  background: transparent !important;
  image-rendering: auto;
}

.home-sidebar__public-globe-icon.is-static .home-sidebar__public-globe-img {
  display: block;
}

.home-sidebar__public-globe-icon.is-static .home-sidebar__public-globe-fallback,
.home-sidebar__public-globe-icon.is-static .home-sidebar__public-globe-canvas {
  display: none !important;
}

.home-sidebar__public-globe-icon.is-webgl .home-sidebar__public-globe-fallback,
.home-sidebar__public-globe-icon.is-webgl .home-sidebar__public-globe-img {
  display: none;
}

.home-sidebar__public-globe-icon.is-webgl .home-sidebar__public-globe-canvas {
  display: block;
}

.home-sidebar__public-globe-icon.is-fallback .home-sidebar__public-globe-img,
.home-sidebar__public-globe-icon.is-fallback .home-sidebar__public-globe-canvas {
  display: none !important;
}

.home-sidebar__public-globe-icon.is-fallback .home-sidebar__public-globe-fallback {
  display: flex;
}

html[data-theme="light"] .home-sidebar .home-sidebar__public-globe-icon {
  color: #0369a1;
}

/* Iris Code — classic lightning (idle pulse + AC surge on hover) */
.home-sidebar__apps-item.home-sidebar__apps-item--iris-code,
.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item.home-sidebar__apps-item--iris-code {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  height: max-content !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.home-sidebar__apps-item.home-sidebar__apps-item--iris-code:hover,
.home-sidebar__apps-item.home-sidebar__apps-item--iris-code:focus-visible,
.home-sidebar__apps-item.home-sidebar__apps-item--iris-code:focus-within,
.home-sidebar__apps-item.home-sidebar__apps-item--iris-code.is-active,
.home-sidebar__featured-code.home-sidebar__apps-item--iris-code:hover,
.home-sidebar__featured-code.home-sidebar__apps-item--iris-code:focus-visible,
.home-sidebar__featured-code.home-sidebar__apps-item--iris-code:focus-within,
.home-sidebar__featured-code.home-sidebar__apps-item--iris-code.is-active,
.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item.home-sidebar__apps-item--iris-code:hover,
.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item.home-sidebar__apps-item--iris-code:focus-visible,
.home-sidebar__apps-wrap.is-expanded .home-sidebar__apps-item.home-sidebar__apps-item--iris-code.is-active {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

html[data-theme="light"] .home-sidebar__apps-item.home-sidebar__apps-item--iris-code:hover,
html[data-theme="light"] .home-sidebar__apps-item.home-sidebar__apps-item--iris-code:focus-visible,
html[data-theme="light"] .home-sidebar__apps-item.home-sidebar__apps-item--iris-code.is-active {
  background: none !important;
  background-color: transparent !important;
}

.home-sidebar__apps-item--iris-code .home-sidebar__apps-item-icon.home-sidebar__code-thunder-icon,
.home-sidebar__apps-item--iris-code:hover .home-sidebar__apps-item-icon.home-sidebar__code-thunder-icon,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__apps-item-icon.home-sidebar__code-thunder-icon,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__apps-item-icon.home-sidebar__code-thunder-icon {
  width: var(--iris-thunder-width) !important;
  min-width: var(--iris-thunder-width) !important;
  height: var(--iris-thunder-height) !important;
  min-height: var(--iris-thunder-height) !important;
  max-width: none !important;
  max-height: none !important;
  color: transparent !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
}

.home-sidebar__code-thunder-icon {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: var(--iris-thunder-width);
  height: var(--iris-thunder-height);
  min-width: var(--iris-thunder-width);
  min-height: var(--iris-thunder-height);
  margin: 0;
  padding: 0;
  overflow: visible;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  --iris-lightning-stroke: rgba(255, 255, 255, 0.42);
  --iris-lightning-stroke-bright: rgba(255, 255, 255, 1);
  --iris-lightning-glow: rgba(255, 255, 255, 0.92);
  --iris-lightning-glow-soft: rgba(255, 255, 255, 0.48);
  --iris-lightning-halo: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .home-sidebar__code-thunder-icon {
  --iris-lightning-stroke: rgba(0, 0, 0, 0.44);
  --iris-lightning-stroke-bright: rgba(0, 0, 0, 1);
  --iris-lightning-glow: rgba(0, 0, 0, 0.92);
  --iris-lightning-glow-soft: rgba(0, 0, 0, 0.5);
  --iris-lightning-halo: rgba(0, 0, 0, 0.3);
}

.home-sidebar__code-lightning {
  display: block;
  width: var(--iris-thunder-width);
  height: var(--iris-thunder-height);
  overflow: visible;
}

.home-sidebar__code-lightning path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.home-sidebar__code-lightning-halo {
  stroke: var(--iris-lightning-halo);
  stroke-width: 9;
  opacity: 0.26;
  filter: blur(2.4px);
  animation: iris-lightning-idle-halo 6s ease-in-out infinite;
}

.home-sidebar__code-lightning-glow {
  stroke: var(--iris-lightning-glow-soft);
  stroke-width: 4.8;
  opacity: 0.42;
  filter: drop-shadow(0 0 2px var(--iris-lightning-glow-soft))
    drop-shadow(0 0 5px var(--iris-lightning-glow-soft));
  animation: iris-lightning-idle-glow 6s ease-in-out infinite;
}

.home-sidebar__code-lightning-core {
  stroke: var(--iris-lightning-stroke);
  stroke-width: 2.85;
  opacity: 0.72;
  filter: drop-shadow(0 0 1px var(--iris-lightning-glow-soft))
    drop-shadow(0 0 4px var(--iris-lightning-glow-soft));
  animation: iris-lightning-idle-core 6s ease-in-out infinite;
}

.home-sidebar__code-lightning-pass {
  stroke: var(--iris-lightning-stroke-bright);
  stroke-width: 3.2;
  stroke-dasharray: 62;
  stroke-dashoffset: 62;
  opacity: 0;
  filter: drop-shadow(0 0 2px var(--iris-lightning-glow))
    drop-shadow(0 0 8px var(--iris-lightning-glow-soft));
  animation: iris-lightning-idle-pass 6s linear infinite;
}

.home-sidebar__code-lightning-spike {
  fill: var(--iris-lightning-stroke-bright);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 3px var(--iris-lightning-glow))
    drop-shadow(0 0 10px var(--iris-lightning-glow-soft));
  animation: iris-lightning-idle-spike 6s ease-out infinite;
}

.home-sidebar__code-lightning-thread {
  stroke: var(--iris-lightning-glow-soft);
  stroke-width: 1.35;
  opacity: 0;
  stroke-dasharray: 14 7;
  filter: drop-shadow(0 0 3px var(--iris-lightning-glow-soft));
  animation: iris-lightning-idle-thread 6s linear infinite;
}

.home-sidebar__code-lightning-thread-b {
  animation: iris-lightning-idle-thread 6s linear infinite reverse;
}

.home-sidebar__code-lightning-surge {
  stroke: var(--iris-lightning-stroke-bright);
  stroke-width: 3.2;
  opacity: 0;
  animation: iris-lightning-idle-surge 6s steps(2, end) infinite;
}

/* 6s master cycle — alternates every 3s: (A) top→bottom pass + bottom spike, (B) ~1s AC burst */
@keyframes iris-lightning-idle-pass {
  0%,
  1.5%,
  50%,
  100% {
    stroke-dashoffset: 62;
    opacity: 0;
  }
  2% {
    stroke-dashoffset: 62;
    opacity: 1;
  }
  28% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  38% {
    stroke-dashoffset: 0;
    opacity: 0.15;
  }
  42% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes iris-lightning-idle-spike {
  0%,
  27%,
  44%,
  50%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 0.95;
    transform: scale(1);
  }
  34% {
    opacity: 1;
    transform: scale(2.2);
  }
  40% {
    opacity: 0.5;
    transform: scale(3);
  }
  43% {
    opacity: 0;
    transform: scale(3.4);
  }
}

@keyframes iris-lightning-idle-core {
  0%,
  50%,
  67%,
  100% {
    stroke: var(--iris-lightning-stroke);
    opacity: 0.72;
    filter: drop-shadow(0 0 1px var(--iris-lightning-glow-soft))
      drop-shadow(0 0 4px var(--iris-lightning-glow-soft));
    stroke-width: 2.85;
  }
  51%,
  53%,
  55%,
  57%,
  59%,
  61%,
  63%,
  65% {
    stroke: var(--iris-lightning-stroke-bright);
    opacity: 1;
    filter: drop-shadow(0 0 2px var(--iris-lightning-glow))
      drop-shadow(0 0 10px var(--iris-lightning-glow-soft))
      drop-shadow(0 0 16px var(--iris-lightning-glow-soft));
    stroke-width: 3.4;
  }
  52%,
  54%,
  56%,
  58%,
  60%,
  62%,
  64%,
  66% {
    stroke: var(--iris-lightning-stroke);
    opacity: 0.22;
    filter: drop-shadow(0 0 1px var(--iris-lightning-glow-soft));
    stroke-width: 2.5;
  }
}

@keyframes iris-lightning-idle-glow {
  0%,
  50%,
  67%,
  100% {
    opacity: 0.42;
    stroke-width: 4.8;
    filter: drop-shadow(0 0 2px var(--iris-lightning-glow-soft))
      drop-shadow(0 0 5px var(--iris-lightning-glow-soft));
  }
  51%,
  53%,
  55%,
  57%,
  59%,
  61%,
  63%,
  65% {
    opacity: 0.92;
    stroke-width: 7.2;
    filter: drop-shadow(0 0 4px var(--iris-lightning-glow))
      drop-shadow(0 0 14px var(--iris-lightning-glow-soft));
  }
  52%,
  54%,
  56%,
  58%,
  60%,
  62%,
  64%,
  66% {
    opacity: 0.2;
    stroke-width: 4;
    filter: drop-shadow(0 0 1px var(--iris-lightning-glow-soft));
  }
}

@keyframes iris-lightning-idle-halo {
  0%,
  50%,
  67%,
  100% {
    opacity: 0.26;
    stroke-width: 9;
  }
  51%,
  53%,
  55%,
  57%,
  59%,
  61%,
  63%,
  65% {
    opacity: 0.58;
    stroke-width: 13;
  }
  52%,
  54%,
  56%,
  58%,
  60%,
  62%,
  64%,
  66% {
    opacity: 0.12;
    stroke-width: 8;
  }
}

@keyframes iris-lightning-idle-thread {
  0%,
  50%,
  67%,
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
  51% {
    opacity: 0.85;
    stroke-dashoffset: 0;
  }
  66% {
    opacity: 0.85;
    stroke-dashoffset: -42;
  }
}

@keyframes iris-lightning-idle-surge {
  0%,
  50%,
  67%,
  100% {
    opacity: 0;
  }
  51%,
  53%,
  55%,
  57%,
  59%,
  61%,
  63%,
  65% {
    opacity: 0.95;
  }
  52%,
  54%,
  56%,
  58%,
  60%,
  62%,
  64%,
  66% {
    opacity: 0.18;
  }
}

@keyframes iris-lightning-thread-surge {
  to {
    stroke-dashoffset: -42;
  }
}

@keyframes iris-lightning-surge-core {
  0%,
  100% {
    stroke: var(--iris-lightning-stroke-bright);
    opacity: 1;
    stroke-width: 3.4;
    filter: drop-shadow(0 0 2px var(--iris-lightning-glow))
      drop-shadow(0 0 10px var(--iris-lightning-glow-soft))
      drop-shadow(0 0 18px var(--iris-lightning-glow-soft));
  }
  20% {
    stroke: var(--iris-lightning-stroke);
    opacity: 0.2;
    stroke-width: 2.4;
    filter: drop-shadow(0 0 1px var(--iris-lightning-glow-soft));
  }
  40% {
    stroke: var(--iris-lightning-stroke-bright);
    opacity: 1;
    stroke-width: 3.8;
    filter: drop-shadow(0 0 3px var(--iris-lightning-glow))
      drop-shadow(0 0 14px var(--iris-lightning-glow-soft))
      drop-shadow(0 0 22px var(--iris-lightning-glow-soft));
  }
  60% {
    stroke: var(--iris-lightning-stroke);
    opacity: 0.12;
    stroke-width: 2.2;
    filter: none;
  }
  80% {
    stroke: var(--iris-lightning-stroke-bright);
    opacity: 0.95;
    stroke-width: 3.5;
    filter: drop-shadow(0 0 2px var(--iris-lightning-glow))
      drop-shadow(0 0 12px var(--iris-lightning-glow-soft));
  }
}

@keyframes iris-lightning-surge-glow {
  0%,
  100% {
    opacity: 0.88;
    stroke-width: 6.8;
    filter: drop-shadow(0 0 4px var(--iris-lightning-glow))
      drop-shadow(0 0 16px var(--iris-lightning-glow-soft));
  }
  25% {
    opacity: 0.18;
    stroke-width: 4.2;
    filter: drop-shadow(0 0 1px var(--iris-lightning-glow-soft));
  }
  50% {
    opacity: 1;
    stroke-width: 8.2;
    filter: drop-shadow(0 0 5px var(--iris-lightning-glow))
      drop-shadow(0 0 20px var(--iris-lightning-glow-soft));
  }
  75% {
    opacity: 0.1;
    stroke-width: 4;
    filter: none;
  }
}

@keyframes iris-lightning-surge-halo {
  0%,
  100% {
    opacity: 0.55;
    stroke-width: 12;
  }
  33% {
    opacity: 0.08;
    stroke-width: 7;
  }
  66% {
    opacity: 0.72;
    stroke-width: 14;
  }
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-core,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-core,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-core,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-core,
.home-sidebar__featured-code:hover .home-sidebar__code-lightning-core,
.home-sidebar__featured-code:focus-visible .home-sidebar__code-lightning-core,
.home-sidebar__featured-code:focus-within .home-sidebar__code-lightning-core,
.home-sidebar__featured-code.is-surging .home-sidebar__code-lightning-core {
  animation: iris-lightning-surge-core 0.09s steps(2, end) infinite;
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-pass,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-pass,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-pass,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-pass,
.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-spike,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-spike,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-spike,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-spike {
  animation: none;
  opacity: 0;
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-glow,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-glow,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-glow,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-glow {
  animation: iris-lightning-surge-glow 0.07s steps(2, end) infinite;
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-halo,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-halo,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-halo,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-halo {
  animation: iris-lightning-surge-halo 0.11s steps(2, end) infinite;
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-surge,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-surge,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-surge,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-surge {
  opacity: 1;
  animation: iris-lightning-surge-core 0.06s steps(2, end) infinite reverse;
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-thread,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-thread,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-thread,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-thread {
  opacity: 0.85;
  animation:
    iris-lightning-thread-surge 0.08s linear infinite,
    iris-lightning-surge-core 0.07s steps(2, end) infinite;
}

.home-sidebar__apps-item--iris-code:hover .home-sidebar__code-lightning-thread-b,
.home-sidebar__apps-item--iris-code:focus-visible .home-sidebar__code-lightning-thread-b,
.home-sidebar__apps-item--iris-code:focus-within .home-sidebar__code-lightning-thread-b,
.home-sidebar__apps-item--iris-code.is-surging .home-sidebar__code-lightning-thread-b {
  animation:
    iris-lightning-thread-surge 0.08s linear infinite reverse,
    iris-lightning-surge-core 0.07s steps(2, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .home-sidebar__code-lightning-halo,
  .home-sidebar__code-lightning-glow,
  .home-sidebar__code-lightning-core {
    animation: none;
  }

  .home-sidebar__code-lightning-halo,
  .home-sidebar__code-lightning-glow,
  .home-sidebar__code-lightning-pass,
  .home-sidebar__code-lightning-spike,
  .home-sidebar__code-lightning-thread {
    display: none;
  }

  .home-sidebar__code-lightning-core {
    stroke: var(--iris-lightning-stroke);
    opacity: 0.65;
    filter: none;
  }

  .home-sidebar__code-lightning-surge {
    display: none;
  }
}

.home-sidebar__nav-icons .home-sidebar__brand {
  margin: 0 auto;
}

.home-sidebar__nav-icons .home-sidebar__brand .brand-mark--fm,
.home-sidebar__nav-icons .home-sidebar__brand .brand-mark--iris {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--iris-sidebar-icon-hit);
  height: var(--iris-sidebar-icon-hit);
  padding: 6px 4px;
  border-radius: 12px;
}

.home-sidebar__brand-wordmark {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
}

.home-sidebar__nav-icons .home-sidebar__brand .brand-logo--iris {
  width: 32px;
  height: 32px;
  display: block;
}

.home-sidebar__nav-icon-img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-sidebar__nav-icon-img--sm {
  width: 22px;
  height: 22px;
}

.home-sidebar__nav-icon-img--agents,
.home-sidebar__nav-icon-img--file-manager,
.home-sidebar__nav-icon-img--notes {
  width: 40px;
  height: 40px;
}

.home-sidebar__apps-item-icon--agents,
.home-sidebar__apps-item-icon--file-manager,
.home-sidebar__apps-item-icon--notes {
  width: 42px;
  min-width: 42px;
  height: 42px;
}

.home-sidebar__catalog-nav--agents .home-sidebar__nav-icon-img {
  width: 42px;
  height: 42px;
}

.home-sidebar__builder-icon .home-sidebar__nav-icon-img,
.home-sidebar__featured-code .home-sidebar__nav-icon-img,
.home-sidebar__notif .home-sidebar__nav-icon-img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.home-sidebar__nav-icons .home-sidebar__featured-code .home-sidebar__builder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.home-sidebar__user {
  margin-top: 0 !important;
}

.iris1-panel__title,
.home-section--iris1 .iris1-panel__head {
  display: none !important;
}

/* Iris 1.0 top-right actions: incognito + conversations */
.home-panels > .iris1-topbar-actions,
.topbar-actions.iris1-topbar-actions {
  display: none;
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 175;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.home-panels > .iris1-topbar-actions[hidden],
.topbar-actions.iris1-topbar-actions[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.iris1-topbar-incognito-toggle,
.iris1-topbar-threads-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
}

.home-panels > .iris1-topbar-threads-toggle__icon,
.topbar-actions .iris1-topbar-threads-toggle__icon,
.home-panels > .iris1-topbar-incognito-toggle__icon,
.topbar-actions .iris1-topbar-incognito-toggle__icon {
  display: inline-flex;
  line-height: 0;
  opacity: 0.92;
}

.home-panels:has(.home-panel[data-home-panel="iris1"].is-active):not(:has(.home-section--iris1.is-public-catalog-list))
  > .iris1-topbar-actions:not([hidden]),
.home-panels:has(.home-panel[data-home-panel="iris1"].is-active):not(:has(.home-section--iris1.is-public-catalog-list))
  .topbar-actions.iris1-topbar-actions:not([hidden]) {
  display: inline-flex !important;
}

.home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle:hover,
.home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-threads-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle:focus-visible,
.home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-threads-toggle:focus-visible {
  outline: 2px solid rgba(93, 214, 255, 0.55);
  outline-offset: 2px;
}

.home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle.is-active,
.home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle[aria-pressed="true"] {
  color: var(--accent, #5dd6ff);
  background: color-mix(in srgb, var(--accent, #5dd6ff) 14%, transparent);
}

html[data-theme="light"]
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle,
html[data-theme="light"]
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-threads-toggle {
  background: transparent;
  color: #64748b;
}

html[data-theme="light"]
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle:hover,
html[data-theme="light"]
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-threads-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

html[data-theme="light"]
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle.is-active,
html[data-theme="light"]
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active)
  .iris1-topbar-incognito-toggle[aria-pressed="true"] {
  color: #0369a1;
  background: rgba(3, 105, 161, 0.1);
}

@media (max-width: 980px) {
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active):not(:has(.home-section--iris1.is-public-catalog-list))
    > .iris1-topbar-actions:not([hidden]),
  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active):not(:has(.home-section--iris1.is-public-catalog-list))
    .topbar-actions.iris1-topbar-actions:not([hidden]) {
    display: inline-flex !important;
  }

  .home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-card--threads {
    top: max(56px, calc(env(safe-area-inset-top, 0px) + 56px));
    left: auto;
    right: max(12px, env(safe-area-inset-right, 0px));
    width: min(300px, calc(100vw - 24px));
    max-width: 320px;
  }
}

.home-section--iris1 .iris1-panel__threads-toggle {
  display: none !important;
}

.home-panels:has(.home-section--iris1.is-public-catalog-list) > .iris1-topbar-actions,
.home-panels:has(.home-section--iris1.is-public-catalog-list) .topbar-actions.iris1-topbar-actions,
.home-panels:has([data-iris-public-catalog-page]:not([hidden])) > .iris1-topbar-actions,
.home-panels:has([data-iris-public-catalog-page]:not([hidden])) .topbar-actions.iris1-topbar-actions {
  display: none !important;
  pointer-events: none !important;
}

.home-sidebar__user-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.home-sidebar__strip-theme.theme-cosmos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  flex-shrink: 0;
  overflow: visible;
}

.home-sidebar__strip-theme.theme-cosmos:hover,
.home-sidebar__strip-theme.theme-cosmos:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-sidebar__strip-theme.theme-cosmos:hover,
html[data-theme="light"] .home-sidebar__strip-theme.theme-cosmos:focus-visible {
  background: transparent !important;
}

.home-sidebar__strip-theme.theme-cosmos:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

.home-sidebar__strip-theme .theme-cosmos__stage {
  width: 18px;
  height: 18px;
}

.home-sidebar__strip-theme .theme-cosmos__art {
  overflow: visible;
}

.home-sidebar__user-panel {
  position: relative;
}

.home-sidebar__user-panel-name,
.home-sidebar__user-panel-email {
  padding-right: 0;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack .iris-card--threads {
  display: none !important;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-card--threads {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: max(56px, calc(env(safe-area-inset-top, 0px) + 56px));
  left: auto;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: min(320px, calc(100vw - 24px));
  max-width: 320px;
  z-index: 170;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 35, 0.92) !important;
  background-image: none !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  box-sizing: border-box;
}

html[data-theme="light"]
  .home-section--iris1
  .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open
  .iris-card--threads {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Popup uses external topbar toggle — hide collapsed rail header (fixes empty gap + centered icon) */
.home-section--iris1
  .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open
  .iris-threads-sidebar__top {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.home-section--iris1
  .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open.is-threads-sidebar-collapsed
  .iris-threads-sidebar__main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  gap: 8px;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-card--threads .iris-threads-sidebar {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 10px 12px 12px;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-threads-sidebar__main {
  min-width: 0;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-thread-row {
  box-sizing: border-box;
  min-width: 0;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-thread-row__title,
.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-thread-row__meta {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-threads-sidebar__main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-threads-sidebar__scroller {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.iris-iris1-threads-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 165;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
}

.iris-iris1-threads-popup-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .home-section--iris1 .iris1-panel__stack.iris-chat-stack.is-iris1-threads-popup-open .iris-card--threads {
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
  }
}

.home-sidebar__brand:focus-visible,
.home-mobile-workspace-sheet__brand:focus-visible {
  outline: 2px solid rgba(93, 214, 255, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Starter ideas UI removed — hide any legacy markup */
.home-section--iris1 .iris1-empty__starters,
.home-section--iris1 .iris1-starters-sheet {
  display: none !important;
}

/* --- Starter sheet (desktop solo) — legacy, kept for reference --- */

/* Match stack--solo too: class is present in HTML before JS runs. */
.home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet:not(.is-open) .iris1-empty__chips {
  display: none !important;
}

@media (min-width: 768px) {
  .home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet {
    display: block !important;
    position: relative;
  }

  .home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet:not(.is-open) .iris1-starters-sheet__backdrop,
  .home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet:not(.is-open) .iris1-starters-sheet__panel {
    display: none !important;
  }
}

.home-section--iris1 .iris1-panel--solo .iris1-empty__starters-open,
.home-section--iris1 .iris1-panel__stack--solo .iris1-empty__starters-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: min(280px, 88vw);
  margin: 0 auto;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border: none;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.home-section--iris1 .iris1-panel--solo .iris1-empty__starters-open:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.home-section--iris1 .iris1-panel--solo .iris1-empty__starters-open-icon {
  color: inherit;
  opacity: 0.92;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-empty__starters-open {
  border: none;
  background: transparent;
  color: #64748b;
  box-shadow: none;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-empty__starters-open:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  box-shadow: none;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet,
.home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet {
  display: block;
  position: relative;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet:not(.is-open) .iris1-starters-sheet__backdrop,
.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet:not(.is-open) .iris1-starters-sheet__panel,
.home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet:not(.is-open) .iris1-starters-sheet__backdrop,
.home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet:not(.is-open) .iris1-starters-sheet__panel {
  display: none !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet:not(.is-open) .iris1-empty__chips,
.home-section--iris1 .iris1-panel__stack--solo .iris1-starters-sheet:not(.is-open) .iris1-empty__chips {
  display: none !important;
}

@keyframes iris1-starters-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes iris1-starters-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 12050;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  margin: 0;
  animation: iris1-starters-fade-in 0.22s ease-out;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__backdrop {
  display: block !important;
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.48) !important;
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__panel {
  display: flex !important;
  flex-direction: column;
  position: relative;
  width: min(440px, 100%);
  max-height: min(82vh, 580px);
  margin: 0;
  padding: 0;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(24, 32, 48, 0.98) 0%, rgba(17, 24, 35, 0.99) 52%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(93, 214, 255, 0.1) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.55),
    0 16px 32px -12px rgba(93, 214, 255, 0.08);
  overflow: hidden;
  overscroll-behavior: contain;
  animation: iris1-starters-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(93, 214, 255, 0.75), rgba(124, 92, 255, 0.65));
  opacity: 0.9;
  pointer-events: none;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 20px 20px 12px;
  border-bottom: none;
  flex-shrink: 0;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__title {
  margin: 0;
  font-family: var(--iris-ui-sans-font, inherit);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__lead {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-empty__chips {
  display: flex !important;
  flex-direction: column;
  gap: 2px !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 10px 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: unset !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip {
  min-height: 0 !important;
  width: 100%;
  text-align: left;
  padding: 11px 12px !important;
  gap: 14px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--text) !important;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip:hover {
  background: rgba(93, 214, 255, 0.1) !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(-1px) !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip:active {
  transform: translateY(0) !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip:focus-visible {
  outline: 2px solid rgba(93, 214, 255, 0.55) !important;
  outline-offset: 0 !important;
  background: rgba(93, 214, 255, 0.08) !important;
  box-shadow: none !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip__label {
  line-height: 1.35 !important;
  flex: 1;
  min-width: 0;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip__icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16) !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip:hover .iris1-prompt-chip__icon {
  transform: scale(1.04) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip__svg {
  width: 18px !important;
  height: 18px !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__backdrop {
  background: rgba(15, 23, 42, 0.32) !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 32px 64px -12px rgba(15, 23, 42, 0.16),
    0 12px 28px -10px rgba(14, 165, 233, 0.14);
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__panel::before {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.55), rgba(79, 70, 229, 0.45));
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__title {
  color: #0f172a;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__lead {
  color: #64748b;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__close {
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-starters-sheet__close:hover {
  background: rgba(14, 165, 233, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip {
  background: transparent !important;
  border: none !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip:hover {
  background: #f0f9ff !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.12) !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-starters-sheet.is-open .iris1-prompt-chip:focus-visible {
  outline-color: rgba(2, 132, 199, 0.45) !important;
  background: #e0f2fe !important;
}

/* Export chip icon colors (missing from main bundle) */
.iris1-prompt-chip__icon--game {
  background: rgba(234, 88, 12, 0.18);
  color: #fb923c;
}

.iris1-prompt-chip__icon--pptx {
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.42), rgba(249, 115, 22, 0.18));
  color: #ffedd5;
}

.iris1-prompt-chip__icon--xlsx {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.42), rgba(16, 185, 129, 0.18));
  color: #ecfdf5;
}

.iris1-prompt-chip__icon--pdf {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.45), rgba(239, 68, 68, 0.2));
  color: #fef2f2;
}

html[data-theme="light"] .iris1-prompt-chip__icon--game {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

html[data-theme="light"] .iris1-prompt-chip__icon--pptx {
  color: #9a3412;
}

html[data-theme="light"] .iris1-prompt-chip__icon--xlsx {
  color: #065f46;
}

html[data-theme="light"] .iris1-prompt-chip__icon--pdf {
  color: #991b1b;
}


/* --- Document preview: PDF + XLSX --- */

.iris-doc-preview__pdf {
  width: 100%;
  min-height: min(72vh, 640px);
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.iris-xlsx-preview-wrap {
  overflow: auto;
  max-height: min(72vh, 640px);
}

.iris-xlsx-preview__meta {
  font-size: 12px;
  color: var(--muted, #a7b6cc);
  margin-bottom: 8px;
}

.iris-xlsx-preview-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.iris-xlsx-preview-wrap th,
.iris-xlsx-preview-wrap td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 8px;
  text-align: left;
}

.iris-xlsx-preview-wrap th {
  position: sticky;
  top: 0;
  background: #1a2b4a;
  color: #f8fafc;
  z-index: 1;
}

.iris-doc-preview__hint {
  padding: 16px;
  color: var(--muted, #a7b6cc);
  font-size: 14px;
  line-height: 1.5;
}

.iris-doc-preview__text-wrap {
  overflow: auto;
  max-height: min(72vh, 640px);
  padding: 4px 2px;
}

.iris-doc-preview__text,
.iris-doc-preview__code {
  margin: 0;
  overflow: auto;
  max-height: min(72vh, 640px);
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, #e7eef8);
}

.iris-doc-preview__text-wrap.markdown-body {
  font-family: var(--iris-ui-sans-font, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.65;
  white-space: normal;
}

html[data-theme="light"] .iris-doc-preview__text,
html[data-theme="light"] .iris-doc-preview__code {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

/* Collapsed model reasoning / thinking traces */
.iris-msg__thought {
  margin: 0 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  max-width: 100%;
}

.iris-msg__thought[hidden] {
  display: none !important;
}

.iris-msg__thought-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: rgba(186, 198, 220, 0.88);
  font-size: 12px;
  font-weight: 600;
}

.iris-msg__thought-summary::-webkit-details-marker {
  display: none;
}

.iris-msg__thought-chevron {
  display: inline-flex;
  margin-left: auto;
  opacity: 0.75;
  transition: transform 0.18s ease;
}

.iris-msg__thought[open] .iris-msg__thought-chevron {
  transform: rotate(180deg);
}

.iris-msg__thought-body {
  padding: 0 10px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(42vh, 320px);
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.iris-msg__thought-body:empty {
  display: none;
}

.iris-msg__thought-body.markdown-body {
  white-space: normal !important;
}

.iris-msg__thought-body.markdown-body p {
  margin: 6px 0;
  line-height: 1.45;
}

.iris-msg__thought-body.markdown-body p:first-child {
  margin-top: 0;
}

.iris-msg__thought-body.markdown-body p:last-child {
  margin-bottom: 0;
}

.iris-msg__thought-body.markdown-body h1,
.iris-msg__thought-body.markdown-body h2,
.iris-msg__thought-body.markdown-body h3,
.iris-msg__thought-body.markdown-body h4 {
  margin: 8px 0 4px;
  font-size: inherit;
  font-weight: 600;
  color: rgba(186, 198, 220, 0.95);
}

.iris-msg__thought-body.markdown-body ul,
.iris-msg__thought-body.markdown-body ol {
  margin: 6px 0;
  padding-left: 18px;
}

.iris-msg__thought-body.markdown-body li {
  margin: 3px 0;
}

/* Markdown bodies: reset inherited pre-wrap so lists/paragraphs don't double-space */
.iris-msg__body.markdown-body,
.iris-chat-modal .iris-msg__body.markdown-body {
  white-space: normal !important;
}

.iris-msg--assistant,
.iris-msg--streaming,
.iris-chat-modal .iris-msg--assistant,
.iris-chat-modal .iris-msg--streaming {
  white-space: normal;
}

.home-section--iris1 .iris1-panel__stack .iris-msg--user .iris-msg__body.markdown-body {
  white-space: normal !important;
}

/* Iris 1.0: centered column, no card chrome on chat thread */
.home-section--iris1 {
  width: min(80%, 1280px);
  max-width: min(80%, 1280px);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .home-section--iris1 {
    width: 100%;
    max-width: 100%;
  }
}

html[data-theme="light"] .home-section--iris1 {
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-panel[data-home-panel="iris1"] .home-section--iris1 {
  padding: 0;
  border: none;
}

.home-section--iris1 .iris1-panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.home-section--iris1 .iris1-panel__stack .iris-card,
.home-section--iris1 .iris1-panel__stack .iris-card.iris-card--chat {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-card,
html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-card.iris-card--chat {
  border: none;
  background: transparent;
  box-shadow: none;
}

.home-section--iris1 .iris1-panel__stack .iris-chat,
.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat {
  background: transparent;
}

.home-section--iris1 .iris1-panel__stack .iris-chat__thread,
.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat__thread {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-chat__thread,
html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat__thread {
  background: transparent !important;
  box-shadow: none !important;
}

/* Iris 1.0 chat: one centered column (match solo welcome + composer width) */
.home-section--iris1 .iris1-panel__stack .iris-chat {
  --iris1-chat-col: min(920px, calc(100% - 8px));
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.home-section--iris1 .iris1-panel__stack .iris-chat__thread,
.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat__thread {
  width: 100%;
  max-width: var(--iris1-chat-col);
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0 14px !important;
  gap: 18px !important;
}

.home-section--iris1 .iris1-panel__stack .iris-chat > .iris-chat__attach-summary,
.home-section--iris1 .iris1-panel__stack .iris-chat__composer,
.home-section--iris1 .iris1-panel__stack .iris1-composer-dock {
  width: 100%;
  max-width: var(--iris1-chat-col);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.home-section--iris1 .iris1-panel__stack .iris1-empty {
  max-width: var(--iris1-chat-col);
  margin-inline: auto;
  text-align: center;
}

.home-section--iris1 .iris1-panel__stack .iris1-empty__sub {
  margin: 10px 0 0;
  max-width: 36ch;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-empty__sub {
  color: #64748b;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-empty__title {
  color: #0f172a;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__disclaimer {
  color: #94a3b8;
}

/* Solo (no messages): center welcome + composer; hide quick prompts once chatting */
.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat {
  justify-content: center !important;
  gap: 14px;
}

.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat__thread {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris1-empty {
  flex: 0 0 auto !important;
  justify-content: flex-start;
}

.home-section--iris1 .iris1-panel--solo .iris1-composer-dock {
  margin-top: 0 !important;
  flex: 0 0 auto;
}

.home-section--iris1 .iris1-panel__stack:not(.iris1-panel__stack--solo) .iris-chat {
  justify-content: flex-start !important;
}

.home-section--iris1 .iris1-panel__stack:not(.iris1-panel__stack--solo) .iris-chat__thread {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

.home-section--iris1 .iris1-panel__stack:not(.iris1-panel__stack--solo) .iris1-composer-dock {
  margin-top: auto !important;
}

.home-section--iris1.is-public-catalog-chat .iris1-composer__quick-actions {
  display: none !important;
}

.home-section--iris1 .iris1-composer-dock.is-iris1-composer-dock--active .iris1-composer__quick-actions {
  display: none !important;
}

/* Outer shell is layout only — chrome lives on .iris-msg__bubble */
.home-section--iris1 .iris1-panel__stack .iris-msg {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.home-section--iris1 .iris1-panel__stack .iris-msg--user,
.home-section--iris1 .iris1-panel__stack .iris-msg--assistant,
.home-section--iris1 .iris1-panel__stack .iris-msg--streaming,
.home-section--iris1 .iris1-panel__stack .iris-msg--error,
.home-section--iris1 .iris1-panel__stack .iris-msg--system {
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-section--iris1 .iris1-panel__stack .iris-chat__thread .iris-msg--user {
  align-self: flex-end;
  max-width: min(82%, 520px);
  margin-inline: 0 !important;
}

.home-section--iris1 .iris1-panel__stack .iris-chat__thread .iris-msg--assistant,
.home-section--iris1 .iris1-panel__stack .iris-chat__thread .iris-msg--streaming,
.home-section--iris1 .iris1-panel__stack .iris-chat__thread .iris-msg--error,
.home-section--iris1 .iris1-panel__stack .iris-chat__thread .iris-msg--system {
  align-self: flex-start;
  max-width: 100%;
  margin-inline: 0 !important;
}

.home-section--iris1 .iris1-panel__stack .iris-msg--streaming {
  padding: 0 !important;
}

.home-section--iris1 .iris1-panel__stack .iris-msg__main {
  gap: 4px;
}

.home-section--iris1 .iris1-panel__stack .iris-msg__meta {
  margin-bottom: 4px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.home-section--iris1 .iris1-panel__stack .iris-msg__bubble {
  border-radius: 18px;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.home-section--iris1 .iris1-panel__stack .iris-msg--user .iris-msg__bubble {
  background: rgba(93, 214, 255, 0.11);
  border-color: rgba(93, 214, 255, 0.3);
}

.home-section--iris1 .iris1-panel__stack .iris-msg--assistant .iris-msg__bubble,
.home-section--iris1 .iris1-panel__stack .iris-msg--streaming .iris-msg__bubble {
  background: linear-gradient(155deg, rgba(124, 92, 255, 0.14), rgba(93, 214, 255, 0.07));
  border-color: rgba(124, 92, 255, 0.26);
}

.home-section--iris1 .iris1-panel__stack .iris-msg--error .iris-msg__bubble {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.32);
}

.home-section--iris1 .iris1-panel__stack .iris-msg--system .iris-msg__bubble {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-msg__bubble {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-msg--user .iris-msg__bubble {
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.22);
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-msg--assistant .iris-msg__bubble,
html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris-msg--streaming .iris-msg__bubble {
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.06));
  border-color: rgba(99, 102, 241, 0.2);
}

/* --- Mobile: Iris 1.0 layout + narrow workspace icon menu --- */
@media (max-width: 980px) {
  .home-shell:has(.home-panel[data-home-panel="iris1"].is-active) {
    padding-bottom: 0;
    min-height: 100dvh;
    height: 100dvh;
  }

  .home-panels:has(.home-panel[data-home-panel="iris1"].is-active) {
    padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
    padding-bottom: 0;
    min-height: 0;
    flex: 1 1 auto;
  }

  .home-panel[data-home-panel="iris1"].is-active {
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 0;
  }

  .home-section--iris1 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-section--iris1 .iris1-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .home-section--iris1 .iris1-panel__stack.iris-chat-stack {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .home-section--iris1 .iris1-panel__stack .iris-chat {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .home-section--iris1 .iris1-panel__stack:not(.iris1-panel__stack--solo) .iris-chat__thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris-chat__thread {
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: visible;
  }

  .home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris1-empty {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .home-section--iris1 .iris1-panel__stack:not(.iris1-panel__stack--solo) .iris1-composer-dock {
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: 0;
  }

  .home-section--iris1 .iris1-panel--solo .iris1-composer-dock {
    margin-top: 0 !important;
    padding-bottom: 0;
  }

  .home-panels {
    padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }

  .home-mobile-workspace-toggle {
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    z-index: 290;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(17, 24, 35, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    color: var(--text);
    cursor: pointer;
    pointer-events: auto !important;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }

  .home-mobile-workspace-toggle:hover,
  .home-mobile-workspace-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .home-mobile-workspace-toggle[aria-expanded="true"] {
    background: rgba(124, 92, 255, 0.2);
    border-color: rgba(124, 92, 255, 0.42);
    box-shadow: 0 6px 24px rgba(124, 92, 255, 0.22);
  }

  body.home-mobile-workspace-open .home-mobile-workspace-toggle {
    display: none !important;
    pointer-events: none !important;
  }

  .home-mobile-workspace-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
  }

  .home-mobile-workspace-toggle__icon span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 0.22s ease,
      opacity 0.18s ease;
  }

  .home-mobile-workspace-toggle[aria-expanded="true"] .home-mobile-workspace-toggle__icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .home-mobile-workspace-toggle[aria-expanded="true"] .home-mobile-workspace-toggle__icon span:nth-child(2) {
    opacity: 0;
  }

  .home-mobile-workspace-toggle[aria-expanded="true"] .home-mobile-workspace-toggle__icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  html[data-theme="light"] .home-mobile-workspace-toggle {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
    color: #0f172a;
  }

  html[data-theme="light"] .home-mobile-workspace-toggle:hover,
  html[data-theme="light"] .home-mobile-workspace-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.18);
  }

  html[data-theme="light"] .home-mobile-workspace-toggle[aria-expanded="true"] {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.32);
  }

  .home-mobile-bottom-bar {
    display: none !important;
  }

  /* Hamburger sheet — panel column + dimmed backdrop (no overlap on rail) */
  .home-mobile-workspace-sheet:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    padding:
      max(4px, env(safe-area-inset-top, 0px))
      max(4px, env(safe-area-inset-right, 0px))
      max(4px, env(safe-area-inset-bottom, 0px))
      max(4px, env(safe-area-inset-left, 0px));
    overflow: visible;
    pointer-events: auto;
  }

  .home-mobile-workspace-sheet__backdrop {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: rgba(2, 6, 12, 0.52) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: auto;
  }

  .home-mobile-workspace-sheet__panel {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 2;
    width: min(112px, calc(100vw - 56px)) !important;
    min-width: 96px !important;
    max-width: 120px !important;
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 14px 6px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    border-radius: 0 18px 18px 0 !important;
    background: rgba(11, 15, 20, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.38);
    pointer-events: auto;
  }

  .home-mobile-workspace-sheet:has(.home-mobile-nav-section.is-expanded) .home-mobile-workspace-sheet__panel {
    overflow: visible;
  }

  html[data-theme="light"] .home-mobile-workspace-sheet__panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.14);
  }

  .home-mobile-workspace-sheet__head,
  .home-mobile-workspace-sheet__close {
    display: none !important;
  }

  .home-mobile-workspace-sheet__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    width: 100%;
    gap: 0;
    overflow: visible;
  }

  .home-mobile-workspace-sheet__rail--featured {
    overflow: visible;
  }

  /* Mobile nav groups — desktop-style flyout popup beside the icon rail */
  .home-mobile-nav-section {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 1;
  }

  .home-mobile-nav-section.is-expanded {
    z-index: calc(var(--iris-home-sidebar-flyout-z, 320) - 1);
  }

  .home-mobile-nav-section__shell {
    display: contents;
  }

  .home-mobile-nav-section__trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 72px;
    margin: 0;
    padding: 6px 2px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
    transition: background 0.15s ease;
  }

  .home-mobile-nav-section__trigger:hover,
  .home-mobile-nav-section__trigger:focus-visible,
  .home-mobile-nav-section.is-expanded .home-mobile-nav-section__trigger {
    background: rgba(255, 255, 255, 0.08);
  }

  html[data-theme="light"] .home-mobile-nav-section__trigger:hover,
  html[data-theme="light"] .home-mobile-nav-section__trigger:focus-visible,
  html[data-theme="light"] .home-mobile-nav-section.is-expanded .home-mobile-nav-section__trigger {
    background: rgba(15, 23, 42, 0.06);
  }

  .home-mobile-nav-section__flyout {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    bottom: auto;
    z-index: var(--iris-home-sidebar-flyout-z, 320);
    display: none;
    align-items: flex-start;
    padding: 0;
    pointer-events: none;
    max-width: min(260px, calc(100vw - 140px));
  }

  .home-mobile-nav-section.is-expanded .home-mobile-nav-section__flyout {
    display: flex;
    pointer-events: auto;
  }

  .home-mobile-nav-section__flyout::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 12px;
  }

  .home-mobile-nav-section__flyout-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 220px;
    max-height: min(70vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
  }

  html[data-theme="light"] .home-mobile-nav-section__flyout-panel {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  }

  .home-mobile-workspace-sheet__rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 0;
  }

  .home-mobile-workspace-sheet__rail--featured {
    flex: 0 0 auto;
    padding-bottom: 8px;
    gap: 6px;
  }

  .home-mobile-workspace-sheet__rail--bottom {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: 0;
    border-top: 1px solid var(--border);
    gap: 6px;
  }

  .home-mobile-workspace-sheet__rail-item--iris-wordmark {
    justify-content: flex-start;
    align-items: center;
    min-height: 40px;
    padding: 4px 8px 6px;
    margin-top: 0;
  }

  .home-mobile-workspace-sheet__rail-item--iris-wordmark .home-mobile-workspace-sheet__rail-label {
    flex: 0 1 auto;
    overflow: visible;
    text-overflow: clip;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: var(--iris-brand-wordmark-gradient);
    background-size: 140% 140%;
    background-position: 20% 50%;
    -webkit-background-clip: text;
    background-clip: text;
  }

  html[data-theme="light"] .home-mobile-workspace-sheet__rail-item--iris-wordmark .home-mobile-workspace-sheet__rail-label {
    background-image: var(--iris-brand-wordmark-gradient-light);
  }

  .home-mobile-workspace-sheet__rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 72px;
    margin: 0;
    padding: 6px 2px;
    border: none;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    text-decoration: none;
    overflow: visible;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease;
  }

  .home-mobile-workspace-sheet__rail-account .home-mobile-workspace-sheet__rail-item {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 46px;
    padding: 5px 8px 5px 6px;
  }

  .home-mobile-workspace-sheet__rail-icon {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .home-mobile-workspace-sheet__rail-label {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    font-family: var(--iris-ui-sans-font);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
  }

  .home-mobile-workspace-sheet__rail-label--brand:not(.iris-brand-wordmark) {
    color: var(--muted);
    font-weight: 600;
  }

  html[data-theme="light"] .home-mobile-workspace-sheet__rail-label--brand:not(.iris-brand-wordmark) {
    color: #64748b;
  }

  .home-mobile-workspace-sheet__rail-account .home-mobile-workspace-sheet__rail-label {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
  }

  .home-mobile-workspace-sheet__rail-label.iris-brand-wordmark {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .home-mobile-workspace-sheet__rail-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-family: var(--iris-ui-sans-font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(93, 214, 255, 0.12);
    color: var(--accent);
  }

  html[data-theme="light"] .home-mobile-workspace-sheet__rail-mark {
    background: rgba(3, 105, 161, 0.1);
    color: #0369a1;
  }

  .home-mobile-workspace-sheet__rail-item:hover,
  .home-mobile-workspace-sheet__rail-item:focus-visible {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  html[data-theme="light"] .home-mobile-workspace-sheet__rail-item:hover,
  html[data-theme="light"] .home-mobile-workspace-sheet__rail-item:focus-visible {
    background: rgba(15, 23, 42, 0.06) !important;
  }

  .home-mobile-workspace-sheet__rail-item:not(.home-mobile-workspace-sheet__rail-item--iris-wordmark) .home-sidebar__brand .brand-mark--iris,
  .home-mobile-workspace-sheet__rail-item:not(.home-mobile-workspace-sheet__rail-item--iris-wordmark) .home-sidebar__brand-wordmark {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-mobile-workspace-sheet__rail-item .home-sidebar__public-globe {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .home-mobile-workspace-sheet__rail-item .home-sidebar__public-globe-icon,
  .home-mobile-workspace-sheet__rail-item .home-sidebar__public-globe-icon .home-sidebar__public-globe-img,
  .home-mobile-workspace-sheet__rail-item .home-sidebar__public-globe-icon .home-sidebar__public-globe-canvas,
  .home-mobile-workspace-sheet__rail-item .home-sidebar__public-globe-icon .home-sidebar__public-globe-fallback,
  .home-mobile-workspace-sheet__rail-item .home-sidebar__public-globe-icon .home-sidebar__public-globe-fallback-svg {
    width: calc(var(--iris-globe-size) * 0.72);
    height: calc(var(--iris-globe-size) * 0.72);
    min-width: calc(var(--iris-globe-size) * 0.72);
    min-height: calc(var(--iris-globe-size) * 0.72);
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__featured-code,
  .home-mobile-workspace-sheet__rail-item.home-sidebar__apps-item--iris-code {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 5px 8px 5px 6px !important;
    border-radius: 12px !important;
    background: transparent !important;
  }

  .home-mobile-workspace-sheet__rail-item .home-sidebar__code-thunder-icon,
  .home-mobile-workspace-sheet__rail-item .home-sidebar__code-thunder-icon .home-sidebar__code-lightning {
    width: calc(var(--iris-thunder-width) * 0.78) !important;
    min-width: calc(var(--iris-thunder-width) * 0.78) !important;
    height: calc(var(--iris-thunder-height) * 0.78) !important;
    min-height: calc(var(--iris-thunder-height) * 0.78) !important;
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__apps-item {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 46px;
    padding: 5px 8px 5px 6px;
    border: none;
    border-radius: 12px;
    background: transparent !important;
    color: inherit;
    cursor: pointer;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__apps-item .home-sidebar__apps-item-label {
    display: none !important;
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__apps-item .home-sidebar__apps-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__notif {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 46px;
    padding: 5px 8px 5px 6px;
    border: none;
    border-radius: 12px;
    background: transparent !important;
    color: inherit;
    cursor: pointer;
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__notif .home-sidebar__notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .home-mobile-workspace-sheet__rail-item.home-sidebar__strip-theme.theme-cosmos {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 5px 8px 5px 6px !important;
    border: none !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-mobile-workspace-sheet__rail-account {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .home-mobile-workspace-sheet__rail-account .home-sidebar__user-wrap {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .home-mobile-workspace-sheet__rail-account .home-sidebar__user-trigger {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 46px !important;
    padding: 5px 8px 5px 6px !important;
    border: none !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-mobile-workspace-sheet__rail-account .home-sidebar__user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .home-mobile-workspace-sheet__rail-account .home-sidebar__user-panel {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    top: max(12px, env(safe-area-inset-top, 0px));
    bottom: auto;
    z-index: 230;
  }

  html[data-theme="light"] .home-mobile-workspace-sheet__backdrop {
    background: rgba(15, 23, 42, 0.38) !important;
  }
}

/* Iris 1.0 — borderless chrome (composer, reasoning, spec pills) */
.home-section--iris1 .iris1-panel__reasoning-wrap.iris-chat__reasoning-wrap {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 6px;
}

.home-section--iris1 .iris1-panel__reasoning-select.iris-chat__reasoning-select {
  border: none;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 2px 20px 2px 0;
}

.home-section--iris1 .iris1-panel__reasoning-select.iris-chat__reasoning-select:hover,
.home-section--iris1 .iris1-panel__reasoning-select.iris-chat__reasoning-select:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Iris 1.0 composer dock (card input + disclaimer + quick actions) --- */
.home-section--iris1 .iris1-composer-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  width: 100%;
  max-width: var(--iris1-chat-col);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.home-section--iris1 .iris1-composer-dock > .iris-chat__attach-summary {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-section--iris1 .iris1-panel__stack .iris1-composer.iris-chat__composer,
.home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris1-composer.iris-chat__composer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 16px 18px 12px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(17, 24, 35, 0.92) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
  align-self: stretch !important;
}

.home-section--iris1 .iris1-composer.iris-chat__composer:focus-within {
  border-color: rgba(93, 214, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(93, 214, 255, 0.12) inset,
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(93, 214, 255, 0.08);
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer.iris-chat__composer,
html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris1-composer.iris-chat__composer {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 4px 24px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer.iris-chat__composer:focus-within,
html[data-theme="light"] .home-section--iris1 .iris1-panel--solo .iris1-panel__stack .iris1-composer.iris-chat__composer:focus-within {
  border-color: rgba(14, 165, 233, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.12) inset,
    0 4px 24px rgba(15, 23, 42, 0.1),
    0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}

.home-section--iris1 .iris1-composer__input.iris-chat__input {
  width: 100%;
  min-height: 52px;
  max-height: 200px;
  resize: none;
  border: none;
  border-radius: 0;
  padding: 0 0 14px;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.home-section--iris1 .iris1-composer__input.iris-chat__input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer__input.iris-chat__input,
html[data-theme="light"] .home-section--iris1 .iris1-composer__input.iris-chat__input {
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__input.iris-chat__input::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

.home-section--iris1 .iris1-composer__input.iris-chat__input:focus {
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
}

.home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar.iris-chat__composer-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
  align-self: stretch !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 0 !important;
}

.home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar.iris-chat__composer-actions .iris-btn {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.home-section--iris1 .iris1-composer__toolbar-start,
.home-section--iris1 .iris1-composer__toolbar-end {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.home-section--iris1 .iris1-composer__toolbar-end {
  gap: 10px;
  flex-shrink: 0;
}

.home-section--iris1 .iris1-composer__toolbar .iris-btn--ghost.iris-btn--icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
}

.home-section--iris1 .iris1-composer__toolbar .iris-btn--ghost.iris-btn--icon:hover {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__toolbar .iris-btn--ghost.iris-btn--icon {
  color: #64748b;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__toolbar .iris-btn--ghost.iris-btn--icon:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.home-section--iris1 .iris1-composer__model.iris-chat__reasoning-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.home-section--iris1 .iris1-composer__model-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #38bdf8;
  white-space: nowrap;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__model-name {
  color: #0ea5e9;
}

.home-section--iris1 .iris1-composer__model-sep {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  user-select: none;
}

.home-section--iris1 .iris1-composer__model-select.iris-chat__reasoning-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 0 16px 0 2px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1.3;
  min-width: 0;
  box-shadow: none;
}

.home-section--iris1 .iris1-composer__model-select.iris-chat__reasoning-select:hover,
.home-section--iris1 .iris1-composer__model-select.iris-chat__reasoning-select:focus {
  color: var(--text);
  outline: none;
  background: transparent;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__model-select.iris-chat__reasoning-select {
  color: #64748b;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__model-select.iris-chat__reasoning-select:hover,
html[data-theme="light"] .home-section--iris1 .iris1-composer__model-select.iris-chat__reasoning-select:focus {
  color: #0f172a;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Light theme: flat text dropdown (no pill fill from global .iris-chat__reasoning-select) */
html[data-theme="light"]
  .home-section--iris1
  .iris1-composer__model.iris-chat__reasoning-wrap.iris1-panel__reasoning-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="light"]
  .home-section--iris1
  .iris1-composer__model-select.iris-chat__reasoning-select.iris1-panel__reasoning-select {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="light"]
  .home-section--iris1
  .iris1-panel__reasoning-select.iris-chat__reasoning-select:hover,
html[data-theme="light"]
  .home-section--iris1
  .iris1-panel__reasoning-select.iris-chat__reasoning-select:focus {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

.home-section--iris1 .iris1-composer__model-chevron {
  margin-left: -12px;
  color: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
}

.home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar .iris-chat__send {
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  transition: background 0.14s ease, transform 90ms ease, color 0.14s ease;
}

.home-section--iris1 .iris1-composer__toolbar .iris-chat__send:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  box-shadow: none !important;
}

.home-section--iris1 .iris1-composer__toolbar .iris-chat__send:active:not(:disabled) {
  transform: scale(0.96);
}

.home-section--iris1 .iris1-composer__toolbar .iris-chat__send:disabled {
  opacity: 0.4;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar.iris-chat__composer-actions .iris-chat__send,
html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar .iris-chat__send,
html[data-theme="light"] .home-section--iris1 .iris1-composer__toolbar .iris-chat__send {
  background: #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar.iris-chat__composer-actions .iris-chat__send:hover:not(:disabled),
html[data-theme="light"] .home-section--iris1 .iris1-panel__stack .iris1-composer__toolbar .iris-chat__send:hover:not(:disabled),
html[data-theme="light"] .home-section--iris1 .iris1-composer__toolbar .iris-chat__send:hover:not(:disabled) {
  background: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.home-section--iris1 .iris1-composer__toolbar .iris-chat__send.iris-btn--danger {
  background: linear-gradient(180deg, #ff6b6b, #e14545) !important;
  color: #fff !important;
  animation: none;
}

.home-section--iris1 .iris1-composer__disclaimer {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: #94a3b8;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__disclaimer {
  color: #94a3b8;
}

.home-section--iris1 .iris1-composer__quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 2px 4px;
}

.home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  max-width: 100%;
  min-height: 0 !important;
  flex: 0 1 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  box-shadow: none;
}

.home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock .iris1-prompt-chip__label {
  flex: 0 1 auto;
  min-width: 0;
}

.home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock:hover {
  border-color: rgba(93, 214, 255, 0.28);
  background: rgba(93, 214, 255, 0.08);
  color: var(--text);
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
}

html[data-theme="light"] .home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock:hover {
  border-color: rgba(14, 165, 233, 0.28);
  background: #f0f9ff;
  color: #0f172a;
}

.home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock .iris1-prompt-chip__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: none;
}

.home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock .iris1-prompt-chip__svg {
  width: 16px;
  height: 16px;
}

.home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock .iris1-prompt-chip__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.home-section--iris1 .iris1-panel__stack .iris-chat > .iris-chat__composer-hint {
  width: 100%;
  max-width: var(--iris1-chat-col);
  margin: 0 auto 6px;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 640px) {
  .home-section--iris1 .iris1-composer.iris-chat__composer {
    padding: 14px 14px 10px;
    border-radius: 18px;
  }

  .home-section--iris1 .iris1-composer__quick-actions {
    gap: 6px;
  }

  .home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock {
    padding: 7px 11px;
    font-size: 12px;
  }

  .home-section--iris1 .iris1-composer__quick-actions .iris1-prompt-chip--dock .iris1-prompt-chip__label {
    font-size: 12px;
  }
}

.iris-thinking-orb-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: visible;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.iris-msg__live-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  max-width: 600px;
  transform-origin: top left;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    margin 0.28s ease,
    max-height 0.32s ease;
  overflow: visible;
}

.iris-msg__live-status-wrap .iris-msg__live-status {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.iris-msg__live-status-wrap.iris-msg__live-status--leaving {
  opacity: 0;
  transform: translateY(-2px) scale(0.98);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.iris-msg__live-status-wrap.iris-msg__live-status--leaving .iris-msg__thinking-vignette {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.iris-msg__live-status-wrap:has(.iris-msg__thinking-vignette:not([hidden])) .iris-msg__live-status-icon {
  display: none;
}

.iris-thinking-orb-stage .iris-svg {
  display: block;
  width: 40px;
  height: 40px;
  overflow: visible;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.iris-thinking-orb-stage .iris-svg[data-variant="micro"] {
  filter: none;
}

.iris-thinking-orb-stage .iris-svg[data-variant="micro"][data-heat]:not([data-heat="0"]) {
  filter: drop-shadow(0 0 calc(2px + var(--iris-orb-heat, 0) * 8px) rgba(255, 110, 30, calc(var(--iris-orb-heat, 0) * 0.85)));
}

.iris-thinking-orb-stage:has(.iris-svg[data-heat]:not([data-heat="0"])) {
  overflow: visible;
}

.iris-msg__live-status-wrap:has(.iris-msg__thinking-vignette:not([hidden])) [data-iris-live-dots] {
  display: none;
}

.iris-msg__live-status[data-state="thinking"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="planning"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="tool"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="tool-select"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="generating"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="web-search"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="context-search"] .iris-msg__live-status-icon,
.iris-msg__live-status[data-state="repository-search"] .iris-msg__live-status-icon {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .iris-thinking-orb-stage .iris-svg * {
    animation: none !important;
  }
}

html[data-theme="light"] .home-section--iris1 .iris1-empty--catalog .iris1-empty__specs .iris-agent-pill {
  background: rgba(15, 23, 42, 0.04);
}

/* Pending chat attachments (above composer) */
.iris-chat__attach-summary {
  margin: 0 0 8px;
  padding: 0;
}

.iris-chat__attach-summary[hidden] {
  display: none !important;
}

.iris-attach-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 22, 34, 0.65);
}

.iris-attach-strip__errors {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb4b4;
  font-size: 12px;
  line-height: 1.45;
}

.iris-attach-strip__errors p {
  margin: 0;
}

.iris-attach-strip__errors p + p {
  margin-top: 6px;
}

.iris-attach-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iris-attach-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.iris-attach-strip__thumb-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.iris-attach-strip__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iris-attach-strip__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.iris-attach-strip__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iris-attach-strip__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #e7eef8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iris-attach-strip__size {
  font-size: 11px;
  color: var(--muted, #a7b6cc);
}

.iris-attach-strip__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #a7b6cc);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.iris-attach-strip__remove:hover,
.iris-attach-strip__remove:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #e7eef8);
}

html[data-theme="light"] .iris-attach-strip {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .iris-attach-strip__errors {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

html[data-theme="light"] .iris-attach-strip__item {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.iris-threads-sidebar__incognito-btn,
.iris-chat__incognito-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.08)) 90%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--text, #e7eef8) 82%, transparent);
  cursor: pointer;
}

.iris-threads-sidebar__incognito-btn {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.iris-chat__incognito-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  flex-shrink: 0;
}

.iris-threads-sidebar__incognito-btn.is-active,
.iris-threads-sidebar__incognito-btn[aria-pressed="true"],
.iris-chat__incognito-btn.is-active,
.iris-chat__incognito-btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent, #5dd6ff) 55%, transparent);
  background: color-mix(in srgb, var(--accent, #5dd6ff) 12%, transparent);
  color: var(--accent, #5dd6ff);
}

/* Conversation sidebar: keep edit/delete visible (not hover-only). */
.iris-threads-sidebar .iris-thread-row__actions {
  opacity: 1;
}

.iris-threads-sidebar .iris-thread-row__edit-btn,
.iris-threads-sidebar .iris-thread-row__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: color-mix(in srgb, var(--text-muted, #a7b6cc) 88%, transparent);
  cursor: pointer;
}

.iris-threads-sidebar .iris-thread-row__edit-btn:hover,
.iris-threads-sidebar .iris-thread-row__edit-btn:focus-visible {
  color: var(--accent, #5dd6ff);
  background: color-mix(in srgb, var(--accent, #5dd6ff) 12%, transparent);
}

.iris-threads-sidebar .iris-thread-row__delete-btn:hover,
.iris-threads-sidebar .iris-thread-row__delete-btn:focus-visible {
  color: var(--danger, #ff6b6b);
  background: color-mix(in srgb, var(--danger, #ff6b6b) 12%, transparent);
}

.iris-chat--incognito .iris-incognito-badge {
  display: block;
}

.iris-incognito-badge {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--accent, #5dd6ff) 88%, white);
  background: color-mix(in srgb, var(--accent, #5dd6ff) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #5dd6ff) 28%, transparent);
}

.iris-incognito-badge[hidden] {
  display: none !important;
}

/* Notes modal (Apps menu) */
.iris-notes-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
}

.iris-notes-modal[hidden] {
  display: none;
}

.iris-notes-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.72);
}

.iris-notes-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1280px, calc(100vw - 1.5rem));
  height: min(880px, calc(100vh - 1.5rem));
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0d1524;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.iris-notes-modal__head {
  display: none;
}

.iris-notes-modal__title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 650;
}

.iris-notes-modal__frame {
  flex: 1;
  border: 0;
  width: 100%;
  min-height: 0;
  background: transparent;
}

.iris-notes-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.75);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
}

.iris-notes-modal__close:hover,
.iris-notes-modal__close:focus-visible {
  border-color: rgba(96, 165, 250, 0.7);
}

@media (max-width: 820px) {
  .iris-notes-modal {
    place-items: stretch;
  }

  .iris-notes-modal__panel {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .iris-notes-modal__head {
    display: none;
  }

  .iris-notes-modal__frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: block;
  }

  .iris-notes-modal__close {
    top: max(0.6rem, env(safe-area-inset-top, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    width: 2.75rem;
    height: 2.75rem;
  }
}

body.is-iris-notes-open {
  overflow: hidden;
}
