:root {
  --font-ui: "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --bg-0: #1e1e1e;
  --bg-1: #252526;
  --bg-2: #2d2d30;
  --bg-3: #323233;
  --bg-hover: #2a2d2e;
  --bg-active: #37373d;

  --line-0: #2a2a2a;
  --line-1: #3c3c3c;
  --line-2: #464647;

  --text-0: #cccccc;
  --text-1: #9d9d9d;
  --text-2: #7f7f7f;

  --accent: #0e639c;
  --accent-strong: #1177bb;
  --danger: #a23b3b;
  --ok: #2f855a;

  --titlebar-h: 34px;
  --statusbar-h: 24px;
  --activity-w: 48px;
  --left-w: 290px;
  --right-w: 392px;
  --splitter-w: 4px;
  --left-split-w: 4px;
  --right-split-w: 4px;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #4e586b #1f232c;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #1f232c;
}

*::-webkit-scrollbar-thumb {
  background: #4e586b;
  border-radius: 999px;
  border: 2px solid #1f232c;
}

*::-webkit-scrollbar-thumb:hover {
  background: #64718a;
}

*::-webkit-scrollbar-corner {
  background: #1f232c;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-ui);
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.ide-root {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: var(--titlebar-h) minmax(0, 1fr) var(--statusbar-h);
  background: var(--bg-0);
}

.titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-1);
  padding: 0 10px;
  user-select: none;
}

.titlebar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #f5f7fb;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.titlebar-center {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.window-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-1);
  font-size: 12px;
}

.titlebar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Model picker styles kept for future multi-model mode.
.model-picker {
  position: relative;
}

.model-picker-btn {
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #2f2f31;
  color: var(--text-0);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  cursor: pointer;
  font-size: 11px;
  min-width: 168px;
}

.model-picker-btn:hover {
  border-color: #4a4a4d;
  background: #343438;
}

.model-picker.open .model-picker-btn {
  border-color: #5a7e9c;
  box-shadow: inset 0 0 0 1px #2f658d;
}

#modelPickerLabel {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-picker-btn .codicon-symbol-misc {
  color: #a2b8cb;
  font-size: 12px;
}

.model-picker-btn .codicon-chevron-down {
  color: #98a1ab;
  font-size: 11px;
}

.model-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  border: 1px solid #4a4c54;
  border-radius: 4px;
  background: #25272c;
  padding: 4px;
  display: none;
  z-index: 30;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.model-picker.open .model-picker-menu {
  display: grid;
  gap: 2px;
}

.model-picker-item {
  height: 26px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #d5d9df;
  font-size: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  cursor: pointer;
  text-align: left;
}

.model-picker-item:hover {
  background: #31353d;
}

.model-picker-item.active {
  background: #0e4f78;
  color: #f0f7ff;
}

.model-picker-item .codicon {
  font-size: 11px;
}
*/

.title-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #2f2f31;
  color: #e0e0e0;
  font-size: 11px;
  font-family: var(--font-mono);
}

.title-pill.muted {
  color: var(--text-1);
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn {
  height: 24px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-0);
  border-radius: 3px;
  padding: 0 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.toolbar-btn:hover {
  background: var(--bg-hover);
  border-color: var(--line-1);
}

.toolbar-btn.danger {
  color: #f0b4b4;
}

.toolbar-btn.danger:hover {
  background: #412424;
  border-color: #5a2c2c;
}

.toolbar-btn.danger-soft {
  color: #d7c0c0;
}

.toolbar-btn.danger-soft:hover {
  background: #372727;
  border-color: #4a3333;
}

.workbench {
  display: grid;
  grid-template-columns:
    var(--activity-w)
    var(--left-w)
    var(--left-split-w)
    minmax(0, 1fr)
    var(--right-split-w)
    var(--right-w);
  min-height: 0;
  min-width: 0;
}

.ide-root.left-collapsed {
  --left-w: 0px;
  --splitter-left-visible: 0;
}

.ide-root.right-collapsed {
  --right-w: 0px;
  --splitter-right-visible: 0;
}

.activity-bar {
  background: var(--bg-1);
  border-right: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 3px;
}

.activity-btn {
  width: 42px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #a8a8a8;
  cursor: pointer;
  border-left: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.activity-btn:hover {
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.03);
}

.activity-btn.active {
  color: #ffffff;
  border-left-color: #ffffff;
}

.activity-bottom {
  margin-top: auto;
}

.left-sidebar,
.right-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
}

.left-pane-view {
  min-height: 0;
  flex: 1;
  display: none;
  flex-direction: column;
}

.left-pane-view.active {
  display: flex;
}

.ide-root.left-collapsed .left-sidebar {
  display: none;
}

.ide-root.right-collapsed .right-sidebar {
  display: none;
}

.pane-header {
  height: 34px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
}

.pane-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-1);
  font-weight: 600;
}

.pane-actions {
  display: inline-flex;
  gap: 3px;
}

.pane-icon-btn {
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  background: transparent;
  color: #bdbdbd;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pane-icon-btn.hidden {
  display: none;
}

.pane-icon-btn:hover {
  background: var(--bg-hover);
  border-color: var(--line-1);
  color: #f0f0f0;
}

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

.search-panel {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.search-input-wrap {
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #1f2022;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  padding: 0 6px;
  color: var(--text-1);
}

.search-input-wrap:focus-within {
  border-color: var(--accent-strong);
  outline: 1px solid var(--accent-strong);
}

.search-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-0);
  font-size: 12px;
  outline: none;
}

.search-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-1);
  font-size: 11px;
}

.search-meta {
  color: var(--text-2);
  font-size: 11px;
}

.search-results {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
}

.search-empty {
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background: #25262a;
  padding: 7px 8px;
  color: var(--text-2);
  font-size: 12px;
}

.search-group {
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #242529;
  overflow: hidden;
}

.search-file {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #38393f;
  background: #2a2c31;
  color: var(--text-0);
  font-size: 12px;
  text-align: left;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.search-file:hover {
  background: #31343a;
}

.search-file-count {
  margin-left: auto;
  color: var(--text-2);
  font-size: 11px;
}

.search-hit {
  width: 100%;
  border: 0;
  border-top: 1px solid #32343a;
  background: #23252a;
  color: var(--text-1);
  font-size: 11px;
  text-align: left;
  padding: 4px 7px;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.search-hit:hover {
  background: #2c3036;
}

.search-hit-line {
  color: #8ab4d6;
  font-family: var(--font-mono);
}

.search-hit mark {
  background: #705b1f;
  color: #f8e9b5;
  padding: 0 1px;
  border-radius: 2px;
}

.tree-item {
  width: 100%;
  min-height: 24px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-0);
  font-size: 12px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  cursor: pointer;
}

.tree-item:hover {
  background: var(--bg-hover);
}

.tree-item.active {
  background: var(--bg-active);
}

.tree-item.selected {
  background: #2a2d33;
}

.tree-item.drag-source {
  opacity: 0.55;
}

.tree-item.drop-target {
  outline: 1px solid #3ea6ff;
  outline-offset: -1px;
  background: #1f2a36;
}

.tree-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-meta {
  color: var(--text-2);
  font-size: 11px;
  padding-left: 4px;
}

.splitter {
  width: var(--splitter-w);
  cursor: col-resize;
  background: transparent;
  transition: background 0.12s ease;
}

.splitter:hover,
.splitter.dragging {
  background: rgba(255, 255, 255, 0.12);
}

.ide-root.left-collapsed .splitter-left,
.ide-root.right-collapsed .splitter-right {
  display: none;
}

.editor-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) auto;
  background: var(--bg-0);
}

.editor-tabsbar {
  border-bottom: 1px solid var(--line-1);
  background: #252526;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.editor-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
}

.editor-tab {
  min-width: 140px;
  max-width: 240px;
  border-right: 1px solid #2f2f2f;
  background: transparent;
  color: var(--text-1);
  padding: 0 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.editor-tab:hover {
  background: #2a2d2e;
  color: #e8e8e8;
}

.editor-tab.active {
  background: #1e1e1e;
  color: #ffffff;
}

.editor-tab .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-tab .close {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-tab .close:hover {
  background: #3c3c3d;
}

.editor-tabs-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-left: 1px solid #2f2f2f;
}

.run-code-btn {
  color: #8fdcb0;
}

.run-code-btn.running {
  color: #f1cc7f;
}

.editor-main {
  min-height: 0;
  min-width: 0;
  position: relative;
}

.editor-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-1);
  text-align: center;
  pointer-events: none;
}

.editor-placeholder.visible {
  display: flex;
}

.editor-placeholder i {
  font-size: 28px;
  color: #4b4b4b;
}

.editor-placeholder h3 {
  margin: 0;
  font-size: 14px;
  color: #d5d5d5;
  font-weight: 500;
}

.editor-placeholder p {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
}

.editor-container {
  width: 100%;
  height: 100%;
}

.run-panel {
  border-top: 1px solid var(--line-1);
  background: #1b1c1f;
  display: grid;
  grid-template-rows: 30px auto minmax(0, 1fr) auto;
  min-height: 190px;
  max-height: 440px;
}

.run-panel.collapsed {
  display: none;
}

.run-panel-header {
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.run-panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-1);
}

.run-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.run-panel-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  max-height: 230px;
}

.run-deps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-1);
}

.run-deps-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.run-deps-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.run-package-input {
  width: min(460px, 100%);
  height: 24px;
  border: 1px solid #414650;
  background: #15171a;
  color: #d7dde7;
  outline: none;
  padding: 0 8px;
  font: 11px var(--font-ui);
}

.run-package-input:focus {
  border-color: #5d89bf;
}

.run-package-input:disabled {
  opacity: 0.55;
}

.run-output-block {
  min-height: 0;
  border-top: 1px solid #2f2f2f;
  border-right: 1px solid #2f2f2f;
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr);
}

.run-output-block:nth-child(2n) {
  border-right: 0;
}

.run-output-block h4 {
  margin: 0;
  border-bottom: 1px solid #2f2f2f;
  font-size: 11px;
  font-weight: 500;
  color: #a7aab2;
  padding: 4px 8px;
}

.run-output-block pre {
  margin: 0;
  padding: 8px;
  overflow: auto;
  font: 11px/1.45 var(--font-mono);
  color: #cfd4dd;
  white-space: pre-wrap;
  word-break: break-word;
}

.run-history {
  border-top: 1px solid var(--line-1);
  min-height: 0;
  display: grid;
  grid-template-rows: 24px auto minmax(0, 1fr);
}

.run-history-header {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #2f2f2f;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #a7aab2;
}

.run-history-empty {
  padding: 6px 8px;
  font-size: 11px;
  color: #858d99;
  border-bottom: 1px solid #2f2f2f;
}

.run-history-list {
  min-height: 0;
  max-height: 124px;
  overflow: auto;
}

.run-history-item {
  border-bottom: 1px solid #2f2f2f;
  padding: 6px 8px;
  font-size: 11px;
  color: #cfd4dd;
  display: grid;
  gap: 2px;
}

.run-history-item:last-child {
  border-bottom: 0;
}

.run-history-item .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8f98a6;
}

.run-history-item .file {
  color: #dce2ec;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-history-status {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 9px;
  border: 1px solid #4f5560;
  color: #d0d7e1;
  font-size: 10px;
  line-height: 16px;
  text-transform: lowercase;
}

.run-history-status.success {
  border-color: #2f6f4c;
  color: #a9e6c0;
}

.run-history-status.runtime_error,
.run-history-status.compile_error,
.run-history-status.validation_error {
  border-color: #6f3b3b;
  color: #f2bbbb;
}

.run-history-status.timeout,
.run-history-status.runtime_missing,
.run-history-status.output_limit {
  border-color: #6b5c32;
  color: #efd89a;
}

.right-sidebar {
  border-left: 1px solid var(--line-1);
  background: #202123;
}

.ai-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-1);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #2b2c2f;
  color: var(--text-1);
  font-size: 11px;
  font-family: var(--font-mono);
}

.meta-chip[data-status="running"] {
  border-color: #7a6430;
  background: #3d3421;
  color: #efcf8f;
}

.meta-chip[data-status="success"] {
  border-color: #2f6f4c;
  background: #244b35;
  color: #a9e6c0;
}

.meta-chip[data-status="compile_error"],
.meta-chip[data-status="runtime_error"],
.meta-chip[data-status="validation_error"] {
  border-color: #6f3b3b;
  background: #4a2828;
  color: #f2bbbb;
}

.meta-chip[data-status="timeout"],
.meta-chip[data-status="runtime_missing"] {
  border-color: #6b5c32;
  background: #473d23;
  color: #efd89a;
}

.chat-messages {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-message {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #d5dbe6;
}

.chat-message-content {
  color: inherit;
}

.chat-message-content > :first-child {
  margin-top: 0;
}

.chat-message-content > :last-child {
  margin-bottom: 0;
}

.chat-message-content p {
  margin: 0 0 8px;
}

.chat-message-content h1,
.chat-message-content h2,
.chat-message-content h3,
.chat-message-content h4,
.chat-message-content h5,
.chat-message-content h6 {
  margin: 10px 0 6px;
  font-size: 12px;
  line-height: 1.35;
}

.chat-message-content ul,
.chat-message-content ol {
  margin: 0 0 8px 16px;
  padding: 0;
}

.chat-message-content li + li {
  margin-top: 2px;
}

.chat-message-content blockquote {
  margin: 0 0 8px;
  padding: 0 0 0 8px;
  border-left: 2px solid #4f5560;
  color: #a9b1bd;
}

.chat-message-content a {
  color: #89c8ff;
  text-decoration: none;
}

.chat-message-content a:hover {
  text-decoration: underline;
}

.chat-message-content code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #1a1d22;
  border: 1px solid #3d4048;
  border-radius: 3px;
  padding: 0 4px;
}

.chat-message-content pre {
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #3a3f47;
  background: #15181d;
  overflow: auto;
}

.chat-message-content pre code {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  line-height: 1.45;
}

.chat-message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: 11px;
}

.chat-message-content th,
.chat-message-content td {
  border: 1px solid #41444d;
  padding: 4px 6px;
  text-align: left;
}

.chat-message-content th {
  background: #2f333b;
}

.chat-message-content hr {
  border: 0;
  border-top: 1px solid #41444d;
  margin: 8px 0;
}

.chat-message-content img {
  max-width: 100%;
  height: auto;
}

.chat-message.user {
  background: #2a3038;
  border: 1px solid #3d4654;
  border-radius: 6px;
  padding: 7px 8px;
}

.chat-message.assistant {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #d8dfea;
}

.chat-message.system {
  background: #3a3020;
  border: 1px solid #5d4c30;
  border-radius: 6px;
  padding: 7px 8px;
  border-color: #5d4c30;
  color: #e0cfa2;
}

.chat-composer {
  border-top: 0;
  padding: 0;
  display: block;
  position: relative;
  border-bottom: 0;
  border-radius: 8px;
  margin: 6px 8px 8px;
  background: #2b313b;
  border: 1px solid #3e4653;
  overflow: hidden;
}

.chat-composer:focus-within {
  border-color: #3e4653;
  box-shadow: none;
}

#chatInput {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  resize: none;
  max-height: 128px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d2d8e4;
  padding: 8px 36px 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  overflow-y: hidden;
}

#chatInput:focus {
  outline: none;
}

#chatInput::placeholder {
  color: #8993a7;
}

.chat-composer-footer {
  border-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 0;
  pointer-events: none;
}

.send-btn {
  width: 20px;
  height: 20px;
  border: 1px solid #4d586e;
  background: #2f3745;
  color: #8691a5;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  pointer-events: auto;
}

.send-btn:hover {
  border-color: #7183a4;
  color: #c4cee1;
  background: #384356;
}

.send-btn:disabled {
  color: #747f92;
  background: #2d3543;
  border-color: #475267;
  cursor: default;
  box-shadow: none;
}

.send-btn.ready {
  border-color: #8e9fbc;
  color: #f4f8ff;
  background: linear-gradient(180deg, #6f7f9b 0%, #60718e 100%);
  box-shadow: none;
}

.send-btn.ready:hover {
  background: linear-gradient(180deg, #7989a5 0%, #6a7d9c 100%);
  border-color: #9dafce;
}

.review-section {
  border-top: 1px solid var(--line-1);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.review-empty-state {
  display: none;
  min-height: 30px;
  align-items: center;
  color: var(--text-2);
  font-size: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  padding: 0 8px;
  background: #25262a;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.changes-count {
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-mono);
}

.changes-list {
  max-height: 132px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.change-item {
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 5px 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #26272a;
}

.review-actions {
  display: inline-flex;
  gap: 6px;
}

.review-section.empty .changes-list,
.review-section.empty .review-actions {
  display: none;
}

.review-section.empty .review-empty-state {
  display: flex;
}

.action-btn {
  height: 28px;
  border: 1px solid var(--line-2);
  background: #2f3135;
  color: #e8e8e8;
  border-radius: 3px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.action-btn:hover {
  background: #383b40;
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: default;
  filter: grayscale(0.2);
}

.action-btn:disabled:hover {
  background: #2f3135;
}

.action-btn.approve {
  border-color: #2f6e4b;
  background: #205639;
}

.action-btn.approve:hover {
  background: #2a6b48;
}

.action-btn.reject {
  border-color: #684141;
  background: #4a2c2c;
}

.action-btn.reject:hover {
  background: #603535;
}

.runtime-panel {
  border-top: 1px solid var(--line-1);
}

.runtime-toggle {
  width: 100%;
  height: 28px;
  border: 0;
  border-bottom: 1px solid var(--line-1);
  background: transparent;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.runtime-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-0);
}

.runtime-panel pre {
  margin: 0;
  height: 120px;
  padding: 8px;
  overflow: auto;
  background: #151618;
  color: #98acba;
  border: 0;
  font: 11px/1.45 var(--font-mono);
}

.runtime-panel.collapsed pre {
  display: none;
}

.runtime-panel.collapsed .runtime-toggle .codicon {
  transform: rotate(-90deg);
}

.statusbar {
  border-top: 1px solid #12344d;
  background: #007acc;
  color: #f0f8ff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-family: var(--font-mono);
}

.status-left,
.status-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.statusbar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

#confirmModal {
  z-index: 80;
}

.hidden {
  display: none;
}

.modal-card {
  width: min(460px, 100%);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #25262a;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.modal-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.modal-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-1);
}

.modal-card label {
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.modal-card input {
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #1d1e21;
  color: var(--text-0);
  padding: 0 8px;
}

.modal-card input:focus {
  outline: 1px solid var(--accent-strong);
  border-color: var(--accent-strong);
}

.modal-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.modal-inline-muted {
  font-size: 12px;
  color: var(--text-1);
}

.danger-text {
  color: #e78a8a;
}

.modal-inline-muted.hidden {
  display: none;
}

.modal-btn {
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #34363a;
  color: var(--text-0);
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.modal-btn:hover {
  background: #3f4247;
}

.modal-btn.primary {
  border-color: #1f6d9b;
  background: var(--accent);
}

.modal-btn.primary:hover {
  background: var(--accent-strong);
}

.modal-btn.danger {
  border-color: #7b3c3c;
  background: #5a2f2f;
}

.modal-btn.danger:hover {
  background: #6d3838;
}

.saved-list {
  max-height: 150px;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 5px;
  display: grid;
  gap: 4px;
}

.saved-item {
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #2b2c30;
  color: #dedede;
  font-size: 12px;
  text-align: left;
  padding: 5px 7px;
  cursor: pointer;
  width: 100%;
  display: grid;
  gap: 2px;
}

.saved-item small {
  color: #a9a9a9;
  font-size: 11px;
}

.project-row {
  position: relative;
}

.project-open-btn {
  width: 100%;
  padding-right: 28px;
}

.project-delete-btn {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: rgba(241, 181, 181, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  opacity: 0.8;
}

.project-delete-btn:focus-visible {
  outline: 1px solid rgba(205, 126, 126, 0.55);
  outline-offset: 2px;
}

.project-delete-btn .codicon {
  font-size: 11px;
}

.project-delete-btn:hover {
  background: rgba(154, 52, 52, 0.08);
  color: rgba(255, 214, 214, 0.82);
  opacity: 1;
}

.project-delete-btn:disabled,
.project-delete-btn.disabled {
  opacity: 0.3;
  color: rgba(172, 141, 141, 0.42);
  cursor: default;
  pointer-events: none;
}

.saved-item:hover {
  border-color: #517196;
  background: #2f3339;
}

@media (max-width: 1200px) {
  .titlebar-right .title-pill {
    display: none;
  }

  .workbench {
    grid-template-columns: var(--activity-w) minmax(180px, 34vw) 3px minmax(0, 1fr) 3px minmax(280px, 36vw);
  }
}

@media (max-width: 980px) {
  .ide-root {
    --right-w: 320px;
  }

  .toolbar-btn span {
    display: none;
  }

  .window-title {
    display: none;
  }

  .run-panel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(80px, auto));
  }

  .run-deps-row {
    flex-direction: column;
    align-items: stretch;
  }

  .run-deps-controls {
    justify-content: stretch;
  }

  .run-package-input {
    width: 100%;
  }

  .run-output-block {
    border-right: 0;
  }
}
