/* Work detail: real request/execution and result-review states, with the existing work controls. */
body.mac-theme.workbench-app .focus-shell .rw-workspace {
  --rw-ink: #193539;
  --rw-muted: #687d7b;
  --rw-line: #dce8e4;
  --rw-teal: #176a63;
  box-sizing: border-box;
  gap: 14px;
  padding: clamp(18px, 2.1vw, 30px);
  background: #f6f8f7;
  color: var(--rw-ink);
}

body.mac-theme.workbench-app .focus-shell .rw-work-heading {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.mac-theme.workbench-app .focus-shell .rw-heading-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

body.mac-theme.workbench-app .focus-shell .rw-heading-copy { min-width: 0; }
body.mac-theme.workbench-app .focus-shell .rw-heading-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: #6d8982;
  font-size: 11px;
  font-weight: 730;
  letter-spacing: .055em;
}
body.mac-theme.workbench-app .focus-shell .rw-heading-divider { color: #abc3b9; }
body.mac-theme.workbench-app .focus-shell .rw-heading-status {
  padding: 3px 8px;
  border: 1px solid #cee2d9;
  border-radius: 999px;
  background: #e9f3ee;
  color: #3b6d5e;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
}
body.mac-theme.workbench-app .focus-shell .rw-heading-status.is-running { border-color: #c2dfd9; background: #dff2ec; color: #135f56; }
body.mac-theme.workbench-app .focus-shell .rw-heading-status.is-issue { border-color: #edcfb7; background: #fff2e4; color: #9a5636; }
body.mac-theme.workbench-app .focus-shell .rw-heading-status.is-review { border-color: #c7dcd0; background: #e6f4e9; color: #376b46; }
body.mac-theme.workbench-app .focus-shell .rw-heading-status.is-closed,
body.mac-theme.workbench-app .focus-shell .rw-heading-status.is-shared { border-color: #dae2e3; background: #edf1f1; color: #627578; }

body.mac-theme.workbench-app .focus-shell .rw-work-heading h1 {
  max-width: 32ch;
  margin: 0;
  overflow: visible;
  color: var(--rw-ink);
  font-size: clamp(27px, 2.65vw, 38px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.06em;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.mac-theme.workbench-app .focus-shell .rw-work-heading p {
  max-width: 70ch;
  margin: 8px 0 0;
  color: var(--rw-muted);
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.mac-theme.workbench-app .focus-shell .rw-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  flex: 0 0 auto;
  padding-top: 24px;
}
body.mac-theme.workbench-app .focus-shell .rw-heading-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 710;
  white-space: nowrap;
}
body.mac-theme.workbench-app .focus-shell .rw-review-action { border: 1px solid #176a63; background: #176a63; color: #fff; }
body.mac-theme.workbench-app .focus-shell .rw-review-action:hover { background: #105a54; color: #fff; }
body.mac-theme.workbench-app .focus-shell .rw-complete-action { border: 1px solid #cadbd4; background: #fff; color: #315f56; }
body.mac-theme.workbench-app .focus-shell .rw-complete-action:hover { background: #ecf5f0; }
body.mac-theme.workbench-app .focus-shell .rw-heading-more > summary {
  width: 35px;
  height: 35px;
  border: 1px solid #cadbd4;
  border-radius: 8px;
  background: #fff;
  color: #476a63;
}
body.mac-theme.workbench-app .focus-shell .rw-heading-more > summary:hover,
body.mac-theme.workbench-app .focus-shell .rw-heading-more[open] > summary { background: #ecf5f0; }

body.mac-theme.workbench-app .focus-shell .rw-state-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 19px;
}
body.mac-theme.workbench-app .focus-shell .rw-state-lane {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 61px;
  padding: 11px 14px;
  border: 1px solid var(--rw-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 14px #21494308;
}
body.mac-theme.workbench-app .focus-shell .rw-state-lane.is-active { border-color: #b7d7ce; background: #fbfefd; }
body.mac-theme.workbench-app .focus-shell .rw-state-lane.is-issue { border-color: #e8cbb5; background: #fffaf6; }
body.mac-theme.workbench-app .focus-shell .rw-state-lane.is-review { border-color: #bdd9c7; background: #fafffb; }
body.mac-theme.workbench-app .focus-shell .rw-state-index {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #e8f2ee;
  color: #237268;
  font-size: 10px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
body.mac-theme.workbench-app .focus-shell .rw-state-lane.is-issue .rw-state-index { background: #ffebdf; color: #a65b36; }
body.mac-theme.workbench-app .focus-shell .rw-state-lane > div { display: grid; gap: 2px; min-width: 0; }
body.mac-theme.workbench-app .focus-shell .rw-state-lane strong { color: #24423f; font-size: 12px; font-weight: 730; }
body.mac-theme.workbench-app .focus-shell .rw-state-lane div > span { min-width: 0; overflow: hidden; color: #637c78; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme.workbench-app .focus-shell .rw-state-lane small { color: #8a9a98; font-size: 11px; white-space: nowrap; }

body.mac-theme.workbench-app .focus-shell .rw-workspace > .local-execution-progress { margin: 0; border-color: #cbded7; background: #eff7f3; }
body.mac-theme.workbench-app .focus-shell .rw-mobile-tabs { display: none; }
body.mac-theme.workbench-app .focus-shell .rw-work-grid {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rw-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 11px 32px #1b433d0c;
}
body.mac-theme.workbench-app .focus-shell .rw-chat { background: #fff; }
body.mac-theme.workbench-app .focus-shell .rw-chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex: 0 0 65px;
  min-height: 65px;
  padding: 10px 20px;
  border-bottom: 1px solid #e8efeb;
  background: #fff;
}
body.mac-theme.workbench-app .focus-shell .rw-chat-heading > div:first-child,
body.mac-theme.workbench-app .focus-shell .rw-preview-intro > div { display: grid; gap: 2px; }
body.mac-theme.workbench-app .focus-shell .rw-panel-kicker {
  color: #709087;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .15em;
  line-height: 1.2;
}
body.mac-theme.workbench-app .focus-shell .rw-chat-heading h2,
body.mac-theme.workbench-app .focus-shell .rw-preview-intro h2 { margin: 0; color: #20413e; font-size: 17px; font-weight: 720; line-height: 1.35; letter-spacing: -.045em; }
body.mac-theme.workbench-app .focus-shell .rw-chat-tools { display: flex; align-items: center; gap: 8px; }
body.mac-theme.workbench-app .focus-shell .rw-chat-tools button { color: #46736b; font-size: 12px; font-weight: 620; }
body.mac-theme.workbench-app .focus-shell .rw-chat-tools button:hover { color: #135c54; background: #edf6f1; }
body.mac-theme.workbench-app .focus-shell .rw-chat .work-history { border-bottom-color: #e8efeb; }
body.mac-theme.workbench-app .focus-shell .rw-chat .history-stop[aria-current=step] { border-color: #bddbd0; background: #eaf6ef; color: #206a5f; }
body.mac-theme.workbench-app .focus-shell .rw-chat .history-stop[aria-current=step] .history-number { background: #297c6d; color: #fff; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll { background: #fff; scrollbar-color: #bbd0c8 transparent; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll:focus-visible { outline-color: #69a696; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll .current-work { color: #24403f; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll .focus-label { color: #417367; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll .focus-request-text { color: #25413d; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll .focus-changes > li::before { background: #4b9c86; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll .focus-result-actions .primary,
body.mac-theme.workbench-app .focus-shell .rw-chat .app-composer .composer-buttons > .primary { border-color: #176a63; background: #176a63; color: #fff; }
body.mac-theme.workbench-app .focus-shell .rw-chat-scroll .focus-result-actions .primary:hover,
body.mac-theme.workbench-app .focus-shell .rw-chat .app-composer .composer-buttons > .primary:hover { background: #105a54; }
body.mac-theme.workbench-app .focus-shell .rw-chat .app-composer { border-top-color: #e0eae5; background: #f8fbf9; }
body.mac-theme.workbench-app .focus-shell .rw-chat .app-composer textarea { border-color: #cbdcd3; background: #fff; color: #203b38; }
body.mac-theme.workbench-app .focus-shell .rw-chat .app-composer textarea:focus { border-color: #3c9281; outline-color: #87c4b1; }

body.mac-theme.workbench-app .focus-shell .rw-work-grid > .app-splitter { border-color: transparent; background: #f6f8f7; }
body.mac-theme.workbench-app .focus-shell .rw-work-grid > .app-splitter::after { background: #dce8e2; }
body.mac-theme.workbench-app .focus-shell .rw-work-grid > .app-splitter::before { background: #99bdb0; }
body.mac-theme.workbench-app .focus-shell .rw-preview { border-left: 0; background: #f4f7f5; }
body.mac-theme.workbench-app .focus-shell .rw-preview-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 65px;
  min-height: 65px;
  padding: 10px 18px;
  border-bottom: 1px solid #e0eae4;
  background: #f8fbf9;
}
body.mac-theme.workbench-app .focus-shell .rw-preview-pick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #c8ddd3;
  border-radius: 8px;
  background: #fff;
  color: #2d6b60;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
body.mac-theme.workbench-app .focus-shell .rw-preview-pick:hover { background: #edf7f1; }
body.mac-theme.workbench-app .focus-shell .rw-preview .preview-tabbar { border-bottom-color: #dce8e2; background: #f1f6f2; }
body.mac-theme.workbench-app .focus-shell .rw-preview .preview-tab-shell.is-active { border-color: #c8dfd3; background: #fff; }
body.mac-theme.workbench-app .focus-shell .rw-preview .preview-tab[aria-selected="true"] { color: #256f63; }
body.mac-theme.workbench-app .focus-shell .rw-preview .preview-tab-panels { background: #f4f7f5; }
body.mac-theme.workbench-app .focus-shell .rw-preview .preview-tabs-empty { background: #f4f7f5; }
body.mac-theme.workbench-app .focus-shell .rw-preview .document:not(.source-view) :is(h1, h2, h3, h4) { color: #24443f; }

@media (max-width: 1100px) {
  body.mac-theme.workbench-app .focus-shell .rw-state-lane { grid-template-columns: 29px minmax(0, 1fr); }
  body.mac-theme.workbench-app .focus-shell .rw-state-lane small { grid-column: 2; }
  body.mac-theme.workbench-app .focus-shell .rw-work-heading h1 { font-size: 29px; }
}

@media (max-width: 759px) {
  body.mac-theme.workbench-app .focus-shell .rw-workspace { gap: 9px; padding: 12px 12px 0; }
  body.mac-theme.workbench-app .focus-shell .rw-work-heading { position: relative; padding: 0 0 0 36px; }
  body.mac-theme.workbench-app .focus-shell .rw-menu-button { position: absolute; top: 0; left: 0; display: inline-flex; width: 31px; min-height: 31px; padding: 4px; }
  body.mac-theme.workbench-app .focus-shell .rw-heading-main { display: block; }
  body.mac-theme.workbench-app .focus-shell .rw-heading-location { margin-bottom: 5px; font-size: 10px; }
  body.mac-theme.workbench-app .focus-shell .rw-work-heading h1 { max-width: none; font-size: 22px; line-height: 1.28; }
  body.mac-theme.workbench-app .focus-shell .rw-work-heading p { display: none; }
  body.mac-theme.workbench-app .focus-shell .rw-heading-actions { justify-content: flex-start; padding: 8px 0 0; }
  body.mac-theme.workbench-app .focus-shell .rw-heading-actions > button { min-height: 31px; padding: 5px 8px; font-size: 11px; }
  body.mac-theme.workbench-app .focus-shell .rw-heading-more > summary { width: 31px; height: 31px; }
  body.mac-theme.workbench-app .focus-shell .rw-state-lanes { gap: 6px; margin-top: 9px; }
  body.mac-theme.workbench-app .focus-shell .rw-state-lane { display: grid; grid-template-columns: 1fr; gap: 3px; min-height: 56px; padding: 8px 9px; }
  body.mac-theme.workbench-app .focus-shell .rw-state-index { display: none; }
  body.mac-theme.workbench-app .focus-shell .rw-state-lane small { grid-column: 1; font-size: 10px; }
  body.mac-theme.workbench-app .focus-shell .rw-state-lane strong,
  body.mac-theme.workbench-app .focus-shell .rw-state-lane div > span { font-size: 11px; }
  body.mac-theme.workbench-app .focus-shell .rw-mobile-tabs { display: flex; flex: 0 0 35px; height: 35px; min-height: 35px; margin: 0 -12px; border-color: #dce8e2; background: #ebf3ee; }
  body.mac-theme.workbench-app .focus-shell .rw-mobile-tabs button { color: #67877d; font-size: 12px; }
  body.mac-theme.workbench-app .focus-shell .rw-mobile-tabs button[aria-pressed="true"] { border-bottom-color: #237668; color: #176a63; }
  body.mac-theme.workbench-app .focus-shell .rw-work-grid { position: relative; display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; margin: 0 -12px; border: 0; border-top: 1px solid #dce8e2; border-radius: 0; box-shadow: none; }
  body.mac-theme.workbench-app .focus-shell .rw-work-grid > .app-splitter { display: none; }
  body.mac-theme.workbench-app .focus-shell .rw-chat-heading,
  body.mac-theme.workbench-app .focus-shell .rw-preview-intro { flex-basis: 50px; min-height: 50px; padding: 7px 14px; }
  body.mac-theme.workbench-app .focus-shell .rw-chat-heading h2,
  body.mac-theme.workbench-app .focus-shell .rw-preview-intro h2 { font-size: 15px; }
  body.mac-theme.workbench-app .focus-shell .rw-panel-kicker { font-size: 8px; }
  body.mac-theme.workbench-app .focus-shell .rw-chat-tools { gap: 2px; }
  body.mac-theme.workbench-app .focus-shell .rw-chat-tools button { font-size: 11px; }
  body.mac-theme.workbench-app .focus-shell .rw-preview { display: none; position: absolute; inset: 0; z-index: 2; }
  body.mac-theme.workbench-app .focus-shell .rw-workspace[data-pane="result"] .rw-preview,
  body.mac-theme.workbench-app .focus-shell .rw-workspace.preview-expanded .rw-preview { display: flex; }
  body.mac-theme.workbench-app .focus-shell .rw-preview-pick { min-height: 30px; padding: 4px 7px; font-size: 11px; }
}

@media (max-width: 390px) {
  body.mac-theme.workbench-app .focus-shell .rw-heading-actions > button { padding-inline: 6px; }
  body.mac-theme.workbench-app .focus-shell .rw-heading-actions > button .icon { width: 13px; height: 13px; }
  body.mac-theme.workbench-app .focus-shell .rw-state-lane { padding-inline: 7px; }
}
