.st-workbench .sa-panel {
  color: #183b4a;
  border: 1px solid #b9d5dc;
  border-radius: 14px;
  background: #fbfdfd;
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-margin: 1rem;
}
.sa-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: .8rem;
  padding: .8rem clamp(.85rem, 2.1vw, 1.8rem);
  border-radius: inherit;
  background: linear-gradient(100deg, #edf7f8, #f9fcfd 66%);
}
.sa-summary::-webkit-details-marker { display: none; }
.sa-summary:hover { background: #eff7f9; }
.sa-identity { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1; }
.sa-mark {
  width: 2.4rem; height: 2.4rem; flex: none; display: grid; place-items: center;
  border: 1px solid #39808c; border-radius: .65rem; color: #fff;
  background: linear-gradient(140deg, #214859, #187487); font: 650 .88rem/1 ui-monospace, monospace;
}
.sa-title { display: grid; gap: .16rem; }
.sa-title strong { color: #123949; font-size: clamp(1.04rem, 1.5vw, 1.25rem); }
.sa-title small, .sa-help { color: #4e6874; font-size: .79rem; line-height: 1.5; }
.sa-connection { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .74rem; color: #426475; }
.sa-connection::before { content: ''; width: .38rem; height: .38rem; border-radius: 50%; background: #788b95; }
.sa-connection[data-state='ready']::before { background: #007d74; }
.sa-chevron { flex: none; width: 8px; height: 8px; border: solid #406472; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .16s ease; margin: 0 .2rem .2rem 0; }
.sa-panel[open] .sa-chevron { transform: rotate(225deg); margin-bottom: -.2rem; }
.sa-body { padding: .9rem clamp(.85rem, 2.1vw, 1.8rem) 1rem; border-top: 1px solid #d7e5e9; }
.sa-form { display: grid; gap: .6rem; }
.sa-prompts, .sa-sources { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.sa-prompt, .sa-retry, .st-workbench .sa-launch {
  border: 1px solid #bdd3db; color: #175b6e; background: #f6fafb;
  border-radius: 7px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 650; padding: .39rem .6rem;
}
.st-workbench .sa-launch { min-height: 40px; padding: .42rem .8rem; }
.sa-prompt:hover:enabled, .sa-retry:hover, .sa-launch:hover { background: #e7f2f5; border-color: #719fac; }
.sa-label { display: grid; gap: .3rem; color: #264f5d; font-weight: 650; font-size: .85rem; }
.sa-question {
  box-sizing: border-box; width: 100%; min-height: 72px; resize: vertical; border: 1px solid #9bb8c3;
  border-radius: 8px; background: #fff; color: #163746; font: inherit; font-weight: 420; font-size: 1rem; line-height: 1.6; padding: .65rem .8rem;
}
.sa-foot { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sa-share { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; color: #355866; cursor: pointer; }
.sa-share input { width: 1rem; height: 1rem; margin: 0; accent-color: #176b79; }
.st-workbench .sa-send:disabled { background: #deeaed; color: #46626d; cursor: default; border-color: #c6d6dc; }
.sa-help { margin: 0; }
.sa-alert { margin: .5rem 0 0; font-size: .82rem; color: #315769; }
.sa-alert:empty, .sa-transcript:empty { display: none; }
.sa-retry { margin-top: .4rem; }
.sa-transcript { display: grid; gap: .9rem; margin-bottom: 1.05rem; }
.sa-turn { display: grid; gap: .4rem; scroll-margin: 1rem; }
.sa-user { justify-self: end; background: #e8f3f5; border-radius: 9px 9px 2px 9px; padding: .48rem .75rem; margin: 0; max-width: 92%; font-size: .86rem; white-space: pre-wrap; }
.sa-answer { border-left: 2px solid #75adbc; padding: .2rem 0 .22rem .75rem; font-size: .9rem; line-height: 1.65; max-width: 84ch; }
.sa-answer h3 { font-size: .75rem; color: #35606d; margin: 0 0 .32rem; }
.sa-answer .sa-model { font-size: .74rem; color: #506c77; margin: -.18rem 0 .45rem; }
.sa-answer h4, .sa-answer p, .sa-answer ul { margin: 0 0 .43rem; }
.sa-answer ul { padding-left: 1.2rem; }
.sa-answer code { background: #eaf1f3; border-radius: 3px; padding: 0 .2rem; }
.sa-sources { margin-top: .5rem; padding-top: .4rem; border-top: 1px solid #dbe7eb; }
.sa-sources strong { font-size: .76rem; color: #4b6873; }
.sa-source { color: #145d73; text-decoration: underline; text-underline-offset: .16rem; font-size: .78rem; padding: .12rem .24rem; }
.sa-panel :focus-visible, .st-workbench .sa-launch:focus-visible { outline: 2px solid #216d83; outline-offset: 2px; }
.sa-question:focus-visible { outline-offset: 0; }
@media(max-width: 490px) {
  .sa-summary { gap: .45rem; }
  .sa-identity { gap: .5rem; }
  .sa-mark { width: 1.8rem; height: 2rem; font-size: .72rem; }
  .sa-title small { font-size: .72rem; }
  .sa-connection { font-size: .7rem; }
  .sa-prompt { min-height: 32px; }
  .st-workbench .st-apply .sa-launch { min-height: 40px; }
}
@media(prefers-reduced-motion: reduce) { .sa-chevron { transition: none; } }
.sa-send-actions, .sa-price-actions { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sa-quota { display: inline-block; margin-left: .35em; font-weight: 600; color: #355866; }
.sa-send-actions .sa-retry { margin: 0; }
.sa-body [hidden] { display: none; }
.sa-price-link { color: #15586b; background: #eff7f9; border: 1px solid #bcd5dc; border-radius: 7px; padding: .36rem .68rem; font-size: .8rem; font-weight: 650; text-decoration: none; }
.sa-price-link:focus-visible { outline: 2px solid #216d83; outline-offset: 2px; }
