/* Generated from legacy styles.css: inspector, preview, diff, and runtime panels. */



.sidebar-view-host,
.right-sidebar-view-host {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.right-sidebar-view-host {
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

.right-sidebar-view-host.is-preview,
.right-sidebar-view-host.is-files,
.right-sidebar-view-host.is-changes,
.right-sidebar-view-host.is-terminal,
.right-sidebar-view-host.is-message-tree,
.right-sidebar-view-host.is-side-chat {
  overflow: hidden;
  scrollbar-gutter: auto;
  padding-right: 0;
}

.right-sidebar-view-host.is-launcher {
  overflow: auto;
  padding-right: 0;
}

.sidebar.is-right {
  --right-sidebar-inline-padding: 14px;
  padding: 0;
  gap: 0;
  background: transparent;
}

.right-sidebar-main-stack {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-sidebar-terminal-toggle-slot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.session-tab-trigger,
.session-tab-close,
.left-sidebar-top-menu .sidebar-toggle-button.is-top-menu,
.right-sidebar-top-menu .sidebar-toggle-button.is-top-menu,
.canvas-region-top-menu .sidebar-toggle-button.is-top-menu,
.canvas-region-top-menu-add-button {
  border-radius: 8px;
}

.right-sidebar-section-header,
.right-sidebar-list-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.right-sidebar-top-menu {
  --right-sidebar-tab-bar-bg: var(--seg-pane-tab-bar-surface);
  --right-sidebar-tab-border: var(--seg-border);
  --right-sidebar-tab-divider: var(--seg-divider);
  --right-sidebar-tab-radius: 6px;
  --right-sidebar-tab-active-bg: var(--seg-shell);
  --right-sidebar-tab-hover-bg: var(--mix-seg-panel-66-seg-panel-muted-34);
  --right-sidebar-tab-icon-color: var(--semantic-accent-icon);
  --right-sidebar-tab-icon-hover-color: var(--semantic-accent-icon-hover);
  position: relative;
  min-height: 40px;
  margin: 0;
  padding-left: 0;
  padding-right: 12px;
  align-items: stretch;
  gap: 0;
  background: var(--right-sidebar-tab-bar-bg);
  isolation: isolate;
}

.right-sidebar-top-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--right-sidebar-tab-border);
  pointer-events: none;
  z-index: 1;
}

.right-sidebar-top-menu .shell-top-menu-content {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.right-sidebar-stack {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.left-sidebar-top-menu-content,
.right-sidebar-top-menu-tabs {
  gap: 10px;
}

.right-sidebar-top-menu-tabs {
  min-width: 0;
  min-height: 40px;
  align-items: stretch;
  gap: 0;
  overflow: auto hidden;
  scrollbar-width: none;
}

.right-sidebar-top-menu-tabs::-webkit-scrollbar {
  display: none;
}

.right-sidebar-dynamic-tabs {
  width: 100%;
}

.right-sidebar-tab-strip {
  min-width: 0;
  min-height: 40px;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.right-sidebar-tab-strip::-webkit-scrollbar {
  display: none;
}

.right-sidebar-tab {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(240px, 30vw);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 -1px;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: var(--right-sidebar-tab-radius) var(--right-sidebar-tab-radius) 0 0;
  background: transparent;
  color: var(--seg-text-2);
  font-size: 13px;
  overflow: hidden;
  cursor: default;
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.right-sidebar-tab:not(:first-child) {
  box-shadow: inset 1px 0 0 var(--right-sidebar-tab-divider);
}

.right-sidebar-tab:hover,
.right-sidebar-tab:focus-within {
  background: var(--right-sidebar-tab-hover-bg);
  color: var(--seg-text-1);
  box-shadow: none;
}

.right-sidebar-tab.is-active {
  background: var(--right-sidebar-tab-active-bg);
  color: var(--seg-text-1);
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 var(--right-sidebar-tab-border),
    inset 1px 0 0 var(--right-sidebar-tab-border),
    inset -1px 0 0 var(--right-sidebar-tab-border);
}

.right-sidebar-tab-trigger,
.right-sidebar-tab-close,
.right-sidebar-add-tab-button {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  transform: none;
}

.right-sidebar-tab-trigger {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  cursor: default;
}

.right-sidebar-tab-trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.right-sidebar-tab-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.right-sidebar-tab-close {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 5px;
  color: var(--right-sidebar-tab-icon-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  line-height: 1;
}

.right-sidebar-tab:hover .right-sidebar-tab-close,
.right-sidebar-tab:focus-within .right-sidebar-tab-close,
.right-sidebar-tab.is-active .right-sidebar-tab-close {
  opacity: 1;
  pointer-events: auto;
}

.right-sidebar-tab-close:hover,
.right-sidebar-tab-close:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--right-sidebar-tab-icon-hover-color);
  outline: none;
}

.right-sidebar-tab-close svg,
.right-sidebar-add-tab-button svg {
  width: var(--section-toolbar-aux-icon-size);
  height: var(--section-toolbar-aux-icon-size);
}

.right-sidebar-add-tab-button {
  align-self: center;
  flex: 0 0 auto;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--right-sidebar-tab-icon-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.right-sidebar-add-tab-button:hover,
.right-sidebar-add-tab-button:focus-visible,
.right-sidebar-add-tab-button.is-active {
  background: transparent;
  border-color: transparent;
  color: var(--right-sidebar-tab-icon-hover-color);
  outline: none;
}

.right-sidebar-launcher {
  min-height: 100%;
  padding: clamp(24px, 6vh, 48px) 24px;
  display: grid;
  grid-template-columns: minmax(0, min(300px, 100%));
  justify-content: center;
  align-content: center;
  gap: 14px;
  background: var(--seg-panel);
}

.right-sidebar-launcher-card {
  width: 100%;
  min-height: 128px;
  padding: 20px 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(84, 96, 109, 0.05);
  color: var(--seg-text-1);
  text-align: center;
  box-shadow: none;
  transform: none;
}

.right-sidebar-launcher-card:hover,
.right-sidebar-launcher-card:focus-visible {
  border-color: var(--seg-border);
  background: rgba(84, 96, 109, 0.08);
  outline: none;
}

.right-sidebar-launcher-card:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.right-sidebar-launcher-card-icon {
  display: inline-flex;
  color: var(--seg-text-3);
}

.right-sidebar-launcher-card-icon svg {
  width: 22px;
  height: 22px;
}

.right-sidebar-launcher-card-title,
.right-sidebar-launcher-card-description {
  display: block;
}

.right-sidebar-launcher-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.right-sidebar-launcher-card-description {
  color: var(--seg-text-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.right-sidebar-top-menu-window-controls {
  align-self: stretch;
  flex: 0 0 auto;
  padding-left: 8px;
  position: relative;
  z-index: 2;
}

.left-sidebar-top-menu .top-menu-view-button,
.right-sidebar-top-menu .top-menu-view-button {
  align-self: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--semantic-accent-icon);
  box-shadow: none;
  transform: none;
}

.right-sidebar-top-menu .top-menu-view-button {
  align-self: center;
  width: var(--section-toolbar-control-size);
  min-width: var(--section-toolbar-control-size);
  min-height: var(--section-toolbar-control-size);
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 8px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.left-sidebar-top-menu .top-menu-view-button:hover,
.left-sidebar-top-menu .top-menu-view-button:focus-visible,
.right-sidebar-top-menu .top-menu-view-button:hover,
.right-sidebar-top-menu .top-menu-view-button:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon-hover);
  transform: none;
}

.left-sidebar-top-menu .top-menu-view-button.is-active,
.left-sidebar-top-menu .top-menu-view-button.is-active:hover,
.left-sidebar-top-menu .top-menu-view-button.is-active:focus-visible,
.right-sidebar-top-menu .top-menu-view-button.is-active,
.right-sidebar-top-menu .top-menu-view-button.is-active:hover,
.right-sidebar-top-menu .top-menu-view-button.is-active:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon-active);
}

.left-sidebar-top-menu .sidebar-toggle-button.is-top-menu,
.right-sidebar-top-menu .sidebar-toggle-button.is-top-menu {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon);
}

.left-sidebar-top-menu .sidebar-toggle-button.is-top-menu:hover,
.left-sidebar-top-menu .sidebar-toggle-button.is-top-menu:focus-visible,
.right-sidebar-top-menu .sidebar-toggle-button.is-top-menu:hover,
.right-sidebar-top-menu .sidebar-toggle-button.is-top-menu:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon-hover);
  transform: none;
}

.left-sidebar-top-menu .sidebar-toggle-button.is-top-menu:focus-visible,
.right-sidebar-top-menu .sidebar-toggle-button.is-top-menu:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.right-sidebar-section-header,
.right-sidebar-list-row {
  justify-content: space-between;
}

.right-sidebar-section h4 {
  margin: 0;
  color: #182532;
  letter-spacing: -0.03em;
}

.right-sidebar-section p,
.right-sidebar-list-row span,
.right-sidebar-metric-label {
  margin: 0;
  color: #5b6f82;
  line-height: 1.55;
}

.right-sidebar-section {
  min-height: 100%;
  padding: 16px 14px 18px;
  border: 0;
  background: transparent;
  display: grid;
  align-content: start;
  gap: 14px;
}

.right-sidebar-section-header {
  align-items: center;
}

.right-sidebar-panel-header,
.right-sidebar-panel-actions,
.right-sidebar-status-row,
.right-sidebar-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.right-sidebar-panel-header,
.right-sidebar-toolbar {
  justify-content: space-between;
}

.right-sidebar-panel-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.right-sidebar-panel-copy h3 {
  margin: 0;
  color: #182532;
  letter-spacing: -0.03em;
}

.right-sidebar-scope {
  margin: 0;
  color: #5b6f82;
  word-break: break-word;
}

.right-sidebar-scope code {
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  color: #233241;
}

.right-sidebar-refresh-button {
  white-space: nowrap;
}

.right-sidebar-status-row {
  flex-wrap: wrap;
}

.right-sidebar-status-badge.is-loading,
.right-sidebar-status-badge.is-refreshing {
  color: #1669af;
}

.right-sidebar-status-badge.is-ready,
.right-sidebar-status-badge.is-empty {
  color: #2a8357;
}

.right-sidebar-status-badge.is-error {
  color: #b14537;
}

.right-sidebar-status-copy,
.right-sidebar-status-summary,
.right-sidebar-status-error {
  margin: 0;
  line-height: 1.55;
}

.right-sidebar-status-copy,
.right-sidebar-status-summary {
  color: #5b6f82;
}

.right-sidebar-status-error {
  color: #b14537;
}

.right-sidebar-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.right-sidebar-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--seg-border);
  background: var(--seg-panel-muted);
  display: grid;
  gap: 4px;
}

.right-sidebar-metric strong,
.right-sidebar-list-row strong {
  color: #17232f;
  word-break: break-word;
}

.right-sidebar-list {
  display: grid;
  gap: 8px;
}

.preview-panel-section {
  min-height: 100%;
  height: 100%;
  padding: 0;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  gap: 0;
}

.preview-panel-main,
.preview-panel-controls,
.preview-panel-preview-stack {
  display: grid;
  gap: 14px;
}

.preview-panel-main {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}

.preview-panel-preview-stack {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.preview-panel-controls {
  gap: 0;
}

.preview-comment-label,
.preview-comment-list,
.preview-comment-list-copy {
  display: grid;
  gap: 8px;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 28px auto;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px 8px;
  border: 0;
  border-bottom: 1px solid rgba(166, 186, 208, 0.32);
  background: rgba(255, 255, 255, 0.82);
}

.preview-toolbar-navigation {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.preview-toolbar-address {
  min-width: 0;
}

.preview-toolbar-input,
.preview-comment-label textarea {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(166, 186, 208, 0.36);
  background: #ffffff;
  color: #182532;
}

.preview-toolbar-input {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(166, 186, 208, 0.22);
}

.preview-toolbar-input:focus {
  outline: 2px solid rgba(217, 89, 78, 0.18);
  outline-offset: 1px;
}

.preview-toolbar-icon-button,
.preview-comment-mode-button {
  min-width: 0;
  min-height: 30px;
  border: 1px solid transparent;
  background: transparent;
  color: #5a7186;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.preview-toolbar-icon-button {
  width: 28px;
  padding: 0;
}

.preview-comment-mode-button {
  padding: 0 10px;
  white-space: nowrap;
}

.preview-toolbar-icon-button:hover,
.preview-toolbar-icon-button:focus-visible,
.preview-comment-mode-button:hover,
.preview-comment-mode-button:focus-visible,
.preview-comment-mode-button.is-active {
  border-color: rgba(217, 89, 78, 0.24);
  background: rgba(217, 89, 78, 0.08);
  color: #b14537;
}

.preview-toolbar-icon-button:disabled,
.preview-comment-mode-button:disabled {
  opacity: 0.42;
  cursor: default;
  background: transparent;
  color: #8a9caf;
}

.unified-preview-panel {
  background: #ffffff;
}

.unified-preview-toolbar {
  grid-template-columns: minmax(0, 1fr) auto 28px 28px;
}

.unified-preview-toolbar.has-target-meta {
  grid-template-columns: minmax(0, 1fr) auto auto 28px 28px;
}

.unified-preview-open-button {
  min-height: 30px;
  padding: 0 12px;
}

.unified-preview-target-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  max-width: min(360px, 38vw);
}

.unified-preview-target-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 128px;
  color: #17232f;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-preview-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.unified-preview-meta span {
  max-width: 96px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(166, 186, 208, 0.34);
  background: #ffffff;
  color: #51677c;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-preview-status-message {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(166, 186, 208, 0.22);
  background: rgba(255, 248, 230, 0.72);
}

.unified-preview-stack {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.unified-preview-frame-canvas {
  min-height: 0;
}

.unified-preview-text-stage,
.unified-preview-image-stage {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.unified-preview-text-stage {
  background: #ffffff;
}

.unified-preview-markdown {
  max-width: 760px;
  padding: 18px;
  color: #17232f;
}

.unified-preview-code {
  min-height: 100%;
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #0f1720;
  color: #dbe7f3;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

.unified-preview-table-scroll {
  min-height: 100%;
  overflow: auto;
  padding: 12px;
}

.unified-preview-table {
  width: 100%;
  border-collapse: collapse;
  color: #17232f;
  font-size: 12px;
}

.unified-preview-table th,
.unified-preview-table td {
  max-width: 280px;
  padding: 7px 9px;
  border: 1px solid rgba(166, 186, 208, 0.36);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.unified-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  color: #263747;
  font-weight: 700;
}

.unified-preview-image-stage {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #f8fafc;
}

.unified-preview-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(166, 186, 208, 0.24);
}

.unified-preview-message {
  position: relative;
  min-height: 100%;
}

.unified-preview-message .primary-button {
  width: fit-content;
}

.unified-preview-suggestion-list {
  width: min(360px, 100%);
  margin: 0;
  padding-left: 18px;
  color: #5b6f82;
  line-height: 1.55;
}

.unified-preview-empty svg {
  width: 28px;
  height: 28px;
  color: var(--seg-accent-strong);
}

.unified-preview-quick-list,
.unified-preview-services {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.unified-preview-quick-list {
  margin-top: 8px;
}

.unified-preview-quick-list .secondary-button,
.unified-preview-services > .secondary-button {
  justify-content: center;
}

.unified-preview-service-list {
  display: grid;
  gap: 6px;
}

.unified-preview-service-row {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(166, 186, 208, 0.34);
  background: #ffffff;
  color: #263747;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.unified-preview-service-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-comment-label textarea {
  min-height: 88px;
  padding: 10px;
  resize: vertical;
}

.preview-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--mix-seg-border-84-transparent-16);
  background: var(--seg-panel-muted);
  width: fit-content;
}

.preview-mode-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #5a7186;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.preview-mode-button.is-active {
  border-color: var(--mix-seg-accent-24-seg-border-76);
  background: #ffffff;
  color: var(--seg-accent-strong);
}

.preview-helper-copy,
.preview-page-meta,
.preview-comments-empty p,
.preview-canvas-state p,
.preview-empty-state p,
.preview-comment-list-item p,
.preview-comment-list-copy span {
  margin: 0;
  color: #5b6f82;
  line-height: 1.55;
}

.preview-comments-empty,
.preview-comment-list-item {
  border: 1px solid var(--mix-seg-border-84-transparent-16);
  background: var(--seg-panel-muted);
  padding: 12px;
}

.preview-empty-state {
  display: grid;
  min-height: 0;
  align-content: center;
}

.preview-canvas-state h3,
.preview-empty-state h3 {
  margin: 0 0 6px;
  color: #17232f;
}

.preview-empty-state code {
  color: var(--seg-info);
}

.preview-canvas {
  position: relative;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #ffffff;
  overflow: hidden;
}

.preview-canvas-state {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.preview-error-state {
  align-content: start;
  background: #ffffff;
  color: #17232f;
  padding-top: min(12vh, 96px);
  text-align: left;
}

.preview-error-state p {
  width: min(360px, 100%);
}

.preview-error-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--seg-accent-strong);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--seg-accent-strong);
  font-weight: 800;
}

.preview-error-details {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  color: #4f677c;
  font-size: 13px;
  line-height: 1.5;
}

.preview-error-details ul {
  margin: 0;
  padding-left: 18px;
}

.preview-error-state code {
  color: #17232f;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
}

.preview-state-kicker {
  color: var(--seg-accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preview-state-actions,
.preview-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.preview-quick-link,
.preview-local-service {
  border: 1px solid rgba(166, 186, 208, 0.34);
  background: #ffffff;
  color: #1c3144;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.preview-quick-link {
  min-height: 32px;
  padding: 0 11px;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
}

.preview-quick-link:hover,
.preview-quick-link:focus-visible,
.preview-local-service:hover,
.preview-local-service:focus-visible {
  border-color: rgba(217, 89, 78, 0.28);
  background: rgba(217, 89, 78, 0.08);
  color: #b14537;
}

.preview-local-services {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  margin-top: 6px;
}

.preview-local-services p {
  margin: 0;
  color: #5b6f82;
  line-height: 1.55;
}

.preview-local-services-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.preview-local-services-header span {
  color: #17232f;
  font-weight: 650;
}

.preview-local-service-list {
  display: grid;
  gap: 7px;
}

.preview-local-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
}

.preview-local-service strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  font-weight: 650;
}

.preview-local-service span {
  color: #6b7f92;
  font-size: 12px;
}

.preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.preview-webview {
  display: flex;
}

.preview-comment-overlay,
.preview-markers-layer,
.preview-loading-scrim,
.preview-floating-comment-composer {
  position: absolute;
}

.preview-comment-overlay,
.preview-markers-layer,
.preview-loading-scrim {
  inset: 0;
}

.preview-comment-overlay {
  pointer-events: none;
  z-index: 2;
}

.preview-comment-overlay.is-active {
  pointer-events: auto;
  cursor: crosshair;
}

.preview-comment-overlay.is-active::before {
  content: none;
}

.preview-markers-layer {
  pointer-events: none;
  z-index: 4;
}

.preview-comment-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--seg-accent-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px var(--mix-seg-accent-24-transparent-76);
}

.preview-hover-highlight,
.preview-hover-tooltip {
  position: absolute;
  pointer-events: none;
}

.preview-hover-highlight {
  left: var(--preview-hover-left);
  top: var(--preview-hover-top);
  width: var(--preview-hover-width);
  height: var(--preview-hover-height);
  z-index: 3;
  box-sizing: border-box;
  border: 2px solid #0a84ff;
  background: rgba(10, 132, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.preview-hover-highlight.is-coordinate {
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.preview-hover-tooltip {
  left: var(--preview-hover-tooltip-left);
  top: var(--preview-hover-tooltip-top);
  z-index: 5;
  display: grid;
  gap: 5px;
  min-width: 210px;
  max-width: min(260px, calc(100% - 24px));
  padding: 9px 11px;
  border: 1px solid rgba(166, 186, 208, 0.46);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #17232f;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.preview-hover-tooltip.is-left {
  transform: translateX(-100%);
}

.preview-hover-tooltip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.4;
}

.preview-hover-tooltip-row span {
  color: #6b7280;
}

.preview-hover-tooltip-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-weight: 600;
}

.preview-hover-tooltip-row:first-child strong:first-child {
  font-family: inherit;
}

.preview-floating-comment-composer {
  left: var(--preview-comment-x);
  top: clamp(42px, var(--preview-comment-y), calc(100% - 42px));
  z-index: 6;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  pointer-events: auto;
}

.preview-floating-comment-composer.is-right {
  transform: translate(10px, -50%);
}

.preview-floating-comment-composer.is-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% - 10px), -50%);
}

.preview-floating-comment-composer.is-center {
  transform: translate(-50%, -50%);
}

.preview-floating-comment-pin {
  position: relative;
  z-index: 2;
  width: 23px;
  height: 23px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #0a84ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

.preview-floating-comment-bubble {
  display: grid;
  gap: 8px;
  width: min(280px, calc(100% - 28px));
  min-width: min(230px, calc(100% - 28px));
  margin-left: -1px;
  padding: 10px;
  border: 1px solid rgba(166, 186, 208, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.preview-floating-comment-composer.is-left .preview-floating-comment-bubble {
  margin-right: -1px;
  margin-left: 0;
}

.preview-floating-comment-bubble .preview-comment-selection {
  gap: 2px;
}

.preview-floating-comment-bubble .preview-comment-selection strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.preview-floating-comment-bubble .preview-comment-selection span {
  max-height: 32px;
  overflow: hidden;
}

.preview-floating-comment-bubble .preview-comment-label textarea {
  min-height: 40px;
  max-height: 92px;
  padding: 9px 10px;
  border-radius: 12px;
  resize: vertical;
}

.preview-floating-comment-actions {
  justify-content: end;
}

.preview-comment-card {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 12px));
  width: min(260px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(166, 186, 208, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 32px rgba(26, 44, 60, 0.18);
}

.preview-comment-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--mix-seg-border-84-transparent-16);
  background: var(--seg-panel-muted);
}

.preview-comment-selection {
  display: grid;
  gap: 4px;
}

.preview-comment-selection strong,
.preview-comment-selector {
  color: #17232f;
}

.preview-comment-selection span,
.preview-comment-selector {
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.preview-comment-selector {
  margin: 0;
  color: #4f677c;
  word-break: break-all;
}

.preview-loading-scrim {
  display: grid;
  place-items: center;
  background: rgba(248, 251, 255, 0.8);
  color: #39556f;
  font-size: 13px;
  backdrop-filter: blur(2px);
  z-index: 5;
}

.right-sidebar-change-list {
  display: grid;
  gap: 8px;
}

.preview-comment-list-item {
  display: grid;
  gap: 10px;
}

.preview-comment-list-copy strong {
  color: #17232f;
}

.right-sidebar-toolbar {
  align-items: end;
  flex-wrap: wrap;
}

.right-sidebar-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.right-sidebar-filter-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(166, 186, 208, 0.36);
  background: rgba(248, 251, 255, 0.9);
  color: #546a80;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.right-sidebar-filter-chip.is-active {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  background: #ffffff;
  color: var(--seg-accent-strong);
}

.right-sidebar-search-field {
  min-width: min(100%, 220px);
  display: grid;
  gap: 6px;
}

.right-sidebar-search-field input {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(166, 186, 208, 0.36);
  background: #ffffff;
  color: #182532;
}

.right-sidebar-change-row {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel-muted);
  overflow: hidden;
}

.right-sidebar-change-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.right-sidebar-change-toggle:hover {
  background: rgba(255, 255, 255, 0.7);
}

.right-sidebar-change-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  outline: 2px solid var(--seg-accent, rgba(95, 146, 194, 0.9));
  outline-offset: -2px;
}

.right-sidebar-change-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5a7186;
}

.right-sidebar-change-icon svg {
  width: 14px;
  height: 14px;
}

.right-sidebar-change-action {
  color: #60778d;
  font-size: 12px;
}

.right-sidebar-change-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.right-sidebar-change-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.right-sidebar-change-copy strong {
  color: #17232f;
  word-break: break-word;
}

.right-sidebar-change-type {
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.right-sidebar-change-type.is-added {
  color: var(--seg-success);
}

.right-sidebar-change-type.is-modified {
  color: var(--seg-accent-strong);
}

.right-sidebar-change-type.is-deleted {
  color: var(--seg-danger);
}

.right-sidebar-change-type.is-renamed {
  color: #8d5b17;
}

.right-sidebar-change-stat {
  color: #42586d;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.right-sidebar-diff-preview {
  border-top: 1px solid var(--seg-border);
  background: #ffffff;
  overflow: auto;
  scrollbar-gutter: stable;
  max-height: 320px;
}

.right-sidebar-diff-preview.is-full-height {
  max-height: none;
}

.right-sidebar-diff-preview-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px;
  border-top: 1px solid var(--seg-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
}

.right-sidebar-diff-height-toggle {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(166, 186, 208, 0.36);
  background: #ffffff;
  color: var(--seg-accent-strong);
  font-size: 11px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.right-sidebar-diff-height-toggle:hover {
  border-color: rgba(95, 146, 194, 0.7);
}

.right-sidebar-diff-height-toggle:focus-visible {
  outline: 2px solid var(--seg-accent, rgba(95, 146, 194, 0.9));
  outline-offset: 1px;
}

.right-sidebar-diff-code {
  display: grid;
  gap: 10px;
  padding: 10px;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.5;
  min-width: max-content;
}

.right-sidebar-diff-hunk {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel-muted);
  overflow: hidden;
}

.right-sidebar-diff-hunk-header {
  padding: 6px 10px;
  border-bottom: 1px solid var(--seg-border);
  background: #eef2f6;
  color: var(--seg-text-2);
  font-size: 11px;
}

.right-sidebar-diff-row {
  display: grid;
  grid-template-columns: 40px 40px minmax(0, 1fr);
  align-items: stretch;
  background: #ffffff;
}

.right-sidebar-diff-row + .right-sidebar-diff-row {
  border-top: 1px solid rgba(166, 186, 208, 0.12);
}

.right-sidebar-diff-line-number {
  padding: 0 8px;
  color: #8ca0b2;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(166, 186, 208, 0.12);
  background: #f6f9fc;
}

.right-sidebar-diff-content {
  padding: 0 12px;
  color: #233241;
  white-space: pre;
}

.right-sidebar-diff-row.is-add {
  background: #eef9f0;
}

.right-sidebar-diff-row.is-add .right-sidebar-diff-content {
  color: #245c3a;
}

.right-sidebar-diff-row.is-add .right-sidebar-diff-line-number {
  background: #e8f5eb;
}

.right-sidebar-diff-row.is-remove {
  background: #fff1ef;
}

.right-sidebar-diff-row.is-remove .right-sidebar-diff-content {
  color: #8f3127;
}

.right-sidebar-diff-row.is-remove .right-sidebar-diff-line-number {
  background: #feebe8;
}

.right-sidebar-diff-empty {
  padding: 10px;
  border-top: 1px solid rgba(166, 186, 208, 0.26);
  background: #ffffff;
}

.right-sidebar-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(166, 186, 208, 0.5);
  background: rgba(248, 251, 255, 0.8);
}

.session-message-tree-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  overflow: hidden;
}

.session-message-tree-header {
  min-width: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--seg-border);
  display: grid;
  gap: 8px;
}

.session-message-tree-title-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.session-message-tree-title-copy span {
  color: var(--seg-text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session-message-tree-title-copy h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--seg-text-1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-message-tree-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.session-message-tree-meta span {
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid var(--seg-border);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  color: var(--seg-text-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}

.session-message-tree-canvas {
  min-height: 0;
  padding: 12px 12px 18px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: none;
}

.session-message-tree-canvas.is-panning {
  cursor: grabbing;
  user-select: none;
}

.session-message-tree-canvas.is-panning .session-message-tree-graph-node {
  pointer-events: none;
}

.session-message-tree-graph {
  min-width: 260px;
  min-height: 160px;
  position: relative;
  transform-origin: 0 0;
  will-change: transform;
}

.session-message-tree-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.session-message-tree-edge {
  fill: none;
  stroke: var(--seg-border);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25px;
  transition:
    opacity 180ms ease,
    stroke 180ms ease,
    stroke-width 180ms ease;
}

.session-message-tree-edge.is-active-path {
  stroke: var(--mix-seg-accent-34-seg-border-66);
  stroke-width: 1.7px;
}

.session-message-tree-edge-arrow {
  fill: var(--seg-border);
}

.session-message-tree-edge-arrow.is-active-path {
  fill: var(--mix-seg-accent-34-seg-border-66);
}

.session-message-tree-graph-node {
  width: 136px;
  min-height: 56px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--seg-text-2);
  cursor: pointer;
  display: grid;
  grid-template-rows: 14px minmax(18px, auto);
  justify-items: center;
  align-content: start;
  gap: 3px;
  position: absolute;
  text-align: center;
  transform: translate(-50%, -8px);
  transition:
    color 160ms ease,
    gap 180ms cubic-bezier(0.2, 0, 0, 1),
    min-height 180ms cubic-bezier(0.2, 0, 0, 1),
    opacity 160ms ease,
    width 180ms cubic-bezier(0.2, 0, 0, 1);
}

.session-message-tree-graph-node.is-expanded-response {
  width: 296px;
  min-height: 270px;
  gap: 6px;
  z-index: 3;
}

.session-message-tree-graph-node:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 3px;
}

.session-message-tree-graph-node[aria-disabled="true"] {
  cursor: default;
}

.session-message-tree-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--seg-panel);
  border-radius: 999px;
  background: #5f6368;
  box-shadow: 0 0 0 1px rgba(30, 35, 42, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.session-message-tree-graph-node:hover .session-message-tree-dot,
.session-message-tree-graph-node:focus-visible .session-message-tree-dot {
  transform: scale(1.14);
  box-shadow: 0 0 0 5px var(--seg-panel-muted), 0 0 0 1px rgba(30, 35, 42, 0.2);
}

.session-message-tree-graph-node.is-user .session-message-tree-dot {
  background: var(--seg-accent);
}

.session-message-tree-graph-node.is-assistant .session-message-tree-dot {
  background: #606368;
}

.session-message-tree-graph-node.is-active-path .session-message-tree-dot {
  box-shadow: 0 0 0 4px var(--mix-seg-accent-soft-72-transparent-28), 0 0 0 1px var(--seg-accent);
}

.session-message-tree-graph-node.is-active .session-message-tree-dot {
  background: var(--seg-accent-strong);
  box-shadow: 0 0 0 5px var(--mix-seg-accent-soft-68-seg-panel-32), 0 0 0 1px var(--seg-accent);
}

.session-message-tree-node-preview {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  color: var(--seg-text-2);
  display: -webkit-box;
  font-size: 12px;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  letter-spacing: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.session-message-tree-graph-node.is-assistant .session-message-tree-node-preview {
  width: 128px;
  max-width: 128px;
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid var(--mix-seg-border-84-transparent-16);
  border-radius: 6px;
  background: var(--mix-seg-panel-92-transparent-8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  text-align: left;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}

.session-message-tree-graph-node.is-assistant:hover .session-message-tree-node-preview,
.session-message-tree-graph-node.is-assistant:focus-visible .session-message-tree-node-preview {
  border-color: var(--mix-seg-border-72-seg-panel-28);
  background: var(--seg-panel-muted);
}

.session-message-tree-graph-node.is-active .session-message-tree-node-preview,
.session-message-tree-graph-node.is-active-path .session-message-tree-node-preview {
  color: var(--seg-text-1);
}

.session-message-tree-graph-node.is-assistant.is-active-path .session-message-tree-node-preview {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  background: var(--mix-seg-accent-soft-84-transparent-16);
}

.session-message-tree-graph-node.is-assistant.is-active .session-message-tree-node-preview {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
  box-shadow: 0 0 0 3px var(--mix-seg-accent-12-transparent-88);
}

.session-message-tree-response-card {
  box-sizing: border-box;
  width: 280px;
  height: 232px;
  overflow: hidden;
  border: 1px solid var(--mix-seg-border-84-transparent-16);
  border-radius: 7px;
  background: var(--mix-seg-panel-92-transparent-8);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  text-align: left;
  transform-origin: top center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.session-message-tree-graph-node.is-active-path .session-message-tree-response-card {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  background: var(--mix-seg-accent-soft-84-transparent-16);
}

.session-message-tree-graph-node.is-active .session-message-tree-response-card {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
  box-shadow: 0 0 0 3px var(--mix-seg-accent-12-transparent-88), 0 8px 18px rgba(15, 23, 42, 0.1);
}

.session-message-tree-graph-node.is-sibling-wheel-target .session-message-tree-response-card {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  box-shadow: 0 0 0 3px var(--mix-seg-accent-12-transparent-88), 0 8px 18px rgba(15, 23, 42, 0.1);
}

.session-message-tree-response-card-header {
  min-width: 0;
  min-height: 32px;
  padding: 4px 5px 4px 9px;
  border-bottom: 1px solid var(--mix-seg-border-84-transparent-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.session-message-tree-response-card-title {
  min-width: 0;
  overflow: hidden;
  color: var(--seg-text-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-message-tree-response-collapse {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--seg-text-3);
  cursor: pointer;
  display: inline-grid;
  flex: 0 0 auto;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  place-items: center;
}

.session-message-tree-response-collapse:hover,
.session-message-tree-response-collapse:focus-visible {
  background: var(--mix-seg-text-2-12-transparent-88);
  color: var(--seg-text-1);
  outline: 0;
}

.session-message-tree-response-card-body {
  min-height: 0;
  padding: 8px 10px 10px;
  overflow: auto;
  color: var(--seg-text-1);
  cursor: text;
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.42;
  overflow-wrap: anywhere;
  user-select: text;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: no-preference) {
  .session-message-tree-response-card {
    animation: session-message-tree-response-card-in 180ms cubic-bezier(0.2, 0, 0, 1);
  }
}

@keyframes session-message-tree-response-card-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.session-message-tree-empty {
  margin: 12px;
}

.right-sidebar-changes-panel {
  min-height: 100%;
  padding: 10px 14px 18px;
  border: 0;
  background: transparent;
  align-content: start;
  gap: 10px;
}

.right-sidebar-changes-menu {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.right-sidebar-diff-scope {
  position: relative;
  min-width: 0;
}

.right-sidebar-diff-scope-button {
  min-width: 0;
  min-height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--seg-divider);
  border-radius: 6px;
  background: var(--seg-panel-muted);
  color: var(--seg-text-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.right-sidebar-diff-scope-button:hover,
.right-sidebar-diff-scope-button:focus-visible {
  background: var(--seg-panel);
  outline: none;
}

.right-sidebar-diff-scope-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 1px;
}

.right-sidebar-diff-scope-button svg {
  width: 13px;
  height: 13px;
  color: var(--seg-text-3);
}

.right-sidebar-diff-scope-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.right-sidebar-diff-scope-count,
.right-sidebar-diff-scope-option-count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mix-seg-text-1-5-transparent-95);
  color: var(--seg-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.right-sidebar-diff-scope-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 202px;
  padding: 6px;
  border: 1px solid var(--seg-border);
  border-radius: var(--semantic-dropdown-menu-radius, 8px);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.right-sidebar-diff-scope-option {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.right-sidebar-diff-scope-option:hover,
.right-sidebar-diff-scope-option:focus-visible,
.right-sidebar-diff-scope-option.is-selected {
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
  outline: none;
}

.right-sidebar-diff-scope-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.right-sidebar-diff-scope-option-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.right-sidebar-diff-scope-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.right-sidebar-diff-scope-option-mark {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.right-sidebar-diff-scope-option-mark svg {
  width: 14px;
  height: 14px;
}

.right-sidebar-diff-scope-divider {
  height: 1px;
  margin: 5px 4px;
  background: var(--seg-divider);
}

.right-sidebar-diff-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--seg-divider);
  border-radius: 6px;
  background: var(--seg-panel-muted);
}

.right-sidebar-diff-view-button {
  min-height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--seg-text-2);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.right-sidebar-diff-view-button:hover,
.right-sidebar-diff-view-button:focus-visible {
  color: var(--seg-text-1);
}

.right-sidebar-diff-view-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 1px;
}

.right-sidebar-diff-view-button.is-active {
  background: var(--seg-panel);
  color: var(--seg-accent-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.right-sidebar-changes-panel .right-sidebar-panel-header {
  align-items: flex-start;
  gap: 12px;
}

.right-sidebar-changes-panel .right-sidebar-panel-copy {
  gap: 2px;
}

.right-sidebar-changes-panel .right-sidebar-panel-copy h3 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.right-sidebar-changes-panel .right-sidebar-scope {
  font-size: 12px;
  color: var(--seg-text-3);
}

.right-sidebar-changes-panel .right-sidebar-scope code {
  font-size: 12px;
  color: var(--seg-text-3);
  overflow-wrap: anywhere;
}

.right-sidebar-changes-panel .right-sidebar-refresh-button {
  min-height: 30px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: var(--seg-text-2);
}

.right-sidebar-changes-panel .right-sidebar-refresh-button:hover,
.right-sidebar-changes-panel .right-sidebar-refresh-button:focus-visible {
  border-color: var(--seg-divider);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  transform: none;
}

.right-sidebar-status-summary-inline {
  color: var(--seg-text-2);
  font-size: 12px;
  line-height: 1.5;
}

.right-sidebar-changes-toolbar {
  display: grid;
  gap: 10px;
  align-items: stretch;
  justify-content: initial;
}

.right-sidebar-changes-panel .right-sidebar-search-field {
  min-width: 100%;
  gap: 0;
}

.right-sidebar-changes-panel .right-sidebar-search-field input {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--seg-divider);
  border-radius: 10px;
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: none;
}

.right-sidebar-changes-panel .right-sidebar-search-field input:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 1px;
  border-color: var(--seg-border);
}

.right-sidebar-changes-panel .right-sidebar-filter-group {
  gap: 6px;
}

.right-sidebar-changes-panel .right-sidebar-filter-chip {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--seg-text-2);
  box-shadow: none;
}

.right-sidebar-changes-panel .right-sidebar-filter-chip:hover,
.right-sidebar-changes-panel .right-sidebar-filter-chip:focus-visible {
  border-color: transparent;
  background: var(--mix-seg-text-1-5-transparent-95);
  color: var(--seg-text-1);
  box-shadow: none;
}

.right-sidebar-changes-panel .right-sidebar-filter-chip.is-active {
  border-color: var(--seg-divider);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: none;
}

.right-sidebar-changes-panel .right-sidebar-change-list {
  gap: 0;
}

.right-sidebar-changes-panel .right-sidebar-change-row {
  border: 0;
  border-bottom: 1px solid var(--seg-divider);
  border-radius: 0;
  background: transparent;
  color: var(--seg-text-2);
  overflow: visible;
}

.right-sidebar-change-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.right-sidebar-change-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.right-sidebar-changes-panel .right-sidebar-change-row {
  border: 0;
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-change-row.is-expanded {
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-change-toggle {
  min-width: 0;
  padding: 8px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.right-sidebar-changes-panel .right-sidebar-change-toggle:hover {
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-change-toggle:focus-visible {
  background: transparent;
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 2px;
}

.right-sidebar-change-summary {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
}

.right-sidebar-change-file {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--seg-text-1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.right-sidebar-change-stats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.right-sidebar-changes-panel .right-sidebar-change-stat {
  color: var(--seg-text-3);
}

.right-sidebar-changes-panel .right-sidebar-change-stat.is-add {
  color: var(--seg-success);
}

.right-sidebar-changes-panel .right-sidebar-change-stat.is-remove {
  color: var(--seg-danger);
}

.right-sidebar-change-action-button,
.right-sidebar-change-restore-button {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.right-sidebar-change-action-button:hover,
.right-sidebar-change-action-button:focus-visible,
.right-sidebar-change-restore-button:hover,
.right-sidebar-change-restore-button:focus-visible {
  border-color: var(--seg-divider);
  background: var(--seg-panel);
  color: var(--seg-text-1);
}

.right-sidebar-change-action-button:disabled,
.right-sidebar-change-restore-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.right-sidebar-change-action-button svg,
.right-sidebar-change-restore-button svg {
  width: 14px;
  height: 14px;
}

.right-sidebar-changes-panel .right-sidebar-diff-preview,
.right-sidebar-changes-panel .right-sidebar-diff-empty {
  margin: 0 0 12px;
  border: 0;
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-diff-preview {
  max-height: 340px;
}

.right-sidebar-changes-panel .right-sidebar-diff-empty {
  padding: 4px 0 0;
}

.right-sidebar-changes-panel .right-sidebar-diff-code {
  gap: 0;
  padding: 4px 0 0;
  font-size: 11px;
}

.right-sidebar-changes-panel .right-sidebar-diff-code.is-split {
  min-width: 700px;
}

.right-sidebar-changes-panel .right-sidebar-diff-hunk {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-diff-hunk + .right-sidebar-diff-hunk {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0;
}

.right-sidebar-changes-panel .right-sidebar-diff-hunk-header {
  padding: 0 0 4px;
  border-bottom: 0;
  background: transparent;
  color: var(--seg-text-3);
}

.right-sidebar-changes-panel .right-sidebar-diff-row {
  grid-template-columns: 30px 30px minmax(0, 1fr);
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-diff-row + .right-sidebar-diff-row {
  border-top: 0;
}

.right-sidebar-changes-panel .right-sidebar-diff-line-number {
  padding: 0 6px 0 0;
  border-right: 0;
  background: transparent;
  color: var(--seg-text-3);
}

.right-sidebar-changes-panel .right-sidebar-diff-content {
  padding: 0 8px 0 6px;
  color: var(--seg-text-1);
}

.right-sidebar-split-diff-row {
  display: grid;
  grid-template-columns: 30px minmax(250px, 1fr) 30px minmax(250px, 1fr);
  align-items: stretch;
  background: transparent;
}

.right-sidebar-split-diff-content {
  min-width: 0;
  padding: 0 8px 0 6px;
  color: var(--seg-text-1);
  white-space: pre;
}

.right-sidebar-split-diff-content.is-add {
  background: var(--mix-seg-success-9-transparent-91);
  color: var(--mix-seg-success-78-seg-text-1-22);
}

.right-sidebar-split-diff-content.is-remove {
  background: var(--mix-seg-danger-9-transparent-91);
  color: var(--mix-seg-danger-78-seg-text-1-22);
}

.right-sidebar-split-diff-content.is-empty {
  color: transparent;
}

.right-sidebar-changes-panel .right-sidebar-diff-row.is-add {
  background: var(--mix-seg-success-9-transparent-91);
}

.right-sidebar-changes-panel .right-sidebar-diff-row.is-add .right-sidebar-diff-content {
  color: var(--mix-seg-success-78-seg-text-1-22);
}

.right-sidebar-changes-panel .right-sidebar-diff-row.is-add .right-sidebar-diff-line-number {
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-diff-row.is-remove {
  background: var(--mix-seg-danger-9-transparent-91);
}

.right-sidebar-changes-panel .right-sidebar-diff-row.is-remove .right-sidebar-diff-content {
  color: var(--mix-seg-danger-78-seg-text-1-22);
}

.right-sidebar-changes-panel .right-sidebar-diff-row.is-remove .right-sidebar-diff-line-number {
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-diff-preview-footer {
  position: static;
  justify-content: flex-start;
  padding: 8px 0 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.right-sidebar-changes-panel .right-sidebar-diff-height-toggle {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--seg-text-2);
  font-size: 11px;
}

.right-sidebar-changes-panel .right-sidebar-diff-height-toggle:hover,
.right-sidebar-changes-panel .right-sidebar-diff-height-toggle:focus-visible {
  border: 0;
  background: transparent;
  color: var(--seg-text-1);
}

.right-sidebar-changes-panel .right-sidebar-empty {
  padding: 4px 0 0;
  border: 0;
  background: transparent;
}

.right-sidebar-changes-panel .right-sidebar-empty p,
.right-sidebar-changes-panel .right-sidebar-diff-empty p {
  color: var(--seg-text-3);
}

.workspace-files-panel {
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  overflow: hidden;
  background: var(--seg-panel);
}

.workspace-files-reader {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 0;
  background: var(--seg-panel);
}

.workspace-files-panel-header {
  min-width: 0;
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-files-panel-header strong {
  color: #17232f;
}

.workspace-files-reader-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-files-reader-title strong {
  word-break: break-word;
}

.workspace-files-code {
  min-height: 0;
  height: 100%;
  overflow: auto;
  border: 1px solid rgba(166, 186, 208, 0.2);
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  background: #ffffff;
}

.workspace-files-code-block + .workspace-files-code-block {
  border-top: 1px solid rgba(166, 186, 208, 0.12);
}

.workspace-files-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: max-content;
  background: #ffffff;
}

.workspace-files-line.is-hovered {
  background: #f7fbff;
}

.workspace-files-line.is-selected {
  background: #eef6ff;
}

.workspace-files-line.is-linked {
  box-shadow: inset 3px 0 0 #2f7fbd;
}

.workspace-files-line-gutter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-right: 1px solid rgba(166, 186, 208, 0.14);
  background: #f6f9fc;
  cursor: default;
  user-select: none;
}

.workspace-files-line.is-selected .workspace-files-line-gutter {
  background: #e8f2ff;
}

.workspace-files-line-number {
  color: #8ca0b2;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  text-align: right;
  user-select: none;
}

.workspace-files-line-comment-button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(95, 146, 194, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: #226ba1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.workspace-files-line-comment-button:hover,
.workspace-files-line-comment-button:focus-visible {
  background: #edf6ff;
  outline: none;
}

.workspace-files-line-comment-button svg {
  width: 12px;
  height: 12px;
}

.workspace-files-line-content {
  margin: 0;
  padding: 0 12px;
  color: #233241;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}

.workspace-files-line-content code {
  font-family: inherit;
}

.workspace-files-line.is-selected .workspace-files-line-content {
  background: #f7fbff;
}

.workspace-files-comment-composer,
.workspace-files-line-comments {
  margin-left: 84px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(166, 186, 208, 0.12);
  background: #fbfdff;
}

.workspace-files-comment-composer {
  padding: 10px 12px 12px;
}

.workspace-files-comment-editor {
  position: relative;
  display: grid;
  min-height: 130px;
  padding: 12px 12px 42px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.workspace-files-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-files-comment-header strong {
  color: var(--seg-text-1);
  font-size: 14px;
}

.workspace-files-comment-header span {
  min-width: 0;
  color: var(--seg-text-2);
  font-size: 12px;
  text-align: right;
}

.workspace-files-comment-editor textarea {
  width: 100%;
  min-height: 62px;
  padding: 10px 0 32px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--seg-text-1);
  font: inherit;
  line-height: 1.5;
}

.workspace-files-comment-editor textarea:focus {
  outline: none;
}

.workspace-files-comment-editor textarea::placeholder {
  color: var(--seg-text-2);
}

.workspace-files-comment-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-files-comment-cancel,
.workspace-files-comment-confirm {
  min-height: 28px;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.workspace-files-comment-cancel {
  padding: 0 4px;
  background: transparent;
  color: var(--seg-text-2);
}

.workspace-files-comment-cancel:hover,
.workspace-files-comment-cancel:focus-visible {
  color: var(--seg-text-1);
}

.workspace-files-comment-confirm {
  padding: 0 12px;
  border-radius: 999px;
  background: var(--seg-accent);
  color: var(--text-on-dark);
  font-weight: 600;
}

.workspace-files-comment-confirm:hover,
.workspace-files-comment-confirm:focus-visible {
  background: var(--seg-accent-strong);
}

.workspace-files-comment-confirm:disabled {
  cursor: default;
  background: var(--seg-border);
  color: var(--seg-text-2);
}

.workspace-files-line-comments {
  display: grid;
  gap: 10px;
}

.workspace-files-line-comment {
  padding: 10px 12px;
  border: 1px solid rgba(166, 186, 208, 0.24);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(46, 81, 118, 0.06);
}

.workspace-files-line-comment p {
  margin: 8px 0 0;
  color: #22303e;
}

.workspace-files-line-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #60778d;
  font-size: 12px;
}

.workspace-files-reader-empty {
  align-self: start;
}

.panel-toolbar-copy strong,
.workspace-group-header strong,
.assistant-header h3,
.right-sidebar-panel-copy h3,
.session-canvas-top-menu-copy strong {
  color: var(--ui-text-1);
}

.sidebar-toggle-button.is-top-menu:hover,
.sidebar-toggle-button.is-top-menu:focus-visible,
.session-tab:hover,
.session-tab:focus-visible,
.session-tab.is-active,
.canvas-top-menu-button:hover,
.canvas-top-menu-button:focus-visible,
.canvas-top-menu-button.is-active,
.right-sidebar-filter-chip:hover,
.right-sidebar-filter-chip:focus-visible,
.right-sidebar-filter-chip.is-active {
  border-color: rgba(29, 110, 255, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ui-text-1);
  box-shadow: 0 8px 18px rgba(24, 34, 48, 0.06);
}

.right-sidebar-runtime-stack {
  display: grid;
  gap: 12px;
}

.right-sidebar-runtime-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel-muted);
}

.right-sidebar-runtime-card-header,
.right-sidebar-runtime-list-row,
.right-sidebar-runtime-event-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.right-sidebar-runtime-card-header h4 {
  margin: 2px 0 0;
  color: var(--seg-text-1);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.right-sidebar-runtime-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.right-sidebar-runtime-field {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.right-sidebar-runtime-field span,
.right-sidebar-runtime-list-copy span,
.right-sidebar-runtime-note,
.right-sidebar-runtime-event p {
  color: var(--seg-text-2);
  font-size: 12px;
  line-height: 1.55;
}

.right-sidebar-runtime-field strong,
.right-sidebar-runtime-list-copy strong,
.right-sidebar-runtime-event-meta span {
  color: var(--seg-text-1);
  font-size: 12px;
  line-height: 1.45;
}

.right-sidebar-runtime-list,
.right-sidebar-runtime-event-list {
  display: grid;
  gap: 8px;
}

.right-sidebar-runtime-task-block {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.right-sidebar-runtime-subheading {
  color: var(--seg-text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.right-sidebar-runtime-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.right-sidebar-runtime-list-copy strong,
.right-sidebar-runtime-list-copy span,
.right-sidebar-runtime-event p,
.right-sidebar-runtime-event-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.right-sidebar-runtime-pill {
  text-transform: capitalize;
}

.right-sidebar-runtime-pill.is-running,
.right-sidebar-runtime-pill.is-pending,
.right-sidebar-runtime-pill.is-loading,
.right-sidebar-runtime-pill.is-refreshing {
  color: var(--seg-accent-strong);
}

.right-sidebar-runtime-pill.is-completed,
.right-sidebar-runtime-pill.is-ready {
  color: var(--seg-success);
}

.right-sidebar-runtime-pill.is-blocked,
.right-sidebar-runtime-pill.is-waiting-approval,
.right-sidebar-runtime-pill.is-denied {
  color: var(--seg-warning);
}

.right-sidebar-runtime-pill.is-failed,
.right-sidebar-runtime-pill.is-error {
  color: var(--seg-danger);
}

.right-sidebar-runtime-event {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--seg-border);
  border-left: 3px solid #c5ccd6;
  background: var(--seg-panel);
}

.right-sidebar-runtime-event.is-success {
  border-left-color: var(--seg-success);
}

.right-sidebar-runtime-event.is-warning {
  border-left-color: var(--seg-warning);
}

.right-sidebar-runtime-event.is-error {
  border-left-color: var(--seg-danger);
  background: #fff5f2;
}

.right-sidebar-runtime-event-meta time {
  flex: 0 0 auto;
  color: var(--seg-text-3);
  font-size: 11px;
  line-height: 1.4;
}

/* Sage / Teal & Slate theme overrides */

.preview-empty-state,
.preview-comments-empty,
.preview-comment-list-item,
.workspace-files-line-comment {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: none;
}

.right-sidebar-status-badge.is-loading,
.right-sidebar-status-badge.is-refreshing {
  color: var(--seg-info);
}

.right-sidebar-status-badge.is-ready,
.right-sidebar-status-badge.is-empty {
  color: var(--seg-success);
}

.right-sidebar-status-badge.is-error,
.right-sidebar-status-error {
  color: var(--seg-danger);
}

.right-sidebar-status-copy,
.right-sidebar-status-summary,
.right-sidebar-list-row span,
.right-sidebar-metric-label,
.preview-helper-copy,
.preview-page-meta,
.preview-comments-empty p,
.preview-empty-state p,
.preview-comment-list-item p,
.preview-comment-list-copy span {
  color: var(--seg-text-2);
}

.right-sidebar-filter-chip,
.preview-mode-button,
.right-sidebar-diff-height-toggle,
.workspace-files-line-comment-button {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel-muted);
  color: var(--seg-text-2);
  box-shadow: none;
}

.right-sidebar-filter-chip.is-active,
.right-sidebar-filter-chip:hover,
.right-sidebar-filter-chip:focus-visible,
.preview-mode-button.is-active,
.preview-mode-button:hover,
.preview-mode-button:focus-visible,
.right-sidebar-diff-height-toggle:hover,
.right-sidebar-diff-height-toggle:focus-visible,
.workspace-files-line-comment-button:hover,
.workspace-files-line-comment-button:focus-visible {
  border-color: var(--mix-seg-accent-36-seg-border-64);
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
  color: var(--seg-accent-strong);
  box-shadow: none;
}

.preview-toolbar-input,
.preview-comment-label textarea,
.right-sidebar-search-field input {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel);
  color: var(--seg-text-1);
}

.preview-toolbar {
  border-color: var(--seg-border);
  background: var(--seg-panel-muted);
}

.preview-toolbar-input {
  border-color: var(--mix-seg-border-84-transparent-16);
}

.preview-toolbar-icon-button,
.preview-comment-mode-button {
  color: var(--seg-text-2);
}

.preview-toolbar-icon-button:hover,
.preview-toolbar-icon-button:focus-visible,
.preview-comment-mode-button:hover,
.preview-comment-mode-button:focus-visible,
.preview-comment-mode-button.is-active {
  border-color: var(--mix-seg-accent-36-seg-border-64);
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
  color: var(--seg-accent-strong);
}

.preview-toolbar-icon-button:disabled,
.preview-comment-mode-button:disabled {
  background: transparent;
  color: var(--seg-text-2);
}

.preview-canvas,
.preview-frame {
  border-color: var(--seg-border);
  background: var(--surface-code-strong);
}

.preview-panel-section .preview-empty-state {
  border: 0;
  padding: 12px 14px;
}

.preview-loading-scrim {
  background: rgba(15, 23, 42, 0.52);
  color: var(--text-on-dark);
}

.preview-comment-marker {
  background: var(--seg-accent);
  color: var(--text-on-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

.preview-hover-highlight {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 3px rgba(10, 132, 255, 0.2);
}

.preview-hover-tooltip {
  border-color: var(--seg-border);
  background: var(--surface-elevated);
  color: var(--seg-text-1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.preview-hover-tooltip-row span {
  color: var(--seg-text-2);
}

.preview-floating-comment-pin {
  border-color: var(--surface-elevated);
  background: var(--seg-accent);
  color: var(--text-on-dark);
}

.preview-floating-comment-bubble {
  border-color: var(--seg-border);
  background: var(--surface-elevated);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.preview-comment-card,
.preview-comment-composer {
  border: 1px solid var(--seg-border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.preview-comment-selection strong,
.preview-comment-selector {
  color: var(--seg-accent-strong);
}

.right-sidebar-diff-preview {
  border: 1px solid var(--mix-surface-code-34-seg-border-66);
  background: var(--surface-code);
  color: var(--text-on-dark);
}

.workspace-files-code {
  border: 1px solid var(--seg-border);
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  background: var(--seg-panel);
  color: var(--seg-text-1);
}

.right-sidebar-diff-hunk {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--mix-surface-code-88-surface-code-strong-12);
}

.right-sidebar-diff-hunk-header {
  background: var(--surface-code-strong);
  color: var(--text-secondary-dark);
}

.right-sidebar-diff-row {
  background: transparent;
}

.workspace-files-line {
  background: var(--seg-panel);
}

.right-sidebar-diff-row + .right-sidebar-diff-row {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.workspace-files-code-block + .workspace-files-code-block {
  border-top: 1px solid var(--seg-border);
}

.right-sidebar-diff-line-number {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.24);
  border-color: rgba(148, 163, 184, 0.14);
}

.workspace-files-line-gutter {
  background: var(--seg-panel-muted);
  border-color: var(--seg-border);
}

.workspace-files-line-number {
  background: transparent;
  color: var(--seg-text-3);
}

.right-sidebar-diff-content {
  color: var(--text-on-dark);
}

.workspace-files-line-content,
.workspace-files-line-content code {
  color: var(--seg-text-1);
}

.right-sidebar-diff-row.is-add {
  background: var(--mix-seg-success-10-transparent-90);
}

.right-sidebar-diff-row.is-add .right-sidebar-diff-content {
  color: var(--mix-seg-success-72-text-on-dark-28);
}

.right-sidebar-diff-row.is-remove {
  background: var(--mix-seg-danger-10-transparent-90);
}

.right-sidebar-diff-row.is-remove .right-sidebar-diff-content {
  color: var(--mix-seg-danger-72-text-on-dark-28);
}

.workspace-files-line.is-hovered,
.workspace-files-line.is-selected,
.workspace-files-line.is-selected .workspace-files-line-content {
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
}

.workspace-files-line.is-linked {
  box-shadow: inset 3px 0 0 var(--seg-accent-strong);
}

.workspace-files-comment-composer,
.workspace-files-line-comments {
  background: var(--seg-panel-muted);
  border-top: 1px solid var(--seg-border);
}

.workspace-files-line-comment {
  background: var(--mix-surface-elevated-88-seg-panel-12);
}

.workspace-files-panel {
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-panel);
}

.workspace-files-pathbar {
  min-width: 0;
  min-height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--seg-border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--seg-panel);
}

.workspace-files-pathbar-path {
  min-width: 0;
  color: var(--seg-text-1);
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-files-pathbar-scope {
  min-width: 0;
  color: var(--seg-text-3);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-files-split {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 44%, 520px);
  background: var(--seg-panel);
}

.workspace-files-reader {
  min-width: 0;
  border-right: 1px solid var(--seg-border);
}

.workspace-files-panel-header {
  min-height: 40px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--seg-border);
}

.workspace-files-reader-title {
  gap: 2px;
}

.workspace-files-reader-title strong {
  color: var(--seg-text-1);
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.workspace-files-code {
  border: 0;
}

.workspace-files-open-empty {
  grid-row: 1 / -1;
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  color: var(--seg-text-2);
  text-align: center;
}

.workspace-files-open-empty svg {
  width: 24px;
  height: 24px;
  color: var(--seg-text-3);
}

.workspace-files-open-empty strong {
  color: var(--seg-text-1);
  font-size: 18px;
  line-height: 1.25;
}

.workspace-files-open-empty p {
  max-width: 260px;
  margin: 0;
  color: var(--seg-text-2);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-files-tree {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-panel);
}

.workspace-files-tree-search {
  min-width: 0;
  height: 28px;
  margin: 8px 8px 4px;
  padding: 0 8px;
  border: 1px solid var(--seg-border);
  border-radius: 8px;
  background: var(--seg-panel-muted);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--seg-text-3);
}

.workspace-files-tree-search svg {
  width: 14px;
  height: 14px;
}

.workspace-files-tree-search input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--seg-text-1);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.workspace-files-tree-search input::placeholder {
  color: var(--seg-text-3);
}

.workspace-files-tree-scroll {
  min-height: 0;
  overflow: auto;
  padding: 6px 0 10px;
}

.workspace-files-tree-list {
  min-width: max-content;
}

.workspace-files-tree-row {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding-top: 0;
  padding-right: 8px;
  padding-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--seg-text-1);
  display: grid;
  grid-template-columns: 14px 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}

.workspace-files-tree-row:hover,
.workspace-files-tree-row:focus-visible {
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
  color: var(--seg-text-1);
  outline: none;
}

.workspace-files-tree-row.is-active {
  background: var(--mix-seg-accent-soft-76-seg-panel-24);
  color: var(--seg-accent-strong);
}

.workspace-files-tree-chevron,
.workspace-files-tree-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--seg-text-3);
}

.workspace-files-tree-chevron svg,
.workspace-files-tree-icon svg {
  width: 14px;
  height: 14px;
}

.workspace-files-tree-row.is-directory .workspace-files-tree-icon {
  color: var(--seg-text-2);
}

.workspace-files-tree-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-files-tree-file-badge {
  min-width: 16px;
  max-width: 20px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--seg-text-2);
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.workspace-files-tree-file-badge[data-extension="ts"],
.workspace-files-tree-file-badge[data-extension="tsx"] {
  color: #4ca3ff;
}

.workspace-files-tree-file-badge[data-extension="js"],
.workspace-files-tree-file-badge[data-extension="jsx"],
.workspace-files-tree-file-badge[data-extension="mjs"],
.workspace-files-tree-file-badge[data-extension="cjs"] {
  color: #e8c34a;
}

.workspace-files-tree-file-badge[data-extension="md"] {
  color: #66d17f;
}

.workspace-files-tree-file-badge[data-extension="json"] {
  color: #d98cff;
}

.workspace-files-tree-message,
.workspace-files-tree-empty {
  padding: 6px 12px;
  color: var(--seg-text-3);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-files-tree-message {
  padding-left: 40px;
}

.right-sidebar-runtime-event.is-error {
  background: var(--mix-seg-danger-8-seg-panel-92);
}
