/* Codex client shell: conversation first, expandable tool calls, optional artifact pane. */
.demo-window { height: 690px; border-radius: 15px; background: #fff; }
.window-bar { height: 37px; min-height: 37px; background: linear-gradient(90deg,#f1f1f3 208px,#fff 208px); border-bottom: 0; }
.window-dots i { width: 9px; height: 9px; }
.window-dots i:nth-child(1) { background: #ff6058; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #28c840; }
#window-title { color: #666; font-size: 11px; }
.demo-badge { color: #aaa; font-size: 9px; }
.task-workspace { grid-template-columns: 208px minmax(0,1fr); }
.task-workspace .client-sidebar { background: #f1f1f3; padding: 14px 12px 12px; border-right: 1px solid #e9e9eb; }
.task-workspace .client-brand { font-size: 19px; gap: 8px; padding: 0 7px; }
.task-workspace .client-brand > img { width: 22px; height: 22px; }
.task-workspace .new-task,.sidebar-action { display: flex; align-items: center; gap: 9px; width: 100%; background: transparent; border: 0; padding: 9px 8px; font-size: 12px; color: #343434; min-height: 37px; border-radius: 7px; }
.task-workspace .new-task { margin-top: 23px; }
.sidebar-action img { width: 16px; height: 16px; }
.task-workspace .new-task:hover,.sidebar-action:hover { background: #e6e6e9; }
.task-workspace .sidebar-label { font-size: 10px; color: #939395; margin: 26px 8px 7px; }
.sidebar-project { padding: 7px 5px; gap: 5px; font-size: 11px; color: #636367; }
.sidebar-project img:first-child { width: 10px; }
.sidebar-current { width: 100%; padding: 9px 9px 9px 23px; margin-top: 4px; background: #e3e3e7; border-radius: 7px; color: #37373b; text-align: left; font-size: 11px; line-height: 1.6; }
.sidebar-current:hover { background: #dadade; }
.sidebar-files button { font-size: 10px; color: #757579; min-height: 31px; padding-left: 10px; }
.files-pending { padding: 7px 10px; color: #aaa; font-size: 9px; }
.demo-window { scroll-margin-top: 85px; }
.execution-steps .tool-body button img { width: 12px; height: 12px; margin-left: auto; }
.client-sidebar .sidebar-bottom { padding-top: 14px; }
.client-sidebar .sidebar-bottom > button { font-size: 11px; color: #515155; padding-left: 8px; }
.client-account { display: flex; align-items: center; gap: 9px; padding: 15px 7px 0; font-size: 11px; color: #414145; }
.client-account > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #dcdce5; font-size: 12px; color: #676078; }
.client-account small { display: block; margin-top: 3px; font-size: 9px; color: #939397; }
.client-account .connected-label { margin: 3px 0 0; }
.execution-steps li img { flex-shrink: 0; margin: 0; }
.execution-steps li.is-running img { animation: none; }
.task-header { height: 42px; min-height: 42px; padding: 0 25px; font-size: 12px; border-bottom: 1px solid #f2f2f2; gap: 11px; }
.task-header > span:first-child { min-width: 0; }
.task-status { font-size: 9px; color: #999; }
.task-status i { background: #8c9b8f; }
.client-result-toggle { display: flex; align-items: center; gap: 6px; min-height: 28px; flex-shrink: 0; padding: 4px 8px; border-radius: 6px; border: 1px solid #e8e8e8; background: #fff; color: #666; font-size: 10px; }
.client-result-toggle img { width: 13px; height: 13px; opacity: .7; }
.client-result-toggle:hover { background: #f5f5f5; }
.client-result-toggle[aria-expanded="true"] { background: #f2f2f2; color: #222; }
.task-layout { grid-template-columns: minmax(0,1fr); padding: 0; gap: 0; }
.conversation-column { width: 100%; max-width: 790px; margin: 0 auto; padding: 0 40px; min-height: 0; }
.conversation { padding: 27px 5px 16px; gap: 0; }
.user-message { align-self: flex-end; max-width: 89%; padding: 12px 17px; border-radius: 17px; margin-bottom: 26px; background: #f4f4f4; color: #303030; font-size: 13px; line-height: 1.85; }
.task-inputs { margin-top: 10px; gap: 5px; }
.task-inputs span { border-color: #e6e6e6; background: #fafafa; color: #8a8a8a; font-size: 9px; border-radius: 5px; }
.assistant-intro { margin: 0 0 16px; color: #3b3b3b; font-size: 13px; line-height: 1.9; }
.execution-history { flex-shrink: 0; margin: 0 0 15px; color: #8c8c8c; }
.execution-history > summary { display: flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; list-style: none; cursor: pointer; font-size: 11px; line-height: 1.8; padding: 5px 0; }
.execution-history > summary::-webkit-details-marker,.tool-call > summary::-webkit-details-marker { display: none; }
.execution-history > summary::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); margin-left: 3px; }
.execution-history[open] > summary::after { transform: rotate(45deg); }
.execution-history > summary:hover { color: #303030; }
.execution-steps { list-style: none; display: flex; flex-direction: column; margin: 13px 0 0; gap: 18px; }
.execution-steps li { display: block; padding: 0; margin: 0; color: #363636; font-size: 13px; line-height: 1.9; }
.execution-steps li::after { display: none; }
.execution-steps li > p { margin: 0 0 9px; color: #404040; font-size: 13px; line-height: 1.85; }
.tool-call { font-size: 11px; color: #888; }
.tool-call summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; padding: 3px 0; font-size: 11px; }
.tool-call summary > img { width: 13px; height: 13px; opacity: .6; }
.tool-call summary > .tool-chevron { width: 12px; margin-left: 1px; }
.tool-call[open] .tool-chevron { transform: rotate(90deg); }
.tool-call summary:hover { color: #292929; }
.tool-running { animation: clientShimmer 1.8s ease-in-out infinite; }
.tool-body { margin-top: 8px; border: 1px solid #e9e9e9; border-radius: 8px; overflow: hidden; background: #fafafa; }
.tool-command { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-bottom: 1px solid #ededed; font-size: 9px; color: #929292; }
.tool-command img { width: 12px; height: 12px; opacity: .65; }
.tool-command span:last-child { margin-left: auto; }
.tool-body pre { padding: 11px 12px; margin: 0; font: 10px/1.8 Consolas,monospace; color: #626262; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.tool-output-line { display: block; min-height: 1.8em; }
.tool-body pre .diff-plus { display: block; color: #35825c; background: #eaf5ee; }
.tool-body pre .diff-minus { display: block; color: #a06060; background: #faeeee; }
.execution-steps .tool-body button { width: 100%; display: flex; align-items: center; padding: 7px 11px; min-height: 29px; font-size: 10px; font-weight: 400; color: #7d7d7d; border-top: 1px solid #ededed; background: #fafafa; }
.execution-steps .tool-body button:hover { color: #222; background: #f1f1f1; }
.task-conclusion { margin: 0 0 12px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.task-conclusion > p { margin: 0; color: #353535; font-size: 13px; line-height: 1.9; }
.task-deliverables { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 0 15px; }
.task-deliverables button { display: flex; align-items: center; gap: 5px; padding: 0; background: transparent; border-bottom: 1px solid #d4d4d4; color: #686868; font-size: 11px; line-height: 1.7; }
.task-deliverables img { width: 12px; height: 12px; opacity: .65; }
.review-artifacts { width: 100%; display: flex; align-items: center; gap: 9px; padding: 13px 12px; border: 1px solid #e9e9e9; border-radius: 10px; background: #fafafa; color: #555; font-size: 11px; text-align: left; }
.review-artifacts:hover { background: #f2f2f2; }
.review-artifacts > img { width: 17px; height: 17px; opacity: .7; }
.artifact-review { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #939393; font-size: 10px; white-space: nowrap; }
.artifact-review img { width: 12px; height: 12px; opacity: .7; }
.client-working { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 1px 0 14px; color: #8c8c8c; font-size: 11px; }
.client-working i { width: 6px; height: 6px; background: #666; border-radius: 50%; animation: clientShimmer 1.5s ease-in-out infinite; }
.client-composer { flex-shrink: 0; border: 1px solid #e2e2e2; border-radius: 18px; background: #fff; box-shadow: 0 3px 10px #00000006; padding: 13px 13px 9px; }
.composer-placeholder { color: #aaa; font-size: 12px; line-height: 1.7; padding: 1px 2px 16px; }
.composer-toolbar { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.composer-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #747474; background: transparent; border-radius: 6px; min-height: 28px; font-size: 10px; padding: 0 4px; }
.composer-toolbar button:hover { background: #f2f2f2; }
.composer-attachment img { width: 18px; height: 18px; }
.composer-model img { width: 10px; height: 10px; opacity: .6; }
.composer-context { color: #aaa; font-size: 10px; margin-left: 2px; }
.composer-toolbar .composer-send { width: 29px; min-height: 29px; margin-left: auto; border-radius: 50%; background: #202020; padding: 7px; }
.composer-toolbar .composer-send:hover { background: #454545; }
.composer-send img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.client-context { display: flex; justify-content: space-between; padding: 9px 4px 12px; font-size: 9px; color: #999; flex-shrink: 0; }
.client-context span { display: flex; align-items: center; gap: 5px; }
.client-context img { width: 11px; height: 11px; opacity: .5; }
.show-latest { bottom: 133px; width: 29px; height: 29px; min-height: 29px; padding: 0; display: grid; place-items: center; border-color: #e3e3e3; color: #888; font-size: 15px; box-shadow: 0 2px 8px #0000000a; }
.task-panel.result-open .task-layout { grid-template-columns: minmax(0,1fr) minmax(0,.95fr); }
.task-panel.result-open .conversation-column { padding: 0 23px; }
.task-panel.result-open .conversation { padding-top: 22px; }
.task-panel.result-open .user-message { max-width: 96%; }
.task-panel .result-panel { border-radius: 0; border: 0; border-left: 1px solid #e8e8e8; background: #fff; }
.result-toolbar { min-height: 43px; border-bottom-color: #e9e9e9; background: #fafafa; font-size: 10px; gap: 5px; padding: 6px 11px; }
.result-toolbar > span { font-size: 10px; white-space: nowrap; }
.result-toolbar > div { margin-left: auto; }
.result-toolbar button { font-size: 10px; min-height: 28px; padding: 5px 8px; }
.result-toolbar .close-result { padding: 5px; min-width: 25px; }
.close-result img { width: 13px; height: 13px; opacity: .65; }
.result-toolbar button.is-active { background: #ebebeb; color: #444; }
.result-caption { background: #fafafa; color: #999; }
.task-panel.sidebar-collapsed .client-brand > span { display: none; }
.task-panel.sidebar-collapsed .client-brand { padding: 0; }
.task-panel.sidebar-collapsed .client-brand > img { display: none; }
.task-panel.sidebar-collapsed .client-brand .sidebar-toggle { margin: 0 auto; }

/* The case selector belongs to the landing page, outside the client window. */
.scenario-strip { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-top: 24px; padding: 0; border: 0; background: transparent; }
.scenario-strip button { min-height: 62px; padding: 12px 10px; gap: 10px; color: #66677a; border: 1px solid #dce0ec; border-radius: 12px; background: #ffffff78; box-shadow: none; backdrop-filter: blur(10px); font-size: 13px; }
.scenario-strip button img { width: 19px; height: 19px; opacity: .62; }
.scenario-strip button:hover { color: #272734; background: #ffffff90; border-color: #fff; }
.scenario-strip button.is-active { color: #323244; background: #ffffffed; border-color: #adafc4; box-shadow: 0 3px 16px #30305608; }
.scenario-strip button.is-active img { opacity: .9; }
.demo-playback { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: 16px 1px 0; gap: 16px; color: #86869a; font-size: 10px; }
.demo-playback > div:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; }
.demo-playback .playback-controls { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.demo-playback .playback-controls button { color: #66667c; background: transparent; font-size: 11px; min-height: 33px; }
.demo-playback .local-demo-label { display: none; }
.demo-note { margin-top: 8px; color: #8c8ca0; }
@keyframes clientShimmer { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@media (min-width:761px) and (max-width:1100px) {
  .task-workspace { grid-template-columns: 176px minmax(0,1fr); }
  .window-bar { background: linear-gradient(90deg,#f1f1f3 176px,#fff 176px); }
  .conversation-column { padding-inline: 28px; }
  .task-panel.result-open .conversation-column { padding-inline: 17px; }
  .scenario-strip { gap: 8px; }
  .scenario-strip button { gap: 7px; padding-inline: 5px; font-size: 12px; }
  .task-header { padding-inline: 18px; }
  .task-panel.result-open .task-status { display: none; }
}
@media (max-width:900px) {
  .task-panel.result-open .task-layout { display: flex; }
  .task-panel.result-open .conversation-column { display: none; }
  .task-panel.result-open .result-panel { display: flex; flex: 1; border-left: 0; }
}
@media (max-width:760px) {
  .demo-window { height: clamp(540px,calc(100svh - 220px),680px); }
  .window-bar { background: #fafafa; height: 34px; min-height: 34px; padding-inline: 12px; }
  #window-title { font-size: 10px; }
  .task-workspace,.task-panel.sidebar-collapsed .task-workspace { display: flex; }
  .task-header { padding: 8px 14px; min-height: 49px; height: auto; font-size: 11px; gap: 8px; }
  .task-header > span:first-child { white-space: nowrap; }
  .task-status { display: none; }
  .client-result-toggle { margin-left: auto; padding: 6px; min-height: 31px; font-size: 9px; }
  .client-result-toggle img { width: 13px; }
  .task-layout { display: flex; padding: 0; }
  .conversation-column { display: flex; padding: 0 18px; max-width: none; }
  .conversation { padding: 22px 3px 12px; }
  .user-message { max-width: 95%; font-size: 12px; padding: 11px 13px; margin-bottom: 23px; }
  .assistant-intro,.execution-steps li > p,.task-conclusion > p { font-size: 12px; line-height: 1.9; }
  .execution-history > summary,.tool-call summary { font-size: 10px; min-height: 30px; }
  .execution-steps { margin-top: 8px; gap: 16px; }
  .execution-steps li { padding: 0; }
  .execution-steps .tool-body button { min-height: 34px; }
  .review-artifacts { font-size: 10px; padding: 13px 10px; gap: 7px; }
  .artifact-review { font-size: 9px; }
  .client-composer { border-radius: 16px; padding: 12px 11px 8px; }
  .composer-placeholder { font-size: 11px; padding-bottom: 15px; }
  .composer-toolbar button { min-height: 32px; }
  .composer-toolbar .composer-send { width: 31px; min-height: 31px; }
  .client-context { padding-bottom: 13px; }
  .task-panel[data-mobile-view="result"] .conversation-column { display: none; }
  .task-panel[data-mobile-view="process"] .conversation-column { display: flex; }
  .task-panel .result-panel { border: 0; flex: 1; min-width: 0; }
  .result-toolbar { min-height: 44px; padding-inline: 12px; }
  .result-toolbar .close-result { min-width: 32px; min-height: 32px; }
  .result-toolbar .close-result img { width: 16px; height: 16px; }
  .scenario-strip { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 20px; gap: 8px; }
  .scenario-strip button { min-height: 53px; padding: 10px 5px; border-radius: 9px; gap: 7px; font-size: 11px; }
  .scenario-strip button img { width: 16px; height: 16px; }
  .demo-playback { min-height: 40px; gap: 7px; margin-top: 12px; font-size: 9px; }
  .demo-playback .status-dot { display: none; }
  .demo-playback .playback-controls { gap: 4px; }
  .demo-playback .playback-controls button { font-size: 10px; min-height: 38px; padding-inline: 5px; }
  .demo-note { margin-top: 6px; font-size: 9px; line-height: 1.8; }
}
@media (max-width:370px) {
  .conversation-column { padding-inline: 13px; }
  .task-header { padding-inline: 11px; }
  .client-result-toggle span { display: none; }
  .client-result-toggle { min-width: 30px; justify-content: center; }
  .scenario-strip button { gap: 5px; font-size: 10px; }
  .scenario-strip button img { width: 14px; }
  .review-artifacts > img { width: 14px; }
  .artifact-review { gap: 3px; }
  .demo-playback .playback-controls { gap: 0; }
  .demo-playback .playback-controls button { font-size: 9px; }
  .composer-placeholder { font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .tool-running,.client-working i { animation: none; }
}
