/* Shared selects, readable UI type and same-origin page transitions. */
.workspace-page .select-control {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  position: relative;
  vertical-align: middle;
}
.workspace-page .select-control .select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #40515c;
  border-radius: 10px;
  background: linear-gradient(135deg, #122028b8, #080f14e6);
  box-shadow: inset 0 1px #dcf3ff08;
  color: #e6edf3;
  font:
    500 14px/1.4 Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.workspace-page .select-trigger::after {
  display: none;
}
.select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-trigger > .icon {
  width: 16px;
  height: 16px;
  color: #9badb9;
  transition: transform 0.18s;
  flex: none;
}
.workspace-page .select-trigger:hover {
  border-color: #768a98;
  background-color: #14212a;
  filter: none;
  transform: none;
}
.workspace-page .select-trigger:focus-visible,
.workspace-page .is-open .select-trigger {
  outline: 2px solid #ff6a0088;
  outline-offset: 2px;
  border-color: var(--ember);
  box-shadow: 0 0 20px #ff6a0024;
}
.is-open .select-trigger > .icon {
  transform: rotate(180deg);
  color: var(--ember);
}
.workspace-page .select-trigger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.workspace-page .agent-select {
  padding: 0 0 0 12px;
  border-radius: 10px;
  gap: 8px;
  background: #091319b8;
}
.workspace-page .agent-select .select-control {
  width: 190px;
}
.workspace-page .agent-select .select-trigger {
  background: none;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  min-height: 42px;
}
.workspace-page .filter {
  padding: 0 0 0 12px;
  gap: 8px;
}
.workspace-page .filter .select-trigger {
  border: 0;
  background: none;
  box-shadow: none;
}
.workspace-page .filter .select-control {
  width: auto;
  min-width: 125px;
}
.workspace-page .filter.compact .select-trigger {
  font-size: 13px;
}
/* A select inside a bordered pill (a filter, the agent picker) draws no ring of its own: the pill shows
   focus and the open menu, so there is one ring, never two. */
.workspace-page :is(.filter, .agent-select) :is(.select-trigger:focus-visible, .is-open .select-trigger) {
  outline: none;
  box-shadow: none;
}
.workspace-page :is(.filter, .agent-select):has(.select-trigger:focus-visible, .is-open) {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 18%, transparent);
}
.select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 7px;
  z-index: 1000;
  overflow: auto;
  overscroll-behavior: contain;
  color: #eaf0f5;
  background: linear-gradient(145deg, #102029f5, #070e14fa 65%);
  border: 1px solid #536a7888;
  border-top-color: #ff6a0055;
  border-radius: 14px;
  box-shadow:
    0 20px 60px #000a,
    0 0 0 1px #0006,
    inset 0 1px #def5ff0d;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 180, 198, 0.25) transparent;
  animation: select-reveal 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  font:
    14px/1.45 Inter,
    system-ui,
    sans-serif;
}
.select-menu::-webkit-scrollbar {
  width: 6px;
}
.select-menu::-webkit-scrollbar-track {
  background: transparent;
}
.select-menu::-webkit-scrollbar-thumb {
  background: rgba(140, 180, 198, 0.25);
  border-radius: 9999px;
}
.select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 180, 198, 0.45);
}
.select-menu::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff8a0088, #ff433866, transparent);
  margin: -7px 14px 6px;
}
.select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 44px;
  padding: 10px 12px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.select-option-copy {
  flex: 1;
  min-width: 0;
}
.select-option-copy > span {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.select-option-copy small {
  display: block;
  color: #99adb9;
  font-size: 12px;
  margin-top: 3px;
}
.select-option > .icon {
  width: 16px;
  height: 16px;
  color: var(--ember);
  visibility: hidden;
  flex: none;
}
.select-option[aria-selected="true"] {
  background: linear-gradient(110deg, #ff6a001a, #ff433808);
  color: #ffffff;
}
.select-option[aria-selected="true"] > .icon {
  visibility: visible;
}
.select-option.is-active,
.select-option:hover {
  background: linear-gradient(110deg, #ff6a0024, #ffffff06);
  border-color: #ff6a0055;
}
.select-option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}
.select-option-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  color: var(--option-accent);
  border: 1px solid color-mix(in srgb, var(--option-accent) 30%, transparent);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--option-accent) 13%, transparent),
    transparent
  );
}
.select-option-icon .icon {
  width: 20px;
  height: 20px;
}
@keyframes select-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==========================================================================
   Account Profile Menu (Modern Enterprise SaaS Popover)
   ========================================================================== */

:is(.workspace-page, .home-page, body) #profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  padding: 6px;
  background: linear-gradient(165deg, rgba(16, 25, 32, 0.96) 0%, rgba(8, 13, 17, 0.98) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  z-index: 120;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-origin: top right;
  text-align: left;
}

#profile {
  position: relative;
  cursor: pointer;
}

#profile .profile-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted, #8b9baa);
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.15s ease;
}

#profile:hover .profile-chevron {
  color: var(--text, #f1f5f9);
}

#profile[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
  color: #ff9a45;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px;
  position: relative;
}

.profile-menu-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-menu-avatar-wrap .avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2a3744, #18232c);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0d161c;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.profile-menu-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-menu-meta .profile-name,
#profile-menu b {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  display: block;
}

.profile-menu-meta .profile-email {
  font-size: 11px;
  font-weight: 400;
  color: #8295a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  display: block;
}

.profile-menu-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.profile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 2px;
}

.profile-menu-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #c5d2dc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.profile-menu-item .icon {
  width: 15px;
  height: 15px;
  color: #7b8e9f;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.profile-menu-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.profile-menu-hint {
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-subtle);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
  transform: translateX(2px);
}

.profile-menu-item:hover .icon,
.profile-menu-item:focus-visible .icon {
  color: #ff9a45;
  transform: scale(1.08);
}

.profile-menu-item:hover .profile-menu-hint {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.16);
}

.profile-menu-item.is-danger {
  color: #cbd5e1;
}

.profile-menu-item.is-danger .icon {
  color: #8295a5;
}

.profile-menu-item.is-danger:hover,
.profile-menu-item.is-danger:focus-visible {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  transform: translateX(2px);
}

.profile-menu-item.is-danger:hover .icon,
.profile-menu-item.is-danger:focus-visible .icon {
  color: #f87171;
  transform: scale(1.08);
}
/* Increase functional text without scaling the cinematic scene or display headings. */
.workspace-page .nav {
  font-size: 15px;
  min-height: 48px;
}
.workspace-page .intro,
.workspace-page .agent-description {
  font-size: 16px;
}
.workspace-page .panel h2,
.workspace-page .context-card h2 {
  font-size: 17px;
}
.workspace-page
  :is(
    .fld > span,
    .pref-row,
    .toggle-row b,
    .row-btn b,
    .s-nav b,
    .field-value,
    .field-label,
    .h-cell,
    .h-title b,
    .recent-row,
    .start-chat
  ) {
  font-size: 14px;
}
.workspace-page
  :is(
    .panel-sub,
    .toggle-row small,
    .row-btn small,
    .s-nav small,
    .h-title small,
    .h-when,
    .recent-label small,
    .workspace-note,
    .source small,
    .agent-skills span,
    .activity small
  ) {
  font-size: 12px;
  line-height: 1.5;
}
.workspace-page :is(.fld input, .fld textarea, .message-content, .user-message, .tool-label) {
  font-size: 15px;
}
.home-page #prompt {
  font-size: 17px;
}
.home-page .composer-heading {
  font-size: 14px;
}
.home-page .composer-mode,
.home-page #composer-hint {
  font-size: 11px;
}
.home-page .ask form > .composer-bottom > button {
  font-size: 13px;
  min-height: 42px;
}
.home-page .suggestions button {
  font-size: 12px;
}
.home-page .action h3 {
  font-size: 14px;
}
.home-page .action p {
  font-size: 12px;
  line-height: 1.5;
}
.home-page .panel-title {
  margin-bottom: 16px;
}
.home-page .actions {
  margin-top: 14px;
}
.home-page .action {
  min-height: 90px;
}
.home-page .action:hover,
.home-page .action:focus-visible {
  z-index: 2;
}
.home-page .panel {
  padding-bottom: 16px;
}
.workspace-page :is(.env-tag, .system-status, .command-trigger) {
  font-size: 12px;
}
.workspace-page .eyebrow {
  font-size: 11px;
}
.workspace-page .s-nav {
  min-height: 60px;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: page-out 0.16s ease-out both;
}
::view-transition-new(root) {
  animation: page-in 0.22s ease-out both;
}
@keyframes page-out {
  to {
    opacity: 0;
  }
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 701px) {
  #sidebar {
    view-transition-name: workspace-sidebar;
  }
  ::view-transition-old(workspace-sidebar),
  ::view-transition-new(workspace-sidebar) {
    animation: none;
    mix-blend-mode: normal;
  }
}
@media (max-width: 700px) {
  .workspace-page :is(.fld input, .fld textarea),
  .workspace-page .select-control .select-trigger {
    font-size: 16px;
  }
  .workspace-page .agent-select .select-control {
    width: 170px;
  }
  .workspace-page .agent-select .select-trigger {
    font-size: 14px;
  }
  .workspace-page :is(.env-tag, .system-status, .command-trigger) {
    font-size: 11px;
  }
  .home-page .composer-bottom {
    flex-wrap: wrap;
  }
  .home-page .action {
    min-height: 100px;
  }
}
/* The screenshot's dense details get the same readable scale. */
.workspace-page .agent-skills span {
  font-size: 13px;
  padding: 6px 9px;
}
.workspace-page .source-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  line-height: 1.5;
}
.workspace-page .source {
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  gap: 9px;
}
.workspace-page .source .vendor-logo {
  width: 28px;
  height: 28px;
}
.workspace-page .message-by {
  font-size: 16px;
}
.workspace-page .message-by .when {
  font-size: 12px;
}
.workspace-page .agent-intro {
  font-size: 15px;
}
.workspace-page .context-card :is(dt, dd),
.workspace-page .data-source {
  font-size: 14px;
  line-height: 1.5;
}
.workspace-page .context-card h2 {
  font-size: 18px;
}
.workspace-page .context-card dl > div {
  padding-block: 11px;
}
.workspace-page .context-card dd {
  overflow-wrap: anywhere;
}
.workspace-page .context-footnote {
  font-size: 13px;
  line-height: 1.6;
}
.workspace-page .sources {
  flex-wrap: wrap;
}
.avatar img,
.big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.settings-page .settings-grid > .panel {
  scroll-margin-top: 28px;
}
.settings-page #panel-ai,
.settings-page #panel-about {
  grid-column: 2;
}
.settings-page .settings-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  padding: 14px 18px;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  background: #081016ee;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.settings-page .settings-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.settings-page .settings-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 20px;
  margin: 0 !important;
  border-radius: var(--r-md) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-page .settings-actions button .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.8;
}
.settings-page .settings-actions .ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #c5d2dc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.settings-page .settings-actions .ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  color: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.settings-page .settings-actions .primary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #ff8a00, #ff4500);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(255, 69, 0, 0.35);
}
.settings-page .settings-actions .primary:hover {
  background: linear-gradient(135deg, #ffa020, #ff5500);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 20px rgba(255, 69, 0, 0.5);
  transform: translateY(-1px);
}
.settings-page .settings-actions button:active {
  transform: translateY(0);
}
.tips-off .suggestions,
.tips-off #composer-hint {
  display: none;
}
.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation-duration: 24s !important;
  transition-duration: 0.1s !important;
}
/* scene.js puts .motion-paused on <body> whenever the tab is hidden, but only
   login.css ever styled it - so on the six app pages a backgrounded tab went
   on compositing every ambient loop. Paused rather than removed, so returning
   to the tab resumes mid-cycle instead of snapping to the start. */
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
@media (max-width: 700px) {
  .settings-page #panel-ai,
  .settings-page #panel-about {
    grid-column: 1;
    grid-row: auto;
  }
  .settings-page .settings-actions {
    bottom: 6px;
    padding: 12px;
  }
  .workspace-page .context-card :is(dt, dd) {
    font-size: 14px;
  }
}

.page-arrival :is(.hero, .agents-hero, .history-hero, .integrations-hero, .settings-hero) {
  animation: none;
}
.page-arrival main {
  animation: page-in 0.22s ease-out;
}
.motion-off
  :is(
    .hero,
    .agents-hero,
    .history-hero,
    .integrations-hero,
    .settings-hero,
    .h-row,
    .message,
    .select-menu
  ) {
  animation: none !important;
}
/* motion-off is the reduced-motion switch, so it must not re-enable an
   infinite animation here - that defeated the user's own preference on every
   agent and platform card. card-glow only animates --glow (5% to 18%), so
   stopping it simply leaves the registered 10% initial value: a static glow,
   no visual loss. */
.motion-off :is(.agent-card, .platform-card) {
  animation: none !important;
}
.motion-off .page-arrival main {
  animation: none !important;
}

/* ========================================================================== */
/* Single Unified "Agent Workspace" Glass Card & CYONIX Branding             */
/* ========================================================================== */

.workspace-page .agent-workspace-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  background: var(--panel-gradient);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.4);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.workspace-page .agent-workspace-card:hover {
  border-color: var(--edge-strong);
  box-shadow:
    inset 0 1px #e0edff0c,
    0 20px 48px rgba(0, 0, 0, 0.6);
}

/* Corner HUD brackets matching .context-card */
.workspace-page .agent-workspace-card:before,
.workspace-page .agent-workspace-card:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  pointer-events: none;
  border-color: #ff8a1ec4;
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.workspace-page .agent-workspace-card:before {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: inherit;
}
.workspace-page .agent-workspace-card:after {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: inherit;
}

/* Header inside the unified card */
.workspace-page .agent-workspace-card .session-toolbar {
  flex: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 16px 16px 0 0;
  padding: 16px 22px 14px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-image: var(--rule-ember) !important;
  background-size: 100% 1px !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat !important;
}

/* Glowing CYONIX Orange Spark Branding */
.workspace-page .agent-workspace-card .session-toolbar .ai-spark {
  color: #ff8a00 !important;
  text-shadow:
    0 0 14px rgba(255, 138, 0, 0.75),
    0 0 24px rgba(255, 67, 56, 0.4) !important;
  font-size: 15px;
  display: inline-block;
  animation: spark-pulse 3s ease-in-out infinite alternate;
}

@keyframes spark-pulse {
  from {
    transform: scale(0.95);
    filter: drop-shadow(0 0 4px rgba(255, 138, 0, 0.5));
  }
  to {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 138, 0, 0.9));
  }
}

.workspace-page .agent-workspace-card .session-toolbar > span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.15px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace-page .agent-workspace-card .session-access {
  color: #ff9c3d !important;
  background: rgba(255, 138, 0, 0.08) !important;
  border: 1px solid rgba(255, 138, 0, 0.22) !important;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Interior Messages Body - Seamless inside the single card */
.workspace-page .agent-workspace-card #messages {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 0 15px 15px !important;
  padding: 22px;
  flex: 1 1 0%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 138, 0, 0.3) transparent;
}

.workspace-page .agent-workspace-card #messages::-webkit-scrollbar {
  width: 6px;
}
.workspace-page .agent-workspace-card #messages::-webkit-scrollbar-track {
  background: transparent;
}
.workspace-page .agent-workspace-card #messages::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 0, 0.25);
  border-radius: 9999px;
}
.workspace-page .agent-workspace-card #messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 138, 0, 0.5);
}

.workspace-page .agent-workspace-card #messages:before,
.workspace-page .agent-workspace-card #messages:after {
  display: none !important;
}

/* Integrated Workflow / Tool List - Part of message, NOT a 3rd nested card */

.workspace-page .agent-workspace-card .user-message {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px 0 14px 14px;
  color: #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.workspace-page .agent-workspace-card .avatar {
  background: radial-gradient(circle at 35% 25%, #223440, #0c151b);
  border: 1px solid rgba(255, 138, 0, 0.35);
  color: #ff9c3d;
  font-weight: 600;
}

.workspace-page .agent-workspace-card .agent-avatar {
  background: rgba(255, 138, 0, 0.09);
  border: 1px solid #ff8a00;
  box-shadow: 0 0 18px rgba(255, 138, 0, 0.28);
}

/* Chat Input Bar & Follow-ups on Investigation Page */
.investigation-page #chat-form {
  margin-top: 14px;
}

.investigation-page .follow-ups button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: #a9bbc8;
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.investigation-page .follow-ups button:hover {
  border-color: rgba(255, 138, 0, 0.4);
  color: #fff;
  background: rgba(255, 138, 0, 0.08);
  box-shadow: 0 2px 8px rgba(255, 138, 0, 0.15);
  transform: translateY(-1px);
}
