.frost-panel {
  --frost-experience-blue: #69b9ff;
}
.frost-experience-selector {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 10px 18px;
  background: #101722;
  border-bottom: 1px solid #26384d;
}
.frost-experience-selector button {
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b3c1d2;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.frost-experience-selector button[aria-pressed="true"] {
  color: #e5f3ff;
  background: #18334f;
  border-color: #468dd0;
}
.frost-experience-selector button:focus-visible,
.frost-code-workspace button:focus-visible {
  outline: 2px solid var(--frost-experience-blue);
  outline-offset: 2px;
}
.frost-secondary-controls {
  gap: 6px;
  opacity: .9;
}
.frost-native-conversation-label {
  color: var(--frost-experience-blue);
}
.frost-panel[data-experience="code"] .frost-panel-mid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(330px, 1.15fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0 12px;
  overflow: hidden;
  min-height: 0;
}
.frost-panel[data-experience="code"] .frost-panel-mid > .frost-header-status,
.frost-panel[data-experience="code"] .frost-native-conversation-label {
  grid-column: 1;
}
.frost-panel[data-experience="code"] .frost-messages {
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  overflow-y: auto;
}
.frost-code-workspace {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  color: #d7e5f5;
  background: #0f1620;
  border: 1px solid #293a50;
  border-radius: 10px;
}
.frost-code-workspace[hidden],
.frost-code-workspace [hidden] {
  display: none !important;
}
.frost-code-heading,
.frost-code-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #27374b;
}
.frost-code-heading strong,
.frost-code-editor-heading span {
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.frost-code-workspace button {
  border: 1px solid #314862;
  background: #182537;
  color: #dbeaff;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
}
.frost-code-workspace button:disabled {
  opacity: .5;
  cursor: default;
}
.frost-code-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  flex-wrap: wrap;
}
.frost-code-tabs [aria-selected="true"] {
  border-color: #69b9ff;
  background: #1c3b5b;
}
.frost-code-status {
  padding: 0 10px;
  font-size: 12px;
  color: #a8bed5;
}
.frost-code-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.frost-code-files {
  display: grid;
  grid-template-columns: minmax(110px, 30%) minmax(0, 1fr);
}
.frost-code-file-list {
  overflow: auto;
  border-right: 1px solid #27374b;
}
.frost-code-file-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-wrap: anywhere;
}
.frost-code-file-list button:hover {
  background: #182f49;
}
.frost-code-editor-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.frost-code-editor,
.frost-code-editor-fallback {
  flex: 1;
  width: 100%;
  min-height: 240px;
  color: #dbeaff;
  background: #111822;
}
.frost-code-editor-fallback {
  box-sizing: border-box;
  resize: none;
  border: 0;
  padding: 10px;
  font: 13px/1.6 monospace;
}
.frost-code-view pre {
  padding: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.frost-code-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: white;
  border: 0;
}
.native-answer-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.frost-code-pane-selector {
  display: none;
}
@media (max-width: 850px) {
  body[data-frost-standalone="true"] .frost-cc-surface:has(.frost-panel[data-experience="code"]) {
    top: 0;
    height: 100dvh;
    grid-template-rows: calc(100dvh - 20px) max-content max-content;
  }
  .frost-cc-surface:has(.frost-panel[data-experience="code"]) > .frost-cc-main {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }
  .frost-panel[data-experience="code"] .frost-code-pane-selector {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    background: #101722;
  }
  .frost-code-pane-selector button {
    flex: 1;
    color: #c3d4e8;
    background: #152233;
    border: 1px solid #314862;
    border-radius: 6px;
    padding: 8px;
  }
  .frost-code-pane-selector [aria-pressed="true"] {
    border-color: #69b9ff;
    color: #e5f3ff;
  }
  .frost-panel[data-experience="code"] .frost-panel-mid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .frost-panel[data-experience="code"] .frost-messages {
    min-height: 0;
    flex: 1 1 0;
  }
  .frost-code-workspace {
    flex: 1 1 0;
    min-height: 0;
  }
  .frost-code-view {
    min-height: 0;
  }
  .frost-panel[data-experience="code"][data-code-pane="conversation"] .frost-code-workspace,
  .frost-panel[data-experience="code"][data-code-pane="workspace"] .frost-messages,
  .frost-panel[data-experience="code"][data-code-pane="workspace"] .frost-native-conversation-label,
  .frost-panel[data-experience="code"][data-code-pane="workspace"] .frost-header-status {
    display: none;
  }
  .frost-code-editor,
  .frost-code-editor-fallback,
  .frost-code-preview iframe {
    min-height: 180px;
  }
  .frost-experience-selector {
    padding: 8px;
  }
  .frost-experience-selector button {
    flex: 1;
    padding: 8px 12px;
  }
}
