/* 可交互客户端演示：所有界面均为 HTML/CSS，数据在 js/content.js。 */
.demo-switcher {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  width: max-content;
  border: 1px solid #0000000d;
  background: #ffffff75;
  border-radius: 99px;
  margin: 20px auto 18px;
}
.demo-switcher button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 23px;
  min-height: 42px;
  font-size: 13px;
  color: #626371;
  background: transparent;
  border-radius: 99px;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.demo-switcher button img {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}
.demo-switcher button[aria-selected="true"] {
  background: #fff;
  color: #16161b;
  box-shadow: 0 1px 5px #171b3620;
}
.demo-window {
  border: 1px solid #d7d9e1;
  border-radius: 17px;
  overflow: hidden;
  height: 620px;
  background: #fff;
  box-shadow:
    0 30px 80px #23305c1a,
    0 5px 20px #23305c08;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.demo-section > .demo-window { margin-top: var(--space-4); }
.window-bar {
  height: 38px;
  min-height: 38px;
  background: #fbfbfc;
  display: flex;
  align-items: center;
  padding: 0 17px;
  position: relative;
  border-bottom: 1px solid #e8e8ed;
  font-size: 10px;
  color: #74747f;
}
.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 70px;
}
.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dddde2;
}
.window-dots i:first-child {
  background: #e8adab;
}
.window-dots i:nth-child(2) {
  background: #e8d49b;
}
.window-dots i:nth-child(3) {
  background: #afd1b2;
}
#window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.25px;
}
.demo-badge {
  margin-left: auto;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-badge i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #9797a2;
}
.demo-panel {
  flex: 1;
  min-height: 0;
}
.task-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}
.client-sidebar,
.model-sidebar {
  display: flex;
  flex-direction: column;
  background: #f6f6f8;
  border-right: 1px solid #e6e6eb;
  padding: 20px 12px 14px;
  min-height: 0;
}
.client-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "OpenAI Sans", sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 0 5px;
}
.client-brand > img {
  width: 24px;
  height: 24px;
}
.client-brand .icon-button {
  width: 25px;
  height: 27px;
  margin-left: auto;
}
.client-brand .icon-button img {
  width: 15px;
  height: 15px;
  opacity: 0.55;
}
.new-task {
  margin-top: 23px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  text-align: left;
  background: #ffffffb3;
  border: 1px solid #e3e3e8;
  border-radius: 7px;
  padding: 9px 10px;
  min-height: 36px;
}
.new-task:hover {
  background: #fff;
}
.new-task img {
  width: 15px;
  height: 15px;
}
.sidebar-label {
  font-size: 10px;
  color: #92929b;
  margin: 27px 10px 9px;
  line-height: 1.4;
}
.case-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-list button,
.sidebar-folder,
.sidebar-bottom > button,
.model-sidebar > button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 11px 10px;
  text-align: left;
  border-radius: 7px;
  background: transparent;
  white-space: nowrap;
}
.case-list button img,
.sidebar-folder > img,
.sidebar-bottom > button img,
.model-sidebar > button img {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}
.case-list button:hover,
.sidebar-bottom > button:hover,
.model-sidebar > button:hover {
  background: #eaeaf0;
}
.case-list button.is-active,
.model-sidebar > button.is-active {
  background: #e8e8ed;
}
.sidebar-folder {
  color: #7c7c85;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.sidebar-bottom > button {
  width: 100%;
}
.connected-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 10px;
  font-size: 9px;
  color: #91919a;
  white-space: nowrap;
}
.connected-label i,
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6e8b76;
  flex-shrink: 0;
}
.client-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.task-header {
  height: 47px;
  min-height: 47px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f3;
  font-size: 12px;
  font-weight: 500;
}
.task-header > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #6e8174;
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
}
.task-status i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.task-status.is-working {
  color: #7c83ad;
}
.scenario-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 43px;
  padding: 5px 20px;
}
.scenario-tabs button {
  padding: 6px 10px;
  font-size: 10px;
  color: #80808a;
  border-radius: 6px;
  background: transparent;
  min-height: 30px;
}
.scenario-tabs button:hover {
  background: #f5f5f8;
}
.scenario-tabs button.is-active {
  color: #282833;
  background: #f0f0f4;
}
.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
  padding: 6px 22px 22px;
}
.conversation {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.user-message {
  padding: 13px 14px;
  background: #f3f3f6;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 22px;
}
.assistant-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "OpenAI Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.assistant-label img {
  width: 16px;
  height: 16px;
}
.assistant-intro {
  font-size: 11px;
  line-height: 1.95;
  color: #686875;
  margin-top: 11px;
}
.execution-steps {
  margin: 18px 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.execution-steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  line-height: 1.65;
  color: #9999a2;
  transition: color 0.25s;
}
.execution-steps li img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.28;
}
.execution-steps li.is-done {
  color: #72727e;
}
.execution-steps li.is-done img {
  opacity: 0.6;
}
.execution-steps li.is-running {
  color: #343444;
}
.execution-steps li.is-running img {
  opacity: 0.8;
  animation: taskPulse 1.2s ease-in-out infinite;
}
.file-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.file-list span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 9px;
  padding: 5px 6px;
  background: #fafafa;
  border: 1px solid #ebebf0;
  border-radius: 5px;
  color: #73737e;
}
.file-list img {
  width: 11px;
  height: 11px;
  opacity: 0.7;
}
.composer {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f7f7f9;
  border: 1px solid #e7e7ed;
  border-radius: 10px;
  margin-top: auto;
  padding: 8px 9px 8px 12px;
  min-height: 44px;
}
.composer > span {
  color: #9999a3;
  font-size: 10px;
}
.composer > .icon-button {
  margin-left: auto;
  background: #18181c;
  border-radius: 50%;
  width: 25px;
  height: 25px;
}
.composer > .icon-button img {
  filter: invert(1);
  width: 13px;
  height: 13px;
}
.result-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #f9f9fb;
  border: 1px solid #e5e5eb;
  border-radius: 10px;
  overflow: hidden;
}
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 11px;
  background: #f6f6f9;
  border-bottom: 1px solid #e6e6ed;
  font-size: 9px;
  color: #7a7a86;
}
.result-toolbar > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-toolbar img {
  width: 13px;
  height: 13px;
}
.result-toolbar > div {
  display: flex;
  gap: 2px;
}
.result-toolbar button {
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  background: transparent;
  color: #8a8a96;
}
.result-toolbar button.is-active {
  background: #fff;
  color: #282833;
  box-shadow: 0 1px 4px #00000009;
}
.result-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #d9d9e0 transparent;
}
.result-caption {
  padding: 10px 11px;
  font-size: 9px;
  line-height: 1.6;
  color: #90909a;
  background: #fafafa;
  border-top: 1px solid #ececf1;
}
.sample-address {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #a0a0a8;
  font-size: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f3;
}
.sample-address i {
  height: 3px;
  width: 3px;
  background: #b5b5bc;
  border-radius: 50%;
}
.sample-address img {
  width: 10px;
  height: 10px;
  margin-left: auto;
  opacity: 0.45;
}
.sample-site {
  background: #f4f3ed;
  color: #292a22;
  padding: 0 22px;
}
.sample-nav {
  height: 43px;
  border-bottom: 1px solid #3533291c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sample-nav strong {
  font-family: "OpenAI Sans", sans-serif;
  font-size: 17px;
  letter-spacing: -1px;
  font-weight: 600;
}
.sample-nav strong > span {
  font-size: 8px;
  vertical-align: top;
  letter-spacing: 0;
  margin-left: 2px;
}
.sample-nav > span {
  font-size: 7px;
  color: #858579;
}
.sample-site-hero {
  padding: 23px 0 27px;
}
.sample-eyebrow {
  font-size: 6px;
  letter-spacing: 1.8px;
  color: #929184;
}
.sample-site-hero h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -1.3px;
  margin: 12px 0 11px;
}
.sample-site-hero p {
  font-size: 8px;
  color: #828276;
}
.sample-site-hero > a {
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  background: #303128;
  border-radius: 3px;
  color: #fff;
  padding: 8px 9px;
  font-size: 7px;
  margin-top: 16px;
}
.sample-site-hero > a img {
  width: 11px;
  height: 11px;
  filter: invert(1);
}
.sample-work {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #35332920;
  font-size: 7px;
  color: #858578;
}
.sample-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-bottom: 18px;
}
.sample-projects > div {
  background: #d5d9ca;
  padding: 10px 11px;
  min-height: 98px;
}
.sample-projects > div + div {
  background: #dbd5c9;
}
.sample-projects span {
  font-size: 5px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 13px;
}
.sample-projects strong {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.06;
  font-weight: 400;
}
.code-file {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 13px 12px;
  font-size: 10px;
  color: #686872;
}
.code-file > img {
  width: 14px;
  height: 14px;
}
.code-file > span {
  margin-left: auto;
  color: #73907a;
  font-size: 9px;
}
.diff-code {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  line-height: 1.85;
  white-space: pre;
  overflow: auto;
}
.diff-code > div {
  padding: 1px 12px;
}
.diff-context {
  color: #858593;
}
.diff-add {
  background: #ecf5ed;
  color: #3f7150;
}
.diff-remove {
  background: #fae9e8;
  color: #ab6d68;
}
.test-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px 12px;
}
.test-results > span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #688470;
  font-size: 10px;
}
.test-results img {
  height: 13px;
  width: 13px;
  opacity: 0.65;
}
.test-results p {
  font-size: 9px;
  color: #a0a0aa;
  margin-top: 3px;
}
.data-result {
  padding: 15px 13px;
}
.data-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
}
.data-heading > img {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}
.data-heading > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.data-heading strong {
  font-size: 12px;
  font-weight: 500;
}
.data-heading div > span {
  font-size: 8px;
  color: #9a9aa3;
}
.clean-badge {
  margin-left: auto;
  background: #eff6f0;
  color: #799480;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 8px;
}
.data-result table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 9px;
}
.data-result th {
  font-weight: 400;
  color: #9b9ba5;
  background: #f8f8fa;
  padding: 9px 7px;
}
.data-result td {
  padding: 10px 7px;
  border-bottom: 1px solid #eeeef3;
  color: #6e6e7b;
}
.data-result th:not(:first-child),
.data-result td:not(:first-child) {
  text-align: right;
}
.data-chart {
  display: flex;
  align-items: stretch;
  gap: 18px;
  height: 136px;
  padding: 12px 12px 0;
  margin-top: 12px;
}
.data-chart > span {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.data-chart b {
  font-size: 8px;
  font-weight: 400;
  color: #828394;
}
.data-chart i {
  display: block;
  width: 100%;
  height: calc(var(--bar) * 0.66);
  min-height: 15px;
  background: #a9b5d2;
  border-radius: 3px 3px 0 0;
}
.data-chart > span:nth-child(2) i {
  background: #bcc5dc;
}
.data-chart > span:nth-child(3) i {
  background: #ccd3e5;
}
.data-chart > span:nth-child(4) i {
  background: #dde1ed;
}
.data-chart small {
  font-size: 7px;
  white-space: nowrap;
  color: #9898a3;
  margin-top: 4px;
}
.file-preview {
  margin: 0;
  padding: 18px 14px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #5b6076;
  background: #fbfbfd;
  min-height: 100%;
}
.running-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  backdrop-filter: blur(3px);
  background: #ffffffc4;
  color: #7e8196;
  font-size: 11px;
}
.activity-spinner {
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 1.5px solid #cbd0e1;
  border-top-color: #737ea7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.window-status {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #e8e8ed;
  background: #fbfbfc;
  padding: 0 17px;
  font-size: 9px;
  color: #92929e;
}
.window-status > div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.playback-controls {
  display: flex;
  gap: 9px;
  margin-left: auto;
  align-items: center;
}
.playback-controls button {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 5px;
  background: transparent;
  color: #73737f;
  font-size: 10px;
}
.playback-controls button:hover {
  background: #ededf2;
}
.playback-controls img {
  width: 12px;
  height: 12px;
  opacity: 0.75;
}
.local-demo-label {
  margin-left: auto;
  font-size: 9px;
}
.task-panel.sidebar-collapsed {
  grid-template-columns: 56px minmax(0, 1fr);
}
.task-panel.sidebar-collapsed .client-sidebar {
  padding-inline: 9px;
}
.task-panel.sidebar-collapsed .client-brand {
  font-size: 0;
  padding: 0;
}
.task-panel.sidebar-collapsed .client-brand > img,
.task-panel.sidebar-collapsed .new-task,
.task-panel.sidebar-collapsed .sidebar-label,
.task-panel.sidebar-collapsed .case-list,
.task-panel.sidebar-collapsed .workspace-label,
.task-panel.sidebar-collapsed .sidebar-bottom {
  display: none;
}
.task-panel.sidebar-collapsed .client-brand .icon-button {
  width: 36px;
  height: 36px;
  margin: 0;
}
.model-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}
.model-sidebar > strong {
  font-family: "OpenAI Sans", sans-serif;
  font-size: 18px;
  letter-spacing: -0.7px;
  margin: 5px 10px 16px;
  font-weight: 600;
}
.model-sidebar > button {
  font-size: 12px;
  min-height: 41px;
  margin-bottom: 5px;
}
.management-main {
  padding: 29px 38px 25px;
  overflow: auto;
  min-width: 0;
  scrollbar-width: thin;
}
.management-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.management-header .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #a2a2ab;
  margin-bottom: 9px;
}
.management-header h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.4;
}
.subtle-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e7e7ed;
  border-radius: 7px;
  background: white;
  white-space: nowrap;
  font-size: 10px;
  color: #757581;
  min-height: 33px;
}
.subtle-button:hover {
  background: #f7f7fa;
}
.subtle-button img {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}
.management-description {
  font-size: 12px;
  color: #8b8b97;
  line-height: 1.75;
  margin-top: 10px;
}
.connection-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 24px;
}
.connection-options > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #e5e5eb;
  border-radius: 10px;
  padding: 17px;
  background: #fff;
  min-height: 119px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.connection-options > button.is-active {
  background: #fafaff;
  border-color: #a2adc9;
  box-shadow: 0 0 0 1px #bac3da30;
}
.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #f0f1f5;
  border-radius: 7px;
  margin-bottom: 10px;
}
.option-icon > img {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}
.connection-options strong {
  font-size: 13px;
  font-weight: 500;
}
.connection-options > button > span:last-of-type {
  font-size: 10px;
  color: #9a9aa5;
  margin-top: 6px;
}
.radio-indicator {
  position: absolute;
  right: 15px;
  top: 18px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #d4d6df;
}
.is-active > .radio-indicator {
  border: 4px solid #7884a6;
}
.connection-fields {
  border: 1px solid #e9e9ef;
  border-radius: 9px;
  margin-top: 18px;
  padding: 0 16px;
}
.field-row {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #8b8b98;
}
.field-row + .field-row {
  border-top: 1px solid #ededf2;
}
.field-row > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "OpenAI Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #656572;
}
.field-row > strong img {
  width: 16px;
  height: 16px;
}
.field-row select,
.usage-filters select {
  color: #686876;
  border: 1px solid #e2e2e9;
  border-radius: 5px;
  font-size: 10px;
  padding: 6px 23px 6px 9px;
  max-width: 64%;
  background: #fff;
}
.field-row input {
  background: #fafafa;
  border: 1px solid #e6e6ed;
  border-radius: 5px;
  max-width: 70%;
  padding: 7px 10px;
  color: #9999a4;
  font-family: Consolas, monospace;
  font-size: 11px;
}
.key-row {
  flex-wrap: wrap;
  padding: 10px 0;
  row-gap: 6px;
}
.key-row small {
  display: block;
  width: 100%;
  font-size: 9px;
  color: #a3a3ad;
  text-align: right;
}
.connection-fields details {
  border-top: 1px solid #ededf2;
}
.connection-fields summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: 10px;
  color: #9696a1;
  min-height: 38px;
}
.connection-fields summary::-webkit-details-marker {
  display: none;
}
.connection-fields summary img {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.connection-fields details[open] summary img {
  transform: rotate(180deg);
}
.connection-fields details .field-row {
  font-size: 10px;
  min-height: 38px;
}
.connect-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-top: 21px;
}
.connect-actions > span {
  font-size: 10px;
  color: #9393a0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.connect-actions > span > i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #a7a7b5;
}
.connect-actions > span.is-connected {
  color: #708577;
}
.connect-actions > span.is-connected > i {
  background: #789580;
}
.connect-actions .button {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 17px;
}
.connect-actions .button img {
  width: 13px;
  height: 13px;
}
.usage-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 27px;
}
.usage-filters select {
  font-size: 11px;
  min-height: 32px;
}
.usage-filters > div {
  display: flex;
  background: #f5f5f8;
  padding: 3px;
  border-radius: 7px;
  gap: 2px;
}
.usage-filters button {
  padding: 7px 14px;
  background: transparent;
  border-radius: 5px;
  color: #8c8c99;
  font-size: 10px;
}
.usage-filters button.is-active {
  background: white;
  box-shadow: 0 1px 3px #0000000c;
  color: #414151;
}
.usage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid #eeeef3;
  padding: 28px 0 23px;
}
.usage-stats > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.usage-stats > div > span {
  font-size: 10px;
  color: #9898a4;
}
.usage-stats strong {
  font-family: "OpenAI Sans", sans-serif;
  font-weight: 400;
  letter-spacing: -1px;
  font-size: 30px;
  line-height: 1.1;
}
.usage-stats strong > span {
  font-size: 15px;
  color: #b0b0bc;
  margin-left: 3px;
}
.usage-stats > div:last-child strong {
  font-size: 23px;
  line-height: 1.43;
  letter-spacing: -0.7px;
}
.usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  height: 209px;
  padding: 26px 5px 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 49px,
    #f1f1f5 49px,
    #f1f1f5 50px
  );
  background-position: 0 -23px;
}
.usage-chart > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.usage-chart b {
  font-size: 9px;
  font-weight: 400;
  color: #9595a3;
}
.usage-chart i {
  display: block;
  width: min(44px, 100%);
  height: var(--height);
  border-radius: 5px 5px 1px 1px;
  background: #a4b1d1;
  transition: height 0.4s;
}
.usage-chart > div:nth-child(even) i {
  background: #bdc7de;
}
.usage-chart span {
  font-size: 9px;
  color: #a3a3ae;
  white-space: nowrap;
}
.usage-note {
  font-size: 9px;
  color: #b3b3bc;
  margin-top: 16px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes taskPulse {
  50% {
    opacity: 0.35;
  }
}
@media (max-width: 1100px) {
  .task-panel,
  .model-panel {
    grid-template-columns: 164px minmax(0, 1fr);
  }
  .client-sidebar,
  .model-sidebar {
    padding-inline: 9px;
  }
  .case-list button {
    font-size: 10px;
    padding-inline: 8px;
  }
  .task-layout {
    gap: 14px;
    padding: 6px 16px 18px;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
  .task-header {
    padding-inline: 16px;
  }
  .scenario-tabs {
    padding-inline: 12px;
  }
  .management-main {
    padding: 26px;
  }
  .sample-site {
    padding-inline: 16px;
  }
  .sample-site-hero h3 {
    font-size: 29px;
  }
  .management-header h3 {
    font-size: 20px;
  }
  .connection-options {
    gap: 10px;
  }
  .connection-options > button {
    padding: 15px;
  }
}
@media (max-width: 900px) and (min-width: 761px) {
  .task-panel,
  .model-panel {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .client-brand {
    font-size: 15px;
    gap: 5px;
  }
  .client-brand > img {
    width: 20px;
    height: 20px;
  }
  .client-brand .icon-button {
    display: none;
  }
  .case-list button {
    font-size: 9px;
    gap: 5px;
  }
  .case-list button img {
    width: 12px;
    height: 12px;
  }
  .connected-label {
    font-size: 8px;
    margin-left: 7px;
  }
  .sidebar-folder {
    font-size: 10px;
  }
  .task-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr);
    gap: 10px;
    padding-inline: 12px;
  }
  .user-message {
    font-size: 11px;
    padding: 10px;
  }
  .assistant-intro {
    font-size: 10px;
  }
  .execution-steps li {
    font-size: 9px;
  }
  .file-list {
    gap: 4px;
  }
  .file-list span {
    font-size: 8px;
  }
  .management-main {
    padding: 23px;
  }
  .management-header h3 {
    font-size: 18px;
  }
  .connection-options strong {
    font-size: 12px;
  }
  .sample-site-hero h3 {
    font-size: 25px;
  }
  .sample-projects strong {
    font-size: 18px;
  }
  .sample-site {
    padding-inline: 12px;
  }
  .sample-nav > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .demo-section > .demo-window { margin-top: 20px; }
  .demo-switcher {
    margin: 24px auto 20px;
  }
  .demo-switcher button {
    min-height: 40px;
    padding: 9px 19px;
    font-size: 12px;
  }
  .demo-window {
    height: 748px;
    border-radius: 12px;
    box-shadow: 0 20px 50px #23305c14;
  }
  .window-bar {
    height: 33px;
    min-height: 33px;
    padding-inline: 11px;
  }
  .window-dots {
    gap: 4px;
    width: 40px;
  }
  .window-dots i {
    width: 6px;
    height: 6px;
  }
  #window-title {
    font-size: 8px;
    left: 47%;
  }
  .demo-badge {
    font-size: 7px;
    gap: 4px;
  }
  .demo-badge i {
    display: none;
  }
  .demo-panel {
    min-height: 0;
  }
  .task-panel,
  .model-panel,
  .task-panel.sidebar-collapsed {
    display: block;
  }
  .client-sidebar,
  .model-sidebar {
    display: none;
  }
  .client-main {
    height: 100%;
  }
  .task-header {
    height: 43px;
    min-height: 43px;
    font-size: 12px;
    padding-inline: 15px;
  }
  .task-status {
    font-size: 9px;
  }
  .scenario-tabs {
    min-height: 47px;
    padding: 5px 11px;
    gap: 6px;
  }
  .scenario-tabs button {
    font-size: 11px;
    min-height: 36px;
    flex: 1;
    padding: 6px 10px;
  }
  .task-layout {
    display: flex;
    flex-direction: column;
    padding: 7px 13px 14px;
    gap: 14px;
    overflow: auto;
    min-height: 0;
  }
  .conversation {
    flex-shrink: 0;
    overflow: visible;
  }
  .user-message {
    font-size: 13px;
    line-height: 1.75;
    padding: 11px 13px;
    margin: 0 0 11px;
    border-radius: 8px;
  }
  .assistant-label,
  .assistant-intro,
  .composer,
  .file-list {
    display: none;
  }
  .execution-steps {
    margin: 0 0 1px;
    gap: 5px;
  }
  .execution-steps li {
    font-size: 11px;
    line-height: 1.55;
    gap: 7px;
  }
  .execution-steps li img {
    width: 12px;
    height: 12px;
  }
  .result-panel {
    flex: 1;
    min-height: 338px;
    flex-shrink: 0;
  }
  .result-toolbar {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 10px;
  }
  .result-toolbar button {
    font-size: 10px;
    min-height: 30px;
    padding: 5px 11px;
  }
  .result-body {
    min-height: 257px;
  }
  .result-caption {
    font-size: 9px;
    padding: 8px 10px;
  }
  .sample-site {
    padding: 0 21px;
  }
  .sample-address {
    font-size: 8px;
    padding: 6px 10px;
  }
  .sample-nav {
    height: 38px;
  }
  .sample-nav strong {
    font-size: 17px;
  }
  .sample-site-hero {
    padding: 19px 0 22px;
  }
  .sample-site-hero h3 {
    font-size: 32px;
  }
  .sample-site-hero p {
    font-size: 9px;
  }
  .sample-site-hero > a {
    font-size: 8px;
    margin-top: 13px;
    min-height: 31px;
  }
  .sample-site-hero > a img {
    width: 12px;
  }
  .sample-work {
    font-size: 8px;
  }
  .sample-projects {
    padding-bottom: 13px;
  }
  .sample-projects > div {
    min-height: 86px;
  }
  .sample-projects strong {
    font-size: 20px;
  }
  .sample-projects span {
    font-size: 6px;
    margin-bottom: 9px;
  }
  .sample-eyebrow {
    font-size: 7px;
  }
  .sample-nav > span {
    font-size: 8px;
  }
  .code-file {
    font-size: 11px;
  }
  .diff-code {
    font-size: 11px;
    line-height: 1.65;
  }
  .test-results {
    gap: 8px;
    padding: 14px 12px;
  }
  .test-results > span {
    font-size: 11px;
  }
  .test-results p {
    font-size: 9px;
  }
  .data-result table {
    font-size: 10px;
  }
  .data-result td {
    padding-block: 9px;
  }
  .data-heading strong {
    font-size: 13px;
  }
  .data-heading div > span {
    font-size: 9px;
  }
  .data-chart {
    height: 107px;
    gap: 15px;
    padding-top: 0;
  }
  .data-chart small {
    font-size: 8px;
  }
  .data-chart b {
    font-size: 9px;
  }
  .window-status {
    height: 40px;
    min-height: 40px;
    padding-inline: 11px;
    gap: 5px;
    font-size: 8px;
  }
  .playback-controls {
    gap: 3px;
  }
  .playback-controls button {
    font-size: 9px;
    min-height: 34px;
    padding: 4px 6px;
  }
  .playback-controls img {
    width: 11px;
    height: 11px;
  }
  .local-demo-label {
    display: none;
  }
  .management-main {
    padding: 25px 18px;
    min-height: 0;
    height: 100%;
  }
  .management-header {
    gap: 8px;
    align-items: flex-start;
  }
  .management-header h3 {
    font-size: 20px;
    max-width: 205px;
  }
  .management-header .eyebrow {
    font-size: 8px;
  }
  .management-description {
    font-size: 12px;
    line-height: 1.8;
    max-width: 320px;
  }
  .subtle-button {
    font-size: 10px;
    padding: 7px;
    min-height: 37px;
    gap: 4px;
    margin-top: 18px;
  }
  .subtle-button img {
    width: 12px;
  }
  .connection-options {
    gap: 10px;
    margin-top: 27px;
  }
  .connection-options > button {
    padding: 15px 12px;
    min-height: 125px;
  }
  .connection-options strong {
    font-size: 13px;
  }
  .connection-options > button > span:last-of-type {
    font-size: 10px;
    line-height: 1.6;
  }
  .radio-indicator {
    right: 12px;
    top: 19px;
  }
  .connection-fields {
    padding-inline: 12px;
    margin-top: 21px;
  }
  .field-row {
    font-size: 12px;
    min-height: 50px;
  }
  .field-row select {
    font-size: 11px;
    max-width: 64%;
    padding-right: 15px;
    min-height: 34px;
  }
  .field-row > strong {
    font-size: 13px;
  }
  .connection-fields summary {
    font-size: 11px;
    min-height: 44px;
  }
  .connection-fields details .field-row {
    font-size: 10px;
  }
  .field-row input {
    font-size: 11px;
    width: 69%;
    max-width: 69%;
    padding-inline: 7px;
  }
  .key-row small {
    font-size: 9px;
    line-height: 1.7;
  }
  .connect-actions {
    flex-wrap: wrap;
    margin-top: 23px;
    gap: 14px;
  }
  .connect-actions > span {
    font-size: 11px;
  }
  .connect-actions .button {
    min-height: 42px;
    font-size: 12px;
    padding: 10px 16px;
    margin-left: auto;
  }
  .usage-filters {
    margin-top: 26px;
  }
  .usage-filters select {
    font-size: 12px;
    min-height: 40px;
  }
  .usage-filters button {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 36px;
  }
  .usage-stats {
    gap: 10px;
    padding-block: 30px;
  }
  .usage-stats > div > span {
    font-size: 11px;
  }
  .usage-stats strong {
    font-size: 28px;
  }
  .usage-stats > div:last-child strong {
    font-size: 20px;
    line-height: 1.5;
  }
  .usage-chart {
    gap: 13px;
    height: 230px;
  }
  .usage-chart span {
    font-size: 9px;
  }
  .usage-chart b {
    font-size: 9px;
  }
  .usage-note {
    font-size: 10px;
    margin-top: 22px;
  }
  .file-preview {
    font-size: 12px;
  }
  .running-overlay {
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .demo-badge {
    font-size: 6px;
  }
  #window-title {
    font-size: 7px;
    left: 44%;
  }
  .management-main {
    padding-inline: 13px;
  }
  .management-header h3 {
    font-size: 18px;
  }
  .connection-options > button {
    padding-inline: 10px;
  }
  .connection-options strong {
    font-size: 12px;
  }
  .connection-options > button > span:last-of-type {
    font-size: 9px;
  }
  .task-header {
    font-size: 11px;
  }
  .window-status {
    font-size: 7px;
  }
  .playback-controls button {
    font-size: 8px;
  }
  .sample-site-hero h3 {
    font-size: 29px;
  }
}

/* Desktop readability refinement. */
@media (min-width: 761px) {
  .user-message { font-size: 14px; }
  .assistant-intro { font-size: 12px; }
  .execution-steps li { font-size: 12px; }
  .task-header { font-size: 14px; }
  .scenario-tabs button { font-size: 12px; min-height: 34px; }
  .case-list button, .new-task { font-size: 12px; }
  .sidebar-label { font-size: 11px; }
  .file-list span { font-size: 10px; }
  .composer > span { font-size: 12px; }
  .result-toolbar, .result-toolbar button { font-size: 11px; }
  .result-caption { font-size: 10px; }
  .demo-badge, .window-status { font-size: 10px; }
  .playback-controls button { font-size: 11px; }
}

.management-header h3 { text-wrap: balance; }
