/* Conversation studio. The extra .view scope overrides the shared glass theme. */
.app-shell .view[data-view-panel="playground"] {
  --workspace-border: #e8e8ea;
  --workspace-muted: #7b7c82;
  --workspace-blue: #367cf1;
  min-width: 0;
}
.app-shell .view[data-view-panel="playground"] .workspace-heading {
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.app-shell .view[data-view-panel="playground"] .workspace-heading h1 {
  margin: 0 0 6px;
  font-size: 27px;
  letter-spacing: -.025em;
}
.app-shell .view[data-view-panel="playground"] .workspace-heading p {
  color: var(--workspace-muted);
  font-size: 13px;
}
.app-shell .view[data-view-panel="playground"] .secondary-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #dce2e9;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
}
.app-shell .view[data-view-panel="playground"] .secondary-button:hover {
  border-color: #9bcbed;
  background: #f5faff;
  color: #075ea4;
}
.app-shell .view[data-view-panel="playground"] button svg { width: 16px; height: 16px; flex-shrink: 0; }
.app-shell .view[data-view-panel="playground"] button:disabled { cursor: default; }
.app-shell .view[data-view-panel="playground"] button:focus-visible,
.app-shell .view[data-view-panel="playground"] summary:focus-visible {
  outline: 3px solid #b9ddfa;
  outline-offset: 3px;
}
.app-shell .view[data-view-panel="playground"] .workspace-model-bar {
  display: grid;
  grid-template-columns: minmax(150px,.7fr) minmax(150px,.7fr) minmax(180px,1fr) auto;
  grid-template-areas: "supplier search model settings";
  align-items: center;
  gap: 10px;
}
.app-shell .view[data-view-panel="playground"] .workspace-provider-picker { grid-area: supplier; position: relative; }
.app-shell .view[data-view-panel="playground"] .workspace-provider-picker > svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #508bac; pointer-events: none; }
.app-shell .view[data-view-panel="playground"] .model-picker.workspace-provider-picker select { padding-left: 36px; }
.app-shell .view[data-view-panel="playground"] .workspace-model-search { grid-area: search; }
.app-shell .view[data-view-panel="playground"] .model-picker:not(.workspace-provider-picker) { grid-area: model; }
.app-shell .view[data-view-panel="playground"] #workspace-settings-toggle { grid-area: settings; }
.app-shell .view[data-view-panel="playground"] .workspace-model-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce2e9;
  border-radius: 9px;
  background: #fff;
  color: #8993a1;
}
.app-shell .view[data-view-panel="playground"] .workspace-model-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.app-shell .view[data-view-panel="playground"] .workspace-model-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #253043;
  font-size: 12px;
  box-shadow: none;
}
.app-shell .view[data-view-panel="playground"] .workspace-model-search:focus-within { border-color: #63ade6; box-shadow: 0 0 0 3px #e8f4fe; }
.app-shell .view[data-view-panel="playground"] .model-picker { display: block; width: 100%; min-width: 0; }
.app-shell .view[data-view-panel="playground"] .model-picker select {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 34px 0 13px;
  border: 1px solid #dce2e9;
  border-radius: 9px;
  background-color: #fff;
  color: #253043;
  font-size: 13px;
  text-overflow: ellipsis;
}
.app-shell .view[data-view-panel="playground"] .workspace-icon-picker { position: relative; }
.app-shell .view[data-view-panel="playground"] .workspace-icon-picker select[hidden] { display: none !important; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger { display: flex; align-items: center; gap: 9px; width: 100%; height: 42px; min-width: 0; padding: 0 13px; border: 1px solid transparent; border-radius: 13px; background: #fff; box-shadow: var(--glass-control-shadow,0 1px 4px #243b5312); color: #253043; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger:hover:not(:disabled) { border-color: #cbd5e1; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger[aria-expanded="true"] { border-color: #b7d4ec; box-shadow: 0 0 0 3px #e8f4fe; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger:disabled { opacity: .55; cursor: not-allowed; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger:focus-visible,
.app-shell .view[data-view-panel="playground"] .workspace-picker-option:focus-visible { outline: 2px solid #63ade6; outline-offset: 2px; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 1em; width: 1em; height: 1em; overflow: hidden; font-size: inherit; line-height: 1; font-weight: 600; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-logo svg { display: block; width: 100%; height: 100%; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-chevron,
.app-shell .view[data-view-panel="playground"] .workspace-picker-check { flex: 0 0 14px; width: 14px; height: 14px; color: #8291a5; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger[aria-expanded="true"] .workspace-picker-chevron { transform: rotate(180deg); }
.app-shell .view[data-view-panel="playground"] .workspace-picker-options { position: absolute; z-index: 45; top: calc(100% + 7px); left: 0; right: 0; max-height: min(320px,50dvh); overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; box-shadow: 0 14px 40px -12px #243b5340; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-options[hidden] { display: none; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; min-height: 38px; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; color: #253043; font: inherit; font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option:hover:not(:disabled),
.app-shell .view[data-view-panel="playground"] .workspace-picker-option:focus-visible { background: #f3f6fa; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option[aria-selected="true"] { background: #eef5fc; color: #185c99; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option[aria-selected="false"] .workspace-picker-check { visibility: hidden; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option:disabled { opacity: .5; cursor: not-allowed; }
.app-shell .view[data-view-panel="playground"] #workspace-settings-toggle { min-height: 42px; }
.app-shell .view[data-view-panel="playground"] #workspace-settings-toggle[aria-expanded="true"] { border-color: #aed5f1; background: #edf7ff; color: #075ea4; }
.app-shell .view[data-view-panel="playground"] .workspace-account-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 2px 17px;
  color: var(--workspace-muted);
  font-size: 11px;
  line-height: 1.5;
}
.app-shell .view[data-view-panel="playground"] .workspace-account-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: #508bac; }
.app-shell .view[data-view-panel="playground"] .workspace-model-status {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #f3d6a8;
  border-radius: 8px;
  background: #fffbf3;
  color: #8b6427;
  font-size: 12px;
  line-height: 1.5;
}
.app-shell .view[data-view-panel="playground"] .playground-split-workspace {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  height: clamp(420px, calc(100dvh - 310px), 850px);
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(29,46,71,.035);
}
.app-shell .view[data-view-panel="playground"].settings-open .playground-split-workspace { grid-template-columns: minmax(0,1fr) 300px; }
.app-shell .view[data-view-panel="playground"] .playground-conversation {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0,1fr) auto;
  background: #fff;
}
.app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar {
  min-height: 52px;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid #f0f2f5;
}
.app-shell .view[data-view-panel="playground"] .workspace-conversation-state { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.app-shell .view[data-view-panel="playground"] .workspace-conversation-state > strong { color: #344054; font-size: 12px; font-weight: 600; }
.app-shell .view[data-view-panel="playground"] #request-state { color: var(--workspace-muted); font-size: 11px; line-height: 1.5; }
.app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar .icon-text-button { padding: 4px 0; color: var(--workspace-muted); font-size: 11px; white-space: nowrap; }
.app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar .icon-text-button:hover { color: var(--workspace-blue); }
.app-shell .view[data-view-panel="playground"] .chat-stage {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px clamp(18px,4vw,56px);
  scrollbar-gutter: stable;
  scrollbar-color: #d4dde7 transparent;
}
.app-shell .view[data-view-panel="playground"] .welcome-message { width: 100%; min-height: 100%; padding: 16px 0 24px; }
.app-shell .view[data-view-panel="playground"] .welcome-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid #cfe6f9;
  border-radius: 15px;
  background: #f0f8ff;
  color: var(--workspace-blue);
}
.app-shell .view[data-view-panel="playground"] .welcome-message h2 { margin-bottom: 10px; color: #253043; font-size: clamp(21px,2vw,27px); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.app-shell .view[data-view-panel="playground"] .welcome-message p { max-width: 380px; color: var(--workspace-muted); font-size: 13px; line-height: 1.65; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions { display: flex; flex-wrap: wrap; gap: 9px; width: 100%; margin-top: 27px; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid var(--workspace-border);
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  text-align: left;
}
.app-shell .view[data-view-panel="playground"] .prompt-suggestions button:hover { border-color: #bedbf2; background: #f8fbff; color: #075ea4; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions button svg:first-child { color: #6f91ae; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions button svg:last-child { width: 13px; height: 13px; margin-left: 3px; color: #9ca8b8; }
.app-shell .view[data-view-panel="playground"] .chat-message { grid-template-columns: 28px minmax(0,1fr); gap: 11px; width: 100%; max-width: none; margin: 0 auto 24px; }
.app-shell .view[data-view-panel="playground"] .chat-message.user { grid-template-columns: minmax(0,1fr) 28px; }
.app-shell .view[data-view-panel="playground"] .message-avatar { width: 28px; height: 28px; border-radius: 8px; background: #edf7ff; color: #0879d1; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-avatar { order: 2; background: #e9edf3; color: #536174; }
.app-shell .view[data-view-panel="playground"] .message-body { min-width: 0; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-body { order: 1; justify-self: end; width: fit-content; max-width: min(90%,640px); }
.app-shell .view[data-view-panel="playground"] .message-content { padding: 0; border: 0; border-radius: 0; background: transparent; color: #263244; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-content { max-width: 640px; padding: 11px 15px; border: 1px solid #e5edf5; border-radius: 12px 3px 12px 12px; background: #f1f6fc; color: #253043; }
.app-shell .view[data-view-panel="playground"] .message-content pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #e3e8ef;
  border-radius: 9px;
  background: #f7f9fc;
  color: #25364e;
  font: 12px/1.7 "Roboto Mono",monospace;
  white-space: pre;
  overflow-wrap: normal;
}
.app-shell .view[data-view-panel="playground"] .message-content pre:first-child { margin-top: 0; }
.app-shell .view[data-view-panel="playground"] .message-content pre:last-child { margin-bottom: 0; }
.app-shell .view[data-view-panel="playground"] .message-content code { font-family: "Roboto Mono",monospace; }
.app-shell .view[data-view-panel="playground"] .message-reasoning { min-width: 0; margin: 10px 0 14px; border: 1px solid #e8ebef; border-radius: 10px; background: #fafbfc; color: #667085; }
.app-shell .view[data-view-panel="playground"] .message-reasoning summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 13px; border-radius: 10px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; }
.app-shell .view[data-view-panel="playground"] .message-reasoning summary::-webkit-details-marker { display: none; }
.app-shell .view[data-view-panel="playground"] .message-reasoning summary:hover { background: #f0f3f6; color: #344054; }
.app-shell .view[data-view-panel="playground"] .message-reasoning summary:focus-visible { outline: 2px solid #0879d1; outline-offset: 2px; }
.app-shell .view[data-view-panel="playground"] .reasoning-expand,
.app-shell .view[data-view-panel="playground"] .reasoning-collapse { margin-left: auto; font-size: 11px; font-weight: 400; }
.app-shell .view[data-view-panel="playground"] .reasoning-collapse,
.app-shell .view[data-view-panel="playground"] .message-reasoning[open] .reasoning-expand { display: none; }
.app-shell .view[data-view-panel="playground"] .message-reasoning[open] .reasoning-collapse { display: inline; }
.app-shell .view[data-view-panel="playground"] .reasoning-chevron { flex: 0 0 auto; font-size: 17px; line-height: 1; }
.app-shell .view[data-view-panel="playground"] .message-reasoning[open] .reasoning-chevron { transform: rotate(180deg); }
.app-shell .view[data-view-panel="playground"] .message-reasoning-content { max-height: min(360px,45dvh); overflow: auto; padding: 0 13px 13px; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.app-shell .view[data-view-panel="playground"] .message-reasoning-content > :first-child { margin-top: 0; }
.app-shell .view[data-view-panel="playground"] .message-reasoning-content > :last-child { margin-bottom: 0; }
.app-shell .view[data-view-panel="playground"] .message-reasoning-content pre { max-width: 100%; overflow-x: auto; padding: 10px; border-radius: 6px; background: #f0f2f5; white-space: pre; }
.app-shell .view[data-view-panel="playground"] .message-reasoning-content code { font: 12px/1.6 "Roboto Mono",monospace; }
.app-shell .view[data-view-panel="playground"] .message-meta { margin-top: 8px; color: #7a8697; font-family: inherit; font-size: 10px; line-height: 1.5; }
.app-shell .view[data-view-panel="playground"] .message-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.app-shell .view[data-view-panel="playground"] .message-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; color: #7a8697; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] .message-actions button:hover { background: #eef6fe; color: #0879d1; }
.app-shell .view[data-view-panel="playground"] .chat-message.failed .message-content { padding: 12px 14px; border: 1px solid #f3d6d6; border-radius: 9px; background: #fff8f7; color: #a04440; }
.app-shell .view[data-view-panel="playground"] .chat-message.pending .message-content { color: #75859a; }
.app-shell .view[data-view-panel="playground"] .chat-message.pending .message-content::after { display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: #7aaed6; content: ""; animation: workspace-pulse 1.3s ease-in-out infinite; vertical-align: middle; }
@keyframes workspace-pulse { 50% { opacity: .3; } }
.app-shell .view[data-view-panel="playground"] .composer-shell { min-width: 0; padding: 14px 22px 13px; border-top: 0; background: #fff; }
.app-shell .view[data-view-panel="playground"] .composer-row { width: 100%; max-width: none; min-height: 85px; padding: 12px 12px 12px 16px; border: 1px solid #dce3ed; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(25,46,79,.025); }
.app-shell .view[data-view-panel="playground"] .composer-row:focus-within { border-color: #90bfe3; box-shadow: 0 0 0 3px #edf6ff; }
.app-shell .view[data-view-panel="playground"] .composer-row textarea { flex: 1; width: 100%; min-width: 0; min-height: 50px; max-height: min(180px,26dvh); padding: 0; outline: 0; color: #253043; font-size: 14px; line-height: 1.65; }
.app-shell .view[data-view-panel="playground"] .composer-row textarea::placeholder { color: #909bad; }
.app-shell .view[data-view-panel="playground"] .send-button { width: 35px; height: 35px; border-radius: 9px; background: #0879d1; color: #fff; }
.app-shell .view[data-view-panel="playground"] .send-button:hover { background: #0767b2; }
.app-shell .view[data-view-panel="playground"] #stop-playground { background: #35465c; }
.app-shell .view[data-view-panel="playground"] #stop-playground svg { width: 13px; height: 13px; fill: currentColor; }
.app-shell .view[data-view-panel="playground"] .composer-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; max-width: none; margin-top: 10px; color: #8b95a4; font: 10px/1.5 "Inter",sans-serif; }
.app-shell .view[data-view-panel="playground"] .workspace-retry-row { max-width: none; margin: 0 auto; }
.app-shell .view[data-view-panel="playground"] #retry-playground { min-height: 32px; margin-bottom: 10px; padding: 6px 10px; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] #workspace-result-details { max-width: none; margin: 12px auto 0; color: var(--workspace-muted); font-size: 11px; }
.app-shell .view[data-view-panel="playground"] #workspace-result-details summary { width: fit-content; cursor: pointer; }
.app-shell .view[data-view-panel="playground"] #playground-response { max-height: 180px; overflow: auto; margin: 10px 0 0; padding: 13px; border: 1px solid var(--workspace-border); border-radius: 8px; background: #f7f9fc; color: #475467; font: 11px/1.6 "Roboto Mono",monospace; white-space: pre; }
.app-shell .view[data-view-panel="playground"] .playground-parameters { display: none; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0,1fr); border: 0; border-left: 1px solid var(--workspace-border); background: #fafbfd; }
.app-shell .view[data-view-panel="playground"].settings-open .playground-parameters { display: grid; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading { min-height: 72px; gap: 10px; padding: 16px; border-color: var(--workspace-border); }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading > span { flex-basis: 30px; width: 30px; height: 30px; border-color: #dce8f3; border-radius: 8px; background: #f0f7fc; color: #5980a4; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading h2 { margin: 0 0 5px; color: #344054; font-size: 12px; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading p { margin: 0; color: #8b95a4; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-body { display: block; overflow-y: auto; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section { gap: 12px; padding: 18px 16px; border: 0; border-bottom: 1px solid var(--workspace-border); }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section:last-child { border-bottom: 0; }
.app-shell .view[data-view-panel="playground"] fieldset.playground-parameter-section { margin-top: 15px; padding-top: 8px; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section legend { float: none; width: auto; margin-left: 0; color: #536174; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section label,
.app-shell .view[data-view-panel="playground"] .playground-parameter-section .field-caption { color: #697586; font-size: 11px; font-weight: 500; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section input,
.app-shell .view[data-view-panel="playground"] .playground-parameter-section select,
.app-shell .view[data-view-panel="playground"] .playground-parameter-section textarea { border-color: #dce2e9; border-radius: 7px; color: #344054; font-size: 12px; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section input,
.app-shell .view[data-view-panel="playground"] .playground-parameter-section select { min-height: 38px; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section textarea { min-height: 105px; line-height: 1.6; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section .segmented { height: 36px; border: 1px solid #e3e8ef; border-radius: 7px; background: #eef2f6; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section .segmented button { min-height: 28px; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section .segmented button.active { background: #fff; color: #0879d1; box-shadow: 0 1px 4px #dce4ed; }
.app-shell .view[data-view-panel="playground"] #protocol-endpoint { color: #8b95a4; font: 10px/1.5 "Roboto Mono",monospace; }
.app-shell .view[data-view-panel="playground"] .workspace-setting-hint { margin: 0; color: #8b95a4; font-size: 10px; line-height: 1.6; }

@media (max-width: 1100px) {
  .app-shell .view[data-view-panel="playground"] .workspace-model-bar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "supplier settings" "search model"; }
  .app-shell .view[data-view-panel="playground"] #workspace-settings-toggle { justify-self: end; }
  .app-shell .view[data-view-panel="playground"].settings-open .playground-split-workspace { height: auto; grid-template-columns: minmax(0,1fr); }
  .app-shell .view[data-view-panel="playground"].settings-open .playground-parameters { order: -1; max-height: min(430px,60dvh); border: 0; border-bottom: 1px solid var(--workspace-border); }
  .app-shell .view[data-view-panel="playground"] .playground-parameters-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell .view[data-view-panel="playground"].settings-open .playground-conversation { height: clamp(420px,calc(100dvh - 310px),850px); }
  .app-shell .view[data-view-panel="playground"] .playground-parameter-section { align-content: start; }
}
@media (max-width: 620px) {
  .app-shell .view[data-view-panel="playground"] .workspace-heading { flex-direction: row; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading h1 { font-size: 22px; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading p { font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] #workspace-clear { min-height: 36px; padding: 8px 9px; font-size: 10px; }
  .app-shell .view[data-view-panel="playground"] #workspace-clear svg { display: none; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-bar { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "supplier settings" "search search" "model model"; gap: 8px; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-search { min-height: 38px; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-search input { height: 36px; font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] .model-picker select { height: 40px; min-height: 40px; font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] .workspace-picker-trigger { height: 40px; }
  .app-shell .view[data-view-panel="playground"] .workspace-picker-option { min-height: 44px; }
  .app-shell .view[data-view-panel="playground"] #workspace-settings-toggle { min-height: 40px; padding: 8px 10px; font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] #workspace-settings-toggle svg { width: 14px; height: 14px; }
  .app-shell .view[data-view-panel="playground"] .workspace-account-note { margin: 10px 0 14px; align-items: flex-start; font-size: 10px; }
  .app-shell .view[data-view-panel="playground"] .playground-split-workspace { height: clamp(390px,calc(100dvh - 315px),680px); border-radius: 11px; }
  .app-shell .view[data-view-panel="playground"].settings-open .playground-conversation { height: clamp(390px,calc(100dvh - 315px),680px); }
  .app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar { min-height: 47px; padding: 9px 14px; }
  .app-shell .view[data-view-panel="playground"] .chat-stage { padding: 22px 15px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message { padding: 2px 0 10px; }
  .app-shell .view[data-view-panel="playground"] .welcome-mark { width: 40px; height: 40px; margin-bottom: 15px; border-radius: 12px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message h2 { max-width: 250px; margin-bottom: 8px; font-size: 21px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message p { max-width: 260px; font-size: 12px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions { flex-direction: column; flex-wrap: nowrap; gap: 7px; max-width: 280px; margin-top: 20px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions button { min-height: 40px; padding: 9px 11px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions button svg:last-child { margin-left: auto; }
  .app-shell .view[data-view-panel="playground"] .composer-shell { padding: 9px 11px 12px; }
  .app-shell .view[data-view-panel="playground"] .composer-row { min-height: 80px; padding: 11px; border-radius: 10px; }
  .app-shell .view[data-view-panel="playground"] .composer-row textarea { min-height: 52px; font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] .composer-footer { justify-content: center; margin-top: 8px; text-align: center; font-size: 9px; }
  .app-shell .view[data-view-panel="playground"] .composer-footer > span:first-child { display: none; }
  .app-shell .view[data-view-panel="playground"] .chat-message { grid-template-columns: 23px minmax(0,1fr); gap: 8px; margin-bottom: 23px; }
  .app-shell .view[data-view-panel="playground"] .chat-message.user { grid-template-columns: minmax(0,1fr) 23px; }
  .app-shell .view[data-view-panel="playground"] .message-avatar { width: 23px; height: 23px; border-radius: 6px; font-size: 9px; }
  .app-shell .view[data-view-panel="playground"] .message-content { font-size: 13px; line-height: 1.75; }
  .app-shell .view[data-view-panel="playground"] .chat-message.user .message-body { max-width: 100%; }
  .app-shell .view[data-view-panel="playground"] .playground-parameters-body { grid-template-columns: minmax(0,1fr); }
  .app-shell .view[data-view-panel="playground"] .playground-parameter-section input,
  .app-shell .view[data-view-panel="playground"] .playground-parameter-section select,
  .app-shell .view[data-view-panel="playground"] .playground-parameter-section textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .view[data-view-panel="playground"] .chat-message.pending .message-content::after { animation: none; }
}

/* Studio layout, session navigation and writing tools. */
.app-shell .view[data-view-panel="playground"] [hidden] { display: none !important; }
.app-shell .view[data-view-panel="playground"] button { cursor: pointer; }
.app-shell .view[data-view-panel="playground"] button:disabled { cursor: not-allowed; opacity: .45; }
.app-shell .view[data-view-panel="playground"] .workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.app-shell .view[data-view-panel="playground"] .workspace-heading h1 { margin: 0 0 6px; color: #222329; font-size: 27px; font-weight: 650; letter-spacing: -.035em; }
.app-shell .view[data-view-panel="playground"] .workspace-heading p:not(.workspace-eyebrow) { margin: 0; color: #687181; font-size: 12px; line-height: 1.6; }
.app-shell .view[data-view-panel="playground"] .workspace-heading .workspace-eyebrow { margin: 0 0 8px; color: #70798a; font-size: 9px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; }
.app-shell .view[data-view-panel="playground"] .workspace-heading-actions { display: flex; align-items: center; align-self: auto; gap: 7px; width: auto; }
.app-shell .view[data-view-panel="playground"] .secondary-button { min-height: 38px; padding: 8px 12px; border: 1px solid #e4e5e8; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px #12172404; color: #4b4e56; font-size: 12px; transition: background .15s,border-color .15s; }
.app-shell .view[data-view-panel="playground"] .secondary-button:hover:not(:disabled) { border-color: #c7cbd2; background: #f6f7f9; color: #25262b; }
.app-shell .view[data-view-panel="playground"] .workspace-quiet-button { background: transparent; border-color: transparent; box-shadow: none; }
.app-shell .view[data-view-panel="playground"] .workspace-new-button { border-color: #292b32; background: #292b32; color: #fff; }
.app-shell .view[data-view-panel="playground"] .workspace-new-button:hover:not(:disabled) { border-color: #40434d; background: #40434d; color: #fff; }
.app-shell .view[data-view-panel="playground"] .workspace-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #8a8c94; }
.app-shell .view[data-view-panel="playground"] .workspace-icon-button:hover { background: #ededef; color: #30333b; }
.app-shell .view[data-view-panel="playground"] .workspace-model-bar { grid-template-columns: minmax(135px,.9fr) minmax(140px,.7fr) minmax(210px,1.4fr) auto; grid-template-areas: "supplier search model settings"; gap: 10px; }
.app-shell .view[data-view-panel="playground"] :is(.workspace-model-search,.model-picker select,.workspace-picker-trigger) { border: 1px solid #e8e8ea; border-radius: 9px; background: #fff; box-shadow: none; color: #555b68; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-trigger { font-size: 12px; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option { color: #555b68; }
.app-shell .view[data-view-panel="playground"] .workspace-picker-option[aria-selected="true"] { background: #f1f5fc; color: #5b77a4; }
.app-shell .view[data-view-panel="playground"] #workspace-settings-toggle[aria-expanded="true"],
.app-shell .view[data-view-panel="playground"] #workspace-history-toggle[aria-expanded="true"] { border-color: #d7e4fa; background: #f0f5fe; color: #316abd; }
.app-shell .view[data-view-panel="playground"] .workspace-account-note { gap: 6px; margin: 9px 2px 15px; color: #687181; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .workspace-account-note svg { width: 12px; height: 12px; color: #8a9a8f; }
.app-shell .view[data-view-panel="playground"] .playground-split-workspace { position: relative; grid-template-columns: minmax(0,1fr); height: clamp(370px,calc(100svh - 310px),1000px); border: 1px solid #e8e8ea; border-radius: 16px; background: #fff; box-shadow: 0 5px 24px -16px #23293825; isolation: isolate; }
.app-shell .view[data-view-panel="playground"].settings-open .playground-split-workspace { grid-template-columns: minmax(0,1fr) 300px; height: clamp(370px,calc(100svh - 310px),1000px); }
.app-shell .view[data-view-panel="playground"].history-open .playground-split-workspace { grid-template-columns: 238px minmax(0,1fr); }
.app-shell .view[data-view-panel="playground"].history-open.settings-open .playground-split-workspace { grid-template-columns: 238px minmax(0,1fr) 300px; }
.app-shell .view[data-view-panel="playground"] .workspace-panel-backdrop { display: none; }
.app-shell .view[data-view-panel="playground"] .workspace-history { display: none; grid-template-rows: auto auto auto minmax(0,1fr) auto; gap: 13px; min-width: 0; min-height: 0; padding: 20px 14px 14px; border-right: 1px solid #e8e8ea; background: #fafafa; }
.app-shell .view[data-view-panel="playground"].history-open .workspace-history { display: grid; }
.app-shell .view[data-view-panel="playground"] .workspace-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-heading h2 { margin: 5px 0 0; color: #363840; font-size: 14px; font-weight: 600; }
.app-shell .view[data-view-panel="playground"] .workspace-section-kicker { color: #70798a; font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.app-shell .view[data-view-panel="playground"] #workspace-history-new { width: 100%; justify-content: flex-start; min-height: 37px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-search { display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; color: #a5a7af; background: #f1f2f4; }
.app-shell .view[data-view-panel="playground"] .workspace-history-search:focus-within { border-color: #b8cfee; background: #fff; }
.app-shell .view[data-view-panel="playground"] .workspace-history-search svg { flex: 0 0 13px; width: 13px; height: 13px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-search input { min-width: 0; min-height: 34px; width: 100%; padding: 0; border: 0; outline: none; background: transparent; box-shadow: none; color: #666e7c; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-list { display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #ddd transparent; }
.app-shell .view[data-view-panel="playground"] .workspace-history-item { display: flex; align-items: center; gap: 2px; min-width: 0; padding: 3px; border: 1px solid transparent; border-radius: 9px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-item:hover { background: #f0f1f3; }
.app-shell .view[data-view-panel="playground"] .workspace-history-item.active,
.app-shell .view[data-view-panel="playground"] .workspace-history-item[aria-current="true"] { border-color: #e1e6ef; background: #fff; box-shadow: 0 1px 3px #20263005; }
.app-shell .view[data-view-panel="playground"] .workspace-history-select { display: grid; flex: 1; gap: 5px; min-width: 0; padding: 9px 7px; border: 0; background: transparent; text-align: left; color: #555863; }
.app-shell .view[data-view-panel="playground"] .workspace-history-select :is(strong,span) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.app-shell .view[data-view-panel="playground"] .workspace-history-select small { color: #70798a; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-delete { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: #9b9da5; }
.app-shell .view[data-view-panel="playground"] .workspace-history-delete:hover { background: #faeeee; color: #bd5555; }
.app-shell .view[data-view-panel="playground"] .workspace-history-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding-top: 12px; border-top: 1px solid #e9eaed; color: #70798a; font-size: 10px; line-height: 1.6; }
.app-shell .view[data-view-panel="playground"] .workspace-history-note svg { flex: 0 0 12px; width: 12px; height: 12px; margin-top: 2px; }
.app-shell .view[data-view-panel="playground"] .workspace-history-empty { padding: 20px 9px; color: #70798a; font-size: 11px; text-align: center; line-height: 1.7; }
.app-shell .view[data-view-panel="playground"] .playground-conversation { min-height: 0; height: auto; background: #fff; }
.app-shell .view[data-view-panel="playground"].settings-open .playground-conversation { height: auto; }
.app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 57px; gap: 8px 12px; padding: 10px 20px; border-bottom: 1px solid #f0f0f2; background: #fff; }
.app-shell .view[data-view-panel="playground"] .workspace-assistant-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-shell .view[data-view-panel="playground"] .workspace-preset-picker { display: flex; align-items: center; gap: 7px; min-width: 0; color: #6b7491; }
.app-shell .view[data-view-panel="playground"] .workspace-preset-picker svg { flex: 0 0 15px; width: 15px; height: 15px; }
.app-shell .view[data-view-panel="playground"] .workspace-preset-picker select { width: auto; min-width: 0; max-width: 190px; min-height: 32px; padding: 4px 22px 4px 0; border: 0; border-radius: 5px; background-color: transparent; color: #424650; font: inherit; font-size: 12px; font-weight: 500; box-shadow: none; cursor: pointer; }
.app-shell .view[data-view-panel="playground"] .workspace-tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: #687181; font-size: 11px; line-height: 1.4; }
.app-shell .view[data-view-panel="playground"] .workspace-tool-button:hover:not(:disabled) { background: #f2f4f7; color: #424b60; }
.app-shell .view[data-view-panel="playground"] .workspace-tool-button svg { width: 15px; height: 15px; }
.app-shell .view[data-view-panel="playground"] .workspace-conversation-state { gap: 12px; }
.app-shell .view[data-view-panel="playground"] #request-state { color: #70798a; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar .icon-text-button { gap: 5px; min-height: 30px; padding: 5px 3px; color: #70798a; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar .icon-text-button svg { width: 13px; height: 13px; }
.app-shell .view[data-view-panel="playground"] .chat-stage { padding: 32px clamp(18px,4vw,66px); background: #fff; scrollbar-width: thin; scrollbar-color: #d8d9dd transparent; }
.app-shell .view[data-view-panel="playground"] .welcome-mark { display: grid; place-items: center; border: 1px solid #e8eaf0; border-radius: 16px; background: #f5f6f9; box-shadow: 0 3px 8px -4px #37476620; color: #526c97; font-size: 27px; }
.app-shell .view[data-view-panel="playground"] .welcome-mark svg { width: 24px; height: 24px; }
.app-shell .view[data-view-panel="playground"] .welcome-message h2 { color: #30323a; font-size: clamp(21px,1.8vw,28px); font-weight: 550; letter-spacing: -.035em; }
.app-shell .view[data-view-panel="playground"] .welcome-message p { max-width: 430px; color: #687181; font-size: 12px; line-height: 1.75; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; max-width: 620px; margin-top: 28px; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions button { justify-content: space-between; min-width: 0; min-height: 55px; padding: 13px 14px; border: 1px solid #e9eaed; border-radius: 11px; background: #fbfbfc; box-shadow: none; color: #747985; font-size: 11px; line-height: 1.5; transition: background .15s,border-color .15s,transform .15s; }
.app-shell .view[data-view-panel="playground"] .prompt-suggestions button:hover { border-color: #d6dfea; background: #f6f8fc; color: #4d6385; transform: translateY(-2px); }
.app-shell .view[data-view-panel="playground"] .chat-message { max-width: 880px; margin-bottom: 28px; }
.app-shell .view[data-view-panel="playground"] .message-avatar { border: 1px solid #eceef3; border-radius: 9px; background: #f4f6fa; color: #7385a3; font-size: 12px; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-avatar { border-color: #e8e9ed; background: #f4f4f5; color: #818490; }
.app-shell .view[data-view-panel="playground"] .message-content { color: #393d48; font-size: 14px; line-height: 1.85; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-content { padding: 12px 16px; border: 1px solid #eceef3; border-radius: 14px 4px 14px 14px; background: #f5f6f9; color: #424752; white-space: pre-wrap; }
.app-shell .view[data-view-panel="playground"] .message-content :is(h1,h2,h3,h4) { margin: 1.4em 0 .65em; color: #30343d; line-height: 1.45; font-weight: 600; }
.app-shell .view[data-view-panel="playground"] .message-content :is(ul,ol) { padding-left: 1.5em; }
.app-shell .view[data-view-panel="playground"] .message-content blockquote { margin: 15px 0; padding: 4px 15px; border-left: 3px solid #d9e1ef; color: #7b8495; }
.app-shell .view[data-view-panel="playground"] .message-content a { color: #3d75c9; text-decoration: underline; text-underline-offset: 3px; }
.app-shell .view[data-view-panel="playground"] .message-content table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; margin: 15px 0; font-size: 12px; }
.app-shell .view[data-view-panel="playground"] .message-content :is(th,td) { padding: 8px 12px; border: 1px solid #e6e8ed; text-align: left; }
.app-shell .view[data-view-panel="playground"] .message-content th { background: #f7f8fa; font-weight: 500; }
.app-shell .view[data-view-panel="playground"] .message-content pre { border: 1px solid #e6e8ed; border-radius: 10px; background: #f8f9fb; color: #4d5a70; }
.app-shell .view[data-view-panel="playground"] .message-content :not(pre) > code { padding: 2px 5px; border-radius: 4px; background: #f0f2f6; color: #566278; font-size: .88em; }
.app-shell .view[data-view-panel="playground"] .workspace-code-block { margin: 15px 0; overflow: hidden; border: 1px solid #e6e8ed; border-radius: 10px; background: #f8f9fb; }
.app-shell .view[data-view-panel="playground"] .workspace-code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #e8ebf1; color: #9097a5; font: 10px/1.5 "Roboto Mono",monospace; }
.app-shell .view[data-view-panel="playground"] .workspace-code-toolbar > div { display: flex; gap: 8px; }
.app-shell .view[data-view-panel="playground"] .workspace-code-toolbar button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border: 0; border-radius: 4px; background: transparent; color: #7d8797; font: inherit; }
.app-shell .view[data-view-panel="playground"] .workspace-code-toolbar button:hover { background: #e9edf4; color: #486184; }
.app-shell .view[data-view-panel="playground"] .workspace-code-block pre { margin: 0; border: 0; border-radius: 0; }
.app-shell .view[data-view-panel="playground"] .message-meta { margin: 0 0 8px; color: #70798a; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .message-status { margin-top: 8px; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-meta { text-align: right; }
.app-shell .view[data-view-panel="playground"] .message-actions { flex-wrap: wrap; gap: 5px; }
.app-shell .view[data-view-panel="playground"] .chat-message.user .message-actions { justify-content: flex-end; }
.app-shell .view[data-view-panel="playground"] .message-actions button { min-height: 26px; padding: 4px 7px; color: #70798a; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .message-actions button:hover:not(:disabled) { background: #f1f4f9; color: #5e77a0; }
.app-shell .view[data-view-panel="playground"] .message-actions button svg { width: 12px; height: 12px; }
.app-shell .view[data-view-panel="playground"] .composer-shell { padding: 12px clamp(16px,3vw,40px) 14px; background: #fff; }
.app-shell .view[data-view-panel="playground"] .composer-row { flex-direction: column; align-items: stretch; gap: 10px; max-width: 920px; min-height: 110px; padding: 15px 14px 10px; border: 1px solid #e1e4e9; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px -6px #3c43521c; }
.app-shell .view[data-view-panel="playground"] .composer-row:focus-within { border-color: #b8cae5; box-shadow: 0 0 0 3px #f1f5fc; }
.app-shell .view[data-view-panel="playground"] .composer-row textarea { flex: none; min-height: 46px; max-height: min(200px,28svh); padding: 0 3px; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: #3f4552; font-size: 14px; line-height: 1.7; }
.app-shell .view[data-view-panel="playground"] .composer-row textarea::placeholder { color: #a2a7b1; }
.app-shell .view[data-view-panel="playground"] .workspace-composer-tools,
.app-shell .view[data-view-panel="playground"] .workspace-composer-leading,
.app-shell .view[data-view-panel="playground"] .workspace-composer-send { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-shell .view[data-view-panel="playground"] .workspace-composer-tools { justify-content: space-between; }
.app-shell .view[data-view-panel="playground"] .workspace-composer-leading .workspace-tool-button { padding-left: 3px; }
.app-shell .view[data-view-panel="playground"] .workspace-character-count { color: #70798a; font-size: 10px; font-variant-numeric: tabular-nums; }
.app-shell .view[data-view-panel="playground"] .send-button { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: #313642; color: #fff; }
.app-shell .view[data-view-panel="playground"] .send-button:hover:not(:disabled) { background: #4c5568; }
.app-shell .view[data-view-panel="playground"] .send-button:disabled { opacity: .3; }
.app-shell .view[data-view-panel="playground"] .composer-footer { max-width: 920px; margin: 9px auto 0; color: #70798a; font-size: 9px; }
.app-shell .view[data-view-panel="playground"] .workspace-retry-row { max-width: 920px; }
.app-shell .view[data-view-panel="playground"] .workspace-edit-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 920px; margin: 0 auto 9px; padding: 8px 11px; border-radius: 7px; background: #f2f6fd; color: #6e86aa; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] .workspace-edit-banner > span { display: inline-flex; align-items: center; gap: 6px; }
.app-shell .view[data-view-panel="playground"] .workspace-edit-banner svg { width: 13px; height: 13px; }
.app-shell .view[data-view-panel="playground"] .workspace-edit-banner button { padding: 2px 0; border: 0; background: transparent; color: #5e7eaf; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] .workspace-selected-skills { display: flex; flex-wrap: wrap; gap: 6px; max-width: 920px; margin: 0 auto 9px; }
.app-shell .view[data-view-panel="playground"] .workspace-skill-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border: 1px solid #e7e9f3; border-radius: 7px; background: #f8f8fc; color: #665e84; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .workspace-skill-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .view[data-view-panel="playground"] .workspace-skill-chip button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 17px; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #a1a2b3; }
.app-shell .view[data-view-panel="playground"] .workspace-skill-chip button:hover { background: #ececf5; color: #73718f; }
.app-shell .view[data-view-panel="playground"] .workspace-attachments { display: flex; flex-wrap: wrap; gap: 7px; }
.app-shell .view[data-view-panel="playground"] .workspace-attachment { display: flex; align-items: center; gap: 8px; max-width: 240px; min-width: 0; padding: 6px 8px; border: 1px solid #e8ebf1; border-radius: 9px; background: #f8f9fc; color: #747f91; font-size: 11px; }
.app-shell .view[data-view-panel="playground"] .workspace-attachment > span,
.app-shell .view[data-view-panel="playground"] .workspace-attachment > div { display: grid; gap: 2px; min-width: 0; }
.app-shell .view[data-view-panel="playground"] .workspace-attachment :is(strong,span) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.app-shell .view[data-view-panel="playground"] .workspace-attachment small { color: #70798a; font-size: 9px; }
.app-shell .view[data-view-panel="playground"] .workspace-attachment button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 19px; width: 19px; height: 19px; padding: 2px; border: 0; border-radius: 5px; background: transparent; color: #a5acb8; }
.app-shell .view[data-view-panel="playground"] .workspace-attachment button:hover { background: #e9edf5; color: #68788e; }
.app-shell .view[data-view-panel="playground"] .message-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.app-shell .view[data-view-panel="playground"] #workspace-result-details { max-width: 920px; margin: 10px auto 0; color: #9098a7; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] #playground-response { max-height: 150px; background: #f9fafc; color: #7c8799; font-size: 10px; }
.app-shell .view[data-view-panel="playground"] .playground-parameters { order: initial; max-height: none; border: 0; border-left: 1px solid #e8e8ea; background: #fafafa; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading { display: flex; align-items: center; min-height: 74px; border-bottom: 1px solid #e8e8ea; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading > span { flex-basis: 29px; width: 29px; height: 29px; border: 1px solid #e5e8ef; border-radius: 8px; background: #f2f4f8; color: #8d98ad; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading > div { flex: 1; min-width: 0; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-heading h2 { color: #515866; }
.app-shell .view[data-view-panel="playground"] .playground-parameters-body { display: block; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section { border-right: 0; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-section :is(input,select,textarea) { border: 1px solid #e4e8ee; border-radius: 8px; background: #fff; color: #626e82; box-shadow: none; }
.app-shell .view[data-view-panel="playground"] .playground-parameter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

.app-shell .view[data-view-panel="playground"] .workspace-message-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.app-shell .view[data-view-panel="playground"] .workspace-message-attachments > span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; padding: 5px 8px; border: 1px solid #e7eaf0; border-radius: 7px; background: #fafbfe; color: #8b94a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .view[data-view-panel="playground"] .message-timing { color: #70798a; font-size: 10px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.app-shell .view[data-view-panel="playground"] .file-dragover { border-color: #9bb9e4; background: #f7faff; box-shadow: 0 0 0 3px #eaf1fd; }

/* The skill picker is a dialog attached to the console shell. */
dialog.workspace-skills-dialog { width: min(620px,calc(100vw - 32px)); max-width: none; max-height: min(720px,calc(100svh - 48px)); margin: auto; padding: 22px; border: 1px solid #e6e9ef; border-radius: 17px; background: #fff; box-shadow: 0 24px 80px -28px #1d294755; color: #4c5567; }
dialog.workspace-skills-dialog::backdrop { background: #202b4b38; backdrop-filter: blur(3px); }
.workspace-skills-dialog .workspace-skills-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.workspace-skills-dialog .workspace-skills-heading h2 { margin: 0 0 7px; color: #343b48; font-size: 18px; font-weight: 600; }
.workspace-skills-dialog #workspace-skills-note { max-width: 520px; margin: -6px 0 17px; color: #687181; font-size: 12px; line-height: 1.7; }
.workspace-skills-dialog button { cursor: pointer; }
.workspace-skills-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.workspace-skills-dialog .workspace-skills-heading > button { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 7px; background: #f4f6f9; color: #8a94a5; font-size: 19px; }
.workspace-skills-dialog input[type="search"] { width: 100%; min-height: 41px; margin-bottom: 14px; padding: 9px 12px; border: 1px solid #e3e7ed; border-radius: 9px; background: #fff; color: #535e70; font-size: 13px; }
.workspace-skills-dialog input[type="search"]:focus { border-color: #aac2e8; outline: 0; box-shadow: 0 0 0 3px #f1f5fc; }
.workspace-skills-dialog #workspace-skills-list { display: grid; gap: 8px; max-height: min(430px,48svh); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.workspace-skills-dialog .workspace-skill-option { display: block; position: relative; width: 100%; padding: 13px 40px 13px 14px; border: 1px solid #e8ebf1; border-radius: 10px; background: #fff; color: #5d687a; text-align: left; }
.workspace-skills-dialog .workspace-skill-option:hover:not(:disabled) { border-color: #c9d6eb; background: #fafcff; }
.workspace-skills-dialog .workspace-skill-option.selected,
.workspace-skills-dialog .workspace-skill-option[aria-pressed="true"] { border-color: #bdceeb; background: #f3f7fe; color: #6482b1; }
.workspace-skills-dialog .workspace-skill-option[aria-pressed="true"]::after { position: absolute; top: 13px; right: 14px; color: #6e91c8; content: "✓"; }
.workspace-skills-dialog .workspace-skill-option > span { display: block; margin-bottom: 5px; color: #687181; font-size: 11px; line-height: 1.7; }
.workspace-skills-dialog .workspace-skill-option strong { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.workspace-skills-dialog .workspace-skill-option small,
.workspace-skills-dialog .workspace-skill-option p { display: block; margin: 0; color: #70798a; font-size: 11px; line-height: 1.7; }
.workspace-skills-dialog .workspace-skills-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf0f4; color: #70798a; font-size: 11px; }
.workspace-skills-dialog .workspace-skills-pagination button { min-height: 32px; padding: 5px 10px; border: 1px solid #e2e7ef; border-radius: 7px; background: #fff; color: #71839f; font-size: 11px; }
.workspace-skills-dialog .workspace-skills-pagination button:hover:not(:disabled) { background: #f3f6fc; }

/* Keep side panels from squeezing the conversation on smaller screens. */
@media (max-width: 1300px) {
  .app-shell .view[data-view-panel="playground"].history-open.settings-open .playground-split-workspace { grid-template-columns: 220px minmax(0,1fr); }
  .app-shell .view[data-view-panel="playground"].history-open.settings-open .playground-parameters { position: absolute; z-index: 25; inset: 0 0 0 auto; width: 300px; box-shadow: -14px 0 40px -24px #323b5e5c; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading-actions { gap: 4px; }
  .app-shell .view[data-view-panel="playground"] #workspace-export span { display: none; }
}
@media (max-width: 1100px) {
  .app-shell .view[data-view-panel="playground"] .workspace-heading { gap: 14px; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading h1 { font-size: 24px; }
  .app-shell .view[data-view-panel="playground"] #workspace-history-toggle span { display: none; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-bar { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr) auto; grid-template-areas: "supplier model settings" "search search search"; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-search { height: 34px; min-height: 34px; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-search input { height: 32px; }
  .app-shell .view[data-view-panel="playground"] .playground-split-workspace,
  .app-shell .view[data-view-panel="playground"].settings-open .playground-split-workspace { height: clamp(340px,calc(100svh - 350px),900px); }
  .app-shell .view[data-view-panel="playground"].settings-open .playground-split-workspace,
  .app-shell .view[data-view-panel="playground"].history-open.settings-open .playground-split-workspace { grid-template-columns: minmax(0,1fr); }
  .app-shell .view[data-view-panel="playground"].history-open .playground-split-workspace { grid-template-columns: 220px minmax(0,1fr); }
  .app-shell .view[data-view-panel="playground"].settings-open .playground-parameters { position: absolute; z-index: 25; inset: 0 0 0 auto; width: min(320px,90%); max-height: 100%; order: initial; border: 0; border-left: 1px solid #e8e8ea; box-shadow: -14px 0 40px -24px #323b5e5c; }
  .app-shell .view[data-view-panel="playground"] .playground-parameters-body { display: block; overflow: auto; }
  .app-shell .view[data-view-panel="playground"].settings-open .workspace-panel-backdrop:not([hidden]) { display: block; position: absolute; z-index: 22; inset: 0; width: 100%; height: 100%; border: 0; background: #242d4926; backdrop-filter: blur(1px); }
  .app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar { padding-inline: 14px; }
  .app-shell .view[data-view-panel="playground"] .workspace-conversation-state { gap: 7px; }
  .app-shell .view[data-view-panel="playground"] #copy-response span { display: none; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions { gap: 7px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions button { padding: 12px 10px; }
}
@media (max-width: 820px) {
  .app-shell .view[data-view-panel="playground"] .workspace-heading { flex-direction: row; align-items: center; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading-actions { align-self: center; }
  .app-shell .view[data-view-panel="playground"].history-open .playground-split-workspace,
  .app-shell .view[data-view-panel="playground"].history-open.settings-open .playground-split-workspace { grid-template-columns: minmax(0,1fr); }
  .app-shell .view[data-view-panel="playground"].history-open .workspace-history { position: absolute; z-index: 25; inset: 0 auto 0 0; width: min(300px,88%); max-height: 100%; box-shadow: 14px 0 40px -24px #323b5e5c; }
  .app-shell .view[data-view-panel="playground"].history-open .workspace-panel-backdrop:not([hidden]) { display: block; position: absolute; z-index: 22; inset: 0; width: 100%; height: 100%; border: 0; background: #242d4926; backdrop-filter: blur(1px); }
  .app-shell .view[data-view-panel="playground"] .workspace-history-delete { min-width: 32px; width: 32px; height: 32px; }
}
@media (max-width: 620px) {
  .app-shell .view[data-view-panel="playground"] .workspace-heading { gap: 8px; margin-bottom: 15px; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading h1 { margin-bottom: 0; font-size: 22px; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading .workspace-eyebrow { margin-bottom: 6px; font-size: 8px; letter-spacing: .1em; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading p:not(.workspace-eyebrow) { display: none; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading-actions { gap: 2px; }
  .app-shell .view[data-view-panel="playground"] .workspace-heading-actions .secondary-button { min-width: 34px; min-height: 34px; padding: 7px; }
  .app-shell .view[data-view-panel="playground"] #workspace-clear span { display: none; }
  .app-shell .view[data-view-panel="playground"] #workspace-clear svg { display: block; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-bar { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) auto; grid-template-areas: "supplier model settings" "search search search"; gap: 7px; }
  .app-shell .view[data-view-panel="playground"] #workspace-settings-toggle { min-height: 39px; min-width: 35px; padding: 7px; }
  .app-shell .view[data-view-panel="playground"] #workspace-settings-toggle span { display: none; }
  .app-shell .view[data-view-panel="playground"] .workspace-picker-trigger { height: 39px; gap: 6px; padding: 0 9px; font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] .workspace-picker-option { min-height: 44px; font-size: 13px; }
  .app-shell .view[data-view-panel="playground"] .workspace-model-search input { font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] .workspace-account-note { align-items: flex-start; margin: 9px 0 12px; font-size: 9px; }
  .app-shell .view[data-view-panel="playground"] .playground-split-workspace,
  .app-shell .view[data-view-panel="playground"].settings-open .playground-split-workspace { height: clamp(480px,calc(100svh - 265px),800px); border-radius: 12px; }
  .app-shell .view[data-view-panel="playground"] .playground-conversation,
  .app-shell .view[data-view-panel="playground"].settings-open .playground-conversation { min-height: 0; height: auto; }
  .app-shell .view[data-view-panel="playground"] .playground-conversation-toolbar { min-height: 51px; gap: 4px; padding: 8px 10px; }
  .app-shell .view[data-view-panel="playground"] .workspace-assistant-tools { gap: 3px; }
  .app-shell .view[data-view-panel="playground"] .workspace-preset-picker { gap: 5px; }
  .app-shell .view[data-view-panel="playground"] .workspace-preset-picker select { max-width: 150px; font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] #workspace-skills-open { min-width: 30px; padding: 6px; }
  .app-shell .view[data-view-panel="playground"] #workspace-skills-open span { display: none; }
  .app-shell .view[data-view-panel="playground"] .workspace-conversation-state { gap: 5px; }
  .app-shell .view[data-view-panel="playground"] #request-state { max-width: 65px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .app-shell .view[data-view-panel="playground"] .chat-stage { padding: 24px 14px; scrollbar-gutter: auto; }
  .app-shell .view[data-view-panel="playground"] .welcome-message { padding: 0 0 10px; }
  .app-shell .view[data-view-panel="playground"] .welcome-mark { width: 43px; height: 43px; margin-bottom: 16px; border-radius: 13px; font-size: 23px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message h2 { max-width: 280px; margin-bottom: 8px; font-size: 22px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message p { max-width: 265px; font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions { grid-template-columns: 1fr; gap: 6px; max-width: 280px; margin-top: 20px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions button { min-height: 38px; padding: 9px 12px; font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] .composer-shell { padding: 8px 10px 11px; }
  .app-shell .view[data-view-panel="playground"] .composer-row { gap: 8px; min-height: 110px; padding: 12px 10px 8px; border-radius: 11px; }
  .app-shell .view[data-view-panel="playground"] .composer-row textarea { min-height: 47px; max-height: 150px; font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] .composer-footer { justify-content: center; margin-top: 8px; text-align: center; font-size: 8px; }
  .app-shell .view[data-view-panel="playground"] .composer-footer > span:first-child { display: none; }
  .app-shell .view[data-view-panel="playground"] .chat-message { grid-template-columns: 23px minmax(0,1fr); gap: 8px; margin-bottom: 23px; }
  .app-shell .view[data-view-panel="playground"] .chat-message.user { grid-template-columns: minmax(0,1fr) 23px; }
  .app-shell .view[data-view-panel="playground"] .message-avatar { width: 23px; height: 23px; border-radius: 7px; font-size: 10px; }
  .app-shell .view[data-view-panel="playground"] .message-content { font-size: 13px; line-height: 1.8; }
  .app-shell .view[data-view-panel="playground"] .chat-message.user .message-content { padding: 10px 12px; }
  .app-shell .view[data-view-panel="playground"] .message-actions button { min-height: 32px; padding-inline: 6px; }
  .app-shell .view[data-view-panel="playground"] .workspace-history-search input,
  .app-shell .view[data-view-panel="playground"] .playground-parameter-section :is(input,select,textarea) { font-size: 16px; }
  .app-shell .view[data-view-panel="playground"] .workspace-history-note { font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] .workspace-attachment { max-width: 100%; }
  dialog.workspace-skills-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 24px); padding: 17px; border-radius: 13px; }
  .workspace-skills-dialog input[type="search"] { font-size: 16px; }
  .workspace-skills-dialog .workspace-skill-option { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .view[data-view-panel="playground"] :is(button,.workspace-picker-chevron) { transition: none; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions button:hover { transform: none; }
}

@media (min-width: 821px) and (max-height: 820px) {
  .app-shell .view[data-view-panel="playground"] .chat-stage { padding-top: 18px; padding-bottom: 18px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message { padding: 0 0 8px; }
  .app-shell .view[data-view-panel="playground"] .welcome-mark { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 12px; font-size: 22px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message h2 { margin-bottom: 6px; font-size: 22px; }
  .app-shell .view[data-view-panel="playground"] .welcome-message p { font-size: 11px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions { margin-top: 16px; }
  .app-shell .view[data-view-panel="playground"] .prompt-suggestions button { min-height: 42px; padding-block: 9px; }
  .app-shell .view[data-view-panel="playground"] .composer-shell { padding-block: 9px; }
}
dialog.workspace-skills-dialog { padding:22px; border-color:#e5e7eb; border-radius:16px; color:#525252; box-shadow:0 24px 70px -20px rgba(15,23,42,.3); }
dialog.workspace-skills-dialog::backdrop { background:rgba(15,23,42,.28); backdrop-filter:blur(4px); }
.workspace-skills-dialog .workspace-skills-heading h2 { color:#171717; font-weight:650; letter-spacing:-.02em; }
.workspace-skills-dialog .workspace-skills-heading > button { border:1px solid #e5e7eb; border-radius:9px; background:#fff; color:#737373; }
.workspace-skills-dialog input[type="search"] { border-color:#dfe3e8; border-radius:9px; color:#171717; }
.workspace-skills-dialog input[type="search"]:focus { border-color:#adb5e5; box-shadow:0 0 0 3px rgba(99,102,241,.12); }
.workspace-skills-dialog .workspace-skill-option { border-color:#e5e7eb; border-radius:10px; color:#525252; }
.workspace-skills-dialog .workspace-skill-option:hover:not(:disabled) { border-color:#d4d4d4; background:#fafafa; }
.workspace-skills-dialog .workspace-skill-option.selected,
.workspace-skills-dialog .workspace-skill-option[aria-pressed="true"] { border-color:rgba(173,181,229,.85); background:rgba(238,240,255,.72); color:#4d5bc0; }
.workspace-skills-dialog .workspace-skill-option[aria-pressed="true"]::after { color:#5968ce; }
.workspace-skills-dialog .workspace-skills-pagination { border-top-color:#ededed; }
.workspace-skills-dialog .workspace-skills-pagination button { border-color:#e5e7eb; border-radius:8px; color:#525252; }
.workspace-skills-dialog .workspace-skills-pagination button:hover:not(:disabled) { background:#f5f5f5; }
@media(max-width:640px) { dialog.workspace-skills-dialog { border-radius:14px; } }
