/* Separation comes from spacing, depth, and frosted translucent blur.
   Borders are quiet hairlines or eliminated; response surfaces are elevated to the forefront. */

/* Peripheral Chrome Frosted Blur Layers */
:root[data-theme] #shell.unified-shell :is(.sidebar,.topbar,.workspace-dock) {
  border-color: transparent;
  box-shadow: none;
}
:root[data-theme] #shell.unified-shell .topbar {
  background: rgba(6, 14, 25, 0.65) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
:root[data-theme=light] #shell.unified-shell .topbar {
  background: rgba(245, 248, 252, 0.78) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme] #shell.unified-shell .sidebar {
  background: rgba(4, 11, 20, 0.72) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}
:root[data-theme=light] #shell.unified-shell .sidebar {
  background: rgba(240, 244, 250, 0.8) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
}
:root[data-theme] #shell.unified-shell :is(.sidebar .nav,.launch-tool,.workspace-project-picker) {
  border-color: transparent;
}
:root[data-theme] #shell.unified-shell :is(.sidebar .nav.active,.sidebar .nav:hover) {
  background: color-mix(in srgb,var(--cyan) 10%,transparent);
  border-color: transparent;
}

/* Subbars & Horizontal Dividers */
:root[data-theme] #shell.unified-shell :is(.subbar, .workspace-subbar, .conversation-heading) {
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  background: transparent !important;
}
:root[data-theme=light] #shell.unified-shell :is(.subbar, .workspace-subbar, .conversation-heading) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* Calm, Frosted Active Inquiry Bar (No Loud Borders or Neon Boxes) */
:root[data-theme] .active-inquiry-bar,
:root[data-theme] .active-inquiry-bar.arena-inquiry-bar {
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  background: rgba(10, 18, 30, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 14px !important;
  margin: 8px 18px 14px !important;
  overflow: hidden !important;
}
:root[data-theme=light] .active-inquiry-bar,
:root[data-theme=light] .active-inquiry-bar.arena-inquiry-bar {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
.active-inquiry-bar .inquiry-header {
  background: transparent !important;
  border: none !important;
}
.active-inquiry-bar .inquiry-header:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}
:root[data-theme=light] .active-inquiry-bar .inquiry-header:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

/* Floating Frosted Glass Composer */
:root[data-theme] #shell.unified-shell .composer-area,
:root[data-theme] .composer-area {
  background: linear-gradient(to top, rgba(2, 9, 18, 0.94) 0%, rgba(2, 9, 18, 0.75) 50%, transparent 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: none !important;
  padding-bottom: 16px !important;
}
:root[data-theme=light] #shell.unified-shell .composer-area,
:root[data-theme=light] .composer-area {
  background: linear-gradient(to top, rgba(241, 245, 250, 0.94) 0%, rgba(241, 245, 250, 0.75) 50%, transparent 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: none !important;
}
:root[data-theme] #shell.unified-shell .composer,
:root[data-theme] #shell.unified-shell .composer:is(:focus-within,.expanded,.has-content) {
  background: rgba(11, 20, 34, 0.74) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5) !important;
  border-radius: 20px !important;
}
:root[data-theme] #shell.unified-shell .composer:focus-within {
  border-color: rgba(0, 217, 239, 0.35) !important;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 217, 239, 0.12) !important;
}
:root[data-theme=light] #shell.unified-shell .composer,
:root[data-theme=light] #shell.unified-shell .composer:is(:focus-within,.expanded,.has-content) {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 32px -6px rgba(18, 42, 66, 0.12) !important;
  border-radius: 20px !important;
}
:root[data-theme=light] #shell.unified-shell .composer:focus-within {
  border-color: rgba(0, 119, 139, 0.35) !important;
}
:root[data-theme] #shell.unified-shell :is(.composer-context-bar,.composer-toolbar,.recent-work header,.recent-work-list>button) {
  border-color: transparent;
}
:root[data-theme] .composer-context-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
:root[data-theme=light] .composer-context-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme] #shell.unified-shell :is(.composer-toolbar .composer-btn,.composer-size-toggle) {
  border-color: transparent;
  box-shadow: none;
}
:root[data-theme] #shell.unified-shell .recent-work-list>button {
  margin-block: 3px;
  border-radius: 8px;
}

/* Relocated and Softened Latest-Response Jump Button */
:root[data-theme] .jump,
:root[data-theme] #jump-latest {
  position: absolute !important;
  bottom: 84px !important;
  right: 28px !important;
  left: auto !important;
  transform: none !important;
  background: rgba(9, 19, 33, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  border-radius: 9999px !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  z-index: 35 !important;
  cursor: pointer !important;
  color: var(--cyan) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}
:root[data-theme] .jump[hidden],
:root[data-theme] #jump-latest[hidden] {
  display: none !important;
}
:root[data-theme] .jump:hover,
:root[data-theme] #jump-latest:hover {
  transform: translateY(-2px) !important;
  background: rgba(0, 229, 255, 0.15) !important;
  border-color: var(--cyan) !important;
  color: #fff !important;
}
:root[data-theme=light] .jump,
:root[data-theme=light] #jump-latest {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 103, 107, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  color: var(--cyan) !important;
}

/* Quiet Status, Activity & Notifications */
:root[data-theme] .task-monitor {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
:root[data-theme] .task-monitor summary button {
  border-color: transparent;
  background: var(--b1x-control);
  color: var(--muted);
  box-shadow: none;
}
:root[data-theme] .task-monitor[data-state=error] {
  border-left: 3px solid var(--amber,#f5b34c);
}
:root[data-theme] .result-notice {
  border: none !important;
  border-left: 3px solid var(--amber) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px) !important;
}
:root[data-theme] .activity,
:root[data-theme] .composer-activity {
  border: none !important;
  background: transparent !important;
}

/* Clean surfaces in Code Studio & Dialogs */
:root[data-theme] #shell.unified-shell :is(.cs-files,.cs-assistant,.cs-bottom,.cs-readiness,.cs-activity,.cs-notes) {
  border: 0;
  box-shadow: none;
  background: color-mix(in srgb,var(--b1x-glass) 92%,var(--b1x-text) 3%);
}
:root[data-theme] #shell.unified-shell :is(.cs-heading,.cs-toolbar,.cs-view-controls,.cs-file-list button,.cs-assistant-head,.cs-files-heading) {
  border-color: transparent;
}
:root[data-theme] #shell.unified-shell .cs-layout {
  gap: 12px;
}
:root[data-theme] :is(#settings,.task-window,.artifact-viewer-dialog) {
  border-color: transparent;
}
:root[data-theme] #settings .settings-section {
  border: 0;
  background: transparent;
  padding-block: 18px;
}
:root[data-theme] #settings .settings-section + .settings-section {
  border-top: 1px solid color-mix(in srgb,var(--line) 45%,transparent);
}
:root[data-theme] .verified-workbench {
  width: min(850px,calc(100vw - 32px));
  max-height: 88dvh;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 24px;
  background: var(--b1x-solid,#0a1928);
  color: var(--text,#e8f1fa);
}
.verified-workbench::backdrop {
  background: #0008;
}
.verified-workbench header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.verified-workbench section {
  margin-top: 24px;
}
.verified-workbench :is(input,textarea,select) {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px;
  background: var(--b1x-control,#102536);
  color: inherit;
  border: 1px solid var(--line,#244256);
  border-radius: 8px;
  font: inherit;
}
.verified-workbench textarea {
  min-height: 120px;
  resize: vertical;
}
.verified-workbench button {
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  margin: 4px 8px 4px 0;
  background: var(--b1x-control,#102536);
  color: inherit;
  cursor: pointer;
}
.verified-workbench pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  max-height: 45vh;
  overflow: auto;
  background: var(--b1x-control);
  padding: 14px;
  border-radius: 8px;
}
.verified-workbench label {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.verified-workbench article {
  padding-block: 14px;
}
:root[data-theme] :is(.verified-workbench,#settings,#shell.unified-shell) :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 2px solid var(--cyan,#00d9ef);
  outline-offset: 3px;
}
@media(max-width:700px){
  .verified-workbench {
    padding: 16px;
  }
  .verified-workbench header {
    align-items: flex-start;
  }
}
